github.com/thomasobenaus/nomad@v0.11.1/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 *CSIVolume) 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 yysep2 := !z.EncBinary() 739 yy2arr2 := z.EncBasicHandle().StructToArray 740 _, _ = yysep2, yy2arr2 741 const yyr2 bool = false // struct tag has 'toArray' 742 if yyr2 || yy2arr2 { 743 r.WriteArrayStart(22) 744 } else { 745 r.WriteMapStart(22) 746 } 747 if yyr2 || yy2arr2 { 748 r.WriteArrayElem() 749 if false { 750 } else { 751 if z.EncBasicHandle().StringToRaw { 752 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 753 } else { 754 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 755 } 756 } 757 } else { 758 r.WriteMapElemKey() 759 if z.IsJSONHandle() { 760 z.WriteStr("\"ID\"") 761 } else { 762 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 763 } 764 r.WriteMapElemValue() 765 if false { 766 } else { 767 if z.EncBasicHandle().StringToRaw { 768 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 769 } else { 770 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 771 } 772 } 773 } 774 if yyr2 || yy2arr2 { 775 r.WriteArrayElem() 776 if false { 777 } else { 778 if z.EncBasicHandle().StringToRaw { 779 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 780 } else { 781 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 782 } 783 } 784 } else { 785 r.WriteMapElemKey() 786 if z.IsJSONHandle() { 787 z.WriteStr("\"Name\"") 788 } else { 789 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 790 } 791 r.WriteMapElemValue() 792 if false { 793 } else { 794 if z.EncBasicHandle().StringToRaw { 795 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 796 } else { 797 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 798 } 799 } 800 } 801 if yyr2 || yy2arr2 { 802 r.WriteArrayElem() 803 if false { 804 } else { 805 if z.EncBasicHandle().StringToRaw { 806 r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalID))) 807 } else { 808 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalID)) 809 } 810 } 811 } else { 812 r.WriteMapElemKey() 813 if z.IsJSONHandle() { 814 z.WriteStr("\"ExternalID\"") 815 } else { 816 r.EncodeStringEnc(codecSelferCcUTF8100, `ExternalID`) 817 } 818 r.WriteMapElemValue() 819 if false { 820 } else { 821 if z.EncBasicHandle().StringToRaw { 822 r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalID))) 823 } else { 824 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalID)) 825 } 826 } 827 } 828 if yyr2 || yy2arr2 { 829 r.WriteArrayElem() 830 if false { 831 } else { 832 if z.EncBasicHandle().StringToRaw { 833 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 834 } else { 835 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 836 } 837 } 838 } else { 839 r.WriteMapElemKey() 840 if z.IsJSONHandle() { 841 z.WriteStr("\"Namespace\"") 842 } else { 843 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 844 } 845 r.WriteMapElemValue() 846 if false { 847 } else { 848 if z.EncBasicHandle().StringToRaw { 849 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 850 } else { 851 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 852 } 853 } 854 } 855 if yyr2 || yy2arr2 { 856 r.WriteArrayElem() 857 if x.Topologies == nil { 858 r.EncodeNil() 859 } else { 860 if false { 861 } else { 862 h.encSlicePtrtoCSITopology(([]*CSITopology)(x.Topologies), e) 863 } 864 } 865 } else { 866 r.WriteMapElemKey() 867 if z.IsJSONHandle() { 868 z.WriteStr("\"Topologies\"") 869 } else { 870 r.EncodeStringEnc(codecSelferCcUTF8100, `Topologies`) 871 } 872 r.WriteMapElemValue() 873 if x.Topologies == nil { 874 r.EncodeNil() 875 } else { 876 if false { 877 } else { 878 h.encSlicePtrtoCSITopology(([]*CSITopology)(x.Topologies), e) 879 } 880 } 881 } 882 if yyr2 || yy2arr2 { 883 r.WriteArrayElem() 884 x.AccessMode.CodecEncodeSelf(e) 885 } else { 886 r.WriteMapElemKey() 887 if z.IsJSONHandle() { 888 z.WriteStr("\"AccessMode\"") 889 } else { 890 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessMode`) 891 } 892 r.WriteMapElemValue() 893 x.AccessMode.CodecEncodeSelf(e) 894 } 895 if yyr2 || yy2arr2 { 896 r.WriteArrayElem() 897 x.AttachmentMode.CodecEncodeSelf(e) 898 } else { 899 r.WriteMapElemKey() 900 if z.IsJSONHandle() { 901 z.WriteStr("\"AttachmentMode\"") 902 } else { 903 r.EncodeStringEnc(codecSelferCcUTF8100, `AttachmentMode`) 904 } 905 r.WriteMapElemValue() 906 x.AttachmentMode.CodecEncodeSelf(e) 907 } 908 var yyn24 bool 909 if x.MountOptions == nil { 910 yyn24 = true 911 goto LABEL24 912 } 913 LABEL24: 914 if yyr2 || yy2arr2 { 915 if yyn24 { 916 r.WriteArrayElem() 917 r.EncodeNil() 918 } else { 919 r.WriteArrayElem() 920 if x.MountOptions == nil { 921 r.EncodeNil() 922 } else { 923 x.MountOptions.CodecEncodeSelf(e) 924 } 925 } 926 } else { 927 r.WriteMapElemKey() 928 if z.IsJSONHandle() { 929 z.WriteStr("\"MountOptions\"") 930 } else { 931 r.EncodeStringEnc(codecSelferCcUTF8100, `MountOptions`) 932 } 933 r.WriteMapElemValue() 934 if yyn24 { 935 r.EncodeNil() 936 } else { 937 if x.MountOptions == nil { 938 r.EncodeNil() 939 } else { 940 x.MountOptions.CodecEncodeSelf(e) 941 } 942 } 943 } 944 if yyr2 || yy2arr2 { 945 r.WriteArrayElem() 946 if x.ReadAllocs == nil { 947 r.EncodeNil() 948 } else { 949 if false { 950 } else { 951 h.encMapstringPtrtoAllocation((map[string]*Allocation)(x.ReadAllocs), e) 952 } 953 } 954 } else { 955 r.WriteMapElemKey() 956 if z.IsJSONHandle() { 957 z.WriteStr("\"ReadAllocs\"") 958 } else { 959 r.EncodeStringEnc(codecSelferCcUTF8100, `ReadAllocs`) 960 } 961 r.WriteMapElemValue() 962 if x.ReadAllocs == nil { 963 r.EncodeNil() 964 } else { 965 if false { 966 } else { 967 h.encMapstringPtrtoAllocation((map[string]*Allocation)(x.ReadAllocs), e) 968 } 969 } 970 } 971 if yyr2 || yy2arr2 { 972 r.WriteArrayElem() 973 if x.WriteAllocs == nil { 974 r.EncodeNil() 975 } else { 976 if false { 977 } else { 978 h.encMapstringPtrtoAllocation((map[string]*Allocation)(x.WriteAllocs), e) 979 } 980 } 981 } else { 982 r.WriteMapElemKey() 983 if z.IsJSONHandle() { 984 z.WriteStr("\"WriteAllocs\"") 985 } else { 986 r.EncodeStringEnc(codecSelferCcUTF8100, `WriteAllocs`) 987 } 988 r.WriteMapElemValue() 989 if x.WriteAllocs == nil { 990 r.EncodeNil() 991 } else { 992 if false { 993 } else { 994 h.encMapstringPtrtoAllocation((map[string]*Allocation)(x.WriteAllocs), e) 995 } 996 } 997 } 998 if yyr2 || yy2arr2 { 999 r.WriteArrayElem() 1000 if false { 1001 } else { 1002 r.EncodeBool(bool(x.Schedulable)) 1003 } 1004 } else { 1005 r.WriteMapElemKey() 1006 if z.IsJSONHandle() { 1007 z.WriteStr("\"Schedulable\"") 1008 } else { 1009 r.EncodeStringEnc(codecSelferCcUTF8100, `Schedulable`) 1010 } 1011 r.WriteMapElemValue() 1012 if false { 1013 } else { 1014 r.EncodeBool(bool(x.Schedulable)) 1015 } 1016 } 1017 if yyr2 || yy2arr2 { 1018 r.WriteArrayElem() 1019 if false { 1020 } else { 1021 if z.EncBasicHandle().StringToRaw { 1022 r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) 1023 } else { 1024 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) 1025 } 1026 } 1027 } else { 1028 r.WriteMapElemKey() 1029 if z.IsJSONHandle() { 1030 z.WriteStr("\"PluginID\"") 1031 } else { 1032 r.EncodeStringEnc(codecSelferCcUTF8100, `PluginID`) 1033 } 1034 r.WriteMapElemValue() 1035 if false { 1036 } else { 1037 if z.EncBasicHandle().StringToRaw { 1038 r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) 1039 } else { 1040 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) 1041 } 1042 } 1043 } 1044 if yyr2 || yy2arr2 { 1045 r.WriteArrayElem() 1046 if false { 1047 } else { 1048 if z.EncBasicHandle().StringToRaw { 1049 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 1050 } else { 1051 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 1052 } 1053 } 1054 } else { 1055 r.WriteMapElemKey() 1056 if z.IsJSONHandle() { 1057 z.WriteStr("\"Provider\"") 1058 } else { 1059 r.EncodeStringEnc(codecSelferCcUTF8100, `Provider`) 1060 } 1061 r.WriteMapElemValue() 1062 if false { 1063 } else { 1064 if z.EncBasicHandle().StringToRaw { 1065 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 1066 } else { 1067 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 1068 } 1069 } 1070 } 1071 if yyr2 || yy2arr2 { 1072 r.WriteArrayElem() 1073 if false { 1074 } else { 1075 if z.EncBasicHandle().StringToRaw { 1076 r.EncodeStringBytesRaw(z.BytesView(string(x.ProviderVersion))) 1077 } else { 1078 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ProviderVersion)) 1079 } 1080 } 1081 } else { 1082 r.WriteMapElemKey() 1083 if z.IsJSONHandle() { 1084 z.WriteStr("\"ProviderVersion\"") 1085 } else { 1086 r.EncodeStringEnc(codecSelferCcUTF8100, `ProviderVersion`) 1087 } 1088 r.WriteMapElemValue() 1089 if false { 1090 } else { 1091 if z.EncBasicHandle().StringToRaw { 1092 r.EncodeStringBytesRaw(z.BytesView(string(x.ProviderVersion))) 1093 } else { 1094 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ProviderVersion)) 1095 } 1096 } 1097 } 1098 if yyr2 || yy2arr2 { 1099 r.WriteArrayElem() 1100 if false { 1101 } else { 1102 r.EncodeBool(bool(x.ControllerRequired)) 1103 } 1104 } else { 1105 r.WriteMapElemKey() 1106 if z.IsJSONHandle() { 1107 z.WriteStr("\"ControllerRequired\"") 1108 } else { 1109 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllerRequired`) 1110 } 1111 r.WriteMapElemValue() 1112 if false { 1113 } else { 1114 r.EncodeBool(bool(x.ControllerRequired)) 1115 } 1116 } 1117 if yyr2 || yy2arr2 { 1118 r.WriteArrayElem() 1119 if false { 1120 } else { 1121 r.EncodeInt(int64(x.ControllersHealthy)) 1122 } 1123 } else { 1124 r.WriteMapElemKey() 1125 if z.IsJSONHandle() { 1126 z.WriteStr("\"ControllersHealthy\"") 1127 } else { 1128 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersHealthy`) 1129 } 1130 r.WriteMapElemValue() 1131 if false { 1132 } else { 1133 r.EncodeInt(int64(x.ControllersHealthy)) 1134 } 1135 } 1136 if yyr2 || yy2arr2 { 1137 r.WriteArrayElem() 1138 if false { 1139 } else { 1140 r.EncodeInt(int64(x.ControllersExpected)) 1141 } 1142 } else { 1143 r.WriteMapElemKey() 1144 if z.IsJSONHandle() { 1145 z.WriteStr("\"ControllersExpected\"") 1146 } else { 1147 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersExpected`) 1148 } 1149 r.WriteMapElemValue() 1150 if false { 1151 } else { 1152 r.EncodeInt(int64(x.ControllersExpected)) 1153 } 1154 } 1155 if yyr2 || yy2arr2 { 1156 r.WriteArrayElem() 1157 if false { 1158 } else { 1159 r.EncodeInt(int64(x.NodesHealthy)) 1160 } 1161 } else { 1162 r.WriteMapElemKey() 1163 if z.IsJSONHandle() { 1164 z.WriteStr("\"NodesHealthy\"") 1165 } else { 1166 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesHealthy`) 1167 } 1168 r.WriteMapElemValue() 1169 if false { 1170 } else { 1171 r.EncodeInt(int64(x.NodesHealthy)) 1172 } 1173 } 1174 if yyr2 || yy2arr2 { 1175 r.WriteArrayElem() 1176 if false { 1177 } else { 1178 r.EncodeInt(int64(x.NodesExpected)) 1179 } 1180 } else { 1181 r.WriteMapElemKey() 1182 if z.IsJSONHandle() { 1183 z.WriteStr("\"NodesExpected\"") 1184 } else { 1185 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesExpected`) 1186 } 1187 r.WriteMapElemValue() 1188 if false { 1189 } else { 1190 r.EncodeInt(int64(x.NodesExpected)) 1191 } 1192 } 1193 if yyr2 || yy2arr2 { 1194 r.WriteArrayElem() 1195 if false { 1196 } else if !z.EncBasicHandle().TimeNotBuiltin { 1197 r.EncodeTime(x.ResourceExhausted) 1198 } else if yyxt61 := z.Extension(z.I2Rtid(x.ResourceExhausted)); yyxt61 != nil { 1199 z.EncExtension(x.ResourceExhausted, yyxt61) 1200 } else if z.EncBinary() { 1201 z.EncBinaryMarshal(x.ResourceExhausted) 1202 } else if !z.EncBinary() && z.IsJSONHandle() { 1203 z.EncJSONMarshal(x.ResourceExhausted) 1204 } else { 1205 z.EncFallback(x.ResourceExhausted) 1206 } 1207 } else { 1208 r.WriteMapElemKey() 1209 if z.IsJSONHandle() { 1210 z.WriteStr("\"ResourceExhausted\"") 1211 } else { 1212 r.EncodeStringEnc(codecSelferCcUTF8100, `ResourceExhausted`) 1213 } 1214 r.WriteMapElemValue() 1215 if false { 1216 } else if !z.EncBasicHandle().TimeNotBuiltin { 1217 r.EncodeTime(x.ResourceExhausted) 1218 } else if yyxt62 := z.Extension(z.I2Rtid(x.ResourceExhausted)); yyxt62 != nil { 1219 z.EncExtension(x.ResourceExhausted, yyxt62) 1220 } else if z.EncBinary() { 1221 z.EncBinaryMarshal(x.ResourceExhausted) 1222 } else if !z.EncBinary() && z.IsJSONHandle() { 1223 z.EncJSONMarshal(x.ResourceExhausted) 1224 } else { 1225 z.EncFallback(x.ResourceExhausted) 1226 } 1227 } 1228 if yyr2 || yy2arr2 { 1229 r.WriteArrayElem() 1230 if false { 1231 } else { 1232 r.EncodeUint(uint64(x.CreateIndex)) 1233 } 1234 } else { 1235 r.WriteMapElemKey() 1236 if z.IsJSONHandle() { 1237 z.WriteStr("\"CreateIndex\"") 1238 } else { 1239 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 1240 } 1241 r.WriteMapElemValue() 1242 if false { 1243 } else { 1244 r.EncodeUint(uint64(x.CreateIndex)) 1245 } 1246 } 1247 if yyr2 || yy2arr2 { 1248 r.WriteArrayElem() 1249 if false { 1250 } else { 1251 r.EncodeUint(uint64(x.ModifyIndex)) 1252 } 1253 } else { 1254 r.WriteMapElemKey() 1255 if z.IsJSONHandle() { 1256 z.WriteStr("\"ModifyIndex\"") 1257 } else { 1258 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 1259 } 1260 r.WriteMapElemValue() 1261 if false { 1262 } else { 1263 r.EncodeUint(uint64(x.ModifyIndex)) 1264 } 1265 } 1266 if yyr2 || yy2arr2 { 1267 r.WriteArrayEnd() 1268 } else { 1269 r.WriteMapEnd() 1270 } 1271 } 1272 } 1273 } 1274 1275 func (x *CSIVolume) CodecDecodeSelf(d *codec1978.Decoder) { 1276 var h codecSelfer100 1277 z, r := codec1978.GenHelperDecoder(d) 1278 _, _, _ = h, z, r 1279 if false { 1280 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 1281 z.DecExtension(x, yyxt1) 1282 } else { 1283 yyct2 := r.ContainerType() 1284 if yyct2 == codecSelferValueTypeMap100 { 1285 yyl2 := r.ReadMapStart() 1286 if yyl2 == 0 { 1287 r.ReadMapEnd() 1288 } else { 1289 x.codecDecodeSelfFromMap(yyl2, d) 1290 } 1291 } else if yyct2 == codecSelferValueTypeArray100 { 1292 yyl2 := r.ReadArrayStart() 1293 if yyl2 == 0 { 1294 r.ReadArrayEnd() 1295 } else { 1296 x.codecDecodeSelfFromArray(yyl2, d) 1297 } 1298 } else { 1299 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 1300 } 1301 } 1302 } 1303 1304 func (x *CSIVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 1305 var h codecSelfer100 1306 z, r := codec1978.GenHelperDecoder(d) 1307 _, _, _ = h, z, r 1308 var yyhl3 bool = l >= 0 1309 for yyj3 := 0; ; yyj3++ { 1310 if yyhl3 { 1311 if yyj3 >= l { 1312 break 1313 } 1314 } else { 1315 if r.CheckBreak() { 1316 break 1317 } 1318 } 1319 r.ReadMapElemKey() 1320 yys3 := z.StringView(r.DecodeStringAsBytes()) 1321 r.ReadMapElemValue() 1322 switch yys3 { 1323 case "ID": 1324 if r.TryDecodeAsNil() { 1325 x.ID = "" 1326 } else { 1327 x.ID = (string)(r.DecodeString()) 1328 } 1329 case "Name": 1330 if r.TryDecodeAsNil() { 1331 x.Name = "" 1332 } else { 1333 x.Name = (string)(r.DecodeString()) 1334 } 1335 case "ExternalID": 1336 if r.TryDecodeAsNil() { 1337 x.ExternalID = "" 1338 } else { 1339 x.ExternalID = (string)(r.DecodeString()) 1340 } 1341 case "Namespace": 1342 if r.TryDecodeAsNil() { 1343 x.Namespace = "" 1344 } else { 1345 x.Namespace = (string)(r.DecodeString()) 1346 } 1347 case "Topologies": 1348 if r.TryDecodeAsNil() { 1349 x.Topologies = nil 1350 } else { 1351 if false { 1352 } else { 1353 h.decSlicePtrtoCSITopology((*[]*CSITopology)(&x.Topologies), d) 1354 } 1355 } 1356 case "AccessMode": 1357 if r.TryDecodeAsNil() { 1358 x.AccessMode = "" 1359 } else { 1360 x.AccessMode.CodecDecodeSelf(d) 1361 } 1362 case "AttachmentMode": 1363 if r.TryDecodeAsNil() { 1364 x.AttachmentMode = "" 1365 } else { 1366 x.AttachmentMode.CodecDecodeSelf(d) 1367 } 1368 case "MountOptions": 1369 if r.TryDecodeAsNil() { 1370 if true && x.MountOptions != nil { 1371 x.MountOptions = nil 1372 } 1373 } else { 1374 if x.MountOptions == nil { 1375 x.MountOptions = new(CSIMountOptions) 1376 } 1377 1378 x.MountOptions.CodecDecodeSelf(d) 1379 } 1380 case "ReadAllocs": 1381 if r.TryDecodeAsNil() { 1382 x.ReadAllocs = nil 1383 } else { 1384 if false { 1385 } else { 1386 h.decMapstringPtrtoAllocation((*map[string]*Allocation)(&x.ReadAllocs), d) 1387 } 1388 } 1389 case "WriteAllocs": 1390 if r.TryDecodeAsNil() { 1391 x.WriteAllocs = nil 1392 } else { 1393 if false { 1394 } else { 1395 h.decMapstringPtrtoAllocation((*map[string]*Allocation)(&x.WriteAllocs), d) 1396 } 1397 } 1398 case "Schedulable": 1399 if r.TryDecodeAsNil() { 1400 x.Schedulable = false 1401 } else { 1402 x.Schedulable = (bool)(r.DecodeBool()) 1403 } 1404 case "PluginID": 1405 if r.TryDecodeAsNil() { 1406 x.PluginID = "" 1407 } else { 1408 x.PluginID = (string)(r.DecodeString()) 1409 } 1410 case "Provider": 1411 if r.TryDecodeAsNil() { 1412 x.Provider = "" 1413 } else { 1414 x.Provider = (string)(r.DecodeString()) 1415 } 1416 case "ProviderVersion": 1417 if r.TryDecodeAsNil() { 1418 x.ProviderVersion = "" 1419 } else { 1420 x.ProviderVersion = (string)(r.DecodeString()) 1421 } 1422 case "ControllerRequired": 1423 if r.TryDecodeAsNil() { 1424 x.ControllerRequired = false 1425 } else { 1426 x.ControllerRequired = (bool)(r.DecodeBool()) 1427 } 1428 case "ControllersHealthy": 1429 if r.TryDecodeAsNil() { 1430 x.ControllersHealthy = 0 1431 } else { 1432 x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 1433 } 1434 case "ControllersExpected": 1435 if r.TryDecodeAsNil() { 1436 x.ControllersExpected = 0 1437 } else { 1438 x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 1439 } 1440 case "NodesHealthy": 1441 if r.TryDecodeAsNil() { 1442 x.NodesHealthy = 0 1443 } else { 1444 x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 1445 } 1446 case "NodesExpected": 1447 if r.TryDecodeAsNil() { 1448 x.NodesExpected = 0 1449 } else { 1450 x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 1451 } 1452 case "ResourceExhausted": 1453 if r.TryDecodeAsNil() { 1454 x.ResourceExhausted = time.Time{} 1455 } else { 1456 if false { 1457 } else if !z.DecBasicHandle().TimeNotBuiltin { 1458 x.ResourceExhausted = r.DecodeTime() 1459 } else if yyxt27 := z.Extension(z.I2Rtid(x.ResourceExhausted)); yyxt27 != nil { 1460 z.DecExtension(x.ResourceExhausted, yyxt27) 1461 } else if z.DecBinary() { 1462 z.DecBinaryUnmarshal(&x.ResourceExhausted) 1463 } else if !z.DecBinary() && z.IsJSONHandle() { 1464 z.DecJSONUnmarshal(&x.ResourceExhausted) 1465 } else { 1466 z.DecFallback(&x.ResourceExhausted, false) 1467 } 1468 } 1469 case "CreateIndex": 1470 if r.TryDecodeAsNil() { 1471 x.CreateIndex = 0 1472 } else { 1473 x.CreateIndex = (uint64)(r.DecodeUint64()) 1474 } 1475 case "ModifyIndex": 1476 if r.TryDecodeAsNil() { 1477 x.ModifyIndex = 0 1478 } else { 1479 x.ModifyIndex = (uint64)(r.DecodeUint64()) 1480 } 1481 default: 1482 z.DecStructFieldNotFound(-1, yys3) 1483 } // end switch yys3 1484 } // end for yyj3 1485 r.ReadMapEnd() 1486 } 1487 1488 func (x *CSIVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 1489 var h codecSelfer100 1490 z, r := codec1978.GenHelperDecoder(d) 1491 _, _, _ = h, z, r 1492 var yyj30 int 1493 var yyb30 bool 1494 var yyhl30 bool = l >= 0 1495 yyj30++ 1496 if yyhl30 { 1497 yyb30 = yyj30 > l 1498 } else { 1499 yyb30 = r.CheckBreak() 1500 } 1501 if yyb30 { 1502 r.ReadArrayEnd() 1503 return 1504 } 1505 r.ReadArrayElem() 1506 if r.TryDecodeAsNil() { 1507 x.ID = "" 1508 } else { 1509 x.ID = (string)(r.DecodeString()) 1510 } 1511 yyj30++ 1512 if yyhl30 { 1513 yyb30 = yyj30 > l 1514 } else { 1515 yyb30 = r.CheckBreak() 1516 } 1517 if yyb30 { 1518 r.ReadArrayEnd() 1519 return 1520 } 1521 r.ReadArrayElem() 1522 if r.TryDecodeAsNil() { 1523 x.Name = "" 1524 } else { 1525 x.Name = (string)(r.DecodeString()) 1526 } 1527 yyj30++ 1528 if yyhl30 { 1529 yyb30 = yyj30 > l 1530 } else { 1531 yyb30 = r.CheckBreak() 1532 } 1533 if yyb30 { 1534 r.ReadArrayEnd() 1535 return 1536 } 1537 r.ReadArrayElem() 1538 if r.TryDecodeAsNil() { 1539 x.ExternalID = "" 1540 } else { 1541 x.ExternalID = (string)(r.DecodeString()) 1542 } 1543 yyj30++ 1544 if yyhl30 { 1545 yyb30 = yyj30 > l 1546 } else { 1547 yyb30 = r.CheckBreak() 1548 } 1549 if yyb30 { 1550 r.ReadArrayEnd() 1551 return 1552 } 1553 r.ReadArrayElem() 1554 if r.TryDecodeAsNil() { 1555 x.Namespace = "" 1556 } else { 1557 x.Namespace = (string)(r.DecodeString()) 1558 } 1559 yyj30++ 1560 if yyhl30 { 1561 yyb30 = yyj30 > l 1562 } else { 1563 yyb30 = r.CheckBreak() 1564 } 1565 if yyb30 { 1566 r.ReadArrayEnd() 1567 return 1568 } 1569 r.ReadArrayElem() 1570 if r.TryDecodeAsNil() { 1571 x.Topologies = nil 1572 } else { 1573 if false { 1574 } else { 1575 h.decSlicePtrtoCSITopology((*[]*CSITopology)(&x.Topologies), d) 1576 } 1577 } 1578 yyj30++ 1579 if yyhl30 { 1580 yyb30 = yyj30 > l 1581 } else { 1582 yyb30 = r.CheckBreak() 1583 } 1584 if yyb30 { 1585 r.ReadArrayEnd() 1586 return 1587 } 1588 r.ReadArrayElem() 1589 if r.TryDecodeAsNil() { 1590 x.AccessMode = "" 1591 } else { 1592 x.AccessMode.CodecDecodeSelf(d) 1593 } 1594 yyj30++ 1595 if yyhl30 { 1596 yyb30 = yyj30 > l 1597 } else { 1598 yyb30 = r.CheckBreak() 1599 } 1600 if yyb30 { 1601 r.ReadArrayEnd() 1602 return 1603 } 1604 r.ReadArrayElem() 1605 if r.TryDecodeAsNil() { 1606 x.AttachmentMode = "" 1607 } else { 1608 x.AttachmentMode.CodecDecodeSelf(d) 1609 } 1610 yyj30++ 1611 if yyhl30 { 1612 yyb30 = yyj30 > l 1613 } else { 1614 yyb30 = r.CheckBreak() 1615 } 1616 if yyb30 { 1617 r.ReadArrayEnd() 1618 return 1619 } 1620 r.ReadArrayElem() 1621 if r.TryDecodeAsNil() { 1622 if true && x.MountOptions != nil { 1623 x.MountOptions = nil 1624 } 1625 } else { 1626 if x.MountOptions == nil { 1627 x.MountOptions = new(CSIMountOptions) 1628 } 1629 1630 x.MountOptions.CodecDecodeSelf(d) 1631 } 1632 yyj30++ 1633 if yyhl30 { 1634 yyb30 = yyj30 > l 1635 } else { 1636 yyb30 = r.CheckBreak() 1637 } 1638 if yyb30 { 1639 r.ReadArrayEnd() 1640 return 1641 } 1642 r.ReadArrayElem() 1643 if r.TryDecodeAsNil() { 1644 x.ReadAllocs = nil 1645 } else { 1646 if false { 1647 } else { 1648 h.decMapstringPtrtoAllocation((*map[string]*Allocation)(&x.ReadAllocs), d) 1649 } 1650 } 1651 yyj30++ 1652 if yyhl30 { 1653 yyb30 = yyj30 > l 1654 } else { 1655 yyb30 = r.CheckBreak() 1656 } 1657 if yyb30 { 1658 r.ReadArrayEnd() 1659 return 1660 } 1661 r.ReadArrayElem() 1662 if r.TryDecodeAsNil() { 1663 x.WriteAllocs = nil 1664 } else { 1665 if false { 1666 } else { 1667 h.decMapstringPtrtoAllocation((*map[string]*Allocation)(&x.WriteAllocs), d) 1668 } 1669 } 1670 yyj30++ 1671 if yyhl30 { 1672 yyb30 = yyj30 > l 1673 } else { 1674 yyb30 = r.CheckBreak() 1675 } 1676 if yyb30 { 1677 r.ReadArrayEnd() 1678 return 1679 } 1680 r.ReadArrayElem() 1681 if r.TryDecodeAsNil() { 1682 x.Schedulable = false 1683 } else { 1684 x.Schedulable = (bool)(r.DecodeBool()) 1685 } 1686 yyj30++ 1687 if yyhl30 { 1688 yyb30 = yyj30 > l 1689 } else { 1690 yyb30 = r.CheckBreak() 1691 } 1692 if yyb30 { 1693 r.ReadArrayEnd() 1694 return 1695 } 1696 r.ReadArrayElem() 1697 if r.TryDecodeAsNil() { 1698 x.PluginID = "" 1699 } else { 1700 x.PluginID = (string)(r.DecodeString()) 1701 } 1702 yyj30++ 1703 if yyhl30 { 1704 yyb30 = yyj30 > l 1705 } else { 1706 yyb30 = r.CheckBreak() 1707 } 1708 if yyb30 { 1709 r.ReadArrayEnd() 1710 return 1711 } 1712 r.ReadArrayElem() 1713 if r.TryDecodeAsNil() { 1714 x.Provider = "" 1715 } else { 1716 x.Provider = (string)(r.DecodeString()) 1717 } 1718 yyj30++ 1719 if yyhl30 { 1720 yyb30 = yyj30 > l 1721 } else { 1722 yyb30 = r.CheckBreak() 1723 } 1724 if yyb30 { 1725 r.ReadArrayEnd() 1726 return 1727 } 1728 r.ReadArrayElem() 1729 if r.TryDecodeAsNil() { 1730 x.ProviderVersion = "" 1731 } else { 1732 x.ProviderVersion = (string)(r.DecodeString()) 1733 } 1734 yyj30++ 1735 if yyhl30 { 1736 yyb30 = yyj30 > l 1737 } else { 1738 yyb30 = r.CheckBreak() 1739 } 1740 if yyb30 { 1741 r.ReadArrayEnd() 1742 return 1743 } 1744 r.ReadArrayElem() 1745 if r.TryDecodeAsNil() { 1746 x.ControllerRequired = false 1747 } else { 1748 x.ControllerRequired = (bool)(r.DecodeBool()) 1749 } 1750 yyj30++ 1751 if yyhl30 { 1752 yyb30 = yyj30 > l 1753 } else { 1754 yyb30 = r.CheckBreak() 1755 } 1756 if yyb30 { 1757 r.ReadArrayEnd() 1758 return 1759 } 1760 r.ReadArrayElem() 1761 if r.TryDecodeAsNil() { 1762 x.ControllersHealthy = 0 1763 } else { 1764 x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 1765 } 1766 yyj30++ 1767 if yyhl30 { 1768 yyb30 = yyj30 > l 1769 } else { 1770 yyb30 = r.CheckBreak() 1771 } 1772 if yyb30 { 1773 r.ReadArrayEnd() 1774 return 1775 } 1776 r.ReadArrayElem() 1777 if r.TryDecodeAsNil() { 1778 x.ControllersExpected = 0 1779 } else { 1780 x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 1781 } 1782 yyj30++ 1783 if yyhl30 { 1784 yyb30 = yyj30 > l 1785 } else { 1786 yyb30 = r.CheckBreak() 1787 } 1788 if yyb30 { 1789 r.ReadArrayEnd() 1790 return 1791 } 1792 r.ReadArrayElem() 1793 if r.TryDecodeAsNil() { 1794 x.NodesHealthy = 0 1795 } else { 1796 x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 1797 } 1798 yyj30++ 1799 if yyhl30 { 1800 yyb30 = yyj30 > l 1801 } else { 1802 yyb30 = r.CheckBreak() 1803 } 1804 if yyb30 { 1805 r.ReadArrayEnd() 1806 return 1807 } 1808 r.ReadArrayElem() 1809 if r.TryDecodeAsNil() { 1810 x.NodesExpected = 0 1811 } else { 1812 x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 1813 } 1814 yyj30++ 1815 if yyhl30 { 1816 yyb30 = yyj30 > l 1817 } else { 1818 yyb30 = r.CheckBreak() 1819 } 1820 if yyb30 { 1821 r.ReadArrayEnd() 1822 return 1823 } 1824 r.ReadArrayElem() 1825 if r.TryDecodeAsNil() { 1826 x.ResourceExhausted = time.Time{} 1827 } else { 1828 if false { 1829 } else if !z.DecBasicHandle().TimeNotBuiltin { 1830 x.ResourceExhausted = r.DecodeTime() 1831 } else if yyxt54 := z.Extension(z.I2Rtid(x.ResourceExhausted)); yyxt54 != nil { 1832 z.DecExtension(x.ResourceExhausted, yyxt54) 1833 } else if z.DecBinary() { 1834 z.DecBinaryUnmarshal(&x.ResourceExhausted) 1835 } else if !z.DecBinary() && z.IsJSONHandle() { 1836 z.DecJSONUnmarshal(&x.ResourceExhausted) 1837 } else { 1838 z.DecFallback(&x.ResourceExhausted, false) 1839 } 1840 } 1841 yyj30++ 1842 if yyhl30 { 1843 yyb30 = yyj30 > l 1844 } else { 1845 yyb30 = r.CheckBreak() 1846 } 1847 if yyb30 { 1848 r.ReadArrayEnd() 1849 return 1850 } 1851 r.ReadArrayElem() 1852 if r.TryDecodeAsNil() { 1853 x.CreateIndex = 0 1854 } else { 1855 x.CreateIndex = (uint64)(r.DecodeUint64()) 1856 } 1857 yyj30++ 1858 if yyhl30 { 1859 yyb30 = yyj30 > l 1860 } else { 1861 yyb30 = r.CheckBreak() 1862 } 1863 if yyb30 { 1864 r.ReadArrayEnd() 1865 return 1866 } 1867 r.ReadArrayElem() 1868 if r.TryDecodeAsNil() { 1869 x.ModifyIndex = 0 1870 } else { 1871 x.ModifyIndex = (uint64)(r.DecodeUint64()) 1872 } 1873 for { 1874 yyj30++ 1875 if yyhl30 { 1876 yyb30 = yyj30 > l 1877 } else { 1878 yyb30 = r.CheckBreak() 1879 } 1880 if yyb30 { 1881 break 1882 } 1883 r.ReadArrayElem() 1884 z.DecStructFieldNotFound(yyj30-1, "") 1885 } 1886 r.ReadArrayEnd() 1887 } 1888 1889 func (x *CSIVolListStub) CodecEncodeSelf(e *codec1978.Encoder) { 1890 var h codecSelfer100 1891 z, r := codec1978.GenHelperEncoder(e) 1892 _, _, _ = h, z, r 1893 if x == nil { 1894 r.EncodeNil() 1895 } else { 1896 if false { 1897 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 1898 z.EncExtension(x, yyxt1) 1899 } else { 1900 yysep2 := !z.EncBinary() 1901 yy2arr2 := z.EncBasicHandle().StructToArray 1902 _, _ = yysep2, yy2arr2 1903 const yyr2 bool = false // struct tag has 'toArray' 1904 if yyr2 || yy2arr2 { 1905 r.WriteArrayStart(19) 1906 } else { 1907 r.WriteMapStart(19) 1908 } 1909 if yyr2 || yy2arr2 { 1910 r.WriteArrayElem() 1911 if false { 1912 } else { 1913 if z.EncBasicHandle().StringToRaw { 1914 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 1915 } else { 1916 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 1917 } 1918 } 1919 } else { 1920 r.WriteMapElemKey() 1921 if z.IsJSONHandle() { 1922 z.WriteStr("\"ID\"") 1923 } else { 1924 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 1925 } 1926 r.WriteMapElemValue() 1927 if false { 1928 } else { 1929 if z.EncBasicHandle().StringToRaw { 1930 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 1931 } else { 1932 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 1933 } 1934 } 1935 } 1936 if yyr2 || yy2arr2 { 1937 r.WriteArrayElem() 1938 if false { 1939 } else { 1940 if z.EncBasicHandle().StringToRaw { 1941 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 1942 } else { 1943 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 1944 } 1945 } 1946 } else { 1947 r.WriteMapElemKey() 1948 if z.IsJSONHandle() { 1949 z.WriteStr("\"Namespace\"") 1950 } else { 1951 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 1952 } 1953 r.WriteMapElemValue() 1954 if false { 1955 } else { 1956 if z.EncBasicHandle().StringToRaw { 1957 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 1958 } else { 1959 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 1960 } 1961 } 1962 } 1963 if yyr2 || yy2arr2 { 1964 r.WriteArrayElem() 1965 if false { 1966 } else { 1967 if z.EncBasicHandle().StringToRaw { 1968 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 1969 } else { 1970 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 1971 } 1972 } 1973 } else { 1974 r.WriteMapElemKey() 1975 if z.IsJSONHandle() { 1976 z.WriteStr("\"Name\"") 1977 } else { 1978 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 1979 } 1980 r.WriteMapElemValue() 1981 if false { 1982 } else { 1983 if z.EncBasicHandle().StringToRaw { 1984 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 1985 } else { 1986 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 1987 } 1988 } 1989 } 1990 if yyr2 || yy2arr2 { 1991 r.WriteArrayElem() 1992 if false { 1993 } else { 1994 if z.EncBasicHandle().StringToRaw { 1995 r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalID))) 1996 } else { 1997 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalID)) 1998 } 1999 } 2000 } else { 2001 r.WriteMapElemKey() 2002 if z.IsJSONHandle() { 2003 z.WriteStr("\"ExternalID\"") 2004 } else { 2005 r.EncodeStringEnc(codecSelferCcUTF8100, `ExternalID`) 2006 } 2007 r.WriteMapElemValue() 2008 if false { 2009 } else { 2010 if z.EncBasicHandle().StringToRaw { 2011 r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalID))) 2012 } else { 2013 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalID)) 2014 } 2015 } 2016 } 2017 if yyr2 || yy2arr2 { 2018 r.WriteArrayElem() 2019 if x.Topologies == nil { 2020 r.EncodeNil() 2021 } else { 2022 if false { 2023 } else { 2024 h.encSlicePtrtoCSITopology(([]*CSITopology)(x.Topologies), e) 2025 } 2026 } 2027 } else { 2028 r.WriteMapElemKey() 2029 if z.IsJSONHandle() { 2030 z.WriteStr("\"Topologies\"") 2031 } else { 2032 r.EncodeStringEnc(codecSelferCcUTF8100, `Topologies`) 2033 } 2034 r.WriteMapElemValue() 2035 if x.Topologies == nil { 2036 r.EncodeNil() 2037 } else { 2038 if false { 2039 } else { 2040 h.encSlicePtrtoCSITopology(([]*CSITopology)(x.Topologies), e) 2041 } 2042 } 2043 } 2044 if yyr2 || yy2arr2 { 2045 r.WriteArrayElem() 2046 x.AccessMode.CodecEncodeSelf(e) 2047 } else { 2048 r.WriteMapElemKey() 2049 if z.IsJSONHandle() { 2050 z.WriteStr("\"AccessMode\"") 2051 } else { 2052 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessMode`) 2053 } 2054 r.WriteMapElemValue() 2055 x.AccessMode.CodecEncodeSelf(e) 2056 } 2057 if yyr2 || yy2arr2 { 2058 r.WriteArrayElem() 2059 x.AttachmentMode.CodecEncodeSelf(e) 2060 } else { 2061 r.WriteMapElemKey() 2062 if z.IsJSONHandle() { 2063 z.WriteStr("\"AttachmentMode\"") 2064 } else { 2065 r.EncodeStringEnc(codecSelferCcUTF8100, `AttachmentMode`) 2066 } 2067 r.WriteMapElemValue() 2068 x.AttachmentMode.CodecEncodeSelf(e) 2069 } 2070 var yyn24 bool 2071 if x.MountOptions == nil { 2072 yyn24 = true 2073 goto LABEL24 2074 } 2075 LABEL24: 2076 if yyr2 || yy2arr2 { 2077 if yyn24 { 2078 r.WriteArrayElem() 2079 r.EncodeNil() 2080 } else { 2081 r.WriteArrayElem() 2082 if x.MountOptions == nil { 2083 r.EncodeNil() 2084 } else { 2085 x.MountOptions.CodecEncodeSelf(e) 2086 } 2087 } 2088 } else { 2089 r.WriteMapElemKey() 2090 if z.IsJSONHandle() { 2091 z.WriteStr("\"MountOptions\"") 2092 } else { 2093 r.EncodeStringEnc(codecSelferCcUTF8100, `MountOptions`) 2094 } 2095 r.WriteMapElemValue() 2096 if yyn24 { 2097 r.EncodeNil() 2098 } else { 2099 if x.MountOptions == nil { 2100 r.EncodeNil() 2101 } else { 2102 x.MountOptions.CodecEncodeSelf(e) 2103 } 2104 } 2105 } 2106 if yyr2 || yy2arr2 { 2107 r.WriteArrayElem() 2108 if false { 2109 } else { 2110 r.EncodeInt(int64(x.CurrentReaders)) 2111 } 2112 } else { 2113 r.WriteMapElemKey() 2114 if z.IsJSONHandle() { 2115 z.WriteStr("\"CurrentReaders\"") 2116 } else { 2117 r.EncodeStringEnc(codecSelferCcUTF8100, `CurrentReaders`) 2118 } 2119 r.WriteMapElemValue() 2120 if false { 2121 } else { 2122 r.EncodeInt(int64(x.CurrentReaders)) 2123 } 2124 } 2125 if yyr2 || yy2arr2 { 2126 r.WriteArrayElem() 2127 if false { 2128 } else { 2129 r.EncodeInt(int64(x.CurrentWriters)) 2130 } 2131 } else { 2132 r.WriteMapElemKey() 2133 if z.IsJSONHandle() { 2134 z.WriteStr("\"CurrentWriters\"") 2135 } else { 2136 r.EncodeStringEnc(codecSelferCcUTF8100, `CurrentWriters`) 2137 } 2138 r.WriteMapElemValue() 2139 if false { 2140 } else { 2141 r.EncodeInt(int64(x.CurrentWriters)) 2142 } 2143 } 2144 if yyr2 || yy2arr2 { 2145 r.WriteArrayElem() 2146 if false { 2147 } else { 2148 r.EncodeBool(bool(x.Schedulable)) 2149 } 2150 } else { 2151 r.WriteMapElemKey() 2152 if z.IsJSONHandle() { 2153 z.WriteStr("\"Schedulable\"") 2154 } else { 2155 r.EncodeStringEnc(codecSelferCcUTF8100, `Schedulable`) 2156 } 2157 r.WriteMapElemValue() 2158 if false { 2159 } else { 2160 r.EncodeBool(bool(x.Schedulable)) 2161 } 2162 } 2163 if yyr2 || yy2arr2 { 2164 r.WriteArrayElem() 2165 if false { 2166 } else { 2167 if z.EncBasicHandle().StringToRaw { 2168 r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) 2169 } else { 2170 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) 2171 } 2172 } 2173 } else { 2174 r.WriteMapElemKey() 2175 if z.IsJSONHandle() { 2176 z.WriteStr("\"PluginID\"") 2177 } else { 2178 r.EncodeStringEnc(codecSelferCcUTF8100, `PluginID`) 2179 } 2180 r.WriteMapElemValue() 2181 if false { 2182 } else { 2183 if z.EncBasicHandle().StringToRaw { 2184 r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) 2185 } else { 2186 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) 2187 } 2188 } 2189 } 2190 if yyr2 || yy2arr2 { 2191 r.WriteArrayElem() 2192 if false { 2193 } else { 2194 if z.EncBasicHandle().StringToRaw { 2195 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 2196 } else { 2197 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 2198 } 2199 } 2200 } else { 2201 r.WriteMapElemKey() 2202 if z.IsJSONHandle() { 2203 z.WriteStr("\"Provider\"") 2204 } else { 2205 r.EncodeStringEnc(codecSelferCcUTF8100, `Provider`) 2206 } 2207 r.WriteMapElemValue() 2208 if false { 2209 } else { 2210 if z.EncBasicHandle().StringToRaw { 2211 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 2212 } else { 2213 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 2214 } 2215 } 2216 } 2217 if yyr2 || yy2arr2 { 2218 r.WriteArrayElem() 2219 if false { 2220 } else { 2221 r.EncodeInt(int64(x.ControllersHealthy)) 2222 } 2223 } else { 2224 r.WriteMapElemKey() 2225 if z.IsJSONHandle() { 2226 z.WriteStr("\"ControllersHealthy\"") 2227 } else { 2228 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersHealthy`) 2229 } 2230 r.WriteMapElemValue() 2231 if false { 2232 } else { 2233 r.EncodeInt(int64(x.ControllersHealthy)) 2234 } 2235 } 2236 if yyr2 || yy2arr2 { 2237 r.WriteArrayElem() 2238 if false { 2239 } else { 2240 r.EncodeInt(int64(x.ControllersExpected)) 2241 } 2242 } else { 2243 r.WriteMapElemKey() 2244 if z.IsJSONHandle() { 2245 z.WriteStr("\"ControllersExpected\"") 2246 } else { 2247 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersExpected`) 2248 } 2249 r.WriteMapElemValue() 2250 if false { 2251 } else { 2252 r.EncodeInt(int64(x.ControllersExpected)) 2253 } 2254 } 2255 if yyr2 || yy2arr2 { 2256 r.WriteArrayElem() 2257 if false { 2258 } else { 2259 r.EncodeInt(int64(x.NodesHealthy)) 2260 } 2261 } else { 2262 r.WriteMapElemKey() 2263 if z.IsJSONHandle() { 2264 z.WriteStr("\"NodesHealthy\"") 2265 } else { 2266 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesHealthy`) 2267 } 2268 r.WriteMapElemValue() 2269 if false { 2270 } else { 2271 r.EncodeInt(int64(x.NodesHealthy)) 2272 } 2273 } 2274 if yyr2 || yy2arr2 { 2275 r.WriteArrayElem() 2276 if false { 2277 } else { 2278 r.EncodeInt(int64(x.NodesExpected)) 2279 } 2280 } else { 2281 r.WriteMapElemKey() 2282 if z.IsJSONHandle() { 2283 z.WriteStr("\"NodesExpected\"") 2284 } else { 2285 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesExpected`) 2286 } 2287 r.WriteMapElemValue() 2288 if false { 2289 } else { 2290 r.EncodeInt(int64(x.NodesExpected)) 2291 } 2292 } 2293 if yyr2 || yy2arr2 { 2294 r.WriteArrayElem() 2295 if false { 2296 } else { 2297 r.EncodeUint(uint64(x.CreateIndex)) 2298 } 2299 } else { 2300 r.WriteMapElemKey() 2301 if z.IsJSONHandle() { 2302 z.WriteStr("\"CreateIndex\"") 2303 } else { 2304 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 2305 } 2306 r.WriteMapElemValue() 2307 if false { 2308 } else { 2309 r.EncodeUint(uint64(x.CreateIndex)) 2310 } 2311 } 2312 if yyr2 || yy2arr2 { 2313 r.WriteArrayElem() 2314 if false { 2315 } else { 2316 r.EncodeUint(uint64(x.ModifyIndex)) 2317 } 2318 } else { 2319 r.WriteMapElemKey() 2320 if z.IsJSONHandle() { 2321 z.WriteStr("\"ModifyIndex\"") 2322 } else { 2323 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 2324 } 2325 r.WriteMapElemValue() 2326 if false { 2327 } else { 2328 r.EncodeUint(uint64(x.ModifyIndex)) 2329 } 2330 } 2331 if yyr2 || yy2arr2 { 2332 r.WriteArrayEnd() 2333 } else { 2334 r.WriteMapEnd() 2335 } 2336 } 2337 } 2338 } 2339 2340 func (x *CSIVolListStub) CodecDecodeSelf(d *codec1978.Decoder) { 2341 var h codecSelfer100 2342 z, r := codec1978.GenHelperDecoder(d) 2343 _, _, _ = h, z, r 2344 if false { 2345 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 2346 z.DecExtension(x, yyxt1) 2347 } else { 2348 yyct2 := r.ContainerType() 2349 if yyct2 == codecSelferValueTypeMap100 { 2350 yyl2 := r.ReadMapStart() 2351 if yyl2 == 0 { 2352 r.ReadMapEnd() 2353 } else { 2354 x.codecDecodeSelfFromMap(yyl2, d) 2355 } 2356 } else if yyct2 == codecSelferValueTypeArray100 { 2357 yyl2 := r.ReadArrayStart() 2358 if yyl2 == 0 { 2359 r.ReadArrayEnd() 2360 } else { 2361 x.codecDecodeSelfFromArray(yyl2, d) 2362 } 2363 } else { 2364 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 2365 } 2366 } 2367 } 2368 2369 func (x *CSIVolListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 2370 var h codecSelfer100 2371 z, r := codec1978.GenHelperDecoder(d) 2372 _, _, _ = h, z, r 2373 var yyhl3 bool = l >= 0 2374 for yyj3 := 0; ; yyj3++ { 2375 if yyhl3 { 2376 if yyj3 >= l { 2377 break 2378 } 2379 } else { 2380 if r.CheckBreak() { 2381 break 2382 } 2383 } 2384 r.ReadMapElemKey() 2385 yys3 := z.StringView(r.DecodeStringAsBytes()) 2386 r.ReadMapElemValue() 2387 switch yys3 { 2388 case "ID": 2389 if r.TryDecodeAsNil() { 2390 x.ID = "" 2391 } else { 2392 x.ID = (string)(r.DecodeString()) 2393 } 2394 case "Namespace": 2395 if r.TryDecodeAsNil() { 2396 x.Namespace = "" 2397 } else { 2398 x.Namespace = (string)(r.DecodeString()) 2399 } 2400 case "Name": 2401 if r.TryDecodeAsNil() { 2402 x.Name = "" 2403 } else { 2404 x.Name = (string)(r.DecodeString()) 2405 } 2406 case "ExternalID": 2407 if r.TryDecodeAsNil() { 2408 x.ExternalID = "" 2409 } else { 2410 x.ExternalID = (string)(r.DecodeString()) 2411 } 2412 case "Topologies": 2413 if r.TryDecodeAsNil() { 2414 x.Topologies = nil 2415 } else { 2416 if false { 2417 } else { 2418 h.decSlicePtrtoCSITopology((*[]*CSITopology)(&x.Topologies), d) 2419 } 2420 } 2421 case "AccessMode": 2422 if r.TryDecodeAsNil() { 2423 x.AccessMode = "" 2424 } else { 2425 x.AccessMode.CodecDecodeSelf(d) 2426 } 2427 case "AttachmentMode": 2428 if r.TryDecodeAsNil() { 2429 x.AttachmentMode = "" 2430 } else { 2431 x.AttachmentMode.CodecDecodeSelf(d) 2432 } 2433 case "MountOptions": 2434 if r.TryDecodeAsNil() { 2435 if true && x.MountOptions != nil { 2436 x.MountOptions = nil 2437 } 2438 } else { 2439 if x.MountOptions == nil { 2440 x.MountOptions = new(CSIMountOptions) 2441 } 2442 2443 x.MountOptions.CodecDecodeSelf(d) 2444 } 2445 case "CurrentReaders": 2446 if r.TryDecodeAsNil() { 2447 x.CurrentReaders = 0 2448 } else { 2449 x.CurrentReaders = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 2450 } 2451 case "CurrentWriters": 2452 if r.TryDecodeAsNil() { 2453 x.CurrentWriters = 0 2454 } else { 2455 x.CurrentWriters = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 2456 } 2457 case "Schedulable": 2458 if r.TryDecodeAsNil() { 2459 x.Schedulable = false 2460 } else { 2461 x.Schedulable = (bool)(r.DecodeBool()) 2462 } 2463 case "PluginID": 2464 if r.TryDecodeAsNil() { 2465 x.PluginID = "" 2466 } else { 2467 x.PluginID = (string)(r.DecodeString()) 2468 } 2469 case "Provider": 2470 if r.TryDecodeAsNil() { 2471 x.Provider = "" 2472 } else { 2473 x.Provider = (string)(r.DecodeString()) 2474 } 2475 case "ControllersHealthy": 2476 if r.TryDecodeAsNil() { 2477 x.ControllersHealthy = 0 2478 } else { 2479 x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 2480 } 2481 case "ControllersExpected": 2482 if r.TryDecodeAsNil() { 2483 x.ControllersExpected = 0 2484 } else { 2485 x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 2486 } 2487 case "NodesHealthy": 2488 if r.TryDecodeAsNil() { 2489 x.NodesHealthy = 0 2490 } else { 2491 x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 2492 } 2493 case "NodesExpected": 2494 if r.TryDecodeAsNil() { 2495 x.NodesExpected = 0 2496 } else { 2497 x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 2498 } 2499 case "CreateIndex": 2500 if r.TryDecodeAsNil() { 2501 x.CreateIndex = 0 2502 } else { 2503 x.CreateIndex = (uint64)(r.DecodeUint64()) 2504 } 2505 case "ModifyIndex": 2506 if r.TryDecodeAsNil() { 2507 x.ModifyIndex = 0 2508 } else { 2509 x.ModifyIndex = (uint64)(r.DecodeUint64()) 2510 } 2511 default: 2512 z.DecStructFieldNotFound(-1, yys3) 2513 } // end switch yys3 2514 } // end for yyj3 2515 r.ReadMapEnd() 2516 } 2517 2518 func (x *CSIVolListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 2519 var h codecSelfer100 2520 z, r := codec1978.GenHelperDecoder(d) 2521 _, _, _ = h, z, r 2522 var yyj24 int 2523 var yyb24 bool 2524 var yyhl24 bool = l >= 0 2525 yyj24++ 2526 if yyhl24 { 2527 yyb24 = yyj24 > l 2528 } else { 2529 yyb24 = r.CheckBreak() 2530 } 2531 if yyb24 { 2532 r.ReadArrayEnd() 2533 return 2534 } 2535 r.ReadArrayElem() 2536 if r.TryDecodeAsNil() { 2537 x.ID = "" 2538 } else { 2539 x.ID = (string)(r.DecodeString()) 2540 } 2541 yyj24++ 2542 if yyhl24 { 2543 yyb24 = yyj24 > l 2544 } else { 2545 yyb24 = r.CheckBreak() 2546 } 2547 if yyb24 { 2548 r.ReadArrayEnd() 2549 return 2550 } 2551 r.ReadArrayElem() 2552 if r.TryDecodeAsNil() { 2553 x.Namespace = "" 2554 } else { 2555 x.Namespace = (string)(r.DecodeString()) 2556 } 2557 yyj24++ 2558 if yyhl24 { 2559 yyb24 = yyj24 > l 2560 } else { 2561 yyb24 = r.CheckBreak() 2562 } 2563 if yyb24 { 2564 r.ReadArrayEnd() 2565 return 2566 } 2567 r.ReadArrayElem() 2568 if r.TryDecodeAsNil() { 2569 x.Name = "" 2570 } else { 2571 x.Name = (string)(r.DecodeString()) 2572 } 2573 yyj24++ 2574 if yyhl24 { 2575 yyb24 = yyj24 > l 2576 } else { 2577 yyb24 = r.CheckBreak() 2578 } 2579 if yyb24 { 2580 r.ReadArrayEnd() 2581 return 2582 } 2583 r.ReadArrayElem() 2584 if r.TryDecodeAsNil() { 2585 x.ExternalID = "" 2586 } else { 2587 x.ExternalID = (string)(r.DecodeString()) 2588 } 2589 yyj24++ 2590 if yyhl24 { 2591 yyb24 = yyj24 > l 2592 } else { 2593 yyb24 = r.CheckBreak() 2594 } 2595 if yyb24 { 2596 r.ReadArrayEnd() 2597 return 2598 } 2599 r.ReadArrayElem() 2600 if r.TryDecodeAsNil() { 2601 x.Topologies = nil 2602 } else { 2603 if false { 2604 } else { 2605 h.decSlicePtrtoCSITopology((*[]*CSITopology)(&x.Topologies), d) 2606 } 2607 } 2608 yyj24++ 2609 if yyhl24 { 2610 yyb24 = yyj24 > l 2611 } else { 2612 yyb24 = r.CheckBreak() 2613 } 2614 if yyb24 { 2615 r.ReadArrayEnd() 2616 return 2617 } 2618 r.ReadArrayElem() 2619 if r.TryDecodeAsNil() { 2620 x.AccessMode = "" 2621 } else { 2622 x.AccessMode.CodecDecodeSelf(d) 2623 } 2624 yyj24++ 2625 if yyhl24 { 2626 yyb24 = yyj24 > l 2627 } else { 2628 yyb24 = r.CheckBreak() 2629 } 2630 if yyb24 { 2631 r.ReadArrayEnd() 2632 return 2633 } 2634 r.ReadArrayElem() 2635 if r.TryDecodeAsNil() { 2636 x.AttachmentMode = "" 2637 } else { 2638 x.AttachmentMode.CodecDecodeSelf(d) 2639 } 2640 yyj24++ 2641 if yyhl24 { 2642 yyb24 = yyj24 > l 2643 } else { 2644 yyb24 = r.CheckBreak() 2645 } 2646 if yyb24 { 2647 r.ReadArrayEnd() 2648 return 2649 } 2650 r.ReadArrayElem() 2651 if r.TryDecodeAsNil() { 2652 if true && x.MountOptions != nil { 2653 x.MountOptions = nil 2654 } 2655 } else { 2656 if x.MountOptions == nil { 2657 x.MountOptions = new(CSIMountOptions) 2658 } 2659 2660 x.MountOptions.CodecDecodeSelf(d) 2661 } 2662 yyj24++ 2663 if yyhl24 { 2664 yyb24 = yyj24 > l 2665 } else { 2666 yyb24 = r.CheckBreak() 2667 } 2668 if yyb24 { 2669 r.ReadArrayEnd() 2670 return 2671 } 2672 r.ReadArrayElem() 2673 if r.TryDecodeAsNil() { 2674 x.CurrentReaders = 0 2675 } else { 2676 x.CurrentReaders = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 2677 } 2678 yyj24++ 2679 if yyhl24 { 2680 yyb24 = yyj24 > l 2681 } else { 2682 yyb24 = r.CheckBreak() 2683 } 2684 if yyb24 { 2685 r.ReadArrayEnd() 2686 return 2687 } 2688 r.ReadArrayElem() 2689 if r.TryDecodeAsNil() { 2690 x.CurrentWriters = 0 2691 } else { 2692 x.CurrentWriters = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 2693 } 2694 yyj24++ 2695 if yyhl24 { 2696 yyb24 = yyj24 > l 2697 } else { 2698 yyb24 = r.CheckBreak() 2699 } 2700 if yyb24 { 2701 r.ReadArrayEnd() 2702 return 2703 } 2704 r.ReadArrayElem() 2705 if r.TryDecodeAsNil() { 2706 x.Schedulable = false 2707 } else { 2708 x.Schedulable = (bool)(r.DecodeBool()) 2709 } 2710 yyj24++ 2711 if yyhl24 { 2712 yyb24 = yyj24 > l 2713 } else { 2714 yyb24 = r.CheckBreak() 2715 } 2716 if yyb24 { 2717 r.ReadArrayEnd() 2718 return 2719 } 2720 r.ReadArrayElem() 2721 if r.TryDecodeAsNil() { 2722 x.PluginID = "" 2723 } else { 2724 x.PluginID = (string)(r.DecodeString()) 2725 } 2726 yyj24++ 2727 if yyhl24 { 2728 yyb24 = yyj24 > l 2729 } else { 2730 yyb24 = r.CheckBreak() 2731 } 2732 if yyb24 { 2733 r.ReadArrayEnd() 2734 return 2735 } 2736 r.ReadArrayElem() 2737 if r.TryDecodeAsNil() { 2738 x.Provider = "" 2739 } else { 2740 x.Provider = (string)(r.DecodeString()) 2741 } 2742 yyj24++ 2743 if yyhl24 { 2744 yyb24 = yyj24 > l 2745 } else { 2746 yyb24 = r.CheckBreak() 2747 } 2748 if yyb24 { 2749 r.ReadArrayEnd() 2750 return 2751 } 2752 r.ReadArrayElem() 2753 if r.TryDecodeAsNil() { 2754 x.ControllersHealthy = 0 2755 } else { 2756 x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 2757 } 2758 yyj24++ 2759 if yyhl24 { 2760 yyb24 = yyj24 > l 2761 } else { 2762 yyb24 = r.CheckBreak() 2763 } 2764 if yyb24 { 2765 r.ReadArrayEnd() 2766 return 2767 } 2768 r.ReadArrayElem() 2769 if r.TryDecodeAsNil() { 2770 x.ControllersExpected = 0 2771 } else { 2772 x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 2773 } 2774 yyj24++ 2775 if yyhl24 { 2776 yyb24 = yyj24 > l 2777 } else { 2778 yyb24 = r.CheckBreak() 2779 } 2780 if yyb24 { 2781 r.ReadArrayEnd() 2782 return 2783 } 2784 r.ReadArrayElem() 2785 if r.TryDecodeAsNil() { 2786 x.NodesHealthy = 0 2787 } else { 2788 x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 2789 } 2790 yyj24++ 2791 if yyhl24 { 2792 yyb24 = yyj24 > l 2793 } else { 2794 yyb24 = r.CheckBreak() 2795 } 2796 if yyb24 { 2797 r.ReadArrayEnd() 2798 return 2799 } 2800 r.ReadArrayElem() 2801 if r.TryDecodeAsNil() { 2802 x.NodesExpected = 0 2803 } else { 2804 x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 2805 } 2806 yyj24++ 2807 if yyhl24 { 2808 yyb24 = yyj24 > l 2809 } else { 2810 yyb24 = r.CheckBreak() 2811 } 2812 if yyb24 { 2813 r.ReadArrayEnd() 2814 return 2815 } 2816 r.ReadArrayElem() 2817 if r.TryDecodeAsNil() { 2818 x.CreateIndex = 0 2819 } else { 2820 x.CreateIndex = (uint64)(r.DecodeUint64()) 2821 } 2822 yyj24++ 2823 if yyhl24 { 2824 yyb24 = yyj24 > l 2825 } else { 2826 yyb24 = r.CheckBreak() 2827 } 2828 if yyb24 { 2829 r.ReadArrayEnd() 2830 return 2831 } 2832 r.ReadArrayElem() 2833 if r.TryDecodeAsNil() { 2834 x.ModifyIndex = 0 2835 } else { 2836 x.ModifyIndex = (uint64)(r.DecodeUint64()) 2837 } 2838 for { 2839 yyj24++ 2840 if yyhl24 { 2841 yyb24 = yyj24 > l 2842 } else { 2843 yyb24 = r.CheckBreak() 2844 } 2845 if yyb24 { 2846 break 2847 } 2848 r.ReadArrayElem() 2849 z.DecStructFieldNotFound(yyj24-1, "") 2850 } 2851 r.ReadArrayEnd() 2852 } 2853 2854 func (x *CSIVolumeRegisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { 2855 var h codecSelfer100 2856 z, r := codec1978.GenHelperEncoder(e) 2857 _, _, _ = h, z, r 2858 if x == nil { 2859 r.EncodeNil() 2860 } else { 2861 if false { 2862 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 2863 z.EncExtension(x, yyxt1) 2864 } else { 2865 yysep2 := !z.EncBinary() 2866 yy2arr2 := z.EncBasicHandle().StructToArray 2867 _, _ = yysep2, yy2arr2 2868 const yyr2 bool = false // struct tag has 'toArray' 2869 if yyr2 || yy2arr2 { 2870 r.WriteArrayStart(5) 2871 } else { 2872 r.WriteMapStart(5) 2873 } 2874 if yyr2 || yy2arr2 { 2875 r.WriteArrayElem() 2876 if x.Volumes == nil { 2877 r.EncodeNil() 2878 } else { 2879 if false { 2880 } else { 2881 h.encSlicePtrtoCSIVolume(([]*CSIVolume)(x.Volumes), e) 2882 } 2883 } 2884 } else { 2885 r.WriteMapElemKey() 2886 if z.IsJSONHandle() { 2887 z.WriteStr("\"Volumes\"") 2888 } else { 2889 r.EncodeStringEnc(codecSelferCcUTF8100, `Volumes`) 2890 } 2891 r.WriteMapElemValue() 2892 if x.Volumes == nil { 2893 r.EncodeNil() 2894 } else { 2895 if false { 2896 } else { 2897 h.encSlicePtrtoCSIVolume(([]*CSIVolume)(x.Volumes), e) 2898 } 2899 } 2900 } 2901 if yyr2 || yy2arr2 { 2902 r.WriteArrayElem() 2903 if false { 2904 } else { 2905 if z.EncBasicHandle().StringToRaw { 2906 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 2907 } else { 2908 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 2909 } 2910 } 2911 } else { 2912 r.WriteMapElemKey() 2913 if z.IsJSONHandle() { 2914 z.WriteStr("\"Region\"") 2915 } else { 2916 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 2917 } 2918 r.WriteMapElemValue() 2919 if false { 2920 } else { 2921 if z.EncBasicHandle().StringToRaw { 2922 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 2923 } else { 2924 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 2925 } 2926 } 2927 } 2928 if yyr2 || yy2arr2 { 2929 r.WriteArrayElem() 2930 if false { 2931 } else { 2932 if z.EncBasicHandle().StringToRaw { 2933 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 2934 } else { 2935 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 2936 } 2937 } 2938 } else { 2939 r.WriteMapElemKey() 2940 if z.IsJSONHandle() { 2941 z.WriteStr("\"Namespace\"") 2942 } else { 2943 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 2944 } 2945 r.WriteMapElemValue() 2946 if false { 2947 } else { 2948 if z.EncBasicHandle().StringToRaw { 2949 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 2950 } else { 2951 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 2952 } 2953 } 2954 } 2955 if yyr2 || yy2arr2 { 2956 r.WriteArrayElem() 2957 if false { 2958 } else { 2959 if z.EncBasicHandle().StringToRaw { 2960 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 2961 } else { 2962 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 2963 } 2964 } 2965 } else { 2966 r.WriteMapElemKey() 2967 if z.IsJSONHandle() { 2968 z.WriteStr("\"AuthToken\"") 2969 } else { 2970 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 2971 } 2972 r.WriteMapElemValue() 2973 if false { 2974 } else { 2975 if z.EncBasicHandle().StringToRaw { 2976 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 2977 } else { 2978 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 2979 } 2980 } 2981 } 2982 if yyr2 || yy2arr2 { 2983 r.WriteArrayElem() 2984 if false { 2985 } else { 2986 r.EncodeBool(bool(x.Forwarded)) 2987 } 2988 } else { 2989 r.WriteMapElemKey() 2990 if z.IsJSONHandle() { 2991 z.WriteStr("\"Forwarded\"") 2992 } else { 2993 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 2994 } 2995 r.WriteMapElemValue() 2996 if false { 2997 } else { 2998 r.EncodeBool(bool(x.Forwarded)) 2999 } 3000 } 3001 if yyr2 || yy2arr2 { 3002 r.WriteArrayEnd() 3003 } else { 3004 r.WriteMapEnd() 3005 } 3006 } 3007 } 3008 } 3009 3010 func (x *CSIVolumeRegisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { 3011 var h codecSelfer100 3012 z, r := codec1978.GenHelperDecoder(d) 3013 _, _, _ = h, z, r 3014 if false { 3015 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 3016 z.DecExtension(x, yyxt1) 3017 } else { 3018 yyct2 := r.ContainerType() 3019 if yyct2 == codecSelferValueTypeMap100 { 3020 yyl2 := r.ReadMapStart() 3021 if yyl2 == 0 { 3022 r.ReadMapEnd() 3023 } else { 3024 x.codecDecodeSelfFromMap(yyl2, d) 3025 } 3026 } else if yyct2 == codecSelferValueTypeArray100 { 3027 yyl2 := r.ReadArrayStart() 3028 if yyl2 == 0 { 3029 r.ReadArrayEnd() 3030 } else { 3031 x.codecDecodeSelfFromArray(yyl2, d) 3032 } 3033 } else { 3034 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 3035 } 3036 } 3037 } 3038 3039 func (x *CSIVolumeRegisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 3040 var h codecSelfer100 3041 z, r := codec1978.GenHelperDecoder(d) 3042 _, _, _ = h, z, r 3043 var yyhl3 bool = l >= 0 3044 for yyj3 := 0; ; yyj3++ { 3045 if yyhl3 { 3046 if yyj3 >= l { 3047 break 3048 } 3049 } else { 3050 if r.CheckBreak() { 3051 break 3052 } 3053 } 3054 r.ReadMapElemKey() 3055 yys3 := z.StringView(r.DecodeStringAsBytes()) 3056 r.ReadMapElemValue() 3057 switch yys3 { 3058 case "Volumes": 3059 if r.TryDecodeAsNil() { 3060 x.Volumes = nil 3061 } else { 3062 if false { 3063 } else { 3064 h.decSlicePtrtoCSIVolume((*[]*CSIVolume)(&x.Volumes), d) 3065 } 3066 } 3067 case "Region": 3068 if r.TryDecodeAsNil() { 3069 x.WriteRequest.Region = "" 3070 } else { 3071 x.Region = (string)(r.DecodeString()) 3072 } 3073 case "Namespace": 3074 if r.TryDecodeAsNil() { 3075 x.WriteRequest.Namespace = "" 3076 } else { 3077 x.Namespace = (string)(r.DecodeString()) 3078 } 3079 case "AuthToken": 3080 if r.TryDecodeAsNil() { 3081 x.WriteRequest.AuthToken = "" 3082 } else { 3083 x.AuthToken = (string)(r.DecodeString()) 3084 } 3085 case "Forwarded": 3086 if r.TryDecodeAsNil() { 3087 x.WriteRequest.InternalRpcInfo.Forwarded = false 3088 } else { 3089 x.Forwarded = (bool)(r.DecodeBool()) 3090 } 3091 default: 3092 z.DecStructFieldNotFound(-1, yys3) 3093 } // end switch yys3 3094 } // end for yyj3 3095 r.ReadMapEnd() 3096 } 3097 3098 func (x *CSIVolumeRegisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 3099 var h codecSelfer100 3100 z, r := codec1978.GenHelperDecoder(d) 3101 _, _, _ = h, z, r 3102 var yyj10 int 3103 var yyb10 bool 3104 var yyhl10 bool = l >= 0 3105 yyj10++ 3106 if yyhl10 { 3107 yyb10 = yyj10 > l 3108 } else { 3109 yyb10 = r.CheckBreak() 3110 } 3111 if yyb10 { 3112 r.ReadArrayEnd() 3113 return 3114 } 3115 r.ReadArrayElem() 3116 if r.TryDecodeAsNil() { 3117 x.Volumes = nil 3118 } else { 3119 if false { 3120 } else { 3121 h.decSlicePtrtoCSIVolume((*[]*CSIVolume)(&x.Volumes), d) 3122 } 3123 } 3124 yyj10++ 3125 if yyhl10 { 3126 yyb10 = yyj10 > l 3127 } else { 3128 yyb10 = r.CheckBreak() 3129 } 3130 if yyb10 { 3131 r.ReadArrayEnd() 3132 return 3133 } 3134 r.ReadArrayElem() 3135 if r.TryDecodeAsNil() { 3136 x.WriteRequest.Region = "" 3137 } else { 3138 x.Region = (string)(r.DecodeString()) 3139 } 3140 yyj10++ 3141 if yyhl10 { 3142 yyb10 = yyj10 > l 3143 } else { 3144 yyb10 = r.CheckBreak() 3145 } 3146 if yyb10 { 3147 r.ReadArrayEnd() 3148 return 3149 } 3150 r.ReadArrayElem() 3151 if r.TryDecodeAsNil() { 3152 x.WriteRequest.Namespace = "" 3153 } else { 3154 x.Namespace = (string)(r.DecodeString()) 3155 } 3156 yyj10++ 3157 if yyhl10 { 3158 yyb10 = yyj10 > l 3159 } else { 3160 yyb10 = r.CheckBreak() 3161 } 3162 if yyb10 { 3163 r.ReadArrayEnd() 3164 return 3165 } 3166 r.ReadArrayElem() 3167 if r.TryDecodeAsNil() { 3168 x.WriteRequest.AuthToken = "" 3169 } else { 3170 x.AuthToken = (string)(r.DecodeString()) 3171 } 3172 yyj10++ 3173 if yyhl10 { 3174 yyb10 = yyj10 > l 3175 } else { 3176 yyb10 = r.CheckBreak() 3177 } 3178 if yyb10 { 3179 r.ReadArrayEnd() 3180 return 3181 } 3182 r.ReadArrayElem() 3183 if r.TryDecodeAsNil() { 3184 x.WriteRequest.InternalRpcInfo.Forwarded = false 3185 } else { 3186 x.Forwarded = (bool)(r.DecodeBool()) 3187 } 3188 for { 3189 yyj10++ 3190 if yyhl10 { 3191 yyb10 = yyj10 > l 3192 } else { 3193 yyb10 = r.CheckBreak() 3194 } 3195 if yyb10 { 3196 break 3197 } 3198 r.ReadArrayElem() 3199 z.DecStructFieldNotFound(yyj10-1, "") 3200 } 3201 r.ReadArrayEnd() 3202 } 3203 3204 func (x *CSIVolumeRegisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { 3205 var h codecSelfer100 3206 z, r := codec1978.GenHelperEncoder(e) 3207 _, _, _ = h, z, r 3208 if x == nil { 3209 r.EncodeNil() 3210 } else { 3211 if false { 3212 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 3213 z.EncExtension(x, yyxt1) 3214 } else { 3215 yysep2 := !z.EncBinary() 3216 yy2arr2 := z.EncBasicHandle().StructToArray 3217 _, _ = yysep2, yy2arr2 3218 const yyr2 bool = false // struct tag has 'toArray' 3219 if yyr2 || yy2arr2 { 3220 r.WriteArrayStart(3) 3221 } else { 3222 r.WriteMapStart(3) 3223 } 3224 if yyr2 || yy2arr2 { 3225 r.WriteArrayElem() 3226 if false { 3227 } else { 3228 r.EncodeUint(uint64(x.Index)) 3229 } 3230 } else { 3231 r.WriteMapElemKey() 3232 if z.IsJSONHandle() { 3233 z.WriteStr("\"Index\"") 3234 } else { 3235 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 3236 } 3237 r.WriteMapElemValue() 3238 if false { 3239 } else { 3240 r.EncodeUint(uint64(x.Index)) 3241 } 3242 } 3243 if yyr2 || yy2arr2 { 3244 r.WriteArrayElem() 3245 if false { 3246 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 3247 z.EncExtension(x.LastContact, yyxt7) 3248 } else { 3249 r.EncodeInt(int64(x.LastContact)) 3250 } 3251 } else { 3252 r.WriteMapElemKey() 3253 if z.IsJSONHandle() { 3254 z.WriteStr("\"LastContact\"") 3255 } else { 3256 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 3257 } 3258 r.WriteMapElemValue() 3259 if false { 3260 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 3261 z.EncExtension(x.LastContact, yyxt8) 3262 } else { 3263 r.EncodeInt(int64(x.LastContact)) 3264 } 3265 } 3266 if yyr2 || yy2arr2 { 3267 r.WriteArrayElem() 3268 if false { 3269 } else { 3270 r.EncodeBool(bool(x.KnownLeader)) 3271 } 3272 } else { 3273 r.WriteMapElemKey() 3274 if z.IsJSONHandle() { 3275 z.WriteStr("\"KnownLeader\"") 3276 } else { 3277 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 3278 } 3279 r.WriteMapElemValue() 3280 if false { 3281 } else { 3282 r.EncodeBool(bool(x.KnownLeader)) 3283 } 3284 } 3285 if yyr2 || yy2arr2 { 3286 r.WriteArrayEnd() 3287 } else { 3288 r.WriteMapEnd() 3289 } 3290 } 3291 } 3292 } 3293 3294 func (x *CSIVolumeRegisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { 3295 var h codecSelfer100 3296 z, r := codec1978.GenHelperDecoder(d) 3297 _, _, _ = h, z, r 3298 if false { 3299 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 3300 z.DecExtension(x, yyxt1) 3301 } else { 3302 yyct2 := r.ContainerType() 3303 if yyct2 == codecSelferValueTypeMap100 { 3304 yyl2 := r.ReadMapStart() 3305 if yyl2 == 0 { 3306 r.ReadMapEnd() 3307 } else { 3308 x.codecDecodeSelfFromMap(yyl2, d) 3309 } 3310 } else if yyct2 == codecSelferValueTypeArray100 { 3311 yyl2 := r.ReadArrayStart() 3312 if yyl2 == 0 { 3313 r.ReadArrayEnd() 3314 } else { 3315 x.codecDecodeSelfFromArray(yyl2, d) 3316 } 3317 } else { 3318 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 3319 } 3320 } 3321 } 3322 3323 func (x *CSIVolumeRegisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 3324 var h codecSelfer100 3325 z, r := codec1978.GenHelperDecoder(d) 3326 _, _, _ = h, z, r 3327 var yyhl3 bool = l >= 0 3328 for yyj3 := 0; ; yyj3++ { 3329 if yyhl3 { 3330 if yyj3 >= l { 3331 break 3332 } 3333 } else { 3334 if r.CheckBreak() { 3335 break 3336 } 3337 } 3338 r.ReadMapElemKey() 3339 yys3 := z.StringView(r.DecodeStringAsBytes()) 3340 r.ReadMapElemValue() 3341 switch yys3 { 3342 case "Index": 3343 if r.TryDecodeAsNil() { 3344 x.QueryMeta.Index = 0 3345 } else { 3346 x.Index = (uint64)(r.DecodeUint64()) 3347 } 3348 case "LastContact": 3349 if r.TryDecodeAsNil() { 3350 x.QueryMeta.LastContact = 0 3351 } else { 3352 if false { 3353 } else if yyxt6 := z.Extension(z.I2Rtid(x.LastContact)); yyxt6 != nil { 3354 z.DecExtension(x.LastContact, yyxt6) 3355 } else { 3356 x.LastContact = (time.Duration)(r.DecodeInt64()) 3357 } 3358 } 3359 case "KnownLeader": 3360 if r.TryDecodeAsNil() { 3361 x.QueryMeta.KnownLeader = false 3362 } else { 3363 x.KnownLeader = (bool)(r.DecodeBool()) 3364 } 3365 default: 3366 z.DecStructFieldNotFound(-1, yys3) 3367 } // end switch yys3 3368 } // end for yyj3 3369 r.ReadMapEnd() 3370 } 3371 3372 func (x *CSIVolumeRegisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 3373 var h codecSelfer100 3374 z, r := codec1978.GenHelperDecoder(d) 3375 _, _, _ = h, z, r 3376 var yyj8 int 3377 var yyb8 bool 3378 var yyhl8 bool = l >= 0 3379 yyj8++ 3380 if yyhl8 { 3381 yyb8 = yyj8 > l 3382 } else { 3383 yyb8 = r.CheckBreak() 3384 } 3385 if yyb8 { 3386 r.ReadArrayEnd() 3387 return 3388 } 3389 r.ReadArrayElem() 3390 if r.TryDecodeAsNil() { 3391 x.QueryMeta.Index = 0 3392 } else { 3393 x.Index = (uint64)(r.DecodeUint64()) 3394 } 3395 yyj8++ 3396 if yyhl8 { 3397 yyb8 = yyj8 > l 3398 } else { 3399 yyb8 = r.CheckBreak() 3400 } 3401 if yyb8 { 3402 r.ReadArrayEnd() 3403 return 3404 } 3405 r.ReadArrayElem() 3406 if r.TryDecodeAsNil() { 3407 x.QueryMeta.LastContact = 0 3408 } else { 3409 if false { 3410 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 3411 z.DecExtension(x.LastContact, yyxt11) 3412 } else { 3413 x.LastContact = (time.Duration)(r.DecodeInt64()) 3414 } 3415 } 3416 yyj8++ 3417 if yyhl8 { 3418 yyb8 = yyj8 > l 3419 } else { 3420 yyb8 = r.CheckBreak() 3421 } 3422 if yyb8 { 3423 r.ReadArrayEnd() 3424 return 3425 } 3426 r.ReadArrayElem() 3427 if r.TryDecodeAsNil() { 3428 x.QueryMeta.KnownLeader = false 3429 } else { 3430 x.KnownLeader = (bool)(r.DecodeBool()) 3431 } 3432 for { 3433 yyj8++ 3434 if yyhl8 { 3435 yyb8 = yyj8 > l 3436 } else { 3437 yyb8 = r.CheckBreak() 3438 } 3439 if yyb8 { 3440 break 3441 } 3442 r.ReadArrayElem() 3443 z.DecStructFieldNotFound(yyj8-1, "") 3444 } 3445 r.ReadArrayEnd() 3446 } 3447 3448 func (x *CSIVolumeDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { 3449 var h codecSelfer100 3450 z, r := codec1978.GenHelperEncoder(e) 3451 _, _, _ = h, z, r 3452 if x == nil { 3453 r.EncodeNil() 3454 } else { 3455 if false { 3456 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 3457 z.EncExtension(x, yyxt1) 3458 } else { 3459 yysep2 := !z.EncBinary() 3460 yy2arr2 := z.EncBasicHandle().StructToArray 3461 _, _ = yysep2, yy2arr2 3462 const yyr2 bool = false // struct tag has 'toArray' 3463 if yyr2 || yy2arr2 { 3464 r.WriteArrayStart(5) 3465 } else { 3466 r.WriteMapStart(5) 3467 } 3468 if yyr2 || yy2arr2 { 3469 r.WriteArrayElem() 3470 if x.VolumeIDs == nil { 3471 r.EncodeNil() 3472 } else { 3473 if false { 3474 } else { 3475 z.F.EncSliceStringV(x.VolumeIDs, e) 3476 } 3477 } 3478 } else { 3479 r.WriteMapElemKey() 3480 if z.IsJSONHandle() { 3481 z.WriteStr("\"VolumeIDs\"") 3482 } else { 3483 r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeIDs`) 3484 } 3485 r.WriteMapElemValue() 3486 if x.VolumeIDs == nil { 3487 r.EncodeNil() 3488 } else { 3489 if false { 3490 } else { 3491 z.F.EncSliceStringV(x.VolumeIDs, e) 3492 } 3493 } 3494 } 3495 if yyr2 || yy2arr2 { 3496 r.WriteArrayElem() 3497 if false { 3498 } else { 3499 if z.EncBasicHandle().StringToRaw { 3500 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 3501 } else { 3502 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 3503 } 3504 } 3505 } else { 3506 r.WriteMapElemKey() 3507 if z.IsJSONHandle() { 3508 z.WriteStr("\"Region\"") 3509 } else { 3510 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 3511 } 3512 r.WriteMapElemValue() 3513 if false { 3514 } else { 3515 if z.EncBasicHandle().StringToRaw { 3516 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 3517 } else { 3518 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 3519 } 3520 } 3521 } 3522 if yyr2 || yy2arr2 { 3523 r.WriteArrayElem() 3524 if false { 3525 } else { 3526 if z.EncBasicHandle().StringToRaw { 3527 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 3528 } else { 3529 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 3530 } 3531 } 3532 } else { 3533 r.WriteMapElemKey() 3534 if z.IsJSONHandle() { 3535 z.WriteStr("\"Namespace\"") 3536 } else { 3537 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 3538 } 3539 r.WriteMapElemValue() 3540 if false { 3541 } else { 3542 if z.EncBasicHandle().StringToRaw { 3543 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 3544 } else { 3545 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 3546 } 3547 } 3548 } 3549 if yyr2 || yy2arr2 { 3550 r.WriteArrayElem() 3551 if false { 3552 } else { 3553 if z.EncBasicHandle().StringToRaw { 3554 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 3555 } else { 3556 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 3557 } 3558 } 3559 } else { 3560 r.WriteMapElemKey() 3561 if z.IsJSONHandle() { 3562 z.WriteStr("\"AuthToken\"") 3563 } else { 3564 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 3565 } 3566 r.WriteMapElemValue() 3567 if false { 3568 } else { 3569 if z.EncBasicHandle().StringToRaw { 3570 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 3571 } else { 3572 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 3573 } 3574 } 3575 } 3576 if yyr2 || yy2arr2 { 3577 r.WriteArrayElem() 3578 if false { 3579 } else { 3580 r.EncodeBool(bool(x.Forwarded)) 3581 } 3582 } else { 3583 r.WriteMapElemKey() 3584 if z.IsJSONHandle() { 3585 z.WriteStr("\"Forwarded\"") 3586 } else { 3587 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 3588 } 3589 r.WriteMapElemValue() 3590 if false { 3591 } else { 3592 r.EncodeBool(bool(x.Forwarded)) 3593 } 3594 } 3595 if yyr2 || yy2arr2 { 3596 r.WriteArrayEnd() 3597 } else { 3598 r.WriteMapEnd() 3599 } 3600 } 3601 } 3602 } 3603 3604 func (x *CSIVolumeDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { 3605 var h codecSelfer100 3606 z, r := codec1978.GenHelperDecoder(d) 3607 _, _, _ = h, z, r 3608 if false { 3609 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 3610 z.DecExtension(x, yyxt1) 3611 } else { 3612 yyct2 := r.ContainerType() 3613 if yyct2 == codecSelferValueTypeMap100 { 3614 yyl2 := r.ReadMapStart() 3615 if yyl2 == 0 { 3616 r.ReadMapEnd() 3617 } else { 3618 x.codecDecodeSelfFromMap(yyl2, d) 3619 } 3620 } else if yyct2 == codecSelferValueTypeArray100 { 3621 yyl2 := r.ReadArrayStart() 3622 if yyl2 == 0 { 3623 r.ReadArrayEnd() 3624 } else { 3625 x.codecDecodeSelfFromArray(yyl2, d) 3626 } 3627 } else { 3628 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 3629 } 3630 } 3631 } 3632 3633 func (x *CSIVolumeDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 3634 var h codecSelfer100 3635 z, r := codec1978.GenHelperDecoder(d) 3636 _, _, _ = h, z, r 3637 var yyhl3 bool = l >= 0 3638 for yyj3 := 0; ; yyj3++ { 3639 if yyhl3 { 3640 if yyj3 >= l { 3641 break 3642 } 3643 } else { 3644 if r.CheckBreak() { 3645 break 3646 } 3647 } 3648 r.ReadMapElemKey() 3649 yys3 := z.StringView(r.DecodeStringAsBytes()) 3650 r.ReadMapElemValue() 3651 switch yys3 { 3652 case "VolumeIDs": 3653 if r.TryDecodeAsNil() { 3654 x.VolumeIDs = nil 3655 } else { 3656 if false { 3657 } else { 3658 z.F.DecSliceStringX(&x.VolumeIDs, d) 3659 } 3660 } 3661 case "Region": 3662 if r.TryDecodeAsNil() { 3663 x.WriteRequest.Region = "" 3664 } else { 3665 x.Region = (string)(r.DecodeString()) 3666 } 3667 case "Namespace": 3668 if r.TryDecodeAsNil() { 3669 x.WriteRequest.Namespace = "" 3670 } else { 3671 x.Namespace = (string)(r.DecodeString()) 3672 } 3673 case "AuthToken": 3674 if r.TryDecodeAsNil() { 3675 x.WriteRequest.AuthToken = "" 3676 } else { 3677 x.AuthToken = (string)(r.DecodeString()) 3678 } 3679 case "Forwarded": 3680 if r.TryDecodeAsNil() { 3681 x.WriteRequest.InternalRpcInfo.Forwarded = false 3682 } else { 3683 x.Forwarded = (bool)(r.DecodeBool()) 3684 } 3685 default: 3686 z.DecStructFieldNotFound(-1, yys3) 3687 } // end switch yys3 3688 } // end for yyj3 3689 r.ReadMapEnd() 3690 } 3691 3692 func (x *CSIVolumeDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 3693 var h codecSelfer100 3694 z, r := codec1978.GenHelperDecoder(d) 3695 _, _, _ = h, z, r 3696 var yyj10 int 3697 var yyb10 bool 3698 var yyhl10 bool = l >= 0 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.VolumeIDs = nil 3712 } else { 3713 if false { 3714 } else { 3715 z.F.DecSliceStringX(&x.VolumeIDs, d) 3716 } 3717 } 3718 yyj10++ 3719 if yyhl10 { 3720 yyb10 = yyj10 > l 3721 } else { 3722 yyb10 = r.CheckBreak() 3723 } 3724 if yyb10 { 3725 r.ReadArrayEnd() 3726 return 3727 } 3728 r.ReadArrayElem() 3729 if r.TryDecodeAsNil() { 3730 x.WriteRequest.Region = "" 3731 } else { 3732 x.Region = (string)(r.DecodeString()) 3733 } 3734 yyj10++ 3735 if yyhl10 { 3736 yyb10 = yyj10 > l 3737 } else { 3738 yyb10 = r.CheckBreak() 3739 } 3740 if yyb10 { 3741 r.ReadArrayEnd() 3742 return 3743 } 3744 r.ReadArrayElem() 3745 if r.TryDecodeAsNil() { 3746 x.WriteRequest.Namespace = "" 3747 } else { 3748 x.Namespace = (string)(r.DecodeString()) 3749 } 3750 yyj10++ 3751 if yyhl10 { 3752 yyb10 = yyj10 > l 3753 } else { 3754 yyb10 = r.CheckBreak() 3755 } 3756 if yyb10 { 3757 r.ReadArrayEnd() 3758 return 3759 } 3760 r.ReadArrayElem() 3761 if r.TryDecodeAsNil() { 3762 x.WriteRequest.AuthToken = "" 3763 } else { 3764 x.AuthToken = (string)(r.DecodeString()) 3765 } 3766 yyj10++ 3767 if yyhl10 { 3768 yyb10 = yyj10 > l 3769 } else { 3770 yyb10 = r.CheckBreak() 3771 } 3772 if yyb10 { 3773 r.ReadArrayEnd() 3774 return 3775 } 3776 r.ReadArrayElem() 3777 if r.TryDecodeAsNil() { 3778 x.WriteRequest.InternalRpcInfo.Forwarded = false 3779 } else { 3780 x.Forwarded = (bool)(r.DecodeBool()) 3781 } 3782 for { 3783 yyj10++ 3784 if yyhl10 { 3785 yyb10 = yyj10 > l 3786 } else { 3787 yyb10 = r.CheckBreak() 3788 } 3789 if yyb10 { 3790 break 3791 } 3792 r.ReadArrayElem() 3793 z.DecStructFieldNotFound(yyj10-1, "") 3794 } 3795 r.ReadArrayEnd() 3796 } 3797 3798 func (x *CSIVolumeDeregisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { 3799 var h codecSelfer100 3800 z, r := codec1978.GenHelperEncoder(e) 3801 _, _, _ = h, z, r 3802 if x == nil { 3803 r.EncodeNil() 3804 } else { 3805 if false { 3806 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 3807 z.EncExtension(x, yyxt1) 3808 } else { 3809 yysep2 := !z.EncBinary() 3810 yy2arr2 := z.EncBasicHandle().StructToArray 3811 _, _ = yysep2, yy2arr2 3812 const yyr2 bool = false // struct tag has 'toArray' 3813 if yyr2 || yy2arr2 { 3814 r.WriteArrayStart(3) 3815 } else { 3816 r.WriteMapStart(3) 3817 } 3818 if yyr2 || yy2arr2 { 3819 r.WriteArrayElem() 3820 if false { 3821 } else { 3822 r.EncodeUint(uint64(x.Index)) 3823 } 3824 } else { 3825 r.WriteMapElemKey() 3826 if z.IsJSONHandle() { 3827 z.WriteStr("\"Index\"") 3828 } else { 3829 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 3830 } 3831 r.WriteMapElemValue() 3832 if false { 3833 } else { 3834 r.EncodeUint(uint64(x.Index)) 3835 } 3836 } 3837 if yyr2 || yy2arr2 { 3838 r.WriteArrayElem() 3839 if false { 3840 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 3841 z.EncExtension(x.LastContact, yyxt7) 3842 } else { 3843 r.EncodeInt(int64(x.LastContact)) 3844 } 3845 } else { 3846 r.WriteMapElemKey() 3847 if z.IsJSONHandle() { 3848 z.WriteStr("\"LastContact\"") 3849 } else { 3850 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 3851 } 3852 r.WriteMapElemValue() 3853 if false { 3854 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 3855 z.EncExtension(x.LastContact, yyxt8) 3856 } else { 3857 r.EncodeInt(int64(x.LastContact)) 3858 } 3859 } 3860 if yyr2 || yy2arr2 { 3861 r.WriteArrayElem() 3862 if false { 3863 } else { 3864 r.EncodeBool(bool(x.KnownLeader)) 3865 } 3866 } else { 3867 r.WriteMapElemKey() 3868 if z.IsJSONHandle() { 3869 z.WriteStr("\"KnownLeader\"") 3870 } else { 3871 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 3872 } 3873 r.WriteMapElemValue() 3874 if false { 3875 } else { 3876 r.EncodeBool(bool(x.KnownLeader)) 3877 } 3878 } 3879 if yyr2 || yy2arr2 { 3880 r.WriteArrayEnd() 3881 } else { 3882 r.WriteMapEnd() 3883 } 3884 } 3885 } 3886 } 3887 3888 func (x *CSIVolumeDeregisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { 3889 var h codecSelfer100 3890 z, r := codec1978.GenHelperDecoder(d) 3891 _, _, _ = h, z, r 3892 if false { 3893 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 3894 z.DecExtension(x, yyxt1) 3895 } else { 3896 yyct2 := r.ContainerType() 3897 if yyct2 == codecSelferValueTypeMap100 { 3898 yyl2 := r.ReadMapStart() 3899 if yyl2 == 0 { 3900 r.ReadMapEnd() 3901 } else { 3902 x.codecDecodeSelfFromMap(yyl2, d) 3903 } 3904 } else if yyct2 == codecSelferValueTypeArray100 { 3905 yyl2 := r.ReadArrayStart() 3906 if yyl2 == 0 { 3907 r.ReadArrayEnd() 3908 } else { 3909 x.codecDecodeSelfFromArray(yyl2, d) 3910 } 3911 } else { 3912 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 3913 } 3914 } 3915 } 3916 3917 func (x *CSIVolumeDeregisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 3918 var h codecSelfer100 3919 z, r := codec1978.GenHelperDecoder(d) 3920 _, _, _ = h, z, r 3921 var yyhl3 bool = l >= 0 3922 for yyj3 := 0; ; yyj3++ { 3923 if yyhl3 { 3924 if yyj3 >= l { 3925 break 3926 } 3927 } else { 3928 if r.CheckBreak() { 3929 break 3930 } 3931 } 3932 r.ReadMapElemKey() 3933 yys3 := z.StringView(r.DecodeStringAsBytes()) 3934 r.ReadMapElemValue() 3935 switch yys3 { 3936 case "Index": 3937 if r.TryDecodeAsNil() { 3938 x.QueryMeta.Index = 0 3939 } else { 3940 x.Index = (uint64)(r.DecodeUint64()) 3941 } 3942 case "LastContact": 3943 if r.TryDecodeAsNil() { 3944 x.QueryMeta.LastContact = 0 3945 } else { 3946 if false { 3947 } else if yyxt6 := z.Extension(z.I2Rtid(x.LastContact)); yyxt6 != nil { 3948 z.DecExtension(x.LastContact, yyxt6) 3949 } else { 3950 x.LastContact = (time.Duration)(r.DecodeInt64()) 3951 } 3952 } 3953 case "KnownLeader": 3954 if r.TryDecodeAsNil() { 3955 x.QueryMeta.KnownLeader = false 3956 } else { 3957 x.KnownLeader = (bool)(r.DecodeBool()) 3958 } 3959 default: 3960 z.DecStructFieldNotFound(-1, yys3) 3961 } // end switch yys3 3962 } // end for yyj3 3963 r.ReadMapEnd() 3964 } 3965 3966 func (x *CSIVolumeDeregisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 3967 var h codecSelfer100 3968 z, r := codec1978.GenHelperDecoder(d) 3969 _, _, _ = h, z, r 3970 var yyj8 int 3971 var yyb8 bool 3972 var yyhl8 bool = l >= 0 3973 yyj8++ 3974 if yyhl8 { 3975 yyb8 = yyj8 > l 3976 } else { 3977 yyb8 = r.CheckBreak() 3978 } 3979 if yyb8 { 3980 r.ReadArrayEnd() 3981 return 3982 } 3983 r.ReadArrayElem() 3984 if r.TryDecodeAsNil() { 3985 x.QueryMeta.Index = 0 3986 } else { 3987 x.Index = (uint64)(r.DecodeUint64()) 3988 } 3989 yyj8++ 3990 if yyhl8 { 3991 yyb8 = yyj8 > l 3992 } else { 3993 yyb8 = r.CheckBreak() 3994 } 3995 if yyb8 { 3996 r.ReadArrayEnd() 3997 return 3998 } 3999 r.ReadArrayElem() 4000 if r.TryDecodeAsNil() { 4001 x.QueryMeta.LastContact = 0 4002 } else { 4003 if false { 4004 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 4005 z.DecExtension(x.LastContact, yyxt11) 4006 } else { 4007 x.LastContact = (time.Duration)(r.DecodeInt64()) 4008 } 4009 } 4010 yyj8++ 4011 if yyhl8 { 4012 yyb8 = yyj8 > l 4013 } else { 4014 yyb8 = r.CheckBreak() 4015 } 4016 if yyb8 { 4017 r.ReadArrayEnd() 4018 return 4019 } 4020 r.ReadArrayElem() 4021 if r.TryDecodeAsNil() { 4022 x.QueryMeta.KnownLeader = false 4023 } else { 4024 x.KnownLeader = (bool)(r.DecodeBool()) 4025 } 4026 for { 4027 yyj8++ 4028 if yyhl8 { 4029 yyb8 = yyj8 > l 4030 } else { 4031 yyb8 = r.CheckBreak() 4032 } 4033 if yyb8 { 4034 break 4035 } 4036 r.ReadArrayElem() 4037 z.DecStructFieldNotFound(yyj8-1, "") 4038 } 4039 r.ReadArrayEnd() 4040 } 4041 4042 func (x CSIVolumeClaimMode) CodecEncodeSelf(e *codec1978.Encoder) { 4043 var h codecSelfer100 4044 z, r := codec1978.GenHelperEncoder(e) 4045 _, _, _ = h, z, r 4046 if false { 4047 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 4048 z.EncExtension(x, yyxt1) 4049 } else { 4050 r.EncodeInt(int64(x)) 4051 } 4052 } 4053 4054 func (x *CSIVolumeClaimMode) CodecDecodeSelf(d *codec1978.Decoder) { 4055 var h codecSelfer100 4056 z, r := codec1978.GenHelperDecoder(d) 4057 _, _, _ = h, z, r 4058 if false { 4059 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 4060 z.DecExtension(x, yyxt1) 4061 } else { 4062 *x = (CSIVolumeClaimMode)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 4063 } 4064 } 4065 4066 func (x *CSIVolumeClaimRequest) CodecEncodeSelf(e *codec1978.Encoder) { 4067 var h codecSelfer100 4068 z, r := codec1978.GenHelperEncoder(e) 4069 _, _, _ = h, z, r 4070 if x == nil { 4071 r.EncodeNil() 4072 } else { 4073 if false { 4074 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 4075 z.EncExtension(x, yyxt1) 4076 } else { 4077 yysep2 := !z.EncBinary() 4078 yy2arr2 := z.EncBasicHandle().StructToArray 4079 _, _ = yysep2, yy2arr2 4080 const yyr2 bool = false // struct tag has 'toArray' 4081 if yyr2 || yy2arr2 { 4082 r.WriteArrayStart(7) 4083 } else { 4084 r.WriteMapStart(7) 4085 } 4086 if yyr2 || yy2arr2 { 4087 r.WriteArrayElem() 4088 if false { 4089 } else { 4090 if z.EncBasicHandle().StringToRaw { 4091 r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeID))) 4092 } else { 4093 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeID)) 4094 } 4095 } 4096 } else { 4097 r.WriteMapElemKey() 4098 if z.IsJSONHandle() { 4099 z.WriteStr("\"VolumeID\"") 4100 } else { 4101 r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeID`) 4102 } 4103 r.WriteMapElemValue() 4104 if false { 4105 } else { 4106 if z.EncBasicHandle().StringToRaw { 4107 r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeID))) 4108 } else { 4109 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeID)) 4110 } 4111 } 4112 } 4113 if yyr2 || yy2arr2 { 4114 r.WriteArrayElem() 4115 if false { 4116 } else { 4117 if z.EncBasicHandle().StringToRaw { 4118 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocationID))) 4119 } else { 4120 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocationID)) 4121 } 4122 } 4123 } else { 4124 r.WriteMapElemKey() 4125 if z.IsJSONHandle() { 4126 z.WriteStr("\"AllocationID\"") 4127 } else { 4128 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocationID`) 4129 } 4130 r.WriteMapElemValue() 4131 if false { 4132 } else { 4133 if z.EncBasicHandle().StringToRaw { 4134 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocationID))) 4135 } else { 4136 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocationID)) 4137 } 4138 } 4139 } 4140 if yyr2 || yy2arr2 { 4141 r.WriteArrayElem() 4142 x.Claim.CodecEncodeSelf(e) 4143 } else { 4144 r.WriteMapElemKey() 4145 if z.IsJSONHandle() { 4146 z.WriteStr("\"Claim\"") 4147 } else { 4148 r.EncodeStringEnc(codecSelferCcUTF8100, `Claim`) 4149 } 4150 r.WriteMapElemValue() 4151 x.Claim.CodecEncodeSelf(e) 4152 } 4153 if yyr2 || yy2arr2 { 4154 r.WriteArrayElem() 4155 if false { 4156 } else { 4157 if z.EncBasicHandle().StringToRaw { 4158 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 4159 } else { 4160 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 4161 } 4162 } 4163 } else { 4164 r.WriteMapElemKey() 4165 if z.IsJSONHandle() { 4166 z.WriteStr("\"Region\"") 4167 } else { 4168 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 4169 } 4170 r.WriteMapElemValue() 4171 if false { 4172 } else { 4173 if z.EncBasicHandle().StringToRaw { 4174 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 4175 } else { 4176 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 4177 } 4178 } 4179 } 4180 if yyr2 || yy2arr2 { 4181 r.WriteArrayElem() 4182 if false { 4183 } else { 4184 if z.EncBasicHandle().StringToRaw { 4185 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 4186 } else { 4187 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 4188 } 4189 } 4190 } else { 4191 r.WriteMapElemKey() 4192 if z.IsJSONHandle() { 4193 z.WriteStr("\"Namespace\"") 4194 } else { 4195 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 4196 } 4197 r.WriteMapElemValue() 4198 if false { 4199 } else { 4200 if z.EncBasicHandle().StringToRaw { 4201 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 4202 } else { 4203 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 4204 } 4205 } 4206 } 4207 if yyr2 || yy2arr2 { 4208 r.WriteArrayElem() 4209 if false { 4210 } else { 4211 if z.EncBasicHandle().StringToRaw { 4212 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 4213 } else { 4214 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 4215 } 4216 } 4217 } else { 4218 r.WriteMapElemKey() 4219 if z.IsJSONHandle() { 4220 z.WriteStr("\"AuthToken\"") 4221 } else { 4222 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 4223 } 4224 r.WriteMapElemValue() 4225 if false { 4226 } else { 4227 if z.EncBasicHandle().StringToRaw { 4228 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 4229 } else { 4230 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 4231 } 4232 } 4233 } 4234 if yyr2 || yy2arr2 { 4235 r.WriteArrayElem() 4236 if false { 4237 } else { 4238 r.EncodeBool(bool(x.Forwarded)) 4239 } 4240 } else { 4241 r.WriteMapElemKey() 4242 if z.IsJSONHandle() { 4243 z.WriteStr("\"Forwarded\"") 4244 } else { 4245 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 4246 } 4247 r.WriteMapElemValue() 4248 if false { 4249 } else { 4250 r.EncodeBool(bool(x.Forwarded)) 4251 } 4252 } 4253 if yyr2 || yy2arr2 { 4254 r.WriteArrayEnd() 4255 } else { 4256 r.WriteMapEnd() 4257 } 4258 } 4259 } 4260 } 4261 4262 func (x *CSIVolumeClaimRequest) CodecDecodeSelf(d *codec1978.Decoder) { 4263 var h codecSelfer100 4264 z, r := codec1978.GenHelperDecoder(d) 4265 _, _, _ = h, z, r 4266 if false { 4267 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 4268 z.DecExtension(x, yyxt1) 4269 } else { 4270 yyct2 := r.ContainerType() 4271 if yyct2 == codecSelferValueTypeMap100 { 4272 yyl2 := r.ReadMapStart() 4273 if yyl2 == 0 { 4274 r.ReadMapEnd() 4275 } else { 4276 x.codecDecodeSelfFromMap(yyl2, d) 4277 } 4278 } else if yyct2 == codecSelferValueTypeArray100 { 4279 yyl2 := r.ReadArrayStart() 4280 if yyl2 == 0 { 4281 r.ReadArrayEnd() 4282 } else { 4283 x.codecDecodeSelfFromArray(yyl2, d) 4284 } 4285 } else { 4286 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 4287 } 4288 } 4289 } 4290 4291 func (x *CSIVolumeClaimRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 4292 var h codecSelfer100 4293 z, r := codec1978.GenHelperDecoder(d) 4294 _, _, _ = h, z, r 4295 var yyhl3 bool = l >= 0 4296 for yyj3 := 0; ; yyj3++ { 4297 if yyhl3 { 4298 if yyj3 >= l { 4299 break 4300 } 4301 } else { 4302 if r.CheckBreak() { 4303 break 4304 } 4305 } 4306 r.ReadMapElemKey() 4307 yys3 := z.StringView(r.DecodeStringAsBytes()) 4308 r.ReadMapElemValue() 4309 switch yys3 { 4310 case "VolumeID": 4311 if r.TryDecodeAsNil() { 4312 x.VolumeID = "" 4313 } else { 4314 x.VolumeID = (string)(r.DecodeString()) 4315 } 4316 case "AllocationID": 4317 if r.TryDecodeAsNil() { 4318 x.AllocationID = "" 4319 } else { 4320 x.AllocationID = (string)(r.DecodeString()) 4321 } 4322 case "Claim": 4323 if r.TryDecodeAsNil() { 4324 x.Claim = 0 4325 } else { 4326 x.Claim.CodecDecodeSelf(d) 4327 } 4328 case "Region": 4329 if r.TryDecodeAsNil() { 4330 x.WriteRequest.Region = "" 4331 } else { 4332 x.Region = (string)(r.DecodeString()) 4333 } 4334 case "Namespace": 4335 if r.TryDecodeAsNil() { 4336 x.WriteRequest.Namespace = "" 4337 } else { 4338 x.Namespace = (string)(r.DecodeString()) 4339 } 4340 case "AuthToken": 4341 if r.TryDecodeAsNil() { 4342 x.WriteRequest.AuthToken = "" 4343 } else { 4344 x.AuthToken = (string)(r.DecodeString()) 4345 } 4346 case "Forwarded": 4347 if r.TryDecodeAsNil() { 4348 x.WriteRequest.InternalRpcInfo.Forwarded = false 4349 } else { 4350 x.Forwarded = (bool)(r.DecodeBool()) 4351 } 4352 default: 4353 z.DecStructFieldNotFound(-1, yys3) 4354 } // end switch yys3 4355 } // end for yyj3 4356 r.ReadMapEnd() 4357 } 4358 4359 func (x *CSIVolumeClaimRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 4360 var h codecSelfer100 4361 z, r := codec1978.GenHelperDecoder(d) 4362 _, _, _ = h, z, r 4363 var yyj11 int 4364 var yyb11 bool 4365 var yyhl11 bool = l >= 0 4366 yyj11++ 4367 if yyhl11 { 4368 yyb11 = yyj11 > l 4369 } else { 4370 yyb11 = r.CheckBreak() 4371 } 4372 if yyb11 { 4373 r.ReadArrayEnd() 4374 return 4375 } 4376 r.ReadArrayElem() 4377 if r.TryDecodeAsNil() { 4378 x.VolumeID = "" 4379 } else { 4380 x.VolumeID = (string)(r.DecodeString()) 4381 } 4382 yyj11++ 4383 if yyhl11 { 4384 yyb11 = yyj11 > l 4385 } else { 4386 yyb11 = r.CheckBreak() 4387 } 4388 if yyb11 { 4389 r.ReadArrayEnd() 4390 return 4391 } 4392 r.ReadArrayElem() 4393 if r.TryDecodeAsNil() { 4394 x.AllocationID = "" 4395 } else { 4396 x.AllocationID = (string)(r.DecodeString()) 4397 } 4398 yyj11++ 4399 if yyhl11 { 4400 yyb11 = yyj11 > l 4401 } else { 4402 yyb11 = r.CheckBreak() 4403 } 4404 if yyb11 { 4405 r.ReadArrayEnd() 4406 return 4407 } 4408 r.ReadArrayElem() 4409 if r.TryDecodeAsNil() { 4410 x.Claim = 0 4411 } else { 4412 x.Claim.CodecDecodeSelf(d) 4413 } 4414 yyj11++ 4415 if yyhl11 { 4416 yyb11 = yyj11 > l 4417 } else { 4418 yyb11 = r.CheckBreak() 4419 } 4420 if yyb11 { 4421 r.ReadArrayEnd() 4422 return 4423 } 4424 r.ReadArrayElem() 4425 if r.TryDecodeAsNil() { 4426 x.WriteRequest.Region = "" 4427 } else { 4428 x.Region = (string)(r.DecodeString()) 4429 } 4430 yyj11++ 4431 if yyhl11 { 4432 yyb11 = yyj11 > l 4433 } else { 4434 yyb11 = r.CheckBreak() 4435 } 4436 if yyb11 { 4437 r.ReadArrayEnd() 4438 return 4439 } 4440 r.ReadArrayElem() 4441 if r.TryDecodeAsNil() { 4442 x.WriteRequest.Namespace = "" 4443 } else { 4444 x.Namespace = (string)(r.DecodeString()) 4445 } 4446 yyj11++ 4447 if yyhl11 { 4448 yyb11 = yyj11 > l 4449 } else { 4450 yyb11 = r.CheckBreak() 4451 } 4452 if yyb11 { 4453 r.ReadArrayEnd() 4454 return 4455 } 4456 r.ReadArrayElem() 4457 if r.TryDecodeAsNil() { 4458 x.WriteRequest.AuthToken = "" 4459 } else { 4460 x.AuthToken = (string)(r.DecodeString()) 4461 } 4462 yyj11++ 4463 if yyhl11 { 4464 yyb11 = yyj11 > l 4465 } else { 4466 yyb11 = r.CheckBreak() 4467 } 4468 if yyb11 { 4469 r.ReadArrayEnd() 4470 return 4471 } 4472 r.ReadArrayElem() 4473 if r.TryDecodeAsNil() { 4474 x.WriteRequest.InternalRpcInfo.Forwarded = false 4475 } else { 4476 x.Forwarded = (bool)(r.DecodeBool()) 4477 } 4478 for { 4479 yyj11++ 4480 if yyhl11 { 4481 yyb11 = yyj11 > l 4482 } else { 4483 yyb11 = r.CheckBreak() 4484 } 4485 if yyb11 { 4486 break 4487 } 4488 r.ReadArrayElem() 4489 z.DecStructFieldNotFound(yyj11-1, "") 4490 } 4491 r.ReadArrayEnd() 4492 } 4493 4494 func (x *CSIVolumeClaimResponse) CodecEncodeSelf(e *codec1978.Encoder) { 4495 var h codecSelfer100 4496 z, r := codec1978.GenHelperEncoder(e) 4497 _, _, _ = h, z, r 4498 if x == nil { 4499 r.EncodeNil() 4500 } else { 4501 if false { 4502 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 4503 z.EncExtension(x, yyxt1) 4504 } else { 4505 yysep2 := !z.EncBinary() 4506 yy2arr2 := z.EncBasicHandle().StructToArray 4507 _, _ = yysep2, yy2arr2 4508 const yyr2 bool = false // struct tag has 'toArray' 4509 if yyr2 || yy2arr2 { 4510 r.WriteArrayStart(5) 4511 } else { 4512 r.WriteMapStart(5) 4513 } 4514 if yyr2 || yy2arr2 { 4515 r.WriteArrayElem() 4516 if x.PublishContext == nil { 4517 r.EncodeNil() 4518 } else { 4519 if false { 4520 } else { 4521 z.F.EncMapStringStringV(x.PublishContext, e) 4522 } 4523 } 4524 } else { 4525 r.WriteMapElemKey() 4526 if z.IsJSONHandle() { 4527 z.WriteStr("\"PublishContext\"") 4528 } else { 4529 r.EncodeStringEnc(codecSelferCcUTF8100, `PublishContext`) 4530 } 4531 r.WriteMapElemValue() 4532 if x.PublishContext == nil { 4533 r.EncodeNil() 4534 } else { 4535 if false { 4536 } else { 4537 z.F.EncMapStringStringV(x.PublishContext, e) 4538 } 4539 } 4540 } 4541 var yyn6 bool 4542 if x.Volume == nil { 4543 yyn6 = true 4544 goto LABEL6 4545 } 4546 LABEL6: 4547 if yyr2 || yy2arr2 { 4548 if yyn6 { 4549 r.WriteArrayElem() 4550 r.EncodeNil() 4551 } else { 4552 r.WriteArrayElem() 4553 if x.Volume == nil { 4554 r.EncodeNil() 4555 } else { 4556 x.Volume.CodecEncodeSelf(e) 4557 } 4558 } 4559 } else { 4560 r.WriteMapElemKey() 4561 if z.IsJSONHandle() { 4562 z.WriteStr("\"Volume\"") 4563 } else { 4564 r.EncodeStringEnc(codecSelferCcUTF8100, `Volume`) 4565 } 4566 r.WriteMapElemValue() 4567 if yyn6 { 4568 r.EncodeNil() 4569 } else { 4570 if x.Volume == nil { 4571 r.EncodeNil() 4572 } else { 4573 x.Volume.CodecEncodeSelf(e) 4574 } 4575 } 4576 } 4577 if yyr2 || yy2arr2 { 4578 r.WriteArrayElem() 4579 if false { 4580 } else { 4581 r.EncodeUint(uint64(x.Index)) 4582 } 4583 } else { 4584 r.WriteMapElemKey() 4585 if z.IsJSONHandle() { 4586 z.WriteStr("\"Index\"") 4587 } else { 4588 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 4589 } 4590 r.WriteMapElemValue() 4591 if false { 4592 } else { 4593 r.EncodeUint(uint64(x.Index)) 4594 } 4595 } 4596 if yyr2 || yy2arr2 { 4597 r.WriteArrayElem() 4598 if false { 4599 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 4600 z.EncExtension(x.LastContact, yyxt13) 4601 } else { 4602 r.EncodeInt(int64(x.LastContact)) 4603 } 4604 } else { 4605 r.WriteMapElemKey() 4606 if z.IsJSONHandle() { 4607 z.WriteStr("\"LastContact\"") 4608 } else { 4609 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 4610 } 4611 r.WriteMapElemValue() 4612 if false { 4613 } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { 4614 z.EncExtension(x.LastContact, yyxt14) 4615 } else { 4616 r.EncodeInt(int64(x.LastContact)) 4617 } 4618 } 4619 if yyr2 || yy2arr2 { 4620 r.WriteArrayElem() 4621 if false { 4622 } else { 4623 r.EncodeBool(bool(x.KnownLeader)) 4624 } 4625 } else { 4626 r.WriteMapElemKey() 4627 if z.IsJSONHandle() { 4628 z.WriteStr("\"KnownLeader\"") 4629 } else { 4630 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 4631 } 4632 r.WriteMapElemValue() 4633 if false { 4634 } else { 4635 r.EncodeBool(bool(x.KnownLeader)) 4636 } 4637 } 4638 if yyr2 || yy2arr2 { 4639 r.WriteArrayEnd() 4640 } else { 4641 r.WriteMapEnd() 4642 } 4643 } 4644 } 4645 } 4646 4647 func (x *CSIVolumeClaimResponse) CodecDecodeSelf(d *codec1978.Decoder) { 4648 var h codecSelfer100 4649 z, r := codec1978.GenHelperDecoder(d) 4650 _, _, _ = h, z, r 4651 if false { 4652 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 4653 z.DecExtension(x, yyxt1) 4654 } else { 4655 yyct2 := r.ContainerType() 4656 if yyct2 == codecSelferValueTypeMap100 { 4657 yyl2 := r.ReadMapStart() 4658 if yyl2 == 0 { 4659 r.ReadMapEnd() 4660 } else { 4661 x.codecDecodeSelfFromMap(yyl2, d) 4662 } 4663 } else if yyct2 == codecSelferValueTypeArray100 { 4664 yyl2 := r.ReadArrayStart() 4665 if yyl2 == 0 { 4666 r.ReadArrayEnd() 4667 } else { 4668 x.codecDecodeSelfFromArray(yyl2, d) 4669 } 4670 } else { 4671 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 4672 } 4673 } 4674 } 4675 4676 func (x *CSIVolumeClaimResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 4677 var h codecSelfer100 4678 z, r := codec1978.GenHelperDecoder(d) 4679 _, _, _ = h, z, r 4680 var yyhl3 bool = l >= 0 4681 for yyj3 := 0; ; yyj3++ { 4682 if yyhl3 { 4683 if yyj3 >= l { 4684 break 4685 } 4686 } else { 4687 if r.CheckBreak() { 4688 break 4689 } 4690 } 4691 r.ReadMapElemKey() 4692 yys3 := z.StringView(r.DecodeStringAsBytes()) 4693 r.ReadMapElemValue() 4694 switch yys3 { 4695 case "PublishContext": 4696 if r.TryDecodeAsNil() { 4697 x.PublishContext = nil 4698 } else { 4699 if false { 4700 } else { 4701 z.F.DecMapStringStringX(&x.PublishContext, d) 4702 } 4703 } 4704 case "Volume": 4705 if r.TryDecodeAsNil() { 4706 if true && x.Volume != nil { 4707 x.Volume = nil 4708 } 4709 } else { 4710 if x.Volume == nil { 4711 x.Volume = new(CSIVolume) 4712 } 4713 4714 x.Volume.CodecDecodeSelf(d) 4715 } 4716 case "Index": 4717 if r.TryDecodeAsNil() { 4718 x.QueryMeta.Index = 0 4719 } else { 4720 x.Index = (uint64)(r.DecodeUint64()) 4721 } 4722 case "LastContact": 4723 if r.TryDecodeAsNil() { 4724 x.QueryMeta.LastContact = 0 4725 } else { 4726 if false { 4727 } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { 4728 z.DecExtension(x.LastContact, yyxt9) 4729 } else { 4730 x.LastContact = (time.Duration)(r.DecodeInt64()) 4731 } 4732 } 4733 case "KnownLeader": 4734 if r.TryDecodeAsNil() { 4735 x.QueryMeta.KnownLeader = false 4736 } else { 4737 x.KnownLeader = (bool)(r.DecodeBool()) 4738 } 4739 default: 4740 z.DecStructFieldNotFound(-1, yys3) 4741 } // end switch yys3 4742 } // end for yyj3 4743 r.ReadMapEnd() 4744 } 4745 4746 func (x *CSIVolumeClaimResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 4747 var h codecSelfer100 4748 z, r := codec1978.GenHelperDecoder(d) 4749 _, _, _ = h, z, r 4750 var yyj11 int 4751 var yyb11 bool 4752 var yyhl11 bool = l >= 0 4753 yyj11++ 4754 if yyhl11 { 4755 yyb11 = yyj11 > l 4756 } else { 4757 yyb11 = r.CheckBreak() 4758 } 4759 if yyb11 { 4760 r.ReadArrayEnd() 4761 return 4762 } 4763 r.ReadArrayElem() 4764 if r.TryDecodeAsNil() { 4765 x.PublishContext = nil 4766 } else { 4767 if false { 4768 } else { 4769 z.F.DecMapStringStringX(&x.PublishContext, d) 4770 } 4771 } 4772 yyj11++ 4773 if yyhl11 { 4774 yyb11 = yyj11 > l 4775 } else { 4776 yyb11 = r.CheckBreak() 4777 } 4778 if yyb11 { 4779 r.ReadArrayEnd() 4780 return 4781 } 4782 r.ReadArrayElem() 4783 if r.TryDecodeAsNil() { 4784 if true && x.Volume != nil { 4785 x.Volume = nil 4786 } 4787 } else { 4788 if x.Volume == nil { 4789 x.Volume = new(CSIVolume) 4790 } 4791 4792 x.Volume.CodecDecodeSelf(d) 4793 } 4794 yyj11++ 4795 if yyhl11 { 4796 yyb11 = yyj11 > l 4797 } else { 4798 yyb11 = r.CheckBreak() 4799 } 4800 if yyb11 { 4801 r.ReadArrayEnd() 4802 return 4803 } 4804 r.ReadArrayElem() 4805 if r.TryDecodeAsNil() { 4806 x.QueryMeta.Index = 0 4807 } else { 4808 x.Index = (uint64)(r.DecodeUint64()) 4809 } 4810 yyj11++ 4811 if yyhl11 { 4812 yyb11 = yyj11 > l 4813 } else { 4814 yyb11 = r.CheckBreak() 4815 } 4816 if yyb11 { 4817 r.ReadArrayEnd() 4818 return 4819 } 4820 r.ReadArrayElem() 4821 if r.TryDecodeAsNil() { 4822 x.QueryMeta.LastContact = 0 4823 } else { 4824 if false { 4825 } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { 4826 z.DecExtension(x.LastContact, yyxt17) 4827 } else { 4828 x.LastContact = (time.Duration)(r.DecodeInt64()) 4829 } 4830 } 4831 yyj11++ 4832 if yyhl11 { 4833 yyb11 = yyj11 > l 4834 } else { 4835 yyb11 = r.CheckBreak() 4836 } 4837 if yyb11 { 4838 r.ReadArrayEnd() 4839 return 4840 } 4841 r.ReadArrayElem() 4842 if r.TryDecodeAsNil() { 4843 x.QueryMeta.KnownLeader = false 4844 } else { 4845 x.KnownLeader = (bool)(r.DecodeBool()) 4846 } 4847 for { 4848 yyj11++ 4849 if yyhl11 { 4850 yyb11 = yyj11 > l 4851 } else { 4852 yyb11 = r.CheckBreak() 4853 } 4854 if yyb11 { 4855 break 4856 } 4857 r.ReadArrayElem() 4858 z.DecStructFieldNotFound(yyj11-1, "") 4859 } 4860 r.ReadArrayEnd() 4861 } 4862 4863 func (x *CSIVolumeListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 4864 var h codecSelfer100 4865 z, r := codec1978.GenHelperEncoder(e) 4866 _, _, _ = h, z, r 4867 if x == nil { 4868 r.EncodeNil() 4869 } else { 4870 if false { 4871 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 4872 z.EncExtension(x, yyxt1) 4873 } else { 4874 yysep2 := !z.EncBinary() 4875 yy2arr2 := z.EncBasicHandle().StructToArray 4876 _, _ = yysep2, yy2arr2 4877 const yyr2 bool = false // struct tag has 'toArray' 4878 if yyr2 || yy2arr2 { 4879 r.WriteArrayStart(10) 4880 } else { 4881 r.WriteMapStart(10) 4882 } 4883 if yyr2 || yy2arr2 { 4884 r.WriteArrayElem() 4885 if false { 4886 } else { 4887 if z.EncBasicHandle().StringToRaw { 4888 r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) 4889 } else { 4890 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) 4891 } 4892 } 4893 } else { 4894 r.WriteMapElemKey() 4895 if z.IsJSONHandle() { 4896 z.WriteStr("\"PluginID\"") 4897 } else { 4898 r.EncodeStringEnc(codecSelferCcUTF8100, `PluginID`) 4899 } 4900 r.WriteMapElemValue() 4901 if false { 4902 } else { 4903 if z.EncBasicHandle().StringToRaw { 4904 r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) 4905 } else { 4906 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) 4907 } 4908 } 4909 } 4910 if yyr2 || yy2arr2 { 4911 r.WriteArrayElem() 4912 if false { 4913 } else { 4914 if z.EncBasicHandle().StringToRaw { 4915 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 4916 } else { 4917 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 4918 } 4919 } 4920 } else { 4921 r.WriteMapElemKey() 4922 if z.IsJSONHandle() { 4923 z.WriteStr("\"NodeID\"") 4924 } else { 4925 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 4926 } 4927 r.WriteMapElemValue() 4928 if false { 4929 } else { 4930 if z.EncBasicHandle().StringToRaw { 4931 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 4932 } else { 4933 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 4934 } 4935 } 4936 } 4937 if yyr2 || yy2arr2 { 4938 r.WriteArrayElem() 4939 if false { 4940 } else { 4941 if z.EncBasicHandle().StringToRaw { 4942 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 4943 } else { 4944 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 4945 } 4946 } 4947 } else { 4948 r.WriteMapElemKey() 4949 if z.IsJSONHandle() { 4950 z.WriteStr("\"Region\"") 4951 } else { 4952 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 4953 } 4954 r.WriteMapElemValue() 4955 if false { 4956 } else { 4957 if z.EncBasicHandle().StringToRaw { 4958 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 4959 } else { 4960 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 4961 } 4962 } 4963 } 4964 if yyr2 || yy2arr2 { 4965 r.WriteArrayElem() 4966 if false { 4967 } else { 4968 if z.EncBasicHandle().StringToRaw { 4969 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 4970 } else { 4971 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 4972 } 4973 } 4974 } else { 4975 r.WriteMapElemKey() 4976 if z.IsJSONHandle() { 4977 z.WriteStr("\"Namespace\"") 4978 } else { 4979 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 4980 } 4981 r.WriteMapElemValue() 4982 if false { 4983 } else { 4984 if z.EncBasicHandle().StringToRaw { 4985 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 4986 } else { 4987 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 4988 } 4989 } 4990 } 4991 if yyr2 || yy2arr2 { 4992 r.WriteArrayElem() 4993 if false { 4994 } else { 4995 r.EncodeUint(uint64(x.MinQueryIndex)) 4996 } 4997 } else { 4998 r.WriteMapElemKey() 4999 if z.IsJSONHandle() { 5000 z.WriteStr("\"MinQueryIndex\"") 5001 } else { 5002 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 5003 } 5004 r.WriteMapElemValue() 5005 if false { 5006 } else { 5007 r.EncodeUint(uint64(x.MinQueryIndex)) 5008 } 5009 } 5010 if yyr2 || yy2arr2 { 5011 r.WriteArrayElem() 5012 if false { 5013 } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { 5014 z.EncExtension(x.MaxQueryTime, yyxt19) 5015 } else { 5016 r.EncodeInt(int64(x.MaxQueryTime)) 5017 } 5018 } else { 5019 r.WriteMapElemKey() 5020 if z.IsJSONHandle() { 5021 z.WriteStr("\"MaxQueryTime\"") 5022 } else { 5023 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 5024 } 5025 r.WriteMapElemValue() 5026 if false { 5027 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 5028 z.EncExtension(x.MaxQueryTime, yyxt20) 5029 } else { 5030 r.EncodeInt(int64(x.MaxQueryTime)) 5031 } 5032 } 5033 if yyr2 || yy2arr2 { 5034 r.WriteArrayElem() 5035 if false { 5036 } else { 5037 r.EncodeBool(bool(x.AllowStale)) 5038 } 5039 } else { 5040 r.WriteMapElemKey() 5041 if z.IsJSONHandle() { 5042 z.WriteStr("\"AllowStale\"") 5043 } else { 5044 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 5045 } 5046 r.WriteMapElemValue() 5047 if false { 5048 } else { 5049 r.EncodeBool(bool(x.AllowStale)) 5050 } 5051 } 5052 if yyr2 || yy2arr2 { 5053 r.WriteArrayElem() 5054 if false { 5055 } else { 5056 if z.EncBasicHandle().StringToRaw { 5057 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 5058 } else { 5059 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 5060 } 5061 } 5062 } else { 5063 r.WriteMapElemKey() 5064 if z.IsJSONHandle() { 5065 z.WriteStr("\"Prefix\"") 5066 } else { 5067 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 5068 } 5069 r.WriteMapElemValue() 5070 if false { 5071 } else { 5072 if z.EncBasicHandle().StringToRaw { 5073 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 5074 } else { 5075 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 5076 } 5077 } 5078 } 5079 if yyr2 || yy2arr2 { 5080 r.WriteArrayElem() 5081 if false { 5082 } else { 5083 if z.EncBasicHandle().StringToRaw { 5084 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 5085 } else { 5086 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 5087 } 5088 } 5089 } else { 5090 r.WriteMapElemKey() 5091 if z.IsJSONHandle() { 5092 z.WriteStr("\"AuthToken\"") 5093 } else { 5094 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 5095 } 5096 r.WriteMapElemValue() 5097 if false { 5098 } else { 5099 if z.EncBasicHandle().StringToRaw { 5100 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 5101 } else { 5102 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 5103 } 5104 } 5105 } 5106 if yyr2 || yy2arr2 { 5107 r.WriteArrayElem() 5108 if false { 5109 } else { 5110 r.EncodeBool(bool(x.Forwarded)) 5111 } 5112 } else { 5113 r.WriteMapElemKey() 5114 if z.IsJSONHandle() { 5115 z.WriteStr("\"Forwarded\"") 5116 } else { 5117 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 5118 } 5119 r.WriteMapElemValue() 5120 if false { 5121 } else { 5122 r.EncodeBool(bool(x.Forwarded)) 5123 } 5124 } 5125 if yyr2 || yy2arr2 { 5126 r.WriteArrayEnd() 5127 } else { 5128 r.WriteMapEnd() 5129 } 5130 } 5131 } 5132 } 5133 5134 func (x *CSIVolumeListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 5135 var h codecSelfer100 5136 z, r := codec1978.GenHelperDecoder(d) 5137 _, _, _ = h, z, r 5138 if false { 5139 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 5140 z.DecExtension(x, yyxt1) 5141 } else { 5142 yyct2 := r.ContainerType() 5143 if yyct2 == codecSelferValueTypeMap100 { 5144 yyl2 := r.ReadMapStart() 5145 if yyl2 == 0 { 5146 r.ReadMapEnd() 5147 } else { 5148 x.codecDecodeSelfFromMap(yyl2, d) 5149 } 5150 } else if yyct2 == codecSelferValueTypeArray100 { 5151 yyl2 := r.ReadArrayStart() 5152 if yyl2 == 0 { 5153 r.ReadArrayEnd() 5154 } else { 5155 x.codecDecodeSelfFromArray(yyl2, d) 5156 } 5157 } else { 5158 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 5159 } 5160 } 5161 } 5162 5163 func (x *CSIVolumeListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 5164 var h codecSelfer100 5165 z, r := codec1978.GenHelperDecoder(d) 5166 _, _, _ = h, z, r 5167 var yyhl3 bool = l >= 0 5168 for yyj3 := 0; ; yyj3++ { 5169 if yyhl3 { 5170 if yyj3 >= l { 5171 break 5172 } 5173 } else { 5174 if r.CheckBreak() { 5175 break 5176 } 5177 } 5178 r.ReadMapElemKey() 5179 yys3 := z.StringView(r.DecodeStringAsBytes()) 5180 r.ReadMapElemValue() 5181 switch yys3 { 5182 case "PluginID": 5183 if r.TryDecodeAsNil() { 5184 x.PluginID = "" 5185 } else { 5186 x.PluginID = (string)(r.DecodeString()) 5187 } 5188 case "NodeID": 5189 if r.TryDecodeAsNil() { 5190 x.NodeID = "" 5191 } else { 5192 x.NodeID = (string)(r.DecodeString()) 5193 } 5194 case "Region": 5195 if r.TryDecodeAsNil() { 5196 x.QueryOptions.Region = "" 5197 } else { 5198 x.Region = (string)(r.DecodeString()) 5199 } 5200 case "Namespace": 5201 if r.TryDecodeAsNil() { 5202 x.QueryOptions.Namespace = "" 5203 } else { 5204 x.Namespace = (string)(r.DecodeString()) 5205 } 5206 case "MinQueryIndex": 5207 if r.TryDecodeAsNil() { 5208 x.QueryOptions.MinQueryIndex = 0 5209 } else { 5210 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 5211 } 5212 case "MaxQueryTime": 5213 if r.TryDecodeAsNil() { 5214 x.QueryOptions.MaxQueryTime = 0 5215 } else { 5216 if false { 5217 } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { 5218 z.DecExtension(x.MaxQueryTime, yyxt10) 5219 } else { 5220 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 5221 } 5222 } 5223 case "AllowStale": 5224 if r.TryDecodeAsNil() { 5225 x.QueryOptions.AllowStale = false 5226 } else { 5227 x.AllowStale = (bool)(r.DecodeBool()) 5228 } 5229 case "Prefix": 5230 if r.TryDecodeAsNil() { 5231 x.QueryOptions.Prefix = "" 5232 } else { 5233 x.Prefix = (string)(r.DecodeString()) 5234 } 5235 case "AuthToken": 5236 if r.TryDecodeAsNil() { 5237 x.QueryOptions.AuthToken = "" 5238 } else { 5239 x.AuthToken = (string)(r.DecodeString()) 5240 } 5241 case "Forwarded": 5242 if r.TryDecodeAsNil() { 5243 x.QueryOptions.InternalRpcInfo.Forwarded = false 5244 } else { 5245 x.Forwarded = (bool)(r.DecodeBool()) 5246 } 5247 default: 5248 z.DecStructFieldNotFound(-1, yys3) 5249 } // end switch yys3 5250 } // end for yyj3 5251 r.ReadMapEnd() 5252 } 5253 5254 func (x *CSIVolumeListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 5255 var h codecSelfer100 5256 z, r := codec1978.GenHelperDecoder(d) 5257 _, _, _ = h, z, r 5258 var yyj15 int 5259 var yyb15 bool 5260 var yyhl15 bool = l >= 0 5261 yyj15++ 5262 if yyhl15 { 5263 yyb15 = yyj15 > l 5264 } else { 5265 yyb15 = r.CheckBreak() 5266 } 5267 if yyb15 { 5268 r.ReadArrayEnd() 5269 return 5270 } 5271 r.ReadArrayElem() 5272 if r.TryDecodeAsNil() { 5273 x.PluginID = "" 5274 } else { 5275 x.PluginID = (string)(r.DecodeString()) 5276 } 5277 yyj15++ 5278 if yyhl15 { 5279 yyb15 = yyj15 > l 5280 } else { 5281 yyb15 = r.CheckBreak() 5282 } 5283 if yyb15 { 5284 r.ReadArrayEnd() 5285 return 5286 } 5287 r.ReadArrayElem() 5288 if r.TryDecodeAsNil() { 5289 x.NodeID = "" 5290 } else { 5291 x.NodeID = (string)(r.DecodeString()) 5292 } 5293 yyj15++ 5294 if yyhl15 { 5295 yyb15 = yyj15 > l 5296 } else { 5297 yyb15 = r.CheckBreak() 5298 } 5299 if yyb15 { 5300 r.ReadArrayEnd() 5301 return 5302 } 5303 r.ReadArrayElem() 5304 if r.TryDecodeAsNil() { 5305 x.QueryOptions.Region = "" 5306 } else { 5307 x.Region = (string)(r.DecodeString()) 5308 } 5309 yyj15++ 5310 if yyhl15 { 5311 yyb15 = yyj15 > l 5312 } else { 5313 yyb15 = r.CheckBreak() 5314 } 5315 if yyb15 { 5316 r.ReadArrayEnd() 5317 return 5318 } 5319 r.ReadArrayElem() 5320 if r.TryDecodeAsNil() { 5321 x.QueryOptions.Namespace = "" 5322 } else { 5323 x.Namespace = (string)(r.DecodeString()) 5324 } 5325 yyj15++ 5326 if yyhl15 { 5327 yyb15 = yyj15 > l 5328 } else { 5329 yyb15 = r.CheckBreak() 5330 } 5331 if yyb15 { 5332 r.ReadArrayEnd() 5333 return 5334 } 5335 r.ReadArrayElem() 5336 if r.TryDecodeAsNil() { 5337 x.QueryOptions.MinQueryIndex = 0 5338 } else { 5339 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 5340 } 5341 yyj15++ 5342 if yyhl15 { 5343 yyb15 = yyj15 > l 5344 } else { 5345 yyb15 = r.CheckBreak() 5346 } 5347 if yyb15 { 5348 r.ReadArrayEnd() 5349 return 5350 } 5351 r.ReadArrayElem() 5352 if r.TryDecodeAsNil() { 5353 x.QueryOptions.MaxQueryTime = 0 5354 } else { 5355 if false { 5356 } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { 5357 z.DecExtension(x.MaxQueryTime, yyxt22) 5358 } else { 5359 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 5360 } 5361 } 5362 yyj15++ 5363 if yyhl15 { 5364 yyb15 = yyj15 > l 5365 } else { 5366 yyb15 = r.CheckBreak() 5367 } 5368 if yyb15 { 5369 r.ReadArrayEnd() 5370 return 5371 } 5372 r.ReadArrayElem() 5373 if r.TryDecodeAsNil() { 5374 x.QueryOptions.AllowStale = false 5375 } else { 5376 x.AllowStale = (bool)(r.DecodeBool()) 5377 } 5378 yyj15++ 5379 if yyhl15 { 5380 yyb15 = yyj15 > l 5381 } else { 5382 yyb15 = r.CheckBreak() 5383 } 5384 if yyb15 { 5385 r.ReadArrayEnd() 5386 return 5387 } 5388 r.ReadArrayElem() 5389 if r.TryDecodeAsNil() { 5390 x.QueryOptions.Prefix = "" 5391 } else { 5392 x.Prefix = (string)(r.DecodeString()) 5393 } 5394 yyj15++ 5395 if yyhl15 { 5396 yyb15 = yyj15 > l 5397 } else { 5398 yyb15 = r.CheckBreak() 5399 } 5400 if yyb15 { 5401 r.ReadArrayEnd() 5402 return 5403 } 5404 r.ReadArrayElem() 5405 if r.TryDecodeAsNil() { 5406 x.QueryOptions.AuthToken = "" 5407 } else { 5408 x.AuthToken = (string)(r.DecodeString()) 5409 } 5410 yyj15++ 5411 if yyhl15 { 5412 yyb15 = yyj15 > l 5413 } else { 5414 yyb15 = r.CheckBreak() 5415 } 5416 if yyb15 { 5417 r.ReadArrayEnd() 5418 return 5419 } 5420 r.ReadArrayElem() 5421 if r.TryDecodeAsNil() { 5422 x.QueryOptions.InternalRpcInfo.Forwarded = false 5423 } else { 5424 x.Forwarded = (bool)(r.DecodeBool()) 5425 } 5426 for { 5427 yyj15++ 5428 if yyhl15 { 5429 yyb15 = yyj15 > l 5430 } else { 5431 yyb15 = r.CheckBreak() 5432 } 5433 if yyb15 { 5434 break 5435 } 5436 r.ReadArrayElem() 5437 z.DecStructFieldNotFound(yyj15-1, "") 5438 } 5439 r.ReadArrayEnd() 5440 } 5441 5442 func (x *CSIVolumeListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 5443 var h codecSelfer100 5444 z, r := codec1978.GenHelperEncoder(e) 5445 _, _, _ = h, z, r 5446 if x == nil { 5447 r.EncodeNil() 5448 } else { 5449 if false { 5450 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 5451 z.EncExtension(x, yyxt1) 5452 } else { 5453 yysep2 := !z.EncBinary() 5454 yy2arr2 := z.EncBasicHandle().StructToArray 5455 _, _ = yysep2, yy2arr2 5456 const yyr2 bool = false // struct tag has 'toArray' 5457 if yyr2 || yy2arr2 { 5458 r.WriteArrayStart(4) 5459 } else { 5460 r.WriteMapStart(4) 5461 } 5462 if yyr2 || yy2arr2 { 5463 r.WriteArrayElem() 5464 if x.Volumes == nil { 5465 r.EncodeNil() 5466 } else { 5467 if false { 5468 } else { 5469 h.encSlicePtrtoCSIVolListStub(([]*CSIVolListStub)(x.Volumes), e) 5470 } 5471 } 5472 } else { 5473 r.WriteMapElemKey() 5474 if z.IsJSONHandle() { 5475 z.WriteStr("\"Volumes\"") 5476 } else { 5477 r.EncodeStringEnc(codecSelferCcUTF8100, `Volumes`) 5478 } 5479 r.WriteMapElemValue() 5480 if x.Volumes == nil { 5481 r.EncodeNil() 5482 } else { 5483 if false { 5484 } else { 5485 h.encSlicePtrtoCSIVolListStub(([]*CSIVolListStub)(x.Volumes), e) 5486 } 5487 } 5488 } 5489 if yyr2 || yy2arr2 { 5490 r.WriteArrayElem() 5491 if false { 5492 } else { 5493 r.EncodeUint(uint64(x.Index)) 5494 } 5495 } else { 5496 r.WriteMapElemKey() 5497 if z.IsJSONHandle() { 5498 z.WriteStr("\"Index\"") 5499 } else { 5500 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 5501 } 5502 r.WriteMapElemValue() 5503 if false { 5504 } else { 5505 r.EncodeUint(uint64(x.Index)) 5506 } 5507 } 5508 if yyr2 || yy2arr2 { 5509 r.WriteArrayElem() 5510 if false { 5511 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 5512 z.EncExtension(x.LastContact, yyxt10) 5513 } else { 5514 r.EncodeInt(int64(x.LastContact)) 5515 } 5516 } else { 5517 r.WriteMapElemKey() 5518 if z.IsJSONHandle() { 5519 z.WriteStr("\"LastContact\"") 5520 } else { 5521 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 5522 } 5523 r.WriteMapElemValue() 5524 if false { 5525 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 5526 z.EncExtension(x.LastContact, yyxt11) 5527 } else { 5528 r.EncodeInt(int64(x.LastContact)) 5529 } 5530 } 5531 if yyr2 || yy2arr2 { 5532 r.WriteArrayElem() 5533 if false { 5534 } else { 5535 r.EncodeBool(bool(x.KnownLeader)) 5536 } 5537 } else { 5538 r.WriteMapElemKey() 5539 if z.IsJSONHandle() { 5540 z.WriteStr("\"KnownLeader\"") 5541 } else { 5542 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 5543 } 5544 r.WriteMapElemValue() 5545 if false { 5546 } else { 5547 r.EncodeBool(bool(x.KnownLeader)) 5548 } 5549 } 5550 if yyr2 || yy2arr2 { 5551 r.WriteArrayEnd() 5552 } else { 5553 r.WriteMapEnd() 5554 } 5555 } 5556 } 5557 } 5558 5559 func (x *CSIVolumeListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 5560 var h codecSelfer100 5561 z, r := codec1978.GenHelperDecoder(d) 5562 _, _, _ = h, z, r 5563 if false { 5564 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 5565 z.DecExtension(x, yyxt1) 5566 } else { 5567 yyct2 := r.ContainerType() 5568 if yyct2 == codecSelferValueTypeMap100 { 5569 yyl2 := r.ReadMapStart() 5570 if yyl2 == 0 { 5571 r.ReadMapEnd() 5572 } else { 5573 x.codecDecodeSelfFromMap(yyl2, d) 5574 } 5575 } else if yyct2 == codecSelferValueTypeArray100 { 5576 yyl2 := r.ReadArrayStart() 5577 if yyl2 == 0 { 5578 r.ReadArrayEnd() 5579 } else { 5580 x.codecDecodeSelfFromArray(yyl2, d) 5581 } 5582 } else { 5583 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 5584 } 5585 } 5586 } 5587 5588 func (x *CSIVolumeListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 5589 var h codecSelfer100 5590 z, r := codec1978.GenHelperDecoder(d) 5591 _, _, _ = h, z, r 5592 var yyhl3 bool = l >= 0 5593 for yyj3 := 0; ; yyj3++ { 5594 if yyhl3 { 5595 if yyj3 >= l { 5596 break 5597 } 5598 } else { 5599 if r.CheckBreak() { 5600 break 5601 } 5602 } 5603 r.ReadMapElemKey() 5604 yys3 := z.StringView(r.DecodeStringAsBytes()) 5605 r.ReadMapElemValue() 5606 switch yys3 { 5607 case "Volumes": 5608 if r.TryDecodeAsNil() { 5609 x.Volumes = nil 5610 } else { 5611 if false { 5612 } else { 5613 h.decSlicePtrtoCSIVolListStub((*[]*CSIVolListStub)(&x.Volumes), d) 5614 } 5615 } 5616 case "Index": 5617 if r.TryDecodeAsNil() { 5618 x.QueryMeta.Index = 0 5619 } else { 5620 x.Index = (uint64)(r.DecodeUint64()) 5621 } 5622 case "LastContact": 5623 if r.TryDecodeAsNil() { 5624 x.QueryMeta.LastContact = 0 5625 } else { 5626 if false { 5627 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 5628 z.DecExtension(x.LastContact, yyxt8) 5629 } else { 5630 x.LastContact = (time.Duration)(r.DecodeInt64()) 5631 } 5632 } 5633 case "KnownLeader": 5634 if r.TryDecodeAsNil() { 5635 x.QueryMeta.KnownLeader = false 5636 } else { 5637 x.KnownLeader = (bool)(r.DecodeBool()) 5638 } 5639 default: 5640 z.DecStructFieldNotFound(-1, yys3) 5641 } // end switch yys3 5642 } // end for yyj3 5643 r.ReadMapEnd() 5644 } 5645 5646 func (x *CSIVolumeListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 5647 var h codecSelfer100 5648 z, r := codec1978.GenHelperDecoder(d) 5649 _, _, _ = h, z, r 5650 var yyj10 int 5651 var yyb10 bool 5652 var yyhl10 bool = l >= 0 5653 yyj10++ 5654 if yyhl10 { 5655 yyb10 = yyj10 > l 5656 } else { 5657 yyb10 = r.CheckBreak() 5658 } 5659 if yyb10 { 5660 r.ReadArrayEnd() 5661 return 5662 } 5663 r.ReadArrayElem() 5664 if r.TryDecodeAsNil() { 5665 x.Volumes = nil 5666 } else { 5667 if false { 5668 } else { 5669 h.decSlicePtrtoCSIVolListStub((*[]*CSIVolListStub)(&x.Volumes), d) 5670 } 5671 } 5672 yyj10++ 5673 if yyhl10 { 5674 yyb10 = yyj10 > l 5675 } else { 5676 yyb10 = r.CheckBreak() 5677 } 5678 if yyb10 { 5679 r.ReadArrayEnd() 5680 return 5681 } 5682 r.ReadArrayElem() 5683 if r.TryDecodeAsNil() { 5684 x.QueryMeta.Index = 0 5685 } else { 5686 x.Index = (uint64)(r.DecodeUint64()) 5687 } 5688 yyj10++ 5689 if yyhl10 { 5690 yyb10 = yyj10 > l 5691 } else { 5692 yyb10 = r.CheckBreak() 5693 } 5694 if yyb10 { 5695 r.ReadArrayEnd() 5696 return 5697 } 5698 r.ReadArrayElem() 5699 if r.TryDecodeAsNil() { 5700 x.QueryMeta.LastContact = 0 5701 } else { 5702 if false { 5703 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 5704 z.DecExtension(x.LastContact, yyxt15) 5705 } else { 5706 x.LastContact = (time.Duration)(r.DecodeInt64()) 5707 } 5708 } 5709 yyj10++ 5710 if yyhl10 { 5711 yyb10 = yyj10 > l 5712 } else { 5713 yyb10 = r.CheckBreak() 5714 } 5715 if yyb10 { 5716 r.ReadArrayEnd() 5717 return 5718 } 5719 r.ReadArrayElem() 5720 if r.TryDecodeAsNil() { 5721 x.QueryMeta.KnownLeader = false 5722 } else { 5723 x.KnownLeader = (bool)(r.DecodeBool()) 5724 } 5725 for { 5726 yyj10++ 5727 if yyhl10 { 5728 yyb10 = yyj10 > l 5729 } else { 5730 yyb10 = r.CheckBreak() 5731 } 5732 if yyb10 { 5733 break 5734 } 5735 r.ReadArrayElem() 5736 z.DecStructFieldNotFound(yyj10-1, "") 5737 } 5738 r.ReadArrayEnd() 5739 } 5740 5741 func (x *CSIVolumeGetRequest) CodecEncodeSelf(e *codec1978.Encoder) { 5742 var h codecSelfer100 5743 z, r := codec1978.GenHelperEncoder(e) 5744 _, _, _ = h, z, r 5745 if x == nil { 5746 r.EncodeNil() 5747 } else { 5748 if false { 5749 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 5750 z.EncExtension(x, yyxt1) 5751 } else { 5752 yysep2 := !z.EncBinary() 5753 yy2arr2 := z.EncBasicHandle().StructToArray 5754 _, _ = yysep2, yy2arr2 5755 const yyr2 bool = false // struct tag has 'toArray' 5756 if yyr2 || yy2arr2 { 5757 r.WriteArrayStart(9) 5758 } else { 5759 r.WriteMapStart(9) 5760 } 5761 if yyr2 || yy2arr2 { 5762 r.WriteArrayElem() 5763 if false { 5764 } else { 5765 if z.EncBasicHandle().StringToRaw { 5766 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 5767 } else { 5768 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 5769 } 5770 } 5771 } else { 5772 r.WriteMapElemKey() 5773 if z.IsJSONHandle() { 5774 z.WriteStr("\"ID\"") 5775 } else { 5776 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 5777 } 5778 r.WriteMapElemValue() 5779 if false { 5780 } else { 5781 if z.EncBasicHandle().StringToRaw { 5782 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 5783 } else { 5784 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 5785 } 5786 } 5787 } 5788 if yyr2 || yy2arr2 { 5789 r.WriteArrayElem() 5790 if false { 5791 } else { 5792 if z.EncBasicHandle().StringToRaw { 5793 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 5794 } else { 5795 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 5796 } 5797 } 5798 } else { 5799 r.WriteMapElemKey() 5800 if z.IsJSONHandle() { 5801 z.WriteStr("\"Region\"") 5802 } else { 5803 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 5804 } 5805 r.WriteMapElemValue() 5806 if false { 5807 } else { 5808 if z.EncBasicHandle().StringToRaw { 5809 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 5810 } else { 5811 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 5812 } 5813 } 5814 } 5815 if yyr2 || yy2arr2 { 5816 r.WriteArrayElem() 5817 if false { 5818 } else { 5819 if z.EncBasicHandle().StringToRaw { 5820 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 5821 } else { 5822 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 5823 } 5824 } 5825 } else { 5826 r.WriteMapElemKey() 5827 if z.IsJSONHandle() { 5828 z.WriteStr("\"Namespace\"") 5829 } else { 5830 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 5831 } 5832 r.WriteMapElemValue() 5833 if false { 5834 } else { 5835 if z.EncBasicHandle().StringToRaw { 5836 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 5837 } else { 5838 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 5839 } 5840 } 5841 } 5842 if yyr2 || yy2arr2 { 5843 r.WriteArrayElem() 5844 if false { 5845 } else { 5846 r.EncodeUint(uint64(x.MinQueryIndex)) 5847 } 5848 } else { 5849 r.WriteMapElemKey() 5850 if z.IsJSONHandle() { 5851 z.WriteStr("\"MinQueryIndex\"") 5852 } else { 5853 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 5854 } 5855 r.WriteMapElemValue() 5856 if false { 5857 } else { 5858 r.EncodeUint(uint64(x.MinQueryIndex)) 5859 } 5860 } 5861 if yyr2 || yy2arr2 { 5862 r.WriteArrayElem() 5863 if false { 5864 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 5865 z.EncExtension(x.MaxQueryTime, yyxt16) 5866 } else { 5867 r.EncodeInt(int64(x.MaxQueryTime)) 5868 } 5869 } else { 5870 r.WriteMapElemKey() 5871 if z.IsJSONHandle() { 5872 z.WriteStr("\"MaxQueryTime\"") 5873 } else { 5874 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 5875 } 5876 r.WriteMapElemValue() 5877 if false { 5878 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 5879 z.EncExtension(x.MaxQueryTime, yyxt17) 5880 } else { 5881 r.EncodeInt(int64(x.MaxQueryTime)) 5882 } 5883 } 5884 if yyr2 || yy2arr2 { 5885 r.WriteArrayElem() 5886 if false { 5887 } else { 5888 r.EncodeBool(bool(x.AllowStale)) 5889 } 5890 } else { 5891 r.WriteMapElemKey() 5892 if z.IsJSONHandle() { 5893 z.WriteStr("\"AllowStale\"") 5894 } else { 5895 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 5896 } 5897 r.WriteMapElemValue() 5898 if false { 5899 } else { 5900 r.EncodeBool(bool(x.AllowStale)) 5901 } 5902 } 5903 if yyr2 || yy2arr2 { 5904 r.WriteArrayElem() 5905 if false { 5906 } else { 5907 if z.EncBasicHandle().StringToRaw { 5908 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 5909 } else { 5910 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 5911 } 5912 } 5913 } else { 5914 r.WriteMapElemKey() 5915 if z.IsJSONHandle() { 5916 z.WriteStr("\"Prefix\"") 5917 } else { 5918 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 5919 } 5920 r.WriteMapElemValue() 5921 if false { 5922 } else { 5923 if z.EncBasicHandle().StringToRaw { 5924 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 5925 } else { 5926 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 5927 } 5928 } 5929 } 5930 if yyr2 || yy2arr2 { 5931 r.WriteArrayElem() 5932 if false { 5933 } else { 5934 if z.EncBasicHandle().StringToRaw { 5935 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 5936 } else { 5937 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 5938 } 5939 } 5940 } else { 5941 r.WriteMapElemKey() 5942 if z.IsJSONHandle() { 5943 z.WriteStr("\"AuthToken\"") 5944 } else { 5945 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 5946 } 5947 r.WriteMapElemValue() 5948 if false { 5949 } else { 5950 if z.EncBasicHandle().StringToRaw { 5951 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 5952 } else { 5953 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 5954 } 5955 } 5956 } 5957 if yyr2 || yy2arr2 { 5958 r.WriteArrayElem() 5959 if false { 5960 } else { 5961 r.EncodeBool(bool(x.Forwarded)) 5962 } 5963 } else { 5964 r.WriteMapElemKey() 5965 if z.IsJSONHandle() { 5966 z.WriteStr("\"Forwarded\"") 5967 } else { 5968 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 5969 } 5970 r.WriteMapElemValue() 5971 if false { 5972 } else { 5973 r.EncodeBool(bool(x.Forwarded)) 5974 } 5975 } 5976 if yyr2 || yy2arr2 { 5977 r.WriteArrayEnd() 5978 } else { 5979 r.WriteMapEnd() 5980 } 5981 } 5982 } 5983 } 5984 5985 func (x *CSIVolumeGetRequest) CodecDecodeSelf(d *codec1978.Decoder) { 5986 var h codecSelfer100 5987 z, r := codec1978.GenHelperDecoder(d) 5988 _, _, _ = h, z, r 5989 if false { 5990 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 5991 z.DecExtension(x, yyxt1) 5992 } else { 5993 yyct2 := r.ContainerType() 5994 if yyct2 == codecSelferValueTypeMap100 { 5995 yyl2 := r.ReadMapStart() 5996 if yyl2 == 0 { 5997 r.ReadMapEnd() 5998 } else { 5999 x.codecDecodeSelfFromMap(yyl2, d) 6000 } 6001 } else if yyct2 == codecSelferValueTypeArray100 { 6002 yyl2 := r.ReadArrayStart() 6003 if yyl2 == 0 { 6004 r.ReadArrayEnd() 6005 } else { 6006 x.codecDecodeSelfFromArray(yyl2, d) 6007 } 6008 } else { 6009 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 6010 } 6011 } 6012 } 6013 6014 func (x *CSIVolumeGetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 6015 var h codecSelfer100 6016 z, r := codec1978.GenHelperDecoder(d) 6017 _, _, _ = h, z, r 6018 var yyhl3 bool = l >= 0 6019 for yyj3 := 0; ; yyj3++ { 6020 if yyhl3 { 6021 if yyj3 >= l { 6022 break 6023 } 6024 } else { 6025 if r.CheckBreak() { 6026 break 6027 } 6028 } 6029 r.ReadMapElemKey() 6030 yys3 := z.StringView(r.DecodeStringAsBytes()) 6031 r.ReadMapElemValue() 6032 switch yys3 { 6033 case "ID": 6034 if r.TryDecodeAsNil() { 6035 x.ID = "" 6036 } else { 6037 x.ID = (string)(r.DecodeString()) 6038 } 6039 case "Region": 6040 if r.TryDecodeAsNil() { 6041 x.QueryOptions.Region = "" 6042 } else { 6043 x.Region = (string)(r.DecodeString()) 6044 } 6045 case "Namespace": 6046 if r.TryDecodeAsNil() { 6047 x.QueryOptions.Namespace = "" 6048 } else { 6049 x.Namespace = (string)(r.DecodeString()) 6050 } 6051 case "MinQueryIndex": 6052 if r.TryDecodeAsNil() { 6053 x.QueryOptions.MinQueryIndex = 0 6054 } else { 6055 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 6056 } 6057 case "MaxQueryTime": 6058 if r.TryDecodeAsNil() { 6059 x.QueryOptions.MaxQueryTime = 0 6060 } else { 6061 if false { 6062 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 6063 z.DecExtension(x.MaxQueryTime, yyxt9) 6064 } else { 6065 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 6066 } 6067 } 6068 case "AllowStale": 6069 if r.TryDecodeAsNil() { 6070 x.QueryOptions.AllowStale = false 6071 } else { 6072 x.AllowStale = (bool)(r.DecodeBool()) 6073 } 6074 case "Prefix": 6075 if r.TryDecodeAsNil() { 6076 x.QueryOptions.Prefix = "" 6077 } else { 6078 x.Prefix = (string)(r.DecodeString()) 6079 } 6080 case "AuthToken": 6081 if r.TryDecodeAsNil() { 6082 x.QueryOptions.AuthToken = "" 6083 } else { 6084 x.AuthToken = (string)(r.DecodeString()) 6085 } 6086 case "Forwarded": 6087 if r.TryDecodeAsNil() { 6088 x.QueryOptions.InternalRpcInfo.Forwarded = false 6089 } else { 6090 x.Forwarded = (bool)(r.DecodeBool()) 6091 } 6092 default: 6093 z.DecStructFieldNotFound(-1, yys3) 6094 } // end switch yys3 6095 } // end for yyj3 6096 r.ReadMapEnd() 6097 } 6098 6099 func (x *CSIVolumeGetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 6100 var h codecSelfer100 6101 z, r := codec1978.GenHelperDecoder(d) 6102 _, _, _ = h, z, r 6103 var yyj14 int 6104 var yyb14 bool 6105 var yyhl14 bool = l >= 0 6106 yyj14++ 6107 if yyhl14 { 6108 yyb14 = yyj14 > l 6109 } else { 6110 yyb14 = r.CheckBreak() 6111 } 6112 if yyb14 { 6113 r.ReadArrayEnd() 6114 return 6115 } 6116 r.ReadArrayElem() 6117 if r.TryDecodeAsNil() { 6118 x.ID = "" 6119 } else { 6120 x.ID = (string)(r.DecodeString()) 6121 } 6122 yyj14++ 6123 if yyhl14 { 6124 yyb14 = yyj14 > l 6125 } else { 6126 yyb14 = r.CheckBreak() 6127 } 6128 if yyb14 { 6129 r.ReadArrayEnd() 6130 return 6131 } 6132 r.ReadArrayElem() 6133 if r.TryDecodeAsNil() { 6134 x.QueryOptions.Region = "" 6135 } else { 6136 x.Region = (string)(r.DecodeString()) 6137 } 6138 yyj14++ 6139 if yyhl14 { 6140 yyb14 = yyj14 > l 6141 } else { 6142 yyb14 = r.CheckBreak() 6143 } 6144 if yyb14 { 6145 r.ReadArrayEnd() 6146 return 6147 } 6148 r.ReadArrayElem() 6149 if r.TryDecodeAsNil() { 6150 x.QueryOptions.Namespace = "" 6151 } else { 6152 x.Namespace = (string)(r.DecodeString()) 6153 } 6154 yyj14++ 6155 if yyhl14 { 6156 yyb14 = yyj14 > l 6157 } else { 6158 yyb14 = r.CheckBreak() 6159 } 6160 if yyb14 { 6161 r.ReadArrayEnd() 6162 return 6163 } 6164 r.ReadArrayElem() 6165 if r.TryDecodeAsNil() { 6166 x.QueryOptions.MinQueryIndex = 0 6167 } else { 6168 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 6169 } 6170 yyj14++ 6171 if yyhl14 { 6172 yyb14 = yyj14 > l 6173 } else { 6174 yyb14 = r.CheckBreak() 6175 } 6176 if yyb14 { 6177 r.ReadArrayEnd() 6178 return 6179 } 6180 r.ReadArrayElem() 6181 if r.TryDecodeAsNil() { 6182 x.QueryOptions.MaxQueryTime = 0 6183 } else { 6184 if false { 6185 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 6186 z.DecExtension(x.MaxQueryTime, yyxt20) 6187 } else { 6188 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 6189 } 6190 } 6191 yyj14++ 6192 if yyhl14 { 6193 yyb14 = yyj14 > l 6194 } else { 6195 yyb14 = r.CheckBreak() 6196 } 6197 if yyb14 { 6198 r.ReadArrayEnd() 6199 return 6200 } 6201 r.ReadArrayElem() 6202 if r.TryDecodeAsNil() { 6203 x.QueryOptions.AllowStale = false 6204 } else { 6205 x.AllowStale = (bool)(r.DecodeBool()) 6206 } 6207 yyj14++ 6208 if yyhl14 { 6209 yyb14 = yyj14 > l 6210 } else { 6211 yyb14 = r.CheckBreak() 6212 } 6213 if yyb14 { 6214 r.ReadArrayEnd() 6215 return 6216 } 6217 r.ReadArrayElem() 6218 if r.TryDecodeAsNil() { 6219 x.QueryOptions.Prefix = "" 6220 } else { 6221 x.Prefix = (string)(r.DecodeString()) 6222 } 6223 yyj14++ 6224 if yyhl14 { 6225 yyb14 = yyj14 > l 6226 } else { 6227 yyb14 = r.CheckBreak() 6228 } 6229 if yyb14 { 6230 r.ReadArrayEnd() 6231 return 6232 } 6233 r.ReadArrayElem() 6234 if r.TryDecodeAsNil() { 6235 x.QueryOptions.AuthToken = "" 6236 } else { 6237 x.AuthToken = (string)(r.DecodeString()) 6238 } 6239 yyj14++ 6240 if yyhl14 { 6241 yyb14 = yyj14 > l 6242 } else { 6243 yyb14 = r.CheckBreak() 6244 } 6245 if yyb14 { 6246 r.ReadArrayEnd() 6247 return 6248 } 6249 r.ReadArrayElem() 6250 if r.TryDecodeAsNil() { 6251 x.QueryOptions.InternalRpcInfo.Forwarded = false 6252 } else { 6253 x.Forwarded = (bool)(r.DecodeBool()) 6254 } 6255 for { 6256 yyj14++ 6257 if yyhl14 { 6258 yyb14 = yyj14 > l 6259 } else { 6260 yyb14 = r.CheckBreak() 6261 } 6262 if yyb14 { 6263 break 6264 } 6265 r.ReadArrayElem() 6266 z.DecStructFieldNotFound(yyj14-1, "") 6267 } 6268 r.ReadArrayEnd() 6269 } 6270 6271 func (x *CSIVolumeGetResponse) CodecEncodeSelf(e *codec1978.Encoder) { 6272 var h codecSelfer100 6273 z, r := codec1978.GenHelperEncoder(e) 6274 _, _, _ = h, z, r 6275 if x == nil { 6276 r.EncodeNil() 6277 } else { 6278 if false { 6279 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 6280 z.EncExtension(x, yyxt1) 6281 } else { 6282 yysep2 := !z.EncBinary() 6283 yy2arr2 := z.EncBasicHandle().StructToArray 6284 _, _ = yysep2, yy2arr2 6285 const yyr2 bool = false // struct tag has 'toArray' 6286 if yyr2 || yy2arr2 { 6287 r.WriteArrayStart(4) 6288 } else { 6289 r.WriteMapStart(4) 6290 } 6291 var yyn3 bool 6292 if x.Volume == nil { 6293 yyn3 = true 6294 goto LABEL3 6295 } 6296 LABEL3: 6297 if yyr2 || yy2arr2 { 6298 if yyn3 { 6299 r.WriteArrayElem() 6300 r.EncodeNil() 6301 } else { 6302 r.WriteArrayElem() 6303 if x.Volume == nil { 6304 r.EncodeNil() 6305 } else { 6306 x.Volume.CodecEncodeSelf(e) 6307 } 6308 } 6309 } else { 6310 r.WriteMapElemKey() 6311 if z.IsJSONHandle() { 6312 z.WriteStr("\"Volume\"") 6313 } else { 6314 r.EncodeStringEnc(codecSelferCcUTF8100, `Volume`) 6315 } 6316 r.WriteMapElemValue() 6317 if yyn3 { 6318 r.EncodeNil() 6319 } else { 6320 if x.Volume == nil { 6321 r.EncodeNil() 6322 } else { 6323 x.Volume.CodecEncodeSelf(e) 6324 } 6325 } 6326 } 6327 if yyr2 || yy2arr2 { 6328 r.WriteArrayElem() 6329 if false { 6330 } else { 6331 r.EncodeUint(uint64(x.Index)) 6332 } 6333 } else { 6334 r.WriteMapElemKey() 6335 if z.IsJSONHandle() { 6336 z.WriteStr("\"Index\"") 6337 } else { 6338 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 6339 } 6340 r.WriteMapElemValue() 6341 if false { 6342 } else { 6343 r.EncodeUint(uint64(x.Index)) 6344 } 6345 } 6346 if yyr2 || yy2arr2 { 6347 r.WriteArrayElem() 6348 if false { 6349 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 6350 z.EncExtension(x.LastContact, yyxt10) 6351 } else { 6352 r.EncodeInt(int64(x.LastContact)) 6353 } 6354 } else { 6355 r.WriteMapElemKey() 6356 if z.IsJSONHandle() { 6357 z.WriteStr("\"LastContact\"") 6358 } else { 6359 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 6360 } 6361 r.WriteMapElemValue() 6362 if false { 6363 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 6364 z.EncExtension(x.LastContact, yyxt11) 6365 } else { 6366 r.EncodeInt(int64(x.LastContact)) 6367 } 6368 } 6369 if yyr2 || yy2arr2 { 6370 r.WriteArrayElem() 6371 if false { 6372 } else { 6373 r.EncodeBool(bool(x.KnownLeader)) 6374 } 6375 } else { 6376 r.WriteMapElemKey() 6377 if z.IsJSONHandle() { 6378 z.WriteStr("\"KnownLeader\"") 6379 } else { 6380 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 6381 } 6382 r.WriteMapElemValue() 6383 if false { 6384 } else { 6385 r.EncodeBool(bool(x.KnownLeader)) 6386 } 6387 } 6388 if yyr2 || yy2arr2 { 6389 r.WriteArrayEnd() 6390 } else { 6391 r.WriteMapEnd() 6392 } 6393 } 6394 } 6395 } 6396 6397 func (x *CSIVolumeGetResponse) CodecDecodeSelf(d *codec1978.Decoder) { 6398 var h codecSelfer100 6399 z, r := codec1978.GenHelperDecoder(d) 6400 _, _, _ = h, z, r 6401 if false { 6402 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 6403 z.DecExtension(x, yyxt1) 6404 } else { 6405 yyct2 := r.ContainerType() 6406 if yyct2 == codecSelferValueTypeMap100 { 6407 yyl2 := r.ReadMapStart() 6408 if yyl2 == 0 { 6409 r.ReadMapEnd() 6410 } else { 6411 x.codecDecodeSelfFromMap(yyl2, d) 6412 } 6413 } else if yyct2 == codecSelferValueTypeArray100 { 6414 yyl2 := r.ReadArrayStart() 6415 if yyl2 == 0 { 6416 r.ReadArrayEnd() 6417 } else { 6418 x.codecDecodeSelfFromArray(yyl2, d) 6419 } 6420 } else { 6421 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 6422 } 6423 } 6424 } 6425 6426 func (x *CSIVolumeGetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 6427 var h codecSelfer100 6428 z, r := codec1978.GenHelperDecoder(d) 6429 _, _, _ = h, z, r 6430 var yyhl3 bool = l >= 0 6431 for yyj3 := 0; ; yyj3++ { 6432 if yyhl3 { 6433 if yyj3 >= l { 6434 break 6435 } 6436 } else { 6437 if r.CheckBreak() { 6438 break 6439 } 6440 } 6441 r.ReadMapElemKey() 6442 yys3 := z.StringView(r.DecodeStringAsBytes()) 6443 r.ReadMapElemValue() 6444 switch yys3 { 6445 case "Volume": 6446 if r.TryDecodeAsNil() { 6447 if true && x.Volume != nil { 6448 x.Volume = nil 6449 } 6450 } else { 6451 if x.Volume == nil { 6452 x.Volume = new(CSIVolume) 6453 } 6454 6455 x.Volume.CodecDecodeSelf(d) 6456 } 6457 case "Index": 6458 if r.TryDecodeAsNil() { 6459 x.QueryMeta.Index = 0 6460 } else { 6461 x.Index = (uint64)(r.DecodeUint64()) 6462 } 6463 case "LastContact": 6464 if r.TryDecodeAsNil() { 6465 x.QueryMeta.LastContact = 0 6466 } else { 6467 if false { 6468 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 6469 z.DecExtension(x.LastContact, yyxt7) 6470 } else { 6471 x.LastContact = (time.Duration)(r.DecodeInt64()) 6472 } 6473 } 6474 case "KnownLeader": 6475 if r.TryDecodeAsNil() { 6476 x.QueryMeta.KnownLeader = false 6477 } else { 6478 x.KnownLeader = (bool)(r.DecodeBool()) 6479 } 6480 default: 6481 z.DecStructFieldNotFound(-1, yys3) 6482 } // end switch yys3 6483 } // end for yyj3 6484 r.ReadMapEnd() 6485 } 6486 6487 func (x *CSIVolumeGetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 6488 var h codecSelfer100 6489 z, r := codec1978.GenHelperDecoder(d) 6490 _, _, _ = h, z, r 6491 var yyj9 int 6492 var yyb9 bool 6493 var yyhl9 bool = l >= 0 6494 yyj9++ 6495 if yyhl9 { 6496 yyb9 = yyj9 > l 6497 } else { 6498 yyb9 = r.CheckBreak() 6499 } 6500 if yyb9 { 6501 r.ReadArrayEnd() 6502 return 6503 } 6504 r.ReadArrayElem() 6505 if r.TryDecodeAsNil() { 6506 if true && x.Volume != nil { 6507 x.Volume = nil 6508 } 6509 } else { 6510 if x.Volume == nil { 6511 x.Volume = new(CSIVolume) 6512 } 6513 6514 x.Volume.CodecDecodeSelf(d) 6515 } 6516 yyj9++ 6517 if yyhl9 { 6518 yyb9 = yyj9 > l 6519 } else { 6520 yyb9 = r.CheckBreak() 6521 } 6522 if yyb9 { 6523 r.ReadArrayEnd() 6524 return 6525 } 6526 r.ReadArrayElem() 6527 if r.TryDecodeAsNil() { 6528 x.QueryMeta.Index = 0 6529 } else { 6530 x.Index = (uint64)(r.DecodeUint64()) 6531 } 6532 yyj9++ 6533 if yyhl9 { 6534 yyb9 = yyj9 > l 6535 } else { 6536 yyb9 = r.CheckBreak() 6537 } 6538 if yyb9 { 6539 r.ReadArrayEnd() 6540 return 6541 } 6542 r.ReadArrayElem() 6543 if r.TryDecodeAsNil() { 6544 x.QueryMeta.LastContact = 0 6545 } else { 6546 if false { 6547 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 6548 z.DecExtension(x.LastContact, yyxt13) 6549 } else { 6550 x.LastContact = (time.Duration)(r.DecodeInt64()) 6551 } 6552 } 6553 yyj9++ 6554 if yyhl9 { 6555 yyb9 = yyj9 > l 6556 } else { 6557 yyb9 = r.CheckBreak() 6558 } 6559 if yyb9 { 6560 r.ReadArrayEnd() 6561 return 6562 } 6563 r.ReadArrayElem() 6564 if r.TryDecodeAsNil() { 6565 x.QueryMeta.KnownLeader = false 6566 } else { 6567 x.KnownLeader = (bool)(r.DecodeBool()) 6568 } 6569 for { 6570 yyj9++ 6571 if yyhl9 { 6572 yyb9 = yyj9 > l 6573 } else { 6574 yyb9 = r.CheckBreak() 6575 } 6576 if yyb9 { 6577 break 6578 } 6579 r.ReadArrayElem() 6580 z.DecStructFieldNotFound(yyj9-1, "") 6581 } 6582 r.ReadArrayEnd() 6583 } 6584 6585 func (x *CSIPlugin) CodecEncodeSelf(e *codec1978.Encoder) { 6586 var h codecSelfer100 6587 z, r := codec1978.GenHelperEncoder(e) 6588 _, _, _ = h, z, r 6589 if x == nil { 6590 r.EncodeNil() 6591 } else { 6592 if false { 6593 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 6594 z.EncExtension(x, yyxt1) 6595 } else { 6596 yysep2 := !z.EncBinary() 6597 yy2arr2 := z.EncBasicHandle().StructToArray 6598 _, _ = yysep2, yy2arr2 6599 const yyr2 bool = false // struct tag has 'toArray' 6600 if yyr2 || yy2arr2 { 6601 r.WriteArrayStart(11) 6602 } else { 6603 r.WriteMapStart(11) 6604 } 6605 if yyr2 || yy2arr2 { 6606 r.WriteArrayElem() 6607 if false { 6608 } else { 6609 if z.EncBasicHandle().StringToRaw { 6610 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 6611 } else { 6612 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 6613 } 6614 } 6615 } else { 6616 r.WriteMapElemKey() 6617 if z.IsJSONHandle() { 6618 z.WriteStr("\"ID\"") 6619 } else { 6620 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 6621 } 6622 r.WriteMapElemValue() 6623 if false { 6624 } else { 6625 if z.EncBasicHandle().StringToRaw { 6626 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 6627 } else { 6628 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 6629 } 6630 } 6631 } 6632 if yyr2 || yy2arr2 { 6633 r.WriteArrayElem() 6634 if false { 6635 } else { 6636 if z.EncBasicHandle().StringToRaw { 6637 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 6638 } else { 6639 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 6640 } 6641 } 6642 } else { 6643 r.WriteMapElemKey() 6644 if z.IsJSONHandle() { 6645 z.WriteStr("\"Provider\"") 6646 } else { 6647 r.EncodeStringEnc(codecSelferCcUTF8100, `Provider`) 6648 } 6649 r.WriteMapElemValue() 6650 if false { 6651 } else { 6652 if z.EncBasicHandle().StringToRaw { 6653 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 6654 } else { 6655 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 6656 } 6657 } 6658 } 6659 if yyr2 || yy2arr2 { 6660 r.WriteArrayElem() 6661 if false { 6662 } else { 6663 if z.EncBasicHandle().StringToRaw { 6664 r.EncodeStringBytesRaw(z.BytesView(string(x.Version))) 6665 } else { 6666 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Version)) 6667 } 6668 } 6669 } else { 6670 r.WriteMapElemKey() 6671 if z.IsJSONHandle() { 6672 z.WriteStr("\"Version\"") 6673 } else { 6674 r.EncodeStringEnc(codecSelferCcUTF8100, `Version`) 6675 } 6676 r.WriteMapElemValue() 6677 if false { 6678 } else { 6679 if z.EncBasicHandle().StringToRaw { 6680 r.EncodeStringBytesRaw(z.BytesView(string(x.Version))) 6681 } else { 6682 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Version)) 6683 } 6684 } 6685 } 6686 if yyr2 || yy2arr2 { 6687 r.WriteArrayElem() 6688 if false { 6689 } else { 6690 r.EncodeBool(bool(x.ControllerRequired)) 6691 } 6692 } else { 6693 r.WriteMapElemKey() 6694 if z.IsJSONHandle() { 6695 z.WriteStr("\"ControllerRequired\"") 6696 } else { 6697 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllerRequired`) 6698 } 6699 r.WriteMapElemValue() 6700 if false { 6701 } else { 6702 r.EncodeBool(bool(x.ControllerRequired)) 6703 } 6704 } 6705 if yyr2 || yy2arr2 { 6706 r.WriteArrayElem() 6707 if x.Controllers == nil { 6708 r.EncodeNil() 6709 } else { 6710 if false { 6711 } else { 6712 h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.Controllers), e) 6713 } 6714 } 6715 } else { 6716 r.WriteMapElemKey() 6717 if z.IsJSONHandle() { 6718 z.WriteStr("\"Controllers\"") 6719 } else { 6720 r.EncodeStringEnc(codecSelferCcUTF8100, `Controllers`) 6721 } 6722 r.WriteMapElemValue() 6723 if x.Controllers == nil { 6724 r.EncodeNil() 6725 } else { 6726 if false { 6727 } else { 6728 h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.Controllers), e) 6729 } 6730 } 6731 } 6732 if yyr2 || yy2arr2 { 6733 r.WriteArrayElem() 6734 if x.Nodes == nil { 6735 r.EncodeNil() 6736 } else { 6737 if false { 6738 } else { 6739 h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.Nodes), e) 6740 } 6741 } 6742 } else { 6743 r.WriteMapElemKey() 6744 if z.IsJSONHandle() { 6745 z.WriteStr("\"Nodes\"") 6746 } else { 6747 r.EncodeStringEnc(codecSelferCcUTF8100, `Nodes`) 6748 } 6749 r.WriteMapElemValue() 6750 if x.Nodes == nil { 6751 r.EncodeNil() 6752 } else { 6753 if false { 6754 } else { 6755 h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.Nodes), e) 6756 } 6757 } 6758 } 6759 if yyr2 || yy2arr2 { 6760 r.WriteArrayElem() 6761 if x.Allocations == nil { 6762 r.EncodeNil() 6763 } else { 6764 if false { 6765 } else { 6766 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) 6767 } 6768 } 6769 } else { 6770 r.WriteMapElemKey() 6771 if z.IsJSONHandle() { 6772 z.WriteStr("\"Allocations\"") 6773 } else { 6774 r.EncodeStringEnc(codecSelferCcUTF8100, `Allocations`) 6775 } 6776 r.WriteMapElemValue() 6777 if x.Allocations == nil { 6778 r.EncodeNil() 6779 } else { 6780 if false { 6781 } else { 6782 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) 6783 } 6784 } 6785 } 6786 if yyr2 || yy2arr2 { 6787 r.WriteArrayElem() 6788 if false { 6789 } else { 6790 r.EncodeInt(int64(x.ControllersHealthy)) 6791 } 6792 } else { 6793 r.WriteMapElemKey() 6794 if z.IsJSONHandle() { 6795 z.WriteStr("\"ControllersHealthy\"") 6796 } else { 6797 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersHealthy`) 6798 } 6799 r.WriteMapElemValue() 6800 if false { 6801 } else { 6802 r.EncodeInt(int64(x.ControllersHealthy)) 6803 } 6804 } 6805 if yyr2 || yy2arr2 { 6806 r.WriteArrayElem() 6807 if false { 6808 } else { 6809 r.EncodeInt(int64(x.NodesHealthy)) 6810 } 6811 } else { 6812 r.WriteMapElemKey() 6813 if z.IsJSONHandle() { 6814 z.WriteStr("\"NodesHealthy\"") 6815 } else { 6816 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesHealthy`) 6817 } 6818 r.WriteMapElemValue() 6819 if false { 6820 } else { 6821 r.EncodeInt(int64(x.NodesHealthy)) 6822 } 6823 } 6824 if yyr2 || yy2arr2 { 6825 r.WriteArrayElem() 6826 if false { 6827 } else { 6828 r.EncodeUint(uint64(x.CreateIndex)) 6829 } 6830 } else { 6831 r.WriteMapElemKey() 6832 if z.IsJSONHandle() { 6833 z.WriteStr("\"CreateIndex\"") 6834 } else { 6835 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 6836 } 6837 r.WriteMapElemValue() 6838 if false { 6839 } else { 6840 r.EncodeUint(uint64(x.CreateIndex)) 6841 } 6842 } 6843 if yyr2 || yy2arr2 { 6844 r.WriteArrayElem() 6845 if false { 6846 } else { 6847 r.EncodeUint(uint64(x.ModifyIndex)) 6848 } 6849 } else { 6850 r.WriteMapElemKey() 6851 if z.IsJSONHandle() { 6852 z.WriteStr("\"ModifyIndex\"") 6853 } else { 6854 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 6855 } 6856 r.WriteMapElemValue() 6857 if false { 6858 } else { 6859 r.EncodeUint(uint64(x.ModifyIndex)) 6860 } 6861 } 6862 if yyr2 || yy2arr2 { 6863 r.WriteArrayEnd() 6864 } else { 6865 r.WriteMapEnd() 6866 } 6867 } 6868 } 6869 } 6870 6871 func (x *CSIPlugin) CodecDecodeSelf(d *codec1978.Decoder) { 6872 var h codecSelfer100 6873 z, r := codec1978.GenHelperDecoder(d) 6874 _, _, _ = h, z, r 6875 if false { 6876 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 6877 z.DecExtension(x, yyxt1) 6878 } else { 6879 yyct2 := r.ContainerType() 6880 if yyct2 == codecSelferValueTypeMap100 { 6881 yyl2 := r.ReadMapStart() 6882 if yyl2 == 0 { 6883 r.ReadMapEnd() 6884 } else { 6885 x.codecDecodeSelfFromMap(yyl2, d) 6886 } 6887 } else if yyct2 == codecSelferValueTypeArray100 { 6888 yyl2 := r.ReadArrayStart() 6889 if yyl2 == 0 { 6890 r.ReadArrayEnd() 6891 } else { 6892 x.codecDecodeSelfFromArray(yyl2, d) 6893 } 6894 } else { 6895 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 6896 } 6897 } 6898 } 6899 6900 func (x *CSIPlugin) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 6901 var h codecSelfer100 6902 z, r := codec1978.GenHelperDecoder(d) 6903 _, _, _ = h, z, r 6904 var yyhl3 bool = l >= 0 6905 for yyj3 := 0; ; yyj3++ { 6906 if yyhl3 { 6907 if yyj3 >= l { 6908 break 6909 } 6910 } else { 6911 if r.CheckBreak() { 6912 break 6913 } 6914 } 6915 r.ReadMapElemKey() 6916 yys3 := z.StringView(r.DecodeStringAsBytes()) 6917 r.ReadMapElemValue() 6918 switch yys3 { 6919 case "ID": 6920 if r.TryDecodeAsNil() { 6921 x.ID = "" 6922 } else { 6923 x.ID = (string)(r.DecodeString()) 6924 } 6925 case "Provider": 6926 if r.TryDecodeAsNil() { 6927 x.Provider = "" 6928 } else { 6929 x.Provider = (string)(r.DecodeString()) 6930 } 6931 case "Version": 6932 if r.TryDecodeAsNil() { 6933 x.Version = "" 6934 } else { 6935 x.Version = (string)(r.DecodeString()) 6936 } 6937 case "ControllerRequired": 6938 if r.TryDecodeAsNil() { 6939 x.ControllerRequired = false 6940 } else { 6941 x.ControllerRequired = (bool)(r.DecodeBool()) 6942 } 6943 case "Controllers": 6944 if r.TryDecodeAsNil() { 6945 x.Controllers = nil 6946 } else { 6947 if false { 6948 } else { 6949 h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.Controllers), d) 6950 } 6951 } 6952 case "Nodes": 6953 if r.TryDecodeAsNil() { 6954 x.Nodes = nil 6955 } else { 6956 if false { 6957 } else { 6958 h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.Nodes), d) 6959 } 6960 } 6961 case "Allocations": 6962 if r.TryDecodeAsNil() { 6963 x.Allocations = nil 6964 } else { 6965 if false { 6966 } else { 6967 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) 6968 } 6969 } 6970 case "ControllersHealthy": 6971 if r.TryDecodeAsNil() { 6972 x.ControllersHealthy = 0 6973 } else { 6974 x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 6975 } 6976 case "NodesHealthy": 6977 if r.TryDecodeAsNil() { 6978 x.NodesHealthy = 0 6979 } else { 6980 x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 6981 } 6982 case "CreateIndex": 6983 if r.TryDecodeAsNil() { 6984 x.CreateIndex = 0 6985 } else { 6986 x.CreateIndex = (uint64)(r.DecodeUint64()) 6987 } 6988 case "ModifyIndex": 6989 if r.TryDecodeAsNil() { 6990 x.ModifyIndex = 0 6991 } else { 6992 x.ModifyIndex = (uint64)(r.DecodeUint64()) 6993 } 6994 default: 6995 z.DecStructFieldNotFound(-1, yys3) 6996 } // end switch yys3 6997 } // end for yyj3 6998 r.ReadMapEnd() 6999 } 7000 7001 func (x *CSIPlugin) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 7002 var h codecSelfer100 7003 z, r := codec1978.GenHelperDecoder(d) 7004 _, _, _ = h, z, r 7005 var yyj18 int 7006 var yyb18 bool 7007 var yyhl18 bool = l >= 0 7008 yyj18++ 7009 if yyhl18 { 7010 yyb18 = yyj18 > l 7011 } else { 7012 yyb18 = r.CheckBreak() 7013 } 7014 if yyb18 { 7015 r.ReadArrayEnd() 7016 return 7017 } 7018 r.ReadArrayElem() 7019 if r.TryDecodeAsNil() { 7020 x.ID = "" 7021 } else { 7022 x.ID = (string)(r.DecodeString()) 7023 } 7024 yyj18++ 7025 if yyhl18 { 7026 yyb18 = yyj18 > l 7027 } else { 7028 yyb18 = r.CheckBreak() 7029 } 7030 if yyb18 { 7031 r.ReadArrayEnd() 7032 return 7033 } 7034 r.ReadArrayElem() 7035 if r.TryDecodeAsNil() { 7036 x.Provider = "" 7037 } else { 7038 x.Provider = (string)(r.DecodeString()) 7039 } 7040 yyj18++ 7041 if yyhl18 { 7042 yyb18 = yyj18 > l 7043 } else { 7044 yyb18 = r.CheckBreak() 7045 } 7046 if yyb18 { 7047 r.ReadArrayEnd() 7048 return 7049 } 7050 r.ReadArrayElem() 7051 if r.TryDecodeAsNil() { 7052 x.Version = "" 7053 } else { 7054 x.Version = (string)(r.DecodeString()) 7055 } 7056 yyj18++ 7057 if yyhl18 { 7058 yyb18 = yyj18 > l 7059 } else { 7060 yyb18 = r.CheckBreak() 7061 } 7062 if yyb18 { 7063 r.ReadArrayEnd() 7064 return 7065 } 7066 r.ReadArrayElem() 7067 if r.TryDecodeAsNil() { 7068 x.ControllerRequired = false 7069 } else { 7070 x.ControllerRequired = (bool)(r.DecodeBool()) 7071 } 7072 yyj18++ 7073 if yyhl18 { 7074 yyb18 = yyj18 > l 7075 } else { 7076 yyb18 = r.CheckBreak() 7077 } 7078 if yyb18 { 7079 r.ReadArrayEnd() 7080 return 7081 } 7082 r.ReadArrayElem() 7083 if r.TryDecodeAsNil() { 7084 x.Controllers = nil 7085 } else { 7086 if false { 7087 } else { 7088 h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.Controllers), d) 7089 } 7090 } 7091 yyj18++ 7092 if yyhl18 { 7093 yyb18 = yyj18 > l 7094 } else { 7095 yyb18 = r.CheckBreak() 7096 } 7097 if yyb18 { 7098 r.ReadArrayEnd() 7099 return 7100 } 7101 r.ReadArrayElem() 7102 if r.TryDecodeAsNil() { 7103 x.Nodes = nil 7104 } else { 7105 if false { 7106 } else { 7107 h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.Nodes), d) 7108 } 7109 } 7110 yyj18++ 7111 if yyhl18 { 7112 yyb18 = yyj18 > l 7113 } else { 7114 yyb18 = r.CheckBreak() 7115 } 7116 if yyb18 { 7117 r.ReadArrayEnd() 7118 return 7119 } 7120 r.ReadArrayElem() 7121 if r.TryDecodeAsNil() { 7122 x.Allocations = nil 7123 } else { 7124 if false { 7125 } else { 7126 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) 7127 } 7128 } 7129 yyj18++ 7130 if yyhl18 { 7131 yyb18 = yyj18 > l 7132 } else { 7133 yyb18 = r.CheckBreak() 7134 } 7135 if yyb18 { 7136 r.ReadArrayEnd() 7137 return 7138 } 7139 r.ReadArrayElem() 7140 if r.TryDecodeAsNil() { 7141 x.ControllersHealthy = 0 7142 } else { 7143 x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 7144 } 7145 yyj18++ 7146 if yyhl18 { 7147 yyb18 = yyj18 > l 7148 } else { 7149 yyb18 = r.CheckBreak() 7150 } 7151 if yyb18 { 7152 r.ReadArrayEnd() 7153 return 7154 } 7155 r.ReadArrayElem() 7156 if r.TryDecodeAsNil() { 7157 x.NodesHealthy = 0 7158 } else { 7159 x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 7160 } 7161 yyj18++ 7162 if yyhl18 { 7163 yyb18 = yyj18 > l 7164 } else { 7165 yyb18 = r.CheckBreak() 7166 } 7167 if yyb18 { 7168 r.ReadArrayEnd() 7169 return 7170 } 7171 r.ReadArrayElem() 7172 if r.TryDecodeAsNil() { 7173 x.CreateIndex = 0 7174 } else { 7175 x.CreateIndex = (uint64)(r.DecodeUint64()) 7176 } 7177 yyj18++ 7178 if yyhl18 { 7179 yyb18 = yyj18 > l 7180 } else { 7181 yyb18 = r.CheckBreak() 7182 } 7183 if yyb18 { 7184 r.ReadArrayEnd() 7185 return 7186 } 7187 r.ReadArrayElem() 7188 if r.TryDecodeAsNil() { 7189 x.ModifyIndex = 0 7190 } else { 7191 x.ModifyIndex = (uint64)(r.DecodeUint64()) 7192 } 7193 for { 7194 yyj18++ 7195 if yyhl18 { 7196 yyb18 = yyj18 > l 7197 } else { 7198 yyb18 = r.CheckBreak() 7199 } 7200 if yyb18 { 7201 break 7202 } 7203 r.ReadArrayElem() 7204 z.DecStructFieldNotFound(yyj18-1, "") 7205 } 7206 r.ReadArrayEnd() 7207 } 7208 7209 func (x *CSIPluginListStub) CodecEncodeSelf(e *codec1978.Encoder) { 7210 var h codecSelfer100 7211 z, r := codec1978.GenHelperEncoder(e) 7212 _, _, _ = h, z, r 7213 if x == nil { 7214 r.EncodeNil() 7215 } else { 7216 if false { 7217 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 7218 z.EncExtension(x, yyxt1) 7219 } else { 7220 yysep2 := !z.EncBinary() 7221 yy2arr2 := z.EncBasicHandle().StructToArray 7222 _, _ = yysep2, yy2arr2 7223 const yyr2 bool = false // struct tag has 'toArray' 7224 if yyr2 || yy2arr2 { 7225 r.WriteArrayStart(9) 7226 } else { 7227 r.WriteMapStart(9) 7228 } 7229 if yyr2 || yy2arr2 { 7230 r.WriteArrayElem() 7231 if false { 7232 } else { 7233 if z.EncBasicHandle().StringToRaw { 7234 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 7235 } else { 7236 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 7237 } 7238 } 7239 } else { 7240 r.WriteMapElemKey() 7241 if z.IsJSONHandle() { 7242 z.WriteStr("\"ID\"") 7243 } else { 7244 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 7245 } 7246 r.WriteMapElemValue() 7247 if false { 7248 } else { 7249 if z.EncBasicHandle().StringToRaw { 7250 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 7251 } else { 7252 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 7253 } 7254 } 7255 } 7256 if yyr2 || yy2arr2 { 7257 r.WriteArrayElem() 7258 if false { 7259 } else { 7260 if z.EncBasicHandle().StringToRaw { 7261 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 7262 } else { 7263 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 7264 } 7265 } 7266 } else { 7267 r.WriteMapElemKey() 7268 if z.IsJSONHandle() { 7269 z.WriteStr("\"Provider\"") 7270 } else { 7271 r.EncodeStringEnc(codecSelferCcUTF8100, `Provider`) 7272 } 7273 r.WriteMapElemValue() 7274 if false { 7275 } else { 7276 if z.EncBasicHandle().StringToRaw { 7277 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 7278 } else { 7279 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 7280 } 7281 } 7282 } 7283 if yyr2 || yy2arr2 { 7284 r.WriteArrayElem() 7285 if false { 7286 } else { 7287 r.EncodeBool(bool(x.ControllerRequired)) 7288 } 7289 } else { 7290 r.WriteMapElemKey() 7291 if z.IsJSONHandle() { 7292 z.WriteStr("\"ControllerRequired\"") 7293 } else { 7294 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllerRequired`) 7295 } 7296 r.WriteMapElemValue() 7297 if false { 7298 } else { 7299 r.EncodeBool(bool(x.ControllerRequired)) 7300 } 7301 } 7302 if yyr2 || yy2arr2 { 7303 r.WriteArrayElem() 7304 if false { 7305 } else { 7306 r.EncodeInt(int64(x.ControllersHealthy)) 7307 } 7308 } else { 7309 r.WriteMapElemKey() 7310 if z.IsJSONHandle() { 7311 z.WriteStr("\"ControllersHealthy\"") 7312 } else { 7313 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersHealthy`) 7314 } 7315 r.WriteMapElemValue() 7316 if false { 7317 } else { 7318 r.EncodeInt(int64(x.ControllersHealthy)) 7319 } 7320 } 7321 if yyr2 || yy2arr2 { 7322 r.WriteArrayElem() 7323 if false { 7324 } else { 7325 r.EncodeInt(int64(x.ControllersExpected)) 7326 } 7327 } else { 7328 r.WriteMapElemKey() 7329 if z.IsJSONHandle() { 7330 z.WriteStr("\"ControllersExpected\"") 7331 } else { 7332 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersExpected`) 7333 } 7334 r.WriteMapElemValue() 7335 if false { 7336 } else { 7337 r.EncodeInt(int64(x.ControllersExpected)) 7338 } 7339 } 7340 if yyr2 || yy2arr2 { 7341 r.WriteArrayElem() 7342 if false { 7343 } else { 7344 r.EncodeInt(int64(x.NodesHealthy)) 7345 } 7346 } else { 7347 r.WriteMapElemKey() 7348 if z.IsJSONHandle() { 7349 z.WriteStr("\"NodesHealthy\"") 7350 } else { 7351 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesHealthy`) 7352 } 7353 r.WriteMapElemValue() 7354 if false { 7355 } else { 7356 r.EncodeInt(int64(x.NodesHealthy)) 7357 } 7358 } 7359 if yyr2 || yy2arr2 { 7360 r.WriteArrayElem() 7361 if false { 7362 } else { 7363 r.EncodeInt(int64(x.NodesExpected)) 7364 } 7365 } else { 7366 r.WriteMapElemKey() 7367 if z.IsJSONHandle() { 7368 z.WriteStr("\"NodesExpected\"") 7369 } else { 7370 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesExpected`) 7371 } 7372 r.WriteMapElemValue() 7373 if false { 7374 } else { 7375 r.EncodeInt(int64(x.NodesExpected)) 7376 } 7377 } 7378 if yyr2 || yy2arr2 { 7379 r.WriteArrayElem() 7380 if false { 7381 } else { 7382 r.EncodeUint(uint64(x.CreateIndex)) 7383 } 7384 } else { 7385 r.WriteMapElemKey() 7386 if z.IsJSONHandle() { 7387 z.WriteStr("\"CreateIndex\"") 7388 } else { 7389 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 7390 } 7391 r.WriteMapElemValue() 7392 if false { 7393 } else { 7394 r.EncodeUint(uint64(x.CreateIndex)) 7395 } 7396 } 7397 if yyr2 || yy2arr2 { 7398 r.WriteArrayElem() 7399 if false { 7400 } else { 7401 r.EncodeUint(uint64(x.ModifyIndex)) 7402 } 7403 } else { 7404 r.WriteMapElemKey() 7405 if z.IsJSONHandle() { 7406 z.WriteStr("\"ModifyIndex\"") 7407 } else { 7408 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 7409 } 7410 r.WriteMapElemValue() 7411 if false { 7412 } else { 7413 r.EncodeUint(uint64(x.ModifyIndex)) 7414 } 7415 } 7416 if yyr2 || yy2arr2 { 7417 r.WriteArrayEnd() 7418 } else { 7419 r.WriteMapEnd() 7420 } 7421 } 7422 } 7423 } 7424 7425 func (x *CSIPluginListStub) CodecDecodeSelf(d *codec1978.Decoder) { 7426 var h codecSelfer100 7427 z, r := codec1978.GenHelperDecoder(d) 7428 _, _, _ = h, z, r 7429 if false { 7430 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 7431 z.DecExtension(x, yyxt1) 7432 } else { 7433 yyct2 := r.ContainerType() 7434 if yyct2 == codecSelferValueTypeMap100 { 7435 yyl2 := r.ReadMapStart() 7436 if yyl2 == 0 { 7437 r.ReadMapEnd() 7438 } else { 7439 x.codecDecodeSelfFromMap(yyl2, d) 7440 } 7441 } else if yyct2 == codecSelferValueTypeArray100 { 7442 yyl2 := r.ReadArrayStart() 7443 if yyl2 == 0 { 7444 r.ReadArrayEnd() 7445 } else { 7446 x.codecDecodeSelfFromArray(yyl2, d) 7447 } 7448 } else { 7449 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 7450 } 7451 } 7452 } 7453 7454 func (x *CSIPluginListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 7455 var h codecSelfer100 7456 z, r := codec1978.GenHelperDecoder(d) 7457 _, _, _ = h, z, r 7458 var yyhl3 bool = l >= 0 7459 for yyj3 := 0; ; yyj3++ { 7460 if yyhl3 { 7461 if yyj3 >= l { 7462 break 7463 } 7464 } else { 7465 if r.CheckBreak() { 7466 break 7467 } 7468 } 7469 r.ReadMapElemKey() 7470 yys3 := z.StringView(r.DecodeStringAsBytes()) 7471 r.ReadMapElemValue() 7472 switch yys3 { 7473 case "ID": 7474 if r.TryDecodeAsNil() { 7475 x.ID = "" 7476 } else { 7477 x.ID = (string)(r.DecodeString()) 7478 } 7479 case "Provider": 7480 if r.TryDecodeAsNil() { 7481 x.Provider = "" 7482 } else { 7483 x.Provider = (string)(r.DecodeString()) 7484 } 7485 case "ControllerRequired": 7486 if r.TryDecodeAsNil() { 7487 x.ControllerRequired = false 7488 } else { 7489 x.ControllerRequired = (bool)(r.DecodeBool()) 7490 } 7491 case "ControllersHealthy": 7492 if r.TryDecodeAsNil() { 7493 x.ControllersHealthy = 0 7494 } else { 7495 x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 7496 } 7497 case "ControllersExpected": 7498 if r.TryDecodeAsNil() { 7499 x.ControllersExpected = 0 7500 } else { 7501 x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 7502 } 7503 case "NodesHealthy": 7504 if r.TryDecodeAsNil() { 7505 x.NodesHealthy = 0 7506 } else { 7507 x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 7508 } 7509 case "NodesExpected": 7510 if r.TryDecodeAsNil() { 7511 x.NodesExpected = 0 7512 } else { 7513 x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 7514 } 7515 case "CreateIndex": 7516 if r.TryDecodeAsNil() { 7517 x.CreateIndex = 0 7518 } else { 7519 x.CreateIndex = (uint64)(r.DecodeUint64()) 7520 } 7521 case "ModifyIndex": 7522 if r.TryDecodeAsNil() { 7523 x.ModifyIndex = 0 7524 } else { 7525 x.ModifyIndex = (uint64)(r.DecodeUint64()) 7526 } 7527 default: 7528 z.DecStructFieldNotFound(-1, yys3) 7529 } // end switch yys3 7530 } // end for yyj3 7531 r.ReadMapEnd() 7532 } 7533 7534 func (x *CSIPluginListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 7535 var h codecSelfer100 7536 z, r := codec1978.GenHelperDecoder(d) 7537 _, _, _ = h, z, r 7538 var yyj13 int 7539 var yyb13 bool 7540 var yyhl13 bool = l >= 0 7541 yyj13++ 7542 if yyhl13 { 7543 yyb13 = yyj13 > l 7544 } else { 7545 yyb13 = r.CheckBreak() 7546 } 7547 if yyb13 { 7548 r.ReadArrayEnd() 7549 return 7550 } 7551 r.ReadArrayElem() 7552 if r.TryDecodeAsNil() { 7553 x.ID = "" 7554 } else { 7555 x.ID = (string)(r.DecodeString()) 7556 } 7557 yyj13++ 7558 if yyhl13 { 7559 yyb13 = yyj13 > l 7560 } else { 7561 yyb13 = r.CheckBreak() 7562 } 7563 if yyb13 { 7564 r.ReadArrayEnd() 7565 return 7566 } 7567 r.ReadArrayElem() 7568 if r.TryDecodeAsNil() { 7569 x.Provider = "" 7570 } else { 7571 x.Provider = (string)(r.DecodeString()) 7572 } 7573 yyj13++ 7574 if yyhl13 { 7575 yyb13 = yyj13 > l 7576 } else { 7577 yyb13 = r.CheckBreak() 7578 } 7579 if yyb13 { 7580 r.ReadArrayEnd() 7581 return 7582 } 7583 r.ReadArrayElem() 7584 if r.TryDecodeAsNil() { 7585 x.ControllerRequired = false 7586 } else { 7587 x.ControllerRequired = (bool)(r.DecodeBool()) 7588 } 7589 yyj13++ 7590 if yyhl13 { 7591 yyb13 = yyj13 > l 7592 } else { 7593 yyb13 = r.CheckBreak() 7594 } 7595 if yyb13 { 7596 r.ReadArrayEnd() 7597 return 7598 } 7599 r.ReadArrayElem() 7600 if r.TryDecodeAsNil() { 7601 x.ControllersHealthy = 0 7602 } else { 7603 x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 7604 } 7605 yyj13++ 7606 if yyhl13 { 7607 yyb13 = yyj13 > l 7608 } else { 7609 yyb13 = r.CheckBreak() 7610 } 7611 if yyb13 { 7612 r.ReadArrayEnd() 7613 return 7614 } 7615 r.ReadArrayElem() 7616 if r.TryDecodeAsNil() { 7617 x.ControllersExpected = 0 7618 } else { 7619 x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 7620 } 7621 yyj13++ 7622 if yyhl13 { 7623 yyb13 = yyj13 > l 7624 } else { 7625 yyb13 = r.CheckBreak() 7626 } 7627 if yyb13 { 7628 r.ReadArrayEnd() 7629 return 7630 } 7631 r.ReadArrayElem() 7632 if r.TryDecodeAsNil() { 7633 x.NodesHealthy = 0 7634 } else { 7635 x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 7636 } 7637 yyj13++ 7638 if yyhl13 { 7639 yyb13 = yyj13 > l 7640 } else { 7641 yyb13 = r.CheckBreak() 7642 } 7643 if yyb13 { 7644 r.ReadArrayEnd() 7645 return 7646 } 7647 r.ReadArrayElem() 7648 if r.TryDecodeAsNil() { 7649 x.NodesExpected = 0 7650 } else { 7651 x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 7652 } 7653 yyj13++ 7654 if yyhl13 { 7655 yyb13 = yyj13 > l 7656 } else { 7657 yyb13 = r.CheckBreak() 7658 } 7659 if yyb13 { 7660 r.ReadArrayEnd() 7661 return 7662 } 7663 r.ReadArrayElem() 7664 if r.TryDecodeAsNil() { 7665 x.CreateIndex = 0 7666 } else { 7667 x.CreateIndex = (uint64)(r.DecodeUint64()) 7668 } 7669 yyj13++ 7670 if yyhl13 { 7671 yyb13 = yyj13 > l 7672 } else { 7673 yyb13 = r.CheckBreak() 7674 } 7675 if yyb13 { 7676 r.ReadArrayEnd() 7677 return 7678 } 7679 r.ReadArrayElem() 7680 if r.TryDecodeAsNil() { 7681 x.ModifyIndex = 0 7682 } else { 7683 x.ModifyIndex = (uint64)(r.DecodeUint64()) 7684 } 7685 for { 7686 yyj13++ 7687 if yyhl13 { 7688 yyb13 = yyj13 > l 7689 } else { 7690 yyb13 = r.CheckBreak() 7691 } 7692 if yyb13 { 7693 break 7694 } 7695 r.ReadArrayElem() 7696 z.DecStructFieldNotFound(yyj13-1, "") 7697 } 7698 r.ReadArrayEnd() 7699 } 7700 7701 func (x *CSIPluginListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 7702 var h codecSelfer100 7703 z, r := codec1978.GenHelperEncoder(e) 7704 _, _, _ = h, z, r 7705 if x == nil { 7706 r.EncodeNil() 7707 } else { 7708 if false { 7709 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 7710 z.EncExtension(x, yyxt1) 7711 } else { 7712 yysep2 := !z.EncBinary() 7713 yy2arr2 := z.EncBasicHandle().StructToArray 7714 _, _ = yysep2, yy2arr2 7715 const yyr2 bool = false // struct tag has 'toArray' 7716 if yyr2 || yy2arr2 { 7717 r.WriteArrayStart(8) 7718 } else { 7719 r.WriteMapStart(8) 7720 } 7721 if yyr2 || yy2arr2 { 7722 r.WriteArrayElem() 7723 if false { 7724 } else { 7725 if z.EncBasicHandle().StringToRaw { 7726 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 7727 } else { 7728 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 7729 } 7730 } 7731 } else { 7732 r.WriteMapElemKey() 7733 if z.IsJSONHandle() { 7734 z.WriteStr("\"Region\"") 7735 } else { 7736 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 7737 } 7738 r.WriteMapElemValue() 7739 if false { 7740 } else { 7741 if z.EncBasicHandle().StringToRaw { 7742 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 7743 } else { 7744 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 7745 } 7746 } 7747 } 7748 if yyr2 || yy2arr2 { 7749 r.WriteArrayElem() 7750 if false { 7751 } else { 7752 if z.EncBasicHandle().StringToRaw { 7753 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 7754 } else { 7755 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 7756 } 7757 } 7758 } else { 7759 r.WriteMapElemKey() 7760 if z.IsJSONHandle() { 7761 z.WriteStr("\"Namespace\"") 7762 } else { 7763 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 7764 } 7765 r.WriteMapElemValue() 7766 if false { 7767 } else { 7768 if z.EncBasicHandle().StringToRaw { 7769 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 7770 } else { 7771 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 7772 } 7773 } 7774 } 7775 if yyr2 || yy2arr2 { 7776 r.WriteArrayElem() 7777 if false { 7778 } else { 7779 r.EncodeUint(uint64(x.MinQueryIndex)) 7780 } 7781 } else { 7782 r.WriteMapElemKey() 7783 if z.IsJSONHandle() { 7784 z.WriteStr("\"MinQueryIndex\"") 7785 } else { 7786 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 7787 } 7788 r.WriteMapElemValue() 7789 if false { 7790 } else { 7791 r.EncodeUint(uint64(x.MinQueryIndex)) 7792 } 7793 } 7794 if yyr2 || yy2arr2 { 7795 r.WriteArrayElem() 7796 if false { 7797 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 7798 z.EncExtension(x.MaxQueryTime, yyxt13) 7799 } else { 7800 r.EncodeInt(int64(x.MaxQueryTime)) 7801 } 7802 } else { 7803 r.WriteMapElemKey() 7804 if z.IsJSONHandle() { 7805 z.WriteStr("\"MaxQueryTime\"") 7806 } else { 7807 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 7808 } 7809 r.WriteMapElemValue() 7810 if false { 7811 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 7812 z.EncExtension(x.MaxQueryTime, yyxt14) 7813 } else { 7814 r.EncodeInt(int64(x.MaxQueryTime)) 7815 } 7816 } 7817 if yyr2 || yy2arr2 { 7818 r.WriteArrayElem() 7819 if false { 7820 } else { 7821 r.EncodeBool(bool(x.AllowStale)) 7822 } 7823 } else { 7824 r.WriteMapElemKey() 7825 if z.IsJSONHandle() { 7826 z.WriteStr("\"AllowStale\"") 7827 } else { 7828 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 7829 } 7830 r.WriteMapElemValue() 7831 if false { 7832 } else { 7833 r.EncodeBool(bool(x.AllowStale)) 7834 } 7835 } 7836 if yyr2 || yy2arr2 { 7837 r.WriteArrayElem() 7838 if false { 7839 } else { 7840 if z.EncBasicHandle().StringToRaw { 7841 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 7842 } else { 7843 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 7844 } 7845 } 7846 } else { 7847 r.WriteMapElemKey() 7848 if z.IsJSONHandle() { 7849 z.WriteStr("\"Prefix\"") 7850 } else { 7851 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 7852 } 7853 r.WriteMapElemValue() 7854 if false { 7855 } else { 7856 if z.EncBasicHandle().StringToRaw { 7857 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 7858 } else { 7859 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 7860 } 7861 } 7862 } 7863 if yyr2 || yy2arr2 { 7864 r.WriteArrayElem() 7865 if false { 7866 } else { 7867 if z.EncBasicHandle().StringToRaw { 7868 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 7869 } else { 7870 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 7871 } 7872 } 7873 } else { 7874 r.WriteMapElemKey() 7875 if z.IsJSONHandle() { 7876 z.WriteStr("\"AuthToken\"") 7877 } else { 7878 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 7879 } 7880 r.WriteMapElemValue() 7881 if false { 7882 } else { 7883 if z.EncBasicHandle().StringToRaw { 7884 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 7885 } else { 7886 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 7887 } 7888 } 7889 } 7890 if yyr2 || yy2arr2 { 7891 r.WriteArrayElem() 7892 if false { 7893 } else { 7894 r.EncodeBool(bool(x.Forwarded)) 7895 } 7896 } else { 7897 r.WriteMapElemKey() 7898 if z.IsJSONHandle() { 7899 z.WriteStr("\"Forwarded\"") 7900 } else { 7901 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 7902 } 7903 r.WriteMapElemValue() 7904 if false { 7905 } else { 7906 r.EncodeBool(bool(x.Forwarded)) 7907 } 7908 } 7909 if yyr2 || yy2arr2 { 7910 r.WriteArrayEnd() 7911 } else { 7912 r.WriteMapEnd() 7913 } 7914 } 7915 } 7916 } 7917 7918 func (x *CSIPluginListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 7919 var h codecSelfer100 7920 z, r := codec1978.GenHelperDecoder(d) 7921 _, _, _ = h, z, r 7922 if false { 7923 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 7924 z.DecExtension(x, yyxt1) 7925 } else { 7926 yyct2 := r.ContainerType() 7927 if yyct2 == codecSelferValueTypeMap100 { 7928 yyl2 := r.ReadMapStart() 7929 if yyl2 == 0 { 7930 r.ReadMapEnd() 7931 } else { 7932 x.codecDecodeSelfFromMap(yyl2, d) 7933 } 7934 } else if yyct2 == codecSelferValueTypeArray100 { 7935 yyl2 := r.ReadArrayStart() 7936 if yyl2 == 0 { 7937 r.ReadArrayEnd() 7938 } else { 7939 x.codecDecodeSelfFromArray(yyl2, d) 7940 } 7941 } else { 7942 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 7943 } 7944 } 7945 } 7946 7947 func (x *CSIPluginListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 7948 var h codecSelfer100 7949 z, r := codec1978.GenHelperDecoder(d) 7950 _, _, _ = h, z, r 7951 var yyhl3 bool = l >= 0 7952 for yyj3 := 0; ; yyj3++ { 7953 if yyhl3 { 7954 if yyj3 >= l { 7955 break 7956 } 7957 } else { 7958 if r.CheckBreak() { 7959 break 7960 } 7961 } 7962 r.ReadMapElemKey() 7963 yys3 := z.StringView(r.DecodeStringAsBytes()) 7964 r.ReadMapElemValue() 7965 switch yys3 { 7966 case "Region": 7967 if r.TryDecodeAsNil() { 7968 x.QueryOptions.Region = "" 7969 } else { 7970 x.Region = (string)(r.DecodeString()) 7971 } 7972 case "Namespace": 7973 if r.TryDecodeAsNil() { 7974 x.QueryOptions.Namespace = "" 7975 } else { 7976 x.Namespace = (string)(r.DecodeString()) 7977 } 7978 case "MinQueryIndex": 7979 if r.TryDecodeAsNil() { 7980 x.QueryOptions.MinQueryIndex = 0 7981 } else { 7982 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 7983 } 7984 case "MaxQueryTime": 7985 if r.TryDecodeAsNil() { 7986 x.QueryOptions.MaxQueryTime = 0 7987 } else { 7988 if false { 7989 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 7990 z.DecExtension(x.MaxQueryTime, yyxt8) 7991 } else { 7992 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 7993 } 7994 } 7995 case "AllowStale": 7996 if r.TryDecodeAsNil() { 7997 x.QueryOptions.AllowStale = false 7998 } else { 7999 x.AllowStale = (bool)(r.DecodeBool()) 8000 } 8001 case "Prefix": 8002 if r.TryDecodeAsNil() { 8003 x.QueryOptions.Prefix = "" 8004 } else { 8005 x.Prefix = (string)(r.DecodeString()) 8006 } 8007 case "AuthToken": 8008 if r.TryDecodeAsNil() { 8009 x.QueryOptions.AuthToken = "" 8010 } else { 8011 x.AuthToken = (string)(r.DecodeString()) 8012 } 8013 case "Forwarded": 8014 if r.TryDecodeAsNil() { 8015 x.QueryOptions.InternalRpcInfo.Forwarded = false 8016 } else { 8017 x.Forwarded = (bool)(r.DecodeBool()) 8018 } 8019 default: 8020 z.DecStructFieldNotFound(-1, yys3) 8021 } // end switch yys3 8022 } // end for yyj3 8023 r.ReadMapEnd() 8024 } 8025 8026 func (x *CSIPluginListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 8027 var h codecSelfer100 8028 z, r := codec1978.GenHelperDecoder(d) 8029 _, _, _ = h, z, r 8030 var yyj13 int 8031 var yyb13 bool 8032 var yyhl13 bool = l >= 0 8033 yyj13++ 8034 if yyhl13 { 8035 yyb13 = yyj13 > l 8036 } else { 8037 yyb13 = r.CheckBreak() 8038 } 8039 if yyb13 { 8040 r.ReadArrayEnd() 8041 return 8042 } 8043 r.ReadArrayElem() 8044 if r.TryDecodeAsNil() { 8045 x.QueryOptions.Region = "" 8046 } else { 8047 x.Region = (string)(r.DecodeString()) 8048 } 8049 yyj13++ 8050 if yyhl13 { 8051 yyb13 = yyj13 > l 8052 } else { 8053 yyb13 = r.CheckBreak() 8054 } 8055 if yyb13 { 8056 r.ReadArrayEnd() 8057 return 8058 } 8059 r.ReadArrayElem() 8060 if r.TryDecodeAsNil() { 8061 x.QueryOptions.Namespace = "" 8062 } else { 8063 x.Namespace = (string)(r.DecodeString()) 8064 } 8065 yyj13++ 8066 if yyhl13 { 8067 yyb13 = yyj13 > l 8068 } else { 8069 yyb13 = r.CheckBreak() 8070 } 8071 if yyb13 { 8072 r.ReadArrayEnd() 8073 return 8074 } 8075 r.ReadArrayElem() 8076 if r.TryDecodeAsNil() { 8077 x.QueryOptions.MinQueryIndex = 0 8078 } else { 8079 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 8080 } 8081 yyj13++ 8082 if yyhl13 { 8083 yyb13 = yyj13 > l 8084 } else { 8085 yyb13 = r.CheckBreak() 8086 } 8087 if yyb13 { 8088 r.ReadArrayEnd() 8089 return 8090 } 8091 r.ReadArrayElem() 8092 if r.TryDecodeAsNil() { 8093 x.QueryOptions.MaxQueryTime = 0 8094 } else { 8095 if false { 8096 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 8097 z.DecExtension(x.MaxQueryTime, yyxt18) 8098 } else { 8099 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 8100 } 8101 } 8102 yyj13++ 8103 if yyhl13 { 8104 yyb13 = yyj13 > l 8105 } else { 8106 yyb13 = r.CheckBreak() 8107 } 8108 if yyb13 { 8109 r.ReadArrayEnd() 8110 return 8111 } 8112 r.ReadArrayElem() 8113 if r.TryDecodeAsNil() { 8114 x.QueryOptions.AllowStale = false 8115 } else { 8116 x.AllowStale = (bool)(r.DecodeBool()) 8117 } 8118 yyj13++ 8119 if yyhl13 { 8120 yyb13 = yyj13 > l 8121 } else { 8122 yyb13 = r.CheckBreak() 8123 } 8124 if yyb13 { 8125 r.ReadArrayEnd() 8126 return 8127 } 8128 r.ReadArrayElem() 8129 if r.TryDecodeAsNil() { 8130 x.QueryOptions.Prefix = "" 8131 } else { 8132 x.Prefix = (string)(r.DecodeString()) 8133 } 8134 yyj13++ 8135 if yyhl13 { 8136 yyb13 = yyj13 > l 8137 } else { 8138 yyb13 = r.CheckBreak() 8139 } 8140 if yyb13 { 8141 r.ReadArrayEnd() 8142 return 8143 } 8144 r.ReadArrayElem() 8145 if r.TryDecodeAsNil() { 8146 x.QueryOptions.AuthToken = "" 8147 } else { 8148 x.AuthToken = (string)(r.DecodeString()) 8149 } 8150 yyj13++ 8151 if yyhl13 { 8152 yyb13 = yyj13 > l 8153 } else { 8154 yyb13 = r.CheckBreak() 8155 } 8156 if yyb13 { 8157 r.ReadArrayEnd() 8158 return 8159 } 8160 r.ReadArrayElem() 8161 if r.TryDecodeAsNil() { 8162 x.QueryOptions.InternalRpcInfo.Forwarded = false 8163 } else { 8164 x.Forwarded = (bool)(r.DecodeBool()) 8165 } 8166 for { 8167 yyj13++ 8168 if yyhl13 { 8169 yyb13 = yyj13 > l 8170 } else { 8171 yyb13 = r.CheckBreak() 8172 } 8173 if yyb13 { 8174 break 8175 } 8176 r.ReadArrayElem() 8177 z.DecStructFieldNotFound(yyj13-1, "") 8178 } 8179 r.ReadArrayEnd() 8180 } 8181 8182 func (x *CSIPluginListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 8183 var h codecSelfer100 8184 z, r := codec1978.GenHelperEncoder(e) 8185 _, _, _ = h, z, r 8186 if x == nil { 8187 r.EncodeNil() 8188 } else { 8189 if false { 8190 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 8191 z.EncExtension(x, yyxt1) 8192 } else { 8193 yysep2 := !z.EncBinary() 8194 yy2arr2 := z.EncBasicHandle().StructToArray 8195 _, _ = yysep2, yy2arr2 8196 const yyr2 bool = false // struct tag has 'toArray' 8197 if yyr2 || yy2arr2 { 8198 r.WriteArrayStart(4) 8199 } else { 8200 r.WriteMapStart(4) 8201 } 8202 if yyr2 || yy2arr2 { 8203 r.WriteArrayElem() 8204 if x.Plugins == nil { 8205 r.EncodeNil() 8206 } else { 8207 if false { 8208 } else { 8209 h.encSlicePtrtoCSIPluginListStub(([]*CSIPluginListStub)(x.Plugins), e) 8210 } 8211 } 8212 } else { 8213 r.WriteMapElemKey() 8214 if z.IsJSONHandle() { 8215 z.WriteStr("\"Plugins\"") 8216 } else { 8217 r.EncodeStringEnc(codecSelferCcUTF8100, `Plugins`) 8218 } 8219 r.WriteMapElemValue() 8220 if x.Plugins == nil { 8221 r.EncodeNil() 8222 } else { 8223 if false { 8224 } else { 8225 h.encSlicePtrtoCSIPluginListStub(([]*CSIPluginListStub)(x.Plugins), e) 8226 } 8227 } 8228 } 8229 if yyr2 || yy2arr2 { 8230 r.WriteArrayElem() 8231 if false { 8232 } else { 8233 r.EncodeUint(uint64(x.Index)) 8234 } 8235 } else { 8236 r.WriteMapElemKey() 8237 if z.IsJSONHandle() { 8238 z.WriteStr("\"Index\"") 8239 } else { 8240 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 8241 } 8242 r.WriteMapElemValue() 8243 if false { 8244 } else { 8245 r.EncodeUint(uint64(x.Index)) 8246 } 8247 } 8248 if yyr2 || yy2arr2 { 8249 r.WriteArrayElem() 8250 if false { 8251 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 8252 z.EncExtension(x.LastContact, yyxt10) 8253 } else { 8254 r.EncodeInt(int64(x.LastContact)) 8255 } 8256 } else { 8257 r.WriteMapElemKey() 8258 if z.IsJSONHandle() { 8259 z.WriteStr("\"LastContact\"") 8260 } else { 8261 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 8262 } 8263 r.WriteMapElemValue() 8264 if false { 8265 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 8266 z.EncExtension(x.LastContact, yyxt11) 8267 } else { 8268 r.EncodeInt(int64(x.LastContact)) 8269 } 8270 } 8271 if yyr2 || yy2arr2 { 8272 r.WriteArrayElem() 8273 if false { 8274 } else { 8275 r.EncodeBool(bool(x.KnownLeader)) 8276 } 8277 } else { 8278 r.WriteMapElemKey() 8279 if z.IsJSONHandle() { 8280 z.WriteStr("\"KnownLeader\"") 8281 } else { 8282 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 8283 } 8284 r.WriteMapElemValue() 8285 if false { 8286 } else { 8287 r.EncodeBool(bool(x.KnownLeader)) 8288 } 8289 } 8290 if yyr2 || yy2arr2 { 8291 r.WriteArrayEnd() 8292 } else { 8293 r.WriteMapEnd() 8294 } 8295 } 8296 } 8297 } 8298 8299 func (x *CSIPluginListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 8300 var h codecSelfer100 8301 z, r := codec1978.GenHelperDecoder(d) 8302 _, _, _ = h, z, r 8303 if false { 8304 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 8305 z.DecExtension(x, yyxt1) 8306 } else { 8307 yyct2 := r.ContainerType() 8308 if yyct2 == codecSelferValueTypeMap100 { 8309 yyl2 := r.ReadMapStart() 8310 if yyl2 == 0 { 8311 r.ReadMapEnd() 8312 } else { 8313 x.codecDecodeSelfFromMap(yyl2, d) 8314 } 8315 } else if yyct2 == codecSelferValueTypeArray100 { 8316 yyl2 := r.ReadArrayStart() 8317 if yyl2 == 0 { 8318 r.ReadArrayEnd() 8319 } else { 8320 x.codecDecodeSelfFromArray(yyl2, d) 8321 } 8322 } else { 8323 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 8324 } 8325 } 8326 } 8327 8328 func (x *CSIPluginListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 8329 var h codecSelfer100 8330 z, r := codec1978.GenHelperDecoder(d) 8331 _, _, _ = h, z, r 8332 var yyhl3 bool = l >= 0 8333 for yyj3 := 0; ; yyj3++ { 8334 if yyhl3 { 8335 if yyj3 >= l { 8336 break 8337 } 8338 } else { 8339 if r.CheckBreak() { 8340 break 8341 } 8342 } 8343 r.ReadMapElemKey() 8344 yys3 := z.StringView(r.DecodeStringAsBytes()) 8345 r.ReadMapElemValue() 8346 switch yys3 { 8347 case "Plugins": 8348 if r.TryDecodeAsNil() { 8349 x.Plugins = nil 8350 } else { 8351 if false { 8352 } else { 8353 h.decSlicePtrtoCSIPluginListStub((*[]*CSIPluginListStub)(&x.Plugins), d) 8354 } 8355 } 8356 case "Index": 8357 if r.TryDecodeAsNil() { 8358 x.QueryMeta.Index = 0 8359 } else { 8360 x.Index = (uint64)(r.DecodeUint64()) 8361 } 8362 case "LastContact": 8363 if r.TryDecodeAsNil() { 8364 x.QueryMeta.LastContact = 0 8365 } else { 8366 if false { 8367 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 8368 z.DecExtension(x.LastContact, yyxt8) 8369 } else { 8370 x.LastContact = (time.Duration)(r.DecodeInt64()) 8371 } 8372 } 8373 case "KnownLeader": 8374 if r.TryDecodeAsNil() { 8375 x.QueryMeta.KnownLeader = false 8376 } else { 8377 x.KnownLeader = (bool)(r.DecodeBool()) 8378 } 8379 default: 8380 z.DecStructFieldNotFound(-1, yys3) 8381 } // end switch yys3 8382 } // end for yyj3 8383 r.ReadMapEnd() 8384 } 8385 8386 func (x *CSIPluginListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 8387 var h codecSelfer100 8388 z, r := codec1978.GenHelperDecoder(d) 8389 _, _, _ = h, z, r 8390 var yyj10 int 8391 var yyb10 bool 8392 var yyhl10 bool = l >= 0 8393 yyj10++ 8394 if yyhl10 { 8395 yyb10 = yyj10 > l 8396 } else { 8397 yyb10 = r.CheckBreak() 8398 } 8399 if yyb10 { 8400 r.ReadArrayEnd() 8401 return 8402 } 8403 r.ReadArrayElem() 8404 if r.TryDecodeAsNil() { 8405 x.Plugins = nil 8406 } else { 8407 if false { 8408 } else { 8409 h.decSlicePtrtoCSIPluginListStub((*[]*CSIPluginListStub)(&x.Plugins), d) 8410 } 8411 } 8412 yyj10++ 8413 if yyhl10 { 8414 yyb10 = yyj10 > l 8415 } else { 8416 yyb10 = r.CheckBreak() 8417 } 8418 if yyb10 { 8419 r.ReadArrayEnd() 8420 return 8421 } 8422 r.ReadArrayElem() 8423 if r.TryDecodeAsNil() { 8424 x.QueryMeta.Index = 0 8425 } else { 8426 x.Index = (uint64)(r.DecodeUint64()) 8427 } 8428 yyj10++ 8429 if yyhl10 { 8430 yyb10 = yyj10 > l 8431 } else { 8432 yyb10 = r.CheckBreak() 8433 } 8434 if yyb10 { 8435 r.ReadArrayEnd() 8436 return 8437 } 8438 r.ReadArrayElem() 8439 if r.TryDecodeAsNil() { 8440 x.QueryMeta.LastContact = 0 8441 } else { 8442 if false { 8443 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 8444 z.DecExtension(x.LastContact, yyxt15) 8445 } else { 8446 x.LastContact = (time.Duration)(r.DecodeInt64()) 8447 } 8448 } 8449 yyj10++ 8450 if yyhl10 { 8451 yyb10 = yyj10 > l 8452 } else { 8453 yyb10 = r.CheckBreak() 8454 } 8455 if yyb10 { 8456 r.ReadArrayEnd() 8457 return 8458 } 8459 r.ReadArrayElem() 8460 if r.TryDecodeAsNil() { 8461 x.QueryMeta.KnownLeader = false 8462 } else { 8463 x.KnownLeader = (bool)(r.DecodeBool()) 8464 } 8465 for { 8466 yyj10++ 8467 if yyhl10 { 8468 yyb10 = yyj10 > l 8469 } else { 8470 yyb10 = r.CheckBreak() 8471 } 8472 if yyb10 { 8473 break 8474 } 8475 r.ReadArrayElem() 8476 z.DecStructFieldNotFound(yyj10-1, "") 8477 } 8478 r.ReadArrayEnd() 8479 } 8480 8481 func (x *CSIPluginGetRequest) CodecEncodeSelf(e *codec1978.Encoder) { 8482 var h codecSelfer100 8483 z, r := codec1978.GenHelperEncoder(e) 8484 _, _, _ = h, z, r 8485 if x == nil { 8486 r.EncodeNil() 8487 } else { 8488 if false { 8489 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 8490 z.EncExtension(x, yyxt1) 8491 } else { 8492 yysep2 := !z.EncBinary() 8493 yy2arr2 := z.EncBasicHandle().StructToArray 8494 _, _ = yysep2, yy2arr2 8495 const yyr2 bool = false // struct tag has 'toArray' 8496 if yyr2 || yy2arr2 { 8497 r.WriteArrayStart(9) 8498 } else { 8499 r.WriteMapStart(9) 8500 } 8501 if yyr2 || yy2arr2 { 8502 r.WriteArrayElem() 8503 if false { 8504 } else { 8505 if z.EncBasicHandle().StringToRaw { 8506 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 8507 } else { 8508 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 8509 } 8510 } 8511 } else { 8512 r.WriteMapElemKey() 8513 if z.IsJSONHandle() { 8514 z.WriteStr("\"ID\"") 8515 } else { 8516 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 8517 } 8518 r.WriteMapElemValue() 8519 if false { 8520 } else { 8521 if z.EncBasicHandle().StringToRaw { 8522 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 8523 } else { 8524 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 8525 } 8526 } 8527 } 8528 if yyr2 || yy2arr2 { 8529 r.WriteArrayElem() 8530 if false { 8531 } else { 8532 if z.EncBasicHandle().StringToRaw { 8533 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 8534 } else { 8535 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 8536 } 8537 } 8538 } else { 8539 r.WriteMapElemKey() 8540 if z.IsJSONHandle() { 8541 z.WriteStr("\"Region\"") 8542 } else { 8543 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 8544 } 8545 r.WriteMapElemValue() 8546 if false { 8547 } else { 8548 if z.EncBasicHandle().StringToRaw { 8549 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 8550 } else { 8551 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 8552 } 8553 } 8554 } 8555 if yyr2 || yy2arr2 { 8556 r.WriteArrayElem() 8557 if false { 8558 } else { 8559 if z.EncBasicHandle().StringToRaw { 8560 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 8561 } else { 8562 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 8563 } 8564 } 8565 } else { 8566 r.WriteMapElemKey() 8567 if z.IsJSONHandle() { 8568 z.WriteStr("\"Namespace\"") 8569 } else { 8570 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 8571 } 8572 r.WriteMapElemValue() 8573 if false { 8574 } else { 8575 if z.EncBasicHandle().StringToRaw { 8576 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 8577 } else { 8578 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 8579 } 8580 } 8581 } 8582 if yyr2 || yy2arr2 { 8583 r.WriteArrayElem() 8584 if false { 8585 } else { 8586 r.EncodeUint(uint64(x.MinQueryIndex)) 8587 } 8588 } else { 8589 r.WriteMapElemKey() 8590 if z.IsJSONHandle() { 8591 z.WriteStr("\"MinQueryIndex\"") 8592 } else { 8593 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 8594 } 8595 r.WriteMapElemValue() 8596 if false { 8597 } else { 8598 r.EncodeUint(uint64(x.MinQueryIndex)) 8599 } 8600 } 8601 if yyr2 || yy2arr2 { 8602 r.WriteArrayElem() 8603 if false { 8604 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 8605 z.EncExtension(x.MaxQueryTime, yyxt16) 8606 } else { 8607 r.EncodeInt(int64(x.MaxQueryTime)) 8608 } 8609 } else { 8610 r.WriteMapElemKey() 8611 if z.IsJSONHandle() { 8612 z.WriteStr("\"MaxQueryTime\"") 8613 } else { 8614 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 8615 } 8616 r.WriteMapElemValue() 8617 if false { 8618 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 8619 z.EncExtension(x.MaxQueryTime, yyxt17) 8620 } else { 8621 r.EncodeInt(int64(x.MaxQueryTime)) 8622 } 8623 } 8624 if yyr2 || yy2arr2 { 8625 r.WriteArrayElem() 8626 if false { 8627 } else { 8628 r.EncodeBool(bool(x.AllowStale)) 8629 } 8630 } else { 8631 r.WriteMapElemKey() 8632 if z.IsJSONHandle() { 8633 z.WriteStr("\"AllowStale\"") 8634 } else { 8635 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 8636 } 8637 r.WriteMapElemValue() 8638 if false { 8639 } else { 8640 r.EncodeBool(bool(x.AllowStale)) 8641 } 8642 } 8643 if yyr2 || yy2arr2 { 8644 r.WriteArrayElem() 8645 if false { 8646 } else { 8647 if z.EncBasicHandle().StringToRaw { 8648 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 8649 } else { 8650 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 8651 } 8652 } 8653 } else { 8654 r.WriteMapElemKey() 8655 if z.IsJSONHandle() { 8656 z.WriteStr("\"Prefix\"") 8657 } else { 8658 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 8659 } 8660 r.WriteMapElemValue() 8661 if false { 8662 } else { 8663 if z.EncBasicHandle().StringToRaw { 8664 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 8665 } else { 8666 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 8667 } 8668 } 8669 } 8670 if yyr2 || yy2arr2 { 8671 r.WriteArrayElem() 8672 if false { 8673 } else { 8674 if z.EncBasicHandle().StringToRaw { 8675 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 8676 } else { 8677 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 8678 } 8679 } 8680 } else { 8681 r.WriteMapElemKey() 8682 if z.IsJSONHandle() { 8683 z.WriteStr("\"AuthToken\"") 8684 } else { 8685 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 8686 } 8687 r.WriteMapElemValue() 8688 if false { 8689 } else { 8690 if z.EncBasicHandle().StringToRaw { 8691 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 8692 } else { 8693 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 8694 } 8695 } 8696 } 8697 if yyr2 || yy2arr2 { 8698 r.WriteArrayElem() 8699 if false { 8700 } else { 8701 r.EncodeBool(bool(x.Forwarded)) 8702 } 8703 } else { 8704 r.WriteMapElemKey() 8705 if z.IsJSONHandle() { 8706 z.WriteStr("\"Forwarded\"") 8707 } else { 8708 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 8709 } 8710 r.WriteMapElemValue() 8711 if false { 8712 } else { 8713 r.EncodeBool(bool(x.Forwarded)) 8714 } 8715 } 8716 if yyr2 || yy2arr2 { 8717 r.WriteArrayEnd() 8718 } else { 8719 r.WriteMapEnd() 8720 } 8721 } 8722 } 8723 } 8724 8725 func (x *CSIPluginGetRequest) CodecDecodeSelf(d *codec1978.Decoder) { 8726 var h codecSelfer100 8727 z, r := codec1978.GenHelperDecoder(d) 8728 _, _, _ = h, z, r 8729 if false { 8730 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 8731 z.DecExtension(x, yyxt1) 8732 } else { 8733 yyct2 := r.ContainerType() 8734 if yyct2 == codecSelferValueTypeMap100 { 8735 yyl2 := r.ReadMapStart() 8736 if yyl2 == 0 { 8737 r.ReadMapEnd() 8738 } else { 8739 x.codecDecodeSelfFromMap(yyl2, d) 8740 } 8741 } else if yyct2 == codecSelferValueTypeArray100 { 8742 yyl2 := r.ReadArrayStart() 8743 if yyl2 == 0 { 8744 r.ReadArrayEnd() 8745 } else { 8746 x.codecDecodeSelfFromArray(yyl2, d) 8747 } 8748 } else { 8749 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 8750 } 8751 } 8752 } 8753 8754 func (x *CSIPluginGetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 8755 var h codecSelfer100 8756 z, r := codec1978.GenHelperDecoder(d) 8757 _, _, _ = h, z, r 8758 var yyhl3 bool = l >= 0 8759 for yyj3 := 0; ; yyj3++ { 8760 if yyhl3 { 8761 if yyj3 >= l { 8762 break 8763 } 8764 } else { 8765 if r.CheckBreak() { 8766 break 8767 } 8768 } 8769 r.ReadMapElemKey() 8770 yys3 := z.StringView(r.DecodeStringAsBytes()) 8771 r.ReadMapElemValue() 8772 switch yys3 { 8773 case "ID": 8774 if r.TryDecodeAsNil() { 8775 x.ID = "" 8776 } else { 8777 x.ID = (string)(r.DecodeString()) 8778 } 8779 case "Region": 8780 if r.TryDecodeAsNil() { 8781 x.QueryOptions.Region = "" 8782 } else { 8783 x.Region = (string)(r.DecodeString()) 8784 } 8785 case "Namespace": 8786 if r.TryDecodeAsNil() { 8787 x.QueryOptions.Namespace = "" 8788 } else { 8789 x.Namespace = (string)(r.DecodeString()) 8790 } 8791 case "MinQueryIndex": 8792 if r.TryDecodeAsNil() { 8793 x.QueryOptions.MinQueryIndex = 0 8794 } else { 8795 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 8796 } 8797 case "MaxQueryTime": 8798 if r.TryDecodeAsNil() { 8799 x.QueryOptions.MaxQueryTime = 0 8800 } else { 8801 if false { 8802 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 8803 z.DecExtension(x.MaxQueryTime, yyxt9) 8804 } else { 8805 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 8806 } 8807 } 8808 case "AllowStale": 8809 if r.TryDecodeAsNil() { 8810 x.QueryOptions.AllowStale = false 8811 } else { 8812 x.AllowStale = (bool)(r.DecodeBool()) 8813 } 8814 case "Prefix": 8815 if r.TryDecodeAsNil() { 8816 x.QueryOptions.Prefix = "" 8817 } else { 8818 x.Prefix = (string)(r.DecodeString()) 8819 } 8820 case "AuthToken": 8821 if r.TryDecodeAsNil() { 8822 x.QueryOptions.AuthToken = "" 8823 } else { 8824 x.AuthToken = (string)(r.DecodeString()) 8825 } 8826 case "Forwarded": 8827 if r.TryDecodeAsNil() { 8828 x.QueryOptions.InternalRpcInfo.Forwarded = false 8829 } else { 8830 x.Forwarded = (bool)(r.DecodeBool()) 8831 } 8832 default: 8833 z.DecStructFieldNotFound(-1, yys3) 8834 } // end switch yys3 8835 } // end for yyj3 8836 r.ReadMapEnd() 8837 } 8838 8839 func (x *CSIPluginGetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 8840 var h codecSelfer100 8841 z, r := codec1978.GenHelperDecoder(d) 8842 _, _, _ = h, z, r 8843 var yyj14 int 8844 var yyb14 bool 8845 var yyhl14 bool = l >= 0 8846 yyj14++ 8847 if yyhl14 { 8848 yyb14 = yyj14 > l 8849 } else { 8850 yyb14 = r.CheckBreak() 8851 } 8852 if yyb14 { 8853 r.ReadArrayEnd() 8854 return 8855 } 8856 r.ReadArrayElem() 8857 if r.TryDecodeAsNil() { 8858 x.ID = "" 8859 } else { 8860 x.ID = (string)(r.DecodeString()) 8861 } 8862 yyj14++ 8863 if yyhl14 { 8864 yyb14 = yyj14 > l 8865 } else { 8866 yyb14 = r.CheckBreak() 8867 } 8868 if yyb14 { 8869 r.ReadArrayEnd() 8870 return 8871 } 8872 r.ReadArrayElem() 8873 if r.TryDecodeAsNil() { 8874 x.QueryOptions.Region = "" 8875 } else { 8876 x.Region = (string)(r.DecodeString()) 8877 } 8878 yyj14++ 8879 if yyhl14 { 8880 yyb14 = yyj14 > l 8881 } else { 8882 yyb14 = r.CheckBreak() 8883 } 8884 if yyb14 { 8885 r.ReadArrayEnd() 8886 return 8887 } 8888 r.ReadArrayElem() 8889 if r.TryDecodeAsNil() { 8890 x.QueryOptions.Namespace = "" 8891 } else { 8892 x.Namespace = (string)(r.DecodeString()) 8893 } 8894 yyj14++ 8895 if yyhl14 { 8896 yyb14 = yyj14 > l 8897 } else { 8898 yyb14 = r.CheckBreak() 8899 } 8900 if yyb14 { 8901 r.ReadArrayEnd() 8902 return 8903 } 8904 r.ReadArrayElem() 8905 if r.TryDecodeAsNil() { 8906 x.QueryOptions.MinQueryIndex = 0 8907 } else { 8908 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 8909 } 8910 yyj14++ 8911 if yyhl14 { 8912 yyb14 = yyj14 > l 8913 } else { 8914 yyb14 = r.CheckBreak() 8915 } 8916 if yyb14 { 8917 r.ReadArrayEnd() 8918 return 8919 } 8920 r.ReadArrayElem() 8921 if r.TryDecodeAsNil() { 8922 x.QueryOptions.MaxQueryTime = 0 8923 } else { 8924 if false { 8925 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 8926 z.DecExtension(x.MaxQueryTime, yyxt20) 8927 } else { 8928 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 8929 } 8930 } 8931 yyj14++ 8932 if yyhl14 { 8933 yyb14 = yyj14 > l 8934 } else { 8935 yyb14 = r.CheckBreak() 8936 } 8937 if yyb14 { 8938 r.ReadArrayEnd() 8939 return 8940 } 8941 r.ReadArrayElem() 8942 if r.TryDecodeAsNil() { 8943 x.QueryOptions.AllowStale = false 8944 } else { 8945 x.AllowStale = (bool)(r.DecodeBool()) 8946 } 8947 yyj14++ 8948 if yyhl14 { 8949 yyb14 = yyj14 > l 8950 } else { 8951 yyb14 = r.CheckBreak() 8952 } 8953 if yyb14 { 8954 r.ReadArrayEnd() 8955 return 8956 } 8957 r.ReadArrayElem() 8958 if r.TryDecodeAsNil() { 8959 x.QueryOptions.Prefix = "" 8960 } else { 8961 x.Prefix = (string)(r.DecodeString()) 8962 } 8963 yyj14++ 8964 if yyhl14 { 8965 yyb14 = yyj14 > l 8966 } else { 8967 yyb14 = r.CheckBreak() 8968 } 8969 if yyb14 { 8970 r.ReadArrayEnd() 8971 return 8972 } 8973 r.ReadArrayElem() 8974 if r.TryDecodeAsNil() { 8975 x.QueryOptions.AuthToken = "" 8976 } else { 8977 x.AuthToken = (string)(r.DecodeString()) 8978 } 8979 yyj14++ 8980 if yyhl14 { 8981 yyb14 = yyj14 > l 8982 } else { 8983 yyb14 = r.CheckBreak() 8984 } 8985 if yyb14 { 8986 r.ReadArrayEnd() 8987 return 8988 } 8989 r.ReadArrayElem() 8990 if r.TryDecodeAsNil() { 8991 x.QueryOptions.InternalRpcInfo.Forwarded = false 8992 } else { 8993 x.Forwarded = (bool)(r.DecodeBool()) 8994 } 8995 for { 8996 yyj14++ 8997 if yyhl14 { 8998 yyb14 = yyj14 > l 8999 } else { 9000 yyb14 = r.CheckBreak() 9001 } 9002 if yyb14 { 9003 break 9004 } 9005 r.ReadArrayElem() 9006 z.DecStructFieldNotFound(yyj14-1, "") 9007 } 9008 r.ReadArrayEnd() 9009 } 9010 9011 func (x *CSIPluginGetResponse) CodecEncodeSelf(e *codec1978.Encoder) { 9012 var h codecSelfer100 9013 z, r := codec1978.GenHelperEncoder(e) 9014 _, _, _ = h, z, r 9015 if x == nil { 9016 r.EncodeNil() 9017 } else { 9018 if false { 9019 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 9020 z.EncExtension(x, yyxt1) 9021 } else { 9022 yysep2 := !z.EncBinary() 9023 yy2arr2 := z.EncBasicHandle().StructToArray 9024 _, _ = yysep2, yy2arr2 9025 const yyr2 bool = false // struct tag has 'toArray' 9026 if yyr2 || yy2arr2 { 9027 r.WriteArrayStart(4) 9028 } else { 9029 r.WriteMapStart(4) 9030 } 9031 var yyn3 bool 9032 if x.Plugin == nil { 9033 yyn3 = true 9034 goto LABEL3 9035 } 9036 LABEL3: 9037 if yyr2 || yy2arr2 { 9038 if yyn3 { 9039 r.WriteArrayElem() 9040 r.EncodeNil() 9041 } else { 9042 r.WriteArrayElem() 9043 if x.Plugin == nil { 9044 r.EncodeNil() 9045 } else { 9046 x.Plugin.CodecEncodeSelf(e) 9047 } 9048 } 9049 } else { 9050 r.WriteMapElemKey() 9051 if z.IsJSONHandle() { 9052 z.WriteStr("\"Plugin\"") 9053 } else { 9054 r.EncodeStringEnc(codecSelferCcUTF8100, `Plugin`) 9055 } 9056 r.WriteMapElemValue() 9057 if yyn3 { 9058 r.EncodeNil() 9059 } else { 9060 if x.Plugin == nil { 9061 r.EncodeNil() 9062 } else { 9063 x.Plugin.CodecEncodeSelf(e) 9064 } 9065 } 9066 } 9067 if yyr2 || yy2arr2 { 9068 r.WriteArrayElem() 9069 if false { 9070 } else { 9071 r.EncodeUint(uint64(x.Index)) 9072 } 9073 } else { 9074 r.WriteMapElemKey() 9075 if z.IsJSONHandle() { 9076 z.WriteStr("\"Index\"") 9077 } else { 9078 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 9079 } 9080 r.WriteMapElemValue() 9081 if false { 9082 } else { 9083 r.EncodeUint(uint64(x.Index)) 9084 } 9085 } 9086 if yyr2 || yy2arr2 { 9087 r.WriteArrayElem() 9088 if false { 9089 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 9090 z.EncExtension(x.LastContact, yyxt10) 9091 } else { 9092 r.EncodeInt(int64(x.LastContact)) 9093 } 9094 } else { 9095 r.WriteMapElemKey() 9096 if z.IsJSONHandle() { 9097 z.WriteStr("\"LastContact\"") 9098 } else { 9099 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 9100 } 9101 r.WriteMapElemValue() 9102 if false { 9103 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 9104 z.EncExtension(x.LastContact, yyxt11) 9105 } else { 9106 r.EncodeInt(int64(x.LastContact)) 9107 } 9108 } 9109 if yyr2 || yy2arr2 { 9110 r.WriteArrayElem() 9111 if false { 9112 } else { 9113 r.EncodeBool(bool(x.KnownLeader)) 9114 } 9115 } else { 9116 r.WriteMapElemKey() 9117 if z.IsJSONHandle() { 9118 z.WriteStr("\"KnownLeader\"") 9119 } else { 9120 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 9121 } 9122 r.WriteMapElemValue() 9123 if false { 9124 } else { 9125 r.EncodeBool(bool(x.KnownLeader)) 9126 } 9127 } 9128 if yyr2 || yy2arr2 { 9129 r.WriteArrayEnd() 9130 } else { 9131 r.WriteMapEnd() 9132 } 9133 } 9134 } 9135 } 9136 9137 func (x *CSIPluginGetResponse) CodecDecodeSelf(d *codec1978.Decoder) { 9138 var h codecSelfer100 9139 z, r := codec1978.GenHelperDecoder(d) 9140 _, _, _ = h, z, r 9141 if false { 9142 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 9143 z.DecExtension(x, yyxt1) 9144 } else { 9145 yyct2 := r.ContainerType() 9146 if yyct2 == codecSelferValueTypeMap100 { 9147 yyl2 := r.ReadMapStart() 9148 if yyl2 == 0 { 9149 r.ReadMapEnd() 9150 } else { 9151 x.codecDecodeSelfFromMap(yyl2, d) 9152 } 9153 } else if yyct2 == codecSelferValueTypeArray100 { 9154 yyl2 := r.ReadArrayStart() 9155 if yyl2 == 0 { 9156 r.ReadArrayEnd() 9157 } else { 9158 x.codecDecodeSelfFromArray(yyl2, d) 9159 } 9160 } else { 9161 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 9162 } 9163 } 9164 } 9165 9166 func (x *CSIPluginGetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 9167 var h codecSelfer100 9168 z, r := codec1978.GenHelperDecoder(d) 9169 _, _, _ = h, z, r 9170 var yyhl3 bool = l >= 0 9171 for yyj3 := 0; ; yyj3++ { 9172 if yyhl3 { 9173 if yyj3 >= l { 9174 break 9175 } 9176 } else { 9177 if r.CheckBreak() { 9178 break 9179 } 9180 } 9181 r.ReadMapElemKey() 9182 yys3 := z.StringView(r.DecodeStringAsBytes()) 9183 r.ReadMapElemValue() 9184 switch yys3 { 9185 case "Plugin": 9186 if r.TryDecodeAsNil() { 9187 if true && x.Plugin != nil { 9188 x.Plugin = nil 9189 } 9190 } else { 9191 if x.Plugin == nil { 9192 x.Plugin = new(CSIPlugin) 9193 } 9194 9195 x.Plugin.CodecDecodeSelf(d) 9196 } 9197 case "Index": 9198 if r.TryDecodeAsNil() { 9199 x.QueryMeta.Index = 0 9200 } else { 9201 x.Index = (uint64)(r.DecodeUint64()) 9202 } 9203 case "LastContact": 9204 if r.TryDecodeAsNil() { 9205 x.QueryMeta.LastContact = 0 9206 } else { 9207 if false { 9208 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 9209 z.DecExtension(x.LastContact, yyxt7) 9210 } else { 9211 x.LastContact = (time.Duration)(r.DecodeInt64()) 9212 } 9213 } 9214 case "KnownLeader": 9215 if r.TryDecodeAsNil() { 9216 x.QueryMeta.KnownLeader = false 9217 } else { 9218 x.KnownLeader = (bool)(r.DecodeBool()) 9219 } 9220 default: 9221 z.DecStructFieldNotFound(-1, yys3) 9222 } // end switch yys3 9223 } // end for yyj3 9224 r.ReadMapEnd() 9225 } 9226 9227 func (x *CSIPluginGetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 9228 var h codecSelfer100 9229 z, r := codec1978.GenHelperDecoder(d) 9230 _, _, _ = h, z, r 9231 var yyj9 int 9232 var yyb9 bool 9233 var yyhl9 bool = l >= 0 9234 yyj9++ 9235 if yyhl9 { 9236 yyb9 = yyj9 > l 9237 } else { 9238 yyb9 = r.CheckBreak() 9239 } 9240 if yyb9 { 9241 r.ReadArrayEnd() 9242 return 9243 } 9244 r.ReadArrayElem() 9245 if r.TryDecodeAsNil() { 9246 if true && x.Plugin != nil { 9247 x.Plugin = nil 9248 } 9249 } else { 9250 if x.Plugin == nil { 9251 x.Plugin = new(CSIPlugin) 9252 } 9253 9254 x.Plugin.CodecDecodeSelf(d) 9255 } 9256 yyj9++ 9257 if yyhl9 { 9258 yyb9 = yyj9 > l 9259 } else { 9260 yyb9 = r.CheckBreak() 9261 } 9262 if yyb9 { 9263 r.ReadArrayEnd() 9264 return 9265 } 9266 r.ReadArrayElem() 9267 if r.TryDecodeAsNil() { 9268 x.QueryMeta.Index = 0 9269 } else { 9270 x.Index = (uint64)(r.DecodeUint64()) 9271 } 9272 yyj9++ 9273 if yyhl9 { 9274 yyb9 = yyj9 > l 9275 } else { 9276 yyb9 = r.CheckBreak() 9277 } 9278 if yyb9 { 9279 r.ReadArrayEnd() 9280 return 9281 } 9282 r.ReadArrayElem() 9283 if r.TryDecodeAsNil() { 9284 x.QueryMeta.LastContact = 0 9285 } else { 9286 if false { 9287 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 9288 z.DecExtension(x.LastContact, yyxt13) 9289 } else { 9290 x.LastContact = (time.Duration)(r.DecodeInt64()) 9291 } 9292 } 9293 yyj9++ 9294 if yyhl9 { 9295 yyb9 = yyj9 > l 9296 } else { 9297 yyb9 = r.CheckBreak() 9298 } 9299 if yyb9 { 9300 r.ReadArrayEnd() 9301 return 9302 } 9303 r.ReadArrayElem() 9304 if r.TryDecodeAsNil() { 9305 x.QueryMeta.KnownLeader = false 9306 } else { 9307 x.KnownLeader = (bool)(r.DecodeBool()) 9308 } 9309 for { 9310 yyj9++ 9311 if yyhl9 { 9312 yyb9 = yyj9 > l 9313 } else { 9314 yyb9 = r.CheckBreak() 9315 } 9316 if yyb9 { 9317 break 9318 } 9319 r.ReadArrayElem() 9320 z.DecStructFieldNotFound(yyj9-1, "") 9321 } 9322 r.ReadArrayEnd() 9323 } 9324 9325 func (x *DeviceAccounter) CodecEncodeSelf(e *codec1978.Encoder) { 9326 var h codecSelfer100 9327 z, r := codec1978.GenHelperEncoder(e) 9328 _, _, _ = h, z, r 9329 if x == nil { 9330 r.EncodeNil() 9331 } else { 9332 if false { 9333 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 9334 z.EncExtension(x, yyxt1) 9335 } else { 9336 yysep2 := !z.EncBinary() 9337 yy2arr2 := z.EncBasicHandle().StructToArray 9338 _, _ = yysep2, yy2arr2 9339 const yyr2 bool = false // struct tag has 'toArray' 9340 if yyr2 || yy2arr2 { 9341 r.WriteArrayStart(1) 9342 } else { 9343 r.WriteMapStart(1) 9344 } 9345 if yyr2 || yy2arr2 { 9346 r.WriteArrayElem() 9347 if x.Devices == nil { 9348 r.EncodeNil() 9349 } else { 9350 if false { 9351 } else { 9352 h.encMapDeviceIdTuplePtrtoDeviceAccounterInstance((map[DeviceIdTuple]*DeviceAccounterInstance)(x.Devices), e) 9353 } 9354 } 9355 } else { 9356 r.WriteMapElemKey() 9357 if z.IsJSONHandle() { 9358 z.WriteStr("\"Devices\"") 9359 } else { 9360 r.EncodeStringEnc(codecSelferCcUTF8100, `Devices`) 9361 } 9362 r.WriteMapElemValue() 9363 if x.Devices == nil { 9364 r.EncodeNil() 9365 } else { 9366 if false { 9367 } else { 9368 h.encMapDeviceIdTuplePtrtoDeviceAccounterInstance((map[DeviceIdTuple]*DeviceAccounterInstance)(x.Devices), e) 9369 } 9370 } 9371 } 9372 if yyr2 || yy2arr2 { 9373 r.WriteArrayEnd() 9374 } else { 9375 r.WriteMapEnd() 9376 } 9377 } 9378 } 9379 } 9380 9381 func (x *DeviceAccounter) CodecDecodeSelf(d *codec1978.Decoder) { 9382 var h codecSelfer100 9383 z, r := codec1978.GenHelperDecoder(d) 9384 _, _, _ = h, z, r 9385 if false { 9386 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 9387 z.DecExtension(x, yyxt1) 9388 } else { 9389 yyct2 := r.ContainerType() 9390 if yyct2 == codecSelferValueTypeMap100 { 9391 yyl2 := r.ReadMapStart() 9392 if yyl2 == 0 { 9393 r.ReadMapEnd() 9394 } else { 9395 x.codecDecodeSelfFromMap(yyl2, d) 9396 } 9397 } else if yyct2 == codecSelferValueTypeArray100 { 9398 yyl2 := r.ReadArrayStart() 9399 if yyl2 == 0 { 9400 r.ReadArrayEnd() 9401 } else { 9402 x.codecDecodeSelfFromArray(yyl2, d) 9403 } 9404 } else { 9405 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 9406 } 9407 } 9408 } 9409 9410 func (x *DeviceAccounter) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 9411 var h codecSelfer100 9412 z, r := codec1978.GenHelperDecoder(d) 9413 _, _, _ = h, z, r 9414 var yyhl3 bool = l >= 0 9415 for yyj3 := 0; ; yyj3++ { 9416 if yyhl3 { 9417 if yyj3 >= l { 9418 break 9419 } 9420 } else { 9421 if r.CheckBreak() { 9422 break 9423 } 9424 } 9425 r.ReadMapElemKey() 9426 yys3 := z.StringView(r.DecodeStringAsBytes()) 9427 r.ReadMapElemValue() 9428 switch yys3 { 9429 case "Devices": 9430 if r.TryDecodeAsNil() { 9431 x.Devices = nil 9432 } else { 9433 if false { 9434 } else { 9435 h.decMapDeviceIdTuplePtrtoDeviceAccounterInstance((*map[DeviceIdTuple]*DeviceAccounterInstance)(&x.Devices), d) 9436 } 9437 } 9438 default: 9439 z.DecStructFieldNotFound(-1, yys3) 9440 } // end switch yys3 9441 } // end for yyj3 9442 r.ReadMapEnd() 9443 } 9444 9445 func (x *DeviceAccounter) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 9446 var h codecSelfer100 9447 z, r := codec1978.GenHelperDecoder(d) 9448 _, _, _ = h, z, r 9449 var yyj6 int 9450 var yyb6 bool 9451 var yyhl6 bool = l >= 0 9452 yyj6++ 9453 if yyhl6 { 9454 yyb6 = yyj6 > l 9455 } else { 9456 yyb6 = r.CheckBreak() 9457 } 9458 if yyb6 { 9459 r.ReadArrayEnd() 9460 return 9461 } 9462 r.ReadArrayElem() 9463 if r.TryDecodeAsNil() { 9464 x.Devices = nil 9465 } else { 9466 if false { 9467 } else { 9468 h.decMapDeviceIdTuplePtrtoDeviceAccounterInstance((*map[DeviceIdTuple]*DeviceAccounterInstance)(&x.Devices), d) 9469 } 9470 } 9471 for { 9472 yyj6++ 9473 if yyhl6 { 9474 yyb6 = yyj6 > l 9475 } else { 9476 yyb6 = r.CheckBreak() 9477 } 9478 if yyb6 { 9479 break 9480 } 9481 r.ReadArrayElem() 9482 z.DecStructFieldNotFound(yyj6-1, "") 9483 } 9484 r.ReadArrayEnd() 9485 } 9486 9487 func (x *DeviceAccounterInstance) CodecEncodeSelf(e *codec1978.Encoder) { 9488 var h codecSelfer100 9489 z, r := codec1978.GenHelperEncoder(e) 9490 _, _, _ = h, z, r 9491 if x == nil { 9492 r.EncodeNil() 9493 } else { 9494 if false { 9495 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 9496 z.EncExtension(x, yyxt1) 9497 } else { 9498 yysep2 := !z.EncBinary() 9499 yy2arr2 := z.EncBasicHandle().StructToArray 9500 _, _ = yysep2, yy2arr2 9501 const yyr2 bool = false // struct tag has 'toArray' 9502 if yyr2 || yy2arr2 { 9503 r.WriteArrayStart(2) 9504 } else { 9505 r.WriteMapStart(2) 9506 } 9507 var yyn3 bool 9508 if x.Device == nil { 9509 yyn3 = true 9510 goto LABEL3 9511 } 9512 LABEL3: 9513 if yyr2 || yy2arr2 { 9514 if yyn3 { 9515 r.WriteArrayElem() 9516 r.EncodeNil() 9517 } else { 9518 r.WriteArrayElem() 9519 if x.Device == nil { 9520 r.EncodeNil() 9521 } else { 9522 x.Device.CodecEncodeSelf(e) 9523 } 9524 } 9525 } else { 9526 r.WriteMapElemKey() 9527 if z.IsJSONHandle() { 9528 z.WriteStr("\"Device\"") 9529 } else { 9530 r.EncodeStringEnc(codecSelferCcUTF8100, `Device`) 9531 } 9532 r.WriteMapElemValue() 9533 if yyn3 { 9534 r.EncodeNil() 9535 } else { 9536 if x.Device == nil { 9537 r.EncodeNil() 9538 } else { 9539 x.Device.CodecEncodeSelf(e) 9540 } 9541 } 9542 } 9543 if yyr2 || yy2arr2 { 9544 r.WriteArrayElem() 9545 if x.Instances == nil { 9546 r.EncodeNil() 9547 } else { 9548 if false { 9549 } else { 9550 z.F.EncMapStringIntV(x.Instances, e) 9551 } 9552 } 9553 } else { 9554 r.WriteMapElemKey() 9555 if z.IsJSONHandle() { 9556 z.WriteStr("\"Instances\"") 9557 } else { 9558 r.EncodeStringEnc(codecSelferCcUTF8100, `Instances`) 9559 } 9560 r.WriteMapElemValue() 9561 if x.Instances == nil { 9562 r.EncodeNil() 9563 } else { 9564 if false { 9565 } else { 9566 z.F.EncMapStringIntV(x.Instances, e) 9567 } 9568 } 9569 } 9570 if yyr2 || yy2arr2 { 9571 r.WriteArrayEnd() 9572 } else { 9573 r.WriteMapEnd() 9574 } 9575 } 9576 } 9577 } 9578 9579 func (x *DeviceAccounterInstance) CodecDecodeSelf(d *codec1978.Decoder) { 9580 var h codecSelfer100 9581 z, r := codec1978.GenHelperDecoder(d) 9582 _, _, _ = h, z, r 9583 if false { 9584 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 9585 z.DecExtension(x, yyxt1) 9586 } else { 9587 yyct2 := r.ContainerType() 9588 if yyct2 == codecSelferValueTypeMap100 { 9589 yyl2 := r.ReadMapStart() 9590 if yyl2 == 0 { 9591 r.ReadMapEnd() 9592 } else { 9593 x.codecDecodeSelfFromMap(yyl2, d) 9594 } 9595 } else if yyct2 == codecSelferValueTypeArray100 { 9596 yyl2 := r.ReadArrayStart() 9597 if yyl2 == 0 { 9598 r.ReadArrayEnd() 9599 } else { 9600 x.codecDecodeSelfFromArray(yyl2, d) 9601 } 9602 } else { 9603 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 9604 } 9605 } 9606 } 9607 9608 func (x *DeviceAccounterInstance) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 9609 var h codecSelfer100 9610 z, r := codec1978.GenHelperDecoder(d) 9611 _, _, _ = h, z, r 9612 var yyhl3 bool = l >= 0 9613 for yyj3 := 0; ; yyj3++ { 9614 if yyhl3 { 9615 if yyj3 >= l { 9616 break 9617 } 9618 } else { 9619 if r.CheckBreak() { 9620 break 9621 } 9622 } 9623 r.ReadMapElemKey() 9624 yys3 := z.StringView(r.DecodeStringAsBytes()) 9625 r.ReadMapElemValue() 9626 switch yys3 { 9627 case "Device": 9628 if r.TryDecodeAsNil() { 9629 if true && x.Device != nil { 9630 x.Device = nil 9631 } 9632 } else { 9633 if x.Device == nil { 9634 x.Device = new(NodeDeviceResource) 9635 } 9636 9637 x.Device.CodecDecodeSelf(d) 9638 } 9639 case "Instances": 9640 if r.TryDecodeAsNil() { 9641 x.Instances = nil 9642 } else { 9643 if false { 9644 } else { 9645 z.F.DecMapStringIntX(&x.Instances, d) 9646 } 9647 } 9648 default: 9649 z.DecStructFieldNotFound(-1, yys3) 9650 } // end switch yys3 9651 } // end for yyj3 9652 r.ReadMapEnd() 9653 } 9654 9655 func (x *DeviceAccounterInstance) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 9656 var h codecSelfer100 9657 z, r := codec1978.GenHelperDecoder(d) 9658 _, _, _ = h, z, r 9659 var yyj7 int 9660 var yyb7 bool 9661 var yyhl7 bool = l >= 0 9662 yyj7++ 9663 if yyhl7 { 9664 yyb7 = yyj7 > l 9665 } else { 9666 yyb7 = r.CheckBreak() 9667 } 9668 if yyb7 { 9669 r.ReadArrayEnd() 9670 return 9671 } 9672 r.ReadArrayElem() 9673 if r.TryDecodeAsNil() { 9674 if true && x.Device != nil { 9675 x.Device = nil 9676 } 9677 } else { 9678 if x.Device == nil { 9679 x.Device = new(NodeDeviceResource) 9680 } 9681 9682 x.Device.CodecDecodeSelf(d) 9683 } 9684 yyj7++ 9685 if yyhl7 { 9686 yyb7 = yyj7 > l 9687 } else { 9688 yyb7 = r.CheckBreak() 9689 } 9690 if yyb7 { 9691 r.ReadArrayEnd() 9692 return 9693 } 9694 r.ReadArrayElem() 9695 if r.TryDecodeAsNil() { 9696 x.Instances = nil 9697 } else { 9698 if false { 9699 } else { 9700 z.F.DecMapStringIntX(&x.Instances, d) 9701 } 9702 } 9703 for { 9704 yyj7++ 9705 if yyhl7 { 9706 yyb7 = yyj7 > l 9707 } else { 9708 yyb7 = r.CheckBreak() 9709 } 9710 if yyb7 { 9711 break 9712 } 9713 r.ReadArrayElem() 9714 z.DecStructFieldNotFound(yyj7-1, "") 9715 } 9716 r.ReadArrayEnd() 9717 } 9718 9719 func (x DiffType) CodecEncodeSelf(e *codec1978.Encoder) { 9720 var h codecSelfer100 9721 z, r := codec1978.GenHelperEncoder(e) 9722 _, _, _ = h, z, r 9723 if false { 9724 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 9725 z.EncExtension(x, yyxt1) 9726 } else { 9727 if z.EncBasicHandle().StringToRaw { 9728 r.EncodeStringBytesRaw(z.BytesView(string(x))) 9729 } else { 9730 r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) 9731 } 9732 } 9733 } 9734 9735 func (x *DiffType) CodecDecodeSelf(d *codec1978.Decoder) { 9736 var h codecSelfer100 9737 z, r := codec1978.GenHelperDecoder(d) 9738 _, _, _ = h, z, r 9739 if false { 9740 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 9741 z.DecExtension(x, yyxt1) 9742 } else { 9743 *x = (DiffType)(r.DecodeString()) 9744 } 9745 } 9746 9747 func (x *JobDiff) CodecEncodeSelf(e *codec1978.Encoder) { 9748 var h codecSelfer100 9749 z, r := codec1978.GenHelperEncoder(e) 9750 _, _, _ = h, z, r 9751 if x == nil { 9752 r.EncodeNil() 9753 } else { 9754 if false { 9755 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 9756 z.EncExtension(x, yyxt1) 9757 } else { 9758 yysep2 := !z.EncBinary() 9759 yy2arr2 := z.EncBasicHandle().StructToArray 9760 _, _ = yysep2, yy2arr2 9761 const yyr2 bool = false // struct tag has 'toArray' 9762 if yyr2 || yy2arr2 { 9763 r.WriteArrayStart(5) 9764 } else { 9765 r.WriteMapStart(5) 9766 } 9767 if yyr2 || yy2arr2 { 9768 r.WriteArrayElem() 9769 x.Type.CodecEncodeSelf(e) 9770 } else { 9771 r.WriteMapElemKey() 9772 if z.IsJSONHandle() { 9773 z.WriteStr("\"Type\"") 9774 } else { 9775 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 9776 } 9777 r.WriteMapElemValue() 9778 x.Type.CodecEncodeSelf(e) 9779 } 9780 if yyr2 || yy2arr2 { 9781 r.WriteArrayElem() 9782 if false { 9783 } else { 9784 if z.EncBasicHandle().StringToRaw { 9785 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 9786 } else { 9787 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 9788 } 9789 } 9790 } else { 9791 r.WriteMapElemKey() 9792 if z.IsJSONHandle() { 9793 z.WriteStr("\"ID\"") 9794 } else { 9795 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 9796 } 9797 r.WriteMapElemValue() 9798 if false { 9799 } else { 9800 if z.EncBasicHandle().StringToRaw { 9801 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 9802 } else { 9803 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 9804 } 9805 } 9806 } 9807 if yyr2 || yy2arr2 { 9808 r.WriteArrayElem() 9809 if x.Fields == nil { 9810 r.EncodeNil() 9811 } else { 9812 if false { 9813 } else { 9814 h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) 9815 } 9816 } 9817 } else { 9818 r.WriteMapElemKey() 9819 if z.IsJSONHandle() { 9820 z.WriteStr("\"Fields\"") 9821 } else { 9822 r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) 9823 } 9824 r.WriteMapElemValue() 9825 if x.Fields == nil { 9826 r.EncodeNil() 9827 } else { 9828 if false { 9829 } else { 9830 h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) 9831 } 9832 } 9833 } 9834 if yyr2 || yy2arr2 { 9835 r.WriteArrayElem() 9836 if x.Objects == nil { 9837 r.EncodeNil() 9838 } else { 9839 if false { 9840 } else { 9841 h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) 9842 } 9843 } 9844 } else { 9845 r.WriteMapElemKey() 9846 if z.IsJSONHandle() { 9847 z.WriteStr("\"Objects\"") 9848 } else { 9849 r.EncodeStringEnc(codecSelferCcUTF8100, `Objects`) 9850 } 9851 r.WriteMapElemValue() 9852 if x.Objects == nil { 9853 r.EncodeNil() 9854 } else { 9855 if false { 9856 } else { 9857 h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) 9858 } 9859 } 9860 } 9861 if yyr2 || yy2arr2 { 9862 r.WriteArrayElem() 9863 if x.TaskGroups == nil { 9864 r.EncodeNil() 9865 } else { 9866 if false { 9867 } else { 9868 h.encSlicePtrtoTaskGroupDiff(([]*TaskGroupDiff)(x.TaskGroups), e) 9869 } 9870 } 9871 } else { 9872 r.WriteMapElemKey() 9873 if z.IsJSONHandle() { 9874 z.WriteStr("\"TaskGroups\"") 9875 } else { 9876 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroups`) 9877 } 9878 r.WriteMapElemValue() 9879 if x.TaskGroups == nil { 9880 r.EncodeNil() 9881 } else { 9882 if false { 9883 } else { 9884 h.encSlicePtrtoTaskGroupDiff(([]*TaskGroupDiff)(x.TaskGroups), e) 9885 } 9886 } 9887 } 9888 if yyr2 || yy2arr2 { 9889 r.WriteArrayEnd() 9890 } else { 9891 r.WriteMapEnd() 9892 } 9893 } 9894 } 9895 } 9896 9897 func (x *JobDiff) CodecDecodeSelf(d *codec1978.Decoder) { 9898 var h codecSelfer100 9899 z, r := codec1978.GenHelperDecoder(d) 9900 _, _, _ = h, z, r 9901 if false { 9902 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 9903 z.DecExtension(x, yyxt1) 9904 } else { 9905 yyct2 := r.ContainerType() 9906 if yyct2 == codecSelferValueTypeMap100 { 9907 yyl2 := r.ReadMapStart() 9908 if yyl2 == 0 { 9909 r.ReadMapEnd() 9910 } else { 9911 x.codecDecodeSelfFromMap(yyl2, d) 9912 } 9913 } else if yyct2 == codecSelferValueTypeArray100 { 9914 yyl2 := r.ReadArrayStart() 9915 if yyl2 == 0 { 9916 r.ReadArrayEnd() 9917 } else { 9918 x.codecDecodeSelfFromArray(yyl2, d) 9919 } 9920 } else { 9921 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 9922 } 9923 } 9924 } 9925 9926 func (x *JobDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 9927 var h codecSelfer100 9928 z, r := codec1978.GenHelperDecoder(d) 9929 _, _, _ = h, z, r 9930 var yyhl3 bool = l >= 0 9931 for yyj3 := 0; ; yyj3++ { 9932 if yyhl3 { 9933 if yyj3 >= l { 9934 break 9935 } 9936 } else { 9937 if r.CheckBreak() { 9938 break 9939 } 9940 } 9941 r.ReadMapElemKey() 9942 yys3 := z.StringView(r.DecodeStringAsBytes()) 9943 r.ReadMapElemValue() 9944 switch yys3 { 9945 case "Type": 9946 if r.TryDecodeAsNil() { 9947 x.Type = "" 9948 } else { 9949 x.Type.CodecDecodeSelf(d) 9950 } 9951 case "ID": 9952 if r.TryDecodeAsNil() { 9953 x.ID = "" 9954 } else { 9955 x.ID = (string)(r.DecodeString()) 9956 } 9957 case "Fields": 9958 if r.TryDecodeAsNil() { 9959 x.Fields = nil 9960 } else { 9961 if false { 9962 } else { 9963 h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) 9964 } 9965 } 9966 case "Objects": 9967 if r.TryDecodeAsNil() { 9968 x.Objects = nil 9969 } else { 9970 if false { 9971 } else { 9972 h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) 9973 } 9974 } 9975 case "TaskGroups": 9976 if r.TryDecodeAsNil() { 9977 x.TaskGroups = nil 9978 } else { 9979 if false { 9980 } else { 9981 h.decSlicePtrtoTaskGroupDiff((*[]*TaskGroupDiff)(&x.TaskGroups), d) 9982 } 9983 } 9984 default: 9985 z.DecStructFieldNotFound(-1, yys3) 9986 } // end switch yys3 9987 } // end for yyj3 9988 r.ReadMapEnd() 9989 } 9990 9991 func (x *JobDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 9992 var h codecSelfer100 9993 z, r := codec1978.GenHelperDecoder(d) 9994 _, _, _ = h, z, r 9995 var yyj12 int 9996 var yyb12 bool 9997 var yyhl12 bool = l >= 0 9998 yyj12++ 9999 if yyhl12 { 10000 yyb12 = yyj12 > l 10001 } else { 10002 yyb12 = r.CheckBreak() 10003 } 10004 if yyb12 { 10005 r.ReadArrayEnd() 10006 return 10007 } 10008 r.ReadArrayElem() 10009 if r.TryDecodeAsNil() { 10010 x.Type = "" 10011 } else { 10012 x.Type.CodecDecodeSelf(d) 10013 } 10014 yyj12++ 10015 if yyhl12 { 10016 yyb12 = yyj12 > l 10017 } else { 10018 yyb12 = r.CheckBreak() 10019 } 10020 if yyb12 { 10021 r.ReadArrayEnd() 10022 return 10023 } 10024 r.ReadArrayElem() 10025 if r.TryDecodeAsNil() { 10026 x.ID = "" 10027 } else { 10028 x.ID = (string)(r.DecodeString()) 10029 } 10030 yyj12++ 10031 if yyhl12 { 10032 yyb12 = yyj12 > l 10033 } else { 10034 yyb12 = r.CheckBreak() 10035 } 10036 if yyb12 { 10037 r.ReadArrayEnd() 10038 return 10039 } 10040 r.ReadArrayElem() 10041 if r.TryDecodeAsNil() { 10042 x.Fields = nil 10043 } else { 10044 if false { 10045 } else { 10046 h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) 10047 } 10048 } 10049 yyj12++ 10050 if yyhl12 { 10051 yyb12 = yyj12 > l 10052 } else { 10053 yyb12 = r.CheckBreak() 10054 } 10055 if yyb12 { 10056 r.ReadArrayEnd() 10057 return 10058 } 10059 r.ReadArrayElem() 10060 if r.TryDecodeAsNil() { 10061 x.Objects = nil 10062 } else { 10063 if false { 10064 } else { 10065 h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) 10066 } 10067 } 10068 yyj12++ 10069 if yyhl12 { 10070 yyb12 = yyj12 > l 10071 } else { 10072 yyb12 = r.CheckBreak() 10073 } 10074 if yyb12 { 10075 r.ReadArrayEnd() 10076 return 10077 } 10078 r.ReadArrayElem() 10079 if r.TryDecodeAsNil() { 10080 x.TaskGroups = nil 10081 } else { 10082 if false { 10083 } else { 10084 h.decSlicePtrtoTaskGroupDiff((*[]*TaskGroupDiff)(&x.TaskGroups), d) 10085 } 10086 } 10087 for { 10088 yyj12++ 10089 if yyhl12 { 10090 yyb12 = yyj12 > l 10091 } else { 10092 yyb12 = r.CheckBreak() 10093 } 10094 if yyb12 { 10095 break 10096 } 10097 r.ReadArrayElem() 10098 z.DecStructFieldNotFound(yyj12-1, "") 10099 } 10100 r.ReadArrayEnd() 10101 } 10102 10103 func (x *TaskGroupDiff) CodecEncodeSelf(e *codec1978.Encoder) { 10104 var h codecSelfer100 10105 z, r := codec1978.GenHelperEncoder(e) 10106 _, _, _ = h, z, r 10107 if x == nil { 10108 r.EncodeNil() 10109 } else { 10110 if false { 10111 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 10112 z.EncExtension(x, yyxt1) 10113 } else { 10114 yysep2 := !z.EncBinary() 10115 yy2arr2 := z.EncBasicHandle().StructToArray 10116 _, _ = yysep2, yy2arr2 10117 const yyr2 bool = false // struct tag has 'toArray' 10118 if yyr2 || yy2arr2 { 10119 r.WriteArrayStart(6) 10120 } else { 10121 r.WriteMapStart(6) 10122 } 10123 if yyr2 || yy2arr2 { 10124 r.WriteArrayElem() 10125 x.Type.CodecEncodeSelf(e) 10126 } else { 10127 r.WriteMapElemKey() 10128 if z.IsJSONHandle() { 10129 z.WriteStr("\"Type\"") 10130 } else { 10131 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 10132 } 10133 r.WriteMapElemValue() 10134 x.Type.CodecEncodeSelf(e) 10135 } 10136 if yyr2 || yy2arr2 { 10137 r.WriteArrayElem() 10138 if false { 10139 } else { 10140 if z.EncBasicHandle().StringToRaw { 10141 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 10142 } else { 10143 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 10144 } 10145 } 10146 } else { 10147 r.WriteMapElemKey() 10148 if z.IsJSONHandle() { 10149 z.WriteStr("\"Name\"") 10150 } else { 10151 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 10152 } 10153 r.WriteMapElemValue() 10154 if false { 10155 } else { 10156 if z.EncBasicHandle().StringToRaw { 10157 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 10158 } else { 10159 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 10160 } 10161 } 10162 } 10163 if yyr2 || yy2arr2 { 10164 r.WriteArrayElem() 10165 if x.Fields == nil { 10166 r.EncodeNil() 10167 } else { 10168 if false { 10169 } else { 10170 h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) 10171 } 10172 } 10173 } else { 10174 r.WriteMapElemKey() 10175 if z.IsJSONHandle() { 10176 z.WriteStr("\"Fields\"") 10177 } else { 10178 r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) 10179 } 10180 r.WriteMapElemValue() 10181 if x.Fields == nil { 10182 r.EncodeNil() 10183 } else { 10184 if false { 10185 } else { 10186 h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) 10187 } 10188 } 10189 } 10190 if yyr2 || yy2arr2 { 10191 r.WriteArrayElem() 10192 if x.Objects == nil { 10193 r.EncodeNil() 10194 } else { 10195 if false { 10196 } else { 10197 h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) 10198 } 10199 } 10200 } else { 10201 r.WriteMapElemKey() 10202 if z.IsJSONHandle() { 10203 z.WriteStr("\"Objects\"") 10204 } else { 10205 r.EncodeStringEnc(codecSelferCcUTF8100, `Objects`) 10206 } 10207 r.WriteMapElemValue() 10208 if x.Objects == nil { 10209 r.EncodeNil() 10210 } else { 10211 if false { 10212 } else { 10213 h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) 10214 } 10215 } 10216 } 10217 if yyr2 || yy2arr2 { 10218 r.WriteArrayElem() 10219 if x.Tasks == nil { 10220 r.EncodeNil() 10221 } else { 10222 if false { 10223 } else { 10224 h.encSlicePtrtoTaskDiff(([]*TaskDiff)(x.Tasks), e) 10225 } 10226 } 10227 } else { 10228 r.WriteMapElemKey() 10229 if z.IsJSONHandle() { 10230 z.WriteStr("\"Tasks\"") 10231 } else { 10232 r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) 10233 } 10234 r.WriteMapElemValue() 10235 if x.Tasks == nil { 10236 r.EncodeNil() 10237 } else { 10238 if false { 10239 } else { 10240 h.encSlicePtrtoTaskDiff(([]*TaskDiff)(x.Tasks), e) 10241 } 10242 } 10243 } 10244 if yyr2 || yy2arr2 { 10245 r.WriteArrayElem() 10246 if x.Updates == nil { 10247 r.EncodeNil() 10248 } else { 10249 if false { 10250 } else { 10251 z.F.EncMapStringUint64V(x.Updates, e) 10252 } 10253 } 10254 } else { 10255 r.WriteMapElemKey() 10256 if z.IsJSONHandle() { 10257 z.WriteStr("\"Updates\"") 10258 } else { 10259 r.EncodeStringEnc(codecSelferCcUTF8100, `Updates`) 10260 } 10261 r.WriteMapElemValue() 10262 if x.Updates == nil { 10263 r.EncodeNil() 10264 } else { 10265 if false { 10266 } else { 10267 z.F.EncMapStringUint64V(x.Updates, e) 10268 } 10269 } 10270 } 10271 if yyr2 || yy2arr2 { 10272 r.WriteArrayEnd() 10273 } else { 10274 r.WriteMapEnd() 10275 } 10276 } 10277 } 10278 } 10279 10280 func (x *TaskGroupDiff) CodecDecodeSelf(d *codec1978.Decoder) { 10281 var h codecSelfer100 10282 z, r := codec1978.GenHelperDecoder(d) 10283 _, _, _ = h, z, r 10284 if false { 10285 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 10286 z.DecExtension(x, yyxt1) 10287 } else { 10288 yyct2 := r.ContainerType() 10289 if yyct2 == codecSelferValueTypeMap100 { 10290 yyl2 := r.ReadMapStart() 10291 if yyl2 == 0 { 10292 r.ReadMapEnd() 10293 } else { 10294 x.codecDecodeSelfFromMap(yyl2, d) 10295 } 10296 } else if yyct2 == codecSelferValueTypeArray100 { 10297 yyl2 := r.ReadArrayStart() 10298 if yyl2 == 0 { 10299 r.ReadArrayEnd() 10300 } else { 10301 x.codecDecodeSelfFromArray(yyl2, d) 10302 } 10303 } else { 10304 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 10305 } 10306 } 10307 } 10308 10309 func (x *TaskGroupDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 10310 var h codecSelfer100 10311 z, r := codec1978.GenHelperDecoder(d) 10312 _, _, _ = h, z, r 10313 var yyhl3 bool = l >= 0 10314 for yyj3 := 0; ; yyj3++ { 10315 if yyhl3 { 10316 if yyj3 >= l { 10317 break 10318 } 10319 } else { 10320 if r.CheckBreak() { 10321 break 10322 } 10323 } 10324 r.ReadMapElemKey() 10325 yys3 := z.StringView(r.DecodeStringAsBytes()) 10326 r.ReadMapElemValue() 10327 switch yys3 { 10328 case "Type": 10329 if r.TryDecodeAsNil() { 10330 x.Type = "" 10331 } else { 10332 x.Type.CodecDecodeSelf(d) 10333 } 10334 case "Name": 10335 if r.TryDecodeAsNil() { 10336 x.Name = "" 10337 } else { 10338 x.Name = (string)(r.DecodeString()) 10339 } 10340 case "Fields": 10341 if r.TryDecodeAsNil() { 10342 x.Fields = nil 10343 } else { 10344 if false { 10345 } else { 10346 h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) 10347 } 10348 } 10349 case "Objects": 10350 if r.TryDecodeAsNil() { 10351 x.Objects = nil 10352 } else { 10353 if false { 10354 } else { 10355 h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) 10356 } 10357 } 10358 case "Tasks": 10359 if r.TryDecodeAsNil() { 10360 x.Tasks = nil 10361 } else { 10362 if false { 10363 } else { 10364 h.decSlicePtrtoTaskDiff((*[]*TaskDiff)(&x.Tasks), d) 10365 } 10366 } 10367 case "Updates": 10368 if r.TryDecodeAsNil() { 10369 x.Updates = nil 10370 } else { 10371 if false { 10372 } else { 10373 z.F.DecMapStringUint64X(&x.Updates, d) 10374 } 10375 } 10376 default: 10377 z.DecStructFieldNotFound(-1, yys3) 10378 } // end switch yys3 10379 } // end for yyj3 10380 r.ReadMapEnd() 10381 } 10382 10383 func (x *TaskGroupDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 10384 var h codecSelfer100 10385 z, r := codec1978.GenHelperDecoder(d) 10386 _, _, _ = h, z, r 10387 var yyj14 int 10388 var yyb14 bool 10389 var yyhl14 bool = l >= 0 10390 yyj14++ 10391 if yyhl14 { 10392 yyb14 = yyj14 > l 10393 } else { 10394 yyb14 = r.CheckBreak() 10395 } 10396 if yyb14 { 10397 r.ReadArrayEnd() 10398 return 10399 } 10400 r.ReadArrayElem() 10401 if r.TryDecodeAsNil() { 10402 x.Type = "" 10403 } else { 10404 x.Type.CodecDecodeSelf(d) 10405 } 10406 yyj14++ 10407 if yyhl14 { 10408 yyb14 = yyj14 > l 10409 } else { 10410 yyb14 = r.CheckBreak() 10411 } 10412 if yyb14 { 10413 r.ReadArrayEnd() 10414 return 10415 } 10416 r.ReadArrayElem() 10417 if r.TryDecodeAsNil() { 10418 x.Name = "" 10419 } else { 10420 x.Name = (string)(r.DecodeString()) 10421 } 10422 yyj14++ 10423 if yyhl14 { 10424 yyb14 = yyj14 > l 10425 } else { 10426 yyb14 = r.CheckBreak() 10427 } 10428 if yyb14 { 10429 r.ReadArrayEnd() 10430 return 10431 } 10432 r.ReadArrayElem() 10433 if r.TryDecodeAsNil() { 10434 x.Fields = nil 10435 } else { 10436 if false { 10437 } else { 10438 h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) 10439 } 10440 } 10441 yyj14++ 10442 if yyhl14 { 10443 yyb14 = yyj14 > l 10444 } else { 10445 yyb14 = r.CheckBreak() 10446 } 10447 if yyb14 { 10448 r.ReadArrayEnd() 10449 return 10450 } 10451 r.ReadArrayElem() 10452 if r.TryDecodeAsNil() { 10453 x.Objects = nil 10454 } else { 10455 if false { 10456 } else { 10457 h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) 10458 } 10459 } 10460 yyj14++ 10461 if yyhl14 { 10462 yyb14 = yyj14 > l 10463 } else { 10464 yyb14 = r.CheckBreak() 10465 } 10466 if yyb14 { 10467 r.ReadArrayEnd() 10468 return 10469 } 10470 r.ReadArrayElem() 10471 if r.TryDecodeAsNil() { 10472 x.Tasks = nil 10473 } else { 10474 if false { 10475 } else { 10476 h.decSlicePtrtoTaskDiff((*[]*TaskDiff)(&x.Tasks), d) 10477 } 10478 } 10479 yyj14++ 10480 if yyhl14 { 10481 yyb14 = yyj14 > l 10482 } else { 10483 yyb14 = r.CheckBreak() 10484 } 10485 if yyb14 { 10486 r.ReadArrayEnd() 10487 return 10488 } 10489 r.ReadArrayElem() 10490 if r.TryDecodeAsNil() { 10491 x.Updates = nil 10492 } else { 10493 if false { 10494 } else { 10495 z.F.DecMapStringUint64X(&x.Updates, d) 10496 } 10497 } 10498 for { 10499 yyj14++ 10500 if yyhl14 { 10501 yyb14 = yyj14 > l 10502 } else { 10503 yyb14 = r.CheckBreak() 10504 } 10505 if yyb14 { 10506 break 10507 } 10508 r.ReadArrayElem() 10509 z.DecStructFieldNotFound(yyj14-1, "") 10510 } 10511 r.ReadArrayEnd() 10512 } 10513 10514 func (x TaskGroupDiffs) CodecEncodeSelf(e *codec1978.Encoder) { 10515 var h codecSelfer100 10516 z, r := codec1978.GenHelperEncoder(e) 10517 _, _, _ = h, z, r 10518 if x == nil { 10519 r.EncodeNil() 10520 } else { 10521 if false { 10522 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 10523 z.EncExtension(x, yyxt1) 10524 } else { 10525 h.encTaskGroupDiffs((TaskGroupDiffs)(x), e) 10526 } 10527 } 10528 } 10529 10530 func (x *TaskGroupDiffs) CodecDecodeSelf(d *codec1978.Decoder) { 10531 var h codecSelfer100 10532 z, r := codec1978.GenHelperDecoder(d) 10533 _, _, _ = h, z, r 10534 if false { 10535 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 10536 z.DecExtension(x, yyxt1) 10537 } else { 10538 h.decTaskGroupDiffs((*TaskGroupDiffs)(x), d) 10539 } 10540 } 10541 10542 func (x *TaskDiff) CodecEncodeSelf(e *codec1978.Encoder) { 10543 var h codecSelfer100 10544 z, r := codec1978.GenHelperEncoder(e) 10545 _, _, _ = h, z, r 10546 if x == nil { 10547 r.EncodeNil() 10548 } else { 10549 if false { 10550 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 10551 z.EncExtension(x, yyxt1) 10552 } else { 10553 yysep2 := !z.EncBinary() 10554 yy2arr2 := z.EncBasicHandle().StructToArray 10555 _, _ = yysep2, yy2arr2 10556 const yyr2 bool = false // struct tag has 'toArray' 10557 if yyr2 || yy2arr2 { 10558 r.WriteArrayStart(5) 10559 } else { 10560 r.WriteMapStart(5) 10561 } 10562 if yyr2 || yy2arr2 { 10563 r.WriteArrayElem() 10564 x.Type.CodecEncodeSelf(e) 10565 } else { 10566 r.WriteMapElemKey() 10567 if z.IsJSONHandle() { 10568 z.WriteStr("\"Type\"") 10569 } else { 10570 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 10571 } 10572 r.WriteMapElemValue() 10573 x.Type.CodecEncodeSelf(e) 10574 } 10575 if yyr2 || yy2arr2 { 10576 r.WriteArrayElem() 10577 if false { 10578 } else { 10579 if z.EncBasicHandle().StringToRaw { 10580 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 10581 } else { 10582 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 10583 } 10584 } 10585 } else { 10586 r.WriteMapElemKey() 10587 if z.IsJSONHandle() { 10588 z.WriteStr("\"Name\"") 10589 } else { 10590 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 10591 } 10592 r.WriteMapElemValue() 10593 if false { 10594 } else { 10595 if z.EncBasicHandle().StringToRaw { 10596 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 10597 } else { 10598 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 10599 } 10600 } 10601 } 10602 if yyr2 || yy2arr2 { 10603 r.WriteArrayElem() 10604 if x.Fields == nil { 10605 r.EncodeNil() 10606 } else { 10607 if false { 10608 } else { 10609 h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) 10610 } 10611 } 10612 } else { 10613 r.WriteMapElemKey() 10614 if z.IsJSONHandle() { 10615 z.WriteStr("\"Fields\"") 10616 } else { 10617 r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) 10618 } 10619 r.WriteMapElemValue() 10620 if x.Fields == nil { 10621 r.EncodeNil() 10622 } else { 10623 if false { 10624 } else { 10625 h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) 10626 } 10627 } 10628 } 10629 if yyr2 || yy2arr2 { 10630 r.WriteArrayElem() 10631 if x.Objects == nil { 10632 r.EncodeNil() 10633 } else { 10634 if false { 10635 } else { 10636 h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) 10637 } 10638 } 10639 } else { 10640 r.WriteMapElemKey() 10641 if z.IsJSONHandle() { 10642 z.WriteStr("\"Objects\"") 10643 } else { 10644 r.EncodeStringEnc(codecSelferCcUTF8100, `Objects`) 10645 } 10646 r.WriteMapElemValue() 10647 if x.Objects == nil { 10648 r.EncodeNil() 10649 } else { 10650 if false { 10651 } else { 10652 h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) 10653 } 10654 } 10655 } 10656 if yyr2 || yy2arr2 { 10657 r.WriteArrayElem() 10658 if x.Annotations == nil { 10659 r.EncodeNil() 10660 } else { 10661 if false { 10662 } else { 10663 z.F.EncSliceStringV(x.Annotations, e) 10664 } 10665 } 10666 } else { 10667 r.WriteMapElemKey() 10668 if z.IsJSONHandle() { 10669 z.WriteStr("\"Annotations\"") 10670 } else { 10671 r.EncodeStringEnc(codecSelferCcUTF8100, `Annotations`) 10672 } 10673 r.WriteMapElemValue() 10674 if x.Annotations == nil { 10675 r.EncodeNil() 10676 } else { 10677 if false { 10678 } else { 10679 z.F.EncSliceStringV(x.Annotations, e) 10680 } 10681 } 10682 } 10683 if yyr2 || yy2arr2 { 10684 r.WriteArrayEnd() 10685 } else { 10686 r.WriteMapEnd() 10687 } 10688 } 10689 } 10690 } 10691 10692 func (x *TaskDiff) CodecDecodeSelf(d *codec1978.Decoder) { 10693 var h codecSelfer100 10694 z, r := codec1978.GenHelperDecoder(d) 10695 _, _, _ = h, z, r 10696 if false { 10697 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 10698 z.DecExtension(x, yyxt1) 10699 } else { 10700 yyct2 := r.ContainerType() 10701 if yyct2 == codecSelferValueTypeMap100 { 10702 yyl2 := r.ReadMapStart() 10703 if yyl2 == 0 { 10704 r.ReadMapEnd() 10705 } else { 10706 x.codecDecodeSelfFromMap(yyl2, d) 10707 } 10708 } else if yyct2 == codecSelferValueTypeArray100 { 10709 yyl2 := r.ReadArrayStart() 10710 if yyl2 == 0 { 10711 r.ReadArrayEnd() 10712 } else { 10713 x.codecDecodeSelfFromArray(yyl2, d) 10714 } 10715 } else { 10716 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 10717 } 10718 } 10719 } 10720 10721 func (x *TaskDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 10722 var h codecSelfer100 10723 z, r := codec1978.GenHelperDecoder(d) 10724 _, _, _ = h, z, r 10725 var yyhl3 bool = l >= 0 10726 for yyj3 := 0; ; yyj3++ { 10727 if yyhl3 { 10728 if yyj3 >= l { 10729 break 10730 } 10731 } else { 10732 if r.CheckBreak() { 10733 break 10734 } 10735 } 10736 r.ReadMapElemKey() 10737 yys3 := z.StringView(r.DecodeStringAsBytes()) 10738 r.ReadMapElemValue() 10739 switch yys3 { 10740 case "Type": 10741 if r.TryDecodeAsNil() { 10742 x.Type = "" 10743 } else { 10744 x.Type.CodecDecodeSelf(d) 10745 } 10746 case "Name": 10747 if r.TryDecodeAsNil() { 10748 x.Name = "" 10749 } else { 10750 x.Name = (string)(r.DecodeString()) 10751 } 10752 case "Fields": 10753 if r.TryDecodeAsNil() { 10754 x.Fields = nil 10755 } else { 10756 if false { 10757 } else { 10758 h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) 10759 } 10760 } 10761 case "Objects": 10762 if r.TryDecodeAsNil() { 10763 x.Objects = nil 10764 } else { 10765 if false { 10766 } else { 10767 h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) 10768 } 10769 } 10770 case "Annotations": 10771 if r.TryDecodeAsNil() { 10772 x.Annotations = nil 10773 } else { 10774 if false { 10775 } else { 10776 z.F.DecSliceStringX(&x.Annotations, d) 10777 } 10778 } 10779 default: 10780 z.DecStructFieldNotFound(-1, yys3) 10781 } // end switch yys3 10782 } // end for yyj3 10783 r.ReadMapEnd() 10784 } 10785 10786 func (x *TaskDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 10787 var h codecSelfer100 10788 z, r := codec1978.GenHelperDecoder(d) 10789 _, _, _ = h, z, r 10790 var yyj12 int 10791 var yyb12 bool 10792 var yyhl12 bool = l >= 0 10793 yyj12++ 10794 if yyhl12 { 10795 yyb12 = yyj12 > l 10796 } else { 10797 yyb12 = r.CheckBreak() 10798 } 10799 if yyb12 { 10800 r.ReadArrayEnd() 10801 return 10802 } 10803 r.ReadArrayElem() 10804 if r.TryDecodeAsNil() { 10805 x.Type = "" 10806 } else { 10807 x.Type.CodecDecodeSelf(d) 10808 } 10809 yyj12++ 10810 if yyhl12 { 10811 yyb12 = yyj12 > l 10812 } else { 10813 yyb12 = r.CheckBreak() 10814 } 10815 if yyb12 { 10816 r.ReadArrayEnd() 10817 return 10818 } 10819 r.ReadArrayElem() 10820 if r.TryDecodeAsNil() { 10821 x.Name = "" 10822 } else { 10823 x.Name = (string)(r.DecodeString()) 10824 } 10825 yyj12++ 10826 if yyhl12 { 10827 yyb12 = yyj12 > l 10828 } else { 10829 yyb12 = r.CheckBreak() 10830 } 10831 if yyb12 { 10832 r.ReadArrayEnd() 10833 return 10834 } 10835 r.ReadArrayElem() 10836 if r.TryDecodeAsNil() { 10837 x.Fields = nil 10838 } else { 10839 if false { 10840 } else { 10841 h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) 10842 } 10843 } 10844 yyj12++ 10845 if yyhl12 { 10846 yyb12 = yyj12 > l 10847 } else { 10848 yyb12 = r.CheckBreak() 10849 } 10850 if yyb12 { 10851 r.ReadArrayEnd() 10852 return 10853 } 10854 r.ReadArrayElem() 10855 if r.TryDecodeAsNil() { 10856 x.Objects = nil 10857 } else { 10858 if false { 10859 } else { 10860 h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) 10861 } 10862 } 10863 yyj12++ 10864 if yyhl12 { 10865 yyb12 = yyj12 > l 10866 } else { 10867 yyb12 = r.CheckBreak() 10868 } 10869 if yyb12 { 10870 r.ReadArrayEnd() 10871 return 10872 } 10873 r.ReadArrayElem() 10874 if r.TryDecodeAsNil() { 10875 x.Annotations = nil 10876 } else { 10877 if false { 10878 } else { 10879 z.F.DecSliceStringX(&x.Annotations, d) 10880 } 10881 } 10882 for { 10883 yyj12++ 10884 if yyhl12 { 10885 yyb12 = yyj12 > l 10886 } else { 10887 yyb12 = r.CheckBreak() 10888 } 10889 if yyb12 { 10890 break 10891 } 10892 r.ReadArrayElem() 10893 z.DecStructFieldNotFound(yyj12-1, "") 10894 } 10895 r.ReadArrayEnd() 10896 } 10897 10898 func (x TaskDiffs) CodecEncodeSelf(e *codec1978.Encoder) { 10899 var h codecSelfer100 10900 z, r := codec1978.GenHelperEncoder(e) 10901 _, _, _ = h, z, r 10902 if x == nil { 10903 r.EncodeNil() 10904 } else { 10905 if false { 10906 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 10907 z.EncExtension(x, yyxt1) 10908 } else { 10909 h.encTaskDiffs((TaskDiffs)(x), e) 10910 } 10911 } 10912 } 10913 10914 func (x *TaskDiffs) CodecDecodeSelf(d *codec1978.Decoder) { 10915 var h codecSelfer100 10916 z, r := codec1978.GenHelperDecoder(d) 10917 _, _, _ = h, z, r 10918 if false { 10919 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 10920 z.DecExtension(x, yyxt1) 10921 } else { 10922 h.decTaskDiffs((*TaskDiffs)(x), d) 10923 } 10924 } 10925 10926 func (x *ObjectDiff) CodecEncodeSelf(e *codec1978.Encoder) { 10927 var h codecSelfer100 10928 z, r := codec1978.GenHelperEncoder(e) 10929 _, _, _ = h, z, r 10930 if x == nil { 10931 r.EncodeNil() 10932 } else { 10933 if false { 10934 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 10935 z.EncExtension(x, yyxt1) 10936 } else { 10937 yysep2 := !z.EncBinary() 10938 yy2arr2 := z.EncBasicHandle().StructToArray 10939 _, _ = yysep2, yy2arr2 10940 const yyr2 bool = false // struct tag has 'toArray' 10941 if yyr2 || yy2arr2 { 10942 r.WriteArrayStart(4) 10943 } else { 10944 r.WriteMapStart(4) 10945 } 10946 if yyr2 || yy2arr2 { 10947 r.WriteArrayElem() 10948 x.Type.CodecEncodeSelf(e) 10949 } else { 10950 r.WriteMapElemKey() 10951 if z.IsJSONHandle() { 10952 z.WriteStr("\"Type\"") 10953 } else { 10954 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 10955 } 10956 r.WriteMapElemValue() 10957 x.Type.CodecEncodeSelf(e) 10958 } 10959 if yyr2 || yy2arr2 { 10960 r.WriteArrayElem() 10961 if false { 10962 } else { 10963 if z.EncBasicHandle().StringToRaw { 10964 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 10965 } else { 10966 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 10967 } 10968 } 10969 } else { 10970 r.WriteMapElemKey() 10971 if z.IsJSONHandle() { 10972 z.WriteStr("\"Name\"") 10973 } else { 10974 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 10975 } 10976 r.WriteMapElemValue() 10977 if false { 10978 } else { 10979 if z.EncBasicHandle().StringToRaw { 10980 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 10981 } else { 10982 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 10983 } 10984 } 10985 } 10986 if yyr2 || yy2arr2 { 10987 r.WriteArrayElem() 10988 if x.Fields == nil { 10989 r.EncodeNil() 10990 } else { 10991 if false { 10992 } else { 10993 h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) 10994 } 10995 } 10996 } else { 10997 r.WriteMapElemKey() 10998 if z.IsJSONHandle() { 10999 z.WriteStr("\"Fields\"") 11000 } else { 11001 r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) 11002 } 11003 r.WriteMapElemValue() 11004 if x.Fields == nil { 11005 r.EncodeNil() 11006 } else { 11007 if false { 11008 } else { 11009 h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) 11010 } 11011 } 11012 } 11013 if yyr2 || yy2arr2 { 11014 r.WriteArrayElem() 11015 if x.Objects == nil { 11016 r.EncodeNil() 11017 } else { 11018 if false { 11019 } else { 11020 h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) 11021 } 11022 } 11023 } else { 11024 r.WriteMapElemKey() 11025 if z.IsJSONHandle() { 11026 z.WriteStr("\"Objects\"") 11027 } else { 11028 r.EncodeStringEnc(codecSelferCcUTF8100, `Objects`) 11029 } 11030 r.WriteMapElemValue() 11031 if x.Objects == nil { 11032 r.EncodeNil() 11033 } else { 11034 if false { 11035 } else { 11036 h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) 11037 } 11038 } 11039 } 11040 if yyr2 || yy2arr2 { 11041 r.WriteArrayEnd() 11042 } else { 11043 r.WriteMapEnd() 11044 } 11045 } 11046 } 11047 } 11048 11049 func (x *ObjectDiff) CodecDecodeSelf(d *codec1978.Decoder) { 11050 var h codecSelfer100 11051 z, r := codec1978.GenHelperDecoder(d) 11052 _, _, _ = h, z, r 11053 if false { 11054 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 11055 z.DecExtension(x, yyxt1) 11056 } else { 11057 yyct2 := r.ContainerType() 11058 if yyct2 == codecSelferValueTypeMap100 { 11059 yyl2 := r.ReadMapStart() 11060 if yyl2 == 0 { 11061 r.ReadMapEnd() 11062 } else { 11063 x.codecDecodeSelfFromMap(yyl2, d) 11064 } 11065 } else if yyct2 == codecSelferValueTypeArray100 { 11066 yyl2 := r.ReadArrayStart() 11067 if yyl2 == 0 { 11068 r.ReadArrayEnd() 11069 } else { 11070 x.codecDecodeSelfFromArray(yyl2, d) 11071 } 11072 } else { 11073 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 11074 } 11075 } 11076 } 11077 11078 func (x *ObjectDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 11079 var h codecSelfer100 11080 z, r := codec1978.GenHelperDecoder(d) 11081 _, _, _ = h, z, r 11082 var yyhl3 bool = l >= 0 11083 for yyj3 := 0; ; yyj3++ { 11084 if yyhl3 { 11085 if yyj3 >= l { 11086 break 11087 } 11088 } else { 11089 if r.CheckBreak() { 11090 break 11091 } 11092 } 11093 r.ReadMapElemKey() 11094 yys3 := z.StringView(r.DecodeStringAsBytes()) 11095 r.ReadMapElemValue() 11096 switch yys3 { 11097 case "Type": 11098 if r.TryDecodeAsNil() { 11099 x.Type = "" 11100 } else { 11101 x.Type.CodecDecodeSelf(d) 11102 } 11103 case "Name": 11104 if r.TryDecodeAsNil() { 11105 x.Name = "" 11106 } else { 11107 x.Name = (string)(r.DecodeString()) 11108 } 11109 case "Fields": 11110 if r.TryDecodeAsNil() { 11111 x.Fields = nil 11112 } else { 11113 if false { 11114 } else { 11115 h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) 11116 } 11117 } 11118 case "Objects": 11119 if r.TryDecodeAsNil() { 11120 x.Objects = nil 11121 } else { 11122 if false { 11123 } else { 11124 h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) 11125 } 11126 } 11127 default: 11128 z.DecStructFieldNotFound(-1, yys3) 11129 } // end switch yys3 11130 } // end for yyj3 11131 r.ReadMapEnd() 11132 } 11133 11134 func (x *ObjectDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 11135 var h codecSelfer100 11136 z, r := codec1978.GenHelperDecoder(d) 11137 _, _, _ = h, z, r 11138 var yyj10 int 11139 var yyb10 bool 11140 var yyhl10 bool = l >= 0 11141 yyj10++ 11142 if yyhl10 { 11143 yyb10 = yyj10 > l 11144 } else { 11145 yyb10 = r.CheckBreak() 11146 } 11147 if yyb10 { 11148 r.ReadArrayEnd() 11149 return 11150 } 11151 r.ReadArrayElem() 11152 if r.TryDecodeAsNil() { 11153 x.Type = "" 11154 } else { 11155 x.Type.CodecDecodeSelf(d) 11156 } 11157 yyj10++ 11158 if yyhl10 { 11159 yyb10 = yyj10 > l 11160 } else { 11161 yyb10 = r.CheckBreak() 11162 } 11163 if yyb10 { 11164 r.ReadArrayEnd() 11165 return 11166 } 11167 r.ReadArrayElem() 11168 if r.TryDecodeAsNil() { 11169 x.Name = "" 11170 } else { 11171 x.Name = (string)(r.DecodeString()) 11172 } 11173 yyj10++ 11174 if yyhl10 { 11175 yyb10 = yyj10 > l 11176 } else { 11177 yyb10 = r.CheckBreak() 11178 } 11179 if yyb10 { 11180 r.ReadArrayEnd() 11181 return 11182 } 11183 r.ReadArrayElem() 11184 if r.TryDecodeAsNil() { 11185 x.Fields = nil 11186 } else { 11187 if false { 11188 } else { 11189 h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) 11190 } 11191 } 11192 yyj10++ 11193 if yyhl10 { 11194 yyb10 = yyj10 > l 11195 } else { 11196 yyb10 = r.CheckBreak() 11197 } 11198 if yyb10 { 11199 r.ReadArrayEnd() 11200 return 11201 } 11202 r.ReadArrayElem() 11203 if r.TryDecodeAsNil() { 11204 x.Objects = nil 11205 } else { 11206 if false { 11207 } else { 11208 h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) 11209 } 11210 } 11211 for { 11212 yyj10++ 11213 if yyhl10 { 11214 yyb10 = yyj10 > l 11215 } else { 11216 yyb10 = r.CheckBreak() 11217 } 11218 if yyb10 { 11219 break 11220 } 11221 r.ReadArrayElem() 11222 z.DecStructFieldNotFound(yyj10-1, "") 11223 } 11224 r.ReadArrayEnd() 11225 } 11226 11227 func (x ObjectDiffs) CodecEncodeSelf(e *codec1978.Encoder) { 11228 var h codecSelfer100 11229 z, r := codec1978.GenHelperEncoder(e) 11230 _, _, _ = h, z, r 11231 if x == nil { 11232 r.EncodeNil() 11233 } else { 11234 if false { 11235 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 11236 z.EncExtension(x, yyxt1) 11237 } else { 11238 h.encObjectDiffs((ObjectDiffs)(x), e) 11239 } 11240 } 11241 } 11242 11243 func (x *ObjectDiffs) CodecDecodeSelf(d *codec1978.Decoder) { 11244 var h codecSelfer100 11245 z, r := codec1978.GenHelperDecoder(d) 11246 _, _, _ = h, z, r 11247 if false { 11248 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 11249 z.DecExtension(x, yyxt1) 11250 } else { 11251 h.decObjectDiffs((*ObjectDiffs)(x), d) 11252 } 11253 } 11254 11255 func (x *FieldDiff) CodecEncodeSelf(e *codec1978.Encoder) { 11256 var h codecSelfer100 11257 z, r := codec1978.GenHelperEncoder(e) 11258 _, _, _ = h, z, r 11259 if x == nil { 11260 r.EncodeNil() 11261 } else { 11262 if false { 11263 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 11264 z.EncExtension(x, yyxt1) 11265 } else { 11266 yysep2 := !z.EncBinary() 11267 yy2arr2 := z.EncBasicHandle().StructToArray 11268 _, _ = yysep2, yy2arr2 11269 const yyr2 bool = false // struct tag has 'toArray' 11270 if yyr2 || yy2arr2 { 11271 r.WriteArrayStart(5) 11272 } else { 11273 r.WriteMapStart(5) 11274 } 11275 if yyr2 || yy2arr2 { 11276 r.WriteArrayElem() 11277 x.Type.CodecEncodeSelf(e) 11278 } else { 11279 r.WriteMapElemKey() 11280 if z.IsJSONHandle() { 11281 z.WriteStr("\"Type\"") 11282 } else { 11283 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 11284 } 11285 r.WriteMapElemValue() 11286 x.Type.CodecEncodeSelf(e) 11287 } 11288 if yyr2 || yy2arr2 { 11289 r.WriteArrayElem() 11290 if false { 11291 } else { 11292 if z.EncBasicHandle().StringToRaw { 11293 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 11294 } else { 11295 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 11296 } 11297 } 11298 } else { 11299 r.WriteMapElemKey() 11300 if z.IsJSONHandle() { 11301 z.WriteStr("\"Name\"") 11302 } else { 11303 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 11304 } 11305 r.WriteMapElemValue() 11306 if false { 11307 } else { 11308 if z.EncBasicHandle().StringToRaw { 11309 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 11310 } else { 11311 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 11312 } 11313 } 11314 } 11315 if yyr2 || yy2arr2 { 11316 r.WriteArrayElem() 11317 if false { 11318 } else { 11319 if z.EncBasicHandle().StringToRaw { 11320 r.EncodeStringBytesRaw(z.BytesView(string(x.Old))) 11321 } else { 11322 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Old)) 11323 } 11324 } 11325 } else { 11326 r.WriteMapElemKey() 11327 if z.IsJSONHandle() { 11328 z.WriteStr("\"Old\"") 11329 } else { 11330 r.EncodeStringEnc(codecSelferCcUTF8100, `Old`) 11331 } 11332 r.WriteMapElemValue() 11333 if false { 11334 } else { 11335 if z.EncBasicHandle().StringToRaw { 11336 r.EncodeStringBytesRaw(z.BytesView(string(x.Old))) 11337 } else { 11338 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Old)) 11339 } 11340 } 11341 } 11342 if yyr2 || yy2arr2 { 11343 r.WriteArrayElem() 11344 if false { 11345 } else { 11346 if z.EncBasicHandle().StringToRaw { 11347 r.EncodeStringBytesRaw(z.BytesView(string(x.New))) 11348 } else { 11349 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.New)) 11350 } 11351 } 11352 } else { 11353 r.WriteMapElemKey() 11354 if z.IsJSONHandle() { 11355 z.WriteStr("\"New\"") 11356 } else { 11357 r.EncodeStringEnc(codecSelferCcUTF8100, `New`) 11358 } 11359 r.WriteMapElemValue() 11360 if false { 11361 } else { 11362 if z.EncBasicHandle().StringToRaw { 11363 r.EncodeStringBytesRaw(z.BytesView(string(x.New))) 11364 } else { 11365 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.New)) 11366 } 11367 } 11368 } 11369 if yyr2 || yy2arr2 { 11370 r.WriteArrayElem() 11371 if x.Annotations == nil { 11372 r.EncodeNil() 11373 } else { 11374 if false { 11375 } else { 11376 z.F.EncSliceStringV(x.Annotations, e) 11377 } 11378 } 11379 } else { 11380 r.WriteMapElemKey() 11381 if z.IsJSONHandle() { 11382 z.WriteStr("\"Annotations\"") 11383 } else { 11384 r.EncodeStringEnc(codecSelferCcUTF8100, `Annotations`) 11385 } 11386 r.WriteMapElemValue() 11387 if x.Annotations == nil { 11388 r.EncodeNil() 11389 } else { 11390 if false { 11391 } else { 11392 z.F.EncSliceStringV(x.Annotations, e) 11393 } 11394 } 11395 } 11396 if yyr2 || yy2arr2 { 11397 r.WriteArrayEnd() 11398 } else { 11399 r.WriteMapEnd() 11400 } 11401 } 11402 } 11403 } 11404 11405 func (x *FieldDiff) CodecDecodeSelf(d *codec1978.Decoder) { 11406 var h codecSelfer100 11407 z, r := codec1978.GenHelperDecoder(d) 11408 _, _, _ = h, z, r 11409 if false { 11410 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 11411 z.DecExtension(x, yyxt1) 11412 } else { 11413 yyct2 := r.ContainerType() 11414 if yyct2 == codecSelferValueTypeMap100 { 11415 yyl2 := r.ReadMapStart() 11416 if yyl2 == 0 { 11417 r.ReadMapEnd() 11418 } else { 11419 x.codecDecodeSelfFromMap(yyl2, d) 11420 } 11421 } else if yyct2 == codecSelferValueTypeArray100 { 11422 yyl2 := r.ReadArrayStart() 11423 if yyl2 == 0 { 11424 r.ReadArrayEnd() 11425 } else { 11426 x.codecDecodeSelfFromArray(yyl2, d) 11427 } 11428 } else { 11429 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 11430 } 11431 } 11432 } 11433 11434 func (x *FieldDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 11435 var h codecSelfer100 11436 z, r := codec1978.GenHelperDecoder(d) 11437 _, _, _ = h, z, r 11438 var yyhl3 bool = l >= 0 11439 for yyj3 := 0; ; yyj3++ { 11440 if yyhl3 { 11441 if yyj3 >= l { 11442 break 11443 } 11444 } else { 11445 if r.CheckBreak() { 11446 break 11447 } 11448 } 11449 r.ReadMapElemKey() 11450 yys3 := z.StringView(r.DecodeStringAsBytes()) 11451 r.ReadMapElemValue() 11452 switch yys3 { 11453 case "Type": 11454 if r.TryDecodeAsNil() { 11455 x.Type = "" 11456 } else { 11457 x.Type.CodecDecodeSelf(d) 11458 } 11459 case "Name": 11460 if r.TryDecodeAsNil() { 11461 x.Name = "" 11462 } else { 11463 x.Name = (string)(r.DecodeString()) 11464 } 11465 case "Old": 11466 if r.TryDecodeAsNil() { 11467 x.Old = "" 11468 } else { 11469 x.Old = (string)(r.DecodeString()) 11470 } 11471 case "New": 11472 if r.TryDecodeAsNil() { 11473 x.New = "" 11474 } else { 11475 x.New = (string)(r.DecodeString()) 11476 } 11477 case "Annotations": 11478 if r.TryDecodeAsNil() { 11479 x.Annotations = nil 11480 } else { 11481 if false { 11482 } else { 11483 z.F.DecSliceStringX(&x.Annotations, d) 11484 } 11485 } 11486 default: 11487 z.DecStructFieldNotFound(-1, yys3) 11488 } // end switch yys3 11489 } // end for yyj3 11490 r.ReadMapEnd() 11491 } 11492 11493 func (x *FieldDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 11494 var h codecSelfer100 11495 z, r := codec1978.GenHelperDecoder(d) 11496 _, _, _ = h, z, r 11497 var yyj10 int 11498 var yyb10 bool 11499 var yyhl10 bool = l >= 0 11500 yyj10++ 11501 if yyhl10 { 11502 yyb10 = yyj10 > l 11503 } else { 11504 yyb10 = r.CheckBreak() 11505 } 11506 if yyb10 { 11507 r.ReadArrayEnd() 11508 return 11509 } 11510 r.ReadArrayElem() 11511 if r.TryDecodeAsNil() { 11512 x.Type = "" 11513 } else { 11514 x.Type.CodecDecodeSelf(d) 11515 } 11516 yyj10++ 11517 if yyhl10 { 11518 yyb10 = yyj10 > l 11519 } else { 11520 yyb10 = r.CheckBreak() 11521 } 11522 if yyb10 { 11523 r.ReadArrayEnd() 11524 return 11525 } 11526 r.ReadArrayElem() 11527 if r.TryDecodeAsNil() { 11528 x.Name = "" 11529 } else { 11530 x.Name = (string)(r.DecodeString()) 11531 } 11532 yyj10++ 11533 if yyhl10 { 11534 yyb10 = yyj10 > l 11535 } else { 11536 yyb10 = r.CheckBreak() 11537 } 11538 if yyb10 { 11539 r.ReadArrayEnd() 11540 return 11541 } 11542 r.ReadArrayElem() 11543 if r.TryDecodeAsNil() { 11544 x.Old = "" 11545 } else { 11546 x.Old = (string)(r.DecodeString()) 11547 } 11548 yyj10++ 11549 if yyhl10 { 11550 yyb10 = yyj10 > l 11551 } else { 11552 yyb10 = r.CheckBreak() 11553 } 11554 if yyb10 { 11555 r.ReadArrayEnd() 11556 return 11557 } 11558 r.ReadArrayElem() 11559 if r.TryDecodeAsNil() { 11560 x.New = "" 11561 } else { 11562 x.New = (string)(r.DecodeString()) 11563 } 11564 yyj10++ 11565 if yyhl10 { 11566 yyb10 = yyj10 > l 11567 } else { 11568 yyb10 = r.CheckBreak() 11569 } 11570 if yyb10 { 11571 r.ReadArrayEnd() 11572 return 11573 } 11574 r.ReadArrayElem() 11575 if r.TryDecodeAsNil() { 11576 x.Annotations = nil 11577 } else { 11578 if false { 11579 } else { 11580 z.F.DecSliceStringX(&x.Annotations, d) 11581 } 11582 } 11583 for { 11584 yyj10++ 11585 if yyhl10 { 11586 yyb10 = yyj10 > l 11587 } else { 11588 yyb10 = r.CheckBreak() 11589 } 11590 if yyb10 { 11591 break 11592 } 11593 r.ReadArrayElem() 11594 z.DecStructFieldNotFound(yyj10-1, "") 11595 } 11596 r.ReadArrayEnd() 11597 } 11598 11599 func (x FieldDiffs) CodecEncodeSelf(e *codec1978.Encoder) { 11600 var h codecSelfer100 11601 z, r := codec1978.GenHelperEncoder(e) 11602 _, _, _ = h, z, r 11603 if x == nil { 11604 r.EncodeNil() 11605 } else { 11606 if false { 11607 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 11608 z.EncExtension(x, yyxt1) 11609 } else { 11610 h.encFieldDiffs((FieldDiffs)(x), e) 11611 } 11612 } 11613 } 11614 11615 func (x *FieldDiffs) CodecDecodeSelf(d *codec1978.Decoder) { 11616 var h codecSelfer100 11617 z, r := codec1978.GenHelperDecoder(d) 11618 _, _, _ = h, z, r 11619 if false { 11620 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 11621 z.DecExtension(x, yyxt1) 11622 } else { 11623 h.decFieldDiffs((*FieldDiffs)(x), d) 11624 } 11625 } 11626 11627 func (x *NetworkIndex) CodecEncodeSelf(e *codec1978.Encoder) { 11628 var h codecSelfer100 11629 z, r := codec1978.GenHelperEncoder(e) 11630 _, _, _ = h, z, r 11631 if x == nil { 11632 r.EncodeNil() 11633 } else { 11634 if false { 11635 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 11636 z.EncExtension(x, yyxt1) 11637 } else { 11638 yysep2 := !z.EncBinary() 11639 yy2arr2 := z.EncBasicHandle().StructToArray 11640 _, _ = yysep2, yy2arr2 11641 const yyr2 bool = false // struct tag has 'toArray' 11642 if yyr2 || yy2arr2 { 11643 r.WriteArrayStart(4) 11644 } else { 11645 r.WriteMapStart(4) 11646 } 11647 if yyr2 || yy2arr2 { 11648 r.WriteArrayElem() 11649 if x.AvailNetworks == nil { 11650 r.EncodeNil() 11651 } else { 11652 if false { 11653 } else { 11654 h.encSlicePtrtoNetworkResource(([]*NetworkResource)(x.AvailNetworks), e) 11655 } 11656 } 11657 } else { 11658 r.WriteMapElemKey() 11659 if z.IsJSONHandle() { 11660 z.WriteStr("\"AvailNetworks\"") 11661 } else { 11662 r.EncodeStringEnc(codecSelferCcUTF8100, `AvailNetworks`) 11663 } 11664 r.WriteMapElemValue() 11665 if x.AvailNetworks == nil { 11666 r.EncodeNil() 11667 } else { 11668 if false { 11669 } else { 11670 h.encSlicePtrtoNetworkResource(([]*NetworkResource)(x.AvailNetworks), e) 11671 } 11672 } 11673 } 11674 if yyr2 || yy2arr2 { 11675 r.WriteArrayElem() 11676 if x.AvailBandwidth == nil { 11677 r.EncodeNil() 11678 } else { 11679 if false { 11680 } else { 11681 z.F.EncMapStringIntV(x.AvailBandwidth, e) 11682 } 11683 } 11684 } else { 11685 r.WriteMapElemKey() 11686 if z.IsJSONHandle() { 11687 z.WriteStr("\"AvailBandwidth\"") 11688 } else { 11689 r.EncodeStringEnc(codecSelferCcUTF8100, `AvailBandwidth`) 11690 } 11691 r.WriteMapElemValue() 11692 if x.AvailBandwidth == nil { 11693 r.EncodeNil() 11694 } else { 11695 if false { 11696 } else { 11697 z.F.EncMapStringIntV(x.AvailBandwidth, e) 11698 } 11699 } 11700 } 11701 if yyr2 || yy2arr2 { 11702 r.WriteArrayElem() 11703 if x.UsedPorts == nil { 11704 r.EncodeNil() 11705 } else { 11706 if false { 11707 } else { 11708 h.encMapstringBitmap((map[string]Bitmap)(x.UsedPorts), e) 11709 } 11710 } 11711 } else { 11712 r.WriteMapElemKey() 11713 if z.IsJSONHandle() { 11714 z.WriteStr("\"UsedPorts\"") 11715 } else { 11716 r.EncodeStringEnc(codecSelferCcUTF8100, `UsedPorts`) 11717 } 11718 r.WriteMapElemValue() 11719 if x.UsedPorts == nil { 11720 r.EncodeNil() 11721 } else { 11722 if false { 11723 } else { 11724 h.encMapstringBitmap((map[string]Bitmap)(x.UsedPorts), e) 11725 } 11726 } 11727 } 11728 if yyr2 || yy2arr2 { 11729 r.WriteArrayElem() 11730 if x.UsedBandwidth == nil { 11731 r.EncodeNil() 11732 } else { 11733 if false { 11734 } else { 11735 z.F.EncMapStringIntV(x.UsedBandwidth, e) 11736 } 11737 } 11738 } else { 11739 r.WriteMapElemKey() 11740 if z.IsJSONHandle() { 11741 z.WriteStr("\"UsedBandwidth\"") 11742 } else { 11743 r.EncodeStringEnc(codecSelferCcUTF8100, `UsedBandwidth`) 11744 } 11745 r.WriteMapElemValue() 11746 if x.UsedBandwidth == nil { 11747 r.EncodeNil() 11748 } else { 11749 if false { 11750 } else { 11751 z.F.EncMapStringIntV(x.UsedBandwidth, e) 11752 } 11753 } 11754 } 11755 if yyr2 || yy2arr2 { 11756 r.WriteArrayEnd() 11757 } else { 11758 r.WriteMapEnd() 11759 } 11760 } 11761 } 11762 } 11763 11764 func (x *NetworkIndex) CodecDecodeSelf(d *codec1978.Decoder) { 11765 var h codecSelfer100 11766 z, r := codec1978.GenHelperDecoder(d) 11767 _, _, _ = h, z, r 11768 if false { 11769 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 11770 z.DecExtension(x, yyxt1) 11771 } else { 11772 yyct2 := r.ContainerType() 11773 if yyct2 == codecSelferValueTypeMap100 { 11774 yyl2 := r.ReadMapStart() 11775 if yyl2 == 0 { 11776 r.ReadMapEnd() 11777 } else { 11778 x.codecDecodeSelfFromMap(yyl2, d) 11779 } 11780 } else if yyct2 == codecSelferValueTypeArray100 { 11781 yyl2 := r.ReadArrayStart() 11782 if yyl2 == 0 { 11783 r.ReadArrayEnd() 11784 } else { 11785 x.codecDecodeSelfFromArray(yyl2, d) 11786 } 11787 } else { 11788 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 11789 } 11790 } 11791 } 11792 11793 func (x *NetworkIndex) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 11794 var h codecSelfer100 11795 z, r := codec1978.GenHelperDecoder(d) 11796 _, _, _ = h, z, r 11797 var yyhl3 bool = l >= 0 11798 for yyj3 := 0; ; yyj3++ { 11799 if yyhl3 { 11800 if yyj3 >= l { 11801 break 11802 } 11803 } else { 11804 if r.CheckBreak() { 11805 break 11806 } 11807 } 11808 r.ReadMapElemKey() 11809 yys3 := z.StringView(r.DecodeStringAsBytes()) 11810 r.ReadMapElemValue() 11811 switch yys3 { 11812 case "AvailNetworks": 11813 if r.TryDecodeAsNil() { 11814 x.AvailNetworks = nil 11815 } else { 11816 if false { 11817 } else { 11818 h.decSlicePtrtoNetworkResource((*[]*NetworkResource)(&x.AvailNetworks), d) 11819 } 11820 } 11821 case "AvailBandwidth": 11822 if r.TryDecodeAsNil() { 11823 x.AvailBandwidth = nil 11824 } else { 11825 if false { 11826 } else { 11827 z.F.DecMapStringIntX(&x.AvailBandwidth, d) 11828 } 11829 } 11830 case "UsedPorts": 11831 if r.TryDecodeAsNil() { 11832 x.UsedPorts = nil 11833 } else { 11834 if false { 11835 } else { 11836 h.decMapstringBitmap((*map[string]Bitmap)(&x.UsedPorts), d) 11837 } 11838 } 11839 case "UsedBandwidth": 11840 if r.TryDecodeAsNil() { 11841 x.UsedBandwidth = nil 11842 } else { 11843 if false { 11844 } else { 11845 z.F.DecMapStringIntX(&x.UsedBandwidth, d) 11846 } 11847 } 11848 default: 11849 z.DecStructFieldNotFound(-1, yys3) 11850 } // end switch yys3 11851 } // end for yyj3 11852 r.ReadMapEnd() 11853 } 11854 11855 func (x *NetworkIndex) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 11856 var h codecSelfer100 11857 z, r := codec1978.GenHelperDecoder(d) 11858 _, _, _ = h, z, r 11859 var yyj12 int 11860 var yyb12 bool 11861 var yyhl12 bool = l >= 0 11862 yyj12++ 11863 if yyhl12 { 11864 yyb12 = yyj12 > l 11865 } else { 11866 yyb12 = r.CheckBreak() 11867 } 11868 if yyb12 { 11869 r.ReadArrayEnd() 11870 return 11871 } 11872 r.ReadArrayElem() 11873 if r.TryDecodeAsNil() { 11874 x.AvailNetworks = nil 11875 } else { 11876 if false { 11877 } else { 11878 h.decSlicePtrtoNetworkResource((*[]*NetworkResource)(&x.AvailNetworks), d) 11879 } 11880 } 11881 yyj12++ 11882 if yyhl12 { 11883 yyb12 = yyj12 > l 11884 } else { 11885 yyb12 = r.CheckBreak() 11886 } 11887 if yyb12 { 11888 r.ReadArrayEnd() 11889 return 11890 } 11891 r.ReadArrayElem() 11892 if r.TryDecodeAsNil() { 11893 x.AvailBandwidth = nil 11894 } else { 11895 if false { 11896 } else { 11897 z.F.DecMapStringIntX(&x.AvailBandwidth, d) 11898 } 11899 } 11900 yyj12++ 11901 if yyhl12 { 11902 yyb12 = yyj12 > l 11903 } else { 11904 yyb12 = r.CheckBreak() 11905 } 11906 if yyb12 { 11907 r.ReadArrayEnd() 11908 return 11909 } 11910 r.ReadArrayElem() 11911 if r.TryDecodeAsNil() { 11912 x.UsedPorts = nil 11913 } else { 11914 if false { 11915 } else { 11916 h.decMapstringBitmap((*map[string]Bitmap)(&x.UsedPorts), d) 11917 } 11918 } 11919 yyj12++ 11920 if yyhl12 { 11921 yyb12 = yyj12 > l 11922 } else { 11923 yyb12 = r.CheckBreak() 11924 } 11925 if yyb12 { 11926 r.ReadArrayEnd() 11927 return 11928 } 11929 r.ReadArrayElem() 11930 if r.TryDecodeAsNil() { 11931 x.UsedBandwidth = nil 11932 } else { 11933 if false { 11934 } else { 11935 z.F.DecMapStringIntX(&x.UsedBandwidth, d) 11936 } 11937 } 11938 for { 11939 yyj12++ 11940 if yyhl12 { 11941 yyb12 = yyj12 > l 11942 } else { 11943 yyb12 = r.CheckBreak() 11944 } 11945 if yyb12 { 11946 break 11947 } 11948 r.ReadArrayElem() 11949 z.DecStructFieldNotFound(yyj12-1, "") 11950 } 11951 r.ReadArrayEnd() 11952 } 11953 11954 func (x *CSITopology) CodecEncodeSelf(e *codec1978.Encoder) { 11955 var h codecSelfer100 11956 z, r := codec1978.GenHelperEncoder(e) 11957 _, _, _ = h, z, r 11958 if x == nil { 11959 r.EncodeNil() 11960 } else { 11961 if false { 11962 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 11963 z.EncExtension(x, yyxt1) 11964 } else { 11965 yysep2 := !z.EncBinary() 11966 yy2arr2 := z.EncBasicHandle().StructToArray 11967 _, _ = yysep2, yy2arr2 11968 const yyr2 bool = false // struct tag has 'toArray' 11969 if yyr2 || yy2arr2 { 11970 r.WriteArrayStart(1) 11971 } else { 11972 r.WriteMapStart(1) 11973 } 11974 if yyr2 || yy2arr2 { 11975 r.WriteArrayElem() 11976 if x.Segments == nil { 11977 r.EncodeNil() 11978 } else { 11979 if false { 11980 } else { 11981 z.F.EncMapStringStringV(x.Segments, e) 11982 } 11983 } 11984 } else { 11985 r.WriteMapElemKey() 11986 if z.IsJSONHandle() { 11987 z.WriteStr("\"Segments\"") 11988 } else { 11989 r.EncodeStringEnc(codecSelferCcUTF8100, `Segments`) 11990 } 11991 r.WriteMapElemValue() 11992 if x.Segments == nil { 11993 r.EncodeNil() 11994 } else { 11995 if false { 11996 } else { 11997 z.F.EncMapStringStringV(x.Segments, e) 11998 } 11999 } 12000 } 12001 if yyr2 || yy2arr2 { 12002 r.WriteArrayEnd() 12003 } else { 12004 r.WriteMapEnd() 12005 } 12006 } 12007 } 12008 } 12009 12010 func (x *CSITopology) CodecDecodeSelf(d *codec1978.Decoder) { 12011 var h codecSelfer100 12012 z, r := codec1978.GenHelperDecoder(d) 12013 _, _, _ = h, z, r 12014 if false { 12015 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 12016 z.DecExtension(x, yyxt1) 12017 } else { 12018 yyct2 := r.ContainerType() 12019 if yyct2 == codecSelferValueTypeMap100 { 12020 yyl2 := r.ReadMapStart() 12021 if yyl2 == 0 { 12022 r.ReadMapEnd() 12023 } else { 12024 x.codecDecodeSelfFromMap(yyl2, d) 12025 } 12026 } else if yyct2 == codecSelferValueTypeArray100 { 12027 yyl2 := r.ReadArrayStart() 12028 if yyl2 == 0 { 12029 r.ReadArrayEnd() 12030 } else { 12031 x.codecDecodeSelfFromArray(yyl2, d) 12032 } 12033 } else { 12034 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 12035 } 12036 } 12037 } 12038 12039 func (x *CSITopology) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 12040 var h codecSelfer100 12041 z, r := codec1978.GenHelperDecoder(d) 12042 _, _, _ = h, z, r 12043 var yyhl3 bool = l >= 0 12044 for yyj3 := 0; ; yyj3++ { 12045 if yyhl3 { 12046 if yyj3 >= l { 12047 break 12048 } 12049 } else { 12050 if r.CheckBreak() { 12051 break 12052 } 12053 } 12054 r.ReadMapElemKey() 12055 yys3 := z.StringView(r.DecodeStringAsBytes()) 12056 r.ReadMapElemValue() 12057 switch yys3 { 12058 case "Segments": 12059 if r.TryDecodeAsNil() { 12060 x.Segments = nil 12061 } else { 12062 if false { 12063 } else { 12064 z.F.DecMapStringStringX(&x.Segments, d) 12065 } 12066 } 12067 default: 12068 z.DecStructFieldNotFound(-1, yys3) 12069 } // end switch yys3 12070 } // end for yyj3 12071 r.ReadMapEnd() 12072 } 12073 12074 func (x *CSITopology) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 12075 var h codecSelfer100 12076 z, r := codec1978.GenHelperDecoder(d) 12077 _, _, _ = h, z, r 12078 var yyj6 int 12079 var yyb6 bool 12080 var yyhl6 bool = l >= 0 12081 yyj6++ 12082 if yyhl6 { 12083 yyb6 = yyj6 > l 12084 } else { 12085 yyb6 = r.CheckBreak() 12086 } 12087 if yyb6 { 12088 r.ReadArrayEnd() 12089 return 12090 } 12091 r.ReadArrayElem() 12092 if r.TryDecodeAsNil() { 12093 x.Segments = nil 12094 } else { 12095 if false { 12096 } else { 12097 z.F.DecMapStringStringX(&x.Segments, d) 12098 } 12099 } 12100 for { 12101 yyj6++ 12102 if yyhl6 { 12103 yyb6 = yyj6 > l 12104 } else { 12105 yyb6 = r.CheckBreak() 12106 } 12107 if yyb6 { 12108 break 12109 } 12110 r.ReadArrayElem() 12111 z.DecStructFieldNotFound(yyj6-1, "") 12112 } 12113 r.ReadArrayEnd() 12114 } 12115 12116 func (x *CSINodeInfo) CodecEncodeSelf(e *codec1978.Encoder) { 12117 var h codecSelfer100 12118 z, r := codec1978.GenHelperEncoder(e) 12119 _, _, _ = h, z, r 12120 if x == nil { 12121 r.EncodeNil() 12122 } else { 12123 if false { 12124 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 12125 z.EncExtension(x, yyxt1) 12126 } else { 12127 yysep2 := !z.EncBinary() 12128 yy2arr2 := z.EncBasicHandle().StructToArray 12129 _, _ = yysep2, yy2arr2 12130 const yyr2 bool = false // struct tag has 'toArray' 12131 if yyr2 || yy2arr2 { 12132 r.WriteArrayStart(4) 12133 } else { 12134 r.WriteMapStart(4) 12135 } 12136 if yyr2 || yy2arr2 { 12137 r.WriteArrayElem() 12138 if false { 12139 } else { 12140 if z.EncBasicHandle().StringToRaw { 12141 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 12142 } else { 12143 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 12144 } 12145 } 12146 } else { 12147 r.WriteMapElemKey() 12148 if z.IsJSONHandle() { 12149 z.WriteStr("\"ID\"") 12150 } else { 12151 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 12152 } 12153 r.WriteMapElemValue() 12154 if false { 12155 } else { 12156 if z.EncBasicHandle().StringToRaw { 12157 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 12158 } else { 12159 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 12160 } 12161 } 12162 } 12163 if yyr2 || yy2arr2 { 12164 r.WriteArrayElem() 12165 if false { 12166 } else { 12167 r.EncodeInt(int64(x.MaxVolumes)) 12168 } 12169 } else { 12170 r.WriteMapElemKey() 12171 if z.IsJSONHandle() { 12172 z.WriteStr("\"MaxVolumes\"") 12173 } else { 12174 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxVolumes`) 12175 } 12176 r.WriteMapElemValue() 12177 if false { 12178 } else { 12179 r.EncodeInt(int64(x.MaxVolumes)) 12180 } 12181 } 12182 var yyn9 bool 12183 if x.AccessibleTopology == nil { 12184 yyn9 = true 12185 goto LABEL9 12186 } 12187 LABEL9: 12188 if yyr2 || yy2arr2 { 12189 if yyn9 { 12190 r.WriteArrayElem() 12191 r.EncodeNil() 12192 } else { 12193 r.WriteArrayElem() 12194 if x.AccessibleTopology == nil { 12195 r.EncodeNil() 12196 } else { 12197 x.AccessibleTopology.CodecEncodeSelf(e) 12198 } 12199 } 12200 } else { 12201 r.WriteMapElemKey() 12202 if z.IsJSONHandle() { 12203 z.WriteStr("\"AccessibleTopology\"") 12204 } else { 12205 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessibleTopology`) 12206 } 12207 r.WriteMapElemValue() 12208 if yyn9 { 12209 r.EncodeNil() 12210 } else { 12211 if x.AccessibleTopology == nil { 12212 r.EncodeNil() 12213 } else { 12214 x.AccessibleTopology.CodecEncodeSelf(e) 12215 } 12216 } 12217 } 12218 if yyr2 || yy2arr2 { 12219 r.WriteArrayElem() 12220 if false { 12221 } else { 12222 r.EncodeBool(bool(x.RequiresNodeStageVolume)) 12223 } 12224 } else { 12225 r.WriteMapElemKey() 12226 if z.IsJSONHandle() { 12227 z.WriteStr("\"RequiresNodeStageVolume\"") 12228 } else { 12229 r.EncodeStringEnc(codecSelferCcUTF8100, `RequiresNodeStageVolume`) 12230 } 12231 r.WriteMapElemValue() 12232 if false { 12233 } else { 12234 r.EncodeBool(bool(x.RequiresNodeStageVolume)) 12235 } 12236 } 12237 if yyr2 || yy2arr2 { 12238 r.WriteArrayEnd() 12239 } else { 12240 r.WriteMapEnd() 12241 } 12242 } 12243 } 12244 } 12245 12246 func (x *CSINodeInfo) CodecDecodeSelf(d *codec1978.Decoder) { 12247 var h codecSelfer100 12248 z, r := codec1978.GenHelperDecoder(d) 12249 _, _, _ = h, z, r 12250 if false { 12251 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 12252 z.DecExtension(x, yyxt1) 12253 } else { 12254 yyct2 := r.ContainerType() 12255 if yyct2 == codecSelferValueTypeMap100 { 12256 yyl2 := r.ReadMapStart() 12257 if yyl2 == 0 { 12258 r.ReadMapEnd() 12259 } else { 12260 x.codecDecodeSelfFromMap(yyl2, d) 12261 } 12262 } else if yyct2 == codecSelferValueTypeArray100 { 12263 yyl2 := r.ReadArrayStart() 12264 if yyl2 == 0 { 12265 r.ReadArrayEnd() 12266 } else { 12267 x.codecDecodeSelfFromArray(yyl2, d) 12268 } 12269 } else { 12270 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 12271 } 12272 } 12273 } 12274 12275 func (x *CSINodeInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 12276 var h codecSelfer100 12277 z, r := codec1978.GenHelperDecoder(d) 12278 _, _, _ = h, z, r 12279 var yyhl3 bool = l >= 0 12280 for yyj3 := 0; ; yyj3++ { 12281 if yyhl3 { 12282 if yyj3 >= l { 12283 break 12284 } 12285 } else { 12286 if r.CheckBreak() { 12287 break 12288 } 12289 } 12290 r.ReadMapElemKey() 12291 yys3 := z.StringView(r.DecodeStringAsBytes()) 12292 r.ReadMapElemValue() 12293 switch yys3 { 12294 case "ID": 12295 if r.TryDecodeAsNil() { 12296 x.ID = "" 12297 } else { 12298 x.ID = (string)(r.DecodeString()) 12299 } 12300 case "MaxVolumes": 12301 if r.TryDecodeAsNil() { 12302 x.MaxVolumes = 0 12303 } else { 12304 x.MaxVolumes = (int64)(r.DecodeInt64()) 12305 } 12306 case "AccessibleTopology": 12307 if r.TryDecodeAsNil() { 12308 if true && x.AccessibleTopology != nil { 12309 x.AccessibleTopology = nil 12310 } 12311 } else { 12312 if x.AccessibleTopology == nil { 12313 x.AccessibleTopology = new(CSITopology) 12314 } 12315 12316 x.AccessibleTopology.CodecDecodeSelf(d) 12317 } 12318 case "RequiresNodeStageVolume": 12319 if r.TryDecodeAsNil() { 12320 x.RequiresNodeStageVolume = false 12321 } else { 12322 x.RequiresNodeStageVolume = (bool)(r.DecodeBool()) 12323 } 12324 default: 12325 z.DecStructFieldNotFound(-1, yys3) 12326 } // end switch yys3 12327 } // end for yyj3 12328 r.ReadMapEnd() 12329 } 12330 12331 func (x *CSINodeInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 12332 var h codecSelfer100 12333 z, r := codec1978.GenHelperDecoder(d) 12334 _, _, _ = h, z, r 12335 var yyj8 int 12336 var yyb8 bool 12337 var yyhl8 bool = l >= 0 12338 yyj8++ 12339 if yyhl8 { 12340 yyb8 = yyj8 > l 12341 } else { 12342 yyb8 = r.CheckBreak() 12343 } 12344 if yyb8 { 12345 r.ReadArrayEnd() 12346 return 12347 } 12348 r.ReadArrayElem() 12349 if r.TryDecodeAsNil() { 12350 x.ID = "" 12351 } else { 12352 x.ID = (string)(r.DecodeString()) 12353 } 12354 yyj8++ 12355 if yyhl8 { 12356 yyb8 = yyj8 > l 12357 } else { 12358 yyb8 = r.CheckBreak() 12359 } 12360 if yyb8 { 12361 r.ReadArrayEnd() 12362 return 12363 } 12364 r.ReadArrayElem() 12365 if r.TryDecodeAsNil() { 12366 x.MaxVolumes = 0 12367 } else { 12368 x.MaxVolumes = (int64)(r.DecodeInt64()) 12369 } 12370 yyj8++ 12371 if yyhl8 { 12372 yyb8 = yyj8 > l 12373 } else { 12374 yyb8 = r.CheckBreak() 12375 } 12376 if yyb8 { 12377 r.ReadArrayEnd() 12378 return 12379 } 12380 r.ReadArrayElem() 12381 if r.TryDecodeAsNil() { 12382 if true && x.AccessibleTopology != nil { 12383 x.AccessibleTopology = nil 12384 } 12385 } else { 12386 if x.AccessibleTopology == nil { 12387 x.AccessibleTopology = new(CSITopology) 12388 } 12389 12390 x.AccessibleTopology.CodecDecodeSelf(d) 12391 } 12392 yyj8++ 12393 if yyhl8 { 12394 yyb8 = yyj8 > l 12395 } else { 12396 yyb8 = r.CheckBreak() 12397 } 12398 if yyb8 { 12399 r.ReadArrayEnd() 12400 return 12401 } 12402 r.ReadArrayElem() 12403 if r.TryDecodeAsNil() { 12404 x.RequiresNodeStageVolume = false 12405 } else { 12406 x.RequiresNodeStageVolume = (bool)(r.DecodeBool()) 12407 } 12408 for { 12409 yyj8++ 12410 if yyhl8 { 12411 yyb8 = yyj8 > l 12412 } else { 12413 yyb8 = r.CheckBreak() 12414 } 12415 if yyb8 { 12416 break 12417 } 12418 r.ReadArrayElem() 12419 z.DecStructFieldNotFound(yyj8-1, "") 12420 } 12421 r.ReadArrayEnd() 12422 } 12423 12424 func (x *CSIControllerInfo) CodecEncodeSelf(e *codec1978.Encoder) { 12425 var h codecSelfer100 12426 z, r := codec1978.GenHelperEncoder(e) 12427 _, _, _ = h, z, r 12428 if x == nil { 12429 r.EncodeNil() 12430 } else { 12431 if false { 12432 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 12433 z.EncExtension(x, yyxt1) 12434 } else { 12435 yysep2 := !z.EncBinary() 12436 yy2arr2 := z.EncBasicHandle().StructToArray 12437 _, _ = yysep2, yy2arr2 12438 const yyr2 bool = false // struct tag has 'toArray' 12439 if yyr2 || yy2arr2 { 12440 r.WriteArrayStart(4) 12441 } else { 12442 r.WriteMapStart(4) 12443 } 12444 if yyr2 || yy2arr2 { 12445 r.WriteArrayElem() 12446 if false { 12447 } else { 12448 r.EncodeBool(bool(x.SupportsReadOnlyAttach)) 12449 } 12450 } else { 12451 r.WriteMapElemKey() 12452 if z.IsJSONHandle() { 12453 z.WriteStr("\"SupportsReadOnlyAttach\"") 12454 } else { 12455 r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsReadOnlyAttach`) 12456 } 12457 r.WriteMapElemValue() 12458 if false { 12459 } else { 12460 r.EncodeBool(bool(x.SupportsReadOnlyAttach)) 12461 } 12462 } 12463 if yyr2 || yy2arr2 { 12464 r.WriteArrayElem() 12465 if false { 12466 } else { 12467 r.EncodeBool(bool(x.SupportsAttachDetach)) 12468 } 12469 } else { 12470 r.WriteMapElemKey() 12471 if z.IsJSONHandle() { 12472 z.WriteStr("\"SupportsAttachDetach\"") 12473 } else { 12474 r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsAttachDetach`) 12475 } 12476 r.WriteMapElemValue() 12477 if false { 12478 } else { 12479 r.EncodeBool(bool(x.SupportsAttachDetach)) 12480 } 12481 } 12482 if yyr2 || yy2arr2 { 12483 r.WriteArrayElem() 12484 if false { 12485 } else { 12486 r.EncodeBool(bool(x.SupportsListVolumes)) 12487 } 12488 } else { 12489 r.WriteMapElemKey() 12490 if z.IsJSONHandle() { 12491 z.WriteStr("\"SupportsListVolumes\"") 12492 } else { 12493 r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsListVolumes`) 12494 } 12495 r.WriteMapElemValue() 12496 if false { 12497 } else { 12498 r.EncodeBool(bool(x.SupportsListVolumes)) 12499 } 12500 } 12501 if yyr2 || yy2arr2 { 12502 r.WriteArrayElem() 12503 if false { 12504 } else { 12505 r.EncodeBool(bool(x.SupportsListVolumesAttachedNodes)) 12506 } 12507 } else { 12508 r.WriteMapElemKey() 12509 if z.IsJSONHandle() { 12510 z.WriteStr("\"SupportsListVolumesAttachedNodes\"") 12511 } else { 12512 r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsListVolumesAttachedNodes`) 12513 } 12514 r.WriteMapElemValue() 12515 if false { 12516 } else { 12517 r.EncodeBool(bool(x.SupportsListVolumesAttachedNodes)) 12518 } 12519 } 12520 if yyr2 || yy2arr2 { 12521 r.WriteArrayEnd() 12522 } else { 12523 r.WriteMapEnd() 12524 } 12525 } 12526 } 12527 } 12528 12529 func (x *CSIControllerInfo) CodecDecodeSelf(d *codec1978.Decoder) { 12530 var h codecSelfer100 12531 z, r := codec1978.GenHelperDecoder(d) 12532 _, _, _ = h, z, r 12533 if false { 12534 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 12535 z.DecExtension(x, yyxt1) 12536 } else { 12537 yyct2 := r.ContainerType() 12538 if yyct2 == codecSelferValueTypeMap100 { 12539 yyl2 := r.ReadMapStart() 12540 if yyl2 == 0 { 12541 r.ReadMapEnd() 12542 } else { 12543 x.codecDecodeSelfFromMap(yyl2, d) 12544 } 12545 } else if yyct2 == codecSelferValueTypeArray100 { 12546 yyl2 := r.ReadArrayStart() 12547 if yyl2 == 0 { 12548 r.ReadArrayEnd() 12549 } else { 12550 x.codecDecodeSelfFromArray(yyl2, d) 12551 } 12552 } else { 12553 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 12554 } 12555 } 12556 } 12557 12558 func (x *CSIControllerInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 12559 var h codecSelfer100 12560 z, r := codec1978.GenHelperDecoder(d) 12561 _, _, _ = h, z, r 12562 var yyhl3 bool = l >= 0 12563 for yyj3 := 0; ; yyj3++ { 12564 if yyhl3 { 12565 if yyj3 >= l { 12566 break 12567 } 12568 } else { 12569 if r.CheckBreak() { 12570 break 12571 } 12572 } 12573 r.ReadMapElemKey() 12574 yys3 := z.StringView(r.DecodeStringAsBytes()) 12575 r.ReadMapElemValue() 12576 switch yys3 { 12577 case "SupportsReadOnlyAttach": 12578 if r.TryDecodeAsNil() { 12579 x.SupportsReadOnlyAttach = false 12580 } else { 12581 x.SupportsReadOnlyAttach = (bool)(r.DecodeBool()) 12582 } 12583 case "SupportsAttachDetach": 12584 if r.TryDecodeAsNil() { 12585 x.SupportsAttachDetach = false 12586 } else { 12587 x.SupportsAttachDetach = (bool)(r.DecodeBool()) 12588 } 12589 case "SupportsListVolumes": 12590 if r.TryDecodeAsNil() { 12591 x.SupportsListVolumes = false 12592 } else { 12593 x.SupportsListVolumes = (bool)(r.DecodeBool()) 12594 } 12595 case "SupportsListVolumesAttachedNodes": 12596 if r.TryDecodeAsNil() { 12597 x.SupportsListVolumesAttachedNodes = false 12598 } else { 12599 x.SupportsListVolumesAttachedNodes = (bool)(r.DecodeBool()) 12600 } 12601 default: 12602 z.DecStructFieldNotFound(-1, yys3) 12603 } // end switch yys3 12604 } // end for yyj3 12605 r.ReadMapEnd() 12606 } 12607 12608 func (x *CSIControllerInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 12609 var h codecSelfer100 12610 z, r := codec1978.GenHelperDecoder(d) 12611 _, _, _ = h, z, r 12612 var yyj8 int 12613 var yyb8 bool 12614 var yyhl8 bool = l >= 0 12615 yyj8++ 12616 if yyhl8 { 12617 yyb8 = yyj8 > l 12618 } else { 12619 yyb8 = r.CheckBreak() 12620 } 12621 if yyb8 { 12622 r.ReadArrayEnd() 12623 return 12624 } 12625 r.ReadArrayElem() 12626 if r.TryDecodeAsNil() { 12627 x.SupportsReadOnlyAttach = false 12628 } else { 12629 x.SupportsReadOnlyAttach = (bool)(r.DecodeBool()) 12630 } 12631 yyj8++ 12632 if yyhl8 { 12633 yyb8 = yyj8 > l 12634 } else { 12635 yyb8 = r.CheckBreak() 12636 } 12637 if yyb8 { 12638 r.ReadArrayEnd() 12639 return 12640 } 12641 r.ReadArrayElem() 12642 if r.TryDecodeAsNil() { 12643 x.SupportsAttachDetach = false 12644 } else { 12645 x.SupportsAttachDetach = (bool)(r.DecodeBool()) 12646 } 12647 yyj8++ 12648 if yyhl8 { 12649 yyb8 = yyj8 > l 12650 } else { 12651 yyb8 = r.CheckBreak() 12652 } 12653 if yyb8 { 12654 r.ReadArrayEnd() 12655 return 12656 } 12657 r.ReadArrayElem() 12658 if r.TryDecodeAsNil() { 12659 x.SupportsListVolumes = false 12660 } else { 12661 x.SupportsListVolumes = (bool)(r.DecodeBool()) 12662 } 12663 yyj8++ 12664 if yyhl8 { 12665 yyb8 = yyj8 > l 12666 } else { 12667 yyb8 = r.CheckBreak() 12668 } 12669 if yyb8 { 12670 r.ReadArrayEnd() 12671 return 12672 } 12673 r.ReadArrayElem() 12674 if r.TryDecodeAsNil() { 12675 x.SupportsListVolumesAttachedNodes = false 12676 } else { 12677 x.SupportsListVolumesAttachedNodes = (bool)(r.DecodeBool()) 12678 } 12679 for { 12680 yyj8++ 12681 if yyhl8 { 12682 yyb8 = yyj8 > l 12683 } else { 12684 yyb8 = r.CheckBreak() 12685 } 12686 if yyb8 { 12687 break 12688 } 12689 r.ReadArrayElem() 12690 z.DecStructFieldNotFound(yyj8-1, "") 12691 } 12692 r.ReadArrayEnd() 12693 } 12694 12695 func (x *CSIInfo) CodecEncodeSelf(e *codec1978.Encoder) { 12696 var h codecSelfer100 12697 z, r := codec1978.GenHelperEncoder(e) 12698 _, _, _ = h, z, r 12699 if x == nil { 12700 r.EncodeNil() 12701 } else { 12702 if false { 12703 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 12704 z.EncExtension(x, yyxt1) 12705 } else { 12706 yysep2 := !z.EncBinary() 12707 yy2arr2 := z.EncBasicHandle().StructToArray 12708 _, _ = yysep2, yy2arr2 12709 const yyr2 bool = false // struct tag has 'toArray' 12710 var yyq2 = [11]bool{ // should field at this index be written? 12711 true, // PluginID 12712 true, // AllocID 12713 true, // Healthy 12714 true, // HealthDescription 12715 true, // UpdateTime 12716 true, // Provider 12717 true, // ProviderVersion 12718 true, // RequiresControllerPlugin 12719 true, // RequiresTopologies 12720 x.ControllerInfo != nil, // ControllerInfo 12721 x.NodeInfo != nil, // NodeInfo 12722 } 12723 _ = yyq2 12724 if yyr2 || yy2arr2 { 12725 r.WriteArrayStart(11) 12726 } else { 12727 var yynn2 int 12728 for _, b := range yyq2 { 12729 if b { 12730 yynn2++ 12731 } 12732 } 12733 r.WriteMapStart(yynn2) 12734 yynn2 = 0 12735 } 12736 if yyr2 || yy2arr2 { 12737 r.WriteArrayElem() 12738 if false { 12739 } else { 12740 if z.EncBasicHandle().StringToRaw { 12741 r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) 12742 } else { 12743 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) 12744 } 12745 } 12746 } else { 12747 r.WriteMapElemKey() 12748 if z.IsJSONHandle() { 12749 z.WriteStr("\"PluginID\"") 12750 } else { 12751 r.EncodeStringEnc(codecSelferCcUTF8100, `PluginID`) 12752 } 12753 r.WriteMapElemValue() 12754 if false { 12755 } else { 12756 if z.EncBasicHandle().StringToRaw { 12757 r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) 12758 } else { 12759 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) 12760 } 12761 } 12762 } 12763 if yyr2 || yy2arr2 { 12764 r.WriteArrayElem() 12765 if false { 12766 } else { 12767 if z.EncBasicHandle().StringToRaw { 12768 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 12769 } else { 12770 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 12771 } 12772 } 12773 } else { 12774 r.WriteMapElemKey() 12775 if z.IsJSONHandle() { 12776 z.WriteStr("\"AllocID\"") 12777 } else { 12778 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) 12779 } 12780 r.WriteMapElemValue() 12781 if false { 12782 } else { 12783 if z.EncBasicHandle().StringToRaw { 12784 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 12785 } else { 12786 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 12787 } 12788 } 12789 } 12790 if yyr2 || yy2arr2 { 12791 r.WriteArrayElem() 12792 if false { 12793 } else { 12794 r.EncodeBool(bool(x.Healthy)) 12795 } 12796 } else { 12797 r.WriteMapElemKey() 12798 if z.IsJSONHandle() { 12799 z.WriteStr("\"Healthy\"") 12800 } else { 12801 r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) 12802 } 12803 r.WriteMapElemValue() 12804 if false { 12805 } else { 12806 r.EncodeBool(bool(x.Healthy)) 12807 } 12808 } 12809 if yyr2 || yy2arr2 { 12810 r.WriteArrayElem() 12811 if false { 12812 } else { 12813 if z.EncBasicHandle().StringToRaw { 12814 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) 12815 } else { 12816 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) 12817 } 12818 } 12819 } else { 12820 r.WriteMapElemKey() 12821 if z.IsJSONHandle() { 12822 z.WriteStr("\"HealthDescription\"") 12823 } else { 12824 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthDescription`) 12825 } 12826 r.WriteMapElemValue() 12827 if false { 12828 } else { 12829 if z.EncBasicHandle().StringToRaw { 12830 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) 12831 } else { 12832 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) 12833 } 12834 } 12835 } 12836 if yyr2 || yy2arr2 { 12837 r.WriteArrayElem() 12838 if false { 12839 } else if !z.EncBasicHandle().TimeNotBuiltin { 12840 r.EncodeTime(x.UpdateTime) 12841 } else if yyxt16 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt16 != nil { 12842 z.EncExtension(x.UpdateTime, yyxt16) 12843 } else if z.EncBinary() { 12844 z.EncBinaryMarshal(x.UpdateTime) 12845 } else if !z.EncBinary() && z.IsJSONHandle() { 12846 z.EncJSONMarshal(x.UpdateTime) 12847 } else { 12848 z.EncFallback(x.UpdateTime) 12849 } 12850 } else { 12851 r.WriteMapElemKey() 12852 if z.IsJSONHandle() { 12853 z.WriteStr("\"UpdateTime\"") 12854 } else { 12855 r.EncodeStringEnc(codecSelferCcUTF8100, `UpdateTime`) 12856 } 12857 r.WriteMapElemValue() 12858 if false { 12859 } else if !z.EncBasicHandle().TimeNotBuiltin { 12860 r.EncodeTime(x.UpdateTime) 12861 } else if yyxt17 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt17 != nil { 12862 z.EncExtension(x.UpdateTime, yyxt17) 12863 } else if z.EncBinary() { 12864 z.EncBinaryMarshal(x.UpdateTime) 12865 } else if !z.EncBinary() && z.IsJSONHandle() { 12866 z.EncJSONMarshal(x.UpdateTime) 12867 } else { 12868 z.EncFallback(x.UpdateTime) 12869 } 12870 } 12871 if yyr2 || yy2arr2 { 12872 r.WriteArrayElem() 12873 if false { 12874 } else { 12875 if z.EncBasicHandle().StringToRaw { 12876 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 12877 } else { 12878 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 12879 } 12880 } 12881 } else { 12882 r.WriteMapElemKey() 12883 if z.IsJSONHandle() { 12884 z.WriteStr("\"Provider\"") 12885 } else { 12886 r.EncodeStringEnc(codecSelferCcUTF8100, `Provider`) 12887 } 12888 r.WriteMapElemValue() 12889 if false { 12890 } else { 12891 if z.EncBasicHandle().StringToRaw { 12892 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 12893 } else { 12894 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 12895 } 12896 } 12897 } 12898 if yyr2 || yy2arr2 { 12899 r.WriteArrayElem() 12900 if false { 12901 } else { 12902 if z.EncBasicHandle().StringToRaw { 12903 r.EncodeStringBytesRaw(z.BytesView(string(x.ProviderVersion))) 12904 } else { 12905 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ProviderVersion)) 12906 } 12907 } 12908 } else { 12909 r.WriteMapElemKey() 12910 if z.IsJSONHandle() { 12911 z.WriteStr("\"ProviderVersion\"") 12912 } else { 12913 r.EncodeStringEnc(codecSelferCcUTF8100, `ProviderVersion`) 12914 } 12915 r.WriteMapElemValue() 12916 if false { 12917 } else { 12918 if z.EncBasicHandle().StringToRaw { 12919 r.EncodeStringBytesRaw(z.BytesView(string(x.ProviderVersion))) 12920 } else { 12921 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ProviderVersion)) 12922 } 12923 } 12924 } 12925 if yyr2 || yy2arr2 { 12926 r.WriteArrayElem() 12927 if false { 12928 } else { 12929 r.EncodeBool(bool(x.RequiresControllerPlugin)) 12930 } 12931 } else { 12932 r.WriteMapElemKey() 12933 if z.IsJSONHandle() { 12934 z.WriteStr("\"RequiresControllerPlugin\"") 12935 } else { 12936 r.EncodeStringEnc(codecSelferCcUTF8100, `RequiresControllerPlugin`) 12937 } 12938 r.WriteMapElemValue() 12939 if false { 12940 } else { 12941 r.EncodeBool(bool(x.RequiresControllerPlugin)) 12942 } 12943 } 12944 if yyr2 || yy2arr2 { 12945 r.WriteArrayElem() 12946 if false { 12947 } else { 12948 r.EncodeBool(bool(x.RequiresTopologies)) 12949 } 12950 } else { 12951 r.WriteMapElemKey() 12952 if z.IsJSONHandle() { 12953 z.WriteStr("\"RequiresTopologies\"") 12954 } else { 12955 r.EncodeStringEnc(codecSelferCcUTF8100, `RequiresTopologies`) 12956 } 12957 r.WriteMapElemValue() 12958 if false { 12959 } else { 12960 r.EncodeBool(bool(x.RequiresTopologies)) 12961 } 12962 } 12963 var yyn30 bool 12964 if x.ControllerInfo == nil { 12965 yyn30 = true 12966 goto LABEL30 12967 } 12968 LABEL30: 12969 if yyr2 || yy2arr2 { 12970 if yyn30 { 12971 r.WriteArrayElem() 12972 r.EncodeNil() 12973 } else { 12974 r.WriteArrayElem() 12975 if yyq2[9] { 12976 if x.ControllerInfo == nil { 12977 r.EncodeNil() 12978 } else { 12979 x.ControllerInfo.CodecEncodeSelf(e) 12980 } 12981 } else { 12982 r.EncodeNil() 12983 } 12984 } 12985 } else { 12986 if yyq2[9] { 12987 r.WriteMapElemKey() 12988 if z.IsJSONHandle() { 12989 z.WriteStr("\"ControllerInfo\"") 12990 } else { 12991 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllerInfo`) 12992 } 12993 r.WriteMapElemValue() 12994 if yyn30 { 12995 r.EncodeNil() 12996 } else { 12997 if x.ControllerInfo == nil { 12998 r.EncodeNil() 12999 } else { 13000 x.ControllerInfo.CodecEncodeSelf(e) 13001 } 13002 } 13003 } 13004 } 13005 var yyn33 bool 13006 if x.NodeInfo == nil { 13007 yyn33 = true 13008 goto LABEL33 13009 } 13010 LABEL33: 13011 if yyr2 || yy2arr2 { 13012 if yyn33 { 13013 r.WriteArrayElem() 13014 r.EncodeNil() 13015 } else { 13016 r.WriteArrayElem() 13017 if yyq2[10] { 13018 if x.NodeInfo == nil { 13019 r.EncodeNil() 13020 } else { 13021 x.NodeInfo.CodecEncodeSelf(e) 13022 } 13023 } else { 13024 r.EncodeNil() 13025 } 13026 } 13027 } else { 13028 if yyq2[10] { 13029 r.WriteMapElemKey() 13030 if z.IsJSONHandle() { 13031 z.WriteStr("\"NodeInfo\"") 13032 } else { 13033 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeInfo`) 13034 } 13035 r.WriteMapElemValue() 13036 if yyn33 { 13037 r.EncodeNil() 13038 } else { 13039 if x.NodeInfo == nil { 13040 r.EncodeNil() 13041 } else { 13042 x.NodeInfo.CodecEncodeSelf(e) 13043 } 13044 } 13045 } 13046 } 13047 if yyr2 || yy2arr2 { 13048 r.WriteArrayEnd() 13049 } else { 13050 r.WriteMapEnd() 13051 } 13052 } 13053 } 13054 } 13055 13056 func (x *CSIInfo) CodecDecodeSelf(d *codec1978.Decoder) { 13057 var h codecSelfer100 13058 z, r := codec1978.GenHelperDecoder(d) 13059 _, _, _ = h, z, r 13060 if false { 13061 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 13062 z.DecExtension(x, yyxt1) 13063 } else { 13064 yyct2 := r.ContainerType() 13065 if yyct2 == codecSelferValueTypeMap100 { 13066 yyl2 := r.ReadMapStart() 13067 if yyl2 == 0 { 13068 r.ReadMapEnd() 13069 } else { 13070 x.codecDecodeSelfFromMap(yyl2, d) 13071 } 13072 } else if yyct2 == codecSelferValueTypeArray100 { 13073 yyl2 := r.ReadArrayStart() 13074 if yyl2 == 0 { 13075 r.ReadArrayEnd() 13076 } else { 13077 x.codecDecodeSelfFromArray(yyl2, d) 13078 } 13079 } else { 13080 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 13081 } 13082 } 13083 } 13084 13085 func (x *CSIInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 13086 var h codecSelfer100 13087 z, r := codec1978.GenHelperDecoder(d) 13088 _, _, _ = h, z, r 13089 var yyhl3 bool = l >= 0 13090 for yyj3 := 0; ; yyj3++ { 13091 if yyhl3 { 13092 if yyj3 >= l { 13093 break 13094 } 13095 } else { 13096 if r.CheckBreak() { 13097 break 13098 } 13099 } 13100 r.ReadMapElemKey() 13101 yys3 := z.StringView(r.DecodeStringAsBytes()) 13102 r.ReadMapElemValue() 13103 switch yys3 { 13104 case "PluginID": 13105 if r.TryDecodeAsNil() { 13106 x.PluginID = "" 13107 } else { 13108 x.PluginID = (string)(r.DecodeString()) 13109 } 13110 case "AllocID": 13111 if r.TryDecodeAsNil() { 13112 x.AllocID = "" 13113 } else { 13114 x.AllocID = (string)(r.DecodeString()) 13115 } 13116 case "Healthy": 13117 if r.TryDecodeAsNil() { 13118 x.Healthy = false 13119 } else { 13120 x.Healthy = (bool)(r.DecodeBool()) 13121 } 13122 case "HealthDescription": 13123 if r.TryDecodeAsNil() { 13124 x.HealthDescription = "" 13125 } else { 13126 x.HealthDescription = (string)(r.DecodeString()) 13127 } 13128 case "UpdateTime": 13129 if r.TryDecodeAsNil() { 13130 x.UpdateTime = time.Time{} 13131 } else { 13132 if false { 13133 } else if !z.DecBasicHandle().TimeNotBuiltin { 13134 x.UpdateTime = r.DecodeTime() 13135 } else if yyxt9 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt9 != nil { 13136 z.DecExtension(x.UpdateTime, yyxt9) 13137 } else if z.DecBinary() { 13138 z.DecBinaryUnmarshal(&x.UpdateTime) 13139 } else if !z.DecBinary() && z.IsJSONHandle() { 13140 z.DecJSONUnmarshal(&x.UpdateTime) 13141 } else { 13142 z.DecFallback(&x.UpdateTime, false) 13143 } 13144 } 13145 case "Provider": 13146 if r.TryDecodeAsNil() { 13147 x.Provider = "" 13148 } else { 13149 x.Provider = (string)(r.DecodeString()) 13150 } 13151 case "ProviderVersion": 13152 if r.TryDecodeAsNil() { 13153 x.ProviderVersion = "" 13154 } else { 13155 x.ProviderVersion = (string)(r.DecodeString()) 13156 } 13157 case "RequiresControllerPlugin": 13158 if r.TryDecodeAsNil() { 13159 x.RequiresControllerPlugin = false 13160 } else { 13161 x.RequiresControllerPlugin = (bool)(r.DecodeBool()) 13162 } 13163 case "RequiresTopologies": 13164 if r.TryDecodeAsNil() { 13165 x.RequiresTopologies = false 13166 } else { 13167 x.RequiresTopologies = (bool)(r.DecodeBool()) 13168 } 13169 case "ControllerInfo": 13170 if r.TryDecodeAsNil() { 13171 if true && x.ControllerInfo != nil { 13172 x.ControllerInfo = nil 13173 } 13174 } else { 13175 if x.ControllerInfo == nil { 13176 x.ControllerInfo = new(CSIControllerInfo) 13177 } 13178 13179 x.ControllerInfo.CodecDecodeSelf(d) 13180 } 13181 case "NodeInfo": 13182 if r.TryDecodeAsNil() { 13183 if true && x.NodeInfo != nil { 13184 x.NodeInfo = nil 13185 } 13186 } else { 13187 if x.NodeInfo == nil { 13188 x.NodeInfo = new(CSINodeInfo) 13189 } 13190 13191 x.NodeInfo.CodecDecodeSelf(d) 13192 } 13193 default: 13194 z.DecStructFieldNotFound(-1, yys3) 13195 } // end switch yys3 13196 } // end for yyj3 13197 r.ReadMapEnd() 13198 } 13199 13200 func (x *CSIInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 13201 var h codecSelfer100 13202 z, r := codec1978.GenHelperDecoder(d) 13203 _, _, _ = h, z, r 13204 var yyj16 int 13205 var yyb16 bool 13206 var yyhl16 bool = l >= 0 13207 yyj16++ 13208 if yyhl16 { 13209 yyb16 = yyj16 > l 13210 } else { 13211 yyb16 = r.CheckBreak() 13212 } 13213 if yyb16 { 13214 r.ReadArrayEnd() 13215 return 13216 } 13217 r.ReadArrayElem() 13218 if r.TryDecodeAsNil() { 13219 x.PluginID = "" 13220 } else { 13221 x.PluginID = (string)(r.DecodeString()) 13222 } 13223 yyj16++ 13224 if yyhl16 { 13225 yyb16 = yyj16 > l 13226 } else { 13227 yyb16 = r.CheckBreak() 13228 } 13229 if yyb16 { 13230 r.ReadArrayEnd() 13231 return 13232 } 13233 r.ReadArrayElem() 13234 if r.TryDecodeAsNil() { 13235 x.AllocID = "" 13236 } else { 13237 x.AllocID = (string)(r.DecodeString()) 13238 } 13239 yyj16++ 13240 if yyhl16 { 13241 yyb16 = yyj16 > l 13242 } else { 13243 yyb16 = r.CheckBreak() 13244 } 13245 if yyb16 { 13246 r.ReadArrayEnd() 13247 return 13248 } 13249 r.ReadArrayElem() 13250 if r.TryDecodeAsNil() { 13251 x.Healthy = false 13252 } else { 13253 x.Healthy = (bool)(r.DecodeBool()) 13254 } 13255 yyj16++ 13256 if yyhl16 { 13257 yyb16 = yyj16 > l 13258 } else { 13259 yyb16 = r.CheckBreak() 13260 } 13261 if yyb16 { 13262 r.ReadArrayEnd() 13263 return 13264 } 13265 r.ReadArrayElem() 13266 if r.TryDecodeAsNil() { 13267 x.HealthDescription = "" 13268 } else { 13269 x.HealthDescription = (string)(r.DecodeString()) 13270 } 13271 yyj16++ 13272 if yyhl16 { 13273 yyb16 = yyj16 > l 13274 } else { 13275 yyb16 = r.CheckBreak() 13276 } 13277 if yyb16 { 13278 r.ReadArrayEnd() 13279 return 13280 } 13281 r.ReadArrayElem() 13282 if r.TryDecodeAsNil() { 13283 x.UpdateTime = time.Time{} 13284 } else { 13285 if false { 13286 } else if !z.DecBasicHandle().TimeNotBuiltin { 13287 x.UpdateTime = r.DecodeTime() 13288 } else if yyxt22 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt22 != nil { 13289 z.DecExtension(x.UpdateTime, yyxt22) 13290 } else if z.DecBinary() { 13291 z.DecBinaryUnmarshal(&x.UpdateTime) 13292 } else if !z.DecBinary() && z.IsJSONHandle() { 13293 z.DecJSONUnmarshal(&x.UpdateTime) 13294 } else { 13295 z.DecFallback(&x.UpdateTime, false) 13296 } 13297 } 13298 yyj16++ 13299 if yyhl16 { 13300 yyb16 = yyj16 > l 13301 } else { 13302 yyb16 = r.CheckBreak() 13303 } 13304 if yyb16 { 13305 r.ReadArrayEnd() 13306 return 13307 } 13308 r.ReadArrayElem() 13309 if r.TryDecodeAsNil() { 13310 x.Provider = "" 13311 } else { 13312 x.Provider = (string)(r.DecodeString()) 13313 } 13314 yyj16++ 13315 if yyhl16 { 13316 yyb16 = yyj16 > l 13317 } else { 13318 yyb16 = r.CheckBreak() 13319 } 13320 if yyb16 { 13321 r.ReadArrayEnd() 13322 return 13323 } 13324 r.ReadArrayElem() 13325 if r.TryDecodeAsNil() { 13326 x.ProviderVersion = "" 13327 } else { 13328 x.ProviderVersion = (string)(r.DecodeString()) 13329 } 13330 yyj16++ 13331 if yyhl16 { 13332 yyb16 = yyj16 > l 13333 } else { 13334 yyb16 = r.CheckBreak() 13335 } 13336 if yyb16 { 13337 r.ReadArrayEnd() 13338 return 13339 } 13340 r.ReadArrayElem() 13341 if r.TryDecodeAsNil() { 13342 x.RequiresControllerPlugin = false 13343 } else { 13344 x.RequiresControllerPlugin = (bool)(r.DecodeBool()) 13345 } 13346 yyj16++ 13347 if yyhl16 { 13348 yyb16 = yyj16 > l 13349 } else { 13350 yyb16 = r.CheckBreak() 13351 } 13352 if yyb16 { 13353 r.ReadArrayEnd() 13354 return 13355 } 13356 r.ReadArrayElem() 13357 if r.TryDecodeAsNil() { 13358 x.RequiresTopologies = false 13359 } else { 13360 x.RequiresTopologies = (bool)(r.DecodeBool()) 13361 } 13362 yyj16++ 13363 if yyhl16 { 13364 yyb16 = yyj16 > l 13365 } else { 13366 yyb16 = r.CheckBreak() 13367 } 13368 if yyb16 { 13369 r.ReadArrayEnd() 13370 return 13371 } 13372 r.ReadArrayElem() 13373 if r.TryDecodeAsNil() { 13374 if true && x.ControllerInfo != nil { 13375 x.ControllerInfo = nil 13376 } 13377 } else { 13378 if x.ControllerInfo == nil { 13379 x.ControllerInfo = new(CSIControllerInfo) 13380 } 13381 13382 x.ControllerInfo.CodecDecodeSelf(d) 13383 } 13384 yyj16++ 13385 if yyhl16 { 13386 yyb16 = yyj16 > l 13387 } else { 13388 yyb16 = r.CheckBreak() 13389 } 13390 if yyb16 { 13391 r.ReadArrayEnd() 13392 return 13393 } 13394 r.ReadArrayElem() 13395 if r.TryDecodeAsNil() { 13396 if true && x.NodeInfo != nil { 13397 x.NodeInfo = nil 13398 } 13399 } else { 13400 if x.NodeInfo == nil { 13401 x.NodeInfo = new(CSINodeInfo) 13402 } 13403 13404 x.NodeInfo.CodecDecodeSelf(d) 13405 } 13406 for { 13407 yyj16++ 13408 if yyhl16 { 13409 yyb16 = yyj16 > l 13410 } else { 13411 yyb16 = r.CheckBreak() 13412 } 13413 if yyb16 { 13414 break 13415 } 13416 r.ReadArrayElem() 13417 z.DecStructFieldNotFound(yyj16-1, "") 13418 } 13419 r.ReadArrayEnd() 13420 } 13421 13422 func (x *DriverInfo) CodecEncodeSelf(e *codec1978.Encoder) { 13423 var h codecSelfer100 13424 z, r := codec1978.GenHelperEncoder(e) 13425 _, _, _ = h, z, r 13426 if x == nil { 13427 r.EncodeNil() 13428 } else { 13429 if false { 13430 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 13431 z.EncExtension(x, yyxt1) 13432 } else { 13433 yysep2 := !z.EncBinary() 13434 yy2arr2 := z.EncBasicHandle().StructToArray 13435 _, _ = yysep2, yy2arr2 13436 const yyr2 bool = false // struct tag has 'toArray' 13437 if yyr2 || yy2arr2 { 13438 r.WriteArrayStart(5) 13439 } else { 13440 r.WriteMapStart(5) 13441 } 13442 if yyr2 || yy2arr2 { 13443 r.WriteArrayElem() 13444 if x.Attributes == nil { 13445 r.EncodeNil() 13446 } else { 13447 if false { 13448 } else { 13449 z.F.EncMapStringStringV(x.Attributes, e) 13450 } 13451 } 13452 } else { 13453 r.WriteMapElemKey() 13454 if z.IsJSONHandle() { 13455 z.WriteStr("\"Attributes\"") 13456 } else { 13457 r.EncodeStringEnc(codecSelferCcUTF8100, `Attributes`) 13458 } 13459 r.WriteMapElemValue() 13460 if x.Attributes == nil { 13461 r.EncodeNil() 13462 } else { 13463 if false { 13464 } else { 13465 z.F.EncMapStringStringV(x.Attributes, e) 13466 } 13467 } 13468 } 13469 if yyr2 || yy2arr2 { 13470 r.WriteArrayElem() 13471 if false { 13472 } else { 13473 r.EncodeBool(bool(x.Detected)) 13474 } 13475 } else { 13476 r.WriteMapElemKey() 13477 if z.IsJSONHandle() { 13478 z.WriteStr("\"Detected\"") 13479 } else { 13480 r.EncodeStringEnc(codecSelferCcUTF8100, `Detected`) 13481 } 13482 r.WriteMapElemValue() 13483 if false { 13484 } else { 13485 r.EncodeBool(bool(x.Detected)) 13486 } 13487 } 13488 if yyr2 || yy2arr2 { 13489 r.WriteArrayElem() 13490 if false { 13491 } else { 13492 r.EncodeBool(bool(x.Healthy)) 13493 } 13494 } else { 13495 r.WriteMapElemKey() 13496 if z.IsJSONHandle() { 13497 z.WriteStr("\"Healthy\"") 13498 } else { 13499 r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) 13500 } 13501 r.WriteMapElemValue() 13502 if false { 13503 } else { 13504 r.EncodeBool(bool(x.Healthy)) 13505 } 13506 } 13507 if yyr2 || yy2arr2 { 13508 r.WriteArrayElem() 13509 if false { 13510 } else { 13511 if z.EncBasicHandle().StringToRaw { 13512 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) 13513 } else { 13514 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) 13515 } 13516 } 13517 } else { 13518 r.WriteMapElemKey() 13519 if z.IsJSONHandle() { 13520 z.WriteStr("\"HealthDescription\"") 13521 } else { 13522 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthDescription`) 13523 } 13524 r.WriteMapElemValue() 13525 if false { 13526 } else { 13527 if z.EncBasicHandle().StringToRaw { 13528 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) 13529 } else { 13530 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) 13531 } 13532 } 13533 } 13534 if yyr2 || yy2arr2 { 13535 r.WriteArrayElem() 13536 if false { 13537 } else if !z.EncBasicHandle().TimeNotBuiltin { 13538 r.EncodeTime(x.UpdateTime) 13539 } else if yyxt16 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt16 != nil { 13540 z.EncExtension(x.UpdateTime, yyxt16) 13541 } else if z.EncBinary() { 13542 z.EncBinaryMarshal(x.UpdateTime) 13543 } else if !z.EncBinary() && z.IsJSONHandle() { 13544 z.EncJSONMarshal(x.UpdateTime) 13545 } else { 13546 z.EncFallback(x.UpdateTime) 13547 } 13548 } else { 13549 r.WriteMapElemKey() 13550 if z.IsJSONHandle() { 13551 z.WriteStr("\"UpdateTime\"") 13552 } else { 13553 r.EncodeStringEnc(codecSelferCcUTF8100, `UpdateTime`) 13554 } 13555 r.WriteMapElemValue() 13556 if false { 13557 } else if !z.EncBasicHandle().TimeNotBuiltin { 13558 r.EncodeTime(x.UpdateTime) 13559 } else if yyxt17 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt17 != nil { 13560 z.EncExtension(x.UpdateTime, yyxt17) 13561 } else if z.EncBinary() { 13562 z.EncBinaryMarshal(x.UpdateTime) 13563 } else if !z.EncBinary() && z.IsJSONHandle() { 13564 z.EncJSONMarshal(x.UpdateTime) 13565 } else { 13566 z.EncFallback(x.UpdateTime) 13567 } 13568 } 13569 if yyr2 || yy2arr2 { 13570 r.WriteArrayEnd() 13571 } else { 13572 r.WriteMapEnd() 13573 } 13574 } 13575 } 13576 } 13577 13578 func (x *DriverInfo) CodecDecodeSelf(d *codec1978.Decoder) { 13579 var h codecSelfer100 13580 z, r := codec1978.GenHelperDecoder(d) 13581 _, _, _ = h, z, r 13582 if false { 13583 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 13584 z.DecExtension(x, yyxt1) 13585 } else { 13586 yyct2 := r.ContainerType() 13587 if yyct2 == codecSelferValueTypeMap100 { 13588 yyl2 := r.ReadMapStart() 13589 if yyl2 == 0 { 13590 r.ReadMapEnd() 13591 } else { 13592 x.codecDecodeSelfFromMap(yyl2, d) 13593 } 13594 } else if yyct2 == codecSelferValueTypeArray100 { 13595 yyl2 := r.ReadArrayStart() 13596 if yyl2 == 0 { 13597 r.ReadArrayEnd() 13598 } else { 13599 x.codecDecodeSelfFromArray(yyl2, d) 13600 } 13601 } else { 13602 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 13603 } 13604 } 13605 } 13606 13607 func (x *DriverInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 13608 var h codecSelfer100 13609 z, r := codec1978.GenHelperDecoder(d) 13610 _, _, _ = h, z, r 13611 var yyhl3 bool = l >= 0 13612 for yyj3 := 0; ; yyj3++ { 13613 if yyhl3 { 13614 if yyj3 >= l { 13615 break 13616 } 13617 } else { 13618 if r.CheckBreak() { 13619 break 13620 } 13621 } 13622 r.ReadMapElemKey() 13623 yys3 := z.StringView(r.DecodeStringAsBytes()) 13624 r.ReadMapElemValue() 13625 switch yys3 { 13626 case "Attributes": 13627 if r.TryDecodeAsNil() { 13628 x.Attributes = nil 13629 } else { 13630 if false { 13631 } else { 13632 z.F.DecMapStringStringX(&x.Attributes, d) 13633 } 13634 } 13635 case "Detected": 13636 if r.TryDecodeAsNil() { 13637 x.Detected = false 13638 } else { 13639 x.Detected = (bool)(r.DecodeBool()) 13640 } 13641 case "Healthy": 13642 if r.TryDecodeAsNil() { 13643 x.Healthy = false 13644 } else { 13645 x.Healthy = (bool)(r.DecodeBool()) 13646 } 13647 case "HealthDescription": 13648 if r.TryDecodeAsNil() { 13649 x.HealthDescription = "" 13650 } else { 13651 x.HealthDescription = (string)(r.DecodeString()) 13652 } 13653 case "UpdateTime": 13654 if r.TryDecodeAsNil() { 13655 x.UpdateTime = time.Time{} 13656 } else { 13657 if false { 13658 } else if !z.DecBasicHandle().TimeNotBuiltin { 13659 x.UpdateTime = r.DecodeTime() 13660 } else if yyxt10 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt10 != nil { 13661 z.DecExtension(x.UpdateTime, yyxt10) 13662 } else if z.DecBinary() { 13663 z.DecBinaryUnmarshal(&x.UpdateTime) 13664 } else if !z.DecBinary() && z.IsJSONHandle() { 13665 z.DecJSONUnmarshal(&x.UpdateTime) 13666 } else { 13667 z.DecFallback(&x.UpdateTime, false) 13668 } 13669 } 13670 default: 13671 z.DecStructFieldNotFound(-1, yys3) 13672 } // end switch yys3 13673 } // end for yyj3 13674 r.ReadMapEnd() 13675 } 13676 13677 func (x *DriverInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 13678 var h codecSelfer100 13679 z, r := codec1978.GenHelperDecoder(d) 13680 _, _, _ = h, z, r 13681 var yyj11 int 13682 var yyb11 bool 13683 var yyhl11 bool = l >= 0 13684 yyj11++ 13685 if yyhl11 { 13686 yyb11 = yyj11 > l 13687 } else { 13688 yyb11 = r.CheckBreak() 13689 } 13690 if yyb11 { 13691 r.ReadArrayEnd() 13692 return 13693 } 13694 r.ReadArrayElem() 13695 if r.TryDecodeAsNil() { 13696 x.Attributes = nil 13697 } else { 13698 if false { 13699 } else { 13700 z.F.DecMapStringStringX(&x.Attributes, d) 13701 } 13702 } 13703 yyj11++ 13704 if yyhl11 { 13705 yyb11 = yyj11 > l 13706 } else { 13707 yyb11 = r.CheckBreak() 13708 } 13709 if yyb11 { 13710 r.ReadArrayEnd() 13711 return 13712 } 13713 r.ReadArrayElem() 13714 if r.TryDecodeAsNil() { 13715 x.Detected = false 13716 } else { 13717 x.Detected = (bool)(r.DecodeBool()) 13718 } 13719 yyj11++ 13720 if yyhl11 { 13721 yyb11 = yyj11 > l 13722 } else { 13723 yyb11 = r.CheckBreak() 13724 } 13725 if yyb11 { 13726 r.ReadArrayEnd() 13727 return 13728 } 13729 r.ReadArrayElem() 13730 if r.TryDecodeAsNil() { 13731 x.Healthy = false 13732 } else { 13733 x.Healthy = (bool)(r.DecodeBool()) 13734 } 13735 yyj11++ 13736 if yyhl11 { 13737 yyb11 = yyj11 > l 13738 } else { 13739 yyb11 = r.CheckBreak() 13740 } 13741 if yyb11 { 13742 r.ReadArrayEnd() 13743 return 13744 } 13745 r.ReadArrayElem() 13746 if r.TryDecodeAsNil() { 13747 x.HealthDescription = "" 13748 } else { 13749 x.HealthDescription = (string)(r.DecodeString()) 13750 } 13751 yyj11++ 13752 if yyhl11 { 13753 yyb11 = yyj11 > l 13754 } else { 13755 yyb11 = r.CheckBreak() 13756 } 13757 if yyb11 { 13758 r.ReadArrayEnd() 13759 return 13760 } 13761 r.ReadArrayElem() 13762 if r.TryDecodeAsNil() { 13763 x.UpdateTime = time.Time{} 13764 } else { 13765 if false { 13766 } else if !z.DecBasicHandle().TimeNotBuiltin { 13767 x.UpdateTime = r.DecodeTime() 13768 } else if yyxt18 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt18 != nil { 13769 z.DecExtension(x.UpdateTime, yyxt18) 13770 } else if z.DecBinary() { 13771 z.DecBinaryUnmarshal(&x.UpdateTime) 13772 } else if !z.DecBinary() && z.IsJSONHandle() { 13773 z.DecJSONUnmarshal(&x.UpdateTime) 13774 } else { 13775 z.DecFallback(&x.UpdateTime, false) 13776 } 13777 } 13778 for { 13779 yyj11++ 13780 if yyhl11 { 13781 yyb11 = yyj11 > l 13782 } else { 13783 yyb11 = r.CheckBreak() 13784 } 13785 if yyb11 { 13786 break 13787 } 13788 r.ReadArrayElem() 13789 z.DecStructFieldNotFound(yyj11-1, "") 13790 } 13791 r.ReadArrayEnd() 13792 } 13793 13794 func (x *RaftServer) CodecEncodeSelf(e *codec1978.Encoder) { 13795 var h codecSelfer100 13796 z, r := codec1978.GenHelperEncoder(e) 13797 _, _, _ = h, z, r 13798 if x == nil { 13799 r.EncodeNil() 13800 } else { 13801 if false { 13802 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 13803 z.EncExtension(x, yyxt1) 13804 } else { 13805 yysep2 := !z.EncBinary() 13806 yy2arr2 := z.EncBasicHandle().StructToArray 13807 _, _ = yysep2, yy2arr2 13808 const yyr2 bool = false // struct tag has 'toArray' 13809 if yyr2 || yy2arr2 { 13810 r.WriteArrayStart(6) 13811 } else { 13812 r.WriteMapStart(6) 13813 } 13814 if yyr2 || yy2arr2 { 13815 r.WriteArrayElem() 13816 if false { 13817 } else if yyxt4 := z.Extension(z.I2Rtid(x.ID)); yyxt4 != nil { 13818 z.EncExtension(x.ID, yyxt4) 13819 } else { 13820 if z.EncBasicHandle().StringToRaw { 13821 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 13822 } else { 13823 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 13824 } 13825 } 13826 } else { 13827 r.WriteMapElemKey() 13828 if z.IsJSONHandle() { 13829 z.WriteStr("\"ID\"") 13830 } else { 13831 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 13832 } 13833 r.WriteMapElemValue() 13834 if false { 13835 } else if yyxt5 := z.Extension(z.I2Rtid(x.ID)); yyxt5 != nil { 13836 z.EncExtension(x.ID, yyxt5) 13837 } else { 13838 if z.EncBasicHandle().StringToRaw { 13839 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 13840 } else { 13841 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 13842 } 13843 } 13844 } 13845 if yyr2 || yy2arr2 { 13846 r.WriteArrayElem() 13847 if false { 13848 } else { 13849 if z.EncBasicHandle().StringToRaw { 13850 r.EncodeStringBytesRaw(z.BytesView(string(x.Node))) 13851 } else { 13852 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Node)) 13853 } 13854 } 13855 } else { 13856 r.WriteMapElemKey() 13857 if z.IsJSONHandle() { 13858 z.WriteStr("\"Node\"") 13859 } else { 13860 r.EncodeStringEnc(codecSelferCcUTF8100, `Node`) 13861 } 13862 r.WriteMapElemValue() 13863 if false { 13864 } else { 13865 if z.EncBasicHandle().StringToRaw { 13866 r.EncodeStringBytesRaw(z.BytesView(string(x.Node))) 13867 } else { 13868 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Node)) 13869 } 13870 } 13871 } 13872 if yyr2 || yy2arr2 { 13873 r.WriteArrayElem() 13874 if false { 13875 } else if yyxt10 := z.Extension(z.I2Rtid(x.Address)); yyxt10 != nil { 13876 z.EncExtension(x.Address, yyxt10) 13877 } else { 13878 if z.EncBasicHandle().StringToRaw { 13879 r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) 13880 } else { 13881 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) 13882 } 13883 } 13884 } else { 13885 r.WriteMapElemKey() 13886 if z.IsJSONHandle() { 13887 z.WriteStr("\"Address\"") 13888 } else { 13889 r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) 13890 } 13891 r.WriteMapElemValue() 13892 if false { 13893 } else if yyxt11 := z.Extension(z.I2Rtid(x.Address)); yyxt11 != nil { 13894 z.EncExtension(x.Address, yyxt11) 13895 } else { 13896 if z.EncBasicHandle().StringToRaw { 13897 r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) 13898 } else { 13899 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) 13900 } 13901 } 13902 } 13903 if yyr2 || yy2arr2 { 13904 r.WriteArrayElem() 13905 if false { 13906 } else { 13907 r.EncodeBool(bool(x.Leader)) 13908 } 13909 } else { 13910 r.WriteMapElemKey() 13911 if z.IsJSONHandle() { 13912 z.WriteStr("\"Leader\"") 13913 } else { 13914 r.EncodeStringEnc(codecSelferCcUTF8100, `Leader`) 13915 } 13916 r.WriteMapElemValue() 13917 if false { 13918 } else { 13919 r.EncodeBool(bool(x.Leader)) 13920 } 13921 } 13922 if yyr2 || yy2arr2 { 13923 r.WriteArrayElem() 13924 if false { 13925 } else { 13926 r.EncodeBool(bool(x.Voter)) 13927 } 13928 } else { 13929 r.WriteMapElemKey() 13930 if z.IsJSONHandle() { 13931 z.WriteStr("\"Voter\"") 13932 } else { 13933 r.EncodeStringEnc(codecSelferCcUTF8100, `Voter`) 13934 } 13935 r.WriteMapElemValue() 13936 if false { 13937 } else { 13938 r.EncodeBool(bool(x.Voter)) 13939 } 13940 } 13941 if yyr2 || yy2arr2 { 13942 r.WriteArrayElem() 13943 if false { 13944 } else { 13945 if z.EncBasicHandle().StringToRaw { 13946 r.EncodeStringBytesRaw(z.BytesView(string(x.RaftProtocol))) 13947 } else { 13948 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RaftProtocol)) 13949 } 13950 } 13951 } else { 13952 r.WriteMapElemKey() 13953 if z.IsJSONHandle() { 13954 z.WriteStr("\"RaftProtocol\"") 13955 } else { 13956 r.EncodeStringEnc(codecSelferCcUTF8100, `RaftProtocol`) 13957 } 13958 r.WriteMapElemValue() 13959 if false { 13960 } else { 13961 if z.EncBasicHandle().StringToRaw { 13962 r.EncodeStringBytesRaw(z.BytesView(string(x.RaftProtocol))) 13963 } else { 13964 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RaftProtocol)) 13965 } 13966 } 13967 } 13968 if yyr2 || yy2arr2 { 13969 r.WriteArrayEnd() 13970 } else { 13971 r.WriteMapEnd() 13972 } 13973 } 13974 } 13975 } 13976 13977 func (x *RaftServer) CodecDecodeSelf(d *codec1978.Decoder) { 13978 var h codecSelfer100 13979 z, r := codec1978.GenHelperDecoder(d) 13980 _, _, _ = h, z, r 13981 if false { 13982 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 13983 z.DecExtension(x, yyxt1) 13984 } else { 13985 yyct2 := r.ContainerType() 13986 if yyct2 == codecSelferValueTypeMap100 { 13987 yyl2 := r.ReadMapStart() 13988 if yyl2 == 0 { 13989 r.ReadMapEnd() 13990 } else { 13991 x.codecDecodeSelfFromMap(yyl2, d) 13992 } 13993 } else if yyct2 == codecSelferValueTypeArray100 { 13994 yyl2 := r.ReadArrayStart() 13995 if yyl2 == 0 { 13996 r.ReadArrayEnd() 13997 } else { 13998 x.codecDecodeSelfFromArray(yyl2, d) 13999 } 14000 } else { 14001 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 14002 } 14003 } 14004 } 14005 14006 func (x *RaftServer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 14007 var h codecSelfer100 14008 z, r := codec1978.GenHelperDecoder(d) 14009 _, _, _ = h, z, r 14010 var yyhl3 bool = l >= 0 14011 for yyj3 := 0; ; yyj3++ { 14012 if yyhl3 { 14013 if yyj3 >= l { 14014 break 14015 } 14016 } else { 14017 if r.CheckBreak() { 14018 break 14019 } 14020 } 14021 r.ReadMapElemKey() 14022 yys3 := z.StringView(r.DecodeStringAsBytes()) 14023 r.ReadMapElemValue() 14024 switch yys3 { 14025 case "ID": 14026 if r.TryDecodeAsNil() { 14027 x.ID = "" 14028 } else { 14029 if false { 14030 } else if yyxt5 := z.Extension(z.I2Rtid(x.ID)); yyxt5 != nil { 14031 z.DecExtension(x.ID, yyxt5) 14032 } else { 14033 x.ID = (pkg2_raft.ServerID)(r.DecodeString()) 14034 } 14035 } 14036 case "Node": 14037 if r.TryDecodeAsNil() { 14038 x.Node = "" 14039 } else { 14040 x.Node = (string)(r.DecodeString()) 14041 } 14042 case "Address": 14043 if r.TryDecodeAsNil() { 14044 x.Address = "" 14045 } else { 14046 if false { 14047 } else if yyxt8 := z.Extension(z.I2Rtid(x.Address)); yyxt8 != nil { 14048 z.DecExtension(x.Address, yyxt8) 14049 } else { 14050 x.Address = (pkg2_raft.ServerAddress)(r.DecodeString()) 14051 } 14052 } 14053 case "Leader": 14054 if r.TryDecodeAsNil() { 14055 x.Leader = false 14056 } else { 14057 x.Leader = (bool)(r.DecodeBool()) 14058 } 14059 case "Voter": 14060 if r.TryDecodeAsNil() { 14061 x.Voter = false 14062 } else { 14063 x.Voter = (bool)(r.DecodeBool()) 14064 } 14065 case "RaftProtocol": 14066 if r.TryDecodeAsNil() { 14067 x.RaftProtocol = "" 14068 } else { 14069 x.RaftProtocol = (string)(r.DecodeString()) 14070 } 14071 default: 14072 z.DecStructFieldNotFound(-1, yys3) 14073 } // end switch yys3 14074 } // end for yyj3 14075 r.ReadMapEnd() 14076 } 14077 14078 func (x *RaftServer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 14079 var h codecSelfer100 14080 z, r := codec1978.GenHelperDecoder(d) 14081 _, _, _ = h, z, r 14082 var yyj12 int 14083 var yyb12 bool 14084 var yyhl12 bool = l >= 0 14085 yyj12++ 14086 if yyhl12 { 14087 yyb12 = yyj12 > l 14088 } else { 14089 yyb12 = r.CheckBreak() 14090 } 14091 if yyb12 { 14092 r.ReadArrayEnd() 14093 return 14094 } 14095 r.ReadArrayElem() 14096 if r.TryDecodeAsNil() { 14097 x.ID = "" 14098 } else { 14099 if false { 14100 } else if yyxt14 := z.Extension(z.I2Rtid(x.ID)); yyxt14 != nil { 14101 z.DecExtension(x.ID, yyxt14) 14102 } else { 14103 x.ID = (pkg2_raft.ServerID)(r.DecodeString()) 14104 } 14105 } 14106 yyj12++ 14107 if yyhl12 { 14108 yyb12 = yyj12 > l 14109 } else { 14110 yyb12 = r.CheckBreak() 14111 } 14112 if yyb12 { 14113 r.ReadArrayEnd() 14114 return 14115 } 14116 r.ReadArrayElem() 14117 if r.TryDecodeAsNil() { 14118 x.Node = "" 14119 } else { 14120 x.Node = (string)(r.DecodeString()) 14121 } 14122 yyj12++ 14123 if yyhl12 { 14124 yyb12 = yyj12 > l 14125 } else { 14126 yyb12 = r.CheckBreak() 14127 } 14128 if yyb12 { 14129 r.ReadArrayEnd() 14130 return 14131 } 14132 r.ReadArrayElem() 14133 if r.TryDecodeAsNil() { 14134 x.Address = "" 14135 } else { 14136 if false { 14137 } else if yyxt17 := z.Extension(z.I2Rtid(x.Address)); yyxt17 != nil { 14138 z.DecExtension(x.Address, yyxt17) 14139 } else { 14140 x.Address = (pkg2_raft.ServerAddress)(r.DecodeString()) 14141 } 14142 } 14143 yyj12++ 14144 if yyhl12 { 14145 yyb12 = yyj12 > l 14146 } else { 14147 yyb12 = r.CheckBreak() 14148 } 14149 if yyb12 { 14150 r.ReadArrayEnd() 14151 return 14152 } 14153 r.ReadArrayElem() 14154 if r.TryDecodeAsNil() { 14155 x.Leader = false 14156 } else { 14157 x.Leader = (bool)(r.DecodeBool()) 14158 } 14159 yyj12++ 14160 if yyhl12 { 14161 yyb12 = yyj12 > l 14162 } else { 14163 yyb12 = r.CheckBreak() 14164 } 14165 if yyb12 { 14166 r.ReadArrayEnd() 14167 return 14168 } 14169 r.ReadArrayElem() 14170 if r.TryDecodeAsNil() { 14171 x.Voter = false 14172 } else { 14173 x.Voter = (bool)(r.DecodeBool()) 14174 } 14175 yyj12++ 14176 if yyhl12 { 14177 yyb12 = yyj12 > l 14178 } else { 14179 yyb12 = r.CheckBreak() 14180 } 14181 if yyb12 { 14182 r.ReadArrayEnd() 14183 return 14184 } 14185 r.ReadArrayElem() 14186 if r.TryDecodeAsNil() { 14187 x.RaftProtocol = "" 14188 } else { 14189 x.RaftProtocol = (string)(r.DecodeString()) 14190 } 14191 for { 14192 yyj12++ 14193 if yyhl12 { 14194 yyb12 = yyj12 > l 14195 } else { 14196 yyb12 = r.CheckBreak() 14197 } 14198 if yyb12 { 14199 break 14200 } 14201 r.ReadArrayElem() 14202 z.DecStructFieldNotFound(yyj12-1, "") 14203 } 14204 r.ReadArrayEnd() 14205 } 14206 14207 func (x *RaftConfigurationResponse) CodecEncodeSelf(e *codec1978.Encoder) { 14208 var h codecSelfer100 14209 z, r := codec1978.GenHelperEncoder(e) 14210 _, _, _ = h, z, r 14211 if x == nil { 14212 r.EncodeNil() 14213 } else { 14214 if false { 14215 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 14216 z.EncExtension(x, yyxt1) 14217 } else { 14218 yysep2 := !z.EncBinary() 14219 yy2arr2 := z.EncBasicHandle().StructToArray 14220 _, _ = yysep2, yy2arr2 14221 const yyr2 bool = false // struct tag has 'toArray' 14222 if yyr2 || yy2arr2 { 14223 r.WriteArrayStart(2) 14224 } else { 14225 r.WriteMapStart(2) 14226 } 14227 if yyr2 || yy2arr2 { 14228 r.WriteArrayElem() 14229 if x.Servers == nil { 14230 r.EncodeNil() 14231 } else { 14232 if false { 14233 } else { 14234 h.encSlicePtrtoRaftServer(([]*RaftServer)(x.Servers), e) 14235 } 14236 } 14237 } else { 14238 r.WriteMapElemKey() 14239 if z.IsJSONHandle() { 14240 z.WriteStr("\"Servers\"") 14241 } else { 14242 r.EncodeStringEnc(codecSelferCcUTF8100, `Servers`) 14243 } 14244 r.WriteMapElemValue() 14245 if x.Servers == nil { 14246 r.EncodeNil() 14247 } else { 14248 if false { 14249 } else { 14250 h.encSlicePtrtoRaftServer(([]*RaftServer)(x.Servers), e) 14251 } 14252 } 14253 } 14254 if yyr2 || yy2arr2 { 14255 r.WriteArrayElem() 14256 if false { 14257 } else { 14258 r.EncodeUint(uint64(x.Index)) 14259 } 14260 } else { 14261 r.WriteMapElemKey() 14262 if z.IsJSONHandle() { 14263 z.WriteStr("\"Index\"") 14264 } else { 14265 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 14266 } 14267 r.WriteMapElemValue() 14268 if false { 14269 } else { 14270 r.EncodeUint(uint64(x.Index)) 14271 } 14272 } 14273 if yyr2 || yy2arr2 { 14274 r.WriteArrayEnd() 14275 } else { 14276 r.WriteMapEnd() 14277 } 14278 } 14279 } 14280 } 14281 14282 func (x *RaftConfigurationResponse) CodecDecodeSelf(d *codec1978.Decoder) { 14283 var h codecSelfer100 14284 z, r := codec1978.GenHelperDecoder(d) 14285 _, _, _ = h, z, r 14286 if false { 14287 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 14288 z.DecExtension(x, yyxt1) 14289 } else { 14290 yyct2 := r.ContainerType() 14291 if yyct2 == codecSelferValueTypeMap100 { 14292 yyl2 := r.ReadMapStart() 14293 if yyl2 == 0 { 14294 r.ReadMapEnd() 14295 } else { 14296 x.codecDecodeSelfFromMap(yyl2, d) 14297 } 14298 } else if yyct2 == codecSelferValueTypeArray100 { 14299 yyl2 := r.ReadArrayStart() 14300 if yyl2 == 0 { 14301 r.ReadArrayEnd() 14302 } else { 14303 x.codecDecodeSelfFromArray(yyl2, d) 14304 } 14305 } else { 14306 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 14307 } 14308 } 14309 } 14310 14311 func (x *RaftConfigurationResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 14312 var h codecSelfer100 14313 z, r := codec1978.GenHelperDecoder(d) 14314 _, _, _ = h, z, r 14315 var yyhl3 bool = l >= 0 14316 for yyj3 := 0; ; yyj3++ { 14317 if yyhl3 { 14318 if yyj3 >= l { 14319 break 14320 } 14321 } else { 14322 if r.CheckBreak() { 14323 break 14324 } 14325 } 14326 r.ReadMapElemKey() 14327 yys3 := z.StringView(r.DecodeStringAsBytes()) 14328 r.ReadMapElemValue() 14329 switch yys3 { 14330 case "Servers": 14331 if r.TryDecodeAsNil() { 14332 x.Servers = nil 14333 } else { 14334 if false { 14335 } else { 14336 h.decSlicePtrtoRaftServer((*[]*RaftServer)(&x.Servers), d) 14337 } 14338 } 14339 case "Index": 14340 if r.TryDecodeAsNil() { 14341 x.Index = 0 14342 } else { 14343 x.Index = (uint64)(r.DecodeUint64()) 14344 } 14345 default: 14346 z.DecStructFieldNotFound(-1, yys3) 14347 } // end switch yys3 14348 } // end for yyj3 14349 r.ReadMapEnd() 14350 } 14351 14352 func (x *RaftConfigurationResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 14353 var h codecSelfer100 14354 z, r := codec1978.GenHelperDecoder(d) 14355 _, _, _ = h, z, r 14356 var yyj7 int 14357 var yyb7 bool 14358 var yyhl7 bool = l >= 0 14359 yyj7++ 14360 if yyhl7 { 14361 yyb7 = yyj7 > l 14362 } else { 14363 yyb7 = r.CheckBreak() 14364 } 14365 if yyb7 { 14366 r.ReadArrayEnd() 14367 return 14368 } 14369 r.ReadArrayElem() 14370 if r.TryDecodeAsNil() { 14371 x.Servers = nil 14372 } else { 14373 if false { 14374 } else { 14375 h.decSlicePtrtoRaftServer((*[]*RaftServer)(&x.Servers), d) 14376 } 14377 } 14378 yyj7++ 14379 if yyhl7 { 14380 yyb7 = yyj7 > l 14381 } else { 14382 yyb7 = r.CheckBreak() 14383 } 14384 if yyb7 { 14385 r.ReadArrayEnd() 14386 return 14387 } 14388 r.ReadArrayElem() 14389 if r.TryDecodeAsNil() { 14390 x.Index = 0 14391 } else { 14392 x.Index = (uint64)(r.DecodeUint64()) 14393 } 14394 for { 14395 yyj7++ 14396 if yyhl7 { 14397 yyb7 = yyj7 > l 14398 } else { 14399 yyb7 = r.CheckBreak() 14400 } 14401 if yyb7 { 14402 break 14403 } 14404 r.ReadArrayElem() 14405 z.DecStructFieldNotFound(yyj7-1, "") 14406 } 14407 r.ReadArrayEnd() 14408 } 14409 14410 func (x *RaftPeerByAddressRequest) CodecEncodeSelf(e *codec1978.Encoder) { 14411 var h codecSelfer100 14412 z, r := codec1978.GenHelperEncoder(e) 14413 _, _, _ = h, z, r 14414 if x == nil { 14415 r.EncodeNil() 14416 } else { 14417 if false { 14418 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 14419 z.EncExtension(x, yyxt1) 14420 } else { 14421 yysep2 := !z.EncBinary() 14422 yy2arr2 := z.EncBasicHandle().StructToArray 14423 _, _ = yysep2, yy2arr2 14424 const yyr2 bool = false // struct tag has 'toArray' 14425 if yyr2 || yy2arr2 { 14426 r.WriteArrayStart(5) 14427 } else { 14428 r.WriteMapStart(5) 14429 } 14430 if yyr2 || yy2arr2 { 14431 r.WriteArrayElem() 14432 if false { 14433 } else if yyxt4 := z.Extension(z.I2Rtid(x.Address)); yyxt4 != nil { 14434 z.EncExtension(x.Address, yyxt4) 14435 } else { 14436 if z.EncBasicHandle().StringToRaw { 14437 r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) 14438 } else { 14439 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) 14440 } 14441 } 14442 } else { 14443 r.WriteMapElemKey() 14444 if z.IsJSONHandle() { 14445 z.WriteStr("\"Address\"") 14446 } else { 14447 r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) 14448 } 14449 r.WriteMapElemValue() 14450 if false { 14451 } else if yyxt5 := z.Extension(z.I2Rtid(x.Address)); yyxt5 != nil { 14452 z.EncExtension(x.Address, yyxt5) 14453 } else { 14454 if z.EncBasicHandle().StringToRaw { 14455 r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) 14456 } else { 14457 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) 14458 } 14459 } 14460 } 14461 if yyr2 || yy2arr2 { 14462 r.WriteArrayElem() 14463 if false { 14464 } else { 14465 if z.EncBasicHandle().StringToRaw { 14466 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 14467 } else { 14468 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 14469 } 14470 } 14471 } else { 14472 r.WriteMapElemKey() 14473 if z.IsJSONHandle() { 14474 z.WriteStr("\"Region\"") 14475 } else { 14476 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 14477 } 14478 r.WriteMapElemValue() 14479 if false { 14480 } else { 14481 if z.EncBasicHandle().StringToRaw { 14482 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 14483 } else { 14484 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 14485 } 14486 } 14487 } 14488 if yyr2 || yy2arr2 { 14489 r.WriteArrayElem() 14490 if false { 14491 } else { 14492 if z.EncBasicHandle().StringToRaw { 14493 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 14494 } else { 14495 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 14496 } 14497 } 14498 } else { 14499 r.WriteMapElemKey() 14500 if z.IsJSONHandle() { 14501 z.WriteStr("\"Namespace\"") 14502 } else { 14503 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 14504 } 14505 r.WriteMapElemValue() 14506 if false { 14507 } else { 14508 if z.EncBasicHandle().StringToRaw { 14509 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 14510 } else { 14511 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 14512 } 14513 } 14514 } 14515 if yyr2 || yy2arr2 { 14516 r.WriteArrayElem() 14517 if false { 14518 } else { 14519 if z.EncBasicHandle().StringToRaw { 14520 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 14521 } else { 14522 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 14523 } 14524 } 14525 } else { 14526 r.WriteMapElemKey() 14527 if z.IsJSONHandle() { 14528 z.WriteStr("\"AuthToken\"") 14529 } else { 14530 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 14531 } 14532 r.WriteMapElemValue() 14533 if false { 14534 } else { 14535 if z.EncBasicHandle().StringToRaw { 14536 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 14537 } else { 14538 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 14539 } 14540 } 14541 } 14542 if yyr2 || yy2arr2 { 14543 r.WriteArrayElem() 14544 if false { 14545 } else { 14546 r.EncodeBool(bool(x.Forwarded)) 14547 } 14548 } else { 14549 r.WriteMapElemKey() 14550 if z.IsJSONHandle() { 14551 z.WriteStr("\"Forwarded\"") 14552 } else { 14553 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 14554 } 14555 r.WriteMapElemValue() 14556 if false { 14557 } else { 14558 r.EncodeBool(bool(x.Forwarded)) 14559 } 14560 } 14561 if yyr2 || yy2arr2 { 14562 r.WriteArrayEnd() 14563 } else { 14564 r.WriteMapEnd() 14565 } 14566 } 14567 } 14568 } 14569 14570 func (x *RaftPeerByAddressRequest) CodecDecodeSelf(d *codec1978.Decoder) { 14571 var h codecSelfer100 14572 z, r := codec1978.GenHelperDecoder(d) 14573 _, _, _ = h, z, r 14574 if false { 14575 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 14576 z.DecExtension(x, yyxt1) 14577 } else { 14578 yyct2 := r.ContainerType() 14579 if yyct2 == codecSelferValueTypeMap100 { 14580 yyl2 := r.ReadMapStart() 14581 if yyl2 == 0 { 14582 r.ReadMapEnd() 14583 } else { 14584 x.codecDecodeSelfFromMap(yyl2, d) 14585 } 14586 } else if yyct2 == codecSelferValueTypeArray100 { 14587 yyl2 := r.ReadArrayStart() 14588 if yyl2 == 0 { 14589 r.ReadArrayEnd() 14590 } else { 14591 x.codecDecodeSelfFromArray(yyl2, d) 14592 } 14593 } else { 14594 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 14595 } 14596 } 14597 } 14598 14599 func (x *RaftPeerByAddressRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 14600 var h codecSelfer100 14601 z, r := codec1978.GenHelperDecoder(d) 14602 _, _, _ = h, z, r 14603 var yyhl3 bool = l >= 0 14604 for yyj3 := 0; ; yyj3++ { 14605 if yyhl3 { 14606 if yyj3 >= l { 14607 break 14608 } 14609 } else { 14610 if r.CheckBreak() { 14611 break 14612 } 14613 } 14614 r.ReadMapElemKey() 14615 yys3 := z.StringView(r.DecodeStringAsBytes()) 14616 r.ReadMapElemValue() 14617 switch yys3 { 14618 case "Address": 14619 if r.TryDecodeAsNil() { 14620 x.Address = "" 14621 } else { 14622 if false { 14623 } else if yyxt5 := z.Extension(z.I2Rtid(x.Address)); yyxt5 != nil { 14624 z.DecExtension(x.Address, yyxt5) 14625 } else { 14626 x.Address = (pkg2_raft.ServerAddress)(r.DecodeString()) 14627 } 14628 } 14629 case "Region": 14630 if r.TryDecodeAsNil() { 14631 x.WriteRequest.Region = "" 14632 } else { 14633 x.Region = (string)(r.DecodeString()) 14634 } 14635 case "Namespace": 14636 if r.TryDecodeAsNil() { 14637 x.WriteRequest.Namespace = "" 14638 } else { 14639 x.Namespace = (string)(r.DecodeString()) 14640 } 14641 case "AuthToken": 14642 if r.TryDecodeAsNil() { 14643 x.WriteRequest.AuthToken = "" 14644 } else { 14645 x.AuthToken = (string)(r.DecodeString()) 14646 } 14647 case "Forwarded": 14648 if r.TryDecodeAsNil() { 14649 x.WriteRequest.InternalRpcInfo.Forwarded = false 14650 } else { 14651 x.Forwarded = (bool)(r.DecodeBool()) 14652 } 14653 default: 14654 z.DecStructFieldNotFound(-1, yys3) 14655 } // end switch yys3 14656 } // end for yyj3 14657 r.ReadMapEnd() 14658 } 14659 14660 func (x *RaftPeerByAddressRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 14661 var h codecSelfer100 14662 z, r := codec1978.GenHelperDecoder(d) 14663 _, _, _ = h, z, r 14664 var yyj10 int 14665 var yyb10 bool 14666 var yyhl10 bool = l >= 0 14667 yyj10++ 14668 if yyhl10 { 14669 yyb10 = yyj10 > l 14670 } else { 14671 yyb10 = r.CheckBreak() 14672 } 14673 if yyb10 { 14674 r.ReadArrayEnd() 14675 return 14676 } 14677 r.ReadArrayElem() 14678 if r.TryDecodeAsNil() { 14679 x.Address = "" 14680 } else { 14681 if false { 14682 } else if yyxt12 := z.Extension(z.I2Rtid(x.Address)); yyxt12 != nil { 14683 z.DecExtension(x.Address, yyxt12) 14684 } else { 14685 x.Address = (pkg2_raft.ServerAddress)(r.DecodeString()) 14686 } 14687 } 14688 yyj10++ 14689 if yyhl10 { 14690 yyb10 = yyj10 > l 14691 } else { 14692 yyb10 = r.CheckBreak() 14693 } 14694 if yyb10 { 14695 r.ReadArrayEnd() 14696 return 14697 } 14698 r.ReadArrayElem() 14699 if r.TryDecodeAsNil() { 14700 x.WriteRequest.Region = "" 14701 } else { 14702 x.Region = (string)(r.DecodeString()) 14703 } 14704 yyj10++ 14705 if yyhl10 { 14706 yyb10 = yyj10 > l 14707 } else { 14708 yyb10 = r.CheckBreak() 14709 } 14710 if yyb10 { 14711 r.ReadArrayEnd() 14712 return 14713 } 14714 r.ReadArrayElem() 14715 if r.TryDecodeAsNil() { 14716 x.WriteRequest.Namespace = "" 14717 } else { 14718 x.Namespace = (string)(r.DecodeString()) 14719 } 14720 yyj10++ 14721 if yyhl10 { 14722 yyb10 = yyj10 > l 14723 } else { 14724 yyb10 = r.CheckBreak() 14725 } 14726 if yyb10 { 14727 r.ReadArrayEnd() 14728 return 14729 } 14730 r.ReadArrayElem() 14731 if r.TryDecodeAsNil() { 14732 x.WriteRequest.AuthToken = "" 14733 } else { 14734 x.AuthToken = (string)(r.DecodeString()) 14735 } 14736 yyj10++ 14737 if yyhl10 { 14738 yyb10 = yyj10 > l 14739 } else { 14740 yyb10 = r.CheckBreak() 14741 } 14742 if yyb10 { 14743 r.ReadArrayEnd() 14744 return 14745 } 14746 r.ReadArrayElem() 14747 if r.TryDecodeAsNil() { 14748 x.WriteRequest.InternalRpcInfo.Forwarded = false 14749 } else { 14750 x.Forwarded = (bool)(r.DecodeBool()) 14751 } 14752 for { 14753 yyj10++ 14754 if yyhl10 { 14755 yyb10 = yyj10 > l 14756 } else { 14757 yyb10 = r.CheckBreak() 14758 } 14759 if yyb10 { 14760 break 14761 } 14762 r.ReadArrayElem() 14763 z.DecStructFieldNotFound(yyj10-1, "") 14764 } 14765 r.ReadArrayEnd() 14766 } 14767 14768 func (x *RaftPeerByIDRequest) CodecEncodeSelf(e *codec1978.Encoder) { 14769 var h codecSelfer100 14770 z, r := codec1978.GenHelperEncoder(e) 14771 _, _, _ = h, z, r 14772 if x == nil { 14773 r.EncodeNil() 14774 } else { 14775 if false { 14776 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 14777 z.EncExtension(x, yyxt1) 14778 } else { 14779 yysep2 := !z.EncBinary() 14780 yy2arr2 := z.EncBasicHandle().StructToArray 14781 _, _ = yysep2, yy2arr2 14782 const yyr2 bool = false // struct tag has 'toArray' 14783 if yyr2 || yy2arr2 { 14784 r.WriteArrayStart(5) 14785 } else { 14786 r.WriteMapStart(5) 14787 } 14788 if yyr2 || yy2arr2 { 14789 r.WriteArrayElem() 14790 if false { 14791 } else if yyxt4 := z.Extension(z.I2Rtid(x.ID)); yyxt4 != nil { 14792 z.EncExtension(x.ID, yyxt4) 14793 } else { 14794 if z.EncBasicHandle().StringToRaw { 14795 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 14796 } else { 14797 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 14798 } 14799 } 14800 } else { 14801 r.WriteMapElemKey() 14802 if z.IsJSONHandle() { 14803 z.WriteStr("\"ID\"") 14804 } else { 14805 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 14806 } 14807 r.WriteMapElemValue() 14808 if false { 14809 } else if yyxt5 := z.Extension(z.I2Rtid(x.ID)); yyxt5 != nil { 14810 z.EncExtension(x.ID, yyxt5) 14811 } else { 14812 if z.EncBasicHandle().StringToRaw { 14813 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 14814 } else { 14815 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 14816 } 14817 } 14818 } 14819 if yyr2 || yy2arr2 { 14820 r.WriteArrayElem() 14821 if false { 14822 } else { 14823 if z.EncBasicHandle().StringToRaw { 14824 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 14825 } else { 14826 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 14827 } 14828 } 14829 } else { 14830 r.WriteMapElemKey() 14831 if z.IsJSONHandle() { 14832 z.WriteStr("\"Region\"") 14833 } else { 14834 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 14835 } 14836 r.WriteMapElemValue() 14837 if false { 14838 } else { 14839 if z.EncBasicHandle().StringToRaw { 14840 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 14841 } else { 14842 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 14843 } 14844 } 14845 } 14846 if yyr2 || yy2arr2 { 14847 r.WriteArrayElem() 14848 if false { 14849 } else { 14850 if z.EncBasicHandle().StringToRaw { 14851 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 14852 } else { 14853 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 14854 } 14855 } 14856 } else { 14857 r.WriteMapElemKey() 14858 if z.IsJSONHandle() { 14859 z.WriteStr("\"Namespace\"") 14860 } else { 14861 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 14862 } 14863 r.WriteMapElemValue() 14864 if false { 14865 } else { 14866 if z.EncBasicHandle().StringToRaw { 14867 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 14868 } else { 14869 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 14870 } 14871 } 14872 } 14873 if yyr2 || yy2arr2 { 14874 r.WriteArrayElem() 14875 if false { 14876 } else { 14877 if z.EncBasicHandle().StringToRaw { 14878 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 14879 } else { 14880 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 14881 } 14882 } 14883 } else { 14884 r.WriteMapElemKey() 14885 if z.IsJSONHandle() { 14886 z.WriteStr("\"AuthToken\"") 14887 } else { 14888 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 14889 } 14890 r.WriteMapElemValue() 14891 if false { 14892 } else { 14893 if z.EncBasicHandle().StringToRaw { 14894 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 14895 } else { 14896 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 14897 } 14898 } 14899 } 14900 if yyr2 || yy2arr2 { 14901 r.WriteArrayElem() 14902 if false { 14903 } else { 14904 r.EncodeBool(bool(x.Forwarded)) 14905 } 14906 } else { 14907 r.WriteMapElemKey() 14908 if z.IsJSONHandle() { 14909 z.WriteStr("\"Forwarded\"") 14910 } else { 14911 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 14912 } 14913 r.WriteMapElemValue() 14914 if false { 14915 } else { 14916 r.EncodeBool(bool(x.Forwarded)) 14917 } 14918 } 14919 if yyr2 || yy2arr2 { 14920 r.WriteArrayEnd() 14921 } else { 14922 r.WriteMapEnd() 14923 } 14924 } 14925 } 14926 } 14927 14928 func (x *RaftPeerByIDRequest) CodecDecodeSelf(d *codec1978.Decoder) { 14929 var h codecSelfer100 14930 z, r := codec1978.GenHelperDecoder(d) 14931 _, _, _ = h, z, r 14932 if false { 14933 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 14934 z.DecExtension(x, yyxt1) 14935 } else { 14936 yyct2 := r.ContainerType() 14937 if yyct2 == codecSelferValueTypeMap100 { 14938 yyl2 := r.ReadMapStart() 14939 if yyl2 == 0 { 14940 r.ReadMapEnd() 14941 } else { 14942 x.codecDecodeSelfFromMap(yyl2, d) 14943 } 14944 } else if yyct2 == codecSelferValueTypeArray100 { 14945 yyl2 := r.ReadArrayStart() 14946 if yyl2 == 0 { 14947 r.ReadArrayEnd() 14948 } else { 14949 x.codecDecodeSelfFromArray(yyl2, d) 14950 } 14951 } else { 14952 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 14953 } 14954 } 14955 } 14956 14957 func (x *RaftPeerByIDRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 14958 var h codecSelfer100 14959 z, r := codec1978.GenHelperDecoder(d) 14960 _, _, _ = h, z, r 14961 var yyhl3 bool = l >= 0 14962 for yyj3 := 0; ; yyj3++ { 14963 if yyhl3 { 14964 if yyj3 >= l { 14965 break 14966 } 14967 } else { 14968 if r.CheckBreak() { 14969 break 14970 } 14971 } 14972 r.ReadMapElemKey() 14973 yys3 := z.StringView(r.DecodeStringAsBytes()) 14974 r.ReadMapElemValue() 14975 switch yys3 { 14976 case "ID": 14977 if r.TryDecodeAsNil() { 14978 x.ID = "" 14979 } else { 14980 if false { 14981 } else if yyxt5 := z.Extension(z.I2Rtid(x.ID)); yyxt5 != nil { 14982 z.DecExtension(x.ID, yyxt5) 14983 } else { 14984 x.ID = (pkg2_raft.ServerID)(r.DecodeString()) 14985 } 14986 } 14987 case "Region": 14988 if r.TryDecodeAsNil() { 14989 x.WriteRequest.Region = "" 14990 } else { 14991 x.Region = (string)(r.DecodeString()) 14992 } 14993 case "Namespace": 14994 if r.TryDecodeAsNil() { 14995 x.WriteRequest.Namespace = "" 14996 } else { 14997 x.Namespace = (string)(r.DecodeString()) 14998 } 14999 case "AuthToken": 15000 if r.TryDecodeAsNil() { 15001 x.WriteRequest.AuthToken = "" 15002 } else { 15003 x.AuthToken = (string)(r.DecodeString()) 15004 } 15005 case "Forwarded": 15006 if r.TryDecodeAsNil() { 15007 x.WriteRequest.InternalRpcInfo.Forwarded = false 15008 } else { 15009 x.Forwarded = (bool)(r.DecodeBool()) 15010 } 15011 default: 15012 z.DecStructFieldNotFound(-1, yys3) 15013 } // end switch yys3 15014 } // end for yyj3 15015 r.ReadMapEnd() 15016 } 15017 15018 func (x *RaftPeerByIDRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 15019 var h codecSelfer100 15020 z, r := codec1978.GenHelperDecoder(d) 15021 _, _, _ = h, z, r 15022 var yyj10 int 15023 var yyb10 bool 15024 var yyhl10 bool = l >= 0 15025 yyj10++ 15026 if yyhl10 { 15027 yyb10 = yyj10 > l 15028 } else { 15029 yyb10 = r.CheckBreak() 15030 } 15031 if yyb10 { 15032 r.ReadArrayEnd() 15033 return 15034 } 15035 r.ReadArrayElem() 15036 if r.TryDecodeAsNil() { 15037 x.ID = "" 15038 } else { 15039 if false { 15040 } else if yyxt12 := z.Extension(z.I2Rtid(x.ID)); yyxt12 != nil { 15041 z.DecExtension(x.ID, yyxt12) 15042 } else { 15043 x.ID = (pkg2_raft.ServerID)(r.DecodeString()) 15044 } 15045 } 15046 yyj10++ 15047 if yyhl10 { 15048 yyb10 = yyj10 > l 15049 } else { 15050 yyb10 = r.CheckBreak() 15051 } 15052 if yyb10 { 15053 r.ReadArrayEnd() 15054 return 15055 } 15056 r.ReadArrayElem() 15057 if r.TryDecodeAsNil() { 15058 x.WriteRequest.Region = "" 15059 } else { 15060 x.Region = (string)(r.DecodeString()) 15061 } 15062 yyj10++ 15063 if yyhl10 { 15064 yyb10 = yyj10 > l 15065 } else { 15066 yyb10 = r.CheckBreak() 15067 } 15068 if yyb10 { 15069 r.ReadArrayEnd() 15070 return 15071 } 15072 r.ReadArrayElem() 15073 if r.TryDecodeAsNil() { 15074 x.WriteRequest.Namespace = "" 15075 } else { 15076 x.Namespace = (string)(r.DecodeString()) 15077 } 15078 yyj10++ 15079 if yyhl10 { 15080 yyb10 = yyj10 > l 15081 } else { 15082 yyb10 = r.CheckBreak() 15083 } 15084 if yyb10 { 15085 r.ReadArrayEnd() 15086 return 15087 } 15088 r.ReadArrayElem() 15089 if r.TryDecodeAsNil() { 15090 x.WriteRequest.AuthToken = "" 15091 } else { 15092 x.AuthToken = (string)(r.DecodeString()) 15093 } 15094 yyj10++ 15095 if yyhl10 { 15096 yyb10 = yyj10 > l 15097 } else { 15098 yyb10 = r.CheckBreak() 15099 } 15100 if yyb10 { 15101 r.ReadArrayEnd() 15102 return 15103 } 15104 r.ReadArrayElem() 15105 if r.TryDecodeAsNil() { 15106 x.WriteRequest.InternalRpcInfo.Forwarded = false 15107 } else { 15108 x.Forwarded = (bool)(r.DecodeBool()) 15109 } 15110 for { 15111 yyj10++ 15112 if yyhl10 { 15113 yyb10 = yyj10 > l 15114 } else { 15115 yyb10 = r.CheckBreak() 15116 } 15117 if yyb10 { 15118 break 15119 } 15120 r.ReadArrayElem() 15121 z.DecStructFieldNotFound(yyj10-1, "") 15122 } 15123 r.ReadArrayEnd() 15124 } 15125 15126 func (x *AutopilotSetConfigRequest) CodecEncodeSelf(e *codec1978.Encoder) { 15127 var h codecSelfer100 15128 z, r := codec1978.GenHelperEncoder(e) 15129 _, _, _ = h, z, r 15130 if x == nil { 15131 r.EncodeNil() 15132 } else { 15133 if false { 15134 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 15135 z.EncExtension(x, yyxt1) 15136 } else { 15137 yysep2 := !z.EncBinary() 15138 yy2arr2 := z.EncBasicHandle().StructToArray 15139 _, _ = yysep2, yy2arr2 15140 const yyr2 bool = false // struct tag has 'toArray' 15141 if yyr2 || yy2arr2 { 15142 r.WriteArrayStart(7) 15143 } else { 15144 r.WriteMapStart(7) 15145 } 15146 if yyr2 || yy2arr2 { 15147 r.WriteArrayElem() 15148 if false { 15149 } else { 15150 if z.EncBasicHandle().StringToRaw { 15151 r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) 15152 } else { 15153 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) 15154 } 15155 } 15156 } else { 15157 r.WriteMapElemKey() 15158 if z.IsJSONHandle() { 15159 z.WriteStr("\"Datacenter\"") 15160 } else { 15161 r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenter`) 15162 } 15163 r.WriteMapElemValue() 15164 if false { 15165 } else { 15166 if z.EncBasicHandle().StringToRaw { 15167 r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) 15168 } else { 15169 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) 15170 } 15171 } 15172 } 15173 if yyr2 || yy2arr2 { 15174 r.WriteArrayElem() 15175 yy7 := &x.Config 15176 yy7.CodecEncodeSelf(e) 15177 } else { 15178 r.WriteMapElemKey() 15179 if z.IsJSONHandle() { 15180 z.WriteStr("\"Config\"") 15181 } else { 15182 r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) 15183 } 15184 r.WriteMapElemValue() 15185 yy9 := &x.Config 15186 yy9.CodecEncodeSelf(e) 15187 } 15188 if yyr2 || yy2arr2 { 15189 r.WriteArrayElem() 15190 if false { 15191 } else { 15192 r.EncodeBool(bool(x.CAS)) 15193 } 15194 } else { 15195 r.WriteMapElemKey() 15196 if z.IsJSONHandle() { 15197 z.WriteStr("\"CAS\"") 15198 } else { 15199 r.EncodeStringEnc(codecSelferCcUTF8100, `CAS`) 15200 } 15201 r.WriteMapElemValue() 15202 if false { 15203 } else { 15204 r.EncodeBool(bool(x.CAS)) 15205 } 15206 } 15207 if yyr2 || yy2arr2 { 15208 r.WriteArrayElem() 15209 if false { 15210 } else { 15211 if z.EncBasicHandle().StringToRaw { 15212 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 15213 } else { 15214 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 15215 } 15216 } 15217 } else { 15218 r.WriteMapElemKey() 15219 if z.IsJSONHandle() { 15220 z.WriteStr("\"Region\"") 15221 } else { 15222 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 15223 } 15224 r.WriteMapElemValue() 15225 if false { 15226 } else { 15227 if z.EncBasicHandle().StringToRaw { 15228 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 15229 } else { 15230 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 15231 } 15232 } 15233 } 15234 if yyr2 || yy2arr2 { 15235 r.WriteArrayElem() 15236 if false { 15237 } else { 15238 if z.EncBasicHandle().StringToRaw { 15239 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 15240 } else { 15241 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 15242 } 15243 } 15244 } else { 15245 r.WriteMapElemKey() 15246 if z.IsJSONHandle() { 15247 z.WriteStr("\"Namespace\"") 15248 } else { 15249 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 15250 } 15251 r.WriteMapElemValue() 15252 if false { 15253 } else { 15254 if z.EncBasicHandle().StringToRaw { 15255 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 15256 } else { 15257 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 15258 } 15259 } 15260 } 15261 if yyr2 || yy2arr2 { 15262 r.WriteArrayElem() 15263 if false { 15264 } else { 15265 if z.EncBasicHandle().StringToRaw { 15266 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 15267 } else { 15268 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 15269 } 15270 } 15271 } else { 15272 r.WriteMapElemKey() 15273 if z.IsJSONHandle() { 15274 z.WriteStr("\"AuthToken\"") 15275 } else { 15276 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 15277 } 15278 r.WriteMapElemValue() 15279 if false { 15280 } else { 15281 if z.EncBasicHandle().StringToRaw { 15282 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 15283 } else { 15284 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 15285 } 15286 } 15287 } 15288 if yyr2 || yy2arr2 { 15289 r.WriteArrayElem() 15290 if false { 15291 } else { 15292 r.EncodeBool(bool(x.Forwarded)) 15293 } 15294 } else { 15295 r.WriteMapElemKey() 15296 if z.IsJSONHandle() { 15297 z.WriteStr("\"Forwarded\"") 15298 } else { 15299 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 15300 } 15301 r.WriteMapElemValue() 15302 if false { 15303 } else { 15304 r.EncodeBool(bool(x.Forwarded)) 15305 } 15306 } 15307 if yyr2 || yy2arr2 { 15308 r.WriteArrayEnd() 15309 } else { 15310 r.WriteMapEnd() 15311 } 15312 } 15313 } 15314 } 15315 15316 func (x *AutopilotSetConfigRequest) CodecDecodeSelf(d *codec1978.Decoder) { 15317 var h codecSelfer100 15318 z, r := codec1978.GenHelperDecoder(d) 15319 _, _, _ = h, z, r 15320 if false { 15321 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 15322 z.DecExtension(x, yyxt1) 15323 } else { 15324 yyct2 := r.ContainerType() 15325 if yyct2 == codecSelferValueTypeMap100 { 15326 yyl2 := r.ReadMapStart() 15327 if yyl2 == 0 { 15328 r.ReadMapEnd() 15329 } else { 15330 x.codecDecodeSelfFromMap(yyl2, d) 15331 } 15332 } else if yyct2 == codecSelferValueTypeArray100 { 15333 yyl2 := r.ReadArrayStart() 15334 if yyl2 == 0 { 15335 r.ReadArrayEnd() 15336 } else { 15337 x.codecDecodeSelfFromArray(yyl2, d) 15338 } 15339 } else { 15340 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 15341 } 15342 } 15343 } 15344 15345 func (x *AutopilotSetConfigRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 15346 var h codecSelfer100 15347 z, r := codec1978.GenHelperDecoder(d) 15348 _, _, _ = h, z, r 15349 var yyhl3 bool = l >= 0 15350 for yyj3 := 0; ; yyj3++ { 15351 if yyhl3 { 15352 if yyj3 >= l { 15353 break 15354 } 15355 } else { 15356 if r.CheckBreak() { 15357 break 15358 } 15359 } 15360 r.ReadMapElemKey() 15361 yys3 := z.StringView(r.DecodeStringAsBytes()) 15362 r.ReadMapElemValue() 15363 switch yys3 { 15364 case "Datacenter": 15365 if r.TryDecodeAsNil() { 15366 x.Datacenter = "" 15367 } else { 15368 x.Datacenter = (string)(r.DecodeString()) 15369 } 15370 case "Config": 15371 if r.TryDecodeAsNil() { 15372 x.Config = AutopilotConfig{} 15373 } else { 15374 x.Config.CodecDecodeSelf(d) 15375 } 15376 case "CAS": 15377 if r.TryDecodeAsNil() { 15378 x.CAS = false 15379 } else { 15380 x.CAS = (bool)(r.DecodeBool()) 15381 } 15382 case "Region": 15383 if r.TryDecodeAsNil() { 15384 x.WriteRequest.Region = "" 15385 } else { 15386 x.Region = (string)(r.DecodeString()) 15387 } 15388 case "Namespace": 15389 if r.TryDecodeAsNil() { 15390 x.WriteRequest.Namespace = "" 15391 } else { 15392 x.Namespace = (string)(r.DecodeString()) 15393 } 15394 case "AuthToken": 15395 if r.TryDecodeAsNil() { 15396 x.WriteRequest.AuthToken = "" 15397 } else { 15398 x.AuthToken = (string)(r.DecodeString()) 15399 } 15400 case "Forwarded": 15401 if r.TryDecodeAsNil() { 15402 x.WriteRequest.InternalRpcInfo.Forwarded = false 15403 } else { 15404 x.Forwarded = (bool)(r.DecodeBool()) 15405 } 15406 default: 15407 z.DecStructFieldNotFound(-1, yys3) 15408 } // end switch yys3 15409 } // end for yyj3 15410 r.ReadMapEnd() 15411 } 15412 15413 func (x *AutopilotSetConfigRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 15414 var h codecSelfer100 15415 z, r := codec1978.GenHelperDecoder(d) 15416 _, _, _ = h, z, r 15417 var yyj11 int 15418 var yyb11 bool 15419 var yyhl11 bool = l >= 0 15420 yyj11++ 15421 if yyhl11 { 15422 yyb11 = yyj11 > l 15423 } else { 15424 yyb11 = r.CheckBreak() 15425 } 15426 if yyb11 { 15427 r.ReadArrayEnd() 15428 return 15429 } 15430 r.ReadArrayElem() 15431 if r.TryDecodeAsNil() { 15432 x.Datacenter = "" 15433 } else { 15434 x.Datacenter = (string)(r.DecodeString()) 15435 } 15436 yyj11++ 15437 if yyhl11 { 15438 yyb11 = yyj11 > l 15439 } else { 15440 yyb11 = r.CheckBreak() 15441 } 15442 if yyb11 { 15443 r.ReadArrayEnd() 15444 return 15445 } 15446 r.ReadArrayElem() 15447 if r.TryDecodeAsNil() { 15448 x.Config = AutopilotConfig{} 15449 } else { 15450 x.Config.CodecDecodeSelf(d) 15451 } 15452 yyj11++ 15453 if yyhl11 { 15454 yyb11 = yyj11 > l 15455 } else { 15456 yyb11 = r.CheckBreak() 15457 } 15458 if yyb11 { 15459 r.ReadArrayEnd() 15460 return 15461 } 15462 r.ReadArrayElem() 15463 if r.TryDecodeAsNil() { 15464 x.CAS = false 15465 } else { 15466 x.CAS = (bool)(r.DecodeBool()) 15467 } 15468 yyj11++ 15469 if yyhl11 { 15470 yyb11 = yyj11 > l 15471 } else { 15472 yyb11 = r.CheckBreak() 15473 } 15474 if yyb11 { 15475 r.ReadArrayEnd() 15476 return 15477 } 15478 r.ReadArrayElem() 15479 if r.TryDecodeAsNil() { 15480 x.WriteRequest.Region = "" 15481 } else { 15482 x.Region = (string)(r.DecodeString()) 15483 } 15484 yyj11++ 15485 if yyhl11 { 15486 yyb11 = yyj11 > l 15487 } else { 15488 yyb11 = r.CheckBreak() 15489 } 15490 if yyb11 { 15491 r.ReadArrayEnd() 15492 return 15493 } 15494 r.ReadArrayElem() 15495 if r.TryDecodeAsNil() { 15496 x.WriteRequest.Namespace = "" 15497 } else { 15498 x.Namespace = (string)(r.DecodeString()) 15499 } 15500 yyj11++ 15501 if yyhl11 { 15502 yyb11 = yyj11 > l 15503 } else { 15504 yyb11 = r.CheckBreak() 15505 } 15506 if yyb11 { 15507 r.ReadArrayEnd() 15508 return 15509 } 15510 r.ReadArrayElem() 15511 if r.TryDecodeAsNil() { 15512 x.WriteRequest.AuthToken = "" 15513 } else { 15514 x.AuthToken = (string)(r.DecodeString()) 15515 } 15516 yyj11++ 15517 if yyhl11 { 15518 yyb11 = yyj11 > l 15519 } else { 15520 yyb11 = r.CheckBreak() 15521 } 15522 if yyb11 { 15523 r.ReadArrayEnd() 15524 return 15525 } 15526 r.ReadArrayElem() 15527 if r.TryDecodeAsNil() { 15528 x.WriteRequest.InternalRpcInfo.Forwarded = false 15529 } else { 15530 x.Forwarded = (bool)(r.DecodeBool()) 15531 } 15532 for { 15533 yyj11++ 15534 if yyhl11 { 15535 yyb11 = yyj11 > l 15536 } else { 15537 yyb11 = r.CheckBreak() 15538 } 15539 if yyb11 { 15540 break 15541 } 15542 r.ReadArrayElem() 15543 z.DecStructFieldNotFound(yyj11-1, "") 15544 } 15545 r.ReadArrayEnd() 15546 } 15547 15548 func (x *AutopilotConfig) CodecEncodeSelf(e *codec1978.Encoder) { 15549 var h codecSelfer100 15550 z, r := codec1978.GenHelperEncoder(e) 15551 _, _, _ = h, z, r 15552 if x == nil { 15553 r.EncodeNil() 15554 } else { 15555 if false { 15556 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 15557 z.EncExtension(x, yyxt1) 15558 } else { 15559 yysep2 := !z.EncBinary() 15560 yy2arr2 := z.EncBasicHandle().StructToArray 15561 _, _ = yysep2, yy2arr2 15562 const yyr2 bool = false // struct tag has 'toArray' 15563 if yyr2 || yy2arr2 { 15564 r.WriteArrayStart(10) 15565 } else { 15566 r.WriteMapStart(10) 15567 } 15568 if yyr2 || yy2arr2 { 15569 r.WriteArrayElem() 15570 if false { 15571 } else { 15572 r.EncodeBool(bool(x.CleanupDeadServers)) 15573 } 15574 } else { 15575 r.WriteMapElemKey() 15576 if z.IsJSONHandle() { 15577 z.WriteStr("\"CleanupDeadServers\"") 15578 } else { 15579 r.EncodeStringEnc(codecSelferCcUTF8100, `CleanupDeadServers`) 15580 } 15581 r.WriteMapElemValue() 15582 if false { 15583 } else { 15584 r.EncodeBool(bool(x.CleanupDeadServers)) 15585 } 15586 } 15587 if yyr2 || yy2arr2 { 15588 r.WriteArrayElem() 15589 if false { 15590 } else if yyxt7 := z.Extension(z.I2Rtid(x.ServerStabilizationTime)); yyxt7 != nil { 15591 z.EncExtension(x.ServerStabilizationTime, yyxt7) 15592 } else { 15593 r.EncodeInt(int64(x.ServerStabilizationTime)) 15594 } 15595 } else { 15596 r.WriteMapElemKey() 15597 if z.IsJSONHandle() { 15598 z.WriteStr("\"ServerStabilizationTime\"") 15599 } else { 15600 r.EncodeStringEnc(codecSelferCcUTF8100, `ServerStabilizationTime`) 15601 } 15602 r.WriteMapElemValue() 15603 if false { 15604 } else if yyxt8 := z.Extension(z.I2Rtid(x.ServerStabilizationTime)); yyxt8 != nil { 15605 z.EncExtension(x.ServerStabilizationTime, yyxt8) 15606 } else { 15607 r.EncodeInt(int64(x.ServerStabilizationTime)) 15608 } 15609 } 15610 if yyr2 || yy2arr2 { 15611 r.WriteArrayElem() 15612 if false { 15613 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContactThreshold)); yyxt10 != nil { 15614 z.EncExtension(x.LastContactThreshold, yyxt10) 15615 } else { 15616 r.EncodeInt(int64(x.LastContactThreshold)) 15617 } 15618 } else { 15619 r.WriteMapElemKey() 15620 if z.IsJSONHandle() { 15621 z.WriteStr("\"LastContactThreshold\"") 15622 } else { 15623 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContactThreshold`) 15624 } 15625 r.WriteMapElemValue() 15626 if false { 15627 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContactThreshold)); yyxt11 != nil { 15628 z.EncExtension(x.LastContactThreshold, yyxt11) 15629 } else { 15630 r.EncodeInt(int64(x.LastContactThreshold)) 15631 } 15632 } 15633 if yyr2 || yy2arr2 { 15634 r.WriteArrayElem() 15635 if false { 15636 } else { 15637 r.EncodeUint(uint64(x.MaxTrailingLogs)) 15638 } 15639 } else { 15640 r.WriteMapElemKey() 15641 if z.IsJSONHandle() { 15642 z.WriteStr("\"MaxTrailingLogs\"") 15643 } else { 15644 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxTrailingLogs`) 15645 } 15646 r.WriteMapElemValue() 15647 if false { 15648 } else { 15649 r.EncodeUint(uint64(x.MaxTrailingLogs)) 15650 } 15651 } 15652 if yyr2 || yy2arr2 { 15653 r.WriteArrayElem() 15654 if false { 15655 } else { 15656 r.EncodeUint(uint64(x.MinQuorum)) 15657 } 15658 } else { 15659 r.WriteMapElemKey() 15660 if z.IsJSONHandle() { 15661 z.WriteStr("\"MinQuorum\"") 15662 } else { 15663 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQuorum`) 15664 } 15665 r.WriteMapElemValue() 15666 if false { 15667 } else { 15668 r.EncodeUint(uint64(x.MinQuorum)) 15669 } 15670 } 15671 if yyr2 || yy2arr2 { 15672 r.WriteArrayElem() 15673 if false { 15674 } else { 15675 r.EncodeBool(bool(x.EnableRedundancyZones)) 15676 } 15677 } else { 15678 r.WriteMapElemKey() 15679 if z.IsJSONHandle() { 15680 z.WriteStr("\"EnableRedundancyZones\"") 15681 } else { 15682 r.EncodeStringEnc(codecSelferCcUTF8100, `EnableRedundancyZones`) 15683 } 15684 r.WriteMapElemValue() 15685 if false { 15686 } else { 15687 r.EncodeBool(bool(x.EnableRedundancyZones)) 15688 } 15689 } 15690 if yyr2 || yy2arr2 { 15691 r.WriteArrayElem() 15692 if false { 15693 } else { 15694 r.EncodeBool(bool(x.DisableUpgradeMigration)) 15695 } 15696 } else { 15697 r.WriteMapElemKey() 15698 if z.IsJSONHandle() { 15699 z.WriteStr("\"DisableUpgradeMigration\"") 15700 } else { 15701 r.EncodeStringEnc(codecSelferCcUTF8100, `DisableUpgradeMigration`) 15702 } 15703 r.WriteMapElemValue() 15704 if false { 15705 } else { 15706 r.EncodeBool(bool(x.DisableUpgradeMigration)) 15707 } 15708 } 15709 if yyr2 || yy2arr2 { 15710 r.WriteArrayElem() 15711 if false { 15712 } else { 15713 r.EncodeBool(bool(x.EnableCustomUpgrades)) 15714 } 15715 } else { 15716 r.WriteMapElemKey() 15717 if z.IsJSONHandle() { 15718 z.WriteStr("\"EnableCustomUpgrades\"") 15719 } else { 15720 r.EncodeStringEnc(codecSelferCcUTF8100, `EnableCustomUpgrades`) 15721 } 15722 r.WriteMapElemValue() 15723 if false { 15724 } else { 15725 r.EncodeBool(bool(x.EnableCustomUpgrades)) 15726 } 15727 } 15728 if yyr2 || yy2arr2 { 15729 r.WriteArrayElem() 15730 if false { 15731 } else { 15732 r.EncodeUint(uint64(x.CreateIndex)) 15733 } 15734 } else { 15735 r.WriteMapElemKey() 15736 if z.IsJSONHandle() { 15737 z.WriteStr("\"CreateIndex\"") 15738 } else { 15739 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 15740 } 15741 r.WriteMapElemValue() 15742 if false { 15743 } else { 15744 r.EncodeUint(uint64(x.CreateIndex)) 15745 } 15746 } 15747 if yyr2 || yy2arr2 { 15748 r.WriteArrayElem() 15749 if false { 15750 } else { 15751 r.EncodeUint(uint64(x.ModifyIndex)) 15752 } 15753 } else { 15754 r.WriteMapElemKey() 15755 if z.IsJSONHandle() { 15756 z.WriteStr("\"ModifyIndex\"") 15757 } else { 15758 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 15759 } 15760 r.WriteMapElemValue() 15761 if false { 15762 } else { 15763 r.EncodeUint(uint64(x.ModifyIndex)) 15764 } 15765 } 15766 if yyr2 || yy2arr2 { 15767 r.WriteArrayEnd() 15768 } else { 15769 r.WriteMapEnd() 15770 } 15771 } 15772 } 15773 } 15774 15775 func (x *AutopilotConfig) CodecDecodeSelf(d *codec1978.Decoder) { 15776 var h codecSelfer100 15777 z, r := codec1978.GenHelperDecoder(d) 15778 _, _, _ = h, z, r 15779 if false { 15780 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 15781 z.DecExtension(x, yyxt1) 15782 } else { 15783 yyct2 := r.ContainerType() 15784 if yyct2 == codecSelferValueTypeMap100 { 15785 yyl2 := r.ReadMapStart() 15786 if yyl2 == 0 { 15787 r.ReadMapEnd() 15788 } else { 15789 x.codecDecodeSelfFromMap(yyl2, d) 15790 } 15791 } else if yyct2 == codecSelferValueTypeArray100 { 15792 yyl2 := r.ReadArrayStart() 15793 if yyl2 == 0 { 15794 r.ReadArrayEnd() 15795 } else { 15796 x.codecDecodeSelfFromArray(yyl2, d) 15797 } 15798 } else { 15799 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 15800 } 15801 } 15802 } 15803 15804 func (x *AutopilotConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 15805 var h codecSelfer100 15806 z, r := codec1978.GenHelperDecoder(d) 15807 _, _, _ = h, z, r 15808 var yyhl3 bool = l >= 0 15809 for yyj3 := 0; ; yyj3++ { 15810 if yyhl3 { 15811 if yyj3 >= l { 15812 break 15813 } 15814 } else { 15815 if r.CheckBreak() { 15816 break 15817 } 15818 } 15819 r.ReadMapElemKey() 15820 yys3 := z.StringView(r.DecodeStringAsBytes()) 15821 r.ReadMapElemValue() 15822 switch yys3 { 15823 case "CleanupDeadServers": 15824 if r.TryDecodeAsNil() { 15825 x.CleanupDeadServers = false 15826 } else { 15827 x.CleanupDeadServers = (bool)(r.DecodeBool()) 15828 } 15829 case "ServerStabilizationTime": 15830 if r.TryDecodeAsNil() { 15831 x.ServerStabilizationTime = 0 15832 } else { 15833 if false { 15834 } else if yyxt6 := z.Extension(z.I2Rtid(x.ServerStabilizationTime)); yyxt6 != nil { 15835 z.DecExtension(x.ServerStabilizationTime, yyxt6) 15836 } else { 15837 x.ServerStabilizationTime = (time.Duration)(r.DecodeInt64()) 15838 } 15839 } 15840 case "LastContactThreshold": 15841 if r.TryDecodeAsNil() { 15842 x.LastContactThreshold = 0 15843 } else { 15844 if false { 15845 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContactThreshold)); yyxt8 != nil { 15846 z.DecExtension(x.LastContactThreshold, yyxt8) 15847 } else { 15848 x.LastContactThreshold = (time.Duration)(r.DecodeInt64()) 15849 } 15850 } 15851 case "MaxTrailingLogs": 15852 if r.TryDecodeAsNil() { 15853 x.MaxTrailingLogs = 0 15854 } else { 15855 x.MaxTrailingLogs = (uint64)(r.DecodeUint64()) 15856 } 15857 case "MinQuorum": 15858 if r.TryDecodeAsNil() { 15859 x.MinQuorum = 0 15860 } else { 15861 x.MinQuorum = (uint)(z.C.UintV(r.DecodeUint64(), codecSelferBitsize100)) 15862 } 15863 case "EnableRedundancyZones": 15864 if r.TryDecodeAsNil() { 15865 x.EnableRedundancyZones = false 15866 } else { 15867 x.EnableRedundancyZones = (bool)(r.DecodeBool()) 15868 } 15869 case "DisableUpgradeMigration": 15870 if r.TryDecodeAsNil() { 15871 x.DisableUpgradeMigration = false 15872 } else { 15873 x.DisableUpgradeMigration = (bool)(r.DecodeBool()) 15874 } 15875 case "EnableCustomUpgrades": 15876 if r.TryDecodeAsNil() { 15877 x.EnableCustomUpgrades = false 15878 } else { 15879 x.EnableCustomUpgrades = (bool)(r.DecodeBool()) 15880 } 15881 case "CreateIndex": 15882 if r.TryDecodeAsNil() { 15883 x.CreateIndex = 0 15884 } else { 15885 x.CreateIndex = (uint64)(r.DecodeUint64()) 15886 } 15887 case "ModifyIndex": 15888 if r.TryDecodeAsNil() { 15889 x.ModifyIndex = 0 15890 } else { 15891 x.ModifyIndex = (uint64)(r.DecodeUint64()) 15892 } 15893 default: 15894 z.DecStructFieldNotFound(-1, yys3) 15895 } // end switch yys3 15896 } // end for yyj3 15897 r.ReadMapEnd() 15898 } 15899 15900 func (x *AutopilotConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 15901 var h codecSelfer100 15902 z, r := codec1978.GenHelperDecoder(d) 15903 _, _, _ = h, z, r 15904 var yyj16 int 15905 var yyb16 bool 15906 var yyhl16 bool = l >= 0 15907 yyj16++ 15908 if yyhl16 { 15909 yyb16 = yyj16 > l 15910 } else { 15911 yyb16 = r.CheckBreak() 15912 } 15913 if yyb16 { 15914 r.ReadArrayEnd() 15915 return 15916 } 15917 r.ReadArrayElem() 15918 if r.TryDecodeAsNil() { 15919 x.CleanupDeadServers = false 15920 } else { 15921 x.CleanupDeadServers = (bool)(r.DecodeBool()) 15922 } 15923 yyj16++ 15924 if yyhl16 { 15925 yyb16 = yyj16 > l 15926 } else { 15927 yyb16 = r.CheckBreak() 15928 } 15929 if yyb16 { 15930 r.ReadArrayEnd() 15931 return 15932 } 15933 r.ReadArrayElem() 15934 if r.TryDecodeAsNil() { 15935 x.ServerStabilizationTime = 0 15936 } else { 15937 if false { 15938 } else if yyxt19 := z.Extension(z.I2Rtid(x.ServerStabilizationTime)); yyxt19 != nil { 15939 z.DecExtension(x.ServerStabilizationTime, yyxt19) 15940 } else { 15941 x.ServerStabilizationTime = (time.Duration)(r.DecodeInt64()) 15942 } 15943 } 15944 yyj16++ 15945 if yyhl16 { 15946 yyb16 = yyj16 > l 15947 } else { 15948 yyb16 = r.CheckBreak() 15949 } 15950 if yyb16 { 15951 r.ReadArrayEnd() 15952 return 15953 } 15954 r.ReadArrayElem() 15955 if r.TryDecodeAsNil() { 15956 x.LastContactThreshold = 0 15957 } else { 15958 if false { 15959 } else if yyxt21 := z.Extension(z.I2Rtid(x.LastContactThreshold)); yyxt21 != nil { 15960 z.DecExtension(x.LastContactThreshold, yyxt21) 15961 } else { 15962 x.LastContactThreshold = (time.Duration)(r.DecodeInt64()) 15963 } 15964 } 15965 yyj16++ 15966 if yyhl16 { 15967 yyb16 = yyj16 > l 15968 } else { 15969 yyb16 = r.CheckBreak() 15970 } 15971 if yyb16 { 15972 r.ReadArrayEnd() 15973 return 15974 } 15975 r.ReadArrayElem() 15976 if r.TryDecodeAsNil() { 15977 x.MaxTrailingLogs = 0 15978 } else { 15979 x.MaxTrailingLogs = (uint64)(r.DecodeUint64()) 15980 } 15981 yyj16++ 15982 if yyhl16 { 15983 yyb16 = yyj16 > l 15984 } else { 15985 yyb16 = r.CheckBreak() 15986 } 15987 if yyb16 { 15988 r.ReadArrayEnd() 15989 return 15990 } 15991 r.ReadArrayElem() 15992 if r.TryDecodeAsNil() { 15993 x.MinQuorum = 0 15994 } else { 15995 x.MinQuorum = (uint)(z.C.UintV(r.DecodeUint64(), codecSelferBitsize100)) 15996 } 15997 yyj16++ 15998 if yyhl16 { 15999 yyb16 = yyj16 > l 16000 } else { 16001 yyb16 = r.CheckBreak() 16002 } 16003 if yyb16 { 16004 r.ReadArrayEnd() 16005 return 16006 } 16007 r.ReadArrayElem() 16008 if r.TryDecodeAsNil() { 16009 x.EnableRedundancyZones = false 16010 } else { 16011 x.EnableRedundancyZones = (bool)(r.DecodeBool()) 16012 } 16013 yyj16++ 16014 if yyhl16 { 16015 yyb16 = yyj16 > l 16016 } else { 16017 yyb16 = r.CheckBreak() 16018 } 16019 if yyb16 { 16020 r.ReadArrayEnd() 16021 return 16022 } 16023 r.ReadArrayElem() 16024 if r.TryDecodeAsNil() { 16025 x.DisableUpgradeMigration = false 16026 } else { 16027 x.DisableUpgradeMigration = (bool)(r.DecodeBool()) 16028 } 16029 yyj16++ 16030 if yyhl16 { 16031 yyb16 = yyj16 > l 16032 } else { 16033 yyb16 = r.CheckBreak() 16034 } 16035 if yyb16 { 16036 r.ReadArrayEnd() 16037 return 16038 } 16039 r.ReadArrayElem() 16040 if r.TryDecodeAsNil() { 16041 x.EnableCustomUpgrades = false 16042 } else { 16043 x.EnableCustomUpgrades = (bool)(r.DecodeBool()) 16044 } 16045 yyj16++ 16046 if yyhl16 { 16047 yyb16 = yyj16 > l 16048 } else { 16049 yyb16 = r.CheckBreak() 16050 } 16051 if yyb16 { 16052 r.ReadArrayEnd() 16053 return 16054 } 16055 r.ReadArrayElem() 16056 if r.TryDecodeAsNil() { 16057 x.CreateIndex = 0 16058 } else { 16059 x.CreateIndex = (uint64)(r.DecodeUint64()) 16060 } 16061 yyj16++ 16062 if yyhl16 { 16063 yyb16 = yyj16 > l 16064 } else { 16065 yyb16 = r.CheckBreak() 16066 } 16067 if yyb16 { 16068 r.ReadArrayEnd() 16069 return 16070 } 16071 r.ReadArrayElem() 16072 if r.TryDecodeAsNil() { 16073 x.ModifyIndex = 0 16074 } else { 16075 x.ModifyIndex = (uint64)(r.DecodeUint64()) 16076 } 16077 for { 16078 yyj16++ 16079 if yyhl16 { 16080 yyb16 = yyj16 > l 16081 } else { 16082 yyb16 = r.CheckBreak() 16083 } 16084 if yyb16 { 16085 break 16086 } 16087 r.ReadArrayElem() 16088 z.DecStructFieldNotFound(yyj16-1, "") 16089 } 16090 r.ReadArrayEnd() 16091 } 16092 16093 func (x *SchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { 16094 var h codecSelfer100 16095 z, r := codec1978.GenHelperEncoder(e) 16096 _, _, _ = h, z, r 16097 if x == nil { 16098 r.EncodeNil() 16099 } else { 16100 if false { 16101 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 16102 z.EncExtension(x, yyxt1) 16103 } else { 16104 yysep2 := !z.EncBinary() 16105 yy2arr2 := z.EncBasicHandle().StructToArray 16106 _, _ = yysep2, yy2arr2 16107 const yyr2 bool = false // struct tag has 'toArray' 16108 if yyr2 || yy2arr2 { 16109 r.WriteArrayStart(3) 16110 } else { 16111 r.WriteMapStart(3) 16112 } 16113 if yyr2 || yy2arr2 { 16114 r.WriteArrayElem() 16115 yy4 := &x.PreemptionConfig 16116 yy4.CodecEncodeSelf(e) 16117 } else { 16118 r.WriteMapElemKey() 16119 if z.IsJSONHandle() { 16120 z.WriteStr("\"PreemptionConfig\"") 16121 } else { 16122 r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptionConfig`) 16123 } 16124 r.WriteMapElemValue() 16125 yy6 := &x.PreemptionConfig 16126 yy6.CodecEncodeSelf(e) 16127 } 16128 if yyr2 || yy2arr2 { 16129 r.WriteArrayElem() 16130 if false { 16131 } else { 16132 r.EncodeUint(uint64(x.CreateIndex)) 16133 } 16134 } else { 16135 r.WriteMapElemKey() 16136 if z.IsJSONHandle() { 16137 z.WriteStr("\"CreateIndex\"") 16138 } else { 16139 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 16140 } 16141 r.WriteMapElemValue() 16142 if false { 16143 } else { 16144 r.EncodeUint(uint64(x.CreateIndex)) 16145 } 16146 } 16147 if yyr2 || yy2arr2 { 16148 r.WriteArrayElem() 16149 if false { 16150 } else { 16151 r.EncodeUint(uint64(x.ModifyIndex)) 16152 } 16153 } else { 16154 r.WriteMapElemKey() 16155 if z.IsJSONHandle() { 16156 z.WriteStr("\"ModifyIndex\"") 16157 } else { 16158 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 16159 } 16160 r.WriteMapElemValue() 16161 if false { 16162 } else { 16163 r.EncodeUint(uint64(x.ModifyIndex)) 16164 } 16165 } 16166 if yyr2 || yy2arr2 { 16167 r.WriteArrayEnd() 16168 } else { 16169 r.WriteMapEnd() 16170 } 16171 } 16172 } 16173 } 16174 16175 func (x *SchedulerConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { 16176 var h codecSelfer100 16177 z, r := codec1978.GenHelperDecoder(d) 16178 _, _, _ = h, z, r 16179 if false { 16180 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 16181 z.DecExtension(x, yyxt1) 16182 } else { 16183 yyct2 := r.ContainerType() 16184 if yyct2 == codecSelferValueTypeMap100 { 16185 yyl2 := r.ReadMapStart() 16186 if yyl2 == 0 { 16187 r.ReadMapEnd() 16188 } else { 16189 x.codecDecodeSelfFromMap(yyl2, d) 16190 } 16191 } else if yyct2 == codecSelferValueTypeArray100 { 16192 yyl2 := r.ReadArrayStart() 16193 if yyl2 == 0 { 16194 r.ReadArrayEnd() 16195 } else { 16196 x.codecDecodeSelfFromArray(yyl2, d) 16197 } 16198 } else { 16199 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 16200 } 16201 } 16202 } 16203 16204 func (x *SchedulerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 16205 var h codecSelfer100 16206 z, r := codec1978.GenHelperDecoder(d) 16207 _, _, _ = h, z, r 16208 var yyhl3 bool = l >= 0 16209 for yyj3 := 0; ; yyj3++ { 16210 if yyhl3 { 16211 if yyj3 >= l { 16212 break 16213 } 16214 } else { 16215 if r.CheckBreak() { 16216 break 16217 } 16218 } 16219 r.ReadMapElemKey() 16220 yys3 := z.StringView(r.DecodeStringAsBytes()) 16221 r.ReadMapElemValue() 16222 switch yys3 { 16223 case "PreemptionConfig": 16224 if r.TryDecodeAsNil() { 16225 x.PreemptionConfig = PreemptionConfig{} 16226 } else { 16227 x.PreemptionConfig.CodecDecodeSelf(d) 16228 } 16229 case "CreateIndex": 16230 if r.TryDecodeAsNil() { 16231 x.CreateIndex = 0 16232 } else { 16233 x.CreateIndex = (uint64)(r.DecodeUint64()) 16234 } 16235 case "ModifyIndex": 16236 if r.TryDecodeAsNil() { 16237 x.ModifyIndex = 0 16238 } else { 16239 x.ModifyIndex = (uint64)(r.DecodeUint64()) 16240 } 16241 default: 16242 z.DecStructFieldNotFound(-1, yys3) 16243 } // end switch yys3 16244 } // end for yyj3 16245 r.ReadMapEnd() 16246 } 16247 16248 func (x *SchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 16249 var h codecSelfer100 16250 z, r := codec1978.GenHelperDecoder(d) 16251 _, _, _ = h, z, r 16252 var yyj7 int 16253 var yyb7 bool 16254 var yyhl7 bool = l >= 0 16255 yyj7++ 16256 if yyhl7 { 16257 yyb7 = yyj7 > l 16258 } else { 16259 yyb7 = r.CheckBreak() 16260 } 16261 if yyb7 { 16262 r.ReadArrayEnd() 16263 return 16264 } 16265 r.ReadArrayElem() 16266 if r.TryDecodeAsNil() { 16267 x.PreemptionConfig = PreemptionConfig{} 16268 } else { 16269 x.PreemptionConfig.CodecDecodeSelf(d) 16270 } 16271 yyj7++ 16272 if yyhl7 { 16273 yyb7 = yyj7 > l 16274 } else { 16275 yyb7 = r.CheckBreak() 16276 } 16277 if yyb7 { 16278 r.ReadArrayEnd() 16279 return 16280 } 16281 r.ReadArrayElem() 16282 if r.TryDecodeAsNil() { 16283 x.CreateIndex = 0 16284 } else { 16285 x.CreateIndex = (uint64)(r.DecodeUint64()) 16286 } 16287 yyj7++ 16288 if yyhl7 { 16289 yyb7 = yyj7 > l 16290 } else { 16291 yyb7 = r.CheckBreak() 16292 } 16293 if yyb7 { 16294 r.ReadArrayEnd() 16295 return 16296 } 16297 r.ReadArrayElem() 16298 if r.TryDecodeAsNil() { 16299 x.ModifyIndex = 0 16300 } else { 16301 x.ModifyIndex = (uint64)(r.DecodeUint64()) 16302 } 16303 for { 16304 yyj7++ 16305 if yyhl7 { 16306 yyb7 = yyj7 > l 16307 } else { 16308 yyb7 = r.CheckBreak() 16309 } 16310 if yyb7 { 16311 break 16312 } 16313 r.ReadArrayElem() 16314 z.DecStructFieldNotFound(yyj7-1, "") 16315 } 16316 r.ReadArrayEnd() 16317 } 16318 16319 func (x *SchedulerConfigurationResponse) CodecEncodeSelf(e *codec1978.Encoder) { 16320 var h codecSelfer100 16321 z, r := codec1978.GenHelperEncoder(e) 16322 _, _, _ = h, z, r 16323 if x == nil { 16324 r.EncodeNil() 16325 } else { 16326 if false { 16327 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 16328 z.EncExtension(x, yyxt1) 16329 } else { 16330 yysep2 := !z.EncBinary() 16331 yy2arr2 := z.EncBasicHandle().StructToArray 16332 _, _ = yysep2, yy2arr2 16333 const yyr2 bool = false // struct tag has 'toArray' 16334 if yyr2 || yy2arr2 { 16335 r.WriteArrayStart(4) 16336 } else { 16337 r.WriteMapStart(4) 16338 } 16339 var yyn3 bool 16340 if x.SchedulerConfig == nil { 16341 yyn3 = true 16342 goto LABEL3 16343 } 16344 LABEL3: 16345 if yyr2 || yy2arr2 { 16346 if yyn3 { 16347 r.WriteArrayElem() 16348 r.EncodeNil() 16349 } else { 16350 r.WriteArrayElem() 16351 if x.SchedulerConfig == nil { 16352 r.EncodeNil() 16353 } else { 16354 x.SchedulerConfig.CodecEncodeSelf(e) 16355 } 16356 } 16357 } else { 16358 r.WriteMapElemKey() 16359 if z.IsJSONHandle() { 16360 z.WriteStr("\"SchedulerConfig\"") 16361 } else { 16362 r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulerConfig`) 16363 } 16364 r.WriteMapElemValue() 16365 if yyn3 { 16366 r.EncodeNil() 16367 } else { 16368 if x.SchedulerConfig == nil { 16369 r.EncodeNil() 16370 } else { 16371 x.SchedulerConfig.CodecEncodeSelf(e) 16372 } 16373 } 16374 } 16375 if yyr2 || yy2arr2 { 16376 r.WriteArrayElem() 16377 if false { 16378 } else { 16379 r.EncodeUint(uint64(x.Index)) 16380 } 16381 } else { 16382 r.WriteMapElemKey() 16383 if z.IsJSONHandle() { 16384 z.WriteStr("\"Index\"") 16385 } else { 16386 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 16387 } 16388 r.WriteMapElemValue() 16389 if false { 16390 } else { 16391 r.EncodeUint(uint64(x.Index)) 16392 } 16393 } 16394 if yyr2 || yy2arr2 { 16395 r.WriteArrayElem() 16396 if false { 16397 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 16398 z.EncExtension(x.LastContact, yyxt10) 16399 } else { 16400 r.EncodeInt(int64(x.LastContact)) 16401 } 16402 } else { 16403 r.WriteMapElemKey() 16404 if z.IsJSONHandle() { 16405 z.WriteStr("\"LastContact\"") 16406 } else { 16407 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 16408 } 16409 r.WriteMapElemValue() 16410 if false { 16411 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 16412 z.EncExtension(x.LastContact, yyxt11) 16413 } else { 16414 r.EncodeInt(int64(x.LastContact)) 16415 } 16416 } 16417 if yyr2 || yy2arr2 { 16418 r.WriteArrayElem() 16419 if false { 16420 } else { 16421 r.EncodeBool(bool(x.KnownLeader)) 16422 } 16423 } else { 16424 r.WriteMapElemKey() 16425 if z.IsJSONHandle() { 16426 z.WriteStr("\"KnownLeader\"") 16427 } else { 16428 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 16429 } 16430 r.WriteMapElemValue() 16431 if false { 16432 } else { 16433 r.EncodeBool(bool(x.KnownLeader)) 16434 } 16435 } 16436 if yyr2 || yy2arr2 { 16437 r.WriteArrayEnd() 16438 } else { 16439 r.WriteMapEnd() 16440 } 16441 } 16442 } 16443 } 16444 16445 func (x *SchedulerConfigurationResponse) CodecDecodeSelf(d *codec1978.Decoder) { 16446 var h codecSelfer100 16447 z, r := codec1978.GenHelperDecoder(d) 16448 _, _, _ = h, z, r 16449 if false { 16450 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 16451 z.DecExtension(x, yyxt1) 16452 } else { 16453 yyct2 := r.ContainerType() 16454 if yyct2 == codecSelferValueTypeMap100 { 16455 yyl2 := r.ReadMapStart() 16456 if yyl2 == 0 { 16457 r.ReadMapEnd() 16458 } else { 16459 x.codecDecodeSelfFromMap(yyl2, d) 16460 } 16461 } else if yyct2 == codecSelferValueTypeArray100 { 16462 yyl2 := r.ReadArrayStart() 16463 if yyl2 == 0 { 16464 r.ReadArrayEnd() 16465 } else { 16466 x.codecDecodeSelfFromArray(yyl2, d) 16467 } 16468 } else { 16469 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 16470 } 16471 } 16472 } 16473 16474 func (x *SchedulerConfigurationResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 16475 var h codecSelfer100 16476 z, r := codec1978.GenHelperDecoder(d) 16477 _, _, _ = h, z, r 16478 var yyhl3 bool = l >= 0 16479 for yyj3 := 0; ; yyj3++ { 16480 if yyhl3 { 16481 if yyj3 >= l { 16482 break 16483 } 16484 } else { 16485 if r.CheckBreak() { 16486 break 16487 } 16488 } 16489 r.ReadMapElemKey() 16490 yys3 := z.StringView(r.DecodeStringAsBytes()) 16491 r.ReadMapElemValue() 16492 switch yys3 { 16493 case "SchedulerConfig": 16494 if r.TryDecodeAsNil() { 16495 if true && x.SchedulerConfig != nil { 16496 x.SchedulerConfig = nil 16497 } 16498 } else { 16499 if x.SchedulerConfig == nil { 16500 x.SchedulerConfig = new(SchedulerConfiguration) 16501 } 16502 16503 x.SchedulerConfig.CodecDecodeSelf(d) 16504 } 16505 case "Index": 16506 if r.TryDecodeAsNil() { 16507 x.QueryMeta.Index = 0 16508 } else { 16509 x.Index = (uint64)(r.DecodeUint64()) 16510 } 16511 case "LastContact": 16512 if r.TryDecodeAsNil() { 16513 x.QueryMeta.LastContact = 0 16514 } else { 16515 if false { 16516 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 16517 z.DecExtension(x.LastContact, yyxt7) 16518 } else { 16519 x.LastContact = (time.Duration)(r.DecodeInt64()) 16520 } 16521 } 16522 case "KnownLeader": 16523 if r.TryDecodeAsNil() { 16524 x.QueryMeta.KnownLeader = false 16525 } else { 16526 x.KnownLeader = (bool)(r.DecodeBool()) 16527 } 16528 default: 16529 z.DecStructFieldNotFound(-1, yys3) 16530 } // end switch yys3 16531 } // end for yyj3 16532 r.ReadMapEnd() 16533 } 16534 16535 func (x *SchedulerConfigurationResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 16536 var h codecSelfer100 16537 z, r := codec1978.GenHelperDecoder(d) 16538 _, _, _ = h, z, r 16539 var yyj9 int 16540 var yyb9 bool 16541 var yyhl9 bool = l >= 0 16542 yyj9++ 16543 if yyhl9 { 16544 yyb9 = yyj9 > l 16545 } else { 16546 yyb9 = r.CheckBreak() 16547 } 16548 if yyb9 { 16549 r.ReadArrayEnd() 16550 return 16551 } 16552 r.ReadArrayElem() 16553 if r.TryDecodeAsNil() { 16554 if true && x.SchedulerConfig != nil { 16555 x.SchedulerConfig = nil 16556 } 16557 } else { 16558 if x.SchedulerConfig == nil { 16559 x.SchedulerConfig = new(SchedulerConfiguration) 16560 } 16561 16562 x.SchedulerConfig.CodecDecodeSelf(d) 16563 } 16564 yyj9++ 16565 if yyhl9 { 16566 yyb9 = yyj9 > l 16567 } else { 16568 yyb9 = r.CheckBreak() 16569 } 16570 if yyb9 { 16571 r.ReadArrayEnd() 16572 return 16573 } 16574 r.ReadArrayElem() 16575 if r.TryDecodeAsNil() { 16576 x.QueryMeta.Index = 0 16577 } else { 16578 x.Index = (uint64)(r.DecodeUint64()) 16579 } 16580 yyj9++ 16581 if yyhl9 { 16582 yyb9 = yyj9 > l 16583 } else { 16584 yyb9 = r.CheckBreak() 16585 } 16586 if yyb9 { 16587 r.ReadArrayEnd() 16588 return 16589 } 16590 r.ReadArrayElem() 16591 if r.TryDecodeAsNil() { 16592 x.QueryMeta.LastContact = 0 16593 } else { 16594 if false { 16595 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 16596 z.DecExtension(x.LastContact, yyxt13) 16597 } else { 16598 x.LastContact = (time.Duration)(r.DecodeInt64()) 16599 } 16600 } 16601 yyj9++ 16602 if yyhl9 { 16603 yyb9 = yyj9 > l 16604 } else { 16605 yyb9 = r.CheckBreak() 16606 } 16607 if yyb9 { 16608 r.ReadArrayEnd() 16609 return 16610 } 16611 r.ReadArrayElem() 16612 if r.TryDecodeAsNil() { 16613 x.QueryMeta.KnownLeader = false 16614 } else { 16615 x.KnownLeader = (bool)(r.DecodeBool()) 16616 } 16617 for { 16618 yyj9++ 16619 if yyhl9 { 16620 yyb9 = yyj9 > l 16621 } else { 16622 yyb9 = r.CheckBreak() 16623 } 16624 if yyb9 { 16625 break 16626 } 16627 r.ReadArrayElem() 16628 z.DecStructFieldNotFound(yyj9-1, "") 16629 } 16630 r.ReadArrayEnd() 16631 } 16632 16633 func (x *SchedulerSetConfigurationResponse) CodecEncodeSelf(e *codec1978.Encoder) { 16634 var h codecSelfer100 16635 z, r := codec1978.GenHelperEncoder(e) 16636 _, _, _ = h, z, r 16637 if x == nil { 16638 r.EncodeNil() 16639 } else { 16640 if false { 16641 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 16642 z.EncExtension(x, yyxt1) 16643 } else { 16644 yysep2 := !z.EncBinary() 16645 yy2arr2 := z.EncBasicHandle().StructToArray 16646 _, _ = yysep2, yy2arr2 16647 const yyr2 bool = false // struct tag has 'toArray' 16648 if yyr2 || yy2arr2 { 16649 r.WriteArrayStart(2) 16650 } else { 16651 r.WriteMapStart(2) 16652 } 16653 if yyr2 || yy2arr2 { 16654 r.WriteArrayElem() 16655 if false { 16656 } else { 16657 r.EncodeBool(bool(x.Updated)) 16658 } 16659 } else { 16660 r.WriteMapElemKey() 16661 if z.IsJSONHandle() { 16662 z.WriteStr("\"Updated\"") 16663 } else { 16664 r.EncodeStringEnc(codecSelferCcUTF8100, `Updated`) 16665 } 16666 r.WriteMapElemValue() 16667 if false { 16668 } else { 16669 r.EncodeBool(bool(x.Updated)) 16670 } 16671 } 16672 if yyr2 || yy2arr2 { 16673 r.WriteArrayElem() 16674 if false { 16675 } else { 16676 r.EncodeUint(uint64(x.Index)) 16677 } 16678 } else { 16679 r.WriteMapElemKey() 16680 if z.IsJSONHandle() { 16681 z.WriteStr("\"Index\"") 16682 } else { 16683 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 16684 } 16685 r.WriteMapElemValue() 16686 if false { 16687 } else { 16688 r.EncodeUint(uint64(x.Index)) 16689 } 16690 } 16691 if yyr2 || yy2arr2 { 16692 r.WriteArrayEnd() 16693 } else { 16694 r.WriteMapEnd() 16695 } 16696 } 16697 } 16698 } 16699 16700 func (x *SchedulerSetConfigurationResponse) CodecDecodeSelf(d *codec1978.Decoder) { 16701 var h codecSelfer100 16702 z, r := codec1978.GenHelperDecoder(d) 16703 _, _, _ = h, z, r 16704 if false { 16705 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 16706 z.DecExtension(x, yyxt1) 16707 } else { 16708 yyct2 := r.ContainerType() 16709 if yyct2 == codecSelferValueTypeMap100 { 16710 yyl2 := r.ReadMapStart() 16711 if yyl2 == 0 { 16712 r.ReadMapEnd() 16713 } else { 16714 x.codecDecodeSelfFromMap(yyl2, d) 16715 } 16716 } else if yyct2 == codecSelferValueTypeArray100 { 16717 yyl2 := r.ReadArrayStart() 16718 if yyl2 == 0 { 16719 r.ReadArrayEnd() 16720 } else { 16721 x.codecDecodeSelfFromArray(yyl2, d) 16722 } 16723 } else { 16724 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 16725 } 16726 } 16727 } 16728 16729 func (x *SchedulerSetConfigurationResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 16730 var h codecSelfer100 16731 z, r := codec1978.GenHelperDecoder(d) 16732 _, _, _ = h, z, r 16733 var yyhl3 bool = l >= 0 16734 for yyj3 := 0; ; yyj3++ { 16735 if yyhl3 { 16736 if yyj3 >= l { 16737 break 16738 } 16739 } else { 16740 if r.CheckBreak() { 16741 break 16742 } 16743 } 16744 r.ReadMapElemKey() 16745 yys3 := z.StringView(r.DecodeStringAsBytes()) 16746 r.ReadMapElemValue() 16747 switch yys3 { 16748 case "Updated": 16749 if r.TryDecodeAsNil() { 16750 x.Updated = false 16751 } else { 16752 x.Updated = (bool)(r.DecodeBool()) 16753 } 16754 case "Index": 16755 if r.TryDecodeAsNil() { 16756 x.WriteMeta.Index = 0 16757 } else { 16758 x.Index = (uint64)(r.DecodeUint64()) 16759 } 16760 default: 16761 z.DecStructFieldNotFound(-1, yys3) 16762 } // end switch yys3 16763 } // end for yyj3 16764 r.ReadMapEnd() 16765 } 16766 16767 func (x *SchedulerSetConfigurationResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 16768 var h codecSelfer100 16769 z, r := codec1978.GenHelperDecoder(d) 16770 _, _, _ = h, z, r 16771 var yyj6 int 16772 var yyb6 bool 16773 var yyhl6 bool = l >= 0 16774 yyj6++ 16775 if yyhl6 { 16776 yyb6 = yyj6 > l 16777 } else { 16778 yyb6 = r.CheckBreak() 16779 } 16780 if yyb6 { 16781 r.ReadArrayEnd() 16782 return 16783 } 16784 r.ReadArrayElem() 16785 if r.TryDecodeAsNil() { 16786 x.Updated = false 16787 } else { 16788 x.Updated = (bool)(r.DecodeBool()) 16789 } 16790 yyj6++ 16791 if yyhl6 { 16792 yyb6 = yyj6 > l 16793 } else { 16794 yyb6 = r.CheckBreak() 16795 } 16796 if yyb6 { 16797 r.ReadArrayEnd() 16798 return 16799 } 16800 r.ReadArrayElem() 16801 if r.TryDecodeAsNil() { 16802 x.WriteMeta.Index = 0 16803 } else { 16804 x.Index = (uint64)(r.DecodeUint64()) 16805 } 16806 for { 16807 yyj6++ 16808 if yyhl6 { 16809 yyb6 = yyj6 > l 16810 } else { 16811 yyb6 = r.CheckBreak() 16812 } 16813 if yyb6 { 16814 break 16815 } 16816 r.ReadArrayElem() 16817 z.DecStructFieldNotFound(yyj6-1, "") 16818 } 16819 r.ReadArrayEnd() 16820 } 16821 16822 func (x *PreemptionConfig) CodecEncodeSelf(e *codec1978.Encoder) { 16823 var h codecSelfer100 16824 z, r := codec1978.GenHelperEncoder(e) 16825 _, _, _ = h, z, r 16826 if x == nil { 16827 r.EncodeNil() 16828 } else { 16829 if false { 16830 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 16831 z.EncExtension(x, yyxt1) 16832 } else { 16833 yysep2 := !z.EncBinary() 16834 yy2arr2 := z.EncBasicHandle().StructToArray 16835 _, _ = yysep2, yy2arr2 16836 const yyr2 bool = false // struct tag has 'toArray' 16837 if yyr2 || yy2arr2 { 16838 r.WriteArrayStart(3) 16839 } else { 16840 r.WriteMapStart(3) 16841 } 16842 if yyr2 || yy2arr2 { 16843 r.WriteArrayElem() 16844 if false { 16845 } else { 16846 r.EncodeBool(bool(x.SystemSchedulerEnabled)) 16847 } 16848 } else { 16849 r.WriteMapElemKey() 16850 if z.IsJSONHandle() { 16851 z.WriteStr("\"SystemSchedulerEnabled\"") 16852 } else { 16853 r.EncodeStringEnc(codecSelferCcUTF8100, `SystemSchedulerEnabled`) 16854 } 16855 r.WriteMapElemValue() 16856 if false { 16857 } else { 16858 r.EncodeBool(bool(x.SystemSchedulerEnabled)) 16859 } 16860 } 16861 if yyr2 || yy2arr2 { 16862 r.WriteArrayElem() 16863 if false { 16864 } else { 16865 r.EncodeBool(bool(x.BatchSchedulerEnabled)) 16866 } 16867 } else { 16868 r.WriteMapElemKey() 16869 if z.IsJSONHandle() { 16870 z.WriteStr("\"BatchSchedulerEnabled\"") 16871 } else { 16872 r.EncodeStringEnc(codecSelferCcUTF8100, `BatchSchedulerEnabled`) 16873 } 16874 r.WriteMapElemValue() 16875 if false { 16876 } else { 16877 r.EncodeBool(bool(x.BatchSchedulerEnabled)) 16878 } 16879 } 16880 if yyr2 || yy2arr2 { 16881 r.WriteArrayElem() 16882 if false { 16883 } else { 16884 r.EncodeBool(bool(x.ServiceSchedulerEnabled)) 16885 } 16886 } else { 16887 r.WriteMapElemKey() 16888 if z.IsJSONHandle() { 16889 z.WriteStr("\"ServiceSchedulerEnabled\"") 16890 } else { 16891 r.EncodeStringEnc(codecSelferCcUTF8100, `ServiceSchedulerEnabled`) 16892 } 16893 r.WriteMapElemValue() 16894 if false { 16895 } else { 16896 r.EncodeBool(bool(x.ServiceSchedulerEnabled)) 16897 } 16898 } 16899 if yyr2 || yy2arr2 { 16900 r.WriteArrayEnd() 16901 } else { 16902 r.WriteMapEnd() 16903 } 16904 } 16905 } 16906 } 16907 16908 func (x *PreemptionConfig) CodecDecodeSelf(d *codec1978.Decoder) { 16909 var h codecSelfer100 16910 z, r := codec1978.GenHelperDecoder(d) 16911 _, _, _ = h, z, r 16912 if false { 16913 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 16914 z.DecExtension(x, yyxt1) 16915 } else { 16916 yyct2 := r.ContainerType() 16917 if yyct2 == codecSelferValueTypeMap100 { 16918 yyl2 := r.ReadMapStart() 16919 if yyl2 == 0 { 16920 r.ReadMapEnd() 16921 } else { 16922 x.codecDecodeSelfFromMap(yyl2, d) 16923 } 16924 } else if yyct2 == codecSelferValueTypeArray100 { 16925 yyl2 := r.ReadArrayStart() 16926 if yyl2 == 0 { 16927 r.ReadArrayEnd() 16928 } else { 16929 x.codecDecodeSelfFromArray(yyl2, d) 16930 } 16931 } else { 16932 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 16933 } 16934 } 16935 } 16936 16937 func (x *PreemptionConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 16938 var h codecSelfer100 16939 z, r := codec1978.GenHelperDecoder(d) 16940 _, _, _ = h, z, r 16941 var yyhl3 bool = l >= 0 16942 for yyj3 := 0; ; yyj3++ { 16943 if yyhl3 { 16944 if yyj3 >= l { 16945 break 16946 } 16947 } else { 16948 if r.CheckBreak() { 16949 break 16950 } 16951 } 16952 r.ReadMapElemKey() 16953 yys3 := z.StringView(r.DecodeStringAsBytes()) 16954 r.ReadMapElemValue() 16955 switch yys3 { 16956 case "SystemSchedulerEnabled": 16957 if r.TryDecodeAsNil() { 16958 x.SystemSchedulerEnabled = false 16959 } else { 16960 x.SystemSchedulerEnabled = (bool)(r.DecodeBool()) 16961 } 16962 case "BatchSchedulerEnabled": 16963 if r.TryDecodeAsNil() { 16964 x.BatchSchedulerEnabled = false 16965 } else { 16966 x.BatchSchedulerEnabled = (bool)(r.DecodeBool()) 16967 } 16968 case "ServiceSchedulerEnabled": 16969 if r.TryDecodeAsNil() { 16970 x.ServiceSchedulerEnabled = false 16971 } else { 16972 x.ServiceSchedulerEnabled = (bool)(r.DecodeBool()) 16973 } 16974 default: 16975 z.DecStructFieldNotFound(-1, yys3) 16976 } // end switch yys3 16977 } // end for yyj3 16978 r.ReadMapEnd() 16979 } 16980 16981 func (x *PreemptionConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 16982 var h codecSelfer100 16983 z, r := codec1978.GenHelperDecoder(d) 16984 _, _, _ = h, z, r 16985 var yyj7 int 16986 var yyb7 bool 16987 var yyhl7 bool = l >= 0 16988 yyj7++ 16989 if yyhl7 { 16990 yyb7 = yyj7 > l 16991 } else { 16992 yyb7 = r.CheckBreak() 16993 } 16994 if yyb7 { 16995 r.ReadArrayEnd() 16996 return 16997 } 16998 r.ReadArrayElem() 16999 if r.TryDecodeAsNil() { 17000 x.SystemSchedulerEnabled = false 17001 } else { 17002 x.SystemSchedulerEnabled = (bool)(r.DecodeBool()) 17003 } 17004 yyj7++ 17005 if yyhl7 { 17006 yyb7 = yyj7 > l 17007 } else { 17008 yyb7 = r.CheckBreak() 17009 } 17010 if yyb7 { 17011 r.ReadArrayEnd() 17012 return 17013 } 17014 r.ReadArrayElem() 17015 if r.TryDecodeAsNil() { 17016 x.BatchSchedulerEnabled = false 17017 } else { 17018 x.BatchSchedulerEnabled = (bool)(r.DecodeBool()) 17019 } 17020 yyj7++ 17021 if yyhl7 { 17022 yyb7 = yyj7 > l 17023 } else { 17024 yyb7 = r.CheckBreak() 17025 } 17026 if yyb7 { 17027 r.ReadArrayEnd() 17028 return 17029 } 17030 r.ReadArrayElem() 17031 if r.TryDecodeAsNil() { 17032 x.ServiceSchedulerEnabled = false 17033 } else { 17034 x.ServiceSchedulerEnabled = (bool)(r.DecodeBool()) 17035 } 17036 for { 17037 yyj7++ 17038 if yyhl7 { 17039 yyb7 = yyj7 > l 17040 } else { 17041 yyb7 = r.CheckBreak() 17042 } 17043 if yyb7 { 17044 break 17045 } 17046 r.ReadArrayElem() 17047 z.DecStructFieldNotFound(yyj7-1, "") 17048 } 17049 r.ReadArrayEnd() 17050 } 17051 17052 func (x *SchedulerSetConfigRequest) CodecEncodeSelf(e *codec1978.Encoder) { 17053 var h codecSelfer100 17054 z, r := codec1978.GenHelperEncoder(e) 17055 _, _, _ = h, z, r 17056 if x == nil { 17057 r.EncodeNil() 17058 } else { 17059 if false { 17060 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 17061 z.EncExtension(x, yyxt1) 17062 } else { 17063 yysep2 := !z.EncBinary() 17064 yy2arr2 := z.EncBasicHandle().StructToArray 17065 _, _ = yysep2, yy2arr2 17066 const yyr2 bool = false // struct tag has 'toArray' 17067 if yyr2 || yy2arr2 { 17068 r.WriteArrayStart(6) 17069 } else { 17070 r.WriteMapStart(6) 17071 } 17072 if yyr2 || yy2arr2 { 17073 r.WriteArrayElem() 17074 yy4 := &x.Config 17075 yy4.CodecEncodeSelf(e) 17076 } else { 17077 r.WriteMapElemKey() 17078 if z.IsJSONHandle() { 17079 z.WriteStr("\"Config\"") 17080 } else { 17081 r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) 17082 } 17083 r.WriteMapElemValue() 17084 yy6 := &x.Config 17085 yy6.CodecEncodeSelf(e) 17086 } 17087 if yyr2 || yy2arr2 { 17088 r.WriteArrayElem() 17089 if false { 17090 } else { 17091 r.EncodeBool(bool(x.CAS)) 17092 } 17093 } else { 17094 r.WriteMapElemKey() 17095 if z.IsJSONHandle() { 17096 z.WriteStr("\"CAS\"") 17097 } else { 17098 r.EncodeStringEnc(codecSelferCcUTF8100, `CAS`) 17099 } 17100 r.WriteMapElemValue() 17101 if false { 17102 } else { 17103 r.EncodeBool(bool(x.CAS)) 17104 } 17105 } 17106 if yyr2 || yy2arr2 { 17107 r.WriteArrayElem() 17108 if false { 17109 } else { 17110 if z.EncBasicHandle().StringToRaw { 17111 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 17112 } else { 17113 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 17114 } 17115 } 17116 } else { 17117 r.WriteMapElemKey() 17118 if z.IsJSONHandle() { 17119 z.WriteStr("\"Region\"") 17120 } else { 17121 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 17122 } 17123 r.WriteMapElemValue() 17124 if false { 17125 } else { 17126 if z.EncBasicHandle().StringToRaw { 17127 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 17128 } else { 17129 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 17130 } 17131 } 17132 } 17133 if yyr2 || yy2arr2 { 17134 r.WriteArrayElem() 17135 if false { 17136 } else { 17137 if z.EncBasicHandle().StringToRaw { 17138 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 17139 } else { 17140 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 17141 } 17142 } 17143 } else { 17144 r.WriteMapElemKey() 17145 if z.IsJSONHandle() { 17146 z.WriteStr("\"Namespace\"") 17147 } else { 17148 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 17149 } 17150 r.WriteMapElemValue() 17151 if false { 17152 } else { 17153 if z.EncBasicHandle().StringToRaw { 17154 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 17155 } else { 17156 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 17157 } 17158 } 17159 } 17160 if yyr2 || yy2arr2 { 17161 r.WriteArrayElem() 17162 if false { 17163 } else { 17164 if z.EncBasicHandle().StringToRaw { 17165 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 17166 } else { 17167 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 17168 } 17169 } 17170 } else { 17171 r.WriteMapElemKey() 17172 if z.IsJSONHandle() { 17173 z.WriteStr("\"AuthToken\"") 17174 } else { 17175 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 17176 } 17177 r.WriteMapElemValue() 17178 if false { 17179 } else { 17180 if z.EncBasicHandle().StringToRaw { 17181 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 17182 } else { 17183 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 17184 } 17185 } 17186 } 17187 if yyr2 || yy2arr2 { 17188 r.WriteArrayElem() 17189 if false { 17190 } else { 17191 r.EncodeBool(bool(x.Forwarded)) 17192 } 17193 } else { 17194 r.WriteMapElemKey() 17195 if z.IsJSONHandle() { 17196 z.WriteStr("\"Forwarded\"") 17197 } else { 17198 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 17199 } 17200 r.WriteMapElemValue() 17201 if false { 17202 } else { 17203 r.EncodeBool(bool(x.Forwarded)) 17204 } 17205 } 17206 if yyr2 || yy2arr2 { 17207 r.WriteArrayEnd() 17208 } else { 17209 r.WriteMapEnd() 17210 } 17211 } 17212 } 17213 } 17214 17215 func (x *SchedulerSetConfigRequest) CodecDecodeSelf(d *codec1978.Decoder) { 17216 var h codecSelfer100 17217 z, r := codec1978.GenHelperDecoder(d) 17218 _, _, _ = h, z, r 17219 if false { 17220 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 17221 z.DecExtension(x, yyxt1) 17222 } else { 17223 yyct2 := r.ContainerType() 17224 if yyct2 == codecSelferValueTypeMap100 { 17225 yyl2 := r.ReadMapStart() 17226 if yyl2 == 0 { 17227 r.ReadMapEnd() 17228 } else { 17229 x.codecDecodeSelfFromMap(yyl2, d) 17230 } 17231 } else if yyct2 == codecSelferValueTypeArray100 { 17232 yyl2 := r.ReadArrayStart() 17233 if yyl2 == 0 { 17234 r.ReadArrayEnd() 17235 } else { 17236 x.codecDecodeSelfFromArray(yyl2, d) 17237 } 17238 } else { 17239 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 17240 } 17241 } 17242 } 17243 17244 func (x *SchedulerSetConfigRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 17245 var h codecSelfer100 17246 z, r := codec1978.GenHelperDecoder(d) 17247 _, _, _ = h, z, r 17248 var yyhl3 bool = l >= 0 17249 for yyj3 := 0; ; yyj3++ { 17250 if yyhl3 { 17251 if yyj3 >= l { 17252 break 17253 } 17254 } else { 17255 if r.CheckBreak() { 17256 break 17257 } 17258 } 17259 r.ReadMapElemKey() 17260 yys3 := z.StringView(r.DecodeStringAsBytes()) 17261 r.ReadMapElemValue() 17262 switch yys3 { 17263 case "Config": 17264 if r.TryDecodeAsNil() { 17265 x.Config = SchedulerConfiguration{} 17266 } else { 17267 x.Config.CodecDecodeSelf(d) 17268 } 17269 case "CAS": 17270 if r.TryDecodeAsNil() { 17271 x.CAS = false 17272 } else { 17273 x.CAS = (bool)(r.DecodeBool()) 17274 } 17275 case "Region": 17276 if r.TryDecodeAsNil() { 17277 x.WriteRequest.Region = "" 17278 } else { 17279 x.Region = (string)(r.DecodeString()) 17280 } 17281 case "Namespace": 17282 if r.TryDecodeAsNil() { 17283 x.WriteRequest.Namespace = "" 17284 } else { 17285 x.Namespace = (string)(r.DecodeString()) 17286 } 17287 case "AuthToken": 17288 if r.TryDecodeAsNil() { 17289 x.WriteRequest.AuthToken = "" 17290 } else { 17291 x.AuthToken = (string)(r.DecodeString()) 17292 } 17293 case "Forwarded": 17294 if r.TryDecodeAsNil() { 17295 x.WriteRequest.InternalRpcInfo.Forwarded = false 17296 } else { 17297 x.Forwarded = (bool)(r.DecodeBool()) 17298 } 17299 default: 17300 z.DecStructFieldNotFound(-1, yys3) 17301 } // end switch yys3 17302 } // end for yyj3 17303 r.ReadMapEnd() 17304 } 17305 17306 func (x *SchedulerSetConfigRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 17307 var h codecSelfer100 17308 z, r := codec1978.GenHelperDecoder(d) 17309 _, _, _ = h, z, r 17310 var yyj10 int 17311 var yyb10 bool 17312 var yyhl10 bool = l >= 0 17313 yyj10++ 17314 if yyhl10 { 17315 yyb10 = yyj10 > l 17316 } else { 17317 yyb10 = r.CheckBreak() 17318 } 17319 if yyb10 { 17320 r.ReadArrayEnd() 17321 return 17322 } 17323 r.ReadArrayElem() 17324 if r.TryDecodeAsNil() { 17325 x.Config = SchedulerConfiguration{} 17326 } else { 17327 x.Config.CodecDecodeSelf(d) 17328 } 17329 yyj10++ 17330 if yyhl10 { 17331 yyb10 = yyj10 > l 17332 } else { 17333 yyb10 = r.CheckBreak() 17334 } 17335 if yyb10 { 17336 r.ReadArrayEnd() 17337 return 17338 } 17339 r.ReadArrayElem() 17340 if r.TryDecodeAsNil() { 17341 x.CAS = false 17342 } else { 17343 x.CAS = (bool)(r.DecodeBool()) 17344 } 17345 yyj10++ 17346 if yyhl10 { 17347 yyb10 = yyj10 > l 17348 } else { 17349 yyb10 = r.CheckBreak() 17350 } 17351 if yyb10 { 17352 r.ReadArrayEnd() 17353 return 17354 } 17355 r.ReadArrayElem() 17356 if r.TryDecodeAsNil() { 17357 x.WriteRequest.Region = "" 17358 } else { 17359 x.Region = (string)(r.DecodeString()) 17360 } 17361 yyj10++ 17362 if yyhl10 { 17363 yyb10 = yyj10 > l 17364 } else { 17365 yyb10 = r.CheckBreak() 17366 } 17367 if yyb10 { 17368 r.ReadArrayEnd() 17369 return 17370 } 17371 r.ReadArrayElem() 17372 if r.TryDecodeAsNil() { 17373 x.WriteRequest.Namespace = "" 17374 } else { 17375 x.Namespace = (string)(r.DecodeString()) 17376 } 17377 yyj10++ 17378 if yyhl10 { 17379 yyb10 = yyj10 > l 17380 } else { 17381 yyb10 = r.CheckBreak() 17382 } 17383 if yyb10 { 17384 r.ReadArrayEnd() 17385 return 17386 } 17387 r.ReadArrayElem() 17388 if r.TryDecodeAsNil() { 17389 x.WriteRequest.AuthToken = "" 17390 } else { 17391 x.AuthToken = (string)(r.DecodeString()) 17392 } 17393 yyj10++ 17394 if yyhl10 { 17395 yyb10 = yyj10 > l 17396 } else { 17397 yyb10 = r.CheckBreak() 17398 } 17399 if yyb10 { 17400 r.ReadArrayEnd() 17401 return 17402 } 17403 r.ReadArrayElem() 17404 if r.TryDecodeAsNil() { 17405 x.WriteRequest.InternalRpcInfo.Forwarded = false 17406 } else { 17407 x.Forwarded = (bool)(r.DecodeBool()) 17408 } 17409 for { 17410 yyj10++ 17411 if yyhl10 { 17412 yyb10 = yyj10 > l 17413 } else { 17414 yyb10 = r.CheckBreak() 17415 } 17416 if yyb10 { 17417 break 17418 } 17419 r.ReadArrayElem() 17420 z.DecStructFieldNotFound(yyj10-1, "") 17421 } 17422 r.ReadArrayEnd() 17423 } 17424 17425 func (x *SIToken) CodecEncodeSelf(e *codec1978.Encoder) { 17426 var h codecSelfer100 17427 z, r := codec1978.GenHelperEncoder(e) 17428 _, _, _ = h, z, r 17429 if x == nil { 17430 r.EncodeNil() 17431 } else { 17432 if false { 17433 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 17434 z.EncExtension(x, yyxt1) 17435 } else { 17436 yysep2 := !z.EncBinary() 17437 yy2arr2 := z.EncBasicHandle().StructToArray 17438 _, _ = yysep2, yy2arr2 17439 const yyr2 bool = false // struct tag has 'toArray' 17440 if yyr2 || yy2arr2 { 17441 r.WriteArrayStart(3) 17442 } else { 17443 r.WriteMapStart(3) 17444 } 17445 if yyr2 || yy2arr2 { 17446 r.WriteArrayElem() 17447 if false { 17448 } else { 17449 if z.EncBasicHandle().StringToRaw { 17450 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) 17451 } else { 17452 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) 17453 } 17454 } 17455 } else { 17456 r.WriteMapElemKey() 17457 if z.IsJSONHandle() { 17458 z.WriteStr("\"TaskName\"") 17459 } else { 17460 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskName`) 17461 } 17462 r.WriteMapElemValue() 17463 if false { 17464 } else { 17465 if z.EncBasicHandle().StringToRaw { 17466 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) 17467 } else { 17468 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) 17469 } 17470 } 17471 } 17472 if yyr2 || yy2arr2 { 17473 r.WriteArrayElem() 17474 if false { 17475 } else { 17476 if z.EncBasicHandle().StringToRaw { 17477 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 17478 } else { 17479 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 17480 } 17481 } 17482 } else { 17483 r.WriteMapElemKey() 17484 if z.IsJSONHandle() { 17485 z.WriteStr("\"AccessorID\"") 17486 } else { 17487 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) 17488 } 17489 r.WriteMapElemValue() 17490 if false { 17491 } else { 17492 if z.EncBasicHandle().StringToRaw { 17493 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 17494 } else { 17495 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 17496 } 17497 } 17498 } 17499 if yyr2 || yy2arr2 { 17500 r.WriteArrayElem() 17501 if false { 17502 } else { 17503 if z.EncBasicHandle().StringToRaw { 17504 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 17505 } else { 17506 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 17507 } 17508 } 17509 } else { 17510 r.WriteMapElemKey() 17511 if z.IsJSONHandle() { 17512 z.WriteStr("\"SecretID\"") 17513 } else { 17514 r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) 17515 } 17516 r.WriteMapElemValue() 17517 if false { 17518 } else { 17519 if z.EncBasicHandle().StringToRaw { 17520 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 17521 } else { 17522 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 17523 } 17524 } 17525 } 17526 if yyr2 || yy2arr2 { 17527 r.WriteArrayEnd() 17528 } else { 17529 r.WriteMapEnd() 17530 } 17531 } 17532 } 17533 } 17534 17535 func (x *SIToken) CodecDecodeSelf(d *codec1978.Decoder) { 17536 var h codecSelfer100 17537 z, r := codec1978.GenHelperDecoder(d) 17538 _, _, _ = h, z, r 17539 if false { 17540 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 17541 z.DecExtension(x, yyxt1) 17542 } else { 17543 yyct2 := r.ContainerType() 17544 if yyct2 == codecSelferValueTypeMap100 { 17545 yyl2 := r.ReadMapStart() 17546 if yyl2 == 0 { 17547 r.ReadMapEnd() 17548 } else { 17549 x.codecDecodeSelfFromMap(yyl2, d) 17550 } 17551 } else if yyct2 == codecSelferValueTypeArray100 { 17552 yyl2 := r.ReadArrayStart() 17553 if yyl2 == 0 { 17554 r.ReadArrayEnd() 17555 } else { 17556 x.codecDecodeSelfFromArray(yyl2, d) 17557 } 17558 } else { 17559 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 17560 } 17561 } 17562 } 17563 17564 func (x *SIToken) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 17565 var h codecSelfer100 17566 z, r := codec1978.GenHelperDecoder(d) 17567 _, _, _ = h, z, r 17568 var yyhl3 bool = l >= 0 17569 for yyj3 := 0; ; yyj3++ { 17570 if yyhl3 { 17571 if yyj3 >= l { 17572 break 17573 } 17574 } else { 17575 if r.CheckBreak() { 17576 break 17577 } 17578 } 17579 r.ReadMapElemKey() 17580 yys3 := z.StringView(r.DecodeStringAsBytes()) 17581 r.ReadMapElemValue() 17582 switch yys3 { 17583 case "TaskName": 17584 if r.TryDecodeAsNil() { 17585 x.TaskName = "" 17586 } else { 17587 x.TaskName = (string)(r.DecodeString()) 17588 } 17589 case "AccessorID": 17590 if r.TryDecodeAsNil() { 17591 x.AccessorID = "" 17592 } else { 17593 x.AccessorID = (string)(r.DecodeString()) 17594 } 17595 case "SecretID": 17596 if r.TryDecodeAsNil() { 17597 x.SecretID = "" 17598 } else { 17599 x.SecretID = (string)(r.DecodeString()) 17600 } 17601 default: 17602 z.DecStructFieldNotFound(-1, yys3) 17603 } // end switch yys3 17604 } // end for yyj3 17605 r.ReadMapEnd() 17606 } 17607 17608 func (x *SIToken) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 17609 var h codecSelfer100 17610 z, r := codec1978.GenHelperDecoder(d) 17611 _, _, _ = h, z, r 17612 var yyj7 int 17613 var yyb7 bool 17614 var yyhl7 bool = l >= 0 17615 yyj7++ 17616 if yyhl7 { 17617 yyb7 = yyj7 > l 17618 } else { 17619 yyb7 = r.CheckBreak() 17620 } 17621 if yyb7 { 17622 r.ReadArrayEnd() 17623 return 17624 } 17625 r.ReadArrayElem() 17626 if r.TryDecodeAsNil() { 17627 x.TaskName = "" 17628 } else { 17629 x.TaskName = (string)(r.DecodeString()) 17630 } 17631 yyj7++ 17632 if yyhl7 { 17633 yyb7 = yyj7 > l 17634 } else { 17635 yyb7 = r.CheckBreak() 17636 } 17637 if yyb7 { 17638 r.ReadArrayEnd() 17639 return 17640 } 17641 r.ReadArrayElem() 17642 if r.TryDecodeAsNil() { 17643 x.AccessorID = "" 17644 } else { 17645 x.AccessorID = (string)(r.DecodeString()) 17646 } 17647 yyj7++ 17648 if yyhl7 { 17649 yyb7 = yyj7 > l 17650 } else { 17651 yyb7 = r.CheckBreak() 17652 } 17653 if yyb7 { 17654 r.ReadArrayEnd() 17655 return 17656 } 17657 r.ReadArrayElem() 17658 if r.TryDecodeAsNil() { 17659 x.SecretID = "" 17660 } else { 17661 x.SecretID = (string)(r.DecodeString()) 17662 } 17663 for { 17664 yyj7++ 17665 if yyhl7 { 17666 yyb7 = yyj7 > l 17667 } else { 17668 yyb7 = r.CheckBreak() 17669 } 17670 if yyb7 { 17671 break 17672 } 17673 r.ReadArrayElem() 17674 z.DecStructFieldNotFound(yyj7-1, "") 17675 } 17676 r.ReadArrayEnd() 17677 } 17678 17679 func (x *SITokenAccessor) CodecEncodeSelf(e *codec1978.Encoder) { 17680 var h codecSelfer100 17681 z, r := codec1978.GenHelperEncoder(e) 17682 _, _, _ = h, z, r 17683 if x == nil { 17684 r.EncodeNil() 17685 } else { 17686 if false { 17687 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 17688 z.EncExtension(x, yyxt1) 17689 } else { 17690 yysep2 := !z.EncBinary() 17691 yy2arr2 := z.EncBasicHandle().StructToArray 17692 _, _ = yysep2, yy2arr2 17693 const yyr2 bool = false // struct tag has 'toArray' 17694 if yyr2 || yy2arr2 { 17695 r.WriteArrayStart(5) 17696 } else { 17697 r.WriteMapStart(5) 17698 } 17699 if yyr2 || yy2arr2 { 17700 r.WriteArrayElem() 17701 if false { 17702 } else { 17703 if z.EncBasicHandle().StringToRaw { 17704 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 17705 } else { 17706 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 17707 } 17708 } 17709 } else { 17710 r.WriteMapElemKey() 17711 if z.IsJSONHandle() { 17712 z.WriteStr("\"NodeID\"") 17713 } else { 17714 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 17715 } 17716 r.WriteMapElemValue() 17717 if false { 17718 } else { 17719 if z.EncBasicHandle().StringToRaw { 17720 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 17721 } else { 17722 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 17723 } 17724 } 17725 } 17726 if yyr2 || yy2arr2 { 17727 r.WriteArrayElem() 17728 if false { 17729 } else { 17730 if z.EncBasicHandle().StringToRaw { 17731 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 17732 } else { 17733 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 17734 } 17735 } 17736 } else { 17737 r.WriteMapElemKey() 17738 if z.IsJSONHandle() { 17739 z.WriteStr("\"AllocID\"") 17740 } else { 17741 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) 17742 } 17743 r.WriteMapElemValue() 17744 if false { 17745 } else { 17746 if z.EncBasicHandle().StringToRaw { 17747 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 17748 } else { 17749 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 17750 } 17751 } 17752 } 17753 if yyr2 || yy2arr2 { 17754 r.WriteArrayElem() 17755 if false { 17756 } else { 17757 if z.EncBasicHandle().StringToRaw { 17758 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 17759 } else { 17760 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 17761 } 17762 } 17763 } else { 17764 r.WriteMapElemKey() 17765 if z.IsJSONHandle() { 17766 z.WriteStr("\"AccessorID\"") 17767 } else { 17768 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) 17769 } 17770 r.WriteMapElemValue() 17771 if false { 17772 } else { 17773 if z.EncBasicHandle().StringToRaw { 17774 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 17775 } else { 17776 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 17777 } 17778 } 17779 } 17780 if yyr2 || yy2arr2 { 17781 r.WriteArrayElem() 17782 if false { 17783 } else { 17784 if z.EncBasicHandle().StringToRaw { 17785 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) 17786 } else { 17787 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) 17788 } 17789 } 17790 } else { 17791 r.WriteMapElemKey() 17792 if z.IsJSONHandle() { 17793 z.WriteStr("\"TaskName\"") 17794 } else { 17795 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskName`) 17796 } 17797 r.WriteMapElemValue() 17798 if false { 17799 } else { 17800 if z.EncBasicHandle().StringToRaw { 17801 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) 17802 } else { 17803 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) 17804 } 17805 } 17806 } 17807 if yyr2 || yy2arr2 { 17808 r.WriteArrayElem() 17809 if false { 17810 } else { 17811 r.EncodeUint(uint64(x.CreateIndex)) 17812 } 17813 } else { 17814 r.WriteMapElemKey() 17815 if z.IsJSONHandle() { 17816 z.WriteStr("\"CreateIndex\"") 17817 } else { 17818 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 17819 } 17820 r.WriteMapElemValue() 17821 if false { 17822 } else { 17823 r.EncodeUint(uint64(x.CreateIndex)) 17824 } 17825 } 17826 if yyr2 || yy2arr2 { 17827 r.WriteArrayEnd() 17828 } else { 17829 r.WriteMapEnd() 17830 } 17831 } 17832 } 17833 } 17834 17835 func (x *SITokenAccessor) CodecDecodeSelf(d *codec1978.Decoder) { 17836 var h codecSelfer100 17837 z, r := codec1978.GenHelperDecoder(d) 17838 _, _, _ = h, z, r 17839 if false { 17840 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 17841 z.DecExtension(x, yyxt1) 17842 } else { 17843 yyct2 := r.ContainerType() 17844 if yyct2 == codecSelferValueTypeMap100 { 17845 yyl2 := r.ReadMapStart() 17846 if yyl2 == 0 { 17847 r.ReadMapEnd() 17848 } else { 17849 x.codecDecodeSelfFromMap(yyl2, d) 17850 } 17851 } else if yyct2 == codecSelferValueTypeArray100 { 17852 yyl2 := r.ReadArrayStart() 17853 if yyl2 == 0 { 17854 r.ReadArrayEnd() 17855 } else { 17856 x.codecDecodeSelfFromArray(yyl2, d) 17857 } 17858 } else { 17859 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 17860 } 17861 } 17862 } 17863 17864 func (x *SITokenAccessor) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 17865 var h codecSelfer100 17866 z, r := codec1978.GenHelperDecoder(d) 17867 _, _, _ = h, z, r 17868 var yyhl3 bool = l >= 0 17869 for yyj3 := 0; ; yyj3++ { 17870 if yyhl3 { 17871 if yyj3 >= l { 17872 break 17873 } 17874 } else { 17875 if r.CheckBreak() { 17876 break 17877 } 17878 } 17879 r.ReadMapElemKey() 17880 yys3 := z.StringView(r.DecodeStringAsBytes()) 17881 r.ReadMapElemValue() 17882 switch yys3 { 17883 case "NodeID": 17884 if r.TryDecodeAsNil() { 17885 x.NodeID = "" 17886 } else { 17887 x.NodeID = (string)(r.DecodeString()) 17888 } 17889 case "AllocID": 17890 if r.TryDecodeAsNil() { 17891 x.AllocID = "" 17892 } else { 17893 x.AllocID = (string)(r.DecodeString()) 17894 } 17895 case "AccessorID": 17896 if r.TryDecodeAsNil() { 17897 x.AccessorID = "" 17898 } else { 17899 x.AccessorID = (string)(r.DecodeString()) 17900 } 17901 case "TaskName": 17902 if r.TryDecodeAsNil() { 17903 x.TaskName = "" 17904 } else { 17905 x.TaskName = (string)(r.DecodeString()) 17906 } 17907 case "CreateIndex": 17908 if r.TryDecodeAsNil() { 17909 x.CreateIndex = 0 17910 } else { 17911 x.CreateIndex = (uint64)(r.DecodeUint64()) 17912 } 17913 default: 17914 z.DecStructFieldNotFound(-1, yys3) 17915 } // end switch yys3 17916 } // end for yyj3 17917 r.ReadMapEnd() 17918 } 17919 17920 func (x *SITokenAccessor) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 17921 var h codecSelfer100 17922 z, r := codec1978.GenHelperDecoder(d) 17923 _, _, _ = h, z, r 17924 var yyj9 int 17925 var yyb9 bool 17926 var yyhl9 bool = l >= 0 17927 yyj9++ 17928 if yyhl9 { 17929 yyb9 = yyj9 > l 17930 } else { 17931 yyb9 = r.CheckBreak() 17932 } 17933 if yyb9 { 17934 r.ReadArrayEnd() 17935 return 17936 } 17937 r.ReadArrayElem() 17938 if r.TryDecodeAsNil() { 17939 x.NodeID = "" 17940 } else { 17941 x.NodeID = (string)(r.DecodeString()) 17942 } 17943 yyj9++ 17944 if yyhl9 { 17945 yyb9 = yyj9 > l 17946 } else { 17947 yyb9 = r.CheckBreak() 17948 } 17949 if yyb9 { 17950 r.ReadArrayEnd() 17951 return 17952 } 17953 r.ReadArrayElem() 17954 if r.TryDecodeAsNil() { 17955 x.AllocID = "" 17956 } else { 17957 x.AllocID = (string)(r.DecodeString()) 17958 } 17959 yyj9++ 17960 if yyhl9 { 17961 yyb9 = yyj9 > l 17962 } else { 17963 yyb9 = r.CheckBreak() 17964 } 17965 if yyb9 { 17966 r.ReadArrayEnd() 17967 return 17968 } 17969 r.ReadArrayElem() 17970 if r.TryDecodeAsNil() { 17971 x.AccessorID = "" 17972 } else { 17973 x.AccessorID = (string)(r.DecodeString()) 17974 } 17975 yyj9++ 17976 if yyhl9 { 17977 yyb9 = yyj9 > l 17978 } else { 17979 yyb9 = r.CheckBreak() 17980 } 17981 if yyb9 { 17982 r.ReadArrayEnd() 17983 return 17984 } 17985 r.ReadArrayElem() 17986 if r.TryDecodeAsNil() { 17987 x.TaskName = "" 17988 } else { 17989 x.TaskName = (string)(r.DecodeString()) 17990 } 17991 yyj9++ 17992 if yyhl9 { 17993 yyb9 = yyj9 > l 17994 } else { 17995 yyb9 = r.CheckBreak() 17996 } 17997 if yyb9 { 17998 r.ReadArrayEnd() 17999 return 18000 } 18001 r.ReadArrayElem() 18002 if r.TryDecodeAsNil() { 18003 x.CreateIndex = 0 18004 } else { 18005 x.CreateIndex = (uint64)(r.DecodeUint64()) 18006 } 18007 for { 18008 yyj9++ 18009 if yyhl9 { 18010 yyb9 = yyj9 > l 18011 } else { 18012 yyb9 = r.CheckBreak() 18013 } 18014 if yyb9 { 18015 break 18016 } 18017 r.ReadArrayElem() 18018 z.DecStructFieldNotFound(yyj9-1, "") 18019 } 18020 r.ReadArrayEnd() 18021 } 18022 18023 func (x *SITokenAccessorsRequest) CodecEncodeSelf(e *codec1978.Encoder) { 18024 var h codecSelfer100 18025 z, r := codec1978.GenHelperEncoder(e) 18026 _, _, _ = h, z, r 18027 if x == nil { 18028 r.EncodeNil() 18029 } else { 18030 if false { 18031 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 18032 z.EncExtension(x, yyxt1) 18033 } else { 18034 yysep2 := !z.EncBinary() 18035 yy2arr2 := z.EncBasicHandle().StructToArray 18036 _, _ = yysep2, yy2arr2 18037 const yyr2 bool = false // struct tag has 'toArray' 18038 if yyr2 || yy2arr2 { 18039 r.WriteArrayStart(1) 18040 } else { 18041 r.WriteMapStart(1) 18042 } 18043 if yyr2 || yy2arr2 { 18044 r.WriteArrayElem() 18045 if x.Accessors == nil { 18046 r.EncodeNil() 18047 } else { 18048 if false { 18049 } else { 18050 h.encSlicePtrtoSITokenAccessor(([]*SITokenAccessor)(x.Accessors), e) 18051 } 18052 } 18053 } else { 18054 r.WriteMapElemKey() 18055 if z.IsJSONHandle() { 18056 z.WriteStr("\"Accessors\"") 18057 } else { 18058 r.EncodeStringEnc(codecSelferCcUTF8100, `Accessors`) 18059 } 18060 r.WriteMapElemValue() 18061 if x.Accessors == nil { 18062 r.EncodeNil() 18063 } else { 18064 if false { 18065 } else { 18066 h.encSlicePtrtoSITokenAccessor(([]*SITokenAccessor)(x.Accessors), e) 18067 } 18068 } 18069 } 18070 if yyr2 || yy2arr2 { 18071 r.WriteArrayEnd() 18072 } else { 18073 r.WriteMapEnd() 18074 } 18075 } 18076 } 18077 } 18078 18079 func (x *SITokenAccessorsRequest) CodecDecodeSelf(d *codec1978.Decoder) { 18080 var h codecSelfer100 18081 z, r := codec1978.GenHelperDecoder(d) 18082 _, _, _ = h, z, r 18083 if false { 18084 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 18085 z.DecExtension(x, yyxt1) 18086 } else { 18087 yyct2 := r.ContainerType() 18088 if yyct2 == codecSelferValueTypeMap100 { 18089 yyl2 := r.ReadMapStart() 18090 if yyl2 == 0 { 18091 r.ReadMapEnd() 18092 } else { 18093 x.codecDecodeSelfFromMap(yyl2, d) 18094 } 18095 } else if yyct2 == codecSelferValueTypeArray100 { 18096 yyl2 := r.ReadArrayStart() 18097 if yyl2 == 0 { 18098 r.ReadArrayEnd() 18099 } else { 18100 x.codecDecodeSelfFromArray(yyl2, d) 18101 } 18102 } else { 18103 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 18104 } 18105 } 18106 } 18107 18108 func (x *SITokenAccessorsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 18109 var h codecSelfer100 18110 z, r := codec1978.GenHelperDecoder(d) 18111 _, _, _ = h, z, r 18112 var yyhl3 bool = l >= 0 18113 for yyj3 := 0; ; yyj3++ { 18114 if yyhl3 { 18115 if yyj3 >= l { 18116 break 18117 } 18118 } else { 18119 if r.CheckBreak() { 18120 break 18121 } 18122 } 18123 r.ReadMapElemKey() 18124 yys3 := z.StringView(r.DecodeStringAsBytes()) 18125 r.ReadMapElemValue() 18126 switch yys3 { 18127 case "Accessors": 18128 if r.TryDecodeAsNil() { 18129 x.Accessors = nil 18130 } else { 18131 if false { 18132 } else { 18133 h.decSlicePtrtoSITokenAccessor((*[]*SITokenAccessor)(&x.Accessors), d) 18134 } 18135 } 18136 default: 18137 z.DecStructFieldNotFound(-1, yys3) 18138 } // end switch yys3 18139 } // end for yyj3 18140 r.ReadMapEnd() 18141 } 18142 18143 func (x *SITokenAccessorsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 18144 var h codecSelfer100 18145 z, r := codec1978.GenHelperDecoder(d) 18146 _, _, _ = h, z, r 18147 var yyj6 int 18148 var yyb6 bool 18149 var yyhl6 bool = l >= 0 18150 yyj6++ 18151 if yyhl6 { 18152 yyb6 = yyj6 > l 18153 } else { 18154 yyb6 = r.CheckBreak() 18155 } 18156 if yyb6 { 18157 r.ReadArrayEnd() 18158 return 18159 } 18160 r.ReadArrayElem() 18161 if r.TryDecodeAsNil() { 18162 x.Accessors = nil 18163 } else { 18164 if false { 18165 } else { 18166 h.decSlicePtrtoSITokenAccessor((*[]*SITokenAccessor)(&x.Accessors), d) 18167 } 18168 } 18169 for { 18170 yyj6++ 18171 if yyhl6 { 18172 yyb6 = yyj6 > l 18173 } else { 18174 yyb6 = r.CheckBreak() 18175 } 18176 if yyb6 { 18177 break 18178 } 18179 r.ReadArrayElem() 18180 z.DecStructFieldNotFound(yyj6-1, "") 18181 } 18182 r.ReadArrayEnd() 18183 } 18184 18185 func (x *DeriveSITokenRequest) CodecEncodeSelf(e *codec1978.Encoder) { 18186 var h codecSelfer100 18187 z, r := codec1978.GenHelperEncoder(e) 18188 _, _, _ = h, z, r 18189 if x == nil { 18190 r.EncodeNil() 18191 } else { 18192 if false { 18193 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 18194 z.EncExtension(x, yyxt1) 18195 } else { 18196 yysep2 := !z.EncBinary() 18197 yy2arr2 := z.EncBasicHandle().StructToArray 18198 _, _ = yysep2, yy2arr2 18199 const yyr2 bool = false // struct tag has 'toArray' 18200 if yyr2 || yy2arr2 { 18201 r.WriteArrayStart(12) 18202 } else { 18203 r.WriteMapStart(12) 18204 } 18205 if yyr2 || yy2arr2 { 18206 r.WriteArrayElem() 18207 if false { 18208 } else { 18209 if z.EncBasicHandle().StringToRaw { 18210 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 18211 } else { 18212 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 18213 } 18214 } 18215 } else { 18216 r.WriteMapElemKey() 18217 if z.IsJSONHandle() { 18218 z.WriteStr("\"NodeID\"") 18219 } else { 18220 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 18221 } 18222 r.WriteMapElemValue() 18223 if false { 18224 } else { 18225 if z.EncBasicHandle().StringToRaw { 18226 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 18227 } else { 18228 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 18229 } 18230 } 18231 } 18232 if yyr2 || yy2arr2 { 18233 r.WriteArrayElem() 18234 if false { 18235 } else { 18236 if z.EncBasicHandle().StringToRaw { 18237 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 18238 } else { 18239 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 18240 } 18241 } 18242 } else { 18243 r.WriteMapElemKey() 18244 if z.IsJSONHandle() { 18245 z.WriteStr("\"SecretID\"") 18246 } else { 18247 r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) 18248 } 18249 r.WriteMapElemValue() 18250 if false { 18251 } else { 18252 if z.EncBasicHandle().StringToRaw { 18253 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 18254 } else { 18255 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 18256 } 18257 } 18258 } 18259 if yyr2 || yy2arr2 { 18260 r.WriteArrayElem() 18261 if false { 18262 } else { 18263 if z.EncBasicHandle().StringToRaw { 18264 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 18265 } else { 18266 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 18267 } 18268 } 18269 } else { 18270 r.WriteMapElemKey() 18271 if z.IsJSONHandle() { 18272 z.WriteStr("\"AllocID\"") 18273 } else { 18274 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) 18275 } 18276 r.WriteMapElemValue() 18277 if false { 18278 } else { 18279 if z.EncBasicHandle().StringToRaw { 18280 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 18281 } else { 18282 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 18283 } 18284 } 18285 } 18286 if yyr2 || yy2arr2 { 18287 r.WriteArrayElem() 18288 if x.Tasks == nil { 18289 r.EncodeNil() 18290 } else { 18291 if false { 18292 } else { 18293 z.F.EncSliceStringV(x.Tasks, e) 18294 } 18295 } 18296 } else { 18297 r.WriteMapElemKey() 18298 if z.IsJSONHandle() { 18299 z.WriteStr("\"Tasks\"") 18300 } else { 18301 r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) 18302 } 18303 r.WriteMapElemValue() 18304 if x.Tasks == nil { 18305 r.EncodeNil() 18306 } else { 18307 if false { 18308 } else { 18309 z.F.EncSliceStringV(x.Tasks, e) 18310 } 18311 } 18312 } 18313 if yyr2 || yy2arr2 { 18314 r.WriteArrayElem() 18315 if false { 18316 } else { 18317 if z.EncBasicHandle().StringToRaw { 18318 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 18319 } else { 18320 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 18321 } 18322 } 18323 } else { 18324 r.WriteMapElemKey() 18325 if z.IsJSONHandle() { 18326 z.WriteStr("\"Region\"") 18327 } else { 18328 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 18329 } 18330 r.WriteMapElemValue() 18331 if false { 18332 } else { 18333 if z.EncBasicHandle().StringToRaw { 18334 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 18335 } else { 18336 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 18337 } 18338 } 18339 } 18340 if yyr2 || yy2arr2 { 18341 r.WriteArrayElem() 18342 if false { 18343 } else { 18344 if z.EncBasicHandle().StringToRaw { 18345 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 18346 } else { 18347 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 18348 } 18349 } 18350 } else { 18351 r.WriteMapElemKey() 18352 if z.IsJSONHandle() { 18353 z.WriteStr("\"Namespace\"") 18354 } else { 18355 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 18356 } 18357 r.WriteMapElemValue() 18358 if false { 18359 } else { 18360 if z.EncBasicHandle().StringToRaw { 18361 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 18362 } else { 18363 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 18364 } 18365 } 18366 } 18367 if yyr2 || yy2arr2 { 18368 r.WriteArrayElem() 18369 if false { 18370 } else { 18371 r.EncodeUint(uint64(x.MinQueryIndex)) 18372 } 18373 } else { 18374 r.WriteMapElemKey() 18375 if z.IsJSONHandle() { 18376 z.WriteStr("\"MinQueryIndex\"") 18377 } else { 18378 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 18379 } 18380 r.WriteMapElemValue() 18381 if false { 18382 } else { 18383 r.EncodeUint(uint64(x.MinQueryIndex)) 18384 } 18385 } 18386 if yyr2 || yy2arr2 { 18387 r.WriteArrayElem() 18388 if false { 18389 } else if yyxt25 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt25 != nil { 18390 z.EncExtension(x.MaxQueryTime, yyxt25) 18391 } else { 18392 r.EncodeInt(int64(x.MaxQueryTime)) 18393 } 18394 } else { 18395 r.WriteMapElemKey() 18396 if z.IsJSONHandle() { 18397 z.WriteStr("\"MaxQueryTime\"") 18398 } else { 18399 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 18400 } 18401 r.WriteMapElemValue() 18402 if false { 18403 } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { 18404 z.EncExtension(x.MaxQueryTime, yyxt26) 18405 } else { 18406 r.EncodeInt(int64(x.MaxQueryTime)) 18407 } 18408 } 18409 if yyr2 || yy2arr2 { 18410 r.WriteArrayElem() 18411 if false { 18412 } else { 18413 r.EncodeBool(bool(x.AllowStale)) 18414 } 18415 } else { 18416 r.WriteMapElemKey() 18417 if z.IsJSONHandle() { 18418 z.WriteStr("\"AllowStale\"") 18419 } else { 18420 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 18421 } 18422 r.WriteMapElemValue() 18423 if false { 18424 } else { 18425 r.EncodeBool(bool(x.AllowStale)) 18426 } 18427 } 18428 if yyr2 || yy2arr2 { 18429 r.WriteArrayElem() 18430 if false { 18431 } else { 18432 if z.EncBasicHandle().StringToRaw { 18433 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 18434 } else { 18435 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 18436 } 18437 } 18438 } else { 18439 r.WriteMapElemKey() 18440 if z.IsJSONHandle() { 18441 z.WriteStr("\"Prefix\"") 18442 } else { 18443 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 18444 } 18445 r.WriteMapElemValue() 18446 if false { 18447 } else { 18448 if z.EncBasicHandle().StringToRaw { 18449 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 18450 } else { 18451 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 18452 } 18453 } 18454 } 18455 if yyr2 || yy2arr2 { 18456 r.WriteArrayElem() 18457 if false { 18458 } else { 18459 if z.EncBasicHandle().StringToRaw { 18460 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 18461 } else { 18462 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 18463 } 18464 } 18465 } else { 18466 r.WriteMapElemKey() 18467 if z.IsJSONHandle() { 18468 z.WriteStr("\"AuthToken\"") 18469 } else { 18470 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 18471 } 18472 r.WriteMapElemValue() 18473 if false { 18474 } else { 18475 if z.EncBasicHandle().StringToRaw { 18476 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 18477 } else { 18478 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 18479 } 18480 } 18481 } 18482 if yyr2 || yy2arr2 { 18483 r.WriteArrayElem() 18484 if false { 18485 } else { 18486 r.EncodeBool(bool(x.Forwarded)) 18487 } 18488 } else { 18489 r.WriteMapElemKey() 18490 if z.IsJSONHandle() { 18491 z.WriteStr("\"Forwarded\"") 18492 } else { 18493 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 18494 } 18495 r.WriteMapElemValue() 18496 if false { 18497 } else { 18498 r.EncodeBool(bool(x.Forwarded)) 18499 } 18500 } 18501 if yyr2 || yy2arr2 { 18502 r.WriteArrayEnd() 18503 } else { 18504 r.WriteMapEnd() 18505 } 18506 } 18507 } 18508 } 18509 18510 func (x *DeriveSITokenRequest) CodecDecodeSelf(d *codec1978.Decoder) { 18511 var h codecSelfer100 18512 z, r := codec1978.GenHelperDecoder(d) 18513 _, _, _ = h, z, r 18514 if false { 18515 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 18516 z.DecExtension(x, yyxt1) 18517 } else { 18518 yyct2 := r.ContainerType() 18519 if yyct2 == codecSelferValueTypeMap100 { 18520 yyl2 := r.ReadMapStart() 18521 if yyl2 == 0 { 18522 r.ReadMapEnd() 18523 } else { 18524 x.codecDecodeSelfFromMap(yyl2, d) 18525 } 18526 } else if yyct2 == codecSelferValueTypeArray100 { 18527 yyl2 := r.ReadArrayStart() 18528 if yyl2 == 0 { 18529 r.ReadArrayEnd() 18530 } else { 18531 x.codecDecodeSelfFromArray(yyl2, d) 18532 } 18533 } else { 18534 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 18535 } 18536 } 18537 } 18538 18539 func (x *DeriveSITokenRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 18540 var h codecSelfer100 18541 z, r := codec1978.GenHelperDecoder(d) 18542 _, _, _ = h, z, r 18543 var yyhl3 bool = l >= 0 18544 for yyj3 := 0; ; yyj3++ { 18545 if yyhl3 { 18546 if yyj3 >= l { 18547 break 18548 } 18549 } else { 18550 if r.CheckBreak() { 18551 break 18552 } 18553 } 18554 r.ReadMapElemKey() 18555 yys3 := z.StringView(r.DecodeStringAsBytes()) 18556 r.ReadMapElemValue() 18557 switch yys3 { 18558 case "NodeID": 18559 if r.TryDecodeAsNil() { 18560 x.NodeID = "" 18561 } else { 18562 x.NodeID = (string)(r.DecodeString()) 18563 } 18564 case "SecretID": 18565 if r.TryDecodeAsNil() { 18566 x.SecretID = "" 18567 } else { 18568 x.SecretID = (string)(r.DecodeString()) 18569 } 18570 case "AllocID": 18571 if r.TryDecodeAsNil() { 18572 x.AllocID = "" 18573 } else { 18574 x.AllocID = (string)(r.DecodeString()) 18575 } 18576 case "Tasks": 18577 if r.TryDecodeAsNil() { 18578 x.Tasks = nil 18579 } else { 18580 if false { 18581 } else { 18582 z.F.DecSliceStringX(&x.Tasks, d) 18583 } 18584 } 18585 case "Region": 18586 if r.TryDecodeAsNil() { 18587 x.QueryOptions.Region = "" 18588 } else { 18589 x.Region = (string)(r.DecodeString()) 18590 } 18591 case "Namespace": 18592 if r.TryDecodeAsNil() { 18593 x.QueryOptions.Namespace = "" 18594 } else { 18595 x.Namespace = (string)(r.DecodeString()) 18596 } 18597 case "MinQueryIndex": 18598 if r.TryDecodeAsNil() { 18599 x.QueryOptions.MinQueryIndex = 0 18600 } else { 18601 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 18602 } 18603 case "MaxQueryTime": 18604 if r.TryDecodeAsNil() { 18605 x.QueryOptions.MaxQueryTime = 0 18606 } else { 18607 if false { 18608 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 18609 z.DecExtension(x.MaxQueryTime, yyxt13) 18610 } else { 18611 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 18612 } 18613 } 18614 case "AllowStale": 18615 if r.TryDecodeAsNil() { 18616 x.QueryOptions.AllowStale = false 18617 } else { 18618 x.AllowStale = (bool)(r.DecodeBool()) 18619 } 18620 case "Prefix": 18621 if r.TryDecodeAsNil() { 18622 x.QueryOptions.Prefix = "" 18623 } else { 18624 x.Prefix = (string)(r.DecodeString()) 18625 } 18626 case "AuthToken": 18627 if r.TryDecodeAsNil() { 18628 x.QueryOptions.AuthToken = "" 18629 } else { 18630 x.AuthToken = (string)(r.DecodeString()) 18631 } 18632 case "Forwarded": 18633 if r.TryDecodeAsNil() { 18634 x.QueryOptions.InternalRpcInfo.Forwarded = false 18635 } else { 18636 x.Forwarded = (bool)(r.DecodeBool()) 18637 } 18638 default: 18639 z.DecStructFieldNotFound(-1, yys3) 18640 } // end switch yys3 18641 } // end for yyj3 18642 r.ReadMapEnd() 18643 } 18644 18645 func (x *DeriveSITokenRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 18646 var h codecSelfer100 18647 z, r := codec1978.GenHelperDecoder(d) 18648 _, _, _ = h, z, r 18649 var yyj18 int 18650 var yyb18 bool 18651 var yyhl18 bool = l >= 0 18652 yyj18++ 18653 if yyhl18 { 18654 yyb18 = yyj18 > l 18655 } else { 18656 yyb18 = r.CheckBreak() 18657 } 18658 if yyb18 { 18659 r.ReadArrayEnd() 18660 return 18661 } 18662 r.ReadArrayElem() 18663 if r.TryDecodeAsNil() { 18664 x.NodeID = "" 18665 } else { 18666 x.NodeID = (string)(r.DecodeString()) 18667 } 18668 yyj18++ 18669 if yyhl18 { 18670 yyb18 = yyj18 > l 18671 } else { 18672 yyb18 = r.CheckBreak() 18673 } 18674 if yyb18 { 18675 r.ReadArrayEnd() 18676 return 18677 } 18678 r.ReadArrayElem() 18679 if r.TryDecodeAsNil() { 18680 x.SecretID = "" 18681 } else { 18682 x.SecretID = (string)(r.DecodeString()) 18683 } 18684 yyj18++ 18685 if yyhl18 { 18686 yyb18 = yyj18 > l 18687 } else { 18688 yyb18 = r.CheckBreak() 18689 } 18690 if yyb18 { 18691 r.ReadArrayEnd() 18692 return 18693 } 18694 r.ReadArrayElem() 18695 if r.TryDecodeAsNil() { 18696 x.AllocID = "" 18697 } else { 18698 x.AllocID = (string)(r.DecodeString()) 18699 } 18700 yyj18++ 18701 if yyhl18 { 18702 yyb18 = yyj18 > l 18703 } else { 18704 yyb18 = r.CheckBreak() 18705 } 18706 if yyb18 { 18707 r.ReadArrayEnd() 18708 return 18709 } 18710 r.ReadArrayElem() 18711 if r.TryDecodeAsNil() { 18712 x.Tasks = nil 18713 } else { 18714 if false { 18715 } else { 18716 z.F.DecSliceStringX(&x.Tasks, d) 18717 } 18718 } 18719 yyj18++ 18720 if yyhl18 { 18721 yyb18 = yyj18 > l 18722 } else { 18723 yyb18 = r.CheckBreak() 18724 } 18725 if yyb18 { 18726 r.ReadArrayEnd() 18727 return 18728 } 18729 r.ReadArrayElem() 18730 if r.TryDecodeAsNil() { 18731 x.QueryOptions.Region = "" 18732 } else { 18733 x.Region = (string)(r.DecodeString()) 18734 } 18735 yyj18++ 18736 if yyhl18 { 18737 yyb18 = yyj18 > l 18738 } else { 18739 yyb18 = r.CheckBreak() 18740 } 18741 if yyb18 { 18742 r.ReadArrayEnd() 18743 return 18744 } 18745 r.ReadArrayElem() 18746 if r.TryDecodeAsNil() { 18747 x.QueryOptions.Namespace = "" 18748 } else { 18749 x.Namespace = (string)(r.DecodeString()) 18750 } 18751 yyj18++ 18752 if yyhl18 { 18753 yyb18 = yyj18 > l 18754 } else { 18755 yyb18 = r.CheckBreak() 18756 } 18757 if yyb18 { 18758 r.ReadArrayEnd() 18759 return 18760 } 18761 r.ReadArrayElem() 18762 if r.TryDecodeAsNil() { 18763 x.QueryOptions.MinQueryIndex = 0 18764 } else { 18765 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 18766 } 18767 yyj18++ 18768 if yyhl18 { 18769 yyb18 = yyj18 > l 18770 } else { 18771 yyb18 = r.CheckBreak() 18772 } 18773 if yyb18 { 18774 r.ReadArrayEnd() 18775 return 18776 } 18777 r.ReadArrayElem() 18778 if r.TryDecodeAsNil() { 18779 x.QueryOptions.MaxQueryTime = 0 18780 } else { 18781 if false { 18782 } else if yyxt28 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt28 != nil { 18783 z.DecExtension(x.MaxQueryTime, yyxt28) 18784 } else { 18785 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 18786 } 18787 } 18788 yyj18++ 18789 if yyhl18 { 18790 yyb18 = yyj18 > l 18791 } else { 18792 yyb18 = r.CheckBreak() 18793 } 18794 if yyb18 { 18795 r.ReadArrayEnd() 18796 return 18797 } 18798 r.ReadArrayElem() 18799 if r.TryDecodeAsNil() { 18800 x.QueryOptions.AllowStale = false 18801 } else { 18802 x.AllowStale = (bool)(r.DecodeBool()) 18803 } 18804 yyj18++ 18805 if yyhl18 { 18806 yyb18 = yyj18 > l 18807 } else { 18808 yyb18 = r.CheckBreak() 18809 } 18810 if yyb18 { 18811 r.ReadArrayEnd() 18812 return 18813 } 18814 r.ReadArrayElem() 18815 if r.TryDecodeAsNil() { 18816 x.QueryOptions.Prefix = "" 18817 } else { 18818 x.Prefix = (string)(r.DecodeString()) 18819 } 18820 yyj18++ 18821 if yyhl18 { 18822 yyb18 = yyj18 > l 18823 } else { 18824 yyb18 = r.CheckBreak() 18825 } 18826 if yyb18 { 18827 r.ReadArrayEnd() 18828 return 18829 } 18830 r.ReadArrayElem() 18831 if r.TryDecodeAsNil() { 18832 x.QueryOptions.AuthToken = "" 18833 } else { 18834 x.AuthToken = (string)(r.DecodeString()) 18835 } 18836 yyj18++ 18837 if yyhl18 { 18838 yyb18 = yyj18 > l 18839 } else { 18840 yyb18 = r.CheckBreak() 18841 } 18842 if yyb18 { 18843 r.ReadArrayEnd() 18844 return 18845 } 18846 r.ReadArrayElem() 18847 if r.TryDecodeAsNil() { 18848 x.QueryOptions.InternalRpcInfo.Forwarded = false 18849 } else { 18850 x.Forwarded = (bool)(r.DecodeBool()) 18851 } 18852 for { 18853 yyj18++ 18854 if yyhl18 { 18855 yyb18 = yyj18 > l 18856 } else { 18857 yyb18 = r.CheckBreak() 18858 } 18859 if yyb18 { 18860 break 18861 } 18862 r.ReadArrayElem() 18863 z.DecStructFieldNotFound(yyj18-1, "") 18864 } 18865 r.ReadArrayEnd() 18866 } 18867 18868 func (x *DeriveSITokenResponse) CodecEncodeSelf(e *codec1978.Encoder) { 18869 var h codecSelfer100 18870 z, r := codec1978.GenHelperEncoder(e) 18871 _, _, _ = h, z, r 18872 if x == nil { 18873 r.EncodeNil() 18874 } else { 18875 if false { 18876 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 18877 z.EncExtension(x, yyxt1) 18878 } else { 18879 yysep2 := !z.EncBinary() 18880 yy2arr2 := z.EncBasicHandle().StructToArray 18881 _, _ = yysep2, yy2arr2 18882 const yyr2 bool = false // struct tag has 'toArray' 18883 if yyr2 || yy2arr2 { 18884 r.WriteArrayStart(5) 18885 } else { 18886 r.WriteMapStart(5) 18887 } 18888 if yyr2 || yy2arr2 { 18889 r.WriteArrayElem() 18890 if x.Tokens == nil { 18891 r.EncodeNil() 18892 } else { 18893 if false { 18894 } else { 18895 z.F.EncMapStringStringV(x.Tokens, e) 18896 } 18897 } 18898 } else { 18899 r.WriteMapElemKey() 18900 if z.IsJSONHandle() { 18901 z.WriteStr("\"Tokens\"") 18902 } else { 18903 r.EncodeStringEnc(codecSelferCcUTF8100, `Tokens`) 18904 } 18905 r.WriteMapElemValue() 18906 if x.Tokens == nil { 18907 r.EncodeNil() 18908 } else { 18909 if false { 18910 } else { 18911 z.F.EncMapStringStringV(x.Tokens, e) 18912 } 18913 } 18914 } 18915 var yyn6 bool 18916 if x.Error == nil { 18917 yyn6 = true 18918 goto LABEL6 18919 } 18920 LABEL6: 18921 if yyr2 || yy2arr2 { 18922 if yyn6 { 18923 r.WriteArrayElem() 18924 r.EncodeNil() 18925 } else { 18926 r.WriteArrayElem() 18927 if x.Error == nil { 18928 r.EncodeNil() 18929 } else { 18930 x.Error.CodecEncodeSelf(e) 18931 } 18932 } 18933 } else { 18934 r.WriteMapElemKey() 18935 if z.IsJSONHandle() { 18936 z.WriteStr("\"Error\"") 18937 } else { 18938 r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) 18939 } 18940 r.WriteMapElemValue() 18941 if yyn6 { 18942 r.EncodeNil() 18943 } else { 18944 if x.Error == nil { 18945 r.EncodeNil() 18946 } else { 18947 x.Error.CodecEncodeSelf(e) 18948 } 18949 } 18950 } 18951 if yyr2 || yy2arr2 { 18952 r.WriteArrayElem() 18953 if false { 18954 } else { 18955 r.EncodeUint(uint64(x.Index)) 18956 } 18957 } else { 18958 r.WriteMapElemKey() 18959 if z.IsJSONHandle() { 18960 z.WriteStr("\"Index\"") 18961 } else { 18962 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 18963 } 18964 r.WriteMapElemValue() 18965 if false { 18966 } else { 18967 r.EncodeUint(uint64(x.Index)) 18968 } 18969 } 18970 if yyr2 || yy2arr2 { 18971 r.WriteArrayElem() 18972 if false { 18973 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 18974 z.EncExtension(x.LastContact, yyxt13) 18975 } else { 18976 r.EncodeInt(int64(x.LastContact)) 18977 } 18978 } else { 18979 r.WriteMapElemKey() 18980 if z.IsJSONHandle() { 18981 z.WriteStr("\"LastContact\"") 18982 } else { 18983 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 18984 } 18985 r.WriteMapElemValue() 18986 if false { 18987 } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { 18988 z.EncExtension(x.LastContact, yyxt14) 18989 } else { 18990 r.EncodeInt(int64(x.LastContact)) 18991 } 18992 } 18993 if yyr2 || yy2arr2 { 18994 r.WriteArrayElem() 18995 if false { 18996 } else { 18997 r.EncodeBool(bool(x.KnownLeader)) 18998 } 18999 } else { 19000 r.WriteMapElemKey() 19001 if z.IsJSONHandle() { 19002 z.WriteStr("\"KnownLeader\"") 19003 } else { 19004 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 19005 } 19006 r.WriteMapElemValue() 19007 if false { 19008 } else { 19009 r.EncodeBool(bool(x.KnownLeader)) 19010 } 19011 } 19012 if yyr2 || yy2arr2 { 19013 r.WriteArrayEnd() 19014 } else { 19015 r.WriteMapEnd() 19016 } 19017 } 19018 } 19019 } 19020 19021 func (x *DeriveSITokenResponse) CodecDecodeSelf(d *codec1978.Decoder) { 19022 var h codecSelfer100 19023 z, r := codec1978.GenHelperDecoder(d) 19024 _, _, _ = h, z, r 19025 if false { 19026 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 19027 z.DecExtension(x, yyxt1) 19028 } else { 19029 yyct2 := r.ContainerType() 19030 if yyct2 == codecSelferValueTypeMap100 { 19031 yyl2 := r.ReadMapStart() 19032 if yyl2 == 0 { 19033 r.ReadMapEnd() 19034 } else { 19035 x.codecDecodeSelfFromMap(yyl2, d) 19036 } 19037 } else if yyct2 == codecSelferValueTypeArray100 { 19038 yyl2 := r.ReadArrayStart() 19039 if yyl2 == 0 { 19040 r.ReadArrayEnd() 19041 } else { 19042 x.codecDecodeSelfFromArray(yyl2, d) 19043 } 19044 } else { 19045 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 19046 } 19047 } 19048 } 19049 19050 func (x *DeriveSITokenResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 19051 var h codecSelfer100 19052 z, r := codec1978.GenHelperDecoder(d) 19053 _, _, _ = h, z, r 19054 var yyhl3 bool = l >= 0 19055 for yyj3 := 0; ; yyj3++ { 19056 if yyhl3 { 19057 if yyj3 >= l { 19058 break 19059 } 19060 } else { 19061 if r.CheckBreak() { 19062 break 19063 } 19064 } 19065 r.ReadMapElemKey() 19066 yys3 := z.StringView(r.DecodeStringAsBytes()) 19067 r.ReadMapElemValue() 19068 switch yys3 { 19069 case "Tokens": 19070 if r.TryDecodeAsNil() { 19071 x.Tokens = nil 19072 } else { 19073 if false { 19074 } else { 19075 z.F.DecMapStringStringX(&x.Tokens, d) 19076 } 19077 } 19078 case "Error": 19079 if r.TryDecodeAsNil() { 19080 if true && x.Error != nil { 19081 x.Error = nil 19082 } 19083 } else { 19084 if x.Error == nil { 19085 x.Error = new(RecoverableError) 19086 } 19087 19088 x.Error.CodecDecodeSelf(d) 19089 } 19090 case "Index": 19091 if r.TryDecodeAsNil() { 19092 x.QueryMeta.Index = 0 19093 } else { 19094 x.Index = (uint64)(r.DecodeUint64()) 19095 } 19096 case "LastContact": 19097 if r.TryDecodeAsNil() { 19098 x.QueryMeta.LastContact = 0 19099 } else { 19100 if false { 19101 } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { 19102 z.DecExtension(x.LastContact, yyxt9) 19103 } else { 19104 x.LastContact = (time.Duration)(r.DecodeInt64()) 19105 } 19106 } 19107 case "KnownLeader": 19108 if r.TryDecodeAsNil() { 19109 x.QueryMeta.KnownLeader = false 19110 } else { 19111 x.KnownLeader = (bool)(r.DecodeBool()) 19112 } 19113 default: 19114 z.DecStructFieldNotFound(-1, yys3) 19115 } // end switch yys3 19116 } // end for yyj3 19117 r.ReadMapEnd() 19118 } 19119 19120 func (x *DeriveSITokenResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 19121 var h codecSelfer100 19122 z, r := codec1978.GenHelperDecoder(d) 19123 _, _, _ = h, z, r 19124 var yyj11 int 19125 var yyb11 bool 19126 var yyhl11 bool = l >= 0 19127 yyj11++ 19128 if yyhl11 { 19129 yyb11 = yyj11 > l 19130 } else { 19131 yyb11 = r.CheckBreak() 19132 } 19133 if yyb11 { 19134 r.ReadArrayEnd() 19135 return 19136 } 19137 r.ReadArrayElem() 19138 if r.TryDecodeAsNil() { 19139 x.Tokens = nil 19140 } else { 19141 if false { 19142 } else { 19143 z.F.DecMapStringStringX(&x.Tokens, d) 19144 } 19145 } 19146 yyj11++ 19147 if yyhl11 { 19148 yyb11 = yyj11 > l 19149 } else { 19150 yyb11 = r.CheckBreak() 19151 } 19152 if yyb11 { 19153 r.ReadArrayEnd() 19154 return 19155 } 19156 r.ReadArrayElem() 19157 if r.TryDecodeAsNil() { 19158 if true && x.Error != nil { 19159 x.Error = nil 19160 } 19161 } else { 19162 if x.Error == nil { 19163 x.Error = new(RecoverableError) 19164 } 19165 19166 x.Error.CodecDecodeSelf(d) 19167 } 19168 yyj11++ 19169 if yyhl11 { 19170 yyb11 = yyj11 > l 19171 } else { 19172 yyb11 = r.CheckBreak() 19173 } 19174 if yyb11 { 19175 r.ReadArrayEnd() 19176 return 19177 } 19178 r.ReadArrayElem() 19179 if r.TryDecodeAsNil() { 19180 x.QueryMeta.Index = 0 19181 } else { 19182 x.Index = (uint64)(r.DecodeUint64()) 19183 } 19184 yyj11++ 19185 if yyhl11 { 19186 yyb11 = yyj11 > l 19187 } else { 19188 yyb11 = r.CheckBreak() 19189 } 19190 if yyb11 { 19191 r.ReadArrayEnd() 19192 return 19193 } 19194 r.ReadArrayElem() 19195 if r.TryDecodeAsNil() { 19196 x.QueryMeta.LastContact = 0 19197 } else { 19198 if false { 19199 } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { 19200 z.DecExtension(x.LastContact, yyxt17) 19201 } else { 19202 x.LastContact = (time.Duration)(r.DecodeInt64()) 19203 } 19204 } 19205 yyj11++ 19206 if yyhl11 { 19207 yyb11 = yyj11 > l 19208 } else { 19209 yyb11 = r.CheckBreak() 19210 } 19211 if yyb11 { 19212 r.ReadArrayEnd() 19213 return 19214 } 19215 r.ReadArrayElem() 19216 if r.TryDecodeAsNil() { 19217 x.QueryMeta.KnownLeader = false 19218 } else { 19219 x.KnownLeader = (bool)(r.DecodeBool()) 19220 } 19221 for { 19222 yyj11++ 19223 if yyhl11 { 19224 yyb11 = yyj11 > l 19225 } else { 19226 yyb11 = r.CheckBreak() 19227 } 19228 if yyb11 { 19229 break 19230 } 19231 r.ReadArrayElem() 19232 z.DecStructFieldNotFound(yyj11-1, "") 19233 } 19234 r.ReadArrayEnd() 19235 } 19236 19237 func (x *ServiceCheck) CodecEncodeSelf(e *codec1978.Encoder) { 19238 var h codecSelfer100 19239 z, r := codec1978.GenHelperEncoder(e) 19240 _, _, _ = h, z, r 19241 if x == nil { 19242 r.EncodeNil() 19243 } else { 19244 if false { 19245 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 19246 z.EncExtension(x, yyxt1) 19247 } else { 19248 yysep2 := !z.EncBinary() 19249 yy2arr2 := z.EncBasicHandle().StructToArray 19250 _, _ = yysep2, yy2arr2 19251 const yyr2 bool = false // struct tag has 'toArray' 19252 if yyr2 || yy2arr2 { 19253 r.WriteArrayStart(19) 19254 } else { 19255 r.WriteMapStart(19) 19256 } 19257 if yyr2 || yy2arr2 { 19258 r.WriteArrayElem() 19259 if false { 19260 } else { 19261 if z.EncBasicHandle().StringToRaw { 19262 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 19263 } else { 19264 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 19265 } 19266 } 19267 } else { 19268 r.WriteMapElemKey() 19269 if z.IsJSONHandle() { 19270 z.WriteStr("\"Name\"") 19271 } else { 19272 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 19273 } 19274 r.WriteMapElemValue() 19275 if false { 19276 } else { 19277 if z.EncBasicHandle().StringToRaw { 19278 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 19279 } else { 19280 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 19281 } 19282 } 19283 } 19284 if yyr2 || yy2arr2 { 19285 r.WriteArrayElem() 19286 if false { 19287 } else { 19288 if z.EncBasicHandle().StringToRaw { 19289 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 19290 } else { 19291 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 19292 } 19293 } 19294 } else { 19295 r.WriteMapElemKey() 19296 if z.IsJSONHandle() { 19297 z.WriteStr("\"Type\"") 19298 } else { 19299 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 19300 } 19301 r.WriteMapElemValue() 19302 if false { 19303 } else { 19304 if z.EncBasicHandle().StringToRaw { 19305 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 19306 } else { 19307 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 19308 } 19309 } 19310 } 19311 if yyr2 || yy2arr2 { 19312 r.WriteArrayElem() 19313 if false { 19314 } else { 19315 if z.EncBasicHandle().StringToRaw { 19316 r.EncodeStringBytesRaw(z.BytesView(string(x.Command))) 19317 } else { 19318 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Command)) 19319 } 19320 } 19321 } else { 19322 r.WriteMapElemKey() 19323 if z.IsJSONHandle() { 19324 z.WriteStr("\"Command\"") 19325 } else { 19326 r.EncodeStringEnc(codecSelferCcUTF8100, `Command`) 19327 } 19328 r.WriteMapElemValue() 19329 if false { 19330 } else { 19331 if z.EncBasicHandle().StringToRaw { 19332 r.EncodeStringBytesRaw(z.BytesView(string(x.Command))) 19333 } else { 19334 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Command)) 19335 } 19336 } 19337 } 19338 if yyr2 || yy2arr2 { 19339 r.WriteArrayElem() 19340 if x.Args == nil { 19341 r.EncodeNil() 19342 } else { 19343 if false { 19344 } else { 19345 z.F.EncSliceStringV(x.Args, e) 19346 } 19347 } 19348 } else { 19349 r.WriteMapElemKey() 19350 if z.IsJSONHandle() { 19351 z.WriteStr("\"Args\"") 19352 } else { 19353 r.EncodeStringEnc(codecSelferCcUTF8100, `Args`) 19354 } 19355 r.WriteMapElemValue() 19356 if x.Args == nil { 19357 r.EncodeNil() 19358 } else { 19359 if false { 19360 } else { 19361 z.F.EncSliceStringV(x.Args, e) 19362 } 19363 } 19364 } 19365 if yyr2 || yy2arr2 { 19366 r.WriteArrayElem() 19367 if false { 19368 } else { 19369 if z.EncBasicHandle().StringToRaw { 19370 r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) 19371 } else { 19372 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) 19373 } 19374 } 19375 } else { 19376 r.WriteMapElemKey() 19377 if z.IsJSONHandle() { 19378 z.WriteStr("\"Path\"") 19379 } else { 19380 r.EncodeStringEnc(codecSelferCcUTF8100, `Path`) 19381 } 19382 r.WriteMapElemValue() 19383 if false { 19384 } else { 19385 if z.EncBasicHandle().StringToRaw { 19386 r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) 19387 } else { 19388 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) 19389 } 19390 } 19391 } 19392 if yyr2 || yy2arr2 { 19393 r.WriteArrayElem() 19394 if false { 19395 } else { 19396 if z.EncBasicHandle().StringToRaw { 19397 r.EncodeStringBytesRaw(z.BytesView(string(x.Protocol))) 19398 } else { 19399 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Protocol)) 19400 } 19401 } 19402 } else { 19403 r.WriteMapElemKey() 19404 if z.IsJSONHandle() { 19405 z.WriteStr("\"Protocol\"") 19406 } else { 19407 r.EncodeStringEnc(codecSelferCcUTF8100, `Protocol`) 19408 } 19409 r.WriteMapElemValue() 19410 if false { 19411 } else { 19412 if z.EncBasicHandle().StringToRaw { 19413 r.EncodeStringBytesRaw(z.BytesView(string(x.Protocol))) 19414 } else { 19415 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Protocol)) 19416 } 19417 } 19418 } 19419 if yyr2 || yy2arr2 { 19420 r.WriteArrayElem() 19421 if false { 19422 } else { 19423 if z.EncBasicHandle().StringToRaw { 19424 r.EncodeStringBytesRaw(z.BytesView(string(x.PortLabel))) 19425 } else { 19426 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PortLabel)) 19427 } 19428 } 19429 } else { 19430 r.WriteMapElemKey() 19431 if z.IsJSONHandle() { 19432 z.WriteStr("\"PortLabel\"") 19433 } else { 19434 r.EncodeStringEnc(codecSelferCcUTF8100, `PortLabel`) 19435 } 19436 r.WriteMapElemValue() 19437 if false { 19438 } else { 19439 if z.EncBasicHandle().StringToRaw { 19440 r.EncodeStringBytesRaw(z.BytesView(string(x.PortLabel))) 19441 } else { 19442 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PortLabel)) 19443 } 19444 } 19445 } 19446 if yyr2 || yy2arr2 { 19447 r.WriteArrayElem() 19448 if false { 19449 } else { 19450 r.EncodeBool(bool(x.Expose)) 19451 } 19452 } else { 19453 r.WriteMapElemKey() 19454 if z.IsJSONHandle() { 19455 z.WriteStr("\"Expose\"") 19456 } else { 19457 r.EncodeStringEnc(codecSelferCcUTF8100, `Expose`) 19458 } 19459 r.WriteMapElemValue() 19460 if false { 19461 } else { 19462 r.EncodeBool(bool(x.Expose)) 19463 } 19464 } 19465 if yyr2 || yy2arr2 { 19466 r.WriteArrayElem() 19467 if false { 19468 } else { 19469 if z.EncBasicHandle().StringToRaw { 19470 r.EncodeStringBytesRaw(z.BytesView(string(x.AddressMode))) 19471 } else { 19472 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AddressMode)) 19473 } 19474 } 19475 } else { 19476 r.WriteMapElemKey() 19477 if z.IsJSONHandle() { 19478 z.WriteStr("\"AddressMode\"") 19479 } else { 19480 r.EncodeStringEnc(codecSelferCcUTF8100, `AddressMode`) 19481 } 19482 r.WriteMapElemValue() 19483 if false { 19484 } else { 19485 if z.EncBasicHandle().StringToRaw { 19486 r.EncodeStringBytesRaw(z.BytesView(string(x.AddressMode))) 19487 } else { 19488 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AddressMode)) 19489 } 19490 } 19491 } 19492 if yyr2 || yy2arr2 { 19493 r.WriteArrayElem() 19494 if false { 19495 } else if yyxt31 := z.Extension(z.I2Rtid(x.Interval)); yyxt31 != nil { 19496 z.EncExtension(x.Interval, yyxt31) 19497 } else { 19498 r.EncodeInt(int64(x.Interval)) 19499 } 19500 } else { 19501 r.WriteMapElemKey() 19502 if z.IsJSONHandle() { 19503 z.WriteStr("\"Interval\"") 19504 } else { 19505 r.EncodeStringEnc(codecSelferCcUTF8100, `Interval`) 19506 } 19507 r.WriteMapElemValue() 19508 if false { 19509 } else if yyxt32 := z.Extension(z.I2Rtid(x.Interval)); yyxt32 != nil { 19510 z.EncExtension(x.Interval, yyxt32) 19511 } else { 19512 r.EncodeInt(int64(x.Interval)) 19513 } 19514 } 19515 if yyr2 || yy2arr2 { 19516 r.WriteArrayElem() 19517 if false { 19518 } else if yyxt34 := z.Extension(z.I2Rtid(x.Timeout)); yyxt34 != nil { 19519 z.EncExtension(x.Timeout, yyxt34) 19520 } else { 19521 r.EncodeInt(int64(x.Timeout)) 19522 } 19523 } else { 19524 r.WriteMapElemKey() 19525 if z.IsJSONHandle() { 19526 z.WriteStr("\"Timeout\"") 19527 } else { 19528 r.EncodeStringEnc(codecSelferCcUTF8100, `Timeout`) 19529 } 19530 r.WriteMapElemValue() 19531 if false { 19532 } else if yyxt35 := z.Extension(z.I2Rtid(x.Timeout)); yyxt35 != nil { 19533 z.EncExtension(x.Timeout, yyxt35) 19534 } else { 19535 r.EncodeInt(int64(x.Timeout)) 19536 } 19537 } 19538 if yyr2 || yy2arr2 { 19539 r.WriteArrayElem() 19540 if false { 19541 } else { 19542 if z.EncBasicHandle().StringToRaw { 19543 r.EncodeStringBytesRaw(z.BytesView(string(x.InitialStatus))) 19544 } else { 19545 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.InitialStatus)) 19546 } 19547 } 19548 } else { 19549 r.WriteMapElemKey() 19550 if z.IsJSONHandle() { 19551 z.WriteStr("\"InitialStatus\"") 19552 } else { 19553 r.EncodeStringEnc(codecSelferCcUTF8100, `InitialStatus`) 19554 } 19555 r.WriteMapElemValue() 19556 if false { 19557 } else { 19558 if z.EncBasicHandle().StringToRaw { 19559 r.EncodeStringBytesRaw(z.BytesView(string(x.InitialStatus))) 19560 } else { 19561 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.InitialStatus)) 19562 } 19563 } 19564 } 19565 if yyr2 || yy2arr2 { 19566 r.WriteArrayElem() 19567 if false { 19568 } else { 19569 r.EncodeBool(bool(x.TLSSkipVerify)) 19570 } 19571 } else { 19572 r.WriteMapElemKey() 19573 if z.IsJSONHandle() { 19574 z.WriteStr("\"TLSSkipVerify\"") 19575 } else { 19576 r.EncodeStringEnc(codecSelferCcUTF8100, `TLSSkipVerify`) 19577 } 19578 r.WriteMapElemValue() 19579 if false { 19580 } else { 19581 r.EncodeBool(bool(x.TLSSkipVerify)) 19582 } 19583 } 19584 if yyr2 || yy2arr2 { 19585 r.WriteArrayElem() 19586 if false { 19587 } else { 19588 if z.EncBasicHandle().StringToRaw { 19589 r.EncodeStringBytesRaw(z.BytesView(string(x.Method))) 19590 } else { 19591 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Method)) 19592 } 19593 } 19594 } else { 19595 r.WriteMapElemKey() 19596 if z.IsJSONHandle() { 19597 z.WriteStr("\"Method\"") 19598 } else { 19599 r.EncodeStringEnc(codecSelferCcUTF8100, `Method`) 19600 } 19601 r.WriteMapElemValue() 19602 if false { 19603 } else { 19604 if z.EncBasicHandle().StringToRaw { 19605 r.EncodeStringBytesRaw(z.BytesView(string(x.Method))) 19606 } else { 19607 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Method)) 19608 } 19609 } 19610 } 19611 if yyr2 || yy2arr2 { 19612 r.WriteArrayElem() 19613 if x.Header == nil { 19614 r.EncodeNil() 19615 } else { 19616 if false { 19617 } else { 19618 h.encMapstringSlicestring((map[string][]string)(x.Header), e) 19619 } 19620 } 19621 } else { 19622 r.WriteMapElemKey() 19623 if z.IsJSONHandle() { 19624 z.WriteStr("\"Header\"") 19625 } else { 19626 r.EncodeStringEnc(codecSelferCcUTF8100, `Header`) 19627 } 19628 r.WriteMapElemValue() 19629 if x.Header == nil { 19630 r.EncodeNil() 19631 } else { 19632 if false { 19633 } else { 19634 h.encMapstringSlicestring((map[string][]string)(x.Header), e) 19635 } 19636 } 19637 } 19638 var yyn48 bool 19639 if x.CheckRestart == nil { 19640 yyn48 = true 19641 goto LABEL48 19642 } 19643 LABEL48: 19644 if yyr2 || yy2arr2 { 19645 if yyn48 { 19646 r.WriteArrayElem() 19647 r.EncodeNil() 19648 } else { 19649 r.WriteArrayElem() 19650 if x.CheckRestart == nil { 19651 r.EncodeNil() 19652 } else { 19653 x.CheckRestart.CodecEncodeSelf(e) 19654 } 19655 } 19656 } else { 19657 r.WriteMapElemKey() 19658 if z.IsJSONHandle() { 19659 z.WriteStr("\"CheckRestart\"") 19660 } else { 19661 r.EncodeStringEnc(codecSelferCcUTF8100, `CheckRestart`) 19662 } 19663 r.WriteMapElemValue() 19664 if yyn48 { 19665 r.EncodeNil() 19666 } else { 19667 if x.CheckRestart == nil { 19668 r.EncodeNil() 19669 } else { 19670 x.CheckRestart.CodecEncodeSelf(e) 19671 } 19672 } 19673 } 19674 if yyr2 || yy2arr2 { 19675 r.WriteArrayElem() 19676 if false { 19677 } else { 19678 if z.EncBasicHandle().StringToRaw { 19679 r.EncodeStringBytesRaw(z.BytesView(string(x.GRPCService))) 19680 } else { 19681 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GRPCService)) 19682 } 19683 } 19684 } else { 19685 r.WriteMapElemKey() 19686 if z.IsJSONHandle() { 19687 z.WriteStr("\"GRPCService\"") 19688 } else { 19689 r.EncodeStringEnc(codecSelferCcUTF8100, `GRPCService`) 19690 } 19691 r.WriteMapElemValue() 19692 if false { 19693 } else { 19694 if z.EncBasicHandle().StringToRaw { 19695 r.EncodeStringBytesRaw(z.BytesView(string(x.GRPCService))) 19696 } else { 19697 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GRPCService)) 19698 } 19699 } 19700 } 19701 if yyr2 || yy2arr2 { 19702 r.WriteArrayElem() 19703 if false { 19704 } else { 19705 r.EncodeBool(bool(x.GRPCUseTLS)) 19706 } 19707 } else { 19708 r.WriteMapElemKey() 19709 if z.IsJSONHandle() { 19710 z.WriteStr("\"GRPCUseTLS\"") 19711 } else { 19712 r.EncodeStringEnc(codecSelferCcUTF8100, `GRPCUseTLS`) 19713 } 19714 r.WriteMapElemValue() 19715 if false { 19716 } else { 19717 r.EncodeBool(bool(x.GRPCUseTLS)) 19718 } 19719 } 19720 if yyr2 || yy2arr2 { 19721 r.WriteArrayElem() 19722 if false { 19723 } else { 19724 if z.EncBasicHandle().StringToRaw { 19725 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) 19726 } else { 19727 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) 19728 } 19729 } 19730 } else { 19731 r.WriteMapElemKey() 19732 if z.IsJSONHandle() { 19733 z.WriteStr("\"TaskName\"") 19734 } else { 19735 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskName`) 19736 } 19737 r.WriteMapElemValue() 19738 if false { 19739 } else { 19740 if z.EncBasicHandle().StringToRaw { 19741 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) 19742 } else { 19743 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) 19744 } 19745 } 19746 } 19747 if yyr2 || yy2arr2 { 19748 r.WriteArrayEnd() 19749 } else { 19750 r.WriteMapEnd() 19751 } 19752 } 19753 } 19754 } 19755 19756 func (x *ServiceCheck) CodecDecodeSelf(d *codec1978.Decoder) { 19757 var h codecSelfer100 19758 z, r := codec1978.GenHelperDecoder(d) 19759 _, _, _ = h, z, r 19760 if false { 19761 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 19762 z.DecExtension(x, yyxt1) 19763 } else { 19764 yyct2 := r.ContainerType() 19765 if yyct2 == codecSelferValueTypeMap100 { 19766 yyl2 := r.ReadMapStart() 19767 if yyl2 == 0 { 19768 r.ReadMapEnd() 19769 } else { 19770 x.codecDecodeSelfFromMap(yyl2, d) 19771 } 19772 } else if yyct2 == codecSelferValueTypeArray100 { 19773 yyl2 := r.ReadArrayStart() 19774 if yyl2 == 0 { 19775 r.ReadArrayEnd() 19776 } else { 19777 x.codecDecodeSelfFromArray(yyl2, d) 19778 } 19779 } else { 19780 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 19781 } 19782 } 19783 } 19784 19785 func (x *ServiceCheck) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 19786 var h codecSelfer100 19787 z, r := codec1978.GenHelperDecoder(d) 19788 _, _, _ = h, z, r 19789 var yyhl3 bool = l >= 0 19790 for yyj3 := 0; ; yyj3++ { 19791 if yyhl3 { 19792 if yyj3 >= l { 19793 break 19794 } 19795 } else { 19796 if r.CheckBreak() { 19797 break 19798 } 19799 } 19800 r.ReadMapElemKey() 19801 yys3 := z.StringView(r.DecodeStringAsBytes()) 19802 r.ReadMapElemValue() 19803 switch yys3 { 19804 case "Name": 19805 if r.TryDecodeAsNil() { 19806 x.Name = "" 19807 } else { 19808 x.Name = (string)(r.DecodeString()) 19809 } 19810 case "Type": 19811 if r.TryDecodeAsNil() { 19812 x.Type = "" 19813 } else { 19814 x.Type = (string)(r.DecodeString()) 19815 } 19816 case "Command": 19817 if r.TryDecodeAsNil() { 19818 x.Command = "" 19819 } else { 19820 x.Command = (string)(r.DecodeString()) 19821 } 19822 case "Args": 19823 if r.TryDecodeAsNil() { 19824 x.Args = nil 19825 } else { 19826 if false { 19827 } else { 19828 z.F.DecSliceStringX(&x.Args, d) 19829 } 19830 } 19831 case "Path": 19832 if r.TryDecodeAsNil() { 19833 x.Path = "" 19834 } else { 19835 x.Path = (string)(r.DecodeString()) 19836 } 19837 case "Protocol": 19838 if r.TryDecodeAsNil() { 19839 x.Protocol = "" 19840 } else { 19841 x.Protocol = (string)(r.DecodeString()) 19842 } 19843 case "PortLabel": 19844 if r.TryDecodeAsNil() { 19845 x.PortLabel = "" 19846 } else { 19847 x.PortLabel = (string)(r.DecodeString()) 19848 } 19849 case "Expose": 19850 if r.TryDecodeAsNil() { 19851 x.Expose = false 19852 } else { 19853 x.Expose = (bool)(r.DecodeBool()) 19854 } 19855 case "AddressMode": 19856 if r.TryDecodeAsNil() { 19857 x.AddressMode = "" 19858 } else { 19859 x.AddressMode = (string)(r.DecodeString()) 19860 } 19861 case "Interval": 19862 if r.TryDecodeAsNil() { 19863 x.Interval = 0 19864 } else { 19865 if false { 19866 } else if yyxt15 := z.Extension(z.I2Rtid(x.Interval)); yyxt15 != nil { 19867 z.DecExtension(x.Interval, yyxt15) 19868 } else { 19869 x.Interval = (time.Duration)(r.DecodeInt64()) 19870 } 19871 } 19872 case "Timeout": 19873 if r.TryDecodeAsNil() { 19874 x.Timeout = 0 19875 } else { 19876 if false { 19877 } else if yyxt17 := z.Extension(z.I2Rtid(x.Timeout)); yyxt17 != nil { 19878 z.DecExtension(x.Timeout, yyxt17) 19879 } else { 19880 x.Timeout = (time.Duration)(r.DecodeInt64()) 19881 } 19882 } 19883 case "InitialStatus": 19884 if r.TryDecodeAsNil() { 19885 x.InitialStatus = "" 19886 } else { 19887 x.InitialStatus = (string)(r.DecodeString()) 19888 } 19889 case "TLSSkipVerify": 19890 if r.TryDecodeAsNil() { 19891 x.TLSSkipVerify = false 19892 } else { 19893 x.TLSSkipVerify = (bool)(r.DecodeBool()) 19894 } 19895 case "Method": 19896 if r.TryDecodeAsNil() { 19897 x.Method = "" 19898 } else { 19899 x.Method = (string)(r.DecodeString()) 19900 } 19901 case "Header": 19902 if r.TryDecodeAsNil() { 19903 x.Header = nil 19904 } else { 19905 if false { 19906 } else { 19907 h.decMapstringSlicestring((*map[string][]string)(&x.Header), d) 19908 } 19909 } 19910 case "CheckRestart": 19911 if r.TryDecodeAsNil() { 19912 if true && x.CheckRestart != nil { 19913 x.CheckRestart = nil 19914 } 19915 } else { 19916 if x.CheckRestart == nil { 19917 x.CheckRestart = new(CheckRestart) 19918 } 19919 19920 x.CheckRestart.CodecDecodeSelf(d) 19921 } 19922 case "GRPCService": 19923 if r.TryDecodeAsNil() { 19924 x.GRPCService = "" 19925 } else { 19926 x.GRPCService = (string)(r.DecodeString()) 19927 } 19928 case "GRPCUseTLS": 19929 if r.TryDecodeAsNil() { 19930 x.GRPCUseTLS = false 19931 } else { 19932 x.GRPCUseTLS = (bool)(r.DecodeBool()) 19933 } 19934 case "TaskName": 19935 if r.TryDecodeAsNil() { 19936 x.TaskName = "" 19937 } else { 19938 x.TaskName = (string)(r.DecodeString()) 19939 } 19940 default: 19941 z.DecStructFieldNotFound(-1, yys3) 19942 } // end switch yys3 19943 } // end for yyj3 19944 r.ReadMapEnd() 19945 } 19946 19947 func (x *ServiceCheck) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 19948 var h codecSelfer100 19949 z, r := codec1978.GenHelperDecoder(d) 19950 _, _, _ = h, z, r 19951 var yyj27 int 19952 var yyb27 bool 19953 var yyhl27 bool = l >= 0 19954 yyj27++ 19955 if yyhl27 { 19956 yyb27 = yyj27 > l 19957 } else { 19958 yyb27 = r.CheckBreak() 19959 } 19960 if yyb27 { 19961 r.ReadArrayEnd() 19962 return 19963 } 19964 r.ReadArrayElem() 19965 if r.TryDecodeAsNil() { 19966 x.Name = "" 19967 } else { 19968 x.Name = (string)(r.DecodeString()) 19969 } 19970 yyj27++ 19971 if yyhl27 { 19972 yyb27 = yyj27 > l 19973 } else { 19974 yyb27 = r.CheckBreak() 19975 } 19976 if yyb27 { 19977 r.ReadArrayEnd() 19978 return 19979 } 19980 r.ReadArrayElem() 19981 if r.TryDecodeAsNil() { 19982 x.Type = "" 19983 } else { 19984 x.Type = (string)(r.DecodeString()) 19985 } 19986 yyj27++ 19987 if yyhl27 { 19988 yyb27 = yyj27 > l 19989 } else { 19990 yyb27 = r.CheckBreak() 19991 } 19992 if yyb27 { 19993 r.ReadArrayEnd() 19994 return 19995 } 19996 r.ReadArrayElem() 19997 if r.TryDecodeAsNil() { 19998 x.Command = "" 19999 } else { 20000 x.Command = (string)(r.DecodeString()) 20001 } 20002 yyj27++ 20003 if yyhl27 { 20004 yyb27 = yyj27 > l 20005 } else { 20006 yyb27 = r.CheckBreak() 20007 } 20008 if yyb27 { 20009 r.ReadArrayEnd() 20010 return 20011 } 20012 r.ReadArrayElem() 20013 if r.TryDecodeAsNil() { 20014 x.Args = nil 20015 } else { 20016 if false { 20017 } else { 20018 z.F.DecSliceStringX(&x.Args, d) 20019 } 20020 } 20021 yyj27++ 20022 if yyhl27 { 20023 yyb27 = yyj27 > l 20024 } else { 20025 yyb27 = r.CheckBreak() 20026 } 20027 if yyb27 { 20028 r.ReadArrayEnd() 20029 return 20030 } 20031 r.ReadArrayElem() 20032 if r.TryDecodeAsNil() { 20033 x.Path = "" 20034 } else { 20035 x.Path = (string)(r.DecodeString()) 20036 } 20037 yyj27++ 20038 if yyhl27 { 20039 yyb27 = yyj27 > l 20040 } else { 20041 yyb27 = r.CheckBreak() 20042 } 20043 if yyb27 { 20044 r.ReadArrayEnd() 20045 return 20046 } 20047 r.ReadArrayElem() 20048 if r.TryDecodeAsNil() { 20049 x.Protocol = "" 20050 } else { 20051 x.Protocol = (string)(r.DecodeString()) 20052 } 20053 yyj27++ 20054 if yyhl27 { 20055 yyb27 = yyj27 > l 20056 } else { 20057 yyb27 = r.CheckBreak() 20058 } 20059 if yyb27 { 20060 r.ReadArrayEnd() 20061 return 20062 } 20063 r.ReadArrayElem() 20064 if r.TryDecodeAsNil() { 20065 x.PortLabel = "" 20066 } else { 20067 x.PortLabel = (string)(r.DecodeString()) 20068 } 20069 yyj27++ 20070 if yyhl27 { 20071 yyb27 = yyj27 > l 20072 } else { 20073 yyb27 = r.CheckBreak() 20074 } 20075 if yyb27 { 20076 r.ReadArrayEnd() 20077 return 20078 } 20079 r.ReadArrayElem() 20080 if r.TryDecodeAsNil() { 20081 x.Expose = false 20082 } else { 20083 x.Expose = (bool)(r.DecodeBool()) 20084 } 20085 yyj27++ 20086 if yyhl27 { 20087 yyb27 = yyj27 > l 20088 } else { 20089 yyb27 = r.CheckBreak() 20090 } 20091 if yyb27 { 20092 r.ReadArrayEnd() 20093 return 20094 } 20095 r.ReadArrayElem() 20096 if r.TryDecodeAsNil() { 20097 x.AddressMode = "" 20098 } else { 20099 x.AddressMode = (string)(r.DecodeString()) 20100 } 20101 yyj27++ 20102 if yyhl27 { 20103 yyb27 = yyj27 > l 20104 } else { 20105 yyb27 = r.CheckBreak() 20106 } 20107 if yyb27 { 20108 r.ReadArrayEnd() 20109 return 20110 } 20111 r.ReadArrayElem() 20112 if r.TryDecodeAsNil() { 20113 x.Interval = 0 20114 } else { 20115 if false { 20116 } else if yyxt39 := z.Extension(z.I2Rtid(x.Interval)); yyxt39 != nil { 20117 z.DecExtension(x.Interval, yyxt39) 20118 } else { 20119 x.Interval = (time.Duration)(r.DecodeInt64()) 20120 } 20121 } 20122 yyj27++ 20123 if yyhl27 { 20124 yyb27 = yyj27 > l 20125 } else { 20126 yyb27 = r.CheckBreak() 20127 } 20128 if yyb27 { 20129 r.ReadArrayEnd() 20130 return 20131 } 20132 r.ReadArrayElem() 20133 if r.TryDecodeAsNil() { 20134 x.Timeout = 0 20135 } else { 20136 if false { 20137 } else if yyxt41 := z.Extension(z.I2Rtid(x.Timeout)); yyxt41 != nil { 20138 z.DecExtension(x.Timeout, yyxt41) 20139 } else { 20140 x.Timeout = (time.Duration)(r.DecodeInt64()) 20141 } 20142 } 20143 yyj27++ 20144 if yyhl27 { 20145 yyb27 = yyj27 > l 20146 } else { 20147 yyb27 = r.CheckBreak() 20148 } 20149 if yyb27 { 20150 r.ReadArrayEnd() 20151 return 20152 } 20153 r.ReadArrayElem() 20154 if r.TryDecodeAsNil() { 20155 x.InitialStatus = "" 20156 } else { 20157 x.InitialStatus = (string)(r.DecodeString()) 20158 } 20159 yyj27++ 20160 if yyhl27 { 20161 yyb27 = yyj27 > l 20162 } else { 20163 yyb27 = r.CheckBreak() 20164 } 20165 if yyb27 { 20166 r.ReadArrayEnd() 20167 return 20168 } 20169 r.ReadArrayElem() 20170 if r.TryDecodeAsNil() { 20171 x.TLSSkipVerify = false 20172 } else { 20173 x.TLSSkipVerify = (bool)(r.DecodeBool()) 20174 } 20175 yyj27++ 20176 if yyhl27 { 20177 yyb27 = yyj27 > l 20178 } else { 20179 yyb27 = r.CheckBreak() 20180 } 20181 if yyb27 { 20182 r.ReadArrayEnd() 20183 return 20184 } 20185 r.ReadArrayElem() 20186 if r.TryDecodeAsNil() { 20187 x.Method = "" 20188 } else { 20189 x.Method = (string)(r.DecodeString()) 20190 } 20191 yyj27++ 20192 if yyhl27 { 20193 yyb27 = yyj27 > l 20194 } else { 20195 yyb27 = r.CheckBreak() 20196 } 20197 if yyb27 { 20198 r.ReadArrayEnd() 20199 return 20200 } 20201 r.ReadArrayElem() 20202 if r.TryDecodeAsNil() { 20203 x.Header = nil 20204 } else { 20205 if false { 20206 } else { 20207 h.decMapstringSlicestring((*map[string][]string)(&x.Header), d) 20208 } 20209 } 20210 yyj27++ 20211 if yyhl27 { 20212 yyb27 = yyj27 > l 20213 } else { 20214 yyb27 = r.CheckBreak() 20215 } 20216 if yyb27 { 20217 r.ReadArrayEnd() 20218 return 20219 } 20220 r.ReadArrayElem() 20221 if r.TryDecodeAsNil() { 20222 if true && x.CheckRestart != nil { 20223 x.CheckRestart = nil 20224 } 20225 } else { 20226 if x.CheckRestart == nil { 20227 x.CheckRestart = new(CheckRestart) 20228 } 20229 20230 x.CheckRestart.CodecDecodeSelf(d) 20231 } 20232 yyj27++ 20233 if yyhl27 { 20234 yyb27 = yyj27 > l 20235 } else { 20236 yyb27 = r.CheckBreak() 20237 } 20238 if yyb27 { 20239 r.ReadArrayEnd() 20240 return 20241 } 20242 r.ReadArrayElem() 20243 if r.TryDecodeAsNil() { 20244 x.GRPCService = "" 20245 } else { 20246 x.GRPCService = (string)(r.DecodeString()) 20247 } 20248 yyj27++ 20249 if yyhl27 { 20250 yyb27 = yyj27 > l 20251 } else { 20252 yyb27 = r.CheckBreak() 20253 } 20254 if yyb27 { 20255 r.ReadArrayEnd() 20256 return 20257 } 20258 r.ReadArrayElem() 20259 if r.TryDecodeAsNil() { 20260 x.GRPCUseTLS = false 20261 } else { 20262 x.GRPCUseTLS = (bool)(r.DecodeBool()) 20263 } 20264 yyj27++ 20265 if yyhl27 { 20266 yyb27 = yyj27 > l 20267 } else { 20268 yyb27 = r.CheckBreak() 20269 } 20270 if yyb27 { 20271 r.ReadArrayEnd() 20272 return 20273 } 20274 r.ReadArrayElem() 20275 if r.TryDecodeAsNil() { 20276 x.TaskName = "" 20277 } else { 20278 x.TaskName = (string)(r.DecodeString()) 20279 } 20280 for { 20281 yyj27++ 20282 if yyhl27 { 20283 yyb27 = yyj27 > l 20284 } else { 20285 yyb27 = r.CheckBreak() 20286 } 20287 if yyb27 { 20288 break 20289 } 20290 r.ReadArrayElem() 20291 z.DecStructFieldNotFound(yyj27-1, "") 20292 } 20293 r.ReadArrayEnd() 20294 } 20295 20296 func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { 20297 var h codecSelfer100 20298 z, r := codec1978.GenHelperEncoder(e) 20299 _, _, _ = h, z, r 20300 if x == nil { 20301 r.EncodeNil() 20302 } else { 20303 if false { 20304 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 20305 z.EncExtension(x, yyxt1) 20306 } else { 20307 yysep2 := !z.EncBinary() 20308 yy2arr2 := z.EncBasicHandle().StructToArray 20309 _, _ = yysep2, yy2arr2 20310 const yyr2 bool = false // struct tag has 'toArray' 20311 if yyr2 || yy2arr2 { 20312 r.WriteArrayStart(10) 20313 } else { 20314 r.WriteMapStart(10) 20315 } 20316 if yyr2 || yy2arr2 { 20317 r.WriteArrayElem() 20318 if false { 20319 } else { 20320 if z.EncBasicHandle().StringToRaw { 20321 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 20322 } else { 20323 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 20324 } 20325 } 20326 } else { 20327 r.WriteMapElemKey() 20328 if z.IsJSONHandle() { 20329 z.WriteStr("\"Name\"") 20330 } else { 20331 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 20332 } 20333 r.WriteMapElemValue() 20334 if false { 20335 } else { 20336 if z.EncBasicHandle().StringToRaw { 20337 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 20338 } else { 20339 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 20340 } 20341 } 20342 } 20343 if yyr2 || yy2arr2 { 20344 r.WriteArrayElem() 20345 if false { 20346 } else { 20347 if z.EncBasicHandle().StringToRaw { 20348 r.EncodeStringBytesRaw(z.BytesView(string(x.PortLabel))) 20349 } else { 20350 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PortLabel)) 20351 } 20352 } 20353 } else { 20354 r.WriteMapElemKey() 20355 if z.IsJSONHandle() { 20356 z.WriteStr("\"PortLabel\"") 20357 } else { 20358 r.EncodeStringEnc(codecSelferCcUTF8100, `PortLabel`) 20359 } 20360 r.WriteMapElemValue() 20361 if false { 20362 } else { 20363 if z.EncBasicHandle().StringToRaw { 20364 r.EncodeStringBytesRaw(z.BytesView(string(x.PortLabel))) 20365 } else { 20366 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PortLabel)) 20367 } 20368 } 20369 } 20370 if yyr2 || yy2arr2 { 20371 r.WriteArrayElem() 20372 if false { 20373 } else { 20374 if z.EncBasicHandle().StringToRaw { 20375 r.EncodeStringBytesRaw(z.BytesView(string(x.AddressMode))) 20376 } else { 20377 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AddressMode)) 20378 } 20379 } 20380 } else { 20381 r.WriteMapElemKey() 20382 if z.IsJSONHandle() { 20383 z.WriteStr("\"AddressMode\"") 20384 } else { 20385 r.EncodeStringEnc(codecSelferCcUTF8100, `AddressMode`) 20386 } 20387 r.WriteMapElemValue() 20388 if false { 20389 } else { 20390 if z.EncBasicHandle().StringToRaw { 20391 r.EncodeStringBytesRaw(z.BytesView(string(x.AddressMode))) 20392 } else { 20393 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AddressMode)) 20394 } 20395 } 20396 } 20397 if yyr2 || yy2arr2 { 20398 r.WriteArrayElem() 20399 if false { 20400 } else { 20401 r.EncodeBool(bool(x.EnableTagOverride)) 20402 } 20403 } else { 20404 r.WriteMapElemKey() 20405 if z.IsJSONHandle() { 20406 z.WriteStr("\"EnableTagOverride\"") 20407 } else { 20408 r.EncodeStringEnc(codecSelferCcUTF8100, `EnableTagOverride`) 20409 } 20410 r.WriteMapElemValue() 20411 if false { 20412 } else { 20413 r.EncodeBool(bool(x.EnableTagOverride)) 20414 } 20415 } 20416 if yyr2 || yy2arr2 { 20417 r.WriteArrayElem() 20418 if x.Tags == nil { 20419 r.EncodeNil() 20420 } else { 20421 if false { 20422 } else { 20423 z.F.EncSliceStringV(x.Tags, e) 20424 } 20425 } 20426 } else { 20427 r.WriteMapElemKey() 20428 if z.IsJSONHandle() { 20429 z.WriteStr("\"Tags\"") 20430 } else { 20431 r.EncodeStringEnc(codecSelferCcUTF8100, `Tags`) 20432 } 20433 r.WriteMapElemValue() 20434 if x.Tags == nil { 20435 r.EncodeNil() 20436 } else { 20437 if false { 20438 } else { 20439 z.F.EncSliceStringV(x.Tags, e) 20440 } 20441 } 20442 } 20443 if yyr2 || yy2arr2 { 20444 r.WriteArrayElem() 20445 if x.CanaryTags == nil { 20446 r.EncodeNil() 20447 } else { 20448 if false { 20449 } else { 20450 z.F.EncSliceStringV(x.CanaryTags, e) 20451 } 20452 } 20453 } else { 20454 r.WriteMapElemKey() 20455 if z.IsJSONHandle() { 20456 z.WriteStr("\"CanaryTags\"") 20457 } else { 20458 r.EncodeStringEnc(codecSelferCcUTF8100, `CanaryTags`) 20459 } 20460 r.WriteMapElemValue() 20461 if x.CanaryTags == nil { 20462 r.EncodeNil() 20463 } else { 20464 if false { 20465 } else { 20466 z.F.EncSliceStringV(x.CanaryTags, e) 20467 } 20468 } 20469 } 20470 if yyr2 || yy2arr2 { 20471 r.WriteArrayElem() 20472 if x.Checks == nil { 20473 r.EncodeNil() 20474 } else { 20475 if false { 20476 } else { 20477 h.encSlicePtrtoServiceCheck(([]*ServiceCheck)(x.Checks), e) 20478 } 20479 } 20480 } else { 20481 r.WriteMapElemKey() 20482 if z.IsJSONHandle() { 20483 z.WriteStr("\"Checks\"") 20484 } else { 20485 r.EncodeStringEnc(codecSelferCcUTF8100, `Checks`) 20486 } 20487 r.WriteMapElemValue() 20488 if x.Checks == nil { 20489 r.EncodeNil() 20490 } else { 20491 if false { 20492 } else { 20493 h.encSlicePtrtoServiceCheck(([]*ServiceCheck)(x.Checks), e) 20494 } 20495 } 20496 } 20497 var yyn24 bool 20498 if x.Connect == nil { 20499 yyn24 = true 20500 goto LABEL24 20501 } 20502 LABEL24: 20503 if yyr2 || yy2arr2 { 20504 if yyn24 { 20505 r.WriteArrayElem() 20506 r.EncodeNil() 20507 } else { 20508 r.WriteArrayElem() 20509 if x.Connect == nil { 20510 r.EncodeNil() 20511 } else { 20512 x.Connect.CodecEncodeSelf(e) 20513 } 20514 } 20515 } else { 20516 r.WriteMapElemKey() 20517 if z.IsJSONHandle() { 20518 z.WriteStr("\"Connect\"") 20519 } else { 20520 r.EncodeStringEnc(codecSelferCcUTF8100, `Connect`) 20521 } 20522 r.WriteMapElemValue() 20523 if yyn24 { 20524 r.EncodeNil() 20525 } else { 20526 if x.Connect == nil { 20527 r.EncodeNil() 20528 } else { 20529 x.Connect.CodecEncodeSelf(e) 20530 } 20531 } 20532 } 20533 if yyr2 || yy2arr2 { 20534 r.WriteArrayElem() 20535 if x.Meta == nil { 20536 r.EncodeNil() 20537 } else { 20538 if false { 20539 } else { 20540 z.F.EncMapStringStringV(x.Meta, e) 20541 } 20542 } 20543 } else { 20544 r.WriteMapElemKey() 20545 if z.IsJSONHandle() { 20546 z.WriteStr("\"Meta\"") 20547 } else { 20548 r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) 20549 } 20550 r.WriteMapElemValue() 20551 if x.Meta == nil { 20552 r.EncodeNil() 20553 } else { 20554 if false { 20555 } else { 20556 z.F.EncMapStringStringV(x.Meta, e) 20557 } 20558 } 20559 } 20560 if yyr2 || yy2arr2 { 20561 r.WriteArrayElem() 20562 if x.CanaryMeta == nil { 20563 r.EncodeNil() 20564 } else { 20565 if false { 20566 } else { 20567 z.F.EncMapStringStringV(x.CanaryMeta, e) 20568 } 20569 } 20570 } else { 20571 r.WriteMapElemKey() 20572 if z.IsJSONHandle() { 20573 z.WriteStr("\"CanaryMeta\"") 20574 } else { 20575 r.EncodeStringEnc(codecSelferCcUTF8100, `CanaryMeta`) 20576 } 20577 r.WriteMapElemValue() 20578 if x.CanaryMeta == nil { 20579 r.EncodeNil() 20580 } else { 20581 if false { 20582 } else { 20583 z.F.EncMapStringStringV(x.CanaryMeta, e) 20584 } 20585 } 20586 } 20587 if yyr2 || yy2arr2 { 20588 r.WriteArrayEnd() 20589 } else { 20590 r.WriteMapEnd() 20591 } 20592 } 20593 } 20594 } 20595 20596 func (x *Service) CodecDecodeSelf(d *codec1978.Decoder) { 20597 var h codecSelfer100 20598 z, r := codec1978.GenHelperDecoder(d) 20599 _, _, _ = h, z, r 20600 if false { 20601 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 20602 z.DecExtension(x, yyxt1) 20603 } else { 20604 yyct2 := r.ContainerType() 20605 if yyct2 == codecSelferValueTypeMap100 { 20606 yyl2 := r.ReadMapStart() 20607 if yyl2 == 0 { 20608 r.ReadMapEnd() 20609 } else { 20610 x.codecDecodeSelfFromMap(yyl2, d) 20611 } 20612 } else if yyct2 == codecSelferValueTypeArray100 { 20613 yyl2 := r.ReadArrayStart() 20614 if yyl2 == 0 { 20615 r.ReadArrayEnd() 20616 } else { 20617 x.codecDecodeSelfFromArray(yyl2, d) 20618 } 20619 } else { 20620 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 20621 } 20622 } 20623 } 20624 20625 func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 20626 var h codecSelfer100 20627 z, r := codec1978.GenHelperDecoder(d) 20628 _, _, _ = h, z, r 20629 var yyhl3 bool = l >= 0 20630 for yyj3 := 0; ; yyj3++ { 20631 if yyhl3 { 20632 if yyj3 >= l { 20633 break 20634 } 20635 } else { 20636 if r.CheckBreak() { 20637 break 20638 } 20639 } 20640 r.ReadMapElemKey() 20641 yys3 := z.StringView(r.DecodeStringAsBytes()) 20642 r.ReadMapElemValue() 20643 switch yys3 { 20644 case "Name": 20645 if r.TryDecodeAsNil() { 20646 x.Name = "" 20647 } else { 20648 x.Name = (string)(r.DecodeString()) 20649 } 20650 case "PortLabel": 20651 if r.TryDecodeAsNil() { 20652 x.PortLabel = "" 20653 } else { 20654 x.PortLabel = (string)(r.DecodeString()) 20655 } 20656 case "AddressMode": 20657 if r.TryDecodeAsNil() { 20658 x.AddressMode = "" 20659 } else { 20660 x.AddressMode = (string)(r.DecodeString()) 20661 } 20662 case "EnableTagOverride": 20663 if r.TryDecodeAsNil() { 20664 x.EnableTagOverride = false 20665 } else { 20666 x.EnableTagOverride = (bool)(r.DecodeBool()) 20667 } 20668 case "Tags": 20669 if r.TryDecodeAsNil() { 20670 x.Tags = nil 20671 } else { 20672 if false { 20673 } else { 20674 z.F.DecSliceStringX(&x.Tags, d) 20675 } 20676 } 20677 case "CanaryTags": 20678 if r.TryDecodeAsNil() { 20679 x.CanaryTags = nil 20680 } else { 20681 if false { 20682 } else { 20683 z.F.DecSliceStringX(&x.CanaryTags, d) 20684 } 20685 } 20686 case "Checks": 20687 if r.TryDecodeAsNil() { 20688 x.Checks = nil 20689 } else { 20690 if false { 20691 } else { 20692 h.decSlicePtrtoServiceCheck((*[]*ServiceCheck)(&x.Checks), d) 20693 } 20694 } 20695 case "Connect": 20696 if r.TryDecodeAsNil() { 20697 if true && x.Connect != nil { 20698 x.Connect = nil 20699 } 20700 } else { 20701 if x.Connect == nil { 20702 x.Connect = new(ConsulConnect) 20703 } 20704 20705 x.Connect.CodecDecodeSelf(d) 20706 } 20707 case "Meta": 20708 if r.TryDecodeAsNil() { 20709 x.Meta = nil 20710 } else { 20711 if false { 20712 } else { 20713 z.F.DecMapStringStringX(&x.Meta, d) 20714 } 20715 } 20716 case "CanaryMeta": 20717 if r.TryDecodeAsNil() { 20718 x.CanaryMeta = nil 20719 } else { 20720 if false { 20721 } else { 20722 z.F.DecMapStringStringX(&x.CanaryMeta, d) 20723 } 20724 } 20725 default: 20726 z.DecStructFieldNotFound(-1, yys3) 20727 } // end switch yys3 20728 } // end for yyj3 20729 r.ReadMapEnd() 20730 } 20731 20732 func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 20733 var h codecSelfer100 20734 z, r := codec1978.GenHelperDecoder(d) 20735 _, _, _ = h, z, r 20736 var yyj19 int 20737 var yyb19 bool 20738 var yyhl19 bool = l >= 0 20739 yyj19++ 20740 if yyhl19 { 20741 yyb19 = yyj19 > l 20742 } else { 20743 yyb19 = r.CheckBreak() 20744 } 20745 if yyb19 { 20746 r.ReadArrayEnd() 20747 return 20748 } 20749 r.ReadArrayElem() 20750 if r.TryDecodeAsNil() { 20751 x.Name = "" 20752 } else { 20753 x.Name = (string)(r.DecodeString()) 20754 } 20755 yyj19++ 20756 if yyhl19 { 20757 yyb19 = yyj19 > l 20758 } else { 20759 yyb19 = r.CheckBreak() 20760 } 20761 if yyb19 { 20762 r.ReadArrayEnd() 20763 return 20764 } 20765 r.ReadArrayElem() 20766 if r.TryDecodeAsNil() { 20767 x.PortLabel = "" 20768 } else { 20769 x.PortLabel = (string)(r.DecodeString()) 20770 } 20771 yyj19++ 20772 if yyhl19 { 20773 yyb19 = yyj19 > l 20774 } else { 20775 yyb19 = r.CheckBreak() 20776 } 20777 if yyb19 { 20778 r.ReadArrayEnd() 20779 return 20780 } 20781 r.ReadArrayElem() 20782 if r.TryDecodeAsNil() { 20783 x.AddressMode = "" 20784 } else { 20785 x.AddressMode = (string)(r.DecodeString()) 20786 } 20787 yyj19++ 20788 if yyhl19 { 20789 yyb19 = yyj19 > l 20790 } else { 20791 yyb19 = r.CheckBreak() 20792 } 20793 if yyb19 { 20794 r.ReadArrayEnd() 20795 return 20796 } 20797 r.ReadArrayElem() 20798 if r.TryDecodeAsNil() { 20799 x.EnableTagOverride = false 20800 } else { 20801 x.EnableTagOverride = (bool)(r.DecodeBool()) 20802 } 20803 yyj19++ 20804 if yyhl19 { 20805 yyb19 = yyj19 > l 20806 } else { 20807 yyb19 = r.CheckBreak() 20808 } 20809 if yyb19 { 20810 r.ReadArrayEnd() 20811 return 20812 } 20813 r.ReadArrayElem() 20814 if r.TryDecodeAsNil() { 20815 x.Tags = nil 20816 } else { 20817 if false { 20818 } else { 20819 z.F.DecSliceStringX(&x.Tags, d) 20820 } 20821 } 20822 yyj19++ 20823 if yyhl19 { 20824 yyb19 = yyj19 > l 20825 } else { 20826 yyb19 = r.CheckBreak() 20827 } 20828 if yyb19 { 20829 r.ReadArrayEnd() 20830 return 20831 } 20832 r.ReadArrayElem() 20833 if r.TryDecodeAsNil() { 20834 x.CanaryTags = nil 20835 } else { 20836 if false { 20837 } else { 20838 z.F.DecSliceStringX(&x.CanaryTags, d) 20839 } 20840 } 20841 yyj19++ 20842 if yyhl19 { 20843 yyb19 = yyj19 > l 20844 } else { 20845 yyb19 = r.CheckBreak() 20846 } 20847 if yyb19 { 20848 r.ReadArrayEnd() 20849 return 20850 } 20851 r.ReadArrayElem() 20852 if r.TryDecodeAsNil() { 20853 x.Checks = nil 20854 } else { 20855 if false { 20856 } else { 20857 h.decSlicePtrtoServiceCheck((*[]*ServiceCheck)(&x.Checks), d) 20858 } 20859 } 20860 yyj19++ 20861 if yyhl19 { 20862 yyb19 = yyj19 > l 20863 } else { 20864 yyb19 = r.CheckBreak() 20865 } 20866 if yyb19 { 20867 r.ReadArrayEnd() 20868 return 20869 } 20870 r.ReadArrayElem() 20871 if r.TryDecodeAsNil() { 20872 if true && x.Connect != nil { 20873 x.Connect = nil 20874 } 20875 } else { 20876 if x.Connect == nil { 20877 x.Connect = new(ConsulConnect) 20878 } 20879 20880 x.Connect.CodecDecodeSelf(d) 20881 } 20882 yyj19++ 20883 if yyhl19 { 20884 yyb19 = yyj19 > l 20885 } else { 20886 yyb19 = r.CheckBreak() 20887 } 20888 if yyb19 { 20889 r.ReadArrayEnd() 20890 return 20891 } 20892 r.ReadArrayElem() 20893 if r.TryDecodeAsNil() { 20894 x.Meta = nil 20895 } else { 20896 if false { 20897 } else { 20898 z.F.DecMapStringStringX(&x.Meta, d) 20899 } 20900 } 20901 yyj19++ 20902 if yyhl19 { 20903 yyb19 = yyj19 > l 20904 } else { 20905 yyb19 = r.CheckBreak() 20906 } 20907 if yyb19 { 20908 r.ReadArrayEnd() 20909 return 20910 } 20911 r.ReadArrayElem() 20912 if r.TryDecodeAsNil() { 20913 x.CanaryMeta = nil 20914 } else { 20915 if false { 20916 } else { 20917 z.F.DecMapStringStringX(&x.CanaryMeta, d) 20918 } 20919 } 20920 for { 20921 yyj19++ 20922 if yyhl19 { 20923 yyb19 = yyj19 > l 20924 } else { 20925 yyb19 = r.CheckBreak() 20926 } 20927 if yyb19 { 20928 break 20929 } 20930 r.ReadArrayElem() 20931 z.DecStructFieldNotFound(yyj19-1, "") 20932 } 20933 r.ReadArrayEnd() 20934 } 20935 20936 func (x *ConsulConnect) CodecEncodeSelf(e *codec1978.Encoder) { 20937 var h codecSelfer100 20938 z, r := codec1978.GenHelperEncoder(e) 20939 _, _, _ = h, z, r 20940 if x == nil { 20941 r.EncodeNil() 20942 } else { 20943 if false { 20944 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 20945 z.EncExtension(x, yyxt1) 20946 } else { 20947 yysep2 := !z.EncBinary() 20948 yy2arr2 := z.EncBasicHandle().StructToArray 20949 _, _ = yysep2, yy2arr2 20950 const yyr2 bool = false // struct tag has 'toArray' 20951 if yyr2 || yy2arr2 { 20952 r.WriteArrayStart(3) 20953 } else { 20954 r.WriteMapStart(3) 20955 } 20956 if yyr2 || yy2arr2 { 20957 r.WriteArrayElem() 20958 if false { 20959 } else { 20960 r.EncodeBool(bool(x.Native)) 20961 } 20962 } else { 20963 r.WriteMapElemKey() 20964 if z.IsJSONHandle() { 20965 z.WriteStr("\"Native\"") 20966 } else { 20967 r.EncodeStringEnc(codecSelferCcUTF8100, `Native`) 20968 } 20969 r.WriteMapElemValue() 20970 if false { 20971 } else { 20972 r.EncodeBool(bool(x.Native)) 20973 } 20974 } 20975 var yyn6 bool 20976 if x.SidecarService == nil { 20977 yyn6 = true 20978 goto LABEL6 20979 } 20980 LABEL6: 20981 if yyr2 || yy2arr2 { 20982 if yyn6 { 20983 r.WriteArrayElem() 20984 r.EncodeNil() 20985 } else { 20986 r.WriteArrayElem() 20987 if x.SidecarService == nil { 20988 r.EncodeNil() 20989 } else { 20990 x.SidecarService.CodecEncodeSelf(e) 20991 } 20992 } 20993 } else { 20994 r.WriteMapElemKey() 20995 if z.IsJSONHandle() { 20996 z.WriteStr("\"SidecarService\"") 20997 } else { 20998 r.EncodeStringEnc(codecSelferCcUTF8100, `SidecarService`) 20999 } 21000 r.WriteMapElemValue() 21001 if yyn6 { 21002 r.EncodeNil() 21003 } else { 21004 if x.SidecarService == nil { 21005 r.EncodeNil() 21006 } else { 21007 x.SidecarService.CodecEncodeSelf(e) 21008 } 21009 } 21010 } 21011 var yyn9 bool 21012 if x.SidecarTask == nil { 21013 yyn9 = true 21014 goto LABEL9 21015 } 21016 LABEL9: 21017 if yyr2 || yy2arr2 { 21018 if yyn9 { 21019 r.WriteArrayElem() 21020 r.EncodeNil() 21021 } else { 21022 r.WriteArrayElem() 21023 if x.SidecarTask == nil { 21024 r.EncodeNil() 21025 } else { 21026 x.SidecarTask.CodecEncodeSelf(e) 21027 } 21028 } 21029 } else { 21030 r.WriteMapElemKey() 21031 if z.IsJSONHandle() { 21032 z.WriteStr("\"SidecarTask\"") 21033 } else { 21034 r.EncodeStringEnc(codecSelferCcUTF8100, `SidecarTask`) 21035 } 21036 r.WriteMapElemValue() 21037 if yyn9 { 21038 r.EncodeNil() 21039 } else { 21040 if x.SidecarTask == nil { 21041 r.EncodeNil() 21042 } else { 21043 x.SidecarTask.CodecEncodeSelf(e) 21044 } 21045 } 21046 } 21047 if yyr2 || yy2arr2 { 21048 r.WriteArrayEnd() 21049 } else { 21050 r.WriteMapEnd() 21051 } 21052 } 21053 } 21054 } 21055 21056 func (x *ConsulConnect) CodecDecodeSelf(d *codec1978.Decoder) { 21057 var h codecSelfer100 21058 z, r := codec1978.GenHelperDecoder(d) 21059 _, _, _ = h, z, r 21060 if false { 21061 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 21062 z.DecExtension(x, yyxt1) 21063 } else { 21064 yyct2 := r.ContainerType() 21065 if yyct2 == codecSelferValueTypeMap100 { 21066 yyl2 := r.ReadMapStart() 21067 if yyl2 == 0 { 21068 r.ReadMapEnd() 21069 } else { 21070 x.codecDecodeSelfFromMap(yyl2, d) 21071 } 21072 } else if yyct2 == codecSelferValueTypeArray100 { 21073 yyl2 := r.ReadArrayStart() 21074 if yyl2 == 0 { 21075 r.ReadArrayEnd() 21076 } else { 21077 x.codecDecodeSelfFromArray(yyl2, d) 21078 } 21079 } else { 21080 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 21081 } 21082 } 21083 } 21084 21085 func (x *ConsulConnect) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 21086 var h codecSelfer100 21087 z, r := codec1978.GenHelperDecoder(d) 21088 _, _, _ = h, z, r 21089 var yyhl3 bool = l >= 0 21090 for yyj3 := 0; ; yyj3++ { 21091 if yyhl3 { 21092 if yyj3 >= l { 21093 break 21094 } 21095 } else { 21096 if r.CheckBreak() { 21097 break 21098 } 21099 } 21100 r.ReadMapElemKey() 21101 yys3 := z.StringView(r.DecodeStringAsBytes()) 21102 r.ReadMapElemValue() 21103 switch yys3 { 21104 case "Native": 21105 if r.TryDecodeAsNil() { 21106 x.Native = false 21107 } else { 21108 x.Native = (bool)(r.DecodeBool()) 21109 } 21110 case "SidecarService": 21111 if r.TryDecodeAsNil() { 21112 if true && x.SidecarService != nil { 21113 x.SidecarService = nil 21114 } 21115 } else { 21116 if x.SidecarService == nil { 21117 x.SidecarService = new(ConsulSidecarService) 21118 } 21119 21120 x.SidecarService.CodecDecodeSelf(d) 21121 } 21122 case "SidecarTask": 21123 if r.TryDecodeAsNil() { 21124 if true && x.SidecarTask != nil { 21125 x.SidecarTask = nil 21126 } 21127 } else { 21128 if x.SidecarTask == nil { 21129 x.SidecarTask = new(SidecarTask) 21130 } 21131 21132 x.SidecarTask.CodecDecodeSelf(d) 21133 } 21134 default: 21135 z.DecStructFieldNotFound(-1, yys3) 21136 } // end switch yys3 21137 } // end for yyj3 21138 r.ReadMapEnd() 21139 } 21140 21141 func (x *ConsulConnect) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 21142 var h codecSelfer100 21143 z, r := codec1978.GenHelperDecoder(d) 21144 _, _, _ = h, z, r 21145 var yyj7 int 21146 var yyb7 bool 21147 var yyhl7 bool = l >= 0 21148 yyj7++ 21149 if yyhl7 { 21150 yyb7 = yyj7 > l 21151 } else { 21152 yyb7 = r.CheckBreak() 21153 } 21154 if yyb7 { 21155 r.ReadArrayEnd() 21156 return 21157 } 21158 r.ReadArrayElem() 21159 if r.TryDecodeAsNil() { 21160 x.Native = false 21161 } else { 21162 x.Native = (bool)(r.DecodeBool()) 21163 } 21164 yyj7++ 21165 if yyhl7 { 21166 yyb7 = yyj7 > l 21167 } else { 21168 yyb7 = r.CheckBreak() 21169 } 21170 if yyb7 { 21171 r.ReadArrayEnd() 21172 return 21173 } 21174 r.ReadArrayElem() 21175 if r.TryDecodeAsNil() { 21176 if true && x.SidecarService != nil { 21177 x.SidecarService = nil 21178 } 21179 } else { 21180 if x.SidecarService == nil { 21181 x.SidecarService = new(ConsulSidecarService) 21182 } 21183 21184 x.SidecarService.CodecDecodeSelf(d) 21185 } 21186 yyj7++ 21187 if yyhl7 { 21188 yyb7 = yyj7 > l 21189 } else { 21190 yyb7 = r.CheckBreak() 21191 } 21192 if yyb7 { 21193 r.ReadArrayEnd() 21194 return 21195 } 21196 r.ReadArrayElem() 21197 if r.TryDecodeAsNil() { 21198 if true && x.SidecarTask != nil { 21199 x.SidecarTask = nil 21200 } 21201 } else { 21202 if x.SidecarTask == nil { 21203 x.SidecarTask = new(SidecarTask) 21204 } 21205 21206 x.SidecarTask.CodecDecodeSelf(d) 21207 } 21208 for { 21209 yyj7++ 21210 if yyhl7 { 21211 yyb7 = yyj7 > l 21212 } else { 21213 yyb7 = r.CheckBreak() 21214 } 21215 if yyb7 { 21216 break 21217 } 21218 r.ReadArrayElem() 21219 z.DecStructFieldNotFound(yyj7-1, "") 21220 } 21221 r.ReadArrayEnd() 21222 } 21223 21224 func (x *ConsulSidecarService) CodecEncodeSelf(e *codec1978.Encoder) { 21225 var h codecSelfer100 21226 z, r := codec1978.GenHelperEncoder(e) 21227 _, _, _ = h, z, r 21228 if x == nil { 21229 r.EncodeNil() 21230 } else { 21231 if false { 21232 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 21233 z.EncExtension(x, yyxt1) 21234 } else { 21235 yysep2 := !z.EncBinary() 21236 yy2arr2 := z.EncBasicHandle().StructToArray 21237 _, _ = yysep2, yy2arr2 21238 const yyr2 bool = false // struct tag has 'toArray' 21239 if yyr2 || yy2arr2 { 21240 r.WriteArrayStart(3) 21241 } else { 21242 r.WriteMapStart(3) 21243 } 21244 if yyr2 || yy2arr2 { 21245 r.WriteArrayElem() 21246 if x.Tags == nil { 21247 r.EncodeNil() 21248 } else { 21249 if false { 21250 } else { 21251 z.F.EncSliceStringV(x.Tags, e) 21252 } 21253 } 21254 } else { 21255 r.WriteMapElemKey() 21256 if z.IsJSONHandle() { 21257 z.WriteStr("\"Tags\"") 21258 } else { 21259 r.EncodeStringEnc(codecSelferCcUTF8100, `Tags`) 21260 } 21261 r.WriteMapElemValue() 21262 if x.Tags == nil { 21263 r.EncodeNil() 21264 } else { 21265 if false { 21266 } else { 21267 z.F.EncSliceStringV(x.Tags, e) 21268 } 21269 } 21270 } 21271 if yyr2 || yy2arr2 { 21272 r.WriteArrayElem() 21273 if false { 21274 } else { 21275 if z.EncBasicHandle().StringToRaw { 21276 r.EncodeStringBytesRaw(z.BytesView(string(x.Port))) 21277 } else { 21278 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Port)) 21279 } 21280 } 21281 } else { 21282 r.WriteMapElemKey() 21283 if z.IsJSONHandle() { 21284 z.WriteStr("\"Port\"") 21285 } else { 21286 r.EncodeStringEnc(codecSelferCcUTF8100, `Port`) 21287 } 21288 r.WriteMapElemValue() 21289 if false { 21290 } else { 21291 if z.EncBasicHandle().StringToRaw { 21292 r.EncodeStringBytesRaw(z.BytesView(string(x.Port))) 21293 } else { 21294 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Port)) 21295 } 21296 } 21297 } 21298 var yyn9 bool 21299 if x.Proxy == nil { 21300 yyn9 = true 21301 goto LABEL9 21302 } 21303 LABEL9: 21304 if yyr2 || yy2arr2 { 21305 if yyn9 { 21306 r.WriteArrayElem() 21307 r.EncodeNil() 21308 } else { 21309 r.WriteArrayElem() 21310 if x.Proxy == nil { 21311 r.EncodeNil() 21312 } else { 21313 x.Proxy.CodecEncodeSelf(e) 21314 } 21315 } 21316 } else { 21317 r.WriteMapElemKey() 21318 if z.IsJSONHandle() { 21319 z.WriteStr("\"Proxy\"") 21320 } else { 21321 r.EncodeStringEnc(codecSelferCcUTF8100, `Proxy`) 21322 } 21323 r.WriteMapElemValue() 21324 if yyn9 { 21325 r.EncodeNil() 21326 } else { 21327 if x.Proxy == nil { 21328 r.EncodeNil() 21329 } else { 21330 x.Proxy.CodecEncodeSelf(e) 21331 } 21332 } 21333 } 21334 if yyr2 || yy2arr2 { 21335 r.WriteArrayEnd() 21336 } else { 21337 r.WriteMapEnd() 21338 } 21339 } 21340 } 21341 } 21342 21343 func (x *ConsulSidecarService) CodecDecodeSelf(d *codec1978.Decoder) { 21344 var h codecSelfer100 21345 z, r := codec1978.GenHelperDecoder(d) 21346 _, _, _ = h, z, r 21347 if false { 21348 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 21349 z.DecExtension(x, yyxt1) 21350 } else { 21351 yyct2 := r.ContainerType() 21352 if yyct2 == codecSelferValueTypeMap100 { 21353 yyl2 := r.ReadMapStart() 21354 if yyl2 == 0 { 21355 r.ReadMapEnd() 21356 } else { 21357 x.codecDecodeSelfFromMap(yyl2, d) 21358 } 21359 } else if yyct2 == codecSelferValueTypeArray100 { 21360 yyl2 := r.ReadArrayStart() 21361 if yyl2 == 0 { 21362 r.ReadArrayEnd() 21363 } else { 21364 x.codecDecodeSelfFromArray(yyl2, d) 21365 } 21366 } else { 21367 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 21368 } 21369 } 21370 } 21371 21372 func (x *ConsulSidecarService) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 21373 var h codecSelfer100 21374 z, r := codec1978.GenHelperDecoder(d) 21375 _, _, _ = h, z, r 21376 var yyhl3 bool = l >= 0 21377 for yyj3 := 0; ; yyj3++ { 21378 if yyhl3 { 21379 if yyj3 >= l { 21380 break 21381 } 21382 } else { 21383 if r.CheckBreak() { 21384 break 21385 } 21386 } 21387 r.ReadMapElemKey() 21388 yys3 := z.StringView(r.DecodeStringAsBytes()) 21389 r.ReadMapElemValue() 21390 switch yys3 { 21391 case "Tags": 21392 if r.TryDecodeAsNil() { 21393 x.Tags = nil 21394 } else { 21395 if false { 21396 } else { 21397 z.F.DecSliceStringX(&x.Tags, d) 21398 } 21399 } 21400 case "Port": 21401 if r.TryDecodeAsNil() { 21402 x.Port = "" 21403 } else { 21404 x.Port = (string)(r.DecodeString()) 21405 } 21406 case "Proxy": 21407 if r.TryDecodeAsNil() { 21408 if true && x.Proxy != nil { 21409 x.Proxy = nil 21410 } 21411 } else { 21412 if x.Proxy == nil { 21413 x.Proxy = new(ConsulProxy) 21414 } 21415 21416 x.Proxy.CodecDecodeSelf(d) 21417 } 21418 default: 21419 z.DecStructFieldNotFound(-1, yys3) 21420 } // end switch yys3 21421 } // end for yyj3 21422 r.ReadMapEnd() 21423 } 21424 21425 func (x *ConsulSidecarService) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 21426 var h codecSelfer100 21427 z, r := codec1978.GenHelperDecoder(d) 21428 _, _, _ = h, z, r 21429 var yyj8 int 21430 var yyb8 bool 21431 var yyhl8 bool = l >= 0 21432 yyj8++ 21433 if yyhl8 { 21434 yyb8 = yyj8 > l 21435 } else { 21436 yyb8 = r.CheckBreak() 21437 } 21438 if yyb8 { 21439 r.ReadArrayEnd() 21440 return 21441 } 21442 r.ReadArrayElem() 21443 if r.TryDecodeAsNil() { 21444 x.Tags = nil 21445 } else { 21446 if false { 21447 } else { 21448 z.F.DecSliceStringX(&x.Tags, d) 21449 } 21450 } 21451 yyj8++ 21452 if yyhl8 { 21453 yyb8 = yyj8 > l 21454 } else { 21455 yyb8 = r.CheckBreak() 21456 } 21457 if yyb8 { 21458 r.ReadArrayEnd() 21459 return 21460 } 21461 r.ReadArrayElem() 21462 if r.TryDecodeAsNil() { 21463 x.Port = "" 21464 } else { 21465 x.Port = (string)(r.DecodeString()) 21466 } 21467 yyj8++ 21468 if yyhl8 { 21469 yyb8 = yyj8 > l 21470 } else { 21471 yyb8 = r.CheckBreak() 21472 } 21473 if yyb8 { 21474 r.ReadArrayEnd() 21475 return 21476 } 21477 r.ReadArrayElem() 21478 if r.TryDecodeAsNil() { 21479 if true && x.Proxy != nil { 21480 x.Proxy = nil 21481 } 21482 } else { 21483 if x.Proxy == nil { 21484 x.Proxy = new(ConsulProxy) 21485 } 21486 21487 x.Proxy.CodecDecodeSelf(d) 21488 } 21489 for { 21490 yyj8++ 21491 if yyhl8 { 21492 yyb8 = yyj8 > l 21493 } else { 21494 yyb8 = r.CheckBreak() 21495 } 21496 if yyb8 { 21497 break 21498 } 21499 r.ReadArrayElem() 21500 z.DecStructFieldNotFound(yyj8-1, "") 21501 } 21502 r.ReadArrayEnd() 21503 } 21504 21505 func (x *SidecarTask) CodecEncodeSelf(e *codec1978.Encoder) { 21506 var h codecSelfer100 21507 z, r := codec1978.GenHelperEncoder(e) 21508 _, _, _ = h, z, r 21509 if x == nil { 21510 r.EncodeNil() 21511 } else { 21512 if false { 21513 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 21514 z.EncExtension(x, yyxt1) 21515 } else { 21516 yysep2 := !z.EncBinary() 21517 yy2arr2 := z.EncBasicHandle().StructToArray 21518 _, _ = yysep2, yy2arr2 21519 const yyr2 bool = false // struct tag has 'toArray' 21520 if yyr2 || yy2arr2 { 21521 r.WriteArrayStart(11) 21522 } else { 21523 r.WriteMapStart(11) 21524 } 21525 if yyr2 || yy2arr2 { 21526 r.WriteArrayElem() 21527 if false { 21528 } else { 21529 if z.EncBasicHandle().StringToRaw { 21530 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 21531 } else { 21532 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 21533 } 21534 } 21535 } else { 21536 r.WriteMapElemKey() 21537 if z.IsJSONHandle() { 21538 z.WriteStr("\"Name\"") 21539 } else { 21540 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 21541 } 21542 r.WriteMapElemValue() 21543 if false { 21544 } else { 21545 if z.EncBasicHandle().StringToRaw { 21546 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 21547 } else { 21548 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 21549 } 21550 } 21551 } 21552 if yyr2 || yy2arr2 { 21553 r.WriteArrayElem() 21554 if false { 21555 } else { 21556 if z.EncBasicHandle().StringToRaw { 21557 r.EncodeStringBytesRaw(z.BytesView(string(x.Driver))) 21558 } else { 21559 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Driver)) 21560 } 21561 } 21562 } else { 21563 r.WriteMapElemKey() 21564 if z.IsJSONHandle() { 21565 z.WriteStr("\"Driver\"") 21566 } else { 21567 r.EncodeStringEnc(codecSelferCcUTF8100, `Driver`) 21568 } 21569 r.WriteMapElemValue() 21570 if false { 21571 } else { 21572 if z.EncBasicHandle().StringToRaw { 21573 r.EncodeStringBytesRaw(z.BytesView(string(x.Driver))) 21574 } else { 21575 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Driver)) 21576 } 21577 } 21578 } 21579 if yyr2 || yy2arr2 { 21580 r.WriteArrayElem() 21581 if false { 21582 } else { 21583 if z.EncBasicHandle().StringToRaw { 21584 r.EncodeStringBytesRaw(z.BytesView(string(x.User))) 21585 } else { 21586 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.User)) 21587 } 21588 } 21589 } else { 21590 r.WriteMapElemKey() 21591 if z.IsJSONHandle() { 21592 z.WriteStr("\"User\"") 21593 } else { 21594 r.EncodeStringEnc(codecSelferCcUTF8100, `User`) 21595 } 21596 r.WriteMapElemValue() 21597 if false { 21598 } else { 21599 if z.EncBasicHandle().StringToRaw { 21600 r.EncodeStringBytesRaw(z.BytesView(string(x.User))) 21601 } else { 21602 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.User)) 21603 } 21604 } 21605 } 21606 if yyr2 || yy2arr2 { 21607 r.WriteArrayElem() 21608 if x.Config == nil { 21609 r.EncodeNil() 21610 } else { 21611 if false { 21612 } else { 21613 z.F.EncMapStringIntfV(x.Config, e) 21614 } 21615 } 21616 } else { 21617 r.WriteMapElemKey() 21618 if z.IsJSONHandle() { 21619 z.WriteStr("\"Config\"") 21620 } else { 21621 r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) 21622 } 21623 r.WriteMapElemValue() 21624 if x.Config == nil { 21625 r.EncodeNil() 21626 } else { 21627 if false { 21628 } else { 21629 z.F.EncMapStringIntfV(x.Config, e) 21630 } 21631 } 21632 } 21633 if yyr2 || yy2arr2 { 21634 r.WriteArrayElem() 21635 if x.Env == nil { 21636 r.EncodeNil() 21637 } else { 21638 if false { 21639 } else { 21640 z.F.EncMapStringStringV(x.Env, e) 21641 } 21642 } 21643 } else { 21644 r.WriteMapElemKey() 21645 if z.IsJSONHandle() { 21646 z.WriteStr("\"Env\"") 21647 } else { 21648 r.EncodeStringEnc(codecSelferCcUTF8100, `Env`) 21649 } 21650 r.WriteMapElemValue() 21651 if x.Env == nil { 21652 r.EncodeNil() 21653 } else { 21654 if false { 21655 } else { 21656 z.F.EncMapStringStringV(x.Env, e) 21657 } 21658 } 21659 } 21660 var yyn18 bool 21661 if x.Resources == nil { 21662 yyn18 = true 21663 goto LABEL18 21664 } 21665 LABEL18: 21666 if yyr2 || yy2arr2 { 21667 if yyn18 { 21668 r.WriteArrayElem() 21669 r.EncodeNil() 21670 } else { 21671 r.WriteArrayElem() 21672 if x.Resources == nil { 21673 r.EncodeNil() 21674 } else { 21675 x.Resources.CodecEncodeSelf(e) 21676 } 21677 } 21678 } else { 21679 r.WriteMapElemKey() 21680 if z.IsJSONHandle() { 21681 z.WriteStr("\"Resources\"") 21682 } else { 21683 r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) 21684 } 21685 r.WriteMapElemValue() 21686 if yyn18 { 21687 r.EncodeNil() 21688 } else { 21689 if x.Resources == nil { 21690 r.EncodeNil() 21691 } else { 21692 x.Resources.CodecEncodeSelf(e) 21693 } 21694 } 21695 } 21696 if yyr2 || yy2arr2 { 21697 r.WriteArrayElem() 21698 if x.Meta == nil { 21699 r.EncodeNil() 21700 } else { 21701 if false { 21702 } else { 21703 z.F.EncMapStringStringV(x.Meta, e) 21704 } 21705 } 21706 } else { 21707 r.WriteMapElemKey() 21708 if z.IsJSONHandle() { 21709 z.WriteStr("\"Meta\"") 21710 } else { 21711 r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) 21712 } 21713 r.WriteMapElemValue() 21714 if x.Meta == nil { 21715 r.EncodeNil() 21716 } else { 21717 if false { 21718 } else { 21719 z.F.EncMapStringStringV(x.Meta, e) 21720 } 21721 } 21722 } 21723 var yyn24 bool 21724 if x.KillTimeout == nil { 21725 yyn24 = true 21726 goto LABEL24 21727 } 21728 LABEL24: 21729 if yyr2 || yy2arr2 { 21730 if yyn24 { 21731 r.WriteArrayElem() 21732 r.EncodeNil() 21733 } else { 21734 r.WriteArrayElem() 21735 if x.KillTimeout == nil { 21736 r.EncodeNil() 21737 } else { 21738 yy25 := *x.KillTimeout 21739 if false { 21740 } else if yyxt26 := z.Extension(z.I2Rtid(yy25)); yyxt26 != nil { 21741 z.EncExtension(yy25, yyxt26) 21742 } else { 21743 r.EncodeInt(int64(yy25)) 21744 } 21745 } 21746 } 21747 } else { 21748 r.WriteMapElemKey() 21749 if z.IsJSONHandle() { 21750 z.WriteStr("\"KillTimeout\"") 21751 } else { 21752 r.EncodeStringEnc(codecSelferCcUTF8100, `KillTimeout`) 21753 } 21754 r.WriteMapElemValue() 21755 if yyn24 { 21756 r.EncodeNil() 21757 } else { 21758 if x.KillTimeout == nil { 21759 r.EncodeNil() 21760 } else { 21761 yy27 := *x.KillTimeout 21762 if false { 21763 } else if yyxt28 := z.Extension(z.I2Rtid(yy27)); yyxt28 != nil { 21764 z.EncExtension(yy27, yyxt28) 21765 } else { 21766 r.EncodeInt(int64(yy27)) 21767 } 21768 } 21769 } 21770 } 21771 var yyn29 bool 21772 if x.LogConfig == nil { 21773 yyn29 = true 21774 goto LABEL29 21775 } 21776 LABEL29: 21777 if yyr2 || yy2arr2 { 21778 if yyn29 { 21779 r.WriteArrayElem() 21780 r.EncodeNil() 21781 } else { 21782 r.WriteArrayElem() 21783 if x.LogConfig == nil { 21784 r.EncodeNil() 21785 } else { 21786 x.LogConfig.CodecEncodeSelf(e) 21787 } 21788 } 21789 } else { 21790 r.WriteMapElemKey() 21791 if z.IsJSONHandle() { 21792 z.WriteStr("\"LogConfig\"") 21793 } else { 21794 r.EncodeStringEnc(codecSelferCcUTF8100, `LogConfig`) 21795 } 21796 r.WriteMapElemValue() 21797 if yyn29 { 21798 r.EncodeNil() 21799 } else { 21800 if x.LogConfig == nil { 21801 r.EncodeNil() 21802 } else { 21803 x.LogConfig.CodecEncodeSelf(e) 21804 } 21805 } 21806 } 21807 var yyn32 bool 21808 if x.ShutdownDelay == nil { 21809 yyn32 = true 21810 goto LABEL32 21811 } 21812 LABEL32: 21813 if yyr2 || yy2arr2 { 21814 if yyn32 { 21815 r.WriteArrayElem() 21816 r.EncodeNil() 21817 } else { 21818 r.WriteArrayElem() 21819 if x.ShutdownDelay == nil { 21820 r.EncodeNil() 21821 } else { 21822 yy33 := *x.ShutdownDelay 21823 if false { 21824 } else if yyxt34 := z.Extension(z.I2Rtid(yy33)); yyxt34 != nil { 21825 z.EncExtension(yy33, yyxt34) 21826 } else { 21827 r.EncodeInt(int64(yy33)) 21828 } 21829 } 21830 } 21831 } else { 21832 r.WriteMapElemKey() 21833 if z.IsJSONHandle() { 21834 z.WriteStr("\"ShutdownDelay\"") 21835 } else { 21836 r.EncodeStringEnc(codecSelferCcUTF8100, `ShutdownDelay`) 21837 } 21838 r.WriteMapElemValue() 21839 if yyn32 { 21840 r.EncodeNil() 21841 } else { 21842 if x.ShutdownDelay == nil { 21843 r.EncodeNil() 21844 } else { 21845 yy35 := *x.ShutdownDelay 21846 if false { 21847 } else if yyxt36 := z.Extension(z.I2Rtid(yy35)); yyxt36 != nil { 21848 z.EncExtension(yy35, yyxt36) 21849 } else { 21850 r.EncodeInt(int64(yy35)) 21851 } 21852 } 21853 } 21854 } 21855 if yyr2 || yy2arr2 { 21856 r.WriteArrayElem() 21857 if false { 21858 } else { 21859 if z.EncBasicHandle().StringToRaw { 21860 r.EncodeStringBytesRaw(z.BytesView(string(x.KillSignal))) 21861 } else { 21862 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillSignal)) 21863 } 21864 } 21865 } else { 21866 r.WriteMapElemKey() 21867 if z.IsJSONHandle() { 21868 z.WriteStr("\"KillSignal\"") 21869 } else { 21870 r.EncodeStringEnc(codecSelferCcUTF8100, `KillSignal`) 21871 } 21872 r.WriteMapElemValue() 21873 if false { 21874 } else { 21875 if z.EncBasicHandle().StringToRaw { 21876 r.EncodeStringBytesRaw(z.BytesView(string(x.KillSignal))) 21877 } else { 21878 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillSignal)) 21879 } 21880 } 21881 } 21882 if yyr2 || yy2arr2 { 21883 r.WriteArrayEnd() 21884 } else { 21885 r.WriteMapEnd() 21886 } 21887 } 21888 } 21889 } 21890 21891 func (x *SidecarTask) CodecDecodeSelf(d *codec1978.Decoder) { 21892 var h codecSelfer100 21893 z, r := codec1978.GenHelperDecoder(d) 21894 _, _, _ = h, z, r 21895 if false { 21896 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 21897 z.DecExtension(x, yyxt1) 21898 } else { 21899 yyct2 := r.ContainerType() 21900 if yyct2 == codecSelferValueTypeMap100 { 21901 yyl2 := r.ReadMapStart() 21902 if yyl2 == 0 { 21903 r.ReadMapEnd() 21904 } else { 21905 x.codecDecodeSelfFromMap(yyl2, d) 21906 } 21907 } else if yyct2 == codecSelferValueTypeArray100 { 21908 yyl2 := r.ReadArrayStart() 21909 if yyl2 == 0 { 21910 r.ReadArrayEnd() 21911 } else { 21912 x.codecDecodeSelfFromArray(yyl2, d) 21913 } 21914 } else { 21915 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 21916 } 21917 } 21918 } 21919 21920 func (x *SidecarTask) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 21921 var h codecSelfer100 21922 z, r := codec1978.GenHelperDecoder(d) 21923 _, _, _ = h, z, r 21924 var yyhl3 bool = l >= 0 21925 for yyj3 := 0; ; yyj3++ { 21926 if yyhl3 { 21927 if yyj3 >= l { 21928 break 21929 } 21930 } else { 21931 if r.CheckBreak() { 21932 break 21933 } 21934 } 21935 r.ReadMapElemKey() 21936 yys3 := z.StringView(r.DecodeStringAsBytes()) 21937 r.ReadMapElemValue() 21938 switch yys3 { 21939 case "Name": 21940 if r.TryDecodeAsNil() { 21941 x.Name = "" 21942 } else { 21943 x.Name = (string)(r.DecodeString()) 21944 } 21945 case "Driver": 21946 if r.TryDecodeAsNil() { 21947 x.Driver = "" 21948 } else { 21949 x.Driver = (string)(r.DecodeString()) 21950 } 21951 case "User": 21952 if r.TryDecodeAsNil() { 21953 x.User = "" 21954 } else { 21955 x.User = (string)(r.DecodeString()) 21956 } 21957 case "Config": 21958 if r.TryDecodeAsNil() { 21959 x.Config = nil 21960 } else { 21961 if false { 21962 } else { 21963 z.F.DecMapStringIntfX(&x.Config, d) 21964 } 21965 } 21966 case "Env": 21967 if r.TryDecodeAsNil() { 21968 x.Env = nil 21969 } else { 21970 if false { 21971 } else { 21972 z.F.DecMapStringStringX(&x.Env, d) 21973 } 21974 } 21975 case "Resources": 21976 if r.TryDecodeAsNil() { 21977 if true && x.Resources != nil { 21978 x.Resources = nil 21979 } 21980 } else { 21981 if x.Resources == nil { 21982 x.Resources = new(Resources) 21983 } 21984 21985 x.Resources.CodecDecodeSelf(d) 21986 } 21987 case "Meta": 21988 if r.TryDecodeAsNil() { 21989 x.Meta = nil 21990 } else { 21991 if false { 21992 } else { 21993 z.F.DecMapStringStringX(&x.Meta, d) 21994 } 21995 } 21996 case "KillTimeout": 21997 if r.TryDecodeAsNil() { 21998 if true && x.KillTimeout != nil { 21999 x.KillTimeout = nil 22000 } 22001 } else { 22002 if x.KillTimeout == nil { 22003 x.KillTimeout = new(time.Duration) 22004 } 22005 22006 if false { 22007 } else if yyxt15 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt15 != nil { 22008 z.DecExtension(x.KillTimeout, yyxt15) 22009 } else { 22010 *x.KillTimeout = (time.Duration)(r.DecodeInt64()) 22011 } 22012 } 22013 case "LogConfig": 22014 if r.TryDecodeAsNil() { 22015 if true && x.LogConfig != nil { 22016 x.LogConfig = nil 22017 } 22018 } else { 22019 if x.LogConfig == nil { 22020 x.LogConfig = new(LogConfig) 22021 } 22022 22023 x.LogConfig.CodecDecodeSelf(d) 22024 } 22025 case "ShutdownDelay": 22026 if r.TryDecodeAsNil() { 22027 if true && x.ShutdownDelay != nil { 22028 x.ShutdownDelay = nil 22029 } 22030 } else { 22031 if x.ShutdownDelay == nil { 22032 x.ShutdownDelay = new(time.Duration) 22033 } 22034 22035 if false { 22036 } else if yyxt18 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt18 != nil { 22037 z.DecExtension(x.ShutdownDelay, yyxt18) 22038 } else { 22039 *x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) 22040 } 22041 } 22042 case "KillSignal": 22043 if r.TryDecodeAsNil() { 22044 x.KillSignal = "" 22045 } else { 22046 x.KillSignal = (string)(r.DecodeString()) 22047 } 22048 default: 22049 z.DecStructFieldNotFound(-1, yys3) 22050 } // end switch yys3 22051 } // end for yyj3 22052 r.ReadMapEnd() 22053 } 22054 22055 func (x *SidecarTask) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 22056 var h codecSelfer100 22057 z, r := codec1978.GenHelperDecoder(d) 22058 _, _, _ = h, z, r 22059 var yyj20 int 22060 var yyb20 bool 22061 var yyhl20 bool = l >= 0 22062 yyj20++ 22063 if yyhl20 { 22064 yyb20 = yyj20 > l 22065 } else { 22066 yyb20 = r.CheckBreak() 22067 } 22068 if yyb20 { 22069 r.ReadArrayEnd() 22070 return 22071 } 22072 r.ReadArrayElem() 22073 if r.TryDecodeAsNil() { 22074 x.Name = "" 22075 } else { 22076 x.Name = (string)(r.DecodeString()) 22077 } 22078 yyj20++ 22079 if yyhl20 { 22080 yyb20 = yyj20 > l 22081 } else { 22082 yyb20 = r.CheckBreak() 22083 } 22084 if yyb20 { 22085 r.ReadArrayEnd() 22086 return 22087 } 22088 r.ReadArrayElem() 22089 if r.TryDecodeAsNil() { 22090 x.Driver = "" 22091 } else { 22092 x.Driver = (string)(r.DecodeString()) 22093 } 22094 yyj20++ 22095 if yyhl20 { 22096 yyb20 = yyj20 > l 22097 } else { 22098 yyb20 = r.CheckBreak() 22099 } 22100 if yyb20 { 22101 r.ReadArrayEnd() 22102 return 22103 } 22104 r.ReadArrayElem() 22105 if r.TryDecodeAsNil() { 22106 x.User = "" 22107 } else { 22108 x.User = (string)(r.DecodeString()) 22109 } 22110 yyj20++ 22111 if yyhl20 { 22112 yyb20 = yyj20 > l 22113 } else { 22114 yyb20 = r.CheckBreak() 22115 } 22116 if yyb20 { 22117 r.ReadArrayEnd() 22118 return 22119 } 22120 r.ReadArrayElem() 22121 if r.TryDecodeAsNil() { 22122 x.Config = nil 22123 } else { 22124 if false { 22125 } else { 22126 z.F.DecMapStringIntfX(&x.Config, d) 22127 } 22128 } 22129 yyj20++ 22130 if yyhl20 { 22131 yyb20 = yyj20 > l 22132 } else { 22133 yyb20 = r.CheckBreak() 22134 } 22135 if yyb20 { 22136 r.ReadArrayEnd() 22137 return 22138 } 22139 r.ReadArrayElem() 22140 if r.TryDecodeAsNil() { 22141 x.Env = nil 22142 } else { 22143 if false { 22144 } else { 22145 z.F.DecMapStringStringX(&x.Env, d) 22146 } 22147 } 22148 yyj20++ 22149 if yyhl20 { 22150 yyb20 = yyj20 > l 22151 } else { 22152 yyb20 = r.CheckBreak() 22153 } 22154 if yyb20 { 22155 r.ReadArrayEnd() 22156 return 22157 } 22158 r.ReadArrayElem() 22159 if r.TryDecodeAsNil() { 22160 if true && x.Resources != nil { 22161 x.Resources = nil 22162 } 22163 } else { 22164 if x.Resources == nil { 22165 x.Resources = new(Resources) 22166 } 22167 22168 x.Resources.CodecDecodeSelf(d) 22169 } 22170 yyj20++ 22171 if yyhl20 { 22172 yyb20 = yyj20 > l 22173 } else { 22174 yyb20 = r.CheckBreak() 22175 } 22176 if yyb20 { 22177 r.ReadArrayEnd() 22178 return 22179 } 22180 r.ReadArrayElem() 22181 if r.TryDecodeAsNil() { 22182 x.Meta = nil 22183 } else { 22184 if false { 22185 } else { 22186 z.F.DecMapStringStringX(&x.Meta, d) 22187 } 22188 } 22189 yyj20++ 22190 if yyhl20 { 22191 yyb20 = yyj20 > l 22192 } else { 22193 yyb20 = r.CheckBreak() 22194 } 22195 if yyb20 { 22196 r.ReadArrayEnd() 22197 return 22198 } 22199 r.ReadArrayElem() 22200 if r.TryDecodeAsNil() { 22201 if true && x.KillTimeout != nil { 22202 x.KillTimeout = nil 22203 } 22204 } else { 22205 if x.KillTimeout == nil { 22206 x.KillTimeout = new(time.Duration) 22207 } 22208 22209 if false { 22210 } else if yyxt32 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt32 != nil { 22211 z.DecExtension(x.KillTimeout, yyxt32) 22212 } else { 22213 *x.KillTimeout = (time.Duration)(r.DecodeInt64()) 22214 } 22215 } 22216 yyj20++ 22217 if yyhl20 { 22218 yyb20 = yyj20 > l 22219 } else { 22220 yyb20 = r.CheckBreak() 22221 } 22222 if yyb20 { 22223 r.ReadArrayEnd() 22224 return 22225 } 22226 r.ReadArrayElem() 22227 if r.TryDecodeAsNil() { 22228 if true && x.LogConfig != nil { 22229 x.LogConfig = nil 22230 } 22231 } else { 22232 if x.LogConfig == nil { 22233 x.LogConfig = new(LogConfig) 22234 } 22235 22236 x.LogConfig.CodecDecodeSelf(d) 22237 } 22238 yyj20++ 22239 if yyhl20 { 22240 yyb20 = yyj20 > l 22241 } else { 22242 yyb20 = r.CheckBreak() 22243 } 22244 if yyb20 { 22245 r.ReadArrayEnd() 22246 return 22247 } 22248 r.ReadArrayElem() 22249 if r.TryDecodeAsNil() { 22250 if true && x.ShutdownDelay != nil { 22251 x.ShutdownDelay = nil 22252 } 22253 } else { 22254 if x.ShutdownDelay == nil { 22255 x.ShutdownDelay = new(time.Duration) 22256 } 22257 22258 if false { 22259 } else if yyxt35 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt35 != nil { 22260 z.DecExtension(x.ShutdownDelay, yyxt35) 22261 } else { 22262 *x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) 22263 } 22264 } 22265 yyj20++ 22266 if yyhl20 { 22267 yyb20 = yyj20 > l 22268 } else { 22269 yyb20 = r.CheckBreak() 22270 } 22271 if yyb20 { 22272 r.ReadArrayEnd() 22273 return 22274 } 22275 r.ReadArrayElem() 22276 if r.TryDecodeAsNil() { 22277 x.KillSignal = "" 22278 } else { 22279 x.KillSignal = (string)(r.DecodeString()) 22280 } 22281 for { 22282 yyj20++ 22283 if yyhl20 { 22284 yyb20 = yyj20 > l 22285 } else { 22286 yyb20 = r.CheckBreak() 22287 } 22288 if yyb20 { 22289 break 22290 } 22291 r.ReadArrayElem() 22292 z.DecStructFieldNotFound(yyj20-1, "") 22293 } 22294 r.ReadArrayEnd() 22295 } 22296 22297 func (x *ConsulProxy) CodecEncodeSelf(e *codec1978.Encoder) { 22298 var h codecSelfer100 22299 z, r := codec1978.GenHelperEncoder(e) 22300 _, _, _ = h, z, r 22301 if x == nil { 22302 r.EncodeNil() 22303 } else { 22304 if false { 22305 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 22306 z.EncExtension(x, yyxt1) 22307 } else { 22308 yysep2 := !z.EncBinary() 22309 yy2arr2 := z.EncBasicHandle().StructToArray 22310 _, _ = yysep2, yy2arr2 22311 const yyr2 bool = false // struct tag has 'toArray' 22312 if yyr2 || yy2arr2 { 22313 r.WriteArrayStart(5) 22314 } else { 22315 r.WriteMapStart(5) 22316 } 22317 if yyr2 || yy2arr2 { 22318 r.WriteArrayElem() 22319 if false { 22320 } else { 22321 if z.EncBasicHandle().StringToRaw { 22322 r.EncodeStringBytesRaw(z.BytesView(string(x.LocalServiceAddress))) 22323 } else { 22324 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LocalServiceAddress)) 22325 } 22326 } 22327 } else { 22328 r.WriteMapElemKey() 22329 if z.IsJSONHandle() { 22330 z.WriteStr("\"LocalServiceAddress\"") 22331 } else { 22332 r.EncodeStringEnc(codecSelferCcUTF8100, `LocalServiceAddress`) 22333 } 22334 r.WriteMapElemValue() 22335 if false { 22336 } else { 22337 if z.EncBasicHandle().StringToRaw { 22338 r.EncodeStringBytesRaw(z.BytesView(string(x.LocalServiceAddress))) 22339 } else { 22340 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LocalServiceAddress)) 22341 } 22342 } 22343 } 22344 if yyr2 || yy2arr2 { 22345 r.WriteArrayElem() 22346 if false { 22347 } else { 22348 r.EncodeInt(int64(x.LocalServicePort)) 22349 } 22350 } else { 22351 r.WriteMapElemKey() 22352 if z.IsJSONHandle() { 22353 z.WriteStr("\"LocalServicePort\"") 22354 } else { 22355 r.EncodeStringEnc(codecSelferCcUTF8100, `LocalServicePort`) 22356 } 22357 r.WriteMapElemValue() 22358 if false { 22359 } else { 22360 r.EncodeInt(int64(x.LocalServicePort)) 22361 } 22362 } 22363 if yyr2 || yy2arr2 { 22364 r.WriteArrayElem() 22365 if x.Upstreams == nil { 22366 r.EncodeNil() 22367 } else { 22368 if false { 22369 } else { 22370 h.encSliceConsulUpstream(([]ConsulUpstream)(x.Upstreams), e) 22371 } 22372 } 22373 } else { 22374 r.WriteMapElemKey() 22375 if z.IsJSONHandle() { 22376 z.WriteStr("\"Upstreams\"") 22377 } else { 22378 r.EncodeStringEnc(codecSelferCcUTF8100, `Upstreams`) 22379 } 22380 r.WriteMapElemValue() 22381 if x.Upstreams == nil { 22382 r.EncodeNil() 22383 } else { 22384 if false { 22385 } else { 22386 h.encSliceConsulUpstream(([]ConsulUpstream)(x.Upstreams), e) 22387 } 22388 } 22389 } 22390 var yyn12 bool 22391 if x.Expose == nil { 22392 yyn12 = true 22393 goto LABEL12 22394 } 22395 LABEL12: 22396 if yyr2 || yy2arr2 { 22397 if yyn12 { 22398 r.WriteArrayElem() 22399 r.EncodeNil() 22400 } else { 22401 r.WriteArrayElem() 22402 if x.Expose == nil { 22403 r.EncodeNil() 22404 } else { 22405 x.Expose.CodecEncodeSelf(e) 22406 } 22407 } 22408 } else { 22409 r.WriteMapElemKey() 22410 if z.IsJSONHandle() { 22411 z.WriteStr("\"ExposeConfig\"") 22412 } else { 22413 r.EncodeStringEnc(codecSelferCcUTF8100, `ExposeConfig`) 22414 } 22415 r.WriteMapElemValue() 22416 if yyn12 { 22417 r.EncodeNil() 22418 } else { 22419 if x.Expose == nil { 22420 r.EncodeNil() 22421 } else { 22422 x.Expose.CodecEncodeSelf(e) 22423 } 22424 } 22425 } 22426 if yyr2 || yy2arr2 { 22427 r.WriteArrayElem() 22428 if x.Config == nil { 22429 r.EncodeNil() 22430 } else { 22431 if false { 22432 } else { 22433 z.F.EncMapStringIntfV(x.Config, e) 22434 } 22435 } 22436 } else { 22437 r.WriteMapElemKey() 22438 if z.IsJSONHandle() { 22439 z.WriteStr("\"Config\"") 22440 } else { 22441 r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) 22442 } 22443 r.WriteMapElemValue() 22444 if x.Config == nil { 22445 r.EncodeNil() 22446 } else { 22447 if false { 22448 } else { 22449 z.F.EncMapStringIntfV(x.Config, e) 22450 } 22451 } 22452 } 22453 if yyr2 || yy2arr2 { 22454 r.WriteArrayEnd() 22455 } else { 22456 r.WriteMapEnd() 22457 } 22458 } 22459 } 22460 } 22461 22462 func (x *ConsulProxy) CodecDecodeSelf(d *codec1978.Decoder) { 22463 var h codecSelfer100 22464 z, r := codec1978.GenHelperDecoder(d) 22465 _, _, _ = h, z, r 22466 if false { 22467 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 22468 z.DecExtension(x, yyxt1) 22469 } else { 22470 yyct2 := r.ContainerType() 22471 if yyct2 == codecSelferValueTypeMap100 { 22472 yyl2 := r.ReadMapStart() 22473 if yyl2 == 0 { 22474 r.ReadMapEnd() 22475 } else { 22476 x.codecDecodeSelfFromMap(yyl2, d) 22477 } 22478 } else if yyct2 == codecSelferValueTypeArray100 { 22479 yyl2 := r.ReadArrayStart() 22480 if yyl2 == 0 { 22481 r.ReadArrayEnd() 22482 } else { 22483 x.codecDecodeSelfFromArray(yyl2, d) 22484 } 22485 } else { 22486 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 22487 } 22488 } 22489 } 22490 22491 func (x *ConsulProxy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 22492 var h codecSelfer100 22493 z, r := codec1978.GenHelperDecoder(d) 22494 _, _, _ = h, z, r 22495 var yyhl3 bool = l >= 0 22496 for yyj3 := 0; ; yyj3++ { 22497 if yyhl3 { 22498 if yyj3 >= l { 22499 break 22500 } 22501 } else { 22502 if r.CheckBreak() { 22503 break 22504 } 22505 } 22506 r.ReadMapElemKey() 22507 yys3 := z.StringView(r.DecodeStringAsBytes()) 22508 r.ReadMapElemValue() 22509 switch yys3 { 22510 case "LocalServiceAddress": 22511 if r.TryDecodeAsNil() { 22512 x.LocalServiceAddress = "" 22513 } else { 22514 x.LocalServiceAddress = (string)(r.DecodeString()) 22515 } 22516 case "LocalServicePort": 22517 if r.TryDecodeAsNil() { 22518 x.LocalServicePort = 0 22519 } else { 22520 x.LocalServicePort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 22521 } 22522 case "Upstreams": 22523 if r.TryDecodeAsNil() { 22524 x.Upstreams = nil 22525 } else { 22526 if false { 22527 } else { 22528 h.decSliceConsulUpstream((*[]ConsulUpstream)(&x.Upstreams), d) 22529 } 22530 } 22531 case "ExposeConfig": 22532 if r.TryDecodeAsNil() { 22533 if true && x.Expose != nil { 22534 x.Expose = nil 22535 } 22536 } else { 22537 if x.Expose == nil { 22538 x.Expose = new(ConsulExposeConfig) 22539 } 22540 22541 x.Expose.CodecDecodeSelf(d) 22542 } 22543 case "Config": 22544 if r.TryDecodeAsNil() { 22545 x.Config = nil 22546 } else { 22547 if false { 22548 } else { 22549 z.F.DecMapStringIntfX(&x.Config, d) 22550 } 22551 } 22552 default: 22553 z.DecStructFieldNotFound(-1, yys3) 22554 } // end switch yys3 22555 } // end for yyj3 22556 r.ReadMapEnd() 22557 } 22558 22559 func (x *ConsulProxy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 22560 var h codecSelfer100 22561 z, r := codec1978.GenHelperDecoder(d) 22562 _, _, _ = h, z, r 22563 var yyj11 int 22564 var yyb11 bool 22565 var yyhl11 bool = l >= 0 22566 yyj11++ 22567 if yyhl11 { 22568 yyb11 = yyj11 > l 22569 } else { 22570 yyb11 = r.CheckBreak() 22571 } 22572 if yyb11 { 22573 r.ReadArrayEnd() 22574 return 22575 } 22576 r.ReadArrayElem() 22577 if r.TryDecodeAsNil() { 22578 x.LocalServiceAddress = "" 22579 } else { 22580 x.LocalServiceAddress = (string)(r.DecodeString()) 22581 } 22582 yyj11++ 22583 if yyhl11 { 22584 yyb11 = yyj11 > l 22585 } else { 22586 yyb11 = r.CheckBreak() 22587 } 22588 if yyb11 { 22589 r.ReadArrayEnd() 22590 return 22591 } 22592 r.ReadArrayElem() 22593 if r.TryDecodeAsNil() { 22594 x.LocalServicePort = 0 22595 } else { 22596 x.LocalServicePort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 22597 } 22598 yyj11++ 22599 if yyhl11 { 22600 yyb11 = yyj11 > l 22601 } else { 22602 yyb11 = r.CheckBreak() 22603 } 22604 if yyb11 { 22605 r.ReadArrayEnd() 22606 return 22607 } 22608 r.ReadArrayElem() 22609 if r.TryDecodeAsNil() { 22610 x.Upstreams = nil 22611 } else { 22612 if false { 22613 } else { 22614 h.decSliceConsulUpstream((*[]ConsulUpstream)(&x.Upstreams), d) 22615 } 22616 } 22617 yyj11++ 22618 if yyhl11 { 22619 yyb11 = yyj11 > l 22620 } else { 22621 yyb11 = r.CheckBreak() 22622 } 22623 if yyb11 { 22624 r.ReadArrayEnd() 22625 return 22626 } 22627 r.ReadArrayElem() 22628 if r.TryDecodeAsNil() { 22629 if true && x.Expose != nil { 22630 x.Expose = nil 22631 } 22632 } else { 22633 if x.Expose == nil { 22634 x.Expose = new(ConsulExposeConfig) 22635 } 22636 22637 x.Expose.CodecDecodeSelf(d) 22638 } 22639 yyj11++ 22640 if yyhl11 { 22641 yyb11 = yyj11 > l 22642 } else { 22643 yyb11 = r.CheckBreak() 22644 } 22645 if yyb11 { 22646 r.ReadArrayEnd() 22647 return 22648 } 22649 r.ReadArrayElem() 22650 if r.TryDecodeAsNil() { 22651 x.Config = nil 22652 } else { 22653 if false { 22654 } else { 22655 z.F.DecMapStringIntfX(&x.Config, d) 22656 } 22657 } 22658 for { 22659 yyj11++ 22660 if yyhl11 { 22661 yyb11 = yyj11 > l 22662 } else { 22663 yyb11 = r.CheckBreak() 22664 } 22665 if yyb11 { 22666 break 22667 } 22668 r.ReadArrayElem() 22669 z.DecStructFieldNotFound(yyj11-1, "") 22670 } 22671 r.ReadArrayEnd() 22672 } 22673 22674 func (x *ConsulUpstream) CodecEncodeSelf(e *codec1978.Encoder) { 22675 var h codecSelfer100 22676 z, r := codec1978.GenHelperEncoder(e) 22677 _, _, _ = h, z, r 22678 if x == nil { 22679 r.EncodeNil() 22680 } else { 22681 if false { 22682 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 22683 z.EncExtension(x, yyxt1) 22684 } else { 22685 yysep2 := !z.EncBinary() 22686 yy2arr2 := z.EncBasicHandle().StructToArray 22687 _, _ = yysep2, yy2arr2 22688 const yyr2 bool = false // struct tag has 'toArray' 22689 if yyr2 || yy2arr2 { 22690 r.WriteArrayStart(2) 22691 } else { 22692 r.WriteMapStart(2) 22693 } 22694 if yyr2 || yy2arr2 { 22695 r.WriteArrayElem() 22696 if false { 22697 } else { 22698 if z.EncBasicHandle().StringToRaw { 22699 r.EncodeStringBytesRaw(z.BytesView(string(x.DestinationName))) 22700 } else { 22701 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestinationName)) 22702 } 22703 } 22704 } else { 22705 r.WriteMapElemKey() 22706 if z.IsJSONHandle() { 22707 z.WriteStr("\"DestinationName\"") 22708 } else { 22709 r.EncodeStringEnc(codecSelferCcUTF8100, `DestinationName`) 22710 } 22711 r.WriteMapElemValue() 22712 if false { 22713 } else { 22714 if z.EncBasicHandle().StringToRaw { 22715 r.EncodeStringBytesRaw(z.BytesView(string(x.DestinationName))) 22716 } else { 22717 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestinationName)) 22718 } 22719 } 22720 } 22721 if yyr2 || yy2arr2 { 22722 r.WriteArrayElem() 22723 if false { 22724 } else { 22725 r.EncodeInt(int64(x.LocalBindPort)) 22726 } 22727 } else { 22728 r.WriteMapElemKey() 22729 if z.IsJSONHandle() { 22730 z.WriteStr("\"LocalBindPort\"") 22731 } else { 22732 r.EncodeStringEnc(codecSelferCcUTF8100, `LocalBindPort`) 22733 } 22734 r.WriteMapElemValue() 22735 if false { 22736 } else { 22737 r.EncodeInt(int64(x.LocalBindPort)) 22738 } 22739 } 22740 if yyr2 || yy2arr2 { 22741 r.WriteArrayEnd() 22742 } else { 22743 r.WriteMapEnd() 22744 } 22745 } 22746 } 22747 } 22748 22749 func (x *ConsulUpstream) CodecDecodeSelf(d *codec1978.Decoder) { 22750 var h codecSelfer100 22751 z, r := codec1978.GenHelperDecoder(d) 22752 _, _, _ = h, z, r 22753 if false { 22754 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 22755 z.DecExtension(x, yyxt1) 22756 } else { 22757 yyct2 := r.ContainerType() 22758 if yyct2 == codecSelferValueTypeMap100 { 22759 yyl2 := r.ReadMapStart() 22760 if yyl2 == 0 { 22761 r.ReadMapEnd() 22762 } else { 22763 x.codecDecodeSelfFromMap(yyl2, d) 22764 } 22765 } else if yyct2 == codecSelferValueTypeArray100 { 22766 yyl2 := r.ReadArrayStart() 22767 if yyl2 == 0 { 22768 r.ReadArrayEnd() 22769 } else { 22770 x.codecDecodeSelfFromArray(yyl2, d) 22771 } 22772 } else { 22773 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 22774 } 22775 } 22776 } 22777 22778 func (x *ConsulUpstream) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 22779 var h codecSelfer100 22780 z, r := codec1978.GenHelperDecoder(d) 22781 _, _, _ = h, z, r 22782 var yyhl3 bool = l >= 0 22783 for yyj3 := 0; ; yyj3++ { 22784 if yyhl3 { 22785 if yyj3 >= l { 22786 break 22787 } 22788 } else { 22789 if r.CheckBreak() { 22790 break 22791 } 22792 } 22793 r.ReadMapElemKey() 22794 yys3 := z.StringView(r.DecodeStringAsBytes()) 22795 r.ReadMapElemValue() 22796 switch yys3 { 22797 case "DestinationName": 22798 if r.TryDecodeAsNil() { 22799 x.DestinationName = "" 22800 } else { 22801 x.DestinationName = (string)(r.DecodeString()) 22802 } 22803 case "LocalBindPort": 22804 if r.TryDecodeAsNil() { 22805 x.LocalBindPort = 0 22806 } else { 22807 x.LocalBindPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 22808 } 22809 default: 22810 z.DecStructFieldNotFound(-1, yys3) 22811 } // end switch yys3 22812 } // end for yyj3 22813 r.ReadMapEnd() 22814 } 22815 22816 func (x *ConsulUpstream) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 22817 var h codecSelfer100 22818 z, r := codec1978.GenHelperDecoder(d) 22819 _, _, _ = h, z, r 22820 var yyj6 int 22821 var yyb6 bool 22822 var yyhl6 bool = l >= 0 22823 yyj6++ 22824 if yyhl6 { 22825 yyb6 = yyj6 > l 22826 } else { 22827 yyb6 = r.CheckBreak() 22828 } 22829 if yyb6 { 22830 r.ReadArrayEnd() 22831 return 22832 } 22833 r.ReadArrayElem() 22834 if r.TryDecodeAsNil() { 22835 x.DestinationName = "" 22836 } else { 22837 x.DestinationName = (string)(r.DecodeString()) 22838 } 22839 yyj6++ 22840 if yyhl6 { 22841 yyb6 = yyj6 > l 22842 } else { 22843 yyb6 = r.CheckBreak() 22844 } 22845 if yyb6 { 22846 r.ReadArrayEnd() 22847 return 22848 } 22849 r.ReadArrayElem() 22850 if r.TryDecodeAsNil() { 22851 x.LocalBindPort = 0 22852 } else { 22853 x.LocalBindPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 22854 } 22855 for { 22856 yyj6++ 22857 if yyhl6 { 22858 yyb6 = yyj6 > l 22859 } else { 22860 yyb6 = r.CheckBreak() 22861 } 22862 if yyb6 { 22863 break 22864 } 22865 r.ReadArrayElem() 22866 z.DecStructFieldNotFound(yyj6-1, "") 22867 } 22868 r.ReadArrayEnd() 22869 } 22870 22871 func (x *ConsulExposeConfig) CodecEncodeSelf(e *codec1978.Encoder) { 22872 var h codecSelfer100 22873 z, r := codec1978.GenHelperEncoder(e) 22874 _, _, _ = h, z, r 22875 if x == nil { 22876 r.EncodeNil() 22877 } else { 22878 if false { 22879 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 22880 z.EncExtension(x, yyxt1) 22881 } else { 22882 yysep2 := !z.EncBinary() 22883 yy2arr2 := z.EncBasicHandle().StructToArray 22884 _, _ = yysep2, yy2arr2 22885 const yyr2 bool = false // struct tag has 'toArray' 22886 if yyr2 || yy2arr2 { 22887 r.WriteArrayStart(1) 22888 } else { 22889 r.WriteMapStart(1) 22890 } 22891 if yyr2 || yy2arr2 { 22892 r.WriteArrayElem() 22893 if x.Paths == nil { 22894 r.EncodeNil() 22895 } else { 22896 if false { 22897 } else { 22898 h.encSliceConsulExposePath(([]ConsulExposePath)(x.Paths), e) 22899 } 22900 } 22901 } else { 22902 r.WriteMapElemKey() 22903 if z.IsJSONHandle() { 22904 z.WriteStr("\"Path\"") 22905 } else { 22906 r.EncodeStringEnc(codecSelferCcUTF8100, `Path`) 22907 } 22908 r.WriteMapElemValue() 22909 if x.Paths == nil { 22910 r.EncodeNil() 22911 } else { 22912 if false { 22913 } else { 22914 h.encSliceConsulExposePath(([]ConsulExposePath)(x.Paths), e) 22915 } 22916 } 22917 } 22918 if yyr2 || yy2arr2 { 22919 r.WriteArrayEnd() 22920 } else { 22921 r.WriteMapEnd() 22922 } 22923 } 22924 } 22925 } 22926 22927 func (x *ConsulExposeConfig) CodecDecodeSelf(d *codec1978.Decoder) { 22928 var h codecSelfer100 22929 z, r := codec1978.GenHelperDecoder(d) 22930 _, _, _ = h, z, r 22931 if false { 22932 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 22933 z.DecExtension(x, yyxt1) 22934 } else { 22935 yyct2 := r.ContainerType() 22936 if yyct2 == codecSelferValueTypeMap100 { 22937 yyl2 := r.ReadMapStart() 22938 if yyl2 == 0 { 22939 r.ReadMapEnd() 22940 } else { 22941 x.codecDecodeSelfFromMap(yyl2, d) 22942 } 22943 } else if yyct2 == codecSelferValueTypeArray100 { 22944 yyl2 := r.ReadArrayStart() 22945 if yyl2 == 0 { 22946 r.ReadArrayEnd() 22947 } else { 22948 x.codecDecodeSelfFromArray(yyl2, d) 22949 } 22950 } else { 22951 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 22952 } 22953 } 22954 } 22955 22956 func (x *ConsulExposeConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 22957 var h codecSelfer100 22958 z, r := codec1978.GenHelperDecoder(d) 22959 _, _, _ = h, z, r 22960 var yyhl3 bool = l >= 0 22961 for yyj3 := 0; ; yyj3++ { 22962 if yyhl3 { 22963 if yyj3 >= l { 22964 break 22965 } 22966 } else { 22967 if r.CheckBreak() { 22968 break 22969 } 22970 } 22971 r.ReadMapElemKey() 22972 yys3 := z.StringView(r.DecodeStringAsBytes()) 22973 r.ReadMapElemValue() 22974 switch yys3 { 22975 case "Path": 22976 if r.TryDecodeAsNil() { 22977 x.Paths = nil 22978 } else { 22979 if false { 22980 } else { 22981 h.decSliceConsulExposePath((*[]ConsulExposePath)(&x.Paths), d) 22982 } 22983 } 22984 default: 22985 z.DecStructFieldNotFound(-1, yys3) 22986 } // end switch yys3 22987 } // end for yyj3 22988 r.ReadMapEnd() 22989 } 22990 22991 func (x *ConsulExposeConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 22992 var h codecSelfer100 22993 z, r := codec1978.GenHelperDecoder(d) 22994 _, _, _ = h, z, r 22995 var yyj6 int 22996 var yyb6 bool 22997 var yyhl6 bool = l >= 0 22998 yyj6++ 22999 if yyhl6 { 23000 yyb6 = yyj6 > l 23001 } else { 23002 yyb6 = r.CheckBreak() 23003 } 23004 if yyb6 { 23005 r.ReadArrayEnd() 23006 return 23007 } 23008 r.ReadArrayElem() 23009 if r.TryDecodeAsNil() { 23010 x.Paths = nil 23011 } else { 23012 if false { 23013 } else { 23014 h.decSliceConsulExposePath((*[]ConsulExposePath)(&x.Paths), d) 23015 } 23016 } 23017 for { 23018 yyj6++ 23019 if yyhl6 { 23020 yyb6 = yyj6 > l 23021 } else { 23022 yyb6 = r.CheckBreak() 23023 } 23024 if yyb6 { 23025 break 23026 } 23027 r.ReadArrayElem() 23028 z.DecStructFieldNotFound(yyj6-1, "") 23029 } 23030 r.ReadArrayEnd() 23031 } 23032 23033 func (x *ConsulExposePath) CodecEncodeSelf(e *codec1978.Encoder) { 23034 var h codecSelfer100 23035 z, r := codec1978.GenHelperEncoder(e) 23036 _, _, _ = h, z, r 23037 if x == nil { 23038 r.EncodeNil() 23039 } else { 23040 if false { 23041 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 23042 z.EncExtension(x, yyxt1) 23043 } else { 23044 yysep2 := !z.EncBinary() 23045 yy2arr2 := z.EncBasicHandle().StructToArray 23046 _, _ = yysep2, yy2arr2 23047 const yyr2 bool = false // struct tag has 'toArray' 23048 if yyr2 || yy2arr2 { 23049 r.WriteArrayStart(4) 23050 } else { 23051 r.WriteMapStart(4) 23052 } 23053 if yyr2 || yy2arr2 { 23054 r.WriteArrayElem() 23055 if false { 23056 } else { 23057 if z.EncBasicHandle().StringToRaw { 23058 r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) 23059 } else { 23060 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) 23061 } 23062 } 23063 } else { 23064 r.WriteMapElemKey() 23065 if z.IsJSONHandle() { 23066 z.WriteStr("\"Path\"") 23067 } else { 23068 r.EncodeStringEnc(codecSelferCcUTF8100, `Path`) 23069 } 23070 r.WriteMapElemValue() 23071 if false { 23072 } else { 23073 if z.EncBasicHandle().StringToRaw { 23074 r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) 23075 } else { 23076 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) 23077 } 23078 } 23079 } 23080 if yyr2 || yy2arr2 { 23081 r.WriteArrayElem() 23082 if false { 23083 } else { 23084 if z.EncBasicHandle().StringToRaw { 23085 r.EncodeStringBytesRaw(z.BytesView(string(x.Protocol))) 23086 } else { 23087 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Protocol)) 23088 } 23089 } 23090 } else { 23091 r.WriteMapElemKey() 23092 if z.IsJSONHandle() { 23093 z.WriteStr("\"Protocol\"") 23094 } else { 23095 r.EncodeStringEnc(codecSelferCcUTF8100, `Protocol`) 23096 } 23097 r.WriteMapElemValue() 23098 if false { 23099 } else { 23100 if z.EncBasicHandle().StringToRaw { 23101 r.EncodeStringBytesRaw(z.BytesView(string(x.Protocol))) 23102 } else { 23103 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Protocol)) 23104 } 23105 } 23106 } 23107 if yyr2 || yy2arr2 { 23108 r.WriteArrayElem() 23109 if false { 23110 } else { 23111 r.EncodeInt(int64(x.LocalPathPort)) 23112 } 23113 } else { 23114 r.WriteMapElemKey() 23115 if z.IsJSONHandle() { 23116 z.WriteStr("\"LocalPathPort\"") 23117 } else { 23118 r.EncodeStringEnc(codecSelferCcUTF8100, `LocalPathPort`) 23119 } 23120 r.WriteMapElemValue() 23121 if false { 23122 } else { 23123 r.EncodeInt(int64(x.LocalPathPort)) 23124 } 23125 } 23126 if yyr2 || yy2arr2 { 23127 r.WriteArrayElem() 23128 if false { 23129 } else { 23130 if z.EncBasicHandle().StringToRaw { 23131 r.EncodeStringBytesRaw(z.BytesView(string(x.ListenerPort))) 23132 } else { 23133 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ListenerPort)) 23134 } 23135 } 23136 } else { 23137 r.WriteMapElemKey() 23138 if z.IsJSONHandle() { 23139 z.WriteStr("\"ListenerPort\"") 23140 } else { 23141 r.EncodeStringEnc(codecSelferCcUTF8100, `ListenerPort`) 23142 } 23143 r.WriteMapElemValue() 23144 if false { 23145 } else { 23146 if z.EncBasicHandle().StringToRaw { 23147 r.EncodeStringBytesRaw(z.BytesView(string(x.ListenerPort))) 23148 } else { 23149 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ListenerPort)) 23150 } 23151 } 23152 } 23153 if yyr2 || yy2arr2 { 23154 r.WriteArrayEnd() 23155 } else { 23156 r.WriteMapEnd() 23157 } 23158 } 23159 } 23160 } 23161 23162 func (x *ConsulExposePath) CodecDecodeSelf(d *codec1978.Decoder) { 23163 var h codecSelfer100 23164 z, r := codec1978.GenHelperDecoder(d) 23165 _, _, _ = h, z, r 23166 if false { 23167 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 23168 z.DecExtension(x, yyxt1) 23169 } else { 23170 yyct2 := r.ContainerType() 23171 if yyct2 == codecSelferValueTypeMap100 { 23172 yyl2 := r.ReadMapStart() 23173 if yyl2 == 0 { 23174 r.ReadMapEnd() 23175 } else { 23176 x.codecDecodeSelfFromMap(yyl2, d) 23177 } 23178 } else if yyct2 == codecSelferValueTypeArray100 { 23179 yyl2 := r.ReadArrayStart() 23180 if yyl2 == 0 { 23181 r.ReadArrayEnd() 23182 } else { 23183 x.codecDecodeSelfFromArray(yyl2, d) 23184 } 23185 } else { 23186 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 23187 } 23188 } 23189 } 23190 23191 func (x *ConsulExposePath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 23192 var h codecSelfer100 23193 z, r := codec1978.GenHelperDecoder(d) 23194 _, _, _ = h, z, r 23195 var yyhl3 bool = l >= 0 23196 for yyj3 := 0; ; yyj3++ { 23197 if yyhl3 { 23198 if yyj3 >= l { 23199 break 23200 } 23201 } else { 23202 if r.CheckBreak() { 23203 break 23204 } 23205 } 23206 r.ReadMapElemKey() 23207 yys3 := z.StringView(r.DecodeStringAsBytes()) 23208 r.ReadMapElemValue() 23209 switch yys3 { 23210 case "Path": 23211 if r.TryDecodeAsNil() { 23212 x.Path = "" 23213 } else { 23214 x.Path = (string)(r.DecodeString()) 23215 } 23216 case "Protocol": 23217 if r.TryDecodeAsNil() { 23218 x.Protocol = "" 23219 } else { 23220 x.Protocol = (string)(r.DecodeString()) 23221 } 23222 case "LocalPathPort": 23223 if r.TryDecodeAsNil() { 23224 x.LocalPathPort = 0 23225 } else { 23226 x.LocalPathPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 23227 } 23228 case "ListenerPort": 23229 if r.TryDecodeAsNil() { 23230 x.ListenerPort = "" 23231 } else { 23232 x.ListenerPort = (string)(r.DecodeString()) 23233 } 23234 default: 23235 z.DecStructFieldNotFound(-1, yys3) 23236 } // end switch yys3 23237 } // end for yyj3 23238 r.ReadMapEnd() 23239 } 23240 23241 func (x *ConsulExposePath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 23242 var h codecSelfer100 23243 z, r := codec1978.GenHelperDecoder(d) 23244 _, _, _ = h, z, r 23245 var yyj8 int 23246 var yyb8 bool 23247 var yyhl8 bool = l >= 0 23248 yyj8++ 23249 if yyhl8 { 23250 yyb8 = yyj8 > l 23251 } else { 23252 yyb8 = r.CheckBreak() 23253 } 23254 if yyb8 { 23255 r.ReadArrayEnd() 23256 return 23257 } 23258 r.ReadArrayElem() 23259 if r.TryDecodeAsNil() { 23260 x.Path = "" 23261 } else { 23262 x.Path = (string)(r.DecodeString()) 23263 } 23264 yyj8++ 23265 if yyhl8 { 23266 yyb8 = yyj8 > l 23267 } else { 23268 yyb8 = r.CheckBreak() 23269 } 23270 if yyb8 { 23271 r.ReadArrayEnd() 23272 return 23273 } 23274 r.ReadArrayElem() 23275 if r.TryDecodeAsNil() { 23276 x.Protocol = "" 23277 } else { 23278 x.Protocol = (string)(r.DecodeString()) 23279 } 23280 yyj8++ 23281 if yyhl8 { 23282 yyb8 = yyj8 > l 23283 } else { 23284 yyb8 = r.CheckBreak() 23285 } 23286 if yyb8 { 23287 r.ReadArrayEnd() 23288 return 23289 } 23290 r.ReadArrayElem() 23291 if r.TryDecodeAsNil() { 23292 x.LocalPathPort = 0 23293 } else { 23294 x.LocalPathPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 23295 } 23296 yyj8++ 23297 if yyhl8 { 23298 yyb8 = yyj8 > l 23299 } else { 23300 yyb8 = r.CheckBreak() 23301 } 23302 if yyb8 { 23303 r.ReadArrayEnd() 23304 return 23305 } 23306 r.ReadArrayElem() 23307 if r.TryDecodeAsNil() { 23308 x.ListenerPort = "" 23309 } else { 23310 x.ListenerPort = (string)(r.DecodeString()) 23311 } 23312 for { 23313 yyj8++ 23314 if yyhl8 { 23315 yyb8 = yyj8 > l 23316 } else { 23317 yyb8 = r.CheckBreak() 23318 } 23319 if yyb8 { 23320 break 23321 } 23322 r.ReadArrayElem() 23323 z.DecStructFieldNotFound(yyj8-1, "") 23324 } 23325 r.ReadArrayEnd() 23326 } 23327 23328 func (x *StreamingRpcHeader) CodecEncodeSelf(e *codec1978.Encoder) { 23329 var h codecSelfer100 23330 z, r := codec1978.GenHelperEncoder(e) 23331 _, _, _ = h, z, r 23332 if x == nil { 23333 r.EncodeNil() 23334 } else { 23335 if false { 23336 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 23337 z.EncExtension(x, yyxt1) 23338 } else { 23339 yysep2 := !z.EncBinary() 23340 yy2arr2 := z.EncBasicHandle().StructToArray 23341 _, _ = yysep2, yy2arr2 23342 const yyr2 bool = false // struct tag has 'toArray' 23343 if yyr2 || yy2arr2 { 23344 r.WriteArrayStart(1) 23345 } else { 23346 r.WriteMapStart(1) 23347 } 23348 if yyr2 || yy2arr2 { 23349 r.WriteArrayElem() 23350 if false { 23351 } else { 23352 if z.EncBasicHandle().StringToRaw { 23353 r.EncodeStringBytesRaw(z.BytesView(string(x.Method))) 23354 } else { 23355 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Method)) 23356 } 23357 } 23358 } else { 23359 r.WriteMapElemKey() 23360 if z.IsJSONHandle() { 23361 z.WriteStr("\"Method\"") 23362 } else { 23363 r.EncodeStringEnc(codecSelferCcUTF8100, `Method`) 23364 } 23365 r.WriteMapElemValue() 23366 if false { 23367 } else { 23368 if z.EncBasicHandle().StringToRaw { 23369 r.EncodeStringBytesRaw(z.BytesView(string(x.Method))) 23370 } else { 23371 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Method)) 23372 } 23373 } 23374 } 23375 if yyr2 || yy2arr2 { 23376 r.WriteArrayEnd() 23377 } else { 23378 r.WriteMapEnd() 23379 } 23380 } 23381 } 23382 } 23383 23384 func (x *StreamingRpcHeader) CodecDecodeSelf(d *codec1978.Decoder) { 23385 var h codecSelfer100 23386 z, r := codec1978.GenHelperDecoder(d) 23387 _, _, _ = h, z, r 23388 if false { 23389 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 23390 z.DecExtension(x, yyxt1) 23391 } else { 23392 yyct2 := r.ContainerType() 23393 if yyct2 == codecSelferValueTypeMap100 { 23394 yyl2 := r.ReadMapStart() 23395 if yyl2 == 0 { 23396 r.ReadMapEnd() 23397 } else { 23398 x.codecDecodeSelfFromMap(yyl2, d) 23399 } 23400 } else if yyct2 == codecSelferValueTypeArray100 { 23401 yyl2 := r.ReadArrayStart() 23402 if yyl2 == 0 { 23403 r.ReadArrayEnd() 23404 } else { 23405 x.codecDecodeSelfFromArray(yyl2, d) 23406 } 23407 } else { 23408 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 23409 } 23410 } 23411 } 23412 23413 func (x *StreamingRpcHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 23414 var h codecSelfer100 23415 z, r := codec1978.GenHelperDecoder(d) 23416 _, _, _ = h, z, r 23417 var yyhl3 bool = l >= 0 23418 for yyj3 := 0; ; yyj3++ { 23419 if yyhl3 { 23420 if yyj3 >= l { 23421 break 23422 } 23423 } else { 23424 if r.CheckBreak() { 23425 break 23426 } 23427 } 23428 r.ReadMapElemKey() 23429 yys3 := z.StringView(r.DecodeStringAsBytes()) 23430 r.ReadMapElemValue() 23431 switch yys3 { 23432 case "Method": 23433 if r.TryDecodeAsNil() { 23434 x.Method = "" 23435 } else { 23436 x.Method = (string)(r.DecodeString()) 23437 } 23438 default: 23439 z.DecStructFieldNotFound(-1, yys3) 23440 } // end switch yys3 23441 } // end for yyj3 23442 r.ReadMapEnd() 23443 } 23444 23445 func (x *StreamingRpcHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 23446 var h codecSelfer100 23447 z, r := codec1978.GenHelperDecoder(d) 23448 _, _, _ = h, z, r 23449 var yyj5 int 23450 var yyb5 bool 23451 var yyhl5 bool = l >= 0 23452 yyj5++ 23453 if yyhl5 { 23454 yyb5 = yyj5 > l 23455 } else { 23456 yyb5 = r.CheckBreak() 23457 } 23458 if yyb5 { 23459 r.ReadArrayEnd() 23460 return 23461 } 23462 r.ReadArrayElem() 23463 if r.TryDecodeAsNil() { 23464 x.Method = "" 23465 } else { 23466 x.Method = (string)(r.DecodeString()) 23467 } 23468 for { 23469 yyj5++ 23470 if yyhl5 { 23471 yyb5 = yyj5 > l 23472 } else { 23473 yyb5 = r.CheckBreak() 23474 } 23475 if yyb5 { 23476 break 23477 } 23478 r.ReadArrayElem() 23479 z.DecStructFieldNotFound(yyj5-1, "") 23480 } 23481 r.ReadArrayEnd() 23482 } 23483 23484 func (x *StreamingRpcAck) CodecEncodeSelf(e *codec1978.Encoder) { 23485 var h codecSelfer100 23486 z, r := codec1978.GenHelperEncoder(e) 23487 _, _, _ = h, z, r 23488 if x == nil { 23489 r.EncodeNil() 23490 } else { 23491 if false { 23492 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 23493 z.EncExtension(x, yyxt1) 23494 } else { 23495 yysep2 := !z.EncBinary() 23496 yy2arr2 := z.EncBasicHandle().StructToArray 23497 _, _ = yysep2, yy2arr2 23498 const yyr2 bool = false // struct tag has 'toArray' 23499 if yyr2 || yy2arr2 { 23500 r.WriteArrayStart(1) 23501 } else { 23502 r.WriteMapStart(1) 23503 } 23504 if yyr2 || yy2arr2 { 23505 r.WriteArrayElem() 23506 if false { 23507 } else { 23508 if z.EncBasicHandle().StringToRaw { 23509 r.EncodeStringBytesRaw(z.BytesView(string(x.Error))) 23510 } else { 23511 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Error)) 23512 } 23513 } 23514 } else { 23515 r.WriteMapElemKey() 23516 if z.IsJSONHandle() { 23517 z.WriteStr("\"Error\"") 23518 } else { 23519 r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) 23520 } 23521 r.WriteMapElemValue() 23522 if false { 23523 } else { 23524 if z.EncBasicHandle().StringToRaw { 23525 r.EncodeStringBytesRaw(z.BytesView(string(x.Error))) 23526 } else { 23527 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Error)) 23528 } 23529 } 23530 } 23531 if yyr2 || yy2arr2 { 23532 r.WriteArrayEnd() 23533 } else { 23534 r.WriteMapEnd() 23535 } 23536 } 23537 } 23538 } 23539 23540 func (x *StreamingRpcAck) CodecDecodeSelf(d *codec1978.Decoder) { 23541 var h codecSelfer100 23542 z, r := codec1978.GenHelperDecoder(d) 23543 _, _, _ = h, z, r 23544 if false { 23545 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 23546 z.DecExtension(x, yyxt1) 23547 } else { 23548 yyct2 := r.ContainerType() 23549 if yyct2 == codecSelferValueTypeMap100 { 23550 yyl2 := r.ReadMapStart() 23551 if yyl2 == 0 { 23552 r.ReadMapEnd() 23553 } else { 23554 x.codecDecodeSelfFromMap(yyl2, d) 23555 } 23556 } else if yyct2 == codecSelferValueTypeArray100 { 23557 yyl2 := r.ReadArrayStart() 23558 if yyl2 == 0 { 23559 r.ReadArrayEnd() 23560 } else { 23561 x.codecDecodeSelfFromArray(yyl2, d) 23562 } 23563 } else { 23564 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 23565 } 23566 } 23567 } 23568 23569 func (x *StreamingRpcAck) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 23570 var h codecSelfer100 23571 z, r := codec1978.GenHelperDecoder(d) 23572 _, _, _ = h, z, r 23573 var yyhl3 bool = l >= 0 23574 for yyj3 := 0; ; yyj3++ { 23575 if yyhl3 { 23576 if yyj3 >= l { 23577 break 23578 } 23579 } else { 23580 if r.CheckBreak() { 23581 break 23582 } 23583 } 23584 r.ReadMapElemKey() 23585 yys3 := z.StringView(r.DecodeStringAsBytes()) 23586 r.ReadMapElemValue() 23587 switch yys3 { 23588 case "Error": 23589 if r.TryDecodeAsNil() { 23590 x.Error = "" 23591 } else { 23592 x.Error = (string)(r.DecodeString()) 23593 } 23594 default: 23595 z.DecStructFieldNotFound(-1, yys3) 23596 } // end switch yys3 23597 } // end for yyj3 23598 r.ReadMapEnd() 23599 } 23600 23601 func (x *StreamingRpcAck) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 23602 var h codecSelfer100 23603 z, r := codec1978.GenHelperDecoder(d) 23604 _, _, _ = h, z, r 23605 var yyj5 int 23606 var yyb5 bool 23607 var yyhl5 bool = l >= 0 23608 yyj5++ 23609 if yyhl5 { 23610 yyb5 = yyj5 > l 23611 } else { 23612 yyb5 = r.CheckBreak() 23613 } 23614 if yyb5 { 23615 r.ReadArrayEnd() 23616 return 23617 } 23618 r.ReadArrayElem() 23619 if r.TryDecodeAsNil() { 23620 x.Error = "" 23621 } else { 23622 x.Error = (string)(r.DecodeString()) 23623 } 23624 for { 23625 yyj5++ 23626 if yyhl5 { 23627 yyb5 = yyj5 > l 23628 } else { 23629 yyb5 = r.CheckBreak() 23630 } 23631 if yyb5 { 23632 break 23633 } 23634 r.ReadArrayElem() 23635 z.DecStructFieldNotFound(yyj5-1, "") 23636 } 23637 r.ReadArrayEnd() 23638 } 23639 23640 func (x *StreamingRpcRegistry) CodecEncodeSelf(e *codec1978.Encoder) { 23641 var h codecSelfer100 23642 z, r := codec1978.GenHelperEncoder(e) 23643 _, _, _ = h, z, r 23644 if x == nil { 23645 r.EncodeNil() 23646 } else { 23647 if false { 23648 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 23649 z.EncExtension(x, yyxt1) 23650 } else { 23651 yysep2 := !z.EncBinary() 23652 yy2arr2 := z.EncBasicHandle().StructToArray 23653 _, _ = yysep2, yy2arr2 23654 const yyr2 bool = false // struct tag has 'toArray' 23655 if yyr2 || yy2arr2 { 23656 r.WriteArrayStart(0) 23657 } else { 23658 r.WriteMapStart(0) 23659 } 23660 if yyr2 || yy2arr2 { 23661 r.WriteArrayEnd() 23662 } else { 23663 r.WriteMapEnd() 23664 } 23665 } 23666 } 23667 } 23668 23669 func (x *StreamingRpcRegistry) CodecDecodeSelf(d *codec1978.Decoder) { 23670 var h codecSelfer100 23671 z, r := codec1978.GenHelperDecoder(d) 23672 _, _, _ = h, z, r 23673 if false { 23674 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 23675 z.DecExtension(x, yyxt1) 23676 } else { 23677 yyct2 := r.ContainerType() 23678 if yyct2 == codecSelferValueTypeMap100 { 23679 yyl2 := r.ReadMapStart() 23680 if yyl2 == 0 { 23681 r.ReadMapEnd() 23682 } else { 23683 x.codecDecodeSelfFromMap(yyl2, d) 23684 } 23685 } else if yyct2 == codecSelferValueTypeArray100 { 23686 yyl2 := r.ReadArrayStart() 23687 if yyl2 == 0 { 23688 r.ReadArrayEnd() 23689 } else { 23690 x.codecDecodeSelfFromArray(yyl2, d) 23691 } 23692 } else { 23693 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 23694 } 23695 } 23696 } 23697 23698 func (x *StreamingRpcRegistry) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 23699 var h codecSelfer100 23700 z, r := codec1978.GenHelperDecoder(d) 23701 _, _, _ = h, z, r 23702 var yyhl3 bool = l >= 0 23703 for yyj3 := 0; ; yyj3++ { 23704 if yyhl3 { 23705 if yyj3 >= l { 23706 break 23707 } 23708 } else { 23709 if r.CheckBreak() { 23710 break 23711 } 23712 } 23713 r.ReadMapElemKey() 23714 yys3 := z.StringView(r.DecodeStringAsBytes()) 23715 r.ReadMapElemValue() 23716 switch yys3 { 23717 default: 23718 z.DecStructFieldNotFound(-1, yys3) 23719 } // end switch yys3 23720 } // end for yyj3 23721 r.ReadMapEnd() 23722 } 23723 23724 func (x *StreamingRpcRegistry) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 23725 var h codecSelfer100 23726 z, r := codec1978.GenHelperDecoder(d) 23727 _, _, _ = h, z, r 23728 var yyj4 int 23729 var yyb4 bool 23730 var yyhl4 bool = l >= 0 23731 for { 23732 yyj4++ 23733 if yyhl4 { 23734 yyb4 = yyj4 > l 23735 } else { 23736 yyb4 = r.CheckBreak() 23737 } 23738 if yyb4 { 23739 break 23740 } 23741 r.ReadArrayElem() 23742 z.DecStructFieldNotFound(yyj4-1, "") 23743 } 23744 r.ReadArrayEnd() 23745 } 23746 23747 func (x MessageType) CodecEncodeSelf(e *codec1978.Encoder) { 23748 var h codecSelfer100 23749 z, r := codec1978.GenHelperEncoder(e) 23750 _, _, _ = h, z, r 23751 if false { 23752 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 23753 z.EncExtension(x, yyxt1) 23754 } else { 23755 r.EncodeUint(uint64(x)) 23756 } 23757 } 23758 23759 func (x *MessageType) CodecDecodeSelf(d *codec1978.Decoder) { 23760 var h codecSelfer100 23761 z, r := codec1978.GenHelperDecoder(d) 23762 _, _, _ = h, z, r 23763 if false { 23764 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 23765 z.DecExtension(x, yyxt1) 23766 } else { 23767 *x = (MessageType)(z.C.UintV(r.DecodeUint64(), 8)) 23768 } 23769 } 23770 23771 func (x Context) CodecEncodeSelf(e *codec1978.Encoder) { 23772 var h codecSelfer100 23773 z, r := codec1978.GenHelperEncoder(e) 23774 _, _, _ = h, z, r 23775 if false { 23776 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 23777 z.EncExtension(x, yyxt1) 23778 } else { 23779 if z.EncBasicHandle().StringToRaw { 23780 r.EncodeStringBytesRaw(z.BytesView(string(x))) 23781 } else { 23782 r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) 23783 } 23784 } 23785 } 23786 23787 func (x *Context) CodecDecodeSelf(d *codec1978.Decoder) { 23788 var h codecSelfer100 23789 z, r := codec1978.GenHelperDecoder(d) 23790 _, _, _ = h, z, r 23791 if false { 23792 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 23793 z.DecExtension(x, yyxt1) 23794 } else { 23795 *x = (Context)(r.DecodeString()) 23796 } 23797 } 23798 23799 func (x *NamespacedID) CodecEncodeSelf(e *codec1978.Encoder) { 23800 var h codecSelfer100 23801 z, r := codec1978.GenHelperEncoder(e) 23802 _, _, _ = h, z, r 23803 if x == nil { 23804 r.EncodeNil() 23805 } else { 23806 if false { 23807 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 23808 z.EncExtension(x, yyxt1) 23809 } else { 23810 yysep2 := !z.EncBinary() 23811 yy2arr2 := z.EncBasicHandle().StructToArray 23812 _, _ = yysep2, yy2arr2 23813 const yyr2 bool = false // struct tag has 'toArray' 23814 if yyr2 || yy2arr2 { 23815 r.WriteArrayStart(2) 23816 } else { 23817 r.WriteMapStart(2) 23818 } 23819 if yyr2 || yy2arr2 { 23820 r.WriteArrayElem() 23821 if false { 23822 } else { 23823 if z.EncBasicHandle().StringToRaw { 23824 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 23825 } else { 23826 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 23827 } 23828 } 23829 } else { 23830 r.WriteMapElemKey() 23831 if z.IsJSONHandle() { 23832 z.WriteStr("\"ID\"") 23833 } else { 23834 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 23835 } 23836 r.WriteMapElemValue() 23837 if false { 23838 } else { 23839 if z.EncBasicHandle().StringToRaw { 23840 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 23841 } else { 23842 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 23843 } 23844 } 23845 } 23846 if yyr2 || yy2arr2 { 23847 r.WriteArrayElem() 23848 if false { 23849 } else { 23850 if z.EncBasicHandle().StringToRaw { 23851 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 23852 } else { 23853 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 23854 } 23855 } 23856 } else { 23857 r.WriteMapElemKey() 23858 if z.IsJSONHandle() { 23859 z.WriteStr("\"Namespace\"") 23860 } else { 23861 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 23862 } 23863 r.WriteMapElemValue() 23864 if false { 23865 } else { 23866 if z.EncBasicHandle().StringToRaw { 23867 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 23868 } else { 23869 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 23870 } 23871 } 23872 } 23873 if yyr2 || yy2arr2 { 23874 r.WriteArrayEnd() 23875 } else { 23876 r.WriteMapEnd() 23877 } 23878 } 23879 } 23880 } 23881 23882 func (x *NamespacedID) CodecDecodeSelf(d *codec1978.Decoder) { 23883 var h codecSelfer100 23884 z, r := codec1978.GenHelperDecoder(d) 23885 _, _, _ = h, z, r 23886 if false { 23887 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 23888 z.DecExtension(x, yyxt1) 23889 } else { 23890 yyct2 := r.ContainerType() 23891 if yyct2 == codecSelferValueTypeMap100 { 23892 yyl2 := r.ReadMapStart() 23893 if yyl2 == 0 { 23894 r.ReadMapEnd() 23895 } else { 23896 x.codecDecodeSelfFromMap(yyl2, d) 23897 } 23898 } else if yyct2 == codecSelferValueTypeArray100 { 23899 yyl2 := r.ReadArrayStart() 23900 if yyl2 == 0 { 23901 r.ReadArrayEnd() 23902 } else { 23903 x.codecDecodeSelfFromArray(yyl2, d) 23904 } 23905 } else { 23906 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 23907 } 23908 } 23909 } 23910 23911 func (x *NamespacedID) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 23912 var h codecSelfer100 23913 z, r := codec1978.GenHelperDecoder(d) 23914 _, _, _ = h, z, r 23915 var yyhl3 bool = l >= 0 23916 for yyj3 := 0; ; yyj3++ { 23917 if yyhl3 { 23918 if yyj3 >= l { 23919 break 23920 } 23921 } else { 23922 if r.CheckBreak() { 23923 break 23924 } 23925 } 23926 r.ReadMapElemKey() 23927 yys3 := z.StringView(r.DecodeStringAsBytes()) 23928 r.ReadMapElemValue() 23929 switch yys3 { 23930 case "ID": 23931 if r.TryDecodeAsNil() { 23932 x.ID = "" 23933 } else { 23934 x.ID = (string)(r.DecodeString()) 23935 } 23936 case "Namespace": 23937 if r.TryDecodeAsNil() { 23938 x.Namespace = "" 23939 } else { 23940 x.Namespace = (string)(r.DecodeString()) 23941 } 23942 default: 23943 z.DecStructFieldNotFound(-1, yys3) 23944 } // end switch yys3 23945 } // end for yyj3 23946 r.ReadMapEnd() 23947 } 23948 23949 func (x *NamespacedID) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 23950 var h codecSelfer100 23951 z, r := codec1978.GenHelperDecoder(d) 23952 _, _, _ = h, z, r 23953 var yyj6 int 23954 var yyb6 bool 23955 var yyhl6 bool = l >= 0 23956 yyj6++ 23957 if yyhl6 { 23958 yyb6 = yyj6 > l 23959 } else { 23960 yyb6 = r.CheckBreak() 23961 } 23962 if yyb6 { 23963 r.ReadArrayEnd() 23964 return 23965 } 23966 r.ReadArrayElem() 23967 if r.TryDecodeAsNil() { 23968 x.ID = "" 23969 } else { 23970 x.ID = (string)(r.DecodeString()) 23971 } 23972 yyj6++ 23973 if yyhl6 { 23974 yyb6 = yyj6 > l 23975 } else { 23976 yyb6 = r.CheckBreak() 23977 } 23978 if yyb6 { 23979 r.ReadArrayEnd() 23980 return 23981 } 23982 r.ReadArrayElem() 23983 if r.TryDecodeAsNil() { 23984 x.Namespace = "" 23985 } else { 23986 x.Namespace = (string)(r.DecodeString()) 23987 } 23988 for { 23989 yyj6++ 23990 if yyhl6 { 23991 yyb6 = yyj6 > l 23992 } else { 23993 yyb6 = r.CheckBreak() 23994 } 23995 if yyb6 { 23996 break 23997 } 23998 r.ReadArrayElem() 23999 z.DecStructFieldNotFound(yyj6-1, "") 24000 } 24001 r.ReadArrayEnd() 24002 } 24003 24004 func (x *InternalRpcInfo) CodecEncodeSelf(e *codec1978.Encoder) { 24005 var h codecSelfer100 24006 z, r := codec1978.GenHelperEncoder(e) 24007 _, _, _ = h, z, r 24008 if x == nil { 24009 r.EncodeNil() 24010 } else { 24011 if false { 24012 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 24013 z.EncExtension(x, yyxt1) 24014 } else { 24015 yysep2 := !z.EncBinary() 24016 yy2arr2 := z.EncBasicHandle().StructToArray 24017 _, _ = yysep2, yy2arr2 24018 const yyr2 bool = false // struct tag has 'toArray' 24019 if yyr2 || yy2arr2 { 24020 r.WriteArrayStart(1) 24021 } else { 24022 r.WriteMapStart(1) 24023 } 24024 if yyr2 || yy2arr2 { 24025 r.WriteArrayElem() 24026 if false { 24027 } else { 24028 r.EncodeBool(bool(x.Forwarded)) 24029 } 24030 } else { 24031 r.WriteMapElemKey() 24032 if z.IsJSONHandle() { 24033 z.WriteStr("\"Forwarded\"") 24034 } else { 24035 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 24036 } 24037 r.WriteMapElemValue() 24038 if false { 24039 } else { 24040 r.EncodeBool(bool(x.Forwarded)) 24041 } 24042 } 24043 if yyr2 || yy2arr2 { 24044 r.WriteArrayEnd() 24045 } else { 24046 r.WriteMapEnd() 24047 } 24048 } 24049 } 24050 } 24051 24052 func (x *InternalRpcInfo) CodecDecodeSelf(d *codec1978.Decoder) { 24053 var h codecSelfer100 24054 z, r := codec1978.GenHelperDecoder(d) 24055 _, _, _ = h, z, r 24056 if false { 24057 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 24058 z.DecExtension(x, yyxt1) 24059 } else { 24060 yyct2 := r.ContainerType() 24061 if yyct2 == codecSelferValueTypeMap100 { 24062 yyl2 := r.ReadMapStart() 24063 if yyl2 == 0 { 24064 r.ReadMapEnd() 24065 } else { 24066 x.codecDecodeSelfFromMap(yyl2, d) 24067 } 24068 } else if yyct2 == codecSelferValueTypeArray100 { 24069 yyl2 := r.ReadArrayStart() 24070 if yyl2 == 0 { 24071 r.ReadArrayEnd() 24072 } else { 24073 x.codecDecodeSelfFromArray(yyl2, d) 24074 } 24075 } else { 24076 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 24077 } 24078 } 24079 } 24080 24081 func (x *InternalRpcInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 24082 var h codecSelfer100 24083 z, r := codec1978.GenHelperDecoder(d) 24084 _, _, _ = h, z, r 24085 var yyhl3 bool = l >= 0 24086 for yyj3 := 0; ; yyj3++ { 24087 if yyhl3 { 24088 if yyj3 >= l { 24089 break 24090 } 24091 } else { 24092 if r.CheckBreak() { 24093 break 24094 } 24095 } 24096 r.ReadMapElemKey() 24097 yys3 := z.StringView(r.DecodeStringAsBytes()) 24098 r.ReadMapElemValue() 24099 switch yys3 { 24100 case "Forwarded": 24101 if r.TryDecodeAsNil() { 24102 x.Forwarded = false 24103 } else { 24104 x.Forwarded = (bool)(r.DecodeBool()) 24105 } 24106 default: 24107 z.DecStructFieldNotFound(-1, yys3) 24108 } // end switch yys3 24109 } // end for yyj3 24110 r.ReadMapEnd() 24111 } 24112 24113 func (x *InternalRpcInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 24114 var h codecSelfer100 24115 z, r := codec1978.GenHelperDecoder(d) 24116 _, _, _ = h, z, r 24117 var yyj5 int 24118 var yyb5 bool 24119 var yyhl5 bool = l >= 0 24120 yyj5++ 24121 if yyhl5 { 24122 yyb5 = yyj5 > l 24123 } else { 24124 yyb5 = r.CheckBreak() 24125 } 24126 if yyb5 { 24127 r.ReadArrayEnd() 24128 return 24129 } 24130 r.ReadArrayElem() 24131 if r.TryDecodeAsNil() { 24132 x.Forwarded = false 24133 } else { 24134 x.Forwarded = (bool)(r.DecodeBool()) 24135 } 24136 for { 24137 yyj5++ 24138 if yyhl5 { 24139 yyb5 = yyj5 > l 24140 } else { 24141 yyb5 = r.CheckBreak() 24142 } 24143 if yyb5 { 24144 break 24145 } 24146 r.ReadArrayElem() 24147 z.DecStructFieldNotFound(yyj5-1, "") 24148 } 24149 r.ReadArrayEnd() 24150 } 24151 24152 func (x *QueryOptions) CodecEncodeSelf(e *codec1978.Encoder) { 24153 var h codecSelfer100 24154 z, r := codec1978.GenHelperEncoder(e) 24155 _, _, _ = h, z, r 24156 if x == nil { 24157 r.EncodeNil() 24158 } else { 24159 if false { 24160 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 24161 z.EncExtension(x, yyxt1) 24162 } else { 24163 yysep2 := !z.EncBinary() 24164 yy2arr2 := z.EncBasicHandle().StructToArray 24165 _, _ = yysep2, yy2arr2 24166 const yyr2 bool = false // struct tag has 'toArray' 24167 if yyr2 || yy2arr2 { 24168 r.WriteArrayStart(8) 24169 } else { 24170 r.WriteMapStart(8) 24171 } 24172 if yyr2 || yy2arr2 { 24173 r.WriteArrayElem() 24174 if false { 24175 } else { 24176 if z.EncBasicHandle().StringToRaw { 24177 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 24178 } else { 24179 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 24180 } 24181 } 24182 } else { 24183 r.WriteMapElemKey() 24184 if z.IsJSONHandle() { 24185 z.WriteStr("\"Region\"") 24186 } else { 24187 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 24188 } 24189 r.WriteMapElemValue() 24190 if false { 24191 } else { 24192 if z.EncBasicHandle().StringToRaw { 24193 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 24194 } else { 24195 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 24196 } 24197 } 24198 } 24199 if yyr2 || yy2arr2 { 24200 r.WriteArrayElem() 24201 if false { 24202 } else { 24203 if z.EncBasicHandle().StringToRaw { 24204 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 24205 } else { 24206 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 24207 } 24208 } 24209 } else { 24210 r.WriteMapElemKey() 24211 if z.IsJSONHandle() { 24212 z.WriteStr("\"Namespace\"") 24213 } else { 24214 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 24215 } 24216 r.WriteMapElemValue() 24217 if false { 24218 } else { 24219 if z.EncBasicHandle().StringToRaw { 24220 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 24221 } else { 24222 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 24223 } 24224 } 24225 } 24226 if yyr2 || yy2arr2 { 24227 r.WriteArrayElem() 24228 if false { 24229 } else { 24230 r.EncodeUint(uint64(x.MinQueryIndex)) 24231 } 24232 } else { 24233 r.WriteMapElemKey() 24234 if z.IsJSONHandle() { 24235 z.WriteStr("\"MinQueryIndex\"") 24236 } else { 24237 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 24238 } 24239 r.WriteMapElemValue() 24240 if false { 24241 } else { 24242 r.EncodeUint(uint64(x.MinQueryIndex)) 24243 } 24244 } 24245 if yyr2 || yy2arr2 { 24246 r.WriteArrayElem() 24247 if false { 24248 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 24249 z.EncExtension(x.MaxQueryTime, yyxt13) 24250 } else { 24251 r.EncodeInt(int64(x.MaxQueryTime)) 24252 } 24253 } else { 24254 r.WriteMapElemKey() 24255 if z.IsJSONHandle() { 24256 z.WriteStr("\"MaxQueryTime\"") 24257 } else { 24258 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 24259 } 24260 r.WriteMapElemValue() 24261 if false { 24262 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 24263 z.EncExtension(x.MaxQueryTime, yyxt14) 24264 } else { 24265 r.EncodeInt(int64(x.MaxQueryTime)) 24266 } 24267 } 24268 if yyr2 || yy2arr2 { 24269 r.WriteArrayElem() 24270 if false { 24271 } else { 24272 r.EncodeBool(bool(x.AllowStale)) 24273 } 24274 } else { 24275 r.WriteMapElemKey() 24276 if z.IsJSONHandle() { 24277 z.WriteStr("\"AllowStale\"") 24278 } else { 24279 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 24280 } 24281 r.WriteMapElemValue() 24282 if false { 24283 } else { 24284 r.EncodeBool(bool(x.AllowStale)) 24285 } 24286 } 24287 if yyr2 || yy2arr2 { 24288 r.WriteArrayElem() 24289 if false { 24290 } else { 24291 if z.EncBasicHandle().StringToRaw { 24292 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 24293 } else { 24294 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 24295 } 24296 } 24297 } else { 24298 r.WriteMapElemKey() 24299 if z.IsJSONHandle() { 24300 z.WriteStr("\"Prefix\"") 24301 } else { 24302 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 24303 } 24304 r.WriteMapElemValue() 24305 if false { 24306 } else { 24307 if z.EncBasicHandle().StringToRaw { 24308 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 24309 } else { 24310 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 24311 } 24312 } 24313 } 24314 if yyr2 || yy2arr2 { 24315 r.WriteArrayElem() 24316 if false { 24317 } else { 24318 if z.EncBasicHandle().StringToRaw { 24319 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 24320 } else { 24321 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 24322 } 24323 } 24324 } else { 24325 r.WriteMapElemKey() 24326 if z.IsJSONHandle() { 24327 z.WriteStr("\"AuthToken\"") 24328 } else { 24329 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 24330 } 24331 r.WriteMapElemValue() 24332 if false { 24333 } else { 24334 if z.EncBasicHandle().StringToRaw { 24335 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 24336 } else { 24337 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 24338 } 24339 } 24340 } 24341 if yyr2 || yy2arr2 { 24342 r.WriteArrayElem() 24343 if false { 24344 } else { 24345 r.EncodeBool(bool(x.Forwarded)) 24346 } 24347 } else { 24348 r.WriteMapElemKey() 24349 if z.IsJSONHandle() { 24350 z.WriteStr("\"Forwarded\"") 24351 } else { 24352 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 24353 } 24354 r.WriteMapElemValue() 24355 if false { 24356 } else { 24357 r.EncodeBool(bool(x.Forwarded)) 24358 } 24359 } 24360 if yyr2 || yy2arr2 { 24361 r.WriteArrayEnd() 24362 } else { 24363 r.WriteMapEnd() 24364 } 24365 } 24366 } 24367 } 24368 24369 func (x *QueryOptions) CodecDecodeSelf(d *codec1978.Decoder) { 24370 var h codecSelfer100 24371 z, r := codec1978.GenHelperDecoder(d) 24372 _, _, _ = h, z, r 24373 if false { 24374 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 24375 z.DecExtension(x, yyxt1) 24376 } else { 24377 yyct2 := r.ContainerType() 24378 if yyct2 == codecSelferValueTypeMap100 { 24379 yyl2 := r.ReadMapStart() 24380 if yyl2 == 0 { 24381 r.ReadMapEnd() 24382 } else { 24383 x.codecDecodeSelfFromMap(yyl2, d) 24384 } 24385 } else if yyct2 == codecSelferValueTypeArray100 { 24386 yyl2 := r.ReadArrayStart() 24387 if yyl2 == 0 { 24388 r.ReadArrayEnd() 24389 } else { 24390 x.codecDecodeSelfFromArray(yyl2, d) 24391 } 24392 } else { 24393 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 24394 } 24395 } 24396 } 24397 24398 func (x *QueryOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 24399 var h codecSelfer100 24400 z, r := codec1978.GenHelperDecoder(d) 24401 _, _, _ = h, z, r 24402 var yyhl3 bool = l >= 0 24403 for yyj3 := 0; ; yyj3++ { 24404 if yyhl3 { 24405 if yyj3 >= l { 24406 break 24407 } 24408 } else { 24409 if r.CheckBreak() { 24410 break 24411 } 24412 } 24413 r.ReadMapElemKey() 24414 yys3 := z.StringView(r.DecodeStringAsBytes()) 24415 r.ReadMapElemValue() 24416 switch yys3 { 24417 case "Region": 24418 if r.TryDecodeAsNil() { 24419 x.Region = "" 24420 } else { 24421 x.Region = (string)(r.DecodeString()) 24422 } 24423 case "Namespace": 24424 if r.TryDecodeAsNil() { 24425 x.Namespace = "" 24426 } else { 24427 x.Namespace = (string)(r.DecodeString()) 24428 } 24429 case "MinQueryIndex": 24430 if r.TryDecodeAsNil() { 24431 x.MinQueryIndex = 0 24432 } else { 24433 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 24434 } 24435 case "MaxQueryTime": 24436 if r.TryDecodeAsNil() { 24437 x.MaxQueryTime = 0 24438 } else { 24439 if false { 24440 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 24441 z.DecExtension(x.MaxQueryTime, yyxt8) 24442 } else { 24443 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 24444 } 24445 } 24446 case "AllowStale": 24447 if r.TryDecodeAsNil() { 24448 x.AllowStale = false 24449 } else { 24450 x.AllowStale = (bool)(r.DecodeBool()) 24451 } 24452 case "Prefix": 24453 if r.TryDecodeAsNil() { 24454 x.Prefix = "" 24455 } else { 24456 x.Prefix = (string)(r.DecodeString()) 24457 } 24458 case "AuthToken": 24459 if r.TryDecodeAsNil() { 24460 x.AuthToken = "" 24461 } else { 24462 x.AuthToken = (string)(r.DecodeString()) 24463 } 24464 case "Forwarded": 24465 if r.TryDecodeAsNil() { 24466 x.InternalRpcInfo.Forwarded = false 24467 } else { 24468 x.Forwarded = (bool)(r.DecodeBool()) 24469 } 24470 default: 24471 z.DecStructFieldNotFound(-1, yys3) 24472 } // end switch yys3 24473 } // end for yyj3 24474 r.ReadMapEnd() 24475 } 24476 24477 func (x *QueryOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 24478 var h codecSelfer100 24479 z, r := codec1978.GenHelperDecoder(d) 24480 _, _, _ = h, z, r 24481 var yyj13 int 24482 var yyb13 bool 24483 var yyhl13 bool = l >= 0 24484 yyj13++ 24485 if yyhl13 { 24486 yyb13 = yyj13 > l 24487 } else { 24488 yyb13 = r.CheckBreak() 24489 } 24490 if yyb13 { 24491 r.ReadArrayEnd() 24492 return 24493 } 24494 r.ReadArrayElem() 24495 if r.TryDecodeAsNil() { 24496 x.Region = "" 24497 } else { 24498 x.Region = (string)(r.DecodeString()) 24499 } 24500 yyj13++ 24501 if yyhl13 { 24502 yyb13 = yyj13 > l 24503 } else { 24504 yyb13 = r.CheckBreak() 24505 } 24506 if yyb13 { 24507 r.ReadArrayEnd() 24508 return 24509 } 24510 r.ReadArrayElem() 24511 if r.TryDecodeAsNil() { 24512 x.Namespace = "" 24513 } else { 24514 x.Namespace = (string)(r.DecodeString()) 24515 } 24516 yyj13++ 24517 if yyhl13 { 24518 yyb13 = yyj13 > l 24519 } else { 24520 yyb13 = r.CheckBreak() 24521 } 24522 if yyb13 { 24523 r.ReadArrayEnd() 24524 return 24525 } 24526 r.ReadArrayElem() 24527 if r.TryDecodeAsNil() { 24528 x.MinQueryIndex = 0 24529 } else { 24530 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 24531 } 24532 yyj13++ 24533 if yyhl13 { 24534 yyb13 = yyj13 > l 24535 } else { 24536 yyb13 = r.CheckBreak() 24537 } 24538 if yyb13 { 24539 r.ReadArrayEnd() 24540 return 24541 } 24542 r.ReadArrayElem() 24543 if r.TryDecodeAsNil() { 24544 x.MaxQueryTime = 0 24545 } else { 24546 if false { 24547 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 24548 z.DecExtension(x.MaxQueryTime, yyxt18) 24549 } else { 24550 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 24551 } 24552 } 24553 yyj13++ 24554 if yyhl13 { 24555 yyb13 = yyj13 > l 24556 } else { 24557 yyb13 = r.CheckBreak() 24558 } 24559 if yyb13 { 24560 r.ReadArrayEnd() 24561 return 24562 } 24563 r.ReadArrayElem() 24564 if r.TryDecodeAsNil() { 24565 x.AllowStale = false 24566 } else { 24567 x.AllowStale = (bool)(r.DecodeBool()) 24568 } 24569 yyj13++ 24570 if yyhl13 { 24571 yyb13 = yyj13 > l 24572 } else { 24573 yyb13 = r.CheckBreak() 24574 } 24575 if yyb13 { 24576 r.ReadArrayEnd() 24577 return 24578 } 24579 r.ReadArrayElem() 24580 if r.TryDecodeAsNil() { 24581 x.Prefix = "" 24582 } else { 24583 x.Prefix = (string)(r.DecodeString()) 24584 } 24585 yyj13++ 24586 if yyhl13 { 24587 yyb13 = yyj13 > l 24588 } else { 24589 yyb13 = r.CheckBreak() 24590 } 24591 if yyb13 { 24592 r.ReadArrayEnd() 24593 return 24594 } 24595 r.ReadArrayElem() 24596 if r.TryDecodeAsNil() { 24597 x.AuthToken = "" 24598 } else { 24599 x.AuthToken = (string)(r.DecodeString()) 24600 } 24601 yyj13++ 24602 if yyhl13 { 24603 yyb13 = yyj13 > l 24604 } else { 24605 yyb13 = r.CheckBreak() 24606 } 24607 if yyb13 { 24608 r.ReadArrayEnd() 24609 return 24610 } 24611 r.ReadArrayElem() 24612 if r.TryDecodeAsNil() { 24613 x.InternalRpcInfo.Forwarded = false 24614 } else { 24615 x.Forwarded = (bool)(r.DecodeBool()) 24616 } 24617 for { 24618 yyj13++ 24619 if yyhl13 { 24620 yyb13 = yyj13 > l 24621 } else { 24622 yyb13 = r.CheckBreak() 24623 } 24624 if yyb13 { 24625 break 24626 } 24627 r.ReadArrayElem() 24628 z.DecStructFieldNotFound(yyj13-1, "") 24629 } 24630 r.ReadArrayEnd() 24631 } 24632 24633 func (x *AgentPprofRequest) CodecEncodeSelf(e *codec1978.Encoder) { 24634 var h codecSelfer100 24635 z, r := codec1978.GenHelperEncoder(e) 24636 _, _, _ = h, z, r 24637 if x == nil { 24638 r.EncodeNil() 24639 } else { 24640 if false { 24641 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 24642 z.EncExtension(x, yyxt1) 24643 } else { 24644 yysep2 := !z.EncBinary() 24645 yy2arr2 := z.EncBasicHandle().StructToArray 24646 _, _ = yysep2, yy2arr2 24647 const yyr2 bool = false // struct tag has 'toArray' 24648 if yyr2 || yy2arr2 { 24649 r.WriteArrayStart(15) 24650 } else { 24651 r.WriteMapStart(15) 24652 } 24653 if yyr2 || yy2arr2 { 24654 r.WriteArrayElem() 24655 if false { 24656 } else if yyxt4 := z.Extension(z.I2Rtid(x.ReqType)); yyxt4 != nil { 24657 z.EncExtension(x.ReqType, yyxt4) 24658 } else { 24659 if z.EncBasicHandle().StringToRaw { 24660 r.EncodeStringBytesRaw(z.BytesView(string(x.ReqType))) 24661 } else { 24662 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ReqType)) 24663 } 24664 } 24665 } else { 24666 r.WriteMapElemKey() 24667 if z.IsJSONHandle() { 24668 z.WriteStr("\"ReqType\"") 24669 } else { 24670 r.EncodeStringEnc(codecSelferCcUTF8100, `ReqType`) 24671 } 24672 r.WriteMapElemValue() 24673 if false { 24674 } else if yyxt5 := z.Extension(z.I2Rtid(x.ReqType)); yyxt5 != nil { 24675 z.EncExtension(x.ReqType, yyxt5) 24676 } else { 24677 if z.EncBasicHandle().StringToRaw { 24678 r.EncodeStringBytesRaw(z.BytesView(string(x.ReqType))) 24679 } else { 24680 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ReqType)) 24681 } 24682 } 24683 } 24684 if yyr2 || yy2arr2 { 24685 r.WriteArrayElem() 24686 if false { 24687 } else { 24688 if z.EncBasicHandle().StringToRaw { 24689 r.EncodeStringBytesRaw(z.BytesView(string(x.Profile))) 24690 } else { 24691 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Profile)) 24692 } 24693 } 24694 } else { 24695 r.WriteMapElemKey() 24696 if z.IsJSONHandle() { 24697 z.WriteStr("\"Profile\"") 24698 } else { 24699 r.EncodeStringEnc(codecSelferCcUTF8100, `Profile`) 24700 } 24701 r.WriteMapElemValue() 24702 if false { 24703 } else { 24704 if z.EncBasicHandle().StringToRaw { 24705 r.EncodeStringBytesRaw(z.BytesView(string(x.Profile))) 24706 } else { 24707 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Profile)) 24708 } 24709 } 24710 } 24711 if yyr2 || yy2arr2 { 24712 r.WriteArrayElem() 24713 if false { 24714 } else { 24715 r.EncodeInt(int64(x.Seconds)) 24716 } 24717 } else { 24718 r.WriteMapElemKey() 24719 if z.IsJSONHandle() { 24720 z.WriteStr("\"Seconds\"") 24721 } else { 24722 r.EncodeStringEnc(codecSelferCcUTF8100, `Seconds`) 24723 } 24724 r.WriteMapElemValue() 24725 if false { 24726 } else { 24727 r.EncodeInt(int64(x.Seconds)) 24728 } 24729 } 24730 if yyr2 || yy2arr2 { 24731 r.WriteArrayElem() 24732 if false { 24733 } else { 24734 r.EncodeInt(int64(x.Debug)) 24735 } 24736 } else { 24737 r.WriteMapElemKey() 24738 if z.IsJSONHandle() { 24739 z.WriteStr("\"Debug\"") 24740 } else { 24741 r.EncodeStringEnc(codecSelferCcUTF8100, `Debug`) 24742 } 24743 r.WriteMapElemValue() 24744 if false { 24745 } else { 24746 r.EncodeInt(int64(x.Debug)) 24747 } 24748 } 24749 if yyr2 || yy2arr2 { 24750 r.WriteArrayElem() 24751 if false { 24752 } else { 24753 r.EncodeInt(int64(x.GC)) 24754 } 24755 } else { 24756 r.WriteMapElemKey() 24757 if z.IsJSONHandle() { 24758 z.WriteStr("\"GC\"") 24759 } else { 24760 r.EncodeStringEnc(codecSelferCcUTF8100, `GC`) 24761 } 24762 r.WriteMapElemValue() 24763 if false { 24764 } else { 24765 r.EncodeInt(int64(x.GC)) 24766 } 24767 } 24768 if yyr2 || yy2arr2 { 24769 r.WriteArrayElem() 24770 if false { 24771 } else { 24772 if z.EncBasicHandle().StringToRaw { 24773 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 24774 } else { 24775 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 24776 } 24777 } 24778 } else { 24779 r.WriteMapElemKey() 24780 if z.IsJSONHandle() { 24781 z.WriteStr("\"NodeID\"") 24782 } else { 24783 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 24784 } 24785 r.WriteMapElemValue() 24786 if false { 24787 } else { 24788 if z.EncBasicHandle().StringToRaw { 24789 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 24790 } else { 24791 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 24792 } 24793 } 24794 } 24795 if yyr2 || yy2arr2 { 24796 r.WriteArrayElem() 24797 if false { 24798 } else { 24799 if z.EncBasicHandle().StringToRaw { 24800 r.EncodeStringBytesRaw(z.BytesView(string(x.ServerID))) 24801 } else { 24802 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerID)) 24803 } 24804 } 24805 } else { 24806 r.WriteMapElemKey() 24807 if z.IsJSONHandle() { 24808 z.WriteStr("\"ServerID\"") 24809 } else { 24810 r.EncodeStringEnc(codecSelferCcUTF8100, `ServerID`) 24811 } 24812 r.WriteMapElemValue() 24813 if false { 24814 } else { 24815 if z.EncBasicHandle().StringToRaw { 24816 r.EncodeStringBytesRaw(z.BytesView(string(x.ServerID))) 24817 } else { 24818 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerID)) 24819 } 24820 } 24821 } 24822 if yyr2 || yy2arr2 { 24823 r.WriteArrayElem() 24824 if false { 24825 } else { 24826 if z.EncBasicHandle().StringToRaw { 24827 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 24828 } else { 24829 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 24830 } 24831 } 24832 } else { 24833 r.WriteMapElemKey() 24834 if z.IsJSONHandle() { 24835 z.WriteStr("\"Region\"") 24836 } else { 24837 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 24838 } 24839 r.WriteMapElemValue() 24840 if false { 24841 } else { 24842 if z.EncBasicHandle().StringToRaw { 24843 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 24844 } else { 24845 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 24846 } 24847 } 24848 } 24849 if yyr2 || yy2arr2 { 24850 r.WriteArrayElem() 24851 if false { 24852 } else { 24853 if z.EncBasicHandle().StringToRaw { 24854 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 24855 } else { 24856 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 24857 } 24858 } 24859 } else { 24860 r.WriteMapElemKey() 24861 if z.IsJSONHandle() { 24862 z.WriteStr("\"Namespace\"") 24863 } else { 24864 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 24865 } 24866 r.WriteMapElemValue() 24867 if false { 24868 } else { 24869 if z.EncBasicHandle().StringToRaw { 24870 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 24871 } else { 24872 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 24873 } 24874 } 24875 } 24876 if yyr2 || yy2arr2 { 24877 r.WriteArrayElem() 24878 if false { 24879 } else { 24880 r.EncodeUint(uint64(x.MinQueryIndex)) 24881 } 24882 } else { 24883 r.WriteMapElemKey() 24884 if z.IsJSONHandle() { 24885 z.WriteStr("\"MinQueryIndex\"") 24886 } else { 24887 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 24888 } 24889 r.WriteMapElemValue() 24890 if false { 24891 } else { 24892 r.EncodeUint(uint64(x.MinQueryIndex)) 24893 } 24894 } 24895 if yyr2 || yy2arr2 { 24896 r.WriteArrayElem() 24897 if false { 24898 } else if yyxt34 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt34 != nil { 24899 z.EncExtension(x.MaxQueryTime, yyxt34) 24900 } else { 24901 r.EncodeInt(int64(x.MaxQueryTime)) 24902 } 24903 } else { 24904 r.WriteMapElemKey() 24905 if z.IsJSONHandle() { 24906 z.WriteStr("\"MaxQueryTime\"") 24907 } else { 24908 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 24909 } 24910 r.WriteMapElemValue() 24911 if false { 24912 } else if yyxt35 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt35 != nil { 24913 z.EncExtension(x.MaxQueryTime, yyxt35) 24914 } else { 24915 r.EncodeInt(int64(x.MaxQueryTime)) 24916 } 24917 } 24918 if yyr2 || yy2arr2 { 24919 r.WriteArrayElem() 24920 if false { 24921 } else { 24922 r.EncodeBool(bool(x.AllowStale)) 24923 } 24924 } else { 24925 r.WriteMapElemKey() 24926 if z.IsJSONHandle() { 24927 z.WriteStr("\"AllowStale\"") 24928 } else { 24929 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 24930 } 24931 r.WriteMapElemValue() 24932 if false { 24933 } else { 24934 r.EncodeBool(bool(x.AllowStale)) 24935 } 24936 } 24937 if yyr2 || yy2arr2 { 24938 r.WriteArrayElem() 24939 if false { 24940 } else { 24941 if z.EncBasicHandle().StringToRaw { 24942 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 24943 } else { 24944 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 24945 } 24946 } 24947 } else { 24948 r.WriteMapElemKey() 24949 if z.IsJSONHandle() { 24950 z.WriteStr("\"Prefix\"") 24951 } else { 24952 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 24953 } 24954 r.WriteMapElemValue() 24955 if false { 24956 } else { 24957 if z.EncBasicHandle().StringToRaw { 24958 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 24959 } else { 24960 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 24961 } 24962 } 24963 } 24964 if yyr2 || yy2arr2 { 24965 r.WriteArrayElem() 24966 if false { 24967 } else { 24968 if z.EncBasicHandle().StringToRaw { 24969 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 24970 } else { 24971 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 24972 } 24973 } 24974 } else { 24975 r.WriteMapElemKey() 24976 if z.IsJSONHandle() { 24977 z.WriteStr("\"AuthToken\"") 24978 } else { 24979 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 24980 } 24981 r.WriteMapElemValue() 24982 if false { 24983 } else { 24984 if z.EncBasicHandle().StringToRaw { 24985 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 24986 } else { 24987 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 24988 } 24989 } 24990 } 24991 if yyr2 || yy2arr2 { 24992 r.WriteArrayElem() 24993 if false { 24994 } else { 24995 r.EncodeBool(bool(x.Forwarded)) 24996 } 24997 } else { 24998 r.WriteMapElemKey() 24999 if z.IsJSONHandle() { 25000 z.WriteStr("\"Forwarded\"") 25001 } else { 25002 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 25003 } 25004 r.WriteMapElemValue() 25005 if false { 25006 } else { 25007 r.EncodeBool(bool(x.Forwarded)) 25008 } 25009 } 25010 if yyr2 || yy2arr2 { 25011 r.WriteArrayEnd() 25012 } else { 25013 r.WriteMapEnd() 25014 } 25015 } 25016 } 25017 } 25018 25019 func (x *AgentPprofRequest) CodecDecodeSelf(d *codec1978.Decoder) { 25020 var h codecSelfer100 25021 z, r := codec1978.GenHelperDecoder(d) 25022 _, _, _ = h, z, r 25023 if false { 25024 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25025 z.DecExtension(x, yyxt1) 25026 } else { 25027 yyct2 := r.ContainerType() 25028 if yyct2 == codecSelferValueTypeMap100 { 25029 yyl2 := r.ReadMapStart() 25030 if yyl2 == 0 { 25031 r.ReadMapEnd() 25032 } else { 25033 x.codecDecodeSelfFromMap(yyl2, d) 25034 } 25035 } else if yyct2 == codecSelferValueTypeArray100 { 25036 yyl2 := r.ReadArrayStart() 25037 if yyl2 == 0 { 25038 r.ReadArrayEnd() 25039 } else { 25040 x.codecDecodeSelfFromArray(yyl2, d) 25041 } 25042 } else { 25043 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 25044 } 25045 } 25046 } 25047 25048 func (x *AgentPprofRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 25049 var h codecSelfer100 25050 z, r := codec1978.GenHelperDecoder(d) 25051 _, _, _ = h, z, r 25052 var yyhl3 bool = l >= 0 25053 for yyj3 := 0; ; yyj3++ { 25054 if yyhl3 { 25055 if yyj3 >= l { 25056 break 25057 } 25058 } else { 25059 if r.CheckBreak() { 25060 break 25061 } 25062 } 25063 r.ReadMapElemKey() 25064 yys3 := z.StringView(r.DecodeStringAsBytes()) 25065 r.ReadMapElemValue() 25066 switch yys3 { 25067 case "ReqType": 25068 if r.TryDecodeAsNil() { 25069 x.ReqType = "" 25070 } else { 25071 if false { 25072 } else if yyxt5 := z.Extension(z.I2Rtid(x.ReqType)); yyxt5 != nil { 25073 z.DecExtension(x.ReqType, yyxt5) 25074 } else { 25075 x.ReqType = (pkg3_pprof.ReqType)(r.DecodeString()) 25076 } 25077 } 25078 case "Profile": 25079 if r.TryDecodeAsNil() { 25080 x.Profile = "" 25081 } else { 25082 x.Profile = (string)(r.DecodeString()) 25083 } 25084 case "Seconds": 25085 if r.TryDecodeAsNil() { 25086 x.Seconds = 0 25087 } else { 25088 x.Seconds = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 25089 } 25090 case "Debug": 25091 if r.TryDecodeAsNil() { 25092 x.Debug = 0 25093 } else { 25094 x.Debug = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 25095 } 25096 case "GC": 25097 if r.TryDecodeAsNil() { 25098 x.GC = 0 25099 } else { 25100 x.GC = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 25101 } 25102 case "NodeID": 25103 if r.TryDecodeAsNil() { 25104 x.NodeID = "" 25105 } else { 25106 x.NodeID = (string)(r.DecodeString()) 25107 } 25108 case "ServerID": 25109 if r.TryDecodeAsNil() { 25110 x.ServerID = "" 25111 } else { 25112 x.ServerID = (string)(r.DecodeString()) 25113 } 25114 case "Region": 25115 if r.TryDecodeAsNil() { 25116 x.QueryOptions.Region = "" 25117 } else { 25118 x.Region = (string)(r.DecodeString()) 25119 } 25120 case "Namespace": 25121 if r.TryDecodeAsNil() { 25122 x.QueryOptions.Namespace = "" 25123 } else { 25124 x.Namespace = (string)(r.DecodeString()) 25125 } 25126 case "MinQueryIndex": 25127 if r.TryDecodeAsNil() { 25128 x.QueryOptions.MinQueryIndex = 0 25129 } else { 25130 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 25131 } 25132 case "MaxQueryTime": 25133 if r.TryDecodeAsNil() { 25134 x.QueryOptions.MaxQueryTime = 0 25135 } else { 25136 if false { 25137 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 25138 z.DecExtension(x.MaxQueryTime, yyxt16) 25139 } else { 25140 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 25141 } 25142 } 25143 case "AllowStale": 25144 if r.TryDecodeAsNil() { 25145 x.QueryOptions.AllowStale = false 25146 } else { 25147 x.AllowStale = (bool)(r.DecodeBool()) 25148 } 25149 case "Prefix": 25150 if r.TryDecodeAsNil() { 25151 x.QueryOptions.Prefix = "" 25152 } else { 25153 x.Prefix = (string)(r.DecodeString()) 25154 } 25155 case "AuthToken": 25156 if r.TryDecodeAsNil() { 25157 x.QueryOptions.AuthToken = "" 25158 } else { 25159 x.AuthToken = (string)(r.DecodeString()) 25160 } 25161 case "Forwarded": 25162 if r.TryDecodeAsNil() { 25163 x.QueryOptions.InternalRpcInfo.Forwarded = false 25164 } else { 25165 x.Forwarded = (bool)(r.DecodeBool()) 25166 } 25167 default: 25168 z.DecStructFieldNotFound(-1, yys3) 25169 } // end switch yys3 25170 } // end for yyj3 25171 r.ReadMapEnd() 25172 } 25173 25174 func (x *AgentPprofRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 25175 var h codecSelfer100 25176 z, r := codec1978.GenHelperDecoder(d) 25177 _, _, _ = h, z, r 25178 var yyj21 int 25179 var yyb21 bool 25180 var yyhl21 bool = l >= 0 25181 yyj21++ 25182 if yyhl21 { 25183 yyb21 = yyj21 > l 25184 } else { 25185 yyb21 = r.CheckBreak() 25186 } 25187 if yyb21 { 25188 r.ReadArrayEnd() 25189 return 25190 } 25191 r.ReadArrayElem() 25192 if r.TryDecodeAsNil() { 25193 x.ReqType = "" 25194 } else { 25195 if false { 25196 } else if yyxt23 := z.Extension(z.I2Rtid(x.ReqType)); yyxt23 != nil { 25197 z.DecExtension(x.ReqType, yyxt23) 25198 } else { 25199 x.ReqType = (pkg3_pprof.ReqType)(r.DecodeString()) 25200 } 25201 } 25202 yyj21++ 25203 if yyhl21 { 25204 yyb21 = yyj21 > l 25205 } else { 25206 yyb21 = r.CheckBreak() 25207 } 25208 if yyb21 { 25209 r.ReadArrayEnd() 25210 return 25211 } 25212 r.ReadArrayElem() 25213 if r.TryDecodeAsNil() { 25214 x.Profile = "" 25215 } else { 25216 x.Profile = (string)(r.DecodeString()) 25217 } 25218 yyj21++ 25219 if yyhl21 { 25220 yyb21 = yyj21 > l 25221 } else { 25222 yyb21 = r.CheckBreak() 25223 } 25224 if yyb21 { 25225 r.ReadArrayEnd() 25226 return 25227 } 25228 r.ReadArrayElem() 25229 if r.TryDecodeAsNil() { 25230 x.Seconds = 0 25231 } else { 25232 x.Seconds = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 25233 } 25234 yyj21++ 25235 if yyhl21 { 25236 yyb21 = yyj21 > l 25237 } else { 25238 yyb21 = r.CheckBreak() 25239 } 25240 if yyb21 { 25241 r.ReadArrayEnd() 25242 return 25243 } 25244 r.ReadArrayElem() 25245 if r.TryDecodeAsNil() { 25246 x.Debug = 0 25247 } else { 25248 x.Debug = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 25249 } 25250 yyj21++ 25251 if yyhl21 { 25252 yyb21 = yyj21 > l 25253 } else { 25254 yyb21 = r.CheckBreak() 25255 } 25256 if yyb21 { 25257 r.ReadArrayEnd() 25258 return 25259 } 25260 r.ReadArrayElem() 25261 if r.TryDecodeAsNil() { 25262 x.GC = 0 25263 } else { 25264 x.GC = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 25265 } 25266 yyj21++ 25267 if yyhl21 { 25268 yyb21 = yyj21 > l 25269 } else { 25270 yyb21 = r.CheckBreak() 25271 } 25272 if yyb21 { 25273 r.ReadArrayEnd() 25274 return 25275 } 25276 r.ReadArrayElem() 25277 if r.TryDecodeAsNil() { 25278 x.NodeID = "" 25279 } else { 25280 x.NodeID = (string)(r.DecodeString()) 25281 } 25282 yyj21++ 25283 if yyhl21 { 25284 yyb21 = yyj21 > l 25285 } else { 25286 yyb21 = r.CheckBreak() 25287 } 25288 if yyb21 { 25289 r.ReadArrayEnd() 25290 return 25291 } 25292 r.ReadArrayElem() 25293 if r.TryDecodeAsNil() { 25294 x.ServerID = "" 25295 } else { 25296 x.ServerID = (string)(r.DecodeString()) 25297 } 25298 yyj21++ 25299 if yyhl21 { 25300 yyb21 = yyj21 > l 25301 } else { 25302 yyb21 = r.CheckBreak() 25303 } 25304 if yyb21 { 25305 r.ReadArrayEnd() 25306 return 25307 } 25308 r.ReadArrayElem() 25309 if r.TryDecodeAsNil() { 25310 x.QueryOptions.Region = "" 25311 } else { 25312 x.Region = (string)(r.DecodeString()) 25313 } 25314 yyj21++ 25315 if yyhl21 { 25316 yyb21 = yyj21 > l 25317 } else { 25318 yyb21 = r.CheckBreak() 25319 } 25320 if yyb21 { 25321 r.ReadArrayEnd() 25322 return 25323 } 25324 r.ReadArrayElem() 25325 if r.TryDecodeAsNil() { 25326 x.QueryOptions.Namespace = "" 25327 } else { 25328 x.Namespace = (string)(r.DecodeString()) 25329 } 25330 yyj21++ 25331 if yyhl21 { 25332 yyb21 = yyj21 > l 25333 } else { 25334 yyb21 = r.CheckBreak() 25335 } 25336 if yyb21 { 25337 r.ReadArrayEnd() 25338 return 25339 } 25340 r.ReadArrayElem() 25341 if r.TryDecodeAsNil() { 25342 x.QueryOptions.MinQueryIndex = 0 25343 } else { 25344 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 25345 } 25346 yyj21++ 25347 if yyhl21 { 25348 yyb21 = yyj21 > l 25349 } else { 25350 yyb21 = r.CheckBreak() 25351 } 25352 if yyb21 { 25353 r.ReadArrayEnd() 25354 return 25355 } 25356 r.ReadArrayElem() 25357 if r.TryDecodeAsNil() { 25358 x.QueryOptions.MaxQueryTime = 0 25359 } else { 25360 if false { 25361 } else if yyxt34 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt34 != nil { 25362 z.DecExtension(x.MaxQueryTime, yyxt34) 25363 } else { 25364 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 25365 } 25366 } 25367 yyj21++ 25368 if yyhl21 { 25369 yyb21 = yyj21 > l 25370 } else { 25371 yyb21 = r.CheckBreak() 25372 } 25373 if yyb21 { 25374 r.ReadArrayEnd() 25375 return 25376 } 25377 r.ReadArrayElem() 25378 if r.TryDecodeAsNil() { 25379 x.QueryOptions.AllowStale = false 25380 } else { 25381 x.AllowStale = (bool)(r.DecodeBool()) 25382 } 25383 yyj21++ 25384 if yyhl21 { 25385 yyb21 = yyj21 > l 25386 } else { 25387 yyb21 = r.CheckBreak() 25388 } 25389 if yyb21 { 25390 r.ReadArrayEnd() 25391 return 25392 } 25393 r.ReadArrayElem() 25394 if r.TryDecodeAsNil() { 25395 x.QueryOptions.Prefix = "" 25396 } else { 25397 x.Prefix = (string)(r.DecodeString()) 25398 } 25399 yyj21++ 25400 if yyhl21 { 25401 yyb21 = yyj21 > l 25402 } else { 25403 yyb21 = r.CheckBreak() 25404 } 25405 if yyb21 { 25406 r.ReadArrayEnd() 25407 return 25408 } 25409 r.ReadArrayElem() 25410 if r.TryDecodeAsNil() { 25411 x.QueryOptions.AuthToken = "" 25412 } else { 25413 x.AuthToken = (string)(r.DecodeString()) 25414 } 25415 yyj21++ 25416 if yyhl21 { 25417 yyb21 = yyj21 > l 25418 } else { 25419 yyb21 = r.CheckBreak() 25420 } 25421 if yyb21 { 25422 r.ReadArrayEnd() 25423 return 25424 } 25425 r.ReadArrayElem() 25426 if r.TryDecodeAsNil() { 25427 x.QueryOptions.InternalRpcInfo.Forwarded = false 25428 } else { 25429 x.Forwarded = (bool)(r.DecodeBool()) 25430 } 25431 for { 25432 yyj21++ 25433 if yyhl21 { 25434 yyb21 = yyj21 > l 25435 } else { 25436 yyb21 = r.CheckBreak() 25437 } 25438 if yyb21 { 25439 break 25440 } 25441 r.ReadArrayElem() 25442 z.DecStructFieldNotFound(yyj21-1, "") 25443 } 25444 r.ReadArrayEnd() 25445 } 25446 25447 func (x *AgentPprofResponse) CodecEncodeSelf(e *codec1978.Encoder) { 25448 var h codecSelfer100 25449 z, r := codec1978.GenHelperEncoder(e) 25450 _, _, _ = h, z, r 25451 if x == nil { 25452 r.EncodeNil() 25453 } else { 25454 if false { 25455 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25456 z.EncExtension(x, yyxt1) 25457 } else { 25458 yysep2 := !z.EncBinary() 25459 yy2arr2 := z.EncBasicHandle().StructToArray 25460 _, _ = yysep2, yy2arr2 25461 const yyr2 bool = false // struct tag has 'toArray' 25462 if yyr2 || yy2arr2 { 25463 r.WriteArrayStart(3) 25464 } else { 25465 r.WriteMapStart(3) 25466 } 25467 if yyr2 || yy2arr2 { 25468 r.WriteArrayElem() 25469 if false { 25470 } else { 25471 if z.EncBasicHandle().StringToRaw { 25472 r.EncodeStringBytesRaw(z.BytesView(string(x.AgentID))) 25473 } else { 25474 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AgentID)) 25475 } 25476 } 25477 } else { 25478 r.WriteMapElemKey() 25479 if z.IsJSONHandle() { 25480 z.WriteStr("\"AgentID\"") 25481 } else { 25482 r.EncodeStringEnc(codecSelferCcUTF8100, `AgentID`) 25483 } 25484 r.WriteMapElemValue() 25485 if false { 25486 } else { 25487 if z.EncBasicHandle().StringToRaw { 25488 r.EncodeStringBytesRaw(z.BytesView(string(x.AgentID))) 25489 } else { 25490 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AgentID)) 25491 } 25492 } 25493 } 25494 if yyr2 || yy2arr2 { 25495 r.WriteArrayElem() 25496 if x.Payload == nil { 25497 r.EncodeNil() 25498 } else { 25499 if false { 25500 } else { 25501 r.EncodeStringBytesRaw([]byte(x.Payload)) 25502 } 25503 } 25504 } else { 25505 r.WriteMapElemKey() 25506 if z.IsJSONHandle() { 25507 z.WriteStr("\"Payload\"") 25508 } else { 25509 r.EncodeStringEnc(codecSelferCcUTF8100, `Payload`) 25510 } 25511 r.WriteMapElemValue() 25512 if x.Payload == nil { 25513 r.EncodeNil() 25514 } else { 25515 if false { 25516 } else { 25517 r.EncodeStringBytesRaw([]byte(x.Payload)) 25518 } 25519 } 25520 } 25521 if yyr2 || yy2arr2 { 25522 r.WriteArrayElem() 25523 if x.HTTPHeaders == nil { 25524 r.EncodeNil() 25525 } else { 25526 if false { 25527 } else { 25528 z.F.EncMapStringStringV(x.HTTPHeaders, e) 25529 } 25530 } 25531 } else { 25532 r.WriteMapElemKey() 25533 if z.IsJSONHandle() { 25534 z.WriteStr("\"HTTPHeaders\"") 25535 } else { 25536 r.EncodeStringEnc(codecSelferCcUTF8100, `HTTPHeaders`) 25537 } 25538 r.WriteMapElemValue() 25539 if x.HTTPHeaders == nil { 25540 r.EncodeNil() 25541 } else { 25542 if false { 25543 } else { 25544 z.F.EncMapStringStringV(x.HTTPHeaders, e) 25545 } 25546 } 25547 } 25548 if yyr2 || yy2arr2 { 25549 r.WriteArrayEnd() 25550 } else { 25551 r.WriteMapEnd() 25552 } 25553 } 25554 } 25555 } 25556 25557 func (x *AgentPprofResponse) CodecDecodeSelf(d *codec1978.Decoder) { 25558 var h codecSelfer100 25559 z, r := codec1978.GenHelperDecoder(d) 25560 _, _, _ = h, z, r 25561 if false { 25562 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25563 z.DecExtension(x, yyxt1) 25564 } else { 25565 yyct2 := r.ContainerType() 25566 if yyct2 == codecSelferValueTypeMap100 { 25567 yyl2 := r.ReadMapStart() 25568 if yyl2 == 0 { 25569 r.ReadMapEnd() 25570 } else { 25571 x.codecDecodeSelfFromMap(yyl2, d) 25572 } 25573 } else if yyct2 == codecSelferValueTypeArray100 { 25574 yyl2 := r.ReadArrayStart() 25575 if yyl2 == 0 { 25576 r.ReadArrayEnd() 25577 } else { 25578 x.codecDecodeSelfFromArray(yyl2, d) 25579 } 25580 } else { 25581 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 25582 } 25583 } 25584 } 25585 25586 func (x *AgentPprofResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 25587 var h codecSelfer100 25588 z, r := codec1978.GenHelperDecoder(d) 25589 _, _, _ = h, z, r 25590 var yyhl3 bool = l >= 0 25591 for yyj3 := 0; ; yyj3++ { 25592 if yyhl3 { 25593 if yyj3 >= l { 25594 break 25595 } 25596 } else { 25597 if r.CheckBreak() { 25598 break 25599 } 25600 } 25601 r.ReadMapElemKey() 25602 yys3 := z.StringView(r.DecodeStringAsBytes()) 25603 r.ReadMapElemValue() 25604 switch yys3 { 25605 case "AgentID": 25606 if r.TryDecodeAsNil() { 25607 x.AgentID = "" 25608 } else { 25609 x.AgentID = (string)(r.DecodeString()) 25610 } 25611 case "Payload": 25612 if r.TryDecodeAsNil() { 25613 x.Payload = nil 25614 } else { 25615 if false { 25616 } else { 25617 x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) 25618 } 25619 } 25620 case "HTTPHeaders": 25621 if r.TryDecodeAsNil() { 25622 x.HTTPHeaders = nil 25623 } else { 25624 if false { 25625 } else { 25626 z.F.DecMapStringStringX(&x.HTTPHeaders, d) 25627 } 25628 } 25629 default: 25630 z.DecStructFieldNotFound(-1, yys3) 25631 } // end switch yys3 25632 } // end for yyj3 25633 r.ReadMapEnd() 25634 } 25635 25636 func (x *AgentPprofResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 25637 var h codecSelfer100 25638 z, r := codec1978.GenHelperDecoder(d) 25639 _, _, _ = h, z, r 25640 var yyj9 int 25641 var yyb9 bool 25642 var yyhl9 bool = l >= 0 25643 yyj9++ 25644 if yyhl9 { 25645 yyb9 = yyj9 > l 25646 } else { 25647 yyb9 = r.CheckBreak() 25648 } 25649 if yyb9 { 25650 r.ReadArrayEnd() 25651 return 25652 } 25653 r.ReadArrayElem() 25654 if r.TryDecodeAsNil() { 25655 x.AgentID = "" 25656 } else { 25657 x.AgentID = (string)(r.DecodeString()) 25658 } 25659 yyj9++ 25660 if yyhl9 { 25661 yyb9 = yyj9 > l 25662 } else { 25663 yyb9 = r.CheckBreak() 25664 } 25665 if yyb9 { 25666 r.ReadArrayEnd() 25667 return 25668 } 25669 r.ReadArrayElem() 25670 if r.TryDecodeAsNil() { 25671 x.Payload = nil 25672 } else { 25673 if false { 25674 } else { 25675 x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) 25676 } 25677 } 25678 yyj9++ 25679 if yyhl9 { 25680 yyb9 = yyj9 > l 25681 } else { 25682 yyb9 = r.CheckBreak() 25683 } 25684 if yyb9 { 25685 r.ReadArrayEnd() 25686 return 25687 } 25688 r.ReadArrayElem() 25689 if r.TryDecodeAsNil() { 25690 x.HTTPHeaders = nil 25691 } else { 25692 if false { 25693 } else { 25694 z.F.DecMapStringStringX(&x.HTTPHeaders, d) 25695 } 25696 } 25697 for { 25698 yyj9++ 25699 if yyhl9 { 25700 yyb9 = yyj9 > l 25701 } else { 25702 yyb9 = r.CheckBreak() 25703 } 25704 if yyb9 { 25705 break 25706 } 25707 r.ReadArrayElem() 25708 z.DecStructFieldNotFound(yyj9-1, "") 25709 } 25710 r.ReadArrayEnd() 25711 } 25712 25713 func (x *WriteRequest) CodecEncodeSelf(e *codec1978.Encoder) { 25714 var h codecSelfer100 25715 z, r := codec1978.GenHelperEncoder(e) 25716 _, _, _ = h, z, r 25717 if x == nil { 25718 r.EncodeNil() 25719 } else { 25720 if false { 25721 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25722 z.EncExtension(x, yyxt1) 25723 } else { 25724 yysep2 := !z.EncBinary() 25725 yy2arr2 := z.EncBasicHandle().StructToArray 25726 _, _ = yysep2, yy2arr2 25727 const yyr2 bool = false // struct tag has 'toArray' 25728 if yyr2 || yy2arr2 { 25729 r.WriteArrayStart(4) 25730 } else { 25731 r.WriteMapStart(4) 25732 } 25733 if yyr2 || yy2arr2 { 25734 r.WriteArrayElem() 25735 if false { 25736 } else { 25737 if z.EncBasicHandle().StringToRaw { 25738 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 25739 } else { 25740 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 25741 } 25742 } 25743 } else { 25744 r.WriteMapElemKey() 25745 if z.IsJSONHandle() { 25746 z.WriteStr("\"Region\"") 25747 } else { 25748 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 25749 } 25750 r.WriteMapElemValue() 25751 if false { 25752 } else { 25753 if z.EncBasicHandle().StringToRaw { 25754 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 25755 } else { 25756 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 25757 } 25758 } 25759 } 25760 if yyr2 || yy2arr2 { 25761 r.WriteArrayElem() 25762 if false { 25763 } else { 25764 if z.EncBasicHandle().StringToRaw { 25765 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 25766 } else { 25767 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 25768 } 25769 } 25770 } else { 25771 r.WriteMapElemKey() 25772 if z.IsJSONHandle() { 25773 z.WriteStr("\"Namespace\"") 25774 } else { 25775 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 25776 } 25777 r.WriteMapElemValue() 25778 if false { 25779 } else { 25780 if z.EncBasicHandle().StringToRaw { 25781 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 25782 } else { 25783 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 25784 } 25785 } 25786 } 25787 if yyr2 || yy2arr2 { 25788 r.WriteArrayElem() 25789 if false { 25790 } else { 25791 if z.EncBasicHandle().StringToRaw { 25792 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 25793 } else { 25794 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 25795 } 25796 } 25797 } else { 25798 r.WriteMapElemKey() 25799 if z.IsJSONHandle() { 25800 z.WriteStr("\"AuthToken\"") 25801 } else { 25802 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 25803 } 25804 r.WriteMapElemValue() 25805 if false { 25806 } else { 25807 if z.EncBasicHandle().StringToRaw { 25808 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 25809 } else { 25810 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 25811 } 25812 } 25813 } 25814 if yyr2 || yy2arr2 { 25815 r.WriteArrayElem() 25816 if false { 25817 } else { 25818 r.EncodeBool(bool(x.Forwarded)) 25819 } 25820 } else { 25821 r.WriteMapElemKey() 25822 if z.IsJSONHandle() { 25823 z.WriteStr("\"Forwarded\"") 25824 } else { 25825 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 25826 } 25827 r.WriteMapElemValue() 25828 if false { 25829 } else { 25830 r.EncodeBool(bool(x.Forwarded)) 25831 } 25832 } 25833 if yyr2 || yy2arr2 { 25834 r.WriteArrayEnd() 25835 } else { 25836 r.WriteMapEnd() 25837 } 25838 } 25839 } 25840 } 25841 25842 func (x *WriteRequest) CodecDecodeSelf(d *codec1978.Decoder) { 25843 var h codecSelfer100 25844 z, r := codec1978.GenHelperDecoder(d) 25845 _, _, _ = h, z, r 25846 if false { 25847 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25848 z.DecExtension(x, yyxt1) 25849 } else { 25850 yyct2 := r.ContainerType() 25851 if yyct2 == codecSelferValueTypeMap100 { 25852 yyl2 := r.ReadMapStart() 25853 if yyl2 == 0 { 25854 r.ReadMapEnd() 25855 } else { 25856 x.codecDecodeSelfFromMap(yyl2, d) 25857 } 25858 } else if yyct2 == codecSelferValueTypeArray100 { 25859 yyl2 := r.ReadArrayStart() 25860 if yyl2 == 0 { 25861 r.ReadArrayEnd() 25862 } else { 25863 x.codecDecodeSelfFromArray(yyl2, d) 25864 } 25865 } else { 25866 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 25867 } 25868 } 25869 } 25870 25871 func (x *WriteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 25872 var h codecSelfer100 25873 z, r := codec1978.GenHelperDecoder(d) 25874 _, _, _ = h, z, r 25875 var yyhl3 bool = l >= 0 25876 for yyj3 := 0; ; yyj3++ { 25877 if yyhl3 { 25878 if yyj3 >= l { 25879 break 25880 } 25881 } else { 25882 if r.CheckBreak() { 25883 break 25884 } 25885 } 25886 r.ReadMapElemKey() 25887 yys3 := z.StringView(r.DecodeStringAsBytes()) 25888 r.ReadMapElemValue() 25889 switch yys3 { 25890 case "Region": 25891 if r.TryDecodeAsNil() { 25892 x.Region = "" 25893 } else { 25894 x.Region = (string)(r.DecodeString()) 25895 } 25896 case "Namespace": 25897 if r.TryDecodeAsNil() { 25898 x.Namespace = "" 25899 } else { 25900 x.Namespace = (string)(r.DecodeString()) 25901 } 25902 case "AuthToken": 25903 if r.TryDecodeAsNil() { 25904 x.AuthToken = "" 25905 } else { 25906 x.AuthToken = (string)(r.DecodeString()) 25907 } 25908 case "Forwarded": 25909 if r.TryDecodeAsNil() { 25910 x.InternalRpcInfo.Forwarded = false 25911 } else { 25912 x.Forwarded = (bool)(r.DecodeBool()) 25913 } 25914 default: 25915 z.DecStructFieldNotFound(-1, yys3) 25916 } // end switch yys3 25917 } // end for yyj3 25918 r.ReadMapEnd() 25919 } 25920 25921 func (x *WriteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 25922 var h codecSelfer100 25923 z, r := codec1978.GenHelperDecoder(d) 25924 _, _, _ = h, z, r 25925 var yyj8 int 25926 var yyb8 bool 25927 var yyhl8 bool = l >= 0 25928 yyj8++ 25929 if yyhl8 { 25930 yyb8 = yyj8 > l 25931 } else { 25932 yyb8 = r.CheckBreak() 25933 } 25934 if yyb8 { 25935 r.ReadArrayEnd() 25936 return 25937 } 25938 r.ReadArrayElem() 25939 if r.TryDecodeAsNil() { 25940 x.Region = "" 25941 } else { 25942 x.Region = (string)(r.DecodeString()) 25943 } 25944 yyj8++ 25945 if yyhl8 { 25946 yyb8 = yyj8 > l 25947 } else { 25948 yyb8 = r.CheckBreak() 25949 } 25950 if yyb8 { 25951 r.ReadArrayEnd() 25952 return 25953 } 25954 r.ReadArrayElem() 25955 if r.TryDecodeAsNil() { 25956 x.Namespace = "" 25957 } else { 25958 x.Namespace = (string)(r.DecodeString()) 25959 } 25960 yyj8++ 25961 if yyhl8 { 25962 yyb8 = yyj8 > l 25963 } else { 25964 yyb8 = r.CheckBreak() 25965 } 25966 if yyb8 { 25967 r.ReadArrayEnd() 25968 return 25969 } 25970 r.ReadArrayElem() 25971 if r.TryDecodeAsNil() { 25972 x.AuthToken = "" 25973 } else { 25974 x.AuthToken = (string)(r.DecodeString()) 25975 } 25976 yyj8++ 25977 if yyhl8 { 25978 yyb8 = yyj8 > l 25979 } else { 25980 yyb8 = r.CheckBreak() 25981 } 25982 if yyb8 { 25983 r.ReadArrayEnd() 25984 return 25985 } 25986 r.ReadArrayElem() 25987 if r.TryDecodeAsNil() { 25988 x.InternalRpcInfo.Forwarded = false 25989 } else { 25990 x.Forwarded = (bool)(r.DecodeBool()) 25991 } 25992 for { 25993 yyj8++ 25994 if yyhl8 { 25995 yyb8 = yyj8 > l 25996 } else { 25997 yyb8 = r.CheckBreak() 25998 } 25999 if yyb8 { 26000 break 26001 } 26002 r.ReadArrayElem() 26003 z.DecStructFieldNotFound(yyj8-1, "") 26004 } 26005 r.ReadArrayEnd() 26006 } 26007 26008 func (x *QueryMeta) CodecEncodeSelf(e *codec1978.Encoder) { 26009 var h codecSelfer100 26010 z, r := codec1978.GenHelperEncoder(e) 26011 _, _, _ = h, z, r 26012 if x == nil { 26013 r.EncodeNil() 26014 } else { 26015 if false { 26016 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 26017 z.EncExtension(x, yyxt1) 26018 } else { 26019 yysep2 := !z.EncBinary() 26020 yy2arr2 := z.EncBasicHandle().StructToArray 26021 _, _ = yysep2, yy2arr2 26022 const yyr2 bool = false // struct tag has 'toArray' 26023 if yyr2 || yy2arr2 { 26024 r.WriteArrayStart(3) 26025 } else { 26026 r.WriteMapStart(3) 26027 } 26028 if yyr2 || yy2arr2 { 26029 r.WriteArrayElem() 26030 if false { 26031 } else { 26032 r.EncodeUint(uint64(x.Index)) 26033 } 26034 } else { 26035 r.WriteMapElemKey() 26036 if z.IsJSONHandle() { 26037 z.WriteStr("\"Index\"") 26038 } else { 26039 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 26040 } 26041 r.WriteMapElemValue() 26042 if false { 26043 } else { 26044 r.EncodeUint(uint64(x.Index)) 26045 } 26046 } 26047 if yyr2 || yy2arr2 { 26048 r.WriteArrayElem() 26049 if false { 26050 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 26051 z.EncExtension(x.LastContact, yyxt7) 26052 } else { 26053 r.EncodeInt(int64(x.LastContact)) 26054 } 26055 } else { 26056 r.WriteMapElemKey() 26057 if z.IsJSONHandle() { 26058 z.WriteStr("\"LastContact\"") 26059 } else { 26060 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 26061 } 26062 r.WriteMapElemValue() 26063 if false { 26064 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 26065 z.EncExtension(x.LastContact, yyxt8) 26066 } else { 26067 r.EncodeInt(int64(x.LastContact)) 26068 } 26069 } 26070 if yyr2 || yy2arr2 { 26071 r.WriteArrayElem() 26072 if false { 26073 } else { 26074 r.EncodeBool(bool(x.KnownLeader)) 26075 } 26076 } else { 26077 r.WriteMapElemKey() 26078 if z.IsJSONHandle() { 26079 z.WriteStr("\"KnownLeader\"") 26080 } else { 26081 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 26082 } 26083 r.WriteMapElemValue() 26084 if false { 26085 } else { 26086 r.EncodeBool(bool(x.KnownLeader)) 26087 } 26088 } 26089 if yyr2 || yy2arr2 { 26090 r.WriteArrayEnd() 26091 } else { 26092 r.WriteMapEnd() 26093 } 26094 } 26095 } 26096 } 26097 26098 func (x *QueryMeta) CodecDecodeSelf(d *codec1978.Decoder) { 26099 var h codecSelfer100 26100 z, r := codec1978.GenHelperDecoder(d) 26101 _, _, _ = h, z, r 26102 if false { 26103 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 26104 z.DecExtension(x, yyxt1) 26105 } else { 26106 yyct2 := r.ContainerType() 26107 if yyct2 == codecSelferValueTypeMap100 { 26108 yyl2 := r.ReadMapStart() 26109 if yyl2 == 0 { 26110 r.ReadMapEnd() 26111 } else { 26112 x.codecDecodeSelfFromMap(yyl2, d) 26113 } 26114 } else if yyct2 == codecSelferValueTypeArray100 { 26115 yyl2 := r.ReadArrayStart() 26116 if yyl2 == 0 { 26117 r.ReadArrayEnd() 26118 } else { 26119 x.codecDecodeSelfFromArray(yyl2, d) 26120 } 26121 } else { 26122 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 26123 } 26124 } 26125 } 26126 26127 func (x *QueryMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 26128 var h codecSelfer100 26129 z, r := codec1978.GenHelperDecoder(d) 26130 _, _, _ = h, z, r 26131 var yyhl3 bool = l >= 0 26132 for yyj3 := 0; ; yyj3++ { 26133 if yyhl3 { 26134 if yyj3 >= l { 26135 break 26136 } 26137 } else { 26138 if r.CheckBreak() { 26139 break 26140 } 26141 } 26142 r.ReadMapElemKey() 26143 yys3 := z.StringView(r.DecodeStringAsBytes()) 26144 r.ReadMapElemValue() 26145 switch yys3 { 26146 case "Index": 26147 if r.TryDecodeAsNil() { 26148 x.Index = 0 26149 } else { 26150 x.Index = (uint64)(r.DecodeUint64()) 26151 } 26152 case "LastContact": 26153 if r.TryDecodeAsNil() { 26154 x.LastContact = 0 26155 } else { 26156 if false { 26157 } else if yyxt6 := z.Extension(z.I2Rtid(x.LastContact)); yyxt6 != nil { 26158 z.DecExtension(x.LastContact, yyxt6) 26159 } else { 26160 x.LastContact = (time.Duration)(r.DecodeInt64()) 26161 } 26162 } 26163 case "KnownLeader": 26164 if r.TryDecodeAsNil() { 26165 x.KnownLeader = false 26166 } else { 26167 x.KnownLeader = (bool)(r.DecodeBool()) 26168 } 26169 default: 26170 z.DecStructFieldNotFound(-1, yys3) 26171 } // end switch yys3 26172 } // end for yyj3 26173 r.ReadMapEnd() 26174 } 26175 26176 func (x *QueryMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 26177 var h codecSelfer100 26178 z, r := codec1978.GenHelperDecoder(d) 26179 _, _, _ = h, z, r 26180 var yyj8 int 26181 var yyb8 bool 26182 var yyhl8 bool = l >= 0 26183 yyj8++ 26184 if yyhl8 { 26185 yyb8 = yyj8 > l 26186 } else { 26187 yyb8 = r.CheckBreak() 26188 } 26189 if yyb8 { 26190 r.ReadArrayEnd() 26191 return 26192 } 26193 r.ReadArrayElem() 26194 if r.TryDecodeAsNil() { 26195 x.Index = 0 26196 } else { 26197 x.Index = (uint64)(r.DecodeUint64()) 26198 } 26199 yyj8++ 26200 if yyhl8 { 26201 yyb8 = yyj8 > l 26202 } else { 26203 yyb8 = r.CheckBreak() 26204 } 26205 if yyb8 { 26206 r.ReadArrayEnd() 26207 return 26208 } 26209 r.ReadArrayElem() 26210 if r.TryDecodeAsNil() { 26211 x.LastContact = 0 26212 } else { 26213 if false { 26214 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 26215 z.DecExtension(x.LastContact, yyxt11) 26216 } else { 26217 x.LastContact = (time.Duration)(r.DecodeInt64()) 26218 } 26219 } 26220 yyj8++ 26221 if yyhl8 { 26222 yyb8 = yyj8 > l 26223 } else { 26224 yyb8 = r.CheckBreak() 26225 } 26226 if yyb8 { 26227 r.ReadArrayEnd() 26228 return 26229 } 26230 r.ReadArrayElem() 26231 if r.TryDecodeAsNil() { 26232 x.KnownLeader = false 26233 } else { 26234 x.KnownLeader = (bool)(r.DecodeBool()) 26235 } 26236 for { 26237 yyj8++ 26238 if yyhl8 { 26239 yyb8 = yyj8 > l 26240 } else { 26241 yyb8 = r.CheckBreak() 26242 } 26243 if yyb8 { 26244 break 26245 } 26246 r.ReadArrayElem() 26247 z.DecStructFieldNotFound(yyj8-1, "") 26248 } 26249 r.ReadArrayEnd() 26250 } 26251 26252 func (x *WriteMeta) CodecEncodeSelf(e *codec1978.Encoder) { 26253 var h codecSelfer100 26254 z, r := codec1978.GenHelperEncoder(e) 26255 _, _, _ = h, z, r 26256 if x == nil { 26257 r.EncodeNil() 26258 } else { 26259 if false { 26260 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 26261 z.EncExtension(x, yyxt1) 26262 } else { 26263 yysep2 := !z.EncBinary() 26264 yy2arr2 := z.EncBasicHandle().StructToArray 26265 _, _ = yysep2, yy2arr2 26266 const yyr2 bool = false // struct tag has 'toArray' 26267 if yyr2 || yy2arr2 { 26268 r.WriteArrayStart(1) 26269 } else { 26270 r.WriteMapStart(1) 26271 } 26272 if yyr2 || yy2arr2 { 26273 r.WriteArrayElem() 26274 if false { 26275 } else { 26276 r.EncodeUint(uint64(x.Index)) 26277 } 26278 } else { 26279 r.WriteMapElemKey() 26280 if z.IsJSONHandle() { 26281 z.WriteStr("\"Index\"") 26282 } else { 26283 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 26284 } 26285 r.WriteMapElemValue() 26286 if false { 26287 } else { 26288 r.EncodeUint(uint64(x.Index)) 26289 } 26290 } 26291 if yyr2 || yy2arr2 { 26292 r.WriteArrayEnd() 26293 } else { 26294 r.WriteMapEnd() 26295 } 26296 } 26297 } 26298 } 26299 26300 func (x *WriteMeta) CodecDecodeSelf(d *codec1978.Decoder) { 26301 var h codecSelfer100 26302 z, r := codec1978.GenHelperDecoder(d) 26303 _, _, _ = h, z, r 26304 if false { 26305 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 26306 z.DecExtension(x, yyxt1) 26307 } else { 26308 yyct2 := r.ContainerType() 26309 if yyct2 == codecSelferValueTypeMap100 { 26310 yyl2 := r.ReadMapStart() 26311 if yyl2 == 0 { 26312 r.ReadMapEnd() 26313 } else { 26314 x.codecDecodeSelfFromMap(yyl2, d) 26315 } 26316 } else if yyct2 == codecSelferValueTypeArray100 { 26317 yyl2 := r.ReadArrayStart() 26318 if yyl2 == 0 { 26319 r.ReadArrayEnd() 26320 } else { 26321 x.codecDecodeSelfFromArray(yyl2, d) 26322 } 26323 } else { 26324 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 26325 } 26326 } 26327 } 26328 26329 func (x *WriteMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 26330 var h codecSelfer100 26331 z, r := codec1978.GenHelperDecoder(d) 26332 _, _, _ = h, z, r 26333 var yyhl3 bool = l >= 0 26334 for yyj3 := 0; ; yyj3++ { 26335 if yyhl3 { 26336 if yyj3 >= l { 26337 break 26338 } 26339 } else { 26340 if r.CheckBreak() { 26341 break 26342 } 26343 } 26344 r.ReadMapElemKey() 26345 yys3 := z.StringView(r.DecodeStringAsBytes()) 26346 r.ReadMapElemValue() 26347 switch yys3 { 26348 case "Index": 26349 if r.TryDecodeAsNil() { 26350 x.Index = 0 26351 } else { 26352 x.Index = (uint64)(r.DecodeUint64()) 26353 } 26354 default: 26355 z.DecStructFieldNotFound(-1, yys3) 26356 } // end switch yys3 26357 } // end for yyj3 26358 r.ReadMapEnd() 26359 } 26360 26361 func (x *WriteMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 26362 var h codecSelfer100 26363 z, r := codec1978.GenHelperDecoder(d) 26364 _, _, _ = h, z, r 26365 var yyj5 int 26366 var yyb5 bool 26367 var yyhl5 bool = l >= 0 26368 yyj5++ 26369 if yyhl5 { 26370 yyb5 = yyj5 > l 26371 } else { 26372 yyb5 = r.CheckBreak() 26373 } 26374 if yyb5 { 26375 r.ReadArrayEnd() 26376 return 26377 } 26378 r.ReadArrayElem() 26379 if r.TryDecodeAsNil() { 26380 x.Index = 0 26381 } else { 26382 x.Index = (uint64)(r.DecodeUint64()) 26383 } 26384 for { 26385 yyj5++ 26386 if yyhl5 { 26387 yyb5 = yyj5 > l 26388 } else { 26389 yyb5 = r.CheckBreak() 26390 } 26391 if yyb5 { 26392 break 26393 } 26394 r.ReadArrayElem() 26395 z.DecStructFieldNotFound(yyj5-1, "") 26396 } 26397 r.ReadArrayEnd() 26398 } 26399 26400 func (x *NodeRegisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { 26401 var h codecSelfer100 26402 z, r := codec1978.GenHelperEncoder(e) 26403 _, _, _ = h, z, r 26404 if x == nil { 26405 r.EncodeNil() 26406 } else { 26407 if false { 26408 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 26409 z.EncExtension(x, yyxt1) 26410 } else { 26411 yysep2 := !z.EncBinary() 26412 yy2arr2 := z.EncBasicHandle().StructToArray 26413 _, _ = yysep2, yy2arr2 26414 const yyr2 bool = false // struct tag has 'toArray' 26415 if yyr2 || yy2arr2 { 26416 r.WriteArrayStart(6) 26417 } else { 26418 r.WriteMapStart(6) 26419 } 26420 var yyn3 bool 26421 if x.Node == nil { 26422 yyn3 = true 26423 goto LABEL3 26424 } 26425 LABEL3: 26426 if yyr2 || yy2arr2 { 26427 if yyn3 { 26428 r.WriteArrayElem() 26429 r.EncodeNil() 26430 } else { 26431 r.WriteArrayElem() 26432 if x.Node == nil { 26433 r.EncodeNil() 26434 } else { 26435 x.Node.CodecEncodeSelf(e) 26436 } 26437 } 26438 } else { 26439 r.WriteMapElemKey() 26440 if z.IsJSONHandle() { 26441 z.WriteStr("\"Node\"") 26442 } else { 26443 r.EncodeStringEnc(codecSelferCcUTF8100, `Node`) 26444 } 26445 r.WriteMapElemValue() 26446 if yyn3 { 26447 r.EncodeNil() 26448 } else { 26449 if x.Node == nil { 26450 r.EncodeNil() 26451 } else { 26452 x.Node.CodecEncodeSelf(e) 26453 } 26454 } 26455 } 26456 var yyn6 bool 26457 if x.NodeEvent == nil { 26458 yyn6 = true 26459 goto LABEL6 26460 } 26461 LABEL6: 26462 if yyr2 || yy2arr2 { 26463 if yyn6 { 26464 r.WriteArrayElem() 26465 r.EncodeNil() 26466 } else { 26467 r.WriteArrayElem() 26468 if x.NodeEvent == nil { 26469 r.EncodeNil() 26470 } else { 26471 x.NodeEvent.CodecEncodeSelf(e) 26472 } 26473 } 26474 } else { 26475 r.WriteMapElemKey() 26476 if z.IsJSONHandle() { 26477 z.WriteStr("\"NodeEvent\"") 26478 } else { 26479 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvent`) 26480 } 26481 r.WriteMapElemValue() 26482 if yyn6 { 26483 r.EncodeNil() 26484 } else { 26485 if x.NodeEvent == nil { 26486 r.EncodeNil() 26487 } else { 26488 x.NodeEvent.CodecEncodeSelf(e) 26489 } 26490 } 26491 } 26492 if yyr2 || yy2arr2 { 26493 r.WriteArrayElem() 26494 if false { 26495 } else { 26496 if z.EncBasicHandle().StringToRaw { 26497 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 26498 } else { 26499 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 26500 } 26501 } 26502 } else { 26503 r.WriteMapElemKey() 26504 if z.IsJSONHandle() { 26505 z.WriteStr("\"Region\"") 26506 } else { 26507 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 26508 } 26509 r.WriteMapElemValue() 26510 if false { 26511 } else { 26512 if z.EncBasicHandle().StringToRaw { 26513 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 26514 } else { 26515 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 26516 } 26517 } 26518 } 26519 if yyr2 || yy2arr2 { 26520 r.WriteArrayElem() 26521 if false { 26522 } else { 26523 if z.EncBasicHandle().StringToRaw { 26524 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 26525 } else { 26526 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 26527 } 26528 } 26529 } else { 26530 r.WriteMapElemKey() 26531 if z.IsJSONHandle() { 26532 z.WriteStr("\"Namespace\"") 26533 } else { 26534 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 26535 } 26536 r.WriteMapElemValue() 26537 if false { 26538 } else { 26539 if z.EncBasicHandle().StringToRaw { 26540 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 26541 } else { 26542 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 26543 } 26544 } 26545 } 26546 if yyr2 || yy2arr2 { 26547 r.WriteArrayElem() 26548 if false { 26549 } else { 26550 if z.EncBasicHandle().StringToRaw { 26551 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 26552 } else { 26553 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 26554 } 26555 } 26556 } else { 26557 r.WriteMapElemKey() 26558 if z.IsJSONHandle() { 26559 z.WriteStr("\"AuthToken\"") 26560 } else { 26561 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 26562 } 26563 r.WriteMapElemValue() 26564 if false { 26565 } else { 26566 if z.EncBasicHandle().StringToRaw { 26567 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 26568 } else { 26569 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 26570 } 26571 } 26572 } 26573 if yyr2 || yy2arr2 { 26574 r.WriteArrayElem() 26575 if false { 26576 } else { 26577 r.EncodeBool(bool(x.Forwarded)) 26578 } 26579 } else { 26580 r.WriteMapElemKey() 26581 if z.IsJSONHandle() { 26582 z.WriteStr("\"Forwarded\"") 26583 } else { 26584 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 26585 } 26586 r.WriteMapElemValue() 26587 if false { 26588 } else { 26589 r.EncodeBool(bool(x.Forwarded)) 26590 } 26591 } 26592 if yyr2 || yy2arr2 { 26593 r.WriteArrayEnd() 26594 } else { 26595 r.WriteMapEnd() 26596 } 26597 } 26598 } 26599 } 26600 26601 func (x *NodeRegisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { 26602 var h codecSelfer100 26603 z, r := codec1978.GenHelperDecoder(d) 26604 _, _, _ = h, z, r 26605 if false { 26606 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 26607 z.DecExtension(x, yyxt1) 26608 } else { 26609 yyct2 := r.ContainerType() 26610 if yyct2 == codecSelferValueTypeMap100 { 26611 yyl2 := r.ReadMapStart() 26612 if yyl2 == 0 { 26613 r.ReadMapEnd() 26614 } else { 26615 x.codecDecodeSelfFromMap(yyl2, d) 26616 } 26617 } else if yyct2 == codecSelferValueTypeArray100 { 26618 yyl2 := r.ReadArrayStart() 26619 if yyl2 == 0 { 26620 r.ReadArrayEnd() 26621 } else { 26622 x.codecDecodeSelfFromArray(yyl2, d) 26623 } 26624 } else { 26625 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 26626 } 26627 } 26628 } 26629 26630 func (x *NodeRegisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 26631 var h codecSelfer100 26632 z, r := codec1978.GenHelperDecoder(d) 26633 _, _, _ = h, z, r 26634 var yyhl3 bool = l >= 0 26635 for yyj3 := 0; ; yyj3++ { 26636 if yyhl3 { 26637 if yyj3 >= l { 26638 break 26639 } 26640 } else { 26641 if r.CheckBreak() { 26642 break 26643 } 26644 } 26645 r.ReadMapElemKey() 26646 yys3 := z.StringView(r.DecodeStringAsBytes()) 26647 r.ReadMapElemValue() 26648 switch yys3 { 26649 case "Node": 26650 if r.TryDecodeAsNil() { 26651 if true && x.Node != nil { 26652 x.Node = nil 26653 } 26654 } else { 26655 if x.Node == nil { 26656 x.Node = new(Node) 26657 } 26658 26659 x.Node.CodecDecodeSelf(d) 26660 } 26661 case "NodeEvent": 26662 if r.TryDecodeAsNil() { 26663 if true && x.NodeEvent != nil { 26664 x.NodeEvent = nil 26665 } 26666 } else { 26667 if x.NodeEvent == nil { 26668 x.NodeEvent = new(NodeEvent) 26669 } 26670 26671 x.NodeEvent.CodecDecodeSelf(d) 26672 } 26673 case "Region": 26674 if r.TryDecodeAsNil() { 26675 x.WriteRequest.Region = "" 26676 } else { 26677 x.Region = (string)(r.DecodeString()) 26678 } 26679 case "Namespace": 26680 if r.TryDecodeAsNil() { 26681 x.WriteRequest.Namespace = "" 26682 } else { 26683 x.Namespace = (string)(r.DecodeString()) 26684 } 26685 case "AuthToken": 26686 if r.TryDecodeAsNil() { 26687 x.WriteRequest.AuthToken = "" 26688 } else { 26689 x.AuthToken = (string)(r.DecodeString()) 26690 } 26691 case "Forwarded": 26692 if r.TryDecodeAsNil() { 26693 x.WriteRequest.InternalRpcInfo.Forwarded = false 26694 } else { 26695 x.Forwarded = (bool)(r.DecodeBool()) 26696 } 26697 default: 26698 z.DecStructFieldNotFound(-1, yys3) 26699 } // end switch yys3 26700 } // end for yyj3 26701 r.ReadMapEnd() 26702 } 26703 26704 func (x *NodeRegisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 26705 var h codecSelfer100 26706 z, r := codec1978.GenHelperDecoder(d) 26707 _, _, _ = h, z, r 26708 var yyj10 int 26709 var yyb10 bool 26710 var yyhl10 bool = l >= 0 26711 yyj10++ 26712 if yyhl10 { 26713 yyb10 = yyj10 > l 26714 } else { 26715 yyb10 = r.CheckBreak() 26716 } 26717 if yyb10 { 26718 r.ReadArrayEnd() 26719 return 26720 } 26721 r.ReadArrayElem() 26722 if r.TryDecodeAsNil() { 26723 if true && x.Node != nil { 26724 x.Node = nil 26725 } 26726 } else { 26727 if x.Node == nil { 26728 x.Node = new(Node) 26729 } 26730 26731 x.Node.CodecDecodeSelf(d) 26732 } 26733 yyj10++ 26734 if yyhl10 { 26735 yyb10 = yyj10 > l 26736 } else { 26737 yyb10 = r.CheckBreak() 26738 } 26739 if yyb10 { 26740 r.ReadArrayEnd() 26741 return 26742 } 26743 r.ReadArrayElem() 26744 if r.TryDecodeAsNil() { 26745 if true && x.NodeEvent != nil { 26746 x.NodeEvent = nil 26747 } 26748 } else { 26749 if x.NodeEvent == nil { 26750 x.NodeEvent = new(NodeEvent) 26751 } 26752 26753 x.NodeEvent.CodecDecodeSelf(d) 26754 } 26755 yyj10++ 26756 if yyhl10 { 26757 yyb10 = yyj10 > l 26758 } else { 26759 yyb10 = r.CheckBreak() 26760 } 26761 if yyb10 { 26762 r.ReadArrayEnd() 26763 return 26764 } 26765 r.ReadArrayElem() 26766 if r.TryDecodeAsNil() { 26767 x.WriteRequest.Region = "" 26768 } else { 26769 x.Region = (string)(r.DecodeString()) 26770 } 26771 yyj10++ 26772 if yyhl10 { 26773 yyb10 = yyj10 > l 26774 } else { 26775 yyb10 = r.CheckBreak() 26776 } 26777 if yyb10 { 26778 r.ReadArrayEnd() 26779 return 26780 } 26781 r.ReadArrayElem() 26782 if r.TryDecodeAsNil() { 26783 x.WriteRequest.Namespace = "" 26784 } else { 26785 x.Namespace = (string)(r.DecodeString()) 26786 } 26787 yyj10++ 26788 if yyhl10 { 26789 yyb10 = yyj10 > l 26790 } else { 26791 yyb10 = r.CheckBreak() 26792 } 26793 if yyb10 { 26794 r.ReadArrayEnd() 26795 return 26796 } 26797 r.ReadArrayElem() 26798 if r.TryDecodeAsNil() { 26799 x.WriteRequest.AuthToken = "" 26800 } else { 26801 x.AuthToken = (string)(r.DecodeString()) 26802 } 26803 yyj10++ 26804 if yyhl10 { 26805 yyb10 = yyj10 > l 26806 } else { 26807 yyb10 = r.CheckBreak() 26808 } 26809 if yyb10 { 26810 r.ReadArrayEnd() 26811 return 26812 } 26813 r.ReadArrayElem() 26814 if r.TryDecodeAsNil() { 26815 x.WriteRequest.InternalRpcInfo.Forwarded = false 26816 } else { 26817 x.Forwarded = (bool)(r.DecodeBool()) 26818 } 26819 for { 26820 yyj10++ 26821 if yyhl10 { 26822 yyb10 = yyj10 > l 26823 } else { 26824 yyb10 = r.CheckBreak() 26825 } 26826 if yyb10 { 26827 break 26828 } 26829 r.ReadArrayElem() 26830 z.DecStructFieldNotFound(yyj10-1, "") 26831 } 26832 r.ReadArrayEnd() 26833 } 26834 26835 func (x *NodeDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { 26836 var h codecSelfer100 26837 z, r := codec1978.GenHelperEncoder(e) 26838 _, _, _ = h, z, r 26839 if x == nil { 26840 r.EncodeNil() 26841 } else { 26842 if false { 26843 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 26844 z.EncExtension(x, yyxt1) 26845 } else { 26846 yysep2 := !z.EncBinary() 26847 yy2arr2 := z.EncBasicHandle().StructToArray 26848 _, _ = yysep2, yy2arr2 26849 const yyr2 bool = false // struct tag has 'toArray' 26850 if yyr2 || yy2arr2 { 26851 r.WriteArrayStart(5) 26852 } else { 26853 r.WriteMapStart(5) 26854 } 26855 if yyr2 || yy2arr2 { 26856 r.WriteArrayElem() 26857 if false { 26858 } else { 26859 if z.EncBasicHandle().StringToRaw { 26860 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 26861 } else { 26862 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 26863 } 26864 } 26865 } else { 26866 r.WriteMapElemKey() 26867 if z.IsJSONHandle() { 26868 z.WriteStr("\"NodeID\"") 26869 } else { 26870 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 26871 } 26872 r.WriteMapElemValue() 26873 if false { 26874 } else { 26875 if z.EncBasicHandle().StringToRaw { 26876 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 26877 } else { 26878 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 26879 } 26880 } 26881 } 26882 if yyr2 || yy2arr2 { 26883 r.WriteArrayElem() 26884 if false { 26885 } else { 26886 if z.EncBasicHandle().StringToRaw { 26887 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 26888 } else { 26889 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 26890 } 26891 } 26892 } else { 26893 r.WriteMapElemKey() 26894 if z.IsJSONHandle() { 26895 z.WriteStr("\"Region\"") 26896 } else { 26897 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 26898 } 26899 r.WriteMapElemValue() 26900 if false { 26901 } else { 26902 if z.EncBasicHandle().StringToRaw { 26903 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 26904 } else { 26905 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 26906 } 26907 } 26908 } 26909 if yyr2 || yy2arr2 { 26910 r.WriteArrayElem() 26911 if false { 26912 } else { 26913 if z.EncBasicHandle().StringToRaw { 26914 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 26915 } else { 26916 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 26917 } 26918 } 26919 } else { 26920 r.WriteMapElemKey() 26921 if z.IsJSONHandle() { 26922 z.WriteStr("\"Namespace\"") 26923 } else { 26924 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 26925 } 26926 r.WriteMapElemValue() 26927 if false { 26928 } else { 26929 if z.EncBasicHandle().StringToRaw { 26930 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 26931 } else { 26932 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 26933 } 26934 } 26935 } 26936 if yyr2 || yy2arr2 { 26937 r.WriteArrayElem() 26938 if false { 26939 } else { 26940 if z.EncBasicHandle().StringToRaw { 26941 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 26942 } else { 26943 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 26944 } 26945 } 26946 } else { 26947 r.WriteMapElemKey() 26948 if z.IsJSONHandle() { 26949 z.WriteStr("\"AuthToken\"") 26950 } else { 26951 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 26952 } 26953 r.WriteMapElemValue() 26954 if false { 26955 } else { 26956 if z.EncBasicHandle().StringToRaw { 26957 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 26958 } else { 26959 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 26960 } 26961 } 26962 } 26963 if yyr2 || yy2arr2 { 26964 r.WriteArrayElem() 26965 if false { 26966 } else { 26967 r.EncodeBool(bool(x.Forwarded)) 26968 } 26969 } else { 26970 r.WriteMapElemKey() 26971 if z.IsJSONHandle() { 26972 z.WriteStr("\"Forwarded\"") 26973 } else { 26974 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 26975 } 26976 r.WriteMapElemValue() 26977 if false { 26978 } else { 26979 r.EncodeBool(bool(x.Forwarded)) 26980 } 26981 } 26982 if yyr2 || yy2arr2 { 26983 r.WriteArrayEnd() 26984 } else { 26985 r.WriteMapEnd() 26986 } 26987 } 26988 } 26989 } 26990 26991 func (x *NodeDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { 26992 var h codecSelfer100 26993 z, r := codec1978.GenHelperDecoder(d) 26994 _, _, _ = h, z, r 26995 if false { 26996 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 26997 z.DecExtension(x, yyxt1) 26998 } else { 26999 yyct2 := r.ContainerType() 27000 if yyct2 == codecSelferValueTypeMap100 { 27001 yyl2 := r.ReadMapStart() 27002 if yyl2 == 0 { 27003 r.ReadMapEnd() 27004 } else { 27005 x.codecDecodeSelfFromMap(yyl2, d) 27006 } 27007 } else if yyct2 == codecSelferValueTypeArray100 { 27008 yyl2 := r.ReadArrayStart() 27009 if yyl2 == 0 { 27010 r.ReadArrayEnd() 27011 } else { 27012 x.codecDecodeSelfFromArray(yyl2, d) 27013 } 27014 } else { 27015 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 27016 } 27017 } 27018 } 27019 27020 func (x *NodeDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 27021 var h codecSelfer100 27022 z, r := codec1978.GenHelperDecoder(d) 27023 _, _, _ = h, z, r 27024 var yyhl3 bool = l >= 0 27025 for yyj3 := 0; ; yyj3++ { 27026 if yyhl3 { 27027 if yyj3 >= l { 27028 break 27029 } 27030 } else { 27031 if r.CheckBreak() { 27032 break 27033 } 27034 } 27035 r.ReadMapElemKey() 27036 yys3 := z.StringView(r.DecodeStringAsBytes()) 27037 r.ReadMapElemValue() 27038 switch yys3 { 27039 case "NodeID": 27040 if r.TryDecodeAsNil() { 27041 x.NodeID = "" 27042 } else { 27043 x.NodeID = (string)(r.DecodeString()) 27044 } 27045 case "Region": 27046 if r.TryDecodeAsNil() { 27047 x.WriteRequest.Region = "" 27048 } else { 27049 x.Region = (string)(r.DecodeString()) 27050 } 27051 case "Namespace": 27052 if r.TryDecodeAsNil() { 27053 x.WriteRequest.Namespace = "" 27054 } else { 27055 x.Namespace = (string)(r.DecodeString()) 27056 } 27057 case "AuthToken": 27058 if r.TryDecodeAsNil() { 27059 x.WriteRequest.AuthToken = "" 27060 } else { 27061 x.AuthToken = (string)(r.DecodeString()) 27062 } 27063 case "Forwarded": 27064 if r.TryDecodeAsNil() { 27065 x.WriteRequest.InternalRpcInfo.Forwarded = false 27066 } else { 27067 x.Forwarded = (bool)(r.DecodeBool()) 27068 } 27069 default: 27070 z.DecStructFieldNotFound(-1, yys3) 27071 } // end switch yys3 27072 } // end for yyj3 27073 r.ReadMapEnd() 27074 } 27075 27076 func (x *NodeDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 27077 var h codecSelfer100 27078 z, r := codec1978.GenHelperDecoder(d) 27079 _, _, _ = h, z, r 27080 var yyj9 int 27081 var yyb9 bool 27082 var yyhl9 bool = l >= 0 27083 yyj9++ 27084 if yyhl9 { 27085 yyb9 = yyj9 > l 27086 } else { 27087 yyb9 = r.CheckBreak() 27088 } 27089 if yyb9 { 27090 r.ReadArrayEnd() 27091 return 27092 } 27093 r.ReadArrayElem() 27094 if r.TryDecodeAsNil() { 27095 x.NodeID = "" 27096 } else { 27097 x.NodeID = (string)(r.DecodeString()) 27098 } 27099 yyj9++ 27100 if yyhl9 { 27101 yyb9 = yyj9 > l 27102 } else { 27103 yyb9 = r.CheckBreak() 27104 } 27105 if yyb9 { 27106 r.ReadArrayEnd() 27107 return 27108 } 27109 r.ReadArrayElem() 27110 if r.TryDecodeAsNil() { 27111 x.WriteRequest.Region = "" 27112 } else { 27113 x.Region = (string)(r.DecodeString()) 27114 } 27115 yyj9++ 27116 if yyhl9 { 27117 yyb9 = yyj9 > l 27118 } else { 27119 yyb9 = r.CheckBreak() 27120 } 27121 if yyb9 { 27122 r.ReadArrayEnd() 27123 return 27124 } 27125 r.ReadArrayElem() 27126 if r.TryDecodeAsNil() { 27127 x.WriteRequest.Namespace = "" 27128 } else { 27129 x.Namespace = (string)(r.DecodeString()) 27130 } 27131 yyj9++ 27132 if yyhl9 { 27133 yyb9 = yyj9 > l 27134 } else { 27135 yyb9 = r.CheckBreak() 27136 } 27137 if yyb9 { 27138 r.ReadArrayEnd() 27139 return 27140 } 27141 r.ReadArrayElem() 27142 if r.TryDecodeAsNil() { 27143 x.WriteRequest.AuthToken = "" 27144 } else { 27145 x.AuthToken = (string)(r.DecodeString()) 27146 } 27147 yyj9++ 27148 if yyhl9 { 27149 yyb9 = yyj9 > l 27150 } else { 27151 yyb9 = r.CheckBreak() 27152 } 27153 if yyb9 { 27154 r.ReadArrayEnd() 27155 return 27156 } 27157 r.ReadArrayElem() 27158 if r.TryDecodeAsNil() { 27159 x.WriteRequest.InternalRpcInfo.Forwarded = false 27160 } else { 27161 x.Forwarded = (bool)(r.DecodeBool()) 27162 } 27163 for { 27164 yyj9++ 27165 if yyhl9 { 27166 yyb9 = yyj9 > l 27167 } else { 27168 yyb9 = r.CheckBreak() 27169 } 27170 if yyb9 { 27171 break 27172 } 27173 r.ReadArrayElem() 27174 z.DecStructFieldNotFound(yyj9-1, "") 27175 } 27176 r.ReadArrayEnd() 27177 } 27178 27179 func (x *NodeBatchDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { 27180 var h codecSelfer100 27181 z, r := codec1978.GenHelperEncoder(e) 27182 _, _, _ = h, z, r 27183 if x == nil { 27184 r.EncodeNil() 27185 } else { 27186 if false { 27187 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 27188 z.EncExtension(x, yyxt1) 27189 } else { 27190 yysep2 := !z.EncBinary() 27191 yy2arr2 := z.EncBasicHandle().StructToArray 27192 _, _ = yysep2, yy2arr2 27193 const yyr2 bool = false // struct tag has 'toArray' 27194 if yyr2 || yy2arr2 { 27195 r.WriteArrayStart(5) 27196 } else { 27197 r.WriteMapStart(5) 27198 } 27199 if yyr2 || yy2arr2 { 27200 r.WriteArrayElem() 27201 if x.NodeIDs == nil { 27202 r.EncodeNil() 27203 } else { 27204 if false { 27205 } else { 27206 z.F.EncSliceStringV(x.NodeIDs, e) 27207 } 27208 } 27209 } else { 27210 r.WriteMapElemKey() 27211 if z.IsJSONHandle() { 27212 z.WriteStr("\"NodeIDs\"") 27213 } else { 27214 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeIDs`) 27215 } 27216 r.WriteMapElemValue() 27217 if x.NodeIDs == nil { 27218 r.EncodeNil() 27219 } else { 27220 if false { 27221 } else { 27222 z.F.EncSliceStringV(x.NodeIDs, e) 27223 } 27224 } 27225 } 27226 if yyr2 || yy2arr2 { 27227 r.WriteArrayElem() 27228 if false { 27229 } else { 27230 if z.EncBasicHandle().StringToRaw { 27231 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 27232 } else { 27233 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 27234 } 27235 } 27236 } else { 27237 r.WriteMapElemKey() 27238 if z.IsJSONHandle() { 27239 z.WriteStr("\"Region\"") 27240 } else { 27241 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 27242 } 27243 r.WriteMapElemValue() 27244 if false { 27245 } else { 27246 if z.EncBasicHandle().StringToRaw { 27247 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 27248 } else { 27249 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 27250 } 27251 } 27252 } 27253 if yyr2 || yy2arr2 { 27254 r.WriteArrayElem() 27255 if false { 27256 } else { 27257 if z.EncBasicHandle().StringToRaw { 27258 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 27259 } else { 27260 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 27261 } 27262 } 27263 } else { 27264 r.WriteMapElemKey() 27265 if z.IsJSONHandle() { 27266 z.WriteStr("\"Namespace\"") 27267 } else { 27268 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 27269 } 27270 r.WriteMapElemValue() 27271 if false { 27272 } else { 27273 if z.EncBasicHandle().StringToRaw { 27274 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 27275 } else { 27276 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 27277 } 27278 } 27279 } 27280 if yyr2 || yy2arr2 { 27281 r.WriteArrayElem() 27282 if false { 27283 } else { 27284 if z.EncBasicHandle().StringToRaw { 27285 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 27286 } else { 27287 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 27288 } 27289 } 27290 } else { 27291 r.WriteMapElemKey() 27292 if z.IsJSONHandle() { 27293 z.WriteStr("\"AuthToken\"") 27294 } else { 27295 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 27296 } 27297 r.WriteMapElemValue() 27298 if false { 27299 } else { 27300 if z.EncBasicHandle().StringToRaw { 27301 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 27302 } else { 27303 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 27304 } 27305 } 27306 } 27307 if yyr2 || yy2arr2 { 27308 r.WriteArrayElem() 27309 if false { 27310 } else { 27311 r.EncodeBool(bool(x.Forwarded)) 27312 } 27313 } else { 27314 r.WriteMapElemKey() 27315 if z.IsJSONHandle() { 27316 z.WriteStr("\"Forwarded\"") 27317 } else { 27318 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 27319 } 27320 r.WriteMapElemValue() 27321 if false { 27322 } else { 27323 r.EncodeBool(bool(x.Forwarded)) 27324 } 27325 } 27326 if yyr2 || yy2arr2 { 27327 r.WriteArrayEnd() 27328 } else { 27329 r.WriteMapEnd() 27330 } 27331 } 27332 } 27333 } 27334 27335 func (x *NodeBatchDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { 27336 var h codecSelfer100 27337 z, r := codec1978.GenHelperDecoder(d) 27338 _, _, _ = h, z, r 27339 if false { 27340 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 27341 z.DecExtension(x, yyxt1) 27342 } else { 27343 yyct2 := r.ContainerType() 27344 if yyct2 == codecSelferValueTypeMap100 { 27345 yyl2 := r.ReadMapStart() 27346 if yyl2 == 0 { 27347 r.ReadMapEnd() 27348 } else { 27349 x.codecDecodeSelfFromMap(yyl2, d) 27350 } 27351 } else if yyct2 == codecSelferValueTypeArray100 { 27352 yyl2 := r.ReadArrayStart() 27353 if yyl2 == 0 { 27354 r.ReadArrayEnd() 27355 } else { 27356 x.codecDecodeSelfFromArray(yyl2, d) 27357 } 27358 } else { 27359 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 27360 } 27361 } 27362 } 27363 27364 func (x *NodeBatchDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 27365 var h codecSelfer100 27366 z, r := codec1978.GenHelperDecoder(d) 27367 _, _, _ = h, z, r 27368 var yyhl3 bool = l >= 0 27369 for yyj3 := 0; ; yyj3++ { 27370 if yyhl3 { 27371 if yyj3 >= l { 27372 break 27373 } 27374 } else { 27375 if r.CheckBreak() { 27376 break 27377 } 27378 } 27379 r.ReadMapElemKey() 27380 yys3 := z.StringView(r.DecodeStringAsBytes()) 27381 r.ReadMapElemValue() 27382 switch yys3 { 27383 case "NodeIDs": 27384 if r.TryDecodeAsNil() { 27385 x.NodeIDs = nil 27386 } else { 27387 if false { 27388 } else { 27389 z.F.DecSliceStringX(&x.NodeIDs, d) 27390 } 27391 } 27392 case "Region": 27393 if r.TryDecodeAsNil() { 27394 x.WriteRequest.Region = "" 27395 } else { 27396 x.Region = (string)(r.DecodeString()) 27397 } 27398 case "Namespace": 27399 if r.TryDecodeAsNil() { 27400 x.WriteRequest.Namespace = "" 27401 } else { 27402 x.Namespace = (string)(r.DecodeString()) 27403 } 27404 case "AuthToken": 27405 if r.TryDecodeAsNil() { 27406 x.WriteRequest.AuthToken = "" 27407 } else { 27408 x.AuthToken = (string)(r.DecodeString()) 27409 } 27410 case "Forwarded": 27411 if r.TryDecodeAsNil() { 27412 x.WriteRequest.InternalRpcInfo.Forwarded = false 27413 } else { 27414 x.Forwarded = (bool)(r.DecodeBool()) 27415 } 27416 default: 27417 z.DecStructFieldNotFound(-1, yys3) 27418 } // end switch yys3 27419 } // end for yyj3 27420 r.ReadMapEnd() 27421 } 27422 27423 func (x *NodeBatchDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 27424 var h codecSelfer100 27425 z, r := codec1978.GenHelperDecoder(d) 27426 _, _, _ = h, z, r 27427 var yyj10 int 27428 var yyb10 bool 27429 var yyhl10 bool = l >= 0 27430 yyj10++ 27431 if yyhl10 { 27432 yyb10 = yyj10 > l 27433 } else { 27434 yyb10 = r.CheckBreak() 27435 } 27436 if yyb10 { 27437 r.ReadArrayEnd() 27438 return 27439 } 27440 r.ReadArrayElem() 27441 if r.TryDecodeAsNil() { 27442 x.NodeIDs = nil 27443 } else { 27444 if false { 27445 } else { 27446 z.F.DecSliceStringX(&x.NodeIDs, d) 27447 } 27448 } 27449 yyj10++ 27450 if yyhl10 { 27451 yyb10 = yyj10 > l 27452 } else { 27453 yyb10 = r.CheckBreak() 27454 } 27455 if yyb10 { 27456 r.ReadArrayEnd() 27457 return 27458 } 27459 r.ReadArrayElem() 27460 if r.TryDecodeAsNil() { 27461 x.WriteRequest.Region = "" 27462 } else { 27463 x.Region = (string)(r.DecodeString()) 27464 } 27465 yyj10++ 27466 if yyhl10 { 27467 yyb10 = yyj10 > l 27468 } else { 27469 yyb10 = r.CheckBreak() 27470 } 27471 if yyb10 { 27472 r.ReadArrayEnd() 27473 return 27474 } 27475 r.ReadArrayElem() 27476 if r.TryDecodeAsNil() { 27477 x.WriteRequest.Namespace = "" 27478 } else { 27479 x.Namespace = (string)(r.DecodeString()) 27480 } 27481 yyj10++ 27482 if yyhl10 { 27483 yyb10 = yyj10 > l 27484 } else { 27485 yyb10 = r.CheckBreak() 27486 } 27487 if yyb10 { 27488 r.ReadArrayEnd() 27489 return 27490 } 27491 r.ReadArrayElem() 27492 if r.TryDecodeAsNil() { 27493 x.WriteRequest.AuthToken = "" 27494 } else { 27495 x.AuthToken = (string)(r.DecodeString()) 27496 } 27497 yyj10++ 27498 if yyhl10 { 27499 yyb10 = yyj10 > l 27500 } else { 27501 yyb10 = r.CheckBreak() 27502 } 27503 if yyb10 { 27504 r.ReadArrayEnd() 27505 return 27506 } 27507 r.ReadArrayElem() 27508 if r.TryDecodeAsNil() { 27509 x.WriteRequest.InternalRpcInfo.Forwarded = false 27510 } else { 27511 x.Forwarded = (bool)(r.DecodeBool()) 27512 } 27513 for { 27514 yyj10++ 27515 if yyhl10 { 27516 yyb10 = yyj10 > l 27517 } else { 27518 yyb10 = r.CheckBreak() 27519 } 27520 if yyb10 { 27521 break 27522 } 27523 r.ReadArrayElem() 27524 z.DecStructFieldNotFound(yyj10-1, "") 27525 } 27526 r.ReadArrayEnd() 27527 } 27528 27529 func (x *NodeServerInfo) CodecEncodeSelf(e *codec1978.Encoder) { 27530 var h codecSelfer100 27531 z, r := codec1978.GenHelperEncoder(e) 27532 _, _, _ = h, z, r 27533 if x == nil { 27534 r.EncodeNil() 27535 } else { 27536 if false { 27537 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 27538 z.EncExtension(x, yyxt1) 27539 } else { 27540 yysep2 := !z.EncBinary() 27541 yy2arr2 := z.EncBasicHandle().StructToArray 27542 _, _ = yysep2, yy2arr2 27543 const yyr2 bool = false // struct tag has 'toArray' 27544 if yyr2 || yy2arr2 { 27545 r.WriteArrayStart(4) 27546 } else { 27547 r.WriteMapStart(4) 27548 } 27549 if yyr2 || yy2arr2 { 27550 r.WriteArrayElem() 27551 if false { 27552 } else { 27553 if z.EncBasicHandle().StringToRaw { 27554 r.EncodeStringBytesRaw(z.BytesView(string(x.RPCAdvertiseAddr))) 27555 } else { 27556 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RPCAdvertiseAddr)) 27557 } 27558 } 27559 } else { 27560 r.WriteMapElemKey() 27561 if z.IsJSONHandle() { 27562 z.WriteStr("\"RPCAdvertiseAddr\"") 27563 } else { 27564 r.EncodeStringEnc(codecSelferCcUTF8100, `RPCAdvertiseAddr`) 27565 } 27566 r.WriteMapElemValue() 27567 if false { 27568 } else { 27569 if z.EncBasicHandle().StringToRaw { 27570 r.EncodeStringBytesRaw(z.BytesView(string(x.RPCAdvertiseAddr))) 27571 } else { 27572 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RPCAdvertiseAddr)) 27573 } 27574 } 27575 } 27576 if yyr2 || yy2arr2 { 27577 r.WriteArrayElem() 27578 if false { 27579 } else { 27580 r.EncodeInt(int64(x.RPCMajorVersion)) 27581 } 27582 } else { 27583 r.WriteMapElemKey() 27584 if z.IsJSONHandle() { 27585 z.WriteStr("\"RPCMajorVersion\"") 27586 } else { 27587 r.EncodeStringEnc(codecSelferCcUTF8100, `RPCMajorVersion`) 27588 } 27589 r.WriteMapElemValue() 27590 if false { 27591 } else { 27592 r.EncodeInt(int64(x.RPCMajorVersion)) 27593 } 27594 } 27595 if yyr2 || yy2arr2 { 27596 r.WriteArrayElem() 27597 if false { 27598 } else { 27599 r.EncodeInt(int64(x.RPCMinorVersion)) 27600 } 27601 } else { 27602 r.WriteMapElemKey() 27603 if z.IsJSONHandle() { 27604 z.WriteStr("\"RPCMinorVersion\"") 27605 } else { 27606 r.EncodeStringEnc(codecSelferCcUTF8100, `RPCMinorVersion`) 27607 } 27608 r.WriteMapElemValue() 27609 if false { 27610 } else { 27611 r.EncodeInt(int64(x.RPCMinorVersion)) 27612 } 27613 } 27614 if yyr2 || yy2arr2 { 27615 r.WriteArrayElem() 27616 if false { 27617 } else { 27618 if z.EncBasicHandle().StringToRaw { 27619 r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) 27620 } else { 27621 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) 27622 } 27623 } 27624 } else { 27625 r.WriteMapElemKey() 27626 if z.IsJSONHandle() { 27627 z.WriteStr("\"Datacenter\"") 27628 } else { 27629 r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenter`) 27630 } 27631 r.WriteMapElemValue() 27632 if false { 27633 } else { 27634 if z.EncBasicHandle().StringToRaw { 27635 r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) 27636 } else { 27637 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) 27638 } 27639 } 27640 } 27641 if yyr2 || yy2arr2 { 27642 r.WriteArrayEnd() 27643 } else { 27644 r.WriteMapEnd() 27645 } 27646 } 27647 } 27648 } 27649 27650 func (x *NodeServerInfo) CodecDecodeSelf(d *codec1978.Decoder) { 27651 var h codecSelfer100 27652 z, r := codec1978.GenHelperDecoder(d) 27653 _, _, _ = h, z, r 27654 if false { 27655 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 27656 z.DecExtension(x, yyxt1) 27657 } else { 27658 yyct2 := r.ContainerType() 27659 if yyct2 == codecSelferValueTypeMap100 { 27660 yyl2 := r.ReadMapStart() 27661 if yyl2 == 0 { 27662 r.ReadMapEnd() 27663 } else { 27664 x.codecDecodeSelfFromMap(yyl2, d) 27665 } 27666 } else if yyct2 == codecSelferValueTypeArray100 { 27667 yyl2 := r.ReadArrayStart() 27668 if yyl2 == 0 { 27669 r.ReadArrayEnd() 27670 } else { 27671 x.codecDecodeSelfFromArray(yyl2, d) 27672 } 27673 } else { 27674 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 27675 } 27676 } 27677 } 27678 27679 func (x *NodeServerInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 27680 var h codecSelfer100 27681 z, r := codec1978.GenHelperDecoder(d) 27682 _, _, _ = h, z, r 27683 var yyhl3 bool = l >= 0 27684 for yyj3 := 0; ; yyj3++ { 27685 if yyhl3 { 27686 if yyj3 >= l { 27687 break 27688 } 27689 } else { 27690 if r.CheckBreak() { 27691 break 27692 } 27693 } 27694 r.ReadMapElemKey() 27695 yys3 := z.StringView(r.DecodeStringAsBytes()) 27696 r.ReadMapElemValue() 27697 switch yys3 { 27698 case "RPCAdvertiseAddr": 27699 if r.TryDecodeAsNil() { 27700 x.RPCAdvertiseAddr = "" 27701 } else { 27702 x.RPCAdvertiseAddr = (string)(r.DecodeString()) 27703 } 27704 case "RPCMajorVersion": 27705 if r.TryDecodeAsNil() { 27706 x.RPCMajorVersion = 0 27707 } else { 27708 x.RPCMajorVersion = (int32)(z.C.IntV(r.DecodeInt64(), 32)) 27709 } 27710 case "RPCMinorVersion": 27711 if r.TryDecodeAsNil() { 27712 x.RPCMinorVersion = 0 27713 } else { 27714 x.RPCMinorVersion = (int32)(z.C.IntV(r.DecodeInt64(), 32)) 27715 } 27716 case "Datacenter": 27717 if r.TryDecodeAsNil() { 27718 x.Datacenter = "" 27719 } else { 27720 x.Datacenter = (string)(r.DecodeString()) 27721 } 27722 default: 27723 z.DecStructFieldNotFound(-1, yys3) 27724 } // end switch yys3 27725 } // end for yyj3 27726 r.ReadMapEnd() 27727 } 27728 27729 func (x *NodeServerInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 27730 var h codecSelfer100 27731 z, r := codec1978.GenHelperDecoder(d) 27732 _, _, _ = h, z, r 27733 var yyj8 int 27734 var yyb8 bool 27735 var yyhl8 bool = l >= 0 27736 yyj8++ 27737 if yyhl8 { 27738 yyb8 = yyj8 > l 27739 } else { 27740 yyb8 = r.CheckBreak() 27741 } 27742 if yyb8 { 27743 r.ReadArrayEnd() 27744 return 27745 } 27746 r.ReadArrayElem() 27747 if r.TryDecodeAsNil() { 27748 x.RPCAdvertiseAddr = "" 27749 } else { 27750 x.RPCAdvertiseAddr = (string)(r.DecodeString()) 27751 } 27752 yyj8++ 27753 if yyhl8 { 27754 yyb8 = yyj8 > l 27755 } else { 27756 yyb8 = r.CheckBreak() 27757 } 27758 if yyb8 { 27759 r.ReadArrayEnd() 27760 return 27761 } 27762 r.ReadArrayElem() 27763 if r.TryDecodeAsNil() { 27764 x.RPCMajorVersion = 0 27765 } else { 27766 x.RPCMajorVersion = (int32)(z.C.IntV(r.DecodeInt64(), 32)) 27767 } 27768 yyj8++ 27769 if yyhl8 { 27770 yyb8 = yyj8 > l 27771 } else { 27772 yyb8 = r.CheckBreak() 27773 } 27774 if yyb8 { 27775 r.ReadArrayEnd() 27776 return 27777 } 27778 r.ReadArrayElem() 27779 if r.TryDecodeAsNil() { 27780 x.RPCMinorVersion = 0 27781 } else { 27782 x.RPCMinorVersion = (int32)(z.C.IntV(r.DecodeInt64(), 32)) 27783 } 27784 yyj8++ 27785 if yyhl8 { 27786 yyb8 = yyj8 > l 27787 } else { 27788 yyb8 = r.CheckBreak() 27789 } 27790 if yyb8 { 27791 r.ReadArrayEnd() 27792 return 27793 } 27794 r.ReadArrayElem() 27795 if r.TryDecodeAsNil() { 27796 x.Datacenter = "" 27797 } else { 27798 x.Datacenter = (string)(r.DecodeString()) 27799 } 27800 for { 27801 yyj8++ 27802 if yyhl8 { 27803 yyb8 = yyj8 > l 27804 } else { 27805 yyb8 = r.CheckBreak() 27806 } 27807 if yyb8 { 27808 break 27809 } 27810 r.ReadArrayElem() 27811 z.DecStructFieldNotFound(yyj8-1, "") 27812 } 27813 r.ReadArrayEnd() 27814 } 27815 27816 func (x *NodeUpdateStatusRequest) CodecEncodeSelf(e *codec1978.Encoder) { 27817 var h codecSelfer100 27818 z, r := codec1978.GenHelperEncoder(e) 27819 _, _, _ = h, z, r 27820 if x == nil { 27821 r.EncodeNil() 27822 } else { 27823 if false { 27824 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 27825 z.EncExtension(x, yyxt1) 27826 } else { 27827 yysep2 := !z.EncBinary() 27828 yy2arr2 := z.EncBasicHandle().StructToArray 27829 _, _ = yysep2, yy2arr2 27830 const yyr2 bool = false // struct tag has 'toArray' 27831 if yyr2 || yy2arr2 { 27832 r.WriteArrayStart(8) 27833 } else { 27834 r.WriteMapStart(8) 27835 } 27836 if yyr2 || yy2arr2 { 27837 r.WriteArrayElem() 27838 if false { 27839 } else { 27840 if z.EncBasicHandle().StringToRaw { 27841 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 27842 } else { 27843 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 27844 } 27845 } 27846 } else { 27847 r.WriteMapElemKey() 27848 if z.IsJSONHandle() { 27849 z.WriteStr("\"NodeID\"") 27850 } else { 27851 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 27852 } 27853 r.WriteMapElemValue() 27854 if false { 27855 } else { 27856 if z.EncBasicHandle().StringToRaw { 27857 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 27858 } else { 27859 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 27860 } 27861 } 27862 } 27863 if yyr2 || yy2arr2 { 27864 r.WriteArrayElem() 27865 if false { 27866 } else { 27867 if z.EncBasicHandle().StringToRaw { 27868 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 27869 } else { 27870 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 27871 } 27872 } 27873 } else { 27874 r.WriteMapElemKey() 27875 if z.IsJSONHandle() { 27876 z.WriteStr("\"Status\"") 27877 } else { 27878 r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) 27879 } 27880 r.WriteMapElemValue() 27881 if false { 27882 } else { 27883 if z.EncBasicHandle().StringToRaw { 27884 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 27885 } else { 27886 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 27887 } 27888 } 27889 } 27890 var yyn9 bool 27891 if x.NodeEvent == nil { 27892 yyn9 = true 27893 goto LABEL9 27894 } 27895 LABEL9: 27896 if yyr2 || yy2arr2 { 27897 if yyn9 { 27898 r.WriteArrayElem() 27899 r.EncodeNil() 27900 } else { 27901 r.WriteArrayElem() 27902 if x.NodeEvent == nil { 27903 r.EncodeNil() 27904 } else { 27905 x.NodeEvent.CodecEncodeSelf(e) 27906 } 27907 } 27908 } else { 27909 r.WriteMapElemKey() 27910 if z.IsJSONHandle() { 27911 z.WriteStr("\"NodeEvent\"") 27912 } else { 27913 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvent`) 27914 } 27915 r.WriteMapElemValue() 27916 if yyn9 { 27917 r.EncodeNil() 27918 } else { 27919 if x.NodeEvent == nil { 27920 r.EncodeNil() 27921 } else { 27922 x.NodeEvent.CodecEncodeSelf(e) 27923 } 27924 } 27925 } 27926 if yyr2 || yy2arr2 { 27927 r.WriteArrayElem() 27928 if false { 27929 } else { 27930 r.EncodeInt(int64(x.UpdatedAt)) 27931 } 27932 } else { 27933 r.WriteMapElemKey() 27934 if z.IsJSONHandle() { 27935 z.WriteStr("\"UpdatedAt\"") 27936 } else { 27937 r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) 27938 } 27939 r.WriteMapElemValue() 27940 if false { 27941 } else { 27942 r.EncodeInt(int64(x.UpdatedAt)) 27943 } 27944 } 27945 if yyr2 || yy2arr2 { 27946 r.WriteArrayElem() 27947 if false { 27948 } else { 27949 if z.EncBasicHandle().StringToRaw { 27950 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 27951 } else { 27952 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 27953 } 27954 } 27955 } else { 27956 r.WriteMapElemKey() 27957 if z.IsJSONHandle() { 27958 z.WriteStr("\"Region\"") 27959 } else { 27960 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 27961 } 27962 r.WriteMapElemValue() 27963 if false { 27964 } else { 27965 if z.EncBasicHandle().StringToRaw { 27966 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 27967 } else { 27968 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 27969 } 27970 } 27971 } 27972 if yyr2 || yy2arr2 { 27973 r.WriteArrayElem() 27974 if false { 27975 } else { 27976 if z.EncBasicHandle().StringToRaw { 27977 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 27978 } else { 27979 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 27980 } 27981 } 27982 } else { 27983 r.WriteMapElemKey() 27984 if z.IsJSONHandle() { 27985 z.WriteStr("\"Namespace\"") 27986 } else { 27987 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 27988 } 27989 r.WriteMapElemValue() 27990 if false { 27991 } else { 27992 if z.EncBasicHandle().StringToRaw { 27993 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 27994 } else { 27995 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 27996 } 27997 } 27998 } 27999 if yyr2 || yy2arr2 { 28000 r.WriteArrayElem() 28001 if false { 28002 } else { 28003 if z.EncBasicHandle().StringToRaw { 28004 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 28005 } else { 28006 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 28007 } 28008 } 28009 } else { 28010 r.WriteMapElemKey() 28011 if z.IsJSONHandle() { 28012 z.WriteStr("\"AuthToken\"") 28013 } else { 28014 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 28015 } 28016 r.WriteMapElemValue() 28017 if false { 28018 } else { 28019 if z.EncBasicHandle().StringToRaw { 28020 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 28021 } else { 28022 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 28023 } 28024 } 28025 } 28026 if yyr2 || yy2arr2 { 28027 r.WriteArrayElem() 28028 if false { 28029 } else { 28030 r.EncodeBool(bool(x.Forwarded)) 28031 } 28032 } else { 28033 r.WriteMapElemKey() 28034 if z.IsJSONHandle() { 28035 z.WriteStr("\"Forwarded\"") 28036 } else { 28037 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 28038 } 28039 r.WriteMapElemValue() 28040 if false { 28041 } else { 28042 r.EncodeBool(bool(x.Forwarded)) 28043 } 28044 } 28045 if yyr2 || yy2arr2 { 28046 r.WriteArrayEnd() 28047 } else { 28048 r.WriteMapEnd() 28049 } 28050 } 28051 } 28052 } 28053 28054 func (x *NodeUpdateStatusRequest) CodecDecodeSelf(d *codec1978.Decoder) { 28055 var h codecSelfer100 28056 z, r := codec1978.GenHelperDecoder(d) 28057 _, _, _ = h, z, r 28058 if false { 28059 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 28060 z.DecExtension(x, yyxt1) 28061 } else { 28062 yyct2 := r.ContainerType() 28063 if yyct2 == codecSelferValueTypeMap100 { 28064 yyl2 := r.ReadMapStart() 28065 if yyl2 == 0 { 28066 r.ReadMapEnd() 28067 } else { 28068 x.codecDecodeSelfFromMap(yyl2, d) 28069 } 28070 } else if yyct2 == codecSelferValueTypeArray100 { 28071 yyl2 := r.ReadArrayStart() 28072 if yyl2 == 0 { 28073 r.ReadArrayEnd() 28074 } else { 28075 x.codecDecodeSelfFromArray(yyl2, d) 28076 } 28077 } else { 28078 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 28079 } 28080 } 28081 } 28082 28083 func (x *NodeUpdateStatusRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 28084 var h codecSelfer100 28085 z, r := codec1978.GenHelperDecoder(d) 28086 _, _, _ = h, z, r 28087 var yyhl3 bool = l >= 0 28088 for yyj3 := 0; ; yyj3++ { 28089 if yyhl3 { 28090 if yyj3 >= l { 28091 break 28092 } 28093 } else { 28094 if r.CheckBreak() { 28095 break 28096 } 28097 } 28098 r.ReadMapElemKey() 28099 yys3 := z.StringView(r.DecodeStringAsBytes()) 28100 r.ReadMapElemValue() 28101 switch yys3 { 28102 case "NodeID": 28103 if r.TryDecodeAsNil() { 28104 x.NodeID = "" 28105 } else { 28106 x.NodeID = (string)(r.DecodeString()) 28107 } 28108 case "Status": 28109 if r.TryDecodeAsNil() { 28110 x.Status = "" 28111 } else { 28112 x.Status = (string)(r.DecodeString()) 28113 } 28114 case "NodeEvent": 28115 if r.TryDecodeAsNil() { 28116 if true && x.NodeEvent != nil { 28117 x.NodeEvent = nil 28118 } 28119 } else { 28120 if x.NodeEvent == nil { 28121 x.NodeEvent = new(NodeEvent) 28122 } 28123 28124 x.NodeEvent.CodecDecodeSelf(d) 28125 } 28126 case "UpdatedAt": 28127 if r.TryDecodeAsNil() { 28128 x.UpdatedAt = 0 28129 } else { 28130 x.UpdatedAt = (int64)(r.DecodeInt64()) 28131 } 28132 case "Region": 28133 if r.TryDecodeAsNil() { 28134 x.WriteRequest.Region = "" 28135 } else { 28136 x.Region = (string)(r.DecodeString()) 28137 } 28138 case "Namespace": 28139 if r.TryDecodeAsNil() { 28140 x.WriteRequest.Namespace = "" 28141 } else { 28142 x.Namespace = (string)(r.DecodeString()) 28143 } 28144 case "AuthToken": 28145 if r.TryDecodeAsNil() { 28146 x.WriteRequest.AuthToken = "" 28147 } else { 28148 x.AuthToken = (string)(r.DecodeString()) 28149 } 28150 case "Forwarded": 28151 if r.TryDecodeAsNil() { 28152 x.WriteRequest.InternalRpcInfo.Forwarded = false 28153 } else { 28154 x.Forwarded = (bool)(r.DecodeBool()) 28155 } 28156 default: 28157 z.DecStructFieldNotFound(-1, yys3) 28158 } // end switch yys3 28159 } // end for yyj3 28160 r.ReadMapEnd() 28161 } 28162 28163 func (x *NodeUpdateStatusRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 28164 var h codecSelfer100 28165 z, r := codec1978.GenHelperDecoder(d) 28166 _, _, _ = h, z, r 28167 var yyj12 int 28168 var yyb12 bool 28169 var yyhl12 bool = l >= 0 28170 yyj12++ 28171 if yyhl12 { 28172 yyb12 = yyj12 > l 28173 } else { 28174 yyb12 = r.CheckBreak() 28175 } 28176 if yyb12 { 28177 r.ReadArrayEnd() 28178 return 28179 } 28180 r.ReadArrayElem() 28181 if r.TryDecodeAsNil() { 28182 x.NodeID = "" 28183 } else { 28184 x.NodeID = (string)(r.DecodeString()) 28185 } 28186 yyj12++ 28187 if yyhl12 { 28188 yyb12 = yyj12 > l 28189 } else { 28190 yyb12 = r.CheckBreak() 28191 } 28192 if yyb12 { 28193 r.ReadArrayEnd() 28194 return 28195 } 28196 r.ReadArrayElem() 28197 if r.TryDecodeAsNil() { 28198 x.Status = "" 28199 } else { 28200 x.Status = (string)(r.DecodeString()) 28201 } 28202 yyj12++ 28203 if yyhl12 { 28204 yyb12 = yyj12 > l 28205 } else { 28206 yyb12 = r.CheckBreak() 28207 } 28208 if yyb12 { 28209 r.ReadArrayEnd() 28210 return 28211 } 28212 r.ReadArrayElem() 28213 if r.TryDecodeAsNil() { 28214 if true && x.NodeEvent != nil { 28215 x.NodeEvent = nil 28216 } 28217 } else { 28218 if x.NodeEvent == nil { 28219 x.NodeEvent = new(NodeEvent) 28220 } 28221 28222 x.NodeEvent.CodecDecodeSelf(d) 28223 } 28224 yyj12++ 28225 if yyhl12 { 28226 yyb12 = yyj12 > l 28227 } else { 28228 yyb12 = r.CheckBreak() 28229 } 28230 if yyb12 { 28231 r.ReadArrayEnd() 28232 return 28233 } 28234 r.ReadArrayElem() 28235 if r.TryDecodeAsNil() { 28236 x.UpdatedAt = 0 28237 } else { 28238 x.UpdatedAt = (int64)(r.DecodeInt64()) 28239 } 28240 yyj12++ 28241 if yyhl12 { 28242 yyb12 = yyj12 > l 28243 } else { 28244 yyb12 = r.CheckBreak() 28245 } 28246 if yyb12 { 28247 r.ReadArrayEnd() 28248 return 28249 } 28250 r.ReadArrayElem() 28251 if r.TryDecodeAsNil() { 28252 x.WriteRequest.Region = "" 28253 } else { 28254 x.Region = (string)(r.DecodeString()) 28255 } 28256 yyj12++ 28257 if yyhl12 { 28258 yyb12 = yyj12 > l 28259 } else { 28260 yyb12 = r.CheckBreak() 28261 } 28262 if yyb12 { 28263 r.ReadArrayEnd() 28264 return 28265 } 28266 r.ReadArrayElem() 28267 if r.TryDecodeAsNil() { 28268 x.WriteRequest.Namespace = "" 28269 } else { 28270 x.Namespace = (string)(r.DecodeString()) 28271 } 28272 yyj12++ 28273 if yyhl12 { 28274 yyb12 = yyj12 > l 28275 } else { 28276 yyb12 = r.CheckBreak() 28277 } 28278 if yyb12 { 28279 r.ReadArrayEnd() 28280 return 28281 } 28282 r.ReadArrayElem() 28283 if r.TryDecodeAsNil() { 28284 x.WriteRequest.AuthToken = "" 28285 } else { 28286 x.AuthToken = (string)(r.DecodeString()) 28287 } 28288 yyj12++ 28289 if yyhl12 { 28290 yyb12 = yyj12 > l 28291 } else { 28292 yyb12 = r.CheckBreak() 28293 } 28294 if yyb12 { 28295 r.ReadArrayEnd() 28296 return 28297 } 28298 r.ReadArrayElem() 28299 if r.TryDecodeAsNil() { 28300 x.WriteRequest.InternalRpcInfo.Forwarded = false 28301 } else { 28302 x.Forwarded = (bool)(r.DecodeBool()) 28303 } 28304 for { 28305 yyj12++ 28306 if yyhl12 { 28307 yyb12 = yyj12 > l 28308 } else { 28309 yyb12 = r.CheckBreak() 28310 } 28311 if yyb12 { 28312 break 28313 } 28314 r.ReadArrayElem() 28315 z.DecStructFieldNotFound(yyj12-1, "") 28316 } 28317 r.ReadArrayEnd() 28318 } 28319 28320 func (x *NodeUpdateDrainRequest) CodecEncodeSelf(e *codec1978.Encoder) { 28321 var h codecSelfer100 28322 z, r := codec1978.GenHelperEncoder(e) 28323 _, _, _ = h, z, r 28324 if x == nil { 28325 r.EncodeNil() 28326 } else { 28327 if false { 28328 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 28329 z.EncExtension(x, yyxt1) 28330 } else { 28331 yysep2 := !z.EncBinary() 28332 yy2arr2 := z.EncBasicHandle().StructToArray 28333 _, _ = yysep2, yy2arr2 28334 const yyr2 bool = false // struct tag has 'toArray' 28335 if yyr2 || yy2arr2 { 28336 r.WriteArrayStart(10) 28337 } else { 28338 r.WriteMapStart(10) 28339 } 28340 if yyr2 || yy2arr2 { 28341 r.WriteArrayElem() 28342 if false { 28343 } else { 28344 if z.EncBasicHandle().StringToRaw { 28345 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 28346 } else { 28347 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 28348 } 28349 } 28350 } else { 28351 r.WriteMapElemKey() 28352 if z.IsJSONHandle() { 28353 z.WriteStr("\"NodeID\"") 28354 } else { 28355 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 28356 } 28357 r.WriteMapElemValue() 28358 if false { 28359 } else { 28360 if z.EncBasicHandle().StringToRaw { 28361 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 28362 } else { 28363 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 28364 } 28365 } 28366 } 28367 var yyn6 bool 28368 if x.DrainStrategy == nil { 28369 yyn6 = true 28370 goto LABEL6 28371 } 28372 LABEL6: 28373 if yyr2 || yy2arr2 { 28374 if yyn6 { 28375 r.WriteArrayElem() 28376 r.EncodeNil() 28377 } else { 28378 r.WriteArrayElem() 28379 if x.DrainStrategy == nil { 28380 r.EncodeNil() 28381 } else { 28382 x.DrainStrategy.CodecEncodeSelf(e) 28383 } 28384 } 28385 } else { 28386 r.WriteMapElemKey() 28387 if z.IsJSONHandle() { 28388 z.WriteStr("\"DrainStrategy\"") 28389 } else { 28390 r.EncodeStringEnc(codecSelferCcUTF8100, `DrainStrategy`) 28391 } 28392 r.WriteMapElemValue() 28393 if yyn6 { 28394 r.EncodeNil() 28395 } else { 28396 if x.DrainStrategy == nil { 28397 r.EncodeNil() 28398 } else { 28399 x.DrainStrategy.CodecEncodeSelf(e) 28400 } 28401 } 28402 } 28403 if yyr2 || yy2arr2 { 28404 r.WriteArrayElem() 28405 if false { 28406 } else { 28407 r.EncodeBool(bool(x.Drain)) 28408 } 28409 } else { 28410 r.WriteMapElemKey() 28411 if z.IsJSONHandle() { 28412 z.WriteStr("\"Drain\"") 28413 } else { 28414 r.EncodeStringEnc(codecSelferCcUTF8100, `Drain`) 28415 } 28416 r.WriteMapElemValue() 28417 if false { 28418 } else { 28419 r.EncodeBool(bool(x.Drain)) 28420 } 28421 } 28422 if yyr2 || yy2arr2 { 28423 r.WriteArrayElem() 28424 if false { 28425 } else { 28426 r.EncodeBool(bool(x.MarkEligible)) 28427 } 28428 } else { 28429 r.WriteMapElemKey() 28430 if z.IsJSONHandle() { 28431 z.WriteStr("\"MarkEligible\"") 28432 } else { 28433 r.EncodeStringEnc(codecSelferCcUTF8100, `MarkEligible`) 28434 } 28435 r.WriteMapElemValue() 28436 if false { 28437 } else { 28438 r.EncodeBool(bool(x.MarkEligible)) 28439 } 28440 } 28441 var yyn15 bool 28442 if x.NodeEvent == nil { 28443 yyn15 = true 28444 goto LABEL15 28445 } 28446 LABEL15: 28447 if yyr2 || yy2arr2 { 28448 if yyn15 { 28449 r.WriteArrayElem() 28450 r.EncodeNil() 28451 } else { 28452 r.WriteArrayElem() 28453 if x.NodeEvent == nil { 28454 r.EncodeNil() 28455 } else { 28456 x.NodeEvent.CodecEncodeSelf(e) 28457 } 28458 } 28459 } else { 28460 r.WriteMapElemKey() 28461 if z.IsJSONHandle() { 28462 z.WriteStr("\"NodeEvent\"") 28463 } else { 28464 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvent`) 28465 } 28466 r.WriteMapElemValue() 28467 if yyn15 { 28468 r.EncodeNil() 28469 } else { 28470 if x.NodeEvent == nil { 28471 r.EncodeNil() 28472 } else { 28473 x.NodeEvent.CodecEncodeSelf(e) 28474 } 28475 } 28476 } 28477 if yyr2 || yy2arr2 { 28478 r.WriteArrayElem() 28479 if false { 28480 } else { 28481 r.EncodeInt(int64(x.UpdatedAt)) 28482 } 28483 } else { 28484 r.WriteMapElemKey() 28485 if z.IsJSONHandle() { 28486 z.WriteStr("\"UpdatedAt\"") 28487 } else { 28488 r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) 28489 } 28490 r.WriteMapElemValue() 28491 if false { 28492 } else { 28493 r.EncodeInt(int64(x.UpdatedAt)) 28494 } 28495 } 28496 if yyr2 || yy2arr2 { 28497 r.WriteArrayElem() 28498 if false { 28499 } else { 28500 if z.EncBasicHandle().StringToRaw { 28501 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 28502 } else { 28503 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 28504 } 28505 } 28506 } else { 28507 r.WriteMapElemKey() 28508 if z.IsJSONHandle() { 28509 z.WriteStr("\"Region\"") 28510 } else { 28511 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 28512 } 28513 r.WriteMapElemValue() 28514 if false { 28515 } else { 28516 if z.EncBasicHandle().StringToRaw { 28517 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 28518 } else { 28519 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 28520 } 28521 } 28522 } 28523 if yyr2 || yy2arr2 { 28524 r.WriteArrayElem() 28525 if false { 28526 } else { 28527 if z.EncBasicHandle().StringToRaw { 28528 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 28529 } else { 28530 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 28531 } 28532 } 28533 } else { 28534 r.WriteMapElemKey() 28535 if z.IsJSONHandle() { 28536 z.WriteStr("\"Namespace\"") 28537 } else { 28538 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 28539 } 28540 r.WriteMapElemValue() 28541 if false { 28542 } else { 28543 if z.EncBasicHandle().StringToRaw { 28544 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 28545 } else { 28546 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 28547 } 28548 } 28549 } 28550 if yyr2 || yy2arr2 { 28551 r.WriteArrayElem() 28552 if false { 28553 } else { 28554 if z.EncBasicHandle().StringToRaw { 28555 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 28556 } else { 28557 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 28558 } 28559 } 28560 } else { 28561 r.WriteMapElemKey() 28562 if z.IsJSONHandle() { 28563 z.WriteStr("\"AuthToken\"") 28564 } else { 28565 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 28566 } 28567 r.WriteMapElemValue() 28568 if false { 28569 } else { 28570 if z.EncBasicHandle().StringToRaw { 28571 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 28572 } else { 28573 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 28574 } 28575 } 28576 } 28577 if yyr2 || yy2arr2 { 28578 r.WriteArrayElem() 28579 if false { 28580 } else { 28581 r.EncodeBool(bool(x.Forwarded)) 28582 } 28583 } else { 28584 r.WriteMapElemKey() 28585 if z.IsJSONHandle() { 28586 z.WriteStr("\"Forwarded\"") 28587 } else { 28588 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 28589 } 28590 r.WriteMapElemValue() 28591 if false { 28592 } else { 28593 r.EncodeBool(bool(x.Forwarded)) 28594 } 28595 } 28596 if yyr2 || yy2arr2 { 28597 r.WriteArrayEnd() 28598 } else { 28599 r.WriteMapEnd() 28600 } 28601 } 28602 } 28603 } 28604 28605 func (x *NodeUpdateDrainRequest) CodecDecodeSelf(d *codec1978.Decoder) { 28606 var h codecSelfer100 28607 z, r := codec1978.GenHelperDecoder(d) 28608 _, _, _ = h, z, r 28609 if false { 28610 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 28611 z.DecExtension(x, yyxt1) 28612 } else { 28613 yyct2 := r.ContainerType() 28614 if yyct2 == codecSelferValueTypeMap100 { 28615 yyl2 := r.ReadMapStart() 28616 if yyl2 == 0 { 28617 r.ReadMapEnd() 28618 } else { 28619 x.codecDecodeSelfFromMap(yyl2, d) 28620 } 28621 } else if yyct2 == codecSelferValueTypeArray100 { 28622 yyl2 := r.ReadArrayStart() 28623 if yyl2 == 0 { 28624 r.ReadArrayEnd() 28625 } else { 28626 x.codecDecodeSelfFromArray(yyl2, d) 28627 } 28628 } else { 28629 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 28630 } 28631 } 28632 } 28633 28634 func (x *NodeUpdateDrainRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 28635 var h codecSelfer100 28636 z, r := codec1978.GenHelperDecoder(d) 28637 _, _, _ = h, z, r 28638 var yyhl3 bool = l >= 0 28639 for yyj3 := 0; ; yyj3++ { 28640 if yyhl3 { 28641 if yyj3 >= l { 28642 break 28643 } 28644 } else { 28645 if r.CheckBreak() { 28646 break 28647 } 28648 } 28649 r.ReadMapElemKey() 28650 yys3 := z.StringView(r.DecodeStringAsBytes()) 28651 r.ReadMapElemValue() 28652 switch yys3 { 28653 case "NodeID": 28654 if r.TryDecodeAsNil() { 28655 x.NodeID = "" 28656 } else { 28657 x.NodeID = (string)(r.DecodeString()) 28658 } 28659 case "DrainStrategy": 28660 if r.TryDecodeAsNil() { 28661 if true && x.DrainStrategy != nil { 28662 x.DrainStrategy = nil 28663 } 28664 } else { 28665 if x.DrainStrategy == nil { 28666 x.DrainStrategy = new(DrainStrategy) 28667 } 28668 28669 x.DrainStrategy.CodecDecodeSelf(d) 28670 } 28671 case "Drain": 28672 if r.TryDecodeAsNil() { 28673 x.Drain = false 28674 } else { 28675 x.Drain = (bool)(r.DecodeBool()) 28676 } 28677 case "MarkEligible": 28678 if r.TryDecodeAsNil() { 28679 x.MarkEligible = false 28680 } else { 28681 x.MarkEligible = (bool)(r.DecodeBool()) 28682 } 28683 case "NodeEvent": 28684 if r.TryDecodeAsNil() { 28685 if true && x.NodeEvent != nil { 28686 x.NodeEvent = nil 28687 } 28688 } else { 28689 if x.NodeEvent == nil { 28690 x.NodeEvent = new(NodeEvent) 28691 } 28692 28693 x.NodeEvent.CodecDecodeSelf(d) 28694 } 28695 case "UpdatedAt": 28696 if r.TryDecodeAsNil() { 28697 x.UpdatedAt = 0 28698 } else { 28699 x.UpdatedAt = (int64)(r.DecodeInt64()) 28700 } 28701 case "Region": 28702 if r.TryDecodeAsNil() { 28703 x.WriteRequest.Region = "" 28704 } else { 28705 x.Region = (string)(r.DecodeString()) 28706 } 28707 case "Namespace": 28708 if r.TryDecodeAsNil() { 28709 x.WriteRequest.Namespace = "" 28710 } else { 28711 x.Namespace = (string)(r.DecodeString()) 28712 } 28713 case "AuthToken": 28714 if r.TryDecodeAsNil() { 28715 x.WriteRequest.AuthToken = "" 28716 } else { 28717 x.AuthToken = (string)(r.DecodeString()) 28718 } 28719 case "Forwarded": 28720 if r.TryDecodeAsNil() { 28721 x.WriteRequest.InternalRpcInfo.Forwarded = false 28722 } else { 28723 x.Forwarded = (bool)(r.DecodeBool()) 28724 } 28725 default: 28726 z.DecStructFieldNotFound(-1, yys3) 28727 } // end switch yys3 28728 } // end for yyj3 28729 r.ReadMapEnd() 28730 } 28731 28732 func (x *NodeUpdateDrainRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 28733 var h codecSelfer100 28734 z, r := codec1978.GenHelperDecoder(d) 28735 _, _, _ = h, z, r 28736 var yyj14 int 28737 var yyb14 bool 28738 var yyhl14 bool = l >= 0 28739 yyj14++ 28740 if yyhl14 { 28741 yyb14 = yyj14 > l 28742 } else { 28743 yyb14 = r.CheckBreak() 28744 } 28745 if yyb14 { 28746 r.ReadArrayEnd() 28747 return 28748 } 28749 r.ReadArrayElem() 28750 if r.TryDecodeAsNil() { 28751 x.NodeID = "" 28752 } else { 28753 x.NodeID = (string)(r.DecodeString()) 28754 } 28755 yyj14++ 28756 if yyhl14 { 28757 yyb14 = yyj14 > l 28758 } else { 28759 yyb14 = r.CheckBreak() 28760 } 28761 if yyb14 { 28762 r.ReadArrayEnd() 28763 return 28764 } 28765 r.ReadArrayElem() 28766 if r.TryDecodeAsNil() { 28767 if true && x.DrainStrategy != nil { 28768 x.DrainStrategy = nil 28769 } 28770 } else { 28771 if x.DrainStrategy == nil { 28772 x.DrainStrategy = new(DrainStrategy) 28773 } 28774 28775 x.DrainStrategy.CodecDecodeSelf(d) 28776 } 28777 yyj14++ 28778 if yyhl14 { 28779 yyb14 = yyj14 > l 28780 } else { 28781 yyb14 = r.CheckBreak() 28782 } 28783 if yyb14 { 28784 r.ReadArrayEnd() 28785 return 28786 } 28787 r.ReadArrayElem() 28788 if r.TryDecodeAsNil() { 28789 x.Drain = false 28790 } else { 28791 x.Drain = (bool)(r.DecodeBool()) 28792 } 28793 yyj14++ 28794 if yyhl14 { 28795 yyb14 = yyj14 > l 28796 } else { 28797 yyb14 = r.CheckBreak() 28798 } 28799 if yyb14 { 28800 r.ReadArrayEnd() 28801 return 28802 } 28803 r.ReadArrayElem() 28804 if r.TryDecodeAsNil() { 28805 x.MarkEligible = false 28806 } else { 28807 x.MarkEligible = (bool)(r.DecodeBool()) 28808 } 28809 yyj14++ 28810 if yyhl14 { 28811 yyb14 = yyj14 > l 28812 } else { 28813 yyb14 = r.CheckBreak() 28814 } 28815 if yyb14 { 28816 r.ReadArrayEnd() 28817 return 28818 } 28819 r.ReadArrayElem() 28820 if r.TryDecodeAsNil() { 28821 if true && x.NodeEvent != nil { 28822 x.NodeEvent = nil 28823 } 28824 } else { 28825 if x.NodeEvent == nil { 28826 x.NodeEvent = new(NodeEvent) 28827 } 28828 28829 x.NodeEvent.CodecDecodeSelf(d) 28830 } 28831 yyj14++ 28832 if yyhl14 { 28833 yyb14 = yyj14 > l 28834 } else { 28835 yyb14 = r.CheckBreak() 28836 } 28837 if yyb14 { 28838 r.ReadArrayEnd() 28839 return 28840 } 28841 r.ReadArrayElem() 28842 if r.TryDecodeAsNil() { 28843 x.UpdatedAt = 0 28844 } else { 28845 x.UpdatedAt = (int64)(r.DecodeInt64()) 28846 } 28847 yyj14++ 28848 if yyhl14 { 28849 yyb14 = yyj14 > l 28850 } else { 28851 yyb14 = r.CheckBreak() 28852 } 28853 if yyb14 { 28854 r.ReadArrayEnd() 28855 return 28856 } 28857 r.ReadArrayElem() 28858 if r.TryDecodeAsNil() { 28859 x.WriteRequest.Region = "" 28860 } else { 28861 x.Region = (string)(r.DecodeString()) 28862 } 28863 yyj14++ 28864 if yyhl14 { 28865 yyb14 = yyj14 > l 28866 } else { 28867 yyb14 = r.CheckBreak() 28868 } 28869 if yyb14 { 28870 r.ReadArrayEnd() 28871 return 28872 } 28873 r.ReadArrayElem() 28874 if r.TryDecodeAsNil() { 28875 x.WriteRequest.Namespace = "" 28876 } else { 28877 x.Namespace = (string)(r.DecodeString()) 28878 } 28879 yyj14++ 28880 if yyhl14 { 28881 yyb14 = yyj14 > l 28882 } else { 28883 yyb14 = r.CheckBreak() 28884 } 28885 if yyb14 { 28886 r.ReadArrayEnd() 28887 return 28888 } 28889 r.ReadArrayElem() 28890 if r.TryDecodeAsNil() { 28891 x.WriteRequest.AuthToken = "" 28892 } else { 28893 x.AuthToken = (string)(r.DecodeString()) 28894 } 28895 yyj14++ 28896 if yyhl14 { 28897 yyb14 = yyj14 > l 28898 } else { 28899 yyb14 = r.CheckBreak() 28900 } 28901 if yyb14 { 28902 r.ReadArrayEnd() 28903 return 28904 } 28905 r.ReadArrayElem() 28906 if r.TryDecodeAsNil() { 28907 x.WriteRequest.InternalRpcInfo.Forwarded = false 28908 } else { 28909 x.Forwarded = (bool)(r.DecodeBool()) 28910 } 28911 for { 28912 yyj14++ 28913 if yyhl14 { 28914 yyb14 = yyj14 > l 28915 } else { 28916 yyb14 = r.CheckBreak() 28917 } 28918 if yyb14 { 28919 break 28920 } 28921 r.ReadArrayElem() 28922 z.DecStructFieldNotFound(yyj14-1, "") 28923 } 28924 r.ReadArrayEnd() 28925 } 28926 28927 func (x *BatchNodeUpdateDrainRequest) CodecEncodeSelf(e *codec1978.Encoder) { 28928 var h codecSelfer100 28929 z, r := codec1978.GenHelperEncoder(e) 28930 _, _, _ = h, z, r 28931 if x == nil { 28932 r.EncodeNil() 28933 } else { 28934 if false { 28935 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 28936 z.EncExtension(x, yyxt1) 28937 } else { 28938 yysep2 := !z.EncBinary() 28939 yy2arr2 := z.EncBasicHandle().StructToArray 28940 _, _ = yysep2, yy2arr2 28941 const yyr2 bool = false // struct tag has 'toArray' 28942 if yyr2 || yy2arr2 { 28943 r.WriteArrayStart(7) 28944 } else { 28945 r.WriteMapStart(7) 28946 } 28947 if yyr2 || yy2arr2 { 28948 r.WriteArrayElem() 28949 if x.Updates == nil { 28950 r.EncodeNil() 28951 } else { 28952 if false { 28953 } else { 28954 h.encMapstringPtrtoDrainUpdate((map[string]*DrainUpdate)(x.Updates), e) 28955 } 28956 } 28957 } else { 28958 r.WriteMapElemKey() 28959 if z.IsJSONHandle() { 28960 z.WriteStr("\"Updates\"") 28961 } else { 28962 r.EncodeStringEnc(codecSelferCcUTF8100, `Updates`) 28963 } 28964 r.WriteMapElemValue() 28965 if x.Updates == nil { 28966 r.EncodeNil() 28967 } else { 28968 if false { 28969 } else { 28970 h.encMapstringPtrtoDrainUpdate((map[string]*DrainUpdate)(x.Updates), e) 28971 } 28972 } 28973 } 28974 if yyr2 || yy2arr2 { 28975 r.WriteArrayElem() 28976 if x.NodeEvents == nil { 28977 r.EncodeNil() 28978 } else { 28979 if false { 28980 } else { 28981 h.encMapstringPtrtoNodeEvent((map[string]*NodeEvent)(x.NodeEvents), e) 28982 } 28983 } 28984 } else { 28985 r.WriteMapElemKey() 28986 if z.IsJSONHandle() { 28987 z.WriteStr("\"NodeEvents\"") 28988 } else { 28989 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvents`) 28990 } 28991 r.WriteMapElemValue() 28992 if x.NodeEvents == nil { 28993 r.EncodeNil() 28994 } else { 28995 if false { 28996 } else { 28997 h.encMapstringPtrtoNodeEvent((map[string]*NodeEvent)(x.NodeEvents), e) 28998 } 28999 } 29000 } 29001 if yyr2 || yy2arr2 { 29002 r.WriteArrayElem() 29003 if false { 29004 } else { 29005 r.EncodeInt(int64(x.UpdatedAt)) 29006 } 29007 } else { 29008 r.WriteMapElemKey() 29009 if z.IsJSONHandle() { 29010 z.WriteStr("\"UpdatedAt\"") 29011 } else { 29012 r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) 29013 } 29014 r.WriteMapElemValue() 29015 if false { 29016 } else { 29017 r.EncodeInt(int64(x.UpdatedAt)) 29018 } 29019 } 29020 if yyr2 || yy2arr2 { 29021 r.WriteArrayElem() 29022 if false { 29023 } else { 29024 if z.EncBasicHandle().StringToRaw { 29025 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 29026 } else { 29027 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 29028 } 29029 } 29030 } else { 29031 r.WriteMapElemKey() 29032 if z.IsJSONHandle() { 29033 z.WriteStr("\"Region\"") 29034 } else { 29035 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 29036 } 29037 r.WriteMapElemValue() 29038 if false { 29039 } else { 29040 if z.EncBasicHandle().StringToRaw { 29041 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 29042 } else { 29043 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 29044 } 29045 } 29046 } 29047 if yyr2 || yy2arr2 { 29048 r.WriteArrayElem() 29049 if false { 29050 } else { 29051 if z.EncBasicHandle().StringToRaw { 29052 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 29053 } else { 29054 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 29055 } 29056 } 29057 } else { 29058 r.WriteMapElemKey() 29059 if z.IsJSONHandle() { 29060 z.WriteStr("\"Namespace\"") 29061 } else { 29062 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 29063 } 29064 r.WriteMapElemValue() 29065 if false { 29066 } else { 29067 if z.EncBasicHandle().StringToRaw { 29068 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 29069 } else { 29070 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 29071 } 29072 } 29073 } 29074 if yyr2 || yy2arr2 { 29075 r.WriteArrayElem() 29076 if false { 29077 } else { 29078 if z.EncBasicHandle().StringToRaw { 29079 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 29080 } else { 29081 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 29082 } 29083 } 29084 } else { 29085 r.WriteMapElemKey() 29086 if z.IsJSONHandle() { 29087 z.WriteStr("\"AuthToken\"") 29088 } else { 29089 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 29090 } 29091 r.WriteMapElemValue() 29092 if false { 29093 } else { 29094 if z.EncBasicHandle().StringToRaw { 29095 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 29096 } else { 29097 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 29098 } 29099 } 29100 } 29101 if yyr2 || yy2arr2 { 29102 r.WriteArrayElem() 29103 if false { 29104 } else { 29105 r.EncodeBool(bool(x.Forwarded)) 29106 } 29107 } else { 29108 r.WriteMapElemKey() 29109 if z.IsJSONHandle() { 29110 z.WriteStr("\"Forwarded\"") 29111 } else { 29112 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 29113 } 29114 r.WriteMapElemValue() 29115 if false { 29116 } else { 29117 r.EncodeBool(bool(x.Forwarded)) 29118 } 29119 } 29120 if yyr2 || yy2arr2 { 29121 r.WriteArrayEnd() 29122 } else { 29123 r.WriteMapEnd() 29124 } 29125 } 29126 } 29127 } 29128 29129 func (x *BatchNodeUpdateDrainRequest) CodecDecodeSelf(d *codec1978.Decoder) { 29130 var h codecSelfer100 29131 z, r := codec1978.GenHelperDecoder(d) 29132 _, _, _ = h, z, r 29133 if false { 29134 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 29135 z.DecExtension(x, yyxt1) 29136 } else { 29137 yyct2 := r.ContainerType() 29138 if yyct2 == codecSelferValueTypeMap100 { 29139 yyl2 := r.ReadMapStart() 29140 if yyl2 == 0 { 29141 r.ReadMapEnd() 29142 } else { 29143 x.codecDecodeSelfFromMap(yyl2, d) 29144 } 29145 } else if yyct2 == codecSelferValueTypeArray100 { 29146 yyl2 := r.ReadArrayStart() 29147 if yyl2 == 0 { 29148 r.ReadArrayEnd() 29149 } else { 29150 x.codecDecodeSelfFromArray(yyl2, d) 29151 } 29152 } else { 29153 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 29154 } 29155 } 29156 } 29157 29158 func (x *BatchNodeUpdateDrainRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 29159 var h codecSelfer100 29160 z, r := codec1978.GenHelperDecoder(d) 29161 _, _, _ = h, z, r 29162 var yyhl3 bool = l >= 0 29163 for yyj3 := 0; ; yyj3++ { 29164 if yyhl3 { 29165 if yyj3 >= l { 29166 break 29167 } 29168 } else { 29169 if r.CheckBreak() { 29170 break 29171 } 29172 } 29173 r.ReadMapElemKey() 29174 yys3 := z.StringView(r.DecodeStringAsBytes()) 29175 r.ReadMapElemValue() 29176 switch yys3 { 29177 case "Updates": 29178 if r.TryDecodeAsNil() { 29179 x.Updates = nil 29180 } else { 29181 if false { 29182 } else { 29183 h.decMapstringPtrtoDrainUpdate((*map[string]*DrainUpdate)(&x.Updates), d) 29184 } 29185 } 29186 case "NodeEvents": 29187 if r.TryDecodeAsNil() { 29188 x.NodeEvents = nil 29189 } else { 29190 if false { 29191 } else { 29192 h.decMapstringPtrtoNodeEvent((*map[string]*NodeEvent)(&x.NodeEvents), d) 29193 } 29194 } 29195 case "UpdatedAt": 29196 if r.TryDecodeAsNil() { 29197 x.UpdatedAt = 0 29198 } else { 29199 x.UpdatedAt = (int64)(r.DecodeInt64()) 29200 } 29201 case "Region": 29202 if r.TryDecodeAsNil() { 29203 x.WriteRequest.Region = "" 29204 } else { 29205 x.Region = (string)(r.DecodeString()) 29206 } 29207 case "Namespace": 29208 if r.TryDecodeAsNil() { 29209 x.WriteRequest.Namespace = "" 29210 } else { 29211 x.Namespace = (string)(r.DecodeString()) 29212 } 29213 case "AuthToken": 29214 if r.TryDecodeAsNil() { 29215 x.WriteRequest.AuthToken = "" 29216 } else { 29217 x.AuthToken = (string)(r.DecodeString()) 29218 } 29219 case "Forwarded": 29220 if r.TryDecodeAsNil() { 29221 x.WriteRequest.InternalRpcInfo.Forwarded = false 29222 } else { 29223 x.Forwarded = (bool)(r.DecodeBool()) 29224 } 29225 default: 29226 z.DecStructFieldNotFound(-1, yys3) 29227 } // end switch yys3 29228 } // end for yyj3 29229 r.ReadMapEnd() 29230 } 29231 29232 func (x *BatchNodeUpdateDrainRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 29233 var h codecSelfer100 29234 z, r := codec1978.GenHelperDecoder(d) 29235 _, _, _ = h, z, r 29236 var yyj13 int 29237 var yyb13 bool 29238 var yyhl13 bool = l >= 0 29239 yyj13++ 29240 if yyhl13 { 29241 yyb13 = yyj13 > l 29242 } else { 29243 yyb13 = r.CheckBreak() 29244 } 29245 if yyb13 { 29246 r.ReadArrayEnd() 29247 return 29248 } 29249 r.ReadArrayElem() 29250 if r.TryDecodeAsNil() { 29251 x.Updates = nil 29252 } else { 29253 if false { 29254 } else { 29255 h.decMapstringPtrtoDrainUpdate((*map[string]*DrainUpdate)(&x.Updates), d) 29256 } 29257 } 29258 yyj13++ 29259 if yyhl13 { 29260 yyb13 = yyj13 > l 29261 } else { 29262 yyb13 = r.CheckBreak() 29263 } 29264 if yyb13 { 29265 r.ReadArrayEnd() 29266 return 29267 } 29268 r.ReadArrayElem() 29269 if r.TryDecodeAsNil() { 29270 x.NodeEvents = nil 29271 } else { 29272 if false { 29273 } else { 29274 h.decMapstringPtrtoNodeEvent((*map[string]*NodeEvent)(&x.NodeEvents), d) 29275 } 29276 } 29277 yyj13++ 29278 if yyhl13 { 29279 yyb13 = yyj13 > l 29280 } else { 29281 yyb13 = r.CheckBreak() 29282 } 29283 if yyb13 { 29284 r.ReadArrayEnd() 29285 return 29286 } 29287 r.ReadArrayElem() 29288 if r.TryDecodeAsNil() { 29289 x.UpdatedAt = 0 29290 } else { 29291 x.UpdatedAt = (int64)(r.DecodeInt64()) 29292 } 29293 yyj13++ 29294 if yyhl13 { 29295 yyb13 = yyj13 > l 29296 } else { 29297 yyb13 = r.CheckBreak() 29298 } 29299 if yyb13 { 29300 r.ReadArrayEnd() 29301 return 29302 } 29303 r.ReadArrayElem() 29304 if r.TryDecodeAsNil() { 29305 x.WriteRequest.Region = "" 29306 } else { 29307 x.Region = (string)(r.DecodeString()) 29308 } 29309 yyj13++ 29310 if yyhl13 { 29311 yyb13 = yyj13 > l 29312 } else { 29313 yyb13 = r.CheckBreak() 29314 } 29315 if yyb13 { 29316 r.ReadArrayEnd() 29317 return 29318 } 29319 r.ReadArrayElem() 29320 if r.TryDecodeAsNil() { 29321 x.WriteRequest.Namespace = "" 29322 } else { 29323 x.Namespace = (string)(r.DecodeString()) 29324 } 29325 yyj13++ 29326 if yyhl13 { 29327 yyb13 = yyj13 > l 29328 } else { 29329 yyb13 = r.CheckBreak() 29330 } 29331 if yyb13 { 29332 r.ReadArrayEnd() 29333 return 29334 } 29335 r.ReadArrayElem() 29336 if r.TryDecodeAsNil() { 29337 x.WriteRequest.AuthToken = "" 29338 } else { 29339 x.AuthToken = (string)(r.DecodeString()) 29340 } 29341 yyj13++ 29342 if yyhl13 { 29343 yyb13 = yyj13 > l 29344 } else { 29345 yyb13 = r.CheckBreak() 29346 } 29347 if yyb13 { 29348 r.ReadArrayEnd() 29349 return 29350 } 29351 r.ReadArrayElem() 29352 if r.TryDecodeAsNil() { 29353 x.WriteRequest.InternalRpcInfo.Forwarded = false 29354 } else { 29355 x.Forwarded = (bool)(r.DecodeBool()) 29356 } 29357 for { 29358 yyj13++ 29359 if yyhl13 { 29360 yyb13 = yyj13 > l 29361 } else { 29362 yyb13 = r.CheckBreak() 29363 } 29364 if yyb13 { 29365 break 29366 } 29367 r.ReadArrayElem() 29368 z.DecStructFieldNotFound(yyj13-1, "") 29369 } 29370 r.ReadArrayEnd() 29371 } 29372 29373 func (x *DrainUpdate) CodecEncodeSelf(e *codec1978.Encoder) { 29374 var h codecSelfer100 29375 z, r := codec1978.GenHelperEncoder(e) 29376 _, _, _ = h, z, r 29377 if x == nil { 29378 r.EncodeNil() 29379 } else { 29380 if false { 29381 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 29382 z.EncExtension(x, yyxt1) 29383 } else { 29384 yysep2 := !z.EncBinary() 29385 yy2arr2 := z.EncBasicHandle().StructToArray 29386 _, _ = yysep2, yy2arr2 29387 const yyr2 bool = false // struct tag has 'toArray' 29388 if yyr2 || yy2arr2 { 29389 r.WriteArrayStart(2) 29390 } else { 29391 r.WriteMapStart(2) 29392 } 29393 var yyn3 bool 29394 if x.DrainStrategy == nil { 29395 yyn3 = true 29396 goto LABEL3 29397 } 29398 LABEL3: 29399 if yyr2 || yy2arr2 { 29400 if yyn3 { 29401 r.WriteArrayElem() 29402 r.EncodeNil() 29403 } else { 29404 r.WriteArrayElem() 29405 if x.DrainStrategy == nil { 29406 r.EncodeNil() 29407 } else { 29408 x.DrainStrategy.CodecEncodeSelf(e) 29409 } 29410 } 29411 } else { 29412 r.WriteMapElemKey() 29413 if z.IsJSONHandle() { 29414 z.WriteStr("\"DrainStrategy\"") 29415 } else { 29416 r.EncodeStringEnc(codecSelferCcUTF8100, `DrainStrategy`) 29417 } 29418 r.WriteMapElemValue() 29419 if yyn3 { 29420 r.EncodeNil() 29421 } else { 29422 if x.DrainStrategy == nil { 29423 r.EncodeNil() 29424 } else { 29425 x.DrainStrategy.CodecEncodeSelf(e) 29426 } 29427 } 29428 } 29429 if yyr2 || yy2arr2 { 29430 r.WriteArrayElem() 29431 if false { 29432 } else { 29433 r.EncodeBool(bool(x.MarkEligible)) 29434 } 29435 } else { 29436 r.WriteMapElemKey() 29437 if z.IsJSONHandle() { 29438 z.WriteStr("\"MarkEligible\"") 29439 } else { 29440 r.EncodeStringEnc(codecSelferCcUTF8100, `MarkEligible`) 29441 } 29442 r.WriteMapElemValue() 29443 if false { 29444 } else { 29445 r.EncodeBool(bool(x.MarkEligible)) 29446 } 29447 } 29448 if yyr2 || yy2arr2 { 29449 r.WriteArrayEnd() 29450 } else { 29451 r.WriteMapEnd() 29452 } 29453 } 29454 } 29455 } 29456 29457 func (x *DrainUpdate) CodecDecodeSelf(d *codec1978.Decoder) { 29458 var h codecSelfer100 29459 z, r := codec1978.GenHelperDecoder(d) 29460 _, _, _ = h, z, r 29461 if false { 29462 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 29463 z.DecExtension(x, yyxt1) 29464 } else { 29465 yyct2 := r.ContainerType() 29466 if yyct2 == codecSelferValueTypeMap100 { 29467 yyl2 := r.ReadMapStart() 29468 if yyl2 == 0 { 29469 r.ReadMapEnd() 29470 } else { 29471 x.codecDecodeSelfFromMap(yyl2, d) 29472 } 29473 } else if yyct2 == codecSelferValueTypeArray100 { 29474 yyl2 := r.ReadArrayStart() 29475 if yyl2 == 0 { 29476 r.ReadArrayEnd() 29477 } else { 29478 x.codecDecodeSelfFromArray(yyl2, d) 29479 } 29480 } else { 29481 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 29482 } 29483 } 29484 } 29485 29486 func (x *DrainUpdate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 29487 var h codecSelfer100 29488 z, r := codec1978.GenHelperDecoder(d) 29489 _, _, _ = h, z, r 29490 var yyhl3 bool = l >= 0 29491 for yyj3 := 0; ; yyj3++ { 29492 if yyhl3 { 29493 if yyj3 >= l { 29494 break 29495 } 29496 } else { 29497 if r.CheckBreak() { 29498 break 29499 } 29500 } 29501 r.ReadMapElemKey() 29502 yys3 := z.StringView(r.DecodeStringAsBytes()) 29503 r.ReadMapElemValue() 29504 switch yys3 { 29505 case "DrainStrategy": 29506 if r.TryDecodeAsNil() { 29507 if true && x.DrainStrategy != nil { 29508 x.DrainStrategy = nil 29509 } 29510 } else { 29511 if x.DrainStrategy == nil { 29512 x.DrainStrategy = new(DrainStrategy) 29513 } 29514 29515 x.DrainStrategy.CodecDecodeSelf(d) 29516 } 29517 case "MarkEligible": 29518 if r.TryDecodeAsNil() { 29519 x.MarkEligible = false 29520 } else { 29521 x.MarkEligible = (bool)(r.DecodeBool()) 29522 } 29523 default: 29524 z.DecStructFieldNotFound(-1, yys3) 29525 } // end switch yys3 29526 } // end for yyj3 29527 r.ReadMapEnd() 29528 } 29529 29530 func (x *DrainUpdate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 29531 var h codecSelfer100 29532 z, r := codec1978.GenHelperDecoder(d) 29533 _, _, _ = h, z, r 29534 var yyj6 int 29535 var yyb6 bool 29536 var yyhl6 bool = l >= 0 29537 yyj6++ 29538 if yyhl6 { 29539 yyb6 = yyj6 > l 29540 } else { 29541 yyb6 = r.CheckBreak() 29542 } 29543 if yyb6 { 29544 r.ReadArrayEnd() 29545 return 29546 } 29547 r.ReadArrayElem() 29548 if r.TryDecodeAsNil() { 29549 if true && x.DrainStrategy != nil { 29550 x.DrainStrategy = nil 29551 } 29552 } else { 29553 if x.DrainStrategy == nil { 29554 x.DrainStrategy = new(DrainStrategy) 29555 } 29556 29557 x.DrainStrategy.CodecDecodeSelf(d) 29558 } 29559 yyj6++ 29560 if yyhl6 { 29561 yyb6 = yyj6 > l 29562 } else { 29563 yyb6 = r.CheckBreak() 29564 } 29565 if yyb6 { 29566 r.ReadArrayEnd() 29567 return 29568 } 29569 r.ReadArrayElem() 29570 if r.TryDecodeAsNil() { 29571 x.MarkEligible = false 29572 } else { 29573 x.MarkEligible = (bool)(r.DecodeBool()) 29574 } 29575 for { 29576 yyj6++ 29577 if yyhl6 { 29578 yyb6 = yyj6 > l 29579 } else { 29580 yyb6 = r.CheckBreak() 29581 } 29582 if yyb6 { 29583 break 29584 } 29585 r.ReadArrayElem() 29586 z.DecStructFieldNotFound(yyj6-1, "") 29587 } 29588 r.ReadArrayEnd() 29589 } 29590 29591 func (x *NodeUpdateEligibilityRequest) CodecEncodeSelf(e *codec1978.Encoder) { 29592 var h codecSelfer100 29593 z, r := codec1978.GenHelperEncoder(e) 29594 _, _, _ = h, z, r 29595 if x == nil { 29596 r.EncodeNil() 29597 } else { 29598 if false { 29599 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 29600 z.EncExtension(x, yyxt1) 29601 } else { 29602 yysep2 := !z.EncBinary() 29603 yy2arr2 := z.EncBasicHandle().StructToArray 29604 _, _ = yysep2, yy2arr2 29605 const yyr2 bool = false // struct tag has 'toArray' 29606 if yyr2 || yy2arr2 { 29607 r.WriteArrayStart(8) 29608 } else { 29609 r.WriteMapStart(8) 29610 } 29611 if yyr2 || yy2arr2 { 29612 r.WriteArrayElem() 29613 if false { 29614 } else { 29615 if z.EncBasicHandle().StringToRaw { 29616 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 29617 } else { 29618 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 29619 } 29620 } 29621 } else { 29622 r.WriteMapElemKey() 29623 if z.IsJSONHandle() { 29624 z.WriteStr("\"NodeID\"") 29625 } else { 29626 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 29627 } 29628 r.WriteMapElemValue() 29629 if false { 29630 } else { 29631 if z.EncBasicHandle().StringToRaw { 29632 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 29633 } else { 29634 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 29635 } 29636 } 29637 } 29638 if yyr2 || yy2arr2 { 29639 r.WriteArrayElem() 29640 if false { 29641 } else { 29642 if z.EncBasicHandle().StringToRaw { 29643 r.EncodeStringBytesRaw(z.BytesView(string(x.Eligibility))) 29644 } else { 29645 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Eligibility)) 29646 } 29647 } 29648 } else { 29649 r.WriteMapElemKey() 29650 if z.IsJSONHandle() { 29651 z.WriteStr("\"Eligibility\"") 29652 } else { 29653 r.EncodeStringEnc(codecSelferCcUTF8100, `Eligibility`) 29654 } 29655 r.WriteMapElemValue() 29656 if false { 29657 } else { 29658 if z.EncBasicHandle().StringToRaw { 29659 r.EncodeStringBytesRaw(z.BytesView(string(x.Eligibility))) 29660 } else { 29661 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Eligibility)) 29662 } 29663 } 29664 } 29665 var yyn9 bool 29666 if x.NodeEvent == nil { 29667 yyn9 = true 29668 goto LABEL9 29669 } 29670 LABEL9: 29671 if yyr2 || yy2arr2 { 29672 if yyn9 { 29673 r.WriteArrayElem() 29674 r.EncodeNil() 29675 } else { 29676 r.WriteArrayElem() 29677 if x.NodeEvent == nil { 29678 r.EncodeNil() 29679 } else { 29680 x.NodeEvent.CodecEncodeSelf(e) 29681 } 29682 } 29683 } else { 29684 r.WriteMapElemKey() 29685 if z.IsJSONHandle() { 29686 z.WriteStr("\"NodeEvent\"") 29687 } else { 29688 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvent`) 29689 } 29690 r.WriteMapElemValue() 29691 if yyn9 { 29692 r.EncodeNil() 29693 } else { 29694 if x.NodeEvent == nil { 29695 r.EncodeNil() 29696 } else { 29697 x.NodeEvent.CodecEncodeSelf(e) 29698 } 29699 } 29700 } 29701 if yyr2 || yy2arr2 { 29702 r.WriteArrayElem() 29703 if false { 29704 } else { 29705 r.EncodeInt(int64(x.UpdatedAt)) 29706 } 29707 } else { 29708 r.WriteMapElemKey() 29709 if z.IsJSONHandle() { 29710 z.WriteStr("\"UpdatedAt\"") 29711 } else { 29712 r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) 29713 } 29714 r.WriteMapElemValue() 29715 if false { 29716 } else { 29717 r.EncodeInt(int64(x.UpdatedAt)) 29718 } 29719 } 29720 if yyr2 || yy2arr2 { 29721 r.WriteArrayElem() 29722 if false { 29723 } else { 29724 if z.EncBasicHandle().StringToRaw { 29725 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 29726 } else { 29727 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 29728 } 29729 } 29730 } else { 29731 r.WriteMapElemKey() 29732 if z.IsJSONHandle() { 29733 z.WriteStr("\"Region\"") 29734 } else { 29735 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 29736 } 29737 r.WriteMapElemValue() 29738 if false { 29739 } else { 29740 if z.EncBasicHandle().StringToRaw { 29741 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 29742 } else { 29743 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 29744 } 29745 } 29746 } 29747 if yyr2 || yy2arr2 { 29748 r.WriteArrayElem() 29749 if false { 29750 } else { 29751 if z.EncBasicHandle().StringToRaw { 29752 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 29753 } else { 29754 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 29755 } 29756 } 29757 } else { 29758 r.WriteMapElemKey() 29759 if z.IsJSONHandle() { 29760 z.WriteStr("\"Namespace\"") 29761 } else { 29762 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 29763 } 29764 r.WriteMapElemValue() 29765 if false { 29766 } else { 29767 if z.EncBasicHandle().StringToRaw { 29768 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 29769 } else { 29770 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 29771 } 29772 } 29773 } 29774 if yyr2 || yy2arr2 { 29775 r.WriteArrayElem() 29776 if false { 29777 } else { 29778 if z.EncBasicHandle().StringToRaw { 29779 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 29780 } else { 29781 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 29782 } 29783 } 29784 } else { 29785 r.WriteMapElemKey() 29786 if z.IsJSONHandle() { 29787 z.WriteStr("\"AuthToken\"") 29788 } else { 29789 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 29790 } 29791 r.WriteMapElemValue() 29792 if false { 29793 } else { 29794 if z.EncBasicHandle().StringToRaw { 29795 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 29796 } else { 29797 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 29798 } 29799 } 29800 } 29801 if yyr2 || yy2arr2 { 29802 r.WriteArrayElem() 29803 if false { 29804 } else { 29805 r.EncodeBool(bool(x.Forwarded)) 29806 } 29807 } else { 29808 r.WriteMapElemKey() 29809 if z.IsJSONHandle() { 29810 z.WriteStr("\"Forwarded\"") 29811 } else { 29812 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 29813 } 29814 r.WriteMapElemValue() 29815 if false { 29816 } else { 29817 r.EncodeBool(bool(x.Forwarded)) 29818 } 29819 } 29820 if yyr2 || yy2arr2 { 29821 r.WriteArrayEnd() 29822 } else { 29823 r.WriteMapEnd() 29824 } 29825 } 29826 } 29827 } 29828 29829 func (x *NodeUpdateEligibilityRequest) CodecDecodeSelf(d *codec1978.Decoder) { 29830 var h codecSelfer100 29831 z, r := codec1978.GenHelperDecoder(d) 29832 _, _, _ = h, z, r 29833 if false { 29834 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 29835 z.DecExtension(x, yyxt1) 29836 } else { 29837 yyct2 := r.ContainerType() 29838 if yyct2 == codecSelferValueTypeMap100 { 29839 yyl2 := r.ReadMapStart() 29840 if yyl2 == 0 { 29841 r.ReadMapEnd() 29842 } else { 29843 x.codecDecodeSelfFromMap(yyl2, d) 29844 } 29845 } else if yyct2 == codecSelferValueTypeArray100 { 29846 yyl2 := r.ReadArrayStart() 29847 if yyl2 == 0 { 29848 r.ReadArrayEnd() 29849 } else { 29850 x.codecDecodeSelfFromArray(yyl2, d) 29851 } 29852 } else { 29853 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 29854 } 29855 } 29856 } 29857 29858 func (x *NodeUpdateEligibilityRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 29859 var h codecSelfer100 29860 z, r := codec1978.GenHelperDecoder(d) 29861 _, _, _ = h, z, r 29862 var yyhl3 bool = l >= 0 29863 for yyj3 := 0; ; yyj3++ { 29864 if yyhl3 { 29865 if yyj3 >= l { 29866 break 29867 } 29868 } else { 29869 if r.CheckBreak() { 29870 break 29871 } 29872 } 29873 r.ReadMapElemKey() 29874 yys3 := z.StringView(r.DecodeStringAsBytes()) 29875 r.ReadMapElemValue() 29876 switch yys3 { 29877 case "NodeID": 29878 if r.TryDecodeAsNil() { 29879 x.NodeID = "" 29880 } else { 29881 x.NodeID = (string)(r.DecodeString()) 29882 } 29883 case "Eligibility": 29884 if r.TryDecodeAsNil() { 29885 x.Eligibility = "" 29886 } else { 29887 x.Eligibility = (string)(r.DecodeString()) 29888 } 29889 case "NodeEvent": 29890 if r.TryDecodeAsNil() { 29891 if true && x.NodeEvent != nil { 29892 x.NodeEvent = nil 29893 } 29894 } else { 29895 if x.NodeEvent == nil { 29896 x.NodeEvent = new(NodeEvent) 29897 } 29898 29899 x.NodeEvent.CodecDecodeSelf(d) 29900 } 29901 case "UpdatedAt": 29902 if r.TryDecodeAsNil() { 29903 x.UpdatedAt = 0 29904 } else { 29905 x.UpdatedAt = (int64)(r.DecodeInt64()) 29906 } 29907 case "Region": 29908 if r.TryDecodeAsNil() { 29909 x.WriteRequest.Region = "" 29910 } else { 29911 x.Region = (string)(r.DecodeString()) 29912 } 29913 case "Namespace": 29914 if r.TryDecodeAsNil() { 29915 x.WriteRequest.Namespace = "" 29916 } else { 29917 x.Namespace = (string)(r.DecodeString()) 29918 } 29919 case "AuthToken": 29920 if r.TryDecodeAsNil() { 29921 x.WriteRequest.AuthToken = "" 29922 } else { 29923 x.AuthToken = (string)(r.DecodeString()) 29924 } 29925 case "Forwarded": 29926 if r.TryDecodeAsNil() { 29927 x.WriteRequest.InternalRpcInfo.Forwarded = false 29928 } else { 29929 x.Forwarded = (bool)(r.DecodeBool()) 29930 } 29931 default: 29932 z.DecStructFieldNotFound(-1, yys3) 29933 } // end switch yys3 29934 } // end for yyj3 29935 r.ReadMapEnd() 29936 } 29937 29938 func (x *NodeUpdateEligibilityRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 29939 var h codecSelfer100 29940 z, r := codec1978.GenHelperDecoder(d) 29941 _, _, _ = h, z, r 29942 var yyj12 int 29943 var yyb12 bool 29944 var yyhl12 bool = l >= 0 29945 yyj12++ 29946 if yyhl12 { 29947 yyb12 = yyj12 > l 29948 } else { 29949 yyb12 = r.CheckBreak() 29950 } 29951 if yyb12 { 29952 r.ReadArrayEnd() 29953 return 29954 } 29955 r.ReadArrayElem() 29956 if r.TryDecodeAsNil() { 29957 x.NodeID = "" 29958 } else { 29959 x.NodeID = (string)(r.DecodeString()) 29960 } 29961 yyj12++ 29962 if yyhl12 { 29963 yyb12 = yyj12 > l 29964 } else { 29965 yyb12 = r.CheckBreak() 29966 } 29967 if yyb12 { 29968 r.ReadArrayEnd() 29969 return 29970 } 29971 r.ReadArrayElem() 29972 if r.TryDecodeAsNil() { 29973 x.Eligibility = "" 29974 } else { 29975 x.Eligibility = (string)(r.DecodeString()) 29976 } 29977 yyj12++ 29978 if yyhl12 { 29979 yyb12 = yyj12 > l 29980 } else { 29981 yyb12 = r.CheckBreak() 29982 } 29983 if yyb12 { 29984 r.ReadArrayEnd() 29985 return 29986 } 29987 r.ReadArrayElem() 29988 if r.TryDecodeAsNil() { 29989 if true && x.NodeEvent != nil { 29990 x.NodeEvent = nil 29991 } 29992 } else { 29993 if x.NodeEvent == nil { 29994 x.NodeEvent = new(NodeEvent) 29995 } 29996 29997 x.NodeEvent.CodecDecodeSelf(d) 29998 } 29999 yyj12++ 30000 if yyhl12 { 30001 yyb12 = yyj12 > l 30002 } else { 30003 yyb12 = r.CheckBreak() 30004 } 30005 if yyb12 { 30006 r.ReadArrayEnd() 30007 return 30008 } 30009 r.ReadArrayElem() 30010 if r.TryDecodeAsNil() { 30011 x.UpdatedAt = 0 30012 } else { 30013 x.UpdatedAt = (int64)(r.DecodeInt64()) 30014 } 30015 yyj12++ 30016 if yyhl12 { 30017 yyb12 = yyj12 > l 30018 } else { 30019 yyb12 = r.CheckBreak() 30020 } 30021 if yyb12 { 30022 r.ReadArrayEnd() 30023 return 30024 } 30025 r.ReadArrayElem() 30026 if r.TryDecodeAsNil() { 30027 x.WriteRequest.Region = "" 30028 } else { 30029 x.Region = (string)(r.DecodeString()) 30030 } 30031 yyj12++ 30032 if yyhl12 { 30033 yyb12 = yyj12 > l 30034 } else { 30035 yyb12 = r.CheckBreak() 30036 } 30037 if yyb12 { 30038 r.ReadArrayEnd() 30039 return 30040 } 30041 r.ReadArrayElem() 30042 if r.TryDecodeAsNil() { 30043 x.WriteRequest.Namespace = "" 30044 } else { 30045 x.Namespace = (string)(r.DecodeString()) 30046 } 30047 yyj12++ 30048 if yyhl12 { 30049 yyb12 = yyj12 > l 30050 } else { 30051 yyb12 = r.CheckBreak() 30052 } 30053 if yyb12 { 30054 r.ReadArrayEnd() 30055 return 30056 } 30057 r.ReadArrayElem() 30058 if r.TryDecodeAsNil() { 30059 x.WriteRequest.AuthToken = "" 30060 } else { 30061 x.AuthToken = (string)(r.DecodeString()) 30062 } 30063 yyj12++ 30064 if yyhl12 { 30065 yyb12 = yyj12 > l 30066 } else { 30067 yyb12 = r.CheckBreak() 30068 } 30069 if yyb12 { 30070 r.ReadArrayEnd() 30071 return 30072 } 30073 r.ReadArrayElem() 30074 if r.TryDecodeAsNil() { 30075 x.WriteRequest.InternalRpcInfo.Forwarded = false 30076 } else { 30077 x.Forwarded = (bool)(r.DecodeBool()) 30078 } 30079 for { 30080 yyj12++ 30081 if yyhl12 { 30082 yyb12 = yyj12 > l 30083 } else { 30084 yyb12 = r.CheckBreak() 30085 } 30086 if yyb12 { 30087 break 30088 } 30089 r.ReadArrayElem() 30090 z.DecStructFieldNotFound(yyj12-1, "") 30091 } 30092 r.ReadArrayEnd() 30093 } 30094 30095 func (x *NodeEvaluateRequest) CodecEncodeSelf(e *codec1978.Encoder) { 30096 var h codecSelfer100 30097 z, r := codec1978.GenHelperEncoder(e) 30098 _, _, _ = h, z, r 30099 if x == nil { 30100 r.EncodeNil() 30101 } else { 30102 if false { 30103 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 30104 z.EncExtension(x, yyxt1) 30105 } else { 30106 yysep2 := !z.EncBinary() 30107 yy2arr2 := z.EncBasicHandle().StructToArray 30108 _, _ = yysep2, yy2arr2 30109 const yyr2 bool = false // struct tag has 'toArray' 30110 if yyr2 || yy2arr2 { 30111 r.WriteArrayStart(5) 30112 } else { 30113 r.WriteMapStart(5) 30114 } 30115 if yyr2 || yy2arr2 { 30116 r.WriteArrayElem() 30117 if false { 30118 } else { 30119 if z.EncBasicHandle().StringToRaw { 30120 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 30121 } else { 30122 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 30123 } 30124 } 30125 } else { 30126 r.WriteMapElemKey() 30127 if z.IsJSONHandle() { 30128 z.WriteStr("\"NodeID\"") 30129 } else { 30130 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 30131 } 30132 r.WriteMapElemValue() 30133 if false { 30134 } else { 30135 if z.EncBasicHandle().StringToRaw { 30136 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 30137 } else { 30138 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 30139 } 30140 } 30141 } 30142 if yyr2 || yy2arr2 { 30143 r.WriteArrayElem() 30144 if false { 30145 } else { 30146 if z.EncBasicHandle().StringToRaw { 30147 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 30148 } else { 30149 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 30150 } 30151 } 30152 } else { 30153 r.WriteMapElemKey() 30154 if z.IsJSONHandle() { 30155 z.WriteStr("\"Region\"") 30156 } else { 30157 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 30158 } 30159 r.WriteMapElemValue() 30160 if false { 30161 } else { 30162 if z.EncBasicHandle().StringToRaw { 30163 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 30164 } else { 30165 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 30166 } 30167 } 30168 } 30169 if yyr2 || yy2arr2 { 30170 r.WriteArrayElem() 30171 if false { 30172 } else { 30173 if z.EncBasicHandle().StringToRaw { 30174 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 30175 } else { 30176 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 30177 } 30178 } 30179 } else { 30180 r.WriteMapElemKey() 30181 if z.IsJSONHandle() { 30182 z.WriteStr("\"Namespace\"") 30183 } else { 30184 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 30185 } 30186 r.WriteMapElemValue() 30187 if false { 30188 } else { 30189 if z.EncBasicHandle().StringToRaw { 30190 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 30191 } else { 30192 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 30193 } 30194 } 30195 } 30196 if yyr2 || yy2arr2 { 30197 r.WriteArrayElem() 30198 if false { 30199 } else { 30200 if z.EncBasicHandle().StringToRaw { 30201 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 30202 } else { 30203 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 30204 } 30205 } 30206 } else { 30207 r.WriteMapElemKey() 30208 if z.IsJSONHandle() { 30209 z.WriteStr("\"AuthToken\"") 30210 } else { 30211 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 30212 } 30213 r.WriteMapElemValue() 30214 if false { 30215 } else { 30216 if z.EncBasicHandle().StringToRaw { 30217 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 30218 } else { 30219 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 30220 } 30221 } 30222 } 30223 if yyr2 || yy2arr2 { 30224 r.WriteArrayElem() 30225 if false { 30226 } else { 30227 r.EncodeBool(bool(x.Forwarded)) 30228 } 30229 } else { 30230 r.WriteMapElemKey() 30231 if z.IsJSONHandle() { 30232 z.WriteStr("\"Forwarded\"") 30233 } else { 30234 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 30235 } 30236 r.WriteMapElemValue() 30237 if false { 30238 } else { 30239 r.EncodeBool(bool(x.Forwarded)) 30240 } 30241 } 30242 if yyr2 || yy2arr2 { 30243 r.WriteArrayEnd() 30244 } else { 30245 r.WriteMapEnd() 30246 } 30247 } 30248 } 30249 } 30250 30251 func (x *NodeEvaluateRequest) CodecDecodeSelf(d *codec1978.Decoder) { 30252 var h codecSelfer100 30253 z, r := codec1978.GenHelperDecoder(d) 30254 _, _, _ = h, z, r 30255 if false { 30256 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 30257 z.DecExtension(x, yyxt1) 30258 } else { 30259 yyct2 := r.ContainerType() 30260 if yyct2 == codecSelferValueTypeMap100 { 30261 yyl2 := r.ReadMapStart() 30262 if yyl2 == 0 { 30263 r.ReadMapEnd() 30264 } else { 30265 x.codecDecodeSelfFromMap(yyl2, d) 30266 } 30267 } else if yyct2 == codecSelferValueTypeArray100 { 30268 yyl2 := r.ReadArrayStart() 30269 if yyl2 == 0 { 30270 r.ReadArrayEnd() 30271 } else { 30272 x.codecDecodeSelfFromArray(yyl2, d) 30273 } 30274 } else { 30275 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 30276 } 30277 } 30278 } 30279 30280 func (x *NodeEvaluateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 30281 var h codecSelfer100 30282 z, r := codec1978.GenHelperDecoder(d) 30283 _, _, _ = h, z, r 30284 var yyhl3 bool = l >= 0 30285 for yyj3 := 0; ; yyj3++ { 30286 if yyhl3 { 30287 if yyj3 >= l { 30288 break 30289 } 30290 } else { 30291 if r.CheckBreak() { 30292 break 30293 } 30294 } 30295 r.ReadMapElemKey() 30296 yys3 := z.StringView(r.DecodeStringAsBytes()) 30297 r.ReadMapElemValue() 30298 switch yys3 { 30299 case "NodeID": 30300 if r.TryDecodeAsNil() { 30301 x.NodeID = "" 30302 } else { 30303 x.NodeID = (string)(r.DecodeString()) 30304 } 30305 case "Region": 30306 if r.TryDecodeAsNil() { 30307 x.WriteRequest.Region = "" 30308 } else { 30309 x.Region = (string)(r.DecodeString()) 30310 } 30311 case "Namespace": 30312 if r.TryDecodeAsNil() { 30313 x.WriteRequest.Namespace = "" 30314 } else { 30315 x.Namespace = (string)(r.DecodeString()) 30316 } 30317 case "AuthToken": 30318 if r.TryDecodeAsNil() { 30319 x.WriteRequest.AuthToken = "" 30320 } else { 30321 x.AuthToken = (string)(r.DecodeString()) 30322 } 30323 case "Forwarded": 30324 if r.TryDecodeAsNil() { 30325 x.WriteRequest.InternalRpcInfo.Forwarded = false 30326 } else { 30327 x.Forwarded = (bool)(r.DecodeBool()) 30328 } 30329 default: 30330 z.DecStructFieldNotFound(-1, yys3) 30331 } // end switch yys3 30332 } // end for yyj3 30333 r.ReadMapEnd() 30334 } 30335 30336 func (x *NodeEvaluateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 30337 var h codecSelfer100 30338 z, r := codec1978.GenHelperDecoder(d) 30339 _, _, _ = h, z, r 30340 var yyj9 int 30341 var yyb9 bool 30342 var yyhl9 bool = l >= 0 30343 yyj9++ 30344 if yyhl9 { 30345 yyb9 = yyj9 > l 30346 } else { 30347 yyb9 = r.CheckBreak() 30348 } 30349 if yyb9 { 30350 r.ReadArrayEnd() 30351 return 30352 } 30353 r.ReadArrayElem() 30354 if r.TryDecodeAsNil() { 30355 x.NodeID = "" 30356 } else { 30357 x.NodeID = (string)(r.DecodeString()) 30358 } 30359 yyj9++ 30360 if yyhl9 { 30361 yyb9 = yyj9 > l 30362 } else { 30363 yyb9 = r.CheckBreak() 30364 } 30365 if yyb9 { 30366 r.ReadArrayEnd() 30367 return 30368 } 30369 r.ReadArrayElem() 30370 if r.TryDecodeAsNil() { 30371 x.WriteRequest.Region = "" 30372 } else { 30373 x.Region = (string)(r.DecodeString()) 30374 } 30375 yyj9++ 30376 if yyhl9 { 30377 yyb9 = yyj9 > l 30378 } else { 30379 yyb9 = r.CheckBreak() 30380 } 30381 if yyb9 { 30382 r.ReadArrayEnd() 30383 return 30384 } 30385 r.ReadArrayElem() 30386 if r.TryDecodeAsNil() { 30387 x.WriteRequest.Namespace = "" 30388 } else { 30389 x.Namespace = (string)(r.DecodeString()) 30390 } 30391 yyj9++ 30392 if yyhl9 { 30393 yyb9 = yyj9 > l 30394 } else { 30395 yyb9 = r.CheckBreak() 30396 } 30397 if yyb9 { 30398 r.ReadArrayEnd() 30399 return 30400 } 30401 r.ReadArrayElem() 30402 if r.TryDecodeAsNil() { 30403 x.WriteRequest.AuthToken = "" 30404 } else { 30405 x.AuthToken = (string)(r.DecodeString()) 30406 } 30407 yyj9++ 30408 if yyhl9 { 30409 yyb9 = yyj9 > l 30410 } else { 30411 yyb9 = r.CheckBreak() 30412 } 30413 if yyb9 { 30414 r.ReadArrayEnd() 30415 return 30416 } 30417 r.ReadArrayElem() 30418 if r.TryDecodeAsNil() { 30419 x.WriteRequest.InternalRpcInfo.Forwarded = false 30420 } else { 30421 x.Forwarded = (bool)(r.DecodeBool()) 30422 } 30423 for { 30424 yyj9++ 30425 if yyhl9 { 30426 yyb9 = yyj9 > l 30427 } else { 30428 yyb9 = r.CheckBreak() 30429 } 30430 if yyb9 { 30431 break 30432 } 30433 r.ReadArrayElem() 30434 z.DecStructFieldNotFound(yyj9-1, "") 30435 } 30436 r.ReadArrayEnd() 30437 } 30438 30439 func (x *NodeSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { 30440 var h codecSelfer100 30441 z, r := codec1978.GenHelperEncoder(e) 30442 _, _, _ = h, z, r 30443 if x == nil { 30444 r.EncodeNil() 30445 } else { 30446 if false { 30447 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 30448 z.EncExtension(x, yyxt1) 30449 } else { 30450 yysep2 := !z.EncBinary() 30451 yy2arr2 := z.EncBasicHandle().StructToArray 30452 _, _ = yysep2, yy2arr2 30453 const yyr2 bool = false // struct tag has 'toArray' 30454 if yyr2 || yy2arr2 { 30455 r.WriteArrayStart(10) 30456 } else { 30457 r.WriteMapStart(10) 30458 } 30459 if yyr2 || yy2arr2 { 30460 r.WriteArrayElem() 30461 if false { 30462 } else { 30463 if z.EncBasicHandle().StringToRaw { 30464 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 30465 } else { 30466 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 30467 } 30468 } 30469 } else { 30470 r.WriteMapElemKey() 30471 if z.IsJSONHandle() { 30472 z.WriteStr("\"NodeID\"") 30473 } else { 30474 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 30475 } 30476 r.WriteMapElemValue() 30477 if false { 30478 } else { 30479 if z.EncBasicHandle().StringToRaw { 30480 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 30481 } else { 30482 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 30483 } 30484 } 30485 } 30486 if yyr2 || yy2arr2 { 30487 r.WriteArrayElem() 30488 if false { 30489 } else { 30490 if z.EncBasicHandle().StringToRaw { 30491 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 30492 } else { 30493 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 30494 } 30495 } 30496 } else { 30497 r.WriteMapElemKey() 30498 if z.IsJSONHandle() { 30499 z.WriteStr("\"SecretID\"") 30500 } else { 30501 r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) 30502 } 30503 r.WriteMapElemValue() 30504 if false { 30505 } else { 30506 if z.EncBasicHandle().StringToRaw { 30507 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 30508 } else { 30509 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 30510 } 30511 } 30512 } 30513 if yyr2 || yy2arr2 { 30514 r.WriteArrayElem() 30515 if false { 30516 } else { 30517 if z.EncBasicHandle().StringToRaw { 30518 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 30519 } else { 30520 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 30521 } 30522 } 30523 } else { 30524 r.WriteMapElemKey() 30525 if z.IsJSONHandle() { 30526 z.WriteStr("\"Region\"") 30527 } else { 30528 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 30529 } 30530 r.WriteMapElemValue() 30531 if false { 30532 } else { 30533 if z.EncBasicHandle().StringToRaw { 30534 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 30535 } else { 30536 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 30537 } 30538 } 30539 } 30540 if yyr2 || yy2arr2 { 30541 r.WriteArrayElem() 30542 if false { 30543 } else { 30544 if z.EncBasicHandle().StringToRaw { 30545 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 30546 } else { 30547 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 30548 } 30549 } 30550 } else { 30551 r.WriteMapElemKey() 30552 if z.IsJSONHandle() { 30553 z.WriteStr("\"Namespace\"") 30554 } else { 30555 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 30556 } 30557 r.WriteMapElemValue() 30558 if false { 30559 } else { 30560 if z.EncBasicHandle().StringToRaw { 30561 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 30562 } else { 30563 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 30564 } 30565 } 30566 } 30567 if yyr2 || yy2arr2 { 30568 r.WriteArrayElem() 30569 if false { 30570 } else { 30571 r.EncodeUint(uint64(x.MinQueryIndex)) 30572 } 30573 } else { 30574 r.WriteMapElemKey() 30575 if z.IsJSONHandle() { 30576 z.WriteStr("\"MinQueryIndex\"") 30577 } else { 30578 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 30579 } 30580 r.WriteMapElemValue() 30581 if false { 30582 } else { 30583 r.EncodeUint(uint64(x.MinQueryIndex)) 30584 } 30585 } 30586 if yyr2 || yy2arr2 { 30587 r.WriteArrayElem() 30588 if false { 30589 } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { 30590 z.EncExtension(x.MaxQueryTime, yyxt19) 30591 } else { 30592 r.EncodeInt(int64(x.MaxQueryTime)) 30593 } 30594 } else { 30595 r.WriteMapElemKey() 30596 if z.IsJSONHandle() { 30597 z.WriteStr("\"MaxQueryTime\"") 30598 } else { 30599 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 30600 } 30601 r.WriteMapElemValue() 30602 if false { 30603 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 30604 z.EncExtension(x.MaxQueryTime, yyxt20) 30605 } else { 30606 r.EncodeInt(int64(x.MaxQueryTime)) 30607 } 30608 } 30609 if yyr2 || yy2arr2 { 30610 r.WriteArrayElem() 30611 if false { 30612 } else { 30613 r.EncodeBool(bool(x.AllowStale)) 30614 } 30615 } else { 30616 r.WriteMapElemKey() 30617 if z.IsJSONHandle() { 30618 z.WriteStr("\"AllowStale\"") 30619 } else { 30620 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 30621 } 30622 r.WriteMapElemValue() 30623 if false { 30624 } else { 30625 r.EncodeBool(bool(x.AllowStale)) 30626 } 30627 } 30628 if yyr2 || yy2arr2 { 30629 r.WriteArrayElem() 30630 if false { 30631 } else { 30632 if z.EncBasicHandle().StringToRaw { 30633 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 30634 } else { 30635 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 30636 } 30637 } 30638 } else { 30639 r.WriteMapElemKey() 30640 if z.IsJSONHandle() { 30641 z.WriteStr("\"Prefix\"") 30642 } else { 30643 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 30644 } 30645 r.WriteMapElemValue() 30646 if false { 30647 } else { 30648 if z.EncBasicHandle().StringToRaw { 30649 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 30650 } else { 30651 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 30652 } 30653 } 30654 } 30655 if yyr2 || yy2arr2 { 30656 r.WriteArrayElem() 30657 if false { 30658 } else { 30659 if z.EncBasicHandle().StringToRaw { 30660 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 30661 } else { 30662 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 30663 } 30664 } 30665 } else { 30666 r.WriteMapElemKey() 30667 if z.IsJSONHandle() { 30668 z.WriteStr("\"AuthToken\"") 30669 } else { 30670 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 30671 } 30672 r.WriteMapElemValue() 30673 if false { 30674 } else { 30675 if z.EncBasicHandle().StringToRaw { 30676 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 30677 } else { 30678 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 30679 } 30680 } 30681 } 30682 if yyr2 || yy2arr2 { 30683 r.WriteArrayElem() 30684 if false { 30685 } else { 30686 r.EncodeBool(bool(x.Forwarded)) 30687 } 30688 } else { 30689 r.WriteMapElemKey() 30690 if z.IsJSONHandle() { 30691 z.WriteStr("\"Forwarded\"") 30692 } else { 30693 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 30694 } 30695 r.WriteMapElemValue() 30696 if false { 30697 } else { 30698 r.EncodeBool(bool(x.Forwarded)) 30699 } 30700 } 30701 if yyr2 || yy2arr2 { 30702 r.WriteArrayEnd() 30703 } else { 30704 r.WriteMapEnd() 30705 } 30706 } 30707 } 30708 } 30709 30710 func (x *NodeSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { 30711 var h codecSelfer100 30712 z, r := codec1978.GenHelperDecoder(d) 30713 _, _, _ = h, z, r 30714 if false { 30715 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 30716 z.DecExtension(x, yyxt1) 30717 } else { 30718 yyct2 := r.ContainerType() 30719 if yyct2 == codecSelferValueTypeMap100 { 30720 yyl2 := r.ReadMapStart() 30721 if yyl2 == 0 { 30722 r.ReadMapEnd() 30723 } else { 30724 x.codecDecodeSelfFromMap(yyl2, d) 30725 } 30726 } else if yyct2 == codecSelferValueTypeArray100 { 30727 yyl2 := r.ReadArrayStart() 30728 if yyl2 == 0 { 30729 r.ReadArrayEnd() 30730 } else { 30731 x.codecDecodeSelfFromArray(yyl2, d) 30732 } 30733 } else { 30734 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 30735 } 30736 } 30737 } 30738 30739 func (x *NodeSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 30740 var h codecSelfer100 30741 z, r := codec1978.GenHelperDecoder(d) 30742 _, _, _ = h, z, r 30743 var yyhl3 bool = l >= 0 30744 for yyj3 := 0; ; yyj3++ { 30745 if yyhl3 { 30746 if yyj3 >= l { 30747 break 30748 } 30749 } else { 30750 if r.CheckBreak() { 30751 break 30752 } 30753 } 30754 r.ReadMapElemKey() 30755 yys3 := z.StringView(r.DecodeStringAsBytes()) 30756 r.ReadMapElemValue() 30757 switch yys3 { 30758 case "NodeID": 30759 if r.TryDecodeAsNil() { 30760 x.NodeID = "" 30761 } else { 30762 x.NodeID = (string)(r.DecodeString()) 30763 } 30764 case "SecretID": 30765 if r.TryDecodeAsNil() { 30766 x.SecretID = "" 30767 } else { 30768 x.SecretID = (string)(r.DecodeString()) 30769 } 30770 case "Region": 30771 if r.TryDecodeAsNil() { 30772 x.QueryOptions.Region = "" 30773 } else { 30774 x.Region = (string)(r.DecodeString()) 30775 } 30776 case "Namespace": 30777 if r.TryDecodeAsNil() { 30778 x.QueryOptions.Namespace = "" 30779 } else { 30780 x.Namespace = (string)(r.DecodeString()) 30781 } 30782 case "MinQueryIndex": 30783 if r.TryDecodeAsNil() { 30784 x.QueryOptions.MinQueryIndex = 0 30785 } else { 30786 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 30787 } 30788 case "MaxQueryTime": 30789 if r.TryDecodeAsNil() { 30790 x.QueryOptions.MaxQueryTime = 0 30791 } else { 30792 if false { 30793 } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { 30794 z.DecExtension(x.MaxQueryTime, yyxt10) 30795 } else { 30796 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 30797 } 30798 } 30799 case "AllowStale": 30800 if r.TryDecodeAsNil() { 30801 x.QueryOptions.AllowStale = false 30802 } else { 30803 x.AllowStale = (bool)(r.DecodeBool()) 30804 } 30805 case "Prefix": 30806 if r.TryDecodeAsNil() { 30807 x.QueryOptions.Prefix = "" 30808 } else { 30809 x.Prefix = (string)(r.DecodeString()) 30810 } 30811 case "AuthToken": 30812 if r.TryDecodeAsNil() { 30813 x.QueryOptions.AuthToken = "" 30814 } else { 30815 x.AuthToken = (string)(r.DecodeString()) 30816 } 30817 case "Forwarded": 30818 if r.TryDecodeAsNil() { 30819 x.QueryOptions.InternalRpcInfo.Forwarded = false 30820 } else { 30821 x.Forwarded = (bool)(r.DecodeBool()) 30822 } 30823 default: 30824 z.DecStructFieldNotFound(-1, yys3) 30825 } // end switch yys3 30826 } // end for yyj3 30827 r.ReadMapEnd() 30828 } 30829 30830 func (x *NodeSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 30831 var h codecSelfer100 30832 z, r := codec1978.GenHelperDecoder(d) 30833 _, _, _ = h, z, r 30834 var yyj15 int 30835 var yyb15 bool 30836 var yyhl15 bool = l >= 0 30837 yyj15++ 30838 if yyhl15 { 30839 yyb15 = yyj15 > l 30840 } else { 30841 yyb15 = r.CheckBreak() 30842 } 30843 if yyb15 { 30844 r.ReadArrayEnd() 30845 return 30846 } 30847 r.ReadArrayElem() 30848 if r.TryDecodeAsNil() { 30849 x.NodeID = "" 30850 } else { 30851 x.NodeID = (string)(r.DecodeString()) 30852 } 30853 yyj15++ 30854 if yyhl15 { 30855 yyb15 = yyj15 > l 30856 } else { 30857 yyb15 = r.CheckBreak() 30858 } 30859 if yyb15 { 30860 r.ReadArrayEnd() 30861 return 30862 } 30863 r.ReadArrayElem() 30864 if r.TryDecodeAsNil() { 30865 x.SecretID = "" 30866 } else { 30867 x.SecretID = (string)(r.DecodeString()) 30868 } 30869 yyj15++ 30870 if yyhl15 { 30871 yyb15 = yyj15 > l 30872 } else { 30873 yyb15 = r.CheckBreak() 30874 } 30875 if yyb15 { 30876 r.ReadArrayEnd() 30877 return 30878 } 30879 r.ReadArrayElem() 30880 if r.TryDecodeAsNil() { 30881 x.QueryOptions.Region = "" 30882 } else { 30883 x.Region = (string)(r.DecodeString()) 30884 } 30885 yyj15++ 30886 if yyhl15 { 30887 yyb15 = yyj15 > l 30888 } else { 30889 yyb15 = r.CheckBreak() 30890 } 30891 if yyb15 { 30892 r.ReadArrayEnd() 30893 return 30894 } 30895 r.ReadArrayElem() 30896 if r.TryDecodeAsNil() { 30897 x.QueryOptions.Namespace = "" 30898 } else { 30899 x.Namespace = (string)(r.DecodeString()) 30900 } 30901 yyj15++ 30902 if yyhl15 { 30903 yyb15 = yyj15 > l 30904 } else { 30905 yyb15 = r.CheckBreak() 30906 } 30907 if yyb15 { 30908 r.ReadArrayEnd() 30909 return 30910 } 30911 r.ReadArrayElem() 30912 if r.TryDecodeAsNil() { 30913 x.QueryOptions.MinQueryIndex = 0 30914 } else { 30915 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 30916 } 30917 yyj15++ 30918 if yyhl15 { 30919 yyb15 = yyj15 > l 30920 } else { 30921 yyb15 = r.CheckBreak() 30922 } 30923 if yyb15 { 30924 r.ReadArrayEnd() 30925 return 30926 } 30927 r.ReadArrayElem() 30928 if r.TryDecodeAsNil() { 30929 x.QueryOptions.MaxQueryTime = 0 30930 } else { 30931 if false { 30932 } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { 30933 z.DecExtension(x.MaxQueryTime, yyxt22) 30934 } else { 30935 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 30936 } 30937 } 30938 yyj15++ 30939 if yyhl15 { 30940 yyb15 = yyj15 > l 30941 } else { 30942 yyb15 = r.CheckBreak() 30943 } 30944 if yyb15 { 30945 r.ReadArrayEnd() 30946 return 30947 } 30948 r.ReadArrayElem() 30949 if r.TryDecodeAsNil() { 30950 x.QueryOptions.AllowStale = false 30951 } else { 30952 x.AllowStale = (bool)(r.DecodeBool()) 30953 } 30954 yyj15++ 30955 if yyhl15 { 30956 yyb15 = yyj15 > l 30957 } else { 30958 yyb15 = r.CheckBreak() 30959 } 30960 if yyb15 { 30961 r.ReadArrayEnd() 30962 return 30963 } 30964 r.ReadArrayElem() 30965 if r.TryDecodeAsNil() { 30966 x.QueryOptions.Prefix = "" 30967 } else { 30968 x.Prefix = (string)(r.DecodeString()) 30969 } 30970 yyj15++ 30971 if yyhl15 { 30972 yyb15 = yyj15 > l 30973 } else { 30974 yyb15 = r.CheckBreak() 30975 } 30976 if yyb15 { 30977 r.ReadArrayEnd() 30978 return 30979 } 30980 r.ReadArrayElem() 30981 if r.TryDecodeAsNil() { 30982 x.QueryOptions.AuthToken = "" 30983 } else { 30984 x.AuthToken = (string)(r.DecodeString()) 30985 } 30986 yyj15++ 30987 if yyhl15 { 30988 yyb15 = yyj15 > l 30989 } else { 30990 yyb15 = r.CheckBreak() 30991 } 30992 if yyb15 { 30993 r.ReadArrayEnd() 30994 return 30995 } 30996 r.ReadArrayElem() 30997 if r.TryDecodeAsNil() { 30998 x.QueryOptions.InternalRpcInfo.Forwarded = false 30999 } else { 31000 x.Forwarded = (bool)(r.DecodeBool()) 31001 } 31002 for { 31003 yyj15++ 31004 if yyhl15 { 31005 yyb15 = yyj15 > l 31006 } else { 31007 yyb15 = r.CheckBreak() 31008 } 31009 if yyb15 { 31010 break 31011 } 31012 r.ReadArrayElem() 31013 z.DecStructFieldNotFound(yyj15-1, "") 31014 } 31015 r.ReadArrayEnd() 31016 } 31017 31018 func (x *SearchResponse) CodecEncodeSelf(e *codec1978.Encoder) { 31019 var h codecSelfer100 31020 z, r := codec1978.GenHelperEncoder(e) 31021 _, _, _ = h, z, r 31022 if x == nil { 31023 r.EncodeNil() 31024 } else { 31025 if false { 31026 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 31027 z.EncExtension(x, yyxt1) 31028 } else { 31029 yysep2 := !z.EncBinary() 31030 yy2arr2 := z.EncBasicHandle().StructToArray 31031 _, _ = yysep2, yy2arr2 31032 const yyr2 bool = false // struct tag has 'toArray' 31033 if yyr2 || yy2arr2 { 31034 r.WriteArrayStart(5) 31035 } else { 31036 r.WriteMapStart(5) 31037 } 31038 if yyr2 || yy2arr2 { 31039 r.WriteArrayElem() 31040 if x.Matches == nil { 31041 r.EncodeNil() 31042 } else { 31043 if false { 31044 } else { 31045 h.encMapContextSlicestring((map[Context][]string)(x.Matches), e) 31046 } 31047 } 31048 } else { 31049 r.WriteMapElemKey() 31050 if z.IsJSONHandle() { 31051 z.WriteStr("\"Matches\"") 31052 } else { 31053 r.EncodeStringEnc(codecSelferCcUTF8100, `Matches`) 31054 } 31055 r.WriteMapElemValue() 31056 if x.Matches == nil { 31057 r.EncodeNil() 31058 } else { 31059 if false { 31060 } else { 31061 h.encMapContextSlicestring((map[Context][]string)(x.Matches), e) 31062 } 31063 } 31064 } 31065 if yyr2 || yy2arr2 { 31066 r.WriteArrayElem() 31067 if x.Truncations == nil { 31068 r.EncodeNil() 31069 } else { 31070 if false { 31071 } else { 31072 h.encMapContextbool((map[Context]bool)(x.Truncations), e) 31073 } 31074 } 31075 } else { 31076 r.WriteMapElemKey() 31077 if z.IsJSONHandle() { 31078 z.WriteStr("\"Truncations\"") 31079 } else { 31080 r.EncodeStringEnc(codecSelferCcUTF8100, `Truncations`) 31081 } 31082 r.WriteMapElemValue() 31083 if x.Truncations == nil { 31084 r.EncodeNil() 31085 } else { 31086 if false { 31087 } else { 31088 h.encMapContextbool((map[Context]bool)(x.Truncations), e) 31089 } 31090 } 31091 } 31092 if yyr2 || yy2arr2 { 31093 r.WriteArrayElem() 31094 if false { 31095 } else { 31096 r.EncodeUint(uint64(x.Index)) 31097 } 31098 } else { 31099 r.WriteMapElemKey() 31100 if z.IsJSONHandle() { 31101 z.WriteStr("\"Index\"") 31102 } else { 31103 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 31104 } 31105 r.WriteMapElemValue() 31106 if false { 31107 } else { 31108 r.EncodeUint(uint64(x.Index)) 31109 } 31110 } 31111 if yyr2 || yy2arr2 { 31112 r.WriteArrayElem() 31113 if false { 31114 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 31115 z.EncExtension(x.LastContact, yyxt13) 31116 } else { 31117 r.EncodeInt(int64(x.LastContact)) 31118 } 31119 } else { 31120 r.WriteMapElemKey() 31121 if z.IsJSONHandle() { 31122 z.WriteStr("\"LastContact\"") 31123 } else { 31124 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 31125 } 31126 r.WriteMapElemValue() 31127 if false { 31128 } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { 31129 z.EncExtension(x.LastContact, yyxt14) 31130 } else { 31131 r.EncodeInt(int64(x.LastContact)) 31132 } 31133 } 31134 if yyr2 || yy2arr2 { 31135 r.WriteArrayElem() 31136 if false { 31137 } else { 31138 r.EncodeBool(bool(x.KnownLeader)) 31139 } 31140 } else { 31141 r.WriteMapElemKey() 31142 if z.IsJSONHandle() { 31143 z.WriteStr("\"KnownLeader\"") 31144 } else { 31145 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 31146 } 31147 r.WriteMapElemValue() 31148 if false { 31149 } else { 31150 r.EncodeBool(bool(x.KnownLeader)) 31151 } 31152 } 31153 if yyr2 || yy2arr2 { 31154 r.WriteArrayEnd() 31155 } else { 31156 r.WriteMapEnd() 31157 } 31158 } 31159 } 31160 } 31161 31162 func (x *SearchResponse) CodecDecodeSelf(d *codec1978.Decoder) { 31163 var h codecSelfer100 31164 z, r := codec1978.GenHelperDecoder(d) 31165 _, _, _ = h, z, r 31166 if false { 31167 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 31168 z.DecExtension(x, yyxt1) 31169 } else { 31170 yyct2 := r.ContainerType() 31171 if yyct2 == codecSelferValueTypeMap100 { 31172 yyl2 := r.ReadMapStart() 31173 if yyl2 == 0 { 31174 r.ReadMapEnd() 31175 } else { 31176 x.codecDecodeSelfFromMap(yyl2, d) 31177 } 31178 } else if yyct2 == codecSelferValueTypeArray100 { 31179 yyl2 := r.ReadArrayStart() 31180 if yyl2 == 0 { 31181 r.ReadArrayEnd() 31182 } else { 31183 x.codecDecodeSelfFromArray(yyl2, d) 31184 } 31185 } else { 31186 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 31187 } 31188 } 31189 } 31190 31191 func (x *SearchResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 31192 var h codecSelfer100 31193 z, r := codec1978.GenHelperDecoder(d) 31194 _, _, _ = h, z, r 31195 var yyhl3 bool = l >= 0 31196 for yyj3 := 0; ; yyj3++ { 31197 if yyhl3 { 31198 if yyj3 >= l { 31199 break 31200 } 31201 } else { 31202 if r.CheckBreak() { 31203 break 31204 } 31205 } 31206 r.ReadMapElemKey() 31207 yys3 := z.StringView(r.DecodeStringAsBytes()) 31208 r.ReadMapElemValue() 31209 switch yys3 { 31210 case "Matches": 31211 if r.TryDecodeAsNil() { 31212 x.Matches = nil 31213 } else { 31214 if false { 31215 } else { 31216 h.decMapContextSlicestring((*map[Context][]string)(&x.Matches), d) 31217 } 31218 } 31219 case "Truncations": 31220 if r.TryDecodeAsNil() { 31221 x.Truncations = nil 31222 } else { 31223 if false { 31224 } else { 31225 h.decMapContextbool((*map[Context]bool)(&x.Truncations), d) 31226 } 31227 } 31228 case "Index": 31229 if r.TryDecodeAsNil() { 31230 x.QueryMeta.Index = 0 31231 } else { 31232 x.Index = (uint64)(r.DecodeUint64()) 31233 } 31234 case "LastContact": 31235 if r.TryDecodeAsNil() { 31236 x.QueryMeta.LastContact = 0 31237 } else { 31238 if false { 31239 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 31240 z.DecExtension(x.LastContact, yyxt10) 31241 } else { 31242 x.LastContact = (time.Duration)(r.DecodeInt64()) 31243 } 31244 } 31245 case "KnownLeader": 31246 if r.TryDecodeAsNil() { 31247 x.QueryMeta.KnownLeader = false 31248 } else { 31249 x.KnownLeader = (bool)(r.DecodeBool()) 31250 } 31251 default: 31252 z.DecStructFieldNotFound(-1, yys3) 31253 } // end switch yys3 31254 } // end for yyj3 31255 r.ReadMapEnd() 31256 } 31257 31258 func (x *SearchResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 31259 var h codecSelfer100 31260 z, r := codec1978.GenHelperDecoder(d) 31261 _, _, _ = h, z, r 31262 var yyj12 int 31263 var yyb12 bool 31264 var yyhl12 bool = l >= 0 31265 yyj12++ 31266 if yyhl12 { 31267 yyb12 = yyj12 > l 31268 } else { 31269 yyb12 = r.CheckBreak() 31270 } 31271 if yyb12 { 31272 r.ReadArrayEnd() 31273 return 31274 } 31275 r.ReadArrayElem() 31276 if r.TryDecodeAsNil() { 31277 x.Matches = nil 31278 } else { 31279 if false { 31280 } else { 31281 h.decMapContextSlicestring((*map[Context][]string)(&x.Matches), d) 31282 } 31283 } 31284 yyj12++ 31285 if yyhl12 { 31286 yyb12 = yyj12 > l 31287 } else { 31288 yyb12 = r.CheckBreak() 31289 } 31290 if yyb12 { 31291 r.ReadArrayEnd() 31292 return 31293 } 31294 r.ReadArrayElem() 31295 if r.TryDecodeAsNil() { 31296 x.Truncations = nil 31297 } else { 31298 if false { 31299 } else { 31300 h.decMapContextbool((*map[Context]bool)(&x.Truncations), d) 31301 } 31302 } 31303 yyj12++ 31304 if yyhl12 { 31305 yyb12 = yyj12 > l 31306 } else { 31307 yyb12 = r.CheckBreak() 31308 } 31309 if yyb12 { 31310 r.ReadArrayEnd() 31311 return 31312 } 31313 r.ReadArrayElem() 31314 if r.TryDecodeAsNil() { 31315 x.QueryMeta.Index = 0 31316 } else { 31317 x.Index = (uint64)(r.DecodeUint64()) 31318 } 31319 yyj12++ 31320 if yyhl12 { 31321 yyb12 = yyj12 > l 31322 } else { 31323 yyb12 = r.CheckBreak() 31324 } 31325 if yyb12 { 31326 r.ReadArrayEnd() 31327 return 31328 } 31329 r.ReadArrayElem() 31330 if r.TryDecodeAsNil() { 31331 x.QueryMeta.LastContact = 0 31332 } else { 31333 if false { 31334 } else if yyxt19 := z.Extension(z.I2Rtid(x.LastContact)); yyxt19 != nil { 31335 z.DecExtension(x.LastContact, yyxt19) 31336 } else { 31337 x.LastContact = (time.Duration)(r.DecodeInt64()) 31338 } 31339 } 31340 yyj12++ 31341 if yyhl12 { 31342 yyb12 = yyj12 > l 31343 } else { 31344 yyb12 = r.CheckBreak() 31345 } 31346 if yyb12 { 31347 r.ReadArrayEnd() 31348 return 31349 } 31350 r.ReadArrayElem() 31351 if r.TryDecodeAsNil() { 31352 x.QueryMeta.KnownLeader = false 31353 } else { 31354 x.KnownLeader = (bool)(r.DecodeBool()) 31355 } 31356 for { 31357 yyj12++ 31358 if yyhl12 { 31359 yyb12 = yyj12 > l 31360 } else { 31361 yyb12 = r.CheckBreak() 31362 } 31363 if yyb12 { 31364 break 31365 } 31366 r.ReadArrayElem() 31367 z.DecStructFieldNotFound(yyj12-1, "") 31368 } 31369 r.ReadArrayEnd() 31370 } 31371 31372 func (x *SearchRequest) CodecEncodeSelf(e *codec1978.Encoder) { 31373 var h codecSelfer100 31374 z, r := codec1978.GenHelperEncoder(e) 31375 _, _, _ = h, z, r 31376 if x == nil { 31377 r.EncodeNil() 31378 } else { 31379 if false { 31380 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 31381 z.EncExtension(x, yyxt1) 31382 } else { 31383 yysep2 := !z.EncBinary() 31384 yy2arr2 := z.EncBasicHandle().StructToArray 31385 _, _ = yysep2, yy2arr2 31386 const yyr2 bool = false // struct tag has 'toArray' 31387 if yyr2 || yy2arr2 { 31388 r.WriteArrayStart(9) 31389 } else { 31390 r.WriteMapStart(9) 31391 } 31392 if yyr2 || yy2arr2 { 31393 r.WriteArrayElem() 31394 if false { 31395 } else { 31396 if z.EncBasicHandle().StringToRaw { 31397 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 31398 } else { 31399 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 31400 } 31401 } 31402 } else { 31403 r.WriteMapElemKey() 31404 if z.IsJSONHandle() { 31405 z.WriteStr("\"Prefix\"") 31406 } else { 31407 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 31408 } 31409 r.WriteMapElemValue() 31410 if false { 31411 } else { 31412 if z.EncBasicHandle().StringToRaw { 31413 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 31414 } else { 31415 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 31416 } 31417 } 31418 } 31419 if yyr2 || yy2arr2 { 31420 r.WriteArrayElem() 31421 x.Context.CodecEncodeSelf(e) 31422 } else { 31423 r.WriteMapElemKey() 31424 if z.IsJSONHandle() { 31425 z.WriteStr("\"Context\"") 31426 } else { 31427 r.EncodeStringEnc(codecSelferCcUTF8100, `Context`) 31428 } 31429 r.WriteMapElemValue() 31430 x.Context.CodecEncodeSelf(e) 31431 } 31432 if yyr2 || yy2arr2 { 31433 r.WriteArrayElem() 31434 if false { 31435 } else { 31436 if z.EncBasicHandle().StringToRaw { 31437 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 31438 } else { 31439 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 31440 } 31441 } 31442 } else { 31443 r.WriteMapElemKey() 31444 if z.IsJSONHandle() { 31445 z.WriteStr("\"Region\"") 31446 } else { 31447 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 31448 } 31449 r.WriteMapElemValue() 31450 if false { 31451 } else { 31452 if z.EncBasicHandle().StringToRaw { 31453 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 31454 } else { 31455 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 31456 } 31457 } 31458 } 31459 if yyr2 || yy2arr2 { 31460 r.WriteArrayElem() 31461 if false { 31462 } else { 31463 if z.EncBasicHandle().StringToRaw { 31464 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 31465 } else { 31466 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 31467 } 31468 } 31469 } else { 31470 r.WriteMapElemKey() 31471 if z.IsJSONHandle() { 31472 z.WriteStr("\"Namespace\"") 31473 } else { 31474 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 31475 } 31476 r.WriteMapElemValue() 31477 if false { 31478 } else { 31479 if z.EncBasicHandle().StringToRaw { 31480 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 31481 } else { 31482 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 31483 } 31484 } 31485 } 31486 if yyr2 || yy2arr2 { 31487 r.WriteArrayElem() 31488 if false { 31489 } else { 31490 r.EncodeUint(uint64(x.MinQueryIndex)) 31491 } 31492 } else { 31493 r.WriteMapElemKey() 31494 if z.IsJSONHandle() { 31495 z.WriteStr("\"MinQueryIndex\"") 31496 } else { 31497 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 31498 } 31499 r.WriteMapElemValue() 31500 if false { 31501 } else { 31502 r.EncodeUint(uint64(x.MinQueryIndex)) 31503 } 31504 } 31505 if yyr2 || yy2arr2 { 31506 r.WriteArrayElem() 31507 if false { 31508 } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { 31509 z.EncExtension(x.MaxQueryTime, yyxt19) 31510 } else { 31511 r.EncodeInt(int64(x.MaxQueryTime)) 31512 } 31513 } else { 31514 r.WriteMapElemKey() 31515 if z.IsJSONHandle() { 31516 z.WriteStr("\"MaxQueryTime\"") 31517 } else { 31518 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 31519 } 31520 r.WriteMapElemValue() 31521 if false { 31522 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 31523 z.EncExtension(x.MaxQueryTime, yyxt20) 31524 } else { 31525 r.EncodeInt(int64(x.MaxQueryTime)) 31526 } 31527 } 31528 if yyr2 || yy2arr2 { 31529 r.WriteArrayElem() 31530 if false { 31531 } else { 31532 r.EncodeBool(bool(x.AllowStale)) 31533 } 31534 } else { 31535 r.WriteMapElemKey() 31536 if z.IsJSONHandle() { 31537 z.WriteStr("\"AllowStale\"") 31538 } else { 31539 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 31540 } 31541 r.WriteMapElemValue() 31542 if false { 31543 } else { 31544 r.EncodeBool(bool(x.AllowStale)) 31545 } 31546 } 31547 if yyr2 || yy2arr2 { 31548 r.WriteArrayElem() 31549 if false { 31550 } else { 31551 if z.EncBasicHandle().StringToRaw { 31552 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 31553 } else { 31554 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 31555 } 31556 } 31557 } else { 31558 r.WriteMapElemKey() 31559 if z.IsJSONHandle() { 31560 z.WriteStr("\"AuthToken\"") 31561 } else { 31562 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 31563 } 31564 r.WriteMapElemValue() 31565 if false { 31566 } else { 31567 if z.EncBasicHandle().StringToRaw { 31568 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 31569 } else { 31570 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 31571 } 31572 } 31573 } 31574 if yyr2 || yy2arr2 { 31575 r.WriteArrayElem() 31576 if false { 31577 } else { 31578 r.EncodeBool(bool(x.Forwarded)) 31579 } 31580 } else { 31581 r.WriteMapElemKey() 31582 if z.IsJSONHandle() { 31583 z.WriteStr("\"Forwarded\"") 31584 } else { 31585 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 31586 } 31587 r.WriteMapElemValue() 31588 if false { 31589 } else { 31590 r.EncodeBool(bool(x.Forwarded)) 31591 } 31592 } 31593 if yyr2 || yy2arr2 { 31594 r.WriteArrayEnd() 31595 } else { 31596 r.WriteMapEnd() 31597 } 31598 } 31599 } 31600 } 31601 31602 func (x *SearchRequest) CodecDecodeSelf(d *codec1978.Decoder) { 31603 var h codecSelfer100 31604 z, r := codec1978.GenHelperDecoder(d) 31605 _, _, _ = h, z, r 31606 if false { 31607 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 31608 z.DecExtension(x, yyxt1) 31609 } else { 31610 yyct2 := r.ContainerType() 31611 if yyct2 == codecSelferValueTypeMap100 { 31612 yyl2 := r.ReadMapStart() 31613 if yyl2 == 0 { 31614 r.ReadMapEnd() 31615 } else { 31616 x.codecDecodeSelfFromMap(yyl2, d) 31617 } 31618 } else if yyct2 == codecSelferValueTypeArray100 { 31619 yyl2 := r.ReadArrayStart() 31620 if yyl2 == 0 { 31621 r.ReadArrayEnd() 31622 } else { 31623 x.codecDecodeSelfFromArray(yyl2, d) 31624 } 31625 } else { 31626 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 31627 } 31628 } 31629 } 31630 31631 func (x *SearchRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 31632 var h codecSelfer100 31633 z, r := codec1978.GenHelperDecoder(d) 31634 _, _, _ = h, z, r 31635 var yyhl3 bool = l >= 0 31636 for yyj3 := 0; ; yyj3++ { 31637 if yyhl3 { 31638 if yyj3 >= l { 31639 break 31640 } 31641 } else { 31642 if r.CheckBreak() { 31643 break 31644 } 31645 } 31646 r.ReadMapElemKey() 31647 yys3 := z.StringView(r.DecodeStringAsBytes()) 31648 r.ReadMapElemValue() 31649 switch yys3 { 31650 case "Prefix": 31651 if r.TryDecodeAsNil() { 31652 x.Prefix = "" 31653 } else { 31654 x.Prefix = (string)(r.DecodeString()) 31655 } 31656 case "Context": 31657 if r.TryDecodeAsNil() { 31658 x.Context = "" 31659 } else { 31660 x.Context.CodecDecodeSelf(d) 31661 } 31662 case "Region": 31663 if r.TryDecodeAsNil() { 31664 x.QueryOptions.Region = "" 31665 } else { 31666 x.Region = (string)(r.DecodeString()) 31667 } 31668 case "Namespace": 31669 if r.TryDecodeAsNil() { 31670 x.QueryOptions.Namespace = "" 31671 } else { 31672 x.Namespace = (string)(r.DecodeString()) 31673 } 31674 case "MinQueryIndex": 31675 if r.TryDecodeAsNil() { 31676 x.QueryOptions.MinQueryIndex = 0 31677 } else { 31678 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 31679 } 31680 case "MaxQueryTime": 31681 if r.TryDecodeAsNil() { 31682 x.QueryOptions.MaxQueryTime = 0 31683 } else { 31684 if false { 31685 } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { 31686 z.DecExtension(x.MaxQueryTime, yyxt10) 31687 } else { 31688 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 31689 } 31690 } 31691 case "AllowStale": 31692 if r.TryDecodeAsNil() { 31693 x.QueryOptions.AllowStale = false 31694 } else { 31695 x.AllowStale = (bool)(r.DecodeBool()) 31696 } 31697 case "AuthToken": 31698 if r.TryDecodeAsNil() { 31699 x.QueryOptions.AuthToken = "" 31700 } else { 31701 x.AuthToken = (string)(r.DecodeString()) 31702 } 31703 case "Forwarded": 31704 if r.TryDecodeAsNil() { 31705 x.QueryOptions.InternalRpcInfo.Forwarded = false 31706 } else { 31707 x.Forwarded = (bool)(r.DecodeBool()) 31708 } 31709 default: 31710 z.DecStructFieldNotFound(-1, yys3) 31711 } // end switch yys3 31712 } // end for yyj3 31713 r.ReadMapEnd() 31714 } 31715 31716 func (x *SearchRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 31717 var h codecSelfer100 31718 z, r := codec1978.GenHelperDecoder(d) 31719 _, _, _ = h, z, r 31720 var yyj14 int 31721 var yyb14 bool 31722 var yyhl14 bool = l >= 0 31723 yyj14++ 31724 if yyhl14 { 31725 yyb14 = yyj14 > l 31726 } else { 31727 yyb14 = r.CheckBreak() 31728 } 31729 if yyb14 { 31730 r.ReadArrayEnd() 31731 return 31732 } 31733 r.ReadArrayElem() 31734 if r.TryDecodeAsNil() { 31735 x.Prefix = "" 31736 } else { 31737 x.Prefix = (string)(r.DecodeString()) 31738 } 31739 yyj14++ 31740 if yyhl14 { 31741 yyb14 = yyj14 > l 31742 } else { 31743 yyb14 = r.CheckBreak() 31744 } 31745 if yyb14 { 31746 r.ReadArrayEnd() 31747 return 31748 } 31749 r.ReadArrayElem() 31750 if r.TryDecodeAsNil() { 31751 x.Context = "" 31752 } else { 31753 x.Context.CodecDecodeSelf(d) 31754 } 31755 yyj14++ 31756 if yyhl14 { 31757 yyb14 = yyj14 > l 31758 } else { 31759 yyb14 = r.CheckBreak() 31760 } 31761 if yyb14 { 31762 r.ReadArrayEnd() 31763 return 31764 } 31765 r.ReadArrayElem() 31766 if r.TryDecodeAsNil() { 31767 x.QueryOptions.Region = "" 31768 } else { 31769 x.Region = (string)(r.DecodeString()) 31770 } 31771 yyj14++ 31772 if yyhl14 { 31773 yyb14 = yyj14 > l 31774 } else { 31775 yyb14 = r.CheckBreak() 31776 } 31777 if yyb14 { 31778 r.ReadArrayEnd() 31779 return 31780 } 31781 r.ReadArrayElem() 31782 if r.TryDecodeAsNil() { 31783 x.QueryOptions.Namespace = "" 31784 } else { 31785 x.Namespace = (string)(r.DecodeString()) 31786 } 31787 yyj14++ 31788 if yyhl14 { 31789 yyb14 = yyj14 > l 31790 } else { 31791 yyb14 = r.CheckBreak() 31792 } 31793 if yyb14 { 31794 r.ReadArrayEnd() 31795 return 31796 } 31797 r.ReadArrayElem() 31798 if r.TryDecodeAsNil() { 31799 x.QueryOptions.MinQueryIndex = 0 31800 } else { 31801 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 31802 } 31803 yyj14++ 31804 if yyhl14 { 31805 yyb14 = yyj14 > l 31806 } else { 31807 yyb14 = r.CheckBreak() 31808 } 31809 if yyb14 { 31810 r.ReadArrayEnd() 31811 return 31812 } 31813 r.ReadArrayElem() 31814 if r.TryDecodeAsNil() { 31815 x.QueryOptions.MaxQueryTime = 0 31816 } else { 31817 if false { 31818 } else if yyxt21 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt21 != nil { 31819 z.DecExtension(x.MaxQueryTime, yyxt21) 31820 } else { 31821 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 31822 } 31823 } 31824 yyj14++ 31825 if yyhl14 { 31826 yyb14 = yyj14 > l 31827 } else { 31828 yyb14 = r.CheckBreak() 31829 } 31830 if yyb14 { 31831 r.ReadArrayEnd() 31832 return 31833 } 31834 r.ReadArrayElem() 31835 if r.TryDecodeAsNil() { 31836 x.QueryOptions.AllowStale = false 31837 } else { 31838 x.AllowStale = (bool)(r.DecodeBool()) 31839 } 31840 yyj14++ 31841 if yyhl14 { 31842 yyb14 = yyj14 > l 31843 } else { 31844 yyb14 = r.CheckBreak() 31845 } 31846 if yyb14 { 31847 r.ReadArrayEnd() 31848 return 31849 } 31850 r.ReadArrayElem() 31851 if r.TryDecodeAsNil() { 31852 x.QueryOptions.AuthToken = "" 31853 } else { 31854 x.AuthToken = (string)(r.DecodeString()) 31855 } 31856 yyj14++ 31857 if yyhl14 { 31858 yyb14 = yyj14 > l 31859 } else { 31860 yyb14 = r.CheckBreak() 31861 } 31862 if yyb14 { 31863 r.ReadArrayEnd() 31864 return 31865 } 31866 r.ReadArrayElem() 31867 if r.TryDecodeAsNil() { 31868 x.QueryOptions.InternalRpcInfo.Forwarded = false 31869 } else { 31870 x.Forwarded = (bool)(r.DecodeBool()) 31871 } 31872 for { 31873 yyj14++ 31874 if yyhl14 { 31875 yyb14 = yyj14 > l 31876 } else { 31877 yyb14 = r.CheckBreak() 31878 } 31879 if yyb14 { 31880 break 31881 } 31882 r.ReadArrayElem() 31883 z.DecStructFieldNotFound(yyj14-1, "") 31884 } 31885 r.ReadArrayEnd() 31886 } 31887 31888 func (x *JobRegisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { 31889 var h codecSelfer100 31890 z, r := codec1978.GenHelperEncoder(e) 31891 _, _, _ = h, z, r 31892 if x == nil { 31893 r.EncodeNil() 31894 } else { 31895 if false { 31896 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 31897 z.EncExtension(x, yyxt1) 31898 } else { 31899 yysep2 := !z.EncBinary() 31900 yy2arr2 := z.EncBasicHandle().StructToArray 31901 _, _ = yysep2, yy2arr2 31902 const yyr2 bool = false // struct tag has 'toArray' 31903 if yyr2 || yy2arr2 { 31904 r.WriteArrayStart(8) 31905 } else { 31906 r.WriteMapStart(8) 31907 } 31908 var yyn3 bool 31909 if x.Job == nil { 31910 yyn3 = true 31911 goto LABEL3 31912 } 31913 LABEL3: 31914 if yyr2 || yy2arr2 { 31915 if yyn3 { 31916 r.WriteArrayElem() 31917 r.EncodeNil() 31918 } else { 31919 r.WriteArrayElem() 31920 if x.Job == nil { 31921 r.EncodeNil() 31922 } else { 31923 x.Job.CodecEncodeSelf(e) 31924 } 31925 } 31926 } else { 31927 r.WriteMapElemKey() 31928 if z.IsJSONHandle() { 31929 z.WriteStr("\"Job\"") 31930 } else { 31931 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 31932 } 31933 r.WriteMapElemValue() 31934 if yyn3 { 31935 r.EncodeNil() 31936 } else { 31937 if x.Job == nil { 31938 r.EncodeNil() 31939 } else { 31940 x.Job.CodecEncodeSelf(e) 31941 } 31942 } 31943 } 31944 if yyr2 || yy2arr2 { 31945 r.WriteArrayElem() 31946 if false { 31947 } else { 31948 r.EncodeBool(bool(x.EnforceIndex)) 31949 } 31950 } else { 31951 r.WriteMapElemKey() 31952 if z.IsJSONHandle() { 31953 z.WriteStr("\"EnforceIndex\"") 31954 } else { 31955 r.EncodeStringEnc(codecSelferCcUTF8100, `EnforceIndex`) 31956 } 31957 r.WriteMapElemValue() 31958 if false { 31959 } else { 31960 r.EncodeBool(bool(x.EnforceIndex)) 31961 } 31962 } 31963 if yyr2 || yy2arr2 { 31964 r.WriteArrayElem() 31965 if false { 31966 } else { 31967 r.EncodeUint(uint64(x.JobModifyIndex)) 31968 } 31969 } else { 31970 r.WriteMapElemKey() 31971 if z.IsJSONHandle() { 31972 z.WriteStr("\"JobModifyIndex\"") 31973 } else { 31974 r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) 31975 } 31976 r.WriteMapElemValue() 31977 if false { 31978 } else { 31979 r.EncodeUint(uint64(x.JobModifyIndex)) 31980 } 31981 } 31982 if yyr2 || yy2arr2 { 31983 r.WriteArrayElem() 31984 if false { 31985 } else { 31986 r.EncodeBool(bool(x.PolicyOverride)) 31987 } 31988 } else { 31989 r.WriteMapElemKey() 31990 if z.IsJSONHandle() { 31991 z.WriteStr("\"PolicyOverride\"") 31992 } else { 31993 r.EncodeStringEnc(codecSelferCcUTF8100, `PolicyOverride`) 31994 } 31995 r.WriteMapElemValue() 31996 if false { 31997 } else { 31998 r.EncodeBool(bool(x.PolicyOverride)) 31999 } 32000 } 32001 if yyr2 || yy2arr2 { 32002 r.WriteArrayElem() 32003 if false { 32004 } else { 32005 if z.EncBasicHandle().StringToRaw { 32006 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 32007 } else { 32008 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 32009 } 32010 } 32011 } else { 32012 r.WriteMapElemKey() 32013 if z.IsJSONHandle() { 32014 z.WriteStr("\"Region\"") 32015 } else { 32016 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 32017 } 32018 r.WriteMapElemValue() 32019 if false { 32020 } else { 32021 if z.EncBasicHandle().StringToRaw { 32022 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 32023 } else { 32024 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 32025 } 32026 } 32027 } 32028 if yyr2 || yy2arr2 { 32029 r.WriteArrayElem() 32030 if false { 32031 } else { 32032 if z.EncBasicHandle().StringToRaw { 32033 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 32034 } else { 32035 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 32036 } 32037 } 32038 } else { 32039 r.WriteMapElemKey() 32040 if z.IsJSONHandle() { 32041 z.WriteStr("\"Namespace\"") 32042 } else { 32043 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 32044 } 32045 r.WriteMapElemValue() 32046 if false { 32047 } else { 32048 if z.EncBasicHandle().StringToRaw { 32049 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 32050 } else { 32051 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 32052 } 32053 } 32054 } 32055 if yyr2 || yy2arr2 { 32056 r.WriteArrayElem() 32057 if false { 32058 } else { 32059 if z.EncBasicHandle().StringToRaw { 32060 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 32061 } else { 32062 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 32063 } 32064 } 32065 } else { 32066 r.WriteMapElemKey() 32067 if z.IsJSONHandle() { 32068 z.WriteStr("\"AuthToken\"") 32069 } else { 32070 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 32071 } 32072 r.WriteMapElemValue() 32073 if false { 32074 } else { 32075 if z.EncBasicHandle().StringToRaw { 32076 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 32077 } else { 32078 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 32079 } 32080 } 32081 } 32082 if yyr2 || yy2arr2 { 32083 r.WriteArrayElem() 32084 if false { 32085 } else { 32086 r.EncodeBool(bool(x.Forwarded)) 32087 } 32088 } else { 32089 r.WriteMapElemKey() 32090 if z.IsJSONHandle() { 32091 z.WriteStr("\"Forwarded\"") 32092 } else { 32093 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 32094 } 32095 r.WriteMapElemValue() 32096 if false { 32097 } else { 32098 r.EncodeBool(bool(x.Forwarded)) 32099 } 32100 } 32101 if yyr2 || yy2arr2 { 32102 r.WriteArrayEnd() 32103 } else { 32104 r.WriteMapEnd() 32105 } 32106 } 32107 } 32108 } 32109 32110 func (x *JobRegisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { 32111 var h codecSelfer100 32112 z, r := codec1978.GenHelperDecoder(d) 32113 _, _, _ = h, z, r 32114 if false { 32115 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 32116 z.DecExtension(x, yyxt1) 32117 } else { 32118 yyct2 := r.ContainerType() 32119 if yyct2 == codecSelferValueTypeMap100 { 32120 yyl2 := r.ReadMapStart() 32121 if yyl2 == 0 { 32122 r.ReadMapEnd() 32123 } else { 32124 x.codecDecodeSelfFromMap(yyl2, d) 32125 } 32126 } else if yyct2 == codecSelferValueTypeArray100 { 32127 yyl2 := r.ReadArrayStart() 32128 if yyl2 == 0 { 32129 r.ReadArrayEnd() 32130 } else { 32131 x.codecDecodeSelfFromArray(yyl2, d) 32132 } 32133 } else { 32134 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 32135 } 32136 } 32137 } 32138 32139 func (x *JobRegisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 32140 var h codecSelfer100 32141 z, r := codec1978.GenHelperDecoder(d) 32142 _, _, _ = h, z, r 32143 var yyhl3 bool = l >= 0 32144 for yyj3 := 0; ; yyj3++ { 32145 if yyhl3 { 32146 if yyj3 >= l { 32147 break 32148 } 32149 } else { 32150 if r.CheckBreak() { 32151 break 32152 } 32153 } 32154 r.ReadMapElemKey() 32155 yys3 := z.StringView(r.DecodeStringAsBytes()) 32156 r.ReadMapElemValue() 32157 switch yys3 { 32158 case "Job": 32159 if r.TryDecodeAsNil() { 32160 if true && x.Job != nil { 32161 x.Job = nil 32162 } 32163 } else { 32164 if x.Job == nil { 32165 x.Job = new(Job) 32166 } 32167 32168 x.Job.CodecDecodeSelf(d) 32169 } 32170 case "EnforceIndex": 32171 if r.TryDecodeAsNil() { 32172 x.EnforceIndex = false 32173 } else { 32174 x.EnforceIndex = (bool)(r.DecodeBool()) 32175 } 32176 case "JobModifyIndex": 32177 if r.TryDecodeAsNil() { 32178 x.JobModifyIndex = 0 32179 } else { 32180 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 32181 } 32182 case "PolicyOverride": 32183 if r.TryDecodeAsNil() { 32184 x.PolicyOverride = false 32185 } else { 32186 x.PolicyOverride = (bool)(r.DecodeBool()) 32187 } 32188 case "Region": 32189 if r.TryDecodeAsNil() { 32190 x.WriteRequest.Region = "" 32191 } else { 32192 x.Region = (string)(r.DecodeString()) 32193 } 32194 case "Namespace": 32195 if r.TryDecodeAsNil() { 32196 x.WriteRequest.Namespace = "" 32197 } else { 32198 x.Namespace = (string)(r.DecodeString()) 32199 } 32200 case "AuthToken": 32201 if r.TryDecodeAsNil() { 32202 x.WriteRequest.AuthToken = "" 32203 } else { 32204 x.AuthToken = (string)(r.DecodeString()) 32205 } 32206 case "Forwarded": 32207 if r.TryDecodeAsNil() { 32208 x.WriteRequest.InternalRpcInfo.Forwarded = false 32209 } else { 32210 x.Forwarded = (bool)(r.DecodeBool()) 32211 } 32212 default: 32213 z.DecStructFieldNotFound(-1, yys3) 32214 } // end switch yys3 32215 } // end for yyj3 32216 r.ReadMapEnd() 32217 } 32218 32219 func (x *JobRegisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 32220 var h codecSelfer100 32221 z, r := codec1978.GenHelperDecoder(d) 32222 _, _, _ = h, z, r 32223 var yyj12 int 32224 var yyb12 bool 32225 var yyhl12 bool = l >= 0 32226 yyj12++ 32227 if yyhl12 { 32228 yyb12 = yyj12 > l 32229 } else { 32230 yyb12 = r.CheckBreak() 32231 } 32232 if yyb12 { 32233 r.ReadArrayEnd() 32234 return 32235 } 32236 r.ReadArrayElem() 32237 if r.TryDecodeAsNil() { 32238 if true && x.Job != nil { 32239 x.Job = nil 32240 } 32241 } else { 32242 if x.Job == nil { 32243 x.Job = new(Job) 32244 } 32245 32246 x.Job.CodecDecodeSelf(d) 32247 } 32248 yyj12++ 32249 if yyhl12 { 32250 yyb12 = yyj12 > l 32251 } else { 32252 yyb12 = r.CheckBreak() 32253 } 32254 if yyb12 { 32255 r.ReadArrayEnd() 32256 return 32257 } 32258 r.ReadArrayElem() 32259 if r.TryDecodeAsNil() { 32260 x.EnforceIndex = false 32261 } else { 32262 x.EnforceIndex = (bool)(r.DecodeBool()) 32263 } 32264 yyj12++ 32265 if yyhl12 { 32266 yyb12 = yyj12 > l 32267 } else { 32268 yyb12 = r.CheckBreak() 32269 } 32270 if yyb12 { 32271 r.ReadArrayEnd() 32272 return 32273 } 32274 r.ReadArrayElem() 32275 if r.TryDecodeAsNil() { 32276 x.JobModifyIndex = 0 32277 } else { 32278 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 32279 } 32280 yyj12++ 32281 if yyhl12 { 32282 yyb12 = yyj12 > l 32283 } else { 32284 yyb12 = r.CheckBreak() 32285 } 32286 if yyb12 { 32287 r.ReadArrayEnd() 32288 return 32289 } 32290 r.ReadArrayElem() 32291 if r.TryDecodeAsNil() { 32292 x.PolicyOverride = false 32293 } else { 32294 x.PolicyOverride = (bool)(r.DecodeBool()) 32295 } 32296 yyj12++ 32297 if yyhl12 { 32298 yyb12 = yyj12 > l 32299 } else { 32300 yyb12 = r.CheckBreak() 32301 } 32302 if yyb12 { 32303 r.ReadArrayEnd() 32304 return 32305 } 32306 r.ReadArrayElem() 32307 if r.TryDecodeAsNil() { 32308 x.WriteRequest.Region = "" 32309 } else { 32310 x.Region = (string)(r.DecodeString()) 32311 } 32312 yyj12++ 32313 if yyhl12 { 32314 yyb12 = yyj12 > l 32315 } else { 32316 yyb12 = r.CheckBreak() 32317 } 32318 if yyb12 { 32319 r.ReadArrayEnd() 32320 return 32321 } 32322 r.ReadArrayElem() 32323 if r.TryDecodeAsNil() { 32324 x.WriteRequest.Namespace = "" 32325 } else { 32326 x.Namespace = (string)(r.DecodeString()) 32327 } 32328 yyj12++ 32329 if yyhl12 { 32330 yyb12 = yyj12 > l 32331 } else { 32332 yyb12 = r.CheckBreak() 32333 } 32334 if yyb12 { 32335 r.ReadArrayEnd() 32336 return 32337 } 32338 r.ReadArrayElem() 32339 if r.TryDecodeAsNil() { 32340 x.WriteRequest.AuthToken = "" 32341 } else { 32342 x.AuthToken = (string)(r.DecodeString()) 32343 } 32344 yyj12++ 32345 if yyhl12 { 32346 yyb12 = yyj12 > l 32347 } else { 32348 yyb12 = r.CheckBreak() 32349 } 32350 if yyb12 { 32351 r.ReadArrayEnd() 32352 return 32353 } 32354 r.ReadArrayElem() 32355 if r.TryDecodeAsNil() { 32356 x.WriteRequest.InternalRpcInfo.Forwarded = false 32357 } else { 32358 x.Forwarded = (bool)(r.DecodeBool()) 32359 } 32360 for { 32361 yyj12++ 32362 if yyhl12 { 32363 yyb12 = yyj12 > l 32364 } else { 32365 yyb12 = r.CheckBreak() 32366 } 32367 if yyb12 { 32368 break 32369 } 32370 r.ReadArrayElem() 32371 z.DecStructFieldNotFound(yyj12-1, "") 32372 } 32373 r.ReadArrayEnd() 32374 } 32375 32376 func (x *JobDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { 32377 var h codecSelfer100 32378 z, r := codec1978.GenHelperEncoder(e) 32379 _, _, _ = h, z, r 32380 if x == nil { 32381 r.EncodeNil() 32382 } else { 32383 if false { 32384 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 32385 z.EncExtension(x, yyxt1) 32386 } else { 32387 yysep2 := !z.EncBinary() 32388 yy2arr2 := z.EncBasicHandle().StructToArray 32389 _, _ = yysep2, yy2arr2 32390 const yyr2 bool = false // struct tag has 'toArray' 32391 if yyr2 || yy2arr2 { 32392 r.WriteArrayStart(6) 32393 } else { 32394 r.WriteMapStart(6) 32395 } 32396 if yyr2 || yy2arr2 { 32397 r.WriteArrayElem() 32398 if false { 32399 } else { 32400 if z.EncBasicHandle().StringToRaw { 32401 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 32402 } else { 32403 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 32404 } 32405 } 32406 } else { 32407 r.WriteMapElemKey() 32408 if z.IsJSONHandle() { 32409 z.WriteStr("\"JobID\"") 32410 } else { 32411 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 32412 } 32413 r.WriteMapElemValue() 32414 if false { 32415 } else { 32416 if z.EncBasicHandle().StringToRaw { 32417 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 32418 } else { 32419 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 32420 } 32421 } 32422 } 32423 if yyr2 || yy2arr2 { 32424 r.WriteArrayElem() 32425 if false { 32426 } else { 32427 r.EncodeBool(bool(x.Purge)) 32428 } 32429 } else { 32430 r.WriteMapElemKey() 32431 if z.IsJSONHandle() { 32432 z.WriteStr("\"Purge\"") 32433 } else { 32434 r.EncodeStringEnc(codecSelferCcUTF8100, `Purge`) 32435 } 32436 r.WriteMapElemValue() 32437 if false { 32438 } else { 32439 r.EncodeBool(bool(x.Purge)) 32440 } 32441 } 32442 if yyr2 || yy2arr2 { 32443 r.WriteArrayElem() 32444 if false { 32445 } else { 32446 if z.EncBasicHandle().StringToRaw { 32447 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 32448 } else { 32449 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 32450 } 32451 } 32452 } else { 32453 r.WriteMapElemKey() 32454 if z.IsJSONHandle() { 32455 z.WriteStr("\"Region\"") 32456 } else { 32457 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 32458 } 32459 r.WriteMapElemValue() 32460 if false { 32461 } else { 32462 if z.EncBasicHandle().StringToRaw { 32463 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 32464 } else { 32465 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 32466 } 32467 } 32468 } 32469 if yyr2 || yy2arr2 { 32470 r.WriteArrayElem() 32471 if false { 32472 } else { 32473 if z.EncBasicHandle().StringToRaw { 32474 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 32475 } else { 32476 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 32477 } 32478 } 32479 } else { 32480 r.WriteMapElemKey() 32481 if z.IsJSONHandle() { 32482 z.WriteStr("\"Namespace\"") 32483 } else { 32484 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 32485 } 32486 r.WriteMapElemValue() 32487 if false { 32488 } else { 32489 if z.EncBasicHandle().StringToRaw { 32490 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 32491 } else { 32492 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 32493 } 32494 } 32495 } 32496 if yyr2 || yy2arr2 { 32497 r.WriteArrayElem() 32498 if false { 32499 } else { 32500 if z.EncBasicHandle().StringToRaw { 32501 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 32502 } else { 32503 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 32504 } 32505 } 32506 } else { 32507 r.WriteMapElemKey() 32508 if z.IsJSONHandle() { 32509 z.WriteStr("\"AuthToken\"") 32510 } else { 32511 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 32512 } 32513 r.WriteMapElemValue() 32514 if false { 32515 } else { 32516 if z.EncBasicHandle().StringToRaw { 32517 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 32518 } else { 32519 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 32520 } 32521 } 32522 } 32523 if yyr2 || yy2arr2 { 32524 r.WriteArrayElem() 32525 if false { 32526 } else { 32527 r.EncodeBool(bool(x.Forwarded)) 32528 } 32529 } else { 32530 r.WriteMapElemKey() 32531 if z.IsJSONHandle() { 32532 z.WriteStr("\"Forwarded\"") 32533 } else { 32534 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 32535 } 32536 r.WriteMapElemValue() 32537 if false { 32538 } else { 32539 r.EncodeBool(bool(x.Forwarded)) 32540 } 32541 } 32542 if yyr2 || yy2arr2 { 32543 r.WriteArrayEnd() 32544 } else { 32545 r.WriteMapEnd() 32546 } 32547 } 32548 } 32549 } 32550 32551 func (x *JobDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { 32552 var h codecSelfer100 32553 z, r := codec1978.GenHelperDecoder(d) 32554 _, _, _ = h, z, r 32555 if false { 32556 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 32557 z.DecExtension(x, yyxt1) 32558 } else { 32559 yyct2 := r.ContainerType() 32560 if yyct2 == codecSelferValueTypeMap100 { 32561 yyl2 := r.ReadMapStart() 32562 if yyl2 == 0 { 32563 r.ReadMapEnd() 32564 } else { 32565 x.codecDecodeSelfFromMap(yyl2, d) 32566 } 32567 } else if yyct2 == codecSelferValueTypeArray100 { 32568 yyl2 := r.ReadArrayStart() 32569 if yyl2 == 0 { 32570 r.ReadArrayEnd() 32571 } else { 32572 x.codecDecodeSelfFromArray(yyl2, d) 32573 } 32574 } else { 32575 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 32576 } 32577 } 32578 } 32579 32580 func (x *JobDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 32581 var h codecSelfer100 32582 z, r := codec1978.GenHelperDecoder(d) 32583 _, _, _ = h, z, r 32584 var yyhl3 bool = l >= 0 32585 for yyj3 := 0; ; yyj3++ { 32586 if yyhl3 { 32587 if yyj3 >= l { 32588 break 32589 } 32590 } else { 32591 if r.CheckBreak() { 32592 break 32593 } 32594 } 32595 r.ReadMapElemKey() 32596 yys3 := z.StringView(r.DecodeStringAsBytes()) 32597 r.ReadMapElemValue() 32598 switch yys3 { 32599 case "JobID": 32600 if r.TryDecodeAsNil() { 32601 x.JobID = "" 32602 } else { 32603 x.JobID = (string)(r.DecodeString()) 32604 } 32605 case "Purge": 32606 if r.TryDecodeAsNil() { 32607 x.Purge = false 32608 } else { 32609 x.Purge = (bool)(r.DecodeBool()) 32610 } 32611 case "Region": 32612 if r.TryDecodeAsNil() { 32613 x.WriteRequest.Region = "" 32614 } else { 32615 x.Region = (string)(r.DecodeString()) 32616 } 32617 case "Namespace": 32618 if r.TryDecodeAsNil() { 32619 x.WriteRequest.Namespace = "" 32620 } else { 32621 x.Namespace = (string)(r.DecodeString()) 32622 } 32623 case "AuthToken": 32624 if r.TryDecodeAsNil() { 32625 x.WriteRequest.AuthToken = "" 32626 } else { 32627 x.AuthToken = (string)(r.DecodeString()) 32628 } 32629 case "Forwarded": 32630 if r.TryDecodeAsNil() { 32631 x.WriteRequest.InternalRpcInfo.Forwarded = false 32632 } else { 32633 x.Forwarded = (bool)(r.DecodeBool()) 32634 } 32635 default: 32636 z.DecStructFieldNotFound(-1, yys3) 32637 } // end switch yys3 32638 } // end for yyj3 32639 r.ReadMapEnd() 32640 } 32641 32642 func (x *JobDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 32643 var h codecSelfer100 32644 z, r := codec1978.GenHelperDecoder(d) 32645 _, _, _ = h, z, r 32646 var yyj10 int 32647 var yyb10 bool 32648 var yyhl10 bool = l >= 0 32649 yyj10++ 32650 if yyhl10 { 32651 yyb10 = yyj10 > l 32652 } else { 32653 yyb10 = r.CheckBreak() 32654 } 32655 if yyb10 { 32656 r.ReadArrayEnd() 32657 return 32658 } 32659 r.ReadArrayElem() 32660 if r.TryDecodeAsNil() { 32661 x.JobID = "" 32662 } else { 32663 x.JobID = (string)(r.DecodeString()) 32664 } 32665 yyj10++ 32666 if yyhl10 { 32667 yyb10 = yyj10 > l 32668 } else { 32669 yyb10 = r.CheckBreak() 32670 } 32671 if yyb10 { 32672 r.ReadArrayEnd() 32673 return 32674 } 32675 r.ReadArrayElem() 32676 if r.TryDecodeAsNil() { 32677 x.Purge = false 32678 } else { 32679 x.Purge = (bool)(r.DecodeBool()) 32680 } 32681 yyj10++ 32682 if yyhl10 { 32683 yyb10 = yyj10 > l 32684 } else { 32685 yyb10 = r.CheckBreak() 32686 } 32687 if yyb10 { 32688 r.ReadArrayEnd() 32689 return 32690 } 32691 r.ReadArrayElem() 32692 if r.TryDecodeAsNil() { 32693 x.WriteRequest.Region = "" 32694 } else { 32695 x.Region = (string)(r.DecodeString()) 32696 } 32697 yyj10++ 32698 if yyhl10 { 32699 yyb10 = yyj10 > l 32700 } else { 32701 yyb10 = r.CheckBreak() 32702 } 32703 if yyb10 { 32704 r.ReadArrayEnd() 32705 return 32706 } 32707 r.ReadArrayElem() 32708 if r.TryDecodeAsNil() { 32709 x.WriteRequest.Namespace = "" 32710 } else { 32711 x.Namespace = (string)(r.DecodeString()) 32712 } 32713 yyj10++ 32714 if yyhl10 { 32715 yyb10 = yyj10 > l 32716 } else { 32717 yyb10 = r.CheckBreak() 32718 } 32719 if yyb10 { 32720 r.ReadArrayEnd() 32721 return 32722 } 32723 r.ReadArrayElem() 32724 if r.TryDecodeAsNil() { 32725 x.WriteRequest.AuthToken = "" 32726 } else { 32727 x.AuthToken = (string)(r.DecodeString()) 32728 } 32729 yyj10++ 32730 if yyhl10 { 32731 yyb10 = yyj10 > l 32732 } else { 32733 yyb10 = r.CheckBreak() 32734 } 32735 if yyb10 { 32736 r.ReadArrayEnd() 32737 return 32738 } 32739 r.ReadArrayElem() 32740 if r.TryDecodeAsNil() { 32741 x.WriteRequest.InternalRpcInfo.Forwarded = false 32742 } else { 32743 x.Forwarded = (bool)(r.DecodeBool()) 32744 } 32745 for { 32746 yyj10++ 32747 if yyhl10 { 32748 yyb10 = yyj10 > l 32749 } else { 32750 yyb10 = r.CheckBreak() 32751 } 32752 if yyb10 { 32753 break 32754 } 32755 r.ReadArrayElem() 32756 z.DecStructFieldNotFound(yyj10-1, "") 32757 } 32758 r.ReadArrayEnd() 32759 } 32760 32761 func (x *JobBatchDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { 32762 var h codecSelfer100 32763 z, r := codec1978.GenHelperEncoder(e) 32764 _, _, _ = h, z, r 32765 if x == nil { 32766 r.EncodeNil() 32767 } else { 32768 if false { 32769 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 32770 z.EncExtension(x, yyxt1) 32771 } else { 32772 yysep2 := !z.EncBinary() 32773 yy2arr2 := z.EncBasicHandle().StructToArray 32774 _, _ = yysep2, yy2arr2 32775 const yyr2 bool = false // struct tag has 'toArray' 32776 if yyr2 || yy2arr2 { 32777 r.WriteArrayStart(6) 32778 } else { 32779 r.WriteMapStart(6) 32780 } 32781 if yyr2 || yy2arr2 { 32782 r.WriteArrayElem() 32783 if x.Jobs == nil { 32784 r.EncodeNil() 32785 } else { 32786 if false { 32787 } else { 32788 h.encMapNamespacedIDPtrtoJobDeregisterOptions((map[NamespacedID]*JobDeregisterOptions)(x.Jobs), e) 32789 } 32790 } 32791 } else { 32792 r.WriteMapElemKey() 32793 if z.IsJSONHandle() { 32794 z.WriteStr("\"Jobs\"") 32795 } else { 32796 r.EncodeStringEnc(codecSelferCcUTF8100, `Jobs`) 32797 } 32798 r.WriteMapElemValue() 32799 if x.Jobs == nil { 32800 r.EncodeNil() 32801 } else { 32802 if false { 32803 } else { 32804 h.encMapNamespacedIDPtrtoJobDeregisterOptions((map[NamespacedID]*JobDeregisterOptions)(x.Jobs), e) 32805 } 32806 } 32807 } 32808 if yyr2 || yy2arr2 { 32809 r.WriteArrayElem() 32810 if x.Evals == nil { 32811 r.EncodeNil() 32812 } else { 32813 if false { 32814 } else { 32815 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 32816 } 32817 } 32818 } else { 32819 r.WriteMapElemKey() 32820 if z.IsJSONHandle() { 32821 z.WriteStr("\"Evals\"") 32822 } else { 32823 r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) 32824 } 32825 r.WriteMapElemValue() 32826 if x.Evals == nil { 32827 r.EncodeNil() 32828 } else { 32829 if false { 32830 } else { 32831 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 32832 } 32833 } 32834 } 32835 if yyr2 || yy2arr2 { 32836 r.WriteArrayElem() 32837 if false { 32838 } else { 32839 if z.EncBasicHandle().StringToRaw { 32840 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 32841 } else { 32842 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 32843 } 32844 } 32845 } else { 32846 r.WriteMapElemKey() 32847 if z.IsJSONHandle() { 32848 z.WriteStr("\"Region\"") 32849 } else { 32850 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 32851 } 32852 r.WriteMapElemValue() 32853 if false { 32854 } else { 32855 if z.EncBasicHandle().StringToRaw { 32856 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 32857 } else { 32858 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 32859 } 32860 } 32861 } 32862 if yyr2 || yy2arr2 { 32863 r.WriteArrayElem() 32864 if false { 32865 } else { 32866 if z.EncBasicHandle().StringToRaw { 32867 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 32868 } else { 32869 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 32870 } 32871 } 32872 } else { 32873 r.WriteMapElemKey() 32874 if z.IsJSONHandle() { 32875 z.WriteStr("\"Namespace\"") 32876 } else { 32877 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 32878 } 32879 r.WriteMapElemValue() 32880 if false { 32881 } else { 32882 if z.EncBasicHandle().StringToRaw { 32883 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 32884 } else { 32885 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 32886 } 32887 } 32888 } 32889 if yyr2 || yy2arr2 { 32890 r.WriteArrayElem() 32891 if false { 32892 } else { 32893 if z.EncBasicHandle().StringToRaw { 32894 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 32895 } else { 32896 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 32897 } 32898 } 32899 } else { 32900 r.WriteMapElemKey() 32901 if z.IsJSONHandle() { 32902 z.WriteStr("\"AuthToken\"") 32903 } else { 32904 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 32905 } 32906 r.WriteMapElemValue() 32907 if false { 32908 } else { 32909 if z.EncBasicHandle().StringToRaw { 32910 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 32911 } else { 32912 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 32913 } 32914 } 32915 } 32916 if yyr2 || yy2arr2 { 32917 r.WriteArrayElem() 32918 if false { 32919 } else { 32920 r.EncodeBool(bool(x.Forwarded)) 32921 } 32922 } else { 32923 r.WriteMapElemKey() 32924 if z.IsJSONHandle() { 32925 z.WriteStr("\"Forwarded\"") 32926 } else { 32927 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 32928 } 32929 r.WriteMapElemValue() 32930 if false { 32931 } else { 32932 r.EncodeBool(bool(x.Forwarded)) 32933 } 32934 } 32935 if yyr2 || yy2arr2 { 32936 r.WriteArrayEnd() 32937 } else { 32938 r.WriteMapEnd() 32939 } 32940 } 32941 } 32942 } 32943 32944 func (x *JobBatchDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { 32945 var h codecSelfer100 32946 z, r := codec1978.GenHelperDecoder(d) 32947 _, _, _ = h, z, r 32948 if false { 32949 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 32950 z.DecExtension(x, yyxt1) 32951 } else { 32952 yyct2 := r.ContainerType() 32953 if yyct2 == codecSelferValueTypeMap100 { 32954 yyl2 := r.ReadMapStart() 32955 if yyl2 == 0 { 32956 r.ReadMapEnd() 32957 } else { 32958 x.codecDecodeSelfFromMap(yyl2, d) 32959 } 32960 } else if yyct2 == codecSelferValueTypeArray100 { 32961 yyl2 := r.ReadArrayStart() 32962 if yyl2 == 0 { 32963 r.ReadArrayEnd() 32964 } else { 32965 x.codecDecodeSelfFromArray(yyl2, d) 32966 } 32967 } else { 32968 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 32969 } 32970 } 32971 } 32972 32973 func (x *JobBatchDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 32974 var h codecSelfer100 32975 z, r := codec1978.GenHelperDecoder(d) 32976 _, _, _ = h, z, r 32977 var yyhl3 bool = l >= 0 32978 for yyj3 := 0; ; yyj3++ { 32979 if yyhl3 { 32980 if yyj3 >= l { 32981 break 32982 } 32983 } else { 32984 if r.CheckBreak() { 32985 break 32986 } 32987 } 32988 r.ReadMapElemKey() 32989 yys3 := z.StringView(r.DecodeStringAsBytes()) 32990 r.ReadMapElemValue() 32991 switch yys3 { 32992 case "Jobs": 32993 if r.TryDecodeAsNil() { 32994 x.Jobs = nil 32995 } else { 32996 if false { 32997 } else { 32998 h.decMapNamespacedIDPtrtoJobDeregisterOptions((*map[NamespacedID]*JobDeregisterOptions)(&x.Jobs), d) 32999 } 33000 } 33001 case "Evals": 33002 if r.TryDecodeAsNil() { 33003 x.Evals = nil 33004 } else { 33005 if false { 33006 } else { 33007 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 33008 } 33009 } 33010 case "Region": 33011 if r.TryDecodeAsNil() { 33012 x.WriteRequest.Region = "" 33013 } else { 33014 x.Region = (string)(r.DecodeString()) 33015 } 33016 case "Namespace": 33017 if r.TryDecodeAsNil() { 33018 x.WriteRequest.Namespace = "" 33019 } else { 33020 x.Namespace = (string)(r.DecodeString()) 33021 } 33022 case "AuthToken": 33023 if r.TryDecodeAsNil() { 33024 x.WriteRequest.AuthToken = "" 33025 } else { 33026 x.AuthToken = (string)(r.DecodeString()) 33027 } 33028 case "Forwarded": 33029 if r.TryDecodeAsNil() { 33030 x.WriteRequest.InternalRpcInfo.Forwarded = false 33031 } else { 33032 x.Forwarded = (bool)(r.DecodeBool()) 33033 } 33034 default: 33035 z.DecStructFieldNotFound(-1, yys3) 33036 } // end switch yys3 33037 } // end for yyj3 33038 r.ReadMapEnd() 33039 } 33040 33041 func (x *JobBatchDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 33042 var h codecSelfer100 33043 z, r := codec1978.GenHelperDecoder(d) 33044 _, _, _ = h, z, r 33045 var yyj12 int 33046 var yyb12 bool 33047 var yyhl12 bool = l >= 0 33048 yyj12++ 33049 if yyhl12 { 33050 yyb12 = yyj12 > l 33051 } else { 33052 yyb12 = r.CheckBreak() 33053 } 33054 if yyb12 { 33055 r.ReadArrayEnd() 33056 return 33057 } 33058 r.ReadArrayElem() 33059 if r.TryDecodeAsNil() { 33060 x.Jobs = nil 33061 } else { 33062 if false { 33063 } else { 33064 h.decMapNamespacedIDPtrtoJobDeregisterOptions((*map[NamespacedID]*JobDeregisterOptions)(&x.Jobs), d) 33065 } 33066 } 33067 yyj12++ 33068 if yyhl12 { 33069 yyb12 = yyj12 > l 33070 } else { 33071 yyb12 = r.CheckBreak() 33072 } 33073 if yyb12 { 33074 r.ReadArrayEnd() 33075 return 33076 } 33077 r.ReadArrayElem() 33078 if r.TryDecodeAsNil() { 33079 x.Evals = nil 33080 } else { 33081 if false { 33082 } else { 33083 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 33084 } 33085 } 33086 yyj12++ 33087 if yyhl12 { 33088 yyb12 = yyj12 > l 33089 } else { 33090 yyb12 = r.CheckBreak() 33091 } 33092 if yyb12 { 33093 r.ReadArrayEnd() 33094 return 33095 } 33096 r.ReadArrayElem() 33097 if r.TryDecodeAsNil() { 33098 x.WriteRequest.Region = "" 33099 } else { 33100 x.Region = (string)(r.DecodeString()) 33101 } 33102 yyj12++ 33103 if yyhl12 { 33104 yyb12 = yyj12 > l 33105 } else { 33106 yyb12 = r.CheckBreak() 33107 } 33108 if yyb12 { 33109 r.ReadArrayEnd() 33110 return 33111 } 33112 r.ReadArrayElem() 33113 if r.TryDecodeAsNil() { 33114 x.WriteRequest.Namespace = "" 33115 } else { 33116 x.Namespace = (string)(r.DecodeString()) 33117 } 33118 yyj12++ 33119 if yyhl12 { 33120 yyb12 = yyj12 > l 33121 } else { 33122 yyb12 = r.CheckBreak() 33123 } 33124 if yyb12 { 33125 r.ReadArrayEnd() 33126 return 33127 } 33128 r.ReadArrayElem() 33129 if r.TryDecodeAsNil() { 33130 x.WriteRequest.AuthToken = "" 33131 } else { 33132 x.AuthToken = (string)(r.DecodeString()) 33133 } 33134 yyj12++ 33135 if yyhl12 { 33136 yyb12 = yyj12 > l 33137 } else { 33138 yyb12 = r.CheckBreak() 33139 } 33140 if yyb12 { 33141 r.ReadArrayEnd() 33142 return 33143 } 33144 r.ReadArrayElem() 33145 if r.TryDecodeAsNil() { 33146 x.WriteRequest.InternalRpcInfo.Forwarded = false 33147 } else { 33148 x.Forwarded = (bool)(r.DecodeBool()) 33149 } 33150 for { 33151 yyj12++ 33152 if yyhl12 { 33153 yyb12 = yyj12 > l 33154 } else { 33155 yyb12 = r.CheckBreak() 33156 } 33157 if yyb12 { 33158 break 33159 } 33160 r.ReadArrayElem() 33161 z.DecStructFieldNotFound(yyj12-1, "") 33162 } 33163 r.ReadArrayEnd() 33164 } 33165 33166 func (x *JobDeregisterOptions) CodecEncodeSelf(e *codec1978.Encoder) { 33167 var h codecSelfer100 33168 z, r := codec1978.GenHelperEncoder(e) 33169 _, _, _ = h, z, r 33170 if x == nil { 33171 r.EncodeNil() 33172 } else { 33173 if false { 33174 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 33175 z.EncExtension(x, yyxt1) 33176 } else { 33177 yysep2 := !z.EncBinary() 33178 yy2arr2 := z.EncBasicHandle().StructToArray 33179 _, _ = yysep2, yy2arr2 33180 const yyr2 bool = false // struct tag has 'toArray' 33181 if yyr2 || yy2arr2 { 33182 r.WriteArrayStart(1) 33183 } else { 33184 r.WriteMapStart(1) 33185 } 33186 if yyr2 || yy2arr2 { 33187 r.WriteArrayElem() 33188 if false { 33189 } else { 33190 r.EncodeBool(bool(x.Purge)) 33191 } 33192 } else { 33193 r.WriteMapElemKey() 33194 if z.IsJSONHandle() { 33195 z.WriteStr("\"Purge\"") 33196 } else { 33197 r.EncodeStringEnc(codecSelferCcUTF8100, `Purge`) 33198 } 33199 r.WriteMapElemValue() 33200 if false { 33201 } else { 33202 r.EncodeBool(bool(x.Purge)) 33203 } 33204 } 33205 if yyr2 || yy2arr2 { 33206 r.WriteArrayEnd() 33207 } else { 33208 r.WriteMapEnd() 33209 } 33210 } 33211 } 33212 } 33213 33214 func (x *JobDeregisterOptions) CodecDecodeSelf(d *codec1978.Decoder) { 33215 var h codecSelfer100 33216 z, r := codec1978.GenHelperDecoder(d) 33217 _, _, _ = h, z, r 33218 if false { 33219 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 33220 z.DecExtension(x, yyxt1) 33221 } else { 33222 yyct2 := r.ContainerType() 33223 if yyct2 == codecSelferValueTypeMap100 { 33224 yyl2 := r.ReadMapStart() 33225 if yyl2 == 0 { 33226 r.ReadMapEnd() 33227 } else { 33228 x.codecDecodeSelfFromMap(yyl2, d) 33229 } 33230 } else if yyct2 == codecSelferValueTypeArray100 { 33231 yyl2 := r.ReadArrayStart() 33232 if yyl2 == 0 { 33233 r.ReadArrayEnd() 33234 } else { 33235 x.codecDecodeSelfFromArray(yyl2, d) 33236 } 33237 } else { 33238 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 33239 } 33240 } 33241 } 33242 33243 func (x *JobDeregisterOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 33244 var h codecSelfer100 33245 z, r := codec1978.GenHelperDecoder(d) 33246 _, _, _ = h, z, r 33247 var yyhl3 bool = l >= 0 33248 for yyj3 := 0; ; yyj3++ { 33249 if yyhl3 { 33250 if yyj3 >= l { 33251 break 33252 } 33253 } else { 33254 if r.CheckBreak() { 33255 break 33256 } 33257 } 33258 r.ReadMapElemKey() 33259 yys3 := z.StringView(r.DecodeStringAsBytes()) 33260 r.ReadMapElemValue() 33261 switch yys3 { 33262 case "Purge": 33263 if r.TryDecodeAsNil() { 33264 x.Purge = false 33265 } else { 33266 x.Purge = (bool)(r.DecodeBool()) 33267 } 33268 default: 33269 z.DecStructFieldNotFound(-1, yys3) 33270 } // end switch yys3 33271 } // end for yyj3 33272 r.ReadMapEnd() 33273 } 33274 33275 func (x *JobDeregisterOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 33276 var h codecSelfer100 33277 z, r := codec1978.GenHelperDecoder(d) 33278 _, _, _ = h, z, r 33279 var yyj5 int 33280 var yyb5 bool 33281 var yyhl5 bool = l >= 0 33282 yyj5++ 33283 if yyhl5 { 33284 yyb5 = yyj5 > l 33285 } else { 33286 yyb5 = r.CheckBreak() 33287 } 33288 if yyb5 { 33289 r.ReadArrayEnd() 33290 return 33291 } 33292 r.ReadArrayElem() 33293 if r.TryDecodeAsNil() { 33294 x.Purge = false 33295 } else { 33296 x.Purge = (bool)(r.DecodeBool()) 33297 } 33298 for { 33299 yyj5++ 33300 if yyhl5 { 33301 yyb5 = yyj5 > l 33302 } else { 33303 yyb5 = r.CheckBreak() 33304 } 33305 if yyb5 { 33306 break 33307 } 33308 r.ReadArrayElem() 33309 z.DecStructFieldNotFound(yyj5-1, "") 33310 } 33311 r.ReadArrayEnd() 33312 } 33313 33314 func (x *JobEvaluateRequest) CodecEncodeSelf(e *codec1978.Encoder) { 33315 var h codecSelfer100 33316 z, r := codec1978.GenHelperEncoder(e) 33317 _, _, _ = h, z, r 33318 if x == nil { 33319 r.EncodeNil() 33320 } else { 33321 if false { 33322 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 33323 z.EncExtension(x, yyxt1) 33324 } else { 33325 yysep2 := !z.EncBinary() 33326 yy2arr2 := z.EncBasicHandle().StructToArray 33327 _, _ = yysep2, yy2arr2 33328 const yyr2 bool = false // struct tag has 'toArray' 33329 if yyr2 || yy2arr2 { 33330 r.WriteArrayStart(6) 33331 } else { 33332 r.WriteMapStart(6) 33333 } 33334 if yyr2 || yy2arr2 { 33335 r.WriteArrayElem() 33336 if false { 33337 } else { 33338 if z.EncBasicHandle().StringToRaw { 33339 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 33340 } else { 33341 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 33342 } 33343 } 33344 } else { 33345 r.WriteMapElemKey() 33346 if z.IsJSONHandle() { 33347 z.WriteStr("\"JobID\"") 33348 } else { 33349 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 33350 } 33351 r.WriteMapElemValue() 33352 if false { 33353 } else { 33354 if z.EncBasicHandle().StringToRaw { 33355 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 33356 } else { 33357 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 33358 } 33359 } 33360 } 33361 if yyr2 || yy2arr2 { 33362 r.WriteArrayElem() 33363 yy7 := &x.EvalOptions 33364 yy7.CodecEncodeSelf(e) 33365 } else { 33366 r.WriteMapElemKey() 33367 if z.IsJSONHandle() { 33368 z.WriteStr("\"EvalOptions\"") 33369 } else { 33370 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalOptions`) 33371 } 33372 r.WriteMapElemValue() 33373 yy9 := &x.EvalOptions 33374 yy9.CodecEncodeSelf(e) 33375 } 33376 if yyr2 || yy2arr2 { 33377 r.WriteArrayElem() 33378 if false { 33379 } else { 33380 if z.EncBasicHandle().StringToRaw { 33381 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 33382 } else { 33383 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 33384 } 33385 } 33386 } else { 33387 r.WriteMapElemKey() 33388 if z.IsJSONHandle() { 33389 z.WriteStr("\"Region\"") 33390 } else { 33391 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 33392 } 33393 r.WriteMapElemValue() 33394 if false { 33395 } else { 33396 if z.EncBasicHandle().StringToRaw { 33397 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 33398 } else { 33399 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 33400 } 33401 } 33402 } 33403 if yyr2 || yy2arr2 { 33404 r.WriteArrayElem() 33405 if false { 33406 } else { 33407 if z.EncBasicHandle().StringToRaw { 33408 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 33409 } else { 33410 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 33411 } 33412 } 33413 } else { 33414 r.WriteMapElemKey() 33415 if z.IsJSONHandle() { 33416 z.WriteStr("\"Namespace\"") 33417 } else { 33418 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 33419 } 33420 r.WriteMapElemValue() 33421 if false { 33422 } else { 33423 if z.EncBasicHandle().StringToRaw { 33424 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 33425 } else { 33426 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 33427 } 33428 } 33429 } 33430 if yyr2 || yy2arr2 { 33431 r.WriteArrayElem() 33432 if false { 33433 } else { 33434 if z.EncBasicHandle().StringToRaw { 33435 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 33436 } else { 33437 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 33438 } 33439 } 33440 } else { 33441 r.WriteMapElemKey() 33442 if z.IsJSONHandle() { 33443 z.WriteStr("\"AuthToken\"") 33444 } else { 33445 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 33446 } 33447 r.WriteMapElemValue() 33448 if false { 33449 } else { 33450 if z.EncBasicHandle().StringToRaw { 33451 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 33452 } else { 33453 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 33454 } 33455 } 33456 } 33457 if yyr2 || yy2arr2 { 33458 r.WriteArrayElem() 33459 if false { 33460 } else { 33461 r.EncodeBool(bool(x.Forwarded)) 33462 } 33463 } else { 33464 r.WriteMapElemKey() 33465 if z.IsJSONHandle() { 33466 z.WriteStr("\"Forwarded\"") 33467 } else { 33468 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 33469 } 33470 r.WriteMapElemValue() 33471 if false { 33472 } else { 33473 r.EncodeBool(bool(x.Forwarded)) 33474 } 33475 } 33476 if yyr2 || yy2arr2 { 33477 r.WriteArrayEnd() 33478 } else { 33479 r.WriteMapEnd() 33480 } 33481 } 33482 } 33483 } 33484 33485 func (x *JobEvaluateRequest) CodecDecodeSelf(d *codec1978.Decoder) { 33486 var h codecSelfer100 33487 z, r := codec1978.GenHelperDecoder(d) 33488 _, _, _ = h, z, r 33489 if false { 33490 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 33491 z.DecExtension(x, yyxt1) 33492 } else { 33493 yyct2 := r.ContainerType() 33494 if yyct2 == codecSelferValueTypeMap100 { 33495 yyl2 := r.ReadMapStart() 33496 if yyl2 == 0 { 33497 r.ReadMapEnd() 33498 } else { 33499 x.codecDecodeSelfFromMap(yyl2, d) 33500 } 33501 } else if yyct2 == codecSelferValueTypeArray100 { 33502 yyl2 := r.ReadArrayStart() 33503 if yyl2 == 0 { 33504 r.ReadArrayEnd() 33505 } else { 33506 x.codecDecodeSelfFromArray(yyl2, d) 33507 } 33508 } else { 33509 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 33510 } 33511 } 33512 } 33513 33514 func (x *JobEvaluateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 33515 var h codecSelfer100 33516 z, r := codec1978.GenHelperDecoder(d) 33517 _, _, _ = h, z, r 33518 var yyhl3 bool = l >= 0 33519 for yyj3 := 0; ; yyj3++ { 33520 if yyhl3 { 33521 if yyj3 >= l { 33522 break 33523 } 33524 } else { 33525 if r.CheckBreak() { 33526 break 33527 } 33528 } 33529 r.ReadMapElemKey() 33530 yys3 := z.StringView(r.DecodeStringAsBytes()) 33531 r.ReadMapElemValue() 33532 switch yys3 { 33533 case "JobID": 33534 if r.TryDecodeAsNil() { 33535 x.JobID = "" 33536 } else { 33537 x.JobID = (string)(r.DecodeString()) 33538 } 33539 case "EvalOptions": 33540 if r.TryDecodeAsNil() { 33541 x.EvalOptions = EvalOptions{} 33542 } else { 33543 x.EvalOptions.CodecDecodeSelf(d) 33544 } 33545 case "Region": 33546 if r.TryDecodeAsNil() { 33547 x.WriteRequest.Region = "" 33548 } else { 33549 x.Region = (string)(r.DecodeString()) 33550 } 33551 case "Namespace": 33552 if r.TryDecodeAsNil() { 33553 x.WriteRequest.Namespace = "" 33554 } else { 33555 x.Namespace = (string)(r.DecodeString()) 33556 } 33557 case "AuthToken": 33558 if r.TryDecodeAsNil() { 33559 x.WriteRequest.AuthToken = "" 33560 } else { 33561 x.AuthToken = (string)(r.DecodeString()) 33562 } 33563 case "Forwarded": 33564 if r.TryDecodeAsNil() { 33565 x.WriteRequest.InternalRpcInfo.Forwarded = false 33566 } else { 33567 x.Forwarded = (bool)(r.DecodeBool()) 33568 } 33569 default: 33570 z.DecStructFieldNotFound(-1, yys3) 33571 } // end switch yys3 33572 } // end for yyj3 33573 r.ReadMapEnd() 33574 } 33575 33576 func (x *JobEvaluateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 33577 var h codecSelfer100 33578 z, r := codec1978.GenHelperDecoder(d) 33579 _, _, _ = h, z, r 33580 var yyj10 int 33581 var yyb10 bool 33582 var yyhl10 bool = l >= 0 33583 yyj10++ 33584 if yyhl10 { 33585 yyb10 = yyj10 > l 33586 } else { 33587 yyb10 = r.CheckBreak() 33588 } 33589 if yyb10 { 33590 r.ReadArrayEnd() 33591 return 33592 } 33593 r.ReadArrayElem() 33594 if r.TryDecodeAsNil() { 33595 x.JobID = "" 33596 } else { 33597 x.JobID = (string)(r.DecodeString()) 33598 } 33599 yyj10++ 33600 if yyhl10 { 33601 yyb10 = yyj10 > l 33602 } else { 33603 yyb10 = r.CheckBreak() 33604 } 33605 if yyb10 { 33606 r.ReadArrayEnd() 33607 return 33608 } 33609 r.ReadArrayElem() 33610 if r.TryDecodeAsNil() { 33611 x.EvalOptions = EvalOptions{} 33612 } else { 33613 x.EvalOptions.CodecDecodeSelf(d) 33614 } 33615 yyj10++ 33616 if yyhl10 { 33617 yyb10 = yyj10 > l 33618 } else { 33619 yyb10 = r.CheckBreak() 33620 } 33621 if yyb10 { 33622 r.ReadArrayEnd() 33623 return 33624 } 33625 r.ReadArrayElem() 33626 if r.TryDecodeAsNil() { 33627 x.WriteRequest.Region = "" 33628 } else { 33629 x.Region = (string)(r.DecodeString()) 33630 } 33631 yyj10++ 33632 if yyhl10 { 33633 yyb10 = yyj10 > l 33634 } else { 33635 yyb10 = r.CheckBreak() 33636 } 33637 if yyb10 { 33638 r.ReadArrayEnd() 33639 return 33640 } 33641 r.ReadArrayElem() 33642 if r.TryDecodeAsNil() { 33643 x.WriteRequest.Namespace = "" 33644 } else { 33645 x.Namespace = (string)(r.DecodeString()) 33646 } 33647 yyj10++ 33648 if yyhl10 { 33649 yyb10 = yyj10 > l 33650 } else { 33651 yyb10 = r.CheckBreak() 33652 } 33653 if yyb10 { 33654 r.ReadArrayEnd() 33655 return 33656 } 33657 r.ReadArrayElem() 33658 if r.TryDecodeAsNil() { 33659 x.WriteRequest.AuthToken = "" 33660 } else { 33661 x.AuthToken = (string)(r.DecodeString()) 33662 } 33663 yyj10++ 33664 if yyhl10 { 33665 yyb10 = yyj10 > l 33666 } else { 33667 yyb10 = r.CheckBreak() 33668 } 33669 if yyb10 { 33670 r.ReadArrayEnd() 33671 return 33672 } 33673 r.ReadArrayElem() 33674 if r.TryDecodeAsNil() { 33675 x.WriteRequest.InternalRpcInfo.Forwarded = false 33676 } else { 33677 x.Forwarded = (bool)(r.DecodeBool()) 33678 } 33679 for { 33680 yyj10++ 33681 if yyhl10 { 33682 yyb10 = yyj10 > l 33683 } else { 33684 yyb10 = r.CheckBreak() 33685 } 33686 if yyb10 { 33687 break 33688 } 33689 r.ReadArrayElem() 33690 z.DecStructFieldNotFound(yyj10-1, "") 33691 } 33692 r.ReadArrayEnd() 33693 } 33694 33695 func (x *EvalOptions) CodecEncodeSelf(e *codec1978.Encoder) { 33696 var h codecSelfer100 33697 z, r := codec1978.GenHelperEncoder(e) 33698 _, _, _ = h, z, r 33699 if x == nil { 33700 r.EncodeNil() 33701 } else { 33702 if false { 33703 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 33704 z.EncExtension(x, yyxt1) 33705 } else { 33706 yysep2 := !z.EncBinary() 33707 yy2arr2 := z.EncBasicHandle().StructToArray 33708 _, _ = yysep2, yy2arr2 33709 const yyr2 bool = false // struct tag has 'toArray' 33710 if yyr2 || yy2arr2 { 33711 r.WriteArrayStart(1) 33712 } else { 33713 r.WriteMapStart(1) 33714 } 33715 if yyr2 || yy2arr2 { 33716 r.WriteArrayElem() 33717 if false { 33718 } else { 33719 r.EncodeBool(bool(x.ForceReschedule)) 33720 } 33721 } else { 33722 r.WriteMapElemKey() 33723 if z.IsJSONHandle() { 33724 z.WriteStr("\"ForceReschedule\"") 33725 } else { 33726 r.EncodeStringEnc(codecSelferCcUTF8100, `ForceReschedule`) 33727 } 33728 r.WriteMapElemValue() 33729 if false { 33730 } else { 33731 r.EncodeBool(bool(x.ForceReschedule)) 33732 } 33733 } 33734 if yyr2 || yy2arr2 { 33735 r.WriteArrayEnd() 33736 } else { 33737 r.WriteMapEnd() 33738 } 33739 } 33740 } 33741 } 33742 33743 func (x *EvalOptions) CodecDecodeSelf(d *codec1978.Decoder) { 33744 var h codecSelfer100 33745 z, r := codec1978.GenHelperDecoder(d) 33746 _, _, _ = h, z, r 33747 if false { 33748 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 33749 z.DecExtension(x, yyxt1) 33750 } else { 33751 yyct2 := r.ContainerType() 33752 if yyct2 == codecSelferValueTypeMap100 { 33753 yyl2 := r.ReadMapStart() 33754 if yyl2 == 0 { 33755 r.ReadMapEnd() 33756 } else { 33757 x.codecDecodeSelfFromMap(yyl2, d) 33758 } 33759 } else if yyct2 == codecSelferValueTypeArray100 { 33760 yyl2 := r.ReadArrayStart() 33761 if yyl2 == 0 { 33762 r.ReadArrayEnd() 33763 } else { 33764 x.codecDecodeSelfFromArray(yyl2, d) 33765 } 33766 } else { 33767 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 33768 } 33769 } 33770 } 33771 33772 func (x *EvalOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 33773 var h codecSelfer100 33774 z, r := codec1978.GenHelperDecoder(d) 33775 _, _, _ = h, z, r 33776 var yyhl3 bool = l >= 0 33777 for yyj3 := 0; ; yyj3++ { 33778 if yyhl3 { 33779 if yyj3 >= l { 33780 break 33781 } 33782 } else { 33783 if r.CheckBreak() { 33784 break 33785 } 33786 } 33787 r.ReadMapElemKey() 33788 yys3 := z.StringView(r.DecodeStringAsBytes()) 33789 r.ReadMapElemValue() 33790 switch yys3 { 33791 case "ForceReschedule": 33792 if r.TryDecodeAsNil() { 33793 x.ForceReschedule = false 33794 } else { 33795 x.ForceReschedule = (bool)(r.DecodeBool()) 33796 } 33797 default: 33798 z.DecStructFieldNotFound(-1, yys3) 33799 } // end switch yys3 33800 } // end for yyj3 33801 r.ReadMapEnd() 33802 } 33803 33804 func (x *EvalOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 33805 var h codecSelfer100 33806 z, r := codec1978.GenHelperDecoder(d) 33807 _, _, _ = h, z, r 33808 var yyj5 int 33809 var yyb5 bool 33810 var yyhl5 bool = l >= 0 33811 yyj5++ 33812 if yyhl5 { 33813 yyb5 = yyj5 > l 33814 } else { 33815 yyb5 = r.CheckBreak() 33816 } 33817 if yyb5 { 33818 r.ReadArrayEnd() 33819 return 33820 } 33821 r.ReadArrayElem() 33822 if r.TryDecodeAsNil() { 33823 x.ForceReschedule = false 33824 } else { 33825 x.ForceReschedule = (bool)(r.DecodeBool()) 33826 } 33827 for { 33828 yyj5++ 33829 if yyhl5 { 33830 yyb5 = yyj5 > l 33831 } else { 33832 yyb5 = r.CheckBreak() 33833 } 33834 if yyb5 { 33835 break 33836 } 33837 r.ReadArrayElem() 33838 z.DecStructFieldNotFound(yyj5-1, "") 33839 } 33840 r.ReadArrayEnd() 33841 } 33842 33843 func (x *JobSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { 33844 var h codecSelfer100 33845 z, r := codec1978.GenHelperEncoder(e) 33846 _, _, _ = h, z, r 33847 if x == nil { 33848 r.EncodeNil() 33849 } else { 33850 if false { 33851 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 33852 z.EncExtension(x, yyxt1) 33853 } else { 33854 yysep2 := !z.EncBinary() 33855 yy2arr2 := z.EncBasicHandle().StructToArray 33856 _, _ = yysep2, yy2arr2 33857 const yyr2 bool = false // struct tag has 'toArray' 33858 if yyr2 || yy2arr2 { 33859 r.WriteArrayStart(10) 33860 } else { 33861 r.WriteMapStart(10) 33862 } 33863 if yyr2 || yy2arr2 { 33864 r.WriteArrayElem() 33865 if false { 33866 } else { 33867 if z.EncBasicHandle().StringToRaw { 33868 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 33869 } else { 33870 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 33871 } 33872 } 33873 } else { 33874 r.WriteMapElemKey() 33875 if z.IsJSONHandle() { 33876 z.WriteStr("\"JobID\"") 33877 } else { 33878 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 33879 } 33880 r.WriteMapElemValue() 33881 if false { 33882 } else { 33883 if z.EncBasicHandle().StringToRaw { 33884 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 33885 } else { 33886 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 33887 } 33888 } 33889 } 33890 if yyr2 || yy2arr2 { 33891 r.WriteArrayElem() 33892 if false { 33893 } else { 33894 r.EncodeBool(bool(x.All)) 33895 } 33896 } else { 33897 r.WriteMapElemKey() 33898 if z.IsJSONHandle() { 33899 z.WriteStr("\"All\"") 33900 } else { 33901 r.EncodeStringEnc(codecSelferCcUTF8100, `All`) 33902 } 33903 r.WriteMapElemValue() 33904 if false { 33905 } else { 33906 r.EncodeBool(bool(x.All)) 33907 } 33908 } 33909 if yyr2 || yy2arr2 { 33910 r.WriteArrayElem() 33911 if false { 33912 } else { 33913 if z.EncBasicHandle().StringToRaw { 33914 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 33915 } else { 33916 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 33917 } 33918 } 33919 } else { 33920 r.WriteMapElemKey() 33921 if z.IsJSONHandle() { 33922 z.WriteStr("\"Region\"") 33923 } else { 33924 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 33925 } 33926 r.WriteMapElemValue() 33927 if false { 33928 } else { 33929 if z.EncBasicHandle().StringToRaw { 33930 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 33931 } else { 33932 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 33933 } 33934 } 33935 } 33936 if yyr2 || yy2arr2 { 33937 r.WriteArrayElem() 33938 if false { 33939 } else { 33940 if z.EncBasicHandle().StringToRaw { 33941 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 33942 } else { 33943 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 33944 } 33945 } 33946 } else { 33947 r.WriteMapElemKey() 33948 if z.IsJSONHandle() { 33949 z.WriteStr("\"Namespace\"") 33950 } else { 33951 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 33952 } 33953 r.WriteMapElemValue() 33954 if false { 33955 } else { 33956 if z.EncBasicHandle().StringToRaw { 33957 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 33958 } else { 33959 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 33960 } 33961 } 33962 } 33963 if yyr2 || yy2arr2 { 33964 r.WriteArrayElem() 33965 if false { 33966 } else { 33967 r.EncodeUint(uint64(x.MinQueryIndex)) 33968 } 33969 } else { 33970 r.WriteMapElemKey() 33971 if z.IsJSONHandle() { 33972 z.WriteStr("\"MinQueryIndex\"") 33973 } else { 33974 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 33975 } 33976 r.WriteMapElemValue() 33977 if false { 33978 } else { 33979 r.EncodeUint(uint64(x.MinQueryIndex)) 33980 } 33981 } 33982 if yyr2 || yy2arr2 { 33983 r.WriteArrayElem() 33984 if false { 33985 } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { 33986 z.EncExtension(x.MaxQueryTime, yyxt19) 33987 } else { 33988 r.EncodeInt(int64(x.MaxQueryTime)) 33989 } 33990 } else { 33991 r.WriteMapElemKey() 33992 if z.IsJSONHandle() { 33993 z.WriteStr("\"MaxQueryTime\"") 33994 } else { 33995 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 33996 } 33997 r.WriteMapElemValue() 33998 if false { 33999 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 34000 z.EncExtension(x.MaxQueryTime, yyxt20) 34001 } else { 34002 r.EncodeInt(int64(x.MaxQueryTime)) 34003 } 34004 } 34005 if yyr2 || yy2arr2 { 34006 r.WriteArrayElem() 34007 if false { 34008 } else { 34009 r.EncodeBool(bool(x.AllowStale)) 34010 } 34011 } else { 34012 r.WriteMapElemKey() 34013 if z.IsJSONHandle() { 34014 z.WriteStr("\"AllowStale\"") 34015 } else { 34016 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 34017 } 34018 r.WriteMapElemValue() 34019 if false { 34020 } else { 34021 r.EncodeBool(bool(x.AllowStale)) 34022 } 34023 } 34024 if yyr2 || yy2arr2 { 34025 r.WriteArrayElem() 34026 if false { 34027 } else { 34028 if z.EncBasicHandle().StringToRaw { 34029 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 34030 } else { 34031 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 34032 } 34033 } 34034 } else { 34035 r.WriteMapElemKey() 34036 if z.IsJSONHandle() { 34037 z.WriteStr("\"Prefix\"") 34038 } else { 34039 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 34040 } 34041 r.WriteMapElemValue() 34042 if false { 34043 } else { 34044 if z.EncBasicHandle().StringToRaw { 34045 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 34046 } else { 34047 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 34048 } 34049 } 34050 } 34051 if yyr2 || yy2arr2 { 34052 r.WriteArrayElem() 34053 if false { 34054 } else { 34055 if z.EncBasicHandle().StringToRaw { 34056 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 34057 } else { 34058 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 34059 } 34060 } 34061 } else { 34062 r.WriteMapElemKey() 34063 if z.IsJSONHandle() { 34064 z.WriteStr("\"AuthToken\"") 34065 } else { 34066 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 34067 } 34068 r.WriteMapElemValue() 34069 if false { 34070 } else { 34071 if z.EncBasicHandle().StringToRaw { 34072 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 34073 } else { 34074 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 34075 } 34076 } 34077 } 34078 if yyr2 || yy2arr2 { 34079 r.WriteArrayElem() 34080 if false { 34081 } else { 34082 r.EncodeBool(bool(x.Forwarded)) 34083 } 34084 } else { 34085 r.WriteMapElemKey() 34086 if z.IsJSONHandle() { 34087 z.WriteStr("\"Forwarded\"") 34088 } else { 34089 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 34090 } 34091 r.WriteMapElemValue() 34092 if false { 34093 } else { 34094 r.EncodeBool(bool(x.Forwarded)) 34095 } 34096 } 34097 if yyr2 || yy2arr2 { 34098 r.WriteArrayEnd() 34099 } else { 34100 r.WriteMapEnd() 34101 } 34102 } 34103 } 34104 } 34105 34106 func (x *JobSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { 34107 var h codecSelfer100 34108 z, r := codec1978.GenHelperDecoder(d) 34109 _, _, _ = h, z, r 34110 if false { 34111 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 34112 z.DecExtension(x, yyxt1) 34113 } else { 34114 yyct2 := r.ContainerType() 34115 if yyct2 == codecSelferValueTypeMap100 { 34116 yyl2 := r.ReadMapStart() 34117 if yyl2 == 0 { 34118 r.ReadMapEnd() 34119 } else { 34120 x.codecDecodeSelfFromMap(yyl2, d) 34121 } 34122 } else if yyct2 == codecSelferValueTypeArray100 { 34123 yyl2 := r.ReadArrayStart() 34124 if yyl2 == 0 { 34125 r.ReadArrayEnd() 34126 } else { 34127 x.codecDecodeSelfFromArray(yyl2, d) 34128 } 34129 } else { 34130 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 34131 } 34132 } 34133 } 34134 34135 func (x *JobSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 34136 var h codecSelfer100 34137 z, r := codec1978.GenHelperDecoder(d) 34138 _, _, _ = h, z, r 34139 var yyhl3 bool = l >= 0 34140 for yyj3 := 0; ; yyj3++ { 34141 if yyhl3 { 34142 if yyj3 >= l { 34143 break 34144 } 34145 } else { 34146 if r.CheckBreak() { 34147 break 34148 } 34149 } 34150 r.ReadMapElemKey() 34151 yys3 := z.StringView(r.DecodeStringAsBytes()) 34152 r.ReadMapElemValue() 34153 switch yys3 { 34154 case "JobID": 34155 if r.TryDecodeAsNil() { 34156 x.JobID = "" 34157 } else { 34158 x.JobID = (string)(r.DecodeString()) 34159 } 34160 case "All": 34161 if r.TryDecodeAsNil() { 34162 x.All = false 34163 } else { 34164 x.All = (bool)(r.DecodeBool()) 34165 } 34166 case "Region": 34167 if r.TryDecodeAsNil() { 34168 x.QueryOptions.Region = "" 34169 } else { 34170 x.Region = (string)(r.DecodeString()) 34171 } 34172 case "Namespace": 34173 if r.TryDecodeAsNil() { 34174 x.QueryOptions.Namespace = "" 34175 } else { 34176 x.Namespace = (string)(r.DecodeString()) 34177 } 34178 case "MinQueryIndex": 34179 if r.TryDecodeAsNil() { 34180 x.QueryOptions.MinQueryIndex = 0 34181 } else { 34182 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 34183 } 34184 case "MaxQueryTime": 34185 if r.TryDecodeAsNil() { 34186 x.QueryOptions.MaxQueryTime = 0 34187 } else { 34188 if false { 34189 } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { 34190 z.DecExtension(x.MaxQueryTime, yyxt10) 34191 } else { 34192 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 34193 } 34194 } 34195 case "AllowStale": 34196 if r.TryDecodeAsNil() { 34197 x.QueryOptions.AllowStale = false 34198 } else { 34199 x.AllowStale = (bool)(r.DecodeBool()) 34200 } 34201 case "Prefix": 34202 if r.TryDecodeAsNil() { 34203 x.QueryOptions.Prefix = "" 34204 } else { 34205 x.Prefix = (string)(r.DecodeString()) 34206 } 34207 case "AuthToken": 34208 if r.TryDecodeAsNil() { 34209 x.QueryOptions.AuthToken = "" 34210 } else { 34211 x.AuthToken = (string)(r.DecodeString()) 34212 } 34213 case "Forwarded": 34214 if r.TryDecodeAsNil() { 34215 x.QueryOptions.InternalRpcInfo.Forwarded = false 34216 } else { 34217 x.Forwarded = (bool)(r.DecodeBool()) 34218 } 34219 default: 34220 z.DecStructFieldNotFound(-1, yys3) 34221 } // end switch yys3 34222 } // end for yyj3 34223 r.ReadMapEnd() 34224 } 34225 34226 func (x *JobSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 34227 var h codecSelfer100 34228 z, r := codec1978.GenHelperDecoder(d) 34229 _, _, _ = h, z, r 34230 var yyj15 int 34231 var yyb15 bool 34232 var yyhl15 bool = l >= 0 34233 yyj15++ 34234 if yyhl15 { 34235 yyb15 = yyj15 > l 34236 } else { 34237 yyb15 = r.CheckBreak() 34238 } 34239 if yyb15 { 34240 r.ReadArrayEnd() 34241 return 34242 } 34243 r.ReadArrayElem() 34244 if r.TryDecodeAsNil() { 34245 x.JobID = "" 34246 } else { 34247 x.JobID = (string)(r.DecodeString()) 34248 } 34249 yyj15++ 34250 if yyhl15 { 34251 yyb15 = yyj15 > l 34252 } else { 34253 yyb15 = r.CheckBreak() 34254 } 34255 if yyb15 { 34256 r.ReadArrayEnd() 34257 return 34258 } 34259 r.ReadArrayElem() 34260 if r.TryDecodeAsNil() { 34261 x.All = false 34262 } else { 34263 x.All = (bool)(r.DecodeBool()) 34264 } 34265 yyj15++ 34266 if yyhl15 { 34267 yyb15 = yyj15 > l 34268 } else { 34269 yyb15 = r.CheckBreak() 34270 } 34271 if yyb15 { 34272 r.ReadArrayEnd() 34273 return 34274 } 34275 r.ReadArrayElem() 34276 if r.TryDecodeAsNil() { 34277 x.QueryOptions.Region = "" 34278 } else { 34279 x.Region = (string)(r.DecodeString()) 34280 } 34281 yyj15++ 34282 if yyhl15 { 34283 yyb15 = yyj15 > l 34284 } else { 34285 yyb15 = r.CheckBreak() 34286 } 34287 if yyb15 { 34288 r.ReadArrayEnd() 34289 return 34290 } 34291 r.ReadArrayElem() 34292 if r.TryDecodeAsNil() { 34293 x.QueryOptions.Namespace = "" 34294 } else { 34295 x.Namespace = (string)(r.DecodeString()) 34296 } 34297 yyj15++ 34298 if yyhl15 { 34299 yyb15 = yyj15 > l 34300 } else { 34301 yyb15 = r.CheckBreak() 34302 } 34303 if yyb15 { 34304 r.ReadArrayEnd() 34305 return 34306 } 34307 r.ReadArrayElem() 34308 if r.TryDecodeAsNil() { 34309 x.QueryOptions.MinQueryIndex = 0 34310 } else { 34311 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 34312 } 34313 yyj15++ 34314 if yyhl15 { 34315 yyb15 = yyj15 > l 34316 } else { 34317 yyb15 = r.CheckBreak() 34318 } 34319 if yyb15 { 34320 r.ReadArrayEnd() 34321 return 34322 } 34323 r.ReadArrayElem() 34324 if r.TryDecodeAsNil() { 34325 x.QueryOptions.MaxQueryTime = 0 34326 } else { 34327 if false { 34328 } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { 34329 z.DecExtension(x.MaxQueryTime, yyxt22) 34330 } else { 34331 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 34332 } 34333 } 34334 yyj15++ 34335 if yyhl15 { 34336 yyb15 = yyj15 > l 34337 } else { 34338 yyb15 = r.CheckBreak() 34339 } 34340 if yyb15 { 34341 r.ReadArrayEnd() 34342 return 34343 } 34344 r.ReadArrayElem() 34345 if r.TryDecodeAsNil() { 34346 x.QueryOptions.AllowStale = false 34347 } else { 34348 x.AllowStale = (bool)(r.DecodeBool()) 34349 } 34350 yyj15++ 34351 if yyhl15 { 34352 yyb15 = yyj15 > l 34353 } else { 34354 yyb15 = r.CheckBreak() 34355 } 34356 if yyb15 { 34357 r.ReadArrayEnd() 34358 return 34359 } 34360 r.ReadArrayElem() 34361 if r.TryDecodeAsNil() { 34362 x.QueryOptions.Prefix = "" 34363 } else { 34364 x.Prefix = (string)(r.DecodeString()) 34365 } 34366 yyj15++ 34367 if yyhl15 { 34368 yyb15 = yyj15 > l 34369 } else { 34370 yyb15 = r.CheckBreak() 34371 } 34372 if yyb15 { 34373 r.ReadArrayEnd() 34374 return 34375 } 34376 r.ReadArrayElem() 34377 if r.TryDecodeAsNil() { 34378 x.QueryOptions.AuthToken = "" 34379 } else { 34380 x.AuthToken = (string)(r.DecodeString()) 34381 } 34382 yyj15++ 34383 if yyhl15 { 34384 yyb15 = yyj15 > l 34385 } else { 34386 yyb15 = r.CheckBreak() 34387 } 34388 if yyb15 { 34389 r.ReadArrayEnd() 34390 return 34391 } 34392 r.ReadArrayElem() 34393 if r.TryDecodeAsNil() { 34394 x.QueryOptions.InternalRpcInfo.Forwarded = false 34395 } else { 34396 x.Forwarded = (bool)(r.DecodeBool()) 34397 } 34398 for { 34399 yyj15++ 34400 if yyhl15 { 34401 yyb15 = yyj15 > l 34402 } else { 34403 yyb15 = r.CheckBreak() 34404 } 34405 if yyb15 { 34406 break 34407 } 34408 r.ReadArrayElem() 34409 z.DecStructFieldNotFound(yyj15-1, "") 34410 } 34411 r.ReadArrayEnd() 34412 } 34413 34414 func (x *JobListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 34415 var h codecSelfer100 34416 z, r := codec1978.GenHelperEncoder(e) 34417 _, _, _ = h, z, r 34418 if x == nil { 34419 r.EncodeNil() 34420 } else { 34421 if false { 34422 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 34423 z.EncExtension(x, yyxt1) 34424 } else { 34425 yysep2 := !z.EncBinary() 34426 yy2arr2 := z.EncBasicHandle().StructToArray 34427 _, _ = yysep2, yy2arr2 34428 const yyr2 bool = false // struct tag has 'toArray' 34429 if yyr2 || yy2arr2 { 34430 r.WriteArrayStart(8) 34431 } else { 34432 r.WriteMapStart(8) 34433 } 34434 if yyr2 || yy2arr2 { 34435 r.WriteArrayElem() 34436 if false { 34437 } else { 34438 if z.EncBasicHandle().StringToRaw { 34439 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 34440 } else { 34441 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 34442 } 34443 } 34444 } else { 34445 r.WriteMapElemKey() 34446 if z.IsJSONHandle() { 34447 z.WriteStr("\"Region\"") 34448 } else { 34449 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 34450 } 34451 r.WriteMapElemValue() 34452 if false { 34453 } else { 34454 if z.EncBasicHandle().StringToRaw { 34455 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 34456 } else { 34457 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 34458 } 34459 } 34460 } 34461 if yyr2 || yy2arr2 { 34462 r.WriteArrayElem() 34463 if false { 34464 } else { 34465 if z.EncBasicHandle().StringToRaw { 34466 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 34467 } else { 34468 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 34469 } 34470 } 34471 } else { 34472 r.WriteMapElemKey() 34473 if z.IsJSONHandle() { 34474 z.WriteStr("\"Namespace\"") 34475 } else { 34476 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 34477 } 34478 r.WriteMapElemValue() 34479 if false { 34480 } else { 34481 if z.EncBasicHandle().StringToRaw { 34482 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 34483 } else { 34484 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 34485 } 34486 } 34487 } 34488 if yyr2 || yy2arr2 { 34489 r.WriteArrayElem() 34490 if false { 34491 } else { 34492 r.EncodeUint(uint64(x.MinQueryIndex)) 34493 } 34494 } else { 34495 r.WriteMapElemKey() 34496 if z.IsJSONHandle() { 34497 z.WriteStr("\"MinQueryIndex\"") 34498 } else { 34499 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 34500 } 34501 r.WriteMapElemValue() 34502 if false { 34503 } else { 34504 r.EncodeUint(uint64(x.MinQueryIndex)) 34505 } 34506 } 34507 if yyr2 || yy2arr2 { 34508 r.WriteArrayElem() 34509 if false { 34510 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 34511 z.EncExtension(x.MaxQueryTime, yyxt13) 34512 } else { 34513 r.EncodeInt(int64(x.MaxQueryTime)) 34514 } 34515 } else { 34516 r.WriteMapElemKey() 34517 if z.IsJSONHandle() { 34518 z.WriteStr("\"MaxQueryTime\"") 34519 } else { 34520 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 34521 } 34522 r.WriteMapElemValue() 34523 if false { 34524 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 34525 z.EncExtension(x.MaxQueryTime, yyxt14) 34526 } else { 34527 r.EncodeInt(int64(x.MaxQueryTime)) 34528 } 34529 } 34530 if yyr2 || yy2arr2 { 34531 r.WriteArrayElem() 34532 if false { 34533 } else { 34534 r.EncodeBool(bool(x.AllowStale)) 34535 } 34536 } else { 34537 r.WriteMapElemKey() 34538 if z.IsJSONHandle() { 34539 z.WriteStr("\"AllowStale\"") 34540 } else { 34541 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 34542 } 34543 r.WriteMapElemValue() 34544 if false { 34545 } else { 34546 r.EncodeBool(bool(x.AllowStale)) 34547 } 34548 } 34549 if yyr2 || yy2arr2 { 34550 r.WriteArrayElem() 34551 if false { 34552 } else { 34553 if z.EncBasicHandle().StringToRaw { 34554 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 34555 } else { 34556 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 34557 } 34558 } 34559 } else { 34560 r.WriteMapElemKey() 34561 if z.IsJSONHandle() { 34562 z.WriteStr("\"Prefix\"") 34563 } else { 34564 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 34565 } 34566 r.WriteMapElemValue() 34567 if false { 34568 } else { 34569 if z.EncBasicHandle().StringToRaw { 34570 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 34571 } else { 34572 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 34573 } 34574 } 34575 } 34576 if yyr2 || yy2arr2 { 34577 r.WriteArrayElem() 34578 if false { 34579 } else { 34580 if z.EncBasicHandle().StringToRaw { 34581 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 34582 } else { 34583 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 34584 } 34585 } 34586 } else { 34587 r.WriteMapElemKey() 34588 if z.IsJSONHandle() { 34589 z.WriteStr("\"AuthToken\"") 34590 } else { 34591 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 34592 } 34593 r.WriteMapElemValue() 34594 if false { 34595 } else { 34596 if z.EncBasicHandle().StringToRaw { 34597 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 34598 } else { 34599 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 34600 } 34601 } 34602 } 34603 if yyr2 || yy2arr2 { 34604 r.WriteArrayElem() 34605 if false { 34606 } else { 34607 r.EncodeBool(bool(x.Forwarded)) 34608 } 34609 } else { 34610 r.WriteMapElemKey() 34611 if z.IsJSONHandle() { 34612 z.WriteStr("\"Forwarded\"") 34613 } else { 34614 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 34615 } 34616 r.WriteMapElemValue() 34617 if false { 34618 } else { 34619 r.EncodeBool(bool(x.Forwarded)) 34620 } 34621 } 34622 if yyr2 || yy2arr2 { 34623 r.WriteArrayEnd() 34624 } else { 34625 r.WriteMapEnd() 34626 } 34627 } 34628 } 34629 } 34630 34631 func (x *JobListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 34632 var h codecSelfer100 34633 z, r := codec1978.GenHelperDecoder(d) 34634 _, _, _ = h, z, r 34635 if false { 34636 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 34637 z.DecExtension(x, yyxt1) 34638 } else { 34639 yyct2 := r.ContainerType() 34640 if yyct2 == codecSelferValueTypeMap100 { 34641 yyl2 := r.ReadMapStart() 34642 if yyl2 == 0 { 34643 r.ReadMapEnd() 34644 } else { 34645 x.codecDecodeSelfFromMap(yyl2, d) 34646 } 34647 } else if yyct2 == codecSelferValueTypeArray100 { 34648 yyl2 := r.ReadArrayStart() 34649 if yyl2 == 0 { 34650 r.ReadArrayEnd() 34651 } else { 34652 x.codecDecodeSelfFromArray(yyl2, d) 34653 } 34654 } else { 34655 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 34656 } 34657 } 34658 } 34659 34660 func (x *JobListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 34661 var h codecSelfer100 34662 z, r := codec1978.GenHelperDecoder(d) 34663 _, _, _ = h, z, r 34664 var yyhl3 bool = l >= 0 34665 for yyj3 := 0; ; yyj3++ { 34666 if yyhl3 { 34667 if yyj3 >= l { 34668 break 34669 } 34670 } else { 34671 if r.CheckBreak() { 34672 break 34673 } 34674 } 34675 r.ReadMapElemKey() 34676 yys3 := z.StringView(r.DecodeStringAsBytes()) 34677 r.ReadMapElemValue() 34678 switch yys3 { 34679 case "Region": 34680 if r.TryDecodeAsNil() { 34681 x.QueryOptions.Region = "" 34682 } else { 34683 x.Region = (string)(r.DecodeString()) 34684 } 34685 case "Namespace": 34686 if r.TryDecodeAsNil() { 34687 x.QueryOptions.Namespace = "" 34688 } else { 34689 x.Namespace = (string)(r.DecodeString()) 34690 } 34691 case "MinQueryIndex": 34692 if r.TryDecodeAsNil() { 34693 x.QueryOptions.MinQueryIndex = 0 34694 } else { 34695 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 34696 } 34697 case "MaxQueryTime": 34698 if r.TryDecodeAsNil() { 34699 x.QueryOptions.MaxQueryTime = 0 34700 } else { 34701 if false { 34702 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 34703 z.DecExtension(x.MaxQueryTime, yyxt8) 34704 } else { 34705 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 34706 } 34707 } 34708 case "AllowStale": 34709 if r.TryDecodeAsNil() { 34710 x.QueryOptions.AllowStale = false 34711 } else { 34712 x.AllowStale = (bool)(r.DecodeBool()) 34713 } 34714 case "Prefix": 34715 if r.TryDecodeAsNil() { 34716 x.QueryOptions.Prefix = "" 34717 } else { 34718 x.Prefix = (string)(r.DecodeString()) 34719 } 34720 case "AuthToken": 34721 if r.TryDecodeAsNil() { 34722 x.QueryOptions.AuthToken = "" 34723 } else { 34724 x.AuthToken = (string)(r.DecodeString()) 34725 } 34726 case "Forwarded": 34727 if r.TryDecodeAsNil() { 34728 x.QueryOptions.InternalRpcInfo.Forwarded = false 34729 } else { 34730 x.Forwarded = (bool)(r.DecodeBool()) 34731 } 34732 default: 34733 z.DecStructFieldNotFound(-1, yys3) 34734 } // end switch yys3 34735 } // end for yyj3 34736 r.ReadMapEnd() 34737 } 34738 34739 func (x *JobListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 34740 var h codecSelfer100 34741 z, r := codec1978.GenHelperDecoder(d) 34742 _, _, _ = h, z, r 34743 var yyj13 int 34744 var yyb13 bool 34745 var yyhl13 bool = l >= 0 34746 yyj13++ 34747 if yyhl13 { 34748 yyb13 = yyj13 > l 34749 } else { 34750 yyb13 = r.CheckBreak() 34751 } 34752 if yyb13 { 34753 r.ReadArrayEnd() 34754 return 34755 } 34756 r.ReadArrayElem() 34757 if r.TryDecodeAsNil() { 34758 x.QueryOptions.Region = "" 34759 } else { 34760 x.Region = (string)(r.DecodeString()) 34761 } 34762 yyj13++ 34763 if yyhl13 { 34764 yyb13 = yyj13 > l 34765 } else { 34766 yyb13 = r.CheckBreak() 34767 } 34768 if yyb13 { 34769 r.ReadArrayEnd() 34770 return 34771 } 34772 r.ReadArrayElem() 34773 if r.TryDecodeAsNil() { 34774 x.QueryOptions.Namespace = "" 34775 } else { 34776 x.Namespace = (string)(r.DecodeString()) 34777 } 34778 yyj13++ 34779 if yyhl13 { 34780 yyb13 = yyj13 > l 34781 } else { 34782 yyb13 = r.CheckBreak() 34783 } 34784 if yyb13 { 34785 r.ReadArrayEnd() 34786 return 34787 } 34788 r.ReadArrayElem() 34789 if r.TryDecodeAsNil() { 34790 x.QueryOptions.MinQueryIndex = 0 34791 } else { 34792 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 34793 } 34794 yyj13++ 34795 if yyhl13 { 34796 yyb13 = yyj13 > l 34797 } else { 34798 yyb13 = r.CheckBreak() 34799 } 34800 if yyb13 { 34801 r.ReadArrayEnd() 34802 return 34803 } 34804 r.ReadArrayElem() 34805 if r.TryDecodeAsNil() { 34806 x.QueryOptions.MaxQueryTime = 0 34807 } else { 34808 if false { 34809 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 34810 z.DecExtension(x.MaxQueryTime, yyxt18) 34811 } else { 34812 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 34813 } 34814 } 34815 yyj13++ 34816 if yyhl13 { 34817 yyb13 = yyj13 > l 34818 } else { 34819 yyb13 = r.CheckBreak() 34820 } 34821 if yyb13 { 34822 r.ReadArrayEnd() 34823 return 34824 } 34825 r.ReadArrayElem() 34826 if r.TryDecodeAsNil() { 34827 x.QueryOptions.AllowStale = false 34828 } else { 34829 x.AllowStale = (bool)(r.DecodeBool()) 34830 } 34831 yyj13++ 34832 if yyhl13 { 34833 yyb13 = yyj13 > l 34834 } else { 34835 yyb13 = r.CheckBreak() 34836 } 34837 if yyb13 { 34838 r.ReadArrayEnd() 34839 return 34840 } 34841 r.ReadArrayElem() 34842 if r.TryDecodeAsNil() { 34843 x.QueryOptions.Prefix = "" 34844 } else { 34845 x.Prefix = (string)(r.DecodeString()) 34846 } 34847 yyj13++ 34848 if yyhl13 { 34849 yyb13 = yyj13 > l 34850 } else { 34851 yyb13 = r.CheckBreak() 34852 } 34853 if yyb13 { 34854 r.ReadArrayEnd() 34855 return 34856 } 34857 r.ReadArrayElem() 34858 if r.TryDecodeAsNil() { 34859 x.QueryOptions.AuthToken = "" 34860 } else { 34861 x.AuthToken = (string)(r.DecodeString()) 34862 } 34863 yyj13++ 34864 if yyhl13 { 34865 yyb13 = yyj13 > l 34866 } else { 34867 yyb13 = r.CheckBreak() 34868 } 34869 if yyb13 { 34870 r.ReadArrayEnd() 34871 return 34872 } 34873 r.ReadArrayElem() 34874 if r.TryDecodeAsNil() { 34875 x.QueryOptions.InternalRpcInfo.Forwarded = false 34876 } else { 34877 x.Forwarded = (bool)(r.DecodeBool()) 34878 } 34879 for { 34880 yyj13++ 34881 if yyhl13 { 34882 yyb13 = yyj13 > l 34883 } else { 34884 yyb13 = r.CheckBreak() 34885 } 34886 if yyb13 { 34887 break 34888 } 34889 r.ReadArrayElem() 34890 z.DecStructFieldNotFound(yyj13-1, "") 34891 } 34892 r.ReadArrayEnd() 34893 } 34894 34895 func (x *JobPlanRequest) CodecEncodeSelf(e *codec1978.Encoder) { 34896 var h codecSelfer100 34897 z, r := codec1978.GenHelperEncoder(e) 34898 _, _, _ = h, z, r 34899 if x == nil { 34900 r.EncodeNil() 34901 } else { 34902 if false { 34903 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 34904 z.EncExtension(x, yyxt1) 34905 } else { 34906 yysep2 := !z.EncBinary() 34907 yy2arr2 := z.EncBasicHandle().StructToArray 34908 _, _ = yysep2, yy2arr2 34909 const yyr2 bool = false // struct tag has 'toArray' 34910 if yyr2 || yy2arr2 { 34911 r.WriteArrayStart(7) 34912 } else { 34913 r.WriteMapStart(7) 34914 } 34915 var yyn3 bool 34916 if x.Job == nil { 34917 yyn3 = true 34918 goto LABEL3 34919 } 34920 LABEL3: 34921 if yyr2 || yy2arr2 { 34922 if yyn3 { 34923 r.WriteArrayElem() 34924 r.EncodeNil() 34925 } else { 34926 r.WriteArrayElem() 34927 if x.Job == nil { 34928 r.EncodeNil() 34929 } else { 34930 x.Job.CodecEncodeSelf(e) 34931 } 34932 } 34933 } else { 34934 r.WriteMapElemKey() 34935 if z.IsJSONHandle() { 34936 z.WriteStr("\"Job\"") 34937 } else { 34938 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 34939 } 34940 r.WriteMapElemValue() 34941 if yyn3 { 34942 r.EncodeNil() 34943 } else { 34944 if x.Job == nil { 34945 r.EncodeNil() 34946 } else { 34947 x.Job.CodecEncodeSelf(e) 34948 } 34949 } 34950 } 34951 if yyr2 || yy2arr2 { 34952 r.WriteArrayElem() 34953 if false { 34954 } else { 34955 r.EncodeBool(bool(x.Diff)) 34956 } 34957 } else { 34958 r.WriteMapElemKey() 34959 if z.IsJSONHandle() { 34960 z.WriteStr("\"Diff\"") 34961 } else { 34962 r.EncodeStringEnc(codecSelferCcUTF8100, `Diff`) 34963 } 34964 r.WriteMapElemValue() 34965 if false { 34966 } else { 34967 r.EncodeBool(bool(x.Diff)) 34968 } 34969 } 34970 if yyr2 || yy2arr2 { 34971 r.WriteArrayElem() 34972 if false { 34973 } else { 34974 r.EncodeBool(bool(x.PolicyOverride)) 34975 } 34976 } else { 34977 r.WriteMapElemKey() 34978 if z.IsJSONHandle() { 34979 z.WriteStr("\"PolicyOverride\"") 34980 } else { 34981 r.EncodeStringEnc(codecSelferCcUTF8100, `PolicyOverride`) 34982 } 34983 r.WriteMapElemValue() 34984 if false { 34985 } else { 34986 r.EncodeBool(bool(x.PolicyOverride)) 34987 } 34988 } 34989 if yyr2 || yy2arr2 { 34990 r.WriteArrayElem() 34991 if false { 34992 } else { 34993 if z.EncBasicHandle().StringToRaw { 34994 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 34995 } else { 34996 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 34997 } 34998 } 34999 } else { 35000 r.WriteMapElemKey() 35001 if z.IsJSONHandle() { 35002 z.WriteStr("\"Region\"") 35003 } else { 35004 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 35005 } 35006 r.WriteMapElemValue() 35007 if false { 35008 } else { 35009 if z.EncBasicHandle().StringToRaw { 35010 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 35011 } else { 35012 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 35013 } 35014 } 35015 } 35016 if yyr2 || yy2arr2 { 35017 r.WriteArrayElem() 35018 if false { 35019 } else { 35020 if z.EncBasicHandle().StringToRaw { 35021 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 35022 } else { 35023 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 35024 } 35025 } 35026 } else { 35027 r.WriteMapElemKey() 35028 if z.IsJSONHandle() { 35029 z.WriteStr("\"Namespace\"") 35030 } else { 35031 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 35032 } 35033 r.WriteMapElemValue() 35034 if false { 35035 } else { 35036 if z.EncBasicHandle().StringToRaw { 35037 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 35038 } else { 35039 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 35040 } 35041 } 35042 } 35043 if yyr2 || yy2arr2 { 35044 r.WriteArrayElem() 35045 if false { 35046 } else { 35047 if z.EncBasicHandle().StringToRaw { 35048 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 35049 } else { 35050 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 35051 } 35052 } 35053 } else { 35054 r.WriteMapElemKey() 35055 if z.IsJSONHandle() { 35056 z.WriteStr("\"AuthToken\"") 35057 } else { 35058 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 35059 } 35060 r.WriteMapElemValue() 35061 if false { 35062 } else { 35063 if z.EncBasicHandle().StringToRaw { 35064 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 35065 } else { 35066 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 35067 } 35068 } 35069 } 35070 if yyr2 || yy2arr2 { 35071 r.WriteArrayElem() 35072 if false { 35073 } else { 35074 r.EncodeBool(bool(x.Forwarded)) 35075 } 35076 } else { 35077 r.WriteMapElemKey() 35078 if z.IsJSONHandle() { 35079 z.WriteStr("\"Forwarded\"") 35080 } else { 35081 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 35082 } 35083 r.WriteMapElemValue() 35084 if false { 35085 } else { 35086 r.EncodeBool(bool(x.Forwarded)) 35087 } 35088 } 35089 if yyr2 || yy2arr2 { 35090 r.WriteArrayEnd() 35091 } else { 35092 r.WriteMapEnd() 35093 } 35094 } 35095 } 35096 } 35097 35098 func (x *JobPlanRequest) CodecDecodeSelf(d *codec1978.Decoder) { 35099 var h codecSelfer100 35100 z, r := codec1978.GenHelperDecoder(d) 35101 _, _, _ = h, z, r 35102 if false { 35103 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 35104 z.DecExtension(x, yyxt1) 35105 } else { 35106 yyct2 := r.ContainerType() 35107 if yyct2 == codecSelferValueTypeMap100 { 35108 yyl2 := r.ReadMapStart() 35109 if yyl2 == 0 { 35110 r.ReadMapEnd() 35111 } else { 35112 x.codecDecodeSelfFromMap(yyl2, d) 35113 } 35114 } else if yyct2 == codecSelferValueTypeArray100 { 35115 yyl2 := r.ReadArrayStart() 35116 if yyl2 == 0 { 35117 r.ReadArrayEnd() 35118 } else { 35119 x.codecDecodeSelfFromArray(yyl2, d) 35120 } 35121 } else { 35122 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 35123 } 35124 } 35125 } 35126 35127 func (x *JobPlanRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 35128 var h codecSelfer100 35129 z, r := codec1978.GenHelperDecoder(d) 35130 _, _, _ = h, z, r 35131 var yyhl3 bool = l >= 0 35132 for yyj3 := 0; ; yyj3++ { 35133 if yyhl3 { 35134 if yyj3 >= l { 35135 break 35136 } 35137 } else { 35138 if r.CheckBreak() { 35139 break 35140 } 35141 } 35142 r.ReadMapElemKey() 35143 yys3 := z.StringView(r.DecodeStringAsBytes()) 35144 r.ReadMapElemValue() 35145 switch yys3 { 35146 case "Job": 35147 if r.TryDecodeAsNil() { 35148 if true && x.Job != nil { 35149 x.Job = nil 35150 } 35151 } else { 35152 if x.Job == nil { 35153 x.Job = new(Job) 35154 } 35155 35156 x.Job.CodecDecodeSelf(d) 35157 } 35158 case "Diff": 35159 if r.TryDecodeAsNil() { 35160 x.Diff = false 35161 } else { 35162 x.Diff = (bool)(r.DecodeBool()) 35163 } 35164 case "PolicyOverride": 35165 if r.TryDecodeAsNil() { 35166 x.PolicyOverride = false 35167 } else { 35168 x.PolicyOverride = (bool)(r.DecodeBool()) 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 *JobPlanRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 35202 var h codecSelfer100 35203 z, r := codec1978.GenHelperDecoder(d) 35204 _, _, _ = h, z, r 35205 var yyj11 int 35206 var yyb11 bool 35207 var yyhl11 bool = l >= 0 35208 yyj11++ 35209 if yyhl11 { 35210 yyb11 = yyj11 > l 35211 } else { 35212 yyb11 = r.CheckBreak() 35213 } 35214 if yyb11 { 35215 r.ReadArrayEnd() 35216 return 35217 } 35218 r.ReadArrayElem() 35219 if r.TryDecodeAsNil() { 35220 if true && x.Job != nil { 35221 x.Job = nil 35222 } 35223 } else { 35224 if x.Job == nil { 35225 x.Job = new(Job) 35226 } 35227 35228 x.Job.CodecDecodeSelf(d) 35229 } 35230 yyj11++ 35231 if yyhl11 { 35232 yyb11 = yyj11 > l 35233 } else { 35234 yyb11 = r.CheckBreak() 35235 } 35236 if yyb11 { 35237 r.ReadArrayEnd() 35238 return 35239 } 35240 r.ReadArrayElem() 35241 if r.TryDecodeAsNil() { 35242 x.Diff = false 35243 } else { 35244 x.Diff = (bool)(r.DecodeBool()) 35245 } 35246 yyj11++ 35247 if yyhl11 { 35248 yyb11 = yyj11 > l 35249 } else { 35250 yyb11 = r.CheckBreak() 35251 } 35252 if yyb11 { 35253 r.ReadArrayEnd() 35254 return 35255 } 35256 r.ReadArrayElem() 35257 if r.TryDecodeAsNil() { 35258 x.PolicyOverride = false 35259 } else { 35260 x.PolicyOverride = (bool)(r.DecodeBool()) 35261 } 35262 yyj11++ 35263 if yyhl11 { 35264 yyb11 = yyj11 > l 35265 } else { 35266 yyb11 = r.CheckBreak() 35267 } 35268 if yyb11 { 35269 r.ReadArrayEnd() 35270 return 35271 } 35272 r.ReadArrayElem() 35273 if r.TryDecodeAsNil() { 35274 x.WriteRequest.Region = "" 35275 } else { 35276 x.Region = (string)(r.DecodeString()) 35277 } 35278 yyj11++ 35279 if yyhl11 { 35280 yyb11 = yyj11 > l 35281 } else { 35282 yyb11 = r.CheckBreak() 35283 } 35284 if yyb11 { 35285 r.ReadArrayEnd() 35286 return 35287 } 35288 r.ReadArrayElem() 35289 if r.TryDecodeAsNil() { 35290 x.WriteRequest.Namespace = "" 35291 } else { 35292 x.Namespace = (string)(r.DecodeString()) 35293 } 35294 yyj11++ 35295 if yyhl11 { 35296 yyb11 = yyj11 > l 35297 } else { 35298 yyb11 = r.CheckBreak() 35299 } 35300 if yyb11 { 35301 r.ReadArrayEnd() 35302 return 35303 } 35304 r.ReadArrayElem() 35305 if r.TryDecodeAsNil() { 35306 x.WriteRequest.AuthToken = "" 35307 } else { 35308 x.AuthToken = (string)(r.DecodeString()) 35309 } 35310 yyj11++ 35311 if yyhl11 { 35312 yyb11 = yyj11 > l 35313 } else { 35314 yyb11 = r.CheckBreak() 35315 } 35316 if yyb11 { 35317 r.ReadArrayEnd() 35318 return 35319 } 35320 r.ReadArrayElem() 35321 if r.TryDecodeAsNil() { 35322 x.WriteRequest.InternalRpcInfo.Forwarded = false 35323 } else { 35324 x.Forwarded = (bool)(r.DecodeBool()) 35325 } 35326 for { 35327 yyj11++ 35328 if yyhl11 { 35329 yyb11 = yyj11 > l 35330 } else { 35331 yyb11 = r.CheckBreak() 35332 } 35333 if yyb11 { 35334 break 35335 } 35336 r.ReadArrayElem() 35337 z.DecStructFieldNotFound(yyj11-1, "") 35338 } 35339 r.ReadArrayEnd() 35340 } 35341 35342 func (x *JobScaleRequest) CodecEncodeSelf(e *codec1978.Encoder) { 35343 var h codecSelfer100 35344 z, r := codec1978.GenHelperEncoder(e) 35345 _, _, _ = h, z, r 35346 if x == nil { 35347 r.EncodeNil() 35348 } else { 35349 if false { 35350 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 35351 z.EncExtension(x, yyxt1) 35352 } else { 35353 yysep2 := !z.EncBinary() 35354 yy2arr2 := z.EncBasicHandle().StructToArray 35355 _, _ = yysep2, yy2arr2 35356 const yyr2 bool = false // struct tag has 'toArray' 35357 if yyr2 || yy2arr2 { 35358 r.WriteArrayStart(11) 35359 } else { 35360 r.WriteMapStart(11) 35361 } 35362 if yyr2 || yy2arr2 { 35363 r.WriteArrayElem() 35364 if false { 35365 } else { 35366 if z.EncBasicHandle().StringToRaw { 35367 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 35368 } else { 35369 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 35370 } 35371 } 35372 } else { 35373 r.WriteMapElemKey() 35374 if z.IsJSONHandle() { 35375 z.WriteStr("\"Namespace\"") 35376 } else { 35377 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 35378 } 35379 r.WriteMapElemValue() 35380 if false { 35381 } else { 35382 if z.EncBasicHandle().StringToRaw { 35383 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 35384 } else { 35385 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 35386 } 35387 } 35388 } 35389 if yyr2 || yy2arr2 { 35390 r.WriteArrayElem() 35391 if false { 35392 } else { 35393 if z.EncBasicHandle().StringToRaw { 35394 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 35395 } else { 35396 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 35397 } 35398 } 35399 } else { 35400 r.WriteMapElemKey() 35401 if z.IsJSONHandle() { 35402 z.WriteStr("\"JobID\"") 35403 } else { 35404 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 35405 } 35406 r.WriteMapElemValue() 35407 if false { 35408 } else { 35409 if z.EncBasicHandle().StringToRaw { 35410 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 35411 } else { 35412 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 35413 } 35414 } 35415 } 35416 if yyr2 || yy2arr2 { 35417 r.WriteArrayElem() 35418 if x.Target == nil { 35419 r.EncodeNil() 35420 } else { 35421 if false { 35422 } else { 35423 z.F.EncMapStringStringV(x.Target, e) 35424 } 35425 } 35426 } else { 35427 r.WriteMapElemKey() 35428 if z.IsJSONHandle() { 35429 z.WriteStr("\"Target\"") 35430 } else { 35431 r.EncodeStringEnc(codecSelferCcUTF8100, `Target`) 35432 } 35433 r.WriteMapElemValue() 35434 if x.Target == nil { 35435 r.EncodeNil() 35436 } else { 35437 if false { 35438 } else { 35439 z.F.EncMapStringStringV(x.Target, e) 35440 } 35441 } 35442 } 35443 var yyn12 bool 35444 if x.Count == nil { 35445 yyn12 = true 35446 goto LABEL12 35447 } 35448 LABEL12: 35449 if yyr2 || yy2arr2 { 35450 if yyn12 { 35451 r.WriteArrayElem() 35452 r.EncodeNil() 35453 } else { 35454 r.WriteArrayElem() 35455 if x.Count == nil { 35456 r.EncodeNil() 35457 } else { 35458 yy13 := *x.Count 35459 if false { 35460 } else { 35461 r.EncodeInt(int64(yy13)) 35462 } 35463 } 35464 } 35465 } else { 35466 r.WriteMapElemKey() 35467 if z.IsJSONHandle() { 35468 z.WriteStr("\"Count\"") 35469 } else { 35470 r.EncodeStringEnc(codecSelferCcUTF8100, `Count`) 35471 } 35472 r.WriteMapElemValue() 35473 if yyn12 { 35474 r.EncodeNil() 35475 } else { 35476 if x.Count == nil { 35477 r.EncodeNil() 35478 } else { 35479 yy15 := *x.Count 35480 if false { 35481 } else { 35482 r.EncodeInt(int64(yy15)) 35483 } 35484 } 35485 } 35486 } 35487 if yyr2 || yy2arr2 { 35488 r.WriteArrayElem() 35489 if false { 35490 } else { 35491 if z.EncBasicHandle().StringToRaw { 35492 r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) 35493 } else { 35494 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) 35495 } 35496 } 35497 } else { 35498 r.WriteMapElemKey() 35499 if z.IsJSONHandle() { 35500 z.WriteStr("\"Message\"") 35501 } else { 35502 r.EncodeStringEnc(codecSelferCcUTF8100, `Message`) 35503 } 35504 r.WriteMapElemValue() 35505 if false { 35506 } else { 35507 if z.EncBasicHandle().StringToRaw { 35508 r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) 35509 } else { 35510 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) 35511 } 35512 } 35513 } 35514 if yyr2 || yy2arr2 { 35515 r.WriteArrayElem() 35516 if false { 35517 } else { 35518 r.EncodeBool(bool(x.Error)) 35519 } 35520 } else { 35521 r.WriteMapElemKey() 35522 if z.IsJSONHandle() { 35523 z.WriteStr("\"Error\"") 35524 } else { 35525 r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) 35526 } 35527 r.WriteMapElemValue() 35528 if false { 35529 } else { 35530 r.EncodeBool(bool(x.Error)) 35531 } 35532 } 35533 if yyr2 || yy2arr2 { 35534 r.WriteArrayElem() 35535 if x.Meta == nil { 35536 r.EncodeNil() 35537 } else { 35538 if false { 35539 } else { 35540 z.F.EncMapStringIntfV(x.Meta, e) 35541 } 35542 } 35543 } else { 35544 r.WriteMapElemKey() 35545 if z.IsJSONHandle() { 35546 z.WriteStr("\"Meta\"") 35547 } else { 35548 r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) 35549 } 35550 r.WriteMapElemValue() 35551 if x.Meta == nil { 35552 r.EncodeNil() 35553 } else { 35554 if false { 35555 } else { 35556 z.F.EncMapStringIntfV(x.Meta, e) 35557 } 35558 } 35559 } 35560 if yyr2 || yy2arr2 { 35561 r.WriteArrayElem() 35562 if false { 35563 } else { 35564 r.EncodeBool(bool(x.PolicyOverride)) 35565 } 35566 } else { 35567 r.WriteMapElemKey() 35568 if z.IsJSONHandle() { 35569 z.WriteStr("\"PolicyOverride\"") 35570 } else { 35571 r.EncodeStringEnc(codecSelferCcUTF8100, `PolicyOverride`) 35572 } 35573 r.WriteMapElemValue() 35574 if false { 35575 } else { 35576 r.EncodeBool(bool(x.PolicyOverride)) 35577 } 35578 } 35579 if yyr2 || yy2arr2 { 35580 r.WriteArrayElem() 35581 if false { 35582 } else { 35583 if z.EncBasicHandle().StringToRaw { 35584 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 35585 } else { 35586 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 35587 } 35588 } 35589 } else { 35590 r.WriteMapElemKey() 35591 if z.IsJSONHandle() { 35592 z.WriteStr("\"Region\"") 35593 } else { 35594 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 35595 } 35596 r.WriteMapElemValue() 35597 if false { 35598 } else { 35599 if z.EncBasicHandle().StringToRaw { 35600 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 35601 } else { 35602 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 35603 } 35604 } 35605 } 35606 if yyr2 || yy2arr2 { 35607 r.WriteArrayElem() 35608 if false { 35609 } else { 35610 if z.EncBasicHandle().StringToRaw { 35611 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 35612 } else { 35613 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 35614 } 35615 } 35616 } else { 35617 r.WriteMapElemKey() 35618 if z.IsJSONHandle() { 35619 z.WriteStr("\"AuthToken\"") 35620 } else { 35621 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 35622 } 35623 r.WriteMapElemValue() 35624 if false { 35625 } else { 35626 if z.EncBasicHandle().StringToRaw { 35627 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 35628 } else { 35629 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 35630 } 35631 } 35632 } 35633 if yyr2 || yy2arr2 { 35634 r.WriteArrayElem() 35635 if false { 35636 } else { 35637 r.EncodeBool(bool(x.Forwarded)) 35638 } 35639 } else { 35640 r.WriteMapElemKey() 35641 if z.IsJSONHandle() { 35642 z.WriteStr("\"Forwarded\"") 35643 } else { 35644 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 35645 } 35646 r.WriteMapElemValue() 35647 if false { 35648 } else { 35649 r.EncodeBool(bool(x.Forwarded)) 35650 } 35651 } 35652 if yyr2 || yy2arr2 { 35653 r.WriteArrayEnd() 35654 } else { 35655 r.WriteMapEnd() 35656 } 35657 } 35658 } 35659 } 35660 35661 func (x *JobScaleRequest) CodecDecodeSelf(d *codec1978.Decoder) { 35662 var h codecSelfer100 35663 z, r := codec1978.GenHelperDecoder(d) 35664 _, _, _ = h, z, r 35665 if false { 35666 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 35667 z.DecExtension(x, yyxt1) 35668 } else { 35669 yyct2 := r.ContainerType() 35670 if yyct2 == codecSelferValueTypeMap100 { 35671 yyl2 := r.ReadMapStart() 35672 if yyl2 == 0 { 35673 r.ReadMapEnd() 35674 } else { 35675 x.codecDecodeSelfFromMap(yyl2, d) 35676 } 35677 } else if yyct2 == codecSelferValueTypeArray100 { 35678 yyl2 := r.ReadArrayStart() 35679 if yyl2 == 0 { 35680 r.ReadArrayEnd() 35681 } else { 35682 x.codecDecodeSelfFromArray(yyl2, d) 35683 } 35684 } else { 35685 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 35686 } 35687 } 35688 } 35689 35690 func (x *JobScaleRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 35691 var h codecSelfer100 35692 z, r := codec1978.GenHelperDecoder(d) 35693 _, _, _ = h, z, r 35694 var yyhl3 bool = l >= 0 35695 for yyj3 := 0; ; yyj3++ { 35696 if yyhl3 { 35697 if yyj3 >= l { 35698 break 35699 } 35700 } else { 35701 if r.CheckBreak() { 35702 break 35703 } 35704 } 35705 r.ReadMapElemKey() 35706 yys3 := z.StringView(r.DecodeStringAsBytes()) 35707 r.ReadMapElemValue() 35708 switch yys3 { 35709 case "Namespace": 35710 if r.TryDecodeAsNil() { 35711 x.Namespace = "" 35712 } else { 35713 x.Namespace = (string)(r.DecodeString()) 35714 } 35715 case "JobID": 35716 if r.TryDecodeAsNil() { 35717 x.JobID = "" 35718 } else { 35719 x.JobID = (string)(r.DecodeString()) 35720 } 35721 case "Target": 35722 if r.TryDecodeAsNil() { 35723 x.Target = nil 35724 } else { 35725 if false { 35726 } else { 35727 z.F.DecMapStringStringX(&x.Target, d) 35728 } 35729 } 35730 case "Count": 35731 if r.TryDecodeAsNil() { 35732 if true && x.Count != nil { 35733 x.Count = nil 35734 } 35735 } else { 35736 if x.Count == nil { 35737 x.Count = new(int64) 35738 } 35739 35740 if false { 35741 } else { 35742 *x.Count = (int64)(r.DecodeInt64()) 35743 } 35744 } 35745 case "Message": 35746 if r.TryDecodeAsNil() { 35747 x.Message = "" 35748 } else { 35749 x.Message = (string)(r.DecodeString()) 35750 } 35751 case "Error": 35752 if r.TryDecodeAsNil() { 35753 x.Error = false 35754 } else { 35755 x.Error = (bool)(r.DecodeBool()) 35756 } 35757 case "Meta": 35758 if r.TryDecodeAsNil() { 35759 x.Meta = nil 35760 } else { 35761 if false { 35762 } else { 35763 z.F.DecMapStringIntfX(&x.Meta, d) 35764 } 35765 } 35766 case "PolicyOverride": 35767 if r.TryDecodeAsNil() { 35768 x.PolicyOverride = false 35769 } else { 35770 x.PolicyOverride = (bool)(r.DecodeBool()) 35771 } 35772 case "Region": 35773 if r.TryDecodeAsNil() { 35774 x.WriteRequest.Region = "" 35775 } else { 35776 x.Region = (string)(r.DecodeString()) 35777 } 35778 case "AuthToken": 35779 if r.TryDecodeAsNil() { 35780 x.WriteRequest.AuthToken = "" 35781 } else { 35782 x.AuthToken = (string)(r.DecodeString()) 35783 } 35784 case "Forwarded": 35785 if r.TryDecodeAsNil() { 35786 x.WriteRequest.InternalRpcInfo.Forwarded = false 35787 } else { 35788 x.Forwarded = (bool)(r.DecodeBool()) 35789 } 35790 default: 35791 z.DecStructFieldNotFound(-1, yys3) 35792 } // end switch yys3 35793 } // end for yyj3 35794 r.ReadMapEnd() 35795 } 35796 35797 func (x *JobScaleRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 35798 var h codecSelfer100 35799 z, r := codec1978.GenHelperDecoder(d) 35800 _, _, _ = h, z, r 35801 var yyj18 int 35802 var yyb18 bool 35803 var yyhl18 bool = l >= 0 35804 yyj18++ 35805 if yyhl18 { 35806 yyb18 = yyj18 > l 35807 } else { 35808 yyb18 = r.CheckBreak() 35809 } 35810 if yyb18 { 35811 r.ReadArrayEnd() 35812 return 35813 } 35814 r.ReadArrayElem() 35815 if r.TryDecodeAsNil() { 35816 x.Namespace = "" 35817 } else { 35818 x.Namespace = (string)(r.DecodeString()) 35819 } 35820 yyj18++ 35821 if yyhl18 { 35822 yyb18 = yyj18 > l 35823 } else { 35824 yyb18 = r.CheckBreak() 35825 } 35826 if yyb18 { 35827 r.ReadArrayEnd() 35828 return 35829 } 35830 r.ReadArrayElem() 35831 if r.TryDecodeAsNil() { 35832 x.JobID = "" 35833 } else { 35834 x.JobID = (string)(r.DecodeString()) 35835 } 35836 yyj18++ 35837 if yyhl18 { 35838 yyb18 = yyj18 > l 35839 } else { 35840 yyb18 = r.CheckBreak() 35841 } 35842 if yyb18 { 35843 r.ReadArrayEnd() 35844 return 35845 } 35846 r.ReadArrayElem() 35847 if r.TryDecodeAsNil() { 35848 x.Target = nil 35849 } else { 35850 if false { 35851 } else { 35852 z.F.DecMapStringStringX(&x.Target, d) 35853 } 35854 } 35855 yyj18++ 35856 if yyhl18 { 35857 yyb18 = yyj18 > l 35858 } else { 35859 yyb18 = r.CheckBreak() 35860 } 35861 if yyb18 { 35862 r.ReadArrayEnd() 35863 return 35864 } 35865 r.ReadArrayElem() 35866 if r.TryDecodeAsNil() { 35867 if true && x.Count != nil { 35868 x.Count = nil 35869 } 35870 } else { 35871 if x.Count == nil { 35872 x.Count = new(int64) 35873 } 35874 35875 if false { 35876 } else { 35877 *x.Count = (int64)(r.DecodeInt64()) 35878 } 35879 } 35880 yyj18++ 35881 if yyhl18 { 35882 yyb18 = yyj18 > l 35883 } else { 35884 yyb18 = r.CheckBreak() 35885 } 35886 if yyb18 { 35887 r.ReadArrayEnd() 35888 return 35889 } 35890 r.ReadArrayElem() 35891 if r.TryDecodeAsNil() { 35892 x.Message = "" 35893 } else { 35894 x.Message = (string)(r.DecodeString()) 35895 } 35896 yyj18++ 35897 if yyhl18 { 35898 yyb18 = yyj18 > l 35899 } else { 35900 yyb18 = r.CheckBreak() 35901 } 35902 if yyb18 { 35903 r.ReadArrayEnd() 35904 return 35905 } 35906 r.ReadArrayElem() 35907 if r.TryDecodeAsNil() { 35908 x.Error = false 35909 } else { 35910 x.Error = (bool)(r.DecodeBool()) 35911 } 35912 yyj18++ 35913 if yyhl18 { 35914 yyb18 = yyj18 > l 35915 } else { 35916 yyb18 = r.CheckBreak() 35917 } 35918 if yyb18 { 35919 r.ReadArrayEnd() 35920 return 35921 } 35922 r.ReadArrayElem() 35923 if r.TryDecodeAsNil() { 35924 x.Meta = nil 35925 } else { 35926 if false { 35927 } else { 35928 z.F.DecMapStringIntfX(&x.Meta, d) 35929 } 35930 } 35931 yyj18++ 35932 if yyhl18 { 35933 yyb18 = yyj18 > l 35934 } else { 35935 yyb18 = r.CheckBreak() 35936 } 35937 if yyb18 { 35938 r.ReadArrayEnd() 35939 return 35940 } 35941 r.ReadArrayElem() 35942 if r.TryDecodeAsNil() { 35943 x.PolicyOverride = false 35944 } else { 35945 x.PolicyOverride = (bool)(r.DecodeBool()) 35946 } 35947 yyj18++ 35948 if yyhl18 { 35949 yyb18 = yyj18 > l 35950 } else { 35951 yyb18 = r.CheckBreak() 35952 } 35953 if yyb18 { 35954 r.ReadArrayEnd() 35955 return 35956 } 35957 r.ReadArrayElem() 35958 if r.TryDecodeAsNil() { 35959 x.WriteRequest.Region = "" 35960 } else { 35961 x.Region = (string)(r.DecodeString()) 35962 } 35963 yyj18++ 35964 if yyhl18 { 35965 yyb18 = yyj18 > l 35966 } else { 35967 yyb18 = r.CheckBreak() 35968 } 35969 if yyb18 { 35970 r.ReadArrayEnd() 35971 return 35972 } 35973 r.ReadArrayElem() 35974 if r.TryDecodeAsNil() { 35975 x.WriteRequest.AuthToken = "" 35976 } else { 35977 x.AuthToken = (string)(r.DecodeString()) 35978 } 35979 yyj18++ 35980 if yyhl18 { 35981 yyb18 = yyj18 > l 35982 } else { 35983 yyb18 = r.CheckBreak() 35984 } 35985 if yyb18 { 35986 r.ReadArrayEnd() 35987 return 35988 } 35989 r.ReadArrayElem() 35990 if r.TryDecodeAsNil() { 35991 x.WriteRequest.InternalRpcInfo.Forwarded = false 35992 } else { 35993 x.Forwarded = (bool)(r.DecodeBool()) 35994 } 35995 for { 35996 yyj18++ 35997 if yyhl18 { 35998 yyb18 = yyj18 > l 35999 } else { 36000 yyb18 = r.CheckBreak() 36001 } 36002 if yyb18 { 36003 break 36004 } 36005 r.ReadArrayElem() 36006 z.DecStructFieldNotFound(yyj18-1, "") 36007 } 36008 r.ReadArrayEnd() 36009 } 36010 36011 func (x *JobSummaryRequest) CodecEncodeSelf(e *codec1978.Encoder) { 36012 var h codecSelfer100 36013 z, r := codec1978.GenHelperEncoder(e) 36014 _, _, _ = h, z, r 36015 if x == nil { 36016 r.EncodeNil() 36017 } else { 36018 if false { 36019 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 36020 z.EncExtension(x, yyxt1) 36021 } else { 36022 yysep2 := !z.EncBinary() 36023 yy2arr2 := z.EncBasicHandle().StructToArray 36024 _, _ = yysep2, yy2arr2 36025 const yyr2 bool = false // struct tag has 'toArray' 36026 if yyr2 || yy2arr2 { 36027 r.WriteArrayStart(9) 36028 } else { 36029 r.WriteMapStart(9) 36030 } 36031 if yyr2 || yy2arr2 { 36032 r.WriteArrayElem() 36033 if false { 36034 } else { 36035 if z.EncBasicHandle().StringToRaw { 36036 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 36037 } else { 36038 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 36039 } 36040 } 36041 } else { 36042 r.WriteMapElemKey() 36043 if z.IsJSONHandle() { 36044 z.WriteStr("\"JobID\"") 36045 } else { 36046 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 36047 } 36048 r.WriteMapElemValue() 36049 if false { 36050 } else { 36051 if z.EncBasicHandle().StringToRaw { 36052 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 36053 } else { 36054 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 36055 } 36056 } 36057 } 36058 if yyr2 || yy2arr2 { 36059 r.WriteArrayElem() 36060 if false { 36061 } else { 36062 if z.EncBasicHandle().StringToRaw { 36063 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 36064 } else { 36065 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 36066 } 36067 } 36068 } else { 36069 r.WriteMapElemKey() 36070 if z.IsJSONHandle() { 36071 z.WriteStr("\"Region\"") 36072 } else { 36073 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 36074 } 36075 r.WriteMapElemValue() 36076 if false { 36077 } else { 36078 if z.EncBasicHandle().StringToRaw { 36079 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 36080 } else { 36081 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 36082 } 36083 } 36084 } 36085 if yyr2 || yy2arr2 { 36086 r.WriteArrayElem() 36087 if false { 36088 } else { 36089 if z.EncBasicHandle().StringToRaw { 36090 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 36091 } else { 36092 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 36093 } 36094 } 36095 } else { 36096 r.WriteMapElemKey() 36097 if z.IsJSONHandle() { 36098 z.WriteStr("\"Namespace\"") 36099 } else { 36100 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 36101 } 36102 r.WriteMapElemValue() 36103 if false { 36104 } else { 36105 if z.EncBasicHandle().StringToRaw { 36106 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 36107 } else { 36108 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 36109 } 36110 } 36111 } 36112 if yyr2 || yy2arr2 { 36113 r.WriteArrayElem() 36114 if false { 36115 } else { 36116 r.EncodeUint(uint64(x.MinQueryIndex)) 36117 } 36118 } else { 36119 r.WriteMapElemKey() 36120 if z.IsJSONHandle() { 36121 z.WriteStr("\"MinQueryIndex\"") 36122 } else { 36123 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 36124 } 36125 r.WriteMapElemValue() 36126 if false { 36127 } else { 36128 r.EncodeUint(uint64(x.MinQueryIndex)) 36129 } 36130 } 36131 if yyr2 || yy2arr2 { 36132 r.WriteArrayElem() 36133 if false { 36134 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 36135 z.EncExtension(x.MaxQueryTime, yyxt16) 36136 } else { 36137 r.EncodeInt(int64(x.MaxQueryTime)) 36138 } 36139 } else { 36140 r.WriteMapElemKey() 36141 if z.IsJSONHandle() { 36142 z.WriteStr("\"MaxQueryTime\"") 36143 } else { 36144 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 36145 } 36146 r.WriteMapElemValue() 36147 if false { 36148 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 36149 z.EncExtension(x.MaxQueryTime, yyxt17) 36150 } else { 36151 r.EncodeInt(int64(x.MaxQueryTime)) 36152 } 36153 } 36154 if yyr2 || yy2arr2 { 36155 r.WriteArrayElem() 36156 if false { 36157 } else { 36158 r.EncodeBool(bool(x.AllowStale)) 36159 } 36160 } else { 36161 r.WriteMapElemKey() 36162 if z.IsJSONHandle() { 36163 z.WriteStr("\"AllowStale\"") 36164 } else { 36165 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 36166 } 36167 r.WriteMapElemValue() 36168 if false { 36169 } else { 36170 r.EncodeBool(bool(x.AllowStale)) 36171 } 36172 } 36173 if yyr2 || yy2arr2 { 36174 r.WriteArrayElem() 36175 if false { 36176 } else { 36177 if z.EncBasicHandle().StringToRaw { 36178 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 36179 } else { 36180 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 36181 } 36182 } 36183 } else { 36184 r.WriteMapElemKey() 36185 if z.IsJSONHandle() { 36186 z.WriteStr("\"Prefix\"") 36187 } else { 36188 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 36189 } 36190 r.WriteMapElemValue() 36191 if false { 36192 } else { 36193 if z.EncBasicHandle().StringToRaw { 36194 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 36195 } else { 36196 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 36197 } 36198 } 36199 } 36200 if yyr2 || yy2arr2 { 36201 r.WriteArrayElem() 36202 if false { 36203 } else { 36204 if z.EncBasicHandle().StringToRaw { 36205 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 36206 } else { 36207 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 36208 } 36209 } 36210 } else { 36211 r.WriteMapElemKey() 36212 if z.IsJSONHandle() { 36213 z.WriteStr("\"AuthToken\"") 36214 } else { 36215 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 36216 } 36217 r.WriteMapElemValue() 36218 if false { 36219 } else { 36220 if z.EncBasicHandle().StringToRaw { 36221 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 36222 } else { 36223 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 36224 } 36225 } 36226 } 36227 if yyr2 || yy2arr2 { 36228 r.WriteArrayElem() 36229 if false { 36230 } else { 36231 r.EncodeBool(bool(x.Forwarded)) 36232 } 36233 } else { 36234 r.WriteMapElemKey() 36235 if z.IsJSONHandle() { 36236 z.WriteStr("\"Forwarded\"") 36237 } else { 36238 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 36239 } 36240 r.WriteMapElemValue() 36241 if false { 36242 } else { 36243 r.EncodeBool(bool(x.Forwarded)) 36244 } 36245 } 36246 if yyr2 || yy2arr2 { 36247 r.WriteArrayEnd() 36248 } else { 36249 r.WriteMapEnd() 36250 } 36251 } 36252 } 36253 } 36254 36255 func (x *JobSummaryRequest) CodecDecodeSelf(d *codec1978.Decoder) { 36256 var h codecSelfer100 36257 z, r := codec1978.GenHelperDecoder(d) 36258 _, _, _ = h, z, r 36259 if false { 36260 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 36261 z.DecExtension(x, yyxt1) 36262 } else { 36263 yyct2 := r.ContainerType() 36264 if yyct2 == codecSelferValueTypeMap100 { 36265 yyl2 := r.ReadMapStart() 36266 if yyl2 == 0 { 36267 r.ReadMapEnd() 36268 } else { 36269 x.codecDecodeSelfFromMap(yyl2, d) 36270 } 36271 } else if yyct2 == codecSelferValueTypeArray100 { 36272 yyl2 := r.ReadArrayStart() 36273 if yyl2 == 0 { 36274 r.ReadArrayEnd() 36275 } else { 36276 x.codecDecodeSelfFromArray(yyl2, d) 36277 } 36278 } else { 36279 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 36280 } 36281 } 36282 } 36283 36284 func (x *JobSummaryRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 36285 var h codecSelfer100 36286 z, r := codec1978.GenHelperDecoder(d) 36287 _, _, _ = h, z, r 36288 var yyhl3 bool = l >= 0 36289 for yyj3 := 0; ; yyj3++ { 36290 if yyhl3 { 36291 if yyj3 >= l { 36292 break 36293 } 36294 } else { 36295 if r.CheckBreak() { 36296 break 36297 } 36298 } 36299 r.ReadMapElemKey() 36300 yys3 := z.StringView(r.DecodeStringAsBytes()) 36301 r.ReadMapElemValue() 36302 switch yys3 { 36303 case "JobID": 36304 if r.TryDecodeAsNil() { 36305 x.JobID = "" 36306 } else { 36307 x.JobID = (string)(r.DecodeString()) 36308 } 36309 case "Region": 36310 if r.TryDecodeAsNil() { 36311 x.QueryOptions.Region = "" 36312 } else { 36313 x.Region = (string)(r.DecodeString()) 36314 } 36315 case "Namespace": 36316 if r.TryDecodeAsNil() { 36317 x.QueryOptions.Namespace = "" 36318 } else { 36319 x.Namespace = (string)(r.DecodeString()) 36320 } 36321 case "MinQueryIndex": 36322 if r.TryDecodeAsNil() { 36323 x.QueryOptions.MinQueryIndex = 0 36324 } else { 36325 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 36326 } 36327 case "MaxQueryTime": 36328 if r.TryDecodeAsNil() { 36329 x.QueryOptions.MaxQueryTime = 0 36330 } else { 36331 if false { 36332 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 36333 z.DecExtension(x.MaxQueryTime, yyxt9) 36334 } else { 36335 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 36336 } 36337 } 36338 case "AllowStale": 36339 if r.TryDecodeAsNil() { 36340 x.QueryOptions.AllowStale = false 36341 } else { 36342 x.AllowStale = (bool)(r.DecodeBool()) 36343 } 36344 case "Prefix": 36345 if r.TryDecodeAsNil() { 36346 x.QueryOptions.Prefix = "" 36347 } else { 36348 x.Prefix = (string)(r.DecodeString()) 36349 } 36350 case "AuthToken": 36351 if r.TryDecodeAsNil() { 36352 x.QueryOptions.AuthToken = "" 36353 } else { 36354 x.AuthToken = (string)(r.DecodeString()) 36355 } 36356 case "Forwarded": 36357 if r.TryDecodeAsNil() { 36358 x.QueryOptions.InternalRpcInfo.Forwarded = false 36359 } else { 36360 x.Forwarded = (bool)(r.DecodeBool()) 36361 } 36362 default: 36363 z.DecStructFieldNotFound(-1, yys3) 36364 } // end switch yys3 36365 } // end for yyj3 36366 r.ReadMapEnd() 36367 } 36368 36369 func (x *JobSummaryRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 36370 var h codecSelfer100 36371 z, r := codec1978.GenHelperDecoder(d) 36372 _, _, _ = h, z, r 36373 var yyj14 int 36374 var yyb14 bool 36375 var yyhl14 bool = l >= 0 36376 yyj14++ 36377 if yyhl14 { 36378 yyb14 = yyj14 > l 36379 } else { 36380 yyb14 = r.CheckBreak() 36381 } 36382 if yyb14 { 36383 r.ReadArrayEnd() 36384 return 36385 } 36386 r.ReadArrayElem() 36387 if r.TryDecodeAsNil() { 36388 x.JobID = "" 36389 } else { 36390 x.JobID = (string)(r.DecodeString()) 36391 } 36392 yyj14++ 36393 if yyhl14 { 36394 yyb14 = yyj14 > l 36395 } else { 36396 yyb14 = r.CheckBreak() 36397 } 36398 if yyb14 { 36399 r.ReadArrayEnd() 36400 return 36401 } 36402 r.ReadArrayElem() 36403 if r.TryDecodeAsNil() { 36404 x.QueryOptions.Region = "" 36405 } else { 36406 x.Region = (string)(r.DecodeString()) 36407 } 36408 yyj14++ 36409 if yyhl14 { 36410 yyb14 = yyj14 > l 36411 } else { 36412 yyb14 = r.CheckBreak() 36413 } 36414 if yyb14 { 36415 r.ReadArrayEnd() 36416 return 36417 } 36418 r.ReadArrayElem() 36419 if r.TryDecodeAsNil() { 36420 x.QueryOptions.Namespace = "" 36421 } else { 36422 x.Namespace = (string)(r.DecodeString()) 36423 } 36424 yyj14++ 36425 if yyhl14 { 36426 yyb14 = yyj14 > l 36427 } else { 36428 yyb14 = r.CheckBreak() 36429 } 36430 if yyb14 { 36431 r.ReadArrayEnd() 36432 return 36433 } 36434 r.ReadArrayElem() 36435 if r.TryDecodeAsNil() { 36436 x.QueryOptions.MinQueryIndex = 0 36437 } else { 36438 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 36439 } 36440 yyj14++ 36441 if yyhl14 { 36442 yyb14 = yyj14 > l 36443 } else { 36444 yyb14 = r.CheckBreak() 36445 } 36446 if yyb14 { 36447 r.ReadArrayEnd() 36448 return 36449 } 36450 r.ReadArrayElem() 36451 if r.TryDecodeAsNil() { 36452 x.QueryOptions.MaxQueryTime = 0 36453 } else { 36454 if false { 36455 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 36456 z.DecExtension(x.MaxQueryTime, yyxt20) 36457 } else { 36458 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 36459 } 36460 } 36461 yyj14++ 36462 if yyhl14 { 36463 yyb14 = yyj14 > l 36464 } else { 36465 yyb14 = r.CheckBreak() 36466 } 36467 if yyb14 { 36468 r.ReadArrayEnd() 36469 return 36470 } 36471 r.ReadArrayElem() 36472 if r.TryDecodeAsNil() { 36473 x.QueryOptions.AllowStale = false 36474 } else { 36475 x.AllowStale = (bool)(r.DecodeBool()) 36476 } 36477 yyj14++ 36478 if yyhl14 { 36479 yyb14 = yyj14 > l 36480 } else { 36481 yyb14 = r.CheckBreak() 36482 } 36483 if yyb14 { 36484 r.ReadArrayEnd() 36485 return 36486 } 36487 r.ReadArrayElem() 36488 if r.TryDecodeAsNil() { 36489 x.QueryOptions.Prefix = "" 36490 } else { 36491 x.Prefix = (string)(r.DecodeString()) 36492 } 36493 yyj14++ 36494 if yyhl14 { 36495 yyb14 = yyj14 > l 36496 } else { 36497 yyb14 = r.CheckBreak() 36498 } 36499 if yyb14 { 36500 r.ReadArrayEnd() 36501 return 36502 } 36503 r.ReadArrayElem() 36504 if r.TryDecodeAsNil() { 36505 x.QueryOptions.AuthToken = "" 36506 } else { 36507 x.AuthToken = (string)(r.DecodeString()) 36508 } 36509 yyj14++ 36510 if yyhl14 { 36511 yyb14 = yyj14 > l 36512 } else { 36513 yyb14 = r.CheckBreak() 36514 } 36515 if yyb14 { 36516 r.ReadArrayEnd() 36517 return 36518 } 36519 r.ReadArrayElem() 36520 if r.TryDecodeAsNil() { 36521 x.QueryOptions.InternalRpcInfo.Forwarded = false 36522 } else { 36523 x.Forwarded = (bool)(r.DecodeBool()) 36524 } 36525 for { 36526 yyj14++ 36527 if yyhl14 { 36528 yyb14 = yyj14 > l 36529 } else { 36530 yyb14 = r.CheckBreak() 36531 } 36532 if yyb14 { 36533 break 36534 } 36535 r.ReadArrayElem() 36536 z.DecStructFieldNotFound(yyj14-1, "") 36537 } 36538 r.ReadArrayEnd() 36539 } 36540 36541 func (x *JobScaleStatusRequest) CodecEncodeSelf(e *codec1978.Encoder) { 36542 var h codecSelfer100 36543 z, r := codec1978.GenHelperEncoder(e) 36544 _, _, _ = h, z, r 36545 if x == nil { 36546 r.EncodeNil() 36547 } else { 36548 if false { 36549 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 36550 z.EncExtension(x, yyxt1) 36551 } else { 36552 yysep2 := !z.EncBinary() 36553 yy2arr2 := z.EncBasicHandle().StructToArray 36554 _, _ = yysep2, yy2arr2 36555 const yyr2 bool = false // struct tag has 'toArray' 36556 if yyr2 || yy2arr2 { 36557 r.WriteArrayStart(9) 36558 } else { 36559 r.WriteMapStart(9) 36560 } 36561 if yyr2 || yy2arr2 { 36562 r.WriteArrayElem() 36563 if false { 36564 } else { 36565 if z.EncBasicHandle().StringToRaw { 36566 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 36567 } else { 36568 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 36569 } 36570 } 36571 } else { 36572 r.WriteMapElemKey() 36573 if z.IsJSONHandle() { 36574 z.WriteStr("\"JobID\"") 36575 } else { 36576 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 36577 } 36578 r.WriteMapElemValue() 36579 if false { 36580 } else { 36581 if z.EncBasicHandle().StringToRaw { 36582 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 36583 } else { 36584 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 36585 } 36586 } 36587 } 36588 if yyr2 || yy2arr2 { 36589 r.WriteArrayElem() 36590 if false { 36591 } else { 36592 if z.EncBasicHandle().StringToRaw { 36593 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 36594 } else { 36595 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 36596 } 36597 } 36598 } else { 36599 r.WriteMapElemKey() 36600 if z.IsJSONHandle() { 36601 z.WriteStr("\"Region\"") 36602 } else { 36603 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 36604 } 36605 r.WriteMapElemValue() 36606 if false { 36607 } else { 36608 if z.EncBasicHandle().StringToRaw { 36609 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 36610 } else { 36611 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 36612 } 36613 } 36614 } 36615 if yyr2 || yy2arr2 { 36616 r.WriteArrayElem() 36617 if false { 36618 } else { 36619 if z.EncBasicHandle().StringToRaw { 36620 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 36621 } else { 36622 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 36623 } 36624 } 36625 } else { 36626 r.WriteMapElemKey() 36627 if z.IsJSONHandle() { 36628 z.WriteStr("\"Namespace\"") 36629 } else { 36630 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 36631 } 36632 r.WriteMapElemValue() 36633 if false { 36634 } else { 36635 if z.EncBasicHandle().StringToRaw { 36636 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 36637 } else { 36638 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 36639 } 36640 } 36641 } 36642 if yyr2 || yy2arr2 { 36643 r.WriteArrayElem() 36644 if false { 36645 } else { 36646 r.EncodeUint(uint64(x.MinQueryIndex)) 36647 } 36648 } else { 36649 r.WriteMapElemKey() 36650 if z.IsJSONHandle() { 36651 z.WriteStr("\"MinQueryIndex\"") 36652 } else { 36653 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 36654 } 36655 r.WriteMapElemValue() 36656 if false { 36657 } else { 36658 r.EncodeUint(uint64(x.MinQueryIndex)) 36659 } 36660 } 36661 if yyr2 || yy2arr2 { 36662 r.WriteArrayElem() 36663 if false { 36664 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 36665 z.EncExtension(x.MaxQueryTime, yyxt16) 36666 } else { 36667 r.EncodeInt(int64(x.MaxQueryTime)) 36668 } 36669 } else { 36670 r.WriteMapElemKey() 36671 if z.IsJSONHandle() { 36672 z.WriteStr("\"MaxQueryTime\"") 36673 } else { 36674 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 36675 } 36676 r.WriteMapElemValue() 36677 if false { 36678 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 36679 z.EncExtension(x.MaxQueryTime, yyxt17) 36680 } else { 36681 r.EncodeInt(int64(x.MaxQueryTime)) 36682 } 36683 } 36684 if yyr2 || yy2arr2 { 36685 r.WriteArrayElem() 36686 if false { 36687 } else { 36688 r.EncodeBool(bool(x.AllowStale)) 36689 } 36690 } else { 36691 r.WriteMapElemKey() 36692 if z.IsJSONHandle() { 36693 z.WriteStr("\"AllowStale\"") 36694 } else { 36695 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 36696 } 36697 r.WriteMapElemValue() 36698 if false { 36699 } else { 36700 r.EncodeBool(bool(x.AllowStale)) 36701 } 36702 } 36703 if yyr2 || yy2arr2 { 36704 r.WriteArrayElem() 36705 if false { 36706 } else { 36707 if z.EncBasicHandle().StringToRaw { 36708 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 36709 } else { 36710 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 36711 } 36712 } 36713 } else { 36714 r.WriteMapElemKey() 36715 if z.IsJSONHandle() { 36716 z.WriteStr("\"Prefix\"") 36717 } else { 36718 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 36719 } 36720 r.WriteMapElemValue() 36721 if false { 36722 } else { 36723 if z.EncBasicHandle().StringToRaw { 36724 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 36725 } else { 36726 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 36727 } 36728 } 36729 } 36730 if yyr2 || yy2arr2 { 36731 r.WriteArrayElem() 36732 if false { 36733 } else { 36734 if z.EncBasicHandle().StringToRaw { 36735 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 36736 } else { 36737 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 36738 } 36739 } 36740 } else { 36741 r.WriteMapElemKey() 36742 if z.IsJSONHandle() { 36743 z.WriteStr("\"AuthToken\"") 36744 } else { 36745 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 36746 } 36747 r.WriteMapElemValue() 36748 if false { 36749 } else { 36750 if z.EncBasicHandle().StringToRaw { 36751 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 36752 } else { 36753 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 36754 } 36755 } 36756 } 36757 if yyr2 || yy2arr2 { 36758 r.WriteArrayElem() 36759 if false { 36760 } else { 36761 r.EncodeBool(bool(x.Forwarded)) 36762 } 36763 } else { 36764 r.WriteMapElemKey() 36765 if z.IsJSONHandle() { 36766 z.WriteStr("\"Forwarded\"") 36767 } else { 36768 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 36769 } 36770 r.WriteMapElemValue() 36771 if false { 36772 } else { 36773 r.EncodeBool(bool(x.Forwarded)) 36774 } 36775 } 36776 if yyr2 || yy2arr2 { 36777 r.WriteArrayEnd() 36778 } else { 36779 r.WriteMapEnd() 36780 } 36781 } 36782 } 36783 } 36784 36785 func (x *JobScaleStatusRequest) CodecDecodeSelf(d *codec1978.Decoder) { 36786 var h codecSelfer100 36787 z, r := codec1978.GenHelperDecoder(d) 36788 _, _, _ = h, z, r 36789 if false { 36790 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 36791 z.DecExtension(x, yyxt1) 36792 } else { 36793 yyct2 := r.ContainerType() 36794 if yyct2 == codecSelferValueTypeMap100 { 36795 yyl2 := r.ReadMapStart() 36796 if yyl2 == 0 { 36797 r.ReadMapEnd() 36798 } else { 36799 x.codecDecodeSelfFromMap(yyl2, d) 36800 } 36801 } else if yyct2 == codecSelferValueTypeArray100 { 36802 yyl2 := r.ReadArrayStart() 36803 if yyl2 == 0 { 36804 r.ReadArrayEnd() 36805 } else { 36806 x.codecDecodeSelfFromArray(yyl2, d) 36807 } 36808 } else { 36809 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 36810 } 36811 } 36812 } 36813 36814 func (x *JobScaleStatusRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 36815 var h codecSelfer100 36816 z, r := codec1978.GenHelperDecoder(d) 36817 _, _, _ = h, z, r 36818 var yyhl3 bool = l >= 0 36819 for yyj3 := 0; ; yyj3++ { 36820 if yyhl3 { 36821 if yyj3 >= l { 36822 break 36823 } 36824 } else { 36825 if r.CheckBreak() { 36826 break 36827 } 36828 } 36829 r.ReadMapElemKey() 36830 yys3 := z.StringView(r.DecodeStringAsBytes()) 36831 r.ReadMapElemValue() 36832 switch yys3 { 36833 case "JobID": 36834 if r.TryDecodeAsNil() { 36835 x.JobID = "" 36836 } else { 36837 x.JobID = (string)(r.DecodeString()) 36838 } 36839 case "Region": 36840 if r.TryDecodeAsNil() { 36841 x.QueryOptions.Region = "" 36842 } else { 36843 x.Region = (string)(r.DecodeString()) 36844 } 36845 case "Namespace": 36846 if r.TryDecodeAsNil() { 36847 x.QueryOptions.Namespace = "" 36848 } else { 36849 x.Namespace = (string)(r.DecodeString()) 36850 } 36851 case "MinQueryIndex": 36852 if r.TryDecodeAsNil() { 36853 x.QueryOptions.MinQueryIndex = 0 36854 } else { 36855 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 36856 } 36857 case "MaxQueryTime": 36858 if r.TryDecodeAsNil() { 36859 x.QueryOptions.MaxQueryTime = 0 36860 } else { 36861 if false { 36862 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 36863 z.DecExtension(x.MaxQueryTime, yyxt9) 36864 } else { 36865 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 36866 } 36867 } 36868 case "AllowStale": 36869 if r.TryDecodeAsNil() { 36870 x.QueryOptions.AllowStale = false 36871 } else { 36872 x.AllowStale = (bool)(r.DecodeBool()) 36873 } 36874 case "Prefix": 36875 if r.TryDecodeAsNil() { 36876 x.QueryOptions.Prefix = "" 36877 } else { 36878 x.Prefix = (string)(r.DecodeString()) 36879 } 36880 case "AuthToken": 36881 if r.TryDecodeAsNil() { 36882 x.QueryOptions.AuthToken = "" 36883 } else { 36884 x.AuthToken = (string)(r.DecodeString()) 36885 } 36886 case "Forwarded": 36887 if r.TryDecodeAsNil() { 36888 x.QueryOptions.InternalRpcInfo.Forwarded = false 36889 } else { 36890 x.Forwarded = (bool)(r.DecodeBool()) 36891 } 36892 default: 36893 z.DecStructFieldNotFound(-1, yys3) 36894 } // end switch yys3 36895 } // end for yyj3 36896 r.ReadMapEnd() 36897 } 36898 36899 func (x *JobScaleStatusRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 36900 var h codecSelfer100 36901 z, r := codec1978.GenHelperDecoder(d) 36902 _, _, _ = h, z, r 36903 var yyj14 int 36904 var yyb14 bool 36905 var yyhl14 bool = l >= 0 36906 yyj14++ 36907 if yyhl14 { 36908 yyb14 = yyj14 > l 36909 } else { 36910 yyb14 = r.CheckBreak() 36911 } 36912 if yyb14 { 36913 r.ReadArrayEnd() 36914 return 36915 } 36916 r.ReadArrayElem() 36917 if r.TryDecodeAsNil() { 36918 x.JobID = "" 36919 } else { 36920 x.JobID = (string)(r.DecodeString()) 36921 } 36922 yyj14++ 36923 if yyhl14 { 36924 yyb14 = yyj14 > l 36925 } else { 36926 yyb14 = r.CheckBreak() 36927 } 36928 if yyb14 { 36929 r.ReadArrayEnd() 36930 return 36931 } 36932 r.ReadArrayElem() 36933 if r.TryDecodeAsNil() { 36934 x.QueryOptions.Region = "" 36935 } else { 36936 x.Region = (string)(r.DecodeString()) 36937 } 36938 yyj14++ 36939 if yyhl14 { 36940 yyb14 = yyj14 > l 36941 } else { 36942 yyb14 = r.CheckBreak() 36943 } 36944 if yyb14 { 36945 r.ReadArrayEnd() 36946 return 36947 } 36948 r.ReadArrayElem() 36949 if r.TryDecodeAsNil() { 36950 x.QueryOptions.Namespace = "" 36951 } else { 36952 x.Namespace = (string)(r.DecodeString()) 36953 } 36954 yyj14++ 36955 if yyhl14 { 36956 yyb14 = yyj14 > l 36957 } else { 36958 yyb14 = r.CheckBreak() 36959 } 36960 if yyb14 { 36961 r.ReadArrayEnd() 36962 return 36963 } 36964 r.ReadArrayElem() 36965 if r.TryDecodeAsNil() { 36966 x.QueryOptions.MinQueryIndex = 0 36967 } else { 36968 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 36969 } 36970 yyj14++ 36971 if yyhl14 { 36972 yyb14 = yyj14 > l 36973 } else { 36974 yyb14 = r.CheckBreak() 36975 } 36976 if yyb14 { 36977 r.ReadArrayEnd() 36978 return 36979 } 36980 r.ReadArrayElem() 36981 if r.TryDecodeAsNil() { 36982 x.QueryOptions.MaxQueryTime = 0 36983 } else { 36984 if false { 36985 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 36986 z.DecExtension(x.MaxQueryTime, yyxt20) 36987 } else { 36988 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 36989 } 36990 } 36991 yyj14++ 36992 if yyhl14 { 36993 yyb14 = yyj14 > l 36994 } else { 36995 yyb14 = r.CheckBreak() 36996 } 36997 if yyb14 { 36998 r.ReadArrayEnd() 36999 return 37000 } 37001 r.ReadArrayElem() 37002 if r.TryDecodeAsNil() { 37003 x.QueryOptions.AllowStale = false 37004 } else { 37005 x.AllowStale = (bool)(r.DecodeBool()) 37006 } 37007 yyj14++ 37008 if yyhl14 { 37009 yyb14 = yyj14 > l 37010 } else { 37011 yyb14 = r.CheckBreak() 37012 } 37013 if yyb14 { 37014 r.ReadArrayEnd() 37015 return 37016 } 37017 r.ReadArrayElem() 37018 if r.TryDecodeAsNil() { 37019 x.QueryOptions.Prefix = "" 37020 } else { 37021 x.Prefix = (string)(r.DecodeString()) 37022 } 37023 yyj14++ 37024 if yyhl14 { 37025 yyb14 = yyj14 > l 37026 } else { 37027 yyb14 = r.CheckBreak() 37028 } 37029 if yyb14 { 37030 r.ReadArrayEnd() 37031 return 37032 } 37033 r.ReadArrayElem() 37034 if r.TryDecodeAsNil() { 37035 x.QueryOptions.AuthToken = "" 37036 } else { 37037 x.AuthToken = (string)(r.DecodeString()) 37038 } 37039 yyj14++ 37040 if yyhl14 { 37041 yyb14 = yyj14 > l 37042 } else { 37043 yyb14 = r.CheckBreak() 37044 } 37045 if yyb14 { 37046 r.ReadArrayEnd() 37047 return 37048 } 37049 r.ReadArrayElem() 37050 if r.TryDecodeAsNil() { 37051 x.QueryOptions.InternalRpcInfo.Forwarded = false 37052 } else { 37053 x.Forwarded = (bool)(r.DecodeBool()) 37054 } 37055 for { 37056 yyj14++ 37057 if yyhl14 { 37058 yyb14 = yyj14 > l 37059 } else { 37060 yyb14 = r.CheckBreak() 37061 } 37062 if yyb14 { 37063 break 37064 } 37065 r.ReadArrayElem() 37066 z.DecStructFieldNotFound(yyj14-1, "") 37067 } 37068 r.ReadArrayEnd() 37069 } 37070 37071 func (x *JobDispatchRequest) CodecEncodeSelf(e *codec1978.Encoder) { 37072 var h codecSelfer100 37073 z, r := codec1978.GenHelperEncoder(e) 37074 _, _, _ = h, z, r 37075 if x == nil { 37076 r.EncodeNil() 37077 } else { 37078 if false { 37079 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 37080 z.EncExtension(x, yyxt1) 37081 } else { 37082 yysep2 := !z.EncBinary() 37083 yy2arr2 := z.EncBasicHandle().StructToArray 37084 _, _ = yysep2, yy2arr2 37085 const yyr2 bool = false // struct tag has 'toArray' 37086 if yyr2 || yy2arr2 { 37087 r.WriteArrayStart(7) 37088 } else { 37089 r.WriteMapStart(7) 37090 } 37091 if yyr2 || yy2arr2 { 37092 r.WriteArrayElem() 37093 if false { 37094 } else { 37095 if z.EncBasicHandle().StringToRaw { 37096 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 37097 } else { 37098 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 37099 } 37100 } 37101 } else { 37102 r.WriteMapElemKey() 37103 if z.IsJSONHandle() { 37104 z.WriteStr("\"JobID\"") 37105 } else { 37106 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 37107 } 37108 r.WriteMapElemValue() 37109 if false { 37110 } else { 37111 if z.EncBasicHandle().StringToRaw { 37112 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 37113 } else { 37114 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 37115 } 37116 } 37117 } 37118 if yyr2 || yy2arr2 { 37119 r.WriteArrayElem() 37120 if x.Payload == nil { 37121 r.EncodeNil() 37122 } else { 37123 if false { 37124 } else { 37125 r.EncodeStringBytesRaw([]byte(x.Payload)) 37126 } 37127 } 37128 } else { 37129 r.WriteMapElemKey() 37130 if z.IsJSONHandle() { 37131 z.WriteStr("\"Payload\"") 37132 } else { 37133 r.EncodeStringEnc(codecSelferCcUTF8100, `Payload`) 37134 } 37135 r.WriteMapElemValue() 37136 if x.Payload == nil { 37137 r.EncodeNil() 37138 } else { 37139 if false { 37140 } else { 37141 r.EncodeStringBytesRaw([]byte(x.Payload)) 37142 } 37143 } 37144 } 37145 if yyr2 || yy2arr2 { 37146 r.WriteArrayElem() 37147 if x.Meta == nil { 37148 r.EncodeNil() 37149 } else { 37150 if false { 37151 } else { 37152 z.F.EncMapStringStringV(x.Meta, e) 37153 } 37154 } 37155 } else { 37156 r.WriteMapElemKey() 37157 if z.IsJSONHandle() { 37158 z.WriteStr("\"Meta\"") 37159 } else { 37160 r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) 37161 } 37162 r.WriteMapElemValue() 37163 if x.Meta == nil { 37164 r.EncodeNil() 37165 } else { 37166 if false { 37167 } else { 37168 z.F.EncMapStringStringV(x.Meta, e) 37169 } 37170 } 37171 } 37172 if yyr2 || yy2arr2 { 37173 r.WriteArrayElem() 37174 if false { 37175 } else { 37176 if z.EncBasicHandle().StringToRaw { 37177 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 37178 } else { 37179 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 37180 } 37181 } 37182 } else { 37183 r.WriteMapElemKey() 37184 if z.IsJSONHandle() { 37185 z.WriteStr("\"Region\"") 37186 } else { 37187 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 37188 } 37189 r.WriteMapElemValue() 37190 if false { 37191 } else { 37192 if z.EncBasicHandle().StringToRaw { 37193 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 37194 } else { 37195 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 37196 } 37197 } 37198 } 37199 if yyr2 || yy2arr2 { 37200 r.WriteArrayElem() 37201 if false { 37202 } else { 37203 if z.EncBasicHandle().StringToRaw { 37204 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 37205 } else { 37206 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 37207 } 37208 } 37209 } else { 37210 r.WriteMapElemKey() 37211 if z.IsJSONHandle() { 37212 z.WriteStr("\"Namespace\"") 37213 } else { 37214 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 37215 } 37216 r.WriteMapElemValue() 37217 if false { 37218 } else { 37219 if z.EncBasicHandle().StringToRaw { 37220 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 37221 } else { 37222 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 37223 } 37224 } 37225 } 37226 if yyr2 || yy2arr2 { 37227 r.WriteArrayElem() 37228 if false { 37229 } else { 37230 if z.EncBasicHandle().StringToRaw { 37231 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 37232 } else { 37233 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 37234 } 37235 } 37236 } else { 37237 r.WriteMapElemKey() 37238 if z.IsJSONHandle() { 37239 z.WriteStr("\"AuthToken\"") 37240 } else { 37241 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 37242 } 37243 r.WriteMapElemValue() 37244 if false { 37245 } else { 37246 if z.EncBasicHandle().StringToRaw { 37247 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 37248 } else { 37249 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 37250 } 37251 } 37252 } 37253 if yyr2 || yy2arr2 { 37254 r.WriteArrayElem() 37255 if false { 37256 } else { 37257 r.EncodeBool(bool(x.Forwarded)) 37258 } 37259 } else { 37260 r.WriteMapElemKey() 37261 if z.IsJSONHandle() { 37262 z.WriteStr("\"Forwarded\"") 37263 } else { 37264 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 37265 } 37266 r.WriteMapElemValue() 37267 if false { 37268 } else { 37269 r.EncodeBool(bool(x.Forwarded)) 37270 } 37271 } 37272 if yyr2 || yy2arr2 { 37273 r.WriteArrayEnd() 37274 } else { 37275 r.WriteMapEnd() 37276 } 37277 } 37278 } 37279 } 37280 37281 func (x *JobDispatchRequest) CodecDecodeSelf(d *codec1978.Decoder) { 37282 var h codecSelfer100 37283 z, r := codec1978.GenHelperDecoder(d) 37284 _, _, _ = h, z, r 37285 if false { 37286 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 37287 z.DecExtension(x, yyxt1) 37288 } else { 37289 yyct2 := r.ContainerType() 37290 if yyct2 == codecSelferValueTypeMap100 { 37291 yyl2 := r.ReadMapStart() 37292 if yyl2 == 0 { 37293 r.ReadMapEnd() 37294 } else { 37295 x.codecDecodeSelfFromMap(yyl2, d) 37296 } 37297 } else if yyct2 == codecSelferValueTypeArray100 { 37298 yyl2 := r.ReadArrayStart() 37299 if yyl2 == 0 { 37300 r.ReadArrayEnd() 37301 } else { 37302 x.codecDecodeSelfFromArray(yyl2, d) 37303 } 37304 } else { 37305 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 37306 } 37307 } 37308 } 37309 37310 func (x *JobDispatchRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 37311 var h codecSelfer100 37312 z, r := codec1978.GenHelperDecoder(d) 37313 _, _, _ = h, z, r 37314 var yyhl3 bool = l >= 0 37315 for yyj3 := 0; ; yyj3++ { 37316 if yyhl3 { 37317 if yyj3 >= l { 37318 break 37319 } 37320 } else { 37321 if r.CheckBreak() { 37322 break 37323 } 37324 } 37325 r.ReadMapElemKey() 37326 yys3 := z.StringView(r.DecodeStringAsBytes()) 37327 r.ReadMapElemValue() 37328 switch yys3 { 37329 case "JobID": 37330 if r.TryDecodeAsNil() { 37331 x.JobID = "" 37332 } else { 37333 x.JobID = (string)(r.DecodeString()) 37334 } 37335 case "Payload": 37336 if r.TryDecodeAsNil() { 37337 x.Payload = nil 37338 } else { 37339 if false { 37340 } else { 37341 x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) 37342 } 37343 } 37344 case "Meta": 37345 if r.TryDecodeAsNil() { 37346 x.Meta = nil 37347 } else { 37348 if false { 37349 } else { 37350 z.F.DecMapStringStringX(&x.Meta, d) 37351 } 37352 } 37353 case "Region": 37354 if r.TryDecodeAsNil() { 37355 x.WriteRequest.Region = "" 37356 } else { 37357 x.Region = (string)(r.DecodeString()) 37358 } 37359 case "Namespace": 37360 if r.TryDecodeAsNil() { 37361 x.WriteRequest.Namespace = "" 37362 } else { 37363 x.Namespace = (string)(r.DecodeString()) 37364 } 37365 case "AuthToken": 37366 if r.TryDecodeAsNil() { 37367 x.WriteRequest.AuthToken = "" 37368 } else { 37369 x.AuthToken = (string)(r.DecodeString()) 37370 } 37371 case "Forwarded": 37372 if r.TryDecodeAsNil() { 37373 x.WriteRequest.InternalRpcInfo.Forwarded = false 37374 } else { 37375 x.Forwarded = (bool)(r.DecodeBool()) 37376 } 37377 default: 37378 z.DecStructFieldNotFound(-1, yys3) 37379 } // end switch yys3 37380 } // end for yyj3 37381 r.ReadMapEnd() 37382 } 37383 37384 func (x *JobDispatchRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 37385 var h codecSelfer100 37386 z, r := codec1978.GenHelperDecoder(d) 37387 _, _, _ = h, z, r 37388 var yyj13 int 37389 var yyb13 bool 37390 var yyhl13 bool = l >= 0 37391 yyj13++ 37392 if yyhl13 { 37393 yyb13 = yyj13 > l 37394 } else { 37395 yyb13 = r.CheckBreak() 37396 } 37397 if yyb13 { 37398 r.ReadArrayEnd() 37399 return 37400 } 37401 r.ReadArrayElem() 37402 if r.TryDecodeAsNil() { 37403 x.JobID = "" 37404 } else { 37405 x.JobID = (string)(r.DecodeString()) 37406 } 37407 yyj13++ 37408 if yyhl13 { 37409 yyb13 = yyj13 > l 37410 } else { 37411 yyb13 = r.CheckBreak() 37412 } 37413 if yyb13 { 37414 r.ReadArrayEnd() 37415 return 37416 } 37417 r.ReadArrayElem() 37418 if r.TryDecodeAsNil() { 37419 x.Payload = nil 37420 } else { 37421 if false { 37422 } else { 37423 x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) 37424 } 37425 } 37426 yyj13++ 37427 if yyhl13 { 37428 yyb13 = yyj13 > l 37429 } else { 37430 yyb13 = r.CheckBreak() 37431 } 37432 if yyb13 { 37433 r.ReadArrayEnd() 37434 return 37435 } 37436 r.ReadArrayElem() 37437 if r.TryDecodeAsNil() { 37438 x.Meta = nil 37439 } else { 37440 if false { 37441 } else { 37442 z.F.DecMapStringStringX(&x.Meta, d) 37443 } 37444 } 37445 yyj13++ 37446 if yyhl13 { 37447 yyb13 = yyj13 > l 37448 } else { 37449 yyb13 = r.CheckBreak() 37450 } 37451 if yyb13 { 37452 r.ReadArrayEnd() 37453 return 37454 } 37455 r.ReadArrayElem() 37456 if r.TryDecodeAsNil() { 37457 x.WriteRequest.Region = "" 37458 } else { 37459 x.Region = (string)(r.DecodeString()) 37460 } 37461 yyj13++ 37462 if yyhl13 { 37463 yyb13 = yyj13 > l 37464 } else { 37465 yyb13 = r.CheckBreak() 37466 } 37467 if yyb13 { 37468 r.ReadArrayEnd() 37469 return 37470 } 37471 r.ReadArrayElem() 37472 if r.TryDecodeAsNil() { 37473 x.WriteRequest.Namespace = "" 37474 } else { 37475 x.Namespace = (string)(r.DecodeString()) 37476 } 37477 yyj13++ 37478 if yyhl13 { 37479 yyb13 = yyj13 > l 37480 } else { 37481 yyb13 = r.CheckBreak() 37482 } 37483 if yyb13 { 37484 r.ReadArrayEnd() 37485 return 37486 } 37487 r.ReadArrayElem() 37488 if r.TryDecodeAsNil() { 37489 x.WriteRequest.AuthToken = "" 37490 } else { 37491 x.AuthToken = (string)(r.DecodeString()) 37492 } 37493 yyj13++ 37494 if yyhl13 { 37495 yyb13 = yyj13 > l 37496 } else { 37497 yyb13 = r.CheckBreak() 37498 } 37499 if yyb13 { 37500 r.ReadArrayEnd() 37501 return 37502 } 37503 r.ReadArrayElem() 37504 if r.TryDecodeAsNil() { 37505 x.WriteRequest.InternalRpcInfo.Forwarded = false 37506 } else { 37507 x.Forwarded = (bool)(r.DecodeBool()) 37508 } 37509 for { 37510 yyj13++ 37511 if yyhl13 { 37512 yyb13 = yyj13 > l 37513 } else { 37514 yyb13 = r.CheckBreak() 37515 } 37516 if yyb13 { 37517 break 37518 } 37519 r.ReadArrayElem() 37520 z.DecStructFieldNotFound(yyj13-1, "") 37521 } 37522 r.ReadArrayEnd() 37523 } 37524 37525 func (x *JobValidateRequest) CodecEncodeSelf(e *codec1978.Encoder) { 37526 var h codecSelfer100 37527 z, r := codec1978.GenHelperEncoder(e) 37528 _, _, _ = h, z, r 37529 if x == nil { 37530 r.EncodeNil() 37531 } else { 37532 if false { 37533 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 37534 z.EncExtension(x, yyxt1) 37535 } else { 37536 yysep2 := !z.EncBinary() 37537 yy2arr2 := z.EncBasicHandle().StructToArray 37538 _, _ = yysep2, yy2arr2 37539 const yyr2 bool = false // struct tag has 'toArray' 37540 if yyr2 || yy2arr2 { 37541 r.WriteArrayStart(5) 37542 } else { 37543 r.WriteMapStart(5) 37544 } 37545 var yyn3 bool 37546 if x.Job == nil { 37547 yyn3 = true 37548 goto LABEL3 37549 } 37550 LABEL3: 37551 if yyr2 || yy2arr2 { 37552 if yyn3 { 37553 r.WriteArrayElem() 37554 r.EncodeNil() 37555 } else { 37556 r.WriteArrayElem() 37557 if x.Job == nil { 37558 r.EncodeNil() 37559 } else { 37560 x.Job.CodecEncodeSelf(e) 37561 } 37562 } 37563 } else { 37564 r.WriteMapElemKey() 37565 if z.IsJSONHandle() { 37566 z.WriteStr("\"Job\"") 37567 } else { 37568 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 37569 } 37570 r.WriteMapElemValue() 37571 if yyn3 { 37572 r.EncodeNil() 37573 } else { 37574 if x.Job == nil { 37575 r.EncodeNil() 37576 } else { 37577 x.Job.CodecEncodeSelf(e) 37578 } 37579 } 37580 } 37581 if yyr2 || yy2arr2 { 37582 r.WriteArrayElem() 37583 if false { 37584 } else { 37585 if z.EncBasicHandle().StringToRaw { 37586 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 37587 } else { 37588 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 37589 } 37590 } 37591 } else { 37592 r.WriteMapElemKey() 37593 if z.IsJSONHandle() { 37594 z.WriteStr("\"Region\"") 37595 } else { 37596 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 37597 } 37598 r.WriteMapElemValue() 37599 if false { 37600 } else { 37601 if z.EncBasicHandle().StringToRaw { 37602 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 37603 } else { 37604 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 37605 } 37606 } 37607 } 37608 if yyr2 || yy2arr2 { 37609 r.WriteArrayElem() 37610 if false { 37611 } else { 37612 if z.EncBasicHandle().StringToRaw { 37613 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 37614 } else { 37615 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 37616 } 37617 } 37618 } else { 37619 r.WriteMapElemKey() 37620 if z.IsJSONHandle() { 37621 z.WriteStr("\"Namespace\"") 37622 } else { 37623 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 37624 } 37625 r.WriteMapElemValue() 37626 if false { 37627 } else { 37628 if z.EncBasicHandle().StringToRaw { 37629 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 37630 } else { 37631 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 37632 } 37633 } 37634 } 37635 if yyr2 || yy2arr2 { 37636 r.WriteArrayElem() 37637 if false { 37638 } else { 37639 if z.EncBasicHandle().StringToRaw { 37640 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 37641 } else { 37642 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 37643 } 37644 } 37645 } else { 37646 r.WriteMapElemKey() 37647 if z.IsJSONHandle() { 37648 z.WriteStr("\"AuthToken\"") 37649 } else { 37650 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 37651 } 37652 r.WriteMapElemValue() 37653 if false { 37654 } else { 37655 if z.EncBasicHandle().StringToRaw { 37656 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 37657 } else { 37658 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 37659 } 37660 } 37661 } 37662 if yyr2 || yy2arr2 { 37663 r.WriteArrayElem() 37664 if false { 37665 } else { 37666 r.EncodeBool(bool(x.Forwarded)) 37667 } 37668 } else { 37669 r.WriteMapElemKey() 37670 if z.IsJSONHandle() { 37671 z.WriteStr("\"Forwarded\"") 37672 } else { 37673 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 37674 } 37675 r.WriteMapElemValue() 37676 if false { 37677 } else { 37678 r.EncodeBool(bool(x.Forwarded)) 37679 } 37680 } 37681 if yyr2 || yy2arr2 { 37682 r.WriteArrayEnd() 37683 } else { 37684 r.WriteMapEnd() 37685 } 37686 } 37687 } 37688 } 37689 37690 func (x *JobValidateRequest) CodecDecodeSelf(d *codec1978.Decoder) { 37691 var h codecSelfer100 37692 z, r := codec1978.GenHelperDecoder(d) 37693 _, _, _ = h, z, r 37694 if false { 37695 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 37696 z.DecExtension(x, yyxt1) 37697 } else { 37698 yyct2 := r.ContainerType() 37699 if yyct2 == codecSelferValueTypeMap100 { 37700 yyl2 := r.ReadMapStart() 37701 if yyl2 == 0 { 37702 r.ReadMapEnd() 37703 } else { 37704 x.codecDecodeSelfFromMap(yyl2, d) 37705 } 37706 } else if yyct2 == codecSelferValueTypeArray100 { 37707 yyl2 := r.ReadArrayStart() 37708 if yyl2 == 0 { 37709 r.ReadArrayEnd() 37710 } else { 37711 x.codecDecodeSelfFromArray(yyl2, d) 37712 } 37713 } else { 37714 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 37715 } 37716 } 37717 } 37718 37719 func (x *JobValidateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 37720 var h codecSelfer100 37721 z, r := codec1978.GenHelperDecoder(d) 37722 _, _, _ = h, z, r 37723 var yyhl3 bool = l >= 0 37724 for yyj3 := 0; ; yyj3++ { 37725 if yyhl3 { 37726 if yyj3 >= l { 37727 break 37728 } 37729 } else { 37730 if r.CheckBreak() { 37731 break 37732 } 37733 } 37734 r.ReadMapElemKey() 37735 yys3 := z.StringView(r.DecodeStringAsBytes()) 37736 r.ReadMapElemValue() 37737 switch yys3 { 37738 case "Job": 37739 if r.TryDecodeAsNil() { 37740 if true && x.Job != nil { 37741 x.Job = nil 37742 } 37743 } else { 37744 if x.Job == nil { 37745 x.Job = new(Job) 37746 } 37747 37748 x.Job.CodecDecodeSelf(d) 37749 } 37750 case "Region": 37751 if r.TryDecodeAsNil() { 37752 x.WriteRequest.Region = "" 37753 } else { 37754 x.Region = (string)(r.DecodeString()) 37755 } 37756 case "Namespace": 37757 if r.TryDecodeAsNil() { 37758 x.WriteRequest.Namespace = "" 37759 } else { 37760 x.Namespace = (string)(r.DecodeString()) 37761 } 37762 case "AuthToken": 37763 if r.TryDecodeAsNil() { 37764 x.WriteRequest.AuthToken = "" 37765 } else { 37766 x.AuthToken = (string)(r.DecodeString()) 37767 } 37768 case "Forwarded": 37769 if r.TryDecodeAsNil() { 37770 x.WriteRequest.InternalRpcInfo.Forwarded = false 37771 } else { 37772 x.Forwarded = (bool)(r.DecodeBool()) 37773 } 37774 default: 37775 z.DecStructFieldNotFound(-1, yys3) 37776 } // end switch yys3 37777 } // end for yyj3 37778 r.ReadMapEnd() 37779 } 37780 37781 func (x *JobValidateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 37782 var h codecSelfer100 37783 z, r := codec1978.GenHelperDecoder(d) 37784 _, _, _ = h, z, r 37785 var yyj9 int 37786 var yyb9 bool 37787 var yyhl9 bool = l >= 0 37788 yyj9++ 37789 if yyhl9 { 37790 yyb9 = yyj9 > l 37791 } else { 37792 yyb9 = r.CheckBreak() 37793 } 37794 if yyb9 { 37795 r.ReadArrayEnd() 37796 return 37797 } 37798 r.ReadArrayElem() 37799 if r.TryDecodeAsNil() { 37800 if true && x.Job != nil { 37801 x.Job = nil 37802 } 37803 } else { 37804 if x.Job == nil { 37805 x.Job = new(Job) 37806 } 37807 37808 x.Job.CodecDecodeSelf(d) 37809 } 37810 yyj9++ 37811 if yyhl9 { 37812 yyb9 = yyj9 > l 37813 } else { 37814 yyb9 = r.CheckBreak() 37815 } 37816 if yyb9 { 37817 r.ReadArrayEnd() 37818 return 37819 } 37820 r.ReadArrayElem() 37821 if r.TryDecodeAsNil() { 37822 x.WriteRequest.Region = "" 37823 } else { 37824 x.Region = (string)(r.DecodeString()) 37825 } 37826 yyj9++ 37827 if yyhl9 { 37828 yyb9 = yyj9 > l 37829 } else { 37830 yyb9 = r.CheckBreak() 37831 } 37832 if yyb9 { 37833 r.ReadArrayEnd() 37834 return 37835 } 37836 r.ReadArrayElem() 37837 if r.TryDecodeAsNil() { 37838 x.WriteRequest.Namespace = "" 37839 } else { 37840 x.Namespace = (string)(r.DecodeString()) 37841 } 37842 yyj9++ 37843 if yyhl9 { 37844 yyb9 = yyj9 > l 37845 } else { 37846 yyb9 = r.CheckBreak() 37847 } 37848 if yyb9 { 37849 r.ReadArrayEnd() 37850 return 37851 } 37852 r.ReadArrayElem() 37853 if r.TryDecodeAsNil() { 37854 x.WriteRequest.AuthToken = "" 37855 } else { 37856 x.AuthToken = (string)(r.DecodeString()) 37857 } 37858 yyj9++ 37859 if yyhl9 { 37860 yyb9 = yyj9 > l 37861 } else { 37862 yyb9 = r.CheckBreak() 37863 } 37864 if yyb9 { 37865 r.ReadArrayEnd() 37866 return 37867 } 37868 r.ReadArrayElem() 37869 if r.TryDecodeAsNil() { 37870 x.WriteRequest.InternalRpcInfo.Forwarded = false 37871 } else { 37872 x.Forwarded = (bool)(r.DecodeBool()) 37873 } 37874 for { 37875 yyj9++ 37876 if yyhl9 { 37877 yyb9 = yyj9 > l 37878 } else { 37879 yyb9 = r.CheckBreak() 37880 } 37881 if yyb9 { 37882 break 37883 } 37884 r.ReadArrayElem() 37885 z.DecStructFieldNotFound(yyj9-1, "") 37886 } 37887 r.ReadArrayEnd() 37888 } 37889 37890 func (x *JobRevertRequest) CodecEncodeSelf(e *codec1978.Encoder) { 37891 var h codecSelfer100 37892 z, r := codec1978.GenHelperEncoder(e) 37893 _, _, _ = h, z, r 37894 if x == nil { 37895 r.EncodeNil() 37896 } else { 37897 if false { 37898 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 37899 z.EncExtension(x, yyxt1) 37900 } else { 37901 yysep2 := !z.EncBinary() 37902 yy2arr2 := z.EncBasicHandle().StructToArray 37903 _, _ = yysep2, yy2arr2 37904 const yyr2 bool = false // struct tag has 'toArray' 37905 if yyr2 || yy2arr2 { 37906 r.WriteArrayStart(9) 37907 } else { 37908 r.WriteMapStart(9) 37909 } 37910 if yyr2 || yy2arr2 { 37911 r.WriteArrayElem() 37912 if false { 37913 } else { 37914 if z.EncBasicHandle().StringToRaw { 37915 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 37916 } else { 37917 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 37918 } 37919 } 37920 } else { 37921 r.WriteMapElemKey() 37922 if z.IsJSONHandle() { 37923 z.WriteStr("\"JobID\"") 37924 } else { 37925 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 37926 } 37927 r.WriteMapElemValue() 37928 if false { 37929 } else { 37930 if z.EncBasicHandle().StringToRaw { 37931 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 37932 } else { 37933 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 37934 } 37935 } 37936 } 37937 if yyr2 || yy2arr2 { 37938 r.WriteArrayElem() 37939 if false { 37940 } else { 37941 r.EncodeUint(uint64(x.JobVersion)) 37942 } 37943 } else { 37944 r.WriteMapElemKey() 37945 if z.IsJSONHandle() { 37946 z.WriteStr("\"JobVersion\"") 37947 } else { 37948 r.EncodeStringEnc(codecSelferCcUTF8100, `JobVersion`) 37949 } 37950 r.WriteMapElemValue() 37951 if false { 37952 } else { 37953 r.EncodeUint(uint64(x.JobVersion)) 37954 } 37955 } 37956 var yyn9 bool 37957 if x.EnforcePriorVersion == nil { 37958 yyn9 = true 37959 goto LABEL9 37960 } 37961 LABEL9: 37962 if yyr2 || yy2arr2 { 37963 if yyn9 { 37964 r.WriteArrayElem() 37965 r.EncodeNil() 37966 } else { 37967 r.WriteArrayElem() 37968 if x.EnforcePriorVersion == nil { 37969 r.EncodeNil() 37970 } else { 37971 yy10 := *x.EnforcePriorVersion 37972 if false { 37973 } else { 37974 r.EncodeUint(uint64(yy10)) 37975 } 37976 } 37977 } 37978 } else { 37979 r.WriteMapElemKey() 37980 if z.IsJSONHandle() { 37981 z.WriteStr("\"EnforcePriorVersion\"") 37982 } else { 37983 r.EncodeStringEnc(codecSelferCcUTF8100, `EnforcePriorVersion`) 37984 } 37985 r.WriteMapElemValue() 37986 if yyn9 { 37987 r.EncodeNil() 37988 } else { 37989 if x.EnforcePriorVersion == nil { 37990 r.EncodeNil() 37991 } else { 37992 yy12 := *x.EnforcePriorVersion 37993 if false { 37994 } else { 37995 r.EncodeUint(uint64(yy12)) 37996 } 37997 } 37998 } 37999 } 38000 if yyr2 || yy2arr2 { 38001 r.WriteArrayElem() 38002 if false { 38003 } else { 38004 if z.EncBasicHandle().StringToRaw { 38005 r.EncodeStringBytesRaw(z.BytesView(string(x.ConsulToken))) 38006 } else { 38007 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ConsulToken)) 38008 } 38009 } 38010 } else { 38011 r.WriteMapElemKey() 38012 if z.IsJSONHandle() { 38013 z.WriteStr("\"ConsulToken\"") 38014 } else { 38015 r.EncodeStringEnc(codecSelferCcUTF8100, `ConsulToken`) 38016 } 38017 r.WriteMapElemValue() 38018 if false { 38019 } else { 38020 if z.EncBasicHandle().StringToRaw { 38021 r.EncodeStringBytesRaw(z.BytesView(string(x.ConsulToken))) 38022 } else { 38023 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ConsulToken)) 38024 } 38025 } 38026 } 38027 if yyr2 || yy2arr2 { 38028 r.WriteArrayElem() 38029 if false { 38030 } else { 38031 if z.EncBasicHandle().StringToRaw { 38032 r.EncodeStringBytesRaw(z.BytesView(string(x.VaultToken))) 38033 } else { 38034 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultToken)) 38035 } 38036 } 38037 } else { 38038 r.WriteMapElemKey() 38039 if z.IsJSONHandle() { 38040 z.WriteStr("\"VaultToken\"") 38041 } else { 38042 r.EncodeStringEnc(codecSelferCcUTF8100, `VaultToken`) 38043 } 38044 r.WriteMapElemValue() 38045 if false { 38046 } else { 38047 if z.EncBasicHandle().StringToRaw { 38048 r.EncodeStringBytesRaw(z.BytesView(string(x.VaultToken))) 38049 } else { 38050 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultToken)) 38051 } 38052 } 38053 } 38054 if yyr2 || yy2arr2 { 38055 r.WriteArrayElem() 38056 if false { 38057 } else { 38058 if z.EncBasicHandle().StringToRaw { 38059 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 38060 } else { 38061 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 38062 } 38063 } 38064 } else { 38065 r.WriteMapElemKey() 38066 if z.IsJSONHandle() { 38067 z.WriteStr("\"Region\"") 38068 } else { 38069 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 38070 } 38071 r.WriteMapElemValue() 38072 if false { 38073 } else { 38074 if z.EncBasicHandle().StringToRaw { 38075 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 38076 } else { 38077 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 38078 } 38079 } 38080 } 38081 if yyr2 || yy2arr2 { 38082 r.WriteArrayElem() 38083 if false { 38084 } else { 38085 if z.EncBasicHandle().StringToRaw { 38086 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 38087 } else { 38088 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 38089 } 38090 } 38091 } else { 38092 r.WriteMapElemKey() 38093 if z.IsJSONHandle() { 38094 z.WriteStr("\"Namespace\"") 38095 } else { 38096 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 38097 } 38098 r.WriteMapElemValue() 38099 if false { 38100 } else { 38101 if z.EncBasicHandle().StringToRaw { 38102 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 38103 } else { 38104 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 38105 } 38106 } 38107 } 38108 if yyr2 || yy2arr2 { 38109 r.WriteArrayElem() 38110 if false { 38111 } else { 38112 if z.EncBasicHandle().StringToRaw { 38113 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 38114 } else { 38115 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 38116 } 38117 } 38118 } else { 38119 r.WriteMapElemKey() 38120 if z.IsJSONHandle() { 38121 z.WriteStr("\"AuthToken\"") 38122 } else { 38123 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 38124 } 38125 r.WriteMapElemValue() 38126 if false { 38127 } else { 38128 if z.EncBasicHandle().StringToRaw { 38129 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 38130 } else { 38131 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 38132 } 38133 } 38134 } 38135 if yyr2 || yy2arr2 { 38136 r.WriteArrayElem() 38137 if false { 38138 } else { 38139 r.EncodeBool(bool(x.Forwarded)) 38140 } 38141 } else { 38142 r.WriteMapElemKey() 38143 if z.IsJSONHandle() { 38144 z.WriteStr("\"Forwarded\"") 38145 } else { 38146 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 38147 } 38148 r.WriteMapElemValue() 38149 if false { 38150 } else { 38151 r.EncodeBool(bool(x.Forwarded)) 38152 } 38153 } 38154 if yyr2 || yy2arr2 { 38155 r.WriteArrayEnd() 38156 } else { 38157 r.WriteMapEnd() 38158 } 38159 } 38160 } 38161 } 38162 38163 func (x *JobRevertRequest) CodecDecodeSelf(d *codec1978.Decoder) { 38164 var h codecSelfer100 38165 z, r := codec1978.GenHelperDecoder(d) 38166 _, _, _ = h, z, r 38167 if false { 38168 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 38169 z.DecExtension(x, yyxt1) 38170 } else { 38171 yyct2 := r.ContainerType() 38172 if yyct2 == codecSelferValueTypeMap100 { 38173 yyl2 := r.ReadMapStart() 38174 if yyl2 == 0 { 38175 r.ReadMapEnd() 38176 } else { 38177 x.codecDecodeSelfFromMap(yyl2, d) 38178 } 38179 } else if yyct2 == codecSelferValueTypeArray100 { 38180 yyl2 := r.ReadArrayStart() 38181 if yyl2 == 0 { 38182 r.ReadArrayEnd() 38183 } else { 38184 x.codecDecodeSelfFromArray(yyl2, d) 38185 } 38186 } else { 38187 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 38188 } 38189 } 38190 } 38191 38192 func (x *JobRevertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 38193 var h codecSelfer100 38194 z, r := codec1978.GenHelperDecoder(d) 38195 _, _, _ = h, z, r 38196 var yyhl3 bool = l >= 0 38197 for yyj3 := 0; ; yyj3++ { 38198 if yyhl3 { 38199 if yyj3 >= l { 38200 break 38201 } 38202 } else { 38203 if r.CheckBreak() { 38204 break 38205 } 38206 } 38207 r.ReadMapElemKey() 38208 yys3 := z.StringView(r.DecodeStringAsBytes()) 38209 r.ReadMapElemValue() 38210 switch yys3 { 38211 case "JobID": 38212 if r.TryDecodeAsNil() { 38213 x.JobID = "" 38214 } else { 38215 x.JobID = (string)(r.DecodeString()) 38216 } 38217 case "JobVersion": 38218 if r.TryDecodeAsNil() { 38219 x.JobVersion = 0 38220 } else { 38221 x.JobVersion = (uint64)(r.DecodeUint64()) 38222 } 38223 case "EnforcePriorVersion": 38224 if r.TryDecodeAsNil() { 38225 if true && x.EnforcePriorVersion != nil { 38226 x.EnforcePriorVersion = nil 38227 } 38228 } else { 38229 if x.EnforcePriorVersion == nil { 38230 x.EnforcePriorVersion = new(uint64) 38231 } 38232 38233 if false { 38234 } else { 38235 *x.EnforcePriorVersion = (uint64)(r.DecodeUint64()) 38236 } 38237 } 38238 case "ConsulToken": 38239 if r.TryDecodeAsNil() { 38240 x.ConsulToken = "" 38241 } else { 38242 x.ConsulToken = (string)(r.DecodeString()) 38243 } 38244 case "VaultToken": 38245 if r.TryDecodeAsNil() { 38246 x.VaultToken = "" 38247 } else { 38248 x.VaultToken = (string)(r.DecodeString()) 38249 } 38250 case "Region": 38251 if r.TryDecodeAsNil() { 38252 x.WriteRequest.Region = "" 38253 } else { 38254 x.Region = (string)(r.DecodeString()) 38255 } 38256 case "Namespace": 38257 if r.TryDecodeAsNil() { 38258 x.WriteRequest.Namespace = "" 38259 } else { 38260 x.Namespace = (string)(r.DecodeString()) 38261 } 38262 case "AuthToken": 38263 if r.TryDecodeAsNil() { 38264 x.WriteRequest.AuthToken = "" 38265 } else { 38266 x.AuthToken = (string)(r.DecodeString()) 38267 } 38268 case "Forwarded": 38269 if r.TryDecodeAsNil() { 38270 x.WriteRequest.InternalRpcInfo.Forwarded = false 38271 } else { 38272 x.Forwarded = (bool)(r.DecodeBool()) 38273 } 38274 default: 38275 z.DecStructFieldNotFound(-1, yys3) 38276 } // end switch yys3 38277 } // end for yyj3 38278 r.ReadMapEnd() 38279 } 38280 38281 func (x *JobRevertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 38282 var h codecSelfer100 38283 z, r := codec1978.GenHelperDecoder(d) 38284 _, _, _ = h, z, r 38285 var yyj14 int 38286 var yyb14 bool 38287 var yyhl14 bool = l >= 0 38288 yyj14++ 38289 if yyhl14 { 38290 yyb14 = yyj14 > l 38291 } else { 38292 yyb14 = r.CheckBreak() 38293 } 38294 if yyb14 { 38295 r.ReadArrayEnd() 38296 return 38297 } 38298 r.ReadArrayElem() 38299 if r.TryDecodeAsNil() { 38300 x.JobID = "" 38301 } else { 38302 x.JobID = (string)(r.DecodeString()) 38303 } 38304 yyj14++ 38305 if yyhl14 { 38306 yyb14 = yyj14 > l 38307 } else { 38308 yyb14 = r.CheckBreak() 38309 } 38310 if yyb14 { 38311 r.ReadArrayEnd() 38312 return 38313 } 38314 r.ReadArrayElem() 38315 if r.TryDecodeAsNil() { 38316 x.JobVersion = 0 38317 } else { 38318 x.JobVersion = (uint64)(r.DecodeUint64()) 38319 } 38320 yyj14++ 38321 if yyhl14 { 38322 yyb14 = yyj14 > l 38323 } else { 38324 yyb14 = r.CheckBreak() 38325 } 38326 if yyb14 { 38327 r.ReadArrayEnd() 38328 return 38329 } 38330 r.ReadArrayElem() 38331 if r.TryDecodeAsNil() { 38332 if true && x.EnforcePriorVersion != nil { 38333 x.EnforcePriorVersion = nil 38334 } 38335 } else { 38336 if x.EnforcePriorVersion == nil { 38337 x.EnforcePriorVersion = new(uint64) 38338 } 38339 38340 if false { 38341 } else { 38342 *x.EnforcePriorVersion = (uint64)(r.DecodeUint64()) 38343 } 38344 } 38345 yyj14++ 38346 if yyhl14 { 38347 yyb14 = yyj14 > l 38348 } else { 38349 yyb14 = r.CheckBreak() 38350 } 38351 if yyb14 { 38352 r.ReadArrayEnd() 38353 return 38354 } 38355 r.ReadArrayElem() 38356 if r.TryDecodeAsNil() { 38357 x.ConsulToken = "" 38358 } else { 38359 x.ConsulToken = (string)(r.DecodeString()) 38360 } 38361 yyj14++ 38362 if yyhl14 { 38363 yyb14 = yyj14 > l 38364 } else { 38365 yyb14 = r.CheckBreak() 38366 } 38367 if yyb14 { 38368 r.ReadArrayEnd() 38369 return 38370 } 38371 r.ReadArrayElem() 38372 if r.TryDecodeAsNil() { 38373 x.VaultToken = "" 38374 } else { 38375 x.VaultToken = (string)(r.DecodeString()) 38376 } 38377 yyj14++ 38378 if yyhl14 { 38379 yyb14 = yyj14 > l 38380 } else { 38381 yyb14 = r.CheckBreak() 38382 } 38383 if yyb14 { 38384 r.ReadArrayEnd() 38385 return 38386 } 38387 r.ReadArrayElem() 38388 if r.TryDecodeAsNil() { 38389 x.WriteRequest.Region = "" 38390 } else { 38391 x.Region = (string)(r.DecodeString()) 38392 } 38393 yyj14++ 38394 if yyhl14 { 38395 yyb14 = yyj14 > l 38396 } else { 38397 yyb14 = r.CheckBreak() 38398 } 38399 if yyb14 { 38400 r.ReadArrayEnd() 38401 return 38402 } 38403 r.ReadArrayElem() 38404 if r.TryDecodeAsNil() { 38405 x.WriteRequest.Namespace = "" 38406 } else { 38407 x.Namespace = (string)(r.DecodeString()) 38408 } 38409 yyj14++ 38410 if yyhl14 { 38411 yyb14 = yyj14 > l 38412 } else { 38413 yyb14 = r.CheckBreak() 38414 } 38415 if yyb14 { 38416 r.ReadArrayEnd() 38417 return 38418 } 38419 r.ReadArrayElem() 38420 if r.TryDecodeAsNil() { 38421 x.WriteRequest.AuthToken = "" 38422 } else { 38423 x.AuthToken = (string)(r.DecodeString()) 38424 } 38425 yyj14++ 38426 if yyhl14 { 38427 yyb14 = yyj14 > l 38428 } else { 38429 yyb14 = r.CheckBreak() 38430 } 38431 if yyb14 { 38432 r.ReadArrayEnd() 38433 return 38434 } 38435 r.ReadArrayElem() 38436 if r.TryDecodeAsNil() { 38437 x.WriteRequest.InternalRpcInfo.Forwarded = false 38438 } else { 38439 x.Forwarded = (bool)(r.DecodeBool()) 38440 } 38441 for { 38442 yyj14++ 38443 if yyhl14 { 38444 yyb14 = yyj14 > l 38445 } else { 38446 yyb14 = r.CheckBreak() 38447 } 38448 if yyb14 { 38449 break 38450 } 38451 r.ReadArrayElem() 38452 z.DecStructFieldNotFound(yyj14-1, "") 38453 } 38454 r.ReadArrayEnd() 38455 } 38456 38457 func (x *JobStabilityRequest) CodecEncodeSelf(e *codec1978.Encoder) { 38458 var h codecSelfer100 38459 z, r := codec1978.GenHelperEncoder(e) 38460 _, _, _ = h, z, r 38461 if x == nil { 38462 r.EncodeNil() 38463 } else { 38464 if false { 38465 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 38466 z.EncExtension(x, yyxt1) 38467 } else { 38468 yysep2 := !z.EncBinary() 38469 yy2arr2 := z.EncBasicHandle().StructToArray 38470 _, _ = yysep2, yy2arr2 38471 const yyr2 bool = false // struct tag has 'toArray' 38472 if yyr2 || yy2arr2 { 38473 r.WriteArrayStart(7) 38474 } else { 38475 r.WriteMapStart(7) 38476 } 38477 if yyr2 || yy2arr2 { 38478 r.WriteArrayElem() 38479 if false { 38480 } else { 38481 if z.EncBasicHandle().StringToRaw { 38482 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 38483 } else { 38484 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 38485 } 38486 } 38487 } else { 38488 r.WriteMapElemKey() 38489 if z.IsJSONHandle() { 38490 z.WriteStr("\"JobID\"") 38491 } else { 38492 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 38493 } 38494 r.WriteMapElemValue() 38495 if false { 38496 } else { 38497 if z.EncBasicHandle().StringToRaw { 38498 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 38499 } else { 38500 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 38501 } 38502 } 38503 } 38504 if yyr2 || yy2arr2 { 38505 r.WriteArrayElem() 38506 if false { 38507 } else { 38508 r.EncodeUint(uint64(x.JobVersion)) 38509 } 38510 } else { 38511 r.WriteMapElemKey() 38512 if z.IsJSONHandle() { 38513 z.WriteStr("\"JobVersion\"") 38514 } else { 38515 r.EncodeStringEnc(codecSelferCcUTF8100, `JobVersion`) 38516 } 38517 r.WriteMapElemValue() 38518 if false { 38519 } else { 38520 r.EncodeUint(uint64(x.JobVersion)) 38521 } 38522 } 38523 if yyr2 || yy2arr2 { 38524 r.WriteArrayElem() 38525 if false { 38526 } else { 38527 r.EncodeBool(bool(x.Stable)) 38528 } 38529 } else { 38530 r.WriteMapElemKey() 38531 if z.IsJSONHandle() { 38532 z.WriteStr("\"Stable\"") 38533 } else { 38534 r.EncodeStringEnc(codecSelferCcUTF8100, `Stable`) 38535 } 38536 r.WriteMapElemValue() 38537 if false { 38538 } else { 38539 r.EncodeBool(bool(x.Stable)) 38540 } 38541 } 38542 if yyr2 || yy2arr2 { 38543 r.WriteArrayElem() 38544 if false { 38545 } else { 38546 if z.EncBasicHandle().StringToRaw { 38547 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 38548 } else { 38549 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 38550 } 38551 } 38552 } else { 38553 r.WriteMapElemKey() 38554 if z.IsJSONHandle() { 38555 z.WriteStr("\"Region\"") 38556 } else { 38557 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 38558 } 38559 r.WriteMapElemValue() 38560 if false { 38561 } else { 38562 if z.EncBasicHandle().StringToRaw { 38563 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 38564 } else { 38565 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 38566 } 38567 } 38568 } 38569 if yyr2 || yy2arr2 { 38570 r.WriteArrayElem() 38571 if false { 38572 } else { 38573 if z.EncBasicHandle().StringToRaw { 38574 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 38575 } else { 38576 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 38577 } 38578 } 38579 } else { 38580 r.WriteMapElemKey() 38581 if z.IsJSONHandle() { 38582 z.WriteStr("\"Namespace\"") 38583 } else { 38584 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 38585 } 38586 r.WriteMapElemValue() 38587 if false { 38588 } else { 38589 if z.EncBasicHandle().StringToRaw { 38590 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 38591 } else { 38592 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 38593 } 38594 } 38595 } 38596 if yyr2 || yy2arr2 { 38597 r.WriteArrayElem() 38598 if false { 38599 } else { 38600 if z.EncBasicHandle().StringToRaw { 38601 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 38602 } else { 38603 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 38604 } 38605 } 38606 } else { 38607 r.WriteMapElemKey() 38608 if z.IsJSONHandle() { 38609 z.WriteStr("\"AuthToken\"") 38610 } else { 38611 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 38612 } 38613 r.WriteMapElemValue() 38614 if false { 38615 } else { 38616 if z.EncBasicHandle().StringToRaw { 38617 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 38618 } else { 38619 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 38620 } 38621 } 38622 } 38623 if yyr2 || yy2arr2 { 38624 r.WriteArrayElem() 38625 if false { 38626 } else { 38627 r.EncodeBool(bool(x.Forwarded)) 38628 } 38629 } else { 38630 r.WriteMapElemKey() 38631 if z.IsJSONHandle() { 38632 z.WriteStr("\"Forwarded\"") 38633 } else { 38634 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 38635 } 38636 r.WriteMapElemValue() 38637 if false { 38638 } else { 38639 r.EncodeBool(bool(x.Forwarded)) 38640 } 38641 } 38642 if yyr2 || yy2arr2 { 38643 r.WriteArrayEnd() 38644 } else { 38645 r.WriteMapEnd() 38646 } 38647 } 38648 } 38649 } 38650 38651 func (x *JobStabilityRequest) CodecDecodeSelf(d *codec1978.Decoder) { 38652 var h codecSelfer100 38653 z, r := codec1978.GenHelperDecoder(d) 38654 _, _, _ = h, z, r 38655 if false { 38656 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 38657 z.DecExtension(x, yyxt1) 38658 } else { 38659 yyct2 := r.ContainerType() 38660 if yyct2 == codecSelferValueTypeMap100 { 38661 yyl2 := r.ReadMapStart() 38662 if yyl2 == 0 { 38663 r.ReadMapEnd() 38664 } else { 38665 x.codecDecodeSelfFromMap(yyl2, d) 38666 } 38667 } else if yyct2 == codecSelferValueTypeArray100 { 38668 yyl2 := r.ReadArrayStart() 38669 if yyl2 == 0 { 38670 r.ReadArrayEnd() 38671 } else { 38672 x.codecDecodeSelfFromArray(yyl2, d) 38673 } 38674 } else { 38675 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 38676 } 38677 } 38678 } 38679 38680 func (x *JobStabilityRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 38681 var h codecSelfer100 38682 z, r := codec1978.GenHelperDecoder(d) 38683 _, _, _ = h, z, r 38684 var yyhl3 bool = l >= 0 38685 for yyj3 := 0; ; yyj3++ { 38686 if yyhl3 { 38687 if yyj3 >= l { 38688 break 38689 } 38690 } else { 38691 if r.CheckBreak() { 38692 break 38693 } 38694 } 38695 r.ReadMapElemKey() 38696 yys3 := z.StringView(r.DecodeStringAsBytes()) 38697 r.ReadMapElemValue() 38698 switch yys3 { 38699 case "JobID": 38700 if r.TryDecodeAsNil() { 38701 x.JobID = "" 38702 } else { 38703 x.JobID = (string)(r.DecodeString()) 38704 } 38705 case "JobVersion": 38706 if r.TryDecodeAsNil() { 38707 x.JobVersion = 0 38708 } else { 38709 x.JobVersion = (uint64)(r.DecodeUint64()) 38710 } 38711 case "Stable": 38712 if r.TryDecodeAsNil() { 38713 x.Stable = false 38714 } else { 38715 x.Stable = (bool)(r.DecodeBool()) 38716 } 38717 case "Region": 38718 if r.TryDecodeAsNil() { 38719 x.WriteRequest.Region = "" 38720 } else { 38721 x.Region = (string)(r.DecodeString()) 38722 } 38723 case "Namespace": 38724 if r.TryDecodeAsNil() { 38725 x.WriteRequest.Namespace = "" 38726 } else { 38727 x.Namespace = (string)(r.DecodeString()) 38728 } 38729 case "AuthToken": 38730 if r.TryDecodeAsNil() { 38731 x.WriteRequest.AuthToken = "" 38732 } else { 38733 x.AuthToken = (string)(r.DecodeString()) 38734 } 38735 case "Forwarded": 38736 if r.TryDecodeAsNil() { 38737 x.WriteRequest.InternalRpcInfo.Forwarded = false 38738 } else { 38739 x.Forwarded = (bool)(r.DecodeBool()) 38740 } 38741 default: 38742 z.DecStructFieldNotFound(-1, yys3) 38743 } // end switch yys3 38744 } // end for yyj3 38745 r.ReadMapEnd() 38746 } 38747 38748 func (x *JobStabilityRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 38749 var h codecSelfer100 38750 z, r := codec1978.GenHelperDecoder(d) 38751 _, _, _ = h, z, r 38752 var yyj11 int 38753 var yyb11 bool 38754 var yyhl11 bool = l >= 0 38755 yyj11++ 38756 if yyhl11 { 38757 yyb11 = yyj11 > l 38758 } else { 38759 yyb11 = r.CheckBreak() 38760 } 38761 if yyb11 { 38762 r.ReadArrayEnd() 38763 return 38764 } 38765 r.ReadArrayElem() 38766 if r.TryDecodeAsNil() { 38767 x.JobID = "" 38768 } else { 38769 x.JobID = (string)(r.DecodeString()) 38770 } 38771 yyj11++ 38772 if yyhl11 { 38773 yyb11 = yyj11 > l 38774 } else { 38775 yyb11 = r.CheckBreak() 38776 } 38777 if yyb11 { 38778 r.ReadArrayEnd() 38779 return 38780 } 38781 r.ReadArrayElem() 38782 if r.TryDecodeAsNil() { 38783 x.JobVersion = 0 38784 } else { 38785 x.JobVersion = (uint64)(r.DecodeUint64()) 38786 } 38787 yyj11++ 38788 if yyhl11 { 38789 yyb11 = yyj11 > l 38790 } else { 38791 yyb11 = r.CheckBreak() 38792 } 38793 if yyb11 { 38794 r.ReadArrayEnd() 38795 return 38796 } 38797 r.ReadArrayElem() 38798 if r.TryDecodeAsNil() { 38799 x.Stable = false 38800 } else { 38801 x.Stable = (bool)(r.DecodeBool()) 38802 } 38803 yyj11++ 38804 if yyhl11 { 38805 yyb11 = yyj11 > l 38806 } else { 38807 yyb11 = r.CheckBreak() 38808 } 38809 if yyb11 { 38810 r.ReadArrayEnd() 38811 return 38812 } 38813 r.ReadArrayElem() 38814 if r.TryDecodeAsNil() { 38815 x.WriteRequest.Region = "" 38816 } else { 38817 x.Region = (string)(r.DecodeString()) 38818 } 38819 yyj11++ 38820 if yyhl11 { 38821 yyb11 = yyj11 > l 38822 } else { 38823 yyb11 = r.CheckBreak() 38824 } 38825 if yyb11 { 38826 r.ReadArrayEnd() 38827 return 38828 } 38829 r.ReadArrayElem() 38830 if r.TryDecodeAsNil() { 38831 x.WriteRequest.Namespace = "" 38832 } else { 38833 x.Namespace = (string)(r.DecodeString()) 38834 } 38835 yyj11++ 38836 if yyhl11 { 38837 yyb11 = yyj11 > l 38838 } else { 38839 yyb11 = r.CheckBreak() 38840 } 38841 if yyb11 { 38842 r.ReadArrayEnd() 38843 return 38844 } 38845 r.ReadArrayElem() 38846 if r.TryDecodeAsNil() { 38847 x.WriteRequest.AuthToken = "" 38848 } else { 38849 x.AuthToken = (string)(r.DecodeString()) 38850 } 38851 yyj11++ 38852 if yyhl11 { 38853 yyb11 = yyj11 > l 38854 } else { 38855 yyb11 = r.CheckBreak() 38856 } 38857 if yyb11 { 38858 r.ReadArrayEnd() 38859 return 38860 } 38861 r.ReadArrayElem() 38862 if r.TryDecodeAsNil() { 38863 x.WriteRequest.InternalRpcInfo.Forwarded = false 38864 } else { 38865 x.Forwarded = (bool)(r.DecodeBool()) 38866 } 38867 for { 38868 yyj11++ 38869 if yyhl11 { 38870 yyb11 = yyj11 > l 38871 } else { 38872 yyb11 = r.CheckBreak() 38873 } 38874 if yyb11 { 38875 break 38876 } 38877 r.ReadArrayElem() 38878 z.DecStructFieldNotFound(yyj11-1, "") 38879 } 38880 r.ReadArrayEnd() 38881 } 38882 38883 func (x *JobStabilityResponse) CodecEncodeSelf(e *codec1978.Encoder) { 38884 var h codecSelfer100 38885 z, r := codec1978.GenHelperEncoder(e) 38886 _, _, _ = h, z, r 38887 if x == nil { 38888 r.EncodeNil() 38889 } else { 38890 if false { 38891 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 38892 z.EncExtension(x, yyxt1) 38893 } else { 38894 yysep2 := !z.EncBinary() 38895 yy2arr2 := z.EncBasicHandle().StructToArray 38896 _, _ = yysep2, yy2arr2 38897 const yyr2 bool = false // struct tag has 'toArray' 38898 if yyr2 || yy2arr2 { 38899 r.WriteArrayStart(1) 38900 } else { 38901 r.WriteMapStart(1) 38902 } 38903 if yyr2 || yy2arr2 { 38904 r.WriteArrayElem() 38905 if false { 38906 } else { 38907 r.EncodeUint(uint64(x.Index)) 38908 } 38909 } else { 38910 r.WriteMapElemKey() 38911 if z.IsJSONHandle() { 38912 z.WriteStr("\"Index\"") 38913 } else { 38914 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 38915 } 38916 r.WriteMapElemValue() 38917 if false { 38918 } else { 38919 r.EncodeUint(uint64(x.Index)) 38920 } 38921 } 38922 if yyr2 || yy2arr2 { 38923 r.WriteArrayEnd() 38924 } else { 38925 r.WriteMapEnd() 38926 } 38927 } 38928 } 38929 } 38930 38931 func (x *JobStabilityResponse) CodecDecodeSelf(d *codec1978.Decoder) { 38932 var h codecSelfer100 38933 z, r := codec1978.GenHelperDecoder(d) 38934 _, _, _ = h, z, r 38935 if false { 38936 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 38937 z.DecExtension(x, yyxt1) 38938 } else { 38939 yyct2 := r.ContainerType() 38940 if yyct2 == codecSelferValueTypeMap100 { 38941 yyl2 := r.ReadMapStart() 38942 if yyl2 == 0 { 38943 r.ReadMapEnd() 38944 } else { 38945 x.codecDecodeSelfFromMap(yyl2, d) 38946 } 38947 } else if yyct2 == codecSelferValueTypeArray100 { 38948 yyl2 := r.ReadArrayStart() 38949 if yyl2 == 0 { 38950 r.ReadArrayEnd() 38951 } else { 38952 x.codecDecodeSelfFromArray(yyl2, d) 38953 } 38954 } else { 38955 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 38956 } 38957 } 38958 } 38959 38960 func (x *JobStabilityResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 38961 var h codecSelfer100 38962 z, r := codec1978.GenHelperDecoder(d) 38963 _, _, _ = h, z, r 38964 var yyhl3 bool = l >= 0 38965 for yyj3 := 0; ; yyj3++ { 38966 if yyhl3 { 38967 if yyj3 >= l { 38968 break 38969 } 38970 } else { 38971 if r.CheckBreak() { 38972 break 38973 } 38974 } 38975 r.ReadMapElemKey() 38976 yys3 := z.StringView(r.DecodeStringAsBytes()) 38977 r.ReadMapElemValue() 38978 switch yys3 { 38979 case "Index": 38980 if r.TryDecodeAsNil() { 38981 x.WriteMeta.Index = 0 38982 } else { 38983 x.Index = (uint64)(r.DecodeUint64()) 38984 } 38985 default: 38986 z.DecStructFieldNotFound(-1, yys3) 38987 } // end switch yys3 38988 } // end for yyj3 38989 r.ReadMapEnd() 38990 } 38991 38992 func (x *JobStabilityResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 38993 var h codecSelfer100 38994 z, r := codec1978.GenHelperDecoder(d) 38995 _, _, _ = h, z, r 38996 var yyj5 int 38997 var yyb5 bool 38998 var yyhl5 bool = l >= 0 38999 yyj5++ 39000 if yyhl5 { 39001 yyb5 = yyj5 > l 39002 } else { 39003 yyb5 = r.CheckBreak() 39004 } 39005 if yyb5 { 39006 r.ReadArrayEnd() 39007 return 39008 } 39009 r.ReadArrayElem() 39010 if r.TryDecodeAsNil() { 39011 x.WriteMeta.Index = 0 39012 } else { 39013 x.Index = (uint64)(r.DecodeUint64()) 39014 } 39015 for { 39016 yyj5++ 39017 if yyhl5 { 39018 yyb5 = yyj5 > l 39019 } else { 39020 yyb5 = r.CheckBreak() 39021 } 39022 if yyb5 { 39023 break 39024 } 39025 r.ReadArrayElem() 39026 z.DecStructFieldNotFound(yyj5-1, "") 39027 } 39028 r.ReadArrayEnd() 39029 } 39030 39031 func (x *NodeListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 39032 var h codecSelfer100 39033 z, r := codec1978.GenHelperEncoder(e) 39034 _, _, _ = h, z, r 39035 if x == nil { 39036 r.EncodeNil() 39037 } else { 39038 if false { 39039 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 39040 z.EncExtension(x, yyxt1) 39041 } else { 39042 yysep2 := !z.EncBinary() 39043 yy2arr2 := z.EncBasicHandle().StructToArray 39044 _, _ = yysep2, yy2arr2 39045 const yyr2 bool = false // struct tag has 'toArray' 39046 if yyr2 || yy2arr2 { 39047 r.WriteArrayStart(8) 39048 } else { 39049 r.WriteMapStart(8) 39050 } 39051 if yyr2 || yy2arr2 { 39052 r.WriteArrayElem() 39053 if false { 39054 } else { 39055 if z.EncBasicHandle().StringToRaw { 39056 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 39057 } else { 39058 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 39059 } 39060 } 39061 } else { 39062 r.WriteMapElemKey() 39063 if z.IsJSONHandle() { 39064 z.WriteStr("\"Region\"") 39065 } else { 39066 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 39067 } 39068 r.WriteMapElemValue() 39069 if false { 39070 } else { 39071 if z.EncBasicHandle().StringToRaw { 39072 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 39073 } else { 39074 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 39075 } 39076 } 39077 } 39078 if yyr2 || yy2arr2 { 39079 r.WriteArrayElem() 39080 if false { 39081 } else { 39082 if z.EncBasicHandle().StringToRaw { 39083 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 39084 } else { 39085 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 39086 } 39087 } 39088 } else { 39089 r.WriteMapElemKey() 39090 if z.IsJSONHandle() { 39091 z.WriteStr("\"Namespace\"") 39092 } else { 39093 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 39094 } 39095 r.WriteMapElemValue() 39096 if false { 39097 } else { 39098 if z.EncBasicHandle().StringToRaw { 39099 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 39100 } else { 39101 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 39102 } 39103 } 39104 } 39105 if yyr2 || yy2arr2 { 39106 r.WriteArrayElem() 39107 if false { 39108 } else { 39109 r.EncodeUint(uint64(x.MinQueryIndex)) 39110 } 39111 } else { 39112 r.WriteMapElemKey() 39113 if z.IsJSONHandle() { 39114 z.WriteStr("\"MinQueryIndex\"") 39115 } else { 39116 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 39117 } 39118 r.WriteMapElemValue() 39119 if false { 39120 } else { 39121 r.EncodeUint(uint64(x.MinQueryIndex)) 39122 } 39123 } 39124 if yyr2 || yy2arr2 { 39125 r.WriteArrayElem() 39126 if false { 39127 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 39128 z.EncExtension(x.MaxQueryTime, yyxt13) 39129 } else { 39130 r.EncodeInt(int64(x.MaxQueryTime)) 39131 } 39132 } else { 39133 r.WriteMapElemKey() 39134 if z.IsJSONHandle() { 39135 z.WriteStr("\"MaxQueryTime\"") 39136 } else { 39137 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 39138 } 39139 r.WriteMapElemValue() 39140 if false { 39141 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 39142 z.EncExtension(x.MaxQueryTime, yyxt14) 39143 } else { 39144 r.EncodeInt(int64(x.MaxQueryTime)) 39145 } 39146 } 39147 if yyr2 || yy2arr2 { 39148 r.WriteArrayElem() 39149 if false { 39150 } else { 39151 r.EncodeBool(bool(x.AllowStale)) 39152 } 39153 } else { 39154 r.WriteMapElemKey() 39155 if z.IsJSONHandle() { 39156 z.WriteStr("\"AllowStale\"") 39157 } else { 39158 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 39159 } 39160 r.WriteMapElemValue() 39161 if false { 39162 } else { 39163 r.EncodeBool(bool(x.AllowStale)) 39164 } 39165 } 39166 if yyr2 || yy2arr2 { 39167 r.WriteArrayElem() 39168 if false { 39169 } else { 39170 if z.EncBasicHandle().StringToRaw { 39171 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 39172 } else { 39173 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 39174 } 39175 } 39176 } else { 39177 r.WriteMapElemKey() 39178 if z.IsJSONHandle() { 39179 z.WriteStr("\"Prefix\"") 39180 } else { 39181 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 39182 } 39183 r.WriteMapElemValue() 39184 if false { 39185 } else { 39186 if z.EncBasicHandle().StringToRaw { 39187 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 39188 } else { 39189 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 39190 } 39191 } 39192 } 39193 if yyr2 || yy2arr2 { 39194 r.WriteArrayElem() 39195 if false { 39196 } else { 39197 if z.EncBasicHandle().StringToRaw { 39198 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 39199 } else { 39200 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 39201 } 39202 } 39203 } else { 39204 r.WriteMapElemKey() 39205 if z.IsJSONHandle() { 39206 z.WriteStr("\"AuthToken\"") 39207 } else { 39208 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 39209 } 39210 r.WriteMapElemValue() 39211 if false { 39212 } else { 39213 if z.EncBasicHandle().StringToRaw { 39214 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 39215 } else { 39216 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 39217 } 39218 } 39219 } 39220 if yyr2 || yy2arr2 { 39221 r.WriteArrayElem() 39222 if false { 39223 } else { 39224 r.EncodeBool(bool(x.Forwarded)) 39225 } 39226 } else { 39227 r.WriteMapElemKey() 39228 if z.IsJSONHandle() { 39229 z.WriteStr("\"Forwarded\"") 39230 } else { 39231 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 39232 } 39233 r.WriteMapElemValue() 39234 if false { 39235 } else { 39236 r.EncodeBool(bool(x.Forwarded)) 39237 } 39238 } 39239 if yyr2 || yy2arr2 { 39240 r.WriteArrayEnd() 39241 } else { 39242 r.WriteMapEnd() 39243 } 39244 } 39245 } 39246 } 39247 39248 func (x *NodeListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 39249 var h codecSelfer100 39250 z, r := codec1978.GenHelperDecoder(d) 39251 _, _, _ = h, z, r 39252 if false { 39253 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 39254 z.DecExtension(x, yyxt1) 39255 } else { 39256 yyct2 := r.ContainerType() 39257 if yyct2 == codecSelferValueTypeMap100 { 39258 yyl2 := r.ReadMapStart() 39259 if yyl2 == 0 { 39260 r.ReadMapEnd() 39261 } else { 39262 x.codecDecodeSelfFromMap(yyl2, d) 39263 } 39264 } else if yyct2 == codecSelferValueTypeArray100 { 39265 yyl2 := r.ReadArrayStart() 39266 if yyl2 == 0 { 39267 r.ReadArrayEnd() 39268 } else { 39269 x.codecDecodeSelfFromArray(yyl2, d) 39270 } 39271 } else { 39272 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 39273 } 39274 } 39275 } 39276 39277 func (x *NodeListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 39278 var h codecSelfer100 39279 z, r := codec1978.GenHelperDecoder(d) 39280 _, _, _ = h, z, r 39281 var yyhl3 bool = l >= 0 39282 for yyj3 := 0; ; yyj3++ { 39283 if yyhl3 { 39284 if yyj3 >= l { 39285 break 39286 } 39287 } else { 39288 if r.CheckBreak() { 39289 break 39290 } 39291 } 39292 r.ReadMapElemKey() 39293 yys3 := z.StringView(r.DecodeStringAsBytes()) 39294 r.ReadMapElemValue() 39295 switch yys3 { 39296 case "Region": 39297 if r.TryDecodeAsNil() { 39298 x.QueryOptions.Region = "" 39299 } else { 39300 x.Region = (string)(r.DecodeString()) 39301 } 39302 case "Namespace": 39303 if r.TryDecodeAsNil() { 39304 x.QueryOptions.Namespace = "" 39305 } else { 39306 x.Namespace = (string)(r.DecodeString()) 39307 } 39308 case "MinQueryIndex": 39309 if r.TryDecodeAsNil() { 39310 x.QueryOptions.MinQueryIndex = 0 39311 } else { 39312 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 39313 } 39314 case "MaxQueryTime": 39315 if r.TryDecodeAsNil() { 39316 x.QueryOptions.MaxQueryTime = 0 39317 } else { 39318 if false { 39319 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 39320 z.DecExtension(x.MaxQueryTime, yyxt8) 39321 } else { 39322 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 39323 } 39324 } 39325 case "AllowStale": 39326 if r.TryDecodeAsNil() { 39327 x.QueryOptions.AllowStale = false 39328 } else { 39329 x.AllowStale = (bool)(r.DecodeBool()) 39330 } 39331 case "Prefix": 39332 if r.TryDecodeAsNil() { 39333 x.QueryOptions.Prefix = "" 39334 } else { 39335 x.Prefix = (string)(r.DecodeString()) 39336 } 39337 case "AuthToken": 39338 if r.TryDecodeAsNil() { 39339 x.QueryOptions.AuthToken = "" 39340 } else { 39341 x.AuthToken = (string)(r.DecodeString()) 39342 } 39343 case "Forwarded": 39344 if r.TryDecodeAsNil() { 39345 x.QueryOptions.InternalRpcInfo.Forwarded = false 39346 } else { 39347 x.Forwarded = (bool)(r.DecodeBool()) 39348 } 39349 default: 39350 z.DecStructFieldNotFound(-1, yys3) 39351 } // end switch yys3 39352 } // end for yyj3 39353 r.ReadMapEnd() 39354 } 39355 39356 func (x *NodeListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 39357 var h codecSelfer100 39358 z, r := codec1978.GenHelperDecoder(d) 39359 _, _, _ = h, z, r 39360 var yyj13 int 39361 var yyb13 bool 39362 var yyhl13 bool = l >= 0 39363 yyj13++ 39364 if yyhl13 { 39365 yyb13 = yyj13 > l 39366 } else { 39367 yyb13 = r.CheckBreak() 39368 } 39369 if yyb13 { 39370 r.ReadArrayEnd() 39371 return 39372 } 39373 r.ReadArrayElem() 39374 if r.TryDecodeAsNil() { 39375 x.QueryOptions.Region = "" 39376 } else { 39377 x.Region = (string)(r.DecodeString()) 39378 } 39379 yyj13++ 39380 if yyhl13 { 39381 yyb13 = yyj13 > l 39382 } else { 39383 yyb13 = r.CheckBreak() 39384 } 39385 if yyb13 { 39386 r.ReadArrayEnd() 39387 return 39388 } 39389 r.ReadArrayElem() 39390 if r.TryDecodeAsNil() { 39391 x.QueryOptions.Namespace = "" 39392 } else { 39393 x.Namespace = (string)(r.DecodeString()) 39394 } 39395 yyj13++ 39396 if yyhl13 { 39397 yyb13 = yyj13 > l 39398 } else { 39399 yyb13 = r.CheckBreak() 39400 } 39401 if yyb13 { 39402 r.ReadArrayEnd() 39403 return 39404 } 39405 r.ReadArrayElem() 39406 if r.TryDecodeAsNil() { 39407 x.QueryOptions.MinQueryIndex = 0 39408 } else { 39409 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 39410 } 39411 yyj13++ 39412 if yyhl13 { 39413 yyb13 = yyj13 > l 39414 } else { 39415 yyb13 = r.CheckBreak() 39416 } 39417 if yyb13 { 39418 r.ReadArrayEnd() 39419 return 39420 } 39421 r.ReadArrayElem() 39422 if r.TryDecodeAsNil() { 39423 x.QueryOptions.MaxQueryTime = 0 39424 } else { 39425 if false { 39426 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 39427 z.DecExtension(x.MaxQueryTime, yyxt18) 39428 } else { 39429 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 39430 } 39431 } 39432 yyj13++ 39433 if yyhl13 { 39434 yyb13 = yyj13 > l 39435 } else { 39436 yyb13 = r.CheckBreak() 39437 } 39438 if yyb13 { 39439 r.ReadArrayEnd() 39440 return 39441 } 39442 r.ReadArrayElem() 39443 if r.TryDecodeAsNil() { 39444 x.QueryOptions.AllowStale = false 39445 } else { 39446 x.AllowStale = (bool)(r.DecodeBool()) 39447 } 39448 yyj13++ 39449 if yyhl13 { 39450 yyb13 = yyj13 > l 39451 } else { 39452 yyb13 = r.CheckBreak() 39453 } 39454 if yyb13 { 39455 r.ReadArrayEnd() 39456 return 39457 } 39458 r.ReadArrayElem() 39459 if r.TryDecodeAsNil() { 39460 x.QueryOptions.Prefix = "" 39461 } else { 39462 x.Prefix = (string)(r.DecodeString()) 39463 } 39464 yyj13++ 39465 if yyhl13 { 39466 yyb13 = yyj13 > l 39467 } else { 39468 yyb13 = r.CheckBreak() 39469 } 39470 if yyb13 { 39471 r.ReadArrayEnd() 39472 return 39473 } 39474 r.ReadArrayElem() 39475 if r.TryDecodeAsNil() { 39476 x.QueryOptions.AuthToken = "" 39477 } else { 39478 x.AuthToken = (string)(r.DecodeString()) 39479 } 39480 yyj13++ 39481 if yyhl13 { 39482 yyb13 = yyj13 > l 39483 } else { 39484 yyb13 = r.CheckBreak() 39485 } 39486 if yyb13 { 39487 r.ReadArrayEnd() 39488 return 39489 } 39490 r.ReadArrayElem() 39491 if r.TryDecodeAsNil() { 39492 x.QueryOptions.InternalRpcInfo.Forwarded = false 39493 } else { 39494 x.Forwarded = (bool)(r.DecodeBool()) 39495 } 39496 for { 39497 yyj13++ 39498 if yyhl13 { 39499 yyb13 = yyj13 > l 39500 } else { 39501 yyb13 = r.CheckBreak() 39502 } 39503 if yyb13 { 39504 break 39505 } 39506 r.ReadArrayElem() 39507 z.DecStructFieldNotFound(yyj13-1, "") 39508 } 39509 r.ReadArrayEnd() 39510 } 39511 39512 func (x *EvalUpdateRequest) CodecEncodeSelf(e *codec1978.Encoder) { 39513 var h codecSelfer100 39514 z, r := codec1978.GenHelperEncoder(e) 39515 _, _, _ = h, z, r 39516 if x == nil { 39517 r.EncodeNil() 39518 } else { 39519 if false { 39520 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 39521 z.EncExtension(x, yyxt1) 39522 } else { 39523 yysep2 := !z.EncBinary() 39524 yy2arr2 := z.EncBasicHandle().StructToArray 39525 _, _ = yysep2, yy2arr2 39526 const yyr2 bool = false // struct tag has 'toArray' 39527 if yyr2 || yy2arr2 { 39528 r.WriteArrayStart(6) 39529 } else { 39530 r.WriteMapStart(6) 39531 } 39532 if yyr2 || yy2arr2 { 39533 r.WriteArrayElem() 39534 if x.Evals == nil { 39535 r.EncodeNil() 39536 } else { 39537 if false { 39538 } else { 39539 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 39540 } 39541 } 39542 } else { 39543 r.WriteMapElemKey() 39544 if z.IsJSONHandle() { 39545 z.WriteStr("\"Evals\"") 39546 } else { 39547 r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) 39548 } 39549 r.WriteMapElemValue() 39550 if x.Evals == nil { 39551 r.EncodeNil() 39552 } else { 39553 if false { 39554 } else { 39555 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 39556 } 39557 } 39558 } 39559 if yyr2 || yy2arr2 { 39560 r.WriteArrayElem() 39561 if false { 39562 } else { 39563 if z.EncBasicHandle().StringToRaw { 39564 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalToken))) 39565 } else { 39566 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalToken)) 39567 } 39568 } 39569 } else { 39570 r.WriteMapElemKey() 39571 if z.IsJSONHandle() { 39572 z.WriteStr("\"EvalToken\"") 39573 } else { 39574 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalToken`) 39575 } 39576 r.WriteMapElemValue() 39577 if false { 39578 } else { 39579 if z.EncBasicHandle().StringToRaw { 39580 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalToken))) 39581 } else { 39582 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalToken)) 39583 } 39584 } 39585 } 39586 if yyr2 || yy2arr2 { 39587 r.WriteArrayElem() 39588 if false { 39589 } else { 39590 if z.EncBasicHandle().StringToRaw { 39591 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 39592 } else { 39593 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 39594 } 39595 } 39596 } else { 39597 r.WriteMapElemKey() 39598 if z.IsJSONHandle() { 39599 z.WriteStr("\"Region\"") 39600 } else { 39601 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 39602 } 39603 r.WriteMapElemValue() 39604 if false { 39605 } else { 39606 if z.EncBasicHandle().StringToRaw { 39607 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 39608 } else { 39609 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 39610 } 39611 } 39612 } 39613 if yyr2 || yy2arr2 { 39614 r.WriteArrayElem() 39615 if false { 39616 } else { 39617 if z.EncBasicHandle().StringToRaw { 39618 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 39619 } else { 39620 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 39621 } 39622 } 39623 } else { 39624 r.WriteMapElemKey() 39625 if z.IsJSONHandle() { 39626 z.WriteStr("\"Namespace\"") 39627 } else { 39628 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 39629 } 39630 r.WriteMapElemValue() 39631 if false { 39632 } else { 39633 if z.EncBasicHandle().StringToRaw { 39634 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 39635 } else { 39636 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 39637 } 39638 } 39639 } 39640 if yyr2 || yy2arr2 { 39641 r.WriteArrayElem() 39642 if false { 39643 } else { 39644 if z.EncBasicHandle().StringToRaw { 39645 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 39646 } else { 39647 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 39648 } 39649 } 39650 } else { 39651 r.WriteMapElemKey() 39652 if z.IsJSONHandle() { 39653 z.WriteStr("\"AuthToken\"") 39654 } else { 39655 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 39656 } 39657 r.WriteMapElemValue() 39658 if false { 39659 } else { 39660 if z.EncBasicHandle().StringToRaw { 39661 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 39662 } else { 39663 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 39664 } 39665 } 39666 } 39667 if yyr2 || yy2arr2 { 39668 r.WriteArrayElem() 39669 if false { 39670 } else { 39671 r.EncodeBool(bool(x.Forwarded)) 39672 } 39673 } else { 39674 r.WriteMapElemKey() 39675 if z.IsJSONHandle() { 39676 z.WriteStr("\"Forwarded\"") 39677 } else { 39678 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 39679 } 39680 r.WriteMapElemValue() 39681 if false { 39682 } else { 39683 r.EncodeBool(bool(x.Forwarded)) 39684 } 39685 } 39686 if yyr2 || yy2arr2 { 39687 r.WriteArrayEnd() 39688 } else { 39689 r.WriteMapEnd() 39690 } 39691 } 39692 } 39693 } 39694 39695 func (x *EvalUpdateRequest) CodecDecodeSelf(d *codec1978.Decoder) { 39696 var h codecSelfer100 39697 z, r := codec1978.GenHelperDecoder(d) 39698 _, _, _ = h, z, r 39699 if false { 39700 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 39701 z.DecExtension(x, yyxt1) 39702 } else { 39703 yyct2 := r.ContainerType() 39704 if yyct2 == codecSelferValueTypeMap100 { 39705 yyl2 := r.ReadMapStart() 39706 if yyl2 == 0 { 39707 r.ReadMapEnd() 39708 } else { 39709 x.codecDecodeSelfFromMap(yyl2, d) 39710 } 39711 } else if yyct2 == codecSelferValueTypeArray100 { 39712 yyl2 := r.ReadArrayStart() 39713 if yyl2 == 0 { 39714 r.ReadArrayEnd() 39715 } else { 39716 x.codecDecodeSelfFromArray(yyl2, d) 39717 } 39718 } else { 39719 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 39720 } 39721 } 39722 } 39723 39724 func (x *EvalUpdateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 39725 var h codecSelfer100 39726 z, r := codec1978.GenHelperDecoder(d) 39727 _, _, _ = h, z, r 39728 var yyhl3 bool = l >= 0 39729 for yyj3 := 0; ; yyj3++ { 39730 if yyhl3 { 39731 if yyj3 >= l { 39732 break 39733 } 39734 } else { 39735 if r.CheckBreak() { 39736 break 39737 } 39738 } 39739 r.ReadMapElemKey() 39740 yys3 := z.StringView(r.DecodeStringAsBytes()) 39741 r.ReadMapElemValue() 39742 switch yys3 { 39743 case "Evals": 39744 if r.TryDecodeAsNil() { 39745 x.Evals = nil 39746 } else { 39747 if false { 39748 } else { 39749 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 39750 } 39751 } 39752 case "EvalToken": 39753 if r.TryDecodeAsNil() { 39754 x.EvalToken = "" 39755 } else { 39756 x.EvalToken = (string)(r.DecodeString()) 39757 } 39758 case "Region": 39759 if r.TryDecodeAsNil() { 39760 x.WriteRequest.Region = "" 39761 } else { 39762 x.Region = (string)(r.DecodeString()) 39763 } 39764 case "Namespace": 39765 if r.TryDecodeAsNil() { 39766 x.WriteRequest.Namespace = "" 39767 } else { 39768 x.Namespace = (string)(r.DecodeString()) 39769 } 39770 case "AuthToken": 39771 if r.TryDecodeAsNil() { 39772 x.WriteRequest.AuthToken = "" 39773 } else { 39774 x.AuthToken = (string)(r.DecodeString()) 39775 } 39776 case "Forwarded": 39777 if r.TryDecodeAsNil() { 39778 x.WriteRequest.InternalRpcInfo.Forwarded = false 39779 } else { 39780 x.Forwarded = (bool)(r.DecodeBool()) 39781 } 39782 default: 39783 z.DecStructFieldNotFound(-1, yys3) 39784 } // end switch yys3 39785 } // end for yyj3 39786 r.ReadMapEnd() 39787 } 39788 39789 func (x *EvalUpdateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 39790 var h codecSelfer100 39791 z, r := codec1978.GenHelperDecoder(d) 39792 _, _, _ = h, z, r 39793 var yyj11 int 39794 var yyb11 bool 39795 var yyhl11 bool = l >= 0 39796 yyj11++ 39797 if yyhl11 { 39798 yyb11 = yyj11 > l 39799 } else { 39800 yyb11 = r.CheckBreak() 39801 } 39802 if yyb11 { 39803 r.ReadArrayEnd() 39804 return 39805 } 39806 r.ReadArrayElem() 39807 if r.TryDecodeAsNil() { 39808 x.Evals = nil 39809 } else { 39810 if false { 39811 } else { 39812 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 39813 } 39814 } 39815 yyj11++ 39816 if yyhl11 { 39817 yyb11 = yyj11 > l 39818 } else { 39819 yyb11 = r.CheckBreak() 39820 } 39821 if yyb11 { 39822 r.ReadArrayEnd() 39823 return 39824 } 39825 r.ReadArrayElem() 39826 if r.TryDecodeAsNil() { 39827 x.EvalToken = "" 39828 } else { 39829 x.EvalToken = (string)(r.DecodeString()) 39830 } 39831 yyj11++ 39832 if yyhl11 { 39833 yyb11 = yyj11 > l 39834 } else { 39835 yyb11 = r.CheckBreak() 39836 } 39837 if yyb11 { 39838 r.ReadArrayEnd() 39839 return 39840 } 39841 r.ReadArrayElem() 39842 if r.TryDecodeAsNil() { 39843 x.WriteRequest.Region = "" 39844 } else { 39845 x.Region = (string)(r.DecodeString()) 39846 } 39847 yyj11++ 39848 if yyhl11 { 39849 yyb11 = yyj11 > l 39850 } else { 39851 yyb11 = r.CheckBreak() 39852 } 39853 if yyb11 { 39854 r.ReadArrayEnd() 39855 return 39856 } 39857 r.ReadArrayElem() 39858 if r.TryDecodeAsNil() { 39859 x.WriteRequest.Namespace = "" 39860 } else { 39861 x.Namespace = (string)(r.DecodeString()) 39862 } 39863 yyj11++ 39864 if yyhl11 { 39865 yyb11 = yyj11 > l 39866 } else { 39867 yyb11 = r.CheckBreak() 39868 } 39869 if yyb11 { 39870 r.ReadArrayEnd() 39871 return 39872 } 39873 r.ReadArrayElem() 39874 if r.TryDecodeAsNil() { 39875 x.WriteRequest.AuthToken = "" 39876 } else { 39877 x.AuthToken = (string)(r.DecodeString()) 39878 } 39879 yyj11++ 39880 if yyhl11 { 39881 yyb11 = yyj11 > l 39882 } else { 39883 yyb11 = r.CheckBreak() 39884 } 39885 if yyb11 { 39886 r.ReadArrayEnd() 39887 return 39888 } 39889 r.ReadArrayElem() 39890 if r.TryDecodeAsNil() { 39891 x.WriteRequest.InternalRpcInfo.Forwarded = false 39892 } else { 39893 x.Forwarded = (bool)(r.DecodeBool()) 39894 } 39895 for { 39896 yyj11++ 39897 if yyhl11 { 39898 yyb11 = yyj11 > l 39899 } else { 39900 yyb11 = r.CheckBreak() 39901 } 39902 if yyb11 { 39903 break 39904 } 39905 r.ReadArrayElem() 39906 z.DecStructFieldNotFound(yyj11-1, "") 39907 } 39908 r.ReadArrayEnd() 39909 } 39910 39911 func (x *EvalDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { 39912 var h codecSelfer100 39913 z, r := codec1978.GenHelperEncoder(e) 39914 _, _, _ = h, z, r 39915 if x == nil { 39916 r.EncodeNil() 39917 } else { 39918 if false { 39919 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 39920 z.EncExtension(x, yyxt1) 39921 } else { 39922 yysep2 := !z.EncBinary() 39923 yy2arr2 := z.EncBasicHandle().StructToArray 39924 _, _ = yysep2, yy2arr2 39925 const yyr2 bool = false // struct tag has 'toArray' 39926 if yyr2 || yy2arr2 { 39927 r.WriteArrayStart(6) 39928 } else { 39929 r.WriteMapStart(6) 39930 } 39931 if yyr2 || yy2arr2 { 39932 r.WriteArrayElem() 39933 if x.Evals == nil { 39934 r.EncodeNil() 39935 } else { 39936 if false { 39937 } else { 39938 z.F.EncSliceStringV(x.Evals, e) 39939 } 39940 } 39941 } else { 39942 r.WriteMapElemKey() 39943 if z.IsJSONHandle() { 39944 z.WriteStr("\"Evals\"") 39945 } else { 39946 r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) 39947 } 39948 r.WriteMapElemValue() 39949 if x.Evals == nil { 39950 r.EncodeNil() 39951 } else { 39952 if false { 39953 } else { 39954 z.F.EncSliceStringV(x.Evals, e) 39955 } 39956 } 39957 } 39958 if yyr2 || yy2arr2 { 39959 r.WriteArrayElem() 39960 if x.Allocs == nil { 39961 r.EncodeNil() 39962 } else { 39963 if false { 39964 } else { 39965 z.F.EncSliceStringV(x.Allocs, e) 39966 } 39967 } 39968 } else { 39969 r.WriteMapElemKey() 39970 if z.IsJSONHandle() { 39971 z.WriteStr("\"Allocs\"") 39972 } else { 39973 r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) 39974 } 39975 r.WriteMapElemValue() 39976 if x.Allocs == nil { 39977 r.EncodeNil() 39978 } else { 39979 if false { 39980 } else { 39981 z.F.EncSliceStringV(x.Allocs, e) 39982 } 39983 } 39984 } 39985 if yyr2 || yy2arr2 { 39986 r.WriteArrayElem() 39987 if false { 39988 } else { 39989 if z.EncBasicHandle().StringToRaw { 39990 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 39991 } else { 39992 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 39993 } 39994 } 39995 } else { 39996 r.WriteMapElemKey() 39997 if z.IsJSONHandle() { 39998 z.WriteStr("\"Region\"") 39999 } else { 40000 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 40001 } 40002 r.WriteMapElemValue() 40003 if false { 40004 } else { 40005 if z.EncBasicHandle().StringToRaw { 40006 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 40007 } else { 40008 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 40009 } 40010 } 40011 } 40012 if yyr2 || yy2arr2 { 40013 r.WriteArrayElem() 40014 if false { 40015 } else { 40016 if z.EncBasicHandle().StringToRaw { 40017 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 40018 } else { 40019 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 40020 } 40021 } 40022 } else { 40023 r.WriteMapElemKey() 40024 if z.IsJSONHandle() { 40025 z.WriteStr("\"Namespace\"") 40026 } else { 40027 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 40028 } 40029 r.WriteMapElemValue() 40030 if false { 40031 } else { 40032 if z.EncBasicHandle().StringToRaw { 40033 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 40034 } else { 40035 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 40036 } 40037 } 40038 } 40039 if yyr2 || yy2arr2 { 40040 r.WriteArrayElem() 40041 if false { 40042 } else { 40043 if z.EncBasicHandle().StringToRaw { 40044 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 40045 } else { 40046 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 40047 } 40048 } 40049 } else { 40050 r.WriteMapElemKey() 40051 if z.IsJSONHandle() { 40052 z.WriteStr("\"AuthToken\"") 40053 } else { 40054 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 40055 } 40056 r.WriteMapElemValue() 40057 if false { 40058 } else { 40059 if z.EncBasicHandle().StringToRaw { 40060 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 40061 } else { 40062 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 40063 } 40064 } 40065 } 40066 if yyr2 || yy2arr2 { 40067 r.WriteArrayElem() 40068 if false { 40069 } else { 40070 r.EncodeBool(bool(x.Forwarded)) 40071 } 40072 } else { 40073 r.WriteMapElemKey() 40074 if z.IsJSONHandle() { 40075 z.WriteStr("\"Forwarded\"") 40076 } else { 40077 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 40078 } 40079 r.WriteMapElemValue() 40080 if false { 40081 } else { 40082 r.EncodeBool(bool(x.Forwarded)) 40083 } 40084 } 40085 if yyr2 || yy2arr2 { 40086 r.WriteArrayEnd() 40087 } else { 40088 r.WriteMapEnd() 40089 } 40090 } 40091 } 40092 } 40093 40094 func (x *EvalDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { 40095 var h codecSelfer100 40096 z, r := codec1978.GenHelperDecoder(d) 40097 _, _, _ = h, z, r 40098 if false { 40099 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 40100 z.DecExtension(x, yyxt1) 40101 } else { 40102 yyct2 := r.ContainerType() 40103 if yyct2 == codecSelferValueTypeMap100 { 40104 yyl2 := r.ReadMapStart() 40105 if yyl2 == 0 { 40106 r.ReadMapEnd() 40107 } else { 40108 x.codecDecodeSelfFromMap(yyl2, d) 40109 } 40110 } else if yyct2 == codecSelferValueTypeArray100 { 40111 yyl2 := r.ReadArrayStart() 40112 if yyl2 == 0 { 40113 r.ReadArrayEnd() 40114 } else { 40115 x.codecDecodeSelfFromArray(yyl2, d) 40116 } 40117 } else { 40118 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 40119 } 40120 } 40121 } 40122 40123 func (x *EvalDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 40124 var h codecSelfer100 40125 z, r := codec1978.GenHelperDecoder(d) 40126 _, _, _ = h, z, r 40127 var yyhl3 bool = l >= 0 40128 for yyj3 := 0; ; yyj3++ { 40129 if yyhl3 { 40130 if yyj3 >= l { 40131 break 40132 } 40133 } else { 40134 if r.CheckBreak() { 40135 break 40136 } 40137 } 40138 r.ReadMapElemKey() 40139 yys3 := z.StringView(r.DecodeStringAsBytes()) 40140 r.ReadMapElemValue() 40141 switch yys3 { 40142 case "Evals": 40143 if r.TryDecodeAsNil() { 40144 x.Evals = nil 40145 } else { 40146 if false { 40147 } else { 40148 z.F.DecSliceStringX(&x.Evals, d) 40149 } 40150 } 40151 case "Allocs": 40152 if r.TryDecodeAsNil() { 40153 x.Allocs = nil 40154 } else { 40155 if false { 40156 } else { 40157 z.F.DecSliceStringX(&x.Allocs, d) 40158 } 40159 } 40160 case "Region": 40161 if r.TryDecodeAsNil() { 40162 x.WriteRequest.Region = "" 40163 } else { 40164 x.Region = (string)(r.DecodeString()) 40165 } 40166 case "Namespace": 40167 if r.TryDecodeAsNil() { 40168 x.WriteRequest.Namespace = "" 40169 } else { 40170 x.Namespace = (string)(r.DecodeString()) 40171 } 40172 case "AuthToken": 40173 if r.TryDecodeAsNil() { 40174 x.WriteRequest.AuthToken = "" 40175 } else { 40176 x.AuthToken = (string)(r.DecodeString()) 40177 } 40178 case "Forwarded": 40179 if r.TryDecodeAsNil() { 40180 x.WriteRequest.InternalRpcInfo.Forwarded = false 40181 } else { 40182 x.Forwarded = (bool)(r.DecodeBool()) 40183 } 40184 default: 40185 z.DecStructFieldNotFound(-1, yys3) 40186 } // end switch yys3 40187 } // end for yyj3 40188 r.ReadMapEnd() 40189 } 40190 40191 func (x *EvalDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 40192 var h codecSelfer100 40193 z, r := codec1978.GenHelperDecoder(d) 40194 _, _, _ = h, z, r 40195 var yyj12 int 40196 var yyb12 bool 40197 var yyhl12 bool = l >= 0 40198 yyj12++ 40199 if yyhl12 { 40200 yyb12 = yyj12 > l 40201 } else { 40202 yyb12 = r.CheckBreak() 40203 } 40204 if yyb12 { 40205 r.ReadArrayEnd() 40206 return 40207 } 40208 r.ReadArrayElem() 40209 if r.TryDecodeAsNil() { 40210 x.Evals = nil 40211 } else { 40212 if false { 40213 } else { 40214 z.F.DecSliceStringX(&x.Evals, d) 40215 } 40216 } 40217 yyj12++ 40218 if yyhl12 { 40219 yyb12 = yyj12 > l 40220 } else { 40221 yyb12 = r.CheckBreak() 40222 } 40223 if yyb12 { 40224 r.ReadArrayEnd() 40225 return 40226 } 40227 r.ReadArrayElem() 40228 if r.TryDecodeAsNil() { 40229 x.Allocs = nil 40230 } else { 40231 if false { 40232 } else { 40233 z.F.DecSliceStringX(&x.Allocs, d) 40234 } 40235 } 40236 yyj12++ 40237 if yyhl12 { 40238 yyb12 = yyj12 > l 40239 } else { 40240 yyb12 = r.CheckBreak() 40241 } 40242 if yyb12 { 40243 r.ReadArrayEnd() 40244 return 40245 } 40246 r.ReadArrayElem() 40247 if r.TryDecodeAsNil() { 40248 x.WriteRequest.Region = "" 40249 } else { 40250 x.Region = (string)(r.DecodeString()) 40251 } 40252 yyj12++ 40253 if yyhl12 { 40254 yyb12 = yyj12 > l 40255 } else { 40256 yyb12 = r.CheckBreak() 40257 } 40258 if yyb12 { 40259 r.ReadArrayEnd() 40260 return 40261 } 40262 r.ReadArrayElem() 40263 if r.TryDecodeAsNil() { 40264 x.WriteRequest.Namespace = "" 40265 } else { 40266 x.Namespace = (string)(r.DecodeString()) 40267 } 40268 yyj12++ 40269 if yyhl12 { 40270 yyb12 = yyj12 > l 40271 } else { 40272 yyb12 = r.CheckBreak() 40273 } 40274 if yyb12 { 40275 r.ReadArrayEnd() 40276 return 40277 } 40278 r.ReadArrayElem() 40279 if r.TryDecodeAsNil() { 40280 x.WriteRequest.AuthToken = "" 40281 } else { 40282 x.AuthToken = (string)(r.DecodeString()) 40283 } 40284 yyj12++ 40285 if yyhl12 { 40286 yyb12 = yyj12 > l 40287 } else { 40288 yyb12 = r.CheckBreak() 40289 } 40290 if yyb12 { 40291 r.ReadArrayEnd() 40292 return 40293 } 40294 r.ReadArrayElem() 40295 if r.TryDecodeAsNil() { 40296 x.WriteRequest.InternalRpcInfo.Forwarded = false 40297 } else { 40298 x.Forwarded = (bool)(r.DecodeBool()) 40299 } 40300 for { 40301 yyj12++ 40302 if yyhl12 { 40303 yyb12 = yyj12 > l 40304 } else { 40305 yyb12 = r.CheckBreak() 40306 } 40307 if yyb12 { 40308 break 40309 } 40310 r.ReadArrayElem() 40311 z.DecStructFieldNotFound(yyj12-1, "") 40312 } 40313 r.ReadArrayEnd() 40314 } 40315 40316 func (x *EvalSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { 40317 var h codecSelfer100 40318 z, r := codec1978.GenHelperEncoder(e) 40319 _, _, _ = h, z, r 40320 if x == nil { 40321 r.EncodeNil() 40322 } else { 40323 if false { 40324 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 40325 z.EncExtension(x, yyxt1) 40326 } else { 40327 yysep2 := !z.EncBinary() 40328 yy2arr2 := z.EncBasicHandle().StructToArray 40329 _, _ = yysep2, yy2arr2 40330 const yyr2 bool = false // struct tag has 'toArray' 40331 if yyr2 || yy2arr2 { 40332 r.WriteArrayStart(9) 40333 } else { 40334 r.WriteMapStart(9) 40335 } 40336 if yyr2 || yy2arr2 { 40337 r.WriteArrayElem() 40338 if false { 40339 } else { 40340 if z.EncBasicHandle().StringToRaw { 40341 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 40342 } else { 40343 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 40344 } 40345 } 40346 } else { 40347 r.WriteMapElemKey() 40348 if z.IsJSONHandle() { 40349 z.WriteStr("\"EvalID\"") 40350 } else { 40351 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 40352 } 40353 r.WriteMapElemValue() 40354 if false { 40355 } else { 40356 if z.EncBasicHandle().StringToRaw { 40357 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 40358 } else { 40359 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 40360 } 40361 } 40362 } 40363 if yyr2 || yy2arr2 { 40364 r.WriteArrayElem() 40365 if false { 40366 } else { 40367 if z.EncBasicHandle().StringToRaw { 40368 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 40369 } else { 40370 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 40371 } 40372 } 40373 } else { 40374 r.WriteMapElemKey() 40375 if z.IsJSONHandle() { 40376 z.WriteStr("\"Region\"") 40377 } else { 40378 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 40379 } 40380 r.WriteMapElemValue() 40381 if false { 40382 } else { 40383 if z.EncBasicHandle().StringToRaw { 40384 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 40385 } else { 40386 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 40387 } 40388 } 40389 } 40390 if yyr2 || yy2arr2 { 40391 r.WriteArrayElem() 40392 if false { 40393 } else { 40394 if z.EncBasicHandle().StringToRaw { 40395 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 40396 } else { 40397 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 40398 } 40399 } 40400 } else { 40401 r.WriteMapElemKey() 40402 if z.IsJSONHandle() { 40403 z.WriteStr("\"Namespace\"") 40404 } else { 40405 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 40406 } 40407 r.WriteMapElemValue() 40408 if false { 40409 } else { 40410 if z.EncBasicHandle().StringToRaw { 40411 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 40412 } else { 40413 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 40414 } 40415 } 40416 } 40417 if yyr2 || yy2arr2 { 40418 r.WriteArrayElem() 40419 if false { 40420 } else { 40421 r.EncodeUint(uint64(x.MinQueryIndex)) 40422 } 40423 } else { 40424 r.WriteMapElemKey() 40425 if z.IsJSONHandle() { 40426 z.WriteStr("\"MinQueryIndex\"") 40427 } else { 40428 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 40429 } 40430 r.WriteMapElemValue() 40431 if false { 40432 } else { 40433 r.EncodeUint(uint64(x.MinQueryIndex)) 40434 } 40435 } 40436 if yyr2 || yy2arr2 { 40437 r.WriteArrayElem() 40438 if false { 40439 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 40440 z.EncExtension(x.MaxQueryTime, yyxt16) 40441 } else { 40442 r.EncodeInt(int64(x.MaxQueryTime)) 40443 } 40444 } else { 40445 r.WriteMapElemKey() 40446 if z.IsJSONHandle() { 40447 z.WriteStr("\"MaxQueryTime\"") 40448 } else { 40449 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 40450 } 40451 r.WriteMapElemValue() 40452 if false { 40453 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 40454 z.EncExtension(x.MaxQueryTime, yyxt17) 40455 } else { 40456 r.EncodeInt(int64(x.MaxQueryTime)) 40457 } 40458 } 40459 if yyr2 || yy2arr2 { 40460 r.WriteArrayElem() 40461 if false { 40462 } else { 40463 r.EncodeBool(bool(x.AllowStale)) 40464 } 40465 } else { 40466 r.WriteMapElemKey() 40467 if z.IsJSONHandle() { 40468 z.WriteStr("\"AllowStale\"") 40469 } else { 40470 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 40471 } 40472 r.WriteMapElemValue() 40473 if false { 40474 } else { 40475 r.EncodeBool(bool(x.AllowStale)) 40476 } 40477 } 40478 if yyr2 || yy2arr2 { 40479 r.WriteArrayElem() 40480 if false { 40481 } else { 40482 if z.EncBasicHandle().StringToRaw { 40483 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 40484 } else { 40485 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 40486 } 40487 } 40488 } else { 40489 r.WriteMapElemKey() 40490 if z.IsJSONHandle() { 40491 z.WriteStr("\"Prefix\"") 40492 } else { 40493 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 40494 } 40495 r.WriteMapElemValue() 40496 if false { 40497 } else { 40498 if z.EncBasicHandle().StringToRaw { 40499 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 40500 } else { 40501 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 40502 } 40503 } 40504 } 40505 if yyr2 || yy2arr2 { 40506 r.WriteArrayElem() 40507 if false { 40508 } else { 40509 if z.EncBasicHandle().StringToRaw { 40510 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 40511 } else { 40512 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 40513 } 40514 } 40515 } else { 40516 r.WriteMapElemKey() 40517 if z.IsJSONHandle() { 40518 z.WriteStr("\"AuthToken\"") 40519 } else { 40520 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 40521 } 40522 r.WriteMapElemValue() 40523 if false { 40524 } else { 40525 if z.EncBasicHandle().StringToRaw { 40526 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 40527 } else { 40528 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 40529 } 40530 } 40531 } 40532 if yyr2 || yy2arr2 { 40533 r.WriteArrayElem() 40534 if false { 40535 } else { 40536 r.EncodeBool(bool(x.Forwarded)) 40537 } 40538 } else { 40539 r.WriteMapElemKey() 40540 if z.IsJSONHandle() { 40541 z.WriteStr("\"Forwarded\"") 40542 } else { 40543 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 40544 } 40545 r.WriteMapElemValue() 40546 if false { 40547 } else { 40548 r.EncodeBool(bool(x.Forwarded)) 40549 } 40550 } 40551 if yyr2 || yy2arr2 { 40552 r.WriteArrayEnd() 40553 } else { 40554 r.WriteMapEnd() 40555 } 40556 } 40557 } 40558 } 40559 40560 func (x *EvalSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { 40561 var h codecSelfer100 40562 z, r := codec1978.GenHelperDecoder(d) 40563 _, _, _ = h, z, r 40564 if false { 40565 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 40566 z.DecExtension(x, yyxt1) 40567 } else { 40568 yyct2 := r.ContainerType() 40569 if yyct2 == codecSelferValueTypeMap100 { 40570 yyl2 := r.ReadMapStart() 40571 if yyl2 == 0 { 40572 r.ReadMapEnd() 40573 } else { 40574 x.codecDecodeSelfFromMap(yyl2, d) 40575 } 40576 } else if yyct2 == codecSelferValueTypeArray100 { 40577 yyl2 := r.ReadArrayStart() 40578 if yyl2 == 0 { 40579 r.ReadArrayEnd() 40580 } else { 40581 x.codecDecodeSelfFromArray(yyl2, d) 40582 } 40583 } else { 40584 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 40585 } 40586 } 40587 } 40588 40589 func (x *EvalSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 40590 var h codecSelfer100 40591 z, r := codec1978.GenHelperDecoder(d) 40592 _, _, _ = h, z, r 40593 var yyhl3 bool = l >= 0 40594 for yyj3 := 0; ; yyj3++ { 40595 if yyhl3 { 40596 if yyj3 >= l { 40597 break 40598 } 40599 } else { 40600 if r.CheckBreak() { 40601 break 40602 } 40603 } 40604 r.ReadMapElemKey() 40605 yys3 := z.StringView(r.DecodeStringAsBytes()) 40606 r.ReadMapElemValue() 40607 switch yys3 { 40608 case "EvalID": 40609 if r.TryDecodeAsNil() { 40610 x.EvalID = "" 40611 } else { 40612 x.EvalID = (string)(r.DecodeString()) 40613 } 40614 case "Region": 40615 if r.TryDecodeAsNil() { 40616 x.QueryOptions.Region = "" 40617 } else { 40618 x.Region = (string)(r.DecodeString()) 40619 } 40620 case "Namespace": 40621 if r.TryDecodeAsNil() { 40622 x.QueryOptions.Namespace = "" 40623 } else { 40624 x.Namespace = (string)(r.DecodeString()) 40625 } 40626 case "MinQueryIndex": 40627 if r.TryDecodeAsNil() { 40628 x.QueryOptions.MinQueryIndex = 0 40629 } else { 40630 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 40631 } 40632 case "MaxQueryTime": 40633 if r.TryDecodeAsNil() { 40634 x.QueryOptions.MaxQueryTime = 0 40635 } else { 40636 if false { 40637 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 40638 z.DecExtension(x.MaxQueryTime, yyxt9) 40639 } else { 40640 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 40641 } 40642 } 40643 case "AllowStale": 40644 if r.TryDecodeAsNil() { 40645 x.QueryOptions.AllowStale = false 40646 } else { 40647 x.AllowStale = (bool)(r.DecodeBool()) 40648 } 40649 case "Prefix": 40650 if r.TryDecodeAsNil() { 40651 x.QueryOptions.Prefix = "" 40652 } else { 40653 x.Prefix = (string)(r.DecodeString()) 40654 } 40655 case "AuthToken": 40656 if r.TryDecodeAsNil() { 40657 x.QueryOptions.AuthToken = "" 40658 } else { 40659 x.AuthToken = (string)(r.DecodeString()) 40660 } 40661 case "Forwarded": 40662 if r.TryDecodeAsNil() { 40663 x.QueryOptions.InternalRpcInfo.Forwarded = false 40664 } else { 40665 x.Forwarded = (bool)(r.DecodeBool()) 40666 } 40667 default: 40668 z.DecStructFieldNotFound(-1, yys3) 40669 } // end switch yys3 40670 } // end for yyj3 40671 r.ReadMapEnd() 40672 } 40673 40674 func (x *EvalSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 40675 var h codecSelfer100 40676 z, r := codec1978.GenHelperDecoder(d) 40677 _, _, _ = h, z, r 40678 var yyj14 int 40679 var yyb14 bool 40680 var yyhl14 bool = l >= 0 40681 yyj14++ 40682 if yyhl14 { 40683 yyb14 = yyj14 > l 40684 } else { 40685 yyb14 = r.CheckBreak() 40686 } 40687 if yyb14 { 40688 r.ReadArrayEnd() 40689 return 40690 } 40691 r.ReadArrayElem() 40692 if r.TryDecodeAsNil() { 40693 x.EvalID = "" 40694 } else { 40695 x.EvalID = (string)(r.DecodeString()) 40696 } 40697 yyj14++ 40698 if yyhl14 { 40699 yyb14 = yyj14 > l 40700 } else { 40701 yyb14 = r.CheckBreak() 40702 } 40703 if yyb14 { 40704 r.ReadArrayEnd() 40705 return 40706 } 40707 r.ReadArrayElem() 40708 if r.TryDecodeAsNil() { 40709 x.QueryOptions.Region = "" 40710 } else { 40711 x.Region = (string)(r.DecodeString()) 40712 } 40713 yyj14++ 40714 if yyhl14 { 40715 yyb14 = yyj14 > l 40716 } else { 40717 yyb14 = r.CheckBreak() 40718 } 40719 if yyb14 { 40720 r.ReadArrayEnd() 40721 return 40722 } 40723 r.ReadArrayElem() 40724 if r.TryDecodeAsNil() { 40725 x.QueryOptions.Namespace = "" 40726 } else { 40727 x.Namespace = (string)(r.DecodeString()) 40728 } 40729 yyj14++ 40730 if yyhl14 { 40731 yyb14 = yyj14 > l 40732 } else { 40733 yyb14 = r.CheckBreak() 40734 } 40735 if yyb14 { 40736 r.ReadArrayEnd() 40737 return 40738 } 40739 r.ReadArrayElem() 40740 if r.TryDecodeAsNil() { 40741 x.QueryOptions.MinQueryIndex = 0 40742 } else { 40743 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 40744 } 40745 yyj14++ 40746 if yyhl14 { 40747 yyb14 = yyj14 > l 40748 } else { 40749 yyb14 = r.CheckBreak() 40750 } 40751 if yyb14 { 40752 r.ReadArrayEnd() 40753 return 40754 } 40755 r.ReadArrayElem() 40756 if r.TryDecodeAsNil() { 40757 x.QueryOptions.MaxQueryTime = 0 40758 } else { 40759 if false { 40760 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 40761 z.DecExtension(x.MaxQueryTime, yyxt20) 40762 } else { 40763 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 40764 } 40765 } 40766 yyj14++ 40767 if yyhl14 { 40768 yyb14 = yyj14 > l 40769 } else { 40770 yyb14 = r.CheckBreak() 40771 } 40772 if yyb14 { 40773 r.ReadArrayEnd() 40774 return 40775 } 40776 r.ReadArrayElem() 40777 if r.TryDecodeAsNil() { 40778 x.QueryOptions.AllowStale = false 40779 } else { 40780 x.AllowStale = (bool)(r.DecodeBool()) 40781 } 40782 yyj14++ 40783 if yyhl14 { 40784 yyb14 = yyj14 > l 40785 } else { 40786 yyb14 = r.CheckBreak() 40787 } 40788 if yyb14 { 40789 r.ReadArrayEnd() 40790 return 40791 } 40792 r.ReadArrayElem() 40793 if r.TryDecodeAsNil() { 40794 x.QueryOptions.Prefix = "" 40795 } else { 40796 x.Prefix = (string)(r.DecodeString()) 40797 } 40798 yyj14++ 40799 if yyhl14 { 40800 yyb14 = yyj14 > l 40801 } else { 40802 yyb14 = r.CheckBreak() 40803 } 40804 if yyb14 { 40805 r.ReadArrayEnd() 40806 return 40807 } 40808 r.ReadArrayElem() 40809 if r.TryDecodeAsNil() { 40810 x.QueryOptions.AuthToken = "" 40811 } else { 40812 x.AuthToken = (string)(r.DecodeString()) 40813 } 40814 yyj14++ 40815 if yyhl14 { 40816 yyb14 = yyj14 > l 40817 } else { 40818 yyb14 = r.CheckBreak() 40819 } 40820 if yyb14 { 40821 r.ReadArrayEnd() 40822 return 40823 } 40824 r.ReadArrayElem() 40825 if r.TryDecodeAsNil() { 40826 x.QueryOptions.InternalRpcInfo.Forwarded = false 40827 } else { 40828 x.Forwarded = (bool)(r.DecodeBool()) 40829 } 40830 for { 40831 yyj14++ 40832 if yyhl14 { 40833 yyb14 = yyj14 > l 40834 } else { 40835 yyb14 = r.CheckBreak() 40836 } 40837 if yyb14 { 40838 break 40839 } 40840 r.ReadArrayElem() 40841 z.DecStructFieldNotFound(yyj14-1, "") 40842 } 40843 r.ReadArrayEnd() 40844 } 40845 40846 func (x *EvalAckRequest) CodecEncodeSelf(e *codec1978.Encoder) { 40847 var h codecSelfer100 40848 z, r := codec1978.GenHelperEncoder(e) 40849 _, _, _ = h, z, r 40850 if x == nil { 40851 r.EncodeNil() 40852 } else { 40853 if false { 40854 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 40855 z.EncExtension(x, yyxt1) 40856 } else { 40857 yysep2 := !z.EncBinary() 40858 yy2arr2 := z.EncBasicHandle().StructToArray 40859 _, _ = yysep2, yy2arr2 40860 const yyr2 bool = false // struct tag has 'toArray' 40861 if yyr2 || yy2arr2 { 40862 r.WriteArrayStart(6) 40863 } else { 40864 r.WriteMapStart(6) 40865 } 40866 if yyr2 || yy2arr2 { 40867 r.WriteArrayElem() 40868 if false { 40869 } else { 40870 if z.EncBasicHandle().StringToRaw { 40871 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 40872 } else { 40873 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 40874 } 40875 } 40876 } else { 40877 r.WriteMapElemKey() 40878 if z.IsJSONHandle() { 40879 z.WriteStr("\"EvalID\"") 40880 } else { 40881 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 40882 } 40883 r.WriteMapElemValue() 40884 if false { 40885 } else { 40886 if z.EncBasicHandle().StringToRaw { 40887 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 40888 } else { 40889 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 40890 } 40891 } 40892 } 40893 if yyr2 || yy2arr2 { 40894 r.WriteArrayElem() 40895 if false { 40896 } else { 40897 if z.EncBasicHandle().StringToRaw { 40898 r.EncodeStringBytesRaw(z.BytesView(string(x.Token))) 40899 } else { 40900 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Token)) 40901 } 40902 } 40903 } else { 40904 r.WriteMapElemKey() 40905 if z.IsJSONHandle() { 40906 z.WriteStr("\"Token\"") 40907 } else { 40908 r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) 40909 } 40910 r.WriteMapElemValue() 40911 if false { 40912 } else { 40913 if z.EncBasicHandle().StringToRaw { 40914 r.EncodeStringBytesRaw(z.BytesView(string(x.Token))) 40915 } else { 40916 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Token)) 40917 } 40918 } 40919 } 40920 if yyr2 || yy2arr2 { 40921 r.WriteArrayElem() 40922 if false { 40923 } else { 40924 if z.EncBasicHandle().StringToRaw { 40925 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 40926 } else { 40927 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 40928 } 40929 } 40930 } else { 40931 r.WriteMapElemKey() 40932 if z.IsJSONHandle() { 40933 z.WriteStr("\"Region\"") 40934 } else { 40935 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 40936 } 40937 r.WriteMapElemValue() 40938 if false { 40939 } else { 40940 if z.EncBasicHandle().StringToRaw { 40941 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 40942 } else { 40943 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 40944 } 40945 } 40946 } 40947 if yyr2 || yy2arr2 { 40948 r.WriteArrayElem() 40949 if false { 40950 } else { 40951 if z.EncBasicHandle().StringToRaw { 40952 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 40953 } else { 40954 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 40955 } 40956 } 40957 } else { 40958 r.WriteMapElemKey() 40959 if z.IsJSONHandle() { 40960 z.WriteStr("\"Namespace\"") 40961 } else { 40962 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 40963 } 40964 r.WriteMapElemValue() 40965 if false { 40966 } else { 40967 if z.EncBasicHandle().StringToRaw { 40968 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 40969 } else { 40970 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 40971 } 40972 } 40973 } 40974 if yyr2 || yy2arr2 { 40975 r.WriteArrayElem() 40976 if false { 40977 } else { 40978 if z.EncBasicHandle().StringToRaw { 40979 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 40980 } else { 40981 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 40982 } 40983 } 40984 } else { 40985 r.WriteMapElemKey() 40986 if z.IsJSONHandle() { 40987 z.WriteStr("\"AuthToken\"") 40988 } else { 40989 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 40990 } 40991 r.WriteMapElemValue() 40992 if false { 40993 } else { 40994 if z.EncBasicHandle().StringToRaw { 40995 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 40996 } else { 40997 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 40998 } 40999 } 41000 } 41001 if yyr2 || yy2arr2 { 41002 r.WriteArrayElem() 41003 if false { 41004 } else { 41005 r.EncodeBool(bool(x.Forwarded)) 41006 } 41007 } else { 41008 r.WriteMapElemKey() 41009 if z.IsJSONHandle() { 41010 z.WriteStr("\"Forwarded\"") 41011 } else { 41012 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 41013 } 41014 r.WriteMapElemValue() 41015 if false { 41016 } else { 41017 r.EncodeBool(bool(x.Forwarded)) 41018 } 41019 } 41020 if yyr2 || yy2arr2 { 41021 r.WriteArrayEnd() 41022 } else { 41023 r.WriteMapEnd() 41024 } 41025 } 41026 } 41027 } 41028 41029 func (x *EvalAckRequest) CodecDecodeSelf(d *codec1978.Decoder) { 41030 var h codecSelfer100 41031 z, r := codec1978.GenHelperDecoder(d) 41032 _, _, _ = h, z, r 41033 if false { 41034 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 41035 z.DecExtension(x, yyxt1) 41036 } else { 41037 yyct2 := r.ContainerType() 41038 if yyct2 == codecSelferValueTypeMap100 { 41039 yyl2 := r.ReadMapStart() 41040 if yyl2 == 0 { 41041 r.ReadMapEnd() 41042 } else { 41043 x.codecDecodeSelfFromMap(yyl2, d) 41044 } 41045 } else if yyct2 == codecSelferValueTypeArray100 { 41046 yyl2 := r.ReadArrayStart() 41047 if yyl2 == 0 { 41048 r.ReadArrayEnd() 41049 } else { 41050 x.codecDecodeSelfFromArray(yyl2, d) 41051 } 41052 } else { 41053 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 41054 } 41055 } 41056 } 41057 41058 func (x *EvalAckRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 41059 var h codecSelfer100 41060 z, r := codec1978.GenHelperDecoder(d) 41061 _, _, _ = h, z, r 41062 var yyhl3 bool = l >= 0 41063 for yyj3 := 0; ; yyj3++ { 41064 if yyhl3 { 41065 if yyj3 >= l { 41066 break 41067 } 41068 } else { 41069 if r.CheckBreak() { 41070 break 41071 } 41072 } 41073 r.ReadMapElemKey() 41074 yys3 := z.StringView(r.DecodeStringAsBytes()) 41075 r.ReadMapElemValue() 41076 switch yys3 { 41077 case "EvalID": 41078 if r.TryDecodeAsNil() { 41079 x.EvalID = "" 41080 } else { 41081 x.EvalID = (string)(r.DecodeString()) 41082 } 41083 case "Token": 41084 if r.TryDecodeAsNil() { 41085 x.Token = "" 41086 } else { 41087 x.Token = (string)(r.DecodeString()) 41088 } 41089 case "Region": 41090 if r.TryDecodeAsNil() { 41091 x.WriteRequest.Region = "" 41092 } else { 41093 x.Region = (string)(r.DecodeString()) 41094 } 41095 case "Namespace": 41096 if r.TryDecodeAsNil() { 41097 x.WriteRequest.Namespace = "" 41098 } else { 41099 x.Namespace = (string)(r.DecodeString()) 41100 } 41101 case "AuthToken": 41102 if r.TryDecodeAsNil() { 41103 x.WriteRequest.AuthToken = "" 41104 } else { 41105 x.AuthToken = (string)(r.DecodeString()) 41106 } 41107 case "Forwarded": 41108 if r.TryDecodeAsNil() { 41109 x.WriteRequest.InternalRpcInfo.Forwarded = false 41110 } else { 41111 x.Forwarded = (bool)(r.DecodeBool()) 41112 } 41113 default: 41114 z.DecStructFieldNotFound(-1, yys3) 41115 } // end switch yys3 41116 } // end for yyj3 41117 r.ReadMapEnd() 41118 } 41119 41120 func (x *EvalAckRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 41121 var h codecSelfer100 41122 z, r := codec1978.GenHelperDecoder(d) 41123 _, _, _ = h, z, r 41124 var yyj10 int 41125 var yyb10 bool 41126 var yyhl10 bool = l >= 0 41127 yyj10++ 41128 if yyhl10 { 41129 yyb10 = yyj10 > l 41130 } else { 41131 yyb10 = r.CheckBreak() 41132 } 41133 if yyb10 { 41134 r.ReadArrayEnd() 41135 return 41136 } 41137 r.ReadArrayElem() 41138 if r.TryDecodeAsNil() { 41139 x.EvalID = "" 41140 } else { 41141 x.EvalID = (string)(r.DecodeString()) 41142 } 41143 yyj10++ 41144 if yyhl10 { 41145 yyb10 = yyj10 > l 41146 } else { 41147 yyb10 = r.CheckBreak() 41148 } 41149 if yyb10 { 41150 r.ReadArrayEnd() 41151 return 41152 } 41153 r.ReadArrayElem() 41154 if r.TryDecodeAsNil() { 41155 x.Token = "" 41156 } else { 41157 x.Token = (string)(r.DecodeString()) 41158 } 41159 yyj10++ 41160 if yyhl10 { 41161 yyb10 = yyj10 > l 41162 } else { 41163 yyb10 = r.CheckBreak() 41164 } 41165 if yyb10 { 41166 r.ReadArrayEnd() 41167 return 41168 } 41169 r.ReadArrayElem() 41170 if r.TryDecodeAsNil() { 41171 x.WriteRequest.Region = "" 41172 } else { 41173 x.Region = (string)(r.DecodeString()) 41174 } 41175 yyj10++ 41176 if yyhl10 { 41177 yyb10 = yyj10 > l 41178 } else { 41179 yyb10 = r.CheckBreak() 41180 } 41181 if yyb10 { 41182 r.ReadArrayEnd() 41183 return 41184 } 41185 r.ReadArrayElem() 41186 if r.TryDecodeAsNil() { 41187 x.WriteRequest.Namespace = "" 41188 } else { 41189 x.Namespace = (string)(r.DecodeString()) 41190 } 41191 yyj10++ 41192 if yyhl10 { 41193 yyb10 = yyj10 > l 41194 } else { 41195 yyb10 = r.CheckBreak() 41196 } 41197 if yyb10 { 41198 r.ReadArrayEnd() 41199 return 41200 } 41201 r.ReadArrayElem() 41202 if r.TryDecodeAsNil() { 41203 x.WriteRequest.AuthToken = "" 41204 } else { 41205 x.AuthToken = (string)(r.DecodeString()) 41206 } 41207 yyj10++ 41208 if yyhl10 { 41209 yyb10 = yyj10 > l 41210 } else { 41211 yyb10 = r.CheckBreak() 41212 } 41213 if yyb10 { 41214 r.ReadArrayEnd() 41215 return 41216 } 41217 r.ReadArrayElem() 41218 if r.TryDecodeAsNil() { 41219 x.WriteRequest.InternalRpcInfo.Forwarded = false 41220 } else { 41221 x.Forwarded = (bool)(r.DecodeBool()) 41222 } 41223 for { 41224 yyj10++ 41225 if yyhl10 { 41226 yyb10 = yyj10 > l 41227 } else { 41228 yyb10 = r.CheckBreak() 41229 } 41230 if yyb10 { 41231 break 41232 } 41233 r.ReadArrayElem() 41234 z.DecStructFieldNotFound(yyj10-1, "") 41235 } 41236 r.ReadArrayEnd() 41237 } 41238 41239 func (x *EvalDequeueRequest) CodecEncodeSelf(e *codec1978.Encoder) { 41240 var h codecSelfer100 41241 z, r := codec1978.GenHelperEncoder(e) 41242 _, _, _ = h, z, r 41243 if x == nil { 41244 r.EncodeNil() 41245 } else { 41246 if false { 41247 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 41248 z.EncExtension(x, yyxt1) 41249 } else { 41250 yysep2 := !z.EncBinary() 41251 yy2arr2 := z.EncBasicHandle().StructToArray 41252 _, _ = yysep2, yy2arr2 41253 const yyr2 bool = false // struct tag has 'toArray' 41254 if yyr2 || yy2arr2 { 41255 r.WriteArrayStart(7) 41256 } else { 41257 r.WriteMapStart(7) 41258 } 41259 if yyr2 || yy2arr2 { 41260 r.WriteArrayElem() 41261 if x.Schedulers == nil { 41262 r.EncodeNil() 41263 } else { 41264 if false { 41265 } else { 41266 z.F.EncSliceStringV(x.Schedulers, e) 41267 } 41268 } 41269 } else { 41270 r.WriteMapElemKey() 41271 if z.IsJSONHandle() { 41272 z.WriteStr("\"Schedulers\"") 41273 } else { 41274 r.EncodeStringEnc(codecSelferCcUTF8100, `Schedulers`) 41275 } 41276 r.WriteMapElemValue() 41277 if x.Schedulers == nil { 41278 r.EncodeNil() 41279 } else { 41280 if false { 41281 } else { 41282 z.F.EncSliceStringV(x.Schedulers, e) 41283 } 41284 } 41285 } 41286 if yyr2 || yy2arr2 { 41287 r.WriteArrayElem() 41288 if false { 41289 } else if yyxt7 := z.Extension(z.I2Rtid(x.Timeout)); yyxt7 != nil { 41290 z.EncExtension(x.Timeout, yyxt7) 41291 } else { 41292 r.EncodeInt(int64(x.Timeout)) 41293 } 41294 } else { 41295 r.WriteMapElemKey() 41296 if z.IsJSONHandle() { 41297 z.WriteStr("\"Timeout\"") 41298 } else { 41299 r.EncodeStringEnc(codecSelferCcUTF8100, `Timeout`) 41300 } 41301 r.WriteMapElemValue() 41302 if false { 41303 } else if yyxt8 := z.Extension(z.I2Rtid(x.Timeout)); yyxt8 != nil { 41304 z.EncExtension(x.Timeout, yyxt8) 41305 } else { 41306 r.EncodeInt(int64(x.Timeout)) 41307 } 41308 } 41309 if yyr2 || yy2arr2 { 41310 r.WriteArrayElem() 41311 if false { 41312 } else { 41313 r.EncodeUint(uint64(x.SchedulerVersion)) 41314 } 41315 } else { 41316 r.WriteMapElemKey() 41317 if z.IsJSONHandle() { 41318 z.WriteStr("\"SchedulerVersion\"") 41319 } else { 41320 r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulerVersion`) 41321 } 41322 r.WriteMapElemValue() 41323 if false { 41324 } else { 41325 r.EncodeUint(uint64(x.SchedulerVersion)) 41326 } 41327 } 41328 if yyr2 || yy2arr2 { 41329 r.WriteArrayElem() 41330 if false { 41331 } else { 41332 if z.EncBasicHandle().StringToRaw { 41333 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 41334 } else { 41335 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 41336 } 41337 } 41338 } else { 41339 r.WriteMapElemKey() 41340 if z.IsJSONHandle() { 41341 z.WriteStr("\"Region\"") 41342 } else { 41343 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 41344 } 41345 r.WriteMapElemValue() 41346 if false { 41347 } else { 41348 if z.EncBasicHandle().StringToRaw { 41349 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 41350 } else { 41351 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 41352 } 41353 } 41354 } 41355 if yyr2 || yy2arr2 { 41356 r.WriteArrayElem() 41357 if false { 41358 } else { 41359 if z.EncBasicHandle().StringToRaw { 41360 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 41361 } else { 41362 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 41363 } 41364 } 41365 } else { 41366 r.WriteMapElemKey() 41367 if z.IsJSONHandle() { 41368 z.WriteStr("\"Namespace\"") 41369 } else { 41370 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 41371 } 41372 r.WriteMapElemValue() 41373 if false { 41374 } else { 41375 if z.EncBasicHandle().StringToRaw { 41376 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 41377 } else { 41378 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 41379 } 41380 } 41381 } 41382 if yyr2 || yy2arr2 { 41383 r.WriteArrayElem() 41384 if false { 41385 } else { 41386 if z.EncBasicHandle().StringToRaw { 41387 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 41388 } else { 41389 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 41390 } 41391 } 41392 } else { 41393 r.WriteMapElemKey() 41394 if z.IsJSONHandle() { 41395 z.WriteStr("\"AuthToken\"") 41396 } else { 41397 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 41398 } 41399 r.WriteMapElemValue() 41400 if false { 41401 } else { 41402 if z.EncBasicHandle().StringToRaw { 41403 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 41404 } else { 41405 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 41406 } 41407 } 41408 } 41409 if yyr2 || yy2arr2 { 41410 r.WriteArrayElem() 41411 if false { 41412 } else { 41413 r.EncodeBool(bool(x.Forwarded)) 41414 } 41415 } else { 41416 r.WriteMapElemKey() 41417 if z.IsJSONHandle() { 41418 z.WriteStr("\"Forwarded\"") 41419 } else { 41420 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 41421 } 41422 r.WriteMapElemValue() 41423 if false { 41424 } else { 41425 r.EncodeBool(bool(x.Forwarded)) 41426 } 41427 } 41428 if yyr2 || yy2arr2 { 41429 r.WriteArrayEnd() 41430 } else { 41431 r.WriteMapEnd() 41432 } 41433 } 41434 } 41435 } 41436 41437 func (x *EvalDequeueRequest) CodecDecodeSelf(d *codec1978.Decoder) { 41438 var h codecSelfer100 41439 z, r := codec1978.GenHelperDecoder(d) 41440 _, _, _ = h, z, r 41441 if false { 41442 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 41443 z.DecExtension(x, yyxt1) 41444 } else { 41445 yyct2 := r.ContainerType() 41446 if yyct2 == codecSelferValueTypeMap100 { 41447 yyl2 := r.ReadMapStart() 41448 if yyl2 == 0 { 41449 r.ReadMapEnd() 41450 } else { 41451 x.codecDecodeSelfFromMap(yyl2, d) 41452 } 41453 } else if yyct2 == codecSelferValueTypeArray100 { 41454 yyl2 := r.ReadArrayStart() 41455 if yyl2 == 0 { 41456 r.ReadArrayEnd() 41457 } else { 41458 x.codecDecodeSelfFromArray(yyl2, d) 41459 } 41460 } else { 41461 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 41462 } 41463 } 41464 } 41465 41466 func (x *EvalDequeueRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 41467 var h codecSelfer100 41468 z, r := codec1978.GenHelperDecoder(d) 41469 _, _, _ = h, z, r 41470 var yyhl3 bool = l >= 0 41471 for yyj3 := 0; ; yyj3++ { 41472 if yyhl3 { 41473 if yyj3 >= l { 41474 break 41475 } 41476 } else { 41477 if r.CheckBreak() { 41478 break 41479 } 41480 } 41481 r.ReadMapElemKey() 41482 yys3 := z.StringView(r.DecodeStringAsBytes()) 41483 r.ReadMapElemValue() 41484 switch yys3 { 41485 case "Schedulers": 41486 if r.TryDecodeAsNil() { 41487 x.Schedulers = nil 41488 } else { 41489 if false { 41490 } else { 41491 z.F.DecSliceStringX(&x.Schedulers, d) 41492 } 41493 } 41494 case "Timeout": 41495 if r.TryDecodeAsNil() { 41496 x.Timeout = 0 41497 } else { 41498 if false { 41499 } else if yyxt7 := z.Extension(z.I2Rtid(x.Timeout)); yyxt7 != nil { 41500 z.DecExtension(x.Timeout, yyxt7) 41501 } else { 41502 x.Timeout = (time.Duration)(r.DecodeInt64()) 41503 } 41504 } 41505 case "SchedulerVersion": 41506 if r.TryDecodeAsNil() { 41507 x.SchedulerVersion = 0 41508 } else { 41509 x.SchedulerVersion = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) 41510 } 41511 case "Region": 41512 if r.TryDecodeAsNil() { 41513 x.WriteRequest.Region = "" 41514 } else { 41515 x.Region = (string)(r.DecodeString()) 41516 } 41517 case "Namespace": 41518 if r.TryDecodeAsNil() { 41519 x.WriteRequest.Namespace = "" 41520 } else { 41521 x.Namespace = (string)(r.DecodeString()) 41522 } 41523 case "AuthToken": 41524 if r.TryDecodeAsNil() { 41525 x.WriteRequest.AuthToken = "" 41526 } else { 41527 x.AuthToken = (string)(r.DecodeString()) 41528 } 41529 case "Forwarded": 41530 if r.TryDecodeAsNil() { 41531 x.WriteRequest.InternalRpcInfo.Forwarded = false 41532 } else { 41533 x.Forwarded = (bool)(r.DecodeBool()) 41534 } 41535 default: 41536 z.DecStructFieldNotFound(-1, yys3) 41537 } // end switch yys3 41538 } // end for yyj3 41539 r.ReadMapEnd() 41540 } 41541 41542 func (x *EvalDequeueRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 41543 var h codecSelfer100 41544 z, r := codec1978.GenHelperDecoder(d) 41545 _, _, _ = h, z, r 41546 var yyj13 int 41547 var yyb13 bool 41548 var yyhl13 bool = l >= 0 41549 yyj13++ 41550 if yyhl13 { 41551 yyb13 = yyj13 > l 41552 } else { 41553 yyb13 = r.CheckBreak() 41554 } 41555 if yyb13 { 41556 r.ReadArrayEnd() 41557 return 41558 } 41559 r.ReadArrayElem() 41560 if r.TryDecodeAsNil() { 41561 x.Schedulers = nil 41562 } else { 41563 if false { 41564 } else { 41565 z.F.DecSliceStringX(&x.Schedulers, d) 41566 } 41567 } 41568 yyj13++ 41569 if yyhl13 { 41570 yyb13 = yyj13 > l 41571 } else { 41572 yyb13 = r.CheckBreak() 41573 } 41574 if yyb13 { 41575 r.ReadArrayEnd() 41576 return 41577 } 41578 r.ReadArrayElem() 41579 if r.TryDecodeAsNil() { 41580 x.Timeout = 0 41581 } else { 41582 if false { 41583 } else if yyxt17 := z.Extension(z.I2Rtid(x.Timeout)); yyxt17 != nil { 41584 z.DecExtension(x.Timeout, yyxt17) 41585 } else { 41586 x.Timeout = (time.Duration)(r.DecodeInt64()) 41587 } 41588 } 41589 yyj13++ 41590 if yyhl13 { 41591 yyb13 = yyj13 > l 41592 } else { 41593 yyb13 = r.CheckBreak() 41594 } 41595 if yyb13 { 41596 r.ReadArrayEnd() 41597 return 41598 } 41599 r.ReadArrayElem() 41600 if r.TryDecodeAsNil() { 41601 x.SchedulerVersion = 0 41602 } else { 41603 x.SchedulerVersion = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) 41604 } 41605 yyj13++ 41606 if yyhl13 { 41607 yyb13 = yyj13 > l 41608 } else { 41609 yyb13 = r.CheckBreak() 41610 } 41611 if yyb13 { 41612 r.ReadArrayEnd() 41613 return 41614 } 41615 r.ReadArrayElem() 41616 if r.TryDecodeAsNil() { 41617 x.WriteRequest.Region = "" 41618 } else { 41619 x.Region = (string)(r.DecodeString()) 41620 } 41621 yyj13++ 41622 if yyhl13 { 41623 yyb13 = yyj13 > l 41624 } else { 41625 yyb13 = r.CheckBreak() 41626 } 41627 if yyb13 { 41628 r.ReadArrayEnd() 41629 return 41630 } 41631 r.ReadArrayElem() 41632 if r.TryDecodeAsNil() { 41633 x.WriteRequest.Namespace = "" 41634 } else { 41635 x.Namespace = (string)(r.DecodeString()) 41636 } 41637 yyj13++ 41638 if yyhl13 { 41639 yyb13 = yyj13 > l 41640 } else { 41641 yyb13 = r.CheckBreak() 41642 } 41643 if yyb13 { 41644 r.ReadArrayEnd() 41645 return 41646 } 41647 r.ReadArrayElem() 41648 if r.TryDecodeAsNil() { 41649 x.WriteRequest.AuthToken = "" 41650 } else { 41651 x.AuthToken = (string)(r.DecodeString()) 41652 } 41653 yyj13++ 41654 if yyhl13 { 41655 yyb13 = yyj13 > l 41656 } else { 41657 yyb13 = r.CheckBreak() 41658 } 41659 if yyb13 { 41660 r.ReadArrayEnd() 41661 return 41662 } 41663 r.ReadArrayElem() 41664 if r.TryDecodeAsNil() { 41665 x.WriteRequest.InternalRpcInfo.Forwarded = false 41666 } else { 41667 x.Forwarded = (bool)(r.DecodeBool()) 41668 } 41669 for { 41670 yyj13++ 41671 if yyhl13 { 41672 yyb13 = yyj13 > l 41673 } else { 41674 yyb13 = r.CheckBreak() 41675 } 41676 if yyb13 { 41677 break 41678 } 41679 r.ReadArrayElem() 41680 z.DecStructFieldNotFound(yyj13-1, "") 41681 } 41682 r.ReadArrayEnd() 41683 } 41684 41685 func (x *EvalListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 41686 var h codecSelfer100 41687 z, r := codec1978.GenHelperEncoder(e) 41688 _, _, _ = h, z, r 41689 if x == nil { 41690 r.EncodeNil() 41691 } else { 41692 if false { 41693 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 41694 z.EncExtension(x, yyxt1) 41695 } else { 41696 yysep2 := !z.EncBinary() 41697 yy2arr2 := z.EncBasicHandle().StructToArray 41698 _, _ = yysep2, yy2arr2 41699 const yyr2 bool = false // struct tag has 'toArray' 41700 if yyr2 || yy2arr2 { 41701 r.WriteArrayStart(8) 41702 } else { 41703 r.WriteMapStart(8) 41704 } 41705 if yyr2 || yy2arr2 { 41706 r.WriteArrayElem() 41707 if false { 41708 } else { 41709 if z.EncBasicHandle().StringToRaw { 41710 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 41711 } else { 41712 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 41713 } 41714 } 41715 } else { 41716 r.WriteMapElemKey() 41717 if z.IsJSONHandle() { 41718 z.WriteStr("\"Region\"") 41719 } else { 41720 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 41721 } 41722 r.WriteMapElemValue() 41723 if false { 41724 } else { 41725 if z.EncBasicHandle().StringToRaw { 41726 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 41727 } else { 41728 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 41729 } 41730 } 41731 } 41732 if yyr2 || yy2arr2 { 41733 r.WriteArrayElem() 41734 if false { 41735 } else { 41736 if z.EncBasicHandle().StringToRaw { 41737 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 41738 } else { 41739 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 41740 } 41741 } 41742 } else { 41743 r.WriteMapElemKey() 41744 if z.IsJSONHandle() { 41745 z.WriteStr("\"Namespace\"") 41746 } else { 41747 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 41748 } 41749 r.WriteMapElemValue() 41750 if false { 41751 } else { 41752 if z.EncBasicHandle().StringToRaw { 41753 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 41754 } else { 41755 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 41756 } 41757 } 41758 } 41759 if yyr2 || yy2arr2 { 41760 r.WriteArrayElem() 41761 if false { 41762 } else { 41763 r.EncodeUint(uint64(x.MinQueryIndex)) 41764 } 41765 } else { 41766 r.WriteMapElemKey() 41767 if z.IsJSONHandle() { 41768 z.WriteStr("\"MinQueryIndex\"") 41769 } else { 41770 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 41771 } 41772 r.WriteMapElemValue() 41773 if false { 41774 } else { 41775 r.EncodeUint(uint64(x.MinQueryIndex)) 41776 } 41777 } 41778 if yyr2 || yy2arr2 { 41779 r.WriteArrayElem() 41780 if false { 41781 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 41782 z.EncExtension(x.MaxQueryTime, yyxt13) 41783 } else { 41784 r.EncodeInt(int64(x.MaxQueryTime)) 41785 } 41786 } else { 41787 r.WriteMapElemKey() 41788 if z.IsJSONHandle() { 41789 z.WriteStr("\"MaxQueryTime\"") 41790 } else { 41791 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 41792 } 41793 r.WriteMapElemValue() 41794 if false { 41795 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 41796 z.EncExtension(x.MaxQueryTime, yyxt14) 41797 } else { 41798 r.EncodeInt(int64(x.MaxQueryTime)) 41799 } 41800 } 41801 if yyr2 || yy2arr2 { 41802 r.WriteArrayElem() 41803 if false { 41804 } else { 41805 r.EncodeBool(bool(x.AllowStale)) 41806 } 41807 } else { 41808 r.WriteMapElemKey() 41809 if z.IsJSONHandle() { 41810 z.WriteStr("\"AllowStale\"") 41811 } else { 41812 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 41813 } 41814 r.WriteMapElemValue() 41815 if false { 41816 } else { 41817 r.EncodeBool(bool(x.AllowStale)) 41818 } 41819 } 41820 if yyr2 || yy2arr2 { 41821 r.WriteArrayElem() 41822 if false { 41823 } else { 41824 if z.EncBasicHandle().StringToRaw { 41825 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 41826 } else { 41827 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 41828 } 41829 } 41830 } else { 41831 r.WriteMapElemKey() 41832 if z.IsJSONHandle() { 41833 z.WriteStr("\"Prefix\"") 41834 } else { 41835 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 41836 } 41837 r.WriteMapElemValue() 41838 if false { 41839 } else { 41840 if z.EncBasicHandle().StringToRaw { 41841 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 41842 } else { 41843 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 41844 } 41845 } 41846 } 41847 if yyr2 || yy2arr2 { 41848 r.WriteArrayElem() 41849 if false { 41850 } else { 41851 if z.EncBasicHandle().StringToRaw { 41852 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 41853 } else { 41854 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 41855 } 41856 } 41857 } else { 41858 r.WriteMapElemKey() 41859 if z.IsJSONHandle() { 41860 z.WriteStr("\"AuthToken\"") 41861 } else { 41862 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 41863 } 41864 r.WriteMapElemValue() 41865 if false { 41866 } else { 41867 if z.EncBasicHandle().StringToRaw { 41868 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 41869 } else { 41870 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 41871 } 41872 } 41873 } 41874 if yyr2 || yy2arr2 { 41875 r.WriteArrayElem() 41876 if false { 41877 } else { 41878 r.EncodeBool(bool(x.Forwarded)) 41879 } 41880 } else { 41881 r.WriteMapElemKey() 41882 if z.IsJSONHandle() { 41883 z.WriteStr("\"Forwarded\"") 41884 } else { 41885 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 41886 } 41887 r.WriteMapElemValue() 41888 if false { 41889 } else { 41890 r.EncodeBool(bool(x.Forwarded)) 41891 } 41892 } 41893 if yyr2 || yy2arr2 { 41894 r.WriteArrayEnd() 41895 } else { 41896 r.WriteMapEnd() 41897 } 41898 } 41899 } 41900 } 41901 41902 func (x *EvalListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 41903 var h codecSelfer100 41904 z, r := codec1978.GenHelperDecoder(d) 41905 _, _, _ = h, z, r 41906 if false { 41907 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 41908 z.DecExtension(x, yyxt1) 41909 } else { 41910 yyct2 := r.ContainerType() 41911 if yyct2 == codecSelferValueTypeMap100 { 41912 yyl2 := r.ReadMapStart() 41913 if yyl2 == 0 { 41914 r.ReadMapEnd() 41915 } else { 41916 x.codecDecodeSelfFromMap(yyl2, d) 41917 } 41918 } else if yyct2 == codecSelferValueTypeArray100 { 41919 yyl2 := r.ReadArrayStart() 41920 if yyl2 == 0 { 41921 r.ReadArrayEnd() 41922 } else { 41923 x.codecDecodeSelfFromArray(yyl2, d) 41924 } 41925 } else { 41926 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 41927 } 41928 } 41929 } 41930 41931 func (x *EvalListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 41932 var h codecSelfer100 41933 z, r := codec1978.GenHelperDecoder(d) 41934 _, _, _ = h, z, r 41935 var yyhl3 bool = l >= 0 41936 for yyj3 := 0; ; yyj3++ { 41937 if yyhl3 { 41938 if yyj3 >= l { 41939 break 41940 } 41941 } else { 41942 if r.CheckBreak() { 41943 break 41944 } 41945 } 41946 r.ReadMapElemKey() 41947 yys3 := z.StringView(r.DecodeStringAsBytes()) 41948 r.ReadMapElemValue() 41949 switch yys3 { 41950 case "Region": 41951 if r.TryDecodeAsNil() { 41952 x.QueryOptions.Region = "" 41953 } else { 41954 x.Region = (string)(r.DecodeString()) 41955 } 41956 case "Namespace": 41957 if r.TryDecodeAsNil() { 41958 x.QueryOptions.Namespace = "" 41959 } else { 41960 x.Namespace = (string)(r.DecodeString()) 41961 } 41962 case "MinQueryIndex": 41963 if r.TryDecodeAsNil() { 41964 x.QueryOptions.MinQueryIndex = 0 41965 } else { 41966 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 41967 } 41968 case "MaxQueryTime": 41969 if r.TryDecodeAsNil() { 41970 x.QueryOptions.MaxQueryTime = 0 41971 } else { 41972 if false { 41973 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 41974 z.DecExtension(x.MaxQueryTime, yyxt8) 41975 } else { 41976 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 41977 } 41978 } 41979 case "AllowStale": 41980 if r.TryDecodeAsNil() { 41981 x.QueryOptions.AllowStale = false 41982 } else { 41983 x.AllowStale = (bool)(r.DecodeBool()) 41984 } 41985 case "Prefix": 41986 if r.TryDecodeAsNil() { 41987 x.QueryOptions.Prefix = "" 41988 } else { 41989 x.Prefix = (string)(r.DecodeString()) 41990 } 41991 case "AuthToken": 41992 if r.TryDecodeAsNil() { 41993 x.QueryOptions.AuthToken = "" 41994 } else { 41995 x.AuthToken = (string)(r.DecodeString()) 41996 } 41997 case "Forwarded": 41998 if r.TryDecodeAsNil() { 41999 x.QueryOptions.InternalRpcInfo.Forwarded = false 42000 } else { 42001 x.Forwarded = (bool)(r.DecodeBool()) 42002 } 42003 default: 42004 z.DecStructFieldNotFound(-1, yys3) 42005 } // end switch yys3 42006 } // end for yyj3 42007 r.ReadMapEnd() 42008 } 42009 42010 func (x *EvalListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 42011 var h codecSelfer100 42012 z, r := codec1978.GenHelperDecoder(d) 42013 _, _, _ = h, z, r 42014 var yyj13 int 42015 var yyb13 bool 42016 var yyhl13 bool = l >= 0 42017 yyj13++ 42018 if yyhl13 { 42019 yyb13 = yyj13 > l 42020 } else { 42021 yyb13 = r.CheckBreak() 42022 } 42023 if yyb13 { 42024 r.ReadArrayEnd() 42025 return 42026 } 42027 r.ReadArrayElem() 42028 if r.TryDecodeAsNil() { 42029 x.QueryOptions.Region = "" 42030 } else { 42031 x.Region = (string)(r.DecodeString()) 42032 } 42033 yyj13++ 42034 if yyhl13 { 42035 yyb13 = yyj13 > l 42036 } else { 42037 yyb13 = r.CheckBreak() 42038 } 42039 if yyb13 { 42040 r.ReadArrayEnd() 42041 return 42042 } 42043 r.ReadArrayElem() 42044 if r.TryDecodeAsNil() { 42045 x.QueryOptions.Namespace = "" 42046 } else { 42047 x.Namespace = (string)(r.DecodeString()) 42048 } 42049 yyj13++ 42050 if yyhl13 { 42051 yyb13 = yyj13 > l 42052 } else { 42053 yyb13 = r.CheckBreak() 42054 } 42055 if yyb13 { 42056 r.ReadArrayEnd() 42057 return 42058 } 42059 r.ReadArrayElem() 42060 if r.TryDecodeAsNil() { 42061 x.QueryOptions.MinQueryIndex = 0 42062 } else { 42063 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 42064 } 42065 yyj13++ 42066 if yyhl13 { 42067 yyb13 = yyj13 > l 42068 } else { 42069 yyb13 = r.CheckBreak() 42070 } 42071 if yyb13 { 42072 r.ReadArrayEnd() 42073 return 42074 } 42075 r.ReadArrayElem() 42076 if r.TryDecodeAsNil() { 42077 x.QueryOptions.MaxQueryTime = 0 42078 } else { 42079 if false { 42080 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 42081 z.DecExtension(x.MaxQueryTime, yyxt18) 42082 } else { 42083 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 42084 } 42085 } 42086 yyj13++ 42087 if yyhl13 { 42088 yyb13 = yyj13 > l 42089 } else { 42090 yyb13 = r.CheckBreak() 42091 } 42092 if yyb13 { 42093 r.ReadArrayEnd() 42094 return 42095 } 42096 r.ReadArrayElem() 42097 if r.TryDecodeAsNil() { 42098 x.QueryOptions.AllowStale = false 42099 } else { 42100 x.AllowStale = (bool)(r.DecodeBool()) 42101 } 42102 yyj13++ 42103 if yyhl13 { 42104 yyb13 = yyj13 > l 42105 } else { 42106 yyb13 = r.CheckBreak() 42107 } 42108 if yyb13 { 42109 r.ReadArrayEnd() 42110 return 42111 } 42112 r.ReadArrayElem() 42113 if r.TryDecodeAsNil() { 42114 x.QueryOptions.Prefix = "" 42115 } else { 42116 x.Prefix = (string)(r.DecodeString()) 42117 } 42118 yyj13++ 42119 if yyhl13 { 42120 yyb13 = yyj13 > l 42121 } else { 42122 yyb13 = r.CheckBreak() 42123 } 42124 if yyb13 { 42125 r.ReadArrayEnd() 42126 return 42127 } 42128 r.ReadArrayElem() 42129 if r.TryDecodeAsNil() { 42130 x.QueryOptions.AuthToken = "" 42131 } else { 42132 x.AuthToken = (string)(r.DecodeString()) 42133 } 42134 yyj13++ 42135 if yyhl13 { 42136 yyb13 = yyj13 > l 42137 } else { 42138 yyb13 = r.CheckBreak() 42139 } 42140 if yyb13 { 42141 r.ReadArrayEnd() 42142 return 42143 } 42144 r.ReadArrayElem() 42145 if r.TryDecodeAsNil() { 42146 x.QueryOptions.InternalRpcInfo.Forwarded = false 42147 } else { 42148 x.Forwarded = (bool)(r.DecodeBool()) 42149 } 42150 for { 42151 yyj13++ 42152 if yyhl13 { 42153 yyb13 = yyj13 > l 42154 } else { 42155 yyb13 = r.CheckBreak() 42156 } 42157 if yyb13 { 42158 break 42159 } 42160 r.ReadArrayElem() 42161 z.DecStructFieldNotFound(yyj13-1, "") 42162 } 42163 r.ReadArrayEnd() 42164 } 42165 42166 func (x *PlanRequest) CodecEncodeSelf(e *codec1978.Encoder) { 42167 var h codecSelfer100 42168 z, r := codec1978.GenHelperEncoder(e) 42169 _, _, _ = h, z, r 42170 if x == nil { 42171 r.EncodeNil() 42172 } else { 42173 if false { 42174 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 42175 z.EncExtension(x, yyxt1) 42176 } else { 42177 yysep2 := !z.EncBinary() 42178 yy2arr2 := z.EncBasicHandle().StructToArray 42179 _, _ = yysep2, yy2arr2 42180 const yyr2 bool = false // struct tag has 'toArray' 42181 if yyr2 || yy2arr2 { 42182 r.WriteArrayStart(5) 42183 } else { 42184 r.WriteMapStart(5) 42185 } 42186 var yyn3 bool 42187 if x.Plan == nil { 42188 yyn3 = true 42189 goto LABEL3 42190 } 42191 LABEL3: 42192 if yyr2 || yy2arr2 { 42193 if yyn3 { 42194 r.WriteArrayElem() 42195 r.EncodeNil() 42196 } else { 42197 r.WriteArrayElem() 42198 if x.Plan == nil { 42199 r.EncodeNil() 42200 } else { 42201 x.Plan.CodecEncodeSelf(e) 42202 } 42203 } 42204 } else { 42205 r.WriteMapElemKey() 42206 if z.IsJSONHandle() { 42207 z.WriteStr("\"Plan\"") 42208 } else { 42209 r.EncodeStringEnc(codecSelferCcUTF8100, `Plan`) 42210 } 42211 r.WriteMapElemValue() 42212 if yyn3 { 42213 r.EncodeNil() 42214 } else { 42215 if x.Plan == nil { 42216 r.EncodeNil() 42217 } else { 42218 x.Plan.CodecEncodeSelf(e) 42219 } 42220 } 42221 } 42222 if yyr2 || yy2arr2 { 42223 r.WriteArrayElem() 42224 if false { 42225 } else { 42226 if z.EncBasicHandle().StringToRaw { 42227 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 42228 } else { 42229 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 42230 } 42231 } 42232 } else { 42233 r.WriteMapElemKey() 42234 if z.IsJSONHandle() { 42235 z.WriteStr("\"Region\"") 42236 } else { 42237 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 42238 } 42239 r.WriteMapElemValue() 42240 if false { 42241 } else { 42242 if z.EncBasicHandle().StringToRaw { 42243 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 42244 } else { 42245 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 42246 } 42247 } 42248 } 42249 if yyr2 || yy2arr2 { 42250 r.WriteArrayElem() 42251 if false { 42252 } else { 42253 if z.EncBasicHandle().StringToRaw { 42254 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 42255 } else { 42256 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 42257 } 42258 } 42259 } else { 42260 r.WriteMapElemKey() 42261 if z.IsJSONHandle() { 42262 z.WriteStr("\"Namespace\"") 42263 } else { 42264 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 42265 } 42266 r.WriteMapElemValue() 42267 if false { 42268 } else { 42269 if z.EncBasicHandle().StringToRaw { 42270 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 42271 } else { 42272 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 42273 } 42274 } 42275 } 42276 if yyr2 || yy2arr2 { 42277 r.WriteArrayElem() 42278 if false { 42279 } else { 42280 if z.EncBasicHandle().StringToRaw { 42281 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 42282 } else { 42283 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 42284 } 42285 } 42286 } else { 42287 r.WriteMapElemKey() 42288 if z.IsJSONHandle() { 42289 z.WriteStr("\"AuthToken\"") 42290 } else { 42291 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 42292 } 42293 r.WriteMapElemValue() 42294 if false { 42295 } else { 42296 if z.EncBasicHandle().StringToRaw { 42297 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 42298 } else { 42299 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 42300 } 42301 } 42302 } 42303 if yyr2 || yy2arr2 { 42304 r.WriteArrayElem() 42305 if false { 42306 } else { 42307 r.EncodeBool(bool(x.Forwarded)) 42308 } 42309 } else { 42310 r.WriteMapElemKey() 42311 if z.IsJSONHandle() { 42312 z.WriteStr("\"Forwarded\"") 42313 } else { 42314 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 42315 } 42316 r.WriteMapElemValue() 42317 if false { 42318 } else { 42319 r.EncodeBool(bool(x.Forwarded)) 42320 } 42321 } 42322 if yyr2 || yy2arr2 { 42323 r.WriteArrayEnd() 42324 } else { 42325 r.WriteMapEnd() 42326 } 42327 } 42328 } 42329 } 42330 42331 func (x *PlanRequest) CodecDecodeSelf(d *codec1978.Decoder) { 42332 var h codecSelfer100 42333 z, r := codec1978.GenHelperDecoder(d) 42334 _, _, _ = h, z, r 42335 if false { 42336 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 42337 z.DecExtension(x, yyxt1) 42338 } else { 42339 yyct2 := r.ContainerType() 42340 if yyct2 == codecSelferValueTypeMap100 { 42341 yyl2 := r.ReadMapStart() 42342 if yyl2 == 0 { 42343 r.ReadMapEnd() 42344 } else { 42345 x.codecDecodeSelfFromMap(yyl2, d) 42346 } 42347 } else if yyct2 == codecSelferValueTypeArray100 { 42348 yyl2 := r.ReadArrayStart() 42349 if yyl2 == 0 { 42350 r.ReadArrayEnd() 42351 } else { 42352 x.codecDecodeSelfFromArray(yyl2, d) 42353 } 42354 } else { 42355 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 42356 } 42357 } 42358 } 42359 42360 func (x *PlanRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 42361 var h codecSelfer100 42362 z, r := codec1978.GenHelperDecoder(d) 42363 _, _, _ = h, z, r 42364 var yyhl3 bool = l >= 0 42365 for yyj3 := 0; ; yyj3++ { 42366 if yyhl3 { 42367 if yyj3 >= l { 42368 break 42369 } 42370 } else { 42371 if r.CheckBreak() { 42372 break 42373 } 42374 } 42375 r.ReadMapElemKey() 42376 yys3 := z.StringView(r.DecodeStringAsBytes()) 42377 r.ReadMapElemValue() 42378 switch yys3 { 42379 case "Plan": 42380 if r.TryDecodeAsNil() { 42381 if true && x.Plan != nil { 42382 x.Plan = nil 42383 } 42384 } else { 42385 if x.Plan == nil { 42386 x.Plan = new(Plan) 42387 } 42388 42389 x.Plan.CodecDecodeSelf(d) 42390 } 42391 case "Region": 42392 if r.TryDecodeAsNil() { 42393 x.WriteRequest.Region = "" 42394 } else { 42395 x.Region = (string)(r.DecodeString()) 42396 } 42397 case "Namespace": 42398 if r.TryDecodeAsNil() { 42399 x.WriteRequest.Namespace = "" 42400 } else { 42401 x.Namespace = (string)(r.DecodeString()) 42402 } 42403 case "AuthToken": 42404 if r.TryDecodeAsNil() { 42405 x.WriteRequest.AuthToken = "" 42406 } else { 42407 x.AuthToken = (string)(r.DecodeString()) 42408 } 42409 case "Forwarded": 42410 if r.TryDecodeAsNil() { 42411 x.WriteRequest.InternalRpcInfo.Forwarded = false 42412 } else { 42413 x.Forwarded = (bool)(r.DecodeBool()) 42414 } 42415 default: 42416 z.DecStructFieldNotFound(-1, yys3) 42417 } // end switch yys3 42418 } // end for yyj3 42419 r.ReadMapEnd() 42420 } 42421 42422 func (x *PlanRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 42423 var h codecSelfer100 42424 z, r := codec1978.GenHelperDecoder(d) 42425 _, _, _ = h, z, r 42426 var yyj9 int 42427 var yyb9 bool 42428 var yyhl9 bool = l >= 0 42429 yyj9++ 42430 if yyhl9 { 42431 yyb9 = yyj9 > l 42432 } else { 42433 yyb9 = r.CheckBreak() 42434 } 42435 if yyb9 { 42436 r.ReadArrayEnd() 42437 return 42438 } 42439 r.ReadArrayElem() 42440 if r.TryDecodeAsNil() { 42441 if true && x.Plan != nil { 42442 x.Plan = nil 42443 } 42444 } else { 42445 if x.Plan == nil { 42446 x.Plan = new(Plan) 42447 } 42448 42449 x.Plan.CodecDecodeSelf(d) 42450 } 42451 yyj9++ 42452 if yyhl9 { 42453 yyb9 = yyj9 > l 42454 } else { 42455 yyb9 = r.CheckBreak() 42456 } 42457 if yyb9 { 42458 r.ReadArrayEnd() 42459 return 42460 } 42461 r.ReadArrayElem() 42462 if r.TryDecodeAsNil() { 42463 x.WriteRequest.Region = "" 42464 } else { 42465 x.Region = (string)(r.DecodeString()) 42466 } 42467 yyj9++ 42468 if yyhl9 { 42469 yyb9 = yyj9 > l 42470 } else { 42471 yyb9 = r.CheckBreak() 42472 } 42473 if yyb9 { 42474 r.ReadArrayEnd() 42475 return 42476 } 42477 r.ReadArrayElem() 42478 if r.TryDecodeAsNil() { 42479 x.WriteRequest.Namespace = "" 42480 } else { 42481 x.Namespace = (string)(r.DecodeString()) 42482 } 42483 yyj9++ 42484 if yyhl9 { 42485 yyb9 = yyj9 > l 42486 } else { 42487 yyb9 = r.CheckBreak() 42488 } 42489 if yyb9 { 42490 r.ReadArrayEnd() 42491 return 42492 } 42493 r.ReadArrayElem() 42494 if r.TryDecodeAsNil() { 42495 x.WriteRequest.AuthToken = "" 42496 } else { 42497 x.AuthToken = (string)(r.DecodeString()) 42498 } 42499 yyj9++ 42500 if yyhl9 { 42501 yyb9 = yyj9 > l 42502 } else { 42503 yyb9 = r.CheckBreak() 42504 } 42505 if yyb9 { 42506 r.ReadArrayEnd() 42507 return 42508 } 42509 r.ReadArrayElem() 42510 if r.TryDecodeAsNil() { 42511 x.WriteRequest.InternalRpcInfo.Forwarded = false 42512 } else { 42513 x.Forwarded = (bool)(r.DecodeBool()) 42514 } 42515 for { 42516 yyj9++ 42517 if yyhl9 { 42518 yyb9 = yyj9 > l 42519 } else { 42520 yyb9 = r.CheckBreak() 42521 } 42522 if yyb9 { 42523 break 42524 } 42525 r.ReadArrayElem() 42526 z.DecStructFieldNotFound(yyj9-1, "") 42527 } 42528 r.ReadArrayEnd() 42529 } 42530 42531 func (x *ApplyPlanResultsRequest) CodecEncodeSelf(e *codec1978.Encoder) { 42532 var h codecSelfer100 42533 z, r := codec1978.GenHelperEncoder(e) 42534 _, _, _ = h, z, r 42535 if x == nil { 42536 r.EncodeNil() 42537 } else { 42538 if false { 42539 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 42540 z.EncExtension(x, yyxt1) 42541 } else { 42542 yysep2 := !z.EncBinary() 42543 yy2arr2 := z.EncBasicHandle().StructToArray 42544 _, _ = yysep2, yy2arr2 42545 const yyr2 bool = false // struct tag has 'toArray' 42546 if yyr2 || yy2arr2 { 42547 r.WriteArrayStart(15) 42548 } else { 42549 r.WriteMapStart(15) 42550 } 42551 if yyr2 || yy2arr2 { 42552 r.WriteArrayElem() 42553 if x.Alloc == nil { 42554 r.EncodeNil() 42555 } else { 42556 if false { 42557 } else { 42558 h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) 42559 } 42560 } 42561 } else { 42562 r.WriteMapElemKey() 42563 if z.IsJSONHandle() { 42564 z.WriteStr("\"Alloc\"") 42565 } else { 42566 r.EncodeStringEnc(codecSelferCcUTF8100, `Alloc`) 42567 } 42568 r.WriteMapElemValue() 42569 if x.Alloc == nil { 42570 r.EncodeNil() 42571 } else { 42572 if false { 42573 } else { 42574 h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) 42575 } 42576 } 42577 } 42578 if yyr2 || yy2arr2 { 42579 r.WriteArrayElem() 42580 if x.AllocsStopped == nil { 42581 r.EncodeNil() 42582 } else { 42583 if false { 42584 } else { 42585 h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsStopped), e) 42586 } 42587 } 42588 } else { 42589 r.WriteMapElemKey() 42590 if z.IsJSONHandle() { 42591 z.WriteStr("\"AllocsStopped\"") 42592 } else { 42593 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsStopped`) 42594 } 42595 r.WriteMapElemValue() 42596 if x.AllocsStopped == nil { 42597 r.EncodeNil() 42598 } else { 42599 if false { 42600 } else { 42601 h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsStopped), e) 42602 } 42603 } 42604 } 42605 if yyr2 || yy2arr2 { 42606 r.WriteArrayElem() 42607 if x.AllocsUpdated == nil { 42608 r.EncodeNil() 42609 } else { 42610 if false { 42611 } else { 42612 h.encSlicePtrtoAllocation(([]*Allocation)(x.AllocsUpdated), e) 42613 } 42614 } 42615 } else { 42616 r.WriteMapElemKey() 42617 if z.IsJSONHandle() { 42618 z.WriteStr("\"AllocsUpdated\"") 42619 } else { 42620 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsUpdated`) 42621 } 42622 r.WriteMapElemValue() 42623 if x.AllocsUpdated == nil { 42624 r.EncodeNil() 42625 } else { 42626 if false { 42627 } else { 42628 h.encSlicePtrtoAllocation(([]*Allocation)(x.AllocsUpdated), e) 42629 } 42630 } 42631 } 42632 if yyr2 || yy2arr2 { 42633 r.WriteArrayElem() 42634 if x.Evals == nil { 42635 r.EncodeNil() 42636 } else { 42637 if false { 42638 } else { 42639 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 42640 } 42641 } 42642 } else { 42643 r.WriteMapElemKey() 42644 if z.IsJSONHandle() { 42645 z.WriteStr("\"Evals\"") 42646 } else { 42647 r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) 42648 } 42649 r.WriteMapElemValue() 42650 if x.Evals == nil { 42651 r.EncodeNil() 42652 } else { 42653 if false { 42654 } else { 42655 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 42656 } 42657 } 42658 } 42659 var yyn15 bool 42660 if x.AllocUpdateRequest.Job == nil { 42661 yyn15 = true 42662 goto LABEL15 42663 } 42664 LABEL15: 42665 if yyr2 || yy2arr2 { 42666 if yyn15 { 42667 r.WriteArrayElem() 42668 r.EncodeNil() 42669 } else { 42670 r.WriteArrayElem() 42671 if x.Job == nil { 42672 r.EncodeNil() 42673 } else { 42674 x.Job.CodecEncodeSelf(e) 42675 } 42676 } 42677 } else { 42678 r.WriteMapElemKey() 42679 if z.IsJSONHandle() { 42680 z.WriteStr("\"Job\"") 42681 } else { 42682 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 42683 } 42684 r.WriteMapElemValue() 42685 if yyn15 { 42686 r.EncodeNil() 42687 } else { 42688 if x.Job == nil { 42689 r.EncodeNil() 42690 } else { 42691 x.Job.CodecEncodeSelf(e) 42692 } 42693 } 42694 } 42695 if yyr2 || yy2arr2 { 42696 r.WriteArrayElem() 42697 if false { 42698 } else { 42699 if z.EncBasicHandle().StringToRaw { 42700 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 42701 } else { 42702 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 42703 } 42704 } 42705 } else { 42706 r.WriteMapElemKey() 42707 if z.IsJSONHandle() { 42708 z.WriteStr("\"Region\"") 42709 } else { 42710 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 42711 } 42712 r.WriteMapElemValue() 42713 if false { 42714 } else { 42715 if z.EncBasicHandle().StringToRaw { 42716 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 42717 } else { 42718 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 42719 } 42720 } 42721 } 42722 if yyr2 || yy2arr2 { 42723 r.WriteArrayElem() 42724 if false { 42725 } else { 42726 if z.EncBasicHandle().StringToRaw { 42727 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 42728 } else { 42729 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 42730 } 42731 } 42732 } else { 42733 r.WriteMapElemKey() 42734 if z.IsJSONHandle() { 42735 z.WriteStr("\"Namespace\"") 42736 } else { 42737 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 42738 } 42739 r.WriteMapElemValue() 42740 if false { 42741 } else { 42742 if z.EncBasicHandle().StringToRaw { 42743 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 42744 } else { 42745 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 42746 } 42747 } 42748 } 42749 if yyr2 || yy2arr2 { 42750 r.WriteArrayElem() 42751 if false { 42752 } else { 42753 if z.EncBasicHandle().StringToRaw { 42754 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 42755 } else { 42756 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 42757 } 42758 } 42759 } else { 42760 r.WriteMapElemKey() 42761 if z.IsJSONHandle() { 42762 z.WriteStr("\"AuthToken\"") 42763 } else { 42764 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 42765 } 42766 r.WriteMapElemValue() 42767 if false { 42768 } else { 42769 if z.EncBasicHandle().StringToRaw { 42770 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 42771 } else { 42772 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 42773 } 42774 } 42775 } 42776 if yyr2 || yy2arr2 { 42777 r.WriteArrayElem() 42778 if false { 42779 } else { 42780 r.EncodeBool(bool(x.Forwarded)) 42781 } 42782 } else { 42783 r.WriteMapElemKey() 42784 if z.IsJSONHandle() { 42785 z.WriteStr("\"Forwarded\"") 42786 } else { 42787 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 42788 } 42789 r.WriteMapElemValue() 42790 if false { 42791 } else { 42792 r.EncodeBool(bool(x.Forwarded)) 42793 } 42794 } 42795 var yyn30 bool 42796 if x.Deployment == nil { 42797 yyn30 = true 42798 goto LABEL30 42799 } 42800 LABEL30: 42801 if yyr2 || yy2arr2 { 42802 if yyn30 { 42803 r.WriteArrayElem() 42804 r.EncodeNil() 42805 } else { 42806 r.WriteArrayElem() 42807 if x.Deployment == nil { 42808 r.EncodeNil() 42809 } else { 42810 x.Deployment.CodecEncodeSelf(e) 42811 } 42812 } 42813 } else { 42814 r.WriteMapElemKey() 42815 if z.IsJSONHandle() { 42816 z.WriteStr("\"Deployment\"") 42817 } else { 42818 r.EncodeStringEnc(codecSelferCcUTF8100, `Deployment`) 42819 } 42820 r.WriteMapElemValue() 42821 if yyn30 { 42822 r.EncodeNil() 42823 } else { 42824 if x.Deployment == nil { 42825 r.EncodeNil() 42826 } else { 42827 x.Deployment.CodecEncodeSelf(e) 42828 } 42829 } 42830 } 42831 if yyr2 || yy2arr2 { 42832 r.WriteArrayElem() 42833 if x.DeploymentUpdates == nil { 42834 r.EncodeNil() 42835 } else { 42836 if false { 42837 } else { 42838 h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) 42839 } 42840 } 42841 } else { 42842 r.WriteMapElemKey() 42843 if z.IsJSONHandle() { 42844 z.WriteStr("\"DeploymentUpdates\"") 42845 } else { 42846 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdates`) 42847 } 42848 r.WriteMapElemValue() 42849 if x.DeploymentUpdates == nil { 42850 r.EncodeNil() 42851 } else { 42852 if false { 42853 } else { 42854 h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) 42855 } 42856 } 42857 } 42858 if yyr2 || yy2arr2 { 42859 r.WriteArrayElem() 42860 if false { 42861 } else { 42862 if z.EncBasicHandle().StringToRaw { 42863 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 42864 } else { 42865 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 42866 } 42867 } 42868 } else { 42869 r.WriteMapElemKey() 42870 if z.IsJSONHandle() { 42871 z.WriteStr("\"EvalID\"") 42872 } else { 42873 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 42874 } 42875 r.WriteMapElemValue() 42876 if false { 42877 } else { 42878 if z.EncBasicHandle().StringToRaw { 42879 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 42880 } else { 42881 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 42882 } 42883 } 42884 } 42885 if yyr2 || yy2arr2 { 42886 r.WriteArrayElem() 42887 if x.NodePreemptions == nil { 42888 r.EncodeNil() 42889 } else { 42890 if false { 42891 } else { 42892 h.encSlicePtrtoAllocation(([]*Allocation)(x.NodePreemptions), e) 42893 } 42894 } 42895 } else { 42896 r.WriteMapElemKey() 42897 if z.IsJSONHandle() { 42898 z.WriteStr("\"NodePreemptions\"") 42899 } else { 42900 r.EncodeStringEnc(codecSelferCcUTF8100, `NodePreemptions`) 42901 } 42902 r.WriteMapElemValue() 42903 if x.NodePreemptions == nil { 42904 r.EncodeNil() 42905 } else { 42906 if false { 42907 } else { 42908 h.encSlicePtrtoAllocation(([]*Allocation)(x.NodePreemptions), e) 42909 } 42910 } 42911 } 42912 if yyr2 || yy2arr2 { 42913 r.WriteArrayElem() 42914 if x.AllocsPreempted == nil { 42915 r.EncodeNil() 42916 } else { 42917 if false { 42918 } else { 42919 h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsPreempted), e) 42920 } 42921 } 42922 } else { 42923 r.WriteMapElemKey() 42924 if z.IsJSONHandle() { 42925 z.WriteStr("\"AllocsPreempted\"") 42926 } else { 42927 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsPreempted`) 42928 } 42929 r.WriteMapElemValue() 42930 if x.AllocsPreempted == nil { 42931 r.EncodeNil() 42932 } else { 42933 if false { 42934 } else { 42935 h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsPreempted), e) 42936 } 42937 } 42938 } 42939 if yyr2 || yy2arr2 { 42940 r.WriteArrayElem() 42941 if x.PreemptionEvals == nil { 42942 r.EncodeNil() 42943 } else { 42944 if false { 42945 } else { 42946 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.PreemptionEvals), e) 42947 } 42948 } 42949 } else { 42950 r.WriteMapElemKey() 42951 if z.IsJSONHandle() { 42952 z.WriteStr("\"PreemptionEvals\"") 42953 } else { 42954 r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptionEvals`) 42955 } 42956 r.WriteMapElemValue() 42957 if x.PreemptionEvals == nil { 42958 r.EncodeNil() 42959 } else { 42960 if false { 42961 } else { 42962 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.PreemptionEvals), e) 42963 } 42964 } 42965 } 42966 if yyr2 || yy2arr2 { 42967 r.WriteArrayEnd() 42968 } else { 42969 r.WriteMapEnd() 42970 } 42971 } 42972 } 42973 } 42974 42975 func (x *ApplyPlanResultsRequest) CodecDecodeSelf(d *codec1978.Decoder) { 42976 var h codecSelfer100 42977 z, r := codec1978.GenHelperDecoder(d) 42978 _, _, _ = h, z, r 42979 if false { 42980 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 42981 z.DecExtension(x, yyxt1) 42982 } else { 42983 yyct2 := r.ContainerType() 42984 if yyct2 == codecSelferValueTypeMap100 { 42985 yyl2 := r.ReadMapStart() 42986 if yyl2 == 0 { 42987 r.ReadMapEnd() 42988 } else { 42989 x.codecDecodeSelfFromMap(yyl2, d) 42990 } 42991 } else if yyct2 == codecSelferValueTypeArray100 { 42992 yyl2 := r.ReadArrayStart() 42993 if yyl2 == 0 { 42994 r.ReadArrayEnd() 42995 } else { 42996 x.codecDecodeSelfFromArray(yyl2, d) 42997 } 42998 } else { 42999 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 43000 } 43001 } 43002 } 43003 43004 func (x *ApplyPlanResultsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 43005 var h codecSelfer100 43006 z, r := codec1978.GenHelperDecoder(d) 43007 _, _, _ = h, z, r 43008 var yyhl3 bool = l >= 0 43009 for yyj3 := 0; ; yyj3++ { 43010 if yyhl3 { 43011 if yyj3 >= l { 43012 break 43013 } 43014 } else { 43015 if r.CheckBreak() { 43016 break 43017 } 43018 } 43019 r.ReadMapElemKey() 43020 yys3 := z.StringView(r.DecodeStringAsBytes()) 43021 r.ReadMapElemValue() 43022 switch yys3 { 43023 case "Alloc": 43024 if r.TryDecodeAsNil() { 43025 x.AllocUpdateRequest.Alloc = nil 43026 } else { 43027 if false { 43028 } else { 43029 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Alloc), d) 43030 } 43031 } 43032 case "AllocsStopped": 43033 if r.TryDecodeAsNil() { 43034 x.AllocUpdateRequest.AllocsStopped = nil 43035 } else { 43036 if false { 43037 } else { 43038 h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsStopped), d) 43039 } 43040 } 43041 case "AllocsUpdated": 43042 if r.TryDecodeAsNil() { 43043 x.AllocUpdateRequest.AllocsUpdated = nil 43044 } else { 43045 if false { 43046 } else { 43047 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.AllocsUpdated), d) 43048 } 43049 } 43050 case "Evals": 43051 if r.TryDecodeAsNil() { 43052 x.AllocUpdateRequest.Evals = nil 43053 } else { 43054 if false { 43055 } else { 43056 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 43057 } 43058 } 43059 case "Job": 43060 if r.TryDecodeAsNil() { 43061 if true && x.AllocUpdateRequest.Job != nil { 43062 x.AllocUpdateRequest.Job = nil 43063 } 43064 } else { 43065 if x.AllocUpdateRequest.Job == nil { 43066 x.AllocUpdateRequest.Job = new(Job) 43067 } 43068 43069 x.Job.CodecDecodeSelf(d) 43070 } 43071 case "Region": 43072 if r.TryDecodeAsNil() { 43073 x.AllocUpdateRequest.WriteRequest.Region = "" 43074 } else { 43075 x.Region = (string)(r.DecodeString()) 43076 } 43077 case "Namespace": 43078 if r.TryDecodeAsNil() { 43079 x.AllocUpdateRequest.WriteRequest.Namespace = "" 43080 } else { 43081 x.Namespace = (string)(r.DecodeString()) 43082 } 43083 case "AuthToken": 43084 if r.TryDecodeAsNil() { 43085 x.AllocUpdateRequest.WriteRequest.AuthToken = "" 43086 } else { 43087 x.AuthToken = (string)(r.DecodeString()) 43088 } 43089 case "Forwarded": 43090 if r.TryDecodeAsNil() { 43091 x.AllocUpdateRequest.WriteRequest.InternalRpcInfo.Forwarded = false 43092 } else { 43093 x.Forwarded = (bool)(r.DecodeBool()) 43094 } 43095 case "Deployment": 43096 if r.TryDecodeAsNil() { 43097 if true && x.Deployment != nil { 43098 x.Deployment = nil 43099 } 43100 } else { 43101 if x.Deployment == nil { 43102 x.Deployment = new(Deployment) 43103 } 43104 43105 x.Deployment.CodecDecodeSelf(d) 43106 } 43107 case "DeploymentUpdates": 43108 if r.TryDecodeAsNil() { 43109 x.DeploymentUpdates = nil 43110 } else { 43111 if false { 43112 } else { 43113 h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) 43114 } 43115 } 43116 case "EvalID": 43117 if r.TryDecodeAsNil() { 43118 x.EvalID = "" 43119 } else { 43120 x.EvalID = (string)(r.DecodeString()) 43121 } 43122 case "NodePreemptions": 43123 if r.TryDecodeAsNil() { 43124 x.NodePreemptions = nil 43125 } else { 43126 if false { 43127 } else { 43128 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.NodePreemptions), d) 43129 } 43130 } 43131 case "AllocsPreempted": 43132 if r.TryDecodeAsNil() { 43133 x.AllocsPreempted = nil 43134 } else { 43135 if false { 43136 } else { 43137 h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsPreempted), d) 43138 } 43139 } 43140 case "PreemptionEvals": 43141 if r.TryDecodeAsNil() { 43142 x.PreemptionEvals = nil 43143 } else { 43144 if false { 43145 } else { 43146 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.PreemptionEvals), d) 43147 } 43148 } 43149 default: 43150 z.DecStructFieldNotFound(-1, yys3) 43151 } // end switch yys3 43152 } // end for yyj3 43153 r.ReadMapEnd() 43154 } 43155 43156 func (x *ApplyPlanResultsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 43157 var h codecSelfer100 43158 z, r := codec1978.GenHelperDecoder(d) 43159 _, _, _ = h, z, r 43160 var yyj27 int 43161 var yyb27 bool 43162 var yyhl27 bool = l >= 0 43163 yyj27++ 43164 if yyhl27 { 43165 yyb27 = yyj27 > l 43166 } else { 43167 yyb27 = r.CheckBreak() 43168 } 43169 if yyb27 { 43170 r.ReadArrayEnd() 43171 return 43172 } 43173 r.ReadArrayElem() 43174 if r.TryDecodeAsNil() { 43175 x.AllocUpdateRequest.Alloc = nil 43176 } else { 43177 if false { 43178 } else { 43179 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Alloc), d) 43180 } 43181 } 43182 yyj27++ 43183 if yyhl27 { 43184 yyb27 = yyj27 > l 43185 } else { 43186 yyb27 = r.CheckBreak() 43187 } 43188 if yyb27 { 43189 r.ReadArrayEnd() 43190 return 43191 } 43192 r.ReadArrayElem() 43193 if r.TryDecodeAsNil() { 43194 x.AllocUpdateRequest.AllocsStopped = nil 43195 } else { 43196 if false { 43197 } else { 43198 h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsStopped), d) 43199 } 43200 } 43201 yyj27++ 43202 if yyhl27 { 43203 yyb27 = yyj27 > l 43204 } else { 43205 yyb27 = r.CheckBreak() 43206 } 43207 if yyb27 { 43208 r.ReadArrayEnd() 43209 return 43210 } 43211 r.ReadArrayElem() 43212 if r.TryDecodeAsNil() { 43213 x.AllocUpdateRequest.AllocsUpdated = nil 43214 } else { 43215 if false { 43216 } else { 43217 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.AllocsUpdated), d) 43218 } 43219 } 43220 yyj27++ 43221 if yyhl27 { 43222 yyb27 = yyj27 > l 43223 } else { 43224 yyb27 = r.CheckBreak() 43225 } 43226 if yyb27 { 43227 r.ReadArrayEnd() 43228 return 43229 } 43230 r.ReadArrayElem() 43231 if r.TryDecodeAsNil() { 43232 x.AllocUpdateRequest.Evals = nil 43233 } else { 43234 if false { 43235 } else { 43236 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 43237 } 43238 } 43239 yyj27++ 43240 if yyhl27 { 43241 yyb27 = yyj27 > l 43242 } else { 43243 yyb27 = r.CheckBreak() 43244 } 43245 if yyb27 { 43246 r.ReadArrayEnd() 43247 return 43248 } 43249 r.ReadArrayElem() 43250 if r.TryDecodeAsNil() { 43251 if true && x.AllocUpdateRequest.Job != nil { 43252 x.AllocUpdateRequest.Job = nil 43253 } 43254 } else { 43255 if x.AllocUpdateRequest.Job == nil { 43256 x.AllocUpdateRequest.Job = new(Job) 43257 } 43258 43259 x.Job.CodecDecodeSelf(d) 43260 } 43261 yyj27++ 43262 if yyhl27 { 43263 yyb27 = yyj27 > l 43264 } else { 43265 yyb27 = r.CheckBreak() 43266 } 43267 if yyb27 { 43268 r.ReadArrayEnd() 43269 return 43270 } 43271 r.ReadArrayElem() 43272 if r.TryDecodeAsNil() { 43273 x.AllocUpdateRequest.WriteRequest.Region = "" 43274 } else { 43275 x.Region = (string)(r.DecodeString()) 43276 } 43277 yyj27++ 43278 if yyhl27 { 43279 yyb27 = yyj27 > l 43280 } else { 43281 yyb27 = r.CheckBreak() 43282 } 43283 if yyb27 { 43284 r.ReadArrayEnd() 43285 return 43286 } 43287 r.ReadArrayElem() 43288 if r.TryDecodeAsNil() { 43289 x.AllocUpdateRequest.WriteRequest.Namespace = "" 43290 } else { 43291 x.Namespace = (string)(r.DecodeString()) 43292 } 43293 yyj27++ 43294 if yyhl27 { 43295 yyb27 = yyj27 > l 43296 } else { 43297 yyb27 = r.CheckBreak() 43298 } 43299 if yyb27 { 43300 r.ReadArrayEnd() 43301 return 43302 } 43303 r.ReadArrayElem() 43304 if r.TryDecodeAsNil() { 43305 x.AllocUpdateRequest.WriteRequest.AuthToken = "" 43306 } else { 43307 x.AuthToken = (string)(r.DecodeString()) 43308 } 43309 yyj27++ 43310 if yyhl27 { 43311 yyb27 = yyj27 > l 43312 } else { 43313 yyb27 = r.CheckBreak() 43314 } 43315 if yyb27 { 43316 r.ReadArrayEnd() 43317 return 43318 } 43319 r.ReadArrayElem() 43320 if r.TryDecodeAsNil() { 43321 x.AllocUpdateRequest.WriteRequest.InternalRpcInfo.Forwarded = false 43322 } else { 43323 x.Forwarded = (bool)(r.DecodeBool()) 43324 } 43325 yyj27++ 43326 if yyhl27 { 43327 yyb27 = yyj27 > l 43328 } else { 43329 yyb27 = r.CheckBreak() 43330 } 43331 if yyb27 { 43332 r.ReadArrayEnd() 43333 return 43334 } 43335 r.ReadArrayElem() 43336 if r.TryDecodeAsNil() { 43337 if true && x.Deployment != nil { 43338 x.Deployment = nil 43339 } 43340 } else { 43341 if x.Deployment == nil { 43342 x.Deployment = new(Deployment) 43343 } 43344 43345 x.Deployment.CodecDecodeSelf(d) 43346 } 43347 yyj27++ 43348 if yyhl27 { 43349 yyb27 = yyj27 > l 43350 } else { 43351 yyb27 = r.CheckBreak() 43352 } 43353 if yyb27 { 43354 r.ReadArrayEnd() 43355 return 43356 } 43357 r.ReadArrayElem() 43358 if r.TryDecodeAsNil() { 43359 x.DeploymentUpdates = nil 43360 } else { 43361 if false { 43362 } else { 43363 h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) 43364 } 43365 } 43366 yyj27++ 43367 if yyhl27 { 43368 yyb27 = yyj27 > l 43369 } else { 43370 yyb27 = r.CheckBreak() 43371 } 43372 if yyb27 { 43373 r.ReadArrayEnd() 43374 return 43375 } 43376 r.ReadArrayElem() 43377 if r.TryDecodeAsNil() { 43378 x.EvalID = "" 43379 } else { 43380 x.EvalID = (string)(r.DecodeString()) 43381 } 43382 yyj27++ 43383 if yyhl27 { 43384 yyb27 = yyj27 > l 43385 } else { 43386 yyb27 = r.CheckBreak() 43387 } 43388 if yyb27 { 43389 r.ReadArrayEnd() 43390 return 43391 } 43392 r.ReadArrayElem() 43393 if r.TryDecodeAsNil() { 43394 x.NodePreemptions = nil 43395 } else { 43396 if false { 43397 } else { 43398 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.NodePreemptions), d) 43399 } 43400 } 43401 yyj27++ 43402 if yyhl27 { 43403 yyb27 = yyj27 > l 43404 } else { 43405 yyb27 = r.CheckBreak() 43406 } 43407 if yyb27 { 43408 r.ReadArrayEnd() 43409 return 43410 } 43411 r.ReadArrayElem() 43412 if r.TryDecodeAsNil() { 43413 x.AllocsPreempted = nil 43414 } else { 43415 if false { 43416 } else { 43417 h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsPreempted), d) 43418 } 43419 } 43420 yyj27++ 43421 if yyhl27 { 43422 yyb27 = yyj27 > l 43423 } else { 43424 yyb27 = r.CheckBreak() 43425 } 43426 if yyb27 { 43427 r.ReadArrayEnd() 43428 return 43429 } 43430 r.ReadArrayElem() 43431 if r.TryDecodeAsNil() { 43432 x.PreemptionEvals = nil 43433 } else { 43434 if false { 43435 } else { 43436 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.PreemptionEvals), d) 43437 } 43438 } 43439 for { 43440 yyj27++ 43441 if yyhl27 { 43442 yyb27 = yyj27 > l 43443 } else { 43444 yyb27 = r.CheckBreak() 43445 } 43446 if yyb27 { 43447 break 43448 } 43449 r.ReadArrayElem() 43450 z.DecStructFieldNotFound(yyj27-1, "") 43451 } 43452 r.ReadArrayEnd() 43453 } 43454 43455 func (x *AllocUpdateRequest) CodecEncodeSelf(e *codec1978.Encoder) { 43456 var h codecSelfer100 43457 z, r := codec1978.GenHelperEncoder(e) 43458 _, _, _ = h, z, r 43459 if x == nil { 43460 r.EncodeNil() 43461 } else { 43462 if false { 43463 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 43464 z.EncExtension(x, yyxt1) 43465 } else { 43466 yysep2 := !z.EncBinary() 43467 yy2arr2 := z.EncBasicHandle().StructToArray 43468 _, _ = yysep2, yy2arr2 43469 const yyr2 bool = false // struct tag has 'toArray' 43470 if yyr2 || yy2arr2 { 43471 r.WriteArrayStart(9) 43472 } else { 43473 r.WriteMapStart(9) 43474 } 43475 if yyr2 || yy2arr2 { 43476 r.WriteArrayElem() 43477 if x.Alloc == nil { 43478 r.EncodeNil() 43479 } else { 43480 if false { 43481 } else { 43482 h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) 43483 } 43484 } 43485 } else { 43486 r.WriteMapElemKey() 43487 if z.IsJSONHandle() { 43488 z.WriteStr("\"Alloc\"") 43489 } else { 43490 r.EncodeStringEnc(codecSelferCcUTF8100, `Alloc`) 43491 } 43492 r.WriteMapElemValue() 43493 if x.Alloc == nil { 43494 r.EncodeNil() 43495 } else { 43496 if false { 43497 } else { 43498 h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) 43499 } 43500 } 43501 } 43502 if yyr2 || yy2arr2 { 43503 r.WriteArrayElem() 43504 if x.AllocsStopped == nil { 43505 r.EncodeNil() 43506 } else { 43507 if false { 43508 } else { 43509 h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsStopped), e) 43510 } 43511 } 43512 } else { 43513 r.WriteMapElemKey() 43514 if z.IsJSONHandle() { 43515 z.WriteStr("\"AllocsStopped\"") 43516 } else { 43517 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsStopped`) 43518 } 43519 r.WriteMapElemValue() 43520 if x.AllocsStopped == nil { 43521 r.EncodeNil() 43522 } else { 43523 if false { 43524 } else { 43525 h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsStopped), e) 43526 } 43527 } 43528 } 43529 if yyr2 || yy2arr2 { 43530 r.WriteArrayElem() 43531 if x.AllocsUpdated == nil { 43532 r.EncodeNil() 43533 } else { 43534 if false { 43535 } else { 43536 h.encSlicePtrtoAllocation(([]*Allocation)(x.AllocsUpdated), e) 43537 } 43538 } 43539 } else { 43540 r.WriteMapElemKey() 43541 if z.IsJSONHandle() { 43542 z.WriteStr("\"AllocsUpdated\"") 43543 } else { 43544 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsUpdated`) 43545 } 43546 r.WriteMapElemValue() 43547 if x.AllocsUpdated == nil { 43548 r.EncodeNil() 43549 } else { 43550 if false { 43551 } else { 43552 h.encSlicePtrtoAllocation(([]*Allocation)(x.AllocsUpdated), e) 43553 } 43554 } 43555 } 43556 if yyr2 || yy2arr2 { 43557 r.WriteArrayElem() 43558 if x.Evals == nil { 43559 r.EncodeNil() 43560 } else { 43561 if false { 43562 } else { 43563 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 43564 } 43565 } 43566 } else { 43567 r.WriteMapElemKey() 43568 if z.IsJSONHandle() { 43569 z.WriteStr("\"Evals\"") 43570 } else { 43571 r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) 43572 } 43573 r.WriteMapElemValue() 43574 if x.Evals == nil { 43575 r.EncodeNil() 43576 } else { 43577 if false { 43578 } else { 43579 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 43580 } 43581 } 43582 } 43583 var yyn15 bool 43584 if x.Job == nil { 43585 yyn15 = true 43586 goto LABEL15 43587 } 43588 LABEL15: 43589 if yyr2 || yy2arr2 { 43590 if yyn15 { 43591 r.WriteArrayElem() 43592 r.EncodeNil() 43593 } else { 43594 r.WriteArrayElem() 43595 if x.Job == nil { 43596 r.EncodeNil() 43597 } else { 43598 x.Job.CodecEncodeSelf(e) 43599 } 43600 } 43601 } else { 43602 r.WriteMapElemKey() 43603 if z.IsJSONHandle() { 43604 z.WriteStr("\"Job\"") 43605 } else { 43606 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 43607 } 43608 r.WriteMapElemValue() 43609 if yyn15 { 43610 r.EncodeNil() 43611 } else { 43612 if x.Job == nil { 43613 r.EncodeNil() 43614 } else { 43615 x.Job.CodecEncodeSelf(e) 43616 } 43617 } 43618 } 43619 if yyr2 || yy2arr2 { 43620 r.WriteArrayElem() 43621 if false { 43622 } else { 43623 if z.EncBasicHandle().StringToRaw { 43624 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 43625 } else { 43626 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 43627 } 43628 } 43629 } else { 43630 r.WriteMapElemKey() 43631 if z.IsJSONHandle() { 43632 z.WriteStr("\"Region\"") 43633 } else { 43634 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 43635 } 43636 r.WriteMapElemValue() 43637 if false { 43638 } else { 43639 if z.EncBasicHandle().StringToRaw { 43640 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 43641 } else { 43642 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 43643 } 43644 } 43645 } 43646 if yyr2 || yy2arr2 { 43647 r.WriteArrayElem() 43648 if false { 43649 } else { 43650 if z.EncBasicHandle().StringToRaw { 43651 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 43652 } else { 43653 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 43654 } 43655 } 43656 } else { 43657 r.WriteMapElemKey() 43658 if z.IsJSONHandle() { 43659 z.WriteStr("\"Namespace\"") 43660 } else { 43661 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 43662 } 43663 r.WriteMapElemValue() 43664 if false { 43665 } else { 43666 if z.EncBasicHandle().StringToRaw { 43667 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 43668 } else { 43669 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 43670 } 43671 } 43672 } 43673 if yyr2 || yy2arr2 { 43674 r.WriteArrayElem() 43675 if false { 43676 } else { 43677 if z.EncBasicHandle().StringToRaw { 43678 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 43679 } else { 43680 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 43681 } 43682 } 43683 } else { 43684 r.WriteMapElemKey() 43685 if z.IsJSONHandle() { 43686 z.WriteStr("\"AuthToken\"") 43687 } else { 43688 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 43689 } 43690 r.WriteMapElemValue() 43691 if false { 43692 } else { 43693 if z.EncBasicHandle().StringToRaw { 43694 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 43695 } else { 43696 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 43697 } 43698 } 43699 } 43700 if yyr2 || yy2arr2 { 43701 r.WriteArrayElem() 43702 if false { 43703 } else { 43704 r.EncodeBool(bool(x.Forwarded)) 43705 } 43706 } else { 43707 r.WriteMapElemKey() 43708 if z.IsJSONHandle() { 43709 z.WriteStr("\"Forwarded\"") 43710 } else { 43711 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 43712 } 43713 r.WriteMapElemValue() 43714 if false { 43715 } else { 43716 r.EncodeBool(bool(x.Forwarded)) 43717 } 43718 } 43719 if yyr2 || yy2arr2 { 43720 r.WriteArrayEnd() 43721 } else { 43722 r.WriteMapEnd() 43723 } 43724 } 43725 } 43726 } 43727 43728 func (x *AllocUpdateRequest) CodecDecodeSelf(d *codec1978.Decoder) { 43729 var h codecSelfer100 43730 z, r := codec1978.GenHelperDecoder(d) 43731 _, _, _ = h, z, r 43732 if false { 43733 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 43734 z.DecExtension(x, yyxt1) 43735 } else { 43736 yyct2 := r.ContainerType() 43737 if yyct2 == codecSelferValueTypeMap100 { 43738 yyl2 := r.ReadMapStart() 43739 if yyl2 == 0 { 43740 r.ReadMapEnd() 43741 } else { 43742 x.codecDecodeSelfFromMap(yyl2, d) 43743 } 43744 } else if yyct2 == codecSelferValueTypeArray100 { 43745 yyl2 := r.ReadArrayStart() 43746 if yyl2 == 0 { 43747 r.ReadArrayEnd() 43748 } else { 43749 x.codecDecodeSelfFromArray(yyl2, d) 43750 } 43751 } else { 43752 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 43753 } 43754 } 43755 } 43756 43757 func (x *AllocUpdateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 43758 var h codecSelfer100 43759 z, r := codec1978.GenHelperDecoder(d) 43760 _, _, _ = h, z, r 43761 var yyhl3 bool = l >= 0 43762 for yyj3 := 0; ; yyj3++ { 43763 if yyhl3 { 43764 if yyj3 >= l { 43765 break 43766 } 43767 } else { 43768 if r.CheckBreak() { 43769 break 43770 } 43771 } 43772 r.ReadMapElemKey() 43773 yys3 := z.StringView(r.DecodeStringAsBytes()) 43774 r.ReadMapElemValue() 43775 switch yys3 { 43776 case "Alloc": 43777 if r.TryDecodeAsNil() { 43778 x.Alloc = nil 43779 } else { 43780 if false { 43781 } else { 43782 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Alloc), d) 43783 } 43784 } 43785 case "AllocsStopped": 43786 if r.TryDecodeAsNil() { 43787 x.AllocsStopped = nil 43788 } else { 43789 if false { 43790 } else { 43791 h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsStopped), d) 43792 } 43793 } 43794 case "AllocsUpdated": 43795 if r.TryDecodeAsNil() { 43796 x.AllocsUpdated = nil 43797 } else { 43798 if false { 43799 } else { 43800 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.AllocsUpdated), d) 43801 } 43802 } 43803 case "Evals": 43804 if r.TryDecodeAsNil() { 43805 x.Evals = nil 43806 } else { 43807 if false { 43808 } else { 43809 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 43810 } 43811 } 43812 case "Job": 43813 if r.TryDecodeAsNil() { 43814 if true && x.Job != nil { 43815 x.Job = nil 43816 } 43817 } else { 43818 if x.Job == nil { 43819 x.Job = new(Job) 43820 } 43821 43822 x.Job.CodecDecodeSelf(d) 43823 } 43824 case "Region": 43825 if r.TryDecodeAsNil() { 43826 x.WriteRequest.Region = "" 43827 } else { 43828 x.Region = (string)(r.DecodeString()) 43829 } 43830 case "Namespace": 43831 if r.TryDecodeAsNil() { 43832 x.WriteRequest.Namespace = "" 43833 } else { 43834 x.Namespace = (string)(r.DecodeString()) 43835 } 43836 case "AuthToken": 43837 if r.TryDecodeAsNil() { 43838 x.WriteRequest.AuthToken = "" 43839 } else { 43840 x.AuthToken = (string)(r.DecodeString()) 43841 } 43842 case "Forwarded": 43843 if r.TryDecodeAsNil() { 43844 x.WriteRequest.InternalRpcInfo.Forwarded = false 43845 } else { 43846 x.Forwarded = (bool)(r.DecodeBool()) 43847 } 43848 default: 43849 z.DecStructFieldNotFound(-1, yys3) 43850 } // end switch yys3 43851 } // end for yyj3 43852 r.ReadMapEnd() 43853 } 43854 43855 func (x *AllocUpdateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 43856 var h codecSelfer100 43857 z, r := codec1978.GenHelperDecoder(d) 43858 _, _, _ = h, z, r 43859 var yyj17 int 43860 var yyb17 bool 43861 var yyhl17 bool = l >= 0 43862 yyj17++ 43863 if yyhl17 { 43864 yyb17 = yyj17 > l 43865 } else { 43866 yyb17 = r.CheckBreak() 43867 } 43868 if yyb17 { 43869 r.ReadArrayEnd() 43870 return 43871 } 43872 r.ReadArrayElem() 43873 if r.TryDecodeAsNil() { 43874 x.Alloc = nil 43875 } else { 43876 if false { 43877 } else { 43878 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Alloc), d) 43879 } 43880 } 43881 yyj17++ 43882 if yyhl17 { 43883 yyb17 = yyj17 > l 43884 } else { 43885 yyb17 = r.CheckBreak() 43886 } 43887 if yyb17 { 43888 r.ReadArrayEnd() 43889 return 43890 } 43891 r.ReadArrayElem() 43892 if r.TryDecodeAsNil() { 43893 x.AllocsStopped = nil 43894 } else { 43895 if false { 43896 } else { 43897 h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsStopped), d) 43898 } 43899 } 43900 yyj17++ 43901 if yyhl17 { 43902 yyb17 = yyj17 > l 43903 } else { 43904 yyb17 = r.CheckBreak() 43905 } 43906 if yyb17 { 43907 r.ReadArrayEnd() 43908 return 43909 } 43910 r.ReadArrayElem() 43911 if r.TryDecodeAsNil() { 43912 x.AllocsUpdated = nil 43913 } else { 43914 if false { 43915 } else { 43916 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.AllocsUpdated), d) 43917 } 43918 } 43919 yyj17++ 43920 if yyhl17 { 43921 yyb17 = yyj17 > l 43922 } else { 43923 yyb17 = r.CheckBreak() 43924 } 43925 if yyb17 { 43926 r.ReadArrayEnd() 43927 return 43928 } 43929 r.ReadArrayElem() 43930 if r.TryDecodeAsNil() { 43931 x.Evals = nil 43932 } else { 43933 if false { 43934 } else { 43935 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 43936 } 43937 } 43938 yyj17++ 43939 if yyhl17 { 43940 yyb17 = yyj17 > l 43941 } else { 43942 yyb17 = r.CheckBreak() 43943 } 43944 if yyb17 { 43945 r.ReadArrayEnd() 43946 return 43947 } 43948 r.ReadArrayElem() 43949 if r.TryDecodeAsNil() { 43950 if true && x.Job != nil { 43951 x.Job = nil 43952 } 43953 } else { 43954 if x.Job == nil { 43955 x.Job = new(Job) 43956 } 43957 43958 x.Job.CodecDecodeSelf(d) 43959 } 43960 yyj17++ 43961 if yyhl17 { 43962 yyb17 = yyj17 > l 43963 } else { 43964 yyb17 = r.CheckBreak() 43965 } 43966 if yyb17 { 43967 r.ReadArrayEnd() 43968 return 43969 } 43970 r.ReadArrayElem() 43971 if r.TryDecodeAsNil() { 43972 x.WriteRequest.Region = "" 43973 } else { 43974 x.Region = (string)(r.DecodeString()) 43975 } 43976 yyj17++ 43977 if yyhl17 { 43978 yyb17 = yyj17 > l 43979 } else { 43980 yyb17 = r.CheckBreak() 43981 } 43982 if yyb17 { 43983 r.ReadArrayEnd() 43984 return 43985 } 43986 r.ReadArrayElem() 43987 if r.TryDecodeAsNil() { 43988 x.WriteRequest.Namespace = "" 43989 } else { 43990 x.Namespace = (string)(r.DecodeString()) 43991 } 43992 yyj17++ 43993 if yyhl17 { 43994 yyb17 = yyj17 > l 43995 } else { 43996 yyb17 = r.CheckBreak() 43997 } 43998 if yyb17 { 43999 r.ReadArrayEnd() 44000 return 44001 } 44002 r.ReadArrayElem() 44003 if r.TryDecodeAsNil() { 44004 x.WriteRequest.AuthToken = "" 44005 } else { 44006 x.AuthToken = (string)(r.DecodeString()) 44007 } 44008 yyj17++ 44009 if yyhl17 { 44010 yyb17 = yyj17 > l 44011 } else { 44012 yyb17 = r.CheckBreak() 44013 } 44014 if yyb17 { 44015 r.ReadArrayEnd() 44016 return 44017 } 44018 r.ReadArrayElem() 44019 if r.TryDecodeAsNil() { 44020 x.WriteRequest.InternalRpcInfo.Forwarded = false 44021 } else { 44022 x.Forwarded = (bool)(r.DecodeBool()) 44023 } 44024 for { 44025 yyj17++ 44026 if yyhl17 { 44027 yyb17 = yyj17 > l 44028 } else { 44029 yyb17 = r.CheckBreak() 44030 } 44031 if yyb17 { 44032 break 44033 } 44034 r.ReadArrayElem() 44035 z.DecStructFieldNotFound(yyj17-1, "") 44036 } 44037 r.ReadArrayEnd() 44038 } 44039 44040 func (x *AllocUpdateDesiredTransitionRequest) CodecEncodeSelf(e *codec1978.Encoder) { 44041 var h codecSelfer100 44042 z, r := codec1978.GenHelperEncoder(e) 44043 _, _, _ = h, z, r 44044 if x == nil { 44045 r.EncodeNil() 44046 } else { 44047 if false { 44048 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 44049 z.EncExtension(x, yyxt1) 44050 } else { 44051 yysep2 := !z.EncBinary() 44052 yy2arr2 := z.EncBasicHandle().StructToArray 44053 _, _ = yysep2, yy2arr2 44054 const yyr2 bool = false // struct tag has 'toArray' 44055 if yyr2 || yy2arr2 { 44056 r.WriteArrayStart(6) 44057 } else { 44058 r.WriteMapStart(6) 44059 } 44060 if yyr2 || yy2arr2 { 44061 r.WriteArrayElem() 44062 if x.Allocs == nil { 44063 r.EncodeNil() 44064 } else { 44065 if false { 44066 } else { 44067 h.encMapstringPtrtoDesiredTransition((map[string]*DesiredTransition)(x.Allocs), e) 44068 } 44069 } 44070 } else { 44071 r.WriteMapElemKey() 44072 if z.IsJSONHandle() { 44073 z.WriteStr("\"Allocs\"") 44074 } else { 44075 r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) 44076 } 44077 r.WriteMapElemValue() 44078 if x.Allocs == nil { 44079 r.EncodeNil() 44080 } else { 44081 if false { 44082 } else { 44083 h.encMapstringPtrtoDesiredTransition((map[string]*DesiredTransition)(x.Allocs), e) 44084 } 44085 } 44086 } 44087 if yyr2 || yy2arr2 { 44088 r.WriteArrayElem() 44089 if x.Evals == nil { 44090 r.EncodeNil() 44091 } else { 44092 if false { 44093 } else { 44094 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 44095 } 44096 } 44097 } else { 44098 r.WriteMapElemKey() 44099 if z.IsJSONHandle() { 44100 z.WriteStr("\"Evals\"") 44101 } else { 44102 r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) 44103 } 44104 r.WriteMapElemValue() 44105 if x.Evals == nil { 44106 r.EncodeNil() 44107 } else { 44108 if false { 44109 } else { 44110 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 44111 } 44112 } 44113 } 44114 if yyr2 || yy2arr2 { 44115 r.WriteArrayElem() 44116 if false { 44117 } else { 44118 if z.EncBasicHandle().StringToRaw { 44119 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 44120 } else { 44121 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 44122 } 44123 } 44124 } else { 44125 r.WriteMapElemKey() 44126 if z.IsJSONHandle() { 44127 z.WriteStr("\"Region\"") 44128 } else { 44129 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 44130 } 44131 r.WriteMapElemValue() 44132 if false { 44133 } else { 44134 if z.EncBasicHandle().StringToRaw { 44135 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 44136 } else { 44137 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 44138 } 44139 } 44140 } 44141 if yyr2 || yy2arr2 { 44142 r.WriteArrayElem() 44143 if false { 44144 } else { 44145 if z.EncBasicHandle().StringToRaw { 44146 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 44147 } else { 44148 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 44149 } 44150 } 44151 } else { 44152 r.WriteMapElemKey() 44153 if z.IsJSONHandle() { 44154 z.WriteStr("\"Namespace\"") 44155 } else { 44156 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 44157 } 44158 r.WriteMapElemValue() 44159 if false { 44160 } else { 44161 if z.EncBasicHandle().StringToRaw { 44162 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 44163 } else { 44164 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 44165 } 44166 } 44167 } 44168 if yyr2 || yy2arr2 { 44169 r.WriteArrayElem() 44170 if false { 44171 } else { 44172 if z.EncBasicHandle().StringToRaw { 44173 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 44174 } else { 44175 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 44176 } 44177 } 44178 } else { 44179 r.WriteMapElemKey() 44180 if z.IsJSONHandle() { 44181 z.WriteStr("\"AuthToken\"") 44182 } else { 44183 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 44184 } 44185 r.WriteMapElemValue() 44186 if false { 44187 } else { 44188 if z.EncBasicHandle().StringToRaw { 44189 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 44190 } else { 44191 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 44192 } 44193 } 44194 } 44195 if yyr2 || yy2arr2 { 44196 r.WriteArrayElem() 44197 if false { 44198 } else { 44199 r.EncodeBool(bool(x.Forwarded)) 44200 } 44201 } else { 44202 r.WriteMapElemKey() 44203 if z.IsJSONHandle() { 44204 z.WriteStr("\"Forwarded\"") 44205 } else { 44206 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 44207 } 44208 r.WriteMapElemValue() 44209 if false { 44210 } else { 44211 r.EncodeBool(bool(x.Forwarded)) 44212 } 44213 } 44214 if yyr2 || yy2arr2 { 44215 r.WriteArrayEnd() 44216 } else { 44217 r.WriteMapEnd() 44218 } 44219 } 44220 } 44221 } 44222 44223 func (x *AllocUpdateDesiredTransitionRequest) CodecDecodeSelf(d *codec1978.Decoder) { 44224 var h codecSelfer100 44225 z, r := codec1978.GenHelperDecoder(d) 44226 _, _, _ = h, z, r 44227 if false { 44228 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 44229 z.DecExtension(x, yyxt1) 44230 } else { 44231 yyct2 := r.ContainerType() 44232 if yyct2 == codecSelferValueTypeMap100 { 44233 yyl2 := r.ReadMapStart() 44234 if yyl2 == 0 { 44235 r.ReadMapEnd() 44236 } else { 44237 x.codecDecodeSelfFromMap(yyl2, d) 44238 } 44239 } else if yyct2 == codecSelferValueTypeArray100 { 44240 yyl2 := r.ReadArrayStart() 44241 if yyl2 == 0 { 44242 r.ReadArrayEnd() 44243 } else { 44244 x.codecDecodeSelfFromArray(yyl2, d) 44245 } 44246 } else { 44247 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 44248 } 44249 } 44250 } 44251 44252 func (x *AllocUpdateDesiredTransitionRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 44253 var h codecSelfer100 44254 z, r := codec1978.GenHelperDecoder(d) 44255 _, _, _ = h, z, r 44256 var yyhl3 bool = l >= 0 44257 for yyj3 := 0; ; yyj3++ { 44258 if yyhl3 { 44259 if yyj3 >= l { 44260 break 44261 } 44262 } else { 44263 if r.CheckBreak() { 44264 break 44265 } 44266 } 44267 r.ReadMapElemKey() 44268 yys3 := z.StringView(r.DecodeStringAsBytes()) 44269 r.ReadMapElemValue() 44270 switch yys3 { 44271 case "Allocs": 44272 if r.TryDecodeAsNil() { 44273 x.Allocs = nil 44274 } else { 44275 if false { 44276 } else { 44277 h.decMapstringPtrtoDesiredTransition((*map[string]*DesiredTransition)(&x.Allocs), d) 44278 } 44279 } 44280 case "Evals": 44281 if r.TryDecodeAsNil() { 44282 x.Evals = nil 44283 } else { 44284 if false { 44285 } else { 44286 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 44287 } 44288 } 44289 case "Region": 44290 if r.TryDecodeAsNil() { 44291 x.WriteRequest.Region = "" 44292 } else { 44293 x.Region = (string)(r.DecodeString()) 44294 } 44295 case "Namespace": 44296 if r.TryDecodeAsNil() { 44297 x.WriteRequest.Namespace = "" 44298 } else { 44299 x.Namespace = (string)(r.DecodeString()) 44300 } 44301 case "AuthToken": 44302 if r.TryDecodeAsNil() { 44303 x.WriteRequest.AuthToken = "" 44304 } else { 44305 x.AuthToken = (string)(r.DecodeString()) 44306 } 44307 case "Forwarded": 44308 if r.TryDecodeAsNil() { 44309 x.WriteRequest.InternalRpcInfo.Forwarded = false 44310 } else { 44311 x.Forwarded = (bool)(r.DecodeBool()) 44312 } 44313 default: 44314 z.DecStructFieldNotFound(-1, yys3) 44315 } // end switch yys3 44316 } // end for yyj3 44317 r.ReadMapEnd() 44318 } 44319 44320 func (x *AllocUpdateDesiredTransitionRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 44321 var h codecSelfer100 44322 z, r := codec1978.GenHelperDecoder(d) 44323 _, _, _ = h, z, r 44324 var yyj12 int 44325 var yyb12 bool 44326 var yyhl12 bool = l >= 0 44327 yyj12++ 44328 if yyhl12 { 44329 yyb12 = yyj12 > l 44330 } else { 44331 yyb12 = r.CheckBreak() 44332 } 44333 if yyb12 { 44334 r.ReadArrayEnd() 44335 return 44336 } 44337 r.ReadArrayElem() 44338 if r.TryDecodeAsNil() { 44339 x.Allocs = nil 44340 } else { 44341 if false { 44342 } else { 44343 h.decMapstringPtrtoDesiredTransition((*map[string]*DesiredTransition)(&x.Allocs), d) 44344 } 44345 } 44346 yyj12++ 44347 if yyhl12 { 44348 yyb12 = yyj12 > l 44349 } else { 44350 yyb12 = r.CheckBreak() 44351 } 44352 if yyb12 { 44353 r.ReadArrayEnd() 44354 return 44355 } 44356 r.ReadArrayElem() 44357 if r.TryDecodeAsNil() { 44358 x.Evals = nil 44359 } else { 44360 if false { 44361 } else { 44362 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 44363 } 44364 } 44365 yyj12++ 44366 if yyhl12 { 44367 yyb12 = yyj12 > l 44368 } else { 44369 yyb12 = r.CheckBreak() 44370 } 44371 if yyb12 { 44372 r.ReadArrayEnd() 44373 return 44374 } 44375 r.ReadArrayElem() 44376 if r.TryDecodeAsNil() { 44377 x.WriteRequest.Region = "" 44378 } else { 44379 x.Region = (string)(r.DecodeString()) 44380 } 44381 yyj12++ 44382 if yyhl12 { 44383 yyb12 = yyj12 > l 44384 } else { 44385 yyb12 = r.CheckBreak() 44386 } 44387 if yyb12 { 44388 r.ReadArrayEnd() 44389 return 44390 } 44391 r.ReadArrayElem() 44392 if r.TryDecodeAsNil() { 44393 x.WriteRequest.Namespace = "" 44394 } else { 44395 x.Namespace = (string)(r.DecodeString()) 44396 } 44397 yyj12++ 44398 if yyhl12 { 44399 yyb12 = yyj12 > l 44400 } else { 44401 yyb12 = r.CheckBreak() 44402 } 44403 if yyb12 { 44404 r.ReadArrayEnd() 44405 return 44406 } 44407 r.ReadArrayElem() 44408 if r.TryDecodeAsNil() { 44409 x.WriteRequest.AuthToken = "" 44410 } else { 44411 x.AuthToken = (string)(r.DecodeString()) 44412 } 44413 yyj12++ 44414 if yyhl12 { 44415 yyb12 = yyj12 > l 44416 } else { 44417 yyb12 = r.CheckBreak() 44418 } 44419 if yyb12 { 44420 r.ReadArrayEnd() 44421 return 44422 } 44423 r.ReadArrayElem() 44424 if r.TryDecodeAsNil() { 44425 x.WriteRequest.InternalRpcInfo.Forwarded = false 44426 } else { 44427 x.Forwarded = (bool)(r.DecodeBool()) 44428 } 44429 for { 44430 yyj12++ 44431 if yyhl12 { 44432 yyb12 = yyj12 > l 44433 } else { 44434 yyb12 = r.CheckBreak() 44435 } 44436 if yyb12 { 44437 break 44438 } 44439 r.ReadArrayElem() 44440 z.DecStructFieldNotFound(yyj12-1, "") 44441 } 44442 r.ReadArrayEnd() 44443 } 44444 44445 func (x *AllocStopRequest) CodecEncodeSelf(e *codec1978.Encoder) { 44446 var h codecSelfer100 44447 z, r := codec1978.GenHelperEncoder(e) 44448 _, _, _ = h, z, r 44449 if x == nil { 44450 r.EncodeNil() 44451 } else { 44452 if false { 44453 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 44454 z.EncExtension(x, yyxt1) 44455 } else { 44456 yysep2 := !z.EncBinary() 44457 yy2arr2 := z.EncBasicHandle().StructToArray 44458 _, _ = yysep2, yy2arr2 44459 const yyr2 bool = false // struct tag has 'toArray' 44460 if yyr2 || yy2arr2 { 44461 r.WriteArrayStart(5) 44462 } else { 44463 r.WriteMapStart(5) 44464 } 44465 if yyr2 || yy2arr2 { 44466 r.WriteArrayElem() 44467 if false { 44468 } else { 44469 if z.EncBasicHandle().StringToRaw { 44470 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 44471 } else { 44472 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 44473 } 44474 } 44475 } else { 44476 r.WriteMapElemKey() 44477 if z.IsJSONHandle() { 44478 z.WriteStr("\"AllocID\"") 44479 } else { 44480 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) 44481 } 44482 r.WriteMapElemValue() 44483 if false { 44484 } else { 44485 if z.EncBasicHandle().StringToRaw { 44486 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 44487 } else { 44488 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 44489 } 44490 } 44491 } 44492 if yyr2 || yy2arr2 { 44493 r.WriteArrayElem() 44494 if false { 44495 } else { 44496 if z.EncBasicHandle().StringToRaw { 44497 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 44498 } else { 44499 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 44500 } 44501 } 44502 } else { 44503 r.WriteMapElemKey() 44504 if z.IsJSONHandle() { 44505 z.WriteStr("\"Region\"") 44506 } else { 44507 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 44508 } 44509 r.WriteMapElemValue() 44510 if false { 44511 } else { 44512 if z.EncBasicHandle().StringToRaw { 44513 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 44514 } else { 44515 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 44516 } 44517 } 44518 } 44519 if yyr2 || yy2arr2 { 44520 r.WriteArrayElem() 44521 if false { 44522 } else { 44523 if z.EncBasicHandle().StringToRaw { 44524 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 44525 } else { 44526 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 44527 } 44528 } 44529 } else { 44530 r.WriteMapElemKey() 44531 if z.IsJSONHandle() { 44532 z.WriteStr("\"Namespace\"") 44533 } else { 44534 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 44535 } 44536 r.WriteMapElemValue() 44537 if false { 44538 } else { 44539 if z.EncBasicHandle().StringToRaw { 44540 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 44541 } else { 44542 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 44543 } 44544 } 44545 } 44546 if yyr2 || yy2arr2 { 44547 r.WriteArrayElem() 44548 if false { 44549 } else { 44550 if z.EncBasicHandle().StringToRaw { 44551 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 44552 } else { 44553 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 44554 } 44555 } 44556 } else { 44557 r.WriteMapElemKey() 44558 if z.IsJSONHandle() { 44559 z.WriteStr("\"AuthToken\"") 44560 } else { 44561 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 44562 } 44563 r.WriteMapElemValue() 44564 if false { 44565 } else { 44566 if z.EncBasicHandle().StringToRaw { 44567 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 44568 } else { 44569 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 44570 } 44571 } 44572 } 44573 if yyr2 || yy2arr2 { 44574 r.WriteArrayElem() 44575 if false { 44576 } else { 44577 r.EncodeBool(bool(x.Forwarded)) 44578 } 44579 } else { 44580 r.WriteMapElemKey() 44581 if z.IsJSONHandle() { 44582 z.WriteStr("\"Forwarded\"") 44583 } else { 44584 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 44585 } 44586 r.WriteMapElemValue() 44587 if false { 44588 } else { 44589 r.EncodeBool(bool(x.Forwarded)) 44590 } 44591 } 44592 if yyr2 || yy2arr2 { 44593 r.WriteArrayEnd() 44594 } else { 44595 r.WriteMapEnd() 44596 } 44597 } 44598 } 44599 } 44600 44601 func (x *AllocStopRequest) CodecDecodeSelf(d *codec1978.Decoder) { 44602 var h codecSelfer100 44603 z, r := codec1978.GenHelperDecoder(d) 44604 _, _, _ = h, z, r 44605 if false { 44606 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 44607 z.DecExtension(x, yyxt1) 44608 } else { 44609 yyct2 := r.ContainerType() 44610 if yyct2 == codecSelferValueTypeMap100 { 44611 yyl2 := r.ReadMapStart() 44612 if yyl2 == 0 { 44613 r.ReadMapEnd() 44614 } else { 44615 x.codecDecodeSelfFromMap(yyl2, d) 44616 } 44617 } else if yyct2 == codecSelferValueTypeArray100 { 44618 yyl2 := r.ReadArrayStart() 44619 if yyl2 == 0 { 44620 r.ReadArrayEnd() 44621 } else { 44622 x.codecDecodeSelfFromArray(yyl2, d) 44623 } 44624 } else { 44625 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 44626 } 44627 } 44628 } 44629 44630 func (x *AllocStopRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 44631 var h codecSelfer100 44632 z, r := codec1978.GenHelperDecoder(d) 44633 _, _, _ = h, z, r 44634 var yyhl3 bool = l >= 0 44635 for yyj3 := 0; ; yyj3++ { 44636 if yyhl3 { 44637 if yyj3 >= l { 44638 break 44639 } 44640 } else { 44641 if r.CheckBreak() { 44642 break 44643 } 44644 } 44645 r.ReadMapElemKey() 44646 yys3 := z.StringView(r.DecodeStringAsBytes()) 44647 r.ReadMapElemValue() 44648 switch yys3 { 44649 case "AllocID": 44650 if r.TryDecodeAsNil() { 44651 x.AllocID = "" 44652 } else { 44653 x.AllocID = (string)(r.DecodeString()) 44654 } 44655 case "Region": 44656 if r.TryDecodeAsNil() { 44657 x.WriteRequest.Region = "" 44658 } else { 44659 x.Region = (string)(r.DecodeString()) 44660 } 44661 case "Namespace": 44662 if r.TryDecodeAsNil() { 44663 x.WriteRequest.Namespace = "" 44664 } else { 44665 x.Namespace = (string)(r.DecodeString()) 44666 } 44667 case "AuthToken": 44668 if r.TryDecodeAsNil() { 44669 x.WriteRequest.AuthToken = "" 44670 } else { 44671 x.AuthToken = (string)(r.DecodeString()) 44672 } 44673 case "Forwarded": 44674 if r.TryDecodeAsNil() { 44675 x.WriteRequest.InternalRpcInfo.Forwarded = false 44676 } else { 44677 x.Forwarded = (bool)(r.DecodeBool()) 44678 } 44679 default: 44680 z.DecStructFieldNotFound(-1, yys3) 44681 } // end switch yys3 44682 } // end for yyj3 44683 r.ReadMapEnd() 44684 } 44685 44686 func (x *AllocStopRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 44687 var h codecSelfer100 44688 z, r := codec1978.GenHelperDecoder(d) 44689 _, _, _ = h, z, r 44690 var yyj9 int 44691 var yyb9 bool 44692 var yyhl9 bool = l >= 0 44693 yyj9++ 44694 if yyhl9 { 44695 yyb9 = yyj9 > l 44696 } else { 44697 yyb9 = r.CheckBreak() 44698 } 44699 if yyb9 { 44700 r.ReadArrayEnd() 44701 return 44702 } 44703 r.ReadArrayElem() 44704 if r.TryDecodeAsNil() { 44705 x.AllocID = "" 44706 } else { 44707 x.AllocID = (string)(r.DecodeString()) 44708 } 44709 yyj9++ 44710 if yyhl9 { 44711 yyb9 = yyj9 > l 44712 } else { 44713 yyb9 = r.CheckBreak() 44714 } 44715 if yyb9 { 44716 r.ReadArrayEnd() 44717 return 44718 } 44719 r.ReadArrayElem() 44720 if r.TryDecodeAsNil() { 44721 x.WriteRequest.Region = "" 44722 } else { 44723 x.Region = (string)(r.DecodeString()) 44724 } 44725 yyj9++ 44726 if yyhl9 { 44727 yyb9 = yyj9 > l 44728 } else { 44729 yyb9 = r.CheckBreak() 44730 } 44731 if yyb9 { 44732 r.ReadArrayEnd() 44733 return 44734 } 44735 r.ReadArrayElem() 44736 if r.TryDecodeAsNil() { 44737 x.WriteRequest.Namespace = "" 44738 } else { 44739 x.Namespace = (string)(r.DecodeString()) 44740 } 44741 yyj9++ 44742 if yyhl9 { 44743 yyb9 = yyj9 > l 44744 } else { 44745 yyb9 = r.CheckBreak() 44746 } 44747 if yyb9 { 44748 r.ReadArrayEnd() 44749 return 44750 } 44751 r.ReadArrayElem() 44752 if r.TryDecodeAsNil() { 44753 x.WriteRequest.AuthToken = "" 44754 } else { 44755 x.AuthToken = (string)(r.DecodeString()) 44756 } 44757 yyj9++ 44758 if yyhl9 { 44759 yyb9 = yyj9 > l 44760 } else { 44761 yyb9 = r.CheckBreak() 44762 } 44763 if yyb9 { 44764 r.ReadArrayEnd() 44765 return 44766 } 44767 r.ReadArrayElem() 44768 if r.TryDecodeAsNil() { 44769 x.WriteRequest.InternalRpcInfo.Forwarded = false 44770 } else { 44771 x.Forwarded = (bool)(r.DecodeBool()) 44772 } 44773 for { 44774 yyj9++ 44775 if yyhl9 { 44776 yyb9 = yyj9 > l 44777 } else { 44778 yyb9 = r.CheckBreak() 44779 } 44780 if yyb9 { 44781 break 44782 } 44783 r.ReadArrayElem() 44784 z.DecStructFieldNotFound(yyj9-1, "") 44785 } 44786 r.ReadArrayEnd() 44787 } 44788 44789 func (x *AllocStopResponse) CodecEncodeSelf(e *codec1978.Encoder) { 44790 var h codecSelfer100 44791 z, r := codec1978.GenHelperEncoder(e) 44792 _, _, _ = h, z, r 44793 if x == nil { 44794 r.EncodeNil() 44795 } else { 44796 if false { 44797 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 44798 z.EncExtension(x, yyxt1) 44799 } else { 44800 yysep2 := !z.EncBinary() 44801 yy2arr2 := z.EncBasicHandle().StructToArray 44802 _, _ = yysep2, yy2arr2 44803 const yyr2 bool = false // struct tag has 'toArray' 44804 if yyr2 || yy2arr2 { 44805 r.WriteArrayStart(2) 44806 } else { 44807 r.WriteMapStart(2) 44808 } 44809 if yyr2 || yy2arr2 { 44810 r.WriteArrayElem() 44811 if false { 44812 } else { 44813 if z.EncBasicHandle().StringToRaw { 44814 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 44815 } else { 44816 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 44817 } 44818 } 44819 } else { 44820 r.WriteMapElemKey() 44821 if z.IsJSONHandle() { 44822 z.WriteStr("\"EvalID\"") 44823 } else { 44824 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 44825 } 44826 r.WriteMapElemValue() 44827 if false { 44828 } else { 44829 if z.EncBasicHandle().StringToRaw { 44830 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 44831 } else { 44832 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 44833 } 44834 } 44835 } 44836 if yyr2 || yy2arr2 { 44837 r.WriteArrayElem() 44838 if false { 44839 } else { 44840 r.EncodeUint(uint64(x.Index)) 44841 } 44842 } else { 44843 r.WriteMapElemKey() 44844 if z.IsJSONHandle() { 44845 z.WriteStr("\"Index\"") 44846 } else { 44847 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 44848 } 44849 r.WriteMapElemValue() 44850 if false { 44851 } else { 44852 r.EncodeUint(uint64(x.Index)) 44853 } 44854 } 44855 if yyr2 || yy2arr2 { 44856 r.WriteArrayEnd() 44857 } else { 44858 r.WriteMapEnd() 44859 } 44860 } 44861 } 44862 } 44863 44864 func (x *AllocStopResponse) CodecDecodeSelf(d *codec1978.Decoder) { 44865 var h codecSelfer100 44866 z, r := codec1978.GenHelperDecoder(d) 44867 _, _, _ = h, z, r 44868 if false { 44869 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 44870 z.DecExtension(x, yyxt1) 44871 } else { 44872 yyct2 := r.ContainerType() 44873 if yyct2 == codecSelferValueTypeMap100 { 44874 yyl2 := r.ReadMapStart() 44875 if yyl2 == 0 { 44876 r.ReadMapEnd() 44877 } else { 44878 x.codecDecodeSelfFromMap(yyl2, d) 44879 } 44880 } else if yyct2 == codecSelferValueTypeArray100 { 44881 yyl2 := r.ReadArrayStart() 44882 if yyl2 == 0 { 44883 r.ReadArrayEnd() 44884 } else { 44885 x.codecDecodeSelfFromArray(yyl2, d) 44886 } 44887 } else { 44888 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 44889 } 44890 } 44891 } 44892 44893 func (x *AllocStopResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 44894 var h codecSelfer100 44895 z, r := codec1978.GenHelperDecoder(d) 44896 _, _, _ = h, z, r 44897 var yyhl3 bool = l >= 0 44898 for yyj3 := 0; ; yyj3++ { 44899 if yyhl3 { 44900 if yyj3 >= l { 44901 break 44902 } 44903 } else { 44904 if r.CheckBreak() { 44905 break 44906 } 44907 } 44908 r.ReadMapElemKey() 44909 yys3 := z.StringView(r.DecodeStringAsBytes()) 44910 r.ReadMapElemValue() 44911 switch yys3 { 44912 case "EvalID": 44913 if r.TryDecodeAsNil() { 44914 x.EvalID = "" 44915 } else { 44916 x.EvalID = (string)(r.DecodeString()) 44917 } 44918 case "Index": 44919 if r.TryDecodeAsNil() { 44920 x.WriteMeta.Index = 0 44921 } else { 44922 x.Index = (uint64)(r.DecodeUint64()) 44923 } 44924 default: 44925 z.DecStructFieldNotFound(-1, yys3) 44926 } // end switch yys3 44927 } // end for yyj3 44928 r.ReadMapEnd() 44929 } 44930 44931 func (x *AllocStopResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 44932 var h codecSelfer100 44933 z, r := codec1978.GenHelperDecoder(d) 44934 _, _, _ = h, z, r 44935 var yyj6 int 44936 var yyb6 bool 44937 var yyhl6 bool = l >= 0 44938 yyj6++ 44939 if yyhl6 { 44940 yyb6 = yyj6 > l 44941 } else { 44942 yyb6 = r.CheckBreak() 44943 } 44944 if yyb6 { 44945 r.ReadArrayEnd() 44946 return 44947 } 44948 r.ReadArrayElem() 44949 if r.TryDecodeAsNil() { 44950 x.EvalID = "" 44951 } else { 44952 x.EvalID = (string)(r.DecodeString()) 44953 } 44954 yyj6++ 44955 if yyhl6 { 44956 yyb6 = yyj6 > l 44957 } else { 44958 yyb6 = r.CheckBreak() 44959 } 44960 if yyb6 { 44961 r.ReadArrayEnd() 44962 return 44963 } 44964 r.ReadArrayElem() 44965 if r.TryDecodeAsNil() { 44966 x.WriteMeta.Index = 0 44967 } else { 44968 x.Index = (uint64)(r.DecodeUint64()) 44969 } 44970 for { 44971 yyj6++ 44972 if yyhl6 { 44973 yyb6 = yyj6 > l 44974 } else { 44975 yyb6 = r.CheckBreak() 44976 } 44977 if yyb6 { 44978 break 44979 } 44980 r.ReadArrayElem() 44981 z.DecStructFieldNotFound(yyj6-1, "") 44982 } 44983 r.ReadArrayEnd() 44984 } 44985 44986 func (x *AllocListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 44987 var h codecSelfer100 44988 z, r := codec1978.GenHelperEncoder(e) 44989 _, _, _ = h, z, r 44990 if x == nil { 44991 r.EncodeNil() 44992 } else { 44993 if false { 44994 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 44995 z.EncExtension(x, yyxt1) 44996 } else { 44997 yysep2 := !z.EncBinary() 44998 yy2arr2 := z.EncBasicHandle().StructToArray 44999 _, _ = yysep2, yy2arr2 45000 const yyr2 bool = false // struct tag has 'toArray' 45001 if yyr2 || yy2arr2 { 45002 r.WriteArrayStart(8) 45003 } else { 45004 r.WriteMapStart(8) 45005 } 45006 if yyr2 || yy2arr2 { 45007 r.WriteArrayElem() 45008 if false { 45009 } else { 45010 if z.EncBasicHandle().StringToRaw { 45011 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 45012 } else { 45013 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 45014 } 45015 } 45016 } else { 45017 r.WriteMapElemKey() 45018 if z.IsJSONHandle() { 45019 z.WriteStr("\"Region\"") 45020 } else { 45021 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 45022 } 45023 r.WriteMapElemValue() 45024 if false { 45025 } else { 45026 if z.EncBasicHandle().StringToRaw { 45027 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 45028 } else { 45029 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 45030 } 45031 } 45032 } 45033 if yyr2 || yy2arr2 { 45034 r.WriteArrayElem() 45035 if false { 45036 } else { 45037 if z.EncBasicHandle().StringToRaw { 45038 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 45039 } else { 45040 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 45041 } 45042 } 45043 } else { 45044 r.WriteMapElemKey() 45045 if z.IsJSONHandle() { 45046 z.WriteStr("\"Namespace\"") 45047 } else { 45048 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 45049 } 45050 r.WriteMapElemValue() 45051 if false { 45052 } else { 45053 if z.EncBasicHandle().StringToRaw { 45054 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 45055 } else { 45056 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 45057 } 45058 } 45059 } 45060 if yyr2 || yy2arr2 { 45061 r.WriteArrayElem() 45062 if false { 45063 } else { 45064 r.EncodeUint(uint64(x.MinQueryIndex)) 45065 } 45066 } else { 45067 r.WriteMapElemKey() 45068 if z.IsJSONHandle() { 45069 z.WriteStr("\"MinQueryIndex\"") 45070 } else { 45071 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 45072 } 45073 r.WriteMapElemValue() 45074 if false { 45075 } else { 45076 r.EncodeUint(uint64(x.MinQueryIndex)) 45077 } 45078 } 45079 if yyr2 || yy2arr2 { 45080 r.WriteArrayElem() 45081 if false { 45082 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 45083 z.EncExtension(x.MaxQueryTime, yyxt13) 45084 } else { 45085 r.EncodeInt(int64(x.MaxQueryTime)) 45086 } 45087 } else { 45088 r.WriteMapElemKey() 45089 if z.IsJSONHandle() { 45090 z.WriteStr("\"MaxQueryTime\"") 45091 } else { 45092 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 45093 } 45094 r.WriteMapElemValue() 45095 if false { 45096 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 45097 z.EncExtension(x.MaxQueryTime, yyxt14) 45098 } else { 45099 r.EncodeInt(int64(x.MaxQueryTime)) 45100 } 45101 } 45102 if yyr2 || yy2arr2 { 45103 r.WriteArrayElem() 45104 if false { 45105 } else { 45106 r.EncodeBool(bool(x.AllowStale)) 45107 } 45108 } else { 45109 r.WriteMapElemKey() 45110 if z.IsJSONHandle() { 45111 z.WriteStr("\"AllowStale\"") 45112 } else { 45113 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 45114 } 45115 r.WriteMapElemValue() 45116 if false { 45117 } else { 45118 r.EncodeBool(bool(x.AllowStale)) 45119 } 45120 } 45121 if yyr2 || yy2arr2 { 45122 r.WriteArrayElem() 45123 if false { 45124 } else { 45125 if z.EncBasicHandle().StringToRaw { 45126 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 45127 } else { 45128 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 45129 } 45130 } 45131 } else { 45132 r.WriteMapElemKey() 45133 if z.IsJSONHandle() { 45134 z.WriteStr("\"Prefix\"") 45135 } else { 45136 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 45137 } 45138 r.WriteMapElemValue() 45139 if false { 45140 } else { 45141 if z.EncBasicHandle().StringToRaw { 45142 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 45143 } else { 45144 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 45145 } 45146 } 45147 } 45148 if yyr2 || yy2arr2 { 45149 r.WriteArrayElem() 45150 if false { 45151 } else { 45152 if z.EncBasicHandle().StringToRaw { 45153 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 45154 } else { 45155 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 45156 } 45157 } 45158 } else { 45159 r.WriteMapElemKey() 45160 if z.IsJSONHandle() { 45161 z.WriteStr("\"AuthToken\"") 45162 } else { 45163 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 45164 } 45165 r.WriteMapElemValue() 45166 if false { 45167 } else { 45168 if z.EncBasicHandle().StringToRaw { 45169 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 45170 } else { 45171 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 45172 } 45173 } 45174 } 45175 if yyr2 || yy2arr2 { 45176 r.WriteArrayElem() 45177 if false { 45178 } else { 45179 r.EncodeBool(bool(x.Forwarded)) 45180 } 45181 } else { 45182 r.WriteMapElemKey() 45183 if z.IsJSONHandle() { 45184 z.WriteStr("\"Forwarded\"") 45185 } else { 45186 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 45187 } 45188 r.WriteMapElemValue() 45189 if false { 45190 } else { 45191 r.EncodeBool(bool(x.Forwarded)) 45192 } 45193 } 45194 if yyr2 || yy2arr2 { 45195 r.WriteArrayEnd() 45196 } else { 45197 r.WriteMapEnd() 45198 } 45199 } 45200 } 45201 } 45202 45203 func (x *AllocListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 45204 var h codecSelfer100 45205 z, r := codec1978.GenHelperDecoder(d) 45206 _, _, _ = h, z, r 45207 if false { 45208 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 45209 z.DecExtension(x, yyxt1) 45210 } else { 45211 yyct2 := r.ContainerType() 45212 if yyct2 == codecSelferValueTypeMap100 { 45213 yyl2 := r.ReadMapStart() 45214 if yyl2 == 0 { 45215 r.ReadMapEnd() 45216 } else { 45217 x.codecDecodeSelfFromMap(yyl2, d) 45218 } 45219 } else if yyct2 == codecSelferValueTypeArray100 { 45220 yyl2 := r.ReadArrayStart() 45221 if yyl2 == 0 { 45222 r.ReadArrayEnd() 45223 } else { 45224 x.codecDecodeSelfFromArray(yyl2, d) 45225 } 45226 } else { 45227 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 45228 } 45229 } 45230 } 45231 45232 func (x *AllocListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 45233 var h codecSelfer100 45234 z, r := codec1978.GenHelperDecoder(d) 45235 _, _, _ = h, z, r 45236 var yyhl3 bool = l >= 0 45237 for yyj3 := 0; ; yyj3++ { 45238 if yyhl3 { 45239 if yyj3 >= l { 45240 break 45241 } 45242 } else { 45243 if r.CheckBreak() { 45244 break 45245 } 45246 } 45247 r.ReadMapElemKey() 45248 yys3 := z.StringView(r.DecodeStringAsBytes()) 45249 r.ReadMapElemValue() 45250 switch yys3 { 45251 case "Region": 45252 if r.TryDecodeAsNil() { 45253 x.QueryOptions.Region = "" 45254 } else { 45255 x.Region = (string)(r.DecodeString()) 45256 } 45257 case "Namespace": 45258 if r.TryDecodeAsNil() { 45259 x.QueryOptions.Namespace = "" 45260 } else { 45261 x.Namespace = (string)(r.DecodeString()) 45262 } 45263 case "MinQueryIndex": 45264 if r.TryDecodeAsNil() { 45265 x.QueryOptions.MinQueryIndex = 0 45266 } else { 45267 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 45268 } 45269 case "MaxQueryTime": 45270 if r.TryDecodeAsNil() { 45271 x.QueryOptions.MaxQueryTime = 0 45272 } else { 45273 if false { 45274 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 45275 z.DecExtension(x.MaxQueryTime, yyxt8) 45276 } else { 45277 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 45278 } 45279 } 45280 case "AllowStale": 45281 if r.TryDecodeAsNil() { 45282 x.QueryOptions.AllowStale = false 45283 } else { 45284 x.AllowStale = (bool)(r.DecodeBool()) 45285 } 45286 case "Prefix": 45287 if r.TryDecodeAsNil() { 45288 x.QueryOptions.Prefix = "" 45289 } else { 45290 x.Prefix = (string)(r.DecodeString()) 45291 } 45292 case "AuthToken": 45293 if r.TryDecodeAsNil() { 45294 x.QueryOptions.AuthToken = "" 45295 } else { 45296 x.AuthToken = (string)(r.DecodeString()) 45297 } 45298 case "Forwarded": 45299 if r.TryDecodeAsNil() { 45300 x.QueryOptions.InternalRpcInfo.Forwarded = false 45301 } else { 45302 x.Forwarded = (bool)(r.DecodeBool()) 45303 } 45304 default: 45305 z.DecStructFieldNotFound(-1, yys3) 45306 } // end switch yys3 45307 } // end for yyj3 45308 r.ReadMapEnd() 45309 } 45310 45311 func (x *AllocListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 45312 var h codecSelfer100 45313 z, r := codec1978.GenHelperDecoder(d) 45314 _, _, _ = h, z, r 45315 var yyj13 int 45316 var yyb13 bool 45317 var yyhl13 bool = l >= 0 45318 yyj13++ 45319 if yyhl13 { 45320 yyb13 = yyj13 > l 45321 } else { 45322 yyb13 = r.CheckBreak() 45323 } 45324 if yyb13 { 45325 r.ReadArrayEnd() 45326 return 45327 } 45328 r.ReadArrayElem() 45329 if r.TryDecodeAsNil() { 45330 x.QueryOptions.Region = "" 45331 } else { 45332 x.Region = (string)(r.DecodeString()) 45333 } 45334 yyj13++ 45335 if yyhl13 { 45336 yyb13 = yyj13 > l 45337 } else { 45338 yyb13 = r.CheckBreak() 45339 } 45340 if yyb13 { 45341 r.ReadArrayEnd() 45342 return 45343 } 45344 r.ReadArrayElem() 45345 if r.TryDecodeAsNil() { 45346 x.QueryOptions.Namespace = "" 45347 } else { 45348 x.Namespace = (string)(r.DecodeString()) 45349 } 45350 yyj13++ 45351 if yyhl13 { 45352 yyb13 = yyj13 > l 45353 } else { 45354 yyb13 = r.CheckBreak() 45355 } 45356 if yyb13 { 45357 r.ReadArrayEnd() 45358 return 45359 } 45360 r.ReadArrayElem() 45361 if r.TryDecodeAsNil() { 45362 x.QueryOptions.MinQueryIndex = 0 45363 } else { 45364 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 45365 } 45366 yyj13++ 45367 if yyhl13 { 45368 yyb13 = yyj13 > l 45369 } else { 45370 yyb13 = r.CheckBreak() 45371 } 45372 if yyb13 { 45373 r.ReadArrayEnd() 45374 return 45375 } 45376 r.ReadArrayElem() 45377 if r.TryDecodeAsNil() { 45378 x.QueryOptions.MaxQueryTime = 0 45379 } else { 45380 if false { 45381 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 45382 z.DecExtension(x.MaxQueryTime, yyxt18) 45383 } else { 45384 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 45385 } 45386 } 45387 yyj13++ 45388 if yyhl13 { 45389 yyb13 = yyj13 > l 45390 } else { 45391 yyb13 = r.CheckBreak() 45392 } 45393 if yyb13 { 45394 r.ReadArrayEnd() 45395 return 45396 } 45397 r.ReadArrayElem() 45398 if r.TryDecodeAsNil() { 45399 x.QueryOptions.AllowStale = false 45400 } else { 45401 x.AllowStale = (bool)(r.DecodeBool()) 45402 } 45403 yyj13++ 45404 if yyhl13 { 45405 yyb13 = yyj13 > l 45406 } else { 45407 yyb13 = r.CheckBreak() 45408 } 45409 if yyb13 { 45410 r.ReadArrayEnd() 45411 return 45412 } 45413 r.ReadArrayElem() 45414 if r.TryDecodeAsNil() { 45415 x.QueryOptions.Prefix = "" 45416 } else { 45417 x.Prefix = (string)(r.DecodeString()) 45418 } 45419 yyj13++ 45420 if yyhl13 { 45421 yyb13 = yyj13 > l 45422 } else { 45423 yyb13 = r.CheckBreak() 45424 } 45425 if yyb13 { 45426 r.ReadArrayEnd() 45427 return 45428 } 45429 r.ReadArrayElem() 45430 if r.TryDecodeAsNil() { 45431 x.QueryOptions.AuthToken = "" 45432 } else { 45433 x.AuthToken = (string)(r.DecodeString()) 45434 } 45435 yyj13++ 45436 if yyhl13 { 45437 yyb13 = yyj13 > l 45438 } else { 45439 yyb13 = r.CheckBreak() 45440 } 45441 if yyb13 { 45442 r.ReadArrayEnd() 45443 return 45444 } 45445 r.ReadArrayElem() 45446 if r.TryDecodeAsNil() { 45447 x.QueryOptions.InternalRpcInfo.Forwarded = false 45448 } else { 45449 x.Forwarded = (bool)(r.DecodeBool()) 45450 } 45451 for { 45452 yyj13++ 45453 if yyhl13 { 45454 yyb13 = yyj13 > l 45455 } else { 45456 yyb13 = r.CheckBreak() 45457 } 45458 if yyb13 { 45459 break 45460 } 45461 r.ReadArrayElem() 45462 z.DecStructFieldNotFound(yyj13-1, "") 45463 } 45464 r.ReadArrayEnd() 45465 } 45466 45467 func (x *AllocSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { 45468 var h codecSelfer100 45469 z, r := codec1978.GenHelperEncoder(e) 45470 _, _, _ = h, z, r 45471 if x == nil { 45472 r.EncodeNil() 45473 } else { 45474 if false { 45475 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 45476 z.EncExtension(x, yyxt1) 45477 } else { 45478 yysep2 := !z.EncBinary() 45479 yy2arr2 := z.EncBasicHandle().StructToArray 45480 _, _ = yysep2, yy2arr2 45481 const yyr2 bool = false // struct tag has 'toArray' 45482 if yyr2 || yy2arr2 { 45483 r.WriteArrayStart(9) 45484 } else { 45485 r.WriteMapStart(9) 45486 } 45487 if yyr2 || yy2arr2 { 45488 r.WriteArrayElem() 45489 if false { 45490 } else { 45491 if z.EncBasicHandle().StringToRaw { 45492 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 45493 } else { 45494 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 45495 } 45496 } 45497 } else { 45498 r.WriteMapElemKey() 45499 if z.IsJSONHandle() { 45500 z.WriteStr("\"AllocID\"") 45501 } else { 45502 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) 45503 } 45504 r.WriteMapElemValue() 45505 if false { 45506 } else { 45507 if z.EncBasicHandle().StringToRaw { 45508 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 45509 } else { 45510 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 45511 } 45512 } 45513 } 45514 if yyr2 || yy2arr2 { 45515 r.WriteArrayElem() 45516 if false { 45517 } else { 45518 if z.EncBasicHandle().StringToRaw { 45519 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 45520 } else { 45521 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 45522 } 45523 } 45524 } else { 45525 r.WriteMapElemKey() 45526 if z.IsJSONHandle() { 45527 z.WriteStr("\"Region\"") 45528 } else { 45529 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 45530 } 45531 r.WriteMapElemValue() 45532 if false { 45533 } else { 45534 if z.EncBasicHandle().StringToRaw { 45535 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 45536 } else { 45537 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 45538 } 45539 } 45540 } 45541 if yyr2 || yy2arr2 { 45542 r.WriteArrayElem() 45543 if false { 45544 } else { 45545 if z.EncBasicHandle().StringToRaw { 45546 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 45547 } else { 45548 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 45549 } 45550 } 45551 } else { 45552 r.WriteMapElemKey() 45553 if z.IsJSONHandle() { 45554 z.WriteStr("\"Namespace\"") 45555 } else { 45556 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 45557 } 45558 r.WriteMapElemValue() 45559 if false { 45560 } else { 45561 if z.EncBasicHandle().StringToRaw { 45562 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 45563 } else { 45564 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 45565 } 45566 } 45567 } 45568 if yyr2 || yy2arr2 { 45569 r.WriteArrayElem() 45570 if false { 45571 } else { 45572 r.EncodeUint(uint64(x.MinQueryIndex)) 45573 } 45574 } else { 45575 r.WriteMapElemKey() 45576 if z.IsJSONHandle() { 45577 z.WriteStr("\"MinQueryIndex\"") 45578 } else { 45579 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 45580 } 45581 r.WriteMapElemValue() 45582 if false { 45583 } else { 45584 r.EncodeUint(uint64(x.MinQueryIndex)) 45585 } 45586 } 45587 if yyr2 || yy2arr2 { 45588 r.WriteArrayElem() 45589 if false { 45590 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 45591 z.EncExtension(x.MaxQueryTime, yyxt16) 45592 } else { 45593 r.EncodeInt(int64(x.MaxQueryTime)) 45594 } 45595 } else { 45596 r.WriteMapElemKey() 45597 if z.IsJSONHandle() { 45598 z.WriteStr("\"MaxQueryTime\"") 45599 } else { 45600 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 45601 } 45602 r.WriteMapElemValue() 45603 if false { 45604 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 45605 z.EncExtension(x.MaxQueryTime, yyxt17) 45606 } else { 45607 r.EncodeInt(int64(x.MaxQueryTime)) 45608 } 45609 } 45610 if yyr2 || yy2arr2 { 45611 r.WriteArrayElem() 45612 if false { 45613 } else { 45614 r.EncodeBool(bool(x.AllowStale)) 45615 } 45616 } else { 45617 r.WriteMapElemKey() 45618 if z.IsJSONHandle() { 45619 z.WriteStr("\"AllowStale\"") 45620 } else { 45621 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 45622 } 45623 r.WriteMapElemValue() 45624 if false { 45625 } else { 45626 r.EncodeBool(bool(x.AllowStale)) 45627 } 45628 } 45629 if yyr2 || yy2arr2 { 45630 r.WriteArrayElem() 45631 if false { 45632 } else { 45633 if z.EncBasicHandle().StringToRaw { 45634 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 45635 } else { 45636 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 45637 } 45638 } 45639 } else { 45640 r.WriteMapElemKey() 45641 if z.IsJSONHandle() { 45642 z.WriteStr("\"Prefix\"") 45643 } else { 45644 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 45645 } 45646 r.WriteMapElemValue() 45647 if false { 45648 } else { 45649 if z.EncBasicHandle().StringToRaw { 45650 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 45651 } else { 45652 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 45653 } 45654 } 45655 } 45656 if yyr2 || yy2arr2 { 45657 r.WriteArrayElem() 45658 if false { 45659 } else { 45660 if z.EncBasicHandle().StringToRaw { 45661 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 45662 } else { 45663 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 45664 } 45665 } 45666 } else { 45667 r.WriteMapElemKey() 45668 if z.IsJSONHandle() { 45669 z.WriteStr("\"AuthToken\"") 45670 } else { 45671 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 45672 } 45673 r.WriteMapElemValue() 45674 if false { 45675 } else { 45676 if z.EncBasicHandle().StringToRaw { 45677 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 45678 } else { 45679 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 45680 } 45681 } 45682 } 45683 if yyr2 || yy2arr2 { 45684 r.WriteArrayElem() 45685 if false { 45686 } else { 45687 r.EncodeBool(bool(x.Forwarded)) 45688 } 45689 } else { 45690 r.WriteMapElemKey() 45691 if z.IsJSONHandle() { 45692 z.WriteStr("\"Forwarded\"") 45693 } else { 45694 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 45695 } 45696 r.WriteMapElemValue() 45697 if false { 45698 } else { 45699 r.EncodeBool(bool(x.Forwarded)) 45700 } 45701 } 45702 if yyr2 || yy2arr2 { 45703 r.WriteArrayEnd() 45704 } else { 45705 r.WriteMapEnd() 45706 } 45707 } 45708 } 45709 } 45710 45711 func (x *AllocSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { 45712 var h codecSelfer100 45713 z, r := codec1978.GenHelperDecoder(d) 45714 _, _, _ = h, z, r 45715 if false { 45716 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 45717 z.DecExtension(x, yyxt1) 45718 } else { 45719 yyct2 := r.ContainerType() 45720 if yyct2 == codecSelferValueTypeMap100 { 45721 yyl2 := r.ReadMapStart() 45722 if yyl2 == 0 { 45723 r.ReadMapEnd() 45724 } else { 45725 x.codecDecodeSelfFromMap(yyl2, d) 45726 } 45727 } else if yyct2 == codecSelferValueTypeArray100 { 45728 yyl2 := r.ReadArrayStart() 45729 if yyl2 == 0 { 45730 r.ReadArrayEnd() 45731 } else { 45732 x.codecDecodeSelfFromArray(yyl2, d) 45733 } 45734 } else { 45735 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 45736 } 45737 } 45738 } 45739 45740 func (x *AllocSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 45741 var h codecSelfer100 45742 z, r := codec1978.GenHelperDecoder(d) 45743 _, _, _ = h, z, r 45744 var yyhl3 bool = l >= 0 45745 for yyj3 := 0; ; yyj3++ { 45746 if yyhl3 { 45747 if yyj3 >= l { 45748 break 45749 } 45750 } else { 45751 if r.CheckBreak() { 45752 break 45753 } 45754 } 45755 r.ReadMapElemKey() 45756 yys3 := z.StringView(r.DecodeStringAsBytes()) 45757 r.ReadMapElemValue() 45758 switch yys3 { 45759 case "AllocID": 45760 if r.TryDecodeAsNil() { 45761 x.AllocID = "" 45762 } else { 45763 x.AllocID = (string)(r.DecodeString()) 45764 } 45765 case "Region": 45766 if r.TryDecodeAsNil() { 45767 x.QueryOptions.Region = "" 45768 } else { 45769 x.Region = (string)(r.DecodeString()) 45770 } 45771 case "Namespace": 45772 if r.TryDecodeAsNil() { 45773 x.QueryOptions.Namespace = "" 45774 } else { 45775 x.Namespace = (string)(r.DecodeString()) 45776 } 45777 case "MinQueryIndex": 45778 if r.TryDecodeAsNil() { 45779 x.QueryOptions.MinQueryIndex = 0 45780 } else { 45781 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 45782 } 45783 case "MaxQueryTime": 45784 if r.TryDecodeAsNil() { 45785 x.QueryOptions.MaxQueryTime = 0 45786 } else { 45787 if false { 45788 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 45789 z.DecExtension(x.MaxQueryTime, yyxt9) 45790 } else { 45791 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 45792 } 45793 } 45794 case "AllowStale": 45795 if r.TryDecodeAsNil() { 45796 x.QueryOptions.AllowStale = false 45797 } else { 45798 x.AllowStale = (bool)(r.DecodeBool()) 45799 } 45800 case "Prefix": 45801 if r.TryDecodeAsNil() { 45802 x.QueryOptions.Prefix = "" 45803 } else { 45804 x.Prefix = (string)(r.DecodeString()) 45805 } 45806 case "AuthToken": 45807 if r.TryDecodeAsNil() { 45808 x.QueryOptions.AuthToken = "" 45809 } else { 45810 x.AuthToken = (string)(r.DecodeString()) 45811 } 45812 case "Forwarded": 45813 if r.TryDecodeAsNil() { 45814 x.QueryOptions.InternalRpcInfo.Forwarded = false 45815 } else { 45816 x.Forwarded = (bool)(r.DecodeBool()) 45817 } 45818 default: 45819 z.DecStructFieldNotFound(-1, yys3) 45820 } // end switch yys3 45821 } // end for yyj3 45822 r.ReadMapEnd() 45823 } 45824 45825 func (x *AllocSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 45826 var h codecSelfer100 45827 z, r := codec1978.GenHelperDecoder(d) 45828 _, _, _ = h, z, r 45829 var yyj14 int 45830 var yyb14 bool 45831 var yyhl14 bool = l >= 0 45832 yyj14++ 45833 if yyhl14 { 45834 yyb14 = yyj14 > l 45835 } else { 45836 yyb14 = r.CheckBreak() 45837 } 45838 if yyb14 { 45839 r.ReadArrayEnd() 45840 return 45841 } 45842 r.ReadArrayElem() 45843 if r.TryDecodeAsNil() { 45844 x.AllocID = "" 45845 } else { 45846 x.AllocID = (string)(r.DecodeString()) 45847 } 45848 yyj14++ 45849 if yyhl14 { 45850 yyb14 = yyj14 > l 45851 } else { 45852 yyb14 = r.CheckBreak() 45853 } 45854 if yyb14 { 45855 r.ReadArrayEnd() 45856 return 45857 } 45858 r.ReadArrayElem() 45859 if r.TryDecodeAsNil() { 45860 x.QueryOptions.Region = "" 45861 } else { 45862 x.Region = (string)(r.DecodeString()) 45863 } 45864 yyj14++ 45865 if yyhl14 { 45866 yyb14 = yyj14 > l 45867 } else { 45868 yyb14 = r.CheckBreak() 45869 } 45870 if yyb14 { 45871 r.ReadArrayEnd() 45872 return 45873 } 45874 r.ReadArrayElem() 45875 if r.TryDecodeAsNil() { 45876 x.QueryOptions.Namespace = "" 45877 } else { 45878 x.Namespace = (string)(r.DecodeString()) 45879 } 45880 yyj14++ 45881 if yyhl14 { 45882 yyb14 = yyj14 > l 45883 } else { 45884 yyb14 = r.CheckBreak() 45885 } 45886 if yyb14 { 45887 r.ReadArrayEnd() 45888 return 45889 } 45890 r.ReadArrayElem() 45891 if r.TryDecodeAsNil() { 45892 x.QueryOptions.MinQueryIndex = 0 45893 } else { 45894 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 45895 } 45896 yyj14++ 45897 if yyhl14 { 45898 yyb14 = yyj14 > l 45899 } else { 45900 yyb14 = r.CheckBreak() 45901 } 45902 if yyb14 { 45903 r.ReadArrayEnd() 45904 return 45905 } 45906 r.ReadArrayElem() 45907 if r.TryDecodeAsNil() { 45908 x.QueryOptions.MaxQueryTime = 0 45909 } else { 45910 if false { 45911 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 45912 z.DecExtension(x.MaxQueryTime, yyxt20) 45913 } else { 45914 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 45915 } 45916 } 45917 yyj14++ 45918 if yyhl14 { 45919 yyb14 = yyj14 > l 45920 } else { 45921 yyb14 = r.CheckBreak() 45922 } 45923 if yyb14 { 45924 r.ReadArrayEnd() 45925 return 45926 } 45927 r.ReadArrayElem() 45928 if r.TryDecodeAsNil() { 45929 x.QueryOptions.AllowStale = false 45930 } else { 45931 x.AllowStale = (bool)(r.DecodeBool()) 45932 } 45933 yyj14++ 45934 if yyhl14 { 45935 yyb14 = yyj14 > l 45936 } else { 45937 yyb14 = r.CheckBreak() 45938 } 45939 if yyb14 { 45940 r.ReadArrayEnd() 45941 return 45942 } 45943 r.ReadArrayElem() 45944 if r.TryDecodeAsNil() { 45945 x.QueryOptions.Prefix = "" 45946 } else { 45947 x.Prefix = (string)(r.DecodeString()) 45948 } 45949 yyj14++ 45950 if yyhl14 { 45951 yyb14 = yyj14 > l 45952 } else { 45953 yyb14 = r.CheckBreak() 45954 } 45955 if yyb14 { 45956 r.ReadArrayEnd() 45957 return 45958 } 45959 r.ReadArrayElem() 45960 if r.TryDecodeAsNil() { 45961 x.QueryOptions.AuthToken = "" 45962 } else { 45963 x.AuthToken = (string)(r.DecodeString()) 45964 } 45965 yyj14++ 45966 if yyhl14 { 45967 yyb14 = yyj14 > l 45968 } else { 45969 yyb14 = r.CheckBreak() 45970 } 45971 if yyb14 { 45972 r.ReadArrayEnd() 45973 return 45974 } 45975 r.ReadArrayElem() 45976 if r.TryDecodeAsNil() { 45977 x.QueryOptions.InternalRpcInfo.Forwarded = false 45978 } else { 45979 x.Forwarded = (bool)(r.DecodeBool()) 45980 } 45981 for { 45982 yyj14++ 45983 if yyhl14 { 45984 yyb14 = yyj14 > l 45985 } else { 45986 yyb14 = r.CheckBreak() 45987 } 45988 if yyb14 { 45989 break 45990 } 45991 r.ReadArrayElem() 45992 z.DecStructFieldNotFound(yyj14-1, "") 45993 } 45994 r.ReadArrayEnd() 45995 } 45996 45997 func (x *AllocSignalRequest) CodecEncodeSelf(e *codec1978.Encoder) { 45998 var h codecSelfer100 45999 z, r := codec1978.GenHelperEncoder(e) 46000 _, _, _ = h, z, r 46001 if x == nil { 46002 r.EncodeNil() 46003 } else { 46004 if false { 46005 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 46006 z.EncExtension(x, yyxt1) 46007 } else { 46008 yysep2 := !z.EncBinary() 46009 yy2arr2 := z.EncBasicHandle().StructToArray 46010 _, _ = yysep2, yy2arr2 46011 const yyr2 bool = false // struct tag has 'toArray' 46012 if yyr2 || yy2arr2 { 46013 r.WriteArrayStart(11) 46014 } else { 46015 r.WriteMapStart(11) 46016 } 46017 if yyr2 || yy2arr2 { 46018 r.WriteArrayElem() 46019 if false { 46020 } else { 46021 if z.EncBasicHandle().StringToRaw { 46022 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 46023 } else { 46024 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 46025 } 46026 } 46027 } else { 46028 r.WriteMapElemKey() 46029 if z.IsJSONHandle() { 46030 z.WriteStr("\"AllocID\"") 46031 } else { 46032 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) 46033 } 46034 r.WriteMapElemValue() 46035 if false { 46036 } else { 46037 if z.EncBasicHandle().StringToRaw { 46038 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 46039 } else { 46040 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 46041 } 46042 } 46043 } 46044 if yyr2 || yy2arr2 { 46045 r.WriteArrayElem() 46046 if false { 46047 } else { 46048 if z.EncBasicHandle().StringToRaw { 46049 r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) 46050 } else { 46051 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) 46052 } 46053 } 46054 } else { 46055 r.WriteMapElemKey() 46056 if z.IsJSONHandle() { 46057 z.WriteStr("\"Task\"") 46058 } else { 46059 r.EncodeStringEnc(codecSelferCcUTF8100, `Task`) 46060 } 46061 r.WriteMapElemValue() 46062 if false { 46063 } else { 46064 if z.EncBasicHandle().StringToRaw { 46065 r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) 46066 } else { 46067 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) 46068 } 46069 } 46070 } 46071 if yyr2 || yy2arr2 { 46072 r.WriteArrayElem() 46073 if false { 46074 } else { 46075 if z.EncBasicHandle().StringToRaw { 46076 r.EncodeStringBytesRaw(z.BytesView(string(x.Signal))) 46077 } else { 46078 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Signal)) 46079 } 46080 } 46081 } else { 46082 r.WriteMapElemKey() 46083 if z.IsJSONHandle() { 46084 z.WriteStr("\"Signal\"") 46085 } else { 46086 r.EncodeStringEnc(codecSelferCcUTF8100, `Signal`) 46087 } 46088 r.WriteMapElemValue() 46089 if false { 46090 } else { 46091 if z.EncBasicHandle().StringToRaw { 46092 r.EncodeStringBytesRaw(z.BytesView(string(x.Signal))) 46093 } else { 46094 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Signal)) 46095 } 46096 } 46097 } 46098 if yyr2 || yy2arr2 { 46099 r.WriteArrayElem() 46100 if false { 46101 } else { 46102 if z.EncBasicHandle().StringToRaw { 46103 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 46104 } else { 46105 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 46106 } 46107 } 46108 } else { 46109 r.WriteMapElemKey() 46110 if z.IsJSONHandle() { 46111 z.WriteStr("\"Region\"") 46112 } else { 46113 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 46114 } 46115 r.WriteMapElemValue() 46116 if false { 46117 } else { 46118 if z.EncBasicHandle().StringToRaw { 46119 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 46120 } else { 46121 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 46122 } 46123 } 46124 } 46125 if yyr2 || yy2arr2 { 46126 r.WriteArrayElem() 46127 if false { 46128 } else { 46129 if z.EncBasicHandle().StringToRaw { 46130 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 46131 } else { 46132 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 46133 } 46134 } 46135 } else { 46136 r.WriteMapElemKey() 46137 if z.IsJSONHandle() { 46138 z.WriteStr("\"Namespace\"") 46139 } else { 46140 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 46141 } 46142 r.WriteMapElemValue() 46143 if false { 46144 } else { 46145 if z.EncBasicHandle().StringToRaw { 46146 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 46147 } else { 46148 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 46149 } 46150 } 46151 } 46152 if yyr2 || yy2arr2 { 46153 r.WriteArrayElem() 46154 if false { 46155 } else { 46156 r.EncodeUint(uint64(x.MinQueryIndex)) 46157 } 46158 } else { 46159 r.WriteMapElemKey() 46160 if z.IsJSONHandle() { 46161 z.WriteStr("\"MinQueryIndex\"") 46162 } else { 46163 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 46164 } 46165 r.WriteMapElemValue() 46166 if false { 46167 } else { 46168 r.EncodeUint(uint64(x.MinQueryIndex)) 46169 } 46170 } 46171 if yyr2 || yy2arr2 { 46172 r.WriteArrayElem() 46173 if false { 46174 } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { 46175 z.EncExtension(x.MaxQueryTime, yyxt22) 46176 } else { 46177 r.EncodeInt(int64(x.MaxQueryTime)) 46178 } 46179 } else { 46180 r.WriteMapElemKey() 46181 if z.IsJSONHandle() { 46182 z.WriteStr("\"MaxQueryTime\"") 46183 } else { 46184 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 46185 } 46186 r.WriteMapElemValue() 46187 if false { 46188 } else if yyxt23 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt23 != nil { 46189 z.EncExtension(x.MaxQueryTime, yyxt23) 46190 } else { 46191 r.EncodeInt(int64(x.MaxQueryTime)) 46192 } 46193 } 46194 if yyr2 || yy2arr2 { 46195 r.WriteArrayElem() 46196 if false { 46197 } else { 46198 r.EncodeBool(bool(x.AllowStale)) 46199 } 46200 } else { 46201 r.WriteMapElemKey() 46202 if z.IsJSONHandle() { 46203 z.WriteStr("\"AllowStale\"") 46204 } else { 46205 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 46206 } 46207 r.WriteMapElemValue() 46208 if false { 46209 } else { 46210 r.EncodeBool(bool(x.AllowStale)) 46211 } 46212 } 46213 if yyr2 || yy2arr2 { 46214 r.WriteArrayElem() 46215 if false { 46216 } else { 46217 if z.EncBasicHandle().StringToRaw { 46218 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 46219 } else { 46220 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 46221 } 46222 } 46223 } else { 46224 r.WriteMapElemKey() 46225 if z.IsJSONHandle() { 46226 z.WriteStr("\"Prefix\"") 46227 } else { 46228 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 46229 } 46230 r.WriteMapElemValue() 46231 if false { 46232 } else { 46233 if z.EncBasicHandle().StringToRaw { 46234 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 46235 } else { 46236 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 46237 } 46238 } 46239 } 46240 if yyr2 || yy2arr2 { 46241 r.WriteArrayElem() 46242 if false { 46243 } else { 46244 if z.EncBasicHandle().StringToRaw { 46245 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 46246 } else { 46247 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 46248 } 46249 } 46250 } else { 46251 r.WriteMapElemKey() 46252 if z.IsJSONHandle() { 46253 z.WriteStr("\"AuthToken\"") 46254 } else { 46255 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 46256 } 46257 r.WriteMapElemValue() 46258 if false { 46259 } else { 46260 if z.EncBasicHandle().StringToRaw { 46261 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 46262 } else { 46263 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 46264 } 46265 } 46266 } 46267 if yyr2 || yy2arr2 { 46268 r.WriteArrayElem() 46269 if false { 46270 } else { 46271 r.EncodeBool(bool(x.Forwarded)) 46272 } 46273 } else { 46274 r.WriteMapElemKey() 46275 if z.IsJSONHandle() { 46276 z.WriteStr("\"Forwarded\"") 46277 } else { 46278 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 46279 } 46280 r.WriteMapElemValue() 46281 if false { 46282 } else { 46283 r.EncodeBool(bool(x.Forwarded)) 46284 } 46285 } 46286 if yyr2 || yy2arr2 { 46287 r.WriteArrayEnd() 46288 } else { 46289 r.WriteMapEnd() 46290 } 46291 } 46292 } 46293 } 46294 46295 func (x *AllocSignalRequest) CodecDecodeSelf(d *codec1978.Decoder) { 46296 var h codecSelfer100 46297 z, r := codec1978.GenHelperDecoder(d) 46298 _, _, _ = h, z, r 46299 if false { 46300 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 46301 z.DecExtension(x, yyxt1) 46302 } else { 46303 yyct2 := r.ContainerType() 46304 if yyct2 == codecSelferValueTypeMap100 { 46305 yyl2 := r.ReadMapStart() 46306 if yyl2 == 0 { 46307 r.ReadMapEnd() 46308 } else { 46309 x.codecDecodeSelfFromMap(yyl2, d) 46310 } 46311 } else if yyct2 == codecSelferValueTypeArray100 { 46312 yyl2 := r.ReadArrayStart() 46313 if yyl2 == 0 { 46314 r.ReadArrayEnd() 46315 } else { 46316 x.codecDecodeSelfFromArray(yyl2, d) 46317 } 46318 } else { 46319 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 46320 } 46321 } 46322 } 46323 46324 func (x *AllocSignalRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 46325 var h codecSelfer100 46326 z, r := codec1978.GenHelperDecoder(d) 46327 _, _, _ = h, z, r 46328 var yyhl3 bool = l >= 0 46329 for yyj3 := 0; ; yyj3++ { 46330 if yyhl3 { 46331 if yyj3 >= l { 46332 break 46333 } 46334 } else { 46335 if r.CheckBreak() { 46336 break 46337 } 46338 } 46339 r.ReadMapElemKey() 46340 yys3 := z.StringView(r.DecodeStringAsBytes()) 46341 r.ReadMapElemValue() 46342 switch yys3 { 46343 case "AllocID": 46344 if r.TryDecodeAsNil() { 46345 x.AllocID = "" 46346 } else { 46347 x.AllocID = (string)(r.DecodeString()) 46348 } 46349 case "Task": 46350 if r.TryDecodeAsNil() { 46351 x.Task = "" 46352 } else { 46353 x.Task = (string)(r.DecodeString()) 46354 } 46355 case "Signal": 46356 if r.TryDecodeAsNil() { 46357 x.Signal = "" 46358 } else { 46359 x.Signal = (string)(r.DecodeString()) 46360 } 46361 case "Region": 46362 if r.TryDecodeAsNil() { 46363 x.QueryOptions.Region = "" 46364 } else { 46365 x.Region = (string)(r.DecodeString()) 46366 } 46367 case "Namespace": 46368 if r.TryDecodeAsNil() { 46369 x.QueryOptions.Namespace = "" 46370 } else { 46371 x.Namespace = (string)(r.DecodeString()) 46372 } 46373 case "MinQueryIndex": 46374 if r.TryDecodeAsNil() { 46375 x.QueryOptions.MinQueryIndex = 0 46376 } else { 46377 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 46378 } 46379 case "MaxQueryTime": 46380 if r.TryDecodeAsNil() { 46381 x.QueryOptions.MaxQueryTime = 0 46382 } else { 46383 if false { 46384 } else if yyxt11 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt11 != nil { 46385 z.DecExtension(x.MaxQueryTime, yyxt11) 46386 } else { 46387 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 46388 } 46389 } 46390 case "AllowStale": 46391 if r.TryDecodeAsNil() { 46392 x.QueryOptions.AllowStale = false 46393 } else { 46394 x.AllowStale = (bool)(r.DecodeBool()) 46395 } 46396 case "Prefix": 46397 if r.TryDecodeAsNil() { 46398 x.QueryOptions.Prefix = "" 46399 } else { 46400 x.Prefix = (string)(r.DecodeString()) 46401 } 46402 case "AuthToken": 46403 if r.TryDecodeAsNil() { 46404 x.QueryOptions.AuthToken = "" 46405 } else { 46406 x.AuthToken = (string)(r.DecodeString()) 46407 } 46408 case "Forwarded": 46409 if r.TryDecodeAsNil() { 46410 x.QueryOptions.InternalRpcInfo.Forwarded = false 46411 } else { 46412 x.Forwarded = (bool)(r.DecodeBool()) 46413 } 46414 default: 46415 z.DecStructFieldNotFound(-1, yys3) 46416 } // end switch yys3 46417 } // end for yyj3 46418 r.ReadMapEnd() 46419 } 46420 46421 func (x *AllocSignalRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 46422 var h codecSelfer100 46423 z, r := codec1978.GenHelperDecoder(d) 46424 _, _, _ = h, z, r 46425 var yyj16 int 46426 var yyb16 bool 46427 var yyhl16 bool = l >= 0 46428 yyj16++ 46429 if yyhl16 { 46430 yyb16 = yyj16 > l 46431 } else { 46432 yyb16 = r.CheckBreak() 46433 } 46434 if yyb16 { 46435 r.ReadArrayEnd() 46436 return 46437 } 46438 r.ReadArrayElem() 46439 if r.TryDecodeAsNil() { 46440 x.AllocID = "" 46441 } else { 46442 x.AllocID = (string)(r.DecodeString()) 46443 } 46444 yyj16++ 46445 if yyhl16 { 46446 yyb16 = yyj16 > l 46447 } else { 46448 yyb16 = r.CheckBreak() 46449 } 46450 if yyb16 { 46451 r.ReadArrayEnd() 46452 return 46453 } 46454 r.ReadArrayElem() 46455 if r.TryDecodeAsNil() { 46456 x.Task = "" 46457 } else { 46458 x.Task = (string)(r.DecodeString()) 46459 } 46460 yyj16++ 46461 if yyhl16 { 46462 yyb16 = yyj16 > l 46463 } else { 46464 yyb16 = r.CheckBreak() 46465 } 46466 if yyb16 { 46467 r.ReadArrayEnd() 46468 return 46469 } 46470 r.ReadArrayElem() 46471 if r.TryDecodeAsNil() { 46472 x.Signal = "" 46473 } else { 46474 x.Signal = (string)(r.DecodeString()) 46475 } 46476 yyj16++ 46477 if yyhl16 { 46478 yyb16 = yyj16 > l 46479 } else { 46480 yyb16 = r.CheckBreak() 46481 } 46482 if yyb16 { 46483 r.ReadArrayEnd() 46484 return 46485 } 46486 r.ReadArrayElem() 46487 if r.TryDecodeAsNil() { 46488 x.QueryOptions.Region = "" 46489 } else { 46490 x.Region = (string)(r.DecodeString()) 46491 } 46492 yyj16++ 46493 if yyhl16 { 46494 yyb16 = yyj16 > l 46495 } else { 46496 yyb16 = r.CheckBreak() 46497 } 46498 if yyb16 { 46499 r.ReadArrayEnd() 46500 return 46501 } 46502 r.ReadArrayElem() 46503 if r.TryDecodeAsNil() { 46504 x.QueryOptions.Namespace = "" 46505 } else { 46506 x.Namespace = (string)(r.DecodeString()) 46507 } 46508 yyj16++ 46509 if yyhl16 { 46510 yyb16 = yyj16 > l 46511 } else { 46512 yyb16 = r.CheckBreak() 46513 } 46514 if yyb16 { 46515 r.ReadArrayEnd() 46516 return 46517 } 46518 r.ReadArrayElem() 46519 if r.TryDecodeAsNil() { 46520 x.QueryOptions.MinQueryIndex = 0 46521 } else { 46522 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 46523 } 46524 yyj16++ 46525 if yyhl16 { 46526 yyb16 = yyj16 > l 46527 } else { 46528 yyb16 = r.CheckBreak() 46529 } 46530 if yyb16 { 46531 r.ReadArrayEnd() 46532 return 46533 } 46534 r.ReadArrayElem() 46535 if r.TryDecodeAsNil() { 46536 x.QueryOptions.MaxQueryTime = 0 46537 } else { 46538 if false { 46539 } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { 46540 z.DecExtension(x.MaxQueryTime, yyxt24) 46541 } else { 46542 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 46543 } 46544 } 46545 yyj16++ 46546 if yyhl16 { 46547 yyb16 = yyj16 > l 46548 } else { 46549 yyb16 = r.CheckBreak() 46550 } 46551 if yyb16 { 46552 r.ReadArrayEnd() 46553 return 46554 } 46555 r.ReadArrayElem() 46556 if r.TryDecodeAsNil() { 46557 x.QueryOptions.AllowStale = false 46558 } else { 46559 x.AllowStale = (bool)(r.DecodeBool()) 46560 } 46561 yyj16++ 46562 if yyhl16 { 46563 yyb16 = yyj16 > l 46564 } else { 46565 yyb16 = r.CheckBreak() 46566 } 46567 if yyb16 { 46568 r.ReadArrayEnd() 46569 return 46570 } 46571 r.ReadArrayElem() 46572 if r.TryDecodeAsNil() { 46573 x.QueryOptions.Prefix = "" 46574 } else { 46575 x.Prefix = (string)(r.DecodeString()) 46576 } 46577 yyj16++ 46578 if yyhl16 { 46579 yyb16 = yyj16 > l 46580 } else { 46581 yyb16 = r.CheckBreak() 46582 } 46583 if yyb16 { 46584 r.ReadArrayEnd() 46585 return 46586 } 46587 r.ReadArrayElem() 46588 if r.TryDecodeAsNil() { 46589 x.QueryOptions.AuthToken = "" 46590 } else { 46591 x.AuthToken = (string)(r.DecodeString()) 46592 } 46593 yyj16++ 46594 if yyhl16 { 46595 yyb16 = yyj16 > l 46596 } else { 46597 yyb16 = r.CheckBreak() 46598 } 46599 if yyb16 { 46600 r.ReadArrayEnd() 46601 return 46602 } 46603 r.ReadArrayElem() 46604 if r.TryDecodeAsNil() { 46605 x.QueryOptions.InternalRpcInfo.Forwarded = false 46606 } else { 46607 x.Forwarded = (bool)(r.DecodeBool()) 46608 } 46609 for { 46610 yyj16++ 46611 if yyhl16 { 46612 yyb16 = yyj16 > l 46613 } else { 46614 yyb16 = r.CheckBreak() 46615 } 46616 if yyb16 { 46617 break 46618 } 46619 r.ReadArrayElem() 46620 z.DecStructFieldNotFound(yyj16-1, "") 46621 } 46622 r.ReadArrayEnd() 46623 } 46624 46625 func (x *AllocsGetRequest) CodecEncodeSelf(e *codec1978.Encoder) { 46626 var h codecSelfer100 46627 z, r := codec1978.GenHelperEncoder(e) 46628 _, _, _ = h, z, r 46629 if x == nil { 46630 r.EncodeNil() 46631 } else { 46632 if false { 46633 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 46634 z.EncExtension(x, yyxt1) 46635 } else { 46636 yysep2 := !z.EncBinary() 46637 yy2arr2 := z.EncBasicHandle().StructToArray 46638 _, _ = yysep2, yy2arr2 46639 const yyr2 bool = false // struct tag has 'toArray' 46640 if yyr2 || yy2arr2 { 46641 r.WriteArrayStart(9) 46642 } else { 46643 r.WriteMapStart(9) 46644 } 46645 if yyr2 || yy2arr2 { 46646 r.WriteArrayElem() 46647 if x.AllocIDs == nil { 46648 r.EncodeNil() 46649 } else { 46650 if false { 46651 } else { 46652 z.F.EncSliceStringV(x.AllocIDs, e) 46653 } 46654 } 46655 } else { 46656 r.WriteMapElemKey() 46657 if z.IsJSONHandle() { 46658 z.WriteStr("\"AllocIDs\"") 46659 } else { 46660 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocIDs`) 46661 } 46662 r.WriteMapElemValue() 46663 if x.AllocIDs == nil { 46664 r.EncodeNil() 46665 } else { 46666 if false { 46667 } else { 46668 z.F.EncSliceStringV(x.AllocIDs, e) 46669 } 46670 } 46671 } 46672 if yyr2 || yy2arr2 { 46673 r.WriteArrayElem() 46674 if false { 46675 } else { 46676 if z.EncBasicHandle().StringToRaw { 46677 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 46678 } else { 46679 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 46680 } 46681 } 46682 } else { 46683 r.WriteMapElemKey() 46684 if z.IsJSONHandle() { 46685 z.WriteStr("\"Region\"") 46686 } else { 46687 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 46688 } 46689 r.WriteMapElemValue() 46690 if false { 46691 } else { 46692 if z.EncBasicHandle().StringToRaw { 46693 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 46694 } else { 46695 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 46696 } 46697 } 46698 } 46699 if yyr2 || yy2arr2 { 46700 r.WriteArrayElem() 46701 if false { 46702 } else { 46703 if z.EncBasicHandle().StringToRaw { 46704 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 46705 } else { 46706 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 46707 } 46708 } 46709 } else { 46710 r.WriteMapElemKey() 46711 if z.IsJSONHandle() { 46712 z.WriteStr("\"Namespace\"") 46713 } else { 46714 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 46715 } 46716 r.WriteMapElemValue() 46717 if false { 46718 } else { 46719 if z.EncBasicHandle().StringToRaw { 46720 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 46721 } else { 46722 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 46723 } 46724 } 46725 } 46726 if yyr2 || yy2arr2 { 46727 r.WriteArrayElem() 46728 if false { 46729 } else { 46730 r.EncodeUint(uint64(x.MinQueryIndex)) 46731 } 46732 } else { 46733 r.WriteMapElemKey() 46734 if z.IsJSONHandle() { 46735 z.WriteStr("\"MinQueryIndex\"") 46736 } else { 46737 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 46738 } 46739 r.WriteMapElemValue() 46740 if false { 46741 } else { 46742 r.EncodeUint(uint64(x.MinQueryIndex)) 46743 } 46744 } 46745 if yyr2 || yy2arr2 { 46746 r.WriteArrayElem() 46747 if false { 46748 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 46749 z.EncExtension(x.MaxQueryTime, yyxt16) 46750 } else { 46751 r.EncodeInt(int64(x.MaxQueryTime)) 46752 } 46753 } else { 46754 r.WriteMapElemKey() 46755 if z.IsJSONHandle() { 46756 z.WriteStr("\"MaxQueryTime\"") 46757 } else { 46758 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 46759 } 46760 r.WriteMapElemValue() 46761 if false { 46762 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 46763 z.EncExtension(x.MaxQueryTime, yyxt17) 46764 } else { 46765 r.EncodeInt(int64(x.MaxQueryTime)) 46766 } 46767 } 46768 if yyr2 || yy2arr2 { 46769 r.WriteArrayElem() 46770 if false { 46771 } else { 46772 r.EncodeBool(bool(x.AllowStale)) 46773 } 46774 } else { 46775 r.WriteMapElemKey() 46776 if z.IsJSONHandle() { 46777 z.WriteStr("\"AllowStale\"") 46778 } else { 46779 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 46780 } 46781 r.WriteMapElemValue() 46782 if false { 46783 } else { 46784 r.EncodeBool(bool(x.AllowStale)) 46785 } 46786 } 46787 if yyr2 || yy2arr2 { 46788 r.WriteArrayElem() 46789 if false { 46790 } else { 46791 if z.EncBasicHandle().StringToRaw { 46792 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 46793 } else { 46794 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 46795 } 46796 } 46797 } else { 46798 r.WriteMapElemKey() 46799 if z.IsJSONHandle() { 46800 z.WriteStr("\"Prefix\"") 46801 } else { 46802 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 46803 } 46804 r.WriteMapElemValue() 46805 if false { 46806 } else { 46807 if z.EncBasicHandle().StringToRaw { 46808 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 46809 } else { 46810 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 46811 } 46812 } 46813 } 46814 if yyr2 || yy2arr2 { 46815 r.WriteArrayElem() 46816 if false { 46817 } else { 46818 if z.EncBasicHandle().StringToRaw { 46819 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 46820 } else { 46821 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 46822 } 46823 } 46824 } else { 46825 r.WriteMapElemKey() 46826 if z.IsJSONHandle() { 46827 z.WriteStr("\"AuthToken\"") 46828 } else { 46829 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 46830 } 46831 r.WriteMapElemValue() 46832 if false { 46833 } else { 46834 if z.EncBasicHandle().StringToRaw { 46835 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 46836 } else { 46837 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 46838 } 46839 } 46840 } 46841 if yyr2 || yy2arr2 { 46842 r.WriteArrayElem() 46843 if false { 46844 } else { 46845 r.EncodeBool(bool(x.Forwarded)) 46846 } 46847 } else { 46848 r.WriteMapElemKey() 46849 if z.IsJSONHandle() { 46850 z.WriteStr("\"Forwarded\"") 46851 } else { 46852 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 46853 } 46854 r.WriteMapElemValue() 46855 if false { 46856 } else { 46857 r.EncodeBool(bool(x.Forwarded)) 46858 } 46859 } 46860 if yyr2 || yy2arr2 { 46861 r.WriteArrayEnd() 46862 } else { 46863 r.WriteMapEnd() 46864 } 46865 } 46866 } 46867 } 46868 46869 func (x *AllocsGetRequest) CodecDecodeSelf(d *codec1978.Decoder) { 46870 var h codecSelfer100 46871 z, r := codec1978.GenHelperDecoder(d) 46872 _, _, _ = h, z, r 46873 if false { 46874 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 46875 z.DecExtension(x, yyxt1) 46876 } else { 46877 yyct2 := r.ContainerType() 46878 if yyct2 == codecSelferValueTypeMap100 { 46879 yyl2 := r.ReadMapStart() 46880 if yyl2 == 0 { 46881 r.ReadMapEnd() 46882 } else { 46883 x.codecDecodeSelfFromMap(yyl2, d) 46884 } 46885 } else if yyct2 == codecSelferValueTypeArray100 { 46886 yyl2 := r.ReadArrayStart() 46887 if yyl2 == 0 { 46888 r.ReadArrayEnd() 46889 } else { 46890 x.codecDecodeSelfFromArray(yyl2, d) 46891 } 46892 } else { 46893 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 46894 } 46895 } 46896 } 46897 46898 func (x *AllocsGetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 46899 var h codecSelfer100 46900 z, r := codec1978.GenHelperDecoder(d) 46901 _, _, _ = h, z, r 46902 var yyhl3 bool = l >= 0 46903 for yyj3 := 0; ; yyj3++ { 46904 if yyhl3 { 46905 if yyj3 >= l { 46906 break 46907 } 46908 } else { 46909 if r.CheckBreak() { 46910 break 46911 } 46912 } 46913 r.ReadMapElemKey() 46914 yys3 := z.StringView(r.DecodeStringAsBytes()) 46915 r.ReadMapElemValue() 46916 switch yys3 { 46917 case "AllocIDs": 46918 if r.TryDecodeAsNil() { 46919 x.AllocIDs = nil 46920 } else { 46921 if false { 46922 } else { 46923 z.F.DecSliceStringX(&x.AllocIDs, d) 46924 } 46925 } 46926 case "Region": 46927 if r.TryDecodeAsNil() { 46928 x.QueryOptions.Region = "" 46929 } else { 46930 x.Region = (string)(r.DecodeString()) 46931 } 46932 case "Namespace": 46933 if r.TryDecodeAsNil() { 46934 x.QueryOptions.Namespace = "" 46935 } else { 46936 x.Namespace = (string)(r.DecodeString()) 46937 } 46938 case "MinQueryIndex": 46939 if r.TryDecodeAsNil() { 46940 x.QueryOptions.MinQueryIndex = 0 46941 } else { 46942 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 46943 } 46944 case "MaxQueryTime": 46945 if r.TryDecodeAsNil() { 46946 x.QueryOptions.MaxQueryTime = 0 46947 } else { 46948 if false { 46949 } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { 46950 z.DecExtension(x.MaxQueryTime, yyxt10) 46951 } else { 46952 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 46953 } 46954 } 46955 case "AllowStale": 46956 if r.TryDecodeAsNil() { 46957 x.QueryOptions.AllowStale = false 46958 } else { 46959 x.AllowStale = (bool)(r.DecodeBool()) 46960 } 46961 case "Prefix": 46962 if r.TryDecodeAsNil() { 46963 x.QueryOptions.Prefix = "" 46964 } else { 46965 x.Prefix = (string)(r.DecodeString()) 46966 } 46967 case "AuthToken": 46968 if r.TryDecodeAsNil() { 46969 x.QueryOptions.AuthToken = "" 46970 } else { 46971 x.AuthToken = (string)(r.DecodeString()) 46972 } 46973 case "Forwarded": 46974 if r.TryDecodeAsNil() { 46975 x.QueryOptions.InternalRpcInfo.Forwarded = false 46976 } else { 46977 x.Forwarded = (bool)(r.DecodeBool()) 46978 } 46979 default: 46980 z.DecStructFieldNotFound(-1, yys3) 46981 } // end switch yys3 46982 } // end for yyj3 46983 r.ReadMapEnd() 46984 } 46985 46986 func (x *AllocsGetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 46987 var h codecSelfer100 46988 z, r := codec1978.GenHelperDecoder(d) 46989 _, _, _ = h, z, r 46990 var yyj15 int 46991 var yyb15 bool 46992 var yyhl15 bool = l >= 0 46993 yyj15++ 46994 if yyhl15 { 46995 yyb15 = yyj15 > l 46996 } else { 46997 yyb15 = r.CheckBreak() 46998 } 46999 if yyb15 { 47000 r.ReadArrayEnd() 47001 return 47002 } 47003 r.ReadArrayElem() 47004 if r.TryDecodeAsNil() { 47005 x.AllocIDs = nil 47006 } else { 47007 if false { 47008 } else { 47009 z.F.DecSliceStringX(&x.AllocIDs, d) 47010 } 47011 } 47012 yyj15++ 47013 if yyhl15 { 47014 yyb15 = yyj15 > l 47015 } else { 47016 yyb15 = r.CheckBreak() 47017 } 47018 if yyb15 { 47019 r.ReadArrayEnd() 47020 return 47021 } 47022 r.ReadArrayElem() 47023 if r.TryDecodeAsNil() { 47024 x.QueryOptions.Region = "" 47025 } else { 47026 x.Region = (string)(r.DecodeString()) 47027 } 47028 yyj15++ 47029 if yyhl15 { 47030 yyb15 = yyj15 > l 47031 } else { 47032 yyb15 = r.CheckBreak() 47033 } 47034 if yyb15 { 47035 r.ReadArrayEnd() 47036 return 47037 } 47038 r.ReadArrayElem() 47039 if r.TryDecodeAsNil() { 47040 x.QueryOptions.Namespace = "" 47041 } else { 47042 x.Namespace = (string)(r.DecodeString()) 47043 } 47044 yyj15++ 47045 if yyhl15 { 47046 yyb15 = yyj15 > l 47047 } else { 47048 yyb15 = r.CheckBreak() 47049 } 47050 if yyb15 { 47051 r.ReadArrayEnd() 47052 return 47053 } 47054 r.ReadArrayElem() 47055 if r.TryDecodeAsNil() { 47056 x.QueryOptions.MinQueryIndex = 0 47057 } else { 47058 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 47059 } 47060 yyj15++ 47061 if yyhl15 { 47062 yyb15 = yyj15 > l 47063 } else { 47064 yyb15 = r.CheckBreak() 47065 } 47066 if yyb15 { 47067 r.ReadArrayEnd() 47068 return 47069 } 47070 r.ReadArrayElem() 47071 if r.TryDecodeAsNil() { 47072 x.QueryOptions.MaxQueryTime = 0 47073 } else { 47074 if false { 47075 } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { 47076 z.DecExtension(x.MaxQueryTime, yyxt22) 47077 } else { 47078 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 47079 } 47080 } 47081 yyj15++ 47082 if yyhl15 { 47083 yyb15 = yyj15 > l 47084 } else { 47085 yyb15 = r.CheckBreak() 47086 } 47087 if yyb15 { 47088 r.ReadArrayEnd() 47089 return 47090 } 47091 r.ReadArrayElem() 47092 if r.TryDecodeAsNil() { 47093 x.QueryOptions.AllowStale = false 47094 } else { 47095 x.AllowStale = (bool)(r.DecodeBool()) 47096 } 47097 yyj15++ 47098 if yyhl15 { 47099 yyb15 = yyj15 > l 47100 } else { 47101 yyb15 = r.CheckBreak() 47102 } 47103 if yyb15 { 47104 r.ReadArrayEnd() 47105 return 47106 } 47107 r.ReadArrayElem() 47108 if r.TryDecodeAsNil() { 47109 x.QueryOptions.Prefix = "" 47110 } else { 47111 x.Prefix = (string)(r.DecodeString()) 47112 } 47113 yyj15++ 47114 if yyhl15 { 47115 yyb15 = yyj15 > l 47116 } else { 47117 yyb15 = r.CheckBreak() 47118 } 47119 if yyb15 { 47120 r.ReadArrayEnd() 47121 return 47122 } 47123 r.ReadArrayElem() 47124 if r.TryDecodeAsNil() { 47125 x.QueryOptions.AuthToken = "" 47126 } else { 47127 x.AuthToken = (string)(r.DecodeString()) 47128 } 47129 yyj15++ 47130 if yyhl15 { 47131 yyb15 = yyj15 > l 47132 } else { 47133 yyb15 = r.CheckBreak() 47134 } 47135 if yyb15 { 47136 r.ReadArrayEnd() 47137 return 47138 } 47139 r.ReadArrayElem() 47140 if r.TryDecodeAsNil() { 47141 x.QueryOptions.InternalRpcInfo.Forwarded = false 47142 } else { 47143 x.Forwarded = (bool)(r.DecodeBool()) 47144 } 47145 for { 47146 yyj15++ 47147 if yyhl15 { 47148 yyb15 = yyj15 > l 47149 } else { 47150 yyb15 = r.CheckBreak() 47151 } 47152 if yyb15 { 47153 break 47154 } 47155 r.ReadArrayElem() 47156 z.DecStructFieldNotFound(yyj15-1, "") 47157 } 47158 r.ReadArrayEnd() 47159 } 47160 47161 func (x *AllocRestartRequest) CodecEncodeSelf(e *codec1978.Encoder) { 47162 var h codecSelfer100 47163 z, r := codec1978.GenHelperEncoder(e) 47164 _, _, _ = h, z, r 47165 if x == nil { 47166 r.EncodeNil() 47167 } else { 47168 if false { 47169 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 47170 z.EncExtension(x, yyxt1) 47171 } else { 47172 yysep2 := !z.EncBinary() 47173 yy2arr2 := z.EncBasicHandle().StructToArray 47174 _, _ = yysep2, yy2arr2 47175 const yyr2 bool = false // struct tag has 'toArray' 47176 if yyr2 || yy2arr2 { 47177 r.WriteArrayStart(10) 47178 } else { 47179 r.WriteMapStart(10) 47180 } 47181 if yyr2 || yy2arr2 { 47182 r.WriteArrayElem() 47183 if false { 47184 } else { 47185 if z.EncBasicHandle().StringToRaw { 47186 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 47187 } else { 47188 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 47189 } 47190 } 47191 } else { 47192 r.WriteMapElemKey() 47193 if z.IsJSONHandle() { 47194 z.WriteStr("\"AllocID\"") 47195 } else { 47196 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) 47197 } 47198 r.WriteMapElemValue() 47199 if false { 47200 } else { 47201 if z.EncBasicHandle().StringToRaw { 47202 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 47203 } else { 47204 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 47205 } 47206 } 47207 } 47208 if yyr2 || yy2arr2 { 47209 r.WriteArrayElem() 47210 if false { 47211 } else { 47212 if z.EncBasicHandle().StringToRaw { 47213 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) 47214 } else { 47215 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) 47216 } 47217 } 47218 } else { 47219 r.WriteMapElemKey() 47220 if z.IsJSONHandle() { 47221 z.WriteStr("\"TaskName\"") 47222 } else { 47223 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskName`) 47224 } 47225 r.WriteMapElemValue() 47226 if false { 47227 } else { 47228 if z.EncBasicHandle().StringToRaw { 47229 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) 47230 } else { 47231 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) 47232 } 47233 } 47234 } 47235 if yyr2 || yy2arr2 { 47236 r.WriteArrayElem() 47237 if false { 47238 } else { 47239 if z.EncBasicHandle().StringToRaw { 47240 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 47241 } else { 47242 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 47243 } 47244 } 47245 } else { 47246 r.WriteMapElemKey() 47247 if z.IsJSONHandle() { 47248 z.WriteStr("\"Region\"") 47249 } else { 47250 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 47251 } 47252 r.WriteMapElemValue() 47253 if false { 47254 } else { 47255 if z.EncBasicHandle().StringToRaw { 47256 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 47257 } else { 47258 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 47259 } 47260 } 47261 } 47262 if yyr2 || yy2arr2 { 47263 r.WriteArrayElem() 47264 if false { 47265 } else { 47266 if z.EncBasicHandle().StringToRaw { 47267 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 47268 } else { 47269 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 47270 } 47271 } 47272 } else { 47273 r.WriteMapElemKey() 47274 if z.IsJSONHandle() { 47275 z.WriteStr("\"Namespace\"") 47276 } else { 47277 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 47278 } 47279 r.WriteMapElemValue() 47280 if false { 47281 } else { 47282 if z.EncBasicHandle().StringToRaw { 47283 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 47284 } else { 47285 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 47286 } 47287 } 47288 } 47289 if yyr2 || yy2arr2 { 47290 r.WriteArrayElem() 47291 if false { 47292 } else { 47293 r.EncodeUint(uint64(x.MinQueryIndex)) 47294 } 47295 } else { 47296 r.WriteMapElemKey() 47297 if z.IsJSONHandle() { 47298 z.WriteStr("\"MinQueryIndex\"") 47299 } else { 47300 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 47301 } 47302 r.WriteMapElemValue() 47303 if false { 47304 } else { 47305 r.EncodeUint(uint64(x.MinQueryIndex)) 47306 } 47307 } 47308 if yyr2 || yy2arr2 { 47309 r.WriteArrayElem() 47310 if false { 47311 } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { 47312 z.EncExtension(x.MaxQueryTime, yyxt19) 47313 } else { 47314 r.EncodeInt(int64(x.MaxQueryTime)) 47315 } 47316 } else { 47317 r.WriteMapElemKey() 47318 if z.IsJSONHandle() { 47319 z.WriteStr("\"MaxQueryTime\"") 47320 } else { 47321 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 47322 } 47323 r.WriteMapElemValue() 47324 if false { 47325 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 47326 z.EncExtension(x.MaxQueryTime, yyxt20) 47327 } else { 47328 r.EncodeInt(int64(x.MaxQueryTime)) 47329 } 47330 } 47331 if yyr2 || yy2arr2 { 47332 r.WriteArrayElem() 47333 if false { 47334 } else { 47335 r.EncodeBool(bool(x.AllowStale)) 47336 } 47337 } else { 47338 r.WriteMapElemKey() 47339 if z.IsJSONHandle() { 47340 z.WriteStr("\"AllowStale\"") 47341 } else { 47342 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 47343 } 47344 r.WriteMapElemValue() 47345 if false { 47346 } else { 47347 r.EncodeBool(bool(x.AllowStale)) 47348 } 47349 } 47350 if yyr2 || yy2arr2 { 47351 r.WriteArrayElem() 47352 if false { 47353 } else { 47354 if z.EncBasicHandle().StringToRaw { 47355 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 47356 } else { 47357 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 47358 } 47359 } 47360 } else { 47361 r.WriteMapElemKey() 47362 if z.IsJSONHandle() { 47363 z.WriteStr("\"Prefix\"") 47364 } else { 47365 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 47366 } 47367 r.WriteMapElemValue() 47368 if false { 47369 } else { 47370 if z.EncBasicHandle().StringToRaw { 47371 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 47372 } else { 47373 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 47374 } 47375 } 47376 } 47377 if yyr2 || yy2arr2 { 47378 r.WriteArrayElem() 47379 if false { 47380 } else { 47381 if z.EncBasicHandle().StringToRaw { 47382 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 47383 } else { 47384 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 47385 } 47386 } 47387 } else { 47388 r.WriteMapElemKey() 47389 if z.IsJSONHandle() { 47390 z.WriteStr("\"AuthToken\"") 47391 } else { 47392 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 47393 } 47394 r.WriteMapElemValue() 47395 if false { 47396 } else { 47397 if z.EncBasicHandle().StringToRaw { 47398 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 47399 } else { 47400 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 47401 } 47402 } 47403 } 47404 if yyr2 || yy2arr2 { 47405 r.WriteArrayElem() 47406 if false { 47407 } else { 47408 r.EncodeBool(bool(x.Forwarded)) 47409 } 47410 } else { 47411 r.WriteMapElemKey() 47412 if z.IsJSONHandle() { 47413 z.WriteStr("\"Forwarded\"") 47414 } else { 47415 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 47416 } 47417 r.WriteMapElemValue() 47418 if false { 47419 } else { 47420 r.EncodeBool(bool(x.Forwarded)) 47421 } 47422 } 47423 if yyr2 || yy2arr2 { 47424 r.WriteArrayEnd() 47425 } else { 47426 r.WriteMapEnd() 47427 } 47428 } 47429 } 47430 } 47431 47432 func (x *AllocRestartRequest) CodecDecodeSelf(d *codec1978.Decoder) { 47433 var h codecSelfer100 47434 z, r := codec1978.GenHelperDecoder(d) 47435 _, _, _ = h, z, r 47436 if false { 47437 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 47438 z.DecExtension(x, yyxt1) 47439 } else { 47440 yyct2 := r.ContainerType() 47441 if yyct2 == codecSelferValueTypeMap100 { 47442 yyl2 := r.ReadMapStart() 47443 if yyl2 == 0 { 47444 r.ReadMapEnd() 47445 } else { 47446 x.codecDecodeSelfFromMap(yyl2, d) 47447 } 47448 } else if yyct2 == codecSelferValueTypeArray100 { 47449 yyl2 := r.ReadArrayStart() 47450 if yyl2 == 0 { 47451 r.ReadArrayEnd() 47452 } else { 47453 x.codecDecodeSelfFromArray(yyl2, d) 47454 } 47455 } else { 47456 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 47457 } 47458 } 47459 } 47460 47461 func (x *AllocRestartRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 47462 var h codecSelfer100 47463 z, r := codec1978.GenHelperDecoder(d) 47464 _, _, _ = h, z, r 47465 var yyhl3 bool = l >= 0 47466 for yyj3 := 0; ; yyj3++ { 47467 if yyhl3 { 47468 if yyj3 >= l { 47469 break 47470 } 47471 } else { 47472 if r.CheckBreak() { 47473 break 47474 } 47475 } 47476 r.ReadMapElemKey() 47477 yys3 := z.StringView(r.DecodeStringAsBytes()) 47478 r.ReadMapElemValue() 47479 switch yys3 { 47480 case "AllocID": 47481 if r.TryDecodeAsNil() { 47482 x.AllocID = "" 47483 } else { 47484 x.AllocID = (string)(r.DecodeString()) 47485 } 47486 case "TaskName": 47487 if r.TryDecodeAsNil() { 47488 x.TaskName = "" 47489 } else { 47490 x.TaskName = (string)(r.DecodeString()) 47491 } 47492 case "Region": 47493 if r.TryDecodeAsNil() { 47494 x.QueryOptions.Region = "" 47495 } else { 47496 x.Region = (string)(r.DecodeString()) 47497 } 47498 case "Namespace": 47499 if r.TryDecodeAsNil() { 47500 x.QueryOptions.Namespace = "" 47501 } else { 47502 x.Namespace = (string)(r.DecodeString()) 47503 } 47504 case "MinQueryIndex": 47505 if r.TryDecodeAsNil() { 47506 x.QueryOptions.MinQueryIndex = 0 47507 } else { 47508 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 47509 } 47510 case "MaxQueryTime": 47511 if r.TryDecodeAsNil() { 47512 x.QueryOptions.MaxQueryTime = 0 47513 } else { 47514 if false { 47515 } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { 47516 z.DecExtension(x.MaxQueryTime, yyxt10) 47517 } else { 47518 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 47519 } 47520 } 47521 case "AllowStale": 47522 if r.TryDecodeAsNil() { 47523 x.QueryOptions.AllowStale = false 47524 } else { 47525 x.AllowStale = (bool)(r.DecodeBool()) 47526 } 47527 case "Prefix": 47528 if r.TryDecodeAsNil() { 47529 x.QueryOptions.Prefix = "" 47530 } else { 47531 x.Prefix = (string)(r.DecodeString()) 47532 } 47533 case "AuthToken": 47534 if r.TryDecodeAsNil() { 47535 x.QueryOptions.AuthToken = "" 47536 } else { 47537 x.AuthToken = (string)(r.DecodeString()) 47538 } 47539 case "Forwarded": 47540 if r.TryDecodeAsNil() { 47541 x.QueryOptions.InternalRpcInfo.Forwarded = false 47542 } else { 47543 x.Forwarded = (bool)(r.DecodeBool()) 47544 } 47545 default: 47546 z.DecStructFieldNotFound(-1, yys3) 47547 } // end switch yys3 47548 } // end for yyj3 47549 r.ReadMapEnd() 47550 } 47551 47552 func (x *AllocRestartRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 47553 var h codecSelfer100 47554 z, r := codec1978.GenHelperDecoder(d) 47555 _, _, _ = h, z, r 47556 var yyj15 int 47557 var yyb15 bool 47558 var yyhl15 bool = l >= 0 47559 yyj15++ 47560 if yyhl15 { 47561 yyb15 = yyj15 > l 47562 } else { 47563 yyb15 = r.CheckBreak() 47564 } 47565 if yyb15 { 47566 r.ReadArrayEnd() 47567 return 47568 } 47569 r.ReadArrayElem() 47570 if r.TryDecodeAsNil() { 47571 x.AllocID = "" 47572 } else { 47573 x.AllocID = (string)(r.DecodeString()) 47574 } 47575 yyj15++ 47576 if yyhl15 { 47577 yyb15 = yyj15 > l 47578 } else { 47579 yyb15 = r.CheckBreak() 47580 } 47581 if yyb15 { 47582 r.ReadArrayEnd() 47583 return 47584 } 47585 r.ReadArrayElem() 47586 if r.TryDecodeAsNil() { 47587 x.TaskName = "" 47588 } else { 47589 x.TaskName = (string)(r.DecodeString()) 47590 } 47591 yyj15++ 47592 if yyhl15 { 47593 yyb15 = yyj15 > l 47594 } else { 47595 yyb15 = r.CheckBreak() 47596 } 47597 if yyb15 { 47598 r.ReadArrayEnd() 47599 return 47600 } 47601 r.ReadArrayElem() 47602 if r.TryDecodeAsNil() { 47603 x.QueryOptions.Region = "" 47604 } else { 47605 x.Region = (string)(r.DecodeString()) 47606 } 47607 yyj15++ 47608 if yyhl15 { 47609 yyb15 = yyj15 > l 47610 } else { 47611 yyb15 = r.CheckBreak() 47612 } 47613 if yyb15 { 47614 r.ReadArrayEnd() 47615 return 47616 } 47617 r.ReadArrayElem() 47618 if r.TryDecodeAsNil() { 47619 x.QueryOptions.Namespace = "" 47620 } else { 47621 x.Namespace = (string)(r.DecodeString()) 47622 } 47623 yyj15++ 47624 if yyhl15 { 47625 yyb15 = yyj15 > l 47626 } else { 47627 yyb15 = r.CheckBreak() 47628 } 47629 if yyb15 { 47630 r.ReadArrayEnd() 47631 return 47632 } 47633 r.ReadArrayElem() 47634 if r.TryDecodeAsNil() { 47635 x.QueryOptions.MinQueryIndex = 0 47636 } else { 47637 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 47638 } 47639 yyj15++ 47640 if yyhl15 { 47641 yyb15 = yyj15 > l 47642 } else { 47643 yyb15 = r.CheckBreak() 47644 } 47645 if yyb15 { 47646 r.ReadArrayEnd() 47647 return 47648 } 47649 r.ReadArrayElem() 47650 if r.TryDecodeAsNil() { 47651 x.QueryOptions.MaxQueryTime = 0 47652 } else { 47653 if false { 47654 } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { 47655 z.DecExtension(x.MaxQueryTime, yyxt22) 47656 } else { 47657 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 47658 } 47659 } 47660 yyj15++ 47661 if yyhl15 { 47662 yyb15 = yyj15 > l 47663 } else { 47664 yyb15 = r.CheckBreak() 47665 } 47666 if yyb15 { 47667 r.ReadArrayEnd() 47668 return 47669 } 47670 r.ReadArrayElem() 47671 if r.TryDecodeAsNil() { 47672 x.QueryOptions.AllowStale = false 47673 } else { 47674 x.AllowStale = (bool)(r.DecodeBool()) 47675 } 47676 yyj15++ 47677 if yyhl15 { 47678 yyb15 = yyj15 > l 47679 } else { 47680 yyb15 = r.CheckBreak() 47681 } 47682 if yyb15 { 47683 r.ReadArrayEnd() 47684 return 47685 } 47686 r.ReadArrayElem() 47687 if r.TryDecodeAsNil() { 47688 x.QueryOptions.Prefix = "" 47689 } else { 47690 x.Prefix = (string)(r.DecodeString()) 47691 } 47692 yyj15++ 47693 if yyhl15 { 47694 yyb15 = yyj15 > l 47695 } else { 47696 yyb15 = r.CheckBreak() 47697 } 47698 if yyb15 { 47699 r.ReadArrayEnd() 47700 return 47701 } 47702 r.ReadArrayElem() 47703 if r.TryDecodeAsNil() { 47704 x.QueryOptions.AuthToken = "" 47705 } else { 47706 x.AuthToken = (string)(r.DecodeString()) 47707 } 47708 yyj15++ 47709 if yyhl15 { 47710 yyb15 = yyj15 > l 47711 } else { 47712 yyb15 = r.CheckBreak() 47713 } 47714 if yyb15 { 47715 r.ReadArrayEnd() 47716 return 47717 } 47718 r.ReadArrayElem() 47719 if r.TryDecodeAsNil() { 47720 x.QueryOptions.InternalRpcInfo.Forwarded = false 47721 } else { 47722 x.Forwarded = (bool)(r.DecodeBool()) 47723 } 47724 for { 47725 yyj15++ 47726 if yyhl15 { 47727 yyb15 = yyj15 > l 47728 } else { 47729 yyb15 = r.CheckBreak() 47730 } 47731 if yyb15 { 47732 break 47733 } 47734 r.ReadArrayElem() 47735 z.DecStructFieldNotFound(yyj15-1, "") 47736 } 47737 r.ReadArrayEnd() 47738 } 47739 47740 func (x *PeriodicForceRequest) CodecEncodeSelf(e *codec1978.Encoder) { 47741 var h codecSelfer100 47742 z, r := codec1978.GenHelperEncoder(e) 47743 _, _, _ = h, z, r 47744 if x == nil { 47745 r.EncodeNil() 47746 } else { 47747 if false { 47748 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 47749 z.EncExtension(x, yyxt1) 47750 } else { 47751 yysep2 := !z.EncBinary() 47752 yy2arr2 := z.EncBasicHandle().StructToArray 47753 _, _ = yysep2, yy2arr2 47754 const yyr2 bool = false // struct tag has 'toArray' 47755 if yyr2 || yy2arr2 { 47756 r.WriteArrayStart(5) 47757 } else { 47758 r.WriteMapStart(5) 47759 } 47760 if yyr2 || yy2arr2 { 47761 r.WriteArrayElem() 47762 if false { 47763 } else { 47764 if z.EncBasicHandle().StringToRaw { 47765 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 47766 } else { 47767 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 47768 } 47769 } 47770 } else { 47771 r.WriteMapElemKey() 47772 if z.IsJSONHandle() { 47773 z.WriteStr("\"JobID\"") 47774 } else { 47775 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 47776 } 47777 r.WriteMapElemValue() 47778 if false { 47779 } else { 47780 if z.EncBasicHandle().StringToRaw { 47781 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 47782 } else { 47783 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 47784 } 47785 } 47786 } 47787 if yyr2 || yy2arr2 { 47788 r.WriteArrayElem() 47789 if false { 47790 } else { 47791 if z.EncBasicHandle().StringToRaw { 47792 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 47793 } else { 47794 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 47795 } 47796 } 47797 } else { 47798 r.WriteMapElemKey() 47799 if z.IsJSONHandle() { 47800 z.WriteStr("\"Region\"") 47801 } else { 47802 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 47803 } 47804 r.WriteMapElemValue() 47805 if false { 47806 } else { 47807 if z.EncBasicHandle().StringToRaw { 47808 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 47809 } else { 47810 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 47811 } 47812 } 47813 } 47814 if yyr2 || yy2arr2 { 47815 r.WriteArrayElem() 47816 if false { 47817 } else { 47818 if z.EncBasicHandle().StringToRaw { 47819 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 47820 } else { 47821 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 47822 } 47823 } 47824 } else { 47825 r.WriteMapElemKey() 47826 if z.IsJSONHandle() { 47827 z.WriteStr("\"Namespace\"") 47828 } else { 47829 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 47830 } 47831 r.WriteMapElemValue() 47832 if false { 47833 } else { 47834 if z.EncBasicHandle().StringToRaw { 47835 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 47836 } else { 47837 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 47838 } 47839 } 47840 } 47841 if yyr2 || yy2arr2 { 47842 r.WriteArrayElem() 47843 if false { 47844 } else { 47845 if z.EncBasicHandle().StringToRaw { 47846 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 47847 } else { 47848 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 47849 } 47850 } 47851 } else { 47852 r.WriteMapElemKey() 47853 if z.IsJSONHandle() { 47854 z.WriteStr("\"AuthToken\"") 47855 } else { 47856 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 47857 } 47858 r.WriteMapElemValue() 47859 if false { 47860 } else { 47861 if z.EncBasicHandle().StringToRaw { 47862 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 47863 } else { 47864 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 47865 } 47866 } 47867 } 47868 if yyr2 || yy2arr2 { 47869 r.WriteArrayElem() 47870 if false { 47871 } else { 47872 r.EncodeBool(bool(x.Forwarded)) 47873 } 47874 } else { 47875 r.WriteMapElemKey() 47876 if z.IsJSONHandle() { 47877 z.WriteStr("\"Forwarded\"") 47878 } else { 47879 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 47880 } 47881 r.WriteMapElemValue() 47882 if false { 47883 } else { 47884 r.EncodeBool(bool(x.Forwarded)) 47885 } 47886 } 47887 if yyr2 || yy2arr2 { 47888 r.WriteArrayEnd() 47889 } else { 47890 r.WriteMapEnd() 47891 } 47892 } 47893 } 47894 } 47895 47896 func (x *PeriodicForceRequest) CodecDecodeSelf(d *codec1978.Decoder) { 47897 var h codecSelfer100 47898 z, r := codec1978.GenHelperDecoder(d) 47899 _, _, _ = h, z, r 47900 if false { 47901 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 47902 z.DecExtension(x, yyxt1) 47903 } else { 47904 yyct2 := r.ContainerType() 47905 if yyct2 == codecSelferValueTypeMap100 { 47906 yyl2 := r.ReadMapStart() 47907 if yyl2 == 0 { 47908 r.ReadMapEnd() 47909 } else { 47910 x.codecDecodeSelfFromMap(yyl2, d) 47911 } 47912 } else if yyct2 == codecSelferValueTypeArray100 { 47913 yyl2 := r.ReadArrayStart() 47914 if yyl2 == 0 { 47915 r.ReadArrayEnd() 47916 } else { 47917 x.codecDecodeSelfFromArray(yyl2, d) 47918 } 47919 } else { 47920 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 47921 } 47922 } 47923 } 47924 47925 func (x *PeriodicForceRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 47926 var h codecSelfer100 47927 z, r := codec1978.GenHelperDecoder(d) 47928 _, _, _ = h, z, r 47929 var yyhl3 bool = l >= 0 47930 for yyj3 := 0; ; yyj3++ { 47931 if yyhl3 { 47932 if yyj3 >= l { 47933 break 47934 } 47935 } else { 47936 if r.CheckBreak() { 47937 break 47938 } 47939 } 47940 r.ReadMapElemKey() 47941 yys3 := z.StringView(r.DecodeStringAsBytes()) 47942 r.ReadMapElemValue() 47943 switch yys3 { 47944 case "JobID": 47945 if r.TryDecodeAsNil() { 47946 x.JobID = "" 47947 } else { 47948 x.JobID = (string)(r.DecodeString()) 47949 } 47950 case "Region": 47951 if r.TryDecodeAsNil() { 47952 x.WriteRequest.Region = "" 47953 } else { 47954 x.Region = (string)(r.DecodeString()) 47955 } 47956 case "Namespace": 47957 if r.TryDecodeAsNil() { 47958 x.WriteRequest.Namespace = "" 47959 } else { 47960 x.Namespace = (string)(r.DecodeString()) 47961 } 47962 case "AuthToken": 47963 if r.TryDecodeAsNil() { 47964 x.WriteRequest.AuthToken = "" 47965 } else { 47966 x.AuthToken = (string)(r.DecodeString()) 47967 } 47968 case "Forwarded": 47969 if r.TryDecodeAsNil() { 47970 x.WriteRequest.InternalRpcInfo.Forwarded = false 47971 } else { 47972 x.Forwarded = (bool)(r.DecodeBool()) 47973 } 47974 default: 47975 z.DecStructFieldNotFound(-1, yys3) 47976 } // end switch yys3 47977 } // end for yyj3 47978 r.ReadMapEnd() 47979 } 47980 47981 func (x *PeriodicForceRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 47982 var h codecSelfer100 47983 z, r := codec1978.GenHelperDecoder(d) 47984 _, _, _ = h, z, r 47985 var yyj9 int 47986 var yyb9 bool 47987 var yyhl9 bool = l >= 0 47988 yyj9++ 47989 if yyhl9 { 47990 yyb9 = yyj9 > l 47991 } else { 47992 yyb9 = r.CheckBreak() 47993 } 47994 if yyb9 { 47995 r.ReadArrayEnd() 47996 return 47997 } 47998 r.ReadArrayElem() 47999 if r.TryDecodeAsNil() { 48000 x.JobID = "" 48001 } else { 48002 x.JobID = (string)(r.DecodeString()) 48003 } 48004 yyj9++ 48005 if yyhl9 { 48006 yyb9 = yyj9 > l 48007 } else { 48008 yyb9 = r.CheckBreak() 48009 } 48010 if yyb9 { 48011 r.ReadArrayEnd() 48012 return 48013 } 48014 r.ReadArrayElem() 48015 if r.TryDecodeAsNil() { 48016 x.WriteRequest.Region = "" 48017 } else { 48018 x.Region = (string)(r.DecodeString()) 48019 } 48020 yyj9++ 48021 if yyhl9 { 48022 yyb9 = yyj9 > l 48023 } else { 48024 yyb9 = r.CheckBreak() 48025 } 48026 if yyb9 { 48027 r.ReadArrayEnd() 48028 return 48029 } 48030 r.ReadArrayElem() 48031 if r.TryDecodeAsNil() { 48032 x.WriteRequest.Namespace = "" 48033 } else { 48034 x.Namespace = (string)(r.DecodeString()) 48035 } 48036 yyj9++ 48037 if yyhl9 { 48038 yyb9 = yyj9 > l 48039 } else { 48040 yyb9 = r.CheckBreak() 48041 } 48042 if yyb9 { 48043 r.ReadArrayEnd() 48044 return 48045 } 48046 r.ReadArrayElem() 48047 if r.TryDecodeAsNil() { 48048 x.WriteRequest.AuthToken = "" 48049 } else { 48050 x.AuthToken = (string)(r.DecodeString()) 48051 } 48052 yyj9++ 48053 if yyhl9 { 48054 yyb9 = yyj9 > l 48055 } else { 48056 yyb9 = r.CheckBreak() 48057 } 48058 if yyb9 { 48059 r.ReadArrayEnd() 48060 return 48061 } 48062 r.ReadArrayElem() 48063 if r.TryDecodeAsNil() { 48064 x.WriteRequest.InternalRpcInfo.Forwarded = false 48065 } else { 48066 x.Forwarded = (bool)(r.DecodeBool()) 48067 } 48068 for { 48069 yyj9++ 48070 if yyhl9 { 48071 yyb9 = yyj9 > l 48072 } else { 48073 yyb9 = r.CheckBreak() 48074 } 48075 if yyb9 { 48076 break 48077 } 48078 r.ReadArrayElem() 48079 z.DecStructFieldNotFound(yyj9-1, "") 48080 } 48081 r.ReadArrayEnd() 48082 } 48083 48084 func (x *ServerMembersResponse) CodecEncodeSelf(e *codec1978.Encoder) { 48085 var h codecSelfer100 48086 z, r := codec1978.GenHelperEncoder(e) 48087 _, _, _ = h, z, r 48088 if x == nil { 48089 r.EncodeNil() 48090 } else { 48091 if false { 48092 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 48093 z.EncExtension(x, yyxt1) 48094 } else { 48095 yysep2 := !z.EncBinary() 48096 yy2arr2 := z.EncBasicHandle().StructToArray 48097 _, _ = yysep2, yy2arr2 48098 const yyr2 bool = false // struct tag has 'toArray' 48099 if yyr2 || yy2arr2 { 48100 r.WriteArrayStart(4) 48101 } else { 48102 r.WriteMapStart(4) 48103 } 48104 if yyr2 || yy2arr2 { 48105 r.WriteArrayElem() 48106 if false { 48107 } else { 48108 if z.EncBasicHandle().StringToRaw { 48109 r.EncodeStringBytesRaw(z.BytesView(string(x.ServerName))) 48110 } else { 48111 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerName)) 48112 } 48113 } 48114 } else { 48115 r.WriteMapElemKey() 48116 if z.IsJSONHandle() { 48117 z.WriteStr("\"ServerName\"") 48118 } else { 48119 r.EncodeStringEnc(codecSelferCcUTF8100, `ServerName`) 48120 } 48121 r.WriteMapElemValue() 48122 if false { 48123 } else { 48124 if z.EncBasicHandle().StringToRaw { 48125 r.EncodeStringBytesRaw(z.BytesView(string(x.ServerName))) 48126 } else { 48127 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerName)) 48128 } 48129 } 48130 } 48131 if yyr2 || yy2arr2 { 48132 r.WriteArrayElem() 48133 if false { 48134 } else { 48135 if z.EncBasicHandle().StringToRaw { 48136 r.EncodeStringBytesRaw(z.BytesView(string(x.ServerRegion))) 48137 } else { 48138 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerRegion)) 48139 } 48140 } 48141 } else { 48142 r.WriteMapElemKey() 48143 if z.IsJSONHandle() { 48144 z.WriteStr("\"ServerRegion\"") 48145 } else { 48146 r.EncodeStringEnc(codecSelferCcUTF8100, `ServerRegion`) 48147 } 48148 r.WriteMapElemValue() 48149 if false { 48150 } else { 48151 if z.EncBasicHandle().StringToRaw { 48152 r.EncodeStringBytesRaw(z.BytesView(string(x.ServerRegion))) 48153 } else { 48154 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerRegion)) 48155 } 48156 } 48157 } 48158 if yyr2 || yy2arr2 { 48159 r.WriteArrayElem() 48160 if false { 48161 } else { 48162 if z.EncBasicHandle().StringToRaw { 48163 r.EncodeStringBytesRaw(z.BytesView(string(x.ServerDC))) 48164 } else { 48165 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerDC)) 48166 } 48167 } 48168 } else { 48169 r.WriteMapElemKey() 48170 if z.IsJSONHandle() { 48171 z.WriteStr("\"ServerDC\"") 48172 } else { 48173 r.EncodeStringEnc(codecSelferCcUTF8100, `ServerDC`) 48174 } 48175 r.WriteMapElemValue() 48176 if false { 48177 } else { 48178 if z.EncBasicHandle().StringToRaw { 48179 r.EncodeStringBytesRaw(z.BytesView(string(x.ServerDC))) 48180 } else { 48181 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerDC)) 48182 } 48183 } 48184 } 48185 if yyr2 || yy2arr2 { 48186 r.WriteArrayElem() 48187 if x.Members == nil { 48188 r.EncodeNil() 48189 } else { 48190 if false { 48191 } else { 48192 h.encSlicePtrtoServerMember(([]*ServerMember)(x.Members), e) 48193 } 48194 } 48195 } else { 48196 r.WriteMapElemKey() 48197 if z.IsJSONHandle() { 48198 z.WriteStr("\"Members\"") 48199 } else { 48200 r.EncodeStringEnc(codecSelferCcUTF8100, `Members`) 48201 } 48202 r.WriteMapElemValue() 48203 if x.Members == nil { 48204 r.EncodeNil() 48205 } else { 48206 if false { 48207 } else { 48208 h.encSlicePtrtoServerMember(([]*ServerMember)(x.Members), e) 48209 } 48210 } 48211 } 48212 if yyr2 || yy2arr2 { 48213 r.WriteArrayEnd() 48214 } else { 48215 r.WriteMapEnd() 48216 } 48217 } 48218 } 48219 } 48220 48221 func (x *ServerMembersResponse) CodecDecodeSelf(d *codec1978.Decoder) { 48222 var h codecSelfer100 48223 z, r := codec1978.GenHelperDecoder(d) 48224 _, _, _ = h, z, r 48225 if false { 48226 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 48227 z.DecExtension(x, yyxt1) 48228 } else { 48229 yyct2 := r.ContainerType() 48230 if yyct2 == codecSelferValueTypeMap100 { 48231 yyl2 := r.ReadMapStart() 48232 if yyl2 == 0 { 48233 r.ReadMapEnd() 48234 } else { 48235 x.codecDecodeSelfFromMap(yyl2, d) 48236 } 48237 } else if yyct2 == codecSelferValueTypeArray100 { 48238 yyl2 := r.ReadArrayStart() 48239 if yyl2 == 0 { 48240 r.ReadArrayEnd() 48241 } else { 48242 x.codecDecodeSelfFromArray(yyl2, d) 48243 } 48244 } else { 48245 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 48246 } 48247 } 48248 } 48249 48250 func (x *ServerMembersResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 48251 var h codecSelfer100 48252 z, r := codec1978.GenHelperDecoder(d) 48253 _, _, _ = h, z, r 48254 var yyhl3 bool = l >= 0 48255 for yyj3 := 0; ; yyj3++ { 48256 if yyhl3 { 48257 if yyj3 >= l { 48258 break 48259 } 48260 } else { 48261 if r.CheckBreak() { 48262 break 48263 } 48264 } 48265 r.ReadMapElemKey() 48266 yys3 := z.StringView(r.DecodeStringAsBytes()) 48267 r.ReadMapElemValue() 48268 switch yys3 { 48269 case "ServerName": 48270 if r.TryDecodeAsNil() { 48271 x.ServerName = "" 48272 } else { 48273 x.ServerName = (string)(r.DecodeString()) 48274 } 48275 case "ServerRegion": 48276 if r.TryDecodeAsNil() { 48277 x.ServerRegion = "" 48278 } else { 48279 x.ServerRegion = (string)(r.DecodeString()) 48280 } 48281 case "ServerDC": 48282 if r.TryDecodeAsNil() { 48283 x.ServerDC = "" 48284 } else { 48285 x.ServerDC = (string)(r.DecodeString()) 48286 } 48287 case "Members": 48288 if r.TryDecodeAsNil() { 48289 x.Members = nil 48290 } else { 48291 if false { 48292 } else { 48293 h.decSlicePtrtoServerMember((*[]*ServerMember)(&x.Members), d) 48294 } 48295 } 48296 default: 48297 z.DecStructFieldNotFound(-1, yys3) 48298 } // end switch yys3 48299 } // end for yyj3 48300 r.ReadMapEnd() 48301 } 48302 48303 func (x *ServerMembersResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 48304 var h codecSelfer100 48305 z, r := codec1978.GenHelperDecoder(d) 48306 _, _, _ = h, z, r 48307 var yyj9 int 48308 var yyb9 bool 48309 var yyhl9 bool = l >= 0 48310 yyj9++ 48311 if yyhl9 { 48312 yyb9 = yyj9 > l 48313 } else { 48314 yyb9 = r.CheckBreak() 48315 } 48316 if yyb9 { 48317 r.ReadArrayEnd() 48318 return 48319 } 48320 r.ReadArrayElem() 48321 if r.TryDecodeAsNil() { 48322 x.ServerName = "" 48323 } else { 48324 x.ServerName = (string)(r.DecodeString()) 48325 } 48326 yyj9++ 48327 if yyhl9 { 48328 yyb9 = yyj9 > l 48329 } else { 48330 yyb9 = r.CheckBreak() 48331 } 48332 if yyb9 { 48333 r.ReadArrayEnd() 48334 return 48335 } 48336 r.ReadArrayElem() 48337 if r.TryDecodeAsNil() { 48338 x.ServerRegion = "" 48339 } else { 48340 x.ServerRegion = (string)(r.DecodeString()) 48341 } 48342 yyj9++ 48343 if yyhl9 { 48344 yyb9 = yyj9 > l 48345 } else { 48346 yyb9 = r.CheckBreak() 48347 } 48348 if yyb9 { 48349 r.ReadArrayEnd() 48350 return 48351 } 48352 r.ReadArrayElem() 48353 if r.TryDecodeAsNil() { 48354 x.ServerDC = "" 48355 } else { 48356 x.ServerDC = (string)(r.DecodeString()) 48357 } 48358 yyj9++ 48359 if yyhl9 { 48360 yyb9 = yyj9 > l 48361 } else { 48362 yyb9 = r.CheckBreak() 48363 } 48364 if yyb9 { 48365 r.ReadArrayEnd() 48366 return 48367 } 48368 r.ReadArrayElem() 48369 if r.TryDecodeAsNil() { 48370 x.Members = nil 48371 } else { 48372 if false { 48373 } else { 48374 h.decSlicePtrtoServerMember((*[]*ServerMember)(&x.Members), d) 48375 } 48376 } 48377 for { 48378 yyj9++ 48379 if yyhl9 { 48380 yyb9 = yyj9 > l 48381 } else { 48382 yyb9 = r.CheckBreak() 48383 } 48384 if yyb9 { 48385 break 48386 } 48387 r.ReadArrayElem() 48388 z.DecStructFieldNotFound(yyj9-1, "") 48389 } 48390 r.ReadArrayEnd() 48391 } 48392 48393 func (x *ServerMember) CodecEncodeSelf(e *codec1978.Encoder) { 48394 var h codecSelfer100 48395 z, r := codec1978.GenHelperEncoder(e) 48396 _, _, _ = h, z, r 48397 if x == nil { 48398 r.EncodeNil() 48399 } else { 48400 if false { 48401 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 48402 z.EncExtension(x, yyxt1) 48403 } else { 48404 yysep2 := !z.EncBinary() 48405 yy2arr2 := z.EncBasicHandle().StructToArray 48406 _, _ = yysep2, yy2arr2 48407 const yyr2 bool = false // struct tag has 'toArray' 48408 if yyr2 || yy2arr2 { 48409 r.WriteArrayStart(11) 48410 } else { 48411 r.WriteMapStart(11) 48412 } 48413 if yyr2 || yy2arr2 { 48414 r.WriteArrayElem() 48415 if false { 48416 } else { 48417 if z.EncBasicHandle().StringToRaw { 48418 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 48419 } else { 48420 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 48421 } 48422 } 48423 } else { 48424 r.WriteMapElemKey() 48425 if z.IsJSONHandle() { 48426 z.WriteStr("\"Name\"") 48427 } else { 48428 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 48429 } 48430 r.WriteMapElemValue() 48431 if false { 48432 } else { 48433 if z.EncBasicHandle().StringToRaw { 48434 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 48435 } else { 48436 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 48437 } 48438 } 48439 } 48440 if yyr2 || yy2arr2 { 48441 r.WriteArrayElem() 48442 if x.Addr == nil { 48443 r.EncodeNil() 48444 } else { 48445 if false { 48446 } else if yyxt7 := z.Extension(z.I2Rtid(x.Addr)); yyxt7 != nil { 48447 z.EncExtension(x.Addr, yyxt7) 48448 } else if !z.EncBinary() { 48449 z.EncTextMarshal(x.Addr) 48450 } else { 48451 h.encnet_IP((net.IP)(x.Addr), e) 48452 } 48453 } 48454 } else { 48455 r.WriteMapElemKey() 48456 if z.IsJSONHandle() { 48457 z.WriteStr("\"Addr\"") 48458 } else { 48459 r.EncodeStringEnc(codecSelferCcUTF8100, `Addr`) 48460 } 48461 r.WriteMapElemValue() 48462 if x.Addr == nil { 48463 r.EncodeNil() 48464 } else { 48465 if false { 48466 } else if yyxt8 := z.Extension(z.I2Rtid(x.Addr)); yyxt8 != nil { 48467 z.EncExtension(x.Addr, yyxt8) 48468 } else if !z.EncBinary() { 48469 z.EncTextMarshal(x.Addr) 48470 } else { 48471 h.encnet_IP((net.IP)(x.Addr), e) 48472 } 48473 } 48474 } 48475 if yyr2 || yy2arr2 { 48476 r.WriteArrayElem() 48477 if false { 48478 } else { 48479 r.EncodeUint(uint64(x.Port)) 48480 } 48481 } else { 48482 r.WriteMapElemKey() 48483 if z.IsJSONHandle() { 48484 z.WriteStr("\"Port\"") 48485 } else { 48486 r.EncodeStringEnc(codecSelferCcUTF8100, `Port`) 48487 } 48488 r.WriteMapElemValue() 48489 if false { 48490 } else { 48491 r.EncodeUint(uint64(x.Port)) 48492 } 48493 } 48494 if yyr2 || yy2arr2 { 48495 r.WriteArrayElem() 48496 if x.Tags == nil { 48497 r.EncodeNil() 48498 } else { 48499 if false { 48500 } else { 48501 z.F.EncMapStringStringV(x.Tags, e) 48502 } 48503 } 48504 } else { 48505 r.WriteMapElemKey() 48506 if z.IsJSONHandle() { 48507 z.WriteStr("\"Tags\"") 48508 } else { 48509 r.EncodeStringEnc(codecSelferCcUTF8100, `Tags`) 48510 } 48511 r.WriteMapElemValue() 48512 if x.Tags == nil { 48513 r.EncodeNil() 48514 } else { 48515 if false { 48516 } else { 48517 z.F.EncMapStringStringV(x.Tags, e) 48518 } 48519 } 48520 } 48521 if yyr2 || yy2arr2 { 48522 r.WriteArrayElem() 48523 if false { 48524 } else { 48525 if z.EncBasicHandle().StringToRaw { 48526 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 48527 } else { 48528 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 48529 } 48530 } 48531 } else { 48532 r.WriteMapElemKey() 48533 if z.IsJSONHandle() { 48534 z.WriteStr("\"Status\"") 48535 } else { 48536 r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) 48537 } 48538 r.WriteMapElemValue() 48539 if false { 48540 } else { 48541 if z.EncBasicHandle().StringToRaw { 48542 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 48543 } else { 48544 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 48545 } 48546 } 48547 } 48548 if yyr2 || yy2arr2 { 48549 r.WriteArrayElem() 48550 if false { 48551 } else { 48552 r.EncodeUint(uint64(x.ProtocolMin)) 48553 } 48554 } else { 48555 r.WriteMapElemKey() 48556 if z.IsJSONHandle() { 48557 z.WriteStr("\"ProtocolMin\"") 48558 } else { 48559 r.EncodeStringEnc(codecSelferCcUTF8100, `ProtocolMin`) 48560 } 48561 r.WriteMapElemValue() 48562 if false { 48563 } else { 48564 r.EncodeUint(uint64(x.ProtocolMin)) 48565 } 48566 } 48567 if yyr2 || yy2arr2 { 48568 r.WriteArrayElem() 48569 if false { 48570 } else { 48571 r.EncodeUint(uint64(x.ProtocolMax)) 48572 } 48573 } else { 48574 r.WriteMapElemKey() 48575 if z.IsJSONHandle() { 48576 z.WriteStr("\"ProtocolMax\"") 48577 } else { 48578 r.EncodeStringEnc(codecSelferCcUTF8100, `ProtocolMax`) 48579 } 48580 r.WriteMapElemValue() 48581 if false { 48582 } else { 48583 r.EncodeUint(uint64(x.ProtocolMax)) 48584 } 48585 } 48586 if yyr2 || yy2arr2 { 48587 r.WriteArrayElem() 48588 if false { 48589 } else { 48590 r.EncodeUint(uint64(x.ProtocolCur)) 48591 } 48592 } else { 48593 r.WriteMapElemKey() 48594 if z.IsJSONHandle() { 48595 z.WriteStr("\"ProtocolCur\"") 48596 } else { 48597 r.EncodeStringEnc(codecSelferCcUTF8100, `ProtocolCur`) 48598 } 48599 r.WriteMapElemValue() 48600 if false { 48601 } else { 48602 r.EncodeUint(uint64(x.ProtocolCur)) 48603 } 48604 } 48605 if yyr2 || yy2arr2 { 48606 r.WriteArrayElem() 48607 if false { 48608 } else { 48609 r.EncodeUint(uint64(x.DelegateMin)) 48610 } 48611 } else { 48612 r.WriteMapElemKey() 48613 if z.IsJSONHandle() { 48614 z.WriteStr("\"DelegateMin\"") 48615 } else { 48616 r.EncodeStringEnc(codecSelferCcUTF8100, `DelegateMin`) 48617 } 48618 r.WriteMapElemValue() 48619 if false { 48620 } else { 48621 r.EncodeUint(uint64(x.DelegateMin)) 48622 } 48623 } 48624 if yyr2 || yy2arr2 { 48625 r.WriteArrayElem() 48626 if false { 48627 } else { 48628 r.EncodeUint(uint64(x.DelegateMax)) 48629 } 48630 } else { 48631 r.WriteMapElemKey() 48632 if z.IsJSONHandle() { 48633 z.WriteStr("\"DelegateMax\"") 48634 } else { 48635 r.EncodeStringEnc(codecSelferCcUTF8100, `DelegateMax`) 48636 } 48637 r.WriteMapElemValue() 48638 if false { 48639 } else { 48640 r.EncodeUint(uint64(x.DelegateMax)) 48641 } 48642 } 48643 if yyr2 || yy2arr2 { 48644 r.WriteArrayElem() 48645 if false { 48646 } else { 48647 r.EncodeUint(uint64(x.DelegateCur)) 48648 } 48649 } else { 48650 r.WriteMapElemKey() 48651 if z.IsJSONHandle() { 48652 z.WriteStr("\"DelegateCur\"") 48653 } else { 48654 r.EncodeStringEnc(codecSelferCcUTF8100, `DelegateCur`) 48655 } 48656 r.WriteMapElemValue() 48657 if false { 48658 } else { 48659 r.EncodeUint(uint64(x.DelegateCur)) 48660 } 48661 } 48662 if yyr2 || yy2arr2 { 48663 r.WriteArrayEnd() 48664 } else { 48665 r.WriteMapEnd() 48666 } 48667 } 48668 } 48669 } 48670 48671 func (x *ServerMember) CodecDecodeSelf(d *codec1978.Decoder) { 48672 var h codecSelfer100 48673 z, r := codec1978.GenHelperDecoder(d) 48674 _, _, _ = h, z, r 48675 if false { 48676 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 48677 z.DecExtension(x, yyxt1) 48678 } else { 48679 yyct2 := r.ContainerType() 48680 if yyct2 == codecSelferValueTypeMap100 { 48681 yyl2 := r.ReadMapStart() 48682 if yyl2 == 0 { 48683 r.ReadMapEnd() 48684 } else { 48685 x.codecDecodeSelfFromMap(yyl2, d) 48686 } 48687 } else if yyct2 == codecSelferValueTypeArray100 { 48688 yyl2 := r.ReadArrayStart() 48689 if yyl2 == 0 { 48690 r.ReadArrayEnd() 48691 } else { 48692 x.codecDecodeSelfFromArray(yyl2, d) 48693 } 48694 } else { 48695 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 48696 } 48697 } 48698 } 48699 48700 func (x *ServerMember) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 48701 var h codecSelfer100 48702 z, r := codec1978.GenHelperDecoder(d) 48703 _, _, _ = h, z, r 48704 var yyhl3 bool = l >= 0 48705 for yyj3 := 0; ; yyj3++ { 48706 if yyhl3 { 48707 if yyj3 >= l { 48708 break 48709 } 48710 } else { 48711 if r.CheckBreak() { 48712 break 48713 } 48714 } 48715 r.ReadMapElemKey() 48716 yys3 := z.StringView(r.DecodeStringAsBytes()) 48717 r.ReadMapElemValue() 48718 switch yys3 { 48719 case "Name": 48720 if r.TryDecodeAsNil() { 48721 x.Name = "" 48722 } else { 48723 x.Name = (string)(r.DecodeString()) 48724 } 48725 case "Addr": 48726 if r.TryDecodeAsNil() { 48727 x.Addr = nil 48728 } else { 48729 if false { 48730 } else if yyxt6 := z.Extension(z.I2Rtid(x.Addr)); yyxt6 != nil { 48731 z.DecExtension(x.Addr, yyxt6) 48732 } else if !z.DecBinary() { 48733 z.DecTextUnmarshal(&x.Addr) 48734 } else { 48735 h.decnet_IP((*net.IP)(&x.Addr), d) 48736 } 48737 } 48738 case "Port": 48739 if r.TryDecodeAsNil() { 48740 x.Port = 0 48741 } else { 48742 x.Port = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) 48743 } 48744 case "Tags": 48745 if r.TryDecodeAsNil() { 48746 x.Tags = nil 48747 } else { 48748 if false { 48749 } else { 48750 z.F.DecMapStringStringX(&x.Tags, d) 48751 } 48752 } 48753 case "Status": 48754 if r.TryDecodeAsNil() { 48755 x.Status = "" 48756 } else { 48757 x.Status = (string)(r.DecodeString()) 48758 } 48759 case "ProtocolMin": 48760 if r.TryDecodeAsNil() { 48761 x.ProtocolMin = 0 48762 } else { 48763 x.ProtocolMin = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 48764 } 48765 case "ProtocolMax": 48766 if r.TryDecodeAsNil() { 48767 x.ProtocolMax = 0 48768 } else { 48769 x.ProtocolMax = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 48770 } 48771 case "ProtocolCur": 48772 if r.TryDecodeAsNil() { 48773 x.ProtocolCur = 0 48774 } else { 48775 x.ProtocolCur = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 48776 } 48777 case "DelegateMin": 48778 if r.TryDecodeAsNil() { 48779 x.DelegateMin = 0 48780 } else { 48781 x.DelegateMin = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 48782 } 48783 case "DelegateMax": 48784 if r.TryDecodeAsNil() { 48785 x.DelegateMax = 0 48786 } else { 48787 x.DelegateMax = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 48788 } 48789 case "DelegateCur": 48790 if r.TryDecodeAsNil() { 48791 x.DelegateCur = 0 48792 } else { 48793 x.DelegateCur = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 48794 } 48795 default: 48796 z.DecStructFieldNotFound(-1, yys3) 48797 } // end switch yys3 48798 } // end for yyj3 48799 r.ReadMapEnd() 48800 } 48801 48802 func (x *ServerMember) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 48803 var h codecSelfer100 48804 z, r := codec1978.GenHelperDecoder(d) 48805 _, _, _ = h, z, r 48806 var yyj17 int 48807 var yyb17 bool 48808 var yyhl17 bool = l >= 0 48809 yyj17++ 48810 if yyhl17 { 48811 yyb17 = yyj17 > l 48812 } else { 48813 yyb17 = r.CheckBreak() 48814 } 48815 if yyb17 { 48816 r.ReadArrayEnd() 48817 return 48818 } 48819 r.ReadArrayElem() 48820 if r.TryDecodeAsNil() { 48821 x.Name = "" 48822 } else { 48823 x.Name = (string)(r.DecodeString()) 48824 } 48825 yyj17++ 48826 if yyhl17 { 48827 yyb17 = yyj17 > l 48828 } else { 48829 yyb17 = r.CheckBreak() 48830 } 48831 if yyb17 { 48832 r.ReadArrayEnd() 48833 return 48834 } 48835 r.ReadArrayElem() 48836 if r.TryDecodeAsNil() { 48837 x.Addr = nil 48838 } else { 48839 if false { 48840 } else if yyxt20 := z.Extension(z.I2Rtid(x.Addr)); yyxt20 != nil { 48841 z.DecExtension(x.Addr, yyxt20) 48842 } else if !z.DecBinary() { 48843 z.DecTextUnmarshal(&x.Addr) 48844 } else { 48845 h.decnet_IP((*net.IP)(&x.Addr), d) 48846 } 48847 } 48848 yyj17++ 48849 if yyhl17 { 48850 yyb17 = yyj17 > l 48851 } else { 48852 yyb17 = r.CheckBreak() 48853 } 48854 if yyb17 { 48855 r.ReadArrayEnd() 48856 return 48857 } 48858 r.ReadArrayElem() 48859 if r.TryDecodeAsNil() { 48860 x.Port = 0 48861 } else { 48862 x.Port = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) 48863 } 48864 yyj17++ 48865 if yyhl17 { 48866 yyb17 = yyj17 > l 48867 } else { 48868 yyb17 = r.CheckBreak() 48869 } 48870 if yyb17 { 48871 r.ReadArrayEnd() 48872 return 48873 } 48874 r.ReadArrayElem() 48875 if r.TryDecodeAsNil() { 48876 x.Tags = nil 48877 } else { 48878 if false { 48879 } else { 48880 z.F.DecMapStringStringX(&x.Tags, d) 48881 } 48882 } 48883 yyj17++ 48884 if yyhl17 { 48885 yyb17 = yyj17 > l 48886 } else { 48887 yyb17 = r.CheckBreak() 48888 } 48889 if yyb17 { 48890 r.ReadArrayEnd() 48891 return 48892 } 48893 r.ReadArrayElem() 48894 if r.TryDecodeAsNil() { 48895 x.Status = "" 48896 } else { 48897 x.Status = (string)(r.DecodeString()) 48898 } 48899 yyj17++ 48900 if yyhl17 { 48901 yyb17 = yyj17 > l 48902 } else { 48903 yyb17 = r.CheckBreak() 48904 } 48905 if yyb17 { 48906 r.ReadArrayEnd() 48907 return 48908 } 48909 r.ReadArrayElem() 48910 if r.TryDecodeAsNil() { 48911 x.ProtocolMin = 0 48912 } else { 48913 x.ProtocolMin = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 48914 } 48915 yyj17++ 48916 if yyhl17 { 48917 yyb17 = yyj17 > l 48918 } else { 48919 yyb17 = r.CheckBreak() 48920 } 48921 if yyb17 { 48922 r.ReadArrayEnd() 48923 return 48924 } 48925 r.ReadArrayElem() 48926 if r.TryDecodeAsNil() { 48927 x.ProtocolMax = 0 48928 } else { 48929 x.ProtocolMax = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 48930 } 48931 yyj17++ 48932 if yyhl17 { 48933 yyb17 = yyj17 > l 48934 } else { 48935 yyb17 = r.CheckBreak() 48936 } 48937 if yyb17 { 48938 r.ReadArrayEnd() 48939 return 48940 } 48941 r.ReadArrayElem() 48942 if r.TryDecodeAsNil() { 48943 x.ProtocolCur = 0 48944 } else { 48945 x.ProtocolCur = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 48946 } 48947 yyj17++ 48948 if yyhl17 { 48949 yyb17 = yyj17 > l 48950 } else { 48951 yyb17 = r.CheckBreak() 48952 } 48953 if yyb17 { 48954 r.ReadArrayEnd() 48955 return 48956 } 48957 r.ReadArrayElem() 48958 if r.TryDecodeAsNil() { 48959 x.DelegateMin = 0 48960 } else { 48961 x.DelegateMin = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 48962 } 48963 yyj17++ 48964 if yyhl17 { 48965 yyb17 = yyj17 > l 48966 } else { 48967 yyb17 = r.CheckBreak() 48968 } 48969 if yyb17 { 48970 r.ReadArrayEnd() 48971 return 48972 } 48973 r.ReadArrayElem() 48974 if r.TryDecodeAsNil() { 48975 x.DelegateMax = 0 48976 } else { 48977 x.DelegateMax = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 48978 } 48979 yyj17++ 48980 if yyhl17 { 48981 yyb17 = yyj17 > l 48982 } else { 48983 yyb17 = r.CheckBreak() 48984 } 48985 if yyb17 { 48986 r.ReadArrayEnd() 48987 return 48988 } 48989 r.ReadArrayElem() 48990 if r.TryDecodeAsNil() { 48991 x.DelegateCur = 0 48992 } else { 48993 x.DelegateCur = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 48994 } 48995 for { 48996 yyj17++ 48997 if yyhl17 { 48998 yyb17 = yyj17 > l 48999 } else { 49000 yyb17 = r.CheckBreak() 49001 } 49002 if yyb17 { 49003 break 49004 } 49005 r.ReadArrayElem() 49006 z.DecStructFieldNotFound(yyj17-1, "") 49007 } 49008 r.ReadArrayEnd() 49009 } 49010 49011 func (x *ClusterMetadata) CodecEncodeSelf(e *codec1978.Encoder) { 49012 var h codecSelfer100 49013 z, r := codec1978.GenHelperEncoder(e) 49014 _, _, _ = h, z, r 49015 if x == nil { 49016 r.EncodeNil() 49017 } else { 49018 if false { 49019 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 49020 z.EncExtension(x, yyxt1) 49021 } else { 49022 yysep2 := !z.EncBinary() 49023 yy2arr2 := z.EncBasicHandle().StructToArray 49024 _, _ = yysep2, yy2arr2 49025 const yyr2 bool = false // struct tag has 'toArray' 49026 if yyr2 || yy2arr2 { 49027 r.WriteArrayStart(2) 49028 } else { 49029 r.WriteMapStart(2) 49030 } 49031 if yyr2 || yy2arr2 { 49032 r.WriteArrayElem() 49033 if false { 49034 } else { 49035 if z.EncBasicHandle().StringToRaw { 49036 r.EncodeStringBytesRaw(z.BytesView(string(x.ClusterID))) 49037 } else { 49038 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClusterID)) 49039 } 49040 } 49041 } else { 49042 r.WriteMapElemKey() 49043 if z.IsJSONHandle() { 49044 z.WriteStr("\"ClusterID\"") 49045 } else { 49046 r.EncodeStringEnc(codecSelferCcUTF8100, `ClusterID`) 49047 } 49048 r.WriteMapElemValue() 49049 if false { 49050 } else { 49051 if z.EncBasicHandle().StringToRaw { 49052 r.EncodeStringBytesRaw(z.BytesView(string(x.ClusterID))) 49053 } else { 49054 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClusterID)) 49055 } 49056 } 49057 } 49058 if yyr2 || yy2arr2 { 49059 r.WriteArrayElem() 49060 if false { 49061 } else { 49062 r.EncodeInt(int64(x.CreateTime)) 49063 } 49064 } else { 49065 r.WriteMapElemKey() 49066 if z.IsJSONHandle() { 49067 z.WriteStr("\"CreateTime\"") 49068 } else { 49069 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) 49070 } 49071 r.WriteMapElemValue() 49072 if false { 49073 } else { 49074 r.EncodeInt(int64(x.CreateTime)) 49075 } 49076 } 49077 if yyr2 || yy2arr2 { 49078 r.WriteArrayEnd() 49079 } else { 49080 r.WriteMapEnd() 49081 } 49082 } 49083 } 49084 } 49085 49086 func (x *ClusterMetadata) CodecDecodeSelf(d *codec1978.Decoder) { 49087 var h codecSelfer100 49088 z, r := codec1978.GenHelperDecoder(d) 49089 _, _, _ = h, z, r 49090 if false { 49091 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 49092 z.DecExtension(x, yyxt1) 49093 } else { 49094 yyct2 := r.ContainerType() 49095 if yyct2 == codecSelferValueTypeMap100 { 49096 yyl2 := r.ReadMapStart() 49097 if yyl2 == 0 { 49098 r.ReadMapEnd() 49099 } else { 49100 x.codecDecodeSelfFromMap(yyl2, d) 49101 } 49102 } else if yyct2 == codecSelferValueTypeArray100 { 49103 yyl2 := r.ReadArrayStart() 49104 if yyl2 == 0 { 49105 r.ReadArrayEnd() 49106 } else { 49107 x.codecDecodeSelfFromArray(yyl2, d) 49108 } 49109 } else { 49110 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 49111 } 49112 } 49113 } 49114 49115 func (x *ClusterMetadata) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 49116 var h codecSelfer100 49117 z, r := codec1978.GenHelperDecoder(d) 49118 _, _, _ = h, z, r 49119 var yyhl3 bool = l >= 0 49120 for yyj3 := 0; ; yyj3++ { 49121 if yyhl3 { 49122 if yyj3 >= l { 49123 break 49124 } 49125 } else { 49126 if r.CheckBreak() { 49127 break 49128 } 49129 } 49130 r.ReadMapElemKey() 49131 yys3 := z.StringView(r.DecodeStringAsBytes()) 49132 r.ReadMapElemValue() 49133 switch yys3 { 49134 case "ClusterID": 49135 if r.TryDecodeAsNil() { 49136 x.ClusterID = "" 49137 } else { 49138 x.ClusterID = (string)(r.DecodeString()) 49139 } 49140 case "CreateTime": 49141 if r.TryDecodeAsNil() { 49142 x.CreateTime = 0 49143 } else { 49144 x.CreateTime = (int64)(r.DecodeInt64()) 49145 } 49146 default: 49147 z.DecStructFieldNotFound(-1, yys3) 49148 } // end switch yys3 49149 } // end for yyj3 49150 r.ReadMapEnd() 49151 } 49152 49153 func (x *ClusterMetadata) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 49154 var h codecSelfer100 49155 z, r := codec1978.GenHelperDecoder(d) 49156 _, _, _ = h, z, r 49157 var yyj6 int 49158 var yyb6 bool 49159 var yyhl6 bool = l >= 0 49160 yyj6++ 49161 if yyhl6 { 49162 yyb6 = yyj6 > l 49163 } else { 49164 yyb6 = r.CheckBreak() 49165 } 49166 if yyb6 { 49167 r.ReadArrayEnd() 49168 return 49169 } 49170 r.ReadArrayElem() 49171 if r.TryDecodeAsNil() { 49172 x.ClusterID = "" 49173 } else { 49174 x.ClusterID = (string)(r.DecodeString()) 49175 } 49176 yyj6++ 49177 if yyhl6 { 49178 yyb6 = yyj6 > l 49179 } else { 49180 yyb6 = r.CheckBreak() 49181 } 49182 if yyb6 { 49183 r.ReadArrayEnd() 49184 return 49185 } 49186 r.ReadArrayElem() 49187 if r.TryDecodeAsNil() { 49188 x.CreateTime = 0 49189 } else { 49190 x.CreateTime = (int64)(r.DecodeInt64()) 49191 } 49192 for { 49193 yyj6++ 49194 if yyhl6 { 49195 yyb6 = yyj6 > l 49196 } else { 49197 yyb6 = r.CheckBreak() 49198 } 49199 if yyb6 { 49200 break 49201 } 49202 r.ReadArrayElem() 49203 z.DecStructFieldNotFound(yyj6-1, "") 49204 } 49205 r.ReadArrayEnd() 49206 } 49207 49208 func (x *DeriveVaultTokenRequest) CodecEncodeSelf(e *codec1978.Encoder) { 49209 var h codecSelfer100 49210 z, r := codec1978.GenHelperEncoder(e) 49211 _, _, _ = h, z, r 49212 if x == nil { 49213 r.EncodeNil() 49214 } else { 49215 if false { 49216 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 49217 z.EncExtension(x, yyxt1) 49218 } else { 49219 yysep2 := !z.EncBinary() 49220 yy2arr2 := z.EncBasicHandle().StructToArray 49221 _, _ = yysep2, yy2arr2 49222 const yyr2 bool = false // struct tag has 'toArray' 49223 if yyr2 || yy2arr2 { 49224 r.WriteArrayStart(12) 49225 } else { 49226 r.WriteMapStart(12) 49227 } 49228 if yyr2 || yy2arr2 { 49229 r.WriteArrayElem() 49230 if false { 49231 } else { 49232 if z.EncBasicHandle().StringToRaw { 49233 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 49234 } else { 49235 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 49236 } 49237 } 49238 } else { 49239 r.WriteMapElemKey() 49240 if z.IsJSONHandle() { 49241 z.WriteStr("\"NodeID\"") 49242 } else { 49243 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 49244 } 49245 r.WriteMapElemValue() 49246 if false { 49247 } else { 49248 if z.EncBasicHandle().StringToRaw { 49249 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 49250 } else { 49251 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 49252 } 49253 } 49254 } 49255 if yyr2 || yy2arr2 { 49256 r.WriteArrayElem() 49257 if false { 49258 } else { 49259 if z.EncBasicHandle().StringToRaw { 49260 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 49261 } else { 49262 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 49263 } 49264 } 49265 } else { 49266 r.WriteMapElemKey() 49267 if z.IsJSONHandle() { 49268 z.WriteStr("\"SecretID\"") 49269 } else { 49270 r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) 49271 } 49272 r.WriteMapElemValue() 49273 if false { 49274 } else { 49275 if z.EncBasicHandle().StringToRaw { 49276 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 49277 } else { 49278 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 49279 } 49280 } 49281 } 49282 if yyr2 || yy2arr2 { 49283 r.WriteArrayElem() 49284 if false { 49285 } else { 49286 if z.EncBasicHandle().StringToRaw { 49287 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 49288 } else { 49289 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 49290 } 49291 } 49292 } else { 49293 r.WriteMapElemKey() 49294 if z.IsJSONHandle() { 49295 z.WriteStr("\"AllocID\"") 49296 } else { 49297 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) 49298 } 49299 r.WriteMapElemValue() 49300 if false { 49301 } else { 49302 if z.EncBasicHandle().StringToRaw { 49303 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 49304 } else { 49305 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 49306 } 49307 } 49308 } 49309 if yyr2 || yy2arr2 { 49310 r.WriteArrayElem() 49311 if x.Tasks == nil { 49312 r.EncodeNil() 49313 } else { 49314 if false { 49315 } else { 49316 z.F.EncSliceStringV(x.Tasks, e) 49317 } 49318 } 49319 } else { 49320 r.WriteMapElemKey() 49321 if z.IsJSONHandle() { 49322 z.WriteStr("\"Tasks\"") 49323 } else { 49324 r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) 49325 } 49326 r.WriteMapElemValue() 49327 if x.Tasks == nil { 49328 r.EncodeNil() 49329 } else { 49330 if false { 49331 } else { 49332 z.F.EncSliceStringV(x.Tasks, e) 49333 } 49334 } 49335 } 49336 if yyr2 || yy2arr2 { 49337 r.WriteArrayElem() 49338 if false { 49339 } else { 49340 if z.EncBasicHandle().StringToRaw { 49341 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 49342 } else { 49343 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 49344 } 49345 } 49346 } else { 49347 r.WriteMapElemKey() 49348 if z.IsJSONHandle() { 49349 z.WriteStr("\"Region\"") 49350 } else { 49351 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 49352 } 49353 r.WriteMapElemValue() 49354 if false { 49355 } else { 49356 if z.EncBasicHandle().StringToRaw { 49357 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 49358 } else { 49359 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 49360 } 49361 } 49362 } 49363 if yyr2 || yy2arr2 { 49364 r.WriteArrayElem() 49365 if false { 49366 } else { 49367 if z.EncBasicHandle().StringToRaw { 49368 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 49369 } else { 49370 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 49371 } 49372 } 49373 } else { 49374 r.WriteMapElemKey() 49375 if z.IsJSONHandle() { 49376 z.WriteStr("\"Namespace\"") 49377 } else { 49378 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 49379 } 49380 r.WriteMapElemValue() 49381 if false { 49382 } else { 49383 if z.EncBasicHandle().StringToRaw { 49384 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 49385 } else { 49386 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 49387 } 49388 } 49389 } 49390 if yyr2 || yy2arr2 { 49391 r.WriteArrayElem() 49392 if false { 49393 } else { 49394 r.EncodeUint(uint64(x.MinQueryIndex)) 49395 } 49396 } else { 49397 r.WriteMapElemKey() 49398 if z.IsJSONHandle() { 49399 z.WriteStr("\"MinQueryIndex\"") 49400 } else { 49401 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 49402 } 49403 r.WriteMapElemValue() 49404 if false { 49405 } else { 49406 r.EncodeUint(uint64(x.MinQueryIndex)) 49407 } 49408 } 49409 if yyr2 || yy2arr2 { 49410 r.WriteArrayElem() 49411 if false { 49412 } else if yyxt25 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt25 != nil { 49413 z.EncExtension(x.MaxQueryTime, yyxt25) 49414 } else { 49415 r.EncodeInt(int64(x.MaxQueryTime)) 49416 } 49417 } else { 49418 r.WriteMapElemKey() 49419 if z.IsJSONHandle() { 49420 z.WriteStr("\"MaxQueryTime\"") 49421 } else { 49422 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 49423 } 49424 r.WriteMapElemValue() 49425 if false { 49426 } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { 49427 z.EncExtension(x.MaxQueryTime, yyxt26) 49428 } else { 49429 r.EncodeInt(int64(x.MaxQueryTime)) 49430 } 49431 } 49432 if yyr2 || yy2arr2 { 49433 r.WriteArrayElem() 49434 if false { 49435 } else { 49436 r.EncodeBool(bool(x.AllowStale)) 49437 } 49438 } else { 49439 r.WriteMapElemKey() 49440 if z.IsJSONHandle() { 49441 z.WriteStr("\"AllowStale\"") 49442 } else { 49443 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 49444 } 49445 r.WriteMapElemValue() 49446 if false { 49447 } else { 49448 r.EncodeBool(bool(x.AllowStale)) 49449 } 49450 } 49451 if yyr2 || yy2arr2 { 49452 r.WriteArrayElem() 49453 if false { 49454 } else { 49455 if z.EncBasicHandle().StringToRaw { 49456 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 49457 } else { 49458 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 49459 } 49460 } 49461 } else { 49462 r.WriteMapElemKey() 49463 if z.IsJSONHandle() { 49464 z.WriteStr("\"Prefix\"") 49465 } else { 49466 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 49467 } 49468 r.WriteMapElemValue() 49469 if false { 49470 } else { 49471 if z.EncBasicHandle().StringToRaw { 49472 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 49473 } else { 49474 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 49475 } 49476 } 49477 } 49478 if yyr2 || yy2arr2 { 49479 r.WriteArrayElem() 49480 if false { 49481 } else { 49482 if z.EncBasicHandle().StringToRaw { 49483 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 49484 } else { 49485 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 49486 } 49487 } 49488 } else { 49489 r.WriteMapElemKey() 49490 if z.IsJSONHandle() { 49491 z.WriteStr("\"AuthToken\"") 49492 } else { 49493 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 49494 } 49495 r.WriteMapElemValue() 49496 if false { 49497 } else { 49498 if z.EncBasicHandle().StringToRaw { 49499 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 49500 } else { 49501 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 49502 } 49503 } 49504 } 49505 if yyr2 || yy2arr2 { 49506 r.WriteArrayElem() 49507 if false { 49508 } else { 49509 r.EncodeBool(bool(x.Forwarded)) 49510 } 49511 } else { 49512 r.WriteMapElemKey() 49513 if z.IsJSONHandle() { 49514 z.WriteStr("\"Forwarded\"") 49515 } else { 49516 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 49517 } 49518 r.WriteMapElemValue() 49519 if false { 49520 } else { 49521 r.EncodeBool(bool(x.Forwarded)) 49522 } 49523 } 49524 if yyr2 || yy2arr2 { 49525 r.WriteArrayEnd() 49526 } else { 49527 r.WriteMapEnd() 49528 } 49529 } 49530 } 49531 } 49532 49533 func (x *DeriveVaultTokenRequest) CodecDecodeSelf(d *codec1978.Decoder) { 49534 var h codecSelfer100 49535 z, r := codec1978.GenHelperDecoder(d) 49536 _, _, _ = h, z, r 49537 if false { 49538 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 49539 z.DecExtension(x, yyxt1) 49540 } else { 49541 yyct2 := r.ContainerType() 49542 if yyct2 == codecSelferValueTypeMap100 { 49543 yyl2 := r.ReadMapStart() 49544 if yyl2 == 0 { 49545 r.ReadMapEnd() 49546 } else { 49547 x.codecDecodeSelfFromMap(yyl2, d) 49548 } 49549 } else if yyct2 == codecSelferValueTypeArray100 { 49550 yyl2 := r.ReadArrayStart() 49551 if yyl2 == 0 { 49552 r.ReadArrayEnd() 49553 } else { 49554 x.codecDecodeSelfFromArray(yyl2, d) 49555 } 49556 } else { 49557 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 49558 } 49559 } 49560 } 49561 49562 func (x *DeriveVaultTokenRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 49563 var h codecSelfer100 49564 z, r := codec1978.GenHelperDecoder(d) 49565 _, _, _ = h, z, r 49566 var yyhl3 bool = l >= 0 49567 for yyj3 := 0; ; yyj3++ { 49568 if yyhl3 { 49569 if yyj3 >= l { 49570 break 49571 } 49572 } else { 49573 if r.CheckBreak() { 49574 break 49575 } 49576 } 49577 r.ReadMapElemKey() 49578 yys3 := z.StringView(r.DecodeStringAsBytes()) 49579 r.ReadMapElemValue() 49580 switch yys3 { 49581 case "NodeID": 49582 if r.TryDecodeAsNil() { 49583 x.NodeID = "" 49584 } else { 49585 x.NodeID = (string)(r.DecodeString()) 49586 } 49587 case "SecretID": 49588 if r.TryDecodeAsNil() { 49589 x.SecretID = "" 49590 } else { 49591 x.SecretID = (string)(r.DecodeString()) 49592 } 49593 case "AllocID": 49594 if r.TryDecodeAsNil() { 49595 x.AllocID = "" 49596 } else { 49597 x.AllocID = (string)(r.DecodeString()) 49598 } 49599 case "Tasks": 49600 if r.TryDecodeAsNil() { 49601 x.Tasks = nil 49602 } else { 49603 if false { 49604 } else { 49605 z.F.DecSliceStringX(&x.Tasks, d) 49606 } 49607 } 49608 case "Region": 49609 if r.TryDecodeAsNil() { 49610 x.QueryOptions.Region = "" 49611 } else { 49612 x.Region = (string)(r.DecodeString()) 49613 } 49614 case "Namespace": 49615 if r.TryDecodeAsNil() { 49616 x.QueryOptions.Namespace = "" 49617 } else { 49618 x.Namespace = (string)(r.DecodeString()) 49619 } 49620 case "MinQueryIndex": 49621 if r.TryDecodeAsNil() { 49622 x.QueryOptions.MinQueryIndex = 0 49623 } else { 49624 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 49625 } 49626 case "MaxQueryTime": 49627 if r.TryDecodeAsNil() { 49628 x.QueryOptions.MaxQueryTime = 0 49629 } else { 49630 if false { 49631 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 49632 z.DecExtension(x.MaxQueryTime, yyxt13) 49633 } else { 49634 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 49635 } 49636 } 49637 case "AllowStale": 49638 if r.TryDecodeAsNil() { 49639 x.QueryOptions.AllowStale = false 49640 } else { 49641 x.AllowStale = (bool)(r.DecodeBool()) 49642 } 49643 case "Prefix": 49644 if r.TryDecodeAsNil() { 49645 x.QueryOptions.Prefix = "" 49646 } else { 49647 x.Prefix = (string)(r.DecodeString()) 49648 } 49649 case "AuthToken": 49650 if r.TryDecodeAsNil() { 49651 x.QueryOptions.AuthToken = "" 49652 } else { 49653 x.AuthToken = (string)(r.DecodeString()) 49654 } 49655 case "Forwarded": 49656 if r.TryDecodeAsNil() { 49657 x.QueryOptions.InternalRpcInfo.Forwarded = false 49658 } else { 49659 x.Forwarded = (bool)(r.DecodeBool()) 49660 } 49661 default: 49662 z.DecStructFieldNotFound(-1, yys3) 49663 } // end switch yys3 49664 } // end for yyj3 49665 r.ReadMapEnd() 49666 } 49667 49668 func (x *DeriveVaultTokenRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 49669 var h codecSelfer100 49670 z, r := codec1978.GenHelperDecoder(d) 49671 _, _, _ = h, z, r 49672 var yyj18 int 49673 var yyb18 bool 49674 var yyhl18 bool = l >= 0 49675 yyj18++ 49676 if yyhl18 { 49677 yyb18 = yyj18 > l 49678 } else { 49679 yyb18 = r.CheckBreak() 49680 } 49681 if yyb18 { 49682 r.ReadArrayEnd() 49683 return 49684 } 49685 r.ReadArrayElem() 49686 if r.TryDecodeAsNil() { 49687 x.NodeID = "" 49688 } else { 49689 x.NodeID = (string)(r.DecodeString()) 49690 } 49691 yyj18++ 49692 if yyhl18 { 49693 yyb18 = yyj18 > l 49694 } else { 49695 yyb18 = r.CheckBreak() 49696 } 49697 if yyb18 { 49698 r.ReadArrayEnd() 49699 return 49700 } 49701 r.ReadArrayElem() 49702 if r.TryDecodeAsNil() { 49703 x.SecretID = "" 49704 } else { 49705 x.SecretID = (string)(r.DecodeString()) 49706 } 49707 yyj18++ 49708 if yyhl18 { 49709 yyb18 = yyj18 > l 49710 } else { 49711 yyb18 = r.CheckBreak() 49712 } 49713 if yyb18 { 49714 r.ReadArrayEnd() 49715 return 49716 } 49717 r.ReadArrayElem() 49718 if r.TryDecodeAsNil() { 49719 x.AllocID = "" 49720 } else { 49721 x.AllocID = (string)(r.DecodeString()) 49722 } 49723 yyj18++ 49724 if yyhl18 { 49725 yyb18 = yyj18 > l 49726 } else { 49727 yyb18 = r.CheckBreak() 49728 } 49729 if yyb18 { 49730 r.ReadArrayEnd() 49731 return 49732 } 49733 r.ReadArrayElem() 49734 if r.TryDecodeAsNil() { 49735 x.Tasks = nil 49736 } else { 49737 if false { 49738 } else { 49739 z.F.DecSliceStringX(&x.Tasks, d) 49740 } 49741 } 49742 yyj18++ 49743 if yyhl18 { 49744 yyb18 = yyj18 > l 49745 } else { 49746 yyb18 = r.CheckBreak() 49747 } 49748 if yyb18 { 49749 r.ReadArrayEnd() 49750 return 49751 } 49752 r.ReadArrayElem() 49753 if r.TryDecodeAsNil() { 49754 x.QueryOptions.Region = "" 49755 } else { 49756 x.Region = (string)(r.DecodeString()) 49757 } 49758 yyj18++ 49759 if yyhl18 { 49760 yyb18 = yyj18 > l 49761 } else { 49762 yyb18 = r.CheckBreak() 49763 } 49764 if yyb18 { 49765 r.ReadArrayEnd() 49766 return 49767 } 49768 r.ReadArrayElem() 49769 if r.TryDecodeAsNil() { 49770 x.QueryOptions.Namespace = "" 49771 } else { 49772 x.Namespace = (string)(r.DecodeString()) 49773 } 49774 yyj18++ 49775 if yyhl18 { 49776 yyb18 = yyj18 > l 49777 } else { 49778 yyb18 = r.CheckBreak() 49779 } 49780 if yyb18 { 49781 r.ReadArrayEnd() 49782 return 49783 } 49784 r.ReadArrayElem() 49785 if r.TryDecodeAsNil() { 49786 x.QueryOptions.MinQueryIndex = 0 49787 } else { 49788 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 49789 } 49790 yyj18++ 49791 if yyhl18 { 49792 yyb18 = yyj18 > l 49793 } else { 49794 yyb18 = r.CheckBreak() 49795 } 49796 if yyb18 { 49797 r.ReadArrayEnd() 49798 return 49799 } 49800 r.ReadArrayElem() 49801 if r.TryDecodeAsNil() { 49802 x.QueryOptions.MaxQueryTime = 0 49803 } else { 49804 if false { 49805 } else if yyxt28 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt28 != nil { 49806 z.DecExtension(x.MaxQueryTime, yyxt28) 49807 } else { 49808 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 49809 } 49810 } 49811 yyj18++ 49812 if yyhl18 { 49813 yyb18 = yyj18 > l 49814 } else { 49815 yyb18 = r.CheckBreak() 49816 } 49817 if yyb18 { 49818 r.ReadArrayEnd() 49819 return 49820 } 49821 r.ReadArrayElem() 49822 if r.TryDecodeAsNil() { 49823 x.QueryOptions.AllowStale = false 49824 } else { 49825 x.AllowStale = (bool)(r.DecodeBool()) 49826 } 49827 yyj18++ 49828 if yyhl18 { 49829 yyb18 = yyj18 > l 49830 } else { 49831 yyb18 = r.CheckBreak() 49832 } 49833 if yyb18 { 49834 r.ReadArrayEnd() 49835 return 49836 } 49837 r.ReadArrayElem() 49838 if r.TryDecodeAsNil() { 49839 x.QueryOptions.Prefix = "" 49840 } else { 49841 x.Prefix = (string)(r.DecodeString()) 49842 } 49843 yyj18++ 49844 if yyhl18 { 49845 yyb18 = yyj18 > l 49846 } else { 49847 yyb18 = r.CheckBreak() 49848 } 49849 if yyb18 { 49850 r.ReadArrayEnd() 49851 return 49852 } 49853 r.ReadArrayElem() 49854 if r.TryDecodeAsNil() { 49855 x.QueryOptions.AuthToken = "" 49856 } else { 49857 x.AuthToken = (string)(r.DecodeString()) 49858 } 49859 yyj18++ 49860 if yyhl18 { 49861 yyb18 = yyj18 > l 49862 } else { 49863 yyb18 = r.CheckBreak() 49864 } 49865 if yyb18 { 49866 r.ReadArrayEnd() 49867 return 49868 } 49869 r.ReadArrayElem() 49870 if r.TryDecodeAsNil() { 49871 x.QueryOptions.InternalRpcInfo.Forwarded = false 49872 } else { 49873 x.Forwarded = (bool)(r.DecodeBool()) 49874 } 49875 for { 49876 yyj18++ 49877 if yyhl18 { 49878 yyb18 = yyj18 > l 49879 } else { 49880 yyb18 = r.CheckBreak() 49881 } 49882 if yyb18 { 49883 break 49884 } 49885 r.ReadArrayElem() 49886 z.DecStructFieldNotFound(yyj18-1, "") 49887 } 49888 r.ReadArrayEnd() 49889 } 49890 49891 func (x *VaultAccessorsRequest) CodecEncodeSelf(e *codec1978.Encoder) { 49892 var h codecSelfer100 49893 z, r := codec1978.GenHelperEncoder(e) 49894 _, _, _ = h, z, r 49895 if x == nil { 49896 r.EncodeNil() 49897 } else { 49898 if false { 49899 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 49900 z.EncExtension(x, yyxt1) 49901 } else { 49902 yysep2 := !z.EncBinary() 49903 yy2arr2 := z.EncBasicHandle().StructToArray 49904 _, _ = yysep2, yy2arr2 49905 const yyr2 bool = false // struct tag has 'toArray' 49906 if yyr2 || yy2arr2 { 49907 r.WriteArrayStart(1) 49908 } else { 49909 r.WriteMapStart(1) 49910 } 49911 if yyr2 || yy2arr2 { 49912 r.WriteArrayElem() 49913 if x.Accessors == nil { 49914 r.EncodeNil() 49915 } else { 49916 if false { 49917 } else { 49918 h.encSlicePtrtoVaultAccessor(([]*VaultAccessor)(x.Accessors), e) 49919 } 49920 } 49921 } else { 49922 r.WriteMapElemKey() 49923 if z.IsJSONHandle() { 49924 z.WriteStr("\"Accessors\"") 49925 } else { 49926 r.EncodeStringEnc(codecSelferCcUTF8100, `Accessors`) 49927 } 49928 r.WriteMapElemValue() 49929 if x.Accessors == nil { 49930 r.EncodeNil() 49931 } else { 49932 if false { 49933 } else { 49934 h.encSlicePtrtoVaultAccessor(([]*VaultAccessor)(x.Accessors), e) 49935 } 49936 } 49937 } 49938 if yyr2 || yy2arr2 { 49939 r.WriteArrayEnd() 49940 } else { 49941 r.WriteMapEnd() 49942 } 49943 } 49944 } 49945 } 49946 49947 func (x *VaultAccessorsRequest) CodecDecodeSelf(d *codec1978.Decoder) { 49948 var h codecSelfer100 49949 z, r := codec1978.GenHelperDecoder(d) 49950 _, _, _ = h, z, r 49951 if false { 49952 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 49953 z.DecExtension(x, yyxt1) 49954 } else { 49955 yyct2 := r.ContainerType() 49956 if yyct2 == codecSelferValueTypeMap100 { 49957 yyl2 := r.ReadMapStart() 49958 if yyl2 == 0 { 49959 r.ReadMapEnd() 49960 } else { 49961 x.codecDecodeSelfFromMap(yyl2, d) 49962 } 49963 } else if yyct2 == codecSelferValueTypeArray100 { 49964 yyl2 := r.ReadArrayStart() 49965 if yyl2 == 0 { 49966 r.ReadArrayEnd() 49967 } else { 49968 x.codecDecodeSelfFromArray(yyl2, d) 49969 } 49970 } else { 49971 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 49972 } 49973 } 49974 } 49975 49976 func (x *VaultAccessorsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 49977 var h codecSelfer100 49978 z, r := codec1978.GenHelperDecoder(d) 49979 _, _, _ = h, z, r 49980 var yyhl3 bool = l >= 0 49981 for yyj3 := 0; ; yyj3++ { 49982 if yyhl3 { 49983 if yyj3 >= l { 49984 break 49985 } 49986 } else { 49987 if r.CheckBreak() { 49988 break 49989 } 49990 } 49991 r.ReadMapElemKey() 49992 yys3 := z.StringView(r.DecodeStringAsBytes()) 49993 r.ReadMapElemValue() 49994 switch yys3 { 49995 case "Accessors": 49996 if r.TryDecodeAsNil() { 49997 x.Accessors = nil 49998 } else { 49999 if false { 50000 } else { 50001 h.decSlicePtrtoVaultAccessor((*[]*VaultAccessor)(&x.Accessors), d) 50002 } 50003 } 50004 default: 50005 z.DecStructFieldNotFound(-1, yys3) 50006 } // end switch yys3 50007 } // end for yyj3 50008 r.ReadMapEnd() 50009 } 50010 50011 func (x *VaultAccessorsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 50012 var h codecSelfer100 50013 z, r := codec1978.GenHelperDecoder(d) 50014 _, _, _ = h, z, r 50015 var yyj6 int 50016 var yyb6 bool 50017 var yyhl6 bool = l >= 0 50018 yyj6++ 50019 if yyhl6 { 50020 yyb6 = yyj6 > l 50021 } else { 50022 yyb6 = r.CheckBreak() 50023 } 50024 if yyb6 { 50025 r.ReadArrayEnd() 50026 return 50027 } 50028 r.ReadArrayElem() 50029 if r.TryDecodeAsNil() { 50030 x.Accessors = nil 50031 } else { 50032 if false { 50033 } else { 50034 h.decSlicePtrtoVaultAccessor((*[]*VaultAccessor)(&x.Accessors), d) 50035 } 50036 } 50037 for { 50038 yyj6++ 50039 if yyhl6 { 50040 yyb6 = yyj6 > l 50041 } else { 50042 yyb6 = r.CheckBreak() 50043 } 50044 if yyb6 { 50045 break 50046 } 50047 r.ReadArrayElem() 50048 z.DecStructFieldNotFound(yyj6-1, "") 50049 } 50050 r.ReadArrayEnd() 50051 } 50052 50053 func (x *VaultAccessor) CodecEncodeSelf(e *codec1978.Encoder) { 50054 var h codecSelfer100 50055 z, r := codec1978.GenHelperEncoder(e) 50056 _, _, _ = h, z, r 50057 if x == nil { 50058 r.EncodeNil() 50059 } else { 50060 if false { 50061 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 50062 z.EncExtension(x, yyxt1) 50063 } else { 50064 yysep2 := !z.EncBinary() 50065 yy2arr2 := z.EncBasicHandle().StructToArray 50066 _, _ = yysep2, yy2arr2 50067 const yyr2 bool = false // struct tag has 'toArray' 50068 if yyr2 || yy2arr2 { 50069 r.WriteArrayStart(6) 50070 } else { 50071 r.WriteMapStart(6) 50072 } 50073 if yyr2 || yy2arr2 { 50074 r.WriteArrayElem() 50075 if false { 50076 } else { 50077 if z.EncBasicHandle().StringToRaw { 50078 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 50079 } else { 50080 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 50081 } 50082 } 50083 } else { 50084 r.WriteMapElemKey() 50085 if z.IsJSONHandle() { 50086 z.WriteStr("\"AllocID\"") 50087 } else { 50088 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) 50089 } 50090 r.WriteMapElemValue() 50091 if false { 50092 } else { 50093 if z.EncBasicHandle().StringToRaw { 50094 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 50095 } else { 50096 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 50097 } 50098 } 50099 } 50100 if yyr2 || yy2arr2 { 50101 r.WriteArrayElem() 50102 if false { 50103 } else { 50104 if z.EncBasicHandle().StringToRaw { 50105 r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) 50106 } else { 50107 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) 50108 } 50109 } 50110 } else { 50111 r.WriteMapElemKey() 50112 if z.IsJSONHandle() { 50113 z.WriteStr("\"Task\"") 50114 } else { 50115 r.EncodeStringEnc(codecSelferCcUTF8100, `Task`) 50116 } 50117 r.WriteMapElemValue() 50118 if false { 50119 } else { 50120 if z.EncBasicHandle().StringToRaw { 50121 r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) 50122 } else { 50123 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) 50124 } 50125 } 50126 } 50127 if yyr2 || yy2arr2 { 50128 r.WriteArrayElem() 50129 if false { 50130 } else { 50131 if z.EncBasicHandle().StringToRaw { 50132 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 50133 } else { 50134 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 50135 } 50136 } 50137 } else { 50138 r.WriteMapElemKey() 50139 if z.IsJSONHandle() { 50140 z.WriteStr("\"NodeID\"") 50141 } else { 50142 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 50143 } 50144 r.WriteMapElemValue() 50145 if false { 50146 } else { 50147 if z.EncBasicHandle().StringToRaw { 50148 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 50149 } else { 50150 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 50151 } 50152 } 50153 } 50154 if yyr2 || yy2arr2 { 50155 r.WriteArrayElem() 50156 if false { 50157 } else { 50158 if z.EncBasicHandle().StringToRaw { 50159 r.EncodeStringBytesRaw(z.BytesView(string(x.Accessor))) 50160 } else { 50161 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Accessor)) 50162 } 50163 } 50164 } else { 50165 r.WriteMapElemKey() 50166 if z.IsJSONHandle() { 50167 z.WriteStr("\"Accessor\"") 50168 } else { 50169 r.EncodeStringEnc(codecSelferCcUTF8100, `Accessor`) 50170 } 50171 r.WriteMapElemValue() 50172 if false { 50173 } else { 50174 if z.EncBasicHandle().StringToRaw { 50175 r.EncodeStringBytesRaw(z.BytesView(string(x.Accessor))) 50176 } else { 50177 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Accessor)) 50178 } 50179 } 50180 } 50181 if yyr2 || yy2arr2 { 50182 r.WriteArrayElem() 50183 if false { 50184 } else { 50185 r.EncodeInt(int64(x.CreationTTL)) 50186 } 50187 } else { 50188 r.WriteMapElemKey() 50189 if z.IsJSONHandle() { 50190 z.WriteStr("\"CreationTTL\"") 50191 } else { 50192 r.EncodeStringEnc(codecSelferCcUTF8100, `CreationTTL`) 50193 } 50194 r.WriteMapElemValue() 50195 if false { 50196 } else { 50197 r.EncodeInt(int64(x.CreationTTL)) 50198 } 50199 } 50200 if yyr2 || yy2arr2 { 50201 r.WriteArrayElem() 50202 if false { 50203 } else { 50204 r.EncodeUint(uint64(x.CreateIndex)) 50205 } 50206 } else { 50207 r.WriteMapElemKey() 50208 if z.IsJSONHandle() { 50209 z.WriteStr("\"CreateIndex\"") 50210 } else { 50211 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 50212 } 50213 r.WriteMapElemValue() 50214 if false { 50215 } else { 50216 r.EncodeUint(uint64(x.CreateIndex)) 50217 } 50218 } 50219 if yyr2 || yy2arr2 { 50220 r.WriteArrayEnd() 50221 } else { 50222 r.WriteMapEnd() 50223 } 50224 } 50225 } 50226 } 50227 50228 func (x *VaultAccessor) CodecDecodeSelf(d *codec1978.Decoder) { 50229 var h codecSelfer100 50230 z, r := codec1978.GenHelperDecoder(d) 50231 _, _, _ = h, z, r 50232 if false { 50233 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 50234 z.DecExtension(x, yyxt1) 50235 } else { 50236 yyct2 := r.ContainerType() 50237 if yyct2 == codecSelferValueTypeMap100 { 50238 yyl2 := r.ReadMapStart() 50239 if yyl2 == 0 { 50240 r.ReadMapEnd() 50241 } else { 50242 x.codecDecodeSelfFromMap(yyl2, d) 50243 } 50244 } else if yyct2 == codecSelferValueTypeArray100 { 50245 yyl2 := r.ReadArrayStart() 50246 if yyl2 == 0 { 50247 r.ReadArrayEnd() 50248 } else { 50249 x.codecDecodeSelfFromArray(yyl2, d) 50250 } 50251 } else { 50252 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 50253 } 50254 } 50255 } 50256 50257 func (x *VaultAccessor) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 50258 var h codecSelfer100 50259 z, r := codec1978.GenHelperDecoder(d) 50260 _, _, _ = h, z, r 50261 var yyhl3 bool = l >= 0 50262 for yyj3 := 0; ; yyj3++ { 50263 if yyhl3 { 50264 if yyj3 >= l { 50265 break 50266 } 50267 } else { 50268 if r.CheckBreak() { 50269 break 50270 } 50271 } 50272 r.ReadMapElemKey() 50273 yys3 := z.StringView(r.DecodeStringAsBytes()) 50274 r.ReadMapElemValue() 50275 switch yys3 { 50276 case "AllocID": 50277 if r.TryDecodeAsNil() { 50278 x.AllocID = "" 50279 } else { 50280 x.AllocID = (string)(r.DecodeString()) 50281 } 50282 case "Task": 50283 if r.TryDecodeAsNil() { 50284 x.Task = "" 50285 } else { 50286 x.Task = (string)(r.DecodeString()) 50287 } 50288 case "NodeID": 50289 if r.TryDecodeAsNil() { 50290 x.NodeID = "" 50291 } else { 50292 x.NodeID = (string)(r.DecodeString()) 50293 } 50294 case "Accessor": 50295 if r.TryDecodeAsNil() { 50296 x.Accessor = "" 50297 } else { 50298 x.Accessor = (string)(r.DecodeString()) 50299 } 50300 case "CreationTTL": 50301 if r.TryDecodeAsNil() { 50302 x.CreationTTL = 0 50303 } else { 50304 x.CreationTTL = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 50305 } 50306 case "CreateIndex": 50307 if r.TryDecodeAsNil() { 50308 x.CreateIndex = 0 50309 } else { 50310 x.CreateIndex = (uint64)(r.DecodeUint64()) 50311 } 50312 default: 50313 z.DecStructFieldNotFound(-1, yys3) 50314 } // end switch yys3 50315 } // end for yyj3 50316 r.ReadMapEnd() 50317 } 50318 50319 func (x *VaultAccessor) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 50320 var h codecSelfer100 50321 z, r := codec1978.GenHelperDecoder(d) 50322 _, _, _ = h, z, r 50323 var yyj10 int 50324 var yyb10 bool 50325 var yyhl10 bool = l >= 0 50326 yyj10++ 50327 if yyhl10 { 50328 yyb10 = yyj10 > l 50329 } else { 50330 yyb10 = r.CheckBreak() 50331 } 50332 if yyb10 { 50333 r.ReadArrayEnd() 50334 return 50335 } 50336 r.ReadArrayElem() 50337 if r.TryDecodeAsNil() { 50338 x.AllocID = "" 50339 } else { 50340 x.AllocID = (string)(r.DecodeString()) 50341 } 50342 yyj10++ 50343 if yyhl10 { 50344 yyb10 = yyj10 > l 50345 } else { 50346 yyb10 = r.CheckBreak() 50347 } 50348 if yyb10 { 50349 r.ReadArrayEnd() 50350 return 50351 } 50352 r.ReadArrayElem() 50353 if r.TryDecodeAsNil() { 50354 x.Task = "" 50355 } else { 50356 x.Task = (string)(r.DecodeString()) 50357 } 50358 yyj10++ 50359 if yyhl10 { 50360 yyb10 = yyj10 > l 50361 } else { 50362 yyb10 = r.CheckBreak() 50363 } 50364 if yyb10 { 50365 r.ReadArrayEnd() 50366 return 50367 } 50368 r.ReadArrayElem() 50369 if r.TryDecodeAsNil() { 50370 x.NodeID = "" 50371 } else { 50372 x.NodeID = (string)(r.DecodeString()) 50373 } 50374 yyj10++ 50375 if yyhl10 { 50376 yyb10 = yyj10 > l 50377 } else { 50378 yyb10 = r.CheckBreak() 50379 } 50380 if yyb10 { 50381 r.ReadArrayEnd() 50382 return 50383 } 50384 r.ReadArrayElem() 50385 if r.TryDecodeAsNil() { 50386 x.Accessor = "" 50387 } else { 50388 x.Accessor = (string)(r.DecodeString()) 50389 } 50390 yyj10++ 50391 if yyhl10 { 50392 yyb10 = yyj10 > l 50393 } else { 50394 yyb10 = r.CheckBreak() 50395 } 50396 if yyb10 { 50397 r.ReadArrayEnd() 50398 return 50399 } 50400 r.ReadArrayElem() 50401 if r.TryDecodeAsNil() { 50402 x.CreationTTL = 0 50403 } else { 50404 x.CreationTTL = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 50405 } 50406 yyj10++ 50407 if yyhl10 { 50408 yyb10 = yyj10 > l 50409 } else { 50410 yyb10 = r.CheckBreak() 50411 } 50412 if yyb10 { 50413 r.ReadArrayEnd() 50414 return 50415 } 50416 r.ReadArrayElem() 50417 if r.TryDecodeAsNil() { 50418 x.CreateIndex = 0 50419 } else { 50420 x.CreateIndex = (uint64)(r.DecodeUint64()) 50421 } 50422 for { 50423 yyj10++ 50424 if yyhl10 { 50425 yyb10 = yyj10 > l 50426 } else { 50427 yyb10 = r.CheckBreak() 50428 } 50429 if yyb10 { 50430 break 50431 } 50432 r.ReadArrayElem() 50433 z.DecStructFieldNotFound(yyj10-1, "") 50434 } 50435 r.ReadArrayEnd() 50436 } 50437 50438 func (x *DeriveVaultTokenResponse) CodecEncodeSelf(e *codec1978.Encoder) { 50439 var h codecSelfer100 50440 z, r := codec1978.GenHelperEncoder(e) 50441 _, _, _ = h, z, r 50442 if x == nil { 50443 r.EncodeNil() 50444 } else { 50445 if false { 50446 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 50447 z.EncExtension(x, yyxt1) 50448 } else { 50449 yysep2 := !z.EncBinary() 50450 yy2arr2 := z.EncBasicHandle().StructToArray 50451 _, _ = yysep2, yy2arr2 50452 const yyr2 bool = false // struct tag has 'toArray' 50453 if yyr2 || yy2arr2 { 50454 r.WriteArrayStart(5) 50455 } else { 50456 r.WriteMapStart(5) 50457 } 50458 if yyr2 || yy2arr2 { 50459 r.WriteArrayElem() 50460 if x.Tasks == nil { 50461 r.EncodeNil() 50462 } else { 50463 if false { 50464 } else { 50465 z.F.EncMapStringStringV(x.Tasks, e) 50466 } 50467 } 50468 } else { 50469 r.WriteMapElemKey() 50470 if z.IsJSONHandle() { 50471 z.WriteStr("\"Tasks\"") 50472 } else { 50473 r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) 50474 } 50475 r.WriteMapElemValue() 50476 if x.Tasks == nil { 50477 r.EncodeNil() 50478 } else { 50479 if false { 50480 } else { 50481 z.F.EncMapStringStringV(x.Tasks, e) 50482 } 50483 } 50484 } 50485 var yyn6 bool 50486 if x.Error == nil { 50487 yyn6 = true 50488 goto LABEL6 50489 } 50490 LABEL6: 50491 if yyr2 || yy2arr2 { 50492 if yyn6 { 50493 r.WriteArrayElem() 50494 r.EncodeNil() 50495 } else { 50496 r.WriteArrayElem() 50497 if x.Error == nil { 50498 r.EncodeNil() 50499 } else { 50500 x.Error.CodecEncodeSelf(e) 50501 } 50502 } 50503 } else { 50504 r.WriteMapElemKey() 50505 if z.IsJSONHandle() { 50506 z.WriteStr("\"Error\"") 50507 } else { 50508 r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) 50509 } 50510 r.WriteMapElemValue() 50511 if yyn6 { 50512 r.EncodeNil() 50513 } else { 50514 if x.Error == nil { 50515 r.EncodeNil() 50516 } else { 50517 x.Error.CodecEncodeSelf(e) 50518 } 50519 } 50520 } 50521 if yyr2 || yy2arr2 { 50522 r.WriteArrayElem() 50523 if false { 50524 } else { 50525 r.EncodeUint(uint64(x.Index)) 50526 } 50527 } else { 50528 r.WriteMapElemKey() 50529 if z.IsJSONHandle() { 50530 z.WriteStr("\"Index\"") 50531 } else { 50532 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 50533 } 50534 r.WriteMapElemValue() 50535 if false { 50536 } else { 50537 r.EncodeUint(uint64(x.Index)) 50538 } 50539 } 50540 if yyr2 || yy2arr2 { 50541 r.WriteArrayElem() 50542 if false { 50543 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 50544 z.EncExtension(x.LastContact, yyxt13) 50545 } else { 50546 r.EncodeInt(int64(x.LastContact)) 50547 } 50548 } else { 50549 r.WriteMapElemKey() 50550 if z.IsJSONHandle() { 50551 z.WriteStr("\"LastContact\"") 50552 } else { 50553 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 50554 } 50555 r.WriteMapElemValue() 50556 if false { 50557 } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { 50558 z.EncExtension(x.LastContact, yyxt14) 50559 } else { 50560 r.EncodeInt(int64(x.LastContact)) 50561 } 50562 } 50563 if yyr2 || yy2arr2 { 50564 r.WriteArrayElem() 50565 if false { 50566 } else { 50567 r.EncodeBool(bool(x.KnownLeader)) 50568 } 50569 } else { 50570 r.WriteMapElemKey() 50571 if z.IsJSONHandle() { 50572 z.WriteStr("\"KnownLeader\"") 50573 } else { 50574 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 50575 } 50576 r.WriteMapElemValue() 50577 if false { 50578 } else { 50579 r.EncodeBool(bool(x.KnownLeader)) 50580 } 50581 } 50582 if yyr2 || yy2arr2 { 50583 r.WriteArrayEnd() 50584 } else { 50585 r.WriteMapEnd() 50586 } 50587 } 50588 } 50589 } 50590 50591 func (x *DeriveVaultTokenResponse) CodecDecodeSelf(d *codec1978.Decoder) { 50592 var h codecSelfer100 50593 z, r := codec1978.GenHelperDecoder(d) 50594 _, _, _ = h, z, r 50595 if false { 50596 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 50597 z.DecExtension(x, yyxt1) 50598 } else { 50599 yyct2 := r.ContainerType() 50600 if yyct2 == codecSelferValueTypeMap100 { 50601 yyl2 := r.ReadMapStart() 50602 if yyl2 == 0 { 50603 r.ReadMapEnd() 50604 } else { 50605 x.codecDecodeSelfFromMap(yyl2, d) 50606 } 50607 } else if yyct2 == codecSelferValueTypeArray100 { 50608 yyl2 := r.ReadArrayStart() 50609 if yyl2 == 0 { 50610 r.ReadArrayEnd() 50611 } else { 50612 x.codecDecodeSelfFromArray(yyl2, d) 50613 } 50614 } else { 50615 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 50616 } 50617 } 50618 } 50619 50620 func (x *DeriveVaultTokenResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 50621 var h codecSelfer100 50622 z, r := codec1978.GenHelperDecoder(d) 50623 _, _, _ = h, z, r 50624 var yyhl3 bool = l >= 0 50625 for yyj3 := 0; ; yyj3++ { 50626 if yyhl3 { 50627 if yyj3 >= l { 50628 break 50629 } 50630 } else { 50631 if r.CheckBreak() { 50632 break 50633 } 50634 } 50635 r.ReadMapElemKey() 50636 yys3 := z.StringView(r.DecodeStringAsBytes()) 50637 r.ReadMapElemValue() 50638 switch yys3 { 50639 case "Tasks": 50640 if r.TryDecodeAsNil() { 50641 x.Tasks = nil 50642 } else { 50643 if false { 50644 } else { 50645 z.F.DecMapStringStringX(&x.Tasks, d) 50646 } 50647 } 50648 case "Error": 50649 if r.TryDecodeAsNil() { 50650 if true && x.Error != nil { 50651 x.Error = nil 50652 } 50653 } else { 50654 if x.Error == nil { 50655 x.Error = new(RecoverableError) 50656 } 50657 50658 x.Error.CodecDecodeSelf(d) 50659 } 50660 case "Index": 50661 if r.TryDecodeAsNil() { 50662 x.QueryMeta.Index = 0 50663 } else { 50664 x.Index = (uint64)(r.DecodeUint64()) 50665 } 50666 case "LastContact": 50667 if r.TryDecodeAsNil() { 50668 x.QueryMeta.LastContact = 0 50669 } else { 50670 if false { 50671 } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { 50672 z.DecExtension(x.LastContact, yyxt9) 50673 } else { 50674 x.LastContact = (time.Duration)(r.DecodeInt64()) 50675 } 50676 } 50677 case "KnownLeader": 50678 if r.TryDecodeAsNil() { 50679 x.QueryMeta.KnownLeader = false 50680 } else { 50681 x.KnownLeader = (bool)(r.DecodeBool()) 50682 } 50683 default: 50684 z.DecStructFieldNotFound(-1, yys3) 50685 } // end switch yys3 50686 } // end for yyj3 50687 r.ReadMapEnd() 50688 } 50689 50690 func (x *DeriveVaultTokenResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 50691 var h codecSelfer100 50692 z, r := codec1978.GenHelperDecoder(d) 50693 _, _, _ = h, z, r 50694 var yyj11 int 50695 var yyb11 bool 50696 var yyhl11 bool = l >= 0 50697 yyj11++ 50698 if yyhl11 { 50699 yyb11 = yyj11 > l 50700 } else { 50701 yyb11 = r.CheckBreak() 50702 } 50703 if yyb11 { 50704 r.ReadArrayEnd() 50705 return 50706 } 50707 r.ReadArrayElem() 50708 if r.TryDecodeAsNil() { 50709 x.Tasks = nil 50710 } else { 50711 if false { 50712 } else { 50713 z.F.DecMapStringStringX(&x.Tasks, d) 50714 } 50715 } 50716 yyj11++ 50717 if yyhl11 { 50718 yyb11 = yyj11 > l 50719 } else { 50720 yyb11 = r.CheckBreak() 50721 } 50722 if yyb11 { 50723 r.ReadArrayEnd() 50724 return 50725 } 50726 r.ReadArrayElem() 50727 if r.TryDecodeAsNil() { 50728 if true && x.Error != nil { 50729 x.Error = nil 50730 } 50731 } else { 50732 if x.Error == nil { 50733 x.Error = new(RecoverableError) 50734 } 50735 50736 x.Error.CodecDecodeSelf(d) 50737 } 50738 yyj11++ 50739 if yyhl11 { 50740 yyb11 = yyj11 > l 50741 } else { 50742 yyb11 = r.CheckBreak() 50743 } 50744 if yyb11 { 50745 r.ReadArrayEnd() 50746 return 50747 } 50748 r.ReadArrayElem() 50749 if r.TryDecodeAsNil() { 50750 x.QueryMeta.Index = 0 50751 } else { 50752 x.Index = (uint64)(r.DecodeUint64()) 50753 } 50754 yyj11++ 50755 if yyhl11 { 50756 yyb11 = yyj11 > l 50757 } else { 50758 yyb11 = r.CheckBreak() 50759 } 50760 if yyb11 { 50761 r.ReadArrayEnd() 50762 return 50763 } 50764 r.ReadArrayElem() 50765 if r.TryDecodeAsNil() { 50766 x.QueryMeta.LastContact = 0 50767 } else { 50768 if false { 50769 } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { 50770 z.DecExtension(x.LastContact, yyxt17) 50771 } else { 50772 x.LastContact = (time.Duration)(r.DecodeInt64()) 50773 } 50774 } 50775 yyj11++ 50776 if yyhl11 { 50777 yyb11 = yyj11 > l 50778 } else { 50779 yyb11 = r.CheckBreak() 50780 } 50781 if yyb11 { 50782 r.ReadArrayEnd() 50783 return 50784 } 50785 r.ReadArrayElem() 50786 if r.TryDecodeAsNil() { 50787 x.QueryMeta.KnownLeader = false 50788 } else { 50789 x.KnownLeader = (bool)(r.DecodeBool()) 50790 } 50791 for { 50792 yyj11++ 50793 if yyhl11 { 50794 yyb11 = yyj11 > l 50795 } else { 50796 yyb11 = r.CheckBreak() 50797 } 50798 if yyb11 { 50799 break 50800 } 50801 r.ReadArrayElem() 50802 z.DecStructFieldNotFound(yyj11-1, "") 50803 } 50804 r.ReadArrayEnd() 50805 } 50806 50807 func (x *GenericRequest) CodecEncodeSelf(e *codec1978.Encoder) { 50808 var h codecSelfer100 50809 z, r := codec1978.GenHelperEncoder(e) 50810 _, _, _ = h, z, r 50811 if x == nil { 50812 r.EncodeNil() 50813 } else { 50814 if false { 50815 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 50816 z.EncExtension(x, yyxt1) 50817 } else { 50818 yysep2 := !z.EncBinary() 50819 yy2arr2 := z.EncBasicHandle().StructToArray 50820 _, _ = yysep2, yy2arr2 50821 const yyr2 bool = false // struct tag has 'toArray' 50822 if yyr2 || yy2arr2 { 50823 r.WriteArrayStart(8) 50824 } else { 50825 r.WriteMapStart(8) 50826 } 50827 if yyr2 || yy2arr2 { 50828 r.WriteArrayElem() 50829 if false { 50830 } else { 50831 if z.EncBasicHandle().StringToRaw { 50832 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 50833 } else { 50834 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 50835 } 50836 } 50837 } else { 50838 r.WriteMapElemKey() 50839 if z.IsJSONHandle() { 50840 z.WriteStr("\"Region\"") 50841 } else { 50842 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 50843 } 50844 r.WriteMapElemValue() 50845 if false { 50846 } else { 50847 if z.EncBasicHandle().StringToRaw { 50848 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 50849 } else { 50850 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 50851 } 50852 } 50853 } 50854 if yyr2 || yy2arr2 { 50855 r.WriteArrayElem() 50856 if false { 50857 } else { 50858 if z.EncBasicHandle().StringToRaw { 50859 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 50860 } else { 50861 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 50862 } 50863 } 50864 } else { 50865 r.WriteMapElemKey() 50866 if z.IsJSONHandle() { 50867 z.WriteStr("\"Namespace\"") 50868 } else { 50869 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 50870 } 50871 r.WriteMapElemValue() 50872 if false { 50873 } else { 50874 if z.EncBasicHandle().StringToRaw { 50875 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 50876 } else { 50877 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 50878 } 50879 } 50880 } 50881 if yyr2 || yy2arr2 { 50882 r.WriteArrayElem() 50883 if false { 50884 } else { 50885 r.EncodeUint(uint64(x.MinQueryIndex)) 50886 } 50887 } else { 50888 r.WriteMapElemKey() 50889 if z.IsJSONHandle() { 50890 z.WriteStr("\"MinQueryIndex\"") 50891 } else { 50892 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 50893 } 50894 r.WriteMapElemValue() 50895 if false { 50896 } else { 50897 r.EncodeUint(uint64(x.MinQueryIndex)) 50898 } 50899 } 50900 if yyr2 || yy2arr2 { 50901 r.WriteArrayElem() 50902 if false { 50903 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 50904 z.EncExtension(x.MaxQueryTime, yyxt13) 50905 } else { 50906 r.EncodeInt(int64(x.MaxQueryTime)) 50907 } 50908 } else { 50909 r.WriteMapElemKey() 50910 if z.IsJSONHandle() { 50911 z.WriteStr("\"MaxQueryTime\"") 50912 } else { 50913 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 50914 } 50915 r.WriteMapElemValue() 50916 if false { 50917 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 50918 z.EncExtension(x.MaxQueryTime, yyxt14) 50919 } else { 50920 r.EncodeInt(int64(x.MaxQueryTime)) 50921 } 50922 } 50923 if yyr2 || yy2arr2 { 50924 r.WriteArrayElem() 50925 if false { 50926 } else { 50927 r.EncodeBool(bool(x.AllowStale)) 50928 } 50929 } else { 50930 r.WriteMapElemKey() 50931 if z.IsJSONHandle() { 50932 z.WriteStr("\"AllowStale\"") 50933 } else { 50934 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 50935 } 50936 r.WriteMapElemValue() 50937 if false { 50938 } else { 50939 r.EncodeBool(bool(x.AllowStale)) 50940 } 50941 } 50942 if yyr2 || yy2arr2 { 50943 r.WriteArrayElem() 50944 if false { 50945 } else { 50946 if z.EncBasicHandle().StringToRaw { 50947 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 50948 } else { 50949 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 50950 } 50951 } 50952 } else { 50953 r.WriteMapElemKey() 50954 if z.IsJSONHandle() { 50955 z.WriteStr("\"Prefix\"") 50956 } else { 50957 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 50958 } 50959 r.WriteMapElemValue() 50960 if false { 50961 } else { 50962 if z.EncBasicHandle().StringToRaw { 50963 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 50964 } else { 50965 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 50966 } 50967 } 50968 } 50969 if yyr2 || yy2arr2 { 50970 r.WriteArrayElem() 50971 if false { 50972 } else { 50973 if z.EncBasicHandle().StringToRaw { 50974 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 50975 } else { 50976 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 50977 } 50978 } 50979 } else { 50980 r.WriteMapElemKey() 50981 if z.IsJSONHandle() { 50982 z.WriteStr("\"AuthToken\"") 50983 } else { 50984 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 50985 } 50986 r.WriteMapElemValue() 50987 if false { 50988 } else { 50989 if z.EncBasicHandle().StringToRaw { 50990 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 50991 } else { 50992 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 50993 } 50994 } 50995 } 50996 if yyr2 || yy2arr2 { 50997 r.WriteArrayElem() 50998 if false { 50999 } else { 51000 r.EncodeBool(bool(x.Forwarded)) 51001 } 51002 } else { 51003 r.WriteMapElemKey() 51004 if z.IsJSONHandle() { 51005 z.WriteStr("\"Forwarded\"") 51006 } else { 51007 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 51008 } 51009 r.WriteMapElemValue() 51010 if false { 51011 } else { 51012 r.EncodeBool(bool(x.Forwarded)) 51013 } 51014 } 51015 if yyr2 || yy2arr2 { 51016 r.WriteArrayEnd() 51017 } else { 51018 r.WriteMapEnd() 51019 } 51020 } 51021 } 51022 } 51023 51024 func (x *GenericRequest) CodecDecodeSelf(d *codec1978.Decoder) { 51025 var h codecSelfer100 51026 z, r := codec1978.GenHelperDecoder(d) 51027 _, _, _ = h, z, r 51028 if false { 51029 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 51030 z.DecExtension(x, yyxt1) 51031 } else { 51032 yyct2 := r.ContainerType() 51033 if yyct2 == codecSelferValueTypeMap100 { 51034 yyl2 := r.ReadMapStart() 51035 if yyl2 == 0 { 51036 r.ReadMapEnd() 51037 } else { 51038 x.codecDecodeSelfFromMap(yyl2, d) 51039 } 51040 } else if yyct2 == codecSelferValueTypeArray100 { 51041 yyl2 := r.ReadArrayStart() 51042 if yyl2 == 0 { 51043 r.ReadArrayEnd() 51044 } else { 51045 x.codecDecodeSelfFromArray(yyl2, d) 51046 } 51047 } else { 51048 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 51049 } 51050 } 51051 } 51052 51053 func (x *GenericRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 51054 var h codecSelfer100 51055 z, r := codec1978.GenHelperDecoder(d) 51056 _, _, _ = h, z, r 51057 var yyhl3 bool = l >= 0 51058 for yyj3 := 0; ; yyj3++ { 51059 if yyhl3 { 51060 if yyj3 >= l { 51061 break 51062 } 51063 } else { 51064 if r.CheckBreak() { 51065 break 51066 } 51067 } 51068 r.ReadMapElemKey() 51069 yys3 := z.StringView(r.DecodeStringAsBytes()) 51070 r.ReadMapElemValue() 51071 switch yys3 { 51072 case "Region": 51073 if r.TryDecodeAsNil() { 51074 x.QueryOptions.Region = "" 51075 } else { 51076 x.Region = (string)(r.DecodeString()) 51077 } 51078 case "Namespace": 51079 if r.TryDecodeAsNil() { 51080 x.QueryOptions.Namespace = "" 51081 } else { 51082 x.Namespace = (string)(r.DecodeString()) 51083 } 51084 case "MinQueryIndex": 51085 if r.TryDecodeAsNil() { 51086 x.QueryOptions.MinQueryIndex = 0 51087 } else { 51088 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 51089 } 51090 case "MaxQueryTime": 51091 if r.TryDecodeAsNil() { 51092 x.QueryOptions.MaxQueryTime = 0 51093 } else { 51094 if false { 51095 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 51096 z.DecExtension(x.MaxQueryTime, yyxt8) 51097 } else { 51098 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 51099 } 51100 } 51101 case "AllowStale": 51102 if r.TryDecodeAsNil() { 51103 x.QueryOptions.AllowStale = false 51104 } else { 51105 x.AllowStale = (bool)(r.DecodeBool()) 51106 } 51107 case "Prefix": 51108 if r.TryDecodeAsNil() { 51109 x.QueryOptions.Prefix = "" 51110 } else { 51111 x.Prefix = (string)(r.DecodeString()) 51112 } 51113 case "AuthToken": 51114 if r.TryDecodeAsNil() { 51115 x.QueryOptions.AuthToken = "" 51116 } else { 51117 x.AuthToken = (string)(r.DecodeString()) 51118 } 51119 case "Forwarded": 51120 if r.TryDecodeAsNil() { 51121 x.QueryOptions.InternalRpcInfo.Forwarded = false 51122 } else { 51123 x.Forwarded = (bool)(r.DecodeBool()) 51124 } 51125 default: 51126 z.DecStructFieldNotFound(-1, yys3) 51127 } // end switch yys3 51128 } // end for yyj3 51129 r.ReadMapEnd() 51130 } 51131 51132 func (x *GenericRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 51133 var h codecSelfer100 51134 z, r := codec1978.GenHelperDecoder(d) 51135 _, _, _ = h, z, r 51136 var yyj13 int 51137 var yyb13 bool 51138 var yyhl13 bool = l >= 0 51139 yyj13++ 51140 if yyhl13 { 51141 yyb13 = yyj13 > l 51142 } else { 51143 yyb13 = r.CheckBreak() 51144 } 51145 if yyb13 { 51146 r.ReadArrayEnd() 51147 return 51148 } 51149 r.ReadArrayElem() 51150 if r.TryDecodeAsNil() { 51151 x.QueryOptions.Region = "" 51152 } else { 51153 x.Region = (string)(r.DecodeString()) 51154 } 51155 yyj13++ 51156 if yyhl13 { 51157 yyb13 = yyj13 > l 51158 } else { 51159 yyb13 = r.CheckBreak() 51160 } 51161 if yyb13 { 51162 r.ReadArrayEnd() 51163 return 51164 } 51165 r.ReadArrayElem() 51166 if r.TryDecodeAsNil() { 51167 x.QueryOptions.Namespace = "" 51168 } else { 51169 x.Namespace = (string)(r.DecodeString()) 51170 } 51171 yyj13++ 51172 if yyhl13 { 51173 yyb13 = yyj13 > l 51174 } else { 51175 yyb13 = r.CheckBreak() 51176 } 51177 if yyb13 { 51178 r.ReadArrayEnd() 51179 return 51180 } 51181 r.ReadArrayElem() 51182 if r.TryDecodeAsNil() { 51183 x.QueryOptions.MinQueryIndex = 0 51184 } else { 51185 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 51186 } 51187 yyj13++ 51188 if yyhl13 { 51189 yyb13 = yyj13 > l 51190 } else { 51191 yyb13 = r.CheckBreak() 51192 } 51193 if yyb13 { 51194 r.ReadArrayEnd() 51195 return 51196 } 51197 r.ReadArrayElem() 51198 if r.TryDecodeAsNil() { 51199 x.QueryOptions.MaxQueryTime = 0 51200 } else { 51201 if false { 51202 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 51203 z.DecExtension(x.MaxQueryTime, yyxt18) 51204 } else { 51205 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 51206 } 51207 } 51208 yyj13++ 51209 if yyhl13 { 51210 yyb13 = yyj13 > l 51211 } else { 51212 yyb13 = r.CheckBreak() 51213 } 51214 if yyb13 { 51215 r.ReadArrayEnd() 51216 return 51217 } 51218 r.ReadArrayElem() 51219 if r.TryDecodeAsNil() { 51220 x.QueryOptions.AllowStale = false 51221 } else { 51222 x.AllowStale = (bool)(r.DecodeBool()) 51223 } 51224 yyj13++ 51225 if yyhl13 { 51226 yyb13 = yyj13 > l 51227 } else { 51228 yyb13 = r.CheckBreak() 51229 } 51230 if yyb13 { 51231 r.ReadArrayEnd() 51232 return 51233 } 51234 r.ReadArrayElem() 51235 if r.TryDecodeAsNil() { 51236 x.QueryOptions.Prefix = "" 51237 } else { 51238 x.Prefix = (string)(r.DecodeString()) 51239 } 51240 yyj13++ 51241 if yyhl13 { 51242 yyb13 = yyj13 > l 51243 } else { 51244 yyb13 = r.CheckBreak() 51245 } 51246 if yyb13 { 51247 r.ReadArrayEnd() 51248 return 51249 } 51250 r.ReadArrayElem() 51251 if r.TryDecodeAsNil() { 51252 x.QueryOptions.AuthToken = "" 51253 } else { 51254 x.AuthToken = (string)(r.DecodeString()) 51255 } 51256 yyj13++ 51257 if yyhl13 { 51258 yyb13 = yyj13 > l 51259 } else { 51260 yyb13 = r.CheckBreak() 51261 } 51262 if yyb13 { 51263 r.ReadArrayEnd() 51264 return 51265 } 51266 r.ReadArrayElem() 51267 if r.TryDecodeAsNil() { 51268 x.QueryOptions.InternalRpcInfo.Forwarded = false 51269 } else { 51270 x.Forwarded = (bool)(r.DecodeBool()) 51271 } 51272 for { 51273 yyj13++ 51274 if yyhl13 { 51275 yyb13 = yyj13 > l 51276 } else { 51277 yyb13 = r.CheckBreak() 51278 } 51279 if yyb13 { 51280 break 51281 } 51282 r.ReadArrayElem() 51283 z.DecStructFieldNotFound(yyj13-1, "") 51284 } 51285 r.ReadArrayEnd() 51286 } 51287 51288 func (x *DeploymentListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 51289 var h codecSelfer100 51290 z, r := codec1978.GenHelperEncoder(e) 51291 _, _, _ = h, z, r 51292 if x == nil { 51293 r.EncodeNil() 51294 } else { 51295 if false { 51296 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 51297 z.EncExtension(x, yyxt1) 51298 } else { 51299 yysep2 := !z.EncBinary() 51300 yy2arr2 := z.EncBasicHandle().StructToArray 51301 _, _ = yysep2, yy2arr2 51302 const yyr2 bool = false // struct tag has 'toArray' 51303 if yyr2 || yy2arr2 { 51304 r.WriteArrayStart(8) 51305 } else { 51306 r.WriteMapStart(8) 51307 } 51308 if yyr2 || yy2arr2 { 51309 r.WriteArrayElem() 51310 if false { 51311 } else { 51312 if z.EncBasicHandle().StringToRaw { 51313 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 51314 } else { 51315 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 51316 } 51317 } 51318 } else { 51319 r.WriteMapElemKey() 51320 if z.IsJSONHandle() { 51321 z.WriteStr("\"Region\"") 51322 } else { 51323 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 51324 } 51325 r.WriteMapElemValue() 51326 if false { 51327 } else { 51328 if z.EncBasicHandle().StringToRaw { 51329 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 51330 } else { 51331 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 51332 } 51333 } 51334 } 51335 if yyr2 || yy2arr2 { 51336 r.WriteArrayElem() 51337 if false { 51338 } else { 51339 if z.EncBasicHandle().StringToRaw { 51340 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 51341 } else { 51342 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 51343 } 51344 } 51345 } else { 51346 r.WriteMapElemKey() 51347 if z.IsJSONHandle() { 51348 z.WriteStr("\"Namespace\"") 51349 } else { 51350 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 51351 } 51352 r.WriteMapElemValue() 51353 if false { 51354 } else { 51355 if z.EncBasicHandle().StringToRaw { 51356 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 51357 } else { 51358 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 51359 } 51360 } 51361 } 51362 if yyr2 || yy2arr2 { 51363 r.WriteArrayElem() 51364 if false { 51365 } else { 51366 r.EncodeUint(uint64(x.MinQueryIndex)) 51367 } 51368 } else { 51369 r.WriteMapElemKey() 51370 if z.IsJSONHandle() { 51371 z.WriteStr("\"MinQueryIndex\"") 51372 } else { 51373 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 51374 } 51375 r.WriteMapElemValue() 51376 if false { 51377 } else { 51378 r.EncodeUint(uint64(x.MinQueryIndex)) 51379 } 51380 } 51381 if yyr2 || yy2arr2 { 51382 r.WriteArrayElem() 51383 if false { 51384 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 51385 z.EncExtension(x.MaxQueryTime, yyxt13) 51386 } else { 51387 r.EncodeInt(int64(x.MaxQueryTime)) 51388 } 51389 } else { 51390 r.WriteMapElemKey() 51391 if z.IsJSONHandle() { 51392 z.WriteStr("\"MaxQueryTime\"") 51393 } else { 51394 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 51395 } 51396 r.WriteMapElemValue() 51397 if false { 51398 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 51399 z.EncExtension(x.MaxQueryTime, yyxt14) 51400 } else { 51401 r.EncodeInt(int64(x.MaxQueryTime)) 51402 } 51403 } 51404 if yyr2 || yy2arr2 { 51405 r.WriteArrayElem() 51406 if false { 51407 } else { 51408 r.EncodeBool(bool(x.AllowStale)) 51409 } 51410 } else { 51411 r.WriteMapElemKey() 51412 if z.IsJSONHandle() { 51413 z.WriteStr("\"AllowStale\"") 51414 } else { 51415 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 51416 } 51417 r.WriteMapElemValue() 51418 if false { 51419 } else { 51420 r.EncodeBool(bool(x.AllowStale)) 51421 } 51422 } 51423 if yyr2 || yy2arr2 { 51424 r.WriteArrayElem() 51425 if false { 51426 } else { 51427 if z.EncBasicHandle().StringToRaw { 51428 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 51429 } else { 51430 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 51431 } 51432 } 51433 } else { 51434 r.WriteMapElemKey() 51435 if z.IsJSONHandle() { 51436 z.WriteStr("\"Prefix\"") 51437 } else { 51438 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 51439 } 51440 r.WriteMapElemValue() 51441 if false { 51442 } else { 51443 if z.EncBasicHandle().StringToRaw { 51444 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 51445 } else { 51446 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 51447 } 51448 } 51449 } 51450 if yyr2 || yy2arr2 { 51451 r.WriteArrayElem() 51452 if false { 51453 } else { 51454 if z.EncBasicHandle().StringToRaw { 51455 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 51456 } else { 51457 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 51458 } 51459 } 51460 } else { 51461 r.WriteMapElemKey() 51462 if z.IsJSONHandle() { 51463 z.WriteStr("\"AuthToken\"") 51464 } else { 51465 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 51466 } 51467 r.WriteMapElemValue() 51468 if false { 51469 } else { 51470 if z.EncBasicHandle().StringToRaw { 51471 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 51472 } else { 51473 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 51474 } 51475 } 51476 } 51477 if yyr2 || yy2arr2 { 51478 r.WriteArrayElem() 51479 if false { 51480 } else { 51481 r.EncodeBool(bool(x.Forwarded)) 51482 } 51483 } else { 51484 r.WriteMapElemKey() 51485 if z.IsJSONHandle() { 51486 z.WriteStr("\"Forwarded\"") 51487 } else { 51488 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 51489 } 51490 r.WriteMapElemValue() 51491 if false { 51492 } else { 51493 r.EncodeBool(bool(x.Forwarded)) 51494 } 51495 } 51496 if yyr2 || yy2arr2 { 51497 r.WriteArrayEnd() 51498 } else { 51499 r.WriteMapEnd() 51500 } 51501 } 51502 } 51503 } 51504 51505 func (x *DeploymentListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 51506 var h codecSelfer100 51507 z, r := codec1978.GenHelperDecoder(d) 51508 _, _, _ = h, z, r 51509 if false { 51510 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 51511 z.DecExtension(x, yyxt1) 51512 } else { 51513 yyct2 := r.ContainerType() 51514 if yyct2 == codecSelferValueTypeMap100 { 51515 yyl2 := r.ReadMapStart() 51516 if yyl2 == 0 { 51517 r.ReadMapEnd() 51518 } else { 51519 x.codecDecodeSelfFromMap(yyl2, d) 51520 } 51521 } else if yyct2 == codecSelferValueTypeArray100 { 51522 yyl2 := r.ReadArrayStart() 51523 if yyl2 == 0 { 51524 r.ReadArrayEnd() 51525 } else { 51526 x.codecDecodeSelfFromArray(yyl2, d) 51527 } 51528 } else { 51529 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 51530 } 51531 } 51532 } 51533 51534 func (x *DeploymentListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 51535 var h codecSelfer100 51536 z, r := codec1978.GenHelperDecoder(d) 51537 _, _, _ = h, z, r 51538 var yyhl3 bool = l >= 0 51539 for yyj3 := 0; ; yyj3++ { 51540 if yyhl3 { 51541 if yyj3 >= l { 51542 break 51543 } 51544 } else { 51545 if r.CheckBreak() { 51546 break 51547 } 51548 } 51549 r.ReadMapElemKey() 51550 yys3 := z.StringView(r.DecodeStringAsBytes()) 51551 r.ReadMapElemValue() 51552 switch yys3 { 51553 case "Region": 51554 if r.TryDecodeAsNil() { 51555 x.QueryOptions.Region = "" 51556 } else { 51557 x.Region = (string)(r.DecodeString()) 51558 } 51559 case "Namespace": 51560 if r.TryDecodeAsNil() { 51561 x.QueryOptions.Namespace = "" 51562 } else { 51563 x.Namespace = (string)(r.DecodeString()) 51564 } 51565 case "MinQueryIndex": 51566 if r.TryDecodeAsNil() { 51567 x.QueryOptions.MinQueryIndex = 0 51568 } else { 51569 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 51570 } 51571 case "MaxQueryTime": 51572 if r.TryDecodeAsNil() { 51573 x.QueryOptions.MaxQueryTime = 0 51574 } else { 51575 if false { 51576 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 51577 z.DecExtension(x.MaxQueryTime, yyxt8) 51578 } else { 51579 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 51580 } 51581 } 51582 case "AllowStale": 51583 if r.TryDecodeAsNil() { 51584 x.QueryOptions.AllowStale = false 51585 } else { 51586 x.AllowStale = (bool)(r.DecodeBool()) 51587 } 51588 case "Prefix": 51589 if r.TryDecodeAsNil() { 51590 x.QueryOptions.Prefix = "" 51591 } else { 51592 x.Prefix = (string)(r.DecodeString()) 51593 } 51594 case "AuthToken": 51595 if r.TryDecodeAsNil() { 51596 x.QueryOptions.AuthToken = "" 51597 } else { 51598 x.AuthToken = (string)(r.DecodeString()) 51599 } 51600 case "Forwarded": 51601 if r.TryDecodeAsNil() { 51602 x.QueryOptions.InternalRpcInfo.Forwarded = false 51603 } else { 51604 x.Forwarded = (bool)(r.DecodeBool()) 51605 } 51606 default: 51607 z.DecStructFieldNotFound(-1, yys3) 51608 } // end switch yys3 51609 } // end for yyj3 51610 r.ReadMapEnd() 51611 } 51612 51613 func (x *DeploymentListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 51614 var h codecSelfer100 51615 z, r := codec1978.GenHelperDecoder(d) 51616 _, _, _ = h, z, r 51617 var yyj13 int 51618 var yyb13 bool 51619 var yyhl13 bool = l >= 0 51620 yyj13++ 51621 if yyhl13 { 51622 yyb13 = yyj13 > l 51623 } else { 51624 yyb13 = r.CheckBreak() 51625 } 51626 if yyb13 { 51627 r.ReadArrayEnd() 51628 return 51629 } 51630 r.ReadArrayElem() 51631 if r.TryDecodeAsNil() { 51632 x.QueryOptions.Region = "" 51633 } else { 51634 x.Region = (string)(r.DecodeString()) 51635 } 51636 yyj13++ 51637 if yyhl13 { 51638 yyb13 = yyj13 > l 51639 } else { 51640 yyb13 = r.CheckBreak() 51641 } 51642 if yyb13 { 51643 r.ReadArrayEnd() 51644 return 51645 } 51646 r.ReadArrayElem() 51647 if r.TryDecodeAsNil() { 51648 x.QueryOptions.Namespace = "" 51649 } else { 51650 x.Namespace = (string)(r.DecodeString()) 51651 } 51652 yyj13++ 51653 if yyhl13 { 51654 yyb13 = yyj13 > l 51655 } else { 51656 yyb13 = r.CheckBreak() 51657 } 51658 if yyb13 { 51659 r.ReadArrayEnd() 51660 return 51661 } 51662 r.ReadArrayElem() 51663 if r.TryDecodeAsNil() { 51664 x.QueryOptions.MinQueryIndex = 0 51665 } else { 51666 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 51667 } 51668 yyj13++ 51669 if yyhl13 { 51670 yyb13 = yyj13 > l 51671 } else { 51672 yyb13 = r.CheckBreak() 51673 } 51674 if yyb13 { 51675 r.ReadArrayEnd() 51676 return 51677 } 51678 r.ReadArrayElem() 51679 if r.TryDecodeAsNil() { 51680 x.QueryOptions.MaxQueryTime = 0 51681 } else { 51682 if false { 51683 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 51684 z.DecExtension(x.MaxQueryTime, yyxt18) 51685 } else { 51686 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 51687 } 51688 } 51689 yyj13++ 51690 if yyhl13 { 51691 yyb13 = yyj13 > l 51692 } else { 51693 yyb13 = r.CheckBreak() 51694 } 51695 if yyb13 { 51696 r.ReadArrayEnd() 51697 return 51698 } 51699 r.ReadArrayElem() 51700 if r.TryDecodeAsNil() { 51701 x.QueryOptions.AllowStale = false 51702 } else { 51703 x.AllowStale = (bool)(r.DecodeBool()) 51704 } 51705 yyj13++ 51706 if yyhl13 { 51707 yyb13 = yyj13 > l 51708 } else { 51709 yyb13 = r.CheckBreak() 51710 } 51711 if yyb13 { 51712 r.ReadArrayEnd() 51713 return 51714 } 51715 r.ReadArrayElem() 51716 if r.TryDecodeAsNil() { 51717 x.QueryOptions.Prefix = "" 51718 } else { 51719 x.Prefix = (string)(r.DecodeString()) 51720 } 51721 yyj13++ 51722 if yyhl13 { 51723 yyb13 = yyj13 > l 51724 } else { 51725 yyb13 = r.CheckBreak() 51726 } 51727 if yyb13 { 51728 r.ReadArrayEnd() 51729 return 51730 } 51731 r.ReadArrayElem() 51732 if r.TryDecodeAsNil() { 51733 x.QueryOptions.AuthToken = "" 51734 } else { 51735 x.AuthToken = (string)(r.DecodeString()) 51736 } 51737 yyj13++ 51738 if yyhl13 { 51739 yyb13 = yyj13 > l 51740 } else { 51741 yyb13 = r.CheckBreak() 51742 } 51743 if yyb13 { 51744 r.ReadArrayEnd() 51745 return 51746 } 51747 r.ReadArrayElem() 51748 if r.TryDecodeAsNil() { 51749 x.QueryOptions.InternalRpcInfo.Forwarded = false 51750 } else { 51751 x.Forwarded = (bool)(r.DecodeBool()) 51752 } 51753 for { 51754 yyj13++ 51755 if yyhl13 { 51756 yyb13 = yyj13 > l 51757 } else { 51758 yyb13 = r.CheckBreak() 51759 } 51760 if yyb13 { 51761 break 51762 } 51763 r.ReadArrayElem() 51764 z.DecStructFieldNotFound(yyj13-1, "") 51765 } 51766 r.ReadArrayEnd() 51767 } 51768 51769 func (x *DeploymentDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { 51770 var h codecSelfer100 51771 z, r := codec1978.GenHelperEncoder(e) 51772 _, _, _ = h, z, r 51773 if x == nil { 51774 r.EncodeNil() 51775 } else { 51776 if false { 51777 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 51778 z.EncExtension(x, yyxt1) 51779 } else { 51780 yysep2 := !z.EncBinary() 51781 yy2arr2 := z.EncBasicHandle().StructToArray 51782 _, _ = yysep2, yy2arr2 51783 const yyr2 bool = false // struct tag has 'toArray' 51784 if yyr2 || yy2arr2 { 51785 r.WriteArrayStart(5) 51786 } else { 51787 r.WriteMapStart(5) 51788 } 51789 if yyr2 || yy2arr2 { 51790 r.WriteArrayElem() 51791 if x.Deployments == nil { 51792 r.EncodeNil() 51793 } else { 51794 if false { 51795 } else { 51796 z.F.EncSliceStringV(x.Deployments, e) 51797 } 51798 } 51799 } else { 51800 r.WriteMapElemKey() 51801 if z.IsJSONHandle() { 51802 z.WriteStr("\"Deployments\"") 51803 } else { 51804 r.EncodeStringEnc(codecSelferCcUTF8100, `Deployments`) 51805 } 51806 r.WriteMapElemValue() 51807 if x.Deployments == nil { 51808 r.EncodeNil() 51809 } else { 51810 if false { 51811 } else { 51812 z.F.EncSliceStringV(x.Deployments, e) 51813 } 51814 } 51815 } 51816 if yyr2 || yy2arr2 { 51817 r.WriteArrayElem() 51818 if false { 51819 } else { 51820 if z.EncBasicHandle().StringToRaw { 51821 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 51822 } else { 51823 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 51824 } 51825 } 51826 } else { 51827 r.WriteMapElemKey() 51828 if z.IsJSONHandle() { 51829 z.WriteStr("\"Region\"") 51830 } else { 51831 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 51832 } 51833 r.WriteMapElemValue() 51834 if false { 51835 } else { 51836 if z.EncBasicHandle().StringToRaw { 51837 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 51838 } else { 51839 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 51840 } 51841 } 51842 } 51843 if yyr2 || yy2arr2 { 51844 r.WriteArrayElem() 51845 if false { 51846 } else { 51847 if z.EncBasicHandle().StringToRaw { 51848 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 51849 } else { 51850 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 51851 } 51852 } 51853 } else { 51854 r.WriteMapElemKey() 51855 if z.IsJSONHandle() { 51856 z.WriteStr("\"Namespace\"") 51857 } else { 51858 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 51859 } 51860 r.WriteMapElemValue() 51861 if false { 51862 } else { 51863 if z.EncBasicHandle().StringToRaw { 51864 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 51865 } else { 51866 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 51867 } 51868 } 51869 } 51870 if yyr2 || yy2arr2 { 51871 r.WriteArrayElem() 51872 if false { 51873 } else { 51874 if z.EncBasicHandle().StringToRaw { 51875 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 51876 } else { 51877 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 51878 } 51879 } 51880 } else { 51881 r.WriteMapElemKey() 51882 if z.IsJSONHandle() { 51883 z.WriteStr("\"AuthToken\"") 51884 } else { 51885 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 51886 } 51887 r.WriteMapElemValue() 51888 if false { 51889 } else { 51890 if z.EncBasicHandle().StringToRaw { 51891 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 51892 } else { 51893 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 51894 } 51895 } 51896 } 51897 if yyr2 || yy2arr2 { 51898 r.WriteArrayElem() 51899 if false { 51900 } else { 51901 r.EncodeBool(bool(x.Forwarded)) 51902 } 51903 } else { 51904 r.WriteMapElemKey() 51905 if z.IsJSONHandle() { 51906 z.WriteStr("\"Forwarded\"") 51907 } else { 51908 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 51909 } 51910 r.WriteMapElemValue() 51911 if false { 51912 } else { 51913 r.EncodeBool(bool(x.Forwarded)) 51914 } 51915 } 51916 if yyr2 || yy2arr2 { 51917 r.WriteArrayEnd() 51918 } else { 51919 r.WriteMapEnd() 51920 } 51921 } 51922 } 51923 } 51924 51925 func (x *DeploymentDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { 51926 var h codecSelfer100 51927 z, r := codec1978.GenHelperDecoder(d) 51928 _, _, _ = h, z, r 51929 if false { 51930 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 51931 z.DecExtension(x, yyxt1) 51932 } else { 51933 yyct2 := r.ContainerType() 51934 if yyct2 == codecSelferValueTypeMap100 { 51935 yyl2 := r.ReadMapStart() 51936 if yyl2 == 0 { 51937 r.ReadMapEnd() 51938 } else { 51939 x.codecDecodeSelfFromMap(yyl2, d) 51940 } 51941 } else if yyct2 == codecSelferValueTypeArray100 { 51942 yyl2 := r.ReadArrayStart() 51943 if yyl2 == 0 { 51944 r.ReadArrayEnd() 51945 } else { 51946 x.codecDecodeSelfFromArray(yyl2, d) 51947 } 51948 } else { 51949 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 51950 } 51951 } 51952 } 51953 51954 func (x *DeploymentDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 51955 var h codecSelfer100 51956 z, r := codec1978.GenHelperDecoder(d) 51957 _, _, _ = h, z, r 51958 var yyhl3 bool = l >= 0 51959 for yyj3 := 0; ; yyj3++ { 51960 if yyhl3 { 51961 if yyj3 >= l { 51962 break 51963 } 51964 } else { 51965 if r.CheckBreak() { 51966 break 51967 } 51968 } 51969 r.ReadMapElemKey() 51970 yys3 := z.StringView(r.DecodeStringAsBytes()) 51971 r.ReadMapElemValue() 51972 switch yys3 { 51973 case "Deployments": 51974 if r.TryDecodeAsNil() { 51975 x.Deployments = nil 51976 } else { 51977 if false { 51978 } else { 51979 z.F.DecSliceStringX(&x.Deployments, d) 51980 } 51981 } 51982 case "Region": 51983 if r.TryDecodeAsNil() { 51984 x.WriteRequest.Region = "" 51985 } else { 51986 x.Region = (string)(r.DecodeString()) 51987 } 51988 case "Namespace": 51989 if r.TryDecodeAsNil() { 51990 x.WriteRequest.Namespace = "" 51991 } else { 51992 x.Namespace = (string)(r.DecodeString()) 51993 } 51994 case "AuthToken": 51995 if r.TryDecodeAsNil() { 51996 x.WriteRequest.AuthToken = "" 51997 } else { 51998 x.AuthToken = (string)(r.DecodeString()) 51999 } 52000 case "Forwarded": 52001 if r.TryDecodeAsNil() { 52002 x.WriteRequest.InternalRpcInfo.Forwarded = false 52003 } else { 52004 x.Forwarded = (bool)(r.DecodeBool()) 52005 } 52006 default: 52007 z.DecStructFieldNotFound(-1, yys3) 52008 } // end switch yys3 52009 } // end for yyj3 52010 r.ReadMapEnd() 52011 } 52012 52013 func (x *DeploymentDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 52014 var h codecSelfer100 52015 z, r := codec1978.GenHelperDecoder(d) 52016 _, _, _ = h, z, r 52017 var yyj10 int 52018 var yyb10 bool 52019 var yyhl10 bool = l >= 0 52020 yyj10++ 52021 if yyhl10 { 52022 yyb10 = yyj10 > l 52023 } else { 52024 yyb10 = r.CheckBreak() 52025 } 52026 if yyb10 { 52027 r.ReadArrayEnd() 52028 return 52029 } 52030 r.ReadArrayElem() 52031 if r.TryDecodeAsNil() { 52032 x.Deployments = nil 52033 } else { 52034 if false { 52035 } else { 52036 z.F.DecSliceStringX(&x.Deployments, d) 52037 } 52038 } 52039 yyj10++ 52040 if yyhl10 { 52041 yyb10 = yyj10 > l 52042 } else { 52043 yyb10 = r.CheckBreak() 52044 } 52045 if yyb10 { 52046 r.ReadArrayEnd() 52047 return 52048 } 52049 r.ReadArrayElem() 52050 if r.TryDecodeAsNil() { 52051 x.WriteRequest.Region = "" 52052 } else { 52053 x.Region = (string)(r.DecodeString()) 52054 } 52055 yyj10++ 52056 if yyhl10 { 52057 yyb10 = yyj10 > l 52058 } else { 52059 yyb10 = r.CheckBreak() 52060 } 52061 if yyb10 { 52062 r.ReadArrayEnd() 52063 return 52064 } 52065 r.ReadArrayElem() 52066 if r.TryDecodeAsNil() { 52067 x.WriteRequest.Namespace = "" 52068 } else { 52069 x.Namespace = (string)(r.DecodeString()) 52070 } 52071 yyj10++ 52072 if yyhl10 { 52073 yyb10 = yyj10 > l 52074 } else { 52075 yyb10 = r.CheckBreak() 52076 } 52077 if yyb10 { 52078 r.ReadArrayEnd() 52079 return 52080 } 52081 r.ReadArrayElem() 52082 if r.TryDecodeAsNil() { 52083 x.WriteRequest.AuthToken = "" 52084 } else { 52085 x.AuthToken = (string)(r.DecodeString()) 52086 } 52087 yyj10++ 52088 if yyhl10 { 52089 yyb10 = yyj10 > l 52090 } else { 52091 yyb10 = r.CheckBreak() 52092 } 52093 if yyb10 { 52094 r.ReadArrayEnd() 52095 return 52096 } 52097 r.ReadArrayElem() 52098 if r.TryDecodeAsNil() { 52099 x.WriteRequest.InternalRpcInfo.Forwarded = false 52100 } else { 52101 x.Forwarded = (bool)(r.DecodeBool()) 52102 } 52103 for { 52104 yyj10++ 52105 if yyhl10 { 52106 yyb10 = yyj10 > l 52107 } else { 52108 yyb10 = r.CheckBreak() 52109 } 52110 if yyb10 { 52111 break 52112 } 52113 r.ReadArrayElem() 52114 z.DecStructFieldNotFound(yyj10-1, "") 52115 } 52116 r.ReadArrayEnd() 52117 } 52118 52119 func (x *DeploymentStatusUpdateRequest) CodecEncodeSelf(e *codec1978.Encoder) { 52120 var h codecSelfer100 52121 z, r := codec1978.GenHelperEncoder(e) 52122 _, _, _ = h, z, r 52123 if x == nil { 52124 r.EncodeNil() 52125 } else { 52126 if false { 52127 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 52128 z.EncExtension(x, yyxt1) 52129 } else { 52130 yysep2 := !z.EncBinary() 52131 yy2arr2 := z.EncBasicHandle().StructToArray 52132 _, _ = yysep2, yy2arr2 52133 const yyr2 bool = false // struct tag has 'toArray' 52134 if yyr2 || yy2arr2 { 52135 r.WriteArrayStart(3) 52136 } else { 52137 r.WriteMapStart(3) 52138 } 52139 var yyn3 bool 52140 if x.Eval == nil { 52141 yyn3 = true 52142 goto LABEL3 52143 } 52144 LABEL3: 52145 if yyr2 || yy2arr2 { 52146 if yyn3 { 52147 r.WriteArrayElem() 52148 r.EncodeNil() 52149 } else { 52150 r.WriteArrayElem() 52151 if x.Eval == nil { 52152 r.EncodeNil() 52153 } else { 52154 x.Eval.CodecEncodeSelf(e) 52155 } 52156 } 52157 } else { 52158 r.WriteMapElemKey() 52159 if z.IsJSONHandle() { 52160 z.WriteStr("\"Eval\"") 52161 } else { 52162 r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) 52163 } 52164 r.WriteMapElemValue() 52165 if yyn3 { 52166 r.EncodeNil() 52167 } else { 52168 if x.Eval == nil { 52169 r.EncodeNil() 52170 } else { 52171 x.Eval.CodecEncodeSelf(e) 52172 } 52173 } 52174 } 52175 var yyn6 bool 52176 if x.DeploymentUpdate == nil { 52177 yyn6 = true 52178 goto LABEL6 52179 } 52180 LABEL6: 52181 if yyr2 || yy2arr2 { 52182 if yyn6 { 52183 r.WriteArrayElem() 52184 r.EncodeNil() 52185 } else { 52186 r.WriteArrayElem() 52187 if x.DeploymentUpdate == nil { 52188 r.EncodeNil() 52189 } else { 52190 x.DeploymentUpdate.CodecEncodeSelf(e) 52191 } 52192 } 52193 } else { 52194 r.WriteMapElemKey() 52195 if z.IsJSONHandle() { 52196 z.WriteStr("\"DeploymentUpdate\"") 52197 } else { 52198 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdate`) 52199 } 52200 r.WriteMapElemValue() 52201 if yyn6 { 52202 r.EncodeNil() 52203 } else { 52204 if x.DeploymentUpdate == nil { 52205 r.EncodeNil() 52206 } else { 52207 x.DeploymentUpdate.CodecEncodeSelf(e) 52208 } 52209 } 52210 } 52211 var yyn9 bool 52212 if x.Job == nil { 52213 yyn9 = true 52214 goto LABEL9 52215 } 52216 LABEL9: 52217 if yyr2 || yy2arr2 { 52218 if yyn9 { 52219 r.WriteArrayElem() 52220 r.EncodeNil() 52221 } else { 52222 r.WriteArrayElem() 52223 if x.Job == nil { 52224 r.EncodeNil() 52225 } else { 52226 x.Job.CodecEncodeSelf(e) 52227 } 52228 } 52229 } else { 52230 r.WriteMapElemKey() 52231 if z.IsJSONHandle() { 52232 z.WriteStr("\"Job\"") 52233 } else { 52234 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 52235 } 52236 r.WriteMapElemValue() 52237 if yyn9 { 52238 r.EncodeNil() 52239 } else { 52240 if x.Job == nil { 52241 r.EncodeNil() 52242 } else { 52243 x.Job.CodecEncodeSelf(e) 52244 } 52245 } 52246 } 52247 if yyr2 || yy2arr2 { 52248 r.WriteArrayEnd() 52249 } else { 52250 r.WriteMapEnd() 52251 } 52252 } 52253 } 52254 } 52255 52256 func (x *DeploymentStatusUpdateRequest) CodecDecodeSelf(d *codec1978.Decoder) { 52257 var h codecSelfer100 52258 z, r := codec1978.GenHelperDecoder(d) 52259 _, _, _ = h, z, r 52260 if false { 52261 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 52262 z.DecExtension(x, yyxt1) 52263 } else { 52264 yyct2 := r.ContainerType() 52265 if yyct2 == codecSelferValueTypeMap100 { 52266 yyl2 := r.ReadMapStart() 52267 if yyl2 == 0 { 52268 r.ReadMapEnd() 52269 } else { 52270 x.codecDecodeSelfFromMap(yyl2, d) 52271 } 52272 } else if yyct2 == codecSelferValueTypeArray100 { 52273 yyl2 := r.ReadArrayStart() 52274 if yyl2 == 0 { 52275 r.ReadArrayEnd() 52276 } else { 52277 x.codecDecodeSelfFromArray(yyl2, d) 52278 } 52279 } else { 52280 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 52281 } 52282 } 52283 } 52284 52285 func (x *DeploymentStatusUpdateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 52286 var h codecSelfer100 52287 z, r := codec1978.GenHelperDecoder(d) 52288 _, _, _ = h, z, r 52289 var yyhl3 bool = l >= 0 52290 for yyj3 := 0; ; yyj3++ { 52291 if yyhl3 { 52292 if yyj3 >= l { 52293 break 52294 } 52295 } else { 52296 if r.CheckBreak() { 52297 break 52298 } 52299 } 52300 r.ReadMapElemKey() 52301 yys3 := z.StringView(r.DecodeStringAsBytes()) 52302 r.ReadMapElemValue() 52303 switch yys3 { 52304 case "Eval": 52305 if r.TryDecodeAsNil() { 52306 if true && x.Eval != nil { 52307 x.Eval = nil 52308 } 52309 } else { 52310 if x.Eval == nil { 52311 x.Eval = new(Evaluation) 52312 } 52313 52314 x.Eval.CodecDecodeSelf(d) 52315 } 52316 case "DeploymentUpdate": 52317 if r.TryDecodeAsNil() { 52318 if true && x.DeploymentUpdate != nil { 52319 x.DeploymentUpdate = nil 52320 } 52321 } else { 52322 if x.DeploymentUpdate == nil { 52323 x.DeploymentUpdate = new(DeploymentStatusUpdate) 52324 } 52325 52326 x.DeploymentUpdate.CodecDecodeSelf(d) 52327 } 52328 case "Job": 52329 if r.TryDecodeAsNil() { 52330 if true && x.Job != nil { 52331 x.Job = nil 52332 } 52333 } else { 52334 if x.Job == nil { 52335 x.Job = new(Job) 52336 } 52337 52338 x.Job.CodecDecodeSelf(d) 52339 } 52340 default: 52341 z.DecStructFieldNotFound(-1, yys3) 52342 } // end switch yys3 52343 } // end for yyj3 52344 r.ReadMapEnd() 52345 } 52346 52347 func (x *DeploymentStatusUpdateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 52348 var h codecSelfer100 52349 z, r := codec1978.GenHelperDecoder(d) 52350 _, _, _ = h, z, r 52351 var yyj7 int 52352 var yyb7 bool 52353 var yyhl7 bool = l >= 0 52354 yyj7++ 52355 if yyhl7 { 52356 yyb7 = yyj7 > l 52357 } else { 52358 yyb7 = r.CheckBreak() 52359 } 52360 if yyb7 { 52361 r.ReadArrayEnd() 52362 return 52363 } 52364 r.ReadArrayElem() 52365 if r.TryDecodeAsNil() { 52366 if true && x.Eval != nil { 52367 x.Eval = nil 52368 } 52369 } else { 52370 if x.Eval == nil { 52371 x.Eval = new(Evaluation) 52372 } 52373 52374 x.Eval.CodecDecodeSelf(d) 52375 } 52376 yyj7++ 52377 if yyhl7 { 52378 yyb7 = yyj7 > l 52379 } else { 52380 yyb7 = r.CheckBreak() 52381 } 52382 if yyb7 { 52383 r.ReadArrayEnd() 52384 return 52385 } 52386 r.ReadArrayElem() 52387 if r.TryDecodeAsNil() { 52388 if true && x.DeploymentUpdate != nil { 52389 x.DeploymentUpdate = nil 52390 } 52391 } else { 52392 if x.DeploymentUpdate == nil { 52393 x.DeploymentUpdate = new(DeploymentStatusUpdate) 52394 } 52395 52396 x.DeploymentUpdate.CodecDecodeSelf(d) 52397 } 52398 yyj7++ 52399 if yyhl7 { 52400 yyb7 = yyj7 > l 52401 } else { 52402 yyb7 = r.CheckBreak() 52403 } 52404 if yyb7 { 52405 r.ReadArrayEnd() 52406 return 52407 } 52408 r.ReadArrayElem() 52409 if r.TryDecodeAsNil() { 52410 if true && x.Job != nil { 52411 x.Job = nil 52412 } 52413 } else { 52414 if x.Job == nil { 52415 x.Job = new(Job) 52416 } 52417 52418 x.Job.CodecDecodeSelf(d) 52419 } 52420 for { 52421 yyj7++ 52422 if yyhl7 { 52423 yyb7 = yyj7 > l 52424 } else { 52425 yyb7 = r.CheckBreak() 52426 } 52427 if yyb7 { 52428 break 52429 } 52430 r.ReadArrayElem() 52431 z.DecStructFieldNotFound(yyj7-1, "") 52432 } 52433 r.ReadArrayEnd() 52434 } 52435 52436 func (x *DeploymentAllocHealthRequest) CodecEncodeSelf(e *codec1978.Encoder) { 52437 var h codecSelfer100 52438 z, r := codec1978.GenHelperEncoder(e) 52439 _, _, _ = h, z, r 52440 if x == nil { 52441 r.EncodeNil() 52442 } else { 52443 if false { 52444 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 52445 z.EncExtension(x, yyxt1) 52446 } else { 52447 yysep2 := !z.EncBinary() 52448 yy2arr2 := z.EncBasicHandle().StructToArray 52449 _, _ = yysep2, yy2arr2 52450 const yyr2 bool = false // struct tag has 'toArray' 52451 if yyr2 || yy2arr2 { 52452 r.WriteArrayStart(7) 52453 } else { 52454 r.WriteMapStart(7) 52455 } 52456 if yyr2 || yy2arr2 { 52457 r.WriteArrayElem() 52458 if false { 52459 } else { 52460 if z.EncBasicHandle().StringToRaw { 52461 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 52462 } else { 52463 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 52464 } 52465 } 52466 } else { 52467 r.WriteMapElemKey() 52468 if z.IsJSONHandle() { 52469 z.WriteStr("\"DeploymentID\"") 52470 } else { 52471 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 52472 } 52473 r.WriteMapElemValue() 52474 if false { 52475 } else { 52476 if z.EncBasicHandle().StringToRaw { 52477 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 52478 } else { 52479 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 52480 } 52481 } 52482 } 52483 if yyr2 || yy2arr2 { 52484 r.WriteArrayElem() 52485 if x.HealthyAllocationIDs == nil { 52486 r.EncodeNil() 52487 } else { 52488 if false { 52489 } else { 52490 z.F.EncSliceStringV(x.HealthyAllocationIDs, e) 52491 } 52492 } 52493 } else { 52494 r.WriteMapElemKey() 52495 if z.IsJSONHandle() { 52496 z.WriteStr("\"HealthyAllocationIDs\"") 52497 } else { 52498 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyAllocationIDs`) 52499 } 52500 r.WriteMapElemValue() 52501 if x.HealthyAllocationIDs == nil { 52502 r.EncodeNil() 52503 } else { 52504 if false { 52505 } else { 52506 z.F.EncSliceStringV(x.HealthyAllocationIDs, e) 52507 } 52508 } 52509 } 52510 if yyr2 || yy2arr2 { 52511 r.WriteArrayElem() 52512 if x.UnhealthyAllocationIDs == nil { 52513 r.EncodeNil() 52514 } else { 52515 if false { 52516 } else { 52517 z.F.EncSliceStringV(x.UnhealthyAllocationIDs, e) 52518 } 52519 } 52520 } else { 52521 r.WriteMapElemKey() 52522 if z.IsJSONHandle() { 52523 z.WriteStr("\"UnhealthyAllocationIDs\"") 52524 } else { 52525 r.EncodeStringEnc(codecSelferCcUTF8100, `UnhealthyAllocationIDs`) 52526 } 52527 r.WriteMapElemValue() 52528 if x.UnhealthyAllocationIDs == nil { 52529 r.EncodeNil() 52530 } else { 52531 if false { 52532 } else { 52533 z.F.EncSliceStringV(x.UnhealthyAllocationIDs, e) 52534 } 52535 } 52536 } 52537 if yyr2 || yy2arr2 { 52538 r.WriteArrayElem() 52539 if false { 52540 } else { 52541 if z.EncBasicHandle().StringToRaw { 52542 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 52543 } else { 52544 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 52545 } 52546 } 52547 } else { 52548 r.WriteMapElemKey() 52549 if z.IsJSONHandle() { 52550 z.WriteStr("\"Region\"") 52551 } else { 52552 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 52553 } 52554 r.WriteMapElemValue() 52555 if false { 52556 } else { 52557 if z.EncBasicHandle().StringToRaw { 52558 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 52559 } else { 52560 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 52561 } 52562 } 52563 } 52564 if yyr2 || yy2arr2 { 52565 r.WriteArrayElem() 52566 if false { 52567 } else { 52568 if z.EncBasicHandle().StringToRaw { 52569 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 52570 } else { 52571 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 52572 } 52573 } 52574 } else { 52575 r.WriteMapElemKey() 52576 if z.IsJSONHandle() { 52577 z.WriteStr("\"Namespace\"") 52578 } else { 52579 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 52580 } 52581 r.WriteMapElemValue() 52582 if false { 52583 } else { 52584 if z.EncBasicHandle().StringToRaw { 52585 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 52586 } else { 52587 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 52588 } 52589 } 52590 } 52591 if yyr2 || yy2arr2 { 52592 r.WriteArrayElem() 52593 if false { 52594 } else { 52595 if z.EncBasicHandle().StringToRaw { 52596 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 52597 } else { 52598 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 52599 } 52600 } 52601 } else { 52602 r.WriteMapElemKey() 52603 if z.IsJSONHandle() { 52604 z.WriteStr("\"AuthToken\"") 52605 } else { 52606 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 52607 } 52608 r.WriteMapElemValue() 52609 if false { 52610 } else { 52611 if z.EncBasicHandle().StringToRaw { 52612 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 52613 } else { 52614 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 52615 } 52616 } 52617 } 52618 if yyr2 || yy2arr2 { 52619 r.WriteArrayElem() 52620 if false { 52621 } else { 52622 r.EncodeBool(bool(x.Forwarded)) 52623 } 52624 } else { 52625 r.WriteMapElemKey() 52626 if z.IsJSONHandle() { 52627 z.WriteStr("\"Forwarded\"") 52628 } else { 52629 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 52630 } 52631 r.WriteMapElemValue() 52632 if false { 52633 } else { 52634 r.EncodeBool(bool(x.Forwarded)) 52635 } 52636 } 52637 if yyr2 || yy2arr2 { 52638 r.WriteArrayEnd() 52639 } else { 52640 r.WriteMapEnd() 52641 } 52642 } 52643 } 52644 } 52645 52646 func (x *DeploymentAllocHealthRequest) CodecDecodeSelf(d *codec1978.Decoder) { 52647 var h codecSelfer100 52648 z, r := codec1978.GenHelperDecoder(d) 52649 _, _, _ = h, z, r 52650 if false { 52651 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 52652 z.DecExtension(x, yyxt1) 52653 } else { 52654 yyct2 := r.ContainerType() 52655 if yyct2 == codecSelferValueTypeMap100 { 52656 yyl2 := r.ReadMapStart() 52657 if yyl2 == 0 { 52658 r.ReadMapEnd() 52659 } else { 52660 x.codecDecodeSelfFromMap(yyl2, d) 52661 } 52662 } else if yyct2 == codecSelferValueTypeArray100 { 52663 yyl2 := r.ReadArrayStart() 52664 if yyl2 == 0 { 52665 r.ReadArrayEnd() 52666 } else { 52667 x.codecDecodeSelfFromArray(yyl2, d) 52668 } 52669 } else { 52670 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 52671 } 52672 } 52673 } 52674 52675 func (x *DeploymentAllocHealthRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 52676 var h codecSelfer100 52677 z, r := codec1978.GenHelperDecoder(d) 52678 _, _, _ = h, z, r 52679 var yyhl3 bool = l >= 0 52680 for yyj3 := 0; ; yyj3++ { 52681 if yyhl3 { 52682 if yyj3 >= l { 52683 break 52684 } 52685 } else { 52686 if r.CheckBreak() { 52687 break 52688 } 52689 } 52690 r.ReadMapElemKey() 52691 yys3 := z.StringView(r.DecodeStringAsBytes()) 52692 r.ReadMapElemValue() 52693 switch yys3 { 52694 case "DeploymentID": 52695 if r.TryDecodeAsNil() { 52696 x.DeploymentID = "" 52697 } else { 52698 x.DeploymentID = (string)(r.DecodeString()) 52699 } 52700 case "HealthyAllocationIDs": 52701 if r.TryDecodeAsNil() { 52702 x.HealthyAllocationIDs = nil 52703 } else { 52704 if false { 52705 } else { 52706 z.F.DecSliceStringX(&x.HealthyAllocationIDs, d) 52707 } 52708 } 52709 case "UnhealthyAllocationIDs": 52710 if r.TryDecodeAsNil() { 52711 x.UnhealthyAllocationIDs = nil 52712 } else { 52713 if false { 52714 } else { 52715 z.F.DecSliceStringX(&x.UnhealthyAllocationIDs, d) 52716 } 52717 } 52718 case "Region": 52719 if r.TryDecodeAsNil() { 52720 x.WriteRequest.Region = "" 52721 } else { 52722 x.Region = (string)(r.DecodeString()) 52723 } 52724 case "Namespace": 52725 if r.TryDecodeAsNil() { 52726 x.WriteRequest.Namespace = "" 52727 } else { 52728 x.Namespace = (string)(r.DecodeString()) 52729 } 52730 case "AuthToken": 52731 if r.TryDecodeAsNil() { 52732 x.WriteRequest.AuthToken = "" 52733 } else { 52734 x.AuthToken = (string)(r.DecodeString()) 52735 } 52736 case "Forwarded": 52737 if r.TryDecodeAsNil() { 52738 x.WriteRequest.InternalRpcInfo.Forwarded = false 52739 } else { 52740 x.Forwarded = (bool)(r.DecodeBool()) 52741 } 52742 default: 52743 z.DecStructFieldNotFound(-1, yys3) 52744 } // end switch yys3 52745 } // end for yyj3 52746 r.ReadMapEnd() 52747 } 52748 52749 func (x *DeploymentAllocHealthRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 52750 var h codecSelfer100 52751 z, r := codec1978.GenHelperDecoder(d) 52752 _, _, _ = h, z, r 52753 var yyj13 int 52754 var yyb13 bool 52755 var yyhl13 bool = l >= 0 52756 yyj13++ 52757 if yyhl13 { 52758 yyb13 = yyj13 > l 52759 } else { 52760 yyb13 = r.CheckBreak() 52761 } 52762 if yyb13 { 52763 r.ReadArrayEnd() 52764 return 52765 } 52766 r.ReadArrayElem() 52767 if r.TryDecodeAsNil() { 52768 x.DeploymentID = "" 52769 } else { 52770 x.DeploymentID = (string)(r.DecodeString()) 52771 } 52772 yyj13++ 52773 if yyhl13 { 52774 yyb13 = yyj13 > l 52775 } else { 52776 yyb13 = r.CheckBreak() 52777 } 52778 if yyb13 { 52779 r.ReadArrayEnd() 52780 return 52781 } 52782 r.ReadArrayElem() 52783 if r.TryDecodeAsNil() { 52784 x.HealthyAllocationIDs = nil 52785 } else { 52786 if false { 52787 } else { 52788 z.F.DecSliceStringX(&x.HealthyAllocationIDs, d) 52789 } 52790 } 52791 yyj13++ 52792 if yyhl13 { 52793 yyb13 = yyj13 > l 52794 } else { 52795 yyb13 = r.CheckBreak() 52796 } 52797 if yyb13 { 52798 r.ReadArrayEnd() 52799 return 52800 } 52801 r.ReadArrayElem() 52802 if r.TryDecodeAsNil() { 52803 x.UnhealthyAllocationIDs = nil 52804 } else { 52805 if false { 52806 } else { 52807 z.F.DecSliceStringX(&x.UnhealthyAllocationIDs, d) 52808 } 52809 } 52810 yyj13++ 52811 if yyhl13 { 52812 yyb13 = yyj13 > l 52813 } else { 52814 yyb13 = r.CheckBreak() 52815 } 52816 if yyb13 { 52817 r.ReadArrayEnd() 52818 return 52819 } 52820 r.ReadArrayElem() 52821 if r.TryDecodeAsNil() { 52822 x.WriteRequest.Region = "" 52823 } else { 52824 x.Region = (string)(r.DecodeString()) 52825 } 52826 yyj13++ 52827 if yyhl13 { 52828 yyb13 = yyj13 > l 52829 } else { 52830 yyb13 = r.CheckBreak() 52831 } 52832 if yyb13 { 52833 r.ReadArrayEnd() 52834 return 52835 } 52836 r.ReadArrayElem() 52837 if r.TryDecodeAsNil() { 52838 x.WriteRequest.Namespace = "" 52839 } else { 52840 x.Namespace = (string)(r.DecodeString()) 52841 } 52842 yyj13++ 52843 if yyhl13 { 52844 yyb13 = yyj13 > l 52845 } else { 52846 yyb13 = r.CheckBreak() 52847 } 52848 if yyb13 { 52849 r.ReadArrayEnd() 52850 return 52851 } 52852 r.ReadArrayElem() 52853 if r.TryDecodeAsNil() { 52854 x.WriteRequest.AuthToken = "" 52855 } else { 52856 x.AuthToken = (string)(r.DecodeString()) 52857 } 52858 yyj13++ 52859 if yyhl13 { 52860 yyb13 = yyj13 > l 52861 } else { 52862 yyb13 = r.CheckBreak() 52863 } 52864 if yyb13 { 52865 r.ReadArrayEnd() 52866 return 52867 } 52868 r.ReadArrayElem() 52869 if r.TryDecodeAsNil() { 52870 x.WriteRequest.InternalRpcInfo.Forwarded = false 52871 } else { 52872 x.Forwarded = (bool)(r.DecodeBool()) 52873 } 52874 for { 52875 yyj13++ 52876 if yyhl13 { 52877 yyb13 = yyj13 > l 52878 } else { 52879 yyb13 = r.CheckBreak() 52880 } 52881 if yyb13 { 52882 break 52883 } 52884 r.ReadArrayElem() 52885 z.DecStructFieldNotFound(yyj13-1, "") 52886 } 52887 r.ReadArrayEnd() 52888 } 52889 52890 func (x *ApplyDeploymentAllocHealthRequest) CodecEncodeSelf(e *codec1978.Encoder) { 52891 var h codecSelfer100 52892 z, r := codec1978.GenHelperEncoder(e) 52893 _, _, _ = h, z, r 52894 if x == nil { 52895 r.EncodeNil() 52896 } else { 52897 if false { 52898 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 52899 z.EncExtension(x, yyxt1) 52900 } else { 52901 yysep2 := !z.EncBinary() 52902 yy2arr2 := z.EncBasicHandle().StructToArray 52903 _, _ = yysep2, yy2arr2 52904 const yyr2 bool = false // struct tag has 'toArray' 52905 if yyr2 || yy2arr2 { 52906 r.WriteArrayStart(11) 52907 } else { 52908 r.WriteMapStart(11) 52909 } 52910 if yyr2 || yy2arr2 { 52911 r.WriteArrayElem() 52912 if false { 52913 } else { 52914 if z.EncBasicHandle().StringToRaw { 52915 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 52916 } else { 52917 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 52918 } 52919 } 52920 } else { 52921 r.WriteMapElemKey() 52922 if z.IsJSONHandle() { 52923 z.WriteStr("\"DeploymentID\"") 52924 } else { 52925 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 52926 } 52927 r.WriteMapElemValue() 52928 if false { 52929 } else { 52930 if z.EncBasicHandle().StringToRaw { 52931 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 52932 } else { 52933 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 52934 } 52935 } 52936 } 52937 if yyr2 || yy2arr2 { 52938 r.WriteArrayElem() 52939 if x.HealthyAllocationIDs == nil { 52940 r.EncodeNil() 52941 } else { 52942 if false { 52943 } else { 52944 z.F.EncSliceStringV(x.HealthyAllocationIDs, e) 52945 } 52946 } 52947 } else { 52948 r.WriteMapElemKey() 52949 if z.IsJSONHandle() { 52950 z.WriteStr("\"HealthyAllocationIDs\"") 52951 } else { 52952 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyAllocationIDs`) 52953 } 52954 r.WriteMapElemValue() 52955 if x.HealthyAllocationIDs == nil { 52956 r.EncodeNil() 52957 } else { 52958 if false { 52959 } else { 52960 z.F.EncSliceStringV(x.HealthyAllocationIDs, e) 52961 } 52962 } 52963 } 52964 if yyr2 || yy2arr2 { 52965 r.WriteArrayElem() 52966 if x.UnhealthyAllocationIDs == nil { 52967 r.EncodeNil() 52968 } else { 52969 if false { 52970 } else { 52971 z.F.EncSliceStringV(x.UnhealthyAllocationIDs, e) 52972 } 52973 } 52974 } else { 52975 r.WriteMapElemKey() 52976 if z.IsJSONHandle() { 52977 z.WriteStr("\"UnhealthyAllocationIDs\"") 52978 } else { 52979 r.EncodeStringEnc(codecSelferCcUTF8100, `UnhealthyAllocationIDs`) 52980 } 52981 r.WriteMapElemValue() 52982 if x.UnhealthyAllocationIDs == nil { 52983 r.EncodeNil() 52984 } else { 52985 if false { 52986 } else { 52987 z.F.EncSliceStringV(x.UnhealthyAllocationIDs, e) 52988 } 52989 } 52990 } 52991 if yyr2 || yy2arr2 { 52992 r.WriteArrayElem() 52993 if false { 52994 } else { 52995 if z.EncBasicHandle().StringToRaw { 52996 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 52997 } else { 52998 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 52999 } 53000 } 53001 } else { 53002 r.WriteMapElemKey() 53003 if z.IsJSONHandle() { 53004 z.WriteStr("\"Region\"") 53005 } else { 53006 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 53007 } 53008 r.WriteMapElemValue() 53009 if false { 53010 } else { 53011 if z.EncBasicHandle().StringToRaw { 53012 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 53013 } else { 53014 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 53015 } 53016 } 53017 } 53018 if yyr2 || yy2arr2 { 53019 r.WriteArrayElem() 53020 if false { 53021 } else { 53022 if z.EncBasicHandle().StringToRaw { 53023 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 53024 } else { 53025 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 53026 } 53027 } 53028 } else { 53029 r.WriteMapElemKey() 53030 if z.IsJSONHandle() { 53031 z.WriteStr("\"Namespace\"") 53032 } else { 53033 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 53034 } 53035 r.WriteMapElemValue() 53036 if false { 53037 } else { 53038 if z.EncBasicHandle().StringToRaw { 53039 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 53040 } else { 53041 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 53042 } 53043 } 53044 } 53045 if yyr2 || yy2arr2 { 53046 r.WriteArrayElem() 53047 if false { 53048 } else { 53049 if z.EncBasicHandle().StringToRaw { 53050 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 53051 } else { 53052 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 53053 } 53054 } 53055 } else { 53056 r.WriteMapElemKey() 53057 if z.IsJSONHandle() { 53058 z.WriteStr("\"AuthToken\"") 53059 } else { 53060 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 53061 } 53062 r.WriteMapElemValue() 53063 if false { 53064 } else { 53065 if z.EncBasicHandle().StringToRaw { 53066 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 53067 } else { 53068 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 53069 } 53070 } 53071 } 53072 if yyr2 || yy2arr2 { 53073 r.WriteArrayElem() 53074 if false { 53075 } else { 53076 r.EncodeBool(bool(x.Forwarded)) 53077 } 53078 } else { 53079 r.WriteMapElemKey() 53080 if z.IsJSONHandle() { 53081 z.WriteStr("\"Forwarded\"") 53082 } else { 53083 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 53084 } 53085 r.WriteMapElemValue() 53086 if false { 53087 } else { 53088 r.EncodeBool(bool(x.Forwarded)) 53089 } 53090 } 53091 if yyr2 || yy2arr2 { 53092 r.WriteArrayElem() 53093 if false { 53094 } else if !z.EncBasicHandle().TimeNotBuiltin { 53095 r.EncodeTime(x.Timestamp) 53096 } else if yyxt25 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt25 != nil { 53097 z.EncExtension(x.Timestamp, yyxt25) 53098 } else if z.EncBinary() { 53099 z.EncBinaryMarshal(x.Timestamp) 53100 } else if !z.EncBinary() && z.IsJSONHandle() { 53101 z.EncJSONMarshal(x.Timestamp) 53102 } else { 53103 z.EncFallback(x.Timestamp) 53104 } 53105 } else { 53106 r.WriteMapElemKey() 53107 if z.IsJSONHandle() { 53108 z.WriteStr("\"Timestamp\"") 53109 } else { 53110 r.EncodeStringEnc(codecSelferCcUTF8100, `Timestamp`) 53111 } 53112 r.WriteMapElemValue() 53113 if false { 53114 } else if !z.EncBasicHandle().TimeNotBuiltin { 53115 r.EncodeTime(x.Timestamp) 53116 } else if yyxt26 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt26 != nil { 53117 z.EncExtension(x.Timestamp, yyxt26) 53118 } else if z.EncBinary() { 53119 z.EncBinaryMarshal(x.Timestamp) 53120 } else if !z.EncBinary() && z.IsJSONHandle() { 53121 z.EncJSONMarshal(x.Timestamp) 53122 } else { 53123 z.EncFallback(x.Timestamp) 53124 } 53125 } 53126 var yyn27 bool 53127 if x.DeploymentUpdate == nil { 53128 yyn27 = true 53129 goto LABEL27 53130 } 53131 LABEL27: 53132 if yyr2 || yy2arr2 { 53133 if yyn27 { 53134 r.WriteArrayElem() 53135 r.EncodeNil() 53136 } else { 53137 r.WriteArrayElem() 53138 if x.DeploymentUpdate == nil { 53139 r.EncodeNil() 53140 } else { 53141 x.DeploymentUpdate.CodecEncodeSelf(e) 53142 } 53143 } 53144 } else { 53145 r.WriteMapElemKey() 53146 if z.IsJSONHandle() { 53147 z.WriteStr("\"DeploymentUpdate\"") 53148 } else { 53149 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdate`) 53150 } 53151 r.WriteMapElemValue() 53152 if yyn27 { 53153 r.EncodeNil() 53154 } else { 53155 if x.DeploymentUpdate == nil { 53156 r.EncodeNil() 53157 } else { 53158 x.DeploymentUpdate.CodecEncodeSelf(e) 53159 } 53160 } 53161 } 53162 var yyn30 bool 53163 if x.Job == nil { 53164 yyn30 = true 53165 goto LABEL30 53166 } 53167 LABEL30: 53168 if yyr2 || yy2arr2 { 53169 if yyn30 { 53170 r.WriteArrayElem() 53171 r.EncodeNil() 53172 } else { 53173 r.WriteArrayElem() 53174 if x.Job == nil { 53175 r.EncodeNil() 53176 } else { 53177 x.Job.CodecEncodeSelf(e) 53178 } 53179 } 53180 } else { 53181 r.WriteMapElemKey() 53182 if z.IsJSONHandle() { 53183 z.WriteStr("\"Job\"") 53184 } else { 53185 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 53186 } 53187 r.WriteMapElemValue() 53188 if yyn30 { 53189 r.EncodeNil() 53190 } else { 53191 if x.Job == nil { 53192 r.EncodeNil() 53193 } else { 53194 x.Job.CodecEncodeSelf(e) 53195 } 53196 } 53197 } 53198 var yyn33 bool 53199 if x.Eval == nil { 53200 yyn33 = true 53201 goto LABEL33 53202 } 53203 LABEL33: 53204 if yyr2 || yy2arr2 { 53205 if yyn33 { 53206 r.WriteArrayElem() 53207 r.EncodeNil() 53208 } else { 53209 r.WriteArrayElem() 53210 if x.Eval == nil { 53211 r.EncodeNil() 53212 } else { 53213 x.Eval.CodecEncodeSelf(e) 53214 } 53215 } 53216 } else { 53217 r.WriteMapElemKey() 53218 if z.IsJSONHandle() { 53219 z.WriteStr("\"Eval\"") 53220 } else { 53221 r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) 53222 } 53223 r.WriteMapElemValue() 53224 if yyn33 { 53225 r.EncodeNil() 53226 } else { 53227 if x.Eval == nil { 53228 r.EncodeNil() 53229 } else { 53230 x.Eval.CodecEncodeSelf(e) 53231 } 53232 } 53233 } 53234 if yyr2 || yy2arr2 { 53235 r.WriteArrayEnd() 53236 } else { 53237 r.WriteMapEnd() 53238 } 53239 } 53240 } 53241 } 53242 53243 func (x *ApplyDeploymentAllocHealthRequest) CodecDecodeSelf(d *codec1978.Decoder) { 53244 var h codecSelfer100 53245 z, r := codec1978.GenHelperDecoder(d) 53246 _, _, _ = h, z, r 53247 if false { 53248 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 53249 z.DecExtension(x, yyxt1) 53250 } else { 53251 yyct2 := r.ContainerType() 53252 if yyct2 == codecSelferValueTypeMap100 { 53253 yyl2 := r.ReadMapStart() 53254 if yyl2 == 0 { 53255 r.ReadMapEnd() 53256 } else { 53257 x.codecDecodeSelfFromMap(yyl2, d) 53258 } 53259 } else if yyct2 == codecSelferValueTypeArray100 { 53260 yyl2 := r.ReadArrayStart() 53261 if yyl2 == 0 { 53262 r.ReadArrayEnd() 53263 } else { 53264 x.codecDecodeSelfFromArray(yyl2, d) 53265 } 53266 } else { 53267 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 53268 } 53269 } 53270 } 53271 53272 func (x *ApplyDeploymentAllocHealthRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 53273 var h codecSelfer100 53274 z, r := codec1978.GenHelperDecoder(d) 53275 _, _, _ = h, z, r 53276 var yyhl3 bool = l >= 0 53277 for yyj3 := 0; ; yyj3++ { 53278 if yyhl3 { 53279 if yyj3 >= l { 53280 break 53281 } 53282 } else { 53283 if r.CheckBreak() { 53284 break 53285 } 53286 } 53287 r.ReadMapElemKey() 53288 yys3 := z.StringView(r.DecodeStringAsBytes()) 53289 r.ReadMapElemValue() 53290 switch yys3 { 53291 case "DeploymentID": 53292 if r.TryDecodeAsNil() { 53293 x.DeploymentAllocHealthRequest.DeploymentID = "" 53294 } else { 53295 x.DeploymentID = (string)(r.DecodeString()) 53296 } 53297 case "HealthyAllocationIDs": 53298 if r.TryDecodeAsNil() { 53299 x.DeploymentAllocHealthRequest.HealthyAllocationIDs = nil 53300 } else { 53301 if false { 53302 } else { 53303 z.F.DecSliceStringX(&x.HealthyAllocationIDs, d) 53304 } 53305 } 53306 case "UnhealthyAllocationIDs": 53307 if r.TryDecodeAsNil() { 53308 x.DeploymentAllocHealthRequest.UnhealthyAllocationIDs = nil 53309 } else { 53310 if false { 53311 } else { 53312 z.F.DecSliceStringX(&x.UnhealthyAllocationIDs, d) 53313 } 53314 } 53315 case "Region": 53316 if r.TryDecodeAsNil() { 53317 x.DeploymentAllocHealthRequest.WriteRequest.Region = "" 53318 } else { 53319 x.Region = (string)(r.DecodeString()) 53320 } 53321 case "Namespace": 53322 if r.TryDecodeAsNil() { 53323 x.DeploymentAllocHealthRequest.WriteRequest.Namespace = "" 53324 } else { 53325 x.Namespace = (string)(r.DecodeString()) 53326 } 53327 case "AuthToken": 53328 if r.TryDecodeAsNil() { 53329 x.DeploymentAllocHealthRequest.WriteRequest.AuthToken = "" 53330 } else { 53331 x.AuthToken = (string)(r.DecodeString()) 53332 } 53333 case "Forwarded": 53334 if r.TryDecodeAsNil() { 53335 x.DeploymentAllocHealthRequest.WriteRequest.InternalRpcInfo.Forwarded = false 53336 } else { 53337 x.Forwarded = (bool)(r.DecodeBool()) 53338 } 53339 case "Timestamp": 53340 if r.TryDecodeAsNil() { 53341 x.Timestamp = time.Time{} 53342 } else { 53343 if false { 53344 } else if !z.DecBasicHandle().TimeNotBuiltin { 53345 x.Timestamp = r.DecodeTime() 53346 } else if yyxt14 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt14 != nil { 53347 z.DecExtension(x.Timestamp, yyxt14) 53348 } else if z.DecBinary() { 53349 z.DecBinaryUnmarshal(&x.Timestamp) 53350 } else if !z.DecBinary() && z.IsJSONHandle() { 53351 z.DecJSONUnmarshal(&x.Timestamp) 53352 } else { 53353 z.DecFallback(&x.Timestamp, false) 53354 } 53355 } 53356 case "DeploymentUpdate": 53357 if r.TryDecodeAsNil() { 53358 if true && x.DeploymentUpdate != nil { 53359 x.DeploymentUpdate = nil 53360 } 53361 } else { 53362 if x.DeploymentUpdate == nil { 53363 x.DeploymentUpdate = new(DeploymentStatusUpdate) 53364 } 53365 53366 x.DeploymentUpdate.CodecDecodeSelf(d) 53367 } 53368 case "Job": 53369 if r.TryDecodeAsNil() { 53370 if true && x.Job != nil { 53371 x.Job = nil 53372 } 53373 } else { 53374 if x.Job == nil { 53375 x.Job = new(Job) 53376 } 53377 53378 x.Job.CodecDecodeSelf(d) 53379 } 53380 case "Eval": 53381 if r.TryDecodeAsNil() { 53382 if true && x.Eval != nil { 53383 x.Eval = nil 53384 } 53385 } else { 53386 if x.Eval == nil { 53387 x.Eval = new(Evaluation) 53388 } 53389 53390 x.Eval.CodecDecodeSelf(d) 53391 } 53392 default: 53393 z.DecStructFieldNotFound(-1, yys3) 53394 } // end switch yys3 53395 } // end for yyj3 53396 r.ReadMapEnd() 53397 } 53398 53399 func (x *ApplyDeploymentAllocHealthRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 53400 var h codecSelfer100 53401 z, r := codec1978.GenHelperDecoder(d) 53402 _, _, _ = h, z, r 53403 var yyj18 int 53404 var yyb18 bool 53405 var yyhl18 bool = l >= 0 53406 yyj18++ 53407 if yyhl18 { 53408 yyb18 = yyj18 > l 53409 } else { 53410 yyb18 = r.CheckBreak() 53411 } 53412 if yyb18 { 53413 r.ReadArrayEnd() 53414 return 53415 } 53416 r.ReadArrayElem() 53417 if r.TryDecodeAsNil() { 53418 x.DeploymentAllocHealthRequest.DeploymentID = "" 53419 } else { 53420 x.DeploymentID = (string)(r.DecodeString()) 53421 } 53422 yyj18++ 53423 if yyhl18 { 53424 yyb18 = yyj18 > l 53425 } else { 53426 yyb18 = r.CheckBreak() 53427 } 53428 if yyb18 { 53429 r.ReadArrayEnd() 53430 return 53431 } 53432 r.ReadArrayElem() 53433 if r.TryDecodeAsNil() { 53434 x.DeploymentAllocHealthRequest.HealthyAllocationIDs = nil 53435 } else { 53436 if false { 53437 } else { 53438 z.F.DecSliceStringX(&x.HealthyAllocationIDs, d) 53439 } 53440 } 53441 yyj18++ 53442 if yyhl18 { 53443 yyb18 = yyj18 > l 53444 } else { 53445 yyb18 = r.CheckBreak() 53446 } 53447 if yyb18 { 53448 r.ReadArrayEnd() 53449 return 53450 } 53451 r.ReadArrayElem() 53452 if r.TryDecodeAsNil() { 53453 x.DeploymentAllocHealthRequest.UnhealthyAllocationIDs = nil 53454 } else { 53455 if false { 53456 } else { 53457 z.F.DecSliceStringX(&x.UnhealthyAllocationIDs, d) 53458 } 53459 } 53460 yyj18++ 53461 if yyhl18 { 53462 yyb18 = yyj18 > l 53463 } else { 53464 yyb18 = r.CheckBreak() 53465 } 53466 if yyb18 { 53467 r.ReadArrayEnd() 53468 return 53469 } 53470 r.ReadArrayElem() 53471 if r.TryDecodeAsNil() { 53472 x.DeploymentAllocHealthRequest.WriteRequest.Region = "" 53473 } else { 53474 x.Region = (string)(r.DecodeString()) 53475 } 53476 yyj18++ 53477 if yyhl18 { 53478 yyb18 = yyj18 > l 53479 } else { 53480 yyb18 = r.CheckBreak() 53481 } 53482 if yyb18 { 53483 r.ReadArrayEnd() 53484 return 53485 } 53486 r.ReadArrayElem() 53487 if r.TryDecodeAsNil() { 53488 x.DeploymentAllocHealthRequest.WriteRequest.Namespace = "" 53489 } else { 53490 x.Namespace = (string)(r.DecodeString()) 53491 } 53492 yyj18++ 53493 if yyhl18 { 53494 yyb18 = yyj18 > l 53495 } else { 53496 yyb18 = r.CheckBreak() 53497 } 53498 if yyb18 { 53499 r.ReadArrayEnd() 53500 return 53501 } 53502 r.ReadArrayElem() 53503 if r.TryDecodeAsNil() { 53504 x.DeploymentAllocHealthRequest.WriteRequest.AuthToken = "" 53505 } else { 53506 x.AuthToken = (string)(r.DecodeString()) 53507 } 53508 yyj18++ 53509 if yyhl18 { 53510 yyb18 = yyj18 > l 53511 } else { 53512 yyb18 = r.CheckBreak() 53513 } 53514 if yyb18 { 53515 r.ReadArrayEnd() 53516 return 53517 } 53518 r.ReadArrayElem() 53519 if r.TryDecodeAsNil() { 53520 x.DeploymentAllocHealthRequest.WriteRequest.InternalRpcInfo.Forwarded = false 53521 } else { 53522 x.Forwarded = (bool)(r.DecodeBool()) 53523 } 53524 yyj18++ 53525 if yyhl18 { 53526 yyb18 = yyj18 > l 53527 } else { 53528 yyb18 = r.CheckBreak() 53529 } 53530 if yyb18 { 53531 r.ReadArrayEnd() 53532 return 53533 } 53534 r.ReadArrayElem() 53535 if r.TryDecodeAsNil() { 53536 x.Timestamp = time.Time{} 53537 } else { 53538 if false { 53539 } else if !z.DecBasicHandle().TimeNotBuiltin { 53540 x.Timestamp = r.DecodeTime() 53541 } else if yyxt29 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt29 != nil { 53542 z.DecExtension(x.Timestamp, yyxt29) 53543 } else if z.DecBinary() { 53544 z.DecBinaryUnmarshal(&x.Timestamp) 53545 } else if !z.DecBinary() && z.IsJSONHandle() { 53546 z.DecJSONUnmarshal(&x.Timestamp) 53547 } else { 53548 z.DecFallback(&x.Timestamp, false) 53549 } 53550 } 53551 yyj18++ 53552 if yyhl18 { 53553 yyb18 = yyj18 > l 53554 } else { 53555 yyb18 = r.CheckBreak() 53556 } 53557 if yyb18 { 53558 r.ReadArrayEnd() 53559 return 53560 } 53561 r.ReadArrayElem() 53562 if r.TryDecodeAsNil() { 53563 if true && x.DeploymentUpdate != nil { 53564 x.DeploymentUpdate = nil 53565 } 53566 } else { 53567 if x.DeploymentUpdate == nil { 53568 x.DeploymentUpdate = new(DeploymentStatusUpdate) 53569 } 53570 53571 x.DeploymentUpdate.CodecDecodeSelf(d) 53572 } 53573 yyj18++ 53574 if yyhl18 { 53575 yyb18 = yyj18 > l 53576 } else { 53577 yyb18 = r.CheckBreak() 53578 } 53579 if yyb18 { 53580 r.ReadArrayEnd() 53581 return 53582 } 53583 r.ReadArrayElem() 53584 if r.TryDecodeAsNil() { 53585 if true && x.Job != nil { 53586 x.Job = nil 53587 } 53588 } else { 53589 if x.Job == nil { 53590 x.Job = new(Job) 53591 } 53592 53593 x.Job.CodecDecodeSelf(d) 53594 } 53595 yyj18++ 53596 if yyhl18 { 53597 yyb18 = yyj18 > l 53598 } else { 53599 yyb18 = r.CheckBreak() 53600 } 53601 if yyb18 { 53602 r.ReadArrayEnd() 53603 return 53604 } 53605 r.ReadArrayElem() 53606 if r.TryDecodeAsNil() { 53607 if true && x.Eval != nil { 53608 x.Eval = nil 53609 } 53610 } else { 53611 if x.Eval == nil { 53612 x.Eval = new(Evaluation) 53613 } 53614 53615 x.Eval.CodecDecodeSelf(d) 53616 } 53617 for { 53618 yyj18++ 53619 if yyhl18 { 53620 yyb18 = yyj18 > l 53621 } else { 53622 yyb18 = r.CheckBreak() 53623 } 53624 if yyb18 { 53625 break 53626 } 53627 r.ReadArrayElem() 53628 z.DecStructFieldNotFound(yyj18-1, "") 53629 } 53630 r.ReadArrayEnd() 53631 } 53632 53633 func (x *DeploymentPromoteRequest) CodecEncodeSelf(e *codec1978.Encoder) { 53634 var h codecSelfer100 53635 z, r := codec1978.GenHelperEncoder(e) 53636 _, _, _ = h, z, r 53637 if x == nil { 53638 r.EncodeNil() 53639 } else { 53640 if false { 53641 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 53642 z.EncExtension(x, yyxt1) 53643 } else { 53644 yysep2 := !z.EncBinary() 53645 yy2arr2 := z.EncBasicHandle().StructToArray 53646 _, _ = yysep2, yy2arr2 53647 const yyr2 bool = false // struct tag has 'toArray' 53648 if yyr2 || yy2arr2 { 53649 r.WriteArrayStart(7) 53650 } else { 53651 r.WriteMapStart(7) 53652 } 53653 if yyr2 || yy2arr2 { 53654 r.WriteArrayElem() 53655 if false { 53656 } else { 53657 if z.EncBasicHandle().StringToRaw { 53658 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 53659 } else { 53660 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 53661 } 53662 } 53663 } else { 53664 r.WriteMapElemKey() 53665 if z.IsJSONHandle() { 53666 z.WriteStr("\"DeploymentID\"") 53667 } else { 53668 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 53669 } 53670 r.WriteMapElemValue() 53671 if false { 53672 } else { 53673 if z.EncBasicHandle().StringToRaw { 53674 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 53675 } else { 53676 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 53677 } 53678 } 53679 } 53680 if yyr2 || yy2arr2 { 53681 r.WriteArrayElem() 53682 if false { 53683 } else { 53684 r.EncodeBool(bool(x.All)) 53685 } 53686 } else { 53687 r.WriteMapElemKey() 53688 if z.IsJSONHandle() { 53689 z.WriteStr("\"All\"") 53690 } else { 53691 r.EncodeStringEnc(codecSelferCcUTF8100, `All`) 53692 } 53693 r.WriteMapElemValue() 53694 if false { 53695 } else { 53696 r.EncodeBool(bool(x.All)) 53697 } 53698 } 53699 if yyr2 || yy2arr2 { 53700 r.WriteArrayElem() 53701 if x.Groups == nil { 53702 r.EncodeNil() 53703 } else { 53704 if false { 53705 } else { 53706 z.F.EncSliceStringV(x.Groups, e) 53707 } 53708 } 53709 } else { 53710 r.WriteMapElemKey() 53711 if z.IsJSONHandle() { 53712 z.WriteStr("\"Groups\"") 53713 } else { 53714 r.EncodeStringEnc(codecSelferCcUTF8100, `Groups`) 53715 } 53716 r.WriteMapElemValue() 53717 if x.Groups == nil { 53718 r.EncodeNil() 53719 } else { 53720 if false { 53721 } else { 53722 z.F.EncSliceStringV(x.Groups, e) 53723 } 53724 } 53725 } 53726 if yyr2 || yy2arr2 { 53727 r.WriteArrayElem() 53728 if false { 53729 } else { 53730 if z.EncBasicHandle().StringToRaw { 53731 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 53732 } else { 53733 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 53734 } 53735 } 53736 } else { 53737 r.WriteMapElemKey() 53738 if z.IsJSONHandle() { 53739 z.WriteStr("\"Region\"") 53740 } else { 53741 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 53742 } 53743 r.WriteMapElemValue() 53744 if false { 53745 } else { 53746 if z.EncBasicHandle().StringToRaw { 53747 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 53748 } else { 53749 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 53750 } 53751 } 53752 } 53753 if yyr2 || yy2arr2 { 53754 r.WriteArrayElem() 53755 if false { 53756 } else { 53757 if z.EncBasicHandle().StringToRaw { 53758 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 53759 } else { 53760 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 53761 } 53762 } 53763 } else { 53764 r.WriteMapElemKey() 53765 if z.IsJSONHandle() { 53766 z.WriteStr("\"Namespace\"") 53767 } else { 53768 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 53769 } 53770 r.WriteMapElemValue() 53771 if false { 53772 } else { 53773 if z.EncBasicHandle().StringToRaw { 53774 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 53775 } else { 53776 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 53777 } 53778 } 53779 } 53780 if yyr2 || yy2arr2 { 53781 r.WriteArrayElem() 53782 if false { 53783 } else { 53784 if z.EncBasicHandle().StringToRaw { 53785 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 53786 } else { 53787 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 53788 } 53789 } 53790 } else { 53791 r.WriteMapElemKey() 53792 if z.IsJSONHandle() { 53793 z.WriteStr("\"AuthToken\"") 53794 } else { 53795 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 53796 } 53797 r.WriteMapElemValue() 53798 if false { 53799 } else { 53800 if z.EncBasicHandle().StringToRaw { 53801 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 53802 } else { 53803 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 53804 } 53805 } 53806 } 53807 if yyr2 || yy2arr2 { 53808 r.WriteArrayElem() 53809 if false { 53810 } else { 53811 r.EncodeBool(bool(x.Forwarded)) 53812 } 53813 } else { 53814 r.WriteMapElemKey() 53815 if z.IsJSONHandle() { 53816 z.WriteStr("\"Forwarded\"") 53817 } else { 53818 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 53819 } 53820 r.WriteMapElemValue() 53821 if false { 53822 } else { 53823 r.EncodeBool(bool(x.Forwarded)) 53824 } 53825 } 53826 if yyr2 || yy2arr2 { 53827 r.WriteArrayEnd() 53828 } else { 53829 r.WriteMapEnd() 53830 } 53831 } 53832 } 53833 } 53834 53835 func (x *DeploymentPromoteRequest) CodecDecodeSelf(d *codec1978.Decoder) { 53836 var h codecSelfer100 53837 z, r := codec1978.GenHelperDecoder(d) 53838 _, _, _ = h, z, r 53839 if false { 53840 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 53841 z.DecExtension(x, yyxt1) 53842 } else { 53843 yyct2 := r.ContainerType() 53844 if yyct2 == codecSelferValueTypeMap100 { 53845 yyl2 := r.ReadMapStart() 53846 if yyl2 == 0 { 53847 r.ReadMapEnd() 53848 } else { 53849 x.codecDecodeSelfFromMap(yyl2, d) 53850 } 53851 } else if yyct2 == codecSelferValueTypeArray100 { 53852 yyl2 := r.ReadArrayStart() 53853 if yyl2 == 0 { 53854 r.ReadArrayEnd() 53855 } else { 53856 x.codecDecodeSelfFromArray(yyl2, d) 53857 } 53858 } else { 53859 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 53860 } 53861 } 53862 } 53863 53864 func (x *DeploymentPromoteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 53865 var h codecSelfer100 53866 z, r := codec1978.GenHelperDecoder(d) 53867 _, _, _ = h, z, r 53868 var yyhl3 bool = l >= 0 53869 for yyj3 := 0; ; yyj3++ { 53870 if yyhl3 { 53871 if yyj3 >= l { 53872 break 53873 } 53874 } else { 53875 if r.CheckBreak() { 53876 break 53877 } 53878 } 53879 r.ReadMapElemKey() 53880 yys3 := z.StringView(r.DecodeStringAsBytes()) 53881 r.ReadMapElemValue() 53882 switch yys3 { 53883 case "DeploymentID": 53884 if r.TryDecodeAsNil() { 53885 x.DeploymentID = "" 53886 } else { 53887 x.DeploymentID = (string)(r.DecodeString()) 53888 } 53889 case "All": 53890 if r.TryDecodeAsNil() { 53891 x.All = false 53892 } else { 53893 x.All = (bool)(r.DecodeBool()) 53894 } 53895 case "Groups": 53896 if r.TryDecodeAsNil() { 53897 x.Groups = nil 53898 } else { 53899 if false { 53900 } else { 53901 z.F.DecSliceStringX(&x.Groups, d) 53902 } 53903 } 53904 case "Region": 53905 if r.TryDecodeAsNil() { 53906 x.WriteRequest.Region = "" 53907 } else { 53908 x.Region = (string)(r.DecodeString()) 53909 } 53910 case "Namespace": 53911 if r.TryDecodeAsNil() { 53912 x.WriteRequest.Namespace = "" 53913 } else { 53914 x.Namespace = (string)(r.DecodeString()) 53915 } 53916 case "AuthToken": 53917 if r.TryDecodeAsNil() { 53918 x.WriteRequest.AuthToken = "" 53919 } else { 53920 x.AuthToken = (string)(r.DecodeString()) 53921 } 53922 case "Forwarded": 53923 if r.TryDecodeAsNil() { 53924 x.WriteRequest.InternalRpcInfo.Forwarded = false 53925 } else { 53926 x.Forwarded = (bool)(r.DecodeBool()) 53927 } 53928 default: 53929 z.DecStructFieldNotFound(-1, yys3) 53930 } // end switch yys3 53931 } // end for yyj3 53932 r.ReadMapEnd() 53933 } 53934 53935 func (x *DeploymentPromoteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 53936 var h codecSelfer100 53937 z, r := codec1978.GenHelperDecoder(d) 53938 _, _, _ = h, z, r 53939 var yyj12 int 53940 var yyb12 bool 53941 var yyhl12 bool = l >= 0 53942 yyj12++ 53943 if yyhl12 { 53944 yyb12 = yyj12 > l 53945 } else { 53946 yyb12 = r.CheckBreak() 53947 } 53948 if yyb12 { 53949 r.ReadArrayEnd() 53950 return 53951 } 53952 r.ReadArrayElem() 53953 if r.TryDecodeAsNil() { 53954 x.DeploymentID = "" 53955 } else { 53956 x.DeploymentID = (string)(r.DecodeString()) 53957 } 53958 yyj12++ 53959 if yyhl12 { 53960 yyb12 = yyj12 > l 53961 } else { 53962 yyb12 = r.CheckBreak() 53963 } 53964 if yyb12 { 53965 r.ReadArrayEnd() 53966 return 53967 } 53968 r.ReadArrayElem() 53969 if r.TryDecodeAsNil() { 53970 x.All = false 53971 } else { 53972 x.All = (bool)(r.DecodeBool()) 53973 } 53974 yyj12++ 53975 if yyhl12 { 53976 yyb12 = yyj12 > l 53977 } else { 53978 yyb12 = r.CheckBreak() 53979 } 53980 if yyb12 { 53981 r.ReadArrayEnd() 53982 return 53983 } 53984 r.ReadArrayElem() 53985 if r.TryDecodeAsNil() { 53986 x.Groups = nil 53987 } else { 53988 if false { 53989 } else { 53990 z.F.DecSliceStringX(&x.Groups, d) 53991 } 53992 } 53993 yyj12++ 53994 if yyhl12 { 53995 yyb12 = yyj12 > l 53996 } else { 53997 yyb12 = r.CheckBreak() 53998 } 53999 if yyb12 { 54000 r.ReadArrayEnd() 54001 return 54002 } 54003 r.ReadArrayElem() 54004 if r.TryDecodeAsNil() { 54005 x.WriteRequest.Region = "" 54006 } else { 54007 x.Region = (string)(r.DecodeString()) 54008 } 54009 yyj12++ 54010 if yyhl12 { 54011 yyb12 = yyj12 > l 54012 } else { 54013 yyb12 = r.CheckBreak() 54014 } 54015 if yyb12 { 54016 r.ReadArrayEnd() 54017 return 54018 } 54019 r.ReadArrayElem() 54020 if r.TryDecodeAsNil() { 54021 x.WriteRequest.Namespace = "" 54022 } else { 54023 x.Namespace = (string)(r.DecodeString()) 54024 } 54025 yyj12++ 54026 if yyhl12 { 54027 yyb12 = yyj12 > l 54028 } else { 54029 yyb12 = r.CheckBreak() 54030 } 54031 if yyb12 { 54032 r.ReadArrayEnd() 54033 return 54034 } 54035 r.ReadArrayElem() 54036 if r.TryDecodeAsNil() { 54037 x.WriteRequest.AuthToken = "" 54038 } else { 54039 x.AuthToken = (string)(r.DecodeString()) 54040 } 54041 yyj12++ 54042 if yyhl12 { 54043 yyb12 = yyj12 > l 54044 } else { 54045 yyb12 = r.CheckBreak() 54046 } 54047 if yyb12 { 54048 r.ReadArrayEnd() 54049 return 54050 } 54051 r.ReadArrayElem() 54052 if r.TryDecodeAsNil() { 54053 x.WriteRequest.InternalRpcInfo.Forwarded = false 54054 } else { 54055 x.Forwarded = (bool)(r.DecodeBool()) 54056 } 54057 for { 54058 yyj12++ 54059 if yyhl12 { 54060 yyb12 = yyj12 > l 54061 } else { 54062 yyb12 = r.CheckBreak() 54063 } 54064 if yyb12 { 54065 break 54066 } 54067 r.ReadArrayElem() 54068 z.DecStructFieldNotFound(yyj12-1, "") 54069 } 54070 r.ReadArrayEnd() 54071 } 54072 54073 func (x *ApplyDeploymentPromoteRequest) CodecEncodeSelf(e *codec1978.Encoder) { 54074 var h codecSelfer100 54075 z, r := codec1978.GenHelperEncoder(e) 54076 _, _, _ = h, z, r 54077 if x == nil { 54078 r.EncodeNil() 54079 } else { 54080 if false { 54081 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 54082 z.EncExtension(x, yyxt1) 54083 } else { 54084 yysep2 := !z.EncBinary() 54085 yy2arr2 := z.EncBasicHandle().StructToArray 54086 _, _ = yysep2, yy2arr2 54087 const yyr2 bool = false // struct tag has 'toArray' 54088 if yyr2 || yy2arr2 { 54089 r.WriteArrayStart(8) 54090 } else { 54091 r.WriteMapStart(8) 54092 } 54093 if yyr2 || yy2arr2 { 54094 r.WriteArrayElem() 54095 if false { 54096 } else { 54097 if z.EncBasicHandle().StringToRaw { 54098 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 54099 } else { 54100 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 54101 } 54102 } 54103 } else { 54104 r.WriteMapElemKey() 54105 if z.IsJSONHandle() { 54106 z.WriteStr("\"DeploymentID\"") 54107 } else { 54108 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 54109 } 54110 r.WriteMapElemValue() 54111 if false { 54112 } else { 54113 if z.EncBasicHandle().StringToRaw { 54114 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 54115 } else { 54116 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 54117 } 54118 } 54119 } 54120 if yyr2 || yy2arr2 { 54121 r.WriteArrayElem() 54122 if false { 54123 } else { 54124 r.EncodeBool(bool(x.All)) 54125 } 54126 } else { 54127 r.WriteMapElemKey() 54128 if z.IsJSONHandle() { 54129 z.WriteStr("\"All\"") 54130 } else { 54131 r.EncodeStringEnc(codecSelferCcUTF8100, `All`) 54132 } 54133 r.WriteMapElemValue() 54134 if false { 54135 } else { 54136 r.EncodeBool(bool(x.All)) 54137 } 54138 } 54139 if yyr2 || yy2arr2 { 54140 r.WriteArrayElem() 54141 if x.Groups == nil { 54142 r.EncodeNil() 54143 } else { 54144 if false { 54145 } else { 54146 z.F.EncSliceStringV(x.Groups, e) 54147 } 54148 } 54149 } else { 54150 r.WriteMapElemKey() 54151 if z.IsJSONHandle() { 54152 z.WriteStr("\"Groups\"") 54153 } else { 54154 r.EncodeStringEnc(codecSelferCcUTF8100, `Groups`) 54155 } 54156 r.WriteMapElemValue() 54157 if x.Groups == nil { 54158 r.EncodeNil() 54159 } else { 54160 if false { 54161 } else { 54162 z.F.EncSliceStringV(x.Groups, e) 54163 } 54164 } 54165 } 54166 if yyr2 || yy2arr2 { 54167 r.WriteArrayElem() 54168 if false { 54169 } else { 54170 if z.EncBasicHandle().StringToRaw { 54171 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 54172 } else { 54173 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 54174 } 54175 } 54176 } else { 54177 r.WriteMapElemKey() 54178 if z.IsJSONHandle() { 54179 z.WriteStr("\"Region\"") 54180 } else { 54181 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 54182 } 54183 r.WriteMapElemValue() 54184 if false { 54185 } else { 54186 if z.EncBasicHandle().StringToRaw { 54187 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 54188 } else { 54189 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 54190 } 54191 } 54192 } 54193 if yyr2 || yy2arr2 { 54194 r.WriteArrayElem() 54195 if false { 54196 } else { 54197 if z.EncBasicHandle().StringToRaw { 54198 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 54199 } else { 54200 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 54201 } 54202 } 54203 } else { 54204 r.WriteMapElemKey() 54205 if z.IsJSONHandle() { 54206 z.WriteStr("\"Namespace\"") 54207 } else { 54208 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 54209 } 54210 r.WriteMapElemValue() 54211 if false { 54212 } else { 54213 if z.EncBasicHandle().StringToRaw { 54214 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 54215 } else { 54216 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 54217 } 54218 } 54219 } 54220 if yyr2 || yy2arr2 { 54221 r.WriteArrayElem() 54222 if false { 54223 } else { 54224 if z.EncBasicHandle().StringToRaw { 54225 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 54226 } else { 54227 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 54228 } 54229 } 54230 } else { 54231 r.WriteMapElemKey() 54232 if z.IsJSONHandle() { 54233 z.WriteStr("\"AuthToken\"") 54234 } else { 54235 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 54236 } 54237 r.WriteMapElemValue() 54238 if false { 54239 } else { 54240 if z.EncBasicHandle().StringToRaw { 54241 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 54242 } else { 54243 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 54244 } 54245 } 54246 } 54247 if yyr2 || yy2arr2 { 54248 r.WriteArrayElem() 54249 if false { 54250 } else { 54251 r.EncodeBool(bool(x.Forwarded)) 54252 } 54253 } else { 54254 r.WriteMapElemKey() 54255 if z.IsJSONHandle() { 54256 z.WriteStr("\"Forwarded\"") 54257 } else { 54258 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 54259 } 54260 r.WriteMapElemValue() 54261 if false { 54262 } else { 54263 r.EncodeBool(bool(x.Forwarded)) 54264 } 54265 } 54266 var yyn24 bool 54267 if x.Eval == nil { 54268 yyn24 = true 54269 goto LABEL24 54270 } 54271 LABEL24: 54272 if yyr2 || yy2arr2 { 54273 if yyn24 { 54274 r.WriteArrayElem() 54275 r.EncodeNil() 54276 } else { 54277 r.WriteArrayElem() 54278 if x.Eval == nil { 54279 r.EncodeNil() 54280 } else { 54281 x.Eval.CodecEncodeSelf(e) 54282 } 54283 } 54284 } else { 54285 r.WriteMapElemKey() 54286 if z.IsJSONHandle() { 54287 z.WriteStr("\"Eval\"") 54288 } else { 54289 r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) 54290 } 54291 r.WriteMapElemValue() 54292 if yyn24 { 54293 r.EncodeNil() 54294 } else { 54295 if x.Eval == nil { 54296 r.EncodeNil() 54297 } else { 54298 x.Eval.CodecEncodeSelf(e) 54299 } 54300 } 54301 } 54302 if yyr2 || yy2arr2 { 54303 r.WriteArrayEnd() 54304 } else { 54305 r.WriteMapEnd() 54306 } 54307 } 54308 } 54309 } 54310 54311 func (x *ApplyDeploymentPromoteRequest) CodecDecodeSelf(d *codec1978.Decoder) { 54312 var h codecSelfer100 54313 z, r := codec1978.GenHelperDecoder(d) 54314 _, _, _ = h, z, r 54315 if false { 54316 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 54317 z.DecExtension(x, yyxt1) 54318 } else { 54319 yyct2 := r.ContainerType() 54320 if yyct2 == codecSelferValueTypeMap100 { 54321 yyl2 := r.ReadMapStart() 54322 if yyl2 == 0 { 54323 r.ReadMapEnd() 54324 } else { 54325 x.codecDecodeSelfFromMap(yyl2, d) 54326 } 54327 } else if yyct2 == codecSelferValueTypeArray100 { 54328 yyl2 := r.ReadArrayStart() 54329 if yyl2 == 0 { 54330 r.ReadArrayEnd() 54331 } else { 54332 x.codecDecodeSelfFromArray(yyl2, d) 54333 } 54334 } else { 54335 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 54336 } 54337 } 54338 } 54339 54340 func (x *ApplyDeploymentPromoteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 54341 var h codecSelfer100 54342 z, r := codec1978.GenHelperDecoder(d) 54343 _, _, _ = h, z, r 54344 var yyhl3 bool = l >= 0 54345 for yyj3 := 0; ; yyj3++ { 54346 if yyhl3 { 54347 if yyj3 >= l { 54348 break 54349 } 54350 } else { 54351 if r.CheckBreak() { 54352 break 54353 } 54354 } 54355 r.ReadMapElemKey() 54356 yys3 := z.StringView(r.DecodeStringAsBytes()) 54357 r.ReadMapElemValue() 54358 switch yys3 { 54359 case "DeploymentID": 54360 if r.TryDecodeAsNil() { 54361 x.DeploymentPromoteRequest.DeploymentID = "" 54362 } else { 54363 x.DeploymentID = (string)(r.DecodeString()) 54364 } 54365 case "All": 54366 if r.TryDecodeAsNil() { 54367 x.DeploymentPromoteRequest.All = false 54368 } else { 54369 x.All = (bool)(r.DecodeBool()) 54370 } 54371 case "Groups": 54372 if r.TryDecodeAsNil() { 54373 x.DeploymentPromoteRequest.Groups = nil 54374 } else { 54375 if false { 54376 } else { 54377 z.F.DecSliceStringX(&x.Groups, d) 54378 } 54379 } 54380 case "Region": 54381 if r.TryDecodeAsNil() { 54382 x.DeploymentPromoteRequest.WriteRequest.Region = "" 54383 } else { 54384 x.Region = (string)(r.DecodeString()) 54385 } 54386 case "Namespace": 54387 if r.TryDecodeAsNil() { 54388 x.DeploymentPromoteRequest.WriteRequest.Namespace = "" 54389 } else { 54390 x.Namespace = (string)(r.DecodeString()) 54391 } 54392 case "AuthToken": 54393 if r.TryDecodeAsNil() { 54394 x.DeploymentPromoteRequest.WriteRequest.AuthToken = "" 54395 } else { 54396 x.AuthToken = (string)(r.DecodeString()) 54397 } 54398 case "Forwarded": 54399 if r.TryDecodeAsNil() { 54400 x.DeploymentPromoteRequest.WriteRequest.InternalRpcInfo.Forwarded = false 54401 } else { 54402 x.Forwarded = (bool)(r.DecodeBool()) 54403 } 54404 case "Eval": 54405 if r.TryDecodeAsNil() { 54406 if true && x.Eval != nil { 54407 x.Eval = nil 54408 } 54409 } else { 54410 if x.Eval == nil { 54411 x.Eval = new(Evaluation) 54412 } 54413 54414 x.Eval.CodecDecodeSelf(d) 54415 } 54416 default: 54417 z.DecStructFieldNotFound(-1, yys3) 54418 } // end switch yys3 54419 } // end for yyj3 54420 r.ReadMapEnd() 54421 } 54422 54423 func (x *ApplyDeploymentPromoteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 54424 var h codecSelfer100 54425 z, r := codec1978.GenHelperDecoder(d) 54426 _, _, _ = h, z, r 54427 var yyj13 int 54428 var yyb13 bool 54429 var yyhl13 bool = l >= 0 54430 yyj13++ 54431 if yyhl13 { 54432 yyb13 = yyj13 > l 54433 } else { 54434 yyb13 = r.CheckBreak() 54435 } 54436 if yyb13 { 54437 r.ReadArrayEnd() 54438 return 54439 } 54440 r.ReadArrayElem() 54441 if r.TryDecodeAsNil() { 54442 x.DeploymentPromoteRequest.DeploymentID = "" 54443 } else { 54444 x.DeploymentID = (string)(r.DecodeString()) 54445 } 54446 yyj13++ 54447 if yyhl13 { 54448 yyb13 = yyj13 > l 54449 } else { 54450 yyb13 = r.CheckBreak() 54451 } 54452 if yyb13 { 54453 r.ReadArrayEnd() 54454 return 54455 } 54456 r.ReadArrayElem() 54457 if r.TryDecodeAsNil() { 54458 x.DeploymentPromoteRequest.All = false 54459 } else { 54460 x.All = (bool)(r.DecodeBool()) 54461 } 54462 yyj13++ 54463 if yyhl13 { 54464 yyb13 = yyj13 > l 54465 } else { 54466 yyb13 = r.CheckBreak() 54467 } 54468 if yyb13 { 54469 r.ReadArrayEnd() 54470 return 54471 } 54472 r.ReadArrayElem() 54473 if r.TryDecodeAsNil() { 54474 x.DeploymentPromoteRequest.Groups = nil 54475 } else { 54476 if false { 54477 } else { 54478 z.F.DecSliceStringX(&x.Groups, d) 54479 } 54480 } 54481 yyj13++ 54482 if yyhl13 { 54483 yyb13 = yyj13 > l 54484 } else { 54485 yyb13 = r.CheckBreak() 54486 } 54487 if yyb13 { 54488 r.ReadArrayEnd() 54489 return 54490 } 54491 r.ReadArrayElem() 54492 if r.TryDecodeAsNil() { 54493 x.DeploymentPromoteRequest.WriteRequest.Region = "" 54494 } else { 54495 x.Region = (string)(r.DecodeString()) 54496 } 54497 yyj13++ 54498 if yyhl13 { 54499 yyb13 = yyj13 > l 54500 } else { 54501 yyb13 = r.CheckBreak() 54502 } 54503 if yyb13 { 54504 r.ReadArrayEnd() 54505 return 54506 } 54507 r.ReadArrayElem() 54508 if r.TryDecodeAsNil() { 54509 x.DeploymentPromoteRequest.WriteRequest.Namespace = "" 54510 } else { 54511 x.Namespace = (string)(r.DecodeString()) 54512 } 54513 yyj13++ 54514 if yyhl13 { 54515 yyb13 = yyj13 > l 54516 } else { 54517 yyb13 = r.CheckBreak() 54518 } 54519 if yyb13 { 54520 r.ReadArrayEnd() 54521 return 54522 } 54523 r.ReadArrayElem() 54524 if r.TryDecodeAsNil() { 54525 x.DeploymentPromoteRequest.WriteRequest.AuthToken = "" 54526 } else { 54527 x.AuthToken = (string)(r.DecodeString()) 54528 } 54529 yyj13++ 54530 if yyhl13 { 54531 yyb13 = yyj13 > l 54532 } else { 54533 yyb13 = r.CheckBreak() 54534 } 54535 if yyb13 { 54536 r.ReadArrayEnd() 54537 return 54538 } 54539 r.ReadArrayElem() 54540 if r.TryDecodeAsNil() { 54541 x.DeploymentPromoteRequest.WriteRequest.InternalRpcInfo.Forwarded = false 54542 } else { 54543 x.Forwarded = (bool)(r.DecodeBool()) 54544 } 54545 yyj13++ 54546 if yyhl13 { 54547 yyb13 = yyj13 > l 54548 } else { 54549 yyb13 = r.CheckBreak() 54550 } 54551 if yyb13 { 54552 r.ReadArrayEnd() 54553 return 54554 } 54555 r.ReadArrayElem() 54556 if r.TryDecodeAsNil() { 54557 if true && x.Eval != nil { 54558 x.Eval = nil 54559 } 54560 } else { 54561 if x.Eval == nil { 54562 x.Eval = new(Evaluation) 54563 } 54564 54565 x.Eval.CodecDecodeSelf(d) 54566 } 54567 for { 54568 yyj13++ 54569 if yyhl13 { 54570 yyb13 = yyj13 > l 54571 } else { 54572 yyb13 = r.CheckBreak() 54573 } 54574 if yyb13 { 54575 break 54576 } 54577 r.ReadArrayElem() 54578 z.DecStructFieldNotFound(yyj13-1, "") 54579 } 54580 r.ReadArrayEnd() 54581 } 54582 54583 func (x *DeploymentPauseRequest) CodecEncodeSelf(e *codec1978.Encoder) { 54584 var h codecSelfer100 54585 z, r := codec1978.GenHelperEncoder(e) 54586 _, _, _ = h, z, r 54587 if x == nil { 54588 r.EncodeNil() 54589 } else { 54590 if false { 54591 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 54592 z.EncExtension(x, yyxt1) 54593 } else { 54594 yysep2 := !z.EncBinary() 54595 yy2arr2 := z.EncBasicHandle().StructToArray 54596 _, _ = yysep2, yy2arr2 54597 const yyr2 bool = false // struct tag has 'toArray' 54598 if yyr2 || yy2arr2 { 54599 r.WriteArrayStart(6) 54600 } else { 54601 r.WriteMapStart(6) 54602 } 54603 if yyr2 || yy2arr2 { 54604 r.WriteArrayElem() 54605 if false { 54606 } else { 54607 if z.EncBasicHandle().StringToRaw { 54608 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 54609 } else { 54610 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 54611 } 54612 } 54613 } else { 54614 r.WriteMapElemKey() 54615 if z.IsJSONHandle() { 54616 z.WriteStr("\"DeploymentID\"") 54617 } else { 54618 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 54619 } 54620 r.WriteMapElemValue() 54621 if false { 54622 } else { 54623 if z.EncBasicHandle().StringToRaw { 54624 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 54625 } else { 54626 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 54627 } 54628 } 54629 } 54630 if yyr2 || yy2arr2 { 54631 r.WriteArrayElem() 54632 if false { 54633 } else { 54634 r.EncodeBool(bool(x.Pause)) 54635 } 54636 } else { 54637 r.WriteMapElemKey() 54638 if z.IsJSONHandle() { 54639 z.WriteStr("\"Pause\"") 54640 } else { 54641 r.EncodeStringEnc(codecSelferCcUTF8100, `Pause`) 54642 } 54643 r.WriteMapElemValue() 54644 if false { 54645 } else { 54646 r.EncodeBool(bool(x.Pause)) 54647 } 54648 } 54649 if yyr2 || yy2arr2 { 54650 r.WriteArrayElem() 54651 if false { 54652 } else { 54653 if z.EncBasicHandle().StringToRaw { 54654 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 54655 } else { 54656 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 54657 } 54658 } 54659 } else { 54660 r.WriteMapElemKey() 54661 if z.IsJSONHandle() { 54662 z.WriteStr("\"Region\"") 54663 } else { 54664 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 54665 } 54666 r.WriteMapElemValue() 54667 if false { 54668 } else { 54669 if z.EncBasicHandle().StringToRaw { 54670 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 54671 } else { 54672 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 54673 } 54674 } 54675 } 54676 if yyr2 || yy2arr2 { 54677 r.WriteArrayElem() 54678 if false { 54679 } else { 54680 if z.EncBasicHandle().StringToRaw { 54681 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 54682 } else { 54683 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 54684 } 54685 } 54686 } else { 54687 r.WriteMapElemKey() 54688 if z.IsJSONHandle() { 54689 z.WriteStr("\"Namespace\"") 54690 } else { 54691 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 54692 } 54693 r.WriteMapElemValue() 54694 if false { 54695 } else { 54696 if z.EncBasicHandle().StringToRaw { 54697 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 54698 } else { 54699 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 54700 } 54701 } 54702 } 54703 if yyr2 || yy2arr2 { 54704 r.WriteArrayElem() 54705 if false { 54706 } else { 54707 if z.EncBasicHandle().StringToRaw { 54708 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 54709 } else { 54710 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 54711 } 54712 } 54713 } else { 54714 r.WriteMapElemKey() 54715 if z.IsJSONHandle() { 54716 z.WriteStr("\"AuthToken\"") 54717 } else { 54718 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 54719 } 54720 r.WriteMapElemValue() 54721 if false { 54722 } else { 54723 if z.EncBasicHandle().StringToRaw { 54724 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 54725 } else { 54726 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 54727 } 54728 } 54729 } 54730 if yyr2 || yy2arr2 { 54731 r.WriteArrayElem() 54732 if false { 54733 } else { 54734 r.EncodeBool(bool(x.Forwarded)) 54735 } 54736 } else { 54737 r.WriteMapElemKey() 54738 if z.IsJSONHandle() { 54739 z.WriteStr("\"Forwarded\"") 54740 } else { 54741 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 54742 } 54743 r.WriteMapElemValue() 54744 if false { 54745 } else { 54746 r.EncodeBool(bool(x.Forwarded)) 54747 } 54748 } 54749 if yyr2 || yy2arr2 { 54750 r.WriteArrayEnd() 54751 } else { 54752 r.WriteMapEnd() 54753 } 54754 } 54755 } 54756 } 54757 54758 func (x *DeploymentPauseRequest) CodecDecodeSelf(d *codec1978.Decoder) { 54759 var h codecSelfer100 54760 z, r := codec1978.GenHelperDecoder(d) 54761 _, _, _ = h, z, r 54762 if false { 54763 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 54764 z.DecExtension(x, yyxt1) 54765 } else { 54766 yyct2 := r.ContainerType() 54767 if yyct2 == codecSelferValueTypeMap100 { 54768 yyl2 := r.ReadMapStart() 54769 if yyl2 == 0 { 54770 r.ReadMapEnd() 54771 } else { 54772 x.codecDecodeSelfFromMap(yyl2, d) 54773 } 54774 } else if yyct2 == codecSelferValueTypeArray100 { 54775 yyl2 := r.ReadArrayStart() 54776 if yyl2 == 0 { 54777 r.ReadArrayEnd() 54778 } else { 54779 x.codecDecodeSelfFromArray(yyl2, d) 54780 } 54781 } else { 54782 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 54783 } 54784 } 54785 } 54786 54787 func (x *DeploymentPauseRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 54788 var h codecSelfer100 54789 z, r := codec1978.GenHelperDecoder(d) 54790 _, _, _ = h, z, r 54791 var yyhl3 bool = l >= 0 54792 for yyj3 := 0; ; yyj3++ { 54793 if yyhl3 { 54794 if yyj3 >= l { 54795 break 54796 } 54797 } else { 54798 if r.CheckBreak() { 54799 break 54800 } 54801 } 54802 r.ReadMapElemKey() 54803 yys3 := z.StringView(r.DecodeStringAsBytes()) 54804 r.ReadMapElemValue() 54805 switch yys3 { 54806 case "DeploymentID": 54807 if r.TryDecodeAsNil() { 54808 x.DeploymentID = "" 54809 } else { 54810 x.DeploymentID = (string)(r.DecodeString()) 54811 } 54812 case "Pause": 54813 if r.TryDecodeAsNil() { 54814 x.Pause = false 54815 } else { 54816 x.Pause = (bool)(r.DecodeBool()) 54817 } 54818 case "Region": 54819 if r.TryDecodeAsNil() { 54820 x.WriteRequest.Region = "" 54821 } else { 54822 x.Region = (string)(r.DecodeString()) 54823 } 54824 case "Namespace": 54825 if r.TryDecodeAsNil() { 54826 x.WriteRequest.Namespace = "" 54827 } else { 54828 x.Namespace = (string)(r.DecodeString()) 54829 } 54830 case "AuthToken": 54831 if r.TryDecodeAsNil() { 54832 x.WriteRequest.AuthToken = "" 54833 } else { 54834 x.AuthToken = (string)(r.DecodeString()) 54835 } 54836 case "Forwarded": 54837 if r.TryDecodeAsNil() { 54838 x.WriteRequest.InternalRpcInfo.Forwarded = false 54839 } else { 54840 x.Forwarded = (bool)(r.DecodeBool()) 54841 } 54842 default: 54843 z.DecStructFieldNotFound(-1, yys3) 54844 } // end switch yys3 54845 } // end for yyj3 54846 r.ReadMapEnd() 54847 } 54848 54849 func (x *DeploymentPauseRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 54850 var h codecSelfer100 54851 z, r := codec1978.GenHelperDecoder(d) 54852 _, _, _ = h, z, r 54853 var yyj10 int 54854 var yyb10 bool 54855 var yyhl10 bool = l >= 0 54856 yyj10++ 54857 if yyhl10 { 54858 yyb10 = yyj10 > l 54859 } else { 54860 yyb10 = r.CheckBreak() 54861 } 54862 if yyb10 { 54863 r.ReadArrayEnd() 54864 return 54865 } 54866 r.ReadArrayElem() 54867 if r.TryDecodeAsNil() { 54868 x.DeploymentID = "" 54869 } else { 54870 x.DeploymentID = (string)(r.DecodeString()) 54871 } 54872 yyj10++ 54873 if yyhl10 { 54874 yyb10 = yyj10 > l 54875 } else { 54876 yyb10 = r.CheckBreak() 54877 } 54878 if yyb10 { 54879 r.ReadArrayEnd() 54880 return 54881 } 54882 r.ReadArrayElem() 54883 if r.TryDecodeAsNil() { 54884 x.Pause = false 54885 } else { 54886 x.Pause = (bool)(r.DecodeBool()) 54887 } 54888 yyj10++ 54889 if yyhl10 { 54890 yyb10 = yyj10 > l 54891 } else { 54892 yyb10 = r.CheckBreak() 54893 } 54894 if yyb10 { 54895 r.ReadArrayEnd() 54896 return 54897 } 54898 r.ReadArrayElem() 54899 if r.TryDecodeAsNil() { 54900 x.WriteRequest.Region = "" 54901 } else { 54902 x.Region = (string)(r.DecodeString()) 54903 } 54904 yyj10++ 54905 if yyhl10 { 54906 yyb10 = yyj10 > l 54907 } else { 54908 yyb10 = r.CheckBreak() 54909 } 54910 if yyb10 { 54911 r.ReadArrayEnd() 54912 return 54913 } 54914 r.ReadArrayElem() 54915 if r.TryDecodeAsNil() { 54916 x.WriteRequest.Namespace = "" 54917 } else { 54918 x.Namespace = (string)(r.DecodeString()) 54919 } 54920 yyj10++ 54921 if yyhl10 { 54922 yyb10 = yyj10 > l 54923 } else { 54924 yyb10 = r.CheckBreak() 54925 } 54926 if yyb10 { 54927 r.ReadArrayEnd() 54928 return 54929 } 54930 r.ReadArrayElem() 54931 if r.TryDecodeAsNil() { 54932 x.WriteRequest.AuthToken = "" 54933 } else { 54934 x.AuthToken = (string)(r.DecodeString()) 54935 } 54936 yyj10++ 54937 if yyhl10 { 54938 yyb10 = yyj10 > l 54939 } else { 54940 yyb10 = r.CheckBreak() 54941 } 54942 if yyb10 { 54943 r.ReadArrayEnd() 54944 return 54945 } 54946 r.ReadArrayElem() 54947 if r.TryDecodeAsNil() { 54948 x.WriteRequest.InternalRpcInfo.Forwarded = false 54949 } else { 54950 x.Forwarded = (bool)(r.DecodeBool()) 54951 } 54952 for { 54953 yyj10++ 54954 if yyhl10 { 54955 yyb10 = yyj10 > l 54956 } else { 54957 yyb10 = r.CheckBreak() 54958 } 54959 if yyb10 { 54960 break 54961 } 54962 r.ReadArrayElem() 54963 z.DecStructFieldNotFound(yyj10-1, "") 54964 } 54965 r.ReadArrayEnd() 54966 } 54967 54968 func (x *DeploymentSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { 54969 var h codecSelfer100 54970 z, r := codec1978.GenHelperEncoder(e) 54971 _, _, _ = h, z, r 54972 if x == nil { 54973 r.EncodeNil() 54974 } else { 54975 if false { 54976 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 54977 z.EncExtension(x, yyxt1) 54978 } else { 54979 yysep2 := !z.EncBinary() 54980 yy2arr2 := z.EncBasicHandle().StructToArray 54981 _, _ = yysep2, yy2arr2 54982 const yyr2 bool = false // struct tag has 'toArray' 54983 if yyr2 || yy2arr2 { 54984 r.WriteArrayStart(9) 54985 } else { 54986 r.WriteMapStart(9) 54987 } 54988 if yyr2 || yy2arr2 { 54989 r.WriteArrayElem() 54990 if false { 54991 } else { 54992 if z.EncBasicHandle().StringToRaw { 54993 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 54994 } else { 54995 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 54996 } 54997 } 54998 } else { 54999 r.WriteMapElemKey() 55000 if z.IsJSONHandle() { 55001 z.WriteStr("\"DeploymentID\"") 55002 } else { 55003 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 55004 } 55005 r.WriteMapElemValue() 55006 if false { 55007 } else { 55008 if z.EncBasicHandle().StringToRaw { 55009 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 55010 } else { 55011 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 55012 } 55013 } 55014 } 55015 if yyr2 || yy2arr2 { 55016 r.WriteArrayElem() 55017 if false { 55018 } else { 55019 if z.EncBasicHandle().StringToRaw { 55020 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 55021 } else { 55022 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 55023 } 55024 } 55025 } else { 55026 r.WriteMapElemKey() 55027 if z.IsJSONHandle() { 55028 z.WriteStr("\"Region\"") 55029 } else { 55030 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 55031 } 55032 r.WriteMapElemValue() 55033 if false { 55034 } else { 55035 if z.EncBasicHandle().StringToRaw { 55036 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 55037 } else { 55038 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 55039 } 55040 } 55041 } 55042 if yyr2 || yy2arr2 { 55043 r.WriteArrayElem() 55044 if false { 55045 } else { 55046 if z.EncBasicHandle().StringToRaw { 55047 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 55048 } else { 55049 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 55050 } 55051 } 55052 } else { 55053 r.WriteMapElemKey() 55054 if z.IsJSONHandle() { 55055 z.WriteStr("\"Namespace\"") 55056 } else { 55057 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 55058 } 55059 r.WriteMapElemValue() 55060 if false { 55061 } else { 55062 if z.EncBasicHandle().StringToRaw { 55063 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 55064 } else { 55065 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 55066 } 55067 } 55068 } 55069 if yyr2 || yy2arr2 { 55070 r.WriteArrayElem() 55071 if false { 55072 } else { 55073 r.EncodeUint(uint64(x.MinQueryIndex)) 55074 } 55075 } else { 55076 r.WriteMapElemKey() 55077 if z.IsJSONHandle() { 55078 z.WriteStr("\"MinQueryIndex\"") 55079 } else { 55080 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 55081 } 55082 r.WriteMapElemValue() 55083 if false { 55084 } else { 55085 r.EncodeUint(uint64(x.MinQueryIndex)) 55086 } 55087 } 55088 if yyr2 || yy2arr2 { 55089 r.WriteArrayElem() 55090 if false { 55091 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 55092 z.EncExtension(x.MaxQueryTime, yyxt16) 55093 } else { 55094 r.EncodeInt(int64(x.MaxQueryTime)) 55095 } 55096 } else { 55097 r.WriteMapElemKey() 55098 if z.IsJSONHandle() { 55099 z.WriteStr("\"MaxQueryTime\"") 55100 } else { 55101 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 55102 } 55103 r.WriteMapElemValue() 55104 if false { 55105 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 55106 z.EncExtension(x.MaxQueryTime, yyxt17) 55107 } else { 55108 r.EncodeInt(int64(x.MaxQueryTime)) 55109 } 55110 } 55111 if yyr2 || yy2arr2 { 55112 r.WriteArrayElem() 55113 if false { 55114 } else { 55115 r.EncodeBool(bool(x.AllowStale)) 55116 } 55117 } else { 55118 r.WriteMapElemKey() 55119 if z.IsJSONHandle() { 55120 z.WriteStr("\"AllowStale\"") 55121 } else { 55122 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 55123 } 55124 r.WriteMapElemValue() 55125 if false { 55126 } else { 55127 r.EncodeBool(bool(x.AllowStale)) 55128 } 55129 } 55130 if yyr2 || yy2arr2 { 55131 r.WriteArrayElem() 55132 if false { 55133 } else { 55134 if z.EncBasicHandle().StringToRaw { 55135 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 55136 } else { 55137 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 55138 } 55139 } 55140 } else { 55141 r.WriteMapElemKey() 55142 if z.IsJSONHandle() { 55143 z.WriteStr("\"Prefix\"") 55144 } else { 55145 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 55146 } 55147 r.WriteMapElemValue() 55148 if false { 55149 } else { 55150 if z.EncBasicHandle().StringToRaw { 55151 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 55152 } else { 55153 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 55154 } 55155 } 55156 } 55157 if yyr2 || yy2arr2 { 55158 r.WriteArrayElem() 55159 if false { 55160 } else { 55161 if z.EncBasicHandle().StringToRaw { 55162 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 55163 } else { 55164 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 55165 } 55166 } 55167 } else { 55168 r.WriteMapElemKey() 55169 if z.IsJSONHandle() { 55170 z.WriteStr("\"AuthToken\"") 55171 } else { 55172 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 55173 } 55174 r.WriteMapElemValue() 55175 if false { 55176 } else { 55177 if z.EncBasicHandle().StringToRaw { 55178 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 55179 } else { 55180 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 55181 } 55182 } 55183 } 55184 if yyr2 || yy2arr2 { 55185 r.WriteArrayElem() 55186 if false { 55187 } else { 55188 r.EncodeBool(bool(x.Forwarded)) 55189 } 55190 } else { 55191 r.WriteMapElemKey() 55192 if z.IsJSONHandle() { 55193 z.WriteStr("\"Forwarded\"") 55194 } else { 55195 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 55196 } 55197 r.WriteMapElemValue() 55198 if false { 55199 } else { 55200 r.EncodeBool(bool(x.Forwarded)) 55201 } 55202 } 55203 if yyr2 || yy2arr2 { 55204 r.WriteArrayEnd() 55205 } else { 55206 r.WriteMapEnd() 55207 } 55208 } 55209 } 55210 } 55211 55212 func (x *DeploymentSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { 55213 var h codecSelfer100 55214 z, r := codec1978.GenHelperDecoder(d) 55215 _, _, _ = h, z, r 55216 if false { 55217 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 55218 z.DecExtension(x, yyxt1) 55219 } else { 55220 yyct2 := r.ContainerType() 55221 if yyct2 == codecSelferValueTypeMap100 { 55222 yyl2 := r.ReadMapStart() 55223 if yyl2 == 0 { 55224 r.ReadMapEnd() 55225 } else { 55226 x.codecDecodeSelfFromMap(yyl2, d) 55227 } 55228 } else if yyct2 == codecSelferValueTypeArray100 { 55229 yyl2 := r.ReadArrayStart() 55230 if yyl2 == 0 { 55231 r.ReadArrayEnd() 55232 } else { 55233 x.codecDecodeSelfFromArray(yyl2, d) 55234 } 55235 } else { 55236 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 55237 } 55238 } 55239 } 55240 55241 func (x *DeploymentSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 55242 var h codecSelfer100 55243 z, r := codec1978.GenHelperDecoder(d) 55244 _, _, _ = h, z, r 55245 var yyhl3 bool = l >= 0 55246 for yyj3 := 0; ; yyj3++ { 55247 if yyhl3 { 55248 if yyj3 >= l { 55249 break 55250 } 55251 } else { 55252 if r.CheckBreak() { 55253 break 55254 } 55255 } 55256 r.ReadMapElemKey() 55257 yys3 := z.StringView(r.DecodeStringAsBytes()) 55258 r.ReadMapElemValue() 55259 switch yys3 { 55260 case "DeploymentID": 55261 if r.TryDecodeAsNil() { 55262 x.DeploymentID = "" 55263 } else { 55264 x.DeploymentID = (string)(r.DecodeString()) 55265 } 55266 case "Region": 55267 if r.TryDecodeAsNil() { 55268 x.QueryOptions.Region = "" 55269 } else { 55270 x.Region = (string)(r.DecodeString()) 55271 } 55272 case "Namespace": 55273 if r.TryDecodeAsNil() { 55274 x.QueryOptions.Namespace = "" 55275 } else { 55276 x.Namespace = (string)(r.DecodeString()) 55277 } 55278 case "MinQueryIndex": 55279 if r.TryDecodeAsNil() { 55280 x.QueryOptions.MinQueryIndex = 0 55281 } else { 55282 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 55283 } 55284 case "MaxQueryTime": 55285 if r.TryDecodeAsNil() { 55286 x.QueryOptions.MaxQueryTime = 0 55287 } else { 55288 if false { 55289 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 55290 z.DecExtension(x.MaxQueryTime, yyxt9) 55291 } else { 55292 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 55293 } 55294 } 55295 case "AllowStale": 55296 if r.TryDecodeAsNil() { 55297 x.QueryOptions.AllowStale = false 55298 } else { 55299 x.AllowStale = (bool)(r.DecodeBool()) 55300 } 55301 case "Prefix": 55302 if r.TryDecodeAsNil() { 55303 x.QueryOptions.Prefix = "" 55304 } else { 55305 x.Prefix = (string)(r.DecodeString()) 55306 } 55307 case "AuthToken": 55308 if r.TryDecodeAsNil() { 55309 x.QueryOptions.AuthToken = "" 55310 } else { 55311 x.AuthToken = (string)(r.DecodeString()) 55312 } 55313 case "Forwarded": 55314 if r.TryDecodeAsNil() { 55315 x.QueryOptions.InternalRpcInfo.Forwarded = false 55316 } else { 55317 x.Forwarded = (bool)(r.DecodeBool()) 55318 } 55319 default: 55320 z.DecStructFieldNotFound(-1, yys3) 55321 } // end switch yys3 55322 } // end for yyj3 55323 r.ReadMapEnd() 55324 } 55325 55326 func (x *DeploymentSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 55327 var h codecSelfer100 55328 z, r := codec1978.GenHelperDecoder(d) 55329 _, _, _ = h, z, r 55330 var yyj14 int 55331 var yyb14 bool 55332 var yyhl14 bool = l >= 0 55333 yyj14++ 55334 if yyhl14 { 55335 yyb14 = yyj14 > l 55336 } else { 55337 yyb14 = r.CheckBreak() 55338 } 55339 if yyb14 { 55340 r.ReadArrayEnd() 55341 return 55342 } 55343 r.ReadArrayElem() 55344 if r.TryDecodeAsNil() { 55345 x.DeploymentID = "" 55346 } else { 55347 x.DeploymentID = (string)(r.DecodeString()) 55348 } 55349 yyj14++ 55350 if yyhl14 { 55351 yyb14 = yyj14 > l 55352 } else { 55353 yyb14 = r.CheckBreak() 55354 } 55355 if yyb14 { 55356 r.ReadArrayEnd() 55357 return 55358 } 55359 r.ReadArrayElem() 55360 if r.TryDecodeAsNil() { 55361 x.QueryOptions.Region = "" 55362 } else { 55363 x.Region = (string)(r.DecodeString()) 55364 } 55365 yyj14++ 55366 if yyhl14 { 55367 yyb14 = yyj14 > l 55368 } else { 55369 yyb14 = r.CheckBreak() 55370 } 55371 if yyb14 { 55372 r.ReadArrayEnd() 55373 return 55374 } 55375 r.ReadArrayElem() 55376 if r.TryDecodeAsNil() { 55377 x.QueryOptions.Namespace = "" 55378 } else { 55379 x.Namespace = (string)(r.DecodeString()) 55380 } 55381 yyj14++ 55382 if yyhl14 { 55383 yyb14 = yyj14 > l 55384 } else { 55385 yyb14 = r.CheckBreak() 55386 } 55387 if yyb14 { 55388 r.ReadArrayEnd() 55389 return 55390 } 55391 r.ReadArrayElem() 55392 if r.TryDecodeAsNil() { 55393 x.QueryOptions.MinQueryIndex = 0 55394 } else { 55395 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 55396 } 55397 yyj14++ 55398 if yyhl14 { 55399 yyb14 = yyj14 > l 55400 } else { 55401 yyb14 = r.CheckBreak() 55402 } 55403 if yyb14 { 55404 r.ReadArrayEnd() 55405 return 55406 } 55407 r.ReadArrayElem() 55408 if r.TryDecodeAsNil() { 55409 x.QueryOptions.MaxQueryTime = 0 55410 } else { 55411 if false { 55412 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 55413 z.DecExtension(x.MaxQueryTime, yyxt20) 55414 } else { 55415 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 55416 } 55417 } 55418 yyj14++ 55419 if yyhl14 { 55420 yyb14 = yyj14 > l 55421 } else { 55422 yyb14 = r.CheckBreak() 55423 } 55424 if yyb14 { 55425 r.ReadArrayEnd() 55426 return 55427 } 55428 r.ReadArrayElem() 55429 if r.TryDecodeAsNil() { 55430 x.QueryOptions.AllowStale = false 55431 } else { 55432 x.AllowStale = (bool)(r.DecodeBool()) 55433 } 55434 yyj14++ 55435 if yyhl14 { 55436 yyb14 = yyj14 > l 55437 } else { 55438 yyb14 = r.CheckBreak() 55439 } 55440 if yyb14 { 55441 r.ReadArrayEnd() 55442 return 55443 } 55444 r.ReadArrayElem() 55445 if r.TryDecodeAsNil() { 55446 x.QueryOptions.Prefix = "" 55447 } else { 55448 x.Prefix = (string)(r.DecodeString()) 55449 } 55450 yyj14++ 55451 if yyhl14 { 55452 yyb14 = yyj14 > l 55453 } else { 55454 yyb14 = r.CheckBreak() 55455 } 55456 if yyb14 { 55457 r.ReadArrayEnd() 55458 return 55459 } 55460 r.ReadArrayElem() 55461 if r.TryDecodeAsNil() { 55462 x.QueryOptions.AuthToken = "" 55463 } else { 55464 x.AuthToken = (string)(r.DecodeString()) 55465 } 55466 yyj14++ 55467 if yyhl14 { 55468 yyb14 = yyj14 > l 55469 } else { 55470 yyb14 = r.CheckBreak() 55471 } 55472 if yyb14 { 55473 r.ReadArrayEnd() 55474 return 55475 } 55476 r.ReadArrayElem() 55477 if r.TryDecodeAsNil() { 55478 x.QueryOptions.InternalRpcInfo.Forwarded = false 55479 } else { 55480 x.Forwarded = (bool)(r.DecodeBool()) 55481 } 55482 for { 55483 yyj14++ 55484 if yyhl14 { 55485 yyb14 = yyj14 > l 55486 } else { 55487 yyb14 = r.CheckBreak() 55488 } 55489 if yyb14 { 55490 break 55491 } 55492 r.ReadArrayElem() 55493 z.DecStructFieldNotFound(yyj14-1, "") 55494 } 55495 r.ReadArrayEnd() 55496 } 55497 55498 func (x *DeploymentFailRequest) CodecEncodeSelf(e *codec1978.Encoder) { 55499 var h codecSelfer100 55500 z, r := codec1978.GenHelperEncoder(e) 55501 _, _, _ = h, z, r 55502 if x == nil { 55503 r.EncodeNil() 55504 } else { 55505 if false { 55506 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 55507 z.EncExtension(x, yyxt1) 55508 } else { 55509 yysep2 := !z.EncBinary() 55510 yy2arr2 := z.EncBasicHandle().StructToArray 55511 _, _ = yysep2, yy2arr2 55512 const yyr2 bool = false // struct tag has 'toArray' 55513 if yyr2 || yy2arr2 { 55514 r.WriteArrayStart(5) 55515 } else { 55516 r.WriteMapStart(5) 55517 } 55518 if yyr2 || yy2arr2 { 55519 r.WriteArrayElem() 55520 if false { 55521 } else { 55522 if z.EncBasicHandle().StringToRaw { 55523 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 55524 } else { 55525 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 55526 } 55527 } 55528 } else { 55529 r.WriteMapElemKey() 55530 if z.IsJSONHandle() { 55531 z.WriteStr("\"DeploymentID\"") 55532 } else { 55533 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 55534 } 55535 r.WriteMapElemValue() 55536 if false { 55537 } else { 55538 if z.EncBasicHandle().StringToRaw { 55539 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 55540 } else { 55541 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 55542 } 55543 } 55544 } 55545 if yyr2 || yy2arr2 { 55546 r.WriteArrayElem() 55547 if false { 55548 } else { 55549 if z.EncBasicHandle().StringToRaw { 55550 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 55551 } else { 55552 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 55553 } 55554 } 55555 } else { 55556 r.WriteMapElemKey() 55557 if z.IsJSONHandle() { 55558 z.WriteStr("\"Region\"") 55559 } else { 55560 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 55561 } 55562 r.WriteMapElemValue() 55563 if false { 55564 } else { 55565 if z.EncBasicHandle().StringToRaw { 55566 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 55567 } else { 55568 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 55569 } 55570 } 55571 } 55572 if yyr2 || yy2arr2 { 55573 r.WriteArrayElem() 55574 if false { 55575 } else { 55576 if z.EncBasicHandle().StringToRaw { 55577 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 55578 } else { 55579 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 55580 } 55581 } 55582 } else { 55583 r.WriteMapElemKey() 55584 if z.IsJSONHandle() { 55585 z.WriteStr("\"Namespace\"") 55586 } else { 55587 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 55588 } 55589 r.WriteMapElemValue() 55590 if false { 55591 } else { 55592 if z.EncBasicHandle().StringToRaw { 55593 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 55594 } else { 55595 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 55596 } 55597 } 55598 } 55599 if yyr2 || yy2arr2 { 55600 r.WriteArrayElem() 55601 if false { 55602 } else { 55603 if z.EncBasicHandle().StringToRaw { 55604 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 55605 } else { 55606 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 55607 } 55608 } 55609 } else { 55610 r.WriteMapElemKey() 55611 if z.IsJSONHandle() { 55612 z.WriteStr("\"AuthToken\"") 55613 } else { 55614 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 55615 } 55616 r.WriteMapElemValue() 55617 if false { 55618 } else { 55619 if z.EncBasicHandle().StringToRaw { 55620 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 55621 } else { 55622 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 55623 } 55624 } 55625 } 55626 if yyr2 || yy2arr2 { 55627 r.WriteArrayElem() 55628 if false { 55629 } else { 55630 r.EncodeBool(bool(x.Forwarded)) 55631 } 55632 } else { 55633 r.WriteMapElemKey() 55634 if z.IsJSONHandle() { 55635 z.WriteStr("\"Forwarded\"") 55636 } else { 55637 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 55638 } 55639 r.WriteMapElemValue() 55640 if false { 55641 } else { 55642 r.EncodeBool(bool(x.Forwarded)) 55643 } 55644 } 55645 if yyr2 || yy2arr2 { 55646 r.WriteArrayEnd() 55647 } else { 55648 r.WriteMapEnd() 55649 } 55650 } 55651 } 55652 } 55653 55654 func (x *DeploymentFailRequest) CodecDecodeSelf(d *codec1978.Decoder) { 55655 var h codecSelfer100 55656 z, r := codec1978.GenHelperDecoder(d) 55657 _, _, _ = h, z, r 55658 if false { 55659 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 55660 z.DecExtension(x, yyxt1) 55661 } else { 55662 yyct2 := r.ContainerType() 55663 if yyct2 == codecSelferValueTypeMap100 { 55664 yyl2 := r.ReadMapStart() 55665 if yyl2 == 0 { 55666 r.ReadMapEnd() 55667 } else { 55668 x.codecDecodeSelfFromMap(yyl2, d) 55669 } 55670 } else if yyct2 == codecSelferValueTypeArray100 { 55671 yyl2 := r.ReadArrayStart() 55672 if yyl2 == 0 { 55673 r.ReadArrayEnd() 55674 } else { 55675 x.codecDecodeSelfFromArray(yyl2, d) 55676 } 55677 } else { 55678 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 55679 } 55680 } 55681 } 55682 55683 func (x *DeploymentFailRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 55684 var h codecSelfer100 55685 z, r := codec1978.GenHelperDecoder(d) 55686 _, _, _ = h, z, r 55687 var yyhl3 bool = l >= 0 55688 for yyj3 := 0; ; yyj3++ { 55689 if yyhl3 { 55690 if yyj3 >= l { 55691 break 55692 } 55693 } else { 55694 if r.CheckBreak() { 55695 break 55696 } 55697 } 55698 r.ReadMapElemKey() 55699 yys3 := z.StringView(r.DecodeStringAsBytes()) 55700 r.ReadMapElemValue() 55701 switch yys3 { 55702 case "DeploymentID": 55703 if r.TryDecodeAsNil() { 55704 x.DeploymentID = "" 55705 } else { 55706 x.DeploymentID = (string)(r.DecodeString()) 55707 } 55708 case "Region": 55709 if r.TryDecodeAsNil() { 55710 x.WriteRequest.Region = "" 55711 } else { 55712 x.Region = (string)(r.DecodeString()) 55713 } 55714 case "Namespace": 55715 if r.TryDecodeAsNil() { 55716 x.WriteRequest.Namespace = "" 55717 } else { 55718 x.Namespace = (string)(r.DecodeString()) 55719 } 55720 case "AuthToken": 55721 if r.TryDecodeAsNil() { 55722 x.WriteRequest.AuthToken = "" 55723 } else { 55724 x.AuthToken = (string)(r.DecodeString()) 55725 } 55726 case "Forwarded": 55727 if r.TryDecodeAsNil() { 55728 x.WriteRequest.InternalRpcInfo.Forwarded = false 55729 } else { 55730 x.Forwarded = (bool)(r.DecodeBool()) 55731 } 55732 default: 55733 z.DecStructFieldNotFound(-1, yys3) 55734 } // end switch yys3 55735 } // end for yyj3 55736 r.ReadMapEnd() 55737 } 55738 55739 func (x *DeploymentFailRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 55740 var h codecSelfer100 55741 z, r := codec1978.GenHelperDecoder(d) 55742 _, _, _ = h, z, r 55743 var yyj9 int 55744 var yyb9 bool 55745 var yyhl9 bool = l >= 0 55746 yyj9++ 55747 if yyhl9 { 55748 yyb9 = yyj9 > l 55749 } else { 55750 yyb9 = r.CheckBreak() 55751 } 55752 if yyb9 { 55753 r.ReadArrayEnd() 55754 return 55755 } 55756 r.ReadArrayElem() 55757 if r.TryDecodeAsNil() { 55758 x.DeploymentID = "" 55759 } else { 55760 x.DeploymentID = (string)(r.DecodeString()) 55761 } 55762 yyj9++ 55763 if yyhl9 { 55764 yyb9 = yyj9 > l 55765 } else { 55766 yyb9 = r.CheckBreak() 55767 } 55768 if yyb9 { 55769 r.ReadArrayEnd() 55770 return 55771 } 55772 r.ReadArrayElem() 55773 if r.TryDecodeAsNil() { 55774 x.WriteRequest.Region = "" 55775 } else { 55776 x.Region = (string)(r.DecodeString()) 55777 } 55778 yyj9++ 55779 if yyhl9 { 55780 yyb9 = yyj9 > l 55781 } else { 55782 yyb9 = r.CheckBreak() 55783 } 55784 if yyb9 { 55785 r.ReadArrayEnd() 55786 return 55787 } 55788 r.ReadArrayElem() 55789 if r.TryDecodeAsNil() { 55790 x.WriteRequest.Namespace = "" 55791 } else { 55792 x.Namespace = (string)(r.DecodeString()) 55793 } 55794 yyj9++ 55795 if yyhl9 { 55796 yyb9 = yyj9 > l 55797 } else { 55798 yyb9 = r.CheckBreak() 55799 } 55800 if yyb9 { 55801 r.ReadArrayEnd() 55802 return 55803 } 55804 r.ReadArrayElem() 55805 if r.TryDecodeAsNil() { 55806 x.WriteRequest.AuthToken = "" 55807 } else { 55808 x.AuthToken = (string)(r.DecodeString()) 55809 } 55810 yyj9++ 55811 if yyhl9 { 55812 yyb9 = yyj9 > l 55813 } else { 55814 yyb9 = r.CheckBreak() 55815 } 55816 if yyb9 { 55817 r.ReadArrayEnd() 55818 return 55819 } 55820 r.ReadArrayElem() 55821 if r.TryDecodeAsNil() { 55822 x.WriteRequest.InternalRpcInfo.Forwarded = false 55823 } else { 55824 x.Forwarded = (bool)(r.DecodeBool()) 55825 } 55826 for { 55827 yyj9++ 55828 if yyhl9 { 55829 yyb9 = yyj9 > l 55830 } else { 55831 yyb9 = r.CheckBreak() 55832 } 55833 if yyb9 { 55834 break 55835 } 55836 r.ReadArrayElem() 55837 z.DecStructFieldNotFound(yyj9-1, "") 55838 } 55839 r.ReadArrayEnd() 55840 } 55841 55842 func (x *ScalingPolicySpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { 55843 var h codecSelfer100 55844 z, r := codec1978.GenHelperEncoder(e) 55845 _, _, _ = h, z, r 55846 if x == nil { 55847 r.EncodeNil() 55848 } else { 55849 if false { 55850 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 55851 z.EncExtension(x, yyxt1) 55852 } else { 55853 yysep2 := !z.EncBinary() 55854 yy2arr2 := z.EncBasicHandle().StructToArray 55855 _, _ = yysep2, yy2arr2 55856 const yyr2 bool = false // struct tag has 'toArray' 55857 if yyr2 || yy2arr2 { 55858 r.WriteArrayStart(9) 55859 } else { 55860 r.WriteMapStart(9) 55861 } 55862 if yyr2 || yy2arr2 { 55863 r.WriteArrayElem() 55864 if false { 55865 } else { 55866 if z.EncBasicHandle().StringToRaw { 55867 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 55868 } else { 55869 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 55870 } 55871 } 55872 } else { 55873 r.WriteMapElemKey() 55874 if z.IsJSONHandle() { 55875 z.WriteStr("\"ID\"") 55876 } else { 55877 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 55878 } 55879 r.WriteMapElemValue() 55880 if false { 55881 } else { 55882 if z.EncBasicHandle().StringToRaw { 55883 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 55884 } else { 55885 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 55886 } 55887 } 55888 } 55889 if yyr2 || yy2arr2 { 55890 r.WriteArrayElem() 55891 if false { 55892 } else { 55893 if z.EncBasicHandle().StringToRaw { 55894 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 55895 } else { 55896 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 55897 } 55898 } 55899 } else { 55900 r.WriteMapElemKey() 55901 if z.IsJSONHandle() { 55902 z.WriteStr("\"Region\"") 55903 } else { 55904 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 55905 } 55906 r.WriteMapElemValue() 55907 if false { 55908 } else { 55909 if z.EncBasicHandle().StringToRaw { 55910 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 55911 } else { 55912 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 55913 } 55914 } 55915 } 55916 if yyr2 || yy2arr2 { 55917 r.WriteArrayElem() 55918 if false { 55919 } else { 55920 if z.EncBasicHandle().StringToRaw { 55921 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 55922 } else { 55923 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 55924 } 55925 } 55926 } else { 55927 r.WriteMapElemKey() 55928 if z.IsJSONHandle() { 55929 z.WriteStr("\"Namespace\"") 55930 } else { 55931 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 55932 } 55933 r.WriteMapElemValue() 55934 if false { 55935 } else { 55936 if z.EncBasicHandle().StringToRaw { 55937 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 55938 } else { 55939 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 55940 } 55941 } 55942 } 55943 if yyr2 || yy2arr2 { 55944 r.WriteArrayElem() 55945 if false { 55946 } else { 55947 r.EncodeUint(uint64(x.MinQueryIndex)) 55948 } 55949 } else { 55950 r.WriteMapElemKey() 55951 if z.IsJSONHandle() { 55952 z.WriteStr("\"MinQueryIndex\"") 55953 } else { 55954 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 55955 } 55956 r.WriteMapElemValue() 55957 if false { 55958 } else { 55959 r.EncodeUint(uint64(x.MinQueryIndex)) 55960 } 55961 } 55962 if yyr2 || yy2arr2 { 55963 r.WriteArrayElem() 55964 if false { 55965 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 55966 z.EncExtension(x.MaxQueryTime, yyxt16) 55967 } else { 55968 r.EncodeInt(int64(x.MaxQueryTime)) 55969 } 55970 } else { 55971 r.WriteMapElemKey() 55972 if z.IsJSONHandle() { 55973 z.WriteStr("\"MaxQueryTime\"") 55974 } else { 55975 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 55976 } 55977 r.WriteMapElemValue() 55978 if false { 55979 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 55980 z.EncExtension(x.MaxQueryTime, yyxt17) 55981 } else { 55982 r.EncodeInt(int64(x.MaxQueryTime)) 55983 } 55984 } 55985 if yyr2 || yy2arr2 { 55986 r.WriteArrayElem() 55987 if false { 55988 } else { 55989 r.EncodeBool(bool(x.AllowStale)) 55990 } 55991 } else { 55992 r.WriteMapElemKey() 55993 if z.IsJSONHandle() { 55994 z.WriteStr("\"AllowStale\"") 55995 } else { 55996 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 55997 } 55998 r.WriteMapElemValue() 55999 if false { 56000 } else { 56001 r.EncodeBool(bool(x.AllowStale)) 56002 } 56003 } 56004 if yyr2 || yy2arr2 { 56005 r.WriteArrayElem() 56006 if false { 56007 } else { 56008 if z.EncBasicHandle().StringToRaw { 56009 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 56010 } else { 56011 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 56012 } 56013 } 56014 } else { 56015 r.WriteMapElemKey() 56016 if z.IsJSONHandle() { 56017 z.WriteStr("\"Prefix\"") 56018 } else { 56019 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 56020 } 56021 r.WriteMapElemValue() 56022 if false { 56023 } else { 56024 if z.EncBasicHandle().StringToRaw { 56025 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 56026 } else { 56027 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 56028 } 56029 } 56030 } 56031 if yyr2 || yy2arr2 { 56032 r.WriteArrayElem() 56033 if false { 56034 } else { 56035 if z.EncBasicHandle().StringToRaw { 56036 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 56037 } else { 56038 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 56039 } 56040 } 56041 } else { 56042 r.WriteMapElemKey() 56043 if z.IsJSONHandle() { 56044 z.WriteStr("\"AuthToken\"") 56045 } else { 56046 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 56047 } 56048 r.WriteMapElemValue() 56049 if false { 56050 } else { 56051 if z.EncBasicHandle().StringToRaw { 56052 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 56053 } else { 56054 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 56055 } 56056 } 56057 } 56058 if yyr2 || yy2arr2 { 56059 r.WriteArrayElem() 56060 if false { 56061 } else { 56062 r.EncodeBool(bool(x.Forwarded)) 56063 } 56064 } else { 56065 r.WriteMapElemKey() 56066 if z.IsJSONHandle() { 56067 z.WriteStr("\"Forwarded\"") 56068 } else { 56069 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 56070 } 56071 r.WriteMapElemValue() 56072 if false { 56073 } else { 56074 r.EncodeBool(bool(x.Forwarded)) 56075 } 56076 } 56077 if yyr2 || yy2arr2 { 56078 r.WriteArrayEnd() 56079 } else { 56080 r.WriteMapEnd() 56081 } 56082 } 56083 } 56084 } 56085 56086 func (x *ScalingPolicySpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { 56087 var h codecSelfer100 56088 z, r := codec1978.GenHelperDecoder(d) 56089 _, _, _ = h, z, r 56090 if false { 56091 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 56092 z.DecExtension(x, yyxt1) 56093 } else { 56094 yyct2 := r.ContainerType() 56095 if yyct2 == codecSelferValueTypeMap100 { 56096 yyl2 := r.ReadMapStart() 56097 if yyl2 == 0 { 56098 r.ReadMapEnd() 56099 } else { 56100 x.codecDecodeSelfFromMap(yyl2, d) 56101 } 56102 } else if yyct2 == codecSelferValueTypeArray100 { 56103 yyl2 := r.ReadArrayStart() 56104 if yyl2 == 0 { 56105 r.ReadArrayEnd() 56106 } else { 56107 x.codecDecodeSelfFromArray(yyl2, d) 56108 } 56109 } else { 56110 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 56111 } 56112 } 56113 } 56114 56115 func (x *ScalingPolicySpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 56116 var h codecSelfer100 56117 z, r := codec1978.GenHelperDecoder(d) 56118 _, _, _ = h, z, r 56119 var yyhl3 bool = l >= 0 56120 for yyj3 := 0; ; yyj3++ { 56121 if yyhl3 { 56122 if yyj3 >= l { 56123 break 56124 } 56125 } else { 56126 if r.CheckBreak() { 56127 break 56128 } 56129 } 56130 r.ReadMapElemKey() 56131 yys3 := z.StringView(r.DecodeStringAsBytes()) 56132 r.ReadMapElemValue() 56133 switch yys3 { 56134 case "ID": 56135 if r.TryDecodeAsNil() { 56136 x.ID = "" 56137 } else { 56138 x.ID = (string)(r.DecodeString()) 56139 } 56140 case "Region": 56141 if r.TryDecodeAsNil() { 56142 x.QueryOptions.Region = "" 56143 } else { 56144 x.Region = (string)(r.DecodeString()) 56145 } 56146 case "Namespace": 56147 if r.TryDecodeAsNil() { 56148 x.QueryOptions.Namespace = "" 56149 } else { 56150 x.Namespace = (string)(r.DecodeString()) 56151 } 56152 case "MinQueryIndex": 56153 if r.TryDecodeAsNil() { 56154 x.QueryOptions.MinQueryIndex = 0 56155 } else { 56156 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 56157 } 56158 case "MaxQueryTime": 56159 if r.TryDecodeAsNil() { 56160 x.QueryOptions.MaxQueryTime = 0 56161 } else { 56162 if false { 56163 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 56164 z.DecExtension(x.MaxQueryTime, yyxt9) 56165 } else { 56166 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 56167 } 56168 } 56169 case "AllowStale": 56170 if r.TryDecodeAsNil() { 56171 x.QueryOptions.AllowStale = false 56172 } else { 56173 x.AllowStale = (bool)(r.DecodeBool()) 56174 } 56175 case "Prefix": 56176 if r.TryDecodeAsNil() { 56177 x.QueryOptions.Prefix = "" 56178 } else { 56179 x.Prefix = (string)(r.DecodeString()) 56180 } 56181 case "AuthToken": 56182 if r.TryDecodeAsNil() { 56183 x.QueryOptions.AuthToken = "" 56184 } else { 56185 x.AuthToken = (string)(r.DecodeString()) 56186 } 56187 case "Forwarded": 56188 if r.TryDecodeAsNil() { 56189 x.QueryOptions.InternalRpcInfo.Forwarded = false 56190 } else { 56191 x.Forwarded = (bool)(r.DecodeBool()) 56192 } 56193 default: 56194 z.DecStructFieldNotFound(-1, yys3) 56195 } // end switch yys3 56196 } // end for yyj3 56197 r.ReadMapEnd() 56198 } 56199 56200 func (x *ScalingPolicySpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 56201 var h codecSelfer100 56202 z, r := codec1978.GenHelperDecoder(d) 56203 _, _, _ = h, z, r 56204 var yyj14 int 56205 var yyb14 bool 56206 var yyhl14 bool = l >= 0 56207 yyj14++ 56208 if yyhl14 { 56209 yyb14 = yyj14 > l 56210 } else { 56211 yyb14 = r.CheckBreak() 56212 } 56213 if yyb14 { 56214 r.ReadArrayEnd() 56215 return 56216 } 56217 r.ReadArrayElem() 56218 if r.TryDecodeAsNil() { 56219 x.ID = "" 56220 } else { 56221 x.ID = (string)(r.DecodeString()) 56222 } 56223 yyj14++ 56224 if yyhl14 { 56225 yyb14 = yyj14 > l 56226 } else { 56227 yyb14 = r.CheckBreak() 56228 } 56229 if yyb14 { 56230 r.ReadArrayEnd() 56231 return 56232 } 56233 r.ReadArrayElem() 56234 if r.TryDecodeAsNil() { 56235 x.QueryOptions.Region = "" 56236 } else { 56237 x.Region = (string)(r.DecodeString()) 56238 } 56239 yyj14++ 56240 if yyhl14 { 56241 yyb14 = yyj14 > l 56242 } else { 56243 yyb14 = r.CheckBreak() 56244 } 56245 if yyb14 { 56246 r.ReadArrayEnd() 56247 return 56248 } 56249 r.ReadArrayElem() 56250 if r.TryDecodeAsNil() { 56251 x.QueryOptions.Namespace = "" 56252 } else { 56253 x.Namespace = (string)(r.DecodeString()) 56254 } 56255 yyj14++ 56256 if yyhl14 { 56257 yyb14 = yyj14 > l 56258 } else { 56259 yyb14 = r.CheckBreak() 56260 } 56261 if yyb14 { 56262 r.ReadArrayEnd() 56263 return 56264 } 56265 r.ReadArrayElem() 56266 if r.TryDecodeAsNil() { 56267 x.QueryOptions.MinQueryIndex = 0 56268 } else { 56269 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 56270 } 56271 yyj14++ 56272 if yyhl14 { 56273 yyb14 = yyj14 > l 56274 } else { 56275 yyb14 = r.CheckBreak() 56276 } 56277 if yyb14 { 56278 r.ReadArrayEnd() 56279 return 56280 } 56281 r.ReadArrayElem() 56282 if r.TryDecodeAsNil() { 56283 x.QueryOptions.MaxQueryTime = 0 56284 } else { 56285 if false { 56286 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 56287 z.DecExtension(x.MaxQueryTime, yyxt20) 56288 } else { 56289 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 56290 } 56291 } 56292 yyj14++ 56293 if yyhl14 { 56294 yyb14 = yyj14 > l 56295 } else { 56296 yyb14 = r.CheckBreak() 56297 } 56298 if yyb14 { 56299 r.ReadArrayEnd() 56300 return 56301 } 56302 r.ReadArrayElem() 56303 if r.TryDecodeAsNil() { 56304 x.QueryOptions.AllowStale = false 56305 } else { 56306 x.AllowStale = (bool)(r.DecodeBool()) 56307 } 56308 yyj14++ 56309 if yyhl14 { 56310 yyb14 = yyj14 > l 56311 } else { 56312 yyb14 = r.CheckBreak() 56313 } 56314 if yyb14 { 56315 r.ReadArrayEnd() 56316 return 56317 } 56318 r.ReadArrayElem() 56319 if r.TryDecodeAsNil() { 56320 x.QueryOptions.Prefix = "" 56321 } else { 56322 x.Prefix = (string)(r.DecodeString()) 56323 } 56324 yyj14++ 56325 if yyhl14 { 56326 yyb14 = yyj14 > l 56327 } else { 56328 yyb14 = r.CheckBreak() 56329 } 56330 if yyb14 { 56331 r.ReadArrayEnd() 56332 return 56333 } 56334 r.ReadArrayElem() 56335 if r.TryDecodeAsNil() { 56336 x.QueryOptions.AuthToken = "" 56337 } else { 56338 x.AuthToken = (string)(r.DecodeString()) 56339 } 56340 yyj14++ 56341 if yyhl14 { 56342 yyb14 = yyj14 > l 56343 } else { 56344 yyb14 = r.CheckBreak() 56345 } 56346 if yyb14 { 56347 r.ReadArrayEnd() 56348 return 56349 } 56350 r.ReadArrayElem() 56351 if r.TryDecodeAsNil() { 56352 x.QueryOptions.InternalRpcInfo.Forwarded = false 56353 } else { 56354 x.Forwarded = (bool)(r.DecodeBool()) 56355 } 56356 for { 56357 yyj14++ 56358 if yyhl14 { 56359 yyb14 = yyj14 > l 56360 } else { 56361 yyb14 = r.CheckBreak() 56362 } 56363 if yyb14 { 56364 break 56365 } 56366 r.ReadArrayElem() 56367 z.DecStructFieldNotFound(yyj14-1, "") 56368 } 56369 r.ReadArrayEnd() 56370 } 56371 56372 func (x *SingleScalingPolicyResponse) CodecEncodeSelf(e *codec1978.Encoder) { 56373 var h codecSelfer100 56374 z, r := codec1978.GenHelperEncoder(e) 56375 _, _, _ = h, z, r 56376 if x == nil { 56377 r.EncodeNil() 56378 } else { 56379 if false { 56380 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 56381 z.EncExtension(x, yyxt1) 56382 } else { 56383 yysep2 := !z.EncBinary() 56384 yy2arr2 := z.EncBasicHandle().StructToArray 56385 _, _ = yysep2, yy2arr2 56386 const yyr2 bool = false // struct tag has 'toArray' 56387 if yyr2 || yy2arr2 { 56388 r.WriteArrayStart(4) 56389 } else { 56390 r.WriteMapStart(4) 56391 } 56392 var yyn3 bool 56393 if x.Policy == nil { 56394 yyn3 = true 56395 goto LABEL3 56396 } 56397 LABEL3: 56398 if yyr2 || yy2arr2 { 56399 if yyn3 { 56400 r.WriteArrayElem() 56401 r.EncodeNil() 56402 } else { 56403 r.WriteArrayElem() 56404 if x.Policy == nil { 56405 r.EncodeNil() 56406 } else { 56407 x.Policy.CodecEncodeSelf(e) 56408 } 56409 } 56410 } else { 56411 r.WriteMapElemKey() 56412 if z.IsJSONHandle() { 56413 z.WriteStr("\"Policy\"") 56414 } else { 56415 r.EncodeStringEnc(codecSelferCcUTF8100, `Policy`) 56416 } 56417 r.WriteMapElemValue() 56418 if yyn3 { 56419 r.EncodeNil() 56420 } else { 56421 if x.Policy == nil { 56422 r.EncodeNil() 56423 } else { 56424 x.Policy.CodecEncodeSelf(e) 56425 } 56426 } 56427 } 56428 if yyr2 || yy2arr2 { 56429 r.WriteArrayElem() 56430 if false { 56431 } else { 56432 r.EncodeUint(uint64(x.Index)) 56433 } 56434 } else { 56435 r.WriteMapElemKey() 56436 if z.IsJSONHandle() { 56437 z.WriteStr("\"Index\"") 56438 } else { 56439 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 56440 } 56441 r.WriteMapElemValue() 56442 if false { 56443 } else { 56444 r.EncodeUint(uint64(x.Index)) 56445 } 56446 } 56447 if yyr2 || yy2arr2 { 56448 r.WriteArrayElem() 56449 if false { 56450 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 56451 z.EncExtension(x.LastContact, yyxt10) 56452 } else { 56453 r.EncodeInt(int64(x.LastContact)) 56454 } 56455 } else { 56456 r.WriteMapElemKey() 56457 if z.IsJSONHandle() { 56458 z.WriteStr("\"LastContact\"") 56459 } else { 56460 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 56461 } 56462 r.WriteMapElemValue() 56463 if false { 56464 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 56465 z.EncExtension(x.LastContact, yyxt11) 56466 } else { 56467 r.EncodeInt(int64(x.LastContact)) 56468 } 56469 } 56470 if yyr2 || yy2arr2 { 56471 r.WriteArrayElem() 56472 if false { 56473 } else { 56474 r.EncodeBool(bool(x.KnownLeader)) 56475 } 56476 } else { 56477 r.WriteMapElemKey() 56478 if z.IsJSONHandle() { 56479 z.WriteStr("\"KnownLeader\"") 56480 } else { 56481 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 56482 } 56483 r.WriteMapElemValue() 56484 if false { 56485 } else { 56486 r.EncodeBool(bool(x.KnownLeader)) 56487 } 56488 } 56489 if yyr2 || yy2arr2 { 56490 r.WriteArrayEnd() 56491 } else { 56492 r.WriteMapEnd() 56493 } 56494 } 56495 } 56496 } 56497 56498 func (x *SingleScalingPolicyResponse) CodecDecodeSelf(d *codec1978.Decoder) { 56499 var h codecSelfer100 56500 z, r := codec1978.GenHelperDecoder(d) 56501 _, _, _ = h, z, r 56502 if false { 56503 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 56504 z.DecExtension(x, yyxt1) 56505 } else { 56506 yyct2 := r.ContainerType() 56507 if yyct2 == codecSelferValueTypeMap100 { 56508 yyl2 := r.ReadMapStart() 56509 if yyl2 == 0 { 56510 r.ReadMapEnd() 56511 } else { 56512 x.codecDecodeSelfFromMap(yyl2, d) 56513 } 56514 } else if yyct2 == codecSelferValueTypeArray100 { 56515 yyl2 := r.ReadArrayStart() 56516 if yyl2 == 0 { 56517 r.ReadArrayEnd() 56518 } else { 56519 x.codecDecodeSelfFromArray(yyl2, d) 56520 } 56521 } else { 56522 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 56523 } 56524 } 56525 } 56526 56527 func (x *SingleScalingPolicyResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 56528 var h codecSelfer100 56529 z, r := codec1978.GenHelperDecoder(d) 56530 _, _, _ = h, z, r 56531 var yyhl3 bool = l >= 0 56532 for yyj3 := 0; ; yyj3++ { 56533 if yyhl3 { 56534 if yyj3 >= l { 56535 break 56536 } 56537 } else { 56538 if r.CheckBreak() { 56539 break 56540 } 56541 } 56542 r.ReadMapElemKey() 56543 yys3 := z.StringView(r.DecodeStringAsBytes()) 56544 r.ReadMapElemValue() 56545 switch yys3 { 56546 case "Policy": 56547 if r.TryDecodeAsNil() { 56548 if true && x.Policy != nil { 56549 x.Policy = nil 56550 } 56551 } else { 56552 if x.Policy == nil { 56553 x.Policy = new(ScalingPolicy) 56554 } 56555 56556 x.Policy.CodecDecodeSelf(d) 56557 } 56558 case "Index": 56559 if r.TryDecodeAsNil() { 56560 x.QueryMeta.Index = 0 56561 } else { 56562 x.Index = (uint64)(r.DecodeUint64()) 56563 } 56564 case "LastContact": 56565 if r.TryDecodeAsNil() { 56566 x.QueryMeta.LastContact = 0 56567 } else { 56568 if false { 56569 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 56570 z.DecExtension(x.LastContact, yyxt7) 56571 } else { 56572 x.LastContact = (time.Duration)(r.DecodeInt64()) 56573 } 56574 } 56575 case "KnownLeader": 56576 if r.TryDecodeAsNil() { 56577 x.QueryMeta.KnownLeader = false 56578 } else { 56579 x.KnownLeader = (bool)(r.DecodeBool()) 56580 } 56581 default: 56582 z.DecStructFieldNotFound(-1, yys3) 56583 } // end switch yys3 56584 } // end for yyj3 56585 r.ReadMapEnd() 56586 } 56587 56588 func (x *SingleScalingPolicyResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 56589 var h codecSelfer100 56590 z, r := codec1978.GenHelperDecoder(d) 56591 _, _, _ = h, z, r 56592 var yyj9 int 56593 var yyb9 bool 56594 var yyhl9 bool = l >= 0 56595 yyj9++ 56596 if yyhl9 { 56597 yyb9 = yyj9 > l 56598 } else { 56599 yyb9 = r.CheckBreak() 56600 } 56601 if yyb9 { 56602 r.ReadArrayEnd() 56603 return 56604 } 56605 r.ReadArrayElem() 56606 if r.TryDecodeAsNil() { 56607 if true && x.Policy != nil { 56608 x.Policy = nil 56609 } 56610 } else { 56611 if x.Policy == nil { 56612 x.Policy = new(ScalingPolicy) 56613 } 56614 56615 x.Policy.CodecDecodeSelf(d) 56616 } 56617 yyj9++ 56618 if yyhl9 { 56619 yyb9 = yyj9 > l 56620 } else { 56621 yyb9 = r.CheckBreak() 56622 } 56623 if yyb9 { 56624 r.ReadArrayEnd() 56625 return 56626 } 56627 r.ReadArrayElem() 56628 if r.TryDecodeAsNil() { 56629 x.QueryMeta.Index = 0 56630 } else { 56631 x.Index = (uint64)(r.DecodeUint64()) 56632 } 56633 yyj9++ 56634 if yyhl9 { 56635 yyb9 = yyj9 > l 56636 } else { 56637 yyb9 = r.CheckBreak() 56638 } 56639 if yyb9 { 56640 r.ReadArrayEnd() 56641 return 56642 } 56643 r.ReadArrayElem() 56644 if r.TryDecodeAsNil() { 56645 x.QueryMeta.LastContact = 0 56646 } else { 56647 if false { 56648 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 56649 z.DecExtension(x.LastContact, yyxt13) 56650 } else { 56651 x.LastContact = (time.Duration)(r.DecodeInt64()) 56652 } 56653 } 56654 yyj9++ 56655 if yyhl9 { 56656 yyb9 = yyj9 > l 56657 } else { 56658 yyb9 = r.CheckBreak() 56659 } 56660 if yyb9 { 56661 r.ReadArrayEnd() 56662 return 56663 } 56664 r.ReadArrayElem() 56665 if r.TryDecodeAsNil() { 56666 x.QueryMeta.KnownLeader = false 56667 } else { 56668 x.KnownLeader = (bool)(r.DecodeBool()) 56669 } 56670 for { 56671 yyj9++ 56672 if yyhl9 { 56673 yyb9 = yyj9 > l 56674 } else { 56675 yyb9 = r.CheckBreak() 56676 } 56677 if yyb9 { 56678 break 56679 } 56680 r.ReadArrayElem() 56681 z.DecStructFieldNotFound(yyj9-1, "") 56682 } 56683 r.ReadArrayEnd() 56684 } 56685 56686 func (x *ScalingPolicyListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 56687 var h codecSelfer100 56688 z, r := codec1978.GenHelperEncoder(e) 56689 _, _, _ = h, z, r 56690 if x == nil { 56691 r.EncodeNil() 56692 } else { 56693 if false { 56694 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 56695 z.EncExtension(x, yyxt1) 56696 } else { 56697 yysep2 := !z.EncBinary() 56698 yy2arr2 := z.EncBasicHandle().StructToArray 56699 _, _ = yysep2, yy2arr2 56700 const yyr2 bool = false // struct tag has 'toArray' 56701 if yyr2 || yy2arr2 { 56702 r.WriteArrayStart(8) 56703 } else { 56704 r.WriteMapStart(8) 56705 } 56706 if yyr2 || yy2arr2 { 56707 r.WriteArrayElem() 56708 if false { 56709 } else { 56710 if z.EncBasicHandle().StringToRaw { 56711 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 56712 } else { 56713 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 56714 } 56715 } 56716 } else { 56717 r.WriteMapElemKey() 56718 if z.IsJSONHandle() { 56719 z.WriteStr("\"Region\"") 56720 } else { 56721 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 56722 } 56723 r.WriteMapElemValue() 56724 if false { 56725 } else { 56726 if z.EncBasicHandle().StringToRaw { 56727 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 56728 } else { 56729 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 56730 } 56731 } 56732 } 56733 if yyr2 || yy2arr2 { 56734 r.WriteArrayElem() 56735 if false { 56736 } else { 56737 if z.EncBasicHandle().StringToRaw { 56738 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 56739 } else { 56740 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 56741 } 56742 } 56743 } else { 56744 r.WriteMapElemKey() 56745 if z.IsJSONHandle() { 56746 z.WriteStr("\"Namespace\"") 56747 } else { 56748 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 56749 } 56750 r.WriteMapElemValue() 56751 if false { 56752 } else { 56753 if z.EncBasicHandle().StringToRaw { 56754 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 56755 } else { 56756 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 56757 } 56758 } 56759 } 56760 if yyr2 || yy2arr2 { 56761 r.WriteArrayElem() 56762 if false { 56763 } else { 56764 r.EncodeUint(uint64(x.MinQueryIndex)) 56765 } 56766 } else { 56767 r.WriteMapElemKey() 56768 if z.IsJSONHandle() { 56769 z.WriteStr("\"MinQueryIndex\"") 56770 } else { 56771 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 56772 } 56773 r.WriteMapElemValue() 56774 if false { 56775 } else { 56776 r.EncodeUint(uint64(x.MinQueryIndex)) 56777 } 56778 } 56779 if yyr2 || yy2arr2 { 56780 r.WriteArrayElem() 56781 if false { 56782 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 56783 z.EncExtension(x.MaxQueryTime, yyxt13) 56784 } else { 56785 r.EncodeInt(int64(x.MaxQueryTime)) 56786 } 56787 } else { 56788 r.WriteMapElemKey() 56789 if z.IsJSONHandle() { 56790 z.WriteStr("\"MaxQueryTime\"") 56791 } else { 56792 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 56793 } 56794 r.WriteMapElemValue() 56795 if false { 56796 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 56797 z.EncExtension(x.MaxQueryTime, yyxt14) 56798 } else { 56799 r.EncodeInt(int64(x.MaxQueryTime)) 56800 } 56801 } 56802 if yyr2 || yy2arr2 { 56803 r.WriteArrayElem() 56804 if false { 56805 } else { 56806 r.EncodeBool(bool(x.AllowStale)) 56807 } 56808 } else { 56809 r.WriteMapElemKey() 56810 if z.IsJSONHandle() { 56811 z.WriteStr("\"AllowStale\"") 56812 } else { 56813 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 56814 } 56815 r.WriteMapElemValue() 56816 if false { 56817 } else { 56818 r.EncodeBool(bool(x.AllowStale)) 56819 } 56820 } 56821 if yyr2 || yy2arr2 { 56822 r.WriteArrayElem() 56823 if false { 56824 } else { 56825 if z.EncBasicHandle().StringToRaw { 56826 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 56827 } else { 56828 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 56829 } 56830 } 56831 } else { 56832 r.WriteMapElemKey() 56833 if z.IsJSONHandle() { 56834 z.WriteStr("\"Prefix\"") 56835 } else { 56836 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 56837 } 56838 r.WriteMapElemValue() 56839 if false { 56840 } else { 56841 if z.EncBasicHandle().StringToRaw { 56842 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 56843 } else { 56844 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 56845 } 56846 } 56847 } 56848 if yyr2 || yy2arr2 { 56849 r.WriteArrayElem() 56850 if false { 56851 } else { 56852 if z.EncBasicHandle().StringToRaw { 56853 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 56854 } else { 56855 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 56856 } 56857 } 56858 } else { 56859 r.WriteMapElemKey() 56860 if z.IsJSONHandle() { 56861 z.WriteStr("\"AuthToken\"") 56862 } else { 56863 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 56864 } 56865 r.WriteMapElemValue() 56866 if false { 56867 } else { 56868 if z.EncBasicHandle().StringToRaw { 56869 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 56870 } else { 56871 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 56872 } 56873 } 56874 } 56875 if yyr2 || yy2arr2 { 56876 r.WriteArrayElem() 56877 if false { 56878 } else { 56879 r.EncodeBool(bool(x.Forwarded)) 56880 } 56881 } else { 56882 r.WriteMapElemKey() 56883 if z.IsJSONHandle() { 56884 z.WriteStr("\"Forwarded\"") 56885 } else { 56886 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 56887 } 56888 r.WriteMapElemValue() 56889 if false { 56890 } else { 56891 r.EncodeBool(bool(x.Forwarded)) 56892 } 56893 } 56894 if yyr2 || yy2arr2 { 56895 r.WriteArrayEnd() 56896 } else { 56897 r.WriteMapEnd() 56898 } 56899 } 56900 } 56901 } 56902 56903 func (x *ScalingPolicyListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 56904 var h codecSelfer100 56905 z, r := codec1978.GenHelperDecoder(d) 56906 _, _, _ = h, z, r 56907 if false { 56908 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 56909 z.DecExtension(x, yyxt1) 56910 } else { 56911 yyct2 := r.ContainerType() 56912 if yyct2 == codecSelferValueTypeMap100 { 56913 yyl2 := r.ReadMapStart() 56914 if yyl2 == 0 { 56915 r.ReadMapEnd() 56916 } else { 56917 x.codecDecodeSelfFromMap(yyl2, d) 56918 } 56919 } else if yyct2 == codecSelferValueTypeArray100 { 56920 yyl2 := r.ReadArrayStart() 56921 if yyl2 == 0 { 56922 r.ReadArrayEnd() 56923 } else { 56924 x.codecDecodeSelfFromArray(yyl2, d) 56925 } 56926 } else { 56927 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 56928 } 56929 } 56930 } 56931 56932 func (x *ScalingPolicyListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 56933 var h codecSelfer100 56934 z, r := codec1978.GenHelperDecoder(d) 56935 _, _, _ = h, z, r 56936 var yyhl3 bool = l >= 0 56937 for yyj3 := 0; ; yyj3++ { 56938 if yyhl3 { 56939 if yyj3 >= l { 56940 break 56941 } 56942 } else { 56943 if r.CheckBreak() { 56944 break 56945 } 56946 } 56947 r.ReadMapElemKey() 56948 yys3 := z.StringView(r.DecodeStringAsBytes()) 56949 r.ReadMapElemValue() 56950 switch yys3 { 56951 case "Region": 56952 if r.TryDecodeAsNil() { 56953 x.QueryOptions.Region = "" 56954 } else { 56955 x.Region = (string)(r.DecodeString()) 56956 } 56957 case "Namespace": 56958 if r.TryDecodeAsNil() { 56959 x.QueryOptions.Namespace = "" 56960 } else { 56961 x.Namespace = (string)(r.DecodeString()) 56962 } 56963 case "MinQueryIndex": 56964 if r.TryDecodeAsNil() { 56965 x.QueryOptions.MinQueryIndex = 0 56966 } else { 56967 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 56968 } 56969 case "MaxQueryTime": 56970 if r.TryDecodeAsNil() { 56971 x.QueryOptions.MaxQueryTime = 0 56972 } else { 56973 if false { 56974 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 56975 z.DecExtension(x.MaxQueryTime, yyxt8) 56976 } else { 56977 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 56978 } 56979 } 56980 case "AllowStale": 56981 if r.TryDecodeAsNil() { 56982 x.QueryOptions.AllowStale = false 56983 } else { 56984 x.AllowStale = (bool)(r.DecodeBool()) 56985 } 56986 case "Prefix": 56987 if r.TryDecodeAsNil() { 56988 x.QueryOptions.Prefix = "" 56989 } else { 56990 x.Prefix = (string)(r.DecodeString()) 56991 } 56992 case "AuthToken": 56993 if r.TryDecodeAsNil() { 56994 x.QueryOptions.AuthToken = "" 56995 } else { 56996 x.AuthToken = (string)(r.DecodeString()) 56997 } 56998 case "Forwarded": 56999 if r.TryDecodeAsNil() { 57000 x.QueryOptions.InternalRpcInfo.Forwarded = false 57001 } else { 57002 x.Forwarded = (bool)(r.DecodeBool()) 57003 } 57004 default: 57005 z.DecStructFieldNotFound(-1, yys3) 57006 } // end switch yys3 57007 } // end for yyj3 57008 r.ReadMapEnd() 57009 } 57010 57011 func (x *ScalingPolicyListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 57012 var h codecSelfer100 57013 z, r := codec1978.GenHelperDecoder(d) 57014 _, _, _ = h, z, r 57015 var yyj13 int 57016 var yyb13 bool 57017 var yyhl13 bool = l >= 0 57018 yyj13++ 57019 if yyhl13 { 57020 yyb13 = yyj13 > l 57021 } else { 57022 yyb13 = r.CheckBreak() 57023 } 57024 if yyb13 { 57025 r.ReadArrayEnd() 57026 return 57027 } 57028 r.ReadArrayElem() 57029 if r.TryDecodeAsNil() { 57030 x.QueryOptions.Region = "" 57031 } else { 57032 x.Region = (string)(r.DecodeString()) 57033 } 57034 yyj13++ 57035 if yyhl13 { 57036 yyb13 = yyj13 > l 57037 } else { 57038 yyb13 = r.CheckBreak() 57039 } 57040 if yyb13 { 57041 r.ReadArrayEnd() 57042 return 57043 } 57044 r.ReadArrayElem() 57045 if r.TryDecodeAsNil() { 57046 x.QueryOptions.Namespace = "" 57047 } else { 57048 x.Namespace = (string)(r.DecodeString()) 57049 } 57050 yyj13++ 57051 if yyhl13 { 57052 yyb13 = yyj13 > l 57053 } else { 57054 yyb13 = r.CheckBreak() 57055 } 57056 if yyb13 { 57057 r.ReadArrayEnd() 57058 return 57059 } 57060 r.ReadArrayElem() 57061 if r.TryDecodeAsNil() { 57062 x.QueryOptions.MinQueryIndex = 0 57063 } else { 57064 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 57065 } 57066 yyj13++ 57067 if yyhl13 { 57068 yyb13 = yyj13 > l 57069 } else { 57070 yyb13 = r.CheckBreak() 57071 } 57072 if yyb13 { 57073 r.ReadArrayEnd() 57074 return 57075 } 57076 r.ReadArrayElem() 57077 if r.TryDecodeAsNil() { 57078 x.QueryOptions.MaxQueryTime = 0 57079 } else { 57080 if false { 57081 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 57082 z.DecExtension(x.MaxQueryTime, yyxt18) 57083 } else { 57084 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 57085 } 57086 } 57087 yyj13++ 57088 if yyhl13 { 57089 yyb13 = yyj13 > l 57090 } else { 57091 yyb13 = r.CheckBreak() 57092 } 57093 if yyb13 { 57094 r.ReadArrayEnd() 57095 return 57096 } 57097 r.ReadArrayElem() 57098 if r.TryDecodeAsNil() { 57099 x.QueryOptions.AllowStale = false 57100 } else { 57101 x.AllowStale = (bool)(r.DecodeBool()) 57102 } 57103 yyj13++ 57104 if yyhl13 { 57105 yyb13 = yyj13 > l 57106 } else { 57107 yyb13 = r.CheckBreak() 57108 } 57109 if yyb13 { 57110 r.ReadArrayEnd() 57111 return 57112 } 57113 r.ReadArrayElem() 57114 if r.TryDecodeAsNil() { 57115 x.QueryOptions.Prefix = "" 57116 } else { 57117 x.Prefix = (string)(r.DecodeString()) 57118 } 57119 yyj13++ 57120 if yyhl13 { 57121 yyb13 = yyj13 > l 57122 } else { 57123 yyb13 = r.CheckBreak() 57124 } 57125 if yyb13 { 57126 r.ReadArrayEnd() 57127 return 57128 } 57129 r.ReadArrayElem() 57130 if r.TryDecodeAsNil() { 57131 x.QueryOptions.AuthToken = "" 57132 } else { 57133 x.AuthToken = (string)(r.DecodeString()) 57134 } 57135 yyj13++ 57136 if yyhl13 { 57137 yyb13 = yyj13 > l 57138 } else { 57139 yyb13 = r.CheckBreak() 57140 } 57141 if yyb13 { 57142 r.ReadArrayEnd() 57143 return 57144 } 57145 r.ReadArrayElem() 57146 if r.TryDecodeAsNil() { 57147 x.QueryOptions.InternalRpcInfo.Forwarded = false 57148 } else { 57149 x.Forwarded = (bool)(r.DecodeBool()) 57150 } 57151 for { 57152 yyj13++ 57153 if yyhl13 { 57154 yyb13 = yyj13 > l 57155 } else { 57156 yyb13 = r.CheckBreak() 57157 } 57158 if yyb13 { 57159 break 57160 } 57161 r.ReadArrayElem() 57162 z.DecStructFieldNotFound(yyj13-1, "") 57163 } 57164 r.ReadArrayEnd() 57165 } 57166 57167 func (x *ScalingPolicyListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 57168 var h codecSelfer100 57169 z, r := codec1978.GenHelperEncoder(e) 57170 _, _, _ = h, z, r 57171 if x == nil { 57172 r.EncodeNil() 57173 } else { 57174 if false { 57175 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 57176 z.EncExtension(x, yyxt1) 57177 } else { 57178 yysep2 := !z.EncBinary() 57179 yy2arr2 := z.EncBasicHandle().StructToArray 57180 _, _ = yysep2, yy2arr2 57181 const yyr2 bool = false // struct tag has 'toArray' 57182 if yyr2 || yy2arr2 { 57183 r.WriteArrayStart(4) 57184 } else { 57185 r.WriteMapStart(4) 57186 } 57187 if yyr2 || yy2arr2 { 57188 r.WriteArrayElem() 57189 if x.Policies == nil { 57190 r.EncodeNil() 57191 } else { 57192 if false { 57193 } else { 57194 h.encSlicePtrtoScalingPolicyListStub(([]*ScalingPolicyListStub)(x.Policies), e) 57195 } 57196 } 57197 } else { 57198 r.WriteMapElemKey() 57199 if z.IsJSONHandle() { 57200 z.WriteStr("\"Policies\"") 57201 } else { 57202 r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) 57203 } 57204 r.WriteMapElemValue() 57205 if x.Policies == nil { 57206 r.EncodeNil() 57207 } else { 57208 if false { 57209 } else { 57210 h.encSlicePtrtoScalingPolicyListStub(([]*ScalingPolicyListStub)(x.Policies), e) 57211 } 57212 } 57213 } 57214 if yyr2 || yy2arr2 { 57215 r.WriteArrayElem() 57216 if false { 57217 } else { 57218 r.EncodeUint(uint64(x.Index)) 57219 } 57220 } else { 57221 r.WriteMapElemKey() 57222 if z.IsJSONHandle() { 57223 z.WriteStr("\"Index\"") 57224 } else { 57225 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 57226 } 57227 r.WriteMapElemValue() 57228 if false { 57229 } else { 57230 r.EncodeUint(uint64(x.Index)) 57231 } 57232 } 57233 if yyr2 || yy2arr2 { 57234 r.WriteArrayElem() 57235 if false { 57236 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 57237 z.EncExtension(x.LastContact, yyxt10) 57238 } else { 57239 r.EncodeInt(int64(x.LastContact)) 57240 } 57241 } else { 57242 r.WriteMapElemKey() 57243 if z.IsJSONHandle() { 57244 z.WriteStr("\"LastContact\"") 57245 } else { 57246 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 57247 } 57248 r.WriteMapElemValue() 57249 if false { 57250 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 57251 z.EncExtension(x.LastContact, yyxt11) 57252 } else { 57253 r.EncodeInt(int64(x.LastContact)) 57254 } 57255 } 57256 if yyr2 || yy2arr2 { 57257 r.WriteArrayElem() 57258 if false { 57259 } else { 57260 r.EncodeBool(bool(x.KnownLeader)) 57261 } 57262 } else { 57263 r.WriteMapElemKey() 57264 if z.IsJSONHandle() { 57265 z.WriteStr("\"KnownLeader\"") 57266 } else { 57267 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 57268 } 57269 r.WriteMapElemValue() 57270 if false { 57271 } else { 57272 r.EncodeBool(bool(x.KnownLeader)) 57273 } 57274 } 57275 if yyr2 || yy2arr2 { 57276 r.WriteArrayEnd() 57277 } else { 57278 r.WriteMapEnd() 57279 } 57280 } 57281 } 57282 } 57283 57284 func (x *ScalingPolicyListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 57285 var h codecSelfer100 57286 z, r := codec1978.GenHelperDecoder(d) 57287 _, _, _ = h, z, r 57288 if false { 57289 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 57290 z.DecExtension(x, yyxt1) 57291 } else { 57292 yyct2 := r.ContainerType() 57293 if yyct2 == codecSelferValueTypeMap100 { 57294 yyl2 := r.ReadMapStart() 57295 if yyl2 == 0 { 57296 r.ReadMapEnd() 57297 } else { 57298 x.codecDecodeSelfFromMap(yyl2, d) 57299 } 57300 } else if yyct2 == codecSelferValueTypeArray100 { 57301 yyl2 := r.ReadArrayStart() 57302 if yyl2 == 0 { 57303 r.ReadArrayEnd() 57304 } else { 57305 x.codecDecodeSelfFromArray(yyl2, d) 57306 } 57307 } else { 57308 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 57309 } 57310 } 57311 } 57312 57313 func (x *ScalingPolicyListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 57314 var h codecSelfer100 57315 z, r := codec1978.GenHelperDecoder(d) 57316 _, _, _ = h, z, r 57317 var yyhl3 bool = l >= 0 57318 for yyj3 := 0; ; yyj3++ { 57319 if yyhl3 { 57320 if yyj3 >= l { 57321 break 57322 } 57323 } else { 57324 if r.CheckBreak() { 57325 break 57326 } 57327 } 57328 r.ReadMapElemKey() 57329 yys3 := z.StringView(r.DecodeStringAsBytes()) 57330 r.ReadMapElemValue() 57331 switch yys3 { 57332 case "Policies": 57333 if r.TryDecodeAsNil() { 57334 x.Policies = nil 57335 } else { 57336 if false { 57337 } else { 57338 h.decSlicePtrtoScalingPolicyListStub((*[]*ScalingPolicyListStub)(&x.Policies), d) 57339 } 57340 } 57341 case "Index": 57342 if r.TryDecodeAsNil() { 57343 x.QueryMeta.Index = 0 57344 } else { 57345 x.Index = (uint64)(r.DecodeUint64()) 57346 } 57347 case "LastContact": 57348 if r.TryDecodeAsNil() { 57349 x.QueryMeta.LastContact = 0 57350 } else { 57351 if false { 57352 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 57353 z.DecExtension(x.LastContact, yyxt8) 57354 } else { 57355 x.LastContact = (time.Duration)(r.DecodeInt64()) 57356 } 57357 } 57358 case "KnownLeader": 57359 if r.TryDecodeAsNil() { 57360 x.QueryMeta.KnownLeader = false 57361 } else { 57362 x.KnownLeader = (bool)(r.DecodeBool()) 57363 } 57364 default: 57365 z.DecStructFieldNotFound(-1, yys3) 57366 } // end switch yys3 57367 } // end for yyj3 57368 r.ReadMapEnd() 57369 } 57370 57371 func (x *ScalingPolicyListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 57372 var h codecSelfer100 57373 z, r := codec1978.GenHelperDecoder(d) 57374 _, _, _ = h, z, r 57375 var yyj10 int 57376 var yyb10 bool 57377 var yyhl10 bool = l >= 0 57378 yyj10++ 57379 if yyhl10 { 57380 yyb10 = yyj10 > l 57381 } else { 57382 yyb10 = r.CheckBreak() 57383 } 57384 if yyb10 { 57385 r.ReadArrayEnd() 57386 return 57387 } 57388 r.ReadArrayElem() 57389 if r.TryDecodeAsNil() { 57390 x.Policies = nil 57391 } else { 57392 if false { 57393 } else { 57394 h.decSlicePtrtoScalingPolicyListStub((*[]*ScalingPolicyListStub)(&x.Policies), d) 57395 } 57396 } 57397 yyj10++ 57398 if yyhl10 { 57399 yyb10 = yyj10 > l 57400 } else { 57401 yyb10 = r.CheckBreak() 57402 } 57403 if yyb10 { 57404 r.ReadArrayEnd() 57405 return 57406 } 57407 r.ReadArrayElem() 57408 if r.TryDecodeAsNil() { 57409 x.QueryMeta.Index = 0 57410 } else { 57411 x.Index = (uint64)(r.DecodeUint64()) 57412 } 57413 yyj10++ 57414 if yyhl10 { 57415 yyb10 = yyj10 > l 57416 } else { 57417 yyb10 = r.CheckBreak() 57418 } 57419 if yyb10 { 57420 r.ReadArrayEnd() 57421 return 57422 } 57423 r.ReadArrayElem() 57424 if r.TryDecodeAsNil() { 57425 x.QueryMeta.LastContact = 0 57426 } else { 57427 if false { 57428 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 57429 z.DecExtension(x.LastContact, yyxt15) 57430 } else { 57431 x.LastContact = (time.Duration)(r.DecodeInt64()) 57432 } 57433 } 57434 yyj10++ 57435 if yyhl10 { 57436 yyb10 = yyj10 > l 57437 } else { 57438 yyb10 = r.CheckBreak() 57439 } 57440 if yyb10 { 57441 r.ReadArrayEnd() 57442 return 57443 } 57444 r.ReadArrayElem() 57445 if r.TryDecodeAsNil() { 57446 x.QueryMeta.KnownLeader = false 57447 } else { 57448 x.KnownLeader = (bool)(r.DecodeBool()) 57449 } 57450 for { 57451 yyj10++ 57452 if yyhl10 { 57453 yyb10 = yyj10 > l 57454 } else { 57455 yyb10 = r.CheckBreak() 57456 } 57457 if yyb10 { 57458 break 57459 } 57460 r.ReadArrayElem() 57461 z.DecStructFieldNotFound(yyj10-1, "") 57462 } 57463 r.ReadArrayEnd() 57464 } 57465 57466 func (x *SingleDeploymentResponse) CodecEncodeSelf(e *codec1978.Encoder) { 57467 var h codecSelfer100 57468 z, r := codec1978.GenHelperEncoder(e) 57469 _, _, _ = h, z, r 57470 if x == nil { 57471 r.EncodeNil() 57472 } else { 57473 if false { 57474 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 57475 z.EncExtension(x, yyxt1) 57476 } else { 57477 yysep2 := !z.EncBinary() 57478 yy2arr2 := z.EncBasicHandle().StructToArray 57479 _, _ = yysep2, yy2arr2 57480 const yyr2 bool = false // struct tag has 'toArray' 57481 if yyr2 || yy2arr2 { 57482 r.WriteArrayStart(4) 57483 } else { 57484 r.WriteMapStart(4) 57485 } 57486 var yyn3 bool 57487 if x.Deployment == nil { 57488 yyn3 = true 57489 goto LABEL3 57490 } 57491 LABEL3: 57492 if yyr2 || yy2arr2 { 57493 if yyn3 { 57494 r.WriteArrayElem() 57495 r.EncodeNil() 57496 } else { 57497 r.WriteArrayElem() 57498 if x.Deployment == nil { 57499 r.EncodeNil() 57500 } else { 57501 x.Deployment.CodecEncodeSelf(e) 57502 } 57503 } 57504 } else { 57505 r.WriteMapElemKey() 57506 if z.IsJSONHandle() { 57507 z.WriteStr("\"Deployment\"") 57508 } else { 57509 r.EncodeStringEnc(codecSelferCcUTF8100, `Deployment`) 57510 } 57511 r.WriteMapElemValue() 57512 if yyn3 { 57513 r.EncodeNil() 57514 } else { 57515 if x.Deployment == nil { 57516 r.EncodeNil() 57517 } else { 57518 x.Deployment.CodecEncodeSelf(e) 57519 } 57520 } 57521 } 57522 if yyr2 || yy2arr2 { 57523 r.WriteArrayElem() 57524 if false { 57525 } else { 57526 r.EncodeUint(uint64(x.Index)) 57527 } 57528 } else { 57529 r.WriteMapElemKey() 57530 if z.IsJSONHandle() { 57531 z.WriteStr("\"Index\"") 57532 } else { 57533 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 57534 } 57535 r.WriteMapElemValue() 57536 if false { 57537 } else { 57538 r.EncodeUint(uint64(x.Index)) 57539 } 57540 } 57541 if yyr2 || yy2arr2 { 57542 r.WriteArrayElem() 57543 if false { 57544 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 57545 z.EncExtension(x.LastContact, yyxt10) 57546 } else { 57547 r.EncodeInt(int64(x.LastContact)) 57548 } 57549 } else { 57550 r.WriteMapElemKey() 57551 if z.IsJSONHandle() { 57552 z.WriteStr("\"LastContact\"") 57553 } else { 57554 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 57555 } 57556 r.WriteMapElemValue() 57557 if false { 57558 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 57559 z.EncExtension(x.LastContact, yyxt11) 57560 } else { 57561 r.EncodeInt(int64(x.LastContact)) 57562 } 57563 } 57564 if yyr2 || yy2arr2 { 57565 r.WriteArrayElem() 57566 if false { 57567 } else { 57568 r.EncodeBool(bool(x.KnownLeader)) 57569 } 57570 } else { 57571 r.WriteMapElemKey() 57572 if z.IsJSONHandle() { 57573 z.WriteStr("\"KnownLeader\"") 57574 } else { 57575 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 57576 } 57577 r.WriteMapElemValue() 57578 if false { 57579 } else { 57580 r.EncodeBool(bool(x.KnownLeader)) 57581 } 57582 } 57583 if yyr2 || yy2arr2 { 57584 r.WriteArrayEnd() 57585 } else { 57586 r.WriteMapEnd() 57587 } 57588 } 57589 } 57590 } 57591 57592 func (x *SingleDeploymentResponse) CodecDecodeSelf(d *codec1978.Decoder) { 57593 var h codecSelfer100 57594 z, r := codec1978.GenHelperDecoder(d) 57595 _, _, _ = h, z, r 57596 if false { 57597 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 57598 z.DecExtension(x, yyxt1) 57599 } else { 57600 yyct2 := r.ContainerType() 57601 if yyct2 == codecSelferValueTypeMap100 { 57602 yyl2 := r.ReadMapStart() 57603 if yyl2 == 0 { 57604 r.ReadMapEnd() 57605 } else { 57606 x.codecDecodeSelfFromMap(yyl2, d) 57607 } 57608 } else if yyct2 == codecSelferValueTypeArray100 { 57609 yyl2 := r.ReadArrayStart() 57610 if yyl2 == 0 { 57611 r.ReadArrayEnd() 57612 } else { 57613 x.codecDecodeSelfFromArray(yyl2, d) 57614 } 57615 } else { 57616 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 57617 } 57618 } 57619 } 57620 57621 func (x *SingleDeploymentResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 57622 var h codecSelfer100 57623 z, r := codec1978.GenHelperDecoder(d) 57624 _, _, _ = h, z, r 57625 var yyhl3 bool = l >= 0 57626 for yyj3 := 0; ; yyj3++ { 57627 if yyhl3 { 57628 if yyj3 >= l { 57629 break 57630 } 57631 } else { 57632 if r.CheckBreak() { 57633 break 57634 } 57635 } 57636 r.ReadMapElemKey() 57637 yys3 := z.StringView(r.DecodeStringAsBytes()) 57638 r.ReadMapElemValue() 57639 switch yys3 { 57640 case "Deployment": 57641 if r.TryDecodeAsNil() { 57642 if true && x.Deployment != nil { 57643 x.Deployment = nil 57644 } 57645 } else { 57646 if x.Deployment == nil { 57647 x.Deployment = new(Deployment) 57648 } 57649 57650 x.Deployment.CodecDecodeSelf(d) 57651 } 57652 case "Index": 57653 if r.TryDecodeAsNil() { 57654 x.QueryMeta.Index = 0 57655 } else { 57656 x.Index = (uint64)(r.DecodeUint64()) 57657 } 57658 case "LastContact": 57659 if r.TryDecodeAsNil() { 57660 x.QueryMeta.LastContact = 0 57661 } else { 57662 if false { 57663 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 57664 z.DecExtension(x.LastContact, yyxt7) 57665 } else { 57666 x.LastContact = (time.Duration)(r.DecodeInt64()) 57667 } 57668 } 57669 case "KnownLeader": 57670 if r.TryDecodeAsNil() { 57671 x.QueryMeta.KnownLeader = false 57672 } else { 57673 x.KnownLeader = (bool)(r.DecodeBool()) 57674 } 57675 default: 57676 z.DecStructFieldNotFound(-1, yys3) 57677 } // end switch yys3 57678 } // end for yyj3 57679 r.ReadMapEnd() 57680 } 57681 57682 func (x *SingleDeploymentResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 57683 var h codecSelfer100 57684 z, r := codec1978.GenHelperDecoder(d) 57685 _, _, _ = h, z, r 57686 var yyj9 int 57687 var yyb9 bool 57688 var yyhl9 bool = l >= 0 57689 yyj9++ 57690 if yyhl9 { 57691 yyb9 = yyj9 > l 57692 } else { 57693 yyb9 = r.CheckBreak() 57694 } 57695 if yyb9 { 57696 r.ReadArrayEnd() 57697 return 57698 } 57699 r.ReadArrayElem() 57700 if r.TryDecodeAsNil() { 57701 if true && x.Deployment != nil { 57702 x.Deployment = nil 57703 } 57704 } else { 57705 if x.Deployment == nil { 57706 x.Deployment = new(Deployment) 57707 } 57708 57709 x.Deployment.CodecDecodeSelf(d) 57710 } 57711 yyj9++ 57712 if yyhl9 { 57713 yyb9 = yyj9 > l 57714 } else { 57715 yyb9 = r.CheckBreak() 57716 } 57717 if yyb9 { 57718 r.ReadArrayEnd() 57719 return 57720 } 57721 r.ReadArrayElem() 57722 if r.TryDecodeAsNil() { 57723 x.QueryMeta.Index = 0 57724 } else { 57725 x.Index = (uint64)(r.DecodeUint64()) 57726 } 57727 yyj9++ 57728 if yyhl9 { 57729 yyb9 = yyj9 > l 57730 } else { 57731 yyb9 = r.CheckBreak() 57732 } 57733 if yyb9 { 57734 r.ReadArrayEnd() 57735 return 57736 } 57737 r.ReadArrayElem() 57738 if r.TryDecodeAsNil() { 57739 x.QueryMeta.LastContact = 0 57740 } else { 57741 if false { 57742 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 57743 z.DecExtension(x.LastContact, yyxt13) 57744 } else { 57745 x.LastContact = (time.Duration)(r.DecodeInt64()) 57746 } 57747 } 57748 yyj9++ 57749 if yyhl9 { 57750 yyb9 = yyj9 > l 57751 } else { 57752 yyb9 = r.CheckBreak() 57753 } 57754 if yyb9 { 57755 r.ReadArrayEnd() 57756 return 57757 } 57758 r.ReadArrayElem() 57759 if r.TryDecodeAsNil() { 57760 x.QueryMeta.KnownLeader = false 57761 } else { 57762 x.KnownLeader = (bool)(r.DecodeBool()) 57763 } 57764 for { 57765 yyj9++ 57766 if yyhl9 { 57767 yyb9 = yyj9 > l 57768 } else { 57769 yyb9 = r.CheckBreak() 57770 } 57771 if yyb9 { 57772 break 57773 } 57774 r.ReadArrayElem() 57775 z.DecStructFieldNotFound(yyj9-1, "") 57776 } 57777 r.ReadArrayEnd() 57778 } 57779 57780 func (x *GenericResponse) CodecEncodeSelf(e *codec1978.Encoder) { 57781 var h codecSelfer100 57782 z, r := codec1978.GenHelperEncoder(e) 57783 _, _, _ = h, z, r 57784 if x == nil { 57785 r.EncodeNil() 57786 } else { 57787 if false { 57788 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 57789 z.EncExtension(x, yyxt1) 57790 } else { 57791 yysep2 := !z.EncBinary() 57792 yy2arr2 := z.EncBasicHandle().StructToArray 57793 _, _ = yysep2, yy2arr2 57794 const yyr2 bool = false // struct tag has 'toArray' 57795 if yyr2 || yy2arr2 { 57796 r.WriteArrayStart(1) 57797 } else { 57798 r.WriteMapStart(1) 57799 } 57800 if yyr2 || yy2arr2 { 57801 r.WriteArrayElem() 57802 if false { 57803 } else { 57804 r.EncodeUint(uint64(x.Index)) 57805 } 57806 } else { 57807 r.WriteMapElemKey() 57808 if z.IsJSONHandle() { 57809 z.WriteStr("\"Index\"") 57810 } else { 57811 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 57812 } 57813 r.WriteMapElemValue() 57814 if false { 57815 } else { 57816 r.EncodeUint(uint64(x.Index)) 57817 } 57818 } 57819 if yyr2 || yy2arr2 { 57820 r.WriteArrayEnd() 57821 } else { 57822 r.WriteMapEnd() 57823 } 57824 } 57825 } 57826 } 57827 57828 func (x *GenericResponse) CodecDecodeSelf(d *codec1978.Decoder) { 57829 var h codecSelfer100 57830 z, r := codec1978.GenHelperDecoder(d) 57831 _, _, _ = h, z, r 57832 if false { 57833 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 57834 z.DecExtension(x, yyxt1) 57835 } else { 57836 yyct2 := r.ContainerType() 57837 if yyct2 == codecSelferValueTypeMap100 { 57838 yyl2 := r.ReadMapStart() 57839 if yyl2 == 0 { 57840 r.ReadMapEnd() 57841 } else { 57842 x.codecDecodeSelfFromMap(yyl2, d) 57843 } 57844 } else if yyct2 == codecSelferValueTypeArray100 { 57845 yyl2 := r.ReadArrayStart() 57846 if yyl2 == 0 { 57847 r.ReadArrayEnd() 57848 } else { 57849 x.codecDecodeSelfFromArray(yyl2, d) 57850 } 57851 } else { 57852 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 57853 } 57854 } 57855 } 57856 57857 func (x *GenericResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 57858 var h codecSelfer100 57859 z, r := codec1978.GenHelperDecoder(d) 57860 _, _, _ = h, z, r 57861 var yyhl3 bool = l >= 0 57862 for yyj3 := 0; ; yyj3++ { 57863 if yyhl3 { 57864 if yyj3 >= l { 57865 break 57866 } 57867 } else { 57868 if r.CheckBreak() { 57869 break 57870 } 57871 } 57872 r.ReadMapElemKey() 57873 yys3 := z.StringView(r.DecodeStringAsBytes()) 57874 r.ReadMapElemValue() 57875 switch yys3 { 57876 case "Index": 57877 if r.TryDecodeAsNil() { 57878 x.WriteMeta.Index = 0 57879 } else { 57880 x.Index = (uint64)(r.DecodeUint64()) 57881 } 57882 default: 57883 z.DecStructFieldNotFound(-1, yys3) 57884 } // end switch yys3 57885 } // end for yyj3 57886 r.ReadMapEnd() 57887 } 57888 57889 func (x *GenericResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 57890 var h codecSelfer100 57891 z, r := codec1978.GenHelperDecoder(d) 57892 _, _, _ = h, z, r 57893 var yyj5 int 57894 var yyb5 bool 57895 var yyhl5 bool = l >= 0 57896 yyj5++ 57897 if yyhl5 { 57898 yyb5 = yyj5 > l 57899 } else { 57900 yyb5 = r.CheckBreak() 57901 } 57902 if yyb5 { 57903 r.ReadArrayEnd() 57904 return 57905 } 57906 r.ReadArrayElem() 57907 if r.TryDecodeAsNil() { 57908 x.WriteMeta.Index = 0 57909 } else { 57910 x.Index = (uint64)(r.DecodeUint64()) 57911 } 57912 for { 57913 yyj5++ 57914 if yyhl5 { 57915 yyb5 = yyj5 > l 57916 } else { 57917 yyb5 = r.CheckBreak() 57918 } 57919 if yyb5 { 57920 break 57921 } 57922 r.ReadArrayElem() 57923 z.DecStructFieldNotFound(yyj5-1, "") 57924 } 57925 r.ReadArrayEnd() 57926 } 57927 57928 func (x *VersionResponse) CodecEncodeSelf(e *codec1978.Encoder) { 57929 var h codecSelfer100 57930 z, r := codec1978.GenHelperEncoder(e) 57931 _, _, _ = h, z, r 57932 if x == nil { 57933 r.EncodeNil() 57934 } else { 57935 if false { 57936 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 57937 z.EncExtension(x, yyxt1) 57938 } else { 57939 yysep2 := !z.EncBinary() 57940 yy2arr2 := z.EncBasicHandle().StructToArray 57941 _, _ = yysep2, yy2arr2 57942 const yyr2 bool = false // struct tag has 'toArray' 57943 if yyr2 || yy2arr2 { 57944 r.WriteArrayStart(5) 57945 } else { 57946 r.WriteMapStart(5) 57947 } 57948 if yyr2 || yy2arr2 { 57949 r.WriteArrayElem() 57950 if false { 57951 } else { 57952 if z.EncBasicHandle().StringToRaw { 57953 r.EncodeStringBytesRaw(z.BytesView(string(x.Build))) 57954 } else { 57955 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Build)) 57956 } 57957 } 57958 } else { 57959 r.WriteMapElemKey() 57960 if z.IsJSONHandle() { 57961 z.WriteStr("\"Build\"") 57962 } else { 57963 r.EncodeStringEnc(codecSelferCcUTF8100, `Build`) 57964 } 57965 r.WriteMapElemValue() 57966 if false { 57967 } else { 57968 if z.EncBasicHandle().StringToRaw { 57969 r.EncodeStringBytesRaw(z.BytesView(string(x.Build))) 57970 } else { 57971 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Build)) 57972 } 57973 } 57974 } 57975 if yyr2 || yy2arr2 { 57976 r.WriteArrayElem() 57977 if x.Versions == nil { 57978 r.EncodeNil() 57979 } else { 57980 if false { 57981 } else { 57982 z.F.EncMapStringIntV(x.Versions, e) 57983 } 57984 } 57985 } else { 57986 r.WriteMapElemKey() 57987 if z.IsJSONHandle() { 57988 z.WriteStr("\"Versions\"") 57989 } else { 57990 r.EncodeStringEnc(codecSelferCcUTF8100, `Versions`) 57991 } 57992 r.WriteMapElemValue() 57993 if x.Versions == nil { 57994 r.EncodeNil() 57995 } else { 57996 if false { 57997 } else { 57998 z.F.EncMapStringIntV(x.Versions, e) 57999 } 58000 } 58001 } 58002 if yyr2 || yy2arr2 { 58003 r.WriteArrayElem() 58004 if false { 58005 } else { 58006 r.EncodeUint(uint64(x.Index)) 58007 } 58008 } else { 58009 r.WriteMapElemKey() 58010 if z.IsJSONHandle() { 58011 z.WriteStr("\"Index\"") 58012 } else { 58013 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 58014 } 58015 r.WriteMapElemValue() 58016 if false { 58017 } else { 58018 r.EncodeUint(uint64(x.Index)) 58019 } 58020 } 58021 if yyr2 || yy2arr2 { 58022 r.WriteArrayElem() 58023 if false { 58024 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 58025 z.EncExtension(x.LastContact, yyxt13) 58026 } else { 58027 r.EncodeInt(int64(x.LastContact)) 58028 } 58029 } else { 58030 r.WriteMapElemKey() 58031 if z.IsJSONHandle() { 58032 z.WriteStr("\"LastContact\"") 58033 } else { 58034 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 58035 } 58036 r.WriteMapElemValue() 58037 if false { 58038 } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { 58039 z.EncExtension(x.LastContact, yyxt14) 58040 } else { 58041 r.EncodeInt(int64(x.LastContact)) 58042 } 58043 } 58044 if yyr2 || yy2arr2 { 58045 r.WriteArrayElem() 58046 if false { 58047 } else { 58048 r.EncodeBool(bool(x.KnownLeader)) 58049 } 58050 } else { 58051 r.WriteMapElemKey() 58052 if z.IsJSONHandle() { 58053 z.WriteStr("\"KnownLeader\"") 58054 } else { 58055 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 58056 } 58057 r.WriteMapElemValue() 58058 if false { 58059 } else { 58060 r.EncodeBool(bool(x.KnownLeader)) 58061 } 58062 } 58063 if yyr2 || yy2arr2 { 58064 r.WriteArrayEnd() 58065 } else { 58066 r.WriteMapEnd() 58067 } 58068 } 58069 } 58070 } 58071 58072 func (x *VersionResponse) CodecDecodeSelf(d *codec1978.Decoder) { 58073 var h codecSelfer100 58074 z, r := codec1978.GenHelperDecoder(d) 58075 _, _, _ = h, z, r 58076 if false { 58077 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 58078 z.DecExtension(x, yyxt1) 58079 } else { 58080 yyct2 := r.ContainerType() 58081 if yyct2 == codecSelferValueTypeMap100 { 58082 yyl2 := r.ReadMapStart() 58083 if yyl2 == 0 { 58084 r.ReadMapEnd() 58085 } else { 58086 x.codecDecodeSelfFromMap(yyl2, d) 58087 } 58088 } else if yyct2 == codecSelferValueTypeArray100 { 58089 yyl2 := r.ReadArrayStart() 58090 if yyl2 == 0 { 58091 r.ReadArrayEnd() 58092 } else { 58093 x.codecDecodeSelfFromArray(yyl2, d) 58094 } 58095 } else { 58096 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 58097 } 58098 } 58099 } 58100 58101 func (x *VersionResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 58102 var h codecSelfer100 58103 z, r := codec1978.GenHelperDecoder(d) 58104 _, _, _ = h, z, r 58105 var yyhl3 bool = l >= 0 58106 for yyj3 := 0; ; yyj3++ { 58107 if yyhl3 { 58108 if yyj3 >= l { 58109 break 58110 } 58111 } else { 58112 if r.CheckBreak() { 58113 break 58114 } 58115 } 58116 r.ReadMapElemKey() 58117 yys3 := z.StringView(r.DecodeStringAsBytes()) 58118 r.ReadMapElemValue() 58119 switch yys3 { 58120 case "Build": 58121 if r.TryDecodeAsNil() { 58122 x.Build = "" 58123 } else { 58124 x.Build = (string)(r.DecodeString()) 58125 } 58126 case "Versions": 58127 if r.TryDecodeAsNil() { 58128 x.Versions = nil 58129 } else { 58130 if false { 58131 } else { 58132 z.F.DecMapStringIntX(&x.Versions, d) 58133 } 58134 } 58135 case "Index": 58136 if r.TryDecodeAsNil() { 58137 x.QueryMeta.Index = 0 58138 } else { 58139 x.Index = (uint64)(r.DecodeUint64()) 58140 } 58141 case "LastContact": 58142 if r.TryDecodeAsNil() { 58143 x.QueryMeta.LastContact = 0 58144 } else { 58145 if false { 58146 } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { 58147 z.DecExtension(x.LastContact, yyxt9) 58148 } else { 58149 x.LastContact = (time.Duration)(r.DecodeInt64()) 58150 } 58151 } 58152 case "KnownLeader": 58153 if r.TryDecodeAsNil() { 58154 x.QueryMeta.KnownLeader = false 58155 } else { 58156 x.KnownLeader = (bool)(r.DecodeBool()) 58157 } 58158 default: 58159 z.DecStructFieldNotFound(-1, yys3) 58160 } // end switch yys3 58161 } // end for yyj3 58162 r.ReadMapEnd() 58163 } 58164 58165 func (x *VersionResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 58166 var h codecSelfer100 58167 z, r := codec1978.GenHelperDecoder(d) 58168 _, _, _ = h, z, r 58169 var yyj11 int 58170 var yyb11 bool 58171 var yyhl11 bool = l >= 0 58172 yyj11++ 58173 if yyhl11 { 58174 yyb11 = yyj11 > l 58175 } else { 58176 yyb11 = r.CheckBreak() 58177 } 58178 if yyb11 { 58179 r.ReadArrayEnd() 58180 return 58181 } 58182 r.ReadArrayElem() 58183 if r.TryDecodeAsNil() { 58184 x.Build = "" 58185 } else { 58186 x.Build = (string)(r.DecodeString()) 58187 } 58188 yyj11++ 58189 if yyhl11 { 58190 yyb11 = yyj11 > l 58191 } else { 58192 yyb11 = r.CheckBreak() 58193 } 58194 if yyb11 { 58195 r.ReadArrayEnd() 58196 return 58197 } 58198 r.ReadArrayElem() 58199 if r.TryDecodeAsNil() { 58200 x.Versions = nil 58201 } else { 58202 if false { 58203 } else { 58204 z.F.DecMapStringIntX(&x.Versions, d) 58205 } 58206 } 58207 yyj11++ 58208 if yyhl11 { 58209 yyb11 = yyj11 > l 58210 } else { 58211 yyb11 = r.CheckBreak() 58212 } 58213 if yyb11 { 58214 r.ReadArrayEnd() 58215 return 58216 } 58217 r.ReadArrayElem() 58218 if r.TryDecodeAsNil() { 58219 x.QueryMeta.Index = 0 58220 } else { 58221 x.Index = (uint64)(r.DecodeUint64()) 58222 } 58223 yyj11++ 58224 if yyhl11 { 58225 yyb11 = yyj11 > l 58226 } else { 58227 yyb11 = r.CheckBreak() 58228 } 58229 if yyb11 { 58230 r.ReadArrayEnd() 58231 return 58232 } 58233 r.ReadArrayElem() 58234 if r.TryDecodeAsNil() { 58235 x.QueryMeta.LastContact = 0 58236 } else { 58237 if false { 58238 } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { 58239 z.DecExtension(x.LastContact, yyxt17) 58240 } else { 58241 x.LastContact = (time.Duration)(r.DecodeInt64()) 58242 } 58243 } 58244 yyj11++ 58245 if yyhl11 { 58246 yyb11 = yyj11 > l 58247 } else { 58248 yyb11 = r.CheckBreak() 58249 } 58250 if yyb11 { 58251 r.ReadArrayEnd() 58252 return 58253 } 58254 r.ReadArrayElem() 58255 if r.TryDecodeAsNil() { 58256 x.QueryMeta.KnownLeader = false 58257 } else { 58258 x.KnownLeader = (bool)(r.DecodeBool()) 58259 } 58260 for { 58261 yyj11++ 58262 if yyhl11 { 58263 yyb11 = yyj11 > l 58264 } else { 58265 yyb11 = r.CheckBreak() 58266 } 58267 if yyb11 { 58268 break 58269 } 58270 r.ReadArrayElem() 58271 z.DecStructFieldNotFound(yyj11-1, "") 58272 } 58273 r.ReadArrayEnd() 58274 } 58275 58276 func (x *JobRegisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { 58277 var h codecSelfer100 58278 z, r := codec1978.GenHelperEncoder(e) 58279 _, _, _ = h, z, r 58280 if x == nil { 58281 r.EncodeNil() 58282 } else { 58283 if false { 58284 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 58285 z.EncExtension(x, yyxt1) 58286 } else { 58287 yysep2 := !z.EncBinary() 58288 yy2arr2 := z.EncBasicHandle().StructToArray 58289 _, _ = yysep2, yy2arr2 58290 const yyr2 bool = false // struct tag has 'toArray' 58291 if yyr2 || yy2arr2 { 58292 r.WriteArrayStart(7) 58293 } else { 58294 r.WriteMapStart(7) 58295 } 58296 if yyr2 || yy2arr2 { 58297 r.WriteArrayElem() 58298 if false { 58299 } else { 58300 if z.EncBasicHandle().StringToRaw { 58301 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 58302 } else { 58303 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 58304 } 58305 } 58306 } else { 58307 r.WriteMapElemKey() 58308 if z.IsJSONHandle() { 58309 z.WriteStr("\"EvalID\"") 58310 } else { 58311 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 58312 } 58313 r.WriteMapElemValue() 58314 if false { 58315 } else { 58316 if z.EncBasicHandle().StringToRaw { 58317 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 58318 } else { 58319 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 58320 } 58321 } 58322 } 58323 if yyr2 || yy2arr2 { 58324 r.WriteArrayElem() 58325 if false { 58326 } else { 58327 r.EncodeUint(uint64(x.EvalCreateIndex)) 58328 } 58329 } else { 58330 r.WriteMapElemKey() 58331 if z.IsJSONHandle() { 58332 z.WriteStr("\"EvalCreateIndex\"") 58333 } else { 58334 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) 58335 } 58336 r.WriteMapElemValue() 58337 if false { 58338 } else { 58339 r.EncodeUint(uint64(x.EvalCreateIndex)) 58340 } 58341 } 58342 if yyr2 || yy2arr2 { 58343 r.WriteArrayElem() 58344 if false { 58345 } else { 58346 r.EncodeUint(uint64(x.JobModifyIndex)) 58347 } 58348 } else { 58349 r.WriteMapElemKey() 58350 if z.IsJSONHandle() { 58351 z.WriteStr("\"JobModifyIndex\"") 58352 } else { 58353 r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) 58354 } 58355 r.WriteMapElemValue() 58356 if false { 58357 } else { 58358 r.EncodeUint(uint64(x.JobModifyIndex)) 58359 } 58360 } 58361 if yyr2 || yy2arr2 { 58362 r.WriteArrayElem() 58363 if false { 58364 } else { 58365 if z.EncBasicHandle().StringToRaw { 58366 r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) 58367 } else { 58368 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) 58369 } 58370 } 58371 } else { 58372 r.WriteMapElemKey() 58373 if z.IsJSONHandle() { 58374 z.WriteStr("\"Warnings\"") 58375 } else { 58376 r.EncodeStringEnc(codecSelferCcUTF8100, `Warnings`) 58377 } 58378 r.WriteMapElemValue() 58379 if false { 58380 } else { 58381 if z.EncBasicHandle().StringToRaw { 58382 r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) 58383 } else { 58384 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) 58385 } 58386 } 58387 } 58388 if yyr2 || yy2arr2 { 58389 r.WriteArrayElem() 58390 if false { 58391 } else { 58392 r.EncodeUint(uint64(x.Index)) 58393 } 58394 } else { 58395 r.WriteMapElemKey() 58396 if z.IsJSONHandle() { 58397 z.WriteStr("\"Index\"") 58398 } else { 58399 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 58400 } 58401 r.WriteMapElemValue() 58402 if false { 58403 } else { 58404 r.EncodeUint(uint64(x.Index)) 58405 } 58406 } 58407 if yyr2 || yy2arr2 { 58408 r.WriteArrayElem() 58409 if false { 58410 } else if yyxt19 := z.Extension(z.I2Rtid(x.LastContact)); yyxt19 != nil { 58411 z.EncExtension(x.LastContact, yyxt19) 58412 } else { 58413 r.EncodeInt(int64(x.LastContact)) 58414 } 58415 } else { 58416 r.WriteMapElemKey() 58417 if z.IsJSONHandle() { 58418 z.WriteStr("\"LastContact\"") 58419 } else { 58420 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 58421 } 58422 r.WriteMapElemValue() 58423 if false { 58424 } else if yyxt20 := z.Extension(z.I2Rtid(x.LastContact)); yyxt20 != nil { 58425 z.EncExtension(x.LastContact, yyxt20) 58426 } else { 58427 r.EncodeInt(int64(x.LastContact)) 58428 } 58429 } 58430 if yyr2 || yy2arr2 { 58431 r.WriteArrayElem() 58432 if false { 58433 } else { 58434 r.EncodeBool(bool(x.KnownLeader)) 58435 } 58436 } else { 58437 r.WriteMapElemKey() 58438 if z.IsJSONHandle() { 58439 z.WriteStr("\"KnownLeader\"") 58440 } else { 58441 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 58442 } 58443 r.WriteMapElemValue() 58444 if false { 58445 } else { 58446 r.EncodeBool(bool(x.KnownLeader)) 58447 } 58448 } 58449 if yyr2 || yy2arr2 { 58450 r.WriteArrayEnd() 58451 } else { 58452 r.WriteMapEnd() 58453 } 58454 } 58455 } 58456 } 58457 58458 func (x *JobRegisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { 58459 var h codecSelfer100 58460 z, r := codec1978.GenHelperDecoder(d) 58461 _, _, _ = h, z, r 58462 if false { 58463 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 58464 z.DecExtension(x, yyxt1) 58465 } else { 58466 yyct2 := r.ContainerType() 58467 if yyct2 == codecSelferValueTypeMap100 { 58468 yyl2 := r.ReadMapStart() 58469 if yyl2 == 0 { 58470 r.ReadMapEnd() 58471 } else { 58472 x.codecDecodeSelfFromMap(yyl2, d) 58473 } 58474 } else if yyct2 == codecSelferValueTypeArray100 { 58475 yyl2 := r.ReadArrayStart() 58476 if yyl2 == 0 { 58477 r.ReadArrayEnd() 58478 } else { 58479 x.codecDecodeSelfFromArray(yyl2, d) 58480 } 58481 } else { 58482 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 58483 } 58484 } 58485 } 58486 58487 func (x *JobRegisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 58488 var h codecSelfer100 58489 z, r := codec1978.GenHelperDecoder(d) 58490 _, _, _ = h, z, r 58491 var yyhl3 bool = l >= 0 58492 for yyj3 := 0; ; yyj3++ { 58493 if yyhl3 { 58494 if yyj3 >= l { 58495 break 58496 } 58497 } else { 58498 if r.CheckBreak() { 58499 break 58500 } 58501 } 58502 r.ReadMapElemKey() 58503 yys3 := z.StringView(r.DecodeStringAsBytes()) 58504 r.ReadMapElemValue() 58505 switch yys3 { 58506 case "EvalID": 58507 if r.TryDecodeAsNil() { 58508 x.EvalID = "" 58509 } else { 58510 x.EvalID = (string)(r.DecodeString()) 58511 } 58512 case "EvalCreateIndex": 58513 if r.TryDecodeAsNil() { 58514 x.EvalCreateIndex = 0 58515 } else { 58516 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 58517 } 58518 case "JobModifyIndex": 58519 if r.TryDecodeAsNil() { 58520 x.JobModifyIndex = 0 58521 } else { 58522 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 58523 } 58524 case "Warnings": 58525 if r.TryDecodeAsNil() { 58526 x.Warnings = "" 58527 } else { 58528 x.Warnings = (string)(r.DecodeString()) 58529 } 58530 case "Index": 58531 if r.TryDecodeAsNil() { 58532 x.QueryMeta.Index = 0 58533 } else { 58534 x.Index = (uint64)(r.DecodeUint64()) 58535 } 58536 case "LastContact": 58537 if r.TryDecodeAsNil() { 58538 x.QueryMeta.LastContact = 0 58539 } else { 58540 if false { 58541 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 58542 z.DecExtension(x.LastContact, yyxt10) 58543 } else { 58544 x.LastContact = (time.Duration)(r.DecodeInt64()) 58545 } 58546 } 58547 case "KnownLeader": 58548 if r.TryDecodeAsNil() { 58549 x.QueryMeta.KnownLeader = false 58550 } else { 58551 x.KnownLeader = (bool)(r.DecodeBool()) 58552 } 58553 default: 58554 z.DecStructFieldNotFound(-1, yys3) 58555 } // end switch yys3 58556 } // end for yyj3 58557 r.ReadMapEnd() 58558 } 58559 58560 func (x *JobRegisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 58561 var h codecSelfer100 58562 z, r := codec1978.GenHelperDecoder(d) 58563 _, _, _ = h, z, r 58564 var yyj12 int 58565 var yyb12 bool 58566 var yyhl12 bool = l >= 0 58567 yyj12++ 58568 if yyhl12 { 58569 yyb12 = yyj12 > l 58570 } else { 58571 yyb12 = r.CheckBreak() 58572 } 58573 if yyb12 { 58574 r.ReadArrayEnd() 58575 return 58576 } 58577 r.ReadArrayElem() 58578 if r.TryDecodeAsNil() { 58579 x.EvalID = "" 58580 } else { 58581 x.EvalID = (string)(r.DecodeString()) 58582 } 58583 yyj12++ 58584 if yyhl12 { 58585 yyb12 = yyj12 > l 58586 } else { 58587 yyb12 = r.CheckBreak() 58588 } 58589 if yyb12 { 58590 r.ReadArrayEnd() 58591 return 58592 } 58593 r.ReadArrayElem() 58594 if r.TryDecodeAsNil() { 58595 x.EvalCreateIndex = 0 58596 } else { 58597 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 58598 } 58599 yyj12++ 58600 if yyhl12 { 58601 yyb12 = yyj12 > l 58602 } else { 58603 yyb12 = r.CheckBreak() 58604 } 58605 if yyb12 { 58606 r.ReadArrayEnd() 58607 return 58608 } 58609 r.ReadArrayElem() 58610 if r.TryDecodeAsNil() { 58611 x.JobModifyIndex = 0 58612 } else { 58613 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 58614 } 58615 yyj12++ 58616 if yyhl12 { 58617 yyb12 = yyj12 > l 58618 } else { 58619 yyb12 = r.CheckBreak() 58620 } 58621 if yyb12 { 58622 r.ReadArrayEnd() 58623 return 58624 } 58625 r.ReadArrayElem() 58626 if r.TryDecodeAsNil() { 58627 x.Warnings = "" 58628 } else { 58629 x.Warnings = (string)(r.DecodeString()) 58630 } 58631 yyj12++ 58632 if yyhl12 { 58633 yyb12 = yyj12 > l 58634 } else { 58635 yyb12 = r.CheckBreak() 58636 } 58637 if yyb12 { 58638 r.ReadArrayEnd() 58639 return 58640 } 58641 r.ReadArrayElem() 58642 if r.TryDecodeAsNil() { 58643 x.QueryMeta.Index = 0 58644 } else { 58645 x.Index = (uint64)(r.DecodeUint64()) 58646 } 58647 yyj12++ 58648 if yyhl12 { 58649 yyb12 = yyj12 > l 58650 } else { 58651 yyb12 = r.CheckBreak() 58652 } 58653 if yyb12 { 58654 r.ReadArrayEnd() 58655 return 58656 } 58657 r.ReadArrayElem() 58658 if r.TryDecodeAsNil() { 58659 x.QueryMeta.LastContact = 0 58660 } else { 58661 if false { 58662 } else if yyxt19 := z.Extension(z.I2Rtid(x.LastContact)); yyxt19 != nil { 58663 z.DecExtension(x.LastContact, yyxt19) 58664 } else { 58665 x.LastContact = (time.Duration)(r.DecodeInt64()) 58666 } 58667 } 58668 yyj12++ 58669 if yyhl12 { 58670 yyb12 = yyj12 > l 58671 } else { 58672 yyb12 = r.CheckBreak() 58673 } 58674 if yyb12 { 58675 r.ReadArrayEnd() 58676 return 58677 } 58678 r.ReadArrayElem() 58679 if r.TryDecodeAsNil() { 58680 x.QueryMeta.KnownLeader = false 58681 } else { 58682 x.KnownLeader = (bool)(r.DecodeBool()) 58683 } 58684 for { 58685 yyj12++ 58686 if yyhl12 { 58687 yyb12 = yyj12 > l 58688 } else { 58689 yyb12 = r.CheckBreak() 58690 } 58691 if yyb12 { 58692 break 58693 } 58694 r.ReadArrayElem() 58695 z.DecStructFieldNotFound(yyj12-1, "") 58696 } 58697 r.ReadArrayEnd() 58698 } 58699 58700 func (x *JobDeregisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { 58701 var h codecSelfer100 58702 z, r := codec1978.GenHelperEncoder(e) 58703 _, _, _ = h, z, r 58704 if x == nil { 58705 r.EncodeNil() 58706 } else { 58707 if false { 58708 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 58709 z.EncExtension(x, yyxt1) 58710 } else { 58711 yysep2 := !z.EncBinary() 58712 yy2arr2 := z.EncBasicHandle().StructToArray 58713 _, _ = yysep2, yy2arr2 58714 const yyr2 bool = false // struct tag has 'toArray' 58715 if yyr2 || yy2arr2 { 58716 r.WriteArrayStart(8) 58717 } else { 58718 r.WriteMapStart(8) 58719 } 58720 if yyr2 || yy2arr2 { 58721 r.WriteArrayElem() 58722 if false { 58723 } else { 58724 if z.EncBasicHandle().StringToRaw { 58725 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 58726 } else { 58727 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 58728 } 58729 } 58730 } else { 58731 r.WriteMapElemKey() 58732 if z.IsJSONHandle() { 58733 z.WriteStr("\"EvalID\"") 58734 } else { 58735 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 58736 } 58737 r.WriteMapElemValue() 58738 if false { 58739 } else { 58740 if z.EncBasicHandle().StringToRaw { 58741 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 58742 } else { 58743 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 58744 } 58745 } 58746 } 58747 if yyr2 || yy2arr2 { 58748 r.WriteArrayElem() 58749 if false { 58750 } else { 58751 r.EncodeUint(uint64(x.EvalCreateIndex)) 58752 } 58753 } else { 58754 r.WriteMapElemKey() 58755 if z.IsJSONHandle() { 58756 z.WriteStr("\"EvalCreateIndex\"") 58757 } else { 58758 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) 58759 } 58760 r.WriteMapElemValue() 58761 if false { 58762 } else { 58763 r.EncodeUint(uint64(x.EvalCreateIndex)) 58764 } 58765 } 58766 if yyr2 || yy2arr2 { 58767 r.WriteArrayElem() 58768 if false { 58769 } else { 58770 r.EncodeUint(uint64(x.JobModifyIndex)) 58771 } 58772 } else { 58773 r.WriteMapElemKey() 58774 if z.IsJSONHandle() { 58775 z.WriteStr("\"JobModifyIndex\"") 58776 } else { 58777 r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) 58778 } 58779 r.WriteMapElemValue() 58780 if false { 58781 } else { 58782 r.EncodeUint(uint64(x.JobModifyIndex)) 58783 } 58784 } 58785 if yyr2 || yy2arr2 { 58786 r.WriteArrayElem() 58787 if false { 58788 } else { 58789 if z.EncBasicHandle().StringToRaw { 58790 r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeEvalID))) 58791 } else { 58792 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeEvalID)) 58793 } 58794 } 58795 } else { 58796 r.WriteMapElemKey() 58797 if z.IsJSONHandle() { 58798 z.WriteStr("\"VolumeEvalID\"") 58799 } else { 58800 r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeEvalID`) 58801 } 58802 r.WriteMapElemValue() 58803 if false { 58804 } else { 58805 if z.EncBasicHandle().StringToRaw { 58806 r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeEvalID))) 58807 } else { 58808 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeEvalID)) 58809 } 58810 } 58811 } 58812 if yyr2 || yy2arr2 { 58813 r.WriteArrayElem() 58814 if false { 58815 } else { 58816 r.EncodeUint(uint64(x.VolumeEvalIndex)) 58817 } 58818 } else { 58819 r.WriteMapElemKey() 58820 if z.IsJSONHandle() { 58821 z.WriteStr("\"VolumeEvalIndex\"") 58822 } else { 58823 r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeEvalIndex`) 58824 } 58825 r.WriteMapElemValue() 58826 if false { 58827 } else { 58828 r.EncodeUint(uint64(x.VolumeEvalIndex)) 58829 } 58830 } 58831 if yyr2 || yy2arr2 { 58832 r.WriteArrayElem() 58833 if false { 58834 } else { 58835 r.EncodeUint(uint64(x.Index)) 58836 } 58837 } else { 58838 r.WriteMapElemKey() 58839 if z.IsJSONHandle() { 58840 z.WriteStr("\"Index\"") 58841 } else { 58842 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 58843 } 58844 r.WriteMapElemValue() 58845 if false { 58846 } else { 58847 r.EncodeUint(uint64(x.Index)) 58848 } 58849 } 58850 if yyr2 || yy2arr2 { 58851 r.WriteArrayElem() 58852 if false { 58853 } else if yyxt22 := z.Extension(z.I2Rtid(x.LastContact)); yyxt22 != nil { 58854 z.EncExtension(x.LastContact, yyxt22) 58855 } else { 58856 r.EncodeInt(int64(x.LastContact)) 58857 } 58858 } else { 58859 r.WriteMapElemKey() 58860 if z.IsJSONHandle() { 58861 z.WriteStr("\"LastContact\"") 58862 } else { 58863 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 58864 } 58865 r.WriteMapElemValue() 58866 if false { 58867 } else if yyxt23 := z.Extension(z.I2Rtid(x.LastContact)); yyxt23 != nil { 58868 z.EncExtension(x.LastContact, yyxt23) 58869 } else { 58870 r.EncodeInt(int64(x.LastContact)) 58871 } 58872 } 58873 if yyr2 || yy2arr2 { 58874 r.WriteArrayElem() 58875 if false { 58876 } else { 58877 r.EncodeBool(bool(x.KnownLeader)) 58878 } 58879 } else { 58880 r.WriteMapElemKey() 58881 if z.IsJSONHandle() { 58882 z.WriteStr("\"KnownLeader\"") 58883 } else { 58884 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 58885 } 58886 r.WriteMapElemValue() 58887 if false { 58888 } else { 58889 r.EncodeBool(bool(x.KnownLeader)) 58890 } 58891 } 58892 if yyr2 || yy2arr2 { 58893 r.WriteArrayEnd() 58894 } else { 58895 r.WriteMapEnd() 58896 } 58897 } 58898 } 58899 } 58900 58901 func (x *JobDeregisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { 58902 var h codecSelfer100 58903 z, r := codec1978.GenHelperDecoder(d) 58904 _, _, _ = h, z, r 58905 if false { 58906 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 58907 z.DecExtension(x, yyxt1) 58908 } else { 58909 yyct2 := r.ContainerType() 58910 if yyct2 == codecSelferValueTypeMap100 { 58911 yyl2 := r.ReadMapStart() 58912 if yyl2 == 0 { 58913 r.ReadMapEnd() 58914 } else { 58915 x.codecDecodeSelfFromMap(yyl2, d) 58916 } 58917 } else if yyct2 == codecSelferValueTypeArray100 { 58918 yyl2 := r.ReadArrayStart() 58919 if yyl2 == 0 { 58920 r.ReadArrayEnd() 58921 } else { 58922 x.codecDecodeSelfFromArray(yyl2, d) 58923 } 58924 } else { 58925 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 58926 } 58927 } 58928 } 58929 58930 func (x *JobDeregisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 58931 var h codecSelfer100 58932 z, r := codec1978.GenHelperDecoder(d) 58933 _, _, _ = h, z, r 58934 var yyhl3 bool = l >= 0 58935 for yyj3 := 0; ; yyj3++ { 58936 if yyhl3 { 58937 if yyj3 >= l { 58938 break 58939 } 58940 } else { 58941 if r.CheckBreak() { 58942 break 58943 } 58944 } 58945 r.ReadMapElemKey() 58946 yys3 := z.StringView(r.DecodeStringAsBytes()) 58947 r.ReadMapElemValue() 58948 switch yys3 { 58949 case "EvalID": 58950 if r.TryDecodeAsNil() { 58951 x.EvalID = "" 58952 } else { 58953 x.EvalID = (string)(r.DecodeString()) 58954 } 58955 case "EvalCreateIndex": 58956 if r.TryDecodeAsNil() { 58957 x.EvalCreateIndex = 0 58958 } else { 58959 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 58960 } 58961 case "JobModifyIndex": 58962 if r.TryDecodeAsNil() { 58963 x.JobModifyIndex = 0 58964 } else { 58965 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 58966 } 58967 case "VolumeEvalID": 58968 if r.TryDecodeAsNil() { 58969 x.VolumeEvalID = "" 58970 } else { 58971 x.VolumeEvalID = (string)(r.DecodeString()) 58972 } 58973 case "VolumeEvalIndex": 58974 if r.TryDecodeAsNil() { 58975 x.VolumeEvalIndex = 0 58976 } else { 58977 x.VolumeEvalIndex = (uint64)(r.DecodeUint64()) 58978 } 58979 case "Index": 58980 if r.TryDecodeAsNil() { 58981 x.QueryMeta.Index = 0 58982 } else { 58983 x.Index = (uint64)(r.DecodeUint64()) 58984 } 58985 case "LastContact": 58986 if r.TryDecodeAsNil() { 58987 x.QueryMeta.LastContact = 0 58988 } else { 58989 if false { 58990 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 58991 z.DecExtension(x.LastContact, yyxt11) 58992 } else { 58993 x.LastContact = (time.Duration)(r.DecodeInt64()) 58994 } 58995 } 58996 case "KnownLeader": 58997 if r.TryDecodeAsNil() { 58998 x.QueryMeta.KnownLeader = false 58999 } else { 59000 x.KnownLeader = (bool)(r.DecodeBool()) 59001 } 59002 default: 59003 z.DecStructFieldNotFound(-1, yys3) 59004 } // end switch yys3 59005 } // end for yyj3 59006 r.ReadMapEnd() 59007 } 59008 59009 func (x *JobDeregisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 59010 var h codecSelfer100 59011 z, r := codec1978.GenHelperDecoder(d) 59012 _, _, _ = h, z, r 59013 var yyj13 int 59014 var yyb13 bool 59015 var yyhl13 bool = l >= 0 59016 yyj13++ 59017 if yyhl13 { 59018 yyb13 = yyj13 > l 59019 } else { 59020 yyb13 = r.CheckBreak() 59021 } 59022 if yyb13 { 59023 r.ReadArrayEnd() 59024 return 59025 } 59026 r.ReadArrayElem() 59027 if r.TryDecodeAsNil() { 59028 x.EvalID = "" 59029 } else { 59030 x.EvalID = (string)(r.DecodeString()) 59031 } 59032 yyj13++ 59033 if yyhl13 { 59034 yyb13 = yyj13 > l 59035 } else { 59036 yyb13 = r.CheckBreak() 59037 } 59038 if yyb13 { 59039 r.ReadArrayEnd() 59040 return 59041 } 59042 r.ReadArrayElem() 59043 if r.TryDecodeAsNil() { 59044 x.EvalCreateIndex = 0 59045 } else { 59046 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 59047 } 59048 yyj13++ 59049 if yyhl13 { 59050 yyb13 = yyj13 > l 59051 } else { 59052 yyb13 = r.CheckBreak() 59053 } 59054 if yyb13 { 59055 r.ReadArrayEnd() 59056 return 59057 } 59058 r.ReadArrayElem() 59059 if r.TryDecodeAsNil() { 59060 x.JobModifyIndex = 0 59061 } else { 59062 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 59063 } 59064 yyj13++ 59065 if yyhl13 { 59066 yyb13 = yyj13 > l 59067 } else { 59068 yyb13 = r.CheckBreak() 59069 } 59070 if yyb13 { 59071 r.ReadArrayEnd() 59072 return 59073 } 59074 r.ReadArrayElem() 59075 if r.TryDecodeAsNil() { 59076 x.VolumeEvalID = "" 59077 } else { 59078 x.VolumeEvalID = (string)(r.DecodeString()) 59079 } 59080 yyj13++ 59081 if yyhl13 { 59082 yyb13 = yyj13 > l 59083 } else { 59084 yyb13 = r.CheckBreak() 59085 } 59086 if yyb13 { 59087 r.ReadArrayEnd() 59088 return 59089 } 59090 r.ReadArrayElem() 59091 if r.TryDecodeAsNil() { 59092 x.VolumeEvalIndex = 0 59093 } else { 59094 x.VolumeEvalIndex = (uint64)(r.DecodeUint64()) 59095 } 59096 yyj13++ 59097 if yyhl13 { 59098 yyb13 = yyj13 > l 59099 } else { 59100 yyb13 = r.CheckBreak() 59101 } 59102 if yyb13 { 59103 r.ReadArrayEnd() 59104 return 59105 } 59106 r.ReadArrayElem() 59107 if r.TryDecodeAsNil() { 59108 x.QueryMeta.Index = 0 59109 } else { 59110 x.Index = (uint64)(r.DecodeUint64()) 59111 } 59112 yyj13++ 59113 if yyhl13 { 59114 yyb13 = yyj13 > l 59115 } else { 59116 yyb13 = r.CheckBreak() 59117 } 59118 if yyb13 { 59119 r.ReadArrayEnd() 59120 return 59121 } 59122 r.ReadArrayElem() 59123 if r.TryDecodeAsNil() { 59124 x.QueryMeta.LastContact = 0 59125 } else { 59126 if false { 59127 } else if yyxt21 := z.Extension(z.I2Rtid(x.LastContact)); yyxt21 != nil { 59128 z.DecExtension(x.LastContact, yyxt21) 59129 } else { 59130 x.LastContact = (time.Duration)(r.DecodeInt64()) 59131 } 59132 } 59133 yyj13++ 59134 if yyhl13 { 59135 yyb13 = yyj13 > l 59136 } else { 59137 yyb13 = r.CheckBreak() 59138 } 59139 if yyb13 { 59140 r.ReadArrayEnd() 59141 return 59142 } 59143 r.ReadArrayElem() 59144 if r.TryDecodeAsNil() { 59145 x.QueryMeta.KnownLeader = false 59146 } else { 59147 x.KnownLeader = (bool)(r.DecodeBool()) 59148 } 59149 for { 59150 yyj13++ 59151 if yyhl13 { 59152 yyb13 = yyj13 > l 59153 } else { 59154 yyb13 = r.CheckBreak() 59155 } 59156 if yyb13 { 59157 break 59158 } 59159 r.ReadArrayElem() 59160 z.DecStructFieldNotFound(yyj13-1, "") 59161 } 59162 r.ReadArrayEnd() 59163 } 59164 59165 func (x *JobBatchDeregisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { 59166 var h codecSelfer100 59167 z, r := codec1978.GenHelperEncoder(e) 59168 _, _, _ = h, z, r 59169 if x == nil { 59170 r.EncodeNil() 59171 } else { 59172 if false { 59173 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 59174 z.EncExtension(x, yyxt1) 59175 } else { 59176 yysep2 := !z.EncBinary() 59177 yy2arr2 := z.EncBasicHandle().StructToArray 59178 _, _ = yysep2, yy2arr2 59179 const yyr2 bool = false // struct tag has 'toArray' 59180 if yyr2 || yy2arr2 { 59181 r.WriteArrayStart(4) 59182 } else { 59183 r.WriteMapStart(4) 59184 } 59185 if yyr2 || yy2arr2 { 59186 r.WriteArrayElem() 59187 if x.JobEvals == nil { 59188 r.EncodeNil() 59189 } else { 59190 if false { 59191 } else { 59192 h.encMapNamespacedIDstring((map[NamespacedID]string)(x.JobEvals), e) 59193 } 59194 } 59195 } else { 59196 r.WriteMapElemKey() 59197 if z.IsJSONHandle() { 59198 z.WriteStr("\"JobEvals\"") 59199 } else { 59200 r.EncodeStringEnc(codecSelferCcUTF8100, `JobEvals`) 59201 } 59202 r.WriteMapElemValue() 59203 if x.JobEvals == nil { 59204 r.EncodeNil() 59205 } else { 59206 if false { 59207 } else { 59208 h.encMapNamespacedIDstring((map[NamespacedID]string)(x.JobEvals), e) 59209 } 59210 } 59211 } 59212 if yyr2 || yy2arr2 { 59213 r.WriteArrayElem() 59214 if false { 59215 } else { 59216 r.EncodeUint(uint64(x.Index)) 59217 } 59218 } else { 59219 r.WriteMapElemKey() 59220 if z.IsJSONHandle() { 59221 z.WriteStr("\"Index\"") 59222 } else { 59223 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 59224 } 59225 r.WriteMapElemValue() 59226 if false { 59227 } else { 59228 r.EncodeUint(uint64(x.Index)) 59229 } 59230 } 59231 if yyr2 || yy2arr2 { 59232 r.WriteArrayElem() 59233 if false { 59234 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 59235 z.EncExtension(x.LastContact, yyxt10) 59236 } else { 59237 r.EncodeInt(int64(x.LastContact)) 59238 } 59239 } else { 59240 r.WriteMapElemKey() 59241 if z.IsJSONHandle() { 59242 z.WriteStr("\"LastContact\"") 59243 } else { 59244 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 59245 } 59246 r.WriteMapElemValue() 59247 if false { 59248 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 59249 z.EncExtension(x.LastContact, yyxt11) 59250 } else { 59251 r.EncodeInt(int64(x.LastContact)) 59252 } 59253 } 59254 if yyr2 || yy2arr2 { 59255 r.WriteArrayElem() 59256 if false { 59257 } else { 59258 r.EncodeBool(bool(x.KnownLeader)) 59259 } 59260 } else { 59261 r.WriteMapElemKey() 59262 if z.IsJSONHandle() { 59263 z.WriteStr("\"KnownLeader\"") 59264 } else { 59265 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 59266 } 59267 r.WriteMapElemValue() 59268 if false { 59269 } else { 59270 r.EncodeBool(bool(x.KnownLeader)) 59271 } 59272 } 59273 if yyr2 || yy2arr2 { 59274 r.WriteArrayEnd() 59275 } else { 59276 r.WriteMapEnd() 59277 } 59278 } 59279 } 59280 } 59281 59282 func (x *JobBatchDeregisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { 59283 var h codecSelfer100 59284 z, r := codec1978.GenHelperDecoder(d) 59285 _, _, _ = h, z, r 59286 if false { 59287 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 59288 z.DecExtension(x, yyxt1) 59289 } else { 59290 yyct2 := r.ContainerType() 59291 if yyct2 == codecSelferValueTypeMap100 { 59292 yyl2 := r.ReadMapStart() 59293 if yyl2 == 0 { 59294 r.ReadMapEnd() 59295 } else { 59296 x.codecDecodeSelfFromMap(yyl2, d) 59297 } 59298 } else if yyct2 == codecSelferValueTypeArray100 { 59299 yyl2 := r.ReadArrayStart() 59300 if yyl2 == 0 { 59301 r.ReadArrayEnd() 59302 } else { 59303 x.codecDecodeSelfFromArray(yyl2, d) 59304 } 59305 } else { 59306 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 59307 } 59308 } 59309 } 59310 59311 func (x *JobBatchDeregisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 59312 var h codecSelfer100 59313 z, r := codec1978.GenHelperDecoder(d) 59314 _, _, _ = h, z, r 59315 var yyhl3 bool = l >= 0 59316 for yyj3 := 0; ; yyj3++ { 59317 if yyhl3 { 59318 if yyj3 >= l { 59319 break 59320 } 59321 } else { 59322 if r.CheckBreak() { 59323 break 59324 } 59325 } 59326 r.ReadMapElemKey() 59327 yys3 := z.StringView(r.DecodeStringAsBytes()) 59328 r.ReadMapElemValue() 59329 switch yys3 { 59330 case "JobEvals": 59331 if r.TryDecodeAsNil() { 59332 x.JobEvals = nil 59333 } else { 59334 if false { 59335 } else { 59336 h.decMapNamespacedIDstring((*map[NamespacedID]string)(&x.JobEvals), d) 59337 } 59338 } 59339 case "Index": 59340 if r.TryDecodeAsNil() { 59341 x.QueryMeta.Index = 0 59342 } else { 59343 x.Index = (uint64)(r.DecodeUint64()) 59344 } 59345 case "LastContact": 59346 if r.TryDecodeAsNil() { 59347 x.QueryMeta.LastContact = 0 59348 } else { 59349 if false { 59350 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 59351 z.DecExtension(x.LastContact, yyxt8) 59352 } else { 59353 x.LastContact = (time.Duration)(r.DecodeInt64()) 59354 } 59355 } 59356 case "KnownLeader": 59357 if r.TryDecodeAsNil() { 59358 x.QueryMeta.KnownLeader = false 59359 } else { 59360 x.KnownLeader = (bool)(r.DecodeBool()) 59361 } 59362 default: 59363 z.DecStructFieldNotFound(-1, yys3) 59364 } // end switch yys3 59365 } // end for yyj3 59366 r.ReadMapEnd() 59367 } 59368 59369 func (x *JobBatchDeregisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 59370 var h codecSelfer100 59371 z, r := codec1978.GenHelperDecoder(d) 59372 _, _, _ = h, z, r 59373 var yyj10 int 59374 var yyb10 bool 59375 var yyhl10 bool = l >= 0 59376 yyj10++ 59377 if yyhl10 { 59378 yyb10 = yyj10 > l 59379 } else { 59380 yyb10 = r.CheckBreak() 59381 } 59382 if yyb10 { 59383 r.ReadArrayEnd() 59384 return 59385 } 59386 r.ReadArrayElem() 59387 if r.TryDecodeAsNil() { 59388 x.JobEvals = nil 59389 } else { 59390 if false { 59391 } else { 59392 h.decMapNamespacedIDstring((*map[NamespacedID]string)(&x.JobEvals), d) 59393 } 59394 } 59395 yyj10++ 59396 if yyhl10 { 59397 yyb10 = yyj10 > l 59398 } else { 59399 yyb10 = r.CheckBreak() 59400 } 59401 if yyb10 { 59402 r.ReadArrayEnd() 59403 return 59404 } 59405 r.ReadArrayElem() 59406 if r.TryDecodeAsNil() { 59407 x.QueryMeta.Index = 0 59408 } else { 59409 x.Index = (uint64)(r.DecodeUint64()) 59410 } 59411 yyj10++ 59412 if yyhl10 { 59413 yyb10 = yyj10 > l 59414 } else { 59415 yyb10 = r.CheckBreak() 59416 } 59417 if yyb10 { 59418 r.ReadArrayEnd() 59419 return 59420 } 59421 r.ReadArrayElem() 59422 if r.TryDecodeAsNil() { 59423 x.QueryMeta.LastContact = 0 59424 } else { 59425 if false { 59426 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 59427 z.DecExtension(x.LastContact, yyxt15) 59428 } else { 59429 x.LastContact = (time.Duration)(r.DecodeInt64()) 59430 } 59431 } 59432 yyj10++ 59433 if yyhl10 { 59434 yyb10 = yyj10 > l 59435 } else { 59436 yyb10 = r.CheckBreak() 59437 } 59438 if yyb10 { 59439 r.ReadArrayEnd() 59440 return 59441 } 59442 r.ReadArrayElem() 59443 if r.TryDecodeAsNil() { 59444 x.QueryMeta.KnownLeader = false 59445 } else { 59446 x.KnownLeader = (bool)(r.DecodeBool()) 59447 } 59448 for { 59449 yyj10++ 59450 if yyhl10 { 59451 yyb10 = yyj10 > l 59452 } else { 59453 yyb10 = r.CheckBreak() 59454 } 59455 if yyb10 { 59456 break 59457 } 59458 r.ReadArrayElem() 59459 z.DecStructFieldNotFound(yyj10-1, "") 59460 } 59461 r.ReadArrayEnd() 59462 } 59463 59464 func (x *JobValidateResponse) CodecEncodeSelf(e *codec1978.Encoder) { 59465 var h codecSelfer100 59466 z, r := codec1978.GenHelperEncoder(e) 59467 _, _, _ = h, z, r 59468 if x == nil { 59469 r.EncodeNil() 59470 } else { 59471 if false { 59472 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 59473 z.EncExtension(x, yyxt1) 59474 } else { 59475 yysep2 := !z.EncBinary() 59476 yy2arr2 := z.EncBasicHandle().StructToArray 59477 _, _ = yysep2, yy2arr2 59478 const yyr2 bool = false // struct tag has 'toArray' 59479 if yyr2 || yy2arr2 { 59480 r.WriteArrayStart(4) 59481 } else { 59482 r.WriteMapStart(4) 59483 } 59484 if yyr2 || yy2arr2 { 59485 r.WriteArrayElem() 59486 if false { 59487 } else { 59488 r.EncodeBool(bool(x.DriverConfigValidated)) 59489 } 59490 } else { 59491 r.WriteMapElemKey() 59492 if z.IsJSONHandle() { 59493 z.WriteStr("\"DriverConfigValidated\"") 59494 } else { 59495 r.EncodeStringEnc(codecSelferCcUTF8100, `DriverConfigValidated`) 59496 } 59497 r.WriteMapElemValue() 59498 if false { 59499 } else { 59500 r.EncodeBool(bool(x.DriverConfigValidated)) 59501 } 59502 } 59503 if yyr2 || yy2arr2 { 59504 r.WriteArrayElem() 59505 if x.ValidationErrors == nil { 59506 r.EncodeNil() 59507 } else { 59508 if false { 59509 } else { 59510 z.F.EncSliceStringV(x.ValidationErrors, e) 59511 } 59512 } 59513 } else { 59514 r.WriteMapElemKey() 59515 if z.IsJSONHandle() { 59516 z.WriteStr("\"ValidationErrors\"") 59517 } else { 59518 r.EncodeStringEnc(codecSelferCcUTF8100, `ValidationErrors`) 59519 } 59520 r.WriteMapElemValue() 59521 if x.ValidationErrors == nil { 59522 r.EncodeNil() 59523 } else { 59524 if false { 59525 } else { 59526 z.F.EncSliceStringV(x.ValidationErrors, e) 59527 } 59528 } 59529 } 59530 if yyr2 || yy2arr2 { 59531 r.WriteArrayElem() 59532 if false { 59533 } else { 59534 if z.EncBasicHandle().StringToRaw { 59535 r.EncodeStringBytesRaw(z.BytesView(string(x.Error))) 59536 } else { 59537 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Error)) 59538 } 59539 } 59540 } else { 59541 r.WriteMapElemKey() 59542 if z.IsJSONHandle() { 59543 z.WriteStr("\"Error\"") 59544 } else { 59545 r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) 59546 } 59547 r.WriteMapElemValue() 59548 if false { 59549 } else { 59550 if z.EncBasicHandle().StringToRaw { 59551 r.EncodeStringBytesRaw(z.BytesView(string(x.Error))) 59552 } else { 59553 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Error)) 59554 } 59555 } 59556 } 59557 if yyr2 || yy2arr2 { 59558 r.WriteArrayElem() 59559 if false { 59560 } else { 59561 if z.EncBasicHandle().StringToRaw { 59562 r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) 59563 } else { 59564 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) 59565 } 59566 } 59567 } else { 59568 r.WriteMapElemKey() 59569 if z.IsJSONHandle() { 59570 z.WriteStr("\"Warnings\"") 59571 } else { 59572 r.EncodeStringEnc(codecSelferCcUTF8100, `Warnings`) 59573 } 59574 r.WriteMapElemValue() 59575 if false { 59576 } else { 59577 if z.EncBasicHandle().StringToRaw { 59578 r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) 59579 } else { 59580 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) 59581 } 59582 } 59583 } 59584 if yyr2 || yy2arr2 { 59585 r.WriteArrayEnd() 59586 } else { 59587 r.WriteMapEnd() 59588 } 59589 } 59590 } 59591 } 59592 59593 func (x *JobValidateResponse) CodecDecodeSelf(d *codec1978.Decoder) { 59594 var h codecSelfer100 59595 z, r := codec1978.GenHelperDecoder(d) 59596 _, _, _ = h, z, r 59597 if false { 59598 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 59599 z.DecExtension(x, yyxt1) 59600 } else { 59601 yyct2 := r.ContainerType() 59602 if yyct2 == codecSelferValueTypeMap100 { 59603 yyl2 := r.ReadMapStart() 59604 if yyl2 == 0 { 59605 r.ReadMapEnd() 59606 } else { 59607 x.codecDecodeSelfFromMap(yyl2, d) 59608 } 59609 } else if yyct2 == codecSelferValueTypeArray100 { 59610 yyl2 := r.ReadArrayStart() 59611 if yyl2 == 0 { 59612 r.ReadArrayEnd() 59613 } else { 59614 x.codecDecodeSelfFromArray(yyl2, d) 59615 } 59616 } else { 59617 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 59618 } 59619 } 59620 } 59621 59622 func (x *JobValidateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 59623 var h codecSelfer100 59624 z, r := codec1978.GenHelperDecoder(d) 59625 _, _, _ = h, z, r 59626 var yyhl3 bool = l >= 0 59627 for yyj3 := 0; ; yyj3++ { 59628 if yyhl3 { 59629 if yyj3 >= l { 59630 break 59631 } 59632 } else { 59633 if r.CheckBreak() { 59634 break 59635 } 59636 } 59637 r.ReadMapElemKey() 59638 yys3 := z.StringView(r.DecodeStringAsBytes()) 59639 r.ReadMapElemValue() 59640 switch yys3 { 59641 case "DriverConfigValidated": 59642 if r.TryDecodeAsNil() { 59643 x.DriverConfigValidated = false 59644 } else { 59645 x.DriverConfigValidated = (bool)(r.DecodeBool()) 59646 } 59647 case "ValidationErrors": 59648 if r.TryDecodeAsNil() { 59649 x.ValidationErrors = nil 59650 } else { 59651 if false { 59652 } else { 59653 z.F.DecSliceStringX(&x.ValidationErrors, d) 59654 } 59655 } 59656 case "Error": 59657 if r.TryDecodeAsNil() { 59658 x.Error = "" 59659 } else { 59660 x.Error = (string)(r.DecodeString()) 59661 } 59662 case "Warnings": 59663 if r.TryDecodeAsNil() { 59664 x.Warnings = "" 59665 } else { 59666 x.Warnings = (string)(r.DecodeString()) 59667 } 59668 default: 59669 z.DecStructFieldNotFound(-1, yys3) 59670 } // end switch yys3 59671 } // end for yyj3 59672 r.ReadMapEnd() 59673 } 59674 59675 func (x *JobValidateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 59676 var h codecSelfer100 59677 z, r := codec1978.GenHelperDecoder(d) 59678 _, _, _ = h, z, r 59679 var yyj9 int 59680 var yyb9 bool 59681 var yyhl9 bool = l >= 0 59682 yyj9++ 59683 if yyhl9 { 59684 yyb9 = yyj9 > l 59685 } else { 59686 yyb9 = r.CheckBreak() 59687 } 59688 if yyb9 { 59689 r.ReadArrayEnd() 59690 return 59691 } 59692 r.ReadArrayElem() 59693 if r.TryDecodeAsNil() { 59694 x.DriverConfigValidated = false 59695 } else { 59696 x.DriverConfigValidated = (bool)(r.DecodeBool()) 59697 } 59698 yyj9++ 59699 if yyhl9 { 59700 yyb9 = yyj9 > l 59701 } else { 59702 yyb9 = r.CheckBreak() 59703 } 59704 if yyb9 { 59705 r.ReadArrayEnd() 59706 return 59707 } 59708 r.ReadArrayElem() 59709 if r.TryDecodeAsNil() { 59710 x.ValidationErrors = nil 59711 } else { 59712 if false { 59713 } else { 59714 z.F.DecSliceStringX(&x.ValidationErrors, d) 59715 } 59716 } 59717 yyj9++ 59718 if yyhl9 { 59719 yyb9 = yyj9 > l 59720 } else { 59721 yyb9 = r.CheckBreak() 59722 } 59723 if yyb9 { 59724 r.ReadArrayEnd() 59725 return 59726 } 59727 r.ReadArrayElem() 59728 if r.TryDecodeAsNil() { 59729 x.Error = "" 59730 } else { 59731 x.Error = (string)(r.DecodeString()) 59732 } 59733 yyj9++ 59734 if yyhl9 { 59735 yyb9 = yyj9 > l 59736 } else { 59737 yyb9 = r.CheckBreak() 59738 } 59739 if yyb9 { 59740 r.ReadArrayEnd() 59741 return 59742 } 59743 r.ReadArrayElem() 59744 if r.TryDecodeAsNil() { 59745 x.Warnings = "" 59746 } else { 59747 x.Warnings = (string)(r.DecodeString()) 59748 } 59749 for { 59750 yyj9++ 59751 if yyhl9 { 59752 yyb9 = yyj9 > l 59753 } else { 59754 yyb9 = r.CheckBreak() 59755 } 59756 if yyb9 { 59757 break 59758 } 59759 r.ReadArrayElem() 59760 z.DecStructFieldNotFound(yyj9-1, "") 59761 } 59762 r.ReadArrayEnd() 59763 } 59764 59765 func (x *NodeUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { 59766 var h codecSelfer100 59767 z, r := codec1978.GenHelperEncoder(e) 59768 _, _, _ = h, z, r 59769 if x == nil { 59770 r.EncodeNil() 59771 } else { 59772 if false { 59773 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 59774 z.EncExtension(x, yyxt1) 59775 } else { 59776 yysep2 := !z.EncBinary() 59777 yy2arr2 := z.EncBasicHandle().StructToArray 59778 _, _ = yysep2, yy2arr2 59779 const yyr2 bool = false // struct tag has 'toArray' 59780 if yyr2 || yy2arr2 { 59781 r.WriteArrayStart(10) 59782 } else { 59783 r.WriteMapStart(10) 59784 } 59785 if yyr2 || yy2arr2 { 59786 r.WriteArrayElem() 59787 if false { 59788 } else if yyxt4 := z.Extension(z.I2Rtid(x.HeartbeatTTL)); yyxt4 != nil { 59789 z.EncExtension(x.HeartbeatTTL, yyxt4) 59790 } else { 59791 r.EncodeInt(int64(x.HeartbeatTTL)) 59792 } 59793 } else { 59794 r.WriteMapElemKey() 59795 if z.IsJSONHandle() { 59796 z.WriteStr("\"HeartbeatTTL\"") 59797 } else { 59798 r.EncodeStringEnc(codecSelferCcUTF8100, `HeartbeatTTL`) 59799 } 59800 r.WriteMapElemValue() 59801 if false { 59802 } else if yyxt5 := z.Extension(z.I2Rtid(x.HeartbeatTTL)); yyxt5 != nil { 59803 z.EncExtension(x.HeartbeatTTL, yyxt5) 59804 } else { 59805 r.EncodeInt(int64(x.HeartbeatTTL)) 59806 } 59807 } 59808 if yyr2 || yy2arr2 { 59809 r.WriteArrayElem() 59810 if x.EvalIDs == nil { 59811 r.EncodeNil() 59812 } else { 59813 if false { 59814 } else { 59815 z.F.EncSliceStringV(x.EvalIDs, e) 59816 } 59817 } 59818 } else { 59819 r.WriteMapElemKey() 59820 if z.IsJSONHandle() { 59821 z.WriteStr("\"EvalIDs\"") 59822 } else { 59823 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalIDs`) 59824 } 59825 r.WriteMapElemValue() 59826 if x.EvalIDs == nil { 59827 r.EncodeNil() 59828 } else { 59829 if false { 59830 } else { 59831 z.F.EncSliceStringV(x.EvalIDs, e) 59832 } 59833 } 59834 } 59835 if yyr2 || yy2arr2 { 59836 r.WriteArrayElem() 59837 if false { 59838 } else { 59839 r.EncodeUint(uint64(x.EvalCreateIndex)) 59840 } 59841 } else { 59842 r.WriteMapElemKey() 59843 if z.IsJSONHandle() { 59844 z.WriteStr("\"EvalCreateIndex\"") 59845 } else { 59846 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) 59847 } 59848 r.WriteMapElemValue() 59849 if false { 59850 } else { 59851 r.EncodeUint(uint64(x.EvalCreateIndex)) 59852 } 59853 } 59854 if yyr2 || yy2arr2 { 59855 r.WriteArrayElem() 59856 if false { 59857 } else { 59858 r.EncodeUint(uint64(x.NodeModifyIndex)) 59859 } 59860 } else { 59861 r.WriteMapElemKey() 59862 if z.IsJSONHandle() { 59863 z.WriteStr("\"NodeModifyIndex\"") 59864 } else { 59865 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeModifyIndex`) 59866 } 59867 r.WriteMapElemValue() 59868 if false { 59869 } else { 59870 r.EncodeUint(uint64(x.NodeModifyIndex)) 59871 } 59872 } 59873 if yyr2 || yy2arr2 { 59874 r.WriteArrayElem() 59875 if false { 59876 } else { 59877 if z.EncBasicHandle().StringToRaw { 59878 r.EncodeStringBytesRaw(z.BytesView(string(x.LeaderRPCAddr))) 59879 } else { 59880 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeaderRPCAddr)) 59881 } 59882 } 59883 } else { 59884 r.WriteMapElemKey() 59885 if z.IsJSONHandle() { 59886 z.WriteStr("\"LeaderRPCAddr\"") 59887 } else { 59888 r.EncodeStringEnc(codecSelferCcUTF8100, `LeaderRPCAddr`) 59889 } 59890 r.WriteMapElemValue() 59891 if false { 59892 } else { 59893 if z.EncBasicHandle().StringToRaw { 59894 r.EncodeStringBytesRaw(z.BytesView(string(x.LeaderRPCAddr))) 59895 } else { 59896 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeaderRPCAddr)) 59897 } 59898 } 59899 } 59900 if yyr2 || yy2arr2 { 59901 r.WriteArrayElem() 59902 if false { 59903 } else { 59904 r.EncodeInt(int64(x.NumNodes)) 59905 } 59906 } else { 59907 r.WriteMapElemKey() 59908 if z.IsJSONHandle() { 59909 z.WriteStr("\"NumNodes\"") 59910 } else { 59911 r.EncodeStringEnc(codecSelferCcUTF8100, `NumNodes`) 59912 } 59913 r.WriteMapElemValue() 59914 if false { 59915 } else { 59916 r.EncodeInt(int64(x.NumNodes)) 59917 } 59918 } 59919 if yyr2 || yy2arr2 { 59920 r.WriteArrayElem() 59921 if x.Servers == nil { 59922 r.EncodeNil() 59923 } else { 59924 if false { 59925 } else { 59926 h.encSlicePtrtoNodeServerInfo(([]*NodeServerInfo)(x.Servers), e) 59927 } 59928 } 59929 } else { 59930 r.WriteMapElemKey() 59931 if z.IsJSONHandle() { 59932 z.WriteStr("\"Servers\"") 59933 } else { 59934 r.EncodeStringEnc(codecSelferCcUTF8100, `Servers`) 59935 } 59936 r.WriteMapElemValue() 59937 if x.Servers == nil { 59938 r.EncodeNil() 59939 } else { 59940 if false { 59941 } else { 59942 h.encSlicePtrtoNodeServerInfo(([]*NodeServerInfo)(x.Servers), e) 59943 } 59944 } 59945 } 59946 if yyr2 || yy2arr2 { 59947 r.WriteArrayElem() 59948 if false { 59949 } else { 59950 r.EncodeUint(uint64(x.Index)) 59951 } 59952 } else { 59953 r.WriteMapElemKey() 59954 if z.IsJSONHandle() { 59955 z.WriteStr("\"Index\"") 59956 } else { 59957 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 59958 } 59959 r.WriteMapElemValue() 59960 if false { 59961 } else { 59962 r.EncodeUint(uint64(x.Index)) 59963 } 59964 } 59965 if yyr2 || yy2arr2 { 59966 r.WriteArrayElem() 59967 if false { 59968 } else if yyxt28 := z.Extension(z.I2Rtid(x.LastContact)); yyxt28 != nil { 59969 z.EncExtension(x.LastContact, yyxt28) 59970 } else { 59971 r.EncodeInt(int64(x.LastContact)) 59972 } 59973 } else { 59974 r.WriteMapElemKey() 59975 if z.IsJSONHandle() { 59976 z.WriteStr("\"LastContact\"") 59977 } else { 59978 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 59979 } 59980 r.WriteMapElemValue() 59981 if false { 59982 } else if yyxt29 := z.Extension(z.I2Rtid(x.LastContact)); yyxt29 != nil { 59983 z.EncExtension(x.LastContact, yyxt29) 59984 } else { 59985 r.EncodeInt(int64(x.LastContact)) 59986 } 59987 } 59988 if yyr2 || yy2arr2 { 59989 r.WriteArrayElem() 59990 if false { 59991 } else { 59992 r.EncodeBool(bool(x.KnownLeader)) 59993 } 59994 } else { 59995 r.WriteMapElemKey() 59996 if z.IsJSONHandle() { 59997 z.WriteStr("\"KnownLeader\"") 59998 } else { 59999 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 60000 } 60001 r.WriteMapElemValue() 60002 if false { 60003 } else { 60004 r.EncodeBool(bool(x.KnownLeader)) 60005 } 60006 } 60007 if yyr2 || yy2arr2 { 60008 r.WriteArrayEnd() 60009 } else { 60010 r.WriteMapEnd() 60011 } 60012 } 60013 } 60014 } 60015 60016 func (x *NodeUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { 60017 var h codecSelfer100 60018 z, r := codec1978.GenHelperDecoder(d) 60019 _, _, _ = h, z, r 60020 if false { 60021 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 60022 z.DecExtension(x, yyxt1) 60023 } else { 60024 yyct2 := r.ContainerType() 60025 if yyct2 == codecSelferValueTypeMap100 { 60026 yyl2 := r.ReadMapStart() 60027 if yyl2 == 0 { 60028 r.ReadMapEnd() 60029 } else { 60030 x.codecDecodeSelfFromMap(yyl2, d) 60031 } 60032 } else if yyct2 == codecSelferValueTypeArray100 { 60033 yyl2 := r.ReadArrayStart() 60034 if yyl2 == 0 { 60035 r.ReadArrayEnd() 60036 } else { 60037 x.codecDecodeSelfFromArray(yyl2, d) 60038 } 60039 } else { 60040 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 60041 } 60042 } 60043 } 60044 60045 func (x *NodeUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 60046 var h codecSelfer100 60047 z, r := codec1978.GenHelperDecoder(d) 60048 _, _, _ = h, z, r 60049 var yyhl3 bool = l >= 0 60050 for yyj3 := 0; ; yyj3++ { 60051 if yyhl3 { 60052 if yyj3 >= l { 60053 break 60054 } 60055 } else { 60056 if r.CheckBreak() { 60057 break 60058 } 60059 } 60060 r.ReadMapElemKey() 60061 yys3 := z.StringView(r.DecodeStringAsBytes()) 60062 r.ReadMapElemValue() 60063 switch yys3 { 60064 case "HeartbeatTTL": 60065 if r.TryDecodeAsNil() { 60066 x.HeartbeatTTL = 0 60067 } else { 60068 if false { 60069 } else if yyxt5 := z.Extension(z.I2Rtid(x.HeartbeatTTL)); yyxt5 != nil { 60070 z.DecExtension(x.HeartbeatTTL, yyxt5) 60071 } else { 60072 x.HeartbeatTTL = (time.Duration)(r.DecodeInt64()) 60073 } 60074 } 60075 case "EvalIDs": 60076 if r.TryDecodeAsNil() { 60077 x.EvalIDs = nil 60078 } else { 60079 if false { 60080 } else { 60081 z.F.DecSliceStringX(&x.EvalIDs, d) 60082 } 60083 } 60084 case "EvalCreateIndex": 60085 if r.TryDecodeAsNil() { 60086 x.EvalCreateIndex = 0 60087 } else { 60088 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 60089 } 60090 case "NodeModifyIndex": 60091 if r.TryDecodeAsNil() { 60092 x.NodeModifyIndex = 0 60093 } else { 60094 x.NodeModifyIndex = (uint64)(r.DecodeUint64()) 60095 } 60096 case "LeaderRPCAddr": 60097 if r.TryDecodeAsNil() { 60098 x.LeaderRPCAddr = "" 60099 } else { 60100 x.LeaderRPCAddr = (string)(r.DecodeString()) 60101 } 60102 case "NumNodes": 60103 if r.TryDecodeAsNil() { 60104 x.NumNodes = 0 60105 } else { 60106 x.NumNodes = (int32)(z.C.IntV(r.DecodeInt64(), 32)) 60107 } 60108 case "Servers": 60109 if r.TryDecodeAsNil() { 60110 x.Servers = nil 60111 } else { 60112 if false { 60113 } else { 60114 h.decSlicePtrtoNodeServerInfo((*[]*NodeServerInfo)(&x.Servers), d) 60115 } 60116 } 60117 case "Index": 60118 if r.TryDecodeAsNil() { 60119 x.QueryMeta.Index = 0 60120 } else { 60121 x.Index = (uint64)(r.DecodeUint64()) 60122 } 60123 case "LastContact": 60124 if r.TryDecodeAsNil() { 60125 x.QueryMeta.LastContact = 0 60126 } else { 60127 if false { 60128 } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { 60129 z.DecExtension(x.LastContact, yyxt16) 60130 } else { 60131 x.LastContact = (time.Duration)(r.DecodeInt64()) 60132 } 60133 } 60134 case "KnownLeader": 60135 if r.TryDecodeAsNil() { 60136 x.QueryMeta.KnownLeader = false 60137 } else { 60138 x.KnownLeader = (bool)(r.DecodeBool()) 60139 } 60140 default: 60141 z.DecStructFieldNotFound(-1, yys3) 60142 } // end switch yys3 60143 } // end for yyj3 60144 r.ReadMapEnd() 60145 } 60146 60147 func (x *NodeUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 60148 var h codecSelfer100 60149 z, r := codec1978.GenHelperDecoder(d) 60150 _, _, _ = h, z, r 60151 var yyj18 int 60152 var yyb18 bool 60153 var yyhl18 bool = l >= 0 60154 yyj18++ 60155 if yyhl18 { 60156 yyb18 = yyj18 > l 60157 } else { 60158 yyb18 = r.CheckBreak() 60159 } 60160 if yyb18 { 60161 r.ReadArrayEnd() 60162 return 60163 } 60164 r.ReadArrayElem() 60165 if r.TryDecodeAsNil() { 60166 x.HeartbeatTTL = 0 60167 } else { 60168 if false { 60169 } else if yyxt20 := z.Extension(z.I2Rtid(x.HeartbeatTTL)); yyxt20 != nil { 60170 z.DecExtension(x.HeartbeatTTL, yyxt20) 60171 } else { 60172 x.HeartbeatTTL = (time.Duration)(r.DecodeInt64()) 60173 } 60174 } 60175 yyj18++ 60176 if yyhl18 { 60177 yyb18 = yyj18 > l 60178 } else { 60179 yyb18 = r.CheckBreak() 60180 } 60181 if yyb18 { 60182 r.ReadArrayEnd() 60183 return 60184 } 60185 r.ReadArrayElem() 60186 if r.TryDecodeAsNil() { 60187 x.EvalIDs = nil 60188 } else { 60189 if false { 60190 } else { 60191 z.F.DecSliceStringX(&x.EvalIDs, d) 60192 } 60193 } 60194 yyj18++ 60195 if yyhl18 { 60196 yyb18 = yyj18 > l 60197 } else { 60198 yyb18 = r.CheckBreak() 60199 } 60200 if yyb18 { 60201 r.ReadArrayEnd() 60202 return 60203 } 60204 r.ReadArrayElem() 60205 if r.TryDecodeAsNil() { 60206 x.EvalCreateIndex = 0 60207 } else { 60208 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 60209 } 60210 yyj18++ 60211 if yyhl18 { 60212 yyb18 = yyj18 > l 60213 } else { 60214 yyb18 = r.CheckBreak() 60215 } 60216 if yyb18 { 60217 r.ReadArrayEnd() 60218 return 60219 } 60220 r.ReadArrayElem() 60221 if r.TryDecodeAsNil() { 60222 x.NodeModifyIndex = 0 60223 } else { 60224 x.NodeModifyIndex = (uint64)(r.DecodeUint64()) 60225 } 60226 yyj18++ 60227 if yyhl18 { 60228 yyb18 = yyj18 > l 60229 } else { 60230 yyb18 = r.CheckBreak() 60231 } 60232 if yyb18 { 60233 r.ReadArrayEnd() 60234 return 60235 } 60236 r.ReadArrayElem() 60237 if r.TryDecodeAsNil() { 60238 x.LeaderRPCAddr = "" 60239 } else { 60240 x.LeaderRPCAddr = (string)(r.DecodeString()) 60241 } 60242 yyj18++ 60243 if yyhl18 { 60244 yyb18 = yyj18 > l 60245 } else { 60246 yyb18 = r.CheckBreak() 60247 } 60248 if yyb18 { 60249 r.ReadArrayEnd() 60250 return 60251 } 60252 r.ReadArrayElem() 60253 if r.TryDecodeAsNil() { 60254 x.NumNodes = 0 60255 } else { 60256 x.NumNodes = (int32)(z.C.IntV(r.DecodeInt64(), 32)) 60257 } 60258 yyj18++ 60259 if yyhl18 { 60260 yyb18 = yyj18 > l 60261 } else { 60262 yyb18 = r.CheckBreak() 60263 } 60264 if yyb18 { 60265 r.ReadArrayEnd() 60266 return 60267 } 60268 r.ReadArrayElem() 60269 if r.TryDecodeAsNil() { 60270 x.Servers = nil 60271 } else { 60272 if false { 60273 } else { 60274 h.decSlicePtrtoNodeServerInfo((*[]*NodeServerInfo)(&x.Servers), d) 60275 } 60276 } 60277 yyj18++ 60278 if yyhl18 { 60279 yyb18 = yyj18 > l 60280 } else { 60281 yyb18 = r.CheckBreak() 60282 } 60283 if yyb18 { 60284 r.ReadArrayEnd() 60285 return 60286 } 60287 r.ReadArrayElem() 60288 if r.TryDecodeAsNil() { 60289 x.QueryMeta.Index = 0 60290 } else { 60291 x.Index = (uint64)(r.DecodeUint64()) 60292 } 60293 yyj18++ 60294 if yyhl18 { 60295 yyb18 = yyj18 > l 60296 } else { 60297 yyb18 = r.CheckBreak() 60298 } 60299 if yyb18 { 60300 r.ReadArrayEnd() 60301 return 60302 } 60303 r.ReadArrayElem() 60304 if r.TryDecodeAsNil() { 60305 x.QueryMeta.LastContact = 0 60306 } else { 60307 if false { 60308 } else if yyxt31 := z.Extension(z.I2Rtid(x.LastContact)); yyxt31 != nil { 60309 z.DecExtension(x.LastContact, yyxt31) 60310 } else { 60311 x.LastContact = (time.Duration)(r.DecodeInt64()) 60312 } 60313 } 60314 yyj18++ 60315 if yyhl18 { 60316 yyb18 = yyj18 > l 60317 } else { 60318 yyb18 = r.CheckBreak() 60319 } 60320 if yyb18 { 60321 r.ReadArrayEnd() 60322 return 60323 } 60324 r.ReadArrayElem() 60325 if r.TryDecodeAsNil() { 60326 x.QueryMeta.KnownLeader = false 60327 } else { 60328 x.KnownLeader = (bool)(r.DecodeBool()) 60329 } 60330 for { 60331 yyj18++ 60332 if yyhl18 { 60333 yyb18 = yyj18 > l 60334 } else { 60335 yyb18 = r.CheckBreak() 60336 } 60337 if yyb18 { 60338 break 60339 } 60340 r.ReadArrayElem() 60341 z.DecStructFieldNotFound(yyj18-1, "") 60342 } 60343 r.ReadArrayEnd() 60344 } 60345 60346 func (x *NodeDrainUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { 60347 var h codecSelfer100 60348 z, r := codec1978.GenHelperEncoder(e) 60349 _, _, _ = h, z, r 60350 if x == nil { 60351 r.EncodeNil() 60352 } else { 60353 if false { 60354 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 60355 z.EncExtension(x, yyxt1) 60356 } else { 60357 yysep2 := !z.EncBinary() 60358 yy2arr2 := z.EncBasicHandle().StructToArray 60359 _, _ = yysep2, yy2arr2 60360 const yyr2 bool = false // struct tag has 'toArray' 60361 if yyr2 || yy2arr2 { 60362 r.WriteArrayStart(4) 60363 } else { 60364 r.WriteMapStart(4) 60365 } 60366 if yyr2 || yy2arr2 { 60367 r.WriteArrayElem() 60368 if false { 60369 } else { 60370 r.EncodeUint(uint64(x.NodeModifyIndex)) 60371 } 60372 } else { 60373 r.WriteMapElemKey() 60374 if z.IsJSONHandle() { 60375 z.WriteStr("\"NodeModifyIndex\"") 60376 } else { 60377 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeModifyIndex`) 60378 } 60379 r.WriteMapElemValue() 60380 if false { 60381 } else { 60382 r.EncodeUint(uint64(x.NodeModifyIndex)) 60383 } 60384 } 60385 if yyr2 || yy2arr2 { 60386 r.WriteArrayElem() 60387 if x.EvalIDs == nil { 60388 r.EncodeNil() 60389 } else { 60390 if false { 60391 } else { 60392 z.F.EncSliceStringV(x.EvalIDs, e) 60393 } 60394 } 60395 } else { 60396 r.WriteMapElemKey() 60397 if z.IsJSONHandle() { 60398 z.WriteStr("\"EvalIDs\"") 60399 } else { 60400 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalIDs`) 60401 } 60402 r.WriteMapElemValue() 60403 if x.EvalIDs == nil { 60404 r.EncodeNil() 60405 } else { 60406 if false { 60407 } else { 60408 z.F.EncSliceStringV(x.EvalIDs, e) 60409 } 60410 } 60411 } 60412 if yyr2 || yy2arr2 { 60413 r.WriteArrayElem() 60414 if false { 60415 } else { 60416 r.EncodeUint(uint64(x.EvalCreateIndex)) 60417 } 60418 } else { 60419 r.WriteMapElemKey() 60420 if z.IsJSONHandle() { 60421 z.WriteStr("\"EvalCreateIndex\"") 60422 } else { 60423 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) 60424 } 60425 r.WriteMapElemValue() 60426 if false { 60427 } else { 60428 r.EncodeUint(uint64(x.EvalCreateIndex)) 60429 } 60430 } 60431 if yyr2 || yy2arr2 { 60432 r.WriteArrayElem() 60433 if false { 60434 } else { 60435 r.EncodeUint(uint64(x.Index)) 60436 } 60437 } else { 60438 r.WriteMapElemKey() 60439 if z.IsJSONHandle() { 60440 z.WriteStr("\"Index\"") 60441 } else { 60442 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 60443 } 60444 r.WriteMapElemValue() 60445 if false { 60446 } else { 60447 r.EncodeUint(uint64(x.Index)) 60448 } 60449 } 60450 if yyr2 || yy2arr2 { 60451 r.WriteArrayEnd() 60452 } else { 60453 r.WriteMapEnd() 60454 } 60455 } 60456 } 60457 } 60458 60459 func (x *NodeDrainUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { 60460 var h codecSelfer100 60461 z, r := codec1978.GenHelperDecoder(d) 60462 _, _, _ = h, z, r 60463 if false { 60464 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 60465 z.DecExtension(x, yyxt1) 60466 } else { 60467 yyct2 := r.ContainerType() 60468 if yyct2 == codecSelferValueTypeMap100 { 60469 yyl2 := r.ReadMapStart() 60470 if yyl2 == 0 { 60471 r.ReadMapEnd() 60472 } else { 60473 x.codecDecodeSelfFromMap(yyl2, d) 60474 } 60475 } else if yyct2 == codecSelferValueTypeArray100 { 60476 yyl2 := r.ReadArrayStart() 60477 if yyl2 == 0 { 60478 r.ReadArrayEnd() 60479 } else { 60480 x.codecDecodeSelfFromArray(yyl2, d) 60481 } 60482 } else { 60483 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 60484 } 60485 } 60486 } 60487 60488 func (x *NodeDrainUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 60489 var h codecSelfer100 60490 z, r := codec1978.GenHelperDecoder(d) 60491 _, _, _ = h, z, r 60492 var yyhl3 bool = l >= 0 60493 for yyj3 := 0; ; yyj3++ { 60494 if yyhl3 { 60495 if yyj3 >= l { 60496 break 60497 } 60498 } else { 60499 if r.CheckBreak() { 60500 break 60501 } 60502 } 60503 r.ReadMapElemKey() 60504 yys3 := z.StringView(r.DecodeStringAsBytes()) 60505 r.ReadMapElemValue() 60506 switch yys3 { 60507 case "NodeModifyIndex": 60508 if r.TryDecodeAsNil() { 60509 x.NodeModifyIndex = 0 60510 } else { 60511 x.NodeModifyIndex = (uint64)(r.DecodeUint64()) 60512 } 60513 case "EvalIDs": 60514 if r.TryDecodeAsNil() { 60515 x.EvalIDs = nil 60516 } else { 60517 if false { 60518 } else { 60519 z.F.DecSliceStringX(&x.EvalIDs, d) 60520 } 60521 } 60522 case "EvalCreateIndex": 60523 if r.TryDecodeAsNil() { 60524 x.EvalCreateIndex = 0 60525 } else { 60526 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 60527 } 60528 case "Index": 60529 if r.TryDecodeAsNil() { 60530 x.WriteMeta.Index = 0 60531 } else { 60532 x.Index = (uint64)(r.DecodeUint64()) 60533 } 60534 default: 60535 z.DecStructFieldNotFound(-1, yys3) 60536 } // end switch yys3 60537 } // end for yyj3 60538 r.ReadMapEnd() 60539 } 60540 60541 func (x *NodeDrainUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 60542 var h codecSelfer100 60543 z, r := codec1978.GenHelperDecoder(d) 60544 _, _, _ = h, z, r 60545 var yyj9 int 60546 var yyb9 bool 60547 var yyhl9 bool = l >= 0 60548 yyj9++ 60549 if yyhl9 { 60550 yyb9 = yyj9 > l 60551 } else { 60552 yyb9 = r.CheckBreak() 60553 } 60554 if yyb9 { 60555 r.ReadArrayEnd() 60556 return 60557 } 60558 r.ReadArrayElem() 60559 if r.TryDecodeAsNil() { 60560 x.NodeModifyIndex = 0 60561 } else { 60562 x.NodeModifyIndex = (uint64)(r.DecodeUint64()) 60563 } 60564 yyj9++ 60565 if yyhl9 { 60566 yyb9 = yyj9 > l 60567 } else { 60568 yyb9 = r.CheckBreak() 60569 } 60570 if yyb9 { 60571 r.ReadArrayEnd() 60572 return 60573 } 60574 r.ReadArrayElem() 60575 if r.TryDecodeAsNil() { 60576 x.EvalIDs = nil 60577 } else { 60578 if false { 60579 } else { 60580 z.F.DecSliceStringX(&x.EvalIDs, d) 60581 } 60582 } 60583 yyj9++ 60584 if yyhl9 { 60585 yyb9 = yyj9 > l 60586 } else { 60587 yyb9 = r.CheckBreak() 60588 } 60589 if yyb9 { 60590 r.ReadArrayEnd() 60591 return 60592 } 60593 r.ReadArrayElem() 60594 if r.TryDecodeAsNil() { 60595 x.EvalCreateIndex = 0 60596 } else { 60597 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 60598 } 60599 yyj9++ 60600 if yyhl9 { 60601 yyb9 = yyj9 > l 60602 } else { 60603 yyb9 = r.CheckBreak() 60604 } 60605 if yyb9 { 60606 r.ReadArrayEnd() 60607 return 60608 } 60609 r.ReadArrayElem() 60610 if r.TryDecodeAsNil() { 60611 x.WriteMeta.Index = 0 60612 } else { 60613 x.Index = (uint64)(r.DecodeUint64()) 60614 } 60615 for { 60616 yyj9++ 60617 if yyhl9 { 60618 yyb9 = yyj9 > l 60619 } else { 60620 yyb9 = r.CheckBreak() 60621 } 60622 if yyb9 { 60623 break 60624 } 60625 r.ReadArrayElem() 60626 z.DecStructFieldNotFound(yyj9-1, "") 60627 } 60628 r.ReadArrayEnd() 60629 } 60630 60631 func (x *NodeEligibilityUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { 60632 var h codecSelfer100 60633 z, r := codec1978.GenHelperEncoder(e) 60634 _, _, _ = h, z, r 60635 if x == nil { 60636 r.EncodeNil() 60637 } else { 60638 if false { 60639 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 60640 z.EncExtension(x, yyxt1) 60641 } else { 60642 yysep2 := !z.EncBinary() 60643 yy2arr2 := z.EncBasicHandle().StructToArray 60644 _, _ = yysep2, yy2arr2 60645 const yyr2 bool = false // struct tag has 'toArray' 60646 if yyr2 || yy2arr2 { 60647 r.WriteArrayStart(4) 60648 } else { 60649 r.WriteMapStart(4) 60650 } 60651 if yyr2 || yy2arr2 { 60652 r.WriteArrayElem() 60653 if false { 60654 } else { 60655 r.EncodeUint(uint64(x.NodeModifyIndex)) 60656 } 60657 } else { 60658 r.WriteMapElemKey() 60659 if z.IsJSONHandle() { 60660 z.WriteStr("\"NodeModifyIndex\"") 60661 } else { 60662 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeModifyIndex`) 60663 } 60664 r.WriteMapElemValue() 60665 if false { 60666 } else { 60667 r.EncodeUint(uint64(x.NodeModifyIndex)) 60668 } 60669 } 60670 if yyr2 || yy2arr2 { 60671 r.WriteArrayElem() 60672 if x.EvalIDs == nil { 60673 r.EncodeNil() 60674 } else { 60675 if false { 60676 } else { 60677 z.F.EncSliceStringV(x.EvalIDs, e) 60678 } 60679 } 60680 } else { 60681 r.WriteMapElemKey() 60682 if z.IsJSONHandle() { 60683 z.WriteStr("\"EvalIDs\"") 60684 } else { 60685 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalIDs`) 60686 } 60687 r.WriteMapElemValue() 60688 if x.EvalIDs == nil { 60689 r.EncodeNil() 60690 } else { 60691 if false { 60692 } else { 60693 z.F.EncSliceStringV(x.EvalIDs, e) 60694 } 60695 } 60696 } 60697 if yyr2 || yy2arr2 { 60698 r.WriteArrayElem() 60699 if false { 60700 } else { 60701 r.EncodeUint(uint64(x.EvalCreateIndex)) 60702 } 60703 } else { 60704 r.WriteMapElemKey() 60705 if z.IsJSONHandle() { 60706 z.WriteStr("\"EvalCreateIndex\"") 60707 } else { 60708 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) 60709 } 60710 r.WriteMapElemValue() 60711 if false { 60712 } else { 60713 r.EncodeUint(uint64(x.EvalCreateIndex)) 60714 } 60715 } 60716 if yyr2 || yy2arr2 { 60717 r.WriteArrayElem() 60718 if false { 60719 } else { 60720 r.EncodeUint(uint64(x.Index)) 60721 } 60722 } else { 60723 r.WriteMapElemKey() 60724 if z.IsJSONHandle() { 60725 z.WriteStr("\"Index\"") 60726 } else { 60727 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 60728 } 60729 r.WriteMapElemValue() 60730 if false { 60731 } else { 60732 r.EncodeUint(uint64(x.Index)) 60733 } 60734 } 60735 if yyr2 || yy2arr2 { 60736 r.WriteArrayEnd() 60737 } else { 60738 r.WriteMapEnd() 60739 } 60740 } 60741 } 60742 } 60743 60744 func (x *NodeEligibilityUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { 60745 var h codecSelfer100 60746 z, r := codec1978.GenHelperDecoder(d) 60747 _, _, _ = h, z, r 60748 if false { 60749 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 60750 z.DecExtension(x, yyxt1) 60751 } else { 60752 yyct2 := r.ContainerType() 60753 if yyct2 == codecSelferValueTypeMap100 { 60754 yyl2 := r.ReadMapStart() 60755 if yyl2 == 0 { 60756 r.ReadMapEnd() 60757 } else { 60758 x.codecDecodeSelfFromMap(yyl2, d) 60759 } 60760 } else if yyct2 == codecSelferValueTypeArray100 { 60761 yyl2 := r.ReadArrayStart() 60762 if yyl2 == 0 { 60763 r.ReadArrayEnd() 60764 } else { 60765 x.codecDecodeSelfFromArray(yyl2, d) 60766 } 60767 } else { 60768 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 60769 } 60770 } 60771 } 60772 60773 func (x *NodeEligibilityUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 60774 var h codecSelfer100 60775 z, r := codec1978.GenHelperDecoder(d) 60776 _, _, _ = h, z, r 60777 var yyhl3 bool = l >= 0 60778 for yyj3 := 0; ; yyj3++ { 60779 if yyhl3 { 60780 if yyj3 >= l { 60781 break 60782 } 60783 } else { 60784 if r.CheckBreak() { 60785 break 60786 } 60787 } 60788 r.ReadMapElemKey() 60789 yys3 := z.StringView(r.DecodeStringAsBytes()) 60790 r.ReadMapElemValue() 60791 switch yys3 { 60792 case "NodeModifyIndex": 60793 if r.TryDecodeAsNil() { 60794 x.NodeModifyIndex = 0 60795 } else { 60796 x.NodeModifyIndex = (uint64)(r.DecodeUint64()) 60797 } 60798 case "EvalIDs": 60799 if r.TryDecodeAsNil() { 60800 x.EvalIDs = nil 60801 } else { 60802 if false { 60803 } else { 60804 z.F.DecSliceStringX(&x.EvalIDs, d) 60805 } 60806 } 60807 case "EvalCreateIndex": 60808 if r.TryDecodeAsNil() { 60809 x.EvalCreateIndex = 0 60810 } else { 60811 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 60812 } 60813 case "Index": 60814 if r.TryDecodeAsNil() { 60815 x.WriteMeta.Index = 0 60816 } else { 60817 x.Index = (uint64)(r.DecodeUint64()) 60818 } 60819 default: 60820 z.DecStructFieldNotFound(-1, yys3) 60821 } // end switch yys3 60822 } // end for yyj3 60823 r.ReadMapEnd() 60824 } 60825 60826 func (x *NodeEligibilityUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 60827 var h codecSelfer100 60828 z, r := codec1978.GenHelperDecoder(d) 60829 _, _, _ = h, z, r 60830 var yyj9 int 60831 var yyb9 bool 60832 var yyhl9 bool = l >= 0 60833 yyj9++ 60834 if yyhl9 { 60835 yyb9 = yyj9 > l 60836 } else { 60837 yyb9 = r.CheckBreak() 60838 } 60839 if yyb9 { 60840 r.ReadArrayEnd() 60841 return 60842 } 60843 r.ReadArrayElem() 60844 if r.TryDecodeAsNil() { 60845 x.NodeModifyIndex = 0 60846 } else { 60847 x.NodeModifyIndex = (uint64)(r.DecodeUint64()) 60848 } 60849 yyj9++ 60850 if yyhl9 { 60851 yyb9 = yyj9 > l 60852 } else { 60853 yyb9 = r.CheckBreak() 60854 } 60855 if yyb9 { 60856 r.ReadArrayEnd() 60857 return 60858 } 60859 r.ReadArrayElem() 60860 if r.TryDecodeAsNil() { 60861 x.EvalIDs = nil 60862 } else { 60863 if false { 60864 } else { 60865 z.F.DecSliceStringX(&x.EvalIDs, d) 60866 } 60867 } 60868 yyj9++ 60869 if yyhl9 { 60870 yyb9 = yyj9 > l 60871 } else { 60872 yyb9 = r.CheckBreak() 60873 } 60874 if yyb9 { 60875 r.ReadArrayEnd() 60876 return 60877 } 60878 r.ReadArrayElem() 60879 if r.TryDecodeAsNil() { 60880 x.EvalCreateIndex = 0 60881 } else { 60882 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 60883 } 60884 yyj9++ 60885 if yyhl9 { 60886 yyb9 = yyj9 > l 60887 } else { 60888 yyb9 = r.CheckBreak() 60889 } 60890 if yyb9 { 60891 r.ReadArrayEnd() 60892 return 60893 } 60894 r.ReadArrayElem() 60895 if r.TryDecodeAsNil() { 60896 x.WriteMeta.Index = 0 60897 } else { 60898 x.Index = (uint64)(r.DecodeUint64()) 60899 } 60900 for { 60901 yyj9++ 60902 if yyhl9 { 60903 yyb9 = yyj9 > l 60904 } else { 60905 yyb9 = r.CheckBreak() 60906 } 60907 if yyb9 { 60908 break 60909 } 60910 r.ReadArrayElem() 60911 z.DecStructFieldNotFound(yyj9-1, "") 60912 } 60913 r.ReadArrayEnd() 60914 } 60915 60916 func (x *NodeAllocsResponse) CodecEncodeSelf(e *codec1978.Encoder) { 60917 var h codecSelfer100 60918 z, r := codec1978.GenHelperEncoder(e) 60919 _, _, _ = h, z, r 60920 if x == nil { 60921 r.EncodeNil() 60922 } else { 60923 if false { 60924 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 60925 z.EncExtension(x, yyxt1) 60926 } else { 60927 yysep2 := !z.EncBinary() 60928 yy2arr2 := z.EncBasicHandle().StructToArray 60929 _, _ = yysep2, yy2arr2 60930 const yyr2 bool = false // struct tag has 'toArray' 60931 if yyr2 || yy2arr2 { 60932 r.WriteArrayStart(4) 60933 } else { 60934 r.WriteMapStart(4) 60935 } 60936 if yyr2 || yy2arr2 { 60937 r.WriteArrayElem() 60938 if x.Allocs == nil { 60939 r.EncodeNil() 60940 } else { 60941 if false { 60942 } else { 60943 h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) 60944 } 60945 } 60946 } else { 60947 r.WriteMapElemKey() 60948 if z.IsJSONHandle() { 60949 z.WriteStr("\"Allocs\"") 60950 } else { 60951 r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) 60952 } 60953 r.WriteMapElemValue() 60954 if x.Allocs == nil { 60955 r.EncodeNil() 60956 } else { 60957 if false { 60958 } else { 60959 h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) 60960 } 60961 } 60962 } 60963 if yyr2 || yy2arr2 { 60964 r.WriteArrayElem() 60965 if false { 60966 } else { 60967 r.EncodeUint(uint64(x.Index)) 60968 } 60969 } else { 60970 r.WriteMapElemKey() 60971 if z.IsJSONHandle() { 60972 z.WriteStr("\"Index\"") 60973 } else { 60974 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 60975 } 60976 r.WriteMapElemValue() 60977 if false { 60978 } else { 60979 r.EncodeUint(uint64(x.Index)) 60980 } 60981 } 60982 if yyr2 || yy2arr2 { 60983 r.WriteArrayElem() 60984 if false { 60985 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 60986 z.EncExtension(x.LastContact, yyxt10) 60987 } else { 60988 r.EncodeInt(int64(x.LastContact)) 60989 } 60990 } else { 60991 r.WriteMapElemKey() 60992 if z.IsJSONHandle() { 60993 z.WriteStr("\"LastContact\"") 60994 } else { 60995 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 60996 } 60997 r.WriteMapElemValue() 60998 if false { 60999 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 61000 z.EncExtension(x.LastContact, yyxt11) 61001 } else { 61002 r.EncodeInt(int64(x.LastContact)) 61003 } 61004 } 61005 if yyr2 || yy2arr2 { 61006 r.WriteArrayElem() 61007 if false { 61008 } else { 61009 r.EncodeBool(bool(x.KnownLeader)) 61010 } 61011 } else { 61012 r.WriteMapElemKey() 61013 if z.IsJSONHandle() { 61014 z.WriteStr("\"KnownLeader\"") 61015 } else { 61016 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 61017 } 61018 r.WriteMapElemValue() 61019 if false { 61020 } else { 61021 r.EncodeBool(bool(x.KnownLeader)) 61022 } 61023 } 61024 if yyr2 || yy2arr2 { 61025 r.WriteArrayEnd() 61026 } else { 61027 r.WriteMapEnd() 61028 } 61029 } 61030 } 61031 } 61032 61033 func (x *NodeAllocsResponse) CodecDecodeSelf(d *codec1978.Decoder) { 61034 var h codecSelfer100 61035 z, r := codec1978.GenHelperDecoder(d) 61036 _, _, _ = h, z, r 61037 if false { 61038 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 61039 z.DecExtension(x, yyxt1) 61040 } else { 61041 yyct2 := r.ContainerType() 61042 if yyct2 == codecSelferValueTypeMap100 { 61043 yyl2 := r.ReadMapStart() 61044 if yyl2 == 0 { 61045 r.ReadMapEnd() 61046 } else { 61047 x.codecDecodeSelfFromMap(yyl2, d) 61048 } 61049 } else if yyct2 == codecSelferValueTypeArray100 { 61050 yyl2 := r.ReadArrayStart() 61051 if yyl2 == 0 { 61052 r.ReadArrayEnd() 61053 } else { 61054 x.codecDecodeSelfFromArray(yyl2, d) 61055 } 61056 } else { 61057 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 61058 } 61059 } 61060 } 61061 61062 func (x *NodeAllocsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 61063 var h codecSelfer100 61064 z, r := codec1978.GenHelperDecoder(d) 61065 _, _, _ = h, z, r 61066 var yyhl3 bool = l >= 0 61067 for yyj3 := 0; ; yyj3++ { 61068 if yyhl3 { 61069 if yyj3 >= l { 61070 break 61071 } 61072 } else { 61073 if r.CheckBreak() { 61074 break 61075 } 61076 } 61077 r.ReadMapElemKey() 61078 yys3 := z.StringView(r.DecodeStringAsBytes()) 61079 r.ReadMapElemValue() 61080 switch yys3 { 61081 case "Allocs": 61082 if r.TryDecodeAsNil() { 61083 x.Allocs = nil 61084 } else { 61085 if false { 61086 } else { 61087 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Allocs), d) 61088 } 61089 } 61090 case "Index": 61091 if r.TryDecodeAsNil() { 61092 x.QueryMeta.Index = 0 61093 } else { 61094 x.Index = (uint64)(r.DecodeUint64()) 61095 } 61096 case "LastContact": 61097 if r.TryDecodeAsNil() { 61098 x.QueryMeta.LastContact = 0 61099 } else { 61100 if false { 61101 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 61102 z.DecExtension(x.LastContact, yyxt8) 61103 } else { 61104 x.LastContact = (time.Duration)(r.DecodeInt64()) 61105 } 61106 } 61107 case "KnownLeader": 61108 if r.TryDecodeAsNil() { 61109 x.QueryMeta.KnownLeader = false 61110 } else { 61111 x.KnownLeader = (bool)(r.DecodeBool()) 61112 } 61113 default: 61114 z.DecStructFieldNotFound(-1, yys3) 61115 } // end switch yys3 61116 } // end for yyj3 61117 r.ReadMapEnd() 61118 } 61119 61120 func (x *NodeAllocsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 61121 var h codecSelfer100 61122 z, r := codec1978.GenHelperDecoder(d) 61123 _, _, _ = h, z, r 61124 var yyj10 int 61125 var yyb10 bool 61126 var yyhl10 bool = l >= 0 61127 yyj10++ 61128 if yyhl10 { 61129 yyb10 = yyj10 > l 61130 } else { 61131 yyb10 = r.CheckBreak() 61132 } 61133 if yyb10 { 61134 r.ReadArrayEnd() 61135 return 61136 } 61137 r.ReadArrayElem() 61138 if r.TryDecodeAsNil() { 61139 x.Allocs = nil 61140 } else { 61141 if false { 61142 } else { 61143 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Allocs), d) 61144 } 61145 } 61146 yyj10++ 61147 if yyhl10 { 61148 yyb10 = yyj10 > l 61149 } else { 61150 yyb10 = r.CheckBreak() 61151 } 61152 if yyb10 { 61153 r.ReadArrayEnd() 61154 return 61155 } 61156 r.ReadArrayElem() 61157 if r.TryDecodeAsNil() { 61158 x.QueryMeta.Index = 0 61159 } else { 61160 x.Index = (uint64)(r.DecodeUint64()) 61161 } 61162 yyj10++ 61163 if yyhl10 { 61164 yyb10 = yyj10 > l 61165 } else { 61166 yyb10 = r.CheckBreak() 61167 } 61168 if yyb10 { 61169 r.ReadArrayEnd() 61170 return 61171 } 61172 r.ReadArrayElem() 61173 if r.TryDecodeAsNil() { 61174 x.QueryMeta.LastContact = 0 61175 } else { 61176 if false { 61177 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 61178 z.DecExtension(x.LastContact, yyxt15) 61179 } else { 61180 x.LastContact = (time.Duration)(r.DecodeInt64()) 61181 } 61182 } 61183 yyj10++ 61184 if yyhl10 { 61185 yyb10 = yyj10 > l 61186 } else { 61187 yyb10 = r.CheckBreak() 61188 } 61189 if yyb10 { 61190 r.ReadArrayEnd() 61191 return 61192 } 61193 r.ReadArrayElem() 61194 if r.TryDecodeAsNil() { 61195 x.QueryMeta.KnownLeader = false 61196 } else { 61197 x.KnownLeader = (bool)(r.DecodeBool()) 61198 } 61199 for { 61200 yyj10++ 61201 if yyhl10 { 61202 yyb10 = yyj10 > l 61203 } else { 61204 yyb10 = r.CheckBreak() 61205 } 61206 if yyb10 { 61207 break 61208 } 61209 r.ReadArrayElem() 61210 z.DecStructFieldNotFound(yyj10-1, "") 61211 } 61212 r.ReadArrayEnd() 61213 } 61214 61215 func (x *NodeClientAllocsResponse) CodecEncodeSelf(e *codec1978.Encoder) { 61216 var h codecSelfer100 61217 z, r := codec1978.GenHelperEncoder(e) 61218 _, _, _ = h, z, r 61219 if x == nil { 61220 r.EncodeNil() 61221 } else { 61222 if false { 61223 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 61224 z.EncExtension(x, yyxt1) 61225 } else { 61226 yysep2 := !z.EncBinary() 61227 yy2arr2 := z.EncBasicHandle().StructToArray 61228 _, _ = yysep2, yy2arr2 61229 const yyr2 bool = false // struct tag has 'toArray' 61230 if yyr2 || yy2arr2 { 61231 r.WriteArrayStart(5) 61232 } else { 61233 r.WriteMapStart(5) 61234 } 61235 if yyr2 || yy2arr2 { 61236 r.WriteArrayElem() 61237 if x.Allocs == nil { 61238 r.EncodeNil() 61239 } else { 61240 if false { 61241 } else { 61242 z.F.EncMapStringUint64V(x.Allocs, e) 61243 } 61244 } 61245 } else { 61246 r.WriteMapElemKey() 61247 if z.IsJSONHandle() { 61248 z.WriteStr("\"Allocs\"") 61249 } else { 61250 r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) 61251 } 61252 r.WriteMapElemValue() 61253 if x.Allocs == nil { 61254 r.EncodeNil() 61255 } else { 61256 if false { 61257 } else { 61258 z.F.EncMapStringUint64V(x.Allocs, e) 61259 } 61260 } 61261 } 61262 if yyr2 || yy2arr2 { 61263 r.WriteArrayElem() 61264 if x.MigrateTokens == nil { 61265 r.EncodeNil() 61266 } else { 61267 if false { 61268 } else { 61269 z.F.EncMapStringStringV(x.MigrateTokens, e) 61270 } 61271 } 61272 } else { 61273 r.WriteMapElemKey() 61274 if z.IsJSONHandle() { 61275 z.WriteStr("\"MigrateTokens\"") 61276 } else { 61277 r.EncodeStringEnc(codecSelferCcUTF8100, `MigrateTokens`) 61278 } 61279 r.WriteMapElemValue() 61280 if x.MigrateTokens == nil { 61281 r.EncodeNil() 61282 } else { 61283 if false { 61284 } else { 61285 z.F.EncMapStringStringV(x.MigrateTokens, e) 61286 } 61287 } 61288 } 61289 if yyr2 || yy2arr2 { 61290 r.WriteArrayElem() 61291 if false { 61292 } else { 61293 r.EncodeUint(uint64(x.Index)) 61294 } 61295 } else { 61296 r.WriteMapElemKey() 61297 if z.IsJSONHandle() { 61298 z.WriteStr("\"Index\"") 61299 } else { 61300 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 61301 } 61302 r.WriteMapElemValue() 61303 if false { 61304 } else { 61305 r.EncodeUint(uint64(x.Index)) 61306 } 61307 } 61308 if yyr2 || yy2arr2 { 61309 r.WriteArrayElem() 61310 if false { 61311 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 61312 z.EncExtension(x.LastContact, yyxt13) 61313 } else { 61314 r.EncodeInt(int64(x.LastContact)) 61315 } 61316 } else { 61317 r.WriteMapElemKey() 61318 if z.IsJSONHandle() { 61319 z.WriteStr("\"LastContact\"") 61320 } else { 61321 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 61322 } 61323 r.WriteMapElemValue() 61324 if false { 61325 } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { 61326 z.EncExtension(x.LastContact, yyxt14) 61327 } else { 61328 r.EncodeInt(int64(x.LastContact)) 61329 } 61330 } 61331 if yyr2 || yy2arr2 { 61332 r.WriteArrayElem() 61333 if false { 61334 } else { 61335 r.EncodeBool(bool(x.KnownLeader)) 61336 } 61337 } else { 61338 r.WriteMapElemKey() 61339 if z.IsJSONHandle() { 61340 z.WriteStr("\"KnownLeader\"") 61341 } else { 61342 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 61343 } 61344 r.WriteMapElemValue() 61345 if false { 61346 } else { 61347 r.EncodeBool(bool(x.KnownLeader)) 61348 } 61349 } 61350 if yyr2 || yy2arr2 { 61351 r.WriteArrayEnd() 61352 } else { 61353 r.WriteMapEnd() 61354 } 61355 } 61356 } 61357 } 61358 61359 func (x *NodeClientAllocsResponse) CodecDecodeSelf(d *codec1978.Decoder) { 61360 var h codecSelfer100 61361 z, r := codec1978.GenHelperDecoder(d) 61362 _, _, _ = h, z, r 61363 if false { 61364 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 61365 z.DecExtension(x, yyxt1) 61366 } else { 61367 yyct2 := r.ContainerType() 61368 if yyct2 == codecSelferValueTypeMap100 { 61369 yyl2 := r.ReadMapStart() 61370 if yyl2 == 0 { 61371 r.ReadMapEnd() 61372 } else { 61373 x.codecDecodeSelfFromMap(yyl2, d) 61374 } 61375 } else if yyct2 == codecSelferValueTypeArray100 { 61376 yyl2 := r.ReadArrayStart() 61377 if yyl2 == 0 { 61378 r.ReadArrayEnd() 61379 } else { 61380 x.codecDecodeSelfFromArray(yyl2, d) 61381 } 61382 } else { 61383 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 61384 } 61385 } 61386 } 61387 61388 func (x *NodeClientAllocsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 61389 var h codecSelfer100 61390 z, r := codec1978.GenHelperDecoder(d) 61391 _, _, _ = h, z, r 61392 var yyhl3 bool = l >= 0 61393 for yyj3 := 0; ; yyj3++ { 61394 if yyhl3 { 61395 if yyj3 >= l { 61396 break 61397 } 61398 } else { 61399 if r.CheckBreak() { 61400 break 61401 } 61402 } 61403 r.ReadMapElemKey() 61404 yys3 := z.StringView(r.DecodeStringAsBytes()) 61405 r.ReadMapElemValue() 61406 switch yys3 { 61407 case "Allocs": 61408 if r.TryDecodeAsNil() { 61409 x.Allocs = nil 61410 } else { 61411 if false { 61412 } else { 61413 z.F.DecMapStringUint64X(&x.Allocs, d) 61414 } 61415 } 61416 case "MigrateTokens": 61417 if r.TryDecodeAsNil() { 61418 x.MigrateTokens = nil 61419 } else { 61420 if false { 61421 } else { 61422 z.F.DecMapStringStringX(&x.MigrateTokens, d) 61423 } 61424 } 61425 case "Index": 61426 if r.TryDecodeAsNil() { 61427 x.QueryMeta.Index = 0 61428 } else { 61429 x.Index = (uint64)(r.DecodeUint64()) 61430 } 61431 case "LastContact": 61432 if r.TryDecodeAsNil() { 61433 x.QueryMeta.LastContact = 0 61434 } else { 61435 if false { 61436 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 61437 z.DecExtension(x.LastContact, yyxt10) 61438 } else { 61439 x.LastContact = (time.Duration)(r.DecodeInt64()) 61440 } 61441 } 61442 case "KnownLeader": 61443 if r.TryDecodeAsNil() { 61444 x.QueryMeta.KnownLeader = false 61445 } else { 61446 x.KnownLeader = (bool)(r.DecodeBool()) 61447 } 61448 default: 61449 z.DecStructFieldNotFound(-1, yys3) 61450 } // end switch yys3 61451 } // end for yyj3 61452 r.ReadMapEnd() 61453 } 61454 61455 func (x *NodeClientAllocsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 61456 var h codecSelfer100 61457 z, r := codec1978.GenHelperDecoder(d) 61458 _, _, _ = h, z, r 61459 var yyj12 int 61460 var yyb12 bool 61461 var yyhl12 bool = l >= 0 61462 yyj12++ 61463 if yyhl12 { 61464 yyb12 = yyj12 > l 61465 } else { 61466 yyb12 = r.CheckBreak() 61467 } 61468 if yyb12 { 61469 r.ReadArrayEnd() 61470 return 61471 } 61472 r.ReadArrayElem() 61473 if r.TryDecodeAsNil() { 61474 x.Allocs = nil 61475 } else { 61476 if false { 61477 } else { 61478 z.F.DecMapStringUint64X(&x.Allocs, d) 61479 } 61480 } 61481 yyj12++ 61482 if yyhl12 { 61483 yyb12 = yyj12 > l 61484 } else { 61485 yyb12 = r.CheckBreak() 61486 } 61487 if yyb12 { 61488 r.ReadArrayEnd() 61489 return 61490 } 61491 r.ReadArrayElem() 61492 if r.TryDecodeAsNil() { 61493 x.MigrateTokens = nil 61494 } else { 61495 if false { 61496 } else { 61497 z.F.DecMapStringStringX(&x.MigrateTokens, d) 61498 } 61499 } 61500 yyj12++ 61501 if yyhl12 { 61502 yyb12 = yyj12 > l 61503 } else { 61504 yyb12 = r.CheckBreak() 61505 } 61506 if yyb12 { 61507 r.ReadArrayEnd() 61508 return 61509 } 61510 r.ReadArrayElem() 61511 if r.TryDecodeAsNil() { 61512 x.QueryMeta.Index = 0 61513 } else { 61514 x.Index = (uint64)(r.DecodeUint64()) 61515 } 61516 yyj12++ 61517 if yyhl12 { 61518 yyb12 = yyj12 > l 61519 } else { 61520 yyb12 = r.CheckBreak() 61521 } 61522 if yyb12 { 61523 r.ReadArrayEnd() 61524 return 61525 } 61526 r.ReadArrayElem() 61527 if r.TryDecodeAsNil() { 61528 x.QueryMeta.LastContact = 0 61529 } else { 61530 if false { 61531 } else if yyxt19 := z.Extension(z.I2Rtid(x.LastContact)); yyxt19 != nil { 61532 z.DecExtension(x.LastContact, yyxt19) 61533 } else { 61534 x.LastContact = (time.Duration)(r.DecodeInt64()) 61535 } 61536 } 61537 yyj12++ 61538 if yyhl12 { 61539 yyb12 = yyj12 > l 61540 } else { 61541 yyb12 = r.CheckBreak() 61542 } 61543 if yyb12 { 61544 r.ReadArrayEnd() 61545 return 61546 } 61547 r.ReadArrayElem() 61548 if r.TryDecodeAsNil() { 61549 x.QueryMeta.KnownLeader = false 61550 } else { 61551 x.KnownLeader = (bool)(r.DecodeBool()) 61552 } 61553 for { 61554 yyj12++ 61555 if yyhl12 { 61556 yyb12 = yyj12 > l 61557 } else { 61558 yyb12 = r.CheckBreak() 61559 } 61560 if yyb12 { 61561 break 61562 } 61563 r.ReadArrayElem() 61564 z.DecStructFieldNotFound(yyj12-1, "") 61565 } 61566 r.ReadArrayEnd() 61567 } 61568 61569 func (x *SingleNodeResponse) CodecEncodeSelf(e *codec1978.Encoder) { 61570 var h codecSelfer100 61571 z, r := codec1978.GenHelperEncoder(e) 61572 _, _, _ = h, z, r 61573 if x == nil { 61574 r.EncodeNil() 61575 } else { 61576 if false { 61577 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 61578 z.EncExtension(x, yyxt1) 61579 } else { 61580 yysep2 := !z.EncBinary() 61581 yy2arr2 := z.EncBasicHandle().StructToArray 61582 _, _ = yysep2, yy2arr2 61583 const yyr2 bool = false // struct tag has 'toArray' 61584 if yyr2 || yy2arr2 { 61585 r.WriteArrayStart(4) 61586 } else { 61587 r.WriteMapStart(4) 61588 } 61589 var yyn3 bool 61590 if x.Node == nil { 61591 yyn3 = true 61592 goto LABEL3 61593 } 61594 LABEL3: 61595 if yyr2 || yy2arr2 { 61596 if yyn3 { 61597 r.WriteArrayElem() 61598 r.EncodeNil() 61599 } else { 61600 r.WriteArrayElem() 61601 if x.Node == nil { 61602 r.EncodeNil() 61603 } else { 61604 x.Node.CodecEncodeSelf(e) 61605 } 61606 } 61607 } else { 61608 r.WriteMapElemKey() 61609 if z.IsJSONHandle() { 61610 z.WriteStr("\"Node\"") 61611 } else { 61612 r.EncodeStringEnc(codecSelferCcUTF8100, `Node`) 61613 } 61614 r.WriteMapElemValue() 61615 if yyn3 { 61616 r.EncodeNil() 61617 } else { 61618 if x.Node == nil { 61619 r.EncodeNil() 61620 } else { 61621 x.Node.CodecEncodeSelf(e) 61622 } 61623 } 61624 } 61625 if yyr2 || yy2arr2 { 61626 r.WriteArrayElem() 61627 if false { 61628 } else { 61629 r.EncodeUint(uint64(x.Index)) 61630 } 61631 } else { 61632 r.WriteMapElemKey() 61633 if z.IsJSONHandle() { 61634 z.WriteStr("\"Index\"") 61635 } else { 61636 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 61637 } 61638 r.WriteMapElemValue() 61639 if false { 61640 } else { 61641 r.EncodeUint(uint64(x.Index)) 61642 } 61643 } 61644 if yyr2 || yy2arr2 { 61645 r.WriteArrayElem() 61646 if false { 61647 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 61648 z.EncExtension(x.LastContact, yyxt10) 61649 } else { 61650 r.EncodeInt(int64(x.LastContact)) 61651 } 61652 } else { 61653 r.WriteMapElemKey() 61654 if z.IsJSONHandle() { 61655 z.WriteStr("\"LastContact\"") 61656 } else { 61657 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 61658 } 61659 r.WriteMapElemValue() 61660 if false { 61661 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 61662 z.EncExtension(x.LastContact, yyxt11) 61663 } else { 61664 r.EncodeInt(int64(x.LastContact)) 61665 } 61666 } 61667 if yyr2 || yy2arr2 { 61668 r.WriteArrayElem() 61669 if false { 61670 } else { 61671 r.EncodeBool(bool(x.KnownLeader)) 61672 } 61673 } else { 61674 r.WriteMapElemKey() 61675 if z.IsJSONHandle() { 61676 z.WriteStr("\"KnownLeader\"") 61677 } else { 61678 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 61679 } 61680 r.WriteMapElemValue() 61681 if false { 61682 } else { 61683 r.EncodeBool(bool(x.KnownLeader)) 61684 } 61685 } 61686 if yyr2 || yy2arr2 { 61687 r.WriteArrayEnd() 61688 } else { 61689 r.WriteMapEnd() 61690 } 61691 } 61692 } 61693 } 61694 61695 func (x *SingleNodeResponse) CodecDecodeSelf(d *codec1978.Decoder) { 61696 var h codecSelfer100 61697 z, r := codec1978.GenHelperDecoder(d) 61698 _, _, _ = h, z, r 61699 if false { 61700 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 61701 z.DecExtension(x, yyxt1) 61702 } else { 61703 yyct2 := r.ContainerType() 61704 if yyct2 == codecSelferValueTypeMap100 { 61705 yyl2 := r.ReadMapStart() 61706 if yyl2 == 0 { 61707 r.ReadMapEnd() 61708 } else { 61709 x.codecDecodeSelfFromMap(yyl2, d) 61710 } 61711 } else if yyct2 == codecSelferValueTypeArray100 { 61712 yyl2 := r.ReadArrayStart() 61713 if yyl2 == 0 { 61714 r.ReadArrayEnd() 61715 } else { 61716 x.codecDecodeSelfFromArray(yyl2, d) 61717 } 61718 } else { 61719 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 61720 } 61721 } 61722 } 61723 61724 func (x *SingleNodeResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 61725 var h codecSelfer100 61726 z, r := codec1978.GenHelperDecoder(d) 61727 _, _, _ = h, z, r 61728 var yyhl3 bool = l >= 0 61729 for yyj3 := 0; ; yyj3++ { 61730 if yyhl3 { 61731 if yyj3 >= l { 61732 break 61733 } 61734 } else { 61735 if r.CheckBreak() { 61736 break 61737 } 61738 } 61739 r.ReadMapElemKey() 61740 yys3 := z.StringView(r.DecodeStringAsBytes()) 61741 r.ReadMapElemValue() 61742 switch yys3 { 61743 case "Node": 61744 if r.TryDecodeAsNil() { 61745 if true && x.Node != nil { 61746 x.Node = nil 61747 } 61748 } else { 61749 if x.Node == nil { 61750 x.Node = new(Node) 61751 } 61752 61753 x.Node.CodecDecodeSelf(d) 61754 } 61755 case "Index": 61756 if r.TryDecodeAsNil() { 61757 x.QueryMeta.Index = 0 61758 } else { 61759 x.Index = (uint64)(r.DecodeUint64()) 61760 } 61761 case "LastContact": 61762 if r.TryDecodeAsNil() { 61763 x.QueryMeta.LastContact = 0 61764 } else { 61765 if false { 61766 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 61767 z.DecExtension(x.LastContact, yyxt7) 61768 } else { 61769 x.LastContact = (time.Duration)(r.DecodeInt64()) 61770 } 61771 } 61772 case "KnownLeader": 61773 if r.TryDecodeAsNil() { 61774 x.QueryMeta.KnownLeader = false 61775 } else { 61776 x.KnownLeader = (bool)(r.DecodeBool()) 61777 } 61778 default: 61779 z.DecStructFieldNotFound(-1, yys3) 61780 } // end switch yys3 61781 } // end for yyj3 61782 r.ReadMapEnd() 61783 } 61784 61785 func (x *SingleNodeResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 61786 var h codecSelfer100 61787 z, r := codec1978.GenHelperDecoder(d) 61788 _, _, _ = h, z, r 61789 var yyj9 int 61790 var yyb9 bool 61791 var yyhl9 bool = l >= 0 61792 yyj9++ 61793 if yyhl9 { 61794 yyb9 = yyj9 > l 61795 } else { 61796 yyb9 = r.CheckBreak() 61797 } 61798 if yyb9 { 61799 r.ReadArrayEnd() 61800 return 61801 } 61802 r.ReadArrayElem() 61803 if r.TryDecodeAsNil() { 61804 if true && x.Node != nil { 61805 x.Node = nil 61806 } 61807 } else { 61808 if x.Node == nil { 61809 x.Node = new(Node) 61810 } 61811 61812 x.Node.CodecDecodeSelf(d) 61813 } 61814 yyj9++ 61815 if yyhl9 { 61816 yyb9 = yyj9 > l 61817 } else { 61818 yyb9 = r.CheckBreak() 61819 } 61820 if yyb9 { 61821 r.ReadArrayEnd() 61822 return 61823 } 61824 r.ReadArrayElem() 61825 if r.TryDecodeAsNil() { 61826 x.QueryMeta.Index = 0 61827 } else { 61828 x.Index = (uint64)(r.DecodeUint64()) 61829 } 61830 yyj9++ 61831 if yyhl9 { 61832 yyb9 = yyj9 > l 61833 } else { 61834 yyb9 = r.CheckBreak() 61835 } 61836 if yyb9 { 61837 r.ReadArrayEnd() 61838 return 61839 } 61840 r.ReadArrayElem() 61841 if r.TryDecodeAsNil() { 61842 x.QueryMeta.LastContact = 0 61843 } else { 61844 if false { 61845 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 61846 z.DecExtension(x.LastContact, yyxt13) 61847 } else { 61848 x.LastContact = (time.Duration)(r.DecodeInt64()) 61849 } 61850 } 61851 yyj9++ 61852 if yyhl9 { 61853 yyb9 = yyj9 > l 61854 } else { 61855 yyb9 = r.CheckBreak() 61856 } 61857 if yyb9 { 61858 r.ReadArrayEnd() 61859 return 61860 } 61861 r.ReadArrayElem() 61862 if r.TryDecodeAsNil() { 61863 x.QueryMeta.KnownLeader = false 61864 } else { 61865 x.KnownLeader = (bool)(r.DecodeBool()) 61866 } 61867 for { 61868 yyj9++ 61869 if yyhl9 { 61870 yyb9 = yyj9 > l 61871 } else { 61872 yyb9 = r.CheckBreak() 61873 } 61874 if yyb9 { 61875 break 61876 } 61877 r.ReadArrayElem() 61878 z.DecStructFieldNotFound(yyj9-1, "") 61879 } 61880 r.ReadArrayEnd() 61881 } 61882 61883 func (x *NodeListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 61884 var h codecSelfer100 61885 z, r := codec1978.GenHelperEncoder(e) 61886 _, _, _ = h, z, r 61887 if x == nil { 61888 r.EncodeNil() 61889 } else { 61890 if false { 61891 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 61892 z.EncExtension(x, yyxt1) 61893 } else { 61894 yysep2 := !z.EncBinary() 61895 yy2arr2 := z.EncBasicHandle().StructToArray 61896 _, _ = yysep2, yy2arr2 61897 const yyr2 bool = false // struct tag has 'toArray' 61898 if yyr2 || yy2arr2 { 61899 r.WriteArrayStart(4) 61900 } else { 61901 r.WriteMapStart(4) 61902 } 61903 if yyr2 || yy2arr2 { 61904 r.WriteArrayElem() 61905 if x.Nodes == nil { 61906 r.EncodeNil() 61907 } else { 61908 if false { 61909 } else { 61910 h.encSlicePtrtoNodeListStub(([]*NodeListStub)(x.Nodes), e) 61911 } 61912 } 61913 } else { 61914 r.WriteMapElemKey() 61915 if z.IsJSONHandle() { 61916 z.WriteStr("\"Nodes\"") 61917 } else { 61918 r.EncodeStringEnc(codecSelferCcUTF8100, `Nodes`) 61919 } 61920 r.WriteMapElemValue() 61921 if x.Nodes == nil { 61922 r.EncodeNil() 61923 } else { 61924 if false { 61925 } else { 61926 h.encSlicePtrtoNodeListStub(([]*NodeListStub)(x.Nodes), e) 61927 } 61928 } 61929 } 61930 if yyr2 || yy2arr2 { 61931 r.WriteArrayElem() 61932 if false { 61933 } else { 61934 r.EncodeUint(uint64(x.Index)) 61935 } 61936 } else { 61937 r.WriteMapElemKey() 61938 if z.IsJSONHandle() { 61939 z.WriteStr("\"Index\"") 61940 } else { 61941 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 61942 } 61943 r.WriteMapElemValue() 61944 if false { 61945 } else { 61946 r.EncodeUint(uint64(x.Index)) 61947 } 61948 } 61949 if yyr2 || yy2arr2 { 61950 r.WriteArrayElem() 61951 if false { 61952 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 61953 z.EncExtension(x.LastContact, yyxt10) 61954 } else { 61955 r.EncodeInt(int64(x.LastContact)) 61956 } 61957 } else { 61958 r.WriteMapElemKey() 61959 if z.IsJSONHandle() { 61960 z.WriteStr("\"LastContact\"") 61961 } else { 61962 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 61963 } 61964 r.WriteMapElemValue() 61965 if false { 61966 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 61967 z.EncExtension(x.LastContact, yyxt11) 61968 } else { 61969 r.EncodeInt(int64(x.LastContact)) 61970 } 61971 } 61972 if yyr2 || yy2arr2 { 61973 r.WriteArrayElem() 61974 if false { 61975 } else { 61976 r.EncodeBool(bool(x.KnownLeader)) 61977 } 61978 } else { 61979 r.WriteMapElemKey() 61980 if z.IsJSONHandle() { 61981 z.WriteStr("\"KnownLeader\"") 61982 } else { 61983 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 61984 } 61985 r.WriteMapElemValue() 61986 if false { 61987 } else { 61988 r.EncodeBool(bool(x.KnownLeader)) 61989 } 61990 } 61991 if yyr2 || yy2arr2 { 61992 r.WriteArrayEnd() 61993 } else { 61994 r.WriteMapEnd() 61995 } 61996 } 61997 } 61998 } 61999 62000 func (x *NodeListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 62001 var h codecSelfer100 62002 z, r := codec1978.GenHelperDecoder(d) 62003 _, _, _ = h, z, r 62004 if false { 62005 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 62006 z.DecExtension(x, yyxt1) 62007 } else { 62008 yyct2 := r.ContainerType() 62009 if yyct2 == codecSelferValueTypeMap100 { 62010 yyl2 := r.ReadMapStart() 62011 if yyl2 == 0 { 62012 r.ReadMapEnd() 62013 } else { 62014 x.codecDecodeSelfFromMap(yyl2, d) 62015 } 62016 } else if yyct2 == codecSelferValueTypeArray100 { 62017 yyl2 := r.ReadArrayStart() 62018 if yyl2 == 0 { 62019 r.ReadArrayEnd() 62020 } else { 62021 x.codecDecodeSelfFromArray(yyl2, d) 62022 } 62023 } else { 62024 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 62025 } 62026 } 62027 } 62028 62029 func (x *NodeListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 62030 var h codecSelfer100 62031 z, r := codec1978.GenHelperDecoder(d) 62032 _, _, _ = h, z, r 62033 var yyhl3 bool = l >= 0 62034 for yyj3 := 0; ; yyj3++ { 62035 if yyhl3 { 62036 if yyj3 >= l { 62037 break 62038 } 62039 } else { 62040 if r.CheckBreak() { 62041 break 62042 } 62043 } 62044 r.ReadMapElemKey() 62045 yys3 := z.StringView(r.DecodeStringAsBytes()) 62046 r.ReadMapElemValue() 62047 switch yys3 { 62048 case "Nodes": 62049 if r.TryDecodeAsNil() { 62050 x.Nodes = nil 62051 } else { 62052 if false { 62053 } else { 62054 h.decSlicePtrtoNodeListStub((*[]*NodeListStub)(&x.Nodes), d) 62055 } 62056 } 62057 case "Index": 62058 if r.TryDecodeAsNil() { 62059 x.QueryMeta.Index = 0 62060 } else { 62061 x.Index = (uint64)(r.DecodeUint64()) 62062 } 62063 case "LastContact": 62064 if r.TryDecodeAsNil() { 62065 x.QueryMeta.LastContact = 0 62066 } else { 62067 if false { 62068 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 62069 z.DecExtension(x.LastContact, yyxt8) 62070 } else { 62071 x.LastContact = (time.Duration)(r.DecodeInt64()) 62072 } 62073 } 62074 case "KnownLeader": 62075 if r.TryDecodeAsNil() { 62076 x.QueryMeta.KnownLeader = false 62077 } else { 62078 x.KnownLeader = (bool)(r.DecodeBool()) 62079 } 62080 default: 62081 z.DecStructFieldNotFound(-1, yys3) 62082 } // end switch yys3 62083 } // end for yyj3 62084 r.ReadMapEnd() 62085 } 62086 62087 func (x *NodeListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 62088 var h codecSelfer100 62089 z, r := codec1978.GenHelperDecoder(d) 62090 _, _, _ = h, z, r 62091 var yyj10 int 62092 var yyb10 bool 62093 var yyhl10 bool = l >= 0 62094 yyj10++ 62095 if yyhl10 { 62096 yyb10 = yyj10 > l 62097 } else { 62098 yyb10 = r.CheckBreak() 62099 } 62100 if yyb10 { 62101 r.ReadArrayEnd() 62102 return 62103 } 62104 r.ReadArrayElem() 62105 if r.TryDecodeAsNil() { 62106 x.Nodes = nil 62107 } else { 62108 if false { 62109 } else { 62110 h.decSlicePtrtoNodeListStub((*[]*NodeListStub)(&x.Nodes), d) 62111 } 62112 } 62113 yyj10++ 62114 if yyhl10 { 62115 yyb10 = yyj10 > l 62116 } else { 62117 yyb10 = r.CheckBreak() 62118 } 62119 if yyb10 { 62120 r.ReadArrayEnd() 62121 return 62122 } 62123 r.ReadArrayElem() 62124 if r.TryDecodeAsNil() { 62125 x.QueryMeta.Index = 0 62126 } else { 62127 x.Index = (uint64)(r.DecodeUint64()) 62128 } 62129 yyj10++ 62130 if yyhl10 { 62131 yyb10 = yyj10 > l 62132 } else { 62133 yyb10 = r.CheckBreak() 62134 } 62135 if yyb10 { 62136 r.ReadArrayEnd() 62137 return 62138 } 62139 r.ReadArrayElem() 62140 if r.TryDecodeAsNil() { 62141 x.QueryMeta.LastContact = 0 62142 } else { 62143 if false { 62144 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 62145 z.DecExtension(x.LastContact, yyxt15) 62146 } else { 62147 x.LastContact = (time.Duration)(r.DecodeInt64()) 62148 } 62149 } 62150 yyj10++ 62151 if yyhl10 { 62152 yyb10 = yyj10 > l 62153 } else { 62154 yyb10 = r.CheckBreak() 62155 } 62156 if yyb10 { 62157 r.ReadArrayEnd() 62158 return 62159 } 62160 r.ReadArrayElem() 62161 if r.TryDecodeAsNil() { 62162 x.QueryMeta.KnownLeader = false 62163 } else { 62164 x.KnownLeader = (bool)(r.DecodeBool()) 62165 } 62166 for { 62167 yyj10++ 62168 if yyhl10 { 62169 yyb10 = yyj10 > l 62170 } else { 62171 yyb10 = r.CheckBreak() 62172 } 62173 if yyb10 { 62174 break 62175 } 62176 r.ReadArrayElem() 62177 z.DecStructFieldNotFound(yyj10-1, "") 62178 } 62179 r.ReadArrayEnd() 62180 } 62181 62182 func (x *SingleJobResponse) CodecEncodeSelf(e *codec1978.Encoder) { 62183 var h codecSelfer100 62184 z, r := codec1978.GenHelperEncoder(e) 62185 _, _, _ = h, z, r 62186 if x == nil { 62187 r.EncodeNil() 62188 } else { 62189 if false { 62190 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 62191 z.EncExtension(x, yyxt1) 62192 } else { 62193 yysep2 := !z.EncBinary() 62194 yy2arr2 := z.EncBasicHandle().StructToArray 62195 _, _ = yysep2, yy2arr2 62196 const yyr2 bool = false // struct tag has 'toArray' 62197 if yyr2 || yy2arr2 { 62198 r.WriteArrayStart(4) 62199 } else { 62200 r.WriteMapStart(4) 62201 } 62202 var yyn3 bool 62203 if x.Job == nil { 62204 yyn3 = true 62205 goto LABEL3 62206 } 62207 LABEL3: 62208 if yyr2 || yy2arr2 { 62209 if yyn3 { 62210 r.WriteArrayElem() 62211 r.EncodeNil() 62212 } else { 62213 r.WriteArrayElem() 62214 if x.Job == nil { 62215 r.EncodeNil() 62216 } else { 62217 x.Job.CodecEncodeSelf(e) 62218 } 62219 } 62220 } else { 62221 r.WriteMapElemKey() 62222 if z.IsJSONHandle() { 62223 z.WriteStr("\"Job\"") 62224 } else { 62225 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 62226 } 62227 r.WriteMapElemValue() 62228 if yyn3 { 62229 r.EncodeNil() 62230 } else { 62231 if x.Job == nil { 62232 r.EncodeNil() 62233 } else { 62234 x.Job.CodecEncodeSelf(e) 62235 } 62236 } 62237 } 62238 if yyr2 || yy2arr2 { 62239 r.WriteArrayElem() 62240 if false { 62241 } else { 62242 r.EncodeUint(uint64(x.Index)) 62243 } 62244 } else { 62245 r.WriteMapElemKey() 62246 if z.IsJSONHandle() { 62247 z.WriteStr("\"Index\"") 62248 } else { 62249 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 62250 } 62251 r.WriteMapElemValue() 62252 if false { 62253 } else { 62254 r.EncodeUint(uint64(x.Index)) 62255 } 62256 } 62257 if yyr2 || yy2arr2 { 62258 r.WriteArrayElem() 62259 if false { 62260 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 62261 z.EncExtension(x.LastContact, yyxt10) 62262 } else { 62263 r.EncodeInt(int64(x.LastContact)) 62264 } 62265 } else { 62266 r.WriteMapElemKey() 62267 if z.IsJSONHandle() { 62268 z.WriteStr("\"LastContact\"") 62269 } else { 62270 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 62271 } 62272 r.WriteMapElemValue() 62273 if false { 62274 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 62275 z.EncExtension(x.LastContact, yyxt11) 62276 } else { 62277 r.EncodeInt(int64(x.LastContact)) 62278 } 62279 } 62280 if yyr2 || yy2arr2 { 62281 r.WriteArrayElem() 62282 if false { 62283 } else { 62284 r.EncodeBool(bool(x.KnownLeader)) 62285 } 62286 } else { 62287 r.WriteMapElemKey() 62288 if z.IsJSONHandle() { 62289 z.WriteStr("\"KnownLeader\"") 62290 } else { 62291 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 62292 } 62293 r.WriteMapElemValue() 62294 if false { 62295 } else { 62296 r.EncodeBool(bool(x.KnownLeader)) 62297 } 62298 } 62299 if yyr2 || yy2arr2 { 62300 r.WriteArrayEnd() 62301 } else { 62302 r.WriteMapEnd() 62303 } 62304 } 62305 } 62306 } 62307 62308 func (x *SingleJobResponse) CodecDecodeSelf(d *codec1978.Decoder) { 62309 var h codecSelfer100 62310 z, r := codec1978.GenHelperDecoder(d) 62311 _, _, _ = h, z, r 62312 if false { 62313 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 62314 z.DecExtension(x, yyxt1) 62315 } else { 62316 yyct2 := r.ContainerType() 62317 if yyct2 == codecSelferValueTypeMap100 { 62318 yyl2 := r.ReadMapStart() 62319 if yyl2 == 0 { 62320 r.ReadMapEnd() 62321 } else { 62322 x.codecDecodeSelfFromMap(yyl2, d) 62323 } 62324 } else if yyct2 == codecSelferValueTypeArray100 { 62325 yyl2 := r.ReadArrayStart() 62326 if yyl2 == 0 { 62327 r.ReadArrayEnd() 62328 } else { 62329 x.codecDecodeSelfFromArray(yyl2, d) 62330 } 62331 } else { 62332 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 62333 } 62334 } 62335 } 62336 62337 func (x *SingleJobResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 62338 var h codecSelfer100 62339 z, r := codec1978.GenHelperDecoder(d) 62340 _, _, _ = h, z, r 62341 var yyhl3 bool = l >= 0 62342 for yyj3 := 0; ; yyj3++ { 62343 if yyhl3 { 62344 if yyj3 >= l { 62345 break 62346 } 62347 } else { 62348 if r.CheckBreak() { 62349 break 62350 } 62351 } 62352 r.ReadMapElemKey() 62353 yys3 := z.StringView(r.DecodeStringAsBytes()) 62354 r.ReadMapElemValue() 62355 switch yys3 { 62356 case "Job": 62357 if r.TryDecodeAsNil() { 62358 if true && x.Job != nil { 62359 x.Job = nil 62360 } 62361 } else { 62362 if x.Job == nil { 62363 x.Job = new(Job) 62364 } 62365 62366 x.Job.CodecDecodeSelf(d) 62367 } 62368 case "Index": 62369 if r.TryDecodeAsNil() { 62370 x.QueryMeta.Index = 0 62371 } else { 62372 x.Index = (uint64)(r.DecodeUint64()) 62373 } 62374 case "LastContact": 62375 if r.TryDecodeAsNil() { 62376 x.QueryMeta.LastContact = 0 62377 } else { 62378 if false { 62379 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 62380 z.DecExtension(x.LastContact, yyxt7) 62381 } else { 62382 x.LastContact = (time.Duration)(r.DecodeInt64()) 62383 } 62384 } 62385 case "KnownLeader": 62386 if r.TryDecodeAsNil() { 62387 x.QueryMeta.KnownLeader = false 62388 } else { 62389 x.KnownLeader = (bool)(r.DecodeBool()) 62390 } 62391 default: 62392 z.DecStructFieldNotFound(-1, yys3) 62393 } // end switch yys3 62394 } // end for yyj3 62395 r.ReadMapEnd() 62396 } 62397 62398 func (x *SingleJobResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 62399 var h codecSelfer100 62400 z, r := codec1978.GenHelperDecoder(d) 62401 _, _, _ = h, z, r 62402 var yyj9 int 62403 var yyb9 bool 62404 var yyhl9 bool = l >= 0 62405 yyj9++ 62406 if yyhl9 { 62407 yyb9 = yyj9 > l 62408 } else { 62409 yyb9 = r.CheckBreak() 62410 } 62411 if yyb9 { 62412 r.ReadArrayEnd() 62413 return 62414 } 62415 r.ReadArrayElem() 62416 if r.TryDecodeAsNil() { 62417 if true && x.Job != nil { 62418 x.Job = nil 62419 } 62420 } else { 62421 if x.Job == nil { 62422 x.Job = new(Job) 62423 } 62424 62425 x.Job.CodecDecodeSelf(d) 62426 } 62427 yyj9++ 62428 if yyhl9 { 62429 yyb9 = yyj9 > l 62430 } else { 62431 yyb9 = r.CheckBreak() 62432 } 62433 if yyb9 { 62434 r.ReadArrayEnd() 62435 return 62436 } 62437 r.ReadArrayElem() 62438 if r.TryDecodeAsNil() { 62439 x.QueryMeta.Index = 0 62440 } else { 62441 x.Index = (uint64)(r.DecodeUint64()) 62442 } 62443 yyj9++ 62444 if yyhl9 { 62445 yyb9 = yyj9 > l 62446 } else { 62447 yyb9 = r.CheckBreak() 62448 } 62449 if yyb9 { 62450 r.ReadArrayEnd() 62451 return 62452 } 62453 r.ReadArrayElem() 62454 if r.TryDecodeAsNil() { 62455 x.QueryMeta.LastContact = 0 62456 } else { 62457 if false { 62458 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 62459 z.DecExtension(x.LastContact, yyxt13) 62460 } else { 62461 x.LastContact = (time.Duration)(r.DecodeInt64()) 62462 } 62463 } 62464 yyj9++ 62465 if yyhl9 { 62466 yyb9 = yyj9 > l 62467 } else { 62468 yyb9 = r.CheckBreak() 62469 } 62470 if yyb9 { 62471 r.ReadArrayEnd() 62472 return 62473 } 62474 r.ReadArrayElem() 62475 if r.TryDecodeAsNil() { 62476 x.QueryMeta.KnownLeader = false 62477 } else { 62478 x.KnownLeader = (bool)(r.DecodeBool()) 62479 } 62480 for { 62481 yyj9++ 62482 if yyhl9 { 62483 yyb9 = yyj9 > l 62484 } else { 62485 yyb9 = r.CheckBreak() 62486 } 62487 if yyb9 { 62488 break 62489 } 62490 r.ReadArrayElem() 62491 z.DecStructFieldNotFound(yyj9-1, "") 62492 } 62493 r.ReadArrayEnd() 62494 } 62495 62496 func (x *JobSummaryResponse) CodecEncodeSelf(e *codec1978.Encoder) { 62497 var h codecSelfer100 62498 z, r := codec1978.GenHelperEncoder(e) 62499 _, _, _ = h, z, r 62500 if x == nil { 62501 r.EncodeNil() 62502 } else { 62503 if false { 62504 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 62505 z.EncExtension(x, yyxt1) 62506 } else { 62507 yysep2 := !z.EncBinary() 62508 yy2arr2 := z.EncBasicHandle().StructToArray 62509 _, _ = yysep2, yy2arr2 62510 const yyr2 bool = false // struct tag has 'toArray' 62511 if yyr2 || yy2arr2 { 62512 r.WriteArrayStart(4) 62513 } else { 62514 r.WriteMapStart(4) 62515 } 62516 var yyn3 bool 62517 if x.JobSummary == nil { 62518 yyn3 = true 62519 goto LABEL3 62520 } 62521 LABEL3: 62522 if yyr2 || yy2arr2 { 62523 if yyn3 { 62524 r.WriteArrayElem() 62525 r.EncodeNil() 62526 } else { 62527 r.WriteArrayElem() 62528 if x.JobSummary == nil { 62529 r.EncodeNil() 62530 } else { 62531 x.JobSummary.CodecEncodeSelf(e) 62532 } 62533 } 62534 } else { 62535 r.WriteMapElemKey() 62536 if z.IsJSONHandle() { 62537 z.WriteStr("\"JobSummary\"") 62538 } else { 62539 r.EncodeStringEnc(codecSelferCcUTF8100, `JobSummary`) 62540 } 62541 r.WriteMapElemValue() 62542 if yyn3 { 62543 r.EncodeNil() 62544 } else { 62545 if x.JobSummary == nil { 62546 r.EncodeNil() 62547 } else { 62548 x.JobSummary.CodecEncodeSelf(e) 62549 } 62550 } 62551 } 62552 if yyr2 || yy2arr2 { 62553 r.WriteArrayElem() 62554 if false { 62555 } else { 62556 r.EncodeUint(uint64(x.Index)) 62557 } 62558 } else { 62559 r.WriteMapElemKey() 62560 if z.IsJSONHandle() { 62561 z.WriteStr("\"Index\"") 62562 } else { 62563 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 62564 } 62565 r.WriteMapElemValue() 62566 if false { 62567 } else { 62568 r.EncodeUint(uint64(x.Index)) 62569 } 62570 } 62571 if yyr2 || yy2arr2 { 62572 r.WriteArrayElem() 62573 if false { 62574 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 62575 z.EncExtension(x.LastContact, yyxt10) 62576 } else { 62577 r.EncodeInt(int64(x.LastContact)) 62578 } 62579 } else { 62580 r.WriteMapElemKey() 62581 if z.IsJSONHandle() { 62582 z.WriteStr("\"LastContact\"") 62583 } else { 62584 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 62585 } 62586 r.WriteMapElemValue() 62587 if false { 62588 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 62589 z.EncExtension(x.LastContact, yyxt11) 62590 } else { 62591 r.EncodeInt(int64(x.LastContact)) 62592 } 62593 } 62594 if yyr2 || yy2arr2 { 62595 r.WriteArrayElem() 62596 if false { 62597 } else { 62598 r.EncodeBool(bool(x.KnownLeader)) 62599 } 62600 } else { 62601 r.WriteMapElemKey() 62602 if z.IsJSONHandle() { 62603 z.WriteStr("\"KnownLeader\"") 62604 } else { 62605 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 62606 } 62607 r.WriteMapElemValue() 62608 if false { 62609 } else { 62610 r.EncodeBool(bool(x.KnownLeader)) 62611 } 62612 } 62613 if yyr2 || yy2arr2 { 62614 r.WriteArrayEnd() 62615 } else { 62616 r.WriteMapEnd() 62617 } 62618 } 62619 } 62620 } 62621 62622 func (x *JobSummaryResponse) CodecDecodeSelf(d *codec1978.Decoder) { 62623 var h codecSelfer100 62624 z, r := codec1978.GenHelperDecoder(d) 62625 _, _, _ = h, z, r 62626 if false { 62627 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 62628 z.DecExtension(x, yyxt1) 62629 } else { 62630 yyct2 := r.ContainerType() 62631 if yyct2 == codecSelferValueTypeMap100 { 62632 yyl2 := r.ReadMapStart() 62633 if yyl2 == 0 { 62634 r.ReadMapEnd() 62635 } else { 62636 x.codecDecodeSelfFromMap(yyl2, d) 62637 } 62638 } else if yyct2 == codecSelferValueTypeArray100 { 62639 yyl2 := r.ReadArrayStart() 62640 if yyl2 == 0 { 62641 r.ReadArrayEnd() 62642 } else { 62643 x.codecDecodeSelfFromArray(yyl2, d) 62644 } 62645 } else { 62646 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 62647 } 62648 } 62649 } 62650 62651 func (x *JobSummaryResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 62652 var h codecSelfer100 62653 z, r := codec1978.GenHelperDecoder(d) 62654 _, _, _ = h, z, r 62655 var yyhl3 bool = l >= 0 62656 for yyj3 := 0; ; yyj3++ { 62657 if yyhl3 { 62658 if yyj3 >= l { 62659 break 62660 } 62661 } else { 62662 if r.CheckBreak() { 62663 break 62664 } 62665 } 62666 r.ReadMapElemKey() 62667 yys3 := z.StringView(r.DecodeStringAsBytes()) 62668 r.ReadMapElemValue() 62669 switch yys3 { 62670 case "JobSummary": 62671 if r.TryDecodeAsNil() { 62672 if true && x.JobSummary != nil { 62673 x.JobSummary = nil 62674 } 62675 } else { 62676 if x.JobSummary == nil { 62677 x.JobSummary = new(JobSummary) 62678 } 62679 62680 x.JobSummary.CodecDecodeSelf(d) 62681 } 62682 case "Index": 62683 if r.TryDecodeAsNil() { 62684 x.QueryMeta.Index = 0 62685 } else { 62686 x.Index = (uint64)(r.DecodeUint64()) 62687 } 62688 case "LastContact": 62689 if r.TryDecodeAsNil() { 62690 x.QueryMeta.LastContact = 0 62691 } else { 62692 if false { 62693 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 62694 z.DecExtension(x.LastContact, yyxt7) 62695 } else { 62696 x.LastContact = (time.Duration)(r.DecodeInt64()) 62697 } 62698 } 62699 case "KnownLeader": 62700 if r.TryDecodeAsNil() { 62701 x.QueryMeta.KnownLeader = false 62702 } else { 62703 x.KnownLeader = (bool)(r.DecodeBool()) 62704 } 62705 default: 62706 z.DecStructFieldNotFound(-1, yys3) 62707 } // end switch yys3 62708 } // end for yyj3 62709 r.ReadMapEnd() 62710 } 62711 62712 func (x *JobSummaryResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 62713 var h codecSelfer100 62714 z, r := codec1978.GenHelperDecoder(d) 62715 _, _, _ = h, z, r 62716 var yyj9 int 62717 var yyb9 bool 62718 var yyhl9 bool = l >= 0 62719 yyj9++ 62720 if yyhl9 { 62721 yyb9 = yyj9 > l 62722 } else { 62723 yyb9 = r.CheckBreak() 62724 } 62725 if yyb9 { 62726 r.ReadArrayEnd() 62727 return 62728 } 62729 r.ReadArrayElem() 62730 if r.TryDecodeAsNil() { 62731 if true && x.JobSummary != nil { 62732 x.JobSummary = nil 62733 } 62734 } else { 62735 if x.JobSummary == nil { 62736 x.JobSummary = new(JobSummary) 62737 } 62738 62739 x.JobSummary.CodecDecodeSelf(d) 62740 } 62741 yyj9++ 62742 if yyhl9 { 62743 yyb9 = yyj9 > l 62744 } else { 62745 yyb9 = r.CheckBreak() 62746 } 62747 if yyb9 { 62748 r.ReadArrayEnd() 62749 return 62750 } 62751 r.ReadArrayElem() 62752 if r.TryDecodeAsNil() { 62753 x.QueryMeta.Index = 0 62754 } else { 62755 x.Index = (uint64)(r.DecodeUint64()) 62756 } 62757 yyj9++ 62758 if yyhl9 { 62759 yyb9 = yyj9 > l 62760 } else { 62761 yyb9 = r.CheckBreak() 62762 } 62763 if yyb9 { 62764 r.ReadArrayEnd() 62765 return 62766 } 62767 r.ReadArrayElem() 62768 if r.TryDecodeAsNil() { 62769 x.QueryMeta.LastContact = 0 62770 } else { 62771 if false { 62772 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 62773 z.DecExtension(x.LastContact, yyxt13) 62774 } else { 62775 x.LastContact = (time.Duration)(r.DecodeInt64()) 62776 } 62777 } 62778 yyj9++ 62779 if yyhl9 { 62780 yyb9 = yyj9 > l 62781 } else { 62782 yyb9 = r.CheckBreak() 62783 } 62784 if yyb9 { 62785 r.ReadArrayEnd() 62786 return 62787 } 62788 r.ReadArrayElem() 62789 if r.TryDecodeAsNil() { 62790 x.QueryMeta.KnownLeader = false 62791 } else { 62792 x.KnownLeader = (bool)(r.DecodeBool()) 62793 } 62794 for { 62795 yyj9++ 62796 if yyhl9 { 62797 yyb9 = yyj9 > l 62798 } else { 62799 yyb9 = r.CheckBreak() 62800 } 62801 if yyb9 { 62802 break 62803 } 62804 r.ReadArrayElem() 62805 z.DecStructFieldNotFound(yyj9-1, "") 62806 } 62807 r.ReadArrayEnd() 62808 } 62809 62810 func (x *JobScaleStatusResponse) CodecEncodeSelf(e *codec1978.Encoder) { 62811 var h codecSelfer100 62812 z, r := codec1978.GenHelperEncoder(e) 62813 _, _, _ = h, z, r 62814 if x == nil { 62815 r.EncodeNil() 62816 } else { 62817 if false { 62818 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 62819 z.EncExtension(x, yyxt1) 62820 } else { 62821 yysep2 := !z.EncBinary() 62822 yy2arr2 := z.EncBasicHandle().StructToArray 62823 _, _ = yysep2, yy2arr2 62824 const yyr2 bool = false // struct tag has 'toArray' 62825 if yyr2 || yy2arr2 { 62826 r.WriteArrayStart(4) 62827 } else { 62828 r.WriteMapStart(4) 62829 } 62830 var yyn3 bool 62831 if x.JobScaleStatus == nil { 62832 yyn3 = true 62833 goto LABEL3 62834 } 62835 LABEL3: 62836 if yyr2 || yy2arr2 { 62837 if yyn3 { 62838 r.WriteArrayElem() 62839 r.EncodeNil() 62840 } else { 62841 r.WriteArrayElem() 62842 if x.JobScaleStatus == nil { 62843 r.EncodeNil() 62844 } else { 62845 x.JobScaleStatus.CodecEncodeSelf(e) 62846 } 62847 } 62848 } else { 62849 r.WriteMapElemKey() 62850 if z.IsJSONHandle() { 62851 z.WriteStr("\"JobScaleStatus\"") 62852 } else { 62853 r.EncodeStringEnc(codecSelferCcUTF8100, `JobScaleStatus`) 62854 } 62855 r.WriteMapElemValue() 62856 if yyn3 { 62857 r.EncodeNil() 62858 } else { 62859 if x.JobScaleStatus == nil { 62860 r.EncodeNil() 62861 } else { 62862 x.JobScaleStatus.CodecEncodeSelf(e) 62863 } 62864 } 62865 } 62866 if yyr2 || yy2arr2 { 62867 r.WriteArrayElem() 62868 if false { 62869 } else { 62870 r.EncodeUint(uint64(x.Index)) 62871 } 62872 } else { 62873 r.WriteMapElemKey() 62874 if z.IsJSONHandle() { 62875 z.WriteStr("\"Index\"") 62876 } else { 62877 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 62878 } 62879 r.WriteMapElemValue() 62880 if false { 62881 } else { 62882 r.EncodeUint(uint64(x.Index)) 62883 } 62884 } 62885 if yyr2 || yy2arr2 { 62886 r.WriteArrayElem() 62887 if false { 62888 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 62889 z.EncExtension(x.LastContact, yyxt10) 62890 } else { 62891 r.EncodeInt(int64(x.LastContact)) 62892 } 62893 } else { 62894 r.WriteMapElemKey() 62895 if z.IsJSONHandle() { 62896 z.WriteStr("\"LastContact\"") 62897 } else { 62898 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 62899 } 62900 r.WriteMapElemValue() 62901 if false { 62902 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 62903 z.EncExtension(x.LastContact, yyxt11) 62904 } else { 62905 r.EncodeInt(int64(x.LastContact)) 62906 } 62907 } 62908 if yyr2 || yy2arr2 { 62909 r.WriteArrayElem() 62910 if false { 62911 } else { 62912 r.EncodeBool(bool(x.KnownLeader)) 62913 } 62914 } else { 62915 r.WriteMapElemKey() 62916 if z.IsJSONHandle() { 62917 z.WriteStr("\"KnownLeader\"") 62918 } else { 62919 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 62920 } 62921 r.WriteMapElemValue() 62922 if false { 62923 } else { 62924 r.EncodeBool(bool(x.KnownLeader)) 62925 } 62926 } 62927 if yyr2 || yy2arr2 { 62928 r.WriteArrayEnd() 62929 } else { 62930 r.WriteMapEnd() 62931 } 62932 } 62933 } 62934 } 62935 62936 func (x *JobScaleStatusResponse) CodecDecodeSelf(d *codec1978.Decoder) { 62937 var h codecSelfer100 62938 z, r := codec1978.GenHelperDecoder(d) 62939 _, _, _ = h, z, r 62940 if false { 62941 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 62942 z.DecExtension(x, yyxt1) 62943 } else { 62944 yyct2 := r.ContainerType() 62945 if yyct2 == codecSelferValueTypeMap100 { 62946 yyl2 := r.ReadMapStart() 62947 if yyl2 == 0 { 62948 r.ReadMapEnd() 62949 } else { 62950 x.codecDecodeSelfFromMap(yyl2, d) 62951 } 62952 } else if yyct2 == codecSelferValueTypeArray100 { 62953 yyl2 := r.ReadArrayStart() 62954 if yyl2 == 0 { 62955 r.ReadArrayEnd() 62956 } else { 62957 x.codecDecodeSelfFromArray(yyl2, d) 62958 } 62959 } else { 62960 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 62961 } 62962 } 62963 } 62964 62965 func (x *JobScaleStatusResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 62966 var h codecSelfer100 62967 z, r := codec1978.GenHelperDecoder(d) 62968 _, _, _ = h, z, r 62969 var yyhl3 bool = l >= 0 62970 for yyj3 := 0; ; yyj3++ { 62971 if yyhl3 { 62972 if yyj3 >= l { 62973 break 62974 } 62975 } else { 62976 if r.CheckBreak() { 62977 break 62978 } 62979 } 62980 r.ReadMapElemKey() 62981 yys3 := z.StringView(r.DecodeStringAsBytes()) 62982 r.ReadMapElemValue() 62983 switch yys3 { 62984 case "JobScaleStatus": 62985 if r.TryDecodeAsNil() { 62986 if true && x.JobScaleStatus != nil { 62987 x.JobScaleStatus = nil 62988 } 62989 } else { 62990 if x.JobScaleStatus == nil { 62991 x.JobScaleStatus = new(JobScaleStatus) 62992 } 62993 62994 x.JobScaleStatus.CodecDecodeSelf(d) 62995 } 62996 case "Index": 62997 if r.TryDecodeAsNil() { 62998 x.QueryMeta.Index = 0 62999 } else { 63000 x.Index = (uint64)(r.DecodeUint64()) 63001 } 63002 case "LastContact": 63003 if r.TryDecodeAsNil() { 63004 x.QueryMeta.LastContact = 0 63005 } else { 63006 if false { 63007 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 63008 z.DecExtension(x.LastContact, yyxt7) 63009 } else { 63010 x.LastContact = (time.Duration)(r.DecodeInt64()) 63011 } 63012 } 63013 case "KnownLeader": 63014 if r.TryDecodeAsNil() { 63015 x.QueryMeta.KnownLeader = false 63016 } else { 63017 x.KnownLeader = (bool)(r.DecodeBool()) 63018 } 63019 default: 63020 z.DecStructFieldNotFound(-1, yys3) 63021 } // end switch yys3 63022 } // end for yyj3 63023 r.ReadMapEnd() 63024 } 63025 63026 func (x *JobScaleStatusResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 63027 var h codecSelfer100 63028 z, r := codec1978.GenHelperDecoder(d) 63029 _, _, _ = h, z, r 63030 var yyj9 int 63031 var yyb9 bool 63032 var yyhl9 bool = l >= 0 63033 yyj9++ 63034 if yyhl9 { 63035 yyb9 = yyj9 > l 63036 } else { 63037 yyb9 = r.CheckBreak() 63038 } 63039 if yyb9 { 63040 r.ReadArrayEnd() 63041 return 63042 } 63043 r.ReadArrayElem() 63044 if r.TryDecodeAsNil() { 63045 if true && x.JobScaleStatus != nil { 63046 x.JobScaleStatus = nil 63047 } 63048 } else { 63049 if x.JobScaleStatus == nil { 63050 x.JobScaleStatus = new(JobScaleStatus) 63051 } 63052 63053 x.JobScaleStatus.CodecDecodeSelf(d) 63054 } 63055 yyj9++ 63056 if yyhl9 { 63057 yyb9 = yyj9 > l 63058 } else { 63059 yyb9 = r.CheckBreak() 63060 } 63061 if yyb9 { 63062 r.ReadArrayEnd() 63063 return 63064 } 63065 r.ReadArrayElem() 63066 if r.TryDecodeAsNil() { 63067 x.QueryMeta.Index = 0 63068 } else { 63069 x.Index = (uint64)(r.DecodeUint64()) 63070 } 63071 yyj9++ 63072 if yyhl9 { 63073 yyb9 = yyj9 > l 63074 } else { 63075 yyb9 = r.CheckBreak() 63076 } 63077 if yyb9 { 63078 r.ReadArrayEnd() 63079 return 63080 } 63081 r.ReadArrayElem() 63082 if r.TryDecodeAsNil() { 63083 x.QueryMeta.LastContact = 0 63084 } else { 63085 if false { 63086 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 63087 z.DecExtension(x.LastContact, yyxt13) 63088 } else { 63089 x.LastContact = (time.Duration)(r.DecodeInt64()) 63090 } 63091 } 63092 yyj9++ 63093 if yyhl9 { 63094 yyb9 = yyj9 > l 63095 } else { 63096 yyb9 = r.CheckBreak() 63097 } 63098 if yyb9 { 63099 r.ReadArrayEnd() 63100 return 63101 } 63102 r.ReadArrayElem() 63103 if r.TryDecodeAsNil() { 63104 x.QueryMeta.KnownLeader = false 63105 } else { 63106 x.KnownLeader = (bool)(r.DecodeBool()) 63107 } 63108 for { 63109 yyj9++ 63110 if yyhl9 { 63111 yyb9 = yyj9 > l 63112 } else { 63113 yyb9 = r.CheckBreak() 63114 } 63115 if yyb9 { 63116 break 63117 } 63118 r.ReadArrayElem() 63119 z.DecStructFieldNotFound(yyj9-1, "") 63120 } 63121 r.ReadArrayEnd() 63122 } 63123 63124 func (x *JobScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { 63125 var h codecSelfer100 63126 z, r := codec1978.GenHelperEncoder(e) 63127 _, _, _ = h, z, r 63128 if x == nil { 63129 r.EncodeNil() 63130 } else { 63131 if false { 63132 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 63133 z.EncExtension(x, yyxt1) 63134 } else { 63135 yysep2 := !z.EncBinary() 63136 yy2arr2 := z.EncBasicHandle().StructToArray 63137 _, _ = yysep2, yy2arr2 63138 const yyr2 bool = false // struct tag has 'toArray' 63139 if yyr2 || yy2arr2 { 63140 r.WriteArrayStart(5) 63141 } else { 63142 r.WriteMapStart(5) 63143 } 63144 if yyr2 || yy2arr2 { 63145 r.WriteArrayElem() 63146 if false { 63147 } else { 63148 if z.EncBasicHandle().StringToRaw { 63149 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 63150 } else { 63151 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 63152 } 63153 } 63154 } else { 63155 r.WriteMapElemKey() 63156 if z.IsJSONHandle() { 63157 z.WriteStr("\"JobID\"") 63158 } else { 63159 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 63160 } 63161 r.WriteMapElemValue() 63162 if false { 63163 } else { 63164 if z.EncBasicHandle().StringToRaw { 63165 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 63166 } else { 63167 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 63168 } 63169 } 63170 } 63171 if yyr2 || yy2arr2 { 63172 r.WriteArrayElem() 63173 if false { 63174 } else { 63175 r.EncodeUint(uint64(x.JobCreateIndex)) 63176 } 63177 } else { 63178 r.WriteMapElemKey() 63179 if z.IsJSONHandle() { 63180 z.WriteStr("\"JobCreateIndex\"") 63181 } else { 63182 r.EncodeStringEnc(codecSelferCcUTF8100, `JobCreateIndex`) 63183 } 63184 r.WriteMapElemValue() 63185 if false { 63186 } else { 63187 r.EncodeUint(uint64(x.JobCreateIndex)) 63188 } 63189 } 63190 if yyr2 || yy2arr2 { 63191 r.WriteArrayElem() 63192 if false { 63193 } else { 63194 r.EncodeUint(uint64(x.JobModifyIndex)) 63195 } 63196 } else { 63197 r.WriteMapElemKey() 63198 if z.IsJSONHandle() { 63199 z.WriteStr("\"JobModifyIndex\"") 63200 } else { 63201 r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) 63202 } 63203 r.WriteMapElemValue() 63204 if false { 63205 } else { 63206 r.EncodeUint(uint64(x.JobModifyIndex)) 63207 } 63208 } 63209 if yyr2 || yy2arr2 { 63210 r.WriteArrayElem() 63211 if false { 63212 } else { 63213 r.EncodeBool(bool(x.JobStopped)) 63214 } 63215 } else { 63216 r.WriteMapElemKey() 63217 if z.IsJSONHandle() { 63218 z.WriteStr("\"JobStopped\"") 63219 } else { 63220 r.EncodeStringEnc(codecSelferCcUTF8100, `JobStopped`) 63221 } 63222 r.WriteMapElemValue() 63223 if false { 63224 } else { 63225 r.EncodeBool(bool(x.JobStopped)) 63226 } 63227 } 63228 if yyr2 || yy2arr2 { 63229 r.WriteArrayElem() 63230 if x.TaskGroups == nil { 63231 r.EncodeNil() 63232 } else { 63233 if false { 63234 } else { 63235 h.encMapstringPtrtoTaskGroupScaleStatus((map[string]*TaskGroupScaleStatus)(x.TaskGroups), e) 63236 } 63237 } 63238 } else { 63239 r.WriteMapElemKey() 63240 if z.IsJSONHandle() { 63241 z.WriteStr("\"TaskGroups\"") 63242 } else { 63243 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroups`) 63244 } 63245 r.WriteMapElemValue() 63246 if x.TaskGroups == nil { 63247 r.EncodeNil() 63248 } else { 63249 if false { 63250 } else { 63251 h.encMapstringPtrtoTaskGroupScaleStatus((map[string]*TaskGroupScaleStatus)(x.TaskGroups), e) 63252 } 63253 } 63254 } 63255 if yyr2 || yy2arr2 { 63256 r.WriteArrayEnd() 63257 } else { 63258 r.WriteMapEnd() 63259 } 63260 } 63261 } 63262 } 63263 63264 func (x *JobScaleStatus) CodecDecodeSelf(d *codec1978.Decoder) { 63265 var h codecSelfer100 63266 z, r := codec1978.GenHelperDecoder(d) 63267 _, _, _ = h, z, r 63268 if false { 63269 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 63270 z.DecExtension(x, yyxt1) 63271 } else { 63272 yyct2 := r.ContainerType() 63273 if yyct2 == codecSelferValueTypeMap100 { 63274 yyl2 := r.ReadMapStart() 63275 if yyl2 == 0 { 63276 r.ReadMapEnd() 63277 } else { 63278 x.codecDecodeSelfFromMap(yyl2, d) 63279 } 63280 } else if yyct2 == codecSelferValueTypeArray100 { 63281 yyl2 := r.ReadArrayStart() 63282 if yyl2 == 0 { 63283 r.ReadArrayEnd() 63284 } else { 63285 x.codecDecodeSelfFromArray(yyl2, d) 63286 } 63287 } else { 63288 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 63289 } 63290 } 63291 } 63292 63293 func (x *JobScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 63294 var h codecSelfer100 63295 z, r := codec1978.GenHelperDecoder(d) 63296 _, _, _ = h, z, r 63297 var yyhl3 bool = l >= 0 63298 for yyj3 := 0; ; yyj3++ { 63299 if yyhl3 { 63300 if yyj3 >= l { 63301 break 63302 } 63303 } else { 63304 if r.CheckBreak() { 63305 break 63306 } 63307 } 63308 r.ReadMapElemKey() 63309 yys3 := z.StringView(r.DecodeStringAsBytes()) 63310 r.ReadMapElemValue() 63311 switch yys3 { 63312 case "JobID": 63313 if r.TryDecodeAsNil() { 63314 x.JobID = "" 63315 } else { 63316 x.JobID = (string)(r.DecodeString()) 63317 } 63318 case "JobCreateIndex": 63319 if r.TryDecodeAsNil() { 63320 x.JobCreateIndex = 0 63321 } else { 63322 x.JobCreateIndex = (uint64)(r.DecodeUint64()) 63323 } 63324 case "JobModifyIndex": 63325 if r.TryDecodeAsNil() { 63326 x.JobModifyIndex = 0 63327 } else { 63328 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 63329 } 63330 case "JobStopped": 63331 if r.TryDecodeAsNil() { 63332 x.JobStopped = false 63333 } else { 63334 x.JobStopped = (bool)(r.DecodeBool()) 63335 } 63336 case "TaskGroups": 63337 if r.TryDecodeAsNil() { 63338 x.TaskGroups = nil 63339 } else { 63340 if false { 63341 } else { 63342 h.decMapstringPtrtoTaskGroupScaleStatus((*map[string]*TaskGroupScaleStatus)(&x.TaskGroups), d) 63343 } 63344 } 63345 default: 63346 z.DecStructFieldNotFound(-1, yys3) 63347 } // end switch yys3 63348 } // end for yyj3 63349 r.ReadMapEnd() 63350 } 63351 63352 func (x *JobScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 63353 var h codecSelfer100 63354 z, r := codec1978.GenHelperDecoder(d) 63355 _, _, _ = h, z, r 63356 var yyj10 int 63357 var yyb10 bool 63358 var yyhl10 bool = l >= 0 63359 yyj10++ 63360 if yyhl10 { 63361 yyb10 = yyj10 > l 63362 } else { 63363 yyb10 = r.CheckBreak() 63364 } 63365 if yyb10 { 63366 r.ReadArrayEnd() 63367 return 63368 } 63369 r.ReadArrayElem() 63370 if r.TryDecodeAsNil() { 63371 x.JobID = "" 63372 } else { 63373 x.JobID = (string)(r.DecodeString()) 63374 } 63375 yyj10++ 63376 if yyhl10 { 63377 yyb10 = yyj10 > l 63378 } else { 63379 yyb10 = r.CheckBreak() 63380 } 63381 if yyb10 { 63382 r.ReadArrayEnd() 63383 return 63384 } 63385 r.ReadArrayElem() 63386 if r.TryDecodeAsNil() { 63387 x.JobCreateIndex = 0 63388 } else { 63389 x.JobCreateIndex = (uint64)(r.DecodeUint64()) 63390 } 63391 yyj10++ 63392 if yyhl10 { 63393 yyb10 = yyj10 > l 63394 } else { 63395 yyb10 = r.CheckBreak() 63396 } 63397 if yyb10 { 63398 r.ReadArrayEnd() 63399 return 63400 } 63401 r.ReadArrayElem() 63402 if r.TryDecodeAsNil() { 63403 x.JobModifyIndex = 0 63404 } else { 63405 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 63406 } 63407 yyj10++ 63408 if yyhl10 { 63409 yyb10 = yyj10 > l 63410 } else { 63411 yyb10 = r.CheckBreak() 63412 } 63413 if yyb10 { 63414 r.ReadArrayEnd() 63415 return 63416 } 63417 r.ReadArrayElem() 63418 if r.TryDecodeAsNil() { 63419 x.JobStopped = false 63420 } else { 63421 x.JobStopped = (bool)(r.DecodeBool()) 63422 } 63423 yyj10++ 63424 if yyhl10 { 63425 yyb10 = yyj10 > l 63426 } else { 63427 yyb10 = r.CheckBreak() 63428 } 63429 if yyb10 { 63430 r.ReadArrayEnd() 63431 return 63432 } 63433 r.ReadArrayElem() 63434 if r.TryDecodeAsNil() { 63435 x.TaskGroups = nil 63436 } else { 63437 if false { 63438 } else { 63439 h.decMapstringPtrtoTaskGroupScaleStatus((*map[string]*TaskGroupScaleStatus)(&x.TaskGroups), d) 63440 } 63441 } 63442 for { 63443 yyj10++ 63444 if yyhl10 { 63445 yyb10 = yyj10 > l 63446 } else { 63447 yyb10 = r.CheckBreak() 63448 } 63449 if yyb10 { 63450 break 63451 } 63452 r.ReadArrayElem() 63453 z.DecStructFieldNotFound(yyj10-1, "") 63454 } 63455 r.ReadArrayEnd() 63456 } 63457 63458 func (x *TaskGroupScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { 63459 var h codecSelfer100 63460 z, r := codec1978.GenHelperEncoder(e) 63461 _, _, _ = h, z, r 63462 if x == nil { 63463 r.EncodeNil() 63464 } else { 63465 if false { 63466 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 63467 z.EncExtension(x, yyxt1) 63468 } else { 63469 yysep2 := !z.EncBinary() 63470 yy2arr2 := z.EncBasicHandle().StructToArray 63471 _, _ = yysep2, yy2arr2 63472 const yyr2 bool = false // struct tag has 'toArray' 63473 if yyr2 || yy2arr2 { 63474 r.WriteArrayStart(6) 63475 } else { 63476 r.WriteMapStart(6) 63477 } 63478 if yyr2 || yy2arr2 { 63479 r.WriteArrayElem() 63480 if false { 63481 } else { 63482 r.EncodeInt(int64(x.Desired)) 63483 } 63484 } else { 63485 r.WriteMapElemKey() 63486 if z.IsJSONHandle() { 63487 z.WriteStr("\"Desired\"") 63488 } else { 63489 r.EncodeStringEnc(codecSelferCcUTF8100, `Desired`) 63490 } 63491 r.WriteMapElemValue() 63492 if false { 63493 } else { 63494 r.EncodeInt(int64(x.Desired)) 63495 } 63496 } 63497 if yyr2 || yy2arr2 { 63498 r.WriteArrayElem() 63499 if false { 63500 } else { 63501 r.EncodeInt(int64(x.Placed)) 63502 } 63503 } else { 63504 r.WriteMapElemKey() 63505 if z.IsJSONHandle() { 63506 z.WriteStr("\"Placed\"") 63507 } else { 63508 r.EncodeStringEnc(codecSelferCcUTF8100, `Placed`) 63509 } 63510 r.WriteMapElemValue() 63511 if false { 63512 } else { 63513 r.EncodeInt(int64(x.Placed)) 63514 } 63515 } 63516 if yyr2 || yy2arr2 { 63517 r.WriteArrayElem() 63518 if false { 63519 } else { 63520 r.EncodeInt(int64(x.Running)) 63521 } 63522 } else { 63523 r.WriteMapElemKey() 63524 if z.IsJSONHandle() { 63525 z.WriteStr("\"Running\"") 63526 } else { 63527 r.EncodeStringEnc(codecSelferCcUTF8100, `Running`) 63528 } 63529 r.WriteMapElemValue() 63530 if false { 63531 } else { 63532 r.EncodeInt(int64(x.Running)) 63533 } 63534 } 63535 if yyr2 || yy2arr2 { 63536 r.WriteArrayElem() 63537 if false { 63538 } else { 63539 r.EncodeInt(int64(x.Healthy)) 63540 } 63541 } else { 63542 r.WriteMapElemKey() 63543 if z.IsJSONHandle() { 63544 z.WriteStr("\"Healthy\"") 63545 } else { 63546 r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) 63547 } 63548 r.WriteMapElemValue() 63549 if false { 63550 } else { 63551 r.EncodeInt(int64(x.Healthy)) 63552 } 63553 } 63554 if yyr2 || yy2arr2 { 63555 r.WriteArrayElem() 63556 if false { 63557 } else { 63558 r.EncodeInt(int64(x.Unhealthy)) 63559 } 63560 } else { 63561 r.WriteMapElemKey() 63562 if z.IsJSONHandle() { 63563 z.WriteStr("\"Unhealthy\"") 63564 } else { 63565 r.EncodeStringEnc(codecSelferCcUTF8100, `Unhealthy`) 63566 } 63567 r.WriteMapElemValue() 63568 if false { 63569 } else { 63570 r.EncodeInt(int64(x.Unhealthy)) 63571 } 63572 } 63573 if yyr2 || yy2arr2 { 63574 r.WriteArrayElem() 63575 if x.Events == nil { 63576 r.EncodeNil() 63577 } else { 63578 if false { 63579 } else { 63580 h.encSlicePtrtoScalingEvent(([]*ScalingEvent)(x.Events), e) 63581 } 63582 } 63583 } else { 63584 r.WriteMapElemKey() 63585 if z.IsJSONHandle() { 63586 z.WriteStr("\"Events\"") 63587 } else { 63588 r.EncodeStringEnc(codecSelferCcUTF8100, `Events`) 63589 } 63590 r.WriteMapElemValue() 63591 if x.Events == nil { 63592 r.EncodeNil() 63593 } else { 63594 if false { 63595 } else { 63596 h.encSlicePtrtoScalingEvent(([]*ScalingEvent)(x.Events), e) 63597 } 63598 } 63599 } 63600 if yyr2 || yy2arr2 { 63601 r.WriteArrayEnd() 63602 } else { 63603 r.WriteMapEnd() 63604 } 63605 } 63606 } 63607 } 63608 63609 func (x *TaskGroupScaleStatus) CodecDecodeSelf(d *codec1978.Decoder) { 63610 var h codecSelfer100 63611 z, r := codec1978.GenHelperDecoder(d) 63612 _, _, _ = h, z, r 63613 if false { 63614 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 63615 z.DecExtension(x, yyxt1) 63616 } else { 63617 yyct2 := r.ContainerType() 63618 if yyct2 == codecSelferValueTypeMap100 { 63619 yyl2 := r.ReadMapStart() 63620 if yyl2 == 0 { 63621 r.ReadMapEnd() 63622 } else { 63623 x.codecDecodeSelfFromMap(yyl2, d) 63624 } 63625 } else if yyct2 == codecSelferValueTypeArray100 { 63626 yyl2 := r.ReadArrayStart() 63627 if yyl2 == 0 { 63628 r.ReadArrayEnd() 63629 } else { 63630 x.codecDecodeSelfFromArray(yyl2, d) 63631 } 63632 } else { 63633 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 63634 } 63635 } 63636 } 63637 63638 func (x *TaskGroupScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 63639 var h codecSelfer100 63640 z, r := codec1978.GenHelperDecoder(d) 63641 _, _, _ = h, z, r 63642 var yyhl3 bool = l >= 0 63643 for yyj3 := 0; ; yyj3++ { 63644 if yyhl3 { 63645 if yyj3 >= l { 63646 break 63647 } 63648 } else { 63649 if r.CheckBreak() { 63650 break 63651 } 63652 } 63653 r.ReadMapElemKey() 63654 yys3 := z.StringView(r.DecodeStringAsBytes()) 63655 r.ReadMapElemValue() 63656 switch yys3 { 63657 case "Desired": 63658 if r.TryDecodeAsNil() { 63659 x.Desired = 0 63660 } else { 63661 x.Desired = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 63662 } 63663 case "Placed": 63664 if r.TryDecodeAsNil() { 63665 x.Placed = 0 63666 } else { 63667 x.Placed = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 63668 } 63669 case "Running": 63670 if r.TryDecodeAsNil() { 63671 x.Running = 0 63672 } else { 63673 x.Running = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 63674 } 63675 case "Healthy": 63676 if r.TryDecodeAsNil() { 63677 x.Healthy = 0 63678 } else { 63679 x.Healthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 63680 } 63681 case "Unhealthy": 63682 if r.TryDecodeAsNil() { 63683 x.Unhealthy = 0 63684 } else { 63685 x.Unhealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 63686 } 63687 case "Events": 63688 if r.TryDecodeAsNil() { 63689 x.Events = nil 63690 } else { 63691 if false { 63692 } else { 63693 h.decSlicePtrtoScalingEvent((*[]*ScalingEvent)(&x.Events), d) 63694 } 63695 } 63696 default: 63697 z.DecStructFieldNotFound(-1, yys3) 63698 } // end switch yys3 63699 } // end for yyj3 63700 r.ReadMapEnd() 63701 } 63702 63703 func (x *TaskGroupScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 63704 var h codecSelfer100 63705 z, r := codec1978.GenHelperDecoder(d) 63706 _, _, _ = h, z, r 63707 var yyj11 int 63708 var yyb11 bool 63709 var yyhl11 bool = l >= 0 63710 yyj11++ 63711 if yyhl11 { 63712 yyb11 = yyj11 > l 63713 } else { 63714 yyb11 = r.CheckBreak() 63715 } 63716 if yyb11 { 63717 r.ReadArrayEnd() 63718 return 63719 } 63720 r.ReadArrayElem() 63721 if r.TryDecodeAsNil() { 63722 x.Desired = 0 63723 } else { 63724 x.Desired = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 63725 } 63726 yyj11++ 63727 if yyhl11 { 63728 yyb11 = yyj11 > l 63729 } else { 63730 yyb11 = r.CheckBreak() 63731 } 63732 if yyb11 { 63733 r.ReadArrayEnd() 63734 return 63735 } 63736 r.ReadArrayElem() 63737 if r.TryDecodeAsNil() { 63738 x.Placed = 0 63739 } else { 63740 x.Placed = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 63741 } 63742 yyj11++ 63743 if yyhl11 { 63744 yyb11 = yyj11 > l 63745 } else { 63746 yyb11 = r.CheckBreak() 63747 } 63748 if yyb11 { 63749 r.ReadArrayEnd() 63750 return 63751 } 63752 r.ReadArrayElem() 63753 if r.TryDecodeAsNil() { 63754 x.Running = 0 63755 } else { 63756 x.Running = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 63757 } 63758 yyj11++ 63759 if yyhl11 { 63760 yyb11 = yyj11 > l 63761 } else { 63762 yyb11 = r.CheckBreak() 63763 } 63764 if yyb11 { 63765 r.ReadArrayEnd() 63766 return 63767 } 63768 r.ReadArrayElem() 63769 if r.TryDecodeAsNil() { 63770 x.Healthy = 0 63771 } else { 63772 x.Healthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 63773 } 63774 yyj11++ 63775 if yyhl11 { 63776 yyb11 = yyj11 > l 63777 } else { 63778 yyb11 = r.CheckBreak() 63779 } 63780 if yyb11 { 63781 r.ReadArrayEnd() 63782 return 63783 } 63784 r.ReadArrayElem() 63785 if r.TryDecodeAsNil() { 63786 x.Unhealthy = 0 63787 } else { 63788 x.Unhealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 63789 } 63790 yyj11++ 63791 if yyhl11 { 63792 yyb11 = yyj11 > l 63793 } else { 63794 yyb11 = r.CheckBreak() 63795 } 63796 if yyb11 { 63797 r.ReadArrayEnd() 63798 return 63799 } 63800 r.ReadArrayElem() 63801 if r.TryDecodeAsNil() { 63802 x.Events = nil 63803 } else { 63804 if false { 63805 } else { 63806 h.decSlicePtrtoScalingEvent((*[]*ScalingEvent)(&x.Events), d) 63807 } 63808 } 63809 for { 63810 yyj11++ 63811 if yyhl11 { 63812 yyb11 = yyj11 > l 63813 } else { 63814 yyb11 = r.CheckBreak() 63815 } 63816 if yyb11 { 63817 break 63818 } 63819 r.ReadArrayElem() 63820 z.DecStructFieldNotFound(yyj11-1, "") 63821 } 63822 r.ReadArrayEnd() 63823 } 63824 63825 func (x *JobDispatchResponse) CodecEncodeSelf(e *codec1978.Encoder) { 63826 var h codecSelfer100 63827 z, r := codec1978.GenHelperEncoder(e) 63828 _, _, _ = h, z, r 63829 if x == nil { 63830 r.EncodeNil() 63831 } else { 63832 if false { 63833 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 63834 z.EncExtension(x, yyxt1) 63835 } else { 63836 yysep2 := !z.EncBinary() 63837 yy2arr2 := z.EncBasicHandle().StructToArray 63838 _, _ = yysep2, yy2arr2 63839 const yyr2 bool = false // struct tag has 'toArray' 63840 if yyr2 || yy2arr2 { 63841 r.WriteArrayStart(5) 63842 } else { 63843 r.WriteMapStart(5) 63844 } 63845 if yyr2 || yy2arr2 { 63846 r.WriteArrayElem() 63847 if false { 63848 } else { 63849 if z.EncBasicHandle().StringToRaw { 63850 r.EncodeStringBytesRaw(z.BytesView(string(x.DispatchedJobID))) 63851 } else { 63852 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DispatchedJobID)) 63853 } 63854 } 63855 } else { 63856 r.WriteMapElemKey() 63857 if z.IsJSONHandle() { 63858 z.WriteStr("\"DispatchedJobID\"") 63859 } else { 63860 r.EncodeStringEnc(codecSelferCcUTF8100, `DispatchedJobID`) 63861 } 63862 r.WriteMapElemValue() 63863 if false { 63864 } else { 63865 if z.EncBasicHandle().StringToRaw { 63866 r.EncodeStringBytesRaw(z.BytesView(string(x.DispatchedJobID))) 63867 } else { 63868 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DispatchedJobID)) 63869 } 63870 } 63871 } 63872 if yyr2 || yy2arr2 { 63873 r.WriteArrayElem() 63874 if false { 63875 } else { 63876 if z.EncBasicHandle().StringToRaw { 63877 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 63878 } else { 63879 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 63880 } 63881 } 63882 } else { 63883 r.WriteMapElemKey() 63884 if z.IsJSONHandle() { 63885 z.WriteStr("\"EvalID\"") 63886 } else { 63887 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 63888 } 63889 r.WriteMapElemValue() 63890 if false { 63891 } else { 63892 if z.EncBasicHandle().StringToRaw { 63893 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 63894 } else { 63895 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 63896 } 63897 } 63898 } 63899 if yyr2 || yy2arr2 { 63900 r.WriteArrayElem() 63901 if false { 63902 } else { 63903 r.EncodeUint(uint64(x.EvalCreateIndex)) 63904 } 63905 } else { 63906 r.WriteMapElemKey() 63907 if z.IsJSONHandle() { 63908 z.WriteStr("\"EvalCreateIndex\"") 63909 } else { 63910 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) 63911 } 63912 r.WriteMapElemValue() 63913 if false { 63914 } else { 63915 r.EncodeUint(uint64(x.EvalCreateIndex)) 63916 } 63917 } 63918 if yyr2 || yy2arr2 { 63919 r.WriteArrayElem() 63920 if false { 63921 } else { 63922 r.EncodeUint(uint64(x.JobCreateIndex)) 63923 } 63924 } else { 63925 r.WriteMapElemKey() 63926 if z.IsJSONHandle() { 63927 z.WriteStr("\"JobCreateIndex\"") 63928 } else { 63929 r.EncodeStringEnc(codecSelferCcUTF8100, `JobCreateIndex`) 63930 } 63931 r.WriteMapElemValue() 63932 if false { 63933 } else { 63934 r.EncodeUint(uint64(x.JobCreateIndex)) 63935 } 63936 } 63937 if yyr2 || yy2arr2 { 63938 r.WriteArrayElem() 63939 if false { 63940 } else { 63941 r.EncodeUint(uint64(x.Index)) 63942 } 63943 } else { 63944 r.WriteMapElemKey() 63945 if z.IsJSONHandle() { 63946 z.WriteStr("\"Index\"") 63947 } else { 63948 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 63949 } 63950 r.WriteMapElemValue() 63951 if false { 63952 } else { 63953 r.EncodeUint(uint64(x.Index)) 63954 } 63955 } 63956 if yyr2 || yy2arr2 { 63957 r.WriteArrayEnd() 63958 } else { 63959 r.WriteMapEnd() 63960 } 63961 } 63962 } 63963 } 63964 63965 func (x *JobDispatchResponse) CodecDecodeSelf(d *codec1978.Decoder) { 63966 var h codecSelfer100 63967 z, r := codec1978.GenHelperDecoder(d) 63968 _, _, _ = h, z, r 63969 if false { 63970 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 63971 z.DecExtension(x, yyxt1) 63972 } else { 63973 yyct2 := r.ContainerType() 63974 if yyct2 == codecSelferValueTypeMap100 { 63975 yyl2 := r.ReadMapStart() 63976 if yyl2 == 0 { 63977 r.ReadMapEnd() 63978 } else { 63979 x.codecDecodeSelfFromMap(yyl2, d) 63980 } 63981 } else if yyct2 == codecSelferValueTypeArray100 { 63982 yyl2 := r.ReadArrayStart() 63983 if yyl2 == 0 { 63984 r.ReadArrayEnd() 63985 } else { 63986 x.codecDecodeSelfFromArray(yyl2, d) 63987 } 63988 } else { 63989 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 63990 } 63991 } 63992 } 63993 63994 func (x *JobDispatchResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 63995 var h codecSelfer100 63996 z, r := codec1978.GenHelperDecoder(d) 63997 _, _, _ = h, z, r 63998 var yyhl3 bool = l >= 0 63999 for yyj3 := 0; ; yyj3++ { 64000 if yyhl3 { 64001 if yyj3 >= l { 64002 break 64003 } 64004 } else { 64005 if r.CheckBreak() { 64006 break 64007 } 64008 } 64009 r.ReadMapElemKey() 64010 yys3 := z.StringView(r.DecodeStringAsBytes()) 64011 r.ReadMapElemValue() 64012 switch yys3 { 64013 case "DispatchedJobID": 64014 if r.TryDecodeAsNil() { 64015 x.DispatchedJobID = "" 64016 } else { 64017 x.DispatchedJobID = (string)(r.DecodeString()) 64018 } 64019 case "EvalID": 64020 if r.TryDecodeAsNil() { 64021 x.EvalID = "" 64022 } else { 64023 x.EvalID = (string)(r.DecodeString()) 64024 } 64025 case "EvalCreateIndex": 64026 if r.TryDecodeAsNil() { 64027 x.EvalCreateIndex = 0 64028 } else { 64029 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 64030 } 64031 case "JobCreateIndex": 64032 if r.TryDecodeAsNil() { 64033 x.JobCreateIndex = 0 64034 } else { 64035 x.JobCreateIndex = (uint64)(r.DecodeUint64()) 64036 } 64037 case "Index": 64038 if r.TryDecodeAsNil() { 64039 x.WriteMeta.Index = 0 64040 } else { 64041 x.Index = (uint64)(r.DecodeUint64()) 64042 } 64043 default: 64044 z.DecStructFieldNotFound(-1, yys3) 64045 } // end switch yys3 64046 } // end for yyj3 64047 r.ReadMapEnd() 64048 } 64049 64050 func (x *JobDispatchResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 64051 var h codecSelfer100 64052 z, r := codec1978.GenHelperDecoder(d) 64053 _, _, _ = h, z, r 64054 var yyj9 int 64055 var yyb9 bool 64056 var yyhl9 bool = l >= 0 64057 yyj9++ 64058 if yyhl9 { 64059 yyb9 = yyj9 > l 64060 } else { 64061 yyb9 = r.CheckBreak() 64062 } 64063 if yyb9 { 64064 r.ReadArrayEnd() 64065 return 64066 } 64067 r.ReadArrayElem() 64068 if r.TryDecodeAsNil() { 64069 x.DispatchedJobID = "" 64070 } else { 64071 x.DispatchedJobID = (string)(r.DecodeString()) 64072 } 64073 yyj9++ 64074 if yyhl9 { 64075 yyb9 = yyj9 > l 64076 } else { 64077 yyb9 = r.CheckBreak() 64078 } 64079 if yyb9 { 64080 r.ReadArrayEnd() 64081 return 64082 } 64083 r.ReadArrayElem() 64084 if r.TryDecodeAsNil() { 64085 x.EvalID = "" 64086 } else { 64087 x.EvalID = (string)(r.DecodeString()) 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.EvalCreateIndex = 0 64102 } else { 64103 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 64104 } 64105 yyj9++ 64106 if yyhl9 { 64107 yyb9 = yyj9 > l 64108 } else { 64109 yyb9 = r.CheckBreak() 64110 } 64111 if yyb9 { 64112 r.ReadArrayEnd() 64113 return 64114 } 64115 r.ReadArrayElem() 64116 if r.TryDecodeAsNil() { 64117 x.JobCreateIndex = 0 64118 } else { 64119 x.JobCreateIndex = (uint64)(r.DecodeUint64()) 64120 } 64121 yyj9++ 64122 if yyhl9 { 64123 yyb9 = yyj9 > l 64124 } else { 64125 yyb9 = r.CheckBreak() 64126 } 64127 if yyb9 { 64128 r.ReadArrayEnd() 64129 return 64130 } 64131 r.ReadArrayElem() 64132 if r.TryDecodeAsNil() { 64133 x.WriteMeta.Index = 0 64134 } else { 64135 x.Index = (uint64)(r.DecodeUint64()) 64136 } 64137 for { 64138 yyj9++ 64139 if yyhl9 { 64140 yyb9 = yyj9 > l 64141 } else { 64142 yyb9 = r.CheckBreak() 64143 } 64144 if yyb9 { 64145 break 64146 } 64147 r.ReadArrayElem() 64148 z.DecStructFieldNotFound(yyj9-1, "") 64149 } 64150 r.ReadArrayEnd() 64151 } 64152 64153 func (x *JobListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 64154 var h codecSelfer100 64155 z, r := codec1978.GenHelperEncoder(e) 64156 _, _, _ = h, z, r 64157 if x == nil { 64158 r.EncodeNil() 64159 } else { 64160 if false { 64161 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 64162 z.EncExtension(x, yyxt1) 64163 } else { 64164 yysep2 := !z.EncBinary() 64165 yy2arr2 := z.EncBasicHandle().StructToArray 64166 _, _ = yysep2, yy2arr2 64167 const yyr2 bool = false // struct tag has 'toArray' 64168 if yyr2 || yy2arr2 { 64169 r.WriteArrayStart(4) 64170 } else { 64171 r.WriteMapStart(4) 64172 } 64173 if yyr2 || yy2arr2 { 64174 r.WriteArrayElem() 64175 if x.Jobs == nil { 64176 r.EncodeNil() 64177 } else { 64178 if false { 64179 } else { 64180 h.encSlicePtrtoJobListStub(([]*JobListStub)(x.Jobs), e) 64181 } 64182 } 64183 } else { 64184 r.WriteMapElemKey() 64185 if z.IsJSONHandle() { 64186 z.WriteStr("\"Jobs\"") 64187 } else { 64188 r.EncodeStringEnc(codecSelferCcUTF8100, `Jobs`) 64189 } 64190 r.WriteMapElemValue() 64191 if x.Jobs == nil { 64192 r.EncodeNil() 64193 } else { 64194 if false { 64195 } else { 64196 h.encSlicePtrtoJobListStub(([]*JobListStub)(x.Jobs), e) 64197 } 64198 } 64199 } 64200 if yyr2 || yy2arr2 { 64201 r.WriteArrayElem() 64202 if false { 64203 } else { 64204 r.EncodeUint(uint64(x.Index)) 64205 } 64206 } else { 64207 r.WriteMapElemKey() 64208 if z.IsJSONHandle() { 64209 z.WriteStr("\"Index\"") 64210 } else { 64211 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 64212 } 64213 r.WriteMapElemValue() 64214 if false { 64215 } else { 64216 r.EncodeUint(uint64(x.Index)) 64217 } 64218 } 64219 if yyr2 || yy2arr2 { 64220 r.WriteArrayElem() 64221 if false { 64222 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 64223 z.EncExtension(x.LastContact, yyxt10) 64224 } else { 64225 r.EncodeInt(int64(x.LastContact)) 64226 } 64227 } else { 64228 r.WriteMapElemKey() 64229 if z.IsJSONHandle() { 64230 z.WriteStr("\"LastContact\"") 64231 } else { 64232 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 64233 } 64234 r.WriteMapElemValue() 64235 if false { 64236 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 64237 z.EncExtension(x.LastContact, yyxt11) 64238 } else { 64239 r.EncodeInt(int64(x.LastContact)) 64240 } 64241 } 64242 if yyr2 || yy2arr2 { 64243 r.WriteArrayElem() 64244 if false { 64245 } else { 64246 r.EncodeBool(bool(x.KnownLeader)) 64247 } 64248 } else { 64249 r.WriteMapElemKey() 64250 if z.IsJSONHandle() { 64251 z.WriteStr("\"KnownLeader\"") 64252 } else { 64253 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 64254 } 64255 r.WriteMapElemValue() 64256 if false { 64257 } else { 64258 r.EncodeBool(bool(x.KnownLeader)) 64259 } 64260 } 64261 if yyr2 || yy2arr2 { 64262 r.WriteArrayEnd() 64263 } else { 64264 r.WriteMapEnd() 64265 } 64266 } 64267 } 64268 } 64269 64270 func (x *JobListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 64271 var h codecSelfer100 64272 z, r := codec1978.GenHelperDecoder(d) 64273 _, _, _ = h, z, r 64274 if false { 64275 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 64276 z.DecExtension(x, yyxt1) 64277 } else { 64278 yyct2 := r.ContainerType() 64279 if yyct2 == codecSelferValueTypeMap100 { 64280 yyl2 := r.ReadMapStart() 64281 if yyl2 == 0 { 64282 r.ReadMapEnd() 64283 } else { 64284 x.codecDecodeSelfFromMap(yyl2, d) 64285 } 64286 } else if yyct2 == codecSelferValueTypeArray100 { 64287 yyl2 := r.ReadArrayStart() 64288 if yyl2 == 0 { 64289 r.ReadArrayEnd() 64290 } else { 64291 x.codecDecodeSelfFromArray(yyl2, d) 64292 } 64293 } else { 64294 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 64295 } 64296 } 64297 } 64298 64299 func (x *JobListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 64300 var h codecSelfer100 64301 z, r := codec1978.GenHelperDecoder(d) 64302 _, _, _ = h, z, r 64303 var yyhl3 bool = l >= 0 64304 for yyj3 := 0; ; yyj3++ { 64305 if yyhl3 { 64306 if yyj3 >= l { 64307 break 64308 } 64309 } else { 64310 if r.CheckBreak() { 64311 break 64312 } 64313 } 64314 r.ReadMapElemKey() 64315 yys3 := z.StringView(r.DecodeStringAsBytes()) 64316 r.ReadMapElemValue() 64317 switch yys3 { 64318 case "Jobs": 64319 if r.TryDecodeAsNil() { 64320 x.Jobs = nil 64321 } else { 64322 if false { 64323 } else { 64324 h.decSlicePtrtoJobListStub((*[]*JobListStub)(&x.Jobs), d) 64325 } 64326 } 64327 case "Index": 64328 if r.TryDecodeAsNil() { 64329 x.QueryMeta.Index = 0 64330 } else { 64331 x.Index = (uint64)(r.DecodeUint64()) 64332 } 64333 case "LastContact": 64334 if r.TryDecodeAsNil() { 64335 x.QueryMeta.LastContact = 0 64336 } else { 64337 if false { 64338 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 64339 z.DecExtension(x.LastContact, yyxt8) 64340 } else { 64341 x.LastContact = (time.Duration)(r.DecodeInt64()) 64342 } 64343 } 64344 case "KnownLeader": 64345 if r.TryDecodeAsNil() { 64346 x.QueryMeta.KnownLeader = false 64347 } else { 64348 x.KnownLeader = (bool)(r.DecodeBool()) 64349 } 64350 default: 64351 z.DecStructFieldNotFound(-1, yys3) 64352 } // end switch yys3 64353 } // end for yyj3 64354 r.ReadMapEnd() 64355 } 64356 64357 func (x *JobListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 64358 var h codecSelfer100 64359 z, r := codec1978.GenHelperDecoder(d) 64360 _, _, _ = h, z, r 64361 var yyj10 int 64362 var yyb10 bool 64363 var yyhl10 bool = l >= 0 64364 yyj10++ 64365 if yyhl10 { 64366 yyb10 = yyj10 > l 64367 } else { 64368 yyb10 = r.CheckBreak() 64369 } 64370 if yyb10 { 64371 r.ReadArrayEnd() 64372 return 64373 } 64374 r.ReadArrayElem() 64375 if r.TryDecodeAsNil() { 64376 x.Jobs = nil 64377 } else { 64378 if false { 64379 } else { 64380 h.decSlicePtrtoJobListStub((*[]*JobListStub)(&x.Jobs), d) 64381 } 64382 } 64383 yyj10++ 64384 if yyhl10 { 64385 yyb10 = yyj10 > l 64386 } else { 64387 yyb10 = r.CheckBreak() 64388 } 64389 if yyb10 { 64390 r.ReadArrayEnd() 64391 return 64392 } 64393 r.ReadArrayElem() 64394 if r.TryDecodeAsNil() { 64395 x.QueryMeta.Index = 0 64396 } else { 64397 x.Index = (uint64)(r.DecodeUint64()) 64398 } 64399 yyj10++ 64400 if yyhl10 { 64401 yyb10 = yyj10 > l 64402 } else { 64403 yyb10 = r.CheckBreak() 64404 } 64405 if yyb10 { 64406 r.ReadArrayEnd() 64407 return 64408 } 64409 r.ReadArrayElem() 64410 if r.TryDecodeAsNil() { 64411 x.QueryMeta.LastContact = 0 64412 } else { 64413 if false { 64414 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 64415 z.DecExtension(x.LastContact, yyxt15) 64416 } else { 64417 x.LastContact = (time.Duration)(r.DecodeInt64()) 64418 } 64419 } 64420 yyj10++ 64421 if yyhl10 { 64422 yyb10 = yyj10 > l 64423 } else { 64424 yyb10 = r.CheckBreak() 64425 } 64426 if yyb10 { 64427 r.ReadArrayEnd() 64428 return 64429 } 64430 r.ReadArrayElem() 64431 if r.TryDecodeAsNil() { 64432 x.QueryMeta.KnownLeader = false 64433 } else { 64434 x.KnownLeader = (bool)(r.DecodeBool()) 64435 } 64436 for { 64437 yyj10++ 64438 if yyhl10 { 64439 yyb10 = yyj10 > l 64440 } else { 64441 yyb10 = r.CheckBreak() 64442 } 64443 if yyb10 { 64444 break 64445 } 64446 r.ReadArrayElem() 64447 z.DecStructFieldNotFound(yyj10-1, "") 64448 } 64449 r.ReadArrayEnd() 64450 } 64451 64452 func (x *JobVersionsRequest) CodecEncodeSelf(e *codec1978.Encoder) { 64453 var h codecSelfer100 64454 z, r := codec1978.GenHelperEncoder(e) 64455 _, _, _ = h, z, r 64456 if x == nil { 64457 r.EncodeNil() 64458 } else { 64459 if false { 64460 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 64461 z.EncExtension(x, yyxt1) 64462 } else { 64463 yysep2 := !z.EncBinary() 64464 yy2arr2 := z.EncBasicHandle().StructToArray 64465 _, _ = yysep2, yy2arr2 64466 const yyr2 bool = false // struct tag has 'toArray' 64467 if yyr2 || yy2arr2 { 64468 r.WriteArrayStart(10) 64469 } else { 64470 r.WriteMapStart(10) 64471 } 64472 if yyr2 || yy2arr2 { 64473 r.WriteArrayElem() 64474 if false { 64475 } else { 64476 if z.EncBasicHandle().StringToRaw { 64477 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 64478 } else { 64479 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 64480 } 64481 } 64482 } else { 64483 r.WriteMapElemKey() 64484 if z.IsJSONHandle() { 64485 z.WriteStr("\"JobID\"") 64486 } else { 64487 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 64488 } 64489 r.WriteMapElemValue() 64490 if false { 64491 } else { 64492 if z.EncBasicHandle().StringToRaw { 64493 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 64494 } else { 64495 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 64496 } 64497 } 64498 } 64499 if yyr2 || yy2arr2 { 64500 r.WriteArrayElem() 64501 if false { 64502 } else { 64503 r.EncodeBool(bool(x.Diffs)) 64504 } 64505 } else { 64506 r.WriteMapElemKey() 64507 if z.IsJSONHandle() { 64508 z.WriteStr("\"Diffs\"") 64509 } else { 64510 r.EncodeStringEnc(codecSelferCcUTF8100, `Diffs`) 64511 } 64512 r.WriteMapElemValue() 64513 if false { 64514 } else { 64515 r.EncodeBool(bool(x.Diffs)) 64516 } 64517 } 64518 if yyr2 || yy2arr2 { 64519 r.WriteArrayElem() 64520 if false { 64521 } else { 64522 if z.EncBasicHandle().StringToRaw { 64523 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 64524 } else { 64525 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 64526 } 64527 } 64528 } else { 64529 r.WriteMapElemKey() 64530 if z.IsJSONHandle() { 64531 z.WriteStr("\"Region\"") 64532 } else { 64533 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 64534 } 64535 r.WriteMapElemValue() 64536 if false { 64537 } else { 64538 if z.EncBasicHandle().StringToRaw { 64539 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 64540 } else { 64541 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 64542 } 64543 } 64544 } 64545 if yyr2 || yy2arr2 { 64546 r.WriteArrayElem() 64547 if false { 64548 } else { 64549 if z.EncBasicHandle().StringToRaw { 64550 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 64551 } else { 64552 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 64553 } 64554 } 64555 } else { 64556 r.WriteMapElemKey() 64557 if z.IsJSONHandle() { 64558 z.WriteStr("\"Namespace\"") 64559 } else { 64560 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 64561 } 64562 r.WriteMapElemValue() 64563 if false { 64564 } else { 64565 if z.EncBasicHandle().StringToRaw { 64566 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 64567 } else { 64568 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 64569 } 64570 } 64571 } 64572 if yyr2 || yy2arr2 { 64573 r.WriteArrayElem() 64574 if false { 64575 } else { 64576 r.EncodeUint(uint64(x.MinQueryIndex)) 64577 } 64578 } else { 64579 r.WriteMapElemKey() 64580 if z.IsJSONHandle() { 64581 z.WriteStr("\"MinQueryIndex\"") 64582 } else { 64583 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 64584 } 64585 r.WriteMapElemValue() 64586 if false { 64587 } else { 64588 r.EncodeUint(uint64(x.MinQueryIndex)) 64589 } 64590 } 64591 if yyr2 || yy2arr2 { 64592 r.WriteArrayElem() 64593 if false { 64594 } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { 64595 z.EncExtension(x.MaxQueryTime, yyxt19) 64596 } else { 64597 r.EncodeInt(int64(x.MaxQueryTime)) 64598 } 64599 } else { 64600 r.WriteMapElemKey() 64601 if z.IsJSONHandle() { 64602 z.WriteStr("\"MaxQueryTime\"") 64603 } else { 64604 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 64605 } 64606 r.WriteMapElemValue() 64607 if false { 64608 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 64609 z.EncExtension(x.MaxQueryTime, yyxt20) 64610 } else { 64611 r.EncodeInt(int64(x.MaxQueryTime)) 64612 } 64613 } 64614 if yyr2 || yy2arr2 { 64615 r.WriteArrayElem() 64616 if false { 64617 } else { 64618 r.EncodeBool(bool(x.AllowStale)) 64619 } 64620 } else { 64621 r.WriteMapElemKey() 64622 if z.IsJSONHandle() { 64623 z.WriteStr("\"AllowStale\"") 64624 } else { 64625 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 64626 } 64627 r.WriteMapElemValue() 64628 if false { 64629 } else { 64630 r.EncodeBool(bool(x.AllowStale)) 64631 } 64632 } 64633 if yyr2 || yy2arr2 { 64634 r.WriteArrayElem() 64635 if false { 64636 } else { 64637 if z.EncBasicHandle().StringToRaw { 64638 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 64639 } else { 64640 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 64641 } 64642 } 64643 } else { 64644 r.WriteMapElemKey() 64645 if z.IsJSONHandle() { 64646 z.WriteStr("\"Prefix\"") 64647 } else { 64648 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 64649 } 64650 r.WriteMapElemValue() 64651 if false { 64652 } else { 64653 if z.EncBasicHandle().StringToRaw { 64654 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 64655 } else { 64656 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 64657 } 64658 } 64659 } 64660 if yyr2 || yy2arr2 { 64661 r.WriteArrayElem() 64662 if false { 64663 } else { 64664 if z.EncBasicHandle().StringToRaw { 64665 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 64666 } else { 64667 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 64668 } 64669 } 64670 } else { 64671 r.WriteMapElemKey() 64672 if z.IsJSONHandle() { 64673 z.WriteStr("\"AuthToken\"") 64674 } else { 64675 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 64676 } 64677 r.WriteMapElemValue() 64678 if false { 64679 } else { 64680 if z.EncBasicHandle().StringToRaw { 64681 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 64682 } else { 64683 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 64684 } 64685 } 64686 } 64687 if yyr2 || yy2arr2 { 64688 r.WriteArrayElem() 64689 if false { 64690 } else { 64691 r.EncodeBool(bool(x.Forwarded)) 64692 } 64693 } else { 64694 r.WriteMapElemKey() 64695 if z.IsJSONHandle() { 64696 z.WriteStr("\"Forwarded\"") 64697 } else { 64698 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 64699 } 64700 r.WriteMapElemValue() 64701 if false { 64702 } else { 64703 r.EncodeBool(bool(x.Forwarded)) 64704 } 64705 } 64706 if yyr2 || yy2arr2 { 64707 r.WriteArrayEnd() 64708 } else { 64709 r.WriteMapEnd() 64710 } 64711 } 64712 } 64713 } 64714 64715 func (x *JobVersionsRequest) CodecDecodeSelf(d *codec1978.Decoder) { 64716 var h codecSelfer100 64717 z, r := codec1978.GenHelperDecoder(d) 64718 _, _, _ = h, z, r 64719 if false { 64720 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 64721 z.DecExtension(x, yyxt1) 64722 } else { 64723 yyct2 := r.ContainerType() 64724 if yyct2 == codecSelferValueTypeMap100 { 64725 yyl2 := r.ReadMapStart() 64726 if yyl2 == 0 { 64727 r.ReadMapEnd() 64728 } else { 64729 x.codecDecodeSelfFromMap(yyl2, d) 64730 } 64731 } else if yyct2 == codecSelferValueTypeArray100 { 64732 yyl2 := r.ReadArrayStart() 64733 if yyl2 == 0 { 64734 r.ReadArrayEnd() 64735 } else { 64736 x.codecDecodeSelfFromArray(yyl2, d) 64737 } 64738 } else { 64739 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 64740 } 64741 } 64742 } 64743 64744 func (x *JobVersionsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 64745 var h codecSelfer100 64746 z, r := codec1978.GenHelperDecoder(d) 64747 _, _, _ = h, z, r 64748 var yyhl3 bool = l >= 0 64749 for yyj3 := 0; ; yyj3++ { 64750 if yyhl3 { 64751 if yyj3 >= l { 64752 break 64753 } 64754 } else { 64755 if r.CheckBreak() { 64756 break 64757 } 64758 } 64759 r.ReadMapElemKey() 64760 yys3 := z.StringView(r.DecodeStringAsBytes()) 64761 r.ReadMapElemValue() 64762 switch yys3 { 64763 case "JobID": 64764 if r.TryDecodeAsNil() { 64765 x.JobID = "" 64766 } else { 64767 x.JobID = (string)(r.DecodeString()) 64768 } 64769 case "Diffs": 64770 if r.TryDecodeAsNil() { 64771 x.Diffs = false 64772 } else { 64773 x.Diffs = (bool)(r.DecodeBool()) 64774 } 64775 case "Region": 64776 if r.TryDecodeAsNil() { 64777 x.QueryOptions.Region = "" 64778 } else { 64779 x.Region = (string)(r.DecodeString()) 64780 } 64781 case "Namespace": 64782 if r.TryDecodeAsNil() { 64783 x.QueryOptions.Namespace = "" 64784 } else { 64785 x.Namespace = (string)(r.DecodeString()) 64786 } 64787 case "MinQueryIndex": 64788 if r.TryDecodeAsNil() { 64789 x.QueryOptions.MinQueryIndex = 0 64790 } else { 64791 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 64792 } 64793 case "MaxQueryTime": 64794 if r.TryDecodeAsNil() { 64795 x.QueryOptions.MaxQueryTime = 0 64796 } else { 64797 if false { 64798 } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { 64799 z.DecExtension(x.MaxQueryTime, yyxt10) 64800 } else { 64801 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 64802 } 64803 } 64804 case "AllowStale": 64805 if r.TryDecodeAsNil() { 64806 x.QueryOptions.AllowStale = false 64807 } else { 64808 x.AllowStale = (bool)(r.DecodeBool()) 64809 } 64810 case "Prefix": 64811 if r.TryDecodeAsNil() { 64812 x.QueryOptions.Prefix = "" 64813 } else { 64814 x.Prefix = (string)(r.DecodeString()) 64815 } 64816 case "AuthToken": 64817 if r.TryDecodeAsNil() { 64818 x.QueryOptions.AuthToken = "" 64819 } else { 64820 x.AuthToken = (string)(r.DecodeString()) 64821 } 64822 case "Forwarded": 64823 if r.TryDecodeAsNil() { 64824 x.QueryOptions.InternalRpcInfo.Forwarded = false 64825 } else { 64826 x.Forwarded = (bool)(r.DecodeBool()) 64827 } 64828 default: 64829 z.DecStructFieldNotFound(-1, yys3) 64830 } // end switch yys3 64831 } // end for yyj3 64832 r.ReadMapEnd() 64833 } 64834 64835 func (x *JobVersionsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 64836 var h codecSelfer100 64837 z, r := codec1978.GenHelperDecoder(d) 64838 _, _, _ = h, z, r 64839 var yyj15 int 64840 var yyb15 bool 64841 var yyhl15 bool = l >= 0 64842 yyj15++ 64843 if yyhl15 { 64844 yyb15 = yyj15 > l 64845 } else { 64846 yyb15 = r.CheckBreak() 64847 } 64848 if yyb15 { 64849 r.ReadArrayEnd() 64850 return 64851 } 64852 r.ReadArrayElem() 64853 if r.TryDecodeAsNil() { 64854 x.JobID = "" 64855 } else { 64856 x.JobID = (string)(r.DecodeString()) 64857 } 64858 yyj15++ 64859 if yyhl15 { 64860 yyb15 = yyj15 > l 64861 } else { 64862 yyb15 = r.CheckBreak() 64863 } 64864 if yyb15 { 64865 r.ReadArrayEnd() 64866 return 64867 } 64868 r.ReadArrayElem() 64869 if r.TryDecodeAsNil() { 64870 x.Diffs = false 64871 } else { 64872 x.Diffs = (bool)(r.DecodeBool()) 64873 } 64874 yyj15++ 64875 if yyhl15 { 64876 yyb15 = yyj15 > l 64877 } else { 64878 yyb15 = r.CheckBreak() 64879 } 64880 if yyb15 { 64881 r.ReadArrayEnd() 64882 return 64883 } 64884 r.ReadArrayElem() 64885 if r.TryDecodeAsNil() { 64886 x.QueryOptions.Region = "" 64887 } else { 64888 x.Region = (string)(r.DecodeString()) 64889 } 64890 yyj15++ 64891 if yyhl15 { 64892 yyb15 = yyj15 > l 64893 } else { 64894 yyb15 = r.CheckBreak() 64895 } 64896 if yyb15 { 64897 r.ReadArrayEnd() 64898 return 64899 } 64900 r.ReadArrayElem() 64901 if r.TryDecodeAsNil() { 64902 x.QueryOptions.Namespace = "" 64903 } else { 64904 x.Namespace = (string)(r.DecodeString()) 64905 } 64906 yyj15++ 64907 if yyhl15 { 64908 yyb15 = yyj15 > l 64909 } else { 64910 yyb15 = r.CheckBreak() 64911 } 64912 if yyb15 { 64913 r.ReadArrayEnd() 64914 return 64915 } 64916 r.ReadArrayElem() 64917 if r.TryDecodeAsNil() { 64918 x.QueryOptions.MinQueryIndex = 0 64919 } else { 64920 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 64921 } 64922 yyj15++ 64923 if yyhl15 { 64924 yyb15 = yyj15 > l 64925 } else { 64926 yyb15 = r.CheckBreak() 64927 } 64928 if yyb15 { 64929 r.ReadArrayEnd() 64930 return 64931 } 64932 r.ReadArrayElem() 64933 if r.TryDecodeAsNil() { 64934 x.QueryOptions.MaxQueryTime = 0 64935 } else { 64936 if false { 64937 } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { 64938 z.DecExtension(x.MaxQueryTime, yyxt22) 64939 } else { 64940 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 64941 } 64942 } 64943 yyj15++ 64944 if yyhl15 { 64945 yyb15 = yyj15 > l 64946 } else { 64947 yyb15 = r.CheckBreak() 64948 } 64949 if yyb15 { 64950 r.ReadArrayEnd() 64951 return 64952 } 64953 r.ReadArrayElem() 64954 if r.TryDecodeAsNil() { 64955 x.QueryOptions.AllowStale = false 64956 } else { 64957 x.AllowStale = (bool)(r.DecodeBool()) 64958 } 64959 yyj15++ 64960 if yyhl15 { 64961 yyb15 = yyj15 > l 64962 } else { 64963 yyb15 = r.CheckBreak() 64964 } 64965 if yyb15 { 64966 r.ReadArrayEnd() 64967 return 64968 } 64969 r.ReadArrayElem() 64970 if r.TryDecodeAsNil() { 64971 x.QueryOptions.Prefix = "" 64972 } else { 64973 x.Prefix = (string)(r.DecodeString()) 64974 } 64975 yyj15++ 64976 if yyhl15 { 64977 yyb15 = yyj15 > l 64978 } else { 64979 yyb15 = r.CheckBreak() 64980 } 64981 if yyb15 { 64982 r.ReadArrayEnd() 64983 return 64984 } 64985 r.ReadArrayElem() 64986 if r.TryDecodeAsNil() { 64987 x.QueryOptions.AuthToken = "" 64988 } else { 64989 x.AuthToken = (string)(r.DecodeString()) 64990 } 64991 yyj15++ 64992 if yyhl15 { 64993 yyb15 = yyj15 > l 64994 } else { 64995 yyb15 = r.CheckBreak() 64996 } 64997 if yyb15 { 64998 r.ReadArrayEnd() 64999 return 65000 } 65001 r.ReadArrayElem() 65002 if r.TryDecodeAsNil() { 65003 x.QueryOptions.InternalRpcInfo.Forwarded = false 65004 } else { 65005 x.Forwarded = (bool)(r.DecodeBool()) 65006 } 65007 for { 65008 yyj15++ 65009 if yyhl15 { 65010 yyb15 = yyj15 > l 65011 } else { 65012 yyb15 = r.CheckBreak() 65013 } 65014 if yyb15 { 65015 break 65016 } 65017 r.ReadArrayElem() 65018 z.DecStructFieldNotFound(yyj15-1, "") 65019 } 65020 r.ReadArrayEnd() 65021 } 65022 65023 func (x *JobVersionsResponse) CodecEncodeSelf(e *codec1978.Encoder) { 65024 var h codecSelfer100 65025 z, r := codec1978.GenHelperEncoder(e) 65026 _, _, _ = h, z, r 65027 if x == nil { 65028 r.EncodeNil() 65029 } else { 65030 if false { 65031 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 65032 z.EncExtension(x, yyxt1) 65033 } else { 65034 yysep2 := !z.EncBinary() 65035 yy2arr2 := z.EncBasicHandle().StructToArray 65036 _, _ = yysep2, yy2arr2 65037 const yyr2 bool = false // struct tag has 'toArray' 65038 if yyr2 || yy2arr2 { 65039 r.WriteArrayStart(5) 65040 } else { 65041 r.WriteMapStart(5) 65042 } 65043 if yyr2 || yy2arr2 { 65044 r.WriteArrayElem() 65045 if x.Versions == nil { 65046 r.EncodeNil() 65047 } else { 65048 if false { 65049 } else { 65050 h.encSlicePtrtoJob(([]*Job)(x.Versions), e) 65051 } 65052 } 65053 } else { 65054 r.WriteMapElemKey() 65055 if z.IsJSONHandle() { 65056 z.WriteStr("\"Versions\"") 65057 } else { 65058 r.EncodeStringEnc(codecSelferCcUTF8100, `Versions`) 65059 } 65060 r.WriteMapElemValue() 65061 if x.Versions == nil { 65062 r.EncodeNil() 65063 } else { 65064 if false { 65065 } else { 65066 h.encSlicePtrtoJob(([]*Job)(x.Versions), e) 65067 } 65068 } 65069 } 65070 if yyr2 || yy2arr2 { 65071 r.WriteArrayElem() 65072 if x.Diffs == nil { 65073 r.EncodeNil() 65074 } else { 65075 if false { 65076 } else { 65077 h.encSlicePtrtoJobDiff(([]*JobDiff)(x.Diffs), e) 65078 } 65079 } 65080 } else { 65081 r.WriteMapElemKey() 65082 if z.IsJSONHandle() { 65083 z.WriteStr("\"Diffs\"") 65084 } else { 65085 r.EncodeStringEnc(codecSelferCcUTF8100, `Diffs`) 65086 } 65087 r.WriteMapElemValue() 65088 if x.Diffs == nil { 65089 r.EncodeNil() 65090 } else { 65091 if false { 65092 } else { 65093 h.encSlicePtrtoJobDiff(([]*JobDiff)(x.Diffs), e) 65094 } 65095 } 65096 } 65097 if yyr2 || yy2arr2 { 65098 r.WriteArrayElem() 65099 if false { 65100 } else { 65101 r.EncodeUint(uint64(x.Index)) 65102 } 65103 } else { 65104 r.WriteMapElemKey() 65105 if z.IsJSONHandle() { 65106 z.WriteStr("\"Index\"") 65107 } else { 65108 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 65109 } 65110 r.WriteMapElemValue() 65111 if false { 65112 } else { 65113 r.EncodeUint(uint64(x.Index)) 65114 } 65115 } 65116 if yyr2 || yy2arr2 { 65117 r.WriteArrayElem() 65118 if false { 65119 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 65120 z.EncExtension(x.LastContact, yyxt13) 65121 } else { 65122 r.EncodeInt(int64(x.LastContact)) 65123 } 65124 } else { 65125 r.WriteMapElemKey() 65126 if z.IsJSONHandle() { 65127 z.WriteStr("\"LastContact\"") 65128 } else { 65129 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 65130 } 65131 r.WriteMapElemValue() 65132 if false { 65133 } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { 65134 z.EncExtension(x.LastContact, yyxt14) 65135 } else { 65136 r.EncodeInt(int64(x.LastContact)) 65137 } 65138 } 65139 if yyr2 || yy2arr2 { 65140 r.WriteArrayElem() 65141 if false { 65142 } else { 65143 r.EncodeBool(bool(x.KnownLeader)) 65144 } 65145 } else { 65146 r.WriteMapElemKey() 65147 if z.IsJSONHandle() { 65148 z.WriteStr("\"KnownLeader\"") 65149 } else { 65150 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 65151 } 65152 r.WriteMapElemValue() 65153 if false { 65154 } else { 65155 r.EncodeBool(bool(x.KnownLeader)) 65156 } 65157 } 65158 if yyr2 || yy2arr2 { 65159 r.WriteArrayEnd() 65160 } else { 65161 r.WriteMapEnd() 65162 } 65163 } 65164 } 65165 } 65166 65167 func (x *JobVersionsResponse) CodecDecodeSelf(d *codec1978.Decoder) { 65168 var h codecSelfer100 65169 z, r := codec1978.GenHelperDecoder(d) 65170 _, _, _ = h, z, r 65171 if false { 65172 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 65173 z.DecExtension(x, yyxt1) 65174 } else { 65175 yyct2 := r.ContainerType() 65176 if yyct2 == codecSelferValueTypeMap100 { 65177 yyl2 := r.ReadMapStart() 65178 if yyl2 == 0 { 65179 r.ReadMapEnd() 65180 } else { 65181 x.codecDecodeSelfFromMap(yyl2, d) 65182 } 65183 } else if yyct2 == codecSelferValueTypeArray100 { 65184 yyl2 := r.ReadArrayStart() 65185 if yyl2 == 0 { 65186 r.ReadArrayEnd() 65187 } else { 65188 x.codecDecodeSelfFromArray(yyl2, d) 65189 } 65190 } else { 65191 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 65192 } 65193 } 65194 } 65195 65196 func (x *JobVersionsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 65197 var h codecSelfer100 65198 z, r := codec1978.GenHelperDecoder(d) 65199 _, _, _ = h, z, r 65200 var yyhl3 bool = l >= 0 65201 for yyj3 := 0; ; yyj3++ { 65202 if yyhl3 { 65203 if yyj3 >= l { 65204 break 65205 } 65206 } else { 65207 if r.CheckBreak() { 65208 break 65209 } 65210 } 65211 r.ReadMapElemKey() 65212 yys3 := z.StringView(r.DecodeStringAsBytes()) 65213 r.ReadMapElemValue() 65214 switch yys3 { 65215 case "Versions": 65216 if r.TryDecodeAsNil() { 65217 x.Versions = nil 65218 } else { 65219 if false { 65220 } else { 65221 h.decSlicePtrtoJob((*[]*Job)(&x.Versions), d) 65222 } 65223 } 65224 case "Diffs": 65225 if r.TryDecodeAsNil() { 65226 x.Diffs = nil 65227 } else { 65228 if false { 65229 } else { 65230 h.decSlicePtrtoJobDiff((*[]*JobDiff)(&x.Diffs), d) 65231 } 65232 } 65233 case "Index": 65234 if r.TryDecodeAsNil() { 65235 x.QueryMeta.Index = 0 65236 } else { 65237 x.Index = (uint64)(r.DecodeUint64()) 65238 } 65239 case "LastContact": 65240 if r.TryDecodeAsNil() { 65241 x.QueryMeta.LastContact = 0 65242 } else { 65243 if false { 65244 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 65245 z.DecExtension(x.LastContact, yyxt10) 65246 } else { 65247 x.LastContact = (time.Duration)(r.DecodeInt64()) 65248 } 65249 } 65250 case "KnownLeader": 65251 if r.TryDecodeAsNil() { 65252 x.QueryMeta.KnownLeader = false 65253 } else { 65254 x.KnownLeader = (bool)(r.DecodeBool()) 65255 } 65256 default: 65257 z.DecStructFieldNotFound(-1, yys3) 65258 } // end switch yys3 65259 } // end for yyj3 65260 r.ReadMapEnd() 65261 } 65262 65263 func (x *JobVersionsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 65264 var h codecSelfer100 65265 z, r := codec1978.GenHelperDecoder(d) 65266 _, _, _ = h, z, r 65267 var yyj12 int 65268 var yyb12 bool 65269 var yyhl12 bool = l >= 0 65270 yyj12++ 65271 if yyhl12 { 65272 yyb12 = yyj12 > l 65273 } else { 65274 yyb12 = r.CheckBreak() 65275 } 65276 if yyb12 { 65277 r.ReadArrayEnd() 65278 return 65279 } 65280 r.ReadArrayElem() 65281 if r.TryDecodeAsNil() { 65282 x.Versions = nil 65283 } else { 65284 if false { 65285 } else { 65286 h.decSlicePtrtoJob((*[]*Job)(&x.Versions), d) 65287 } 65288 } 65289 yyj12++ 65290 if yyhl12 { 65291 yyb12 = yyj12 > l 65292 } else { 65293 yyb12 = r.CheckBreak() 65294 } 65295 if yyb12 { 65296 r.ReadArrayEnd() 65297 return 65298 } 65299 r.ReadArrayElem() 65300 if r.TryDecodeAsNil() { 65301 x.Diffs = nil 65302 } else { 65303 if false { 65304 } else { 65305 h.decSlicePtrtoJobDiff((*[]*JobDiff)(&x.Diffs), d) 65306 } 65307 } 65308 yyj12++ 65309 if yyhl12 { 65310 yyb12 = yyj12 > l 65311 } else { 65312 yyb12 = r.CheckBreak() 65313 } 65314 if yyb12 { 65315 r.ReadArrayEnd() 65316 return 65317 } 65318 r.ReadArrayElem() 65319 if r.TryDecodeAsNil() { 65320 x.QueryMeta.Index = 0 65321 } else { 65322 x.Index = (uint64)(r.DecodeUint64()) 65323 } 65324 yyj12++ 65325 if yyhl12 { 65326 yyb12 = yyj12 > l 65327 } else { 65328 yyb12 = r.CheckBreak() 65329 } 65330 if yyb12 { 65331 r.ReadArrayEnd() 65332 return 65333 } 65334 r.ReadArrayElem() 65335 if r.TryDecodeAsNil() { 65336 x.QueryMeta.LastContact = 0 65337 } else { 65338 if false { 65339 } else if yyxt19 := z.Extension(z.I2Rtid(x.LastContact)); yyxt19 != nil { 65340 z.DecExtension(x.LastContact, yyxt19) 65341 } else { 65342 x.LastContact = (time.Duration)(r.DecodeInt64()) 65343 } 65344 } 65345 yyj12++ 65346 if yyhl12 { 65347 yyb12 = yyj12 > l 65348 } else { 65349 yyb12 = r.CheckBreak() 65350 } 65351 if yyb12 { 65352 r.ReadArrayEnd() 65353 return 65354 } 65355 r.ReadArrayElem() 65356 if r.TryDecodeAsNil() { 65357 x.QueryMeta.KnownLeader = false 65358 } else { 65359 x.KnownLeader = (bool)(r.DecodeBool()) 65360 } 65361 for { 65362 yyj12++ 65363 if yyhl12 { 65364 yyb12 = yyj12 > l 65365 } else { 65366 yyb12 = r.CheckBreak() 65367 } 65368 if yyb12 { 65369 break 65370 } 65371 r.ReadArrayElem() 65372 z.DecStructFieldNotFound(yyj12-1, "") 65373 } 65374 r.ReadArrayEnd() 65375 } 65376 65377 func (x *JobPlanResponse) CodecEncodeSelf(e *codec1978.Encoder) { 65378 var h codecSelfer100 65379 z, r := codec1978.GenHelperEncoder(e) 65380 _, _, _ = h, z, r 65381 if x == nil { 65382 r.EncodeNil() 65383 } else { 65384 if false { 65385 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 65386 z.EncExtension(x, yyxt1) 65387 } else { 65388 yysep2 := !z.EncBinary() 65389 yy2arr2 := z.EncBasicHandle().StructToArray 65390 _, _ = yysep2, yy2arr2 65391 const yyr2 bool = false // struct tag has 'toArray' 65392 if yyr2 || yy2arr2 { 65393 r.WriteArrayStart(8) 65394 } else { 65395 r.WriteMapStart(8) 65396 } 65397 var yyn3 bool 65398 if x.Annotations == nil { 65399 yyn3 = true 65400 goto LABEL3 65401 } 65402 LABEL3: 65403 if yyr2 || yy2arr2 { 65404 if yyn3 { 65405 r.WriteArrayElem() 65406 r.EncodeNil() 65407 } else { 65408 r.WriteArrayElem() 65409 if x.Annotations == nil { 65410 r.EncodeNil() 65411 } else { 65412 x.Annotations.CodecEncodeSelf(e) 65413 } 65414 } 65415 } else { 65416 r.WriteMapElemKey() 65417 if z.IsJSONHandle() { 65418 z.WriteStr("\"Annotations\"") 65419 } else { 65420 r.EncodeStringEnc(codecSelferCcUTF8100, `Annotations`) 65421 } 65422 r.WriteMapElemValue() 65423 if yyn3 { 65424 r.EncodeNil() 65425 } else { 65426 if x.Annotations == nil { 65427 r.EncodeNil() 65428 } else { 65429 x.Annotations.CodecEncodeSelf(e) 65430 } 65431 } 65432 } 65433 if yyr2 || yy2arr2 { 65434 r.WriteArrayElem() 65435 if x.FailedTGAllocs == nil { 65436 r.EncodeNil() 65437 } else { 65438 if false { 65439 } else { 65440 h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) 65441 } 65442 } 65443 } else { 65444 r.WriteMapElemKey() 65445 if z.IsJSONHandle() { 65446 z.WriteStr("\"FailedTGAllocs\"") 65447 } else { 65448 r.EncodeStringEnc(codecSelferCcUTF8100, `FailedTGAllocs`) 65449 } 65450 r.WriteMapElemValue() 65451 if x.FailedTGAllocs == nil { 65452 r.EncodeNil() 65453 } else { 65454 if false { 65455 } else { 65456 h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) 65457 } 65458 } 65459 } 65460 if yyr2 || yy2arr2 { 65461 r.WriteArrayElem() 65462 if false { 65463 } else { 65464 r.EncodeUint(uint64(x.JobModifyIndex)) 65465 } 65466 } else { 65467 r.WriteMapElemKey() 65468 if z.IsJSONHandle() { 65469 z.WriteStr("\"JobModifyIndex\"") 65470 } else { 65471 r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) 65472 } 65473 r.WriteMapElemValue() 65474 if false { 65475 } else { 65476 r.EncodeUint(uint64(x.JobModifyIndex)) 65477 } 65478 } 65479 if yyr2 || yy2arr2 { 65480 r.WriteArrayElem() 65481 if x.CreatedEvals == nil { 65482 r.EncodeNil() 65483 } else { 65484 if false { 65485 } else { 65486 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.CreatedEvals), e) 65487 } 65488 } 65489 } else { 65490 r.WriteMapElemKey() 65491 if z.IsJSONHandle() { 65492 z.WriteStr("\"CreatedEvals\"") 65493 } else { 65494 r.EncodeStringEnc(codecSelferCcUTF8100, `CreatedEvals`) 65495 } 65496 r.WriteMapElemValue() 65497 if x.CreatedEvals == nil { 65498 r.EncodeNil() 65499 } else { 65500 if false { 65501 } else { 65502 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.CreatedEvals), e) 65503 } 65504 } 65505 } 65506 var yyn15 bool 65507 if x.Diff == nil { 65508 yyn15 = true 65509 goto LABEL15 65510 } 65511 LABEL15: 65512 if yyr2 || yy2arr2 { 65513 if yyn15 { 65514 r.WriteArrayElem() 65515 r.EncodeNil() 65516 } else { 65517 r.WriteArrayElem() 65518 if x.Diff == nil { 65519 r.EncodeNil() 65520 } else { 65521 x.Diff.CodecEncodeSelf(e) 65522 } 65523 } 65524 } else { 65525 r.WriteMapElemKey() 65526 if z.IsJSONHandle() { 65527 z.WriteStr("\"Diff\"") 65528 } else { 65529 r.EncodeStringEnc(codecSelferCcUTF8100, `Diff`) 65530 } 65531 r.WriteMapElemValue() 65532 if yyn15 { 65533 r.EncodeNil() 65534 } else { 65535 if x.Diff == nil { 65536 r.EncodeNil() 65537 } else { 65538 x.Diff.CodecEncodeSelf(e) 65539 } 65540 } 65541 } 65542 if yyr2 || yy2arr2 { 65543 r.WriteArrayElem() 65544 if false { 65545 } else if !z.EncBasicHandle().TimeNotBuiltin { 65546 r.EncodeTime(x.NextPeriodicLaunch) 65547 } else if yyxt19 := z.Extension(z.I2Rtid(x.NextPeriodicLaunch)); yyxt19 != nil { 65548 z.EncExtension(x.NextPeriodicLaunch, yyxt19) 65549 } else if z.EncBinary() { 65550 z.EncBinaryMarshal(x.NextPeriodicLaunch) 65551 } else if !z.EncBinary() && z.IsJSONHandle() { 65552 z.EncJSONMarshal(x.NextPeriodicLaunch) 65553 } else { 65554 z.EncFallback(x.NextPeriodicLaunch) 65555 } 65556 } else { 65557 r.WriteMapElemKey() 65558 if z.IsJSONHandle() { 65559 z.WriteStr("\"NextPeriodicLaunch\"") 65560 } else { 65561 r.EncodeStringEnc(codecSelferCcUTF8100, `NextPeriodicLaunch`) 65562 } 65563 r.WriteMapElemValue() 65564 if false { 65565 } else if !z.EncBasicHandle().TimeNotBuiltin { 65566 r.EncodeTime(x.NextPeriodicLaunch) 65567 } else if yyxt20 := z.Extension(z.I2Rtid(x.NextPeriodicLaunch)); yyxt20 != nil { 65568 z.EncExtension(x.NextPeriodicLaunch, yyxt20) 65569 } else if z.EncBinary() { 65570 z.EncBinaryMarshal(x.NextPeriodicLaunch) 65571 } else if !z.EncBinary() && z.IsJSONHandle() { 65572 z.EncJSONMarshal(x.NextPeriodicLaunch) 65573 } else { 65574 z.EncFallback(x.NextPeriodicLaunch) 65575 } 65576 } 65577 if yyr2 || yy2arr2 { 65578 r.WriteArrayElem() 65579 if false { 65580 } else { 65581 if z.EncBasicHandle().StringToRaw { 65582 r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) 65583 } else { 65584 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) 65585 } 65586 } 65587 } else { 65588 r.WriteMapElemKey() 65589 if z.IsJSONHandle() { 65590 z.WriteStr("\"Warnings\"") 65591 } else { 65592 r.EncodeStringEnc(codecSelferCcUTF8100, `Warnings`) 65593 } 65594 r.WriteMapElemValue() 65595 if false { 65596 } else { 65597 if z.EncBasicHandle().StringToRaw { 65598 r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) 65599 } else { 65600 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) 65601 } 65602 } 65603 } 65604 if yyr2 || yy2arr2 { 65605 r.WriteArrayElem() 65606 if false { 65607 } else { 65608 r.EncodeUint(uint64(x.Index)) 65609 } 65610 } else { 65611 r.WriteMapElemKey() 65612 if z.IsJSONHandle() { 65613 z.WriteStr("\"Index\"") 65614 } else { 65615 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 65616 } 65617 r.WriteMapElemValue() 65618 if false { 65619 } else { 65620 r.EncodeUint(uint64(x.Index)) 65621 } 65622 } 65623 if yyr2 || yy2arr2 { 65624 r.WriteArrayEnd() 65625 } else { 65626 r.WriteMapEnd() 65627 } 65628 } 65629 } 65630 } 65631 65632 func (x *JobPlanResponse) CodecDecodeSelf(d *codec1978.Decoder) { 65633 var h codecSelfer100 65634 z, r := codec1978.GenHelperDecoder(d) 65635 _, _, _ = h, z, r 65636 if false { 65637 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 65638 z.DecExtension(x, yyxt1) 65639 } else { 65640 yyct2 := r.ContainerType() 65641 if yyct2 == codecSelferValueTypeMap100 { 65642 yyl2 := r.ReadMapStart() 65643 if yyl2 == 0 { 65644 r.ReadMapEnd() 65645 } else { 65646 x.codecDecodeSelfFromMap(yyl2, d) 65647 } 65648 } else if yyct2 == codecSelferValueTypeArray100 { 65649 yyl2 := r.ReadArrayStart() 65650 if yyl2 == 0 { 65651 r.ReadArrayEnd() 65652 } else { 65653 x.codecDecodeSelfFromArray(yyl2, d) 65654 } 65655 } else { 65656 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 65657 } 65658 } 65659 } 65660 65661 func (x *JobPlanResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 65662 var h codecSelfer100 65663 z, r := codec1978.GenHelperDecoder(d) 65664 _, _, _ = h, z, r 65665 var yyhl3 bool = l >= 0 65666 for yyj3 := 0; ; yyj3++ { 65667 if yyhl3 { 65668 if yyj3 >= l { 65669 break 65670 } 65671 } else { 65672 if r.CheckBreak() { 65673 break 65674 } 65675 } 65676 r.ReadMapElemKey() 65677 yys3 := z.StringView(r.DecodeStringAsBytes()) 65678 r.ReadMapElemValue() 65679 switch yys3 { 65680 case "Annotations": 65681 if r.TryDecodeAsNil() { 65682 if true && x.Annotations != nil { 65683 x.Annotations = nil 65684 } 65685 } else { 65686 if x.Annotations == nil { 65687 x.Annotations = new(PlanAnnotations) 65688 } 65689 65690 x.Annotations.CodecDecodeSelf(d) 65691 } 65692 case "FailedTGAllocs": 65693 if r.TryDecodeAsNil() { 65694 x.FailedTGAllocs = nil 65695 } else { 65696 if false { 65697 } else { 65698 h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(&x.FailedTGAllocs), d) 65699 } 65700 } 65701 case "JobModifyIndex": 65702 if r.TryDecodeAsNil() { 65703 x.JobModifyIndex = 0 65704 } else { 65705 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 65706 } 65707 case "CreatedEvals": 65708 if r.TryDecodeAsNil() { 65709 x.CreatedEvals = nil 65710 } else { 65711 if false { 65712 } else { 65713 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.CreatedEvals), d) 65714 } 65715 } 65716 case "Diff": 65717 if r.TryDecodeAsNil() { 65718 if true && x.Diff != nil { 65719 x.Diff = nil 65720 } 65721 } else { 65722 if x.Diff == nil { 65723 x.Diff = new(JobDiff) 65724 } 65725 65726 x.Diff.CodecDecodeSelf(d) 65727 } 65728 case "NextPeriodicLaunch": 65729 if r.TryDecodeAsNil() { 65730 x.NextPeriodicLaunch = time.Time{} 65731 } else { 65732 if false { 65733 } else if !z.DecBasicHandle().TimeNotBuiltin { 65734 x.NextPeriodicLaunch = r.DecodeTime() 65735 } else if yyxt12 := z.Extension(z.I2Rtid(x.NextPeriodicLaunch)); yyxt12 != nil { 65736 z.DecExtension(x.NextPeriodicLaunch, yyxt12) 65737 } else if z.DecBinary() { 65738 z.DecBinaryUnmarshal(&x.NextPeriodicLaunch) 65739 } else if !z.DecBinary() && z.IsJSONHandle() { 65740 z.DecJSONUnmarshal(&x.NextPeriodicLaunch) 65741 } else { 65742 z.DecFallback(&x.NextPeriodicLaunch, false) 65743 } 65744 } 65745 case "Warnings": 65746 if r.TryDecodeAsNil() { 65747 x.Warnings = "" 65748 } else { 65749 x.Warnings = (string)(r.DecodeString()) 65750 } 65751 case "Index": 65752 if r.TryDecodeAsNil() { 65753 x.WriteMeta.Index = 0 65754 } else { 65755 x.Index = (uint64)(r.DecodeUint64()) 65756 } 65757 default: 65758 z.DecStructFieldNotFound(-1, yys3) 65759 } // end switch yys3 65760 } // end for yyj3 65761 r.ReadMapEnd() 65762 } 65763 65764 func (x *JobPlanResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 65765 var h codecSelfer100 65766 z, r := codec1978.GenHelperDecoder(d) 65767 _, _, _ = h, z, r 65768 var yyj15 int 65769 var yyb15 bool 65770 var yyhl15 bool = l >= 0 65771 yyj15++ 65772 if yyhl15 { 65773 yyb15 = yyj15 > l 65774 } else { 65775 yyb15 = r.CheckBreak() 65776 } 65777 if yyb15 { 65778 r.ReadArrayEnd() 65779 return 65780 } 65781 r.ReadArrayElem() 65782 if r.TryDecodeAsNil() { 65783 if true && x.Annotations != nil { 65784 x.Annotations = nil 65785 } 65786 } else { 65787 if x.Annotations == nil { 65788 x.Annotations = new(PlanAnnotations) 65789 } 65790 65791 x.Annotations.CodecDecodeSelf(d) 65792 } 65793 yyj15++ 65794 if yyhl15 { 65795 yyb15 = yyj15 > l 65796 } else { 65797 yyb15 = r.CheckBreak() 65798 } 65799 if yyb15 { 65800 r.ReadArrayEnd() 65801 return 65802 } 65803 r.ReadArrayElem() 65804 if r.TryDecodeAsNil() { 65805 x.FailedTGAllocs = nil 65806 } else { 65807 if false { 65808 } else { 65809 h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(&x.FailedTGAllocs), d) 65810 } 65811 } 65812 yyj15++ 65813 if yyhl15 { 65814 yyb15 = yyj15 > l 65815 } else { 65816 yyb15 = r.CheckBreak() 65817 } 65818 if yyb15 { 65819 r.ReadArrayEnd() 65820 return 65821 } 65822 r.ReadArrayElem() 65823 if r.TryDecodeAsNil() { 65824 x.JobModifyIndex = 0 65825 } else { 65826 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 65827 } 65828 yyj15++ 65829 if yyhl15 { 65830 yyb15 = yyj15 > l 65831 } else { 65832 yyb15 = r.CheckBreak() 65833 } 65834 if yyb15 { 65835 r.ReadArrayEnd() 65836 return 65837 } 65838 r.ReadArrayElem() 65839 if r.TryDecodeAsNil() { 65840 x.CreatedEvals = nil 65841 } else { 65842 if false { 65843 } else { 65844 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.CreatedEvals), d) 65845 } 65846 } 65847 yyj15++ 65848 if yyhl15 { 65849 yyb15 = yyj15 > l 65850 } else { 65851 yyb15 = r.CheckBreak() 65852 } 65853 if yyb15 { 65854 r.ReadArrayEnd() 65855 return 65856 } 65857 r.ReadArrayElem() 65858 if r.TryDecodeAsNil() { 65859 if true && x.Diff != nil { 65860 x.Diff = nil 65861 } 65862 } else { 65863 if x.Diff == nil { 65864 x.Diff = new(JobDiff) 65865 } 65866 65867 x.Diff.CodecDecodeSelf(d) 65868 } 65869 yyj15++ 65870 if yyhl15 { 65871 yyb15 = yyj15 > l 65872 } else { 65873 yyb15 = r.CheckBreak() 65874 } 65875 if yyb15 { 65876 r.ReadArrayEnd() 65877 return 65878 } 65879 r.ReadArrayElem() 65880 if r.TryDecodeAsNil() { 65881 x.NextPeriodicLaunch = time.Time{} 65882 } else { 65883 if false { 65884 } else if !z.DecBasicHandle().TimeNotBuiltin { 65885 x.NextPeriodicLaunch = r.DecodeTime() 65886 } else if yyxt24 := z.Extension(z.I2Rtid(x.NextPeriodicLaunch)); yyxt24 != nil { 65887 z.DecExtension(x.NextPeriodicLaunch, yyxt24) 65888 } else if z.DecBinary() { 65889 z.DecBinaryUnmarshal(&x.NextPeriodicLaunch) 65890 } else if !z.DecBinary() && z.IsJSONHandle() { 65891 z.DecJSONUnmarshal(&x.NextPeriodicLaunch) 65892 } else { 65893 z.DecFallback(&x.NextPeriodicLaunch, false) 65894 } 65895 } 65896 yyj15++ 65897 if yyhl15 { 65898 yyb15 = yyj15 > l 65899 } else { 65900 yyb15 = r.CheckBreak() 65901 } 65902 if yyb15 { 65903 r.ReadArrayEnd() 65904 return 65905 } 65906 r.ReadArrayElem() 65907 if r.TryDecodeAsNil() { 65908 x.Warnings = "" 65909 } else { 65910 x.Warnings = (string)(r.DecodeString()) 65911 } 65912 yyj15++ 65913 if yyhl15 { 65914 yyb15 = yyj15 > l 65915 } else { 65916 yyb15 = r.CheckBreak() 65917 } 65918 if yyb15 { 65919 r.ReadArrayEnd() 65920 return 65921 } 65922 r.ReadArrayElem() 65923 if r.TryDecodeAsNil() { 65924 x.WriteMeta.Index = 0 65925 } else { 65926 x.Index = (uint64)(r.DecodeUint64()) 65927 } 65928 for { 65929 yyj15++ 65930 if yyhl15 { 65931 yyb15 = yyj15 > l 65932 } else { 65933 yyb15 = r.CheckBreak() 65934 } 65935 if yyb15 { 65936 break 65937 } 65938 r.ReadArrayElem() 65939 z.DecStructFieldNotFound(yyj15-1, "") 65940 } 65941 r.ReadArrayEnd() 65942 } 65943 65944 func (x *SingleAllocResponse) CodecEncodeSelf(e *codec1978.Encoder) { 65945 var h codecSelfer100 65946 z, r := codec1978.GenHelperEncoder(e) 65947 _, _, _ = h, z, r 65948 if x == nil { 65949 r.EncodeNil() 65950 } else { 65951 if false { 65952 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 65953 z.EncExtension(x, yyxt1) 65954 } else { 65955 yysep2 := !z.EncBinary() 65956 yy2arr2 := z.EncBasicHandle().StructToArray 65957 _, _ = yysep2, yy2arr2 65958 const yyr2 bool = false // struct tag has 'toArray' 65959 if yyr2 || yy2arr2 { 65960 r.WriteArrayStart(4) 65961 } else { 65962 r.WriteMapStart(4) 65963 } 65964 var yyn3 bool 65965 if x.Alloc == nil { 65966 yyn3 = true 65967 goto LABEL3 65968 } 65969 LABEL3: 65970 if yyr2 || yy2arr2 { 65971 if yyn3 { 65972 r.WriteArrayElem() 65973 r.EncodeNil() 65974 } else { 65975 r.WriteArrayElem() 65976 if x.Alloc == nil { 65977 r.EncodeNil() 65978 } else { 65979 x.Alloc.CodecEncodeSelf(e) 65980 } 65981 } 65982 } else { 65983 r.WriteMapElemKey() 65984 if z.IsJSONHandle() { 65985 z.WriteStr("\"Alloc\"") 65986 } else { 65987 r.EncodeStringEnc(codecSelferCcUTF8100, `Alloc`) 65988 } 65989 r.WriteMapElemValue() 65990 if yyn3 { 65991 r.EncodeNil() 65992 } else { 65993 if x.Alloc == nil { 65994 r.EncodeNil() 65995 } else { 65996 x.Alloc.CodecEncodeSelf(e) 65997 } 65998 } 65999 } 66000 if yyr2 || yy2arr2 { 66001 r.WriteArrayElem() 66002 if false { 66003 } else { 66004 r.EncodeUint(uint64(x.Index)) 66005 } 66006 } else { 66007 r.WriteMapElemKey() 66008 if z.IsJSONHandle() { 66009 z.WriteStr("\"Index\"") 66010 } else { 66011 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 66012 } 66013 r.WriteMapElemValue() 66014 if false { 66015 } else { 66016 r.EncodeUint(uint64(x.Index)) 66017 } 66018 } 66019 if yyr2 || yy2arr2 { 66020 r.WriteArrayElem() 66021 if false { 66022 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 66023 z.EncExtension(x.LastContact, yyxt10) 66024 } else { 66025 r.EncodeInt(int64(x.LastContact)) 66026 } 66027 } else { 66028 r.WriteMapElemKey() 66029 if z.IsJSONHandle() { 66030 z.WriteStr("\"LastContact\"") 66031 } else { 66032 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 66033 } 66034 r.WriteMapElemValue() 66035 if false { 66036 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 66037 z.EncExtension(x.LastContact, yyxt11) 66038 } else { 66039 r.EncodeInt(int64(x.LastContact)) 66040 } 66041 } 66042 if yyr2 || yy2arr2 { 66043 r.WriteArrayElem() 66044 if false { 66045 } else { 66046 r.EncodeBool(bool(x.KnownLeader)) 66047 } 66048 } else { 66049 r.WriteMapElemKey() 66050 if z.IsJSONHandle() { 66051 z.WriteStr("\"KnownLeader\"") 66052 } else { 66053 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 66054 } 66055 r.WriteMapElemValue() 66056 if false { 66057 } else { 66058 r.EncodeBool(bool(x.KnownLeader)) 66059 } 66060 } 66061 if yyr2 || yy2arr2 { 66062 r.WriteArrayEnd() 66063 } else { 66064 r.WriteMapEnd() 66065 } 66066 } 66067 } 66068 } 66069 66070 func (x *SingleAllocResponse) CodecDecodeSelf(d *codec1978.Decoder) { 66071 var h codecSelfer100 66072 z, r := codec1978.GenHelperDecoder(d) 66073 _, _, _ = h, z, r 66074 if false { 66075 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 66076 z.DecExtension(x, yyxt1) 66077 } else { 66078 yyct2 := r.ContainerType() 66079 if yyct2 == codecSelferValueTypeMap100 { 66080 yyl2 := r.ReadMapStart() 66081 if yyl2 == 0 { 66082 r.ReadMapEnd() 66083 } else { 66084 x.codecDecodeSelfFromMap(yyl2, d) 66085 } 66086 } else if yyct2 == codecSelferValueTypeArray100 { 66087 yyl2 := r.ReadArrayStart() 66088 if yyl2 == 0 { 66089 r.ReadArrayEnd() 66090 } else { 66091 x.codecDecodeSelfFromArray(yyl2, d) 66092 } 66093 } else { 66094 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 66095 } 66096 } 66097 } 66098 66099 func (x *SingleAllocResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 66100 var h codecSelfer100 66101 z, r := codec1978.GenHelperDecoder(d) 66102 _, _, _ = h, z, r 66103 var yyhl3 bool = l >= 0 66104 for yyj3 := 0; ; yyj3++ { 66105 if yyhl3 { 66106 if yyj3 >= l { 66107 break 66108 } 66109 } else { 66110 if r.CheckBreak() { 66111 break 66112 } 66113 } 66114 r.ReadMapElemKey() 66115 yys3 := z.StringView(r.DecodeStringAsBytes()) 66116 r.ReadMapElemValue() 66117 switch yys3 { 66118 case "Alloc": 66119 if r.TryDecodeAsNil() { 66120 if true && x.Alloc != nil { 66121 x.Alloc = nil 66122 } 66123 } else { 66124 if x.Alloc == nil { 66125 x.Alloc = new(Allocation) 66126 } 66127 66128 x.Alloc.CodecDecodeSelf(d) 66129 } 66130 case "Index": 66131 if r.TryDecodeAsNil() { 66132 x.QueryMeta.Index = 0 66133 } else { 66134 x.Index = (uint64)(r.DecodeUint64()) 66135 } 66136 case "LastContact": 66137 if r.TryDecodeAsNil() { 66138 x.QueryMeta.LastContact = 0 66139 } else { 66140 if false { 66141 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 66142 z.DecExtension(x.LastContact, yyxt7) 66143 } else { 66144 x.LastContact = (time.Duration)(r.DecodeInt64()) 66145 } 66146 } 66147 case "KnownLeader": 66148 if r.TryDecodeAsNil() { 66149 x.QueryMeta.KnownLeader = false 66150 } else { 66151 x.KnownLeader = (bool)(r.DecodeBool()) 66152 } 66153 default: 66154 z.DecStructFieldNotFound(-1, yys3) 66155 } // end switch yys3 66156 } // end for yyj3 66157 r.ReadMapEnd() 66158 } 66159 66160 func (x *SingleAllocResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 66161 var h codecSelfer100 66162 z, r := codec1978.GenHelperDecoder(d) 66163 _, _, _ = h, z, r 66164 var yyj9 int 66165 var yyb9 bool 66166 var yyhl9 bool = l >= 0 66167 yyj9++ 66168 if yyhl9 { 66169 yyb9 = yyj9 > l 66170 } else { 66171 yyb9 = r.CheckBreak() 66172 } 66173 if yyb9 { 66174 r.ReadArrayEnd() 66175 return 66176 } 66177 r.ReadArrayElem() 66178 if r.TryDecodeAsNil() { 66179 if true && x.Alloc != nil { 66180 x.Alloc = nil 66181 } 66182 } else { 66183 if x.Alloc == nil { 66184 x.Alloc = new(Allocation) 66185 } 66186 66187 x.Alloc.CodecDecodeSelf(d) 66188 } 66189 yyj9++ 66190 if yyhl9 { 66191 yyb9 = yyj9 > l 66192 } else { 66193 yyb9 = r.CheckBreak() 66194 } 66195 if yyb9 { 66196 r.ReadArrayEnd() 66197 return 66198 } 66199 r.ReadArrayElem() 66200 if r.TryDecodeAsNil() { 66201 x.QueryMeta.Index = 0 66202 } else { 66203 x.Index = (uint64)(r.DecodeUint64()) 66204 } 66205 yyj9++ 66206 if yyhl9 { 66207 yyb9 = yyj9 > l 66208 } else { 66209 yyb9 = r.CheckBreak() 66210 } 66211 if yyb9 { 66212 r.ReadArrayEnd() 66213 return 66214 } 66215 r.ReadArrayElem() 66216 if r.TryDecodeAsNil() { 66217 x.QueryMeta.LastContact = 0 66218 } else { 66219 if false { 66220 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 66221 z.DecExtension(x.LastContact, yyxt13) 66222 } else { 66223 x.LastContact = (time.Duration)(r.DecodeInt64()) 66224 } 66225 } 66226 yyj9++ 66227 if yyhl9 { 66228 yyb9 = yyj9 > l 66229 } else { 66230 yyb9 = r.CheckBreak() 66231 } 66232 if yyb9 { 66233 r.ReadArrayEnd() 66234 return 66235 } 66236 r.ReadArrayElem() 66237 if r.TryDecodeAsNil() { 66238 x.QueryMeta.KnownLeader = false 66239 } else { 66240 x.KnownLeader = (bool)(r.DecodeBool()) 66241 } 66242 for { 66243 yyj9++ 66244 if yyhl9 { 66245 yyb9 = yyj9 > l 66246 } else { 66247 yyb9 = r.CheckBreak() 66248 } 66249 if yyb9 { 66250 break 66251 } 66252 r.ReadArrayElem() 66253 z.DecStructFieldNotFound(yyj9-1, "") 66254 } 66255 r.ReadArrayEnd() 66256 } 66257 66258 func (x *AllocsGetResponse) CodecEncodeSelf(e *codec1978.Encoder) { 66259 var h codecSelfer100 66260 z, r := codec1978.GenHelperEncoder(e) 66261 _, _, _ = h, z, r 66262 if x == nil { 66263 r.EncodeNil() 66264 } else { 66265 if false { 66266 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 66267 z.EncExtension(x, yyxt1) 66268 } else { 66269 yysep2 := !z.EncBinary() 66270 yy2arr2 := z.EncBasicHandle().StructToArray 66271 _, _ = yysep2, yy2arr2 66272 const yyr2 bool = false // struct tag has 'toArray' 66273 if yyr2 || yy2arr2 { 66274 r.WriteArrayStart(4) 66275 } else { 66276 r.WriteMapStart(4) 66277 } 66278 if yyr2 || yy2arr2 { 66279 r.WriteArrayElem() 66280 if x.Allocs == nil { 66281 r.EncodeNil() 66282 } else { 66283 if false { 66284 } else { 66285 h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) 66286 } 66287 } 66288 } else { 66289 r.WriteMapElemKey() 66290 if z.IsJSONHandle() { 66291 z.WriteStr("\"Allocs\"") 66292 } else { 66293 r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) 66294 } 66295 r.WriteMapElemValue() 66296 if x.Allocs == nil { 66297 r.EncodeNil() 66298 } else { 66299 if false { 66300 } else { 66301 h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) 66302 } 66303 } 66304 } 66305 if yyr2 || yy2arr2 { 66306 r.WriteArrayElem() 66307 if false { 66308 } else { 66309 r.EncodeUint(uint64(x.Index)) 66310 } 66311 } else { 66312 r.WriteMapElemKey() 66313 if z.IsJSONHandle() { 66314 z.WriteStr("\"Index\"") 66315 } else { 66316 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 66317 } 66318 r.WriteMapElemValue() 66319 if false { 66320 } else { 66321 r.EncodeUint(uint64(x.Index)) 66322 } 66323 } 66324 if yyr2 || yy2arr2 { 66325 r.WriteArrayElem() 66326 if false { 66327 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 66328 z.EncExtension(x.LastContact, yyxt10) 66329 } else { 66330 r.EncodeInt(int64(x.LastContact)) 66331 } 66332 } else { 66333 r.WriteMapElemKey() 66334 if z.IsJSONHandle() { 66335 z.WriteStr("\"LastContact\"") 66336 } else { 66337 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 66338 } 66339 r.WriteMapElemValue() 66340 if false { 66341 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 66342 z.EncExtension(x.LastContact, yyxt11) 66343 } else { 66344 r.EncodeInt(int64(x.LastContact)) 66345 } 66346 } 66347 if yyr2 || yy2arr2 { 66348 r.WriteArrayElem() 66349 if false { 66350 } else { 66351 r.EncodeBool(bool(x.KnownLeader)) 66352 } 66353 } else { 66354 r.WriteMapElemKey() 66355 if z.IsJSONHandle() { 66356 z.WriteStr("\"KnownLeader\"") 66357 } else { 66358 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 66359 } 66360 r.WriteMapElemValue() 66361 if false { 66362 } else { 66363 r.EncodeBool(bool(x.KnownLeader)) 66364 } 66365 } 66366 if yyr2 || yy2arr2 { 66367 r.WriteArrayEnd() 66368 } else { 66369 r.WriteMapEnd() 66370 } 66371 } 66372 } 66373 } 66374 66375 func (x *AllocsGetResponse) CodecDecodeSelf(d *codec1978.Decoder) { 66376 var h codecSelfer100 66377 z, r := codec1978.GenHelperDecoder(d) 66378 _, _, _ = h, z, r 66379 if false { 66380 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 66381 z.DecExtension(x, yyxt1) 66382 } else { 66383 yyct2 := r.ContainerType() 66384 if yyct2 == codecSelferValueTypeMap100 { 66385 yyl2 := r.ReadMapStart() 66386 if yyl2 == 0 { 66387 r.ReadMapEnd() 66388 } else { 66389 x.codecDecodeSelfFromMap(yyl2, d) 66390 } 66391 } else if yyct2 == codecSelferValueTypeArray100 { 66392 yyl2 := r.ReadArrayStart() 66393 if yyl2 == 0 { 66394 r.ReadArrayEnd() 66395 } else { 66396 x.codecDecodeSelfFromArray(yyl2, d) 66397 } 66398 } else { 66399 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 66400 } 66401 } 66402 } 66403 66404 func (x *AllocsGetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 66405 var h codecSelfer100 66406 z, r := codec1978.GenHelperDecoder(d) 66407 _, _, _ = h, z, r 66408 var yyhl3 bool = l >= 0 66409 for yyj3 := 0; ; yyj3++ { 66410 if yyhl3 { 66411 if yyj3 >= l { 66412 break 66413 } 66414 } else { 66415 if r.CheckBreak() { 66416 break 66417 } 66418 } 66419 r.ReadMapElemKey() 66420 yys3 := z.StringView(r.DecodeStringAsBytes()) 66421 r.ReadMapElemValue() 66422 switch yys3 { 66423 case "Allocs": 66424 if r.TryDecodeAsNil() { 66425 x.Allocs = nil 66426 } else { 66427 if false { 66428 } else { 66429 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Allocs), d) 66430 } 66431 } 66432 case "Index": 66433 if r.TryDecodeAsNil() { 66434 x.QueryMeta.Index = 0 66435 } else { 66436 x.Index = (uint64)(r.DecodeUint64()) 66437 } 66438 case "LastContact": 66439 if r.TryDecodeAsNil() { 66440 x.QueryMeta.LastContact = 0 66441 } else { 66442 if false { 66443 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 66444 z.DecExtension(x.LastContact, yyxt8) 66445 } else { 66446 x.LastContact = (time.Duration)(r.DecodeInt64()) 66447 } 66448 } 66449 case "KnownLeader": 66450 if r.TryDecodeAsNil() { 66451 x.QueryMeta.KnownLeader = false 66452 } else { 66453 x.KnownLeader = (bool)(r.DecodeBool()) 66454 } 66455 default: 66456 z.DecStructFieldNotFound(-1, yys3) 66457 } // end switch yys3 66458 } // end for yyj3 66459 r.ReadMapEnd() 66460 } 66461 66462 func (x *AllocsGetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 66463 var h codecSelfer100 66464 z, r := codec1978.GenHelperDecoder(d) 66465 _, _, _ = h, z, r 66466 var yyj10 int 66467 var yyb10 bool 66468 var yyhl10 bool = l >= 0 66469 yyj10++ 66470 if yyhl10 { 66471 yyb10 = yyj10 > l 66472 } else { 66473 yyb10 = r.CheckBreak() 66474 } 66475 if yyb10 { 66476 r.ReadArrayEnd() 66477 return 66478 } 66479 r.ReadArrayElem() 66480 if r.TryDecodeAsNil() { 66481 x.Allocs = nil 66482 } else { 66483 if false { 66484 } else { 66485 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Allocs), d) 66486 } 66487 } 66488 yyj10++ 66489 if yyhl10 { 66490 yyb10 = yyj10 > l 66491 } else { 66492 yyb10 = r.CheckBreak() 66493 } 66494 if yyb10 { 66495 r.ReadArrayEnd() 66496 return 66497 } 66498 r.ReadArrayElem() 66499 if r.TryDecodeAsNil() { 66500 x.QueryMeta.Index = 0 66501 } else { 66502 x.Index = (uint64)(r.DecodeUint64()) 66503 } 66504 yyj10++ 66505 if yyhl10 { 66506 yyb10 = yyj10 > l 66507 } else { 66508 yyb10 = r.CheckBreak() 66509 } 66510 if yyb10 { 66511 r.ReadArrayEnd() 66512 return 66513 } 66514 r.ReadArrayElem() 66515 if r.TryDecodeAsNil() { 66516 x.QueryMeta.LastContact = 0 66517 } else { 66518 if false { 66519 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 66520 z.DecExtension(x.LastContact, yyxt15) 66521 } else { 66522 x.LastContact = (time.Duration)(r.DecodeInt64()) 66523 } 66524 } 66525 yyj10++ 66526 if yyhl10 { 66527 yyb10 = yyj10 > l 66528 } else { 66529 yyb10 = r.CheckBreak() 66530 } 66531 if yyb10 { 66532 r.ReadArrayEnd() 66533 return 66534 } 66535 r.ReadArrayElem() 66536 if r.TryDecodeAsNil() { 66537 x.QueryMeta.KnownLeader = false 66538 } else { 66539 x.KnownLeader = (bool)(r.DecodeBool()) 66540 } 66541 for { 66542 yyj10++ 66543 if yyhl10 { 66544 yyb10 = yyj10 > l 66545 } else { 66546 yyb10 = r.CheckBreak() 66547 } 66548 if yyb10 { 66549 break 66550 } 66551 r.ReadArrayElem() 66552 z.DecStructFieldNotFound(yyj10-1, "") 66553 } 66554 r.ReadArrayEnd() 66555 } 66556 66557 func (x *JobAllocationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { 66558 var h codecSelfer100 66559 z, r := codec1978.GenHelperEncoder(e) 66560 _, _, _ = h, z, r 66561 if x == nil { 66562 r.EncodeNil() 66563 } else { 66564 if false { 66565 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 66566 z.EncExtension(x, yyxt1) 66567 } else { 66568 yysep2 := !z.EncBinary() 66569 yy2arr2 := z.EncBasicHandle().StructToArray 66570 _, _ = yysep2, yy2arr2 66571 const yyr2 bool = false // struct tag has 'toArray' 66572 if yyr2 || yy2arr2 { 66573 r.WriteArrayStart(4) 66574 } else { 66575 r.WriteMapStart(4) 66576 } 66577 if yyr2 || yy2arr2 { 66578 r.WriteArrayElem() 66579 if x.Allocations == nil { 66580 r.EncodeNil() 66581 } else { 66582 if false { 66583 } else { 66584 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) 66585 } 66586 } 66587 } else { 66588 r.WriteMapElemKey() 66589 if z.IsJSONHandle() { 66590 z.WriteStr("\"Allocations\"") 66591 } else { 66592 r.EncodeStringEnc(codecSelferCcUTF8100, `Allocations`) 66593 } 66594 r.WriteMapElemValue() 66595 if x.Allocations == nil { 66596 r.EncodeNil() 66597 } else { 66598 if false { 66599 } else { 66600 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) 66601 } 66602 } 66603 } 66604 if yyr2 || yy2arr2 { 66605 r.WriteArrayElem() 66606 if false { 66607 } else { 66608 r.EncodeUint(uint64(x.Index)) 66609 } 66610 } else { 66611 r.WriteMapElemKey() 66612 if z.IsJSONHandle() { 66613 z.WriteStr("\"Index\"") 66614 } else { 66615 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 66616 } 66617 r.WriteMapElemValue() 66618 if false { 66619 } else { 66620 r.EncodeUint(uint64(x.Index)) 66621 } 66622 } 66623 if yyr2 || yy2arr2 { 66624 r.WriteArrayElem() 66625 if false { 66626 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 66627 z.EncExtension(x.LastContact, yyxt10) 66628 } else { 66629 r.EncodeInt(int64(x.LastContact)) 66630 } 66631 } else { 66632 r.WriteMapElemKey() 66633 if z.IsJSONHandle() { 66634 z.WriteStr("\"LastContact\"") 66635 } else { 66636 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 66637 } 66638 r.WriteMapElemValue() 66639 if false { 66640 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 66641 z.EncExtension(x.LastContact, yyxt11) 66642 } else { 66643 r.EncodeInt(int64(x.LastContact)) 66644 } 66645 } 66646 if yyr2 || yy2arr2 { 66647 r.WriteArrayElem() 66648 if false { 66649 } else { 66650 r.EncodeBool(bool(x.KnownLeader)) 66651 } 66652 } else { 66653 r.WriteMapElemKey() 66654 if z.IsJSONHandle() { 66655 z.WriteStr("\"KnownLeader\"") 66656 } else { 66657 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 66658 } 66659 r.WriteMapElemValue() 66660 if false { 66661 } else { 66662 r.EncodeBool(bool(x.KnownLeader)) 66663 } 66664 } 66665 if yyr2 || yy2arr2 { 66666 r.WriteArrayEnd() 66667 } else { 66668 r.WriteMapEnd() 66669 } 66670 } 66671 } 66672 } 66673 66674 func (x *JobAllocationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { 66675 var h codecSelfer100 66676 z, r := codec1978.GenHelperDecoder(d) 66677 _, _, _ = h, z, r 66678 if false { 66679 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 66680 z.DecExtension(x, yyxt1) 66681 } else { 66682 yyct2 := r.ContainerType() 66683 if yyct2 == codecSelferValueTypeMap100 { 66684 yyl2 := r.ReadMapStart() 66685 if yyl2 == 0 { 66686 r.ReadMapEnd() 66687 } else { 66688 x.codecDecodeSelfFromMap(yyl2, d) 66689 } 66690 } else if yyct2 == codecSelferValueTypeArray100 { 66691 yyl2 := r.ReadArrayStart() 66692 if yyl2 == 0 { 66693 r.ReadArrayEnd() 66694 } else { 66695 x.codecDecodeSelfFromArray(yyl2, d) 66696 } 66697 } else { 66698 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 66699 } 66700 } 66701 } 66702 66703 func (x *JobAllocationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 66704 var h codecSelfer100 66705 z, r := codec1978.GenHelperDecoder(d) 66706 _, _, _ = h, z, r 66707 var yyhl3 bool = l >= 0 66708 for yyj3 := 0; ; yyj3++ { 66709 if yyhl3 { 66710 if yyj3 >= l { 66711 break 66712 } 66713 } else { 66714 if r.CheckBreak() { 66715 break 66716 } 66717 } 66718 r.ReadMapElemKey() 66719 yys3 := z.StringView(r.DecodeStringAsBytes()) 66720 r.ReadMapElemValue() 66721 switch yys3 { 66722 case "Allocations": 66723 if r.TryDecodeAsNil() { 66724 x.Allocations = nil 66725 } else { 66726 if false { 66727 } else { 66728 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) 66729 } 66730 } 66731 case "Index": 66732 if r.TryDecodeAsNil() { 66733 x.QueryMeta.Index = 0 66734 } else { 66735 x.Index = (uint64)(r.DecodeUint64()) 66736 } 66737 case "LastContact": 66738 if r.TryDecodeAsNil() { 66739 x.QueryMeta.LastContact = 0 66740 } else { 66741 if false { 66742 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 66743 z.DecExtension(x.LastContact, yyxt8) 66744 } else { 66745 x.LastContact = (time.Duration)(r.DecodeInt64()) 66746 } 66747 } 66748 case "KnownLeader": 66749 if r.TryDecodeAsNil() { 66750 x.QueryMeta.KnownLeader = false 66751 } else { 66752 x.KnownLeader = (bool)(r.DecodeBool()) 66753 } 66754 default: 66755 z.DecStructFieldNotFound(-1, yys3) 66756 } // end switch yys3 66757 } // end for yyj3 66758 r.ReadMapEnd() 66759 } 66760 66761 func (x *JobAllocationsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 66762 var h codecSelfer100 66763 z, r := codec1978.GenHelperDecoder(d) 66764 _, _, _ = h, z, r 66765 var yyj10 int 66766 var yyb10 bool 66767 var yyhl10 bool = l >= 0 66768 yyj10++ 66769 if yyhl10 { 66770 yyb10 = yyj10 > l 66771 } else { 66772 yyb10 = r.CheckBreak() 66773 } 66774 if yyb10 { 66775 r.ReadArrayEnd() 66776 return 66777 } 66778 r.ReadArrayElem() 66779 if r.TryDecodeAsNil() { 66780 x.Allocations = nil 66781 } else { 66782 if false { 66783 } else { 66784 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) 66785 } 66786 } 66787 yyj10++ 66788 if yyhl10 { 66789 yyb10 = yyj10 > l 66790 } else { 66791 yyb10 = r.CheckBreak() 66792 } 66793 if yyb10 { 66794 r.ReadArrayEnd() 66795 return 66796 } 66797 r.ReadArrayElem() 66798 if r.TryDecodeAsNil() { 66799 x.QueryMeta.Index = 0 66800 } else { 66801 x.Index = (uint64)(r.DecodeUint64()) 66802 } 66803 yyj10++ 66804 if yyhl10 { 66805 yyb10 = yyj10 > l 66806 } else { 66807 yyb10 = r.CheckBreak() 66808 } 66809 if yyb10 { 66810 r.ReadArrayEnd() 66811 return 66812 } 66813 r.ReadArrayElem() 66814 if r.TryDecodeAsNil() { 66815 x.QueryMeta.LastContact = 0 66816 } else { 66817 if false { 66818 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 66819 z.DecExtension(x.LastContact, yyxt15) 66820 } else { 66821 x.LastContact = (time.Duration)(r.DecodeInt64()) 66822 } 66823 } 66824 yyj10++ 66825 if yyhl10 { 66826 yyb10 = yyj10 > l 66827 } else { 66828 yyb10 = r.CheckBreak() 66829 } 66830 if yyb10 { 66831 r.ReadArrayEnd() 66832 return 66833 } 66834 r.ReadArrayElem() 66835 if r.TryDecodeAsNil() { 66836 x.QueryMeta.KnownLeader = false 66837 } else { 66838 x.KnownLeader = (bool)(r.DecodeBool()) 66839 } 66840 for { 66841 yyj10++ 66842 if yyhl10 { 66843 yyb10 = yyj10 > l 66844 } else { 66845 yyb10 = r.CheckBreak() 66846 } 66847 if yyb10 { 66848 break 66849 } 66850 r.ReadArrayElem() 66851 z.DecStructFieldNotFound(yyj10-1, "") 66852 } 66853 r.ReadArrayEnd() 66854 } 66855 66856 func (x *JobEvaluationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { 66857 var h codecSelfer100 66858 z, r := codec1978.GenHelperEncoder(e) 66859 _, _, _ = h, z, r 66860 if x == nil { 66861 r.EncodeNil() 66862 } else { 66863 if false { 66864 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 66865 z.EncExtension(x, yyxt1) 66866 } else { 66867 yysep2 := !z.EncBinary() 66868 yy2arr2 := z.EncBasicHandle().StructToArray 66869 _, _ = yysep2, yy2arr2 66870 const yyr2 bool = false // struct tag has 'toArray' 66871 if yyr2 || yy2arr2 { 66872 r.WriteArrayStart(4) 66873 } else { 66874 r.WriteMapStart(4) 66875 } 66876 if yyr2 || yy2arr2 { 66877 r.WriteArrayElem() 66878 if x.Evaluations == nil { 66879 r.EncodeNil() 66880 } else { 66881 if false { 66882 } else { 66883 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) 66884 } 66885 } 66886 } else { 66887 r.WriteMapElemKey() 66888 if z.IsJSONHandle() { 66889 z.WriteStr("\"Evaluations\"") 66890 } else { 66891 r.EncodeStringEnc(codecSelferCcUTF8100, `Evaluations`) 66892 } 66893 r.WriteMapElemValue() 66894 if x.Evaluations == nil { 66895 r.EncodeNil() 66896 } else { 66897 if false { 66898 } else { 66899 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) 66900 } 66901 } 66902 } 66903 if yyr2 || yy2arr2 { 66904 r.WriteArrayElem() 66905 if false { 66906 } else { 66907 r.EncodeUint(uint64(x.Index)) 66908 } 66909 } else { 66910 r.WriteMapElemKey() 66911 if z.IsJSONHandle() { 66912 z.WriteStr("\"Index\"") 66913 } else { 66914 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 66915 } 66916 r.WriteMapElemValue() 66917 if false { 66918 } else { 66919 r.EncodeUint(uint64(x.Index)) 66920 } 66921 } 66922 if yyr2 || yy2arr2 { 66923 r.WriteArrayElem() 66924 if false { 66925 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 66926 z.EncExtension(x.LastContact, yyxt10) 66927 } else { 66928 r.EncodeInt(int64(x.LastContact)) 66929 } 66930 } else { 66931 r.WriteMapElemKey() 66932 if z.IsJSONHandle() { 66933 z.WriteStr("\"LastContact\"") 66934 } else { 66935 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 66936 } 66937 r.WriteMapElemValue() 66938 if false { 66939 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 66940 z.EncExtension(x.LastContact, yyxt11) 66941 } else { 66942 r.EncodeInt(int64(x.LastContact)) 66943 } 66944 } 66945 if yyr2 || yy2arr2 { 66946 r.WriteArrayElem() 66947 if false { 66948 } else { 66949 r.EncodeBool(bool(x.KnownLeader)) 66950 } 66951 } else { 66952 r.WriteMapElemKey() 66953 if z.IsJSONHandle() { 66954 z.WriteStr("\"KnownLeader\"") 66955 } else { 66956 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 66957 } 66958 r.WriteMapElemValue() 66959 if false { 66960 } else { 66961 r.EncodeBool(bool(x.KnownLeader)) 66962 } 66963 } 66964 if yyr2 || yy2arr2 { 66965 r.WriteArrayEnd() 66966 } else { 66967 r.WriteMapEnd() 66968 } 66969 } 66970 } 66971 } 66972 66973 func (x *JobEvaluationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { 66974 var h codecSelfer100 66975 z, r := codec1978.GenHelperDecoder(d) 66976 _, _, _ = h, z, r 66977 if false { 66978 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 66979 z.DecExtension(x, yyxt1) 66980 } else { 66981 yyct2 := r.ContainerType() 66982 if yyct2 == codecSelferValueTypeMap100 { 66983 yyl2 := r.ReadMapStart() 66984 if yyl2 == 0 { 66985 r.ReadMapEnd() 66986 } else { 66987 x.codecDecodeSelfFromMap(yyl2, d) 66988 } 66989 } else if yyct2 == codecSelferValueTypeArray100 { 66990 yyl2 := r.ReadArrayStart() 66991 if yyl2 == 0 { 66992 r.ReadArrayEnd() 66993 } else { 66994 x.codecDecodeSelfFromArray(yyl2, d) 66995 } 66996 } else { 66997 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 66998 } 66999 } 67000 } 67001 67002 func (x *JobEvaluationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 67003 var h codecSelfer100 67004 z, r := codec1978.GenHelperDecoder(d) 67005 _, _, _ = h, z, r 67006 var yyhl3 bool = l >= 0 67007 for yyj3 := 0; ; yyj3++ { 67008 if yyhl3 { 67009 if yyj3 >= l { 67010 break 67011 } 67012 } else { 67013 if r.CheckBreak() { 67014 break 67015 } 67016 } 67017 r.ReadMapElemKey() 67018 yys3 := z.StringView(r.DecodeStringAsBytes()) 67019 r.ReadMapElemValue() 67020 switch yys3 { 67021 case "Evaluations": 67022 if r.TryDecodeAsNil() { 67023 x.Evaluations = nil 67024 } else { 67025 if false { 67026 } else { 67027 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evaluations), d) 67028 } 67029 } 67030 case "Index": 67031 if r.TryDecodeAsNil() { 67032 x.QueryMeta.Index = 0 67033 } else { 67034 x.Index = (uint64)(r.DecodeUint64()) 67035 } 67036 case "LastContact": 67037 if r.TryDecodeAsNil() { 67038 x.QueryMeta.LastContact = 0 67039 } else { 67040 if false { 67041 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 67042 z.DecExtension(x.LastContact, yyxt8) 67043 } else { 67044 x.LastContact = (time.Duration)(r.DecodeInt64()) 67045 } 67046 } 67047 case "KnownLeader": 67048 if r.TryDecodeAsNil() { 67049 x.QueryMeta.KnownLeader = false 67050 } else { 67051 x.KnownLeader = (bool)(r.DecodeBool()) 67052 } 67053 default: 67054 z.DecStructFieldNotFound(-1, yys3) 67055 } // end switch yys3 67056 } // end for yyj3 67057 r.ReadMapEnd() 67058 } 67059 67060 func (x *JobEvaluationsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 67061 var h codecSelfer100 67062 z, r := codec1978.GenHelperDecoder(d) 67063 _, _, _ = h, z, r 67064 var yyj10 int 67065 var yyb10 bool 67066 var yyhl10 bool = l >= 0 67067 yyj10++ 67068 if yyhl10 { 67069 yyb10 = yyj10 > l 67070 } else { 67071 yyb10 = r.CheckBreak() 67072 } 67073 if yyb10 { 67074 r.ReadArrayEnd() 67075 return 67076 } 67077 r.ReadArrayElem() 67078 if r.TryDecodeAsNil() { 67079 x.Evaluations = nil 67080 } else { 67081 if false { 67082 } else { 67083 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evaluations), d) 67084 } 67085 } 67086 yyj10++ 67087 if yyhl10 { 67088 yyb10 = yyj10 > l 67089 } else { 67090 yyb10 = r.CheckBreak() 67091 } 67092 if yyb10 { 67093 r.ReadArrayEnd() 67094 return 67095 } 67096 r.ReadArrayElem() 67097 if r.TryDecodeAsNil() { 67098 x.QueryMeta.Index = 0 67099 } else { 67100 x.Index = (uint64)(r.DecodeUint64()) 67101 } 67102 yyj10++ 67103 if yyhl10 { 67104 yyb10 = yyj10 > l 67105 } else { 67106 yyb10 = r.CheckBreak() 67107 } 67108 if yyb10 { 67109 r.ReadArrayEnd() 67110 return 67111 } 67112 r.ReadArrayElem() 67113 if r.TryDecodeAsNil() { 67114 x.QueryMeta.LastContact = 0 67115 } else { 67116 if false { 67117 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 67118 z.DecExtension(x.LastContact, yyxt15) 67119 } else { 67120 x.LastContact = (time.Duration)(r.DecodeInt64()) 67121 } 67122 } 67123 yyj10++ 67124 if yyhl10 { 67125 yyb10 = yyj10 > l 67126 } else { 67127 yyb10 = r.CheckBreak() 67128 } 67129 if yyb10 { 67130 r.ReadArrayEnd() 67131 return 67132 } 67133 r.ReadArrayElem() 67134 if r.TryDecodeAsNil() { 67135 x.QueryMeta.KnownLeader = false 67136 } else { 67137 x.KnownLeader = (bool)(r.DecodeBool()) 67138 } 67139 for { 67140 yyj10++ 67141 if yyhl10 { 67142 yyb10 = yyj10 > l 67143 } else { 67144 yyb10 = r.CheckBreak() 67145 } 67146 if yyb10 { 67147 break 67148 } 67149 r.ReadArrayElem() 67150 z.DecStructFieldNotFound(yyj10-1, "") 67151 } 67152 r.ReadArrayEnd() 67153 } 67154 67155 func (x *SingleEvalResponse) CodecEncodeSelf(e *codec1978.Encoder) { 67156 var h codecSelfer100 67157 z, r := codec1978.GenHelperEncoder(e) 67158 _, _, _ = h, z, r 67159 if x == nil { 67160 r.EncodeNil() 67161 } else { 67162 if false { 67163 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 67164 z.EncExtension(x, yyxt1) 67165 } else { 67166 yysep2 := !z.EncBinary() 67167 yy2arr2 := z.EncBasicHandle().StructToArray 67168 _, _ = yysep2, yy2arr2 67169 const yyr2 bool = false // struct tag has 'toArray' 67170 if yyr2 || yy2arr2 { 67171 r.WriteArrayStart(4) 67172 } else { 67173 r.WriteMapStart(4) 67174 } 67175 var yyn3 bool 67176 if x.Eval == nil { 67177 yyn3 = true 67178 goto LABEL3 67179 } 67180 LABEL3: 67181 if yyr2 || yy2arr2 { 67182 if yyn3 { 67183 r.WriteArrayElem() 67184 r.EncodeNil() 67185 } else { 67186 r.WriteArrayElem() 67187 if x.Eval == nil { 67188 r.EncodeNil() 67189 } else { 67190 x.Eval.CodecEncodeSelf(e) 67191 } 67192 } 67193 } else { 67194 r.WriteMapElemKey() 67195 if z.IsJSONHandle() { 67196 z.WriteStr("\"Eval\"") 67197 } else { 67198 r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) 67199 } 67200 r.WriteMapElemValue() 67201 if yyn3 { 67202 r.EncodeNil() 67203 } else { 67204 if x.Eval == nil { 67205 r.EncodeNil() 67206 } else { 67207 x.Eval.CodecEncodeSelf(e) 67208 } 67209 } 67210 } 67211 if yyr2 || yy2arr2 { 67212 r.WriteArrayElem() 67213 if false { 67214 } else { 67215 r.EncodeUint(uint64(x.Index)) 67216 } 67217 } else { 67218 r.WriteMapElemKey() 67219 if z.IsJSONHandle() { 67220 z.WriteStr("\"Index\"") 67221 } else { 67222 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 67223 } 67224 r.WriteMapElemValue() 67225 if false { 67226 } else { 67227 r.EncodeUint(uint64(x.Index)) 67228 } 67229 } 67230 if yyr2 || yy2arr2 { 67231 r.WriteArrayElem() 67232 if false { 67233 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 67234 z.EncExtension(x.LastContact, yyxt10) 67235 } else { 67236 r.EncodeInt(int64(x.LastContact)) 67237 } 67238 } else { 67239 r.WriteMapElemKey() 67240 if z.IsJSONHandle() { 67241 z.WriteStr("\"LastContact\"") 67242 } else { 67243 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 67244 } 67245 r.WriteMapElemValue() 67246 if false { 67247 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 67248 z.EncExtension(x.LastContact, yyxt11) 67249 } else { 67250 r.EncodeInt(int64(x.LastContact)) 67251 } 67252 } 67253 if yyr2 || yy2arr2 { 67254 r.WriteArrayElem() 67255 if false { 67256 } else { 67257 r.EncodeBool(bool(x.KnownLeader)) 67258 } 67259 } else { 67260 r.WriteMapElemKey() 67261 if z.IsJSONHandle() { 67262 z.WriteStr("\"KnownLeader\"") 67263 } else { 67264 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 67265 } 67266 r.WriteMapElemValue() 67267 if false { 67268 } else { 67269 r.EncodeBool(bool(x.KnownLeader)) 67270 } 67271 } 67272 if yyr2 || yy2arr2 { 67273 r.WriteArrayEnd() 67274 } else { 67275 r.WriteMapEnd() 67276 } 67277 } 67278 } 67279 } 67280 67281 func (x *SingleEvalResponse) CodecDecodeSelf(d *codec1978.Decoder) { 67282 var h codecSelfer100 67283 z, r := codec1978.GenHelperDecoder(d) 67284 _, _, _ = h, z, r 67285 if false { 67286 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 67287 z.DecExtension(x, yyxt1) 67288 } else { 67289 yyct2 := r.ContainerType() 67290 if yyct2 == codecSelferValueTypeMap100 { 67291 yyl2 := r.ReadMapStart() 67292 if yyl2 == 0 { 67293 r.ReadMapEnd() 67294 } else { 67295 x.codecDecodeSelfFromMap(yyl2, d) 67296 } 67297 } else if yyct2 == codecSelferValueTypeArray100 { 67298 yyl2 := r.ReadArrayStart() 67299 if yyl2 == 0 { 67300 r.ReadArrayEnd() 67301 } else { 67302 x.codecDecodeSelfFromArray(yyl2, d) 67303 } 67304 } else { 67305 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 67306 } 67307 } 67308 } 67309 67310 func (x *SingleEvalResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 67311 var h codecSelfer100 67312 z, r := codec1978.GenHelperDecoder(d) 67313 _, _, _ = h, z, r 67314 var yyhl3 bool = l >= 0 67315 for yyj3 := 0; ; yyj3++ { 67316 if yyhl3 { 67317 if yyj3 >= l { 67318 break 67319 } 67320 } else { 67321 if r.CheckBreak() { 67322 break 67323 } 67324 } 67325 r.ReadMapElemKey() 67326 yys3 := z.StringView(r.DecodeStringAsBytes()) 67327 r.ReadMapElemValue() 67328 switch yys3 { 67329 case "Eval": 67330 if r.TryDecodeAsNil() { 67331 if true && x.Eval != nil { 67332 x.Eval = nil 67333 } 67334 } else { 67335 if x.Eval == nil { 67336 x.Eval = new(Evaluation) 67337 } 67338 67339 x.Eval.CodecDecodeSelf(d) 67340 } 67341 case "Index": 67342 if r.TryDecodeAsNil() { 67343 x.QueryMeta.Index = 0 67344 } else { 67345 x.Index = (uint64)(r.DecodeUint64()) 67346 } 67347 case "LastContact": 67348 if r.TryDecodeAsNil() { 67349 x.QueryMeta.LastContact = 0 67350 } else { 67351 if false { 67352 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 67353 z.DecExtension(x.LastContact, yyxt7) 67354 } else { 67355 x.LastContact = (time.Duration)(r.DecodeInt64()) 67356 } 67357 } 67358 case "KnownLeader": 67359 if r.TryDecodeAsNil() { 67360 x.QueryMeta.KnownLeader = false 67361 } else { 67362 x.KnownLeader = (bool)(r.DecodeBool()) 67363 } 67364 default: 67365 z.DecStructFieldNotFound(-1, yys3) 67366 } // end switch yys3 67367 } // end for yyj3 67368 r.ReadMapEnd() 67369 } 67370 67371 func (x *SingleEvalResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 67372 var h codecSelfer100 67373 z, r := codec1978.GenHelperDecoder(d) 67374 _, _, _ = h, z, r 67375 var yyj9 int 67376 var yyb9 bool 67377 var yyhl9 bool = l >= 0 67378 yyj9++ 67379 if yyhl9 { 67380 yyb9 = yyj9 > l 67381 } else { 67382 yyb9 = r.CheckBreak() 67383 } 67384 if yyb9 { 67385 r.ReadArrayEnd() 67386 return 67387 } 67388 r.ReadArrayElem() 67389 if r.TryDecodeAsNil() { 67390 if true && x.Eval != nil { 67391 x.Eval = nil 67392 } 67393 } else { 67394 if x.Eval == nil { 67395 x.Eval = new(Evaluation) 67396 } 67397 67398 x.Eval.CodecDecodeSelf(d) 67399 } 67400 yyj9++ 67401 if yyhl9 { 67402 yyb9 = yyj9 > l 67403 } else { 67404 yyb9 = r.CheckBreak() 67405 } 67406 if yyb9 { 67407 r.ReadArrayEnd() 67408 return 67409 } 67410 r.ReadArrayElem() 67411 if r.TryDecodeAsNil() { 67412 x.QueryMeta.Index = 0 67413 } else { 67414 x.Index = (uint64)(r.DecodeUint64()) 67415 } 67416 yyj9++ 67417 if yyhl9 { 67418 yyb9 = yyj9 > l 67419 } else { 67420 yyb9 = r.CheckBreak() 67421 } 67422 if yyb9 { 67423 r.ReadArrayEnd() 67424 return 67425 } 67426 r.ReadArrayElem() 67427 if r.TryDecodeAsNil() { 67428 x.QueryMeta.LastContact = 0 67429 } else { 67430 if false { 67431 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 67432 z.DecExtension(x.LastContact, yyxt13) 67433 } else { 67434 x.LastContact = (time.Duration)(r.DecodeInt64()) 67435 } 67436 } 67437 yyj9++ 67438 if yyhl9 { 67439 yyb9 = yyj9 > l 67440 } else { 67441 yyb9 = r.CheckBreak() 67442 } 67443 if yyb9 { 67444 r.ReadArrayEnd() 67445 return 67446 } 67447 r.ReadArrayElem() 67448 if r.TryDecodeAsNil() { 67449 x.QueryMeta.KnownLeader = false 67450 } else { 67451 x.KnownLeader = (bool)(r.DecodeBool()) 67452 } 67453 for { 67454 yyj9++ 67455 if yyhl9 { 67456 yyb9 = yyj9 > l 67457 } else { 67458 yyb9 = r.CheckBreak() 67459 } 67460 if yyb9 { 67461 break 67462 } 67463 r.ReadArrayElem() 67464 z.DecStructFieldNotFound(yyj9-1, "") 67465 } 67466 r.ReadArrayEnd() 67467 } 67468 67469 func (x *EvalDequeueResponse) CodecEncodeSelf(e *codec1978.Encoder) { 67470 var h codecSelfer100 67471 z, r := codec1978.GenHelperEncoder(e) 67472 _, _, _ = h, z, r 67473 if x == nil { 67474 r.EncodeNil() 67475 } else { 67476 if false { 67477 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 67478 z.EncExtension(x, yyxt1) 67479 } else { 67480 yysep2 := !z.EncBinary() 67481 yy2arr2 := z.EncBasicHandle().StructToArray 67482 _, _ = yysep2, yy2arr2 67483 const yyr2 bool = false // struct tag has 'toArray' 67484 if yyr2 || yy2arr2 { 67485 r.WriteArrayStart(6) 67486 } else { 67487 r.WriteMapStart(6) 67488 } 67489 var yyn3 bool 67490 if x.Eval == nil { 67491 yyn3 = true 67492 goto LABEL3 67493 } 67494 LABEL3: 67495 if yyr2 || yy2arr2 { 67496 if yyn3 { 67497 r.WriteArrayElem() 67498 r.EncodeNil() 67499 } else { 67500 r.WriteArrayElem() 67501 if x.Eval == nil { 67502 r.EncodeNil() 67503 } else { 67504 x.Eval.CodecEncodeSelf(e) 67505 } 67506 } 67507 } else { 67508 r.WriteMapElemKey() 67509 if z.IsJSONHandle() { 67510 z.WriteStr("\"Eval\"") 67511 } else { 67512 r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) 67513 } 67514 r.WriteMapElemValue() 67515 if yyn3 { 67516 r.EncodeNil() 67517 } else { 67518 if x.Eval == nil { 67519 r.EncodeNil() 67520 } else { 67521 x.Eval.CodecEncodeSelf(e) 67522 } 67523 } 67524 } 67525 if yyr2 || yy2arr2 { 67526 r.WriteArrayElem() 67527 if false { 67528 } else { 67529 if z.EncBasicHandle().StringToRaw { 67530 r.EncodeStringBytesRaw(z.BytesView(string(x.Token))) 67531 } else { 67532 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Token)) 67533 } 67534 } 67535 } else { 67536 r.WriteMapElemKey() 67537 if z.IsJSONHandle() { 67538 z.WriteStr("\"Token\"") 67539 } else { 67540 r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) 67541 } 67542 r.WriteMapElemValue() 67543 if false { 67544 } else { 67545 if z.EncBasicHandle().StringToRaw { 67546 r.EncodeStringBytesRaw(z.BytesView(string(x.Token))) 67547 } else { 67548 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Token)) 67549 } 67550 } 67551 } 67552 if yyr2 || yy2arr2 { 67553 r.WriteArrayElem() 67554 if false { 67555 } else { 67556 r.EncodeUint(uint64(x.WaitIndex)) 67557 } 67558 } else { 67559 r.WriteMapElemKey() 67560 if z.IsJSONHandle() { 67561 z.WriteStr("\"WaitIndex\"") 67562 } else { 67563 r.EncodeStringEnc(codecSelferCcUTF8100, `WaitIndex`) 67564 } 67565 r.WriteMapElemValue() 67566 if false { 67567 } else { 67568 r.EncodeUint(uint64(x.WaitIndex)) 67569 } 67570 } 67571 if yyr2 || yy2arr2 { 67572 r.WriteArrayElem() 67573 if false { 67574 } else { 67575 r.EncodeUint(uint64(x.Index)) 67576 } 67577 } else { 67578 r.WriteMapElemKey() 67579 if z.IsJSONHandle() { 67580 z.WriteStr("\"Index\"") 67581 } else { 67582 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 67583 } 67584 r.WriteMapElemValue() 67585 if false { 67586 } else { 67587 r.EncodeUint(uint64(x.Index)) 67588 } 67589 } 67590 if yyr2 || yy2arr2 { 67591 r.WriteArrayElem() 67592 if false { 67593 } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { 67594 z.EncExtension(x.LastContact, yyxt16) 67595 } else { 67596 r.EncodeInt(int64(x.LastContact)) 67597 } 67598 } else { 67599 r.WriteMapElemKey() 67600 if z.IsJSONHandle() { 67601 z.WriteStr("\"LastContact\"") 67602 } else { 67603 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 67604 } 67605 r.WriteMapElemValue() 67606 if false { 67607 } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { 67608 z.EncExtension(x.LastContact, yyxt17) 67609 } else { 67610 r.EncodeInt(int64(x.LastContact)) 67611 } 67612 } 67613 if yyr2 || yy2arr2 { 67614 r.WriteArrayElem() 67615 if false { 67616 } else { 67617 r.EncodeBool(bool(x.KnownLeader)) 67618 } 67619 } else { 67620 r.WriteMapElemKey() 67621 if z.IsJSONHandle() { 67622 z.WriteStr("\"KnownLeader\"") 67623 } else { 67624 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 67625 } 67626 r.WriteMapElemValue() 67627 if false { 67628 } else { 67629 r.EncodeBool(bool(x.KnownLeader)) 67630 } 67631 } 67632 if yyr2 || yy2arr2 { 67633 r.WriteArrayEnd() 67634 } else { 67635 r.WriteMapEnd() 67636 } 67637 } 67638 } 67639 } 67640 67641 func (x *EvalDequeueResponse) CodecDecodeSelf(d *codec1978.Decoder) { 67642 var h codecSelfer100 67643 z, r := codec1978.GenHelperDecoder(d) 67644 _, _, _ = h, z, r 67645 if false { 67646 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 67647 z.DecExtension(x, yyxt1) 67648 } else { 67649 yyct2 := r.ContainerType() 67650 if yyct2 == codecSelferValueTypeMap100 { 67651 yyl2 := r.ReadMapStart() 67652 if yyl2 == 0 { 67653 r.ReadMapEnd() 67654 } else { 67655 x.codecDecodeSelfFromMap(yyl2, d) 67656 } 67657 } else if yyct2 == codecSelferValueTypeArray100 { 67658 yyl2 := r.ReadArrayStart() 67659 if yyl2 == 0 { 67660 r.ReadArrayEnd() 67661 } else { 67662 x.codecDecodeSelfFromArray(yyl2, d) 67663 } 67664 } else { 67665 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 67666 } 67667 } 67668 } 67669 67670 func (x *EvalDequeueResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 67671 var h codecSelfer100 67672 z, r := codec1978.GenHelperDecoder(d) 67673 _, _, _ = h, z, r 67674 var yyhl3 bool = l >= 0 67675 for yyj3 := 0; ; yyj3++ { 67676 if yyhl3 { 67677 if yyj3 >= l { 67678 break 67679 } 67680 } else { 67681 if r.CheckBreak() { 67682 break 67683 } 67684 } 67685 r.ReadMapElemKey() 67686 yys3 := z.StringView(r.DecodeStringAsBytes()) 67687 r.ReadMapElemValue() 67688 switch yys3 { 67689 case "Eval": 67690 if r.TryDecodeAsNil() { 67691 if true && x.Eval != nil { 67692 x.Eval = nil 67693 } 67694 } else { 67695 if x.Eval == nil { 67696 x.Eval = new(Evaluation) 67697 } 67698 67699 x.Eval.CodecDecodeSelf(d) 67700 } 67701 case "Token": 67702 if r.TryDecodeAsNil() { 67703 x.Token = "" 67704 } else { 67705 x.Token = (string)(r.DecodeString()) 67706 } 67707 case "WaitIndex": 67708 if r.TryDecodeAsNil() { 67709 x.WaitIndex = 0 67710 } else { 67711 x.WaitIndex = (uint64)(r.DecodeUint64()) 67712 } 67713 case "Index": 67714 if r.TryDecodeAsNil() { 67715 x.QueryMeta.Index = 0 67716 } else { 67717 x.Index = (uint64)(r.DecodeUint64()) 67718 } 67719 case "LastContact": 67720 if r.TryDecodeAsNil() { 67721 x.QueryMeta.LastContact = 0 67722 } else { 67723 if false { 67724 } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { 67725 z.DecExtension(x.LastContact, yyxt9) 67726 } else { 67727 x.LastContact = (time.Duration)(r.DecodeInt64()) 67728 } 67729 } 67730 case "KnownLeader": 67731 if r.TryDecodeAsNil() { 67732 x.QueryMeta.KnownLeader = false 67733 } else { 67734 x.KnownLeader = (bool)(r.DecodeBool()) 67735 } 67736 default: 67737 z.DecStructFieldNotFound(-1, yys3) 67738 } // end switch yys3 67739 } // end for yyj3 67740 r.ReadMapEnd() 67741 } 67742 67743 func (x *EvalDequeueResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 67744 var h codecSelfer100 67745 z, r := codec1978.GenHelperDecoder(d) 67746 _, _, _ = h, z, r 67747 var yyj11 int 67748 var yyb11 bool 67749 var yyhl11 bool = l >= 0 67750 yyj11++ 67751 if yyhl11 { 67752 yyb11 = yyj11 > l 67753 } else { 67754 yyb11 = r.CheckBreak() 67755 } 67756 if yyb11 { 67757 r.ReadArrayEnd() 67758 return 67759 } 67760 r.ReadArrayElem() 67761 if r.TryDecodeAsNil() { 67762 if true && x.Eval != nil { 67763 x.Eval = nil 67764 } 67765 } else { 67766 if x.Eval == nil { 67767 x.Eval = new(Evaluation) 67768 } 67769 67770 x.Eval.CodecDecodeSelf(d) 67771 } 67772 yyj11++ 67773 if yyhl11 { 67774 yyb11 = yyj11 > l 67775 } else { 67776 yyb11 = r.CheckBreak() 67777 } 67778 if yyb11 { 67779 r.ReadArrayEnd() 67780 return 67781 } 67782 r.ReadArrayElem() 67783 if r.TryDecodeAsNil() { 67784 x.Token = "" 67785 } else { 67786 x.Token = (string)(r.DecodeString()) 67787 } 67788 yyj11++ 67789 if yyhl11 { 67790 yyb11 = yyj11 > l 67791 } else { 67792 yyb11 = r.CheckBreak() 67793 } 67794 if yyb11 { 67795 r.ReadArrayEnd() 67796 return 67797 } 67798 r.ReadArrayElem() 67799 if r.TryDecodeAsNil() { 67800 x.WaitIndex = 0 67801 } else { 67802 x.WaitIndex = (uint64)(r.DecodeUint64()) 67803 } 67804 yyj11++ 67805 if yyhl11 { 67806 yyb11 = yyj11 > l 67807 } else { 67808 yyb11 = r.CheckBreak() 67809 } 67810 if yyb11 { 67811 r.ReadArrayEnd() 67812 return 67813 } 67814 r.ReadArrayElem() 67815 if r.TryDecodeAsNil() { 67816 x.QueryMeta.Index = 0 67817 } else { 67818 x.Index = (uint64)(r.DecodeUint64()) 67819 } 67820 yyj11++ 67821 if yyhl11 { 67822 yyb11 = yyj11 > l 67823 } else { 67824 yyb11 = r.CheckBreak() 67825 } 67826 if yyb11 { 67827 r.ReadArrayEnd() 67828 return 67829 } 67830 r.ReadArrayElem() 67831 if r.TryDecodeAsNil() { 67832 x.QueryMeta.LastContact = 0 67833 } else { 67834 if false { 67835 } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { 67836 z.DecExtension(x.LastContact, yyxt17) 67837 } else { 67838 x.LastContact = (time.Duration)(r.DecodeInt64()) 67839 } 67840 } 67841 yyj11++ 67842 if yyhl11 { 67843 yyb11 = yyj11 > l 67844 } else { 67845 yyb11 = r.CheckBreak() 67846 } 67847 if yyb11 { 67848 r.ReadArrayEnd() 67849 return 67850 } 67851 r.ReadArrayElem() 67852 if r.TryDecodeAsNil() { 67853 x.QueryMeta.KnownLeader = false 67854 } else { 67855 x.KnownLeader = (bool)(r.DecodeBool()) 67856 } 67857 for { 67858 yyj11++ 67859 if yyhl11 { 67860 yyb11 = yyj11 > l 67861 } else { 67862 yyb11 = r.CheckBreak() 67863 } 67864 if yyb11 { 67865 break 67866 } 67867 r.ReadArrayElem() 67868 z.DecStructFieldNotFound(yyj11-1, "") 67869 } 67870 r.ReadArrayEnd() 67871 } 67872 67873 func (x *PlanResponse) CodecEncodeSelf(e *codec1978.Encoder) { 67874 var h codecSelfer100 67875 z, r := codec1978.GenHelperEncoder(e) 67876 _, _, _ = h, z, r 67877 if x == nil { 67878 r.EncodeNil() 67879 } else { 67880 if false { 67881 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 67882 z.EncExtension(x, yyxt1) 67883 } else { 67884 yysep2 := !z.EncBinary() 67885 yy2arr2 := z.EncBasicHandle().StructToArray 67886 _, _ = yysep2, yy2arr2 67887 const yyr2 bool = false // struct tag has 'toArray' 67888 if yyr2 || yy2arr2 { 67889 r.WriteArrayStart(2) 67890 } else { 67891 r.WriteMapStart(2) 67892 } 67893 var yyn3 bool 67894 if x.Result == nil { 67895 yyn3 = true 67896 goto LABEL3 67897 } 67898 LABEL3: 67899 if yyr2 || yy2arr2 { 67900 if yyn3 { 67901 r.WriteArrayElem() 67902 r.EncodeNil() 67903 } else { 67904 r.WriteArrayElem() 67905 if x.Result == nil { 67906 r.EncodeNil() 67907 } else { 67908 x.Result.CodecEncodeSelf(e) 67909 } 67910 } 67911 } else { 67912 r.WriteMapElemKey() 67913 if z.IsJSONHandle() { 67914 z.WriteStr("\"Result\"") 67915 } else { 67916 r.EncodeStringEnc(codecSelferCcUTF8100, `Result`) 67917 } 67918 r.WriteMapElemValue() 67919 if yyn3 { 67920 r.EncodeNil() 67921 } else { 67922 if x.Result == nil { 67923 r.EncodeNil() 67924 } else { 67925 x.Result.CodecEncodeSelf(e) 67926 } 67927 } 67928 } 67929 if yyr2 || yy2arr2 { 67930 r.WriteArrayElem() 67931 if false { 67932 } else { 67933 r.EncodeUint(uint64(x.Index)) 67934 } 67935 } else { 67936 r.WriteMapElemKey() 67937 if z.IsJSONHandle() { 67938 z.WriteStr("\"Index\"") 67939 } else { 67940 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 67941 } 67942 r.WriteMapElemValue() 67943 if false { 67944 } else { 67945 r.EncodeUint(uint64(x.Index)) 67946 } 67947 } 67948 if yyr2 || yy2arr2 { 67949 r.WriteArrayEnd() 67950 } else { 67951 r.WriteMapEnd() 67952 } 67953 } 67954 } 67955 } 67956 67957 func (x *PlanResponse) CodecDecodeSelf(d *codec1978.Decoder) { 67958 var h codecSelfer100 67959 z, r := codec1978.GenHelperDecoder(d) 67960 _, _, _ = h, z, r 67961 if false { 67962 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 67963 z.DecExtension(x, yyxt1) 67964 } else { 67965 yyct2 := r.ContainerType() 67966 if yyct2 == codecSelferValueTypeMap100 { 67967 yyl2 := r.ReadMapStart() 67968 if yyl2 == 0 { 67969 r.ReadMapEnd() 67970 } else { 67971 x.codecDecodeSelfFromMap(yyl2, d) 67972 } 67973 } else if yyct2 == codecSelferValueTypeArray100 { 67974 yyl2 := r.ReadArrayStart() 67975 if yyl2 == 0 { 67976 r.ReadArrayEnd() 67977 } else { 67978 x.codecDecodeSelfFromArray(yyl2, d) 67979 } 67980 } else { 67981 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 67982 } 67983 } 67984 } 67985 67986 func (x *PlanResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 67987 var h codecSelfer100 67988 z, r := codec1978.GenHelperDecoder(d) 67989 _, _, _ = h, z, r 67990 var yyhl3 bool = l >= 0 67991 for yyj3 := 0; ; yyj3++ { 67992 if yyhl3 { 67993 if yyj3 >= l { 67994 break 67995 } 67996 } else { 67997 if r.CheckBreak() { 67998 break 67999 } 68000 } 68001 r.ReadMapElemKey() 68002 yys3 := z.StringView(r.DecodeStringAsBytes()) 68003 r.ReadMapElemValue() 68004 switch yys3 { 68005 case "Result": 68006 if r.TryDecodeAsNil() { 68007 if true && x.Result != nil { 68008 x.Result = nil 68009 } 68010 } else { 68011 if x.Result == nil { 68012 x.Result = new(PlanResult) 68013 } 68014 68015 x.Result.CodecDecodeSelf(d) 68016 } 68017 case "Index": 68018 if r.TryDecodeAsNil() { 68019 x.WriteMeta.Index = 0 68020 } else { 68021 x.Index = (uint64)(r.DecodeUint64()) 68022 } 68023 default: 68024 z.DecStructFieldNotFound(-1, yys3) 68025 } // end switch yys3 68026 } // end for yyj3 68027 r.ReadMapEnd() 68028 } 68029 68030 func (x *PlanResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 68031 var h codecSelfer100 68032 z, r := codec1978.GenHelperDecoder(d) 68033 _, _, _ = h, z, r 68034 var yyj6 int 68035 var yyb6 bool 68036 var yyhl6 bool = l >= 0 68037 yyj6++ 68038 if yyhl6 { 68039 yyb6 = yyj6 > l 68040 } else { 68041 yyb6 = r.CheckBreak() 68042 } 68043 if yyb6 { 68044 r.ReadArrayEnd() 68045 return 68046 } 68047 r.ReadArrayElem() 68048 if r.TryDecodeAsNil() { 68049 if true && x.Result != nil { 68050 x.Result = nil 68051 } 68052 } else { 68053 if x.Result == nil { 68054 x.Result = new(PlanResult) 68055 } 68056 68057 x.Result.CodecDecodeSelf(d) 68058 } 68059 yyj6++ 68060 if yyhl6 { 68061 yyb6 = yyj6 > l 68062 } else { 68063 yyb6 = r.CheckBreak() 68064 } 68065 if yyb6 { 68066 r.ReadArrayEnd() 68067 return 68068 } 68069 r.ReadArrayElem() 68070 if r.TryDecodeAsNil() { 68071 x.WriteMeta.Index = 0 68072 } else { 68073 x.Index = (uint64)(r.DecodeUint64()) 68074 } 68075 for { 68076 yyj6++ 68077 if yyhl6 { 68078 yyb6 = yyj6 > l 68079 } else { 68080 yyb6 = r.CheckBreak() 68081 } 68082 if yyb6 { 68083 break 68084 } 68085 r.ReadArrayElem() 68086 z.DecStructFieldNotFound(yyj6-1, "") 68087 } 68088 r.ReadArrayEnd() 68089 } 68090 68091 func (x *AllocListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 68092 var h codecSelfer100 68093 z, r := codec1978.GenHelperEncoder(e) 68094 _, _, _ = h, z, r 68095 if x == nil { 68096 r.EncodeNil() 68097 } else { 68098 if false { 68099 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 68100 z.EncExtension(x, yyxt1) 68101 } else { 68102 yysep2 := !z.EncBinary() 68103 yy2arr2 := z.EncBasicHandle().StructToArray 68104 _, _ = yysep2, yy2arr2 68105 const yyr2 bool = false // struct tag has 'toArray' 68106 if yyr2 || yy2arr2 { 68107 r.WriteArrayStart(4) 68108 } else { 68109 r.WriteMapStart(4) 68110 } 68111 if yyr2 || yy2arr2 { 68112 r.WriteArrayElem() 68113 if x.Allocations == nil { 68114 r.EncodeNil() 68115 } else { 68116 if false { 68117 } else { 68118 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) 68119 } 68120 } 68121 } else { 68122 r.WriteMapElemKey() 68123 if z.IsJSONHandle() { 68124 z.WriteStr("\"Allocations\"") 68125 } else { 68126 r.EncodeStringEnc(codecSelferCcUTF8100, `Allocations`) 68127 } 68128 r.WriteMapElemValue() 68129 if x.Allocations == nil { 68130 r.EncodeNil() 68131 } else { 68132 if false { 68133 } else { 68134 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) 68135 } 68136 } 68137 } 68138 if yyr2 || yy2arr2 { 68139 r.WriteArrayElem() 68140 if false { 68141 } else { 68142 r.EncodeUint(uint64(x.Index)) 68143 } 68144 } else { 68145 r.WriteMapElemKey() 68146 if z.IsJSONHandle() { 68147 z.WriteStr("\"Index\"") 68148 } else { 68149 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 68150 } 68151 r.WriteMapElemValue() 68152 if false { 68153 } else { 68154 r.EncodeUint(uint64(x.Index)) 68155 } 68156 } 68157 if yyr2 || yy2arr2 { 68158 r.WriteArrayElem() 68159 if false { 68160 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 68161 z.EncExtension(x.LastContact, yyxt10) 68162 } else { 68163 r.EncodeInt(int64(x.LastContact)) 68164 } 68165 } else { 68166 r.WriteMapElemKey() 68167 if z.IsJSONHandle() { 68168 z.WriteStr("\"LastContact\"") 68169 } else { 68170 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 68171 } 68172 r.WriteMapElemValue() 68173 if false { 68174 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 68175 z.EncExtension(x.LastContact, yyxt11) 68176 } else { 68177 r.EncodeInt(int64(x.LastContact)) 68178 } 68179 } 68180 if yyr2 || yy2arr2 { 68181 r.WriteArrayElem() 68182 if false { 68183 } else { 68184 r.EncodeBool(bool(x.KnownLeader)) 68185 } 68186 } else { 68187 r.WriteMapElemKey() 68188 if z.IsJSONHandle() { 68189 z.WriteStr("\"KnownLeader\"") 68190 } else { 68191 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 68192 } 68193 r.WriteMapElemValue() 68194 if false { 68195 } else { 68196 r.EncodeBool(bool(x.KnownLeader)) 68197 } 68198 } 68199 if yyr2 || yy2arr2 { 68200 r.WriteArrayEnd() 68201 } else { 68202 r.WriteMapEnd() 68203 } 68204 } 68205 } 68206 } 68207 68208 func (x *AllocListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 68209 var h codecSelfer100 68210 z, r := codec1978.GenHelperDecoder(d) 68211 _, _, _ = h, z, r 68212 if false { 68213 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 68214 z.DecExtension(x, yyxt1) 68215 } else { 68216 yyct2 := r.ContainerType() 68217 if yyct2 == codecSelferValueTypeMap100 { 68218 yyl2 := r.ReadMapStart() 68219 if yyl2 == 0 { 68220 r.ReadMapEnd() 68221 } else { 68222 x.codecDecodeSelfFromMap(yyl2, d) 68223 } 68224 } else if yyct2 == codecSelferValueTypeArray100 { 68225 yyl2 := r.ReadArrayStart() 68226 if yyl2 == 0 { 68227 r.ReadArrayEnd() 68228 } else { 68229 x.codecDecodeSelfFromArray(yyl2, d) 68230 } 68231 } else { 68232 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 68233 } 68234 } 68235 } 68236 68237 func (x *AllocListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 68238 var h codecSelfer100 68239 z, r := codec1978.GenHelperDecoder(d) 68240 _, _, _ = h, z, r 68241 var yyhl3 bool = l >= 0 68242 for yyj3 := 0; ; yyj3++ { 68243 if yyhl3 { 68244 if yyj3 >= l { 68245 break 68246 } 68247 } else { 68248 if r.CheckBreak() { 68249 break 68250 } 68251 } 68252 r.ReadMapElemKey() 68253 yys3 := z.StringView(r.DecodeStringAsBytes()) 68254 r.ReadMapElemValue() 68255 switch yys3 { 68256 case "Allocations": 68257 if r.TryDecodeAsNil() { 68258 x.Allocations = nil 68259 } else { 68260 if false { 68261 } else { 68262 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) 68263 } 68264 } 68265 case "Index": 68266 if r.TryDecodeAsNil() { 68267 x.QueryMeta.Index = 0 68268 } else { 68269 x.Index = (uint64)(r.DecodeUint64()) 68270 } 68271 case "LastContact": 68272 if r.TryDecodeAsNil() { 68273 x.QueryMeta.LastContact = 0 68274 } else { 68275 if false { 68276 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 68277 z.DecExtension(x.LastContact, yyxt8) 68278 } else { 68279 x.LastContact = (time.Duration)(r.DecodeInt64()) 68280 } 68281 } 68282 case "KnownLeader": 68283 if r.TryDecodeAsNil() { 68284 x.QueryMeta.KnownLeader = false 68285 } else { 68286 x.KnownLeader = (bool)(r.DecodeBool()) 68287 } 68288 default: 68289 z.DecStructFieldNotFound(-1, yys3) 68290 } // end switch yys3 68291 } // end for yyj3 68292 r.ReadMapEnd() 68293 } 68294 68295 func (x *AllocListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 68296 var h codecSelfer100 68297 z, r := codec1978.GenHelperDecoder(d) 68298 _, _, _ = h, z, r 68299 var yyj10 int 68300 var yyb10 bool 68301 var yyhl10 bool = l >= 0 68302 yyj10++ 68303 if yyhl10 { 68304 yyb10 = yyj10 > l 68305 } else { 68306 yyb10 = r.CheckBreak() 68307 } 68308 if yyb10 { 68309 r.ReadArrayEnd() 68310 return 68311 } 68312 r.ReadArrayElem() 68313 if r.TryDecodeAsNil() { 68314 x.Allocations = nil 68315 } else { 68316 if false { 68317 } else { 68318 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) 68319 } 68320 } 68321 yyj10++ 68322 if yyhl10 { 68323 yyb10 = yyj10 > l 68324 } else { 68325 yyb10 = r.CheckBreak() 68326 } 68327 if yyb10 { 68328 r.ReadArrayEnd() 68329 return 68330 } 68331 r.ReadArrayElem() 68332 if r.TryDecodeAsNil() { 68333 x.QueryMeta.Index = 0 68334 } else { 68335 x.Index = (uint64)(r.DecodeUint64()) 68336 } 68337 yyj10++ 68338 if yyhl10 { 68339 yyb10 = yyj10 > l 68340 } else { 68341 yyb10 = r.CheckBreak() 68342 } 68343 if yyb10 { 68344 r.ReadArrayEnd() 68345 return 68346 } 68347 r.ReadArrayElem() 68348 if r.TryDecodeAsNil() { 68349 x.QueryMeta.LastContact = 0 68350 } else { 68351 if false { 68352 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 68353 z.DecExtension(x.LastContact, yyxt15) 68354 } else { 68355 x.LastContact = (time.Duration)(r.DecodeInt64()) 68356 } 68357 } 68358 yyj10++ 68359 if yyhl10 { 68360 yyb10 = yyj10 > l 68361 } else { 68362 yyb10 = r.CheckBreak() 68363 } 68364 if yyb10 { 68365 r.ReadArrayEnd() 68366 return 68367 } 68368 r.ReadArrayElem() 68369 if r.TryDecodeAsNil() { 68370 x.QueryMeta.KnownLeader = false 68371 } else { 68372 x.KnownLeader = (bool)(r.DecodeBool()) 68373 } 68374 for { 68375 yyj10++ 68376 if yyhl10 { 68377 yyb10 = yyj10 > l 68378 } else { 68379 yyb10 = r.CheckBreak() 68380 } 68381 if yyb10 { 68382 break 68383 } 68384 r.ReadArrayElem() 68385 z.DecStructFieldNotFound(yyj10-1, "") 68386 } 68387 r.ReadArrayEnd() 68388 } 68389 68390 func (x *DeploymentListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 68391 var h codecSelfer100 68392 z, r := codec1978.GenHelperEncoder(e) 68393 _, _, _ = h, z, r 68394 if x == nil { 68395 r.EncodeNil() 68396 } else { 68397 if false { 68398 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 68399 z.EncExtension(x, yyxt1) 68400 } else { 68401 yysep2 := !z.EncBinary() 68402 yy2arr2 := z.EncBasicHandle().StructToArray 68403 _, _ = yysep2, yy2arr2 68404 const yyr2 bool = false // struct tag has 'toArray' 68405 if yyr2 || yy2arr2 { 68406 r.WriteArrayStart(4) 68407 } else { 68408 r.WriteMapStart(4) 68409 } 68410 if yyr2 || yy2arr2 { 68411 r.WriteArrayElem() 68412 if x.Deployments == nil { 68413 r.EncodeNil() 68414 } else { 68415 if false { 68416 } else { 68417 h.encSlicePtrtoDeployment(([]*Deployment)(x.Deployments), e) 68418 } 68419 } 68420 } else { 68421 r.WriteMapElemKey() 68422 if z.IsJSONHandle() { 68423 z.WriteStr("\"Deployments\"") 68424 } else { 68425 r.EncodeStringEnc(codecSelferCcUTF8100, `Deployments`) 68426 } 68427 r.WriteMapElemValue() 68428 if x.Deployments == nil { 68429 r.EncodeNil() 68430 } else { 68431 if false { 68432 } else { 68433 h.encSlicePtrtoDeployment(([]*Deployment)(x.Deployments), e) 68434 } 68435 } 68436 } 68437 if yyr2 || yy2arr2 { 68438 r.WriteArrayElem() 68439 if false { 68440 } else { 68441 r.EncodeUint(uint64(x.Index)) 68442 } 68443 } else { 68444 r.WriteMapElemKey() 68445 if z.IsJSONHandle() { 68446 z.WriteStr("\"Index\"") 68447 } else { 68448 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 68449 } 68450 r.WriteMapElemValue() 68451 if false { 68452 } else { 68453 r.EncodeUint(uint64(x.Index)) 68454 } 68455 } 68456 if yyr2 || yy2arr2 { 68457 r.WriteArrayElem() 68458 if false { 68459 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 68460 z.EncExtension(x.LastContact, yyxt10) 68461 } else { 68462 r.EncodeInt(int64(x.LastContact)) 68463 } 68464 } else { 68465 r.WriteMapElemKey() 68466 if z.IsJSONHandle() { 68467 z.WriteStr("\"LastContact\"") 68468 } else { 68469 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 68470 } 68471 r.WriteMapElemValue() 68472 if false { 68473 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 68474 z.EncExtension(x.LastContact, yyxt11) 68475 } else { 68476 r.EncodeInt(int64(x.LastContact)) 68477 } 68478 } 68479 if yyr2 || yy2arr2 { 68480 r.WriteArrayElem() 68481 if false { 68482 } else { 68483 r.EncodeBool(bool(x.KnownLeader)) 68484 } 68485 } else { 68486 r.WriteMapElemKey() 68487 if z.IsJSONHandle() { 68488 z.WriteStr("\"KnownLeader\"") 68489 } else { 68490 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 68491 } 68492 r.WriteMapElemValue() 68493 if false { 68494 } else { 68495 r.EncodeBool(bool(x.KnownLeader)) 68496 } 68497 } 68498 if yyr2 || yy2arr2 { 68499 r.WriteArrayEnd() 68500 } else { 68501 r.WriteMapEnd() 68502 } 68503 } 68504 } 68505 } 68506 68507 func (x *DeploymentListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 68508 var h codecSelfer100 68509 z, r := codec1978.GenHelperDecoder(d) 68510 _, _, _ = h, z, r 68511 if false { 68512 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 68513 z.DecExtension(x, yyxt1) 68514 } else { 68515 yyct2 := r.ContainerType() 68516 if yyct2 == codecSelferValueTypeMap100 { 68517 yyl2 := r.ReadMapStart() 68518 if yyl2 == 0 { 68519 r.ReadMapEnd() 68520 } else { 68521 x.codecDecodeSelfFromMap(yyl2, d) 68522 } 68523 } else if yyct2 == codecSelferValueTypeArray100 { 68524 yyl2 := r.ReadArrayStart() 68525 if yyl2 == 0 { 68526 r.ReadArrayEnd() 68527 } else { 68528 x.codecDecodeSelfFromArray(yyl2, d) 68529 } 68530 } else { 68531 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 68532 } 68533 } 68534 } 68535 68536 func (x *DeploymentListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 68537 var h codecSelfer100 68538 z, r := codec1978.GenHelperDecoder(d) 68539 _, _, _ = h, z, r 68540 var yyhl3 bool = l >= 0 68541 for yyj3 := 0; ; yyj3++ { 68542 if yyhl3 { 68543 if yyj3 >= l { 68544 break 68545 } 68546 } else { 68547 if r.CheckBreak() { 68548 break 68549 } 68550 } 68551 r.ReadMapElemKey() 68552 yys3 := z.StringView(r.DecodeStringAsBytes()) 68553 r.ReadMapElemValue() 68554 switch yys3 { 68555 case "Deployments": 68556 if r.TryDecodeAsNil() { 68557 x.Deployments = nil 68558 } else { 68559 if false { 68560 } else { 68561 h.decSlicePtrtoDeployment((*[]*Deployment)(&x.Deployments), d) 68562 } 68563 } 68564 case "Index": 68565 if r.TryDecodeAsNil() { 68566 x.QueryMeta.Index = 0 68567 } else { 68568 x.Index = (uint64)(r.DecodeUint64()) 68569 } 68570 case "LastContact": 68571 if r.TryDecodeAsNil() { 68572 x.QueryMeta.LastContact = 0 68573 } else { 68574 if false { 68575 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 68576 z.DecExtension(x.LastContact, yyxt8) 68577 } else { 68578 x.LastContact = (time.Duration)(r.DecodeInt64()) 68579 } 68580 } 68581 case "KnownLeader": 68582 if r.TryDecodeAsNil() { 68583 x.QueryMeta.KnownLeader = false 68584 } else { 68585 x.KnownLeader = (bool)(r.DecodeBool()) 68586 } 68587 default: 68588 z.DecStructFieldNotFound(-1, yys3) 68589 } // end switch yys3 68590 } // end for yyj3 68591 r.ReadMapEnd() 68592 } 68593 68594 func (x *DeploymentListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 68595 var h codecSelfer100 68596 z, r := codec1978.GenHelperDecoder(d) 68597 _, _, _ = h, z, r 68598 var yyj10 int 68599 var yyb10 bool 68600 var yyhl10 bool = l >= 0 68601 yyj10++ 68602 if yyhl10 { 68603 yyb10 = yyj10 > l 68604 } else { 68605 yyb10 = r.CheckBreak() 68606 } 68607 if yyb10 { 68608 r.ReadArrayEnd() 68609 return 68610 } 68611 r.ReadArrayElem() 68612 if r.TryDecodeAsNil() { 68613 x.Deployments = nil 68614 } else { 68615 if false { 68616 } else { 68617 h.decSlicePtrtoDeployment((*[]*Deployment)(&x.Deployments), d) 68618 } 68619 } 68620 yyj10++ 68621 if yyhl10 { 68622 yyb10 = yyj10 > l 68623 } else { 68624 yyb10 = r.CheckBreak() 68625 } 68626 if yyb10 { 68627 r.ReadArrayEnd() 68628 return 68629 } 68630 r.ReadArrayElem() 68631 if r.TryDecodeAsNil() { 68632 x.QueryMeta.Index = 0 68633 } else { 68634 x.Index = (uint64)(r.DecodeUint64()) 68635 } 68636 yyj10++ 68637 if yyhl10 { 68638 yyb10 = yyj10 > l 68639 } else { 68640 yyb10 = r.CheckBreak() 68641 } 68642 if yyb10 { 68643 r.ReadArrayEnd() 68644 return 68645 } 68646 r.ReadArrayElem() 68647 if r.TryDecodeAsNil() { 68648 x.QueryMeta.LastContact = 0 68649 } else { 68650 if false { 68651 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 68652 z.DecExtension(x.LastContact, yyxt15) 68653 } else { 68654 x.LastContact = (time.Duration)(r.DecodeInt64()) 68655 } 68656 } 68657 yyj10++ 68658 if yyhl10 { 68659 yyb10 = yyj10 > l 68660 } else { 68661 yyb10 = r.CheckBreak() 68662 } 68663 if yyb10 { 68664 r.ReadArrayEnd() 68665 return 68666 } 68667 r.ReadArrayElem() 68668 if r.TryDecodeAsNil() { 68669 x.QueryMeta.KnownLeader = false 68670 } else { 68671 x.KnownLeader = (bool)(r.DecodeBool()) 68672 } 68673 for { 68674 yyj10++ 68675 if yyhl10 { 68676 yyb10 = yyj10 > l 68677 } else { 68678 yyb10 = r.CheckBreak() 68679 } 68680 if yyb10 { 68681 break 68682 } 68683 r.ReadArrayElem() 68684 z.DecStructFieldNotFound(yyj10-1, "") 68685 } 68686 r.ReadArrayEnd() 68687 } 68688 68689 func (x *EvalListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 68690 var h codecSelfer100 68691 z, r := codec1978.GenHelperEncoder(e) 68692 _, _, _ = h, z, r 68693 if x == nil { 68694 r.EncodeNil() 68695 } else { 68696 if false { 68697 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 68698 z.EncExtension(x, yyxt1) 68699 } else { 68700 yysep2 := !z.EncBinary() 68701 yy2arr2 := z.EncBasicHandle().StructToArray 68702 _, _ = yysep2, yy2arr2 68703 const yyr2 bool = false // struct tag has 'toArray' 68704 if yyr2 || yy2arr2 { 68705 r.WriteArrayStart(4) 68706 } else { 68707 r.WriteMapStart(4) 68708 } 68709 if yyr2 || yy2arr2 { 68710 r.WriteArrayElem() 68711 if x.Evaluations == nil { 68712 r.EncodeNil() 68713 } else { 68714 if false { 68715 } else { 68716 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) 68717 } 68718 } 68719 } else { 68720 r.WriteMapElemKey() 68721 if z.IsJSONHandle() { 68722 z.WriteStr("\"Evaluations\"") 68723 } else { 68724 r.EncodeStringEnc(codecSelferCcUTF8100, `Evaluations`) 68725 } 68726 r.WriteMapElemValue() 68727 if x.Evaluations == nil { 68728 r.EncodeNil() 68729 } else { 68730 if false { 68731 } else { 68732 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) 68733 } 68734 } 68735 } 68736 if yyr2 || yy2arr2 { 68737 r.WriteArrayElem() 68738 if false { 68739 } else { 68740 r.EncodeUint(uint64(x.Index)) 68741 } 68742 } else { 68743 r.WriteMapElemKey() 68744 if z.IsJSONHandle() { 68745 z.WriteStr("\"Index\"") 68746 } else { 68747 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 68748 } 68749 r.WriteMapElemValue() 68750 if false { 68751 } else { 68752 r.EncodeUint(uint64(x.Index)) 68753 } 68754 } 68755 if yyr2 || yy2arr2 { 68756 r.WriteArrayElem() 68757 if false { 68758 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 68759 z.EncExtension(x.LastContact, yyxt10) 68760 } else { 68761 r.EncodeInt(int64(x.LastContact)) 68762 } 68763 } else { 68764 r.WriteMapElemKey() 68765 if z.IsJSONHandle() { 68766 z.WriteStr("\"LastContact\"") 68767 } else { 68768 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 68769 } 68770 r.WriteMapElemValue() 68771 if false { 68772 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 68773 z.EncExtension(x.LastContact, yyxt11) 68774 } else { 68775 r.EncodeInt(int64(x.LastContact)) 68776 } 68777 } 68778 if yyr2 || yy2arr2 { 68779 r.WriteArrayElem() 68780 if false { 68781 } else { 68782 r.EncodeBool(bool(x.KnownLeader)) 68783 } 68784 } else { 68785 r.WriteMapElemKey() 68786 if z.IsJSONHandle() { 68787 z.WriteStr("\"KnownLeader\"") 68788 } else { 68789 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 68790 } 68791 r.WriteMapElemValue() 68792 if false { 68793 } else { 68794 r.EncodeBool(bool(x.KnownLeader)) 68795 } 68796 } 68797 if yyr2 || yy2arr2 { 68798 r.WriteArrayEnd() 68799 } else { 68800 r.WriteMapEnd() 68801 } 68802 } 68803 } 68804 } 68805 68806 func (x *EvalListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 68807 var h codecSelfer100 68808 z, r := codec1978.GenHelperDecoder(d) 68809 _, _, _ = h, z, r 68810 if false { 68811 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 68812 z.DecExtension(x, yyxt1) 68813 } else { 68814 yyct2 := r.ContainerType() 68815 if yyct2 == codecSelferValueTypeMap100 { 68816 yyl2 := r.ReadMapStart() 68817 if yyl2 == 0 { 68818 r.ReadMapEnd() 68819 } else { 68820 x.codecDecodeSelfFromMap(yyl2, d) 68821 } 68822 } else if yyct2 == codecSelferValueTypeArray100 { 68823 yyl2 := r.ReadArrayStart() 68824 if yyl2 == 0 { 68825 r.ReadArrayEnd() 68826 } else { 68827 x.codecDecodeSelfFromArray(yyl2, d) 68828 } 68829 } else { 68830 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 68831 } 68832 } 68833 } 68834 68835 func (x *EvalListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 68836 var h codecSelfer100 68837 z, r := codec1978.GenHelperDecoder(d) 68838 _, _, _ = h, z, r 68839 var yyhl3 bool = l >= 0 68840 for yyj3 := 0; ; yyj3++ { 68841 if yyhl3 { 68842 if yyj3 >= l { 68843 break 68844 } 68845 } else { 68846 if r.CheckBreak() { 68847 break 68848 } 68849 } 68850 r.ReadMapElemKey() 68851 yys3 := z.StringView(r.DecodeStringAsBytes()) 68852 r.ReadMapElemValue() 68853 switch yys3 { 68854 case "Evaluations": 68855 if r.TryDecodeAsNil() { 68856 x.Evaluations = nil 68857 } else { 68858 if false { 68859 } else { 68860 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evaluations), d) 68861 } 68862 } 68863 case "Index": 68864 if r.TryDecodeAsNil() { 68865 x.QueryMeta.Index = 0 68866 } else { 68867 x.Index = (uint64)(r.DecodeUint64()) 68868 } 68869 case "LastContact": 68870 if r.TryDecodeAsNil() { 68871 x.QueryMeta.LastContact = 0 68872 } else { 68873 if false { 68874 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 68875 z.DecExtension(x.LastContact, yyxt8) 68876 } else { 68877 x.LastContact = (time.Duration)(r.DecodeInt64()) 68878 } 68879 } 68880 case "KnownLeader": 68881 if r.TryDecodeAsNil() { 68882 x.QueryMeta.KnownLeader = false 68883 } else { 68884 x.KnownLeader = (bool)(r.DecodeBool()) 68885 } 68886 default: 68887 z.DecStructFieldNotFound(-1, yys3) 68888 } // end switch yys3 68889 } // end for yyj3 68890 r.ReadMapEnd() 68891 } 68892 68893 func (x *EvalListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 68894 var h codecSelfer100 68895 z, r := codec1978.GenHelperDecoder(d) 68896 _, _, _ = h, z, r 68897 var yyj10 int 68898 var yyb10 bool 68899 var yyhl10 bool = l >= 0 68900 yyj10++ 68901 if yyhl10 { 68902 yyb10 = yyj10 > l 68903 } else { 68904 yyb10 = r.CheckBreak() 68905 } 68906 if yyb10 { 68907 r.ReadArrayEnd() 68908 return 68909 } 68910 r.ReadArrayElem() 68911 if r.TryDecodeAsNil() { 68912 x.Evaluations = nil 68913 } else { 68914 if false { 68915 } else { 68916 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evaluations), d) 68917 } 68918 } 68919 yyj10++ 68920 if yyhl10 { 68921 yyb10 = yyj10 > l 68922 } else { 68923 yyb10 = r.CheckBreak() 68924 } 68925 if yyb10 { 68926 r.ReadArrayEnd() 68927 return 68928 } 68929 r.ReadArrayElem() 68930 if r.TryDecodeAsNil() { 68931 x.QueryMeta.Index = 0 68932 } else { 68933 x.Index = (uint64)(r.DecodeUint64()) 68934 } 68935 yyj10++ 68936 if yyhl10 { 68937 yyb10 = yyj10 > l 68938 } else { 68939 yyb10 = r.CheckBreak() 68940 } 68941 if yyb10 { 68942 r.ReadArrayEnd() 68943 return 68944 } 68945 r.ReadArrayElem() 68946 if r.TryDecodeAsNil() { 68947 x.QueryMeta.LastContact = 0 68948 } else { 68949 if false { 68950 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 68951 z.DecExtension(x.LastContact, yyxt15) 68952 } else { 68953 x.LastContact = (time.Duration)(r.DecodeInt64()) 68954 } 68955 } 68956 yyj10++ 68957 if yyhl10 { 68958 yyb10 = yyj10 > l 68959 } else { 68960 yyb10 = r.CheckBreak() 68961 } 68962 if yyb10 { 68963 r.ReadArrayEnd() 68964 return 68965 } 68966 r.ReadArrayElem() 68967 if r.TryDecodeAsNil() { 68968 x.QueryMeta.KnownLeader = false 68969 } else { 68970 x.KnownLeader = (bool)(r.DecodeBool()) 68971 } 68972 for { 68973 yyj10++ 68974 if yyhl10 { 68975 yyb10 = yyj10 > l 68976 } else { 68977 yyb10 = r.CheckBreak() 68978 } 68979 if yyb10 { 68980 break 68981 } 68982 r.ReadArrayElem() 68983 z.DecStructFieldNotFound(yyj10-1, "") 68984 } 68985 r.ReadArrayEnd() 68986 } 68987 68988 func (x *EvalAllocationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { 68989 var h codecSelfer100 68990 z, r := codec1978.GenHelperEncoder(e) 68991 _, _, _ = h, z, r 68992 if x == nil { 68993 r.EncodeNil() 68994 } else { 68995 if false { 68996 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 68997 z.EncExtension(x, yyxt1) 68998 } else { 68999 yysep2 := !z.EncBinary() 69000 yy2arr2 := z.EncBasicHandle().StructToArray 69001 _, _ = yysep2, yy2arr2 69002 const yyr2 bool = false // struct tag has 'toArray' 69003 if yyr2 || yy2arr2 { 69004 r.WriteArrayStart(4) 69005 } else { 69006 r.WriteMapStart(4) 69007 } 69008 if yyr2 || yy2arr2 { 69009 r.WriteArrayElem() 69010 if x.Allocations == nil { 69011 r.EncodeNil() 69012 } else { 69013 if false { 69014 } else { 69015 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) 69016 } 69017 } 69018 } else { 69019 r.WriteMapElemKey() 69020 if z.IsJSONHandle() { 69021 z.WriteStr("\"Allocations\"") 69022 } else { 69023 r.EncodeStringEnc(codecSelferCcUTF8100, `Allocations`) 69024 } 69025 r.WriteMapElemValue() 69026 if x.Allocations == nil { 69027 r.EncodeNil() 69028 } else { 69029 if false { 69030 } else { 69031 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) 69032 } 69033 } 69034 } 69035 if yyr2 || yy2arr2 { 69036 r.WriteArrayElem() 69037 if false { 69038 } else { 69039 r.EncodeUint(uint64(x.Index)) 69040 } 69041 } else { 69042 r.WriteMapElemKey() 69043 if z.IsJSONHandle() { 69044 z.WriteStr("\"Index\"") 69045 } else { 69046 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 69047 } 69048 r.WriteMapElemValue() 69049 if false { 69050 } else { 69051 r.EncodeUint(uint64(x.Index)) 69052 } 69053 } 69054 if yyr2 || yy2arr2 { 69055 r.WriteArrayElem() 69056 if false { 69057 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 69058 z.EncExtension(x.LastContact, yyxt10) 69059 } else { 69060 r.EncodeInt(int64(x.LastContact)) 69061 } 69062 } else { 69063 r.WriteMapElemKey() 69064 if z.IsJSONHandle() { 69065 z.WriteStr("\"LastContact\"") 69066 } else { 69067 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 69068 } 69069 r.WriteMapElemValue() 69070 if false { 69071 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 69072 z.EncExtension(x.LastContact, yyxt11) 69073 } else { 69074 r.EncodeInt(int64(x.LastContact)) 69075 } 69076 } 69077 if yyr2 || yy2arr2 { 69078 r.WriteArrayElem() 69079 if false { 69080 } else { 69081 r.EncodeBool(bool(x.KnownLeader)) 69082 } 69083 } else { 69084 r.WriteMapElemKey() 69085 if z.IsJSONHandle() { 69086 z.WriteStr("\"KnownLeader\"") 69087 } else { 69088 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 69089 } 69090 r.WriteMapElemValue() 69091 if false { 69092 } else { 69093 r.EncodeBool(bool(x.KnownLeader)) 69094 } 69095 } 69096 if yyr2 || yy2arr2 { 69097 r.WriteArrayEnd() 69098 } else { 69099 r.WriteMapEnd() 69100 } 69101 } 69102 } 69103 } 69104 69105 func (x *EvalAllocationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { 69106 var h codecSelfer100 69107 z, r := codec1978.GenHelperDecoder(d) 69108 _, _, _ = h, z, r 69109 if false { 69110 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 69111 z.DecExtension(x, yyxt1) 69112 } else { 69113 yyct2 := r.ContainerType() 69114 if yyct2 == codecSelferValueTypeMap100 { 69115 yyl2 := r.ReadMapStart() 69116 if yyl2 == 0 { 69117 r.ReadMapEnd() 69118 } else { 69119 x.codecDecodeSelfFromMap(yyl2, d) 69120 } 69121 } else if yyct2 == codecSelferValueTypeArray100 { 69122 yyl2 := r.ReadArrayStart() 69123 if yyl2 == 0 { 69124 r.ReadArrayEnd() 69125 } else { 69126 x.codecDecodeSelfFromArray(yyl2, d) 69127 } 69128 } else { 69129 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 69130 } 69131 } 69132 } 69133 69134 func (x *EvalAllocationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 69135 var h codecSelfer100 69136 z, r := codec1978.GenHelperDecoder(d) 69137 _, _, _ = h, z, r 69138 var yyhl3 bool = l >= 0 69139 for yyj3 := 0; ; yyj3++ { 69140 if yyhl3 { 69141 if yyj3 >= l { 69142 break 69143 } 69144 } else { 69145 if r.CheckBreak() { 69146 break 69147 } 69148 } 69149 r.ReadMapElemKey() 69150 yys3 := z.StringView(r.DecodeStringAsBytes()) 69151 r.ReadMapElemValue() 69152 switch yys3 { 69153 case "Allocations": 69154 if r.TryDecodeAsNil() { 69155 x.Allocations = nil 69156 } else { 69157 if false { 69158 } else { 69159 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) 69160 } 69161 } 69162 case "Index": 69163 if r.TryDecodeAsNil() { 69164 x.QueryMeta.Index = 0 69165 } else { 69166 x.Index = (uint64)(r.DecodeUint64()) 69167 } 69168 case "LastContact": 69169 if r.TryDecodeAsNil() { 69170 x.QueryMeta.LastContact = 0 69171 } else { 69172 if false { 69173 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 69174 z.DecExtension(x.LastContact, yyxt8) 69175 } else { 69176 x.LastContact = (time.Duration)(r.DecodeInt64()) 69177 } 69178 } 69179 case "KnownLeader": 69180 if r.TryDecodeAsNil() { 69181 x.QueryMeta.KnownLeader = false 69182 } else { 69183 x.KnownLeader = (bool)(r.DecodeBool()) 69184 } 69185 default: 69186 z.DecStructFieldNotFound(-1, yys3) 69187 } // end switch yys3 69188 } // end for yyj3 69189 r.ReadMapEnd() 69190 } 69191 69192 func (x *EvalAllocationsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 69193 var h codecSelfer100 69194 z, r := codec1978.GenHelperDecoder(d) 69195 _, _, _ = h, z, r 69196 var yyj10 int 69197 var yyb10 bool 69198 var yyhl10 bool = l >= 0 69199 yyj10++ 69200 if yyhl10 { 69201 yyb10 = yyj10 > l 69202 } else { 69203 yyb10 = r.CheckBreak() 69204 } 69205 if yyb10 { 69206 r.ReadArrayEnd() 69207 return 69208 } 69209 r.ReadArrayElem() 69210 if r.TryDecodeAsNil() { 69211 x.Allocations = nil 69212 } else { 69213 if false { 69214 } else { 69215 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) 69216 } 69217 } 69218 yyj10++ 69219 if yyhl10 { 69220 yyb10 = yyj10 > l 69221 } else { 69222 yyb10 = r.CheckBreak() 69223 } 69224 if yyb10 { 69225 r.ReadArrayEnd() 69226 return 69227 } 69228 r.ReadArrayElem() 69229 if r.TryDecodeAsNil() { 69230 x.QueryMeta.Index = 0 69231 } else { 69232 x.Index = (uint64)(r.DecodeUint64()) 69233 } 69234 yyj10++ 69235 if yyhl10 { 69236 yyb10 = yyj10 > l 69237 } else { 69238 yyb10 = r.CheckBreak() 69239 } 69240 if yyb10 { 69241 r.ReadArrayEnd() 69242 return 69243 } 69244 r.ReadArrayElem() 69245 if r.TryDecodeAsNil() { 69246 x.QueryMeta.LastContact = 0 69247 } else { 69248 if false { 69249 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 69250 z.DecExtension(x.LastContact, yyxt15) 69251 } else { 69252 x.LastContact = (time.Duration)(r.DecodeInt64()) 69253 } 69254 } 69255 yyj10++ 69256 if yyhl10 { 69257 yyb10 = yyj10 > l 69258 } else { 69259 yyb10 = r.CheckBreak() 69260 } 69261 if yyb10 { 69262 r.ReadArrayEnd() 69263 return 69264 } 69265 r.ReadArrayElem() 69266 if r.TryDecodeAsNil() { 69267 x.QueryMeta.KnownLeader = false 69268 } else { 69269 x.KnownLeader = (bool)(r.DecodeBool()) 69270 } 69271 for { 69272 yyj10++ 69273 if yyhl10 { 69274 yyb10 = yyj10 > l 69275 } else { 69276 yyb10 = r.CheckBreak() 69277 } 69278 if yyb10 { 69279 break 69280 } 69281 r.ReadArrayElem() 69282 z.DecStructFieldNotFound(yyj10-1, "") 69283 } 69284 r.ReadArrayEnd() 69285 } 69286 69287 func (x *PeriodicForceResponse) CodecEncodeSelf(e *codec1978.Encoder) { 69288 var h codecSelfer100 69289 z, r := codec1978.GenHelperEncoder(e) 69290 _, _, _ = h, z, r 69291 if x == nil { 69292 r.EncodeNil() 69293 } else { 69294 if false { 69295 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 69296 z.EncExtension(x, yyxt1) 69297 } else { 69298 yysep2 := !z.EncBinary() 69299 yy2arr2 := z.EncBasicHandle().StructToArray 69300 _, _ = yysep2, yy2arr2 69301 const yyr2 bool = false // struct tag has 'toArray' 69302 if yyr2 || yy2arr2 { 69303 r.WriteArrayStart(3) 69304 } else { 69305 r.WriteMapStart(3) 69306 } 69307 if yyr2 || yy2arr2 { 69308 r.WriteArrayElem() 69309 if false { 69310 } else { 69311 if z.EncBasicHandle().StringToRaw { 69312 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 69313 } else { 69314 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 69315 } 69316 } 69317 } else { 69318 r.WriteMapElemKey() 69319 if z.IsJSONHandle() { 69320 z.WriteStr("\"EvalID\"") 69321 } else { 69322 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 69323 } 69324 r.WriteMapElemValue() 69325 if false { 69326 } else { 69327 if z.EncBasicHandle().StringToRaw { 69328 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 69329 } else { 69330 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 69331 } 69332 } 69333 } 69334 if yyr2 || yy2arr2 { 69335 r.WriteArrayElem() 69336 if false { 69337 } else { 69338 r.EncodeUint(uint64(x.EvalCreateIndex)) 69339 } 69340 } else { 69341 r.WriteMapElemKey() 69342 if z.IsJSONHandle() { 69343 z.WriteStr("\"EvalCreateIndex\"") 69344 } else { 69345 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) 69346 } 69347 r.WriteMapElemValue() 69348 if false { 69349 } else { 69350 r.EncodeUint(uint64(x.EvalCreateIndex)) 69351 } 69352 } 69353 if yyr2 || yy2arr2 { 69354 r.WriteArrayElem() 69355 if false { 69356 } else { 69357 r.EncodeUint(uint64(x.Index)) 69358 } 69359 } else { 69360 r.WriteMapElemKey() 69361 if z.IsJSONHandle() { 69362 z.WriteStr("\"Index\"") 69363 } else { 69364 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 69365 } 69366 r.WriteMapElemValue() 69367 if false { 69368 } else { 69369 r.EncodeUint(uint64(x.Index)) 69370 } 69371 } 69372 if yyr2 || yy2arr2 { 69373 r.WriteArrayEnd() 69374 } else { 69375 r.WriteMapEnd() 69376 } 69377 } 69378 } 69379 } 69380 69381 func (x *PeriodicForceResponse) CodecDecodeSelf(d *codec1978.Decoder) { 69382 var h codecSelfer100 69383 z, r := codec1978.GenHelperDecoder(d) 69384 _, _, _ = h, z, r 69385 if false { 69386 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 69387 z.DecExtension(x, yyxt1) 69388 } else { 69389 yyct2 := r.ContainerType() 69390 if yyct2 == codecSelferValueTypeMap100 { 69391 yyl2 := r.ReadMapStart() 69392 if yyl2 == 0 { 69393 r.ReadMapEnd() 69394 } else { 69395 x.codecDecodeSelfFromMap(yyl2, d) 69396 } 69397 } else if yyct2 == codecSelferValueTypeArray100 { 69398 yyl2 := r.ReadArrayStart() 69399 if yyl2 == 0 { 69400 r.ReadArrayEnd() 69401 } else { 69402 x.codecDecodeSelfFromArray(yyl2, d) 69403 } 69404 } else { 69405 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 69406 } 69407 } 69408 } 69409 69410 func (x *PeriodicForceResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 69411 var h codecSelfer100 69412 z, r := codec1978.GenHelperDecoder(d) 69413 _, _, _ = h, z, r 69414 var yyhl3 bool = l >= 0 69415 for yyj3 := 0; ; yyj3++ { 69416 if yyhl3 { 69417 if yyj3 >= l { 69418 break 69419 } 69420 } else { 69421 if r.CheckBreak() { 69422 break 69423 } 69424 } 69425 r.ReadMapElemKey() 69426 yys3 := z.StringView(r.DecodeStringAsBytes()) 69427 r.ReadMapElemValue() 69428 switch yys3 { 69429 case "EvalID": 69430 if r.TryDecodeAsNil() { 69431 x.EvalID = "" 69432 } else { 69433 x.EvalID = (string)(r.DecodeString()) 69434 } 69435 case "EvalCreateIndex": 69436 if r.TryDecodeAsNil() { 69437 x.EvalCreateIndex = 0 69438 } else { 69439 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 69440 } 69441 case "Index": 69442 if r.TryDecodeAsNil() { 69443 x.WriteMeta.Index = 0 69444 } else { 69445 x.Index = (uint64)(r.DecodeUint64()) 69446 } 69447 default: 69448 z.DecStructFieldNotFound(-1, yys3) 69449 } // end switch yys3 69450 } // end for yyj3 69451 r.ReadMapEnd() 69452 } 69453 69454 func (x *PeriodicForceResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 69455 var h codecSelfer100 69456 z, r := codec1978.GenHelperDecoder(d) 69457 _, _, _ = h, z, r 69458 var yyj7 int 69459 var yyb7 bool 69460 var yyhl7 bool = l >= 0 69461 yyj7++ 69462 if yyhl7 { 69463 yyb7 = yyj7 > l 69464 } else { 69465 yyb7 = r.CheckBreak() 69466 } 69467 if yyb7 { 69468 r.ReadArrayEnd() 69469 return 69470 } 69471 r.ReadArrayElem() 69472 if r.TryDecodeAsNil() { 69473 x.EvalID = "" 69474 } else { 69475 x.EvalID = (string)(r.DecodeString()) 69476 } 69477 yyj7++ 69478 if yyhl7 { 69479 yyb7 = yyj7 > l 69480 } else { 69481 yyb7 = r.CheckBreak() 69482 } 69483 if yyb7 { 69484 r.ReadArrayEnd() 69485 return 69486 } 69487 r.ReadArrayElem() 69488 if r.TryDecodeAsNil() { 69489 x.EvalCreateIndex = 0 69490 } else { 69491 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 69492 } 69493 yyj7++ 69494 if yyhl7 { 69495 yyb7 = yyj7 > l 69496 } else { 69497 yyb7 = r.CheckBreak() 69498 } 69499 if yyb7 { 69500 r.ReadArrayEnd() 69501 return 69502 } 69503 r.ReadArrayElem() 69504 if r.TryDecodeAsNil() { 69505 x.WriteMeta.Index = 0 69506 } else { 69507 x.Index = (uint64)(r.DecodeUint64()) 69508 } 69509 for { 69510 yyj7++ 69511 if yyhl7 { 69512 yyb7 = yyj7 > l 69513 } else { 69514 yyb7 = r.CheckBreak() 69515 } 69516 if yyb7 { 69517 break 69518 } 69519 r.ReadArrayElem() 69520 z.DecStructFieldNotFound(yyj7-1, "") 69521 } 69522 r.ReadArrayEnd() 69523 } 69524 69525 func (x *DeploymentUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { 69526 var h codecSelfer100 69527 z, r := codec1978.GenHelperEncoder(e) 69528 _, _, _ = h, z, r 69529 if x == nil { 69530 r.EncodeNil() 69531 } else { 69532 if false { 69533 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 69534 z.EncExtension(x, yyxt1) 69535 } else { 69536 yysep2 := !z.EncBinary() 69537 yy2arr2 := z.EncBasicHandle().StructToArray 69538 _, _ = yysep2, yy2arr2 69539 const yyr2 bool = false // struct tag has 'toArray' 69540 if yyr2 || yy2arr2 { 69541 r.WriteArrayStart(5) 69542 } else { 69543 r.WriteMapStart(5) 69544 } 69545 if yyr2 || yy2arr2 { 69546 r.WriteArrayElem() 69547 if false { 69548 } else { 69549 if z.EncBasicHandle().StringToRaw { 69550 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 69551 } else { 69552 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 69553 } 69554 } 69555 } else { 69556 r.WriteMapElemKey() 69557 if z.IsJSONHandle() { 69558 z.WriteStr("\"EvalID\"") 69559 } else { 69560 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 69561 } 69562 r.WriteMapElemValue() 69563 if false { 69564 } else { 69565 if z.EncBasicHandle().StringToRaw { 69566 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 69567 } else { 69568 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 69569 } 69570 } 69571 } 69572 if yyr2 || yy2arr2 { 69573 r.WriteArrayElem() 69574 if false { 69575 } else { 69576 r.EncodeUint(uint64(x.EvalCreateIndex)) 69577 } 69578 } else { 69579 r.WriteMapElemKey() 69580 if z.IsJSONHandle() { 69581 z.WriteStr("\"EvalCreateIndex\"") 69582 } else { 69583 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) 69584 } 69585 r.WriteMapElemValue() 69586 if false { 69587 } else { 69588 r.EncodeUint(uint64(x.EvalCreateIndex)) 69589 } 69590 } 69591 if yyr2 || yy2arr2 { 69592 r.WriteArrayElem() 69593 if false { 69594 } else { 69595 r.EncodeUint(uint64(x.DeploymentModifyIndex)) 69596 } 69597 } else { 69598 r.WriteMapElemKey() 69599 if z.IsJSONHandle() { 69600 z.WriteStr("\"DeploymentModifyIndex\"") 69601 } else { 69602 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentModifyIndex`) 69603 } 69604 r.WriteMapElemValue() 69605 if false { 69606 } else { 69607 r.EncodeUint(uint64(x.DeploymentModifyIndex)) 69608 } 69609 } 69610 var yyn12 bool 69611 if x.RevertedJobVersion == nil { 69612 yyn12 = true 69613 goto LABEL12 69614 } 69615 LABEL12: 69616 if yyr2 || yy2arr2 { 69617 if yyn12 { 69618 r.WriteArrayElem() 69619 r.EncodeNil() 69620 } else { 69621 r.WriteArrayElem() 69622 if x.RevertedJobVersion == nil { 69623 r.EncodeNil() 69624 } else { 69625 yy13 := *x.RevertedJobVersion 69626 if false { 69627 } else { 69628 r.EncodeUint(uint64(yy13)) 69629 } 69630 } 69631 } 69632 } else { 69633 r.WriteMapElemKey() 69634 if z.IsJSONHandle() { 69635 z.WriteStr("\"RevertedJobVersion\"") 69636 } else { 69637 r.EncodeStringEnc(codecSelferCcUTF8100, `RevertedJobVersion`) 69638 } 69639 r.WriteMapElemValue() 69640 if yyn12 { 69641 r.EncodeNil() 69642 } else { 69643 if x.RevertedJobVersion == nil { 69644 r.EncodeNil() 69645 } else { 69646 yy15 := *x.RevertedJobVersion 69647 if false { 69648 } else { 69649 r.EncodeUint(uint64(yy15)) 69650 } 69651 } 69652 } 69653 } 69654 if yyr2 || yy2arr2 { 69655 r.WriteArrayElem() 69656 if false { 69657 } else { 69658 r.EncodeUint(uint64(x.Index)) 69659 } 69660 } else { 69661 r.WriteMapElemKey() 69662 if z.IsJSONHandle() { 69663 z.WriteStr("\"Index\"") 69664 } else { 69665 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 69666 } 69667 r.WriteMapElemValue() 69668 if false { 69669 } else { 69670 r.EncodeUint(uint64(x.Index)) 69671 } 69672 } 69673 if yyr2 || yy2arr2 { 69674 r.WriteArrayEnd() 69675 } else { 69676 r.WriteMapEnd() 69677 } 69678 } 69679 } 69680 } 69681 69682 func (x *DeploymentUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { 69683 var h codecSelfer100 69684 z, r := codec1978.GenHelperDecoder(d) 69685 _, _, _ = h, z, r 69686 if false { 69687 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 69688 z.DecExtension(x, yyxt1) 69689 } else { 69690 yyct2 := r.ContainerType() 69691 if yyct2 == codecSelferValueTypeMap100 { 69692 yyl2 := r.ReadMapStart() 69693 if yyl2 == 0 { 69694 r.ReadMapEnd() 69695 } else { 69696 x.codecDecodeSelfFromMap(yyl2, d) 69697 } 69698 } else if yyct2 == codecSelferValueTypeArray100 { 69699 yyl2 := r.ReadArrayStart() 69700 if yyl2 == 0 { 69701 r.ReadArrayEnd() 69702 } else { 69703 x.codecDecodeSelfFromArray(yyl2, d) 69704 } 69705 } else { 69706 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 69707 } 69708 } 69709 } 69710 69711 func (x *DeploymentUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 69712 var h codecSelfer100 69713 z, r := codec1978.GenHelperDecoder(d) 69714 _, _, _ = h, z, r 69715 var yyhl3 bool = l >= 0 69716 for yyj3 := 0; ; yyj3++ { 69717 if yyhl3 { 69718 if yyj3 >= l { 69719 break 69720 } 69721 } else { 69722 if r.CheckBreak() { 69723 break 69724 } 69725 } 69726 r.ReadMapElemKey() 69727 yys3 := z.StringView(r.DecodeStringAsBytes()) 69728 r.ReadMapElemValue() 69729 switch yys3 { 69730 case "EvalID": 69731 if r.TryDecodeAsNil() { 69732 x.EvalID = "" 69733 } else { 69734 x.EvalID = (string)(r.DecodeString()) 69735 } 69736 case "EvalCreateIndex": 69737 if r.TryDecodeAsNil() { 69738 x.EvalCreateIndex = 0 69739 } else { 69740 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 69741 } 69742 case "DeploymentModifyIndex": 69743 if r.TryDecodeAsNil() { 69744 x.DeploymentModifyIndex = 0 69745 } else { 69746 x.DeploymentModifyIndex = (uint64)(r.DecodeUint64()) 69747 } 69748 case "RevertedJobVersion": 69749 if r.TryDecodeAsNil() { 69750 if true && x.RevertedJobVersion != nil { 69751 x.RevertedJobVersion = nil 69752 } 69753 } else { 69754 if x.RevertedJobVersion == nil { 69755 x.RevertedJobVersion = new(uint64) 69756 } 69757 69758 if false { 69759 } else { 69760 *x.RevertedJobVersion = (uint64)(r.DecodeUint64()) 69761 } 69762 } 69763 case "Index": 69764 if r.TryDecodeAsNil() { 69765 x.WriteMeta.Index = 0 69766 } else { 69767 x.Index = (uint64)(r.DecodeUint64()) 69768 } 69769 default: 69770 z.DecStructFieldNotFound(-1, yys3) 69771 } // end switch yys3 69772 } // end for yyj3 69773 r.ReadMapEnd() 69774 } 69775 69776 func (x *DeploymentUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 69777 var h codecSelfer100 69778 z, r := codec1978.GenHelperDecoder(d) 69779 _, _, _ = h, z, r 69780 var yyj10 int 69781 var yyb10 bool 69782 var yyhl10 bool = l >= 0 69783 yyj10++ 69784 if yyhl10 { 69785 yyb10 = yyj10 > l 69786 } else { 69787 yyb10 = r.CheckBreak() 69788 } 69789 if yyb10 { 69790 r.ReadArrayEnd() 69791 return 69792 } 69793 r.ReadArrayElem() 69794 if r.TryDecodeAsNil() { 69795 x.EvalID = "" 69796 } else { 69797 x.EvalID = (string)(r.DecodeString()) 69798 } 69799 yyj10++ 69800 if yyhl10 { 69801 yyb10 = yyj10 > l 69802 } else { 69803 yyb10 = r.CheckBreak() 69804 } 69805 if yyb10 { 69806 r.ReadArrayEnd() 69807 return 69808 } 69809 r.ReadArrayElem() 69810 if r.TryDecodeAsNil() { 69811 x.EvalCreateIndex = 0 69812 } else { 69813 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 69814 } 69815 yyj10++ 69816 if yyhl10 { 69817 yyb10 = yyj10 > l 69818 } else { 69819 yyb10 = r.CheckBreak() 69820 } 69821 if yyb10 { 69822 r.ReadArrayEnd() 69823 return 69824 } 69825 r.ReadArrayElem() 69826 if r.TryDecodeAsNil() { 69827 x.DeploymentModifyIndex = 0 69828 } else { 69829 x.DeploymentModifyIndex = (uint64)(r.DecodeUint64()) 69830 } 69831 yyj10++ 69832 if yyhl10 { 69833 yyb10 = yyj10 > l 69834 } else { 69835 yyb10 = r.CheckBreak() 69836 } 69837 if yyb10 { 69838 r.ReadArrayEnd() 69839 return 69840 } 69841 r.ReadArrayElem() 69842 if r.TryDecodeAsNil() { 69843 if true && x.RevertedJobVersion != nil { 69844 x.RevertedJobVersion = nil 69845 } 69846 } else { 69847 if x.RevertedJobVersion == nil { 69848 x.RevertedJobVersion = new(uint64) 69849 } 69850 69851 if false { 69852 } else { 69853 *x.RevertedJobVersion = (uint64)(r.DecodeUint64()) 69854 } 69855 } 69856 yyj10++ 69857 if yyhl10 { 69858 yyb10 = yyj10 > l 69859 } else { 69860 yyb10 = r.CheckBreak() 69861 } 69862 if yyb10 { 69863 r.ReadArrayEnd() 69864 return 69865 } 69866 r.ReadArrayElem() 69867 if r.TryDecodeAsNil() { 69868 x.WriteMeta.Index = 0 69869 } else { 69870 x.Index = (uint64)(r.DecodeUint64()) 69871 } 69872 for { 69873 yyj10++ 69874 if yyhl10 { 69875 yyb10 = yyj10 > l 69876 } else { 69877 yyb10 = r.CheckBreak() 69878 } 69879 if yyb10 { 69880 break 69881 } 69882 r.ReadArrayElem() 69883 z.DecStructFieldNotFound(yyj10-1, "") 69884 } 69885 r.ReadArrayEnd() 69886 } 69887 69888 func (x *NodeConnQueryResponse) CodecEncodeSelf(e *codec1978.Encoder) { 69889 var h codecSelfer100 69890 z, r := codec1978.GenHelperEncoder(e) 69891 _, _, _ = h, z, r 69892 if x == nil { 69893 r.EncodeNil() 69894 } else { 69895 if false { 69896 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 69897 z.EncExtension(x, yyxt1) 69898 } else { 69899 yysep2 := !z.EncBinary() 69900 yy2arr2 := z.EncBasicHandle().StructToArray 69901 _, _ = yysep2, yy2arr2 69902 const yyr2 bool = false // struct tag has 'toArray' 69903 if yyr2 || yy2arr2 { 69904 r.WriteArrayStart(5) 69905 } else { 69906 r.WriteMapStart(5) 69907 } 69908 if yyr2 || yy2arr2 { 69909 r.WriteArrayElem() 69910 if false { 69911 } else { 69912 r.EncodeBool(bool(x.Connected)) 69913 } 69914 } else { 69915 r.WriteMapElemKey() 69916 if z.IsJSONHandle() { 69917 z.WriteStr("\"Connected\"") 69918 } else { 69919 r.EncodeStringEnc(codecSelferCcUTF8100, `Connected`) 69920 } 69921 r.WriteMapElemValue() 69922 if false { 69923 } else { 69924 r.EncodeBool(bool(x.Connected)) 69925 } 69926 } 69927 if yyr2 || yy2arr2 { 69928 r.WriteArrayElem() 69929 if false { 69930 } else if !z.EncBasicHandle().TimeNotBuiltin { 69931 r.EncodeTime(x.Established) 69932 } else if yyxt7 := z.Extension(z.I2Rtid(x.Established)); yyxt7 != nil { 69933 z.EncExtension(x.Established, yyxt7) 69934 } else if z.EncBinary() { 69935 z.EncBinaryMarshal(x.Established) 69936 } else if !z.EncBinary() && z.IsJSONHandle() { 69937 z.EncJSONMarshal(x.Established) 69938 } else { 69939 z.EncFallback(x.Established) 69940 } 69941 } else { 69942 r.WriteMapElemKey() 69943 if z.IsJSONHandle() { 69944 z.WriteStr("\"Established\"") 69945 } else { 69946 r.EncodeStringEnc(codecSelferCcUTF8100, `Established`) 69947 } 69948 r.WriteMapElemValue() 69949 if false { 69950 } else if !z.EncBasicHandle().TimeNotBuiltin { 69951 r.EncodeTime(x.Established) 69952 } else if yyxt8 := z.Extension(z.I2Rtid(x.Established)); yyxt8 != nil { 69953 z.EncExtension(x.Established, yyxt8) 69954 } else if z.EncBinary() { 69955 z.EncBinaryMarshal(x.Established) 69956 } else if !z.EncBinary() && z.IsJSONHandle() { 69957 z.EncJSONMarshal(x.Established) 69958 } else { 69959 z.EncFallback(x.Established) 69960 } 69961 } 69962 if yyr2 || yy2arr2 { 69963 r.WriteArrayElem() 69964 if false { 69965 } else { 69966 r.EncodeUint(uint64(x.Index)) 69967 } 69968 } else { 69969 r.WriteMapElemKey() 69970 if z.IsJSONHandle() { 69971 z.WriteStr("\"Index\"") 69972 } else { 69973 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 69974 } 69975 r.WriteMapElemValue() 69976 if false { 69977 } else { 69978 r.EncodeUint(uint64(x.Index)) 69979 } 69980 } 69981 if yyr2 || yy2arr2 { 69982 r.WriteArrayElem() 69983 if false { 69984 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 69985 z.EncExtension(x.LastContact, yyxt13) 69986 } else { 69987 r.EncodeInt(int64(x.LastContact)) 69988 } 69989 } else { 69990 r.WriteMapElemKey() 69991 if z.IsJSONHandle() { 69992 z.WriteStr("\"LastContact\"") 69993 } else { 69994 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 69995 } 69996 r.WriteMapElemValue() 69997 if false { 69998 } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { 69999 z.EncExtension(x.LastContact, yyxt14) 70000 } else { 70001 r.EncodeInt(int64(x.LastContact)) 70002 } 70003 } 70004 if yyr2 || yy2arr2 { 70005 r.WriteArrayElem() 70006 if false { 70007 } else { 70008 r.EncodeBool(bool(x.KnownLeader)) 70009 } 70010 } else { 70011 r.WriteMapElemKey() 70012 if z.IsJSONHandle() { 70013 z.WriteStr("\"KnownLeader\"") 70014 } else { 70015 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 70016 } 70017 r.WriteMapElemValue() 70018 if false { 70019 } else { 70020 r.EncodeBool(bool(x.KnownLeader)) 70021 } 70022 } 70023 if yyr2 || yy2arr2 { 70024 r.WriteArrayEnd() 70025 } else { 70026 r.WriteMapEnd() 70027 } 70028 } 70029 } 70030 } 70031 70032 func (x *NodeConnQueryResponse) CodecDecodeSelf(d *codec1978.Decoder) { 70033 var h codecSelfer100 70034 z, r := codec1978.GenHelperDecoder(d) 70035 _, _, _ = h, z, r 70036 if false { 70037 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 70038 z.DecExtension(x, yyxt1) 70039 } else { 70040 yyct2 := r.ContainerType() 70041 if yyct2 == codecSelferValueTypeMap100 { 70042 yyl2 := r.ReadMapStart() 70043 if yyl2 == 0 { 70044 r.ReadMapEnd() 70045 } else { 70046 x.codecDecodeSelfFromMap(yyl2, d) 70047 } 70048 } else if yyct2 == codecSelferValueTypeArray100 { 70049 yyl2 := r.ReadArrayStart() 70050 if yyl2 == 0 { 70051 r.ReadArrayEnd() 70052 } else { 70053 x.codecDecodeSelfFromArray(yyl2, d) 70054 } 70055 } else { 70056 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 70057 } 70058 } 70059 } 70060 70061 func (x *NodeConnQueryResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 70062 var h codecSelfer100 70063 z, r := codec1978.GenHelperDecoder(d) 70064 _, _, _ = h, z, r 70065 var yyhl3 bool = l >= 0 70066 for yyj3 := 0; ; yyj3++ { 70067 if yyhl3 { 70068 if yyj3 >= l { 70069 break 70070 } 70071 } else { 70072 if r.CheckBreak() { 70073 break 70074 } 70075 } 70076 r.ReadMapElemKey() 70077 yys3 := z.StringView(r.DecodeStringAsBytes()) 70078 r.ReadMapElemValue() 70079 switch yys3 { 70080 case "Connected": 70081 if r.TryDecodeAsNil() { 70082 x.Connected = false 70083 } else { 70084 x.Connected = (bool)(r.DecodeBool()) 70085 } 70086 case "Established": 70087 if r.TryDecodeAsNil() { 70088 x.Established = time.Time{} 70089 } else { 70090 if false { 70091 } else if !z.DecBasicHandle().TimeNotBuiltin { 70092 x.Established = r.DecodeTime() 70093 } else if yyxt6 := z.Extension(z.I2Rtid(x.Established)); yyxt6 != nil { 70094 z.DecExtension(x.Established, yyxt6) 70095 } else if z.DecBinary() { 70096 z.DecBinaryUnmarshal(&x.Established) 70097 } else if !z.DecBinary() && z.IsJSONHandle() { 70098 z.DecJSONUnmarshal(&x.Established) 70099 } else { 70100 z.DecFallback(&x.Established, false) 70101 } 70102 } 70103 case "Index": 70104 if r.TryDecodeAsNil() { 70105 x.QueryMeta.Index = 0 70106 } else { 70107 x.Index = (uint64)(r.DecodeUint64()) 70108 } 70109 case "LastContact": 70110 if r.TryDecodeAsNil() { 70111 x.QueryMeta.LastContact = 0 70112 } else { 70113 if false { 70114 } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { 70115 z.DecExtension(x.LastContact, yyxt9) 70116 } else { 70117 x.LastContact = (time.Duration)(r.DecodeInt64()) 70118 } 70119 } 70120 case "KnownLeader": 70121 if r.TryDecodeAsNil() { 70122 x.QueryMeta.KnownLeader = false 70123 } else { 70124 x.KnownLeader = (bool)(r.DecodeBool()) 70125 } 70126 default: 70127 z.DecStructFieldNotFound(-1, yys3) 70128 } // end switch yys3 70129 } // end for yyj3 70130 r.ReadMapEnd() 70131 } 70132 70133 func (x *NodeConnQueryResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 70134 var h codecSelfer100 70135 z, r := codec1978.GenHelperDecoder(d) 70136 _, _, _ = h, z, r 70137 var yyj11 int 70138 var yyb11 bool 70139 var yyhl11 bool = l >= 0 70140 yyj11++ 70141 if yyhl11 { 70142 yyb11 = yyj11 > l 70143 } else { 70144 yyb11 = r.CheckBreak() 70145 } 70146 if yyb11 { 70147 r.ReadArrayEnd() 70148 return 70149 } 70150 r.ReadArrayElem() 70151 if r.TryDecodeAsNil() { 70152 x.Connected = false 70153 } else { 70154 x.Connected = (bool)(r.DecodeBool()) 70155 } 70156 yyj11++ 70157 if yyhl11 { 70158 yyb11 = yyj11 > l 70159 } else { 70160 yyb11 = r.CheckBreak() 70161 } 70162 if yyb11 { 70163 r.ReadArrayEnd() 70164 return 70165 } 70166 r.ReadArrayElem() 70167 if r.TryDecodeAsNil() { 70168 x.Established = time.Time{} 70169 } else { 70170 if false { 70171 } else if !z.DecBasicHandle().TimeNotBuiltin { 70172 x.Established = r.DecodeTime() 70173 } else if yyxt14 := z.Extension(z.I2Rtid(x.Established)); yyxt14 != nil { 70174 z.DecExtension(x.Established, yyxt14) 70175 } else if z.DecBinary() { 70176 z.DecBinaryUnmarshal(&x.Established) 70177 } else if !z.DecBinary() && z.IsJSONHandle() { 70178 z.DecJSONUnmarshal(&x.Established) 70179 } else { 70180 z.DecFallback(&x.Established, false) 70181 } 70182 } 70183 yyj11++ 70184 if yyhl11 { 70185 yyb11 = yyj11 > l 70186 } else { 70187 yyb11 = r.CheckBreak() 70188 } 70189 if yyb11 { 70190 r.ReadArrayEnd() 70191 return 70192 } 70193 r.ReadArrayElem() 70194 if r.TryDecodeAsNil() { 70195 x.QueryMeta.Index = 0 70196 } else { 70197 x.Index = (uint64)(r.DecodeUint64()) 70198 } 70199 yyj11++ 70200 if yyhl11 { 70201 yyb11 = yyj11 > l 70202 } else { 70203 yyb11 = r.CheckBreak() 70204 } 70205 if yyb11 { 70206 r.ReadArrayEnd() 70207 return 70208 } 70209 r.ReadArrayElem() 70210 if r.TryDecodeAsNil() { 70211 x.QueryMeta.LastContact = 0 70212 } else { 70213 if false { 70214 } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { 70215 z.DecExtension(x.LastContact, yyxt17) 70216 } else { 70217 x.LastContact = (time.Duration)(r.DecodeInt64()) 70218 } 70219 } 70220 yyj11++ 70221 if yyhl11 { 70222 yyb11 = yyj11 > l 70223 } else { 70224 yyb11 = r.CheckBreak() 70225 } 70226 if yyb11 { 70227 r.ReadArrayEnd() 70228 return 70229 } 70230 r.ReadArrayElem() 70231 if r.TryDecodeAsNil() { 70232 x.QueryMeta.KnownLeader = false 70233 } else { 70234 x.KnownLeader = (bool)(r.DecodeBool()) 70235 } 70236 for { 70237 yyj11++ 70238 if yyhl11 { 70239 yyb11 = yyj11 > l 70240 } else { 70241 yyb11 = r.CheckBreak() 70242 } 70243 if yyb11 { 70244 break 70245 } 70246 r.ReadArrayElem() 70247 z.DecStructFieldNotFound(yyj11-1, "") 70248 } 70249 r.ReadArrayEnd() 70250 } 70251 70252 func (x *EmitNodeEventsRequest) CodecEncodeSelf(e *codec1978.Encoder) { 70253 var h codecSelfer100 70254 z, r := codec1978.GenHelperEncoder(e) 70255 _, _, _ = h, z, r 70256 if x == nil { 70257 r.EncodeNil() 70258 } else { 70259 if false { 70260 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 70261 z.EncExtension(x, yyxt1) 70262 } else { 70263 yysep2 := !z.EncBinary() 70264 yy2arr2 := z.EncBasicHandle().StructToArray 70265 _, _ = yysep2, yy2arr2 70266 const yyr2 bool = false // struct tag has 'toArray' 70267 if yyr2 || yy2arr2 { 70268 r.WriteArrayStart(5) 70269 } else { 70270 r.WriteMapStart(5) 70271 } 70272 if yyr2 || yy2arr2 { 70273 r.WriteArrayElem() 70274 if x.NodeEvents == nil { 70275 r.EncodeNil() 70276 } else { 70277 if false { 70278 } else { 70279 h.encMapstringSlicePtrtoNodeEvent((map[string][]*NodeEvent)(x.NodeEvents), e) 70280 } 70281 } 70282 } else { 70283 r.WriteMapElemKey() 70284 if z.IsJSONHandle() { 70285 z.WriteStr("\"NodeEvents\"") 70286 } else { 70287 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvents`) 70288 } 70289 r.WriteMapElemValue() 70290 if x.NodeEvents == nil { 70291 r.EncodeNil() 70292 } else { 70293 if false { 70294 } else { 70295 h.encMapstringSlicePtrtoNodeEvent((map[string][]*NodeEvent)(x.NodeEvents), e) 70296 } 70297 } 70298 } 70299 if yyr2 || yy2arr2 { 70300 r.WriteArrayElem() 70301 if false { 70302 } else { 70303 if z.EncBasicHandle().StringToRaw { 70304 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 70305 } else { 70306 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 70307 } 70308 } 70309 } else { 70310 r.WriteMapElemKey() 70311 if z.IsJSONHandle() { 70312 z.WriteStr("\"Region\"") 70313 } else { 70314 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 70315 } 70316 r.WriteMapElemValue() 70317 if false { 70318 } else { 70319 if z.EncBasicHandle().StringToRaw { 70320 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 70321 } else { 70322 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 70323 } 70324 } 70325 } 70326 if yyr2 || yy2arr2 { 70327 r.WriteArrayElem() 70328 if false { 70329 } else { 70330 if z.EncBasicHandle().StringToRaw { 70331 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 70332 } else { 70333 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 70334 } 70335 } 70336 } else { 70337 r.WriteMapElemKey() 70338 if z.IsJSONHandle() { 70339 z.WriteStr("\"Namespace\"") 70340 } else { 70341 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 70342 } 70343 r.WriteMapElemValue() 70344 if false { 70345 } else { 70346 if z.EncBasicHandle().StringToRaw { 70347 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 70348 } else { 70349 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 70350 } 70351 } 70352 } 70353 if yyr2 || yy2arr2 { 70354 r.WriteArrayElem() 70355 if false { 70356 } else { 70357 if z.EncBasicHandle().StringToRaw { 70358 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 70359 } else { 70360 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 70361 } 70362 } 70363 } else { 70364 r.WriteMapElemKey() 70365 if z.IsJSONHandle() { 70366 z.WriteStr("\"AuthToken\"") 70367 } else { 70368 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 70369 } 70370 r.WriteMapElemValue() 70371 if false { 70372 } else { 70373 if z.EncBasicHandle().StringToRaw { 70374 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 70375 } else { 70376 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 70377 } 70378 } 70379 } 70380 if yyr2 || yy2arr2 { 70381 r.WriteArrayElem() 70382 if false { 70383 } else { 70384 r.EncodeBool(bool(x.Forwarded)) 70385 } 70386 } else { 70387 r.WriteMapElemKey() 70388 if z.IsJSONHandle() { 70389 z.WriteStr("\"Forwarded\"") 70390 } else { 70391 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 70392 } 70393 r.WriteMapElemValue() 70394 if false { 70395 } else { 70396 r.EncodeBool(bool(x.Forwarded)) 70397 } 70398 } 70399 if yyr2 || yy2arr2 { 70400 r.WriteArrayEnd() 70401 } else { 70402 r.WriteMapEnd() 70403 } 70404 } 70405 } 70406 } 70407 70408 func (x *EmitNodeEventsRequest) CodecDecodeSelf(d *codec1978.Decoder) { 70409 var h codecSelfer100 70410 z, r := codec1978.GenHelperDecoder(d) 70411 _, _, _ = h, z, r 70412 if false { 70413 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 70414 z.DecExtension(x, yyxt1) 70415 } else { 70416 yyct2 := r.ContainerType() 70417 if yyct2 == codecSelferValueTypeMap100 { 70418 yyl2 := r.ReadMapStart() 70419 if yyl2 == 0 { 70420 r.ReadMapEnd() 70421 } else { 70422 x.codecDecodeSelfFromMap(yyl2, d) 70423 } 70424 } else if yyct2 == codecSelferValueTypeArray100 { 70425 yyl2 := r.ReadArrayStart() 70426 if yyl2 == 0 { 70427 r.ReadArrayEnd() 70428 } else { 70429 x.codecDecodeSelfFromArray(yyl2, d) 70430 } 70431 } else { 70432 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 70433 } 70434 } 70435 } 70436 70437 func (x *EmitNodeEventsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 70438 var h codecSelfer100 70439 z, r := codec1978.GenHelperDecoder(d) 70440 _, _, _ = h, z, r 70441 var yyhl3 bool = l >= 0 70442 for yyj3 := 0; ; yyj3++ { 70443 if yyhl3 { 70444 if yyj3 >= l { 70445 break 70446 } 70447 } else { 70448 if r.CheckBreak() { 70449 break 70450 } 70451 } 70452 r.ReadMapElemKey() 70453 yys3 := z.StringView(r.DecodeStringAsBytes()) 70454 r.ReadMapElemValue() 70455 switch yys3 { 70456 case "NodeEvents": 70457 if r.TryDecodeAsNil() { 70458 x.NodeEvents = nil 70459 } else { 70460 if false { 70461 } else { 70462 h.decMapstringSlicePtrtoNodeEvent((*map[string][]*NodeEvent)(&x.NodeEvents), d) 70463 } 70464 } 70465 case "Region": 70466 if r.TryDecodeAsNil() { 70467 x.WriteRequest.Region = "" 70468 } else { 70469 x.Region = (string)(r.DecodeString()) 70470 } 70471 case "Namespace": 70472 if r.TryDecodeAsNil() { 70473 x.WriteRequest.Namespace = "" 70474 } else { 70475 x.Namespace = (string)(r.DecodeString()) 70476 } 70477 case "AuthToken": 70478 if r.TryDecodeAsNil() { 70479 x.WriteRequest.AuthToken = "" 70480 } else { 70481 x.AuthToken = (string)(r.DecodeString()) 70482 } 70483 case "Forwarded": 70484 if r.TryDecodeAsNil() { 70485 x.WriteRequest.InternalRpcInfo.Forwarded = false 70486 } else { 70487 x.Forwarded = (bool)(r.DecodeBool()) 70488 } 70489 default: 70490 z.DecStructFieldNotFound(-1, yys3) 70491 } // end switch yys3 70492 } // end for yyj3 70493 r.ReadMapEnd() 70494 } 70495 70496 func (x *EmitNodeEventsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 70497 var h codecSelfer100 70498 z, r := codec1978.GenHelperDecoder(d) 70499 _, _, _ = h, z, r 70500 var yyj10 int 70501 var yyb10 bool 70502 var yyhl10 bool = l >= 0 70503 yyj10++ 70504 if yyhl10 { 70505 yyb10 = yyj10 > l 70506 } else { 70507 yyb10 = r.CheckBreak() 70508 } 70509 if yyb10 { 70510 r.ReadArrayEnd() 70511 return 70512 } 70513 r.ReadArrayElem() 70514 if r.TryDecodeAsNil() { 70515 x.NodeEvents = nil 70516 } else { 70517 if false { 70518 } else { 70519 h.decMapstringSlicePtrtoNodeEvent((*map[string][]*NodeEvent)(&x.NodeEvents), d) 70520 } 70521 } 70522 yyj10++ 70523 if yyhl10 { 70524 yyb10 = yyj10 > l 70525 } else { 70526 yyb10 = r.CheckBreak() 70527 } 70528 if yyb10 { 70529 r.ReadArrayEnd() 70530 return 70531 } 70532 r.ReadArrayElem() 70533 if r.TryDecodeAsNil() { 70534 x.WriteRequest.Region = "" 70535 } else { 70536 x.Region = (string)(r.DecodeString()) 70537 } 70538 yyj10++ 70539 if yyhl10 { 70540 yyb10 = yyj10 > l 70541 } else { 70542 yyb10 = r.CheckBreak() 70543 } 70544 if yyb10 { 70545 r.ReadArrayEnd() 70546 return 70547 } 70548 r.ReadArrayElem() 70549 if r.TryDecodeAsNil() { 70550 x.WriteRequest.Namespace = "" 70551 } else { 70552 x.Namespace = (string)(r.DecodeString()) 70553 } 70554 yyj10++ 70555 if yyhl10 { 70556 yyb10 = yyj10 > l 70557 } else { 70558 yyb10 = r.CheckBreak() 70559 } 70560 if yyb10 { 70561 r.ReadArrayEnd() 70562 return 70563 } 70564 r.ReadArrayElem() 70565 if r.TryDecodeAsNil() { 70566 x.WriteRequest.AuthToken = "" 70567 } else { 70568 x.AuthToken = (string)(r.DecodeString()) 70569 } 70570 yyj10++ 70571 if yyhl10 { 70572 yyb10 = yyj10 > l 70573 } else { 70574 yyb10 = r.CheckBreak() 70575 } 70576 if yyb10 { 70577 r.ReadArrayEnd() 70578 return 70579 } 70580 r.ReadArrayElem() 70581 if r.TryDecodeAsNil() { 70582 x.WriteRequest.InternalRpcInfo.Forwarded = false 70583 } else { 70584 x.Forwarded = (bool)(r.DecodeBool()) 70585 } 70586 for { 70587 yyj10++ 70588 if yyhl10 { 70589 yyb10 = yyj10 > l 70590 } else { 70591 yyb10 = r.CheckBreak() 70592 } 70593 if yyb10 { 70594 break 70595 } 70596 r.ReadArrayElem() 70597 z.DecStructFieldNotFound(yyj10-1, "") 70598 } 70599 r.ReadArrayEnd() 70600 } 70601 70602 func (x *EmitNodeEventsResponse) CodecEncodeSelf(e *codec1978.Encoder) { 70603 var h codecSelfer100 70604 z, r := codec1978.GenHelperEncoder(e) 70605 _, _, _ = h, z, r 70606 if x == nil { 70607 r.EncodeNil() 70608 } else { 70609 if false { 70610 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 70611 z.EncExtension(x, yyxt1) 70612 } else { 70613 yysep2 := !z.EncBinary() 70614 yy2arr2 := z.EncBasicHandle().StructToArray 70615 _, _ = yysep2, yy2arr2 70616 const yyr2 bool = false // struct tag has 'toArray' 70617 if yyr2 || yy2arr2 { 70618 r.WriteArrayStart(1) 70619 } else { 70620 r.WriteMapStart(1) 70621 } 70622 if yyr2 || yy2arr2 { 70623 r.WriteArrayElem() 70624 if false { 70625 } else { 70626 r.EncodeUint(uint64(x.Index)) 70627 } 70628 } else { 70629 r.WriteMapElemKey() 70630 if z.IsJSONHandle() { 70631 z.WriteStr("\"Index\"") 70632 } else { 70633 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 70634 } 70635 r.WriteMapElemValue() 70636 if false { 70637 } else { 70638 r.EncodeUint(uint64(x.Index)) 70639 } 70640 } 70641 if yyr2 || yy2arr2 { 70642 r.WriteArrayEnd() 70643 } else { 70644 r.WriteMapEnd() 70645 } 70646 } 70647 } 70648 } 70649 70650 func (x *EmitNodeEventsResponse) CodecDecodeSelf(d *codec1978.Decoder) { 70651 var h codecSelfer100 70652 z, r := codec1978.GenHelperDecoder(d) 70653 _, _, _ = h, z, r 70654 if false { 70655 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 70656 z.DecExtension(x, yyxt1) 70657 } else { 70658 yyct2 := r.ContainerType() 70659 if yyct2 == codecSelferValueTypeMap100 { 70660 yyl2 := r.ReadMapStart() 70661 if yyl2 == 0 { 70662 r.ReadMapEnd() 70663 } else { 70664 x.codecDecodeSelfFromMap(yyl2, d) 70665 } 70666 } else if yyct2 == codecSelferValueTypeArray100 { 70667 yyl2 := r.ReadArrayStart() 70668 if yyl2 == 0 { 70669 r.ReadArrayEnd() 70670 } else { 70671 x.codecDecodeSelfFromArray(yyl2, d) 70672 } 70673 } else { 70674 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 70675 } 70676 } 70677 } 70678 70679 func (x *EmitNodeEventsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 70680 var h codecSelfer100 70681 z, r := codec1978.GenHelperDecoder(d) 70682 _, _, _ = h, z, r 70683 var yyhl3 bool = l >= 0 70684 for yyj3 := 0; ; yyj3++ { 70685 if yyhl3 { 70686 if yyj3 >= l { 70687 break 70688 } 70689 } else { 70690 if r.CheckBreak() { 70691 break 70692 } 70693 } 70694 r.ReadMapElemKey() 70695 yys3 := z.StringView(r.DecodeStringAsBytes()) 70696 r.ReadMapElemValue() 70697 switch yys3 { 70698 case "Index": 70699 if r.TryDecodeAsNil() { 70700 x.WriteMeta.Index = 0 70701 } else { 70702 x.Index = (uint64)(r.DecodeUint64()) 70703 } 70704 default: 70705 z.DecStructFieldNotFound(-1, yys3) 70706 } // end switch yys3 70707 } // end for yyj3 70708 r.ReadMapEnd() 70709 } 70710 70711 func (x *EmitNodeEventsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 70712 var h codecSelfer100 70713 z, r := codec1978.GenHelperDecoder(d) 70714 _, _, _ = h, z, r 70715 var yyj5 int 70716 var yyb5 bool 70717 var yyhl5 bool = l >= 0 70718 yyj5++ 70719 if yyhl5 { 70720 yyb5 = yyj5 > l 70721 } else { 70722 yyb5 = r.CheckBreak() 70723 } 70724 if yyb5 { 70725 r.ReadArrayEnd() 70726 return 70727 } 70728 r.ReadArrayElem() 70729 if r.TryDecodeAsNil() { 70730 x.WriteMeta.Index = 0 70731 } else { 70732 x.Index = (uint64)(r.DecodeUint64()) 70733 } 70734 for { 70735 yyj5++ 70736 if yyhl5 { 70737 yyb5 = yyj5 > l 70738 } else { 70739 yyb5 = r.CheckBreak() 70740 } 70741 if yyb5 { 70742 break 70743 } 70744 r.ReadArrayElem() 70745 z.DecStructFieldNotFound(yyj5-1, "") 70746 } 70747 r.ReadArrayEnd() 70748 } 70749 70750 func (x *NodeEvent) CodecEncodeSelf(e *codec1978.Encoder) { 70751 var h codecSelfer100 70752 z, r := codec1978.GenHelperEncoder(e) 70753 _, _, _ = h, z, r 70754 if x == nil { 70755 r.EncodeNil() 70756 } else { 70757 if false { 70758 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 70759 z.EncExtension(x, yyxt1) 70760 } else { 70761 yysep2 := !z.EncBinary() 70762 yy2arr2 := z.EncBasicHandle().StructToArray 70763 _, _ = yysep2, yy2arr2 70764 const yyr2 bool = false // struct tag has 'toArray' 70765 if yyr2 || yy2arr2 { 70766 r.WriteArrayStart(5) 70767 } else { 70768 r.WriteMapStart(5) 70769 } 70770 if yyr2 || yy2arr2 { 70771 r.WriteArrayElem() 70772 if false { 70773 } else { 70774 if z.EncBasicHandle().StringToRaw { 70775 r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) 70776 } else { 70777 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) 70778 } 70779 } 70780 } else { 70781 r.WriteMapElemKey() 70782 if z.IsJSONHandle() { 70783 z.WriteStr("\"Message\"") 70784 } else { 70785 r.EncodeStringEnc(codecSelferCcUTF8100, `Message`) 70786 } 70787 r.WriteMapElemValue() 70788 if false { 70789 } else { 70790 if z.EncBasicHandle().StringToRaw { 70791 r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) 70792 } else { 70793 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) 70794 } 70795 } 70796 } 70797 if yyr2 || yy2arr2 { 70798 r.WriteArrayElem() 70799 if false { 70800 } else { 70801 if z.EncBasicHandle().StringToRaw { 70802 r.EncodeStringBytesRaw(z.BytesView(string(x.Subsystem))) 70803 } else { 70804 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Subsystem)) 70805 } 70806 } 70807 } else { 70808 r.WriteMapElemKey() 70809 if z.IsJSONHandle() { 70810 z.WriteStr("\"Subsystem\"") 70811 } else { 70812 r.EncodeStringEnc(codecSelferCcUTF8100, `Subsystem`) 70813 } 70814 r.WriteMapElemValue() 70815 if false { 70816 } else { 70817 if z.EncBasicHandle().StringToRaw { 70818 r.EncodeStringBytesRaw(z.BytesView(string(x.Subsystem))) 70819 } else { 70820 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Subsystem)) 70821 } 70822 } 70823 } 70824 if yyr2 || yy2arr2 { 70825 r.WriteArrayElem() 70826 if x.Details == nil { 70827 r.EncodeNil() 70828 } else { 70829 if false { 70830 } else { 70831 z.F.EncMapStringStringV(x.Details, e) 70832 } 70833 } 70834 } else { 70835 r.WriteMapElemKey() 70836 if z.IsJSONHandle() { 70837 z.WriteStr("\"Details\"") 70838 } else { 70839 r.EncodeStringEnc(codecSelferCcUTF8100, `Details`) 70840 } 70841 r.WriteMapElemValue() 70842 if x.Details == nil { 70843 r.EncodeNil() 70844 } else { 70845 if false { 70846 } else { 70847 z.F.EncMapStringStringV(x.Details, e) 70848 } 70849 } 70850 } 70851 if yyr2 || yy2arr2 { 70852 r.WriteArrayElem() 70853 if false { 70854 } else if !z.EncBasicHandle().TimeNotBuiltin { 70855 r.EncodeTime(x.Timestamp) 70856 } else if yyxt13 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt13 != nil { 70857 z.EncExtension(x.Timestamp, yyxt13) 70858 } else if z.EncBinary() { 70859 z.EncBinaryMarshal(x.Timestamp) 70860 } else if !z.EncBinary() && z.IsJSONHandle() { 70861 z.EncJSONMarshal(x.Timestamp) 70862 } else { 70863 z.EncFallback(x.Timestamp) 70864 } 70865 } else { 70866 r.WriteMapElemKey() 70867 if z.IsJSONHandle() { 70868 z.WriteStr("\"Timestamp\"") 70869 } else { 70870 r.EncodeStringEnc(codecSelferCcUTF8100, `Timestamp`) 70871 } 70872 r.WriteMapElemValue() 70873 if false { 70874 } else if !z.EncBasicHandle().TimeNotBuiltin { 70875 r.EncodeTime(x.Timestamp) 70876 } else if yyxt14 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt14 != nil { 70877 z.EncExtension(x.Timestamp, yyxt14) 70878 } else if z.EncBinary() { 70879 z.EncBinaryMarshal(x.Timestamp) 70880 } else if !z.EncBinary() && z.IsJSONHandle() { 70881 z.EncJSONMarshal(x.Timestamp) 70882 } else { 70883 z.EncFallback(x.Timestamp) 70884 } 70885 } 70886 if yyr2 || yy2arr2 { 70887 r.WriteArrayElem() 70888 if false { 70889 } else { 70890 r.EncodeUint(uint64(x.CreateIndex)) 70891 } 70892 } else { 70893 r.WriteMapElemKey() 70894 if z.IsJSONHandle() { 70895 z.WriteStr("\"CreateIndex\"") 70896 } else { 70897 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 70898 } 70899 r.WriteMapElemValue() 70900 if false { 70901 } else { 70902 r.EncodeUint(uint64(x.CreateIndex)) 70903 } 70904 } 70905 if yyr2 || yy2arr2 { 70906 r.WriteArrayEnd() 70907 } else { 70908 r.WriteMapEnd() 70909 } 70910 } 70911 } 70912 } 70913 70914 func (x *NodeEvent) CodecDecodeSelf(d *codec1978.Decoder) { 70915 var h codecSelfer100 70916 z, r := codec1978.GenHelperDecoder(d) 70917 _, _, _ = h, z, r 70918 if false { 70919 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 70920 z.DecExtension(x, yyxt1) 70921 } else { 70922 yyct2 := r.ContainerType() 70923 if yyct2 == codecSelferValueTypeMap100 { 70924 yyl2 := r.ReadMapStart() 70925 if yyl2 == 0 { 70926 r.ReadMapEnd() 70927 } else { 70928 x.codecDecodeSelfFromMap(yyl2, d) 70929 } 70930 } else if yyct2 == codecSelferValueTypeArray100 { 70931 yyl2 := r.ReadArrayStart() 70932 if yyl2 == 0 { 70933 r.ReadArrayEnd() 70934 } else { 70935 x.codecDecodeSelfFromArray(yyl2, d) 70936 } 70937 } else { 70938 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 70939 } 70940 } 70941 } 70942 70943 func (x *NodeEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 70944 var h codecSelfer100 70945 z, r := codec1978.GenHelperDecoder(d) 70946 _, _, _ = h, z, r 70947 var yyhl3 bool = l >= 0 70948 for yyj3 := 0; ; yyj3++ { 70949 if yyhl3 { 70950 if yyj3 >= l { 70951 break 70952 } 70953 } else { 70954 if r.CheckBreak() { 70955 break 70956 } 70957 } 70958 r.ReadMapElemKey() 70959 yys3 := z.StringView(r.DecodeStringAsBytes()) 70960 r.ReadMapElemValue() 70961 switch yys3 { 70962 case "Message": 70963 if r.TryDecodeAsNil() { 70964 x.Message = "" 70965 } else { 70966 x.Message = (string)(r.DecodeString()) 70967 } 70968 case "Subsystem": 70969 if r.TryDecodeAsNil() { 70970 x.Subsystem = "" 70971 } else { 70972 x.Subsystem = (string)(r.DecodeString()) 70973 } 70974 case "Details": 70975 if r.TryDecodeAsNil() { 70976 x.Details = nil 70977 } else { 70978 if false { 70979 } else { 70980 z.F.DecMapStringStringX(&x.Details, d) 70981 } 70982 } 70983 case "Timestamp": 70984 if r.TryDecodeAsNil() { 70985 x.Timestamp = time.Time{} 70986 } else { 70987 if false { 70988 } else if !z.DecBasicHandle().TimeNotBuiltin { 70989 x.Timestamp = r.DecodeTime() 70990 } else if yyxt9 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt9 != nil { 70991 z.DecExtension(x.Timestamp, yyxt9) 70992 } else if z.DecBinary() { 70993 z.DecBinaryUnmarshal(&x.Timestamp) 70994 } else if !z.DecBinary() && z.IsJSONHandle() { 70995 z.DecJSONUnmarshal(&x.Timestamp) 70996 } else { 70997 z.DecFallback(&x.Timestamp, false) 70998 } 70999 } 71000 case "CreateIndex": 71001 if r.TryDecodeAsNil() { 71002 x.CreateIndex = 0 71003 } else { 71004 x.CreateIndex = (uint64)(r.DecodeUint64()) 71005 } 71006 default: 71007 z.DecStructFieldNotFound(-1, yys3) 71008 } // end switch yys3 71009 } // end for yyj3 71010 r.ReadMapEnd() 71011 } 71012 71013 func (x *NodeEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 71014 var h codecSelfer100 71015 z, r := codec1978.GenHelperDecoder(d) 71016 _, _, _ = h, z, r 71017 var yyj11 int 71018 var yyb11 bool 71019 var yyhl11 bool = l >= 0 71020 yyj11++ 71021 if yyhl11 { 71022 yyb11 = yyj11 > l 71023 } else { 71024 yyb11 = r.CheckBreak() 71025 } 71026 if yyb11 { 71027 r.ReadArrayEnd() 71028 return 71029 } 71030 r.ReadArrayElem() 71031 if r.TryDecodeAsNil() { 71032 x.Message = "" 71033 } else { 71034 x.Message = (string)(r.DecodeString()) 71035 } 71036 yyj11++ 71037 if yyhl11 { 71038 yyb11 = yyj11 > l 71039 } else { 71040 yyb11 = r.CheckBreak() 71041 } 71042 if yyb11 { 71043 r.ReadArrayEnd() 71044 return 71045 } 71046 r.ReadArrayElem() 71047 if r.TryDecodeAsNil() { 71048 x.Subsystem = "" 71049 } else { 71050 x.Subsystem = (string)(r.DecodeString()) 71051 } 71052 yyj11++ 71053 if yyhl11 { 71054 yyb11 = yyj11 > l 71055 } else { 71056 yyb11 = r.CheckBreak() 71057 } 71058 if yyb11 { 71059 r.ReadArrayEnd() 71060 return 71061 } 71062 r.ReadArrayElem() 71063 if r.TryDecodeAsNil() { 71064 x.Details = nil 71065 } else { 71066 if false { 71067 } else { 71068 z.F.DecMapStringStringX(&x.Details, d) 71069 } 71070 } 71071 yyj11++ 71072 if yyhl11 { 71073 yyb11 = yyj11 > l 71074 } else { 71075 yyb11 = r.CheckBreak() 71076 } 71077 if yyb11 { 71078 r.ReadArrayEnd() 71079 return 71080 } 71081 r.ReadArrayElem() 71082 if r.TryDecodeAsNil() { 71083 x.Timestamp = time.Time{} 71084 } else { 71085 if false { 71086 } else if !z.DecBasicHandle().TimeNotBuiltin { 71087 x.Timestamp = r.DecodeTime() 71088 } else if yyxt17 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt17 != nil { 71089 z.DecExtension(x.Timestamp, yyxt17) 71090 } else if z.DecBinary() { 71091 z.DecBinaryUnmarshal(&x.Timestamp) 71092 } else if !z.DecBinary() && z.IsJSONHandle() { 71093 z.DecJSONUnmarshal(&x.Timestamp) 71094 } else { 71095 z.DecFallback(&x.Timestamp, false) 71096 } 71097 } 71098 yyj11++ 71099 if yyhl11 { 71100 yyb11 = yyj11 > l 71101 } else { 71102 yyb11 = r.CheckBreak() 71103 } 71104 if yyb11 { 71105 r.ReadArrayEnd() 71106 return 71107 } 71108 r.ReadArrayElem() 71109 if r.TryDecodeAsNil() { 71110 x.CreateIndex = 0 71111 } else { 71112 x.CreateIndex = (uint64)(r.DecodeUint64()) 71113 } 71114 for { 71115 yyj11++ 71116 if yyhl11 { 71117 yyb11 = yyj11 > l 71118 } else { 71119 yyb11 = r.CheckBreak() 71120 } 71121 if yyb11 { 71122 break 71123 } 71124 r.ReadArrayElem() 71125 z.DecStructFieldNotFound(yyj11-1, "") 71126 } 71127 r.ReadArrayEnd() 71128 } 71129 71130 func (x *DrainSpec) CodecEncodeSelf(e *codec1978.Encoder) { 71131 var h codecSelfer100 71132 z, r := codec1978.GenHelperEncoder(e) 71133 _, _, _ = h, z, r 71134 if x == nil { 71135 r.EncodeNil() 71136 } else { 71137 if false { 71138 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 71139 z.EncExtension(x, yyxt1) 71140 } else { 71141 yysep2 := !z.EncBinary() 71142 yy2arr2 := z.EncBasicHandle().StructToArray 71143 _, _ = yysep2, yy2arr2 71144 const yyr2 bool = false // struct tag has 'toArray' 71145 if yyr2 || yy2arr2 { 71146 r.WriteArrayStart(2) 71147 } else { 71148 r.WriteMapStart(2) 71149 } 71150 if yyr2 || yy2arr2 { 71151 r.WriteArrayElem() 71152 if false { 71153 } else if yyxt4 := z.Extension(z.I2Rtid(x.Deadline)); yyxt4 != nil { 71154 z.EncExtension(x.Deadline, yyxt4) 71155 } else { 71156 r.EncodeInt(int64(x.Deadline)) 71157 } 71158 } else { 71159 r.WriteMapElemKey() 71160 if z.IsJSONHandle() { 71161 z.WriteStr("\"Deadline\"") 71162 } else { 71163 r.EncodeStringEnc(codecSelferCcUTF8100, `Deadline`) 71164 } 71165 r.WriteMapElemValue() 71166 if false { 71167 } else if yyxt5 := z.Extension(z.I2Rtid(x.Deadline)); yyxt5 != nil { 71168 z.EncExtension(x.Deadline, yyxt5) 71169 } else { 71170 r.EncodeInt(int64(x.Deadline)) 71171 } 71172 } 71173 if yyr2 || yy2arr2 { 71174 r.WriteArrayElem() 71175 if false { 71176 } else { 71177 r.EncodeBool(bool(x.IgnoreSystemJobs)) 71178 } 71179 } else { 71180 r.WriteMapElemKey() 71181 if z.IsJSONHandle() { 71182 z.WriteStr("\"IgnoreSystemJobs\"") 71183 } else { 71184 r.EncodeStringEnc(codecSelferCcUTF8100, `IgnoreSystemJobs`) 71185 } 71186 r.WriteMapElemValue() 71187 if false { 71188 } else { 71189 r.EncodeBool(bool(x.IgnoreSystemJobs)) 71190 } 71191 } 71192 if yyr2 || yy2arr2 { 71193 r.WriteArrayEnd() 71194 } else { 71195 r.WriteMapEnd() 71196 } 71197 } 71198 } 71199 } 71200 71201 func (x *DrainSpec) CodecDecodeSelf(d *codec1978.Decoder) { 71202 var h codecSelfer100 71203 z, r := codec1978.GenHelperDecoder(d) 71204 _, _, _ = h, z, r 71205 if false { 71206 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 71207 z.DecExtension(x, yyxt1) 71208 } else { 71209 yyct2 := r.ContainerType() 71210 if yyct2 == codecSelferValueTypeMap100 { 71211 yyl2 := r.ReadMapStart() 71212 if yyl2 == 0 { 71213 r.ReadMapEnd() 71214 } else { 71215 x.codecDecodeSelfFromMap(yyl2, d) 71216 } 71217 } else if yyct2 == codecSelferValueTypeArray100 { 71218 yyl2 := r.ReadArrayStart() 71219 if yyl2 == 0 { 71220 r.ReadArrayEnd() 71221 } else { 71222 x.codecDecodeSelfFromArray(yyl2, d) 71223 } 71224 } else { 71225 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 71226 } 71227 } 71228 } 71229 71230 func (x *DrainSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 71231 var h codecSelfer100 71232 z, r := codec1978.GenHelperDecoder(d) 71233 _, _, _ = h, z, r 71234 var yyhl3 bool = l >= 0 71235 for yyj3 := 0; ; yyj3++ { 71236 if yyhl3 { 71237 if yyj3 >= l { 71238 break 71239 } 71240 } else { 71241 if r.CheckBreak() { 71242 break 71243 } 71244 } 71245 r.ReadMapElemKey() 71246 yys3 := z.StringView(r.DecodeStringAsBytes()) 71247 r.ReadMapElemValue() 71248 switch yys3 { 71249 case "Deadline": 71250 if r.TryDecodeAsNil() { 71251 x.Deadline = 0 71252 } else { 71253 if false { 71254 } else if yyxt5 := z.Extension(z.I2Rtid(x.Deadline)); yyxt5 != nil { 71255 z.DecExtension(x.Deadline, yyxt5) 71256 } else { 71257 x.Deadline = (time.Duration)(r.DecodeInt64()) 71258 } 71259 } 71260 case "IgnoreSystemJobs": 71261 if r.TryDecodeAsNil() { 71262 x.IgnoreSystemJobs = false 71263 } else { 71264 x.IgnoreSystemJobs = (bool)(r.DecodeBool()) 71265 } 71266 default: 71267 z.DecStructFieldNotFound(-1, yys3) 71268 } // end switch yys3 71269 } // end for yyj3 71270 r.ReadMapEnd() 71271 } 71272 71273 func (x *DrainSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 71274 var h codecSelfer100 71275 z, r := codec1978.GenHelperDecoder(d) 71276 _, _, _ = h, z, r 71277 var yyj7 int 71278 var yyb7 bool 71279 var yyhl7 bool = l >= 0 71280 yyj7++ 71281 if yyhl7 { 71282 yyb7 = yyj7 > l 71283 } else { 71284 yyb7 = r.CheckBreak() 71285 } 71286 if yyb7 { 71287 r.ReadArrayEnd() 71288 return 71289 } 71290 r.ReadArrayElem() 71291 if r.TryDecodeAsNil() { 71292 x.Deadline = 0 71293 } else { 71294 if false { 71295 } else if yyxt9 := z.Extension(z.I2Rtid(x.Deadline)); yyxt9 != nil { 71296 z.DecExtension(x.Deadline, yyxt9) 71297 } else { 71298 x.Deadline = (time.Duration)(r.DecodeInt64()) 71299 } 71300 } 71301 yyj7++ 71302 if yyhl7 { 71303 yyb7 = yyj7 > l 71304 } else { 71305 yyb7 = r.CheckBreak() 71306 } 71307 if yyb7 { 71308 r.ReadArrayEnd() 71309 return 71310 } 71311 r.ReadArrayElem() 71312 if r.TryDecodeAsNil() { 71313 x.IgnoreSystemJobs = false 71314 } else { 71315 x.IgnoreSystemJobs = (bool)(r.DecodeBool()) 71316 } 71317 for { 71318 yyj7++ 71319 if yyhl7 { 71320 yyb7 = yyj7 > l 71321 } else { 71322 yyb7 = r.CheckBreak() 71323 } 71324 if yyb7 { 71325 break 71326 } 71327 r.ReadArrayElem() 71328 z.DecStructFieldNotFound(yyj7-1, "") 71329 } 71330 r.ReadArrayEnd() 71331 } 71332 71333 func (x *DrainStrategy) CodecEncodeSelf(e *codec1978.Encoder) { 71334 var h codecSelfer100 71335 z, r := codec1978.GenHelperEncoder(e) 71336 _, _, _ = h, z, r 71337 if x == nil { 71338 r.EncodeNil() 71339 } else { 71340 if false { 71341 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 71342 z.EncExtension(x, yyxt1) 71343 } else { 71344 yysep2 := !z.EncBinary() 71345 yy2arr2 := z.EncBasicHandle().StructToArray 71346 _, _ = yysep2, yy2arr2 71347 const yyr2 bool = false // struct tag has 'toArray' 71348 if yyr2 || yy2arr2 { 71349 r.WriteArrayStart(4) 71350 } else { 71351 r.WriteMapStart(4) 71352 } 71353 if yyr2 || yy2arr2 { 71354 r.WriteArrayElem() 71355 if false { 71356 } else if yyxt4 := z.Extension(z.I2Rtid(x.Deadline)); yyxt4 != nil { 71357 z.EncExtension(x.Deadline, yyxt4) 71358 } else { 71359 r.EncodeInt(int64(x.Deadline)) 71360 } 71361 } else { 71362 r.WriteMapElemKey() 71363 if z.IsJSONHandle() { 71364 z.WriteStr("\"Deadline\"") 71365 } else { 71366 r.EncodeStringEnc(codecSelferCcUTF8100, `Deadline`) 71367 } 71368 r.WriteMapElemValue() 71369 if false { 71370 } else if yyxt5 := z.Extension(z.I2Rtid(x.Deadline)); yyxt5 != nil { 71371 z.EncExtension(x.Deadline, yyxt5) 71372 } else { 71373 r.EncodeInt(int64(x.Deadline)) 71374 } 71375 } 71376 if yyr2 || yy2arr2 { 71377 r.WriteArrayElem() 71378 if false { 71379 } else { 71380 r.EncodeBool(bool(x.IgnoreSystemJobs)) 71381 } 71382 } else { 71383 r.WriteMapElemKey() 71384 if z.IsJSONHandle() { 71385 z.WriteStr("\"IgnoreSystemJobs\"") 71386 } else { 71387 r.EncodeStringEnc(codecSelferCcUTF8100, `IgnoreSystemJobs`) 71388 } 71389 r.WriteMapElemValue() 71390 if false { 71391 } else { 71392 r.EncodeBool(bool(x.IgnoreSystemJobs)) 71393 } 71394 } 71395 if yyr2 || yy2arr2 { 71396 r.WriteArrayElem() 71397 if false { 71398 } else if !z.EncBasicHandle().TimeNotBuiltin { 71399 r.EncodeTime(x.ForceDeadline) 71400 } else if yyxt10 := z.Extension(z.I2Rtid(x.ForceDeadline)); yyxt10 != nil { 71401 z.EncExtension(x.ForceDeadline, yyxt10) 71402 } else if z.EncBinary() { 71403 z.EncBinaryMarshal(x.ForceDeadline) 71404 } else if !z.EncBinary() && z.IsJSONHandle() { 71405 z.EncJSONMarshal(x.ForceDeadline) 71406 } else { 71407 z.EncFallback(x.ForceDeadline) 71408 } 71409 } else { 71410 r.WriteMapElemKey() 71411 if z.IsJSONHandle() { 71412 z.WriteStr("\"ForceDeadline\"") 71413 } else { 71414 r.EncodeStringEnc(codecSelferCcUTF8100, `ForceDeadline`) 71415 } 71416 r.WriteMapElemValue() 71417 if false { 71418 } else if !z.EncBasicHandle().TimeNotBuiltin { 71419 r.EncodeTime(x.ForceDeadline) 71420 } else if yyxt11 := z.Extension(z.I2Rtid(x.ForceDeadline)); yyxt11 != nil { 71421 z.EncExtension(x.ForceDeadline, yyxt11) 71422 } else if z.EncBinary() { 71423 z.EncBinaryMarshal(x.ForceDeadline) 71424 } else if !z.EncBinary() && z.IsJSONHandle() { 71425 z.EncJSONMarshal(x.ForceDeadline) 71426 } else { 71427 z.EncFallback(x.ForceDeadline) 71428 } 71429 } 71430 if yyr2 || yy2arr2 { 71431 r.WriteArrayElem() 71432 if false { 71433 } else if !z.EncBasicHandle().TimeNotBuiltin { 71434 r.EncodeTime(x.StartedAt) 71435 } else if yyxt13 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt13 != nil { 71436 z.EncExtension(x.StartedAt, yyxt13) 71437 } else if z.EncBinary() { 71438 z.EncBinaryMarshal(x.StartedAt) 71439 } else if !z.EncBinary() && z.IsJSONHandle() { 71440 z.EncJSONMarshal(x.StartedAt) 71441 } else { 71442 z.EncFallback(x.StartedAt) 71443 } 71444 } else { 71445 r.WriteMapElemKey() 71446 if z.IsJSONHandle() { 71447 z.WriteStr("\"StartedAt\"") 71448 } else { 71449 r.EncodeStringEnc(codecSelferCcUTF8100, `StartedAt`) 71450 } 71451 r.WriteMapElemValue() 71452 if false { 71453 } else if !z.EncBasicHandle().TimeNotBuiltin { 71454 r.EncodeTime(x.StartedAt) 71455 } else if yyxt14 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt14 != nil { 71456 z.EncExtension(x.StartedAt, yyxt14) 71457 } else if z.EncBinary() { 71458 z.EncBinaryMarshal(x.StartedAt) 71459 } else if !z.EncBinary() && z.IsJSONHandle() { 71460 z.EncJSONMarshal(x.StartedAt) 71461 } else { 71462 z.EncFallback(x.StartedAt) 71463 } 71464 } 71465 if yyr2 || yy2arr2 { 71466 r.WriteArrayEnd() 71467 } else { 71468 r.WriteMapEnd() 71469 } 71470 } 71471 } 71472 } 71473 71474 func (x *DrainStrategy) CodecDecodeSelf(d *codec1978.Decoder) { 71475 var h codecSelfer100 71476 z, r := codec1978.GenHelperDecoder(d) 71477 _, _, _ = h, z, r 71478 if false { 71479 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 71480 z.DecExtension(x, yyxt1) 71481 } else { 71482 yyct2 := r.ContainerType() 71483 if yyct2 == codecSelferValueTypeMap100 { 71484 yyl2 := r.ReadMapStart() 71485 if yyl2 == 0 { 71486 r.ReadMapEnd() 71487 } else { 71488 x.codecDecodeSelfFromMap(yyl2, d) 71489 } 71490 } else if yyct2 == codecSelferValueTypeArray100 { 71491 yyl2 := r.ReadArrayStart() 71492 if yyl2 == 0 { 71493 r.ReadArrayEnd() 71494 } else { 71495 x.codecDecodeSelfFromArray(yyl2, d) 71496 } 71497 } else { 71498 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 71499 } 71500 } 71501 } 71502 71503 func (x *DrainStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 71504 var h codecSelfer100 71505 z, r := codec1978.GenHelperDecoder(d) 71506 _, _, _ = h, z, r 71507 var yyhl3 bool = l >= 0 71508 for yyj3 := 0; ; yyj3++ { 71509 if yyhl3 { 71510 if yyj3 >= l { 71511 break 71512 } 71513 } else { 71514 if r.CheckBreak() { 71515 break 71516 } 71517 } 71518 r.ReadMapElemKey() 71519 yys3 := z.StringView(r.DecodeStringAsBytes()) 71520 r.ReadMapElemValue() 71521 switch yys3 { 71522 case "Deadline": 71523 if r.TryDecodeAsNil() { 71524 x.DrainSpec.Deadline = 0 71525 } else { 71526 if false { 71527 } else if yyxt5 := z.Extension(z.I2Rtid(x.Deadline)); yyxt5 != nil { 71528 z.DecExtension(x.Deadline, yyxt5) 71529 } else { 71530 x.Deadline = (time.Duration)(r.DecodeInt64()) 71531 } 71532 } 71533 case "IgnoreSystemJobs": 71534 if r.TryDecodeAsNil() { 71535 x.DrainSpec.IgnoreSystemJobs = false 71536 } else { 71537 x.IgnoreSystemJobs = (bool)(r.DecodeBool()) 71538 } 71539 case "ForceDeadline": 71540 if r.TryDecodeAsNil() { 71541 x.ForceDeadline = time.Time{} 71542 } else { 71543 if false { 71544 } else if !z.DecBasicHandle().TimeNotBuiltin { 71545 x.ForceDeadline = r.DecodeTime() 71546 } else if yyxt8 := z.Extension(z.I2Rtid(x.ForceDeadline)); yyxt8 != nil { 71547 z.DecExtension(x.ForceDeadline, yyxt8) 71548 } else if z.DecBinary() { 71549 z.DecBinaryUnmarshal(&x.ForceDeadline) 71550 } else if !z.DecBinary() && z.IsJSONHandle() { 71551 z.DecJSONUnmarshal(&x.ForceDeadline) 71552 } else { 71553 z.DecFallback(&x.ForceDeadline, false) 71554 } 71555 } 71556 case "StartedAt": 71557 if r.TryDecodeAsNil() { 71558 x.StartedAt = time.Time{} 71559 } else { 71560 if false { 71561 } else if !z.DecBasicHandle().TimeNotBuiltin { 71562 x.StartedAt = r.DecodeTime() 71563 } else if yyxt10 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt10 != nil { 71564 z.DecExtension(x.StartedAt, yyxt10) 71565 } else if z.DecBinary() { 71566 z.DecBinaryUnmarshal(&x.StartedAt) 71567 } else if !z.DecBinary() && z.IsJSONHandle() { 71568 z.DecJSONUnmarshal(&x.StartedAt) 71569 } else { 71570 z.DecFallback(&x.StartedAt, false) 71571 } 71572 } 71573 default: 71574 z.DecStructFieldNotFound(-1, yys3) 71575 } // end switch yys3 71576 } // end for yyj3 71577 r.ReadMapEnd() 71578 } 71579 71580 func (x *DrainStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 71581 var h codecSelfer100 71582 z, r := codec1978.GenHelperDecoder(d) 71583 _, _, _ = h, z, r 71584 var yyj11 int 71585 var yyb11 bool 71586 var yyhl11 bool = l >= 0 71587 yyj11++ 71588 if yyhl11 { 71589 yyb11 = yyj11 > l 71590 } else { 71591 yyb11 = r.CheckBreak() 71592 } 71593 if yyb11 { 71594 r.ReadArrayEnd() 71595 return 71596 } 71597 r.ReadArrayElem() 71598 if r.TryDecodeAsNil() { 71599 x.DrainSpec.Deadline = 0 71600 } else { 71601 if false { 71602 } else if yyxt13 := z.Extension(z.I2Rtid(x.Deadline)); yyxt13 != nil { 71603 z.DecExtension(x.Deadline, yyxt13) 71604 } else { 71605 x.Deadline = (time.Duration)(r.DecodeInt64()) 71606 } 71607 } 71608 yyj11++ 71609 if yyhl11 { 71610 yyb11 = yyj11 > l 71611 } else { 71612 yyb11 = r.CheckBreak() 71613 } 71614 if yyb11 { 71615 r.ReadArrayEnd() 71616 return 71617 } 71618 r.ReadArrayElem() 71619 if r.TryDecodeAsNil() { 71620 x.DrainSpec.IgnoreSystemJobs = false 71621 } else { 71622 x.IgnoreSystemJobs = (bool)(r.DecodeBool()) 71623 } 71624 yyj11++ 71625 if yyhl11 { 71626 yyb11 = yyj11 > l 71627 } else { 71628 yyb11 = r.CheckBreak() 71629 } 71630 if yyb11 { 71631 r.ReadArrayEnd() 71632 return 71633 } 71634 r.ReadArrayElem() 71635 if r.TryDecodeAsNil() { 71636 x.ForceDeadline = time.Time{} 71637 } else { 71638 if false { 71639 } else if !z.DecBasicHandle().TimeNotBuiltin { 71640 x.ForceDeadline = r.DecodeTime() 71641 } else if yyxt16 := z.Extension(z.I2Rtid(x.ForceDeadline)); yyxt16 != nil { 71642 z.DecExtension(x.ForceDeadline, yyxt16) 71643 } else if z.DecBinary() { 71644 z.DecBinaryUnmarshal(&x.ForceDeadline) 71645 } else if !z.DecBinary() && z.IsJSONHandle() { 71646 z.DecJSONUnmarshal(&x.ForceDeadline) 71647 } else { 71648 z.DecFallback(&x.ForceDeadline, false) 71649 } 71650 } 71651 yyj11++ 71652 if yyhl11 { 71653 yyb11 = yyj11 > l 71654 } else { 71655 yyb11 = r.CheckBreak() 71656 } 71657 if yyb11 { 71658 r.ReadArrayEnd() 71659 return 71660 } 71661 r.ReadArrayElem() 71662 if r.TryDecodeAsNil() { 71663 x.StartedAt = time.Time{} 71664 } else { 71665 if false { 71666 } else if !z.DecBasicHandle().TimeNotBuiltin { 71667 x.StartedAt = r.DecodeTime() 71668 } else if yyxt18 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt18 != nil { 71669 z.DecExtension(x.StartedAt, yyxt18) 71670 } else if z.DecBinary() { 71671 z.DecBinaryUnmarshal(&x.StartedAt) 71672 } else if !z.DecBinary() && z.IsJSONHandle() { 71673 z.DecJSONUnmarshal(&x.StartedAt) 71674 } else { 71675 z.DecFallback(&x.StartedAt, false) 71676 } 71677 } 71678 for { 71679 yyj11++ 71680 if yyhl11 { 71681 yyb11 = yyj11 > l 71682 } else { 71683 yyb11 = r.CheckBreak() 71684 } 71685 if yyb11 { 71686 break 71687 } 71688 r.ReadArrayElem() 71689 z.DecStructFieldNotFound(yyj11-1, "") 71690 } 71691 r.ReadArrayEnd() 71692 } 71693 71694 func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { 71695 var h codecSelfer100 71696 z, r := codec1978.GenHelperEncoder(e) 71697 _, _, _ = h, z, r 71698 if x == nil { 71699 r.EncodeNil() 71700 } else { 71701 if false { 71702 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 71703 z.EncExtension(x, yyxt1) 71704 } else { 71705 yysep2 := !z.EncBinary() 71706 yy2arr2 := z.EncBasicHandle().StructToArray 71707 _, _ = yysep2, yy2arr2 71708 const yyr2 bool = false // struct tag has 'toArray' 71709 if yyr2 || yy2arr2 { 71710 r.WriteArrayStart(28) 71711 } else { 71712 r.WriteMapStart(28) 71713 } 71714 if yyr2 || yy2arr2 { 71715 r.WriteArrayElem() 71716 if false { 71717 } else { 71718 if z.EncBasicHandle().StringToRaw { 71719 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 71720 } else { 71721 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 71722 } 71723 } 71724 } else { 71725 r.WriteMapElemKey() 71726 if z.IsJSONHandle() { 71727 z.WriteStr("\"ID\"") 71728 } else { 71729 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 71730 } 71731 r.WriteMapElemValue() 71732 if false { 71733 } else { 71734 if z.EncBasicHandle().StringToRaw { 71735 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 71736 } else { 71737 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 71738 } 71739 } 71740 } 71741 if yyr2 || yy2arr2 { 71742 r.WriteArrayElem() 71743 if false { 71744 } else { 71745 if z.EncBasicHandle().StringToRaw { 71746 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 71747 } else { 71748 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 71749 } 71750 } 71751 } else { 71752 r.WriteMapElemKey() 71753 if z.IsJSONHandle() { 71754 z.WriteStr("\"SecretID\"") 71755 } else { 71756 r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) 71757 } 71758 r.WriteMapElemValue() 71759 if false { 71760 } else { 71761 if z.EncBasicHandle().StringToRaw { 71762 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 71763 } else { 71764 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 71765 } 71766 } 71767 } 71768 if yyr2 || yy2arr2 { 71769 r.WriteArrayElem() 71770 if false { 71771 } else { 71772 if z.EncBasicHandle().StringToRaw { 71773 r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) 71774 } else { 71775 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) 71776 } 71777 } 71778 } else { 71779 r.WriteMapElemKey() 71780 if z.IsJSONHandle() { 71781 z.WriteStr("\"Datacenter\"") 71782 } else { 71783 r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenter`) 71784 } 71785 r.WriteMapElemValue() 71786 if false { 71787 } else { 71788 if z.EncBasicHandle().StringToRaw { 71789 r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) 71790 } else { 71791 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) 71792 } 71793 } 71794 } 71795 if yyr2 || yy2arr2 { 71796 r.WriteArrayElem() 71797 if false { 71798 } else { 71799 if z.EncBasicHandle().StringToRaw { 71800 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 71801 } else { 71802 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 71803 } 71804 } 71805 } else { 71806 r.WriteMapElemKey() 71807 if z.IsJSONHandle() { 71808 z.WriteStr("\"Name\"") 71809 } else { 71810 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 71811 } 71812 r.WriteMapElemValue() 71813 if false { 71814 } else { 71815 if z.EncBasicHandle().StringToRaw { 71816 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 71817 } else { 71818 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 71819 } 71820 } 71821 } 71822 if yyr2 || yy2arr2 { 71823 r.WriteArrayElem() 71824 if false { 71825 } else { 71826 if z.EncBasicHandle().StringToRaw { 71827 r.EncodeStringBytesRaw(z.BytesView(string(x.HTTPAddr))) 71828 } else { 71829 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HTTPAddr)) 71830 } 71831 } 71832 } else { 71833 r.WriteMapElemKey() 71834 if z.IsJSONHandle() { 71835 z.WriteStr("\"HTTPAddr\"") 71836 } else { 71837 r.EncodeStringEnc(codecSelferCcUTF8100, `HTTPAddr`) 71838 } 71839 r.WriteMapElemValue() 71840 if false { 71841 } else { 71842 if z.EncBasicHandle().StringToRaw { 71843 r.EncodeStringBytesRaw(z.BytesView(string(x.HTTPAddr))) 71844 } else { 71845 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HTTPAddr)) 71846 } 71847 } 71848 } 71849 if yyr2 || yy2arr2 { 71850 r.WriteArrayElem() 71851 if false { 71852 } else { 71853 r.EncodeBool(bool(x.TLSEnabled)) 71854 } 71855 } else { 71856 r.WriteMapElemKey() 71857 if z.IsJSONHandle() { 71858 z.WriteStr("\"TLSEnabled\"") 71859 } else { 71860 r.EncodeStringEnc(codecSelferCcUTF8100, `TLSEnabled`) 71861 } 71862 r.WriteMapElemValue() 71863 if false { 71864 } else { 71865 r.EncodeBool(bool(x.TLSEnabled)) 71866 } 71867 } 71868 if yyr2 || yy2arr2 { 71869 r.WriteArrayElem() 71870 if x.Attributes == nil { 71871 r.EncodeNil() 71872 } else { 71873 if false { 71874 } else { 71875 z.F.EncMapStringStringV(x.Attributes, e) 71876 } 71877 } 71878 } else { 71879 r.WriteMapElemKey() 71880 if z.IsJSONHandle() { 71881 z.WriteStr("\"Attributes\"") 71882 } else { 71883 r.EncodeStringEnc(codecSelferCcUTF8100, `Attributes`) 71884 } 71885 r.WriteMapElemValue() 71886 if x.Attributes == nil { 71887 r.EncodeNil() 71888 } else { 71889 if false { 71890 } else { 71891 z.F.EncMapStringStringV(x.Attributes, e) 71892 } 71893 } 71894 } 71895 var yyn24 bool 71896 if x.NodeResources == nil { 71897 yyn24 = true 71898 goto LABEL24 71899 } 71900 LABEL24: 71901 if yyr2 || yy2arr2 { 71902 if yyn24 { 71903 r.WriteArrayElem() 71904 r.EncodeNil() 71905 } else { 71906 r.WriteArrayElem() 71907 if x.NodeResources == nil { 71908 r.EncodeNil() 71909 } else { 71910 x.NodeResources.CodecEncodeSelf(e) 71911 } 71912 } 71913 } else { 71914 r.WriteMapElemKey() 71915 if z.IsJSONHandle() { 71916 z.WriteStr("\"NodeResources\"") 71917 } else { 71918 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeResources`) 71919 } 71920 r.WriteMapElemValue() 71921 if yyn24 { 71922 r.EncodeNil() 71923 } else { 71924 if x.NodeResources == nil { 71925 r.EncodeNil() 71926 } else { 71927 x.NodeResources.CodecEncodeSelf(e) 71928 } 71929 } 71930 } 71931 var yyn27 bool 71932 if x.ReservedResources == nil { 71933 yyn27 = true 71934 goto LABEL27 71935 } 71936 LABEL27: 71937 if yyr2 || yy2arr2 { 71938 if yyn27 { 71939 r.WriteArrayElem() 71940 r.EncodeNil() 71941 } else { 71942 r.WriteArrayElem() 71943 if x.ReservedResources == nil { 71944 r.EncodeNil() 71945 } else { 71946 x.ReservedResources.CodecEncodeSelf(e) 71947 } 71948 } 71949 } else { 71950 r.WriteMapElemKey() 71951 if z.IsJSONHandle() { 71952 z.WriteStr("\"ReservedResources\"") 71953 } else { 71954 r.EncodeStringEnc(codecSelferCcUTF8100, `ReservedResources`) 71955 } 71956 r.WriteMapElemValue() 71957 if yyn27 { 71958 r.EncodeNil() 71959 } else { 71960 if x.ReservedResources == nil { 71961 r.EncodeNil() 71962 } else { 71963 x.ReservedResources.CodecEncodeSelf(e) 71964 } 71965 } 71966 } 71967 var yyn30 bool 71968 if x.Resources == nil { 71969 yyn30 = true 71970 goto LABEL30 71971 } 71972 LABEL30: 71973 if yyr2 || yy2arr2 { 71974 if yyn30 { 71975 r.WriteArrayElem() 71976 r.EncodeNil() 71977 } else { 71978 r.WriteArrayElem() 71979 if x.Resources == nil { 71980 r.EncodeNil() 71981 } else { 71982 x.Resources.CodecEncodeSelf(e) 71983 } 71984 } 71985 } else { 71986 r.WriteMapElemKey() 71987 if z.IsJSONHandle() { 71988 z.WriteStr("\"Resources\"") 71989 } else { 71990 r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) 71991 } 71992 r.WriteMapElemValue() 71993 if yyn30 { 71994 r.EncodeNil() 71995 } else { 71996 if x.Resources == nil { 71997 r.EncodeNil() 71998 } else { 71999 x.Resources.CodecEncodeSelf(e) 72000 } 72001 } 72002 } 72003 var yyn33 bool 72004 if x.Reserved == nil { 72005 yyn33 = true 72006 goto LABEL33 72007 } 72008 LABEL33: 72009 if yyr2 || yy2arr2 { 72010 if yyn33 { 72011 r.WriteArrayElem() 72012 r.EncodeNil() 72013 } else { 72014 r.WriteArrayElem() 72015 if x.Reserved == nil { 72016 r.EncodeNil() 72017 } else { 72018 x.Reserved.CodecEncodeSelf(e) 72019 } 72020 } 72021 } else { 72022 r.WriteMapElemKey() 72023 if z.IsJSONHandle() { 72024 z.WriteStr("\"Reserved\"") 72025 } else { 72026 r.EncodeStringEnc(codecSelferCcUTF8100, `Reserved`) 72027 } 72028 r.WriteMapElemValue() 72029 if yyn33 { 72030 r.EncodeNil() 72031 } else { 72032 if x.Reserved == nil { 72033 r.EncodeNil() 72034 } else { 72035 x.Reserved.CodecEncodeSelf(e) 72036 } 72037 } 72038 } 72039 if yyr2 || yy2arr2 { 72040 r.WriteArrayElem() 72041 if x.Links == nil { 72042 r.EncodeNil() 72043 } else { 72044 if false { 72045 } else { 72046 z.F.EncMapStringStringV(x.Links, e) 72047 } 72048 } 72049 } else { 72050 r.WriteMapElemKey() 72051 if z.IsJSONHandle() { 72052 z.WriteStr("\"Links\"") 72053 } else { 72054 r.EncodeStringEnc(codecSelferCcUTF8100, `Links`) 72055 } 72056 r.WriteMapElemValue() 72057 if x.Links == nil { 72058 r.EncodeNil() 72059 } else { 72060 if false { 72061 } else { 72062 z.F.EncMapStringStringV(x.Links, e) 72063 } 72064 } 72065 } 72066 if yyr2 || yy2arr2 { 72067 r.WriteArrayElem() 72068 if x.Meta == nil { 72069 r.EncodeNil() 72070 } else { 72071 if false { 72072 } else { 72073 z.F.EncMapStringStringV(x.Meta, e) 72074 } 72075 } 72076 } else { 72077 r.WriteMapElemKey() 72078 if z.IsJSONHandle() { 72079 z.WriteStr("\"Meta\"") 72080 } else { 72081 r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) 72082 } 72083 r.WriteMapElemValue() 72084 if x.Meta == nil { 72085 r.EncodeNil() 72086 } else { 72087 if false { 72088 } else { 72089 z.F.EncMapStringStringV(x.Meta, e) 72090 } 72091 } 72092 } 72093 if yyr2 || yy2arr2 { 72094 r.WriteArrayElem() 72095 if false { 72096 } else { 72097 if z.EncBasicHandle().StringToRaw { 72098 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeClass))) 72099 } else { 72100 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeClass)) 72101 } 72102 } 72103 } else { 72104 r.WriteMapElemKey() 72105 if z.IsJSONHandle() { 72106 z.WriteStr("\"NodeClass\"") 72107 } else { 72108 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeClass`) 72109 } 72110 r.WriteMapElemValue() 72111 if false { 72112 } else { 72113 if z.EncBasicHandle().StringToRaw { 72114 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeClass))) 72115 } else { 72116 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeClass)) 72117 } 72118 } 72119 } 72120 if yyr2 || yy2arr2 { 72121 r.WriteArrayElem() 72122 if false { 72123 } else { 72124 if z.EncBasicHandle().StringToRaw { 72125 r.EncodeStringBytesRaw(z.BytesView(string(x.ComputedClass))) 72126 } else { 72127 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ComputedClass)) 72128 } 72129 } 72130 } else { 72131 r.WriteMapElemKey() 72132 if z.IsJSONHandle() { 72133 z.WriteStr("\"ComputedClass\"") 72134 } else { 72135 r.EncodeStringEnc(codecSelferCcUTF8100, `ComputedClass`) 72136 } 72137 r.WriteMapElemValue() 72138 if false { 72139 } else { 72140 if z.EncBasicHandle().StringToRaw { 72141 r.EncodeStringBytesRaw(z.BytesView(string(x.ComputedClass))) 72142 } else { 72143 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ComputedClass)) 72144 } 72145 } 72146 } 72147 if yyr2 || yy2arr2 { 72148 r.WriteArrayElem() 72149 if false { 72150 } else { 72151 r.EncodeBool(bool(x.Drain)) 72152 } 72153 } else { 72154 r.WriteMapElemKey() 72155 if z.IsJSONHandle() { 72156 z.WriteStr("\"Drain\"") 72157 } else { 72158 r.EncodeStringEnc(codecSelferCcUTF8100, `Drain`) 72159 } 72160 r.WriteMapElemValue() 72161 if false { 72162 } else { 72163 r.EncodeBool(bool(x.Drain)) 72164 } 72165 } 72166 var yyn51 bool 72167 if x.DrainStrategy == nil { 72168 yyn51 = true 72169 goto LABEL51 72170 } 72171 LABEL51: 72172 if yyr2 || yy2arr2 { 72173 if yyn51 { 72174 r.WriteArrayElem() 72175 r.EncodeNil() 72176 } else { 72177 r.WriteArrayElem() 72178 if x.DrainStrategy == nil { 72179 r.EncodeNil() 72180 } else { 72181 x.DrainStrategy.CodecEncodeSelf(e) 72182 } 72183 } 72184 } else { 72185 r.WriteMapElemKey() 72186 if z.IsJSONHandle() { 72187 z.WriteStr("\"DrainStrategy\"") 72188 } else { 72189 r.EncodeStringEnc(codecSelferCcUTF8100, `DrainStrategy`) 72190 } 72191 r.WriteMapElemValue() 72192 if yyn51 { 72193 r.EncodeNil() 72194 } else { 72195 if x.DrainStrategy == nil { 72196 r.EncodeNil() 72197 } else { 72198 x.DrainStrategy.CodecEncodeSelf(e) 72199 } 72200 } 72201 } 72202 if yyr2 || yy2arr2 { 72203 r.WriteArrayElem() 72204 if false { 72205 } else { 72206 if z.EncBasicHandle().StringToRaw { 72207 r.EncodeStringBytesRaw(z.BytesView(string(x.SchedulingEligibility))) 72208 } else { 72209 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SchedulingEligibility)) 72210 } 72211 } 72212 } else { 72213 r.WriteMapElemKey() 72214 if z.IsJSONHandle() { 72215 z.WriteStr("\"SchedulingEligibility\"") 72216 } else { 72217 r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulingEligibility`) 72218 } 72219 r.WriteMapElemValue() 72220 if false { 72221 } else { 72222 if z.EncBasicHandle().StringToRaw { 72223 r.EncodeStringBytesRaw(z.BytesView(string(x.SchedulingEligibility))) 72224 } else { 72225 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SchedulingEligibility)) 72226 } 72227 } 72228 } 72229 if yyr2 || yy2arr2 { 72230 r.WriteArrayElem() 72231 if false { 72232 } else { 72233 if z.EncBasicHandle().StringToRaw { 72234 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 72235 } else { 72236 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 72237 } 72238 } 72239 } else { 72240 r.WriteMapElemKey() 72241 if z.IsJSONHandle() { 72242 z.WriteStr("\"Status\"") 72243 } else { 72244 r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) 72245 } 72246 r.WriteMapElemValue() 72247 if false { 72248 } else { 72249 if z.EncBasicHandle().StringToRaw { 72250 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 72251 } else { 72252 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 72253 } 72254 } 72255 } 72256 if yyr2 || yy2arr2 { 72257 r.WriteArrayElem() 72258 if false { 72259 } else { 72260 if z.EncBasicHandle().StringToRaw { 72261 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 72262 } else { 72263 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 72264 } 72265 } 72266 } else { 72267 r.WriteMapElemKey() 72268 if z.IsJSONHandle() { 72269 z.WriteStr("\"StatusDescription\"") 72270 } else { 72271 r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) 72272 } 72273 r.WriteMapElemValue() 72274 if false { 72275 } else { 72276 if z.EncBasicHandle().StringToRaw { 72277 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 72278 } else { 72279 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 72280 } 72281 } 72282 } 72283 if yyr2 || yy2arr2 { 72284 r.WriteArrayElem() 72285 if false { 72286 } else { 72287 r.EncodeInt(int64(x.StatusUpdatedAt)) 72288 } 72289 } else { 72290 r.WriteMapElemKey() 72291 if z.IsJSONHandle() { 72292 z.WriteStr("\"StatusUpdatedAt\"") 72293 } else { 72294 r.EncodeStringEnc(codecSelferCcUTF8100, `StatusUpdatedAt`) 72295 } 72296 r.WriteMapElemValue() 72297 if false { 72298 } else { 72299 r.EncodeInt(int64(x.StatusUpdatedAt)) 72300 } 72301 } 72302 if yyr2 || yy2arr2 { 72303 r.WriteArrayElem() 72304 if x.Events == nil { 72305 r.EncodeNil() 72306 } else { 72307 if false { 72308 } else { 72309 h.encSlicePtrtoNodeEvent(([]*NodeEvent)(x.Events), e) 72310 } 72311 } 72312 } else { 72313 r.WriteMapElemKey() 72314 if z.IsJSONHandle() { 72315 z.WriteStr("\"Events\"") 72316 } else { 72317 r.EncodeStringEnc(codecSelferCcUTF8100, `Events`) 72318 } 72319 r.WriteMapElemValue() 72320 if x.Events == nil { 72321 r.EncodeNil() 72322 } else { 72323 if false { 72324 } else { 72325 h.encSlicePtrtoNodeEvent(([]*NodeEvent)(x.Events), e) 72326 } 72327 } 72328 } 72329 if yyr2 || yy2arr2 { 72330 r.WriteArrayElem() 72331 if x.Drivers == nil { 72332 r.EncodeNil() 72333 } else { 72334 if false { 72335 } else { 72336 h.encMapstringPtrtoDriverInfo((map[string]*DriverInfo)(x.Drivers), e) 72337 } 72338 } 72339 } else { 72340 r.WriteMapElemKey() 72341 if z.IsJSONHandle() { 72342 z.WriteStr("\"Drivers\"") 72343 } else { 72344 r.EncodeStringEnc(codecSelferCcUTF8100, `Drivers`) 72345 } 72346 r.WriteMapElemValue() 72347 if x.Drivers == nil { 72348 r.EncodeNil() 72349 } else { 72350 if false { 72351 } else { 72352 h.encMapstringPtrtoDriverInfo((map[string]*DriverInfo)(x.Drivers), e) 72353 } 72354 } 72355 } 72356 if yyr2 || yy2arr2 { 72357 r.WriteArrayElem() 72358 if x.CSIControllerPlugins == nil { 72359 r.EncodeNil() 72360 } else { 72361 if false { 72362 } else { 72363 h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.CSIControllerPlugins), e) 72364 } 72365 } 72366 } else { 72367 r.WriteMapElemKey() 72368 if z.IsJSONHandle() { 72369 z.WriteStr("\"CSIControllerPlugins\"") 72370 } else { 72371 r.EncodeStringEnc(codecSelferCcUTF8100, `CSIControllerPlugins`) 72372 } 72373 r.WriteMapElemValue() 72374 if x.CSIControllerPlugins == nil { 72375 r.EncodeNil() 72376 } else { 72377 if false { 72378 } else { 72379 h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.CSIControllerPlugins), e) 72380 } 72381 } 72382 } 72383 if yyr2 || yy2arr2 { 72384 r.WriteArrayElem() 72385 if x.CSINodePlugins == nil { 72386 r.EncodeNil() 72387 } else { 72388 if false { 72389 } else { 72390 h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.CSINodePlugins), e) 72391 } 72392 } 72393 } else { 72394 r.WriteMapElemKey() 72395 if z.IsJSONHandle() { 72396 z.WriteStr("\"CSINodePlugins\"") 72397 } else { 72398 r.EncodeStringEnc(codecSelferCcUTF8100, `CSINodePlugins`) 72399 } 72400 r.WriteMapElemValue() 72401 if x.CSINodePlugins == nil { 72402 r.EncodeNil() 72403 } else { 72404 if false { 72405 } else { 72406 h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.CSINodePlugins), e) 72407 } 72408 } 72409 } 72410 if yyr2 || yy2arr2 { 72411 r.WriteArrayElem() 72412 if x.HostVolumes == nil { 72413 r.EncodeNil() 72414 } else { 72415 if false { 72416 } else { 72417 h.encMapstringPtrtoClientHostVolumeConfig((map[string]*ClientHostVolumeConfig)(x.HostVolumes), e) 72418 } 72419 } 72420 } else { 72421 r.WriteMapElemKey() 72422 if z.IsJSONHandle() { 72423 z.WriteStr("\"HostVolumes\"") 72424 } else { 72425 r.EncodeStringEnc(codecSelferCcUTF8100, `HostVolumes`) 72426 } 72427 r.WriteMapElemValue() 72428 if x.HostVolumes == nil { 72429 r.EncodeNil() 72430 } else { 72431 if false { 72432 } else { 72433 h.encMapstringPtrtoClientHostVolumeConfig((map[string]*ClientHostVolumeConfig)(x.HostVolumes), e) 72434 } 72435 } 72436 } 72437 if yyr2 || yy2arr2 { 72438 r.WriteArrayElem() 72439 if false { 72440 } else { 72441 r.EncodeUint(uint64(x.CreateIndex)) 72442 } 72443 } else { 72444 r.WriteMapElemKey() 72445 if z.IsJSONHandle() { 72446 z.WriteStr("\"CreateIndex\"") 72447 } else { 72448 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 72449 } 72450 r.WriteMapElemValue() 72451 if false { 72452 } else { 72453 r.EncodeUint(uint64(x.CreateIndex)) 72454 } 72455 } 72456 if yyr2 || yy2arr2 { 72457 r.WriteArrayElem() 72458 if false { 72459 } else { 72460 r.EncodeUint(uint64(x.ModifyIndex)) 72461 } 72462 } else { 72463 r.WriteMapElemKey() 72464 if z.IsJSONHandle() { 72465 z.WriteStr("\"ModifyIndex\"") 72466 } else { 72467 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 72468 } 72469 r.WriteMapElemValue() 72470 if false { 72471 } else { 72472 r.EncodeUint(uint64(x.ModifyIndex)) 72473 } 72474 } 72475 if yyr2 || yy2arr2 { 72476 r.WriteArrayEnd() 72477 } else { 72478 r.WriteMapEnd() 72479 } 72480 } 72481 } 72482 } 72483 72484 func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { 72485 var h codecSelfer100 72486 z, r := codec1978.GenHelperDecoder(d) 72487 _, _, _ = h, z, r 72488 if false { 72489 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 72490 z.DecExtension(x, yyxt1) 72491 } else { 72492 yyct2 := r.ContainerType() 72493 if yyct2 == codecSelferValueTypeMap100 { 72494 yyl2 := r.ReadMapStart() 72495 if yyl2 == 0 { 72496 r.ReadMapEnd() 72497 } else { 72498 x.codecDecodeSelfFromMap(yyl2, d) 72499 } 72500 } else if yyct2 == codecSelferValueTypeArray100 { 72501 yyl2 := r.ReadArrayStart() 72502 if yyl2 == 0 { 72503 r.ReadArrayEnd() 72504 } else { 72505 x.codecDecodeSelfFromArray(yyl2, d) 72506 } 72507 } else { 72508 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 72509 } 72510 } 72511 } 72512 72513 func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 72514 var h codecSelfer100 72515 z, r := codec1978.GenHelperDecoder(d) 72516 _, _, _ = h, z, r 72517 var yyhl3 bool = l >= 0 72518 for yyj3 := 0; ; yyj3++ { 72519 if yyhl3 { 72520 if yyj3 >= l { 72521 break 72522 } 72523 } else { 72524 if r.CheckBreak() { 72525 break 72526 } 72527 } 72528 r.ReadMapElemKey() 72529 yys3 := z.StringView(r.DecodeStringAsBytes()) 72530 r.ReadMapElemValue() 72531 switch yys3 { 72532 case "ID": 72533 if r.TryDecodeAsNil() { 72534 x.ID = "" 72535 } else { 72536 x.ID = (string)(r.DecodeString()) 72537 } 72538 case "SecretID": 72539 if r.TryDecodeAsNil() { 72540 x.SecretID = "" 72541 } else { 72542 x.SecretID = (string)(r.DecodeString()) 72543 } 72544 case "Datacenter": 72545 if r.TryDecodeAsNil() { 72546 x.Datacenter = "" 72547 } else { 72548 x.Datacenter = (string)(r.DecodeString()) 72549 } 72550 case "Name": 72551 if r.TryDecodeAsNil() { 72552 x.Name = "" 72553 } else { 72554 x.Name = (string)(r.DecodeString()) 72555 } 72556 case "HTTPAddr": 72557 if r.TryDecodeAsNil() { 72558 x.HTTPAddr = "" 72559 } else { 72560 x.HTTPAddr = (string)(r.DecodeString()) 72561 } 72562 case "TLSEnabled": 72563 if r.TryDecodeAsNil() { 72564 x.TLSEnabled = false 72565 } else { 72566 x.TLSEnabled = (bool)(r.DecodeBool()) 72567 } 72568 case "Attributes": 72569 if r.TryDecodeAsNil() { 72570 x.Attributes = nil 72571 } else { 72572 if false { 72573 } else { 72574 z.F.DecMapStringStringX(&x.Attributes, d) 72575 } 72576 } 72577 case "NodeResources": 72578 if r.TryDecodeAsNil() { 72579 if true && x.NodeResources != nil { 72580 x.NodeResources = nil 72581 } 72582 } else { 72583 if x.NodeResources == nil { 72584 x.NodeResources = new(NodeResources) 72585 } 72586 72587 x.NodeResources.CodecDecodeSelf(d) 72588 } 72589 case "ReservedResources": 72590 if r.TryDecodeAsNil() { 72591 if true && x.ReservedResources != nil { 72592 x.ReservedResources = nil 72593 } 72594 } else { 72595 if x.ReservedResources == nil { 72596 x.ReservedResources = new(NodeReservedResources) 72597 } 72598 72599 x.ReservedResources.CodecDecodeSelf(d) 72600 } 72601 case "Resources": 72602 if r.TryDecodeAsNil() { 72603 if true && x.Resources != nil { 72604 x.Resources = nil 72605 } 72606 } else { 72607 if x.Resources == nil { 72608 x.Resources = new(Resources) 72609 } 72610 72611 x.Resources.CodecDecodeSelf(d) 72612 } 72613 case "Reserved": 72614 if r.TryDecodeAsNil() { 72615 if true && x.Reserved != nil { 72616 x.Reserved = nil 72617 } 72618 } else { 72619 if x.Reserved == nil { 72620 x.Reserved = new(Resources) 72621 } 72622 72623 x.Reserved.CodecDecodeSelf(d) 72624 } 72625 case "Links": 72626 if r.TryDecodeAsNil() { 72627 x.Links = nil 72628 } else { 72629 if false { 72630 } else { 72631 z.F.DecMapStringStringX(&x.Links, d) 72632 } 72633 } 72634 case "Meta": 72635 if r.TryDecodeAsNil() { 72636 x.Meta = nil 72637 } else { 72638 if false { 72639 } else { 72640 z.F.DecMapStringStringX(&x.Meta, d) 72641 } 72642 } 72643 case "NodeClass": 72644 if r.TryDecodeAsNil() { 72645 x.NodeClass = "" 72646 } else { 72647 x.NodeClass = (string)(r.DecodeString()) 72648 } 72649 case "ComputedClass": 72650 if r.TryDecodeAsNil() { 72651 x.ComputedClass = "" 72652 } else { 72653 x.ComputedClass = (string)(r.DecodeString()) 72654 } 72655 case "Drain": 72656 if r.TryDecodeAsNil() { 72657 x.Drain = false 72658 } else { 72659 x.Drain = (bool)(r.DecodeBool()) 72660 } 72661 case "DrainStrategy": 72662 if r.TryDecodeAsNil() { 72663 if true && x.DrainStrategy != nil { 72664 x.DrainStrategy = nil 72665 } 72666 } else { 72667 if x.DrainStrategy == nil { 72668 x.DrainStrategy = new(DrainStrategy) 72669 } 72670 72671 x.DrainStrategy.CodecDecodeSelf(d) 72672 } 72673 case "SchedulingEligibility": 72674 if r.TryDecodeAsNil() { 72675 x.SchedulingEligibility = "" 72676 } else { 72677 x.SchedulingEligibility = (string)(r.DecodeString()) 72678 } 72679 case "Status": 72680 if r.TryDecodeAsNil() { 72681 x.Status = "" 72682 } else { 72683 x.Status = (string)(r.DecodeString()) 72684 } 72685 case "StatusDescription": 72686 if r.TryDecodeAsNil() { 72687 x.StatusDescription = "" 72688 } else { 72689 x.StatusDescription = (string)(r.DecodeString()) 72690 } 72691 case "StatusUpdatedAt": 72692 if r.TryDecodeAsNil() { 72693 x.StatusUpdatedAt = 0 72694 } else { 72695 x.StatusUpdatedAt = (int64)(r.DecodeInt64()) 72696 } 72697 case "Events": 72698 if r.TryDecodeAsNil() { 72699 x.Events = nil 72700 } else { 72701 if false { 72702 } else { 72703 h.decSlicePtrtoNodeEvent((*[]*NodeEvent)(&x.Events), d) 72704 } 72705 } 72706 case "Drivers": 72707 if r.TryDecodeAsNil() { 72708 x.Drivers = nil 72709 } else { 72710 if false { 72711 } else { 72712 h.decMapstringPtrtoDriverInfo((*map[string]*DriverInfo)(&x.Drivers), d) 72713 } 72714 } 72715 case "CSIControllerPlugins": 72716 if r.TryDecodeAsNil() { 72717 x.CSIControllerPlugins = nil 72718 } else { 72719 if false { 72720 } else { 72721 h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.CSIControllerPlugins), d) 72722 } 72723 } 72724 case "CSINodePlugins": 72725 if r.TryDecodeAsNil() { 72726 x.CSINodePlugins = nil 72727 } else { 72728 if false { 72729 } else { 72730 h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.CSINodePlugins), d) 72731 } 72732 } 72733 case "HostVolumes": 72734 if r.TryDecodeAsNil() { 72735 x.HostVolumes = nil 72736 } else { 72737 if false { 72738 } else { 72739 h.decMapstringPtrtoClientHostVolumeConfig((*map[string]*ClientHostVolumeConfig)(&x.HostVolumes), d) 72740 } 72741 } 72742 case "CreateIndex": 72743 if r.TryDecodeAsNil() { 72744 x.CreateIndex = 0 72745 } else { 72746 x.CreateIndex = (uint64)(r.DecodeUint64()) 72747 } 72748 case "ModifyIndex": 72749 if r.TryDecodeAsNil() { 72750 x.ModifyIndex = 0 72751 } else { 72752 x.ModifyIndex = (uint64)(r.DecodeUint64()) 72753 } 72754 default: 72755 z.DecStructFieldNotFound(-1, yys3) 72756 } // end switch yys3 72757 } // end for yyj3 72758 r.ReadMapEnd() 72759 } 72760 72761 func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 72762 var h codecSelfer100 72763 z, r := codec1978.GenHelperDecoder(d) 72764 _, _, _ = h, z, r 72765 var yyj40 int 72766 var yyb40 bool 72767 var yyhl40 bool = l >= 0 72768 yyj40++ 72769 if yyhl40 { 72770 yyb40 = yyj40 > l 72771 } else { 72772 yyb40 = r.CheckBreak() 72773 } 72774 if yyb40 { 72775 r.ReadArrayEnd() 72776 return 72777 } 72778 r.ReadArrayElem() 72779 if r.TryDecodeAsNil() { 72780 x.ID = "" 72781 } else { 72782 x.ID = (string)(r.DecodeString()) 72783 } 72784 yyj40++ 72785 if yyhl40 { 72786 yyb40 = yyj40 > l 72787 } else { 72788 yyb40 = r.CheckBreak() 72789 } 72790 if yyb40 { 72791 r.ReadArrayEnd() 72792 return 72793 } 72794 r.ReadArrayElem() 72795 if r.TryDecodeAsNil() { 72796 x.SecretID = "" 72797 } else { 72798 x.SecretID = (string)(r.DecodeString()) 72799 } 72800 yyj40++ 72801 if yyhl40 { 72802 yyb40 = yyj40 > l 72803 } else { 72804 yyb40 = r.CheckBreak() 72805 } 72806 if yyb40 { 72807 r.ReadArrayEnd() 72808 return 72809 } 72810 r.ReadArrayElem() 72811 if r.TryDecodeAsNil() { 72812 x.Datacenter = "" 72813 } else { 72814 x.Datacenter = (string)(r.DecodeString()) 72815 } 72816 yyj40++ 72817 if yyhl40 { 72818 yyb40 = yyj40 > l 72819 } else { 72820 yyb40 = r.CheckBreak() 72821 } 72822 if yyb40 { 72823 r.ReadArrayEnd() 72824 return 72825 } 72826 r.ReadArrayElem() 72827 if r.TryDecodeAsNil() { 72828 x.Name = "" 72829 } else { 72830 x.Name = (string)(r.DecodeString()) 72831 } 72832 yyj40++ 72833 if yyhl40 { 72834 yyb40 = yyj40 > l 72835 } else { 72836 yyb40 = r.CheckBreak() 72837 } 72838 if yyb40 { 72839 r.ReadArrayEnd() 72840 return 72841 } 72842 r.ReadArrayElem() 72843 if r.TryDecodeAsNil() { 72844 x.HTTPAddr = "" 72845 } else { 72846 x.HTTPAddr = (string)(r.DecodeString()) 72847 } 72848 yyj40++ 72849 if yyhl40 { 72850 yyb40 = yyj40 > l 72851 } else { 72852 yyb40 = r.CheckBreak() 72853 } 72854 if yyb40 { 72855 r.ReadArrayEnd() 72856 return 72857 } 72858 r.ReadArrayElem() 72859 if r.TryDecodeAsNil() { 72860 x.TLSEnabled = false 72861 } else { 72862 x.TLSEnabled = (bool)(r.DecodeBool()) 72863 } 72864 yyj40++ 72865 if yyhl40 { 72866 yyb40 = yyj40 > l 72867 } else { 72868 yyb40 = r.CheckBreak() 72869 } 72870 if yyb40 { 72871 r.ReadArrayEnd() 72872 return 72873 } 72874 r.ReadArrayElem() 72875 if r.TryDecodeAsNil() { 72876 x.Attributes = nil 72877 } else { 72878 if false { 72879 } else { 72880 z.F.DecMapStringStringX(&x.Attributes, d) 72881 } 72882 } 72883 yyj40++ 72884 if yyhl40 { 72885 yyb40 = yyj40 > l 72886 } else { 72887 yyb40 = r.CheckBreak() 72888 } 72889 if yyb40 { 72890 r.ReadArrayEnd() 72891 return 72892 } 72893 r.ReadArrayElem() 72894 if r.TryDecodeAsNil() { 72895 if true && x.NodeResources != nil { 72896 x.NodeResources = nil 72897 } 72898 } else { 72899 if x.NodeResources == nil { 72900 x.NodeResources = new(NodeResources) 72901 } 72902 72903 x.NodeResources.CodecDecodeSelf(d) 72904 } 72905 yyj40++ 72906 if yyhl40 { 72907 yyb40 = yyj40 > l 72908 } else { 72909 yyb40 = r.CheckBreak() 72910 } 72911 if yyb40 { 72912 r.ReadArrayEnd() 72913 return 72914 } 72915 r.ReadArrayElem() 72916 if r.TryDecodeAsNil() { 72917 if true && x.ReservedResources != nil { 72918 x.ReservedResources = nil 72919 } 72920 } else { 72921 if x.ReservedResources == nil { 72922 x.ReservedResources = new(NodeReservedResources) 72923 } 72924 72925 x.ReservedResources.CodecDecodeSelf(d) 72926 } 72927 yyj40++ 72928 if yyhl40 { 72929 yyb40 = yyj40 > l 72930 } else { 72931 yyb40 = r.CheckBreak() 72932 } 72933 if yyb40 { 72934 r.ReadArrayEnd() 72935 return 72936 } 72937 r.ReadArrayElem() 72938 if r.TryDecodeAsNil() { 72939 if true && x.Resources != nil { 72940 x.Resources = nil 72941 } 72942 } else { 72943 if x.Resources == nil { 72944 x.Resources = new(Resources) 72945 } 72946 72947 x.Resources.CodecDecodeSelf(d) 72948 } 72949 yyj40++ 72950 if yyhl40 { 72951 yyb40 = yyj40 > l 72952 } else { 72953 yyb40 = r.CheckBreak() 72954 } 72955 if yyb40 { 72956 r.ReadArrayEnd() 72957 return 72958 } 72959 r.ReadArrayElem() 72960 if r.TryDecodeAsNil() { 72961 if true && x.Reserved != nil { 72962 x.Reserved = nil 72963 } 72964 } else { 72965 if x.Reserved == nil { 72966 x.Reserved = new(Resources) 72967 } 72968 72969 x.Reserved.CodecDecodeSelf(d) 72970 } 72971 yyj40++ 72972 if yyhl40 { 72973 yyb40 = yyj40 > l 72974 } else { 72975 yyb40 = r.CheckBreak() 72976 } 72977 if yyb40 { 72978 r.ReadArrayEnd() 72979 return 72980 } 72981 r.ReadArrayElem() 72982 if r.TryDecodeAsNil() { 72983 x.Links = nil 72984 } else { 72985 if false { 72986 } else { 72987 z.F.DecMapStringStringX(&x.Links, d) 72988 } 72989 } 72990 yyj40++ 72991 if yyhl40 { 72992 yyb40 = yyj40 > l 72993 } else { 72994 yyb40 = r.CheckBreak() 72995 } 72996 if yyb40 { 72997 r.ReadArrayEnd() 72998 return 72999 } 73000 r.ReadArrayElem() 73001 if r.TryDecodeAsNil() { 73002 x.Meta = nil 73003 } else { 73004 if false { 73005 } else { 73006 z.F.DecMapStringStringX(&x.Meta, d) 73007 } 73008 } 73009 yyj40++ 73010 if yyhl40 { 73011 yyb40 = yyj40 > l 73012 } else { 73013 yyb40 = r.CheckBreak() 73014 } 73015 if yyb40 { 73016 r.ReadArrayEnd() 73017 return 73018 } 73019 r.ReadArrayElem() 73020 if r.TryDecodeAsNil() { 73021 x.NodeClass = "" 73022 } else { 73023 x.NodeClass = (string)(r.DecodeString()) 73024 } 73025 yyj40++ 73026 if yyhl40 { 73027 yyb40 = yyj40 > l 73028 } else { 73029 yyb40 = r.CheckBreak() 73030 } 73031 if yyb40 { 73032 r.ReadArrayEnd() 73033 return 73034 } 73035 r.ReadArrayElem() 73036 if r.TryDecodeAsNil() { 73037 x.ComputedClass = "" 73038 } else { 73039 x.ComputedClass = (string)(r.DecodeString()) 73040 } 73041 yyj40++ 73042 if yyhl40 { 73043 yyb40 = yyj40 > l 73044 } else { 73045 yyb40 = r.CheckBreak() 73046 } 73047 if yyb40 { 73048 r.ReadArrayEnd() 73049 return 73050 } 73051 r.ReadArrayElem() 73052 if r.TryDecodeAsNil() { 73053 x.Drain = false 73054 } else { 73055 x.Drain = (bool)(r.DecodeBool()) 73056 } 73057 yyj40++ 73058 if yyhl40 { 73059 yyb40 = yyj40 > l 73060 } else { 73061 yyb40 = r.CheckBreak() 73062 } 73063 if yyb40 { 73064 r.ReadArrayEnd() 73065 return 73066 } 73067 r.ReadArrayElem() 73068 if r.TryDecodeAsNil() { 73069 if true && x.DrainStrategy != nil { 73070 x.DrainStrategy = nil 73071 } 73072 } else { 73073 if x.DrainStrategy == nil { 73074 x.DrainStrategy = new(DrainStrategy) 73075 } 73076 73077 x.DrainStrategy.CodecDecodeSelf(d) 73078 } 73079 yyj40++ 73080 if yyhl40 { 73081 yyb40 = yyj40 > l 73082 } else { 73083 yyb40 = r.CheckBreak() 73084 } 73085 if yyb40 { 73086 r.ReadArrayEnd() 73087 return 73088 } 73089 r.ReadArrayElem() 73090 if r.TryDecodeAsNil() { 73091 x.SchedulingEligibility = "" 73092 } else { 73093 x.SchedulingEligibility = (string)(r.DecodeString()) 73094 } 73095 yyj40++ 73096 if yyhl40 { 73097 yyb40 = yyj40 > l 73098 } else { 73099 yyb40 = r.CheckBreak() 73100 } 73101 if yyb40 { 73102 r.ReadArrayEnd() 73103 return 73104 } 73105 r.ReadArrayElem() 73106 if r.TryDecodeAsNil() { 73107 x.Status = "" 73108 } else { 73109 x.Status = (string)(r.DecodeString()) 73110 } 73111 yyj40++ 73112 if yyhl40 { 73113 yyb40 = yyj40 > l 73114 } else { 73115 yyb40 = r.CheckBreak() 73116 } 73117 if yyb40 { 73118 r.ReadArrayEnd() 73119 return 73120 } 73121 r.ReadArrayElem() 73122 if r.TryDecodeAsNil() { 73123 x.StatusDescription = "" 73124 } else { 73125 x.StatusDescription = (string)(r.DecodeString()) 73126 } 73127 yyj40++ 73128 if yyhl40 { 73129 yyb40 = yyj40 > l 73130 } else { 73131 yyb40 = r.CheckBreak() 73132 } 73133 if yyb40 { 73134 r.ReadArrayEnd() 73135 return 73136 } 73137 r.ReadArrayElem() 73138 if r.TryDecodeAsNil() { 73139 x.StatusUpdatedAt = 0 73140 } else { 73141 x.StatusUpdatedAt = (int64)(r.DecodeInt64()) 73142 } 73143 yyj40++ 73144 if yyhl40 { 73145 yyb40 = yyj40 > l 73146 } else { 73147 yyb40 = r.CheckBreak() 73148 } 73149 if yyb40 { 73150 r.ReadArrayEnd() 73151 return 73152 } 73153 r.ReadArrayElem() 73154 if r.TryDecodeAsNil() { 73155 x.Events = nil 73156 } else { 73157 if false { 73158 } else { 73159 h.decSlicePtrtoNodeEvent((*[]*NodeEvent)(&x.Events), d) 73160 } 73161 } 73162 yyj40++ 73163 if yyhl40 { 73164 yyb40 = yyj40 > l 73165 } else { 73166 yyb40 = r.CheckBreak() 73167 } 73168 if yyb40 { 73169 r.ReadArrayEnd() 73170 return 73171 } 73172 r.ReadArrayElem() 73173 if r.TryDecodeAsNil() { 73174 x.Drivers = nil 73175 } else { 73176 if false { 73177 } else { 73178 h.decMapstringPtrtoDriverInfo((*map[string]*DriverInfo)(&x.Drivers), d) 73179 } 73180 } 73181 yyj40++ 73182 if yyhl40 { 73183 yyb40 = yyj40 > l 73184 } else { 73185 yyb40 = r.CheckBreak() 73186 } 73187 if yyb40 { 73188 r.ReadArrayEnd() 73189 return 73190 } 73191 r.ReadArrayElem() 73192 if r.TryDecodeAsNil() { 73193 x.CSIControllerPlugins = nil 73194 } else { 73195 if false { 73196 } else { 73197 h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.CSIControllerPlugins), d) 73198 } 73199 } 73200 yyj40++ 73201 if yyhl40 { 73202 yyb40 = yyj40 > l 73203 } else { 73204 yyb40 = r.CheckBreak() 73205 } 73206 if yyb40 { 73207 r.ReadArrayEnd() 73208 return 73209 } 73210 r.ReadArrayElem() 73211 if r.TryDecodeAsNil() { 73212 x.CSINodePlugins = nil 73213 } else { 73214 if false { 73215 } else { 73216 h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.CSINodePlugins), d) 73217 } 73218 } 73219 yyj40++ 73220 if yyhl40 { 73221 yyb40 = yyj40 > l 73222 } else { 73223 yyb40 = r.CheckBreak() 73224 } 73225 if yyb40 { 73226 r.ReadArrayEnd() 73227 return 73228 } 73229 r.ReadArrayElem() 73230 if r.TryDecodeAsNil() { 73231 x.HostVolumes = nil 73232 } else { 73233 if false { 73234 } else { 73235 h.decMapstringPtrtoClientHostVolumeConfig((*map[string]*ClientHostVolumeConfig)(&x.HostVolumes), d) 73236 } 73237 } 73238 yyj40++ 73239 if yyhl40 { 73240 yyb40 = yyj40 > l 73241 } else { 73242 yyb40 = r.CheckBreak() 73243 } 73244 if yyb40 { 73245 r.ReadArrayEnd() 73246 return 73247 } 73248 r.ReadArrayElem() 73249 if r.TryDecodeAsNil() { 73250 x.CreateIndex = 0 73251 } else { 73252 x.CreateIndex = (uint64)(r.DecodeUint64()) 73253 } 73254 yyj40++ 73255 if yyhl40 { 73256 yyb40 = yyj40 > l 73257 } else { 73258 yyb40 = r.CheckBreak() 73259 } 73260 if yyb40 { 73261 r.ReadArrayEnd() 73262 return 73263 } 73264 r.ReadArrayElem() 73265 if r.TryDecodeAsNil() { 73266 x.ModifyIndex = 0 73267 } else { 73268 x.ModifyIndex = (uint64)(r.DecodeUint64()) 73269 } 73270 for { 73271 yyj40++ 73272 if yyhl40 { 73273 yyb40 = yyj40 > l 73274 } else { 73275 yyb40 = r.CheckBreak() 73276 } 73277 if yyb40 { 73278 break 73279 } 73280 r.ReadArrayElem() 73281 z.DecStructFieldNotFound(yyj40-1, "") 73282 } 73283 r.ReadArrayEnd() 73284 } 73285 73286 func (x *NodeListStub) CodecEncodeSelf(e *codec1978.Encoder) { 73287 var h codecSelfer100 73288 z, r := codec1978.GenHelperEncoder(e) 73289 _, _, _ = h, z, r 73290 if x == nil { 73291 r.EncodeNil() 73292 } else { 73293 if false { 73294 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 73295 z.EncExtension(x, yyxt1) 73296 } else { 73297 yysep2 := !z.EncBinary() 73298 yy2arr2 := z.EncBasicHandle().StructToArray 73299 _, _ = yysep2, yy2arr2 73300 const yyr2 bool = false // struct tag has 'toArray' 73301 if yyr2 || yy2arr2 { 73302 r.WriteArrayStart(14) 73303 } else { 73304 r.WriteMapStart(14) 73305 } 73306 if yyr2 || yy2arr2 { 73307 r.WriteArrayElem() 73308 if false { 73309 } else { 73310 if z.EncBasicHandle().StringToRaw { 73311 r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) 73312 } else { 73313 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) 73314 } 73315 } 73316 } else { 73317 r.WriteMapElemKey() 73318 if z.IsJSONHandle() { 73319 z.WriteStr("\"Address\"") 73320 } else { 73321 r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) 73322 } 73323 r.WriteMapElemValue() 73324 if false { 73325 } else { 73326 if z.EncBasicHandle().StringToRaw { 73327 r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) 73328 } else { 73329 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) 73330 } 73331 } 73332 } 73333 if yyr2 || yy2arr2 { 73334 r.WriteArrayElem() 73335 if false { 73336 } else { 73337 if z.EncBasicHandle().StringToRaw { 73338 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 73339 } else { 73340 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 73341 } 73342 } 73343 } else { 73344 r.WriteMapElemKey() 73345 if z.IsJSONHandle() { 73346 z.WriteStr("\"ID\"") 73347 } else { 73348 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 73349 } 73350 r.WriteMapElemValue() 73351 if false { 73352 } else { 73353 if z.EncBasicHandle().StringToRaw { 73354 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 73355 } else { 73356 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 73357 } 73358 } 73359 } 73360 if yyr2 || yy2arr2 { 73361 r.WriteArrayElem() 73362 if false { 73363 } else { 73364 if z.EncBasicHandle().StringToRaw { 73365 r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) 73366 } else { 73367 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) 73368 } 73369 } 73370 } else { 73371 r.WriteMapElemKey() 73372 if z.IsJSONHandle() { 73373 z.WriteStr("\"Datacenter\"") 73374 } else { 73375 r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenter`) 73376 } 73377 r.WriteMapElemValue() 73378 if false { 73379 } else { 73380 if z.EncBasicHandle().StringToRaw { 73381 r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) 73382 } else { 73383 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) 73384 } 73385 } 73386 } 73387 if yyr2 || yy2arr2 { 73388 r.WriteArrayElem() 73389 if false { 73390 } else { 73391 if z.EncBasicHandle().StringToRaw { 73392 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 73393 } else { 73394 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 73395 } 73396 } 73397 } else { 73398 r.WriteMapElemKey() 73399 if z.IsJSONHandle() { 73400 z.WriteStr("\"Name\"") 73401 } else { 73402 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 73403 } 73404 r.WriteMapElemValue() 73405 if false { 73406 } else { 73407 if z.EncBasicHandle().StringToRaw { 73408 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 73409 } else { 73410 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 73411 } 73412 } 73413 } 73414 if yyr2 || yy2arr2 { 73415 r.WriteArrayElem() 73416 if false { 73417 } else { 73418 if z.EncBasicHandle().StringToRaw { 73419 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeClass))) 73420 } else { 73421 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeClass)) 73422 } 73423 } 73424 } else { 73425 r.WriteMapElemKey() 73426 if z.IsJSONHandle() { 73427 z.WriteStr("\"NodeClass\"") 73428 } else { 73429 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeClass`) 73430 } 73431 r.WriteMapElemValue() 73432 if false { 73433 } else { 73434 if z.EncBasicHandle().StringToRaw { 73435 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeClass))) 73436 } else { 73437 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeClass)) 73438 } 73439 } 73440 } 73441 if yyr2 || yy2arr2 { 73442 r.WriteArrayElem() 73443 if false { 73444 } else { 73445 if z.EncBasicHandle().StringToRaw { 73446 r.EncodeStringBytesRaw(z.BytesView(string(x.Version))) 73447 } else { 73448 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Version)) 73449 } 73450 } 73451 } else { 73452 r.WriteMapElemKey() 73453 if z.IsJSONHandle() { 73454 z.WriteStr("\"Version\"") 73455 } else { 73456 r.EncodeStringEnc(codecSelferCcUTF8100, `Version`) 73457 } 73458 r.WriteMapElemValue() 73459 if false { 73460 } else { 73461 if z.EncBasicHandle().StringToRaw { 73462 r.EncodeStringBytesRaw(z.BytesView(string(x.Version))) 73463 } else { 73464 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Version)) 73465 } 73466 } 73467 } 73468 if yyr2 || yy2arr2 { 73469 r.WriteArrayElem() 73470 if false { 73471 } else { 73472 r.EncodeBool(bool(x.Drain)) 73473 } 73474 } else { 73475 r.WriteMapElemKey() 73476 if z.IsJSONHandle() { 73477 z.WriteStr("\"Drain\"") 73478 } else { 73479 r.EncodeStringEnc(codecSelferCcUTF8100, `Drain`) 73480 } 73481 r.WriteMapElemValue() 73482 if false { 73483 } else { 73484 r.EncodeBool(bool(x.Drain)) 73485 } 73486 } 73487 if yyr2 || yy2arr2 { 73488 r.WriteArrayElem() 73489 if false { 73490 } else { 73491 if z.EncBasicHandle().StringToRaw { 73492 r.EncodeStringBytesRaw(z.BytesView(string(x.SchedulingEligibility))) 73493 } else { 73494 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SchedulingEligibility)) 73495 } 73496 } 73497 } else { 73498 r.WriteMapElemKey() 73499 if z.IsJSONHandle() { 73500 z.WriteStr("\"SchedulingEligibility\"") 73501 } else { 73502 r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulingEligibility`) 73503 } 73504 r.WriteMapElemValue() 73505 if false { 73506 } else { 73507 if z.EncBasicHandle().StringToRaw { 73508 r.EncodeStringBytesRaw(z.BytesView(string(x.SchedulingEligibility))) 73509 } else { 73510 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SchedulingEligibility)) 73511 } 73512 } 73513 } 73514 if yyr2 || yy2arr2 { 73515 r.WriteArrayElem() 73516 if false { 73517 } else { 73518 if z.EncBasicHandle().StringToRaw { 73519 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 73520 } else { 73521 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 73522 } 73523 } 73524 } else { 73525 r.WriteMapElemKey() 73526 if z.IsJSONHandle() { 73527 z.WriteStr("\"Status\"") 73528 } else { 73529 r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) 73530 } 73531 r.WriteMapElemValue() 73532 if false { 73533 } else { 73534 if z.EncBasicHandle().StringToRaw { 73535 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 73536 } else { 73537 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 73538 } 73539 } 73540 } 73541 if yyr2 || yy2arr2 { 73542 r.WriteArrayElem() 73543 if false { 73544 } else { 73545 if z.EncBasicHandle().StringToRaw { 73546 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 73547 } else { 73548 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 73549 } 73550 } 73551 } else { 73552 r.WriteMapElemKey() 73553 if z.IsJSONHandle() { 73554 z.WriteStr("\"StatusDescription\"") 73555 } else { 73556 r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) 73557 } 73558 r.WriteMapElemValue() 73559 if false { 73560 } else { 73561 if z.EncBasicHandle().StringToRaw { 73562 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 73563 } else { 73564 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 73565 } 73566 } 73567 } 73568 if yyr2 || yy2arr2 { 73569 r.WriteArrayElem() 73570 if x.Drivers == nil { 73571 r.EncodeNil() 73572 } else { 73573 if false { 73574 } else { 73575 h.encMapstringPtrtoDriverInfo((map[string]*DriverInfo)(x.Drivers), e) 73576 } 73577 } 73578 } else { 73579 r.WriteMapElemKey() 73580 if z.IsJSONHandle() { 73581 z.WriteStr("\"Drivers\"") 73582 } else { 73583 r.EncodeStringEnc(codecSelferCcUTF8100, `Drivers`) 73584 } 73585 r.WriteMapElemValue() 73586 if x.Drivers == nil { 73587 r.EncodeNil() 73588 } else { 73589 if false { 73590 } else { 73591 h.encMapstringPtrtoDriverInfo((map[string]*DriverInfo)(x.Drivers), e) 73592 } 73593 } 73594 } 73595 if yyr2 || yy2arr2 { 73596 r.WriteArrayElem() 73597 if x.HostVolumes == nil { 73598 r.EncodeNil() 73599 } else { 73600 if false { 73601 } else { 73602 h.encMapstringPtrtoClientHostVolumeConfig((map[string]*ClientHostVolumeConfig)(x.HostVolumes), e) 73603 } 73604 } 73605 } else { 73606 r.WriteMapElemKey() 73607 if z.IsJSONHandle() { 73608 z.WriteStr("\"HostVolumes\"") 73609 } else { 73610 r.EncodeStringEnc(codecSelferCcUTF8100, `HostVolumes`) 73611 } 73612 r.WriteMapElemValue() 73613 if x.HostVolumes == nil { 73614 r.EncodeNil() 73615 } else { 73616 if false { 73617 } else { 73618 h.encMapstringPtrtoClientHostVolumeConfig((map[string]*ClientHostVolumeConfig)(x.HostVolumes), e) 73619 } 73620 } 73621 } 73622 if yyr2 || yy2arr2 { 73623 r.WriteArrayElem() 73624 if false { 73625 } else { 73626 r.EncodeUint(uint64(x.CreateIndex)) 73627 } 73628 } else { 73629 r.WriteMapElemKey() 73630 if z.IsJSONHandle() { 73631 z.WriteStr("\"CreateIndex\"") 73632 } else { 73633 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 73634 } 73635 r.WriteMapElemValue() 73636 if false { 73637 } else { 73638 r.EncodeUint(uint64(x.CreateIndex)) 73639 } 73640 } 73641 if yyr2 || yy2arr2 { 73642 r.WriteArrayElem() 73643 if false { 73644 } else { 73645 r.EncodeUint(uint64(x.ModifyIndex)) 73646 } 73647 } else { 73648 r.WriteMapElemKey() 73649 if z.IsJSONHandle() { 73650 z.WriteStr("\"ModifyIndex\"") 73651 } else { 73652 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 73653 } 73654 r.WriteMapElemValue() 73655 if false { 73656 } else { 73657 r.EncodeUint(uint64(x.ModifyIndex)) 73658 } 73659 } 73660 if yyr2 || yy2arr2 { 73661 r.WriteArrayEnd() 73662 } else { 73663 r.WriteMapEnd() 73664 } 73665 } 73666 } 73667 } 73668 73669 func (x *NodeListStub) CodecDecodeSelf(d *codec1978.Decoder) { 73670 var h codecSelfer100 73671 z, r := codec1978.GenHelperDecoder(d) 73672 _, _, _ = h, z, r 73673 if false { 73674 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 73675 z.DecExtension(x, yyxt1) 73676 } else { 73677 yyct2 := r.ContainerType() 73678 if yyct2 == codecSelferValueTypeMap100 { 73679 yyl2 := r.ReadMapStart() 73680 if yyl2 == 0 { 73681 r.ReadMapEnd() 73682 } else { 73683 x.codecDecodeSelfFromMap(yyl2, d) 73684 } 73685 } else if yyct2 == codecSelferValueTypeArray100 { 73686 yyl2 := r.ReadArrayStart() 73687 if yyl2 == 0 { 73688 r.ReadArrayEnd() 73689 } else { 73690 x.codecDecodeSelfFromArray(yyl2, d) 73691 } 73692 } else { 73693 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 73694 } 73695 } 73696 } 73697 73698 func (x *NodeListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 73699 var h codecSelfer100 73700 z, r := codec1978.GenHelperDecoder(d) 73701 _, _, _ = h, z, r 73702 var yyhl3 bool = l >= 0 73703 for yyj3 := 0; ; yyj3++ { 73704 if yyhl3 { 73705 if yyj3 >= l { 73706 break 73707 } 73708 } else { 73709 if r.CheckBreak() { 73710 break 73711 } 73712 } 73713 r.ReadMapElemKey() 73714 yys3 := z.StringView(r.DecodeStringAsBytes()) 73715 r.ReadMapElemValue() 73716 switch yys3 { 73717 case "Address": 73718 if r.TryDecodeAsNil() { 73719 x.Address = "" 73720 } else { 73721 x.Address = (string)(r.DecodeString()) 73722 } 73723 case "ID": 73724 if r.TryDecodeAsNil() { 73725 x.ID = "" 73726 } else { 73727 x.ID = (string)(r.DecodeString()) 73728 } 73729 case "Datacenter": 73730 if r.TryDecodeAsNil() { 73731 x.Datacenter = "" 73732 } else { 73733 x.Datacenter = (string)(r.DecodeString()) 73734 } 73735 case "Name": 73736 if r.TryDecodeAsNil() { 73737 x.Name = "" 73738 } else { 73739 x.Name = (string)(r.DecodeString()) 73740 } 73741 case "NodeClass": 73742 if r.TryDecodeAsNil() { 73743 x.NodeClass = "" 73744 } else { 73745 x.NodeClass = (string)(r.DecodeString()) 73746 } 73747 case "Version": 73748 if r.TryDecodeAsNil() { 73749 x.Version = "" 73750 } else { 73751 x.Version = (string)(r.DecodeString()) 73752 } 73753 case "Drain": 73754 if r.TryDecodeAsNil() { 73755 x.Drain = false 73756 } else { 73757 x.Drain = (bool)(r.DecodeBool()) 73758 } 73759 case "SchedulingEligibility": 73760 if r.TryDecodeAsNil() { 73761 x.SchedulingEligibility = "" 73762 } else { 73763 x.SchedulingEligibility = (string)(r.DecodeString()) 73764 } 73765 case "Status": 73766 if r.TryDecodeAsNil() { 73767 x.Status = "" 73768 } else { 73769 x.Status = (string)(r.DecodeString()) 73770 } 73771 case "StatusDescription": 73772 if r.TryDecodeAsNil() { 73773 x.StatusDescription = "" 73774 } else { 73775 x.StatusDescription = (string)(r.DecodeString()) 73776 } 73777 case "Drivers": 73778 if r.TryDecodeAsNil() { 73779 x.Drivers = nil 73780 } else { 73781 if false { 73782 } else { 73783 h.decMapstringPtrtoDriverInfo((*map[string]*DriverInfo)(&x.Drivers), d) 73784 } 73785 } 73786 case "HostVolumes": 73787 if r.TryDecodeAsNil() { 73788 x.HostVolumes = nil 73789 } else { 73790 if false { 73791 } else { 73792 h.decMapstringPtrtoClientHostVolumeConfig((*map[string]*ClientHostVolumeConfig)(&x.HostVolumes), d) 73793 } 73794 } 73795 case "CreateIndex": 73796 if r.TryDecodeAsNil() { 73797 x.CreateIndex = 0 73798 } else { 73799 x.CreateIndex = (uint64)(r.DecodeUint64()) 73800 } 73801 case "ModifyIndex": 73802 if r.TryDecodeAsNil() { 73803 x.ModifyIndex = 0 73804 } else { 73805 x.ModifyIndex = (uint64)(r.DecodeUint64()) 73806 } 73807 default: 73808 z.DecStructFieldNotFound(-1, yys3) 73809 } // end switch yys3 73810 } // end for yyj3 73811 r.ReadMapEnd() 73812 } 73813 73814 func (x *NodeListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 73815 var h codecSelfer100 73816 z, r := codec1978.GenHelperDecoder(d) 73817 _, _, _ = h, z, r 73818 var yyj20 int 73819 var yyb20 bool 73820 var yyhl20 bool = l >= 0 73821 yyj20++ 73822 if yyhl20 { 73823 yyb20 = yyj20 > l 73824 } else { 73825 yyb20 = r.CheckBreak() 73826 } 73827 if yyb20 { 73828 r.ReadArrayEnd() 73829 return 73830 } 73831 r.ReadArrayElem() 73832 if r.TryDecodeAsNil() { 73833 x.Address = "" 73834 } else { 73835 x.Address = (string)(r.DecodeString()) 73836 } 73837 yyj20++ 73838 if yyhl20 { 73839 yyb20 = yyj20 > l 73840 } else { 73841 yyb20 = r.CheckBreak() 73842 } 73843 if yyb20 { 73844 r.ReadArrayEnd() 73845 return 73846 } 73847 r.ReadArrayElem() 73848 if r.TryDecodeAsNil() { 73849 x.ID = "" 73850 } else { 73851 x.ID = (string)(r.DecodeString()) 73852 } 73853 yyj20++ 73854 if yyhl20 { 73855 yyb20 = yyj20 > l 73856 } else { 73857 yyb20 = r.CheckBreak() 73858 } 73859 if yyb20 { 73860 r.ReadArrayEnd() 73861 return 73862 } 73863 r.ReadArrayElem() 73864 if r.TryDecodeAsNil() { 73865 x.Datacenter = "" 73866 } else { 73867 x.Datacenter = (string)(r.DecodeString()) 73868 } 73869 yyj20++ 73870 if yyhl20 { 73871 yyb20 = yyj20 > l 73872 } else { 73873 yyb20 = r.CheckBreak() 73874 } 73875 if yyb20 { 73876 r.ReadArrayEnd() 73877 return 73878 } 73879 r.ReadArrayElem() 73880 if r.TryDecodeAsNil() { 73881 x.Name = "" 73882 } else { 73883 x.Name = (string)(r.DecodeString()) 73884 } 73885 yyj20++ 73886 if yyhl20 { 73887 yyb20 = yyj20 > l 73888 } else { 73889 yyb20 = r.CheckBreak() 73890 } 73891 if yyb20 { 73892 r.ReadArrayEnd() 73893 return 73894 } 73895 r.ReadArrayElem() 73896 if r.TryDecodeAsNil() { 73897 x.NodeClass = "" 73898 } else { 73899 x.NodeClass = (string)(r.DecodeString()) 73900 } 73901 yyj20++ 73902 if yyhl20 { 73903 yyb20 = yyj20 > l 73904 } else { 73905 yyb20 = r.CheckBreak() 73906 } 73907 if yyb20 { 73908 r.ReadArrayEnd() 73909 return 73910 } 73911 r.ReadArrayElem() 73912 if r.TryDecodeAsNil() { 73913 x.Version = "" 73914 } else { 73915 x.Version = (string)(r.DecodeString()) 73916 } 73917 yyj20++ 73918 if yyhl20 { 73919 yyb20 = yyj20 > l 73920 } else { 73921 yyb20 = r.CheckBreak() 73922 } 73923 if yyb20 { 73924 r.ReadArrayEnd() 73925 return 73926 } 73927 r.ReadArrayElem() 73928 if r.TryDecodeAsNil() { 73929 x.Drain = false 73930 } else { 73931 x.Drain = (bool)(r.DecodeBool()) 73932 } 73933 yyj20++ 73934 if yyhl20 { 73935 yyb20 = yyj20 > l 73936 } else { 73937 yyb20 = r.CheckBreak() 73938 } 73939 if yyb20 { 73940 r.ReadArrayEnd() 73941 return 73942 } 73943 r.ReadArrayElem() 73944 if r.TryDecodeAsNil() { 73945 x.SchedulingEligibility = "" 73946 } else { 73947 x.SchedulingEligibility = (string)(r.DecodeString()) 73948 } 73949 yyj20++ 73950 if yyhl20 { 73951 yyb20 = yyj20 > l 73952 } else { 73953 yyb20 = r.CheckBreak() 73954 } 73955 if yyb20 { 73956 r.ReadArrayEnd() 73957 return 73958 } 73959 r.ReadArrayElem() 73960 if r.TryDecodeAsNil() { 73961 x.Status = "" 73962 } else { 73963 x.Status = (string)(r.DecodeString()) 73964 } 73965 yyj20++ 73966 if yyhl20 { 73967 yyb20 = yyj20 > l 73968 } else { 73969 yyb20 = r.CheckBreak() 73970 } 73971 if yyb20 { 73972 r.ReadArrayEnd() 73973 return 73974 } 73975 r.ReadArrayElem() 73976 if r.TryDecodeAsNil() { 73977 x.StatusDescription = "" 73978 } else { 73979 x.StatusDescription = (string)(r.DecodeString()) 73980 } 73981 yyj20++ 73982 if yyhl20 { 73983 yyb20 = yyj20 > l 73984 } else { 73985 yyb20 = r.CheckBreak() 73986 } 73987 if yyb20 { 73988 r.ReadArrayEnd() 73989 return 73990 } 73991 r.ReadArrayElem() 73992 if r.TryDecodeAsNil() { 73993 x.Drivers = nil 73994 } else { 73995 if false { 73996 } else { 73997 h.decMapstringPtrtoDriverInfo((*map[string]*DriverInfo)(&x.Drivers), d) 73998 } 73999 } 74000 yyj20++ 74001 if yyhl20 { 74002 yyb20 = yyj20 > l 74003 } else { 74004 yyb20 = r.CheckBreak() 74005 } 74006 if yyb20 { 74007 r.ReadArrayEnd() 74008 return 74009 } 74010 r.ReadArrayElem() 74011 if r.TryDecodeAsNil() { 74012 x.HostVolumes = nil 74013 } else { 74014 if false { 74015 } else { 74016 h.decMapstringPtrtoClientHostVolumeConfig((*map[string]*ClientHostVolumeConfig)(&x.HostVolumes), d) 74017 } 74018 } 74019 yyj20++ 74020 if yyhl20 { 74021 yyb20 = yyj20 > l 74022 } else { 74023 yyb20 = r.CheckBreak() 74024 } 74025 if yyb20 { 74026 r.ReadArrayEnd() 74027 return 74028 } 74029 r.ReadArrayElem() 74030 if r.TryDecodeAsNil() { 74031 x.CreateIndex = 0 74032 } else { 74033 x.CreateIndex = (uint64)(r.DecodeUint64()) 74034 } 74035 yyj20++ 74036 if yyhl20 { 74037 yyb20 = yyj20 > l 74038 } else { 74039 yyb20 = r.CheckBreak() 74040 } 74041 if yyb20 { 74042 r.ReadArrayEnd() 74043 return 74044 } 74045 r.ReadArrayElem() 74046 if r.TryDecodeAsNil() { 74047 x.ModifyIndex = 0 74048 } else { 74049 x.ModifyIndex = (uint64)(r.DecodeUint64()) 74050 } 74051 for { 74052 yyj20++ 74053 if yyhl20 { 74054 yyb20 = yyj20 > l 74055 } else { 74056 yyb20 = r.CheckBreak() 74057 } 74058 if yyb20 { 74059 break 74060 } 74061 r.ReadArrayElem() 74062 z.DecStructFieldNotFound(yyj20-1, "") 74063 } 74064 r.ReadArrayEnd() 74065 } 74066 74067 func (x *Resources) CodecEncodeSelf(e *codec1978.Encoder) { 74068 var h codecSelfer100 74069 z, r := codec1978.GenHelperEncoder(e) 74070 _, _, _ = h, z, r 74071 if x == nil { 74072 r.EncodeNil() 74073 } else { 74074 if false { 74075 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 74076 z.EncExtension(x, yyxt1) 74077 } else { 74078 yysep2 := !z.EncBinary() 74079 yy2arr2 := z.EncBasicHandle().StructToArray 74080 _, _ = yysep2, yy2arr2 74081 const yyr2 bool = false // struct tag has 'toArray' 74082 if yyr2 || yy2arr2 { 74083 r.WriteArrayStart(6) 74084 } else { 74085 r.WriteMapStart(6) 74086 } 74087 if yyr2 || yy2arr2 { 74088 r.WriteArrayElem() 74089 if false { 74090 } else { 74091 r.EncodeInt(int64(x.CPU)) 74092 } 74093 } else { 74094 r.WriteMapElemKey() 74095 if z.IsJSONHandle() { 74096 z.WriteStr("\"CPU\"") 74097 } else { 74098 r.EncodeStringEnc(codecSelferCcUTF8100, `CPU`) 74099 } 74100 r.WriteMapElemValue() 74101 if false { 74102 } else { 74103 r.EncodeInt(int64(x.CPU)) 74104 } 74105 } 74106 if yyr2 || yy2arr2 { 74107 r.WriteArrayElem() 74108 if false { 74109 } else { 74110 r.EncodeInt(int64(x.MemoryMB)) 74111 } 74112 } else { 74113 r.WriteMapElemKey() 74114 if z.IsJSONHandle() { 74115 z.WriteStr("\"MemoryMB\"") 74116 } else { 74117 r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryMB`) 74118 } 74119 r.WriteMapElemValue() 74120 if false { 74121 } else { 74122 r.EncodeInt(int64(x.MemoryMB)) 74123 } 74124 } 74125 if yyr2 || yy2arr2 { 74126 r.WriteArrayElem() 74127 if false { 74128 } else { 74129 r.EncodeInt(int64(x.DiskMB)) 74130 } 74131 } else { 74132 r.WriteMapElemKey() 74133 if z.IsJSONHandle() { 74134 z.WriteStr("\"DiskMB\"") 74135 } else { 74136 r.EncodeStringEnc(codecSelferCcUTF8100, `DiskMB`) 74137 } 74138 r.WriteMapElemValue() 74139 if false { 74140 } else { 74141 r.EncodeInt(int64(x.DiskMB)) 74142 } 74143 } 74144 if yyr2 || yy2arr2 { 74145 r.WriteArrayElem() 74146 if false { 74147 } else { 74148 r.EncodeInt(int64(x.IOPS)) 74149 } 74150 } else { 74151 r.WriteMapElemKey() 74152 if z.IsJSONHandle() { 74153 z.WriteStr("\"IOPS\"") 74154 } else { 74155 r.EncodeStringEnc(codecSelferCcUTF8100, `IOPS`) 74156 } 74157 r.WriteMapElemValue() 74158 if false { 74159 } else { 74160 r.EncodeInt(int64(x.IOPS)) 74161 } 74162 } 74163 if yyr2 || yy2arr2 { 74164 r.WriteArrayElem() 74165 if x.Networks == nil { 74166 r.EncodeNil() 74167 } else { 74168 x.Networks.CodecEncodeSelf(e) 74169 } 74170 } else { 74171 r.WriteMapElemKey() 74172 if z.IsJSONHandle() { 74173 z.WriteStr("\"Networks\"") 74174 } else { 74175 r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) 74176 } 74177 r.WriteMapElemValue() 74178 if x.Networks == nil { 74179 r.EncodeNil() 74180 } else { 74181 x.Networks.CodecEncodeSelf(e) 74182 } 74183 } 74184 if yyr2 || yy2arr2 { 74185 r.WriteArrayElem() 74186 if x.Devices == nil { 74187 r.EncodeNil() 74188 } else { 74189 x.Devices.CodecEncodeSelf(e) 74190 } 74191 } else { 74192 r.WriteMapElemKey() 74193 if z.IsJSONHandle() { 74194 z.WriteStr("\"Devices\"") 74195 } else { 74196 r.EncodeStringEnc(codecSelferCcUTF8100, `Devices`) 74197 } 74198 r.WriteMapElemValue() 74199 if x.Devices == nil { 74200 r.EncodeNil() 74201 } else { 74202 x.Devices.CodecEncodeSelf(e) 74203 } 74204 } 74205 if yyr2 || yy2arr2 { 74206 r.WriteArrayEnd() 74207 } else { 74208 r.WriteMapEnd() 74209 } 74210 } 74211 } 74212 } 74213 74214 func (x *Resources) CodecDecodeSelf(d *codec1978.Decoder) { 74215 var h codecSelfer100 74216 z, r := codec1978.GenHelperDecoder(d) 74217 _, _, _ = h, z, r 74218 if false { 74219 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 74220 z.DecExtension(x, yyxt1) 74221 } else { 74222 yyct2 := r.ContainerType() 74223 if yyct2 == codecSelferValueTypeMap100 { 74224 yyl2 := r.ReadMapStart() 74225 if yyl2 == 0 { 74226 r.ReadMapEnd() 74227 } else { 74228 x.codecDecodeSelfFromMap(yyl2, d) 74229 } 74230 } else if yyct2 == codecSelferValueTypeArray100 { 74231 yyl2 := r.ReadArrayStart() 74232 if yyl2 == 0 { 74233 r.ReadArrayEnd() 74234 } else { 74235 x.codecDecodeSelfFromArray(yyl2, d) 74236 } 74237 } else { 74238 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 74239 } 74240 } 74241 } 74242 74243 func (x *Resources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 74244 var h codecSelfer100 74245 z, r := codec1978.GenHelperDecoder(d) 74246 _, _, _ = h, z, r 74247 var yyhl3 bool = l >= 0 74248 for yyj3 := 0; ; yyj3++ { 74249 if yyhl3 { 74250 if yyj3 >= l { 74251 break 74252 } 74253 } else { 74254 if r.CheckBreak() { 74255 break 74256 } 74257 } 74258 r.ReadMapElemKey() 74259 yys3 := z.StringView(r.DecodeStringAsBytes()) 74260 r.ReadMapElemValue() 74261 switch yys3 { 74262 case "CPU": 74263 if r.TryDecodeAsNil() { 74264 x.CPU = 0 74265 } else { 74266 x.CPU = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 74267 } 74268 case "MemoryMB": 74269 if r.TryDecodeAsNil() { 74270 x.MemoryMB = 0 74271 } else { 74272 x.MemoryMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 74273 } 74274 case "DiskMB": 74275 if r.TryDecodeAsNil() { 74276 x.DiskMB = 0 74277 } else { 74278 x.DiskMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 74279 } 74280 case "IOPS": 74281 if r.TryDecodeAsNil() { 74282 x.IOPS = 0 74283 } else { 74284 x.IOPS = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 74285 } 74286 case "Networks": 74287 if r.TryDecodeAsNil() { 74288 x.Networks = nil 74289 } else { 74290 x.Networks.CodecDecodeSelf(d) 74291 } 74292 case "Devices": 74293 if r.TryDecodeAsNil() { 74294 x.Devices = nil 74295 } else { 74296 x.Devices.CodecDecodeSelf(d) 74297 } 74298 default: 74299 z.DecStructFieldNotFound(-1, yys3) 74300 } // end switch yys3 74301 } // end for yyj3 74302 r.ReadMapEnd() 74303 } 74304 74305 func (x *Resources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 74306 var h codecSelfer100 74307 z, r := codec1978.GenHelperDecoder(d) 74308 _, _, _ = h, z, r 74309 var yyj10 int 74310 var yyb10 bool 74311 var yyhl10 bool = l >= 0 74312 yyj10++ 74313 if yyhl10 { 74314 yyb10 = yyj10 > l 74315 } else { 74316 yyb10 = r.CheckBreak() 74317 } 74318 if yyb10 { 74319 r.ReadArrayEnd() 74320 return 74321 } 74322 r.ReadArrayElem() 74323 if r.TryDecodeAsNil() { 74324 x.CPU = 0 74325 } else { 74326 x.CPU = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 74327 } 74328 yyj10++ 74329 if yyhl10 { 74330 yyb10 = yyj10 > l 74331 } else { 74332 yyb10 = r.CheckBreak() 74333 } 74334 if yyb10 { 74335 r.ReadArrayEnd() 74336 return 74337 } 74338 r.ReadArrayElem() 74339 if r.TryDecodeAsNil() { 74340 x.MemoryMB = 0 74341 } else { 74342 x.MemoryMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 74343 } 74344 yyj10++ 74345 if yyhl10 { 74346 yyb10 = yyj10 > l 74347 } else { 74348 yyb10 = r.CheckBreak() 74349 } 74350 if yyb10 { 74351 r.ReadArrayEnd() 74352 return 74353 } 74354 r.ReadArrayElem() 74355 if r.TryDecodeAsNil() { 74356 x.DiskMB = 0 74357 } else { 74358 x.DiskMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 74359 } 74360 yyj10++ 74361 if yyhl10 { 74362 yyb10 = yyj10 > l 74363 } else { 74364 yyb10 = r.CheckBreak() 74365 } 74366 if yyb10 { 74367 r.ReadArrayEnd() 74368 return 74369 } 74370 r.ReadArrayElem() 74371 if r.TryDecodeAsNil() { 74372 x.IOPS = 0 74373 } else { 74374 x.IOPS = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 74375 } 74376 yyj10++ 74377 if yyhl10 { 74378 yyb10 = yyj10 > l 74379 } else { 74380 yyb10 = r.CheckBreak() 74381 } 74382 if yyb10 { 74383 r.ReadArrayEnd() 74384 return 74385 } 74386 r.ReadArrayElem() 74387 if r.TryDecodeAsNil() { 74388 x.Networks = nil 74389 } else { 74390 x.Networks.CodecDecodeSelf(d) 74391 } 74392 yyj10++ 74393 if yyhl10 { 74394 yyb10 = yyj10 > l 74395 } else { 74396 yyb10 = r.CheckBreak() 74397 } 74398 if yyb10 { 74399 r.ReadArrayEnd() 74400 return 74401 } 74402 r.ReadArrayElem() 74403 if r.TryDecodeAsNil() { 74404 x.Devices = nil 74405 } else { 74406 x.Devices.CodecDecodeSelf(d) 74407 } 74408 for { 74409 yyj10++ 74410 if yyhl10 { 74411 yyb10 = yyj10 > l 74412 } else { 74413 yyb10 = r.CheckBreak() 74414 } 74415 if yyb10 { 74416 break 74417 } 74418 r.ReadArrayElem() 74419 z.DecStructFieldNotFound(yyj10-1, "") 74420 } 74421 r.ReadArrayEnd() 74422 } 74423 74424 func (x ResourceDevices) CodecEncodeSelf(e *codec1978.Encoder) { 74425 var h codecSelfer100 74426 z, r := codec1978.GenHelperEncoder(e) 74427 _, _, _ = h, z, r 74428 if x == nil { 74429 r.EncodeNil() 74430 } else { 74431 if false { 74432 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 74433 z.EncExtension(x, yyxt1) 74434 } else { 74435 h.encResourceDevices((ResourceDevices)(x), e) 74436 } 74437 } 74438 } 74439 74440 func (x *ResourceDevices) CodecDecodeSelf(d *codec1978.Decoder) { 74441 var h codecSelfer100 74442 z, r := codec1978.GenHelperDecoder(d) 74443 _, _, _ = h, z, r 74444 if false { 74445 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 74446 z.DecExtension(x, yyxt1) 74447 } else { 74448 h.decResourceDevices((*ResourceDevices)(x), d) 74449 } 74450 } 74451 74452 func (x *Port) CodecEncodeSelf(e *codec1978.Encoder) { 74453 var h codecSelfer100 74454 z, r := codec1978.GenHelperEncoder(e) 74455 _, _, _ = h, z, r 74456 if x == nil { 74457 r.EncodeNil() 74458 } else { 74459 if false { 74460 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 74461 z.EncExtension(x, yyxt1) 74462 } else { 74463 yysep2 := !z.EncBinary() 74464 yy2arr2 := z.EncBasicHandle().StructToArray 74465 _, _ = yysep2, yy2arr2 74466 const yyr2 bool = false // struct tag has 'toArray' 74467 if yyr2 || yy2arr2 { 74468 r.WriteArrayStart(3) 74469 } else { 74470 r.WriteMapStart(3) 74471 } 74472 if yyr2 || yy2arr2 { 74473 r.WriteArrayElem() 74474 if false { 74475 } else { 74476 if z.EncBasicHandle().StringToRaw { 74477 r.EncodeStringBytesRaw(z.BytesView(string(x.Label))) 74478 } else { 74479 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Label)) 74480 } 74481 } 74482 } else { 74483 r.WriteMapElemKey() 74484 if z.IsJSONHandle() { 74485 z.WriteStr("\"Label\"") 74486 } else { 74487 r.EncodeStringEnc(codecSelferCcUTF8100, `Label`) 74488 } 74489 r.WriteMapElemValue() 74490 if false { 74491 } else { 74492 if z.EncBasicHandle().StringToRaw { 74493 r.EncodeStringBytesRaw(z.BytesView(string(x.Label))) 74494 } else { 74495 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Label)) 74496 } 74497 } 74498 } 74499 if yyr2 || yy2arr2 { 74500 r.WriteArrayElem() 74501 if false { 74502 } else { 74503 r.EncodeInt(int64(x.Value)) 74504 } 74505 } else { 74506 r.WriteMapElemKey() 74507 if z.IsJSONHandle() { 74508 z.WriteStr("\"Value\"") 74509 } else { 74510 r.EncodeStringEnc(codecSelferCcUTF8100, `Value`) 74511 } 74512 r.WriteMapElemValue() 74513 if false { 74514 } else { 74515 r.EncodeInt(int64(x.Value)) 74516 } 74517 } 74518 if yyr2 || yy2arr2 { 74519 r.WriteArrayElem() 74520 if false { 74521 } else { 74522 r.EncodeInt(int64(x.To)) 74523 } 74524 } else { 74525 r.WriteMapElemKey() 74526 if z.IsJSONHandle() { 74527 z.WriteStr("\"To\"") 74528 } else { 74529 r.EncodeStringEnc(codecSelferCcUTF8100, `To`) 74530 } 74531 r.WriteMapElemValue() 74532 if false { 74533 } else { 74534 r.EncodeInt(int64(x.To)) 74535 } 74536 } 74537 if yyr2 || yy2arr2 { 74538 r.WriteArrayEnd() 74539 } else { 74540 r.WriteMapEnd() 74541 } 74542 } 74543 } 74544 } 74545 74546 func (x *Port) CodecDecodeSelf(d *codec1978.Decoder) { 74547 var h codecSelfer100 74548 z, r := codec1978.GenHelperDecoder(d) 74549 _, _, _ = h, z, r 74550 if false { 74551 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 74552 z.DecExtension(x, yyxt1) 74553 } else { 74554 yyct2 := r.ContainerType() 74555 if yyct2 == codecSelferValueTypeMap100 { 74556 yyl2 := r.ReadMapStart() 74557 if yyl2 == 0 { 74558 r.ReadMapEnd() 74559 } else { 74560 x.codecDecodeSelfFromMap(yyl2, d) 74561 } 74562 } else if yyct2 == codecSelferValueTypeArray100 { 74563 yyl2 := r.ReadArrayStart() 74564 if yyl2 == 0 { 74565 r.ReadArrayEnd() 74566 } else { 74567 x.codecDecodeSelfFromArray(yyl2, d) 74568 } 74569 } else { 74570 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 74571 } 74572 } 74573 } 74574 74575 func (x *Port) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 74576 var h codecSelfer100 74577 z, r := codec1978.GenHelperDecoder(d) 74578 _, _, _ = h, z, r 74579 var yyhl3 bool = l >= 0 74580 for yyj3 := 0; ; yyj3++ { 74581 if yyhl3 { 74582 if yyj3 >= l { 74583 break 74584 } 74585 } else { 74586 if r.CheckBreak() { 74587 break 74588 } 74589 } 74590 r.ReadMapElemKey() 74591 yys3 := z.StringView(r.DecodeStringAsBytes()) 74592 r.ReadMapElemValue() 74593 switch yys3 { 74594 case "Label": 74595 if r.TryDecodeAsNil() { 74596 x.Label = "" 74597 } else { 74598 x.Label = (string)(r.DecodeString()) 74599 } 74600 case "Value": 74601 if r.TryDecodeAsNil() { 74602 x.Value = 0 74603 } else { 74604 x.Value = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 74605 } 74606 case "To": 74607 if r.TryDecodeAsNil() { 74608 x.To = 0 74609 } else { 74610 x.To = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 74611 } 74612 default: 74613 z.DecStructFieldNotFound(-1, yys3) 74614 } // end switch yys3 74615 } // end for yyj3 74616 r.ReadMapEnd() 74617 } 74618 74619 func (x *Port) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 74620 var h codecSelfer100 74621 z, r := codec1978.GenHelperDecoder(d) 74622 _, _, _ = h, z, r 74623 var yyj7 int 74624 var yyb7 bool 74625 var yyhl7 bool = l >= 0 74626 yyj7++ 74627 if yyhl7 { 74628 yyb7 = yyj7 > l 74629 } else { 74630 yyb7 = r.CheckBreak() 74631 } 74632 if yyb7 { 74633 r.ReadArrayEnd() 74634 return 74635 } 74636 r.ReadArrayElem() 74637 if r.TryDecodeAsNil() { 74638 x.Label = "" 74639 } else { 74640 x.Label = (string)(r.DecodeString()) 74641 } 74642 yyj7++ 74643 if yyhl7 { 74644 yyb7 = yyj7 > l 74645 } else { 74646 yyb7 = r.CheckBreak() 74647 } 74648 if yyb7 { 74649 r.ReadArrayEnd() 74650 return 74651 } 74652 r.ReadArrayElem() 74653 if r.TryDecodeAsNil() { 74654 x.Value = 0 74655 } else { 74656 x.Value = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 74657 } 74658 yyj7++ 74659 if yyhl7 { 74660 yyb7 = yyj7 > l 74661 } else { 74662 yyb7 = r.CheckBreak() 74663 } 74664 if yyb7 { 74665 r.ReadArrayEnd() 74666 return 74667 } 74668 r.ReadArrayElem() 74669 if r.TryDecodeAsNil() { 74670 x.To = 0 74671 } else { 74672 x.To = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 74673 } 74674 for { 74675 yyj7++ 74676 if yyhl7 { 74677 yyb7 = yyj7 > l 74678 } else { 74679 yyb7 = r.CheckBreak() 74680 } 74681 if yyb7 { 74682 break 74683 } 74684 r.ReadArrayElem() 74685 z.DecStructFieldNotFound(yyj7-1, "") 74686 } 74687 r.ReadArrayEnd() 74688 } 74689 74690 func (x *NetworkResource) CodecEncodeSelf(e *codec1978.Encoder) { 74691 var h codecSelfer100 74692 z, r := codec1978.GenHelperEncoder(e) 74693 _, _, _ = h, z, r 74694 if x == nil { 74695 r.EncodeNil() 74696 } else { 74697 if false { 74698 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 74699 z.EncExtension(x, yyxt1) 74700 } else { 74701 yysep2 := !z.EncBinary() 74702 yy2arr2 := z.EncBasicHandle().StructToArray 74703 _, _ = yysep2, yy2arr2 74704 const yyr2 bool = false // struct tag has 'toArray' 74705 if yyr2 || yy2arr2 { 74706 r.WriteArrayStart(7) 74707 } else { 74708 r.WriteMapStart(7) 74709 } 74710 if yyr2 || yy2arr2 { 74711 r.WriteArrayElem() 74712 if false { 74713 } else { 74714 if z.EncBasicHandle().StringToRaw { 74715 r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) 74716 } else { 74717 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) 74718 } 74719 } 74720 } else { 74721 r.WriteMapElemKey() 74722 if z.IsJSONHandle() { 74723 z.WriteStr("\"Mode\"") 74724 } else { 74725 r.EncodeStringEnc(codecSelferCcUTF8100, `Mode`) 74726 } 74727 r.WriteMapElemValue() 74728 if false { 74729 } else { 74730 if z.EncBasicHandle().StringToRaw { 74731 r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) 74732 } else { 74733 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) 74734 } 74735 } 74736 } 74737 if yyr2 || yy2arr2 { 74738 r.WriteArrayElem() 74739 if false { 74740 } else { 74741 if z.EncBasicHandle().StringToRaw { 74742 r.EncodeStringBytesRaw(z.BytesView(string(x.Device))) 74743 } else { 74744 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Device)) 74745 } 74746 } 74747 } else { 74748 r.WriteMapElemKey() 74749 if z.IsJSONHandle() { 74750 z.WriteStr("\"Device\"") 74751 } else { 74752 r.EncodeStringEnc(codecSelferCcUTF8100, `Device`) 74753 } 74754 r.WriteMapElemValue() 74755 if false { 74756 } else { 74757 if z.EncBasicHandle().StringToRaw { 74758 r.EncodeStringBytesRaw(z.BytesView(string(x.Device))) 74759 } else { 74760 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Device)) 74761 } 74762 } 74763 } 74764 if yyr2 || yy2arr2 { 74765 r.WriteArrayElem() 74766 if false { 74767 } else { 74768 if z.EncBasicHandle().StringToRaw { 74769 r.EncodeStringBytesRaw(z.BytesView(string(x.CIDR))) 74770 } else { 74771 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CIDR)) 74772 } 74773 } 74774 } else { 74775 r.WriteMapElemKey() 74776 if z.IsJSONHandle() { 74777 z.WriteStr("\"CIDR\"") 74778 } else { 74779 r.EncodeStringEnc(codecSelferCcUTF8100, `CIDR`) 74780 } 74781 r.WriteMapElemValue() 74782 if false { 74783 } else { 74784 if z.EncBasicHandle().StringToRaw { 74785 r.EncodeStringBytesRaw(z.BytesView(string(x.CIDR))) 74786 } else { 74787 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CIDR)) 74788 } 74789 } 74790 } 74791 if yyr2 || yy2arr2 { 74792 r.WriteArrayElem() 74793 if false { 74794 } else { 74795 if z.EncBasicHandle().StringToRaw { 74796 r.EncodeStringBytesRaw(z.BytesView(string(x.IP))) 74797 } else { 74798 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IP)) 74799 } 74800 } 74801 } else { 74802 r.WriteMapElemKey() 74803 if z.IsJSONHandle() { 74804 z.WriteStr("\"IP\"") 74805 } else { 74806 r.EncodeStringEnc(codecSelferCcUTF8100, `IP`) 74807 } 74808 r.WriteMapElemValue() 74809 if false { 74810 } else { 74811 if z.EncBasicHandle().StringToRaw { 74812 r.EncodeStringBytesRaw(z.BytesView(string(x.IP))) 74813 } else { 74814 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IP)) 74815 } 74816 } 74817 } 74818 if yyr2 || yy2arr2 { 74819 r.WriteArrayElem() 74820 if false { 74821 } else { 74822 r.EncodeInt(int64(x.MBits)) 74823 } 74824 } else { 74825 r.WriteMapElemKey() 74826 if z.IsJSONHandle() { 74827 z.WriteStr("\"MBits\"") 74828 } else { 74829 r.EncodeStringEnc(codecSelferCcUTF8100, `MBits`) 74830 } 74831 r.WriteMapElemValue() 74832 if false { 74833 } else { 74834 r.EncodeInt(int64(x.MBits)) 74835 } 74836 } 74837 if yyr2 || yy2arr2 { 74838 r.WriteArrayElem() 74839 if x.ReservedPorts == nil { 74840 r.EncodeNil() 74841 } else { 74842 if false { 74843 } else { 74844 h.encSlicePort(([]Port)(x.ReservedPorts), e) 74845 } 74846 } 74847 } else { 74848 r.WriteMapElemKey() 74849 if z.IsJSONHandle() { 74850 z.WriteStr("\"ReservedPorts\"") 74851 } else { 74852 r.EncodeStringEnc(codecSelferCcUTF8100, `ReservedPorts`) 74853 } 74854 r.WriteMapElemValue() 74855 if x.ReservedPorts == nil { 74856 r.EncodeNil() 74857 } else { 74858 if false { 74859 } else { 74860 h.encSlicePort(([]Port)(x.ReservedPorts), e) 74861 } 74862 } 74863 } 74864 if yyr2 || yy2arr2 { 74865 r.WriteArrayElem() 74866 if x.DynamicPorts == nil { 74867 r.EncodeNil() 74868 } else { 74869 if false { 74870 } else { 74871 h.encSlicePort(([]Port)(x.DynamicPorts), e) 74872 } 74873 } 74874 } else { 74875 r.WriteMapElemKey() 74876 if z.IsJSONHandle() { 74877 z.WriteStr("\"DynamicPorts\"") 74878 } else { 74879 r.EncodeStringEnc(codecSelferCcUTF8100, `DynamicPorts`) 74880 } 74881 r.WriteMapElemValue() 74882 if x.DynamicPorts == nil { 74883 r.EncodeNil() 74884 } else { 74885 if false { 74886 } else { 74887 h.encSlicePort(([]Port)(x.DynamicPorts), e) 74888 } 74889 } 74890 } 74891 if yyr2 || yy2arr2 { 74892 r.WriteArrayEnd() 74893 } else { 74894 r.WriteMapEnd() 74895 } 74896 } 74897 } 74898 } 74899 74900 func (x *NetworkResource) CodecDecodeSelf(d *codec1978.Decoder) { 74901 var h codecSelfer100 74902 z, r := codec1978.GenHelperDecoder(d) 74903 _, _, _ = h, z, r 74904 if false { 74905 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 74906 z.DecExtension(x, yyxt1) 74907 } else { 74908 yyct2 := r.ContainerType() 74909 if yyct2 == codecSelferValueTypeMap100 { 74910 yyl2 := r.ReadMapStart() 74911 if yyl2 == 0 { 74912 r.ReadMapEnd() 74913 } else { 74914 x.codecDecodeSelfFromMap(yyl2, d) 74915 } 74916 } else if yyct2 == codecSelferValueTypeArray100 { 74917 yyl2 := r.ReadArrayStart() 74918 if yyl2 == 0 { 74919 r.ReadArrayEnd() 74920 } else { 74921 x.codecDecodeSelfFromArray(yyl2, d) 74922 } 74923 } else { 74924 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 74925 } 74926 } 74927 } 74928 74929 func (x *NetworkResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 74930 var h codecSelfer100 74931 z, r := codec1978.GenHelperDecoder(d) 74932 _, _, _ = h, z, r 74933 var yyhl3 bool = l >= 0 74934 for yyj3 := 0; ; yyj3++ { 74935 if yyhl3 { 74936 if yyj3 >= l { 74937 break 74938 } 74939 } else { 74940 if r.CheckBreak() { 74941 break 74942 } 74943 } 74944 r.ReadMapElemKey() 74945 yys3 := z.StringView(r.DecodeStringAsBytes()) 74946 r.ReadMapElemValue() 74947 switch yys3 { 74948 case "Mode": 74949 if r.TryDecodeAsNil() { 74950 x.Mode = "" 74951 } else { 74952 x.Mode = (string)(r.DecodeString()) 74953 } 74954 case "Device": 74955 if r.TryDecodeAsNil() { 74956 x.Device = "" 74957 } else { 74958 x.Device = (string)(r.DecodeString()) 74959 } 74960 case "CIDR": 74961 if r.TryDecodeAsNil() { 74962 x.CIDR = "" 74963 } else { 74964 x.CIDR = (string)(r.DecodeString()) 74965 } 74966 case "IP": 74967 if r.TryDecodeAsNil() { 74968 x.IP = "" 74969 } else { 74970 x.IP = (string)(r.DecodeString()) 74971 } 74972 case "MBits": 74973 if r.TryDecodeAsNil() { 74974 x.MBits = 0 74975 } else { 74976 x.MBits = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 74977 } 74978 case "ReservedPorts": 74979 if r.TryDecodeAsNil() { 74980 x.ReservedPorts = nil 74981 } else { 74982 if false { 74983 } else { 74984 h.decSlicePort((*[]Port)(&x.ReservedPorts), d) 74985 } 74986 } 74987 case "DynamicPorts": 74988 if r.TryDecodeAsNil() { 74989 x.DynamicPorts = nil 74990 } else { 74991 if false { 74992 } else { 74993 h.decSlicePort((*[]Port)(&x.DynamicPorts), d) 74994 } 74995 } 74996 default: 74997 z.DecStructFieldNotFound(-1, yys3) 74998 } // end switch yys3 74999 } // end for yyj3 75000 r.ReadMapEnd() 75001 } 75002 75003 func (x *NetworkResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 75004 var h codecSelfer100 75005 z, r := codec1978.GenHelperDecoder(d) 75006 _, _, _ = h, z, r 75007 var yyj13 int 75008 var yyb13 bool 75009 var yyhl13 bool = l >= 0 75010 yyj13++ 75011 if yyhl13 { 75012 yyb13 = yyj13 > l 75013 } else { 75014 yyb13 = r.CheckBreak() 75015 } 75016 if yyb13 { 75017 r.ReadArrayEnd() 75018 return 75019 } 75020 r.ReadArrayElem() 75021 if r.TryDecodeAsNil() { 75022 x.Mode = "" 75023 } else { 75024 x.Mode = (string)(r.DecodeString()) 75025 } 75026 yyj13++ 75027 if yyhl13 { 75028 yyb13 = yyj13 > l 75029 } else { 75030 yyb13 = r.CheckBreak() 75031 } 75032 if yyb13 { 75033 r.ReadArrayEnd() 75034 return 75035 } 75036 r.ReadArrayElem() 75037 if r.TryDecodeAsNil() { 75038 x.Device = "" 75039 } else { 75040 x.Device = (string)(r.DecodeString()) 75041 } 75042 yyj13++ 75043 if yyhl13 { 75044 yyb13 = yyj13 > l 75045 } else { 75046 yyb13 = r.CheckBreak() 75047 } 75048 if yyb13 { 75049 r.ReadArrayEnd() 75050 return 75051 } 75052 r.ReadArrayElem() 75053 if r.TryDecodeAsNil() { 75054 x.CIDR = "" 75055 } else { 75056 x.CIDR = (string)(r.DecodeString()) 75057 } 75058 yyj13++ 75059 if yyhl13 { 75060 yyb13 = yyj13 > l 75061 } else { 75062 yyb13 = r.CheckBreak() 75063 } 75064 if yyb13 { 75065 r.ReadArrayEnd() 75066 return 75067 } 75068 r.ReadArrayElem() 75069 if r.TryDecodeAsNil() { 75070 x.IP = "" 75071 } else { 75072 x.IP = (string)(r.DecodeString()) 75073 } 75074 yyj13++ 75075 if yyhl13 { 75076 yyb13 = yyj13 > l 75077 } else { 75078 yyb13 = r.CheckBreak() 75079 } 75080 if yyb13 { 75081 r.ReadArrayEnd() 75082 return 75083 } 75084 r.ReadArrayElem() 75085 if r.TryDecodeAsNil() { 75086 x.MBits = 0 75087 } else { 75088 x.MBits = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 75089 } 75090 yyj13++ 75091 if yyhl13 { 75092 yyb13 = yyj13 > l 75093 } else { 75094 yyb13 = r.CheckBreak() 75095 } 75096 if yyb13 { 75097 r.ReadArrayEnd() 75098 return 75099 } 75100 r.ReadArrayElem() 75101 if r.TryDecodeAsNil() { 75102 x.ReservedPorts = nil 75103 } else { 75104 if false { 75105 } else { 75106 h.decSlicePort((*[]Port)(&x.ReservedPorts), d) 75107 } 75108 } 75109 yyj13++ 75110 if yyhl13 { 75111 yyb13 = yyj13 > l 75112 } else { 75113 yyb13 = r.CheckBreak() 75114 } 75115 if yyb13 { 75116 r.ReadArrayEnd() 75117 return 75118 } 75119 r.ReadArrayElem() 75120 if r.TryDecodeAsNil() { 75121 x.DynamicPorts = nil 75122 } else { 75123 if false { 75124 } else { 75125 h.decSlicePort((*[]Port)(&x.DynamicPorts), d) 75126 } 75127 } 75128 for { 75129 yyj13++ 75130 if yyhl13 { 75131 yyb13 = yyj13 > l 75132 } else { 75133 yyb13 = r.CheckBreak() 75134 } 75135 if yyb13 { 75136 break 75137 } 75138 r.ReadArrayElem() 75139 z.DecStructFieldNotFound(yyj13-1, "") 75140 } 75141 r.ReadArrayEnd() 75142 } 75143 75144 func (x Networks) CodecEncodeSelf(e *codec1978.Encoder) { 75145 var h codecSelfer100 75146 z, r := codec1978.GenHelperEncoder(e) 75147 _, _, _ = h, z, r 75148 if x == nil { 75149 r.EncodeNil() 75150 } else { 75151 if false { 75152 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 75153 z.EncExtension(x, yyxt1) 75154 } else { 75155 h.encNetworks((Networks)(x), e) 75156 } 75157 } 75158 } 75159 75160 func (x *Networks) CodecDecodeSelf(d *codec1978.Decoder) { 75161 var h codecSelfer100 75162 z, r := codec1978.GenHelperDecoder(d) 75163 _, _, _ = h, z, r 75164 if false { 75165 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 75166 z.DecExtension(x, yyxt1) 75167 } else { 75168 h.decNetworks((*Networks)(x), d) 75169 } 75170 } 75171 75172 func (x *RequestedDevice) CodecEncodeSelf(e *codec1978.Encoder) { 75173 var h codecSelfer100 75174 z, r := codec1978.GenHelperEncoder(e) 75175 _, _, _ = h, z, r 75176 if x == nil { 75177 r.EncodeNil() 75178 } else { 75179 if false { 75180 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 75181 z.EncExtension(x, yyxt1) 75182 } else { 75183 yysep2 := !z.EncBinary() 75184 yy2arr2 := z.EncBasicHandle().StructToArray 75185 _, _ = yysep2, yy2arr2 75186 const yyr2 bool = false // struct tag has 'toArray' 75187 if yyr2 || yy2arr2 { 75188 r.WriteArrayStart(4) 75189 } else { 75190 r.WriteMapStart(4) 75191 } 75192 if yyr2 || yy2arr2 { 75193 r.WriteArrayElem() 75194 if false { 75195 } else { 75196 if z.EncBasicHandle().StringToRaw { 75197 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 75198 } else { 75199 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 75200 } 75201 } 75202 } else { 75203 r.WriteMapElemKey() 75204 if z.IsJSONHandle() { 75205 z.WriteStr("\"Name\"") 75206 } else { 75207 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 75208 } 75209 r.WriteMapElemValue() 75210 if false { 75211 } else { 75212 if z.EncBasicHandle().StringToRaw { 75213 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 75214 } else { 75215 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 75216 } 75217 } 75218 } 75219 if yyr2 || yy2arr2 { 75220 r.WriteArrayElem() 75221 if false { 75222 } else { 75223 r.EncodeUint(uint64(x.Count)) 75224 } 75225 } else { 75226 r.WriteMapElemKey() 75227 if z.IsJSONHandle() { 75228 z.WriteStr("\"Count\"") 75229 } else { 75230 r.EncodeStringEnc(codecSelferCcUTF8100, `Count`) 75231 } 75232 r.WriteMapElemValue() 75233 if false { 75234 } else { 75235 r.EncodeUint(uint64(x.Count)) 75236 } 75237 } 75238 if yyr2 || yy2arr2 { 75239 r.WriteArrayElem() 75240 if x.Constraints == nil { 75241 r.EncodeNil() 75242 } else { 75243 x.Constraints.CodecEncodeSelf(e) 75244 } 75245 } else { 75246 r.WriteMapElemKey() 75247 if z.IsJSONHandle() { 75248 z.WriteStr("\"Constraints\"") 75249 } else { 75250 r.EncodeStringEnc(codecSelferCcUTF8100, `Constraints`) 75251 } 75252 r.WriteMapElemValue() 75253 if x.Constraints == nil { 75254 r.EncodeNil() 75255 } else { 75256 x.Constraints.CodecEncodeSelf(e) 75257 } 75258 } 75259 if yyr2 || yy2arr2 { 75260 r.WriteArrayElem() 75261 if x.Affinities == nil { 75262 r.EncodeNil() 75263 } else { 75264 x.Affinities.CodecEncodeSelf(e) 75265 } 75266 } else { 75267 r.WriteMapElemKey() 75268 if z.IsJSONHandle() { 75269 z.WriteStr("\"Affinities\"") 75270 } else { 75271 r.EncodeStringEnc(codecSelferCcUTF8100, `Affinities`) 75272 } 75273 r.WriteMapElemValue() 75274 if x.Affinities == nil { 75275 r.EncodeNil() 75276 } else { 75277 x.Affinities.CodecEncodeSelf(e) 75278 } 75279 } 75280 if yyr2 || yy2arr2 { 75281 r.WriteArrayEnd() 75282 } else { 75283 r.WriteMapEnd() 75284 } 75285 } 75286 } 75287 } 75288 75289 func (x *RequestedDevice) CodecDecodeSelf(d *codec1978.Decoder) { 75290 var h codecSelfer100 75291 z, r := codec1978.GenHelperDecoder(d) 75292 _, _, _ = h, z, r 75293 if false { 75294 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 75295 z.DecExtension(x, yyxt1) 75296 } else { 75297 yyct2 := r.ContainerType() 75298 if yyct2 == codecSelferValueTypeMap100 { 75299 yyl2 := r.ReadMapStart() 75300 if yyl2 == 0 { 75301 r.ReadMapEnd() 75302 } else { 75303 x.codecDecodeSelfFromMap(yyl2, d) 75304 } 75305 } else if yyct2 == codecSelferValueTypeArray100 { 75306 yyl2 := r.ReadArrayStart() 75307 if yyl2 == 0 { 75308 r.ReadArrayEnd() 75309 } else { 75310 x.codecDecodeSelfFromArray(yyl2, d) 75311 } 75312 } else { 75313 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 75314 } 75315 } 75316 } 75317 75318 func (x *RequestedDevice) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 75319 var h codecSelfer100 75320 z, r := codec1978.GenHelperDecoder(d) 75321 _, _, _ = h, z, r 75322 var yyhl3 bool = l >= 0 75323 for yyj3 := 0; ; yyj3++ { 75324 if yyhl3 { 75325 if yyj3 >= l { 75326 break 75327 } 75328 } else { 75329 if r.CheckBreak() { 75330 break 75331 } 75332 } 75333 r.ReadMapElemKey() 75334 yys3 := z.StringView(r.DecodeStringAsBytes()) 75335 r.ReadMapElemValue() 75336 switch yys3 { 75337 case "Name": 75338 if r.TryDecodeAsNil() { 75339 x.Name = "" 75340 } else { 75341 x.Name = (string)(r.DecodeString()) 75342 } 75343 case "Count": 75344 if r.TryDecodeAsNil() { 75345 x.Count = 0 75346 } else { 75347 x.Count = (uint64)(r.DecodeUint64()) 75348 } 75349 case "Constraints": 75350 if r.TryDecodeAsNil() { 75351 x.Constraints = nil 75352 } else { 75353 x.Constraints.CodecDecodeSelf(d) 75354 } 75355 case "Affinities": 75356 if r.TryDecodeAsNil() { 75357 x.Affinities = nil 75358 } else { 75359 x.Affinities.CodecDecodeSelf(d) 75360 } 75361 default: 75362 z.DecStructFieldNotFound(-1, yys3) 75363 } // end switch yys3 75364 } // end for yyj3 75365 r.ReadMapEnd() 75366 } 75367 75368 func (x *RequestedDevice) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 75369 var h codecSelfer100 75370 z, r := codec1978.GenHelperDecoder(d) 75371 _, _, _ = h, z, r 75372 var yyj8 int 75373 var yyb8 bool 75374 var yyhl8 bool = l >= 0 75375 yyj8++ 75376 if yyhl8 { 75377 yyb8 = yyj8 > l 75378 } else { 75379 yyb8 = r.CheckBreak() 75380 } 75381 if yyb8 { 75382 r.ReadArrayEnd() 75383 return 75384 } 75385 r.ReadArrayElem() 75386 if r.TryDecodeAsNil() { 75387 x.Name = "" 75388 } else { 75389 x.Name = (string)(r.DecodeString()) 75390 } 75391 yyj8++ 75392 if yyhl8 { 75393 yyb8 = yyj8 > l 75394 } else { 75395 yyb8 = r.CheckBreak() 75396 } 75397 if yyb8 { 75398 r.ReadArrayEnd() 75399 return 75400 } 75401 r.ReadArrayElem() 75402 if r.TryDecodeAsNil() { 75403 x.Count = 0 75404 } else { 75405 x.Count = (uint64)(r.DecodeUint64()) 75406 } 75407 yyj8++ 75408 if yyhl8 { 75409 yyb8 = yyj8 > l 75410 } else { 75411 yyb8 = r.CheckBreak() 75412 } 75413 if yyb8 { 75414 r.ReadArrayEnd() 75415 return 75416 } 75417 r.ReadArrayElem() 75418 if r.TryDecodeAsNil() { 75419 x.Constraints = nil 75420 } else { 75421 x.Constraints.CodecDecodeSelf(d) 75422 } 75423 yyj8++ 75424 if yyhl8 { 75425 yyb8 = yyj8 > l 75426 } else { 75427 yyb8 = r.CheckBreak() 75428 } 75429 if yyb8 { 75430 r.ReadArrayEnd() 75431 return 75432 } 75433 r.ReadArrayElem() 75434 if r.TryDecodeAsNil() { 75435 x.Affinities = nil 75436 } else { 75437 x.Affinities.CodecDecodeSelf(d) 75438 } 75439 for { 75440 yyj8++ 75441 if yyhl8 { 75442 yyb8 = yyj8 > l 75443 } else { 75444 yyb8 = r.CheckBreak() 75445 } 75446 if yyb8 { 75447 break 75448 } 75449 r.ReadArrayElem() 75450 z.DecStructFieldNotFound(yyj8-1, "") 75451 } 75452 r.ReadArrayEnd() 75453 } 75454 75455 func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) { 75456 var h codecSelfer100 75457 z, r := codec1978.GenHelperEncoder(e) 75458 _, _, _ = h, z, r 75459 if x == nil { 75460 r.EncodeNil() 75461 } else { 75462 if false { 75463 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 75464 z.EncExtension(x, yyxt1) 75465 } else { 75466 yysep2 := !z.EncBinary() 75467 yy2arr2 := z.EncBasicHandle().StructToArray 75468 _, _ = yysep2, yy2arr2 75469 const yyr2 bool = false // struct tag has 'toArray' 75470 if yyr2 || yy2arr2 { 75471 r.WriteArrayStart(5) 75472 } else { 75473 r.WriteMapStart(5) 75474 } 75475 if yyr2 || yy2arr2 { 75476 r.WriteArrayElem() 75477 yy4 := &x.Cpu 75478 yy4.CodecEncodeSelf(e) 75479 } else { 75480 r.WriteMapElemKey() 75481 if z.IsJSONHandle() { 75482 z.WriteStr("\"Cpu\"") 75483 } else { 75484 r.EncodeStringEnc(codecSelferCcUTF8100, `Cpu`) 75485 } 75486 r.WriteMapElemValue() 75487 yy6 := &x.Cpu 75488 yy6.CodecEncodeSelf(e) 75489 } 75490 if yyr2 || yy2arr2 { 75491 r.WriteArrayElem() 75492 yy9 := &x.Memory 75493 yy9.CodecEncodeSelf(e) 75494 } else { 75495 r.WriteMapElemKey() 75496 if z.IsJSONHandle() { 75497 z.WriteStr("\"Memory\"") 75498 } else { 75499 r.EncodeStringEnc(codecSelferCcUTF8100, `Memory`) 75500 } 75501 r.WriteMapElemValue() 75502 yy11 := &x.Memory 75503 yy11.CodecEncodeSelf(e) 75504 } 75505 if yyr2 || yy2arr2 { 75506 r.WriteArrayElem() 75507 yy14 := &x.Disk 75508 yy14.CodecEncodeSelf(e) 75509 } else { 75510 r.WriteMapElemKey() 75511 if z.IsJSONHandle() { 75512 z.WriteStr("\"Disk\"") 75513 } else { 75514 r.EncodeStringEnc(codecSelferCcUTF8100, `Disk`) 75515 } 75516 r.WriteMapElemValue() 75517 yy16 := &x.Disk 75518 yy16.CodecEncodeSelf(e) 75519 } 75520 if yyr2 || yy2arr2 { 75521 r.WriteArrayElem() 75522 if x.Networks == nil { 75523 r.EncodeNil() 75524 } else { 75525 x.Networks.CodecEncodeSelf(e) 75526 } 75527 } else { 75528 r.WriteMapElemKey() 75529 if z.IsJSONHandle() { 75530 z.WriteStr("\"Networks\"") 75531 } else { 75532 r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) 75533 } 75534 r.WriteMapElemValue() 75535 if x.Networks == nil { 75536 r.EncodeNil() 75537 } else { 75538 x.Networks.CodecEncodeSelf(e) 75539 } 75540 } 75541 if yyr2 || yy2arr2 { 75542 r.WriteArrayElem() 75543 if x.Devices == nil { 75544 r.EncodeNil() 75545 } else { 75546 if false { 75547 } else { 75548 h.encSlicePtrtoNodeDeviceResource(([]*NodeDeviceResource)(x.Devices), e) 75549 } 75550 } 75551 } else { 75552 r.WriteMapElemKey() 75553 if z.IsJSONHandle() { 75554 z.WriteStr("\"Devices\"") 75555 } else { 75556 r.EncodeStringEnc(codecSelferCcUTF8100, `Devices`) 75557 } 75558 r.WriteMapElemValue() 75559 if x.Devices == nil { 75560 r.EncodeNil() 75561 } else { 75562 if false { 75563 } else { 75564 h.encSlicePtrtoNodeDeviceResource(([]*NodeDeviceResource)(x.Devices), e) 75565 } 75566 } 75567 } 75568 if yyr2 || yy2arr2 { 75569 r.WriteArrayEnd() 75570 } else { 75571 r.WriteMapEnd() 75572 } 75573 } 75574 } 75575 } 75576 75577 func (x *NodeResources) CodecDecodeSelf(d *codec1978.Decoder) { 75578 var h codecSelfer100 75579 z, r := codec1978.GenHelperDecoder(d) 75580 _, _, _ = h, z, r 75581 if false { 75582 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 75583 z.DecExtension(x, yyxt1) 75584 } else { 75585 yyct2 := r.ContainerType() 75586 if yyct2 == codecSelferValueTypeMap100 { 75587 yyl2 := r.ReadMapStart() 75588 if yyl2 == 0 { 75589 r.ReadMapEnd() 75590 } else { 75591 x.codecDecodeSelfFromMap(yyl2, d) 75592 } 75593 } else if yyct2 == codecSelferValueTypeArray100 { 75594 yyl2 := r.ReadArrayStart() 75595 if yyl2 == 0 { 75596 r.ReadArrayEnd() 75597 } else { 75598 x.codecDecodeSelfFromArray(yyl2, d) 75599 } 75600 } else { 75601 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 75602 } 75603 } 75604 } 75605 75606 func (x *NodeResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 75607 var h codecSelfer100 75608 z, r := codec1978.GenHelperDecoder(d) 75609 _, _, _ = h, z, r 75610 var yyhl3 bool = l >= 0 75611 for yyj3 := 0; ; yyj3++ { 75612 if yyhl3 { 75613 if yyj3 >= l { 75614 break 75615 } 75616 } else { 75617 if r.CheckBreak() { 75618 break 75619 } 75620 } 75621 r.ReadMapElemKey() 75622 yys3 := z.StringView(r.DecodeStringAsBytes()) 75623 r.ReadMapElemValue() 75624 switch yys3 { 75625 case "Cpu": 75626 if r.TryDecodeAsNil() { 75627 x.Cpu = NodeCpuResources{} 75628 } else { 75629 x.Cpu.CodecDecodeSelf(d) 75630 } 75631 case "Memory": 75632 if r.TryDecodeAsNil() { 75633 x.Memory = NodeMemoryResources{} 75634 } else { 75635 x.Memory.CodecDecodeSelf(d) 75636 } 75637 case "Disk": 75638 if r.TryDecodeAsNil() { 75639 x.Disk = NodeDiskResources{} 75640 } else { 75641 x.Disk.CodecDecodeSelf(d) 75642 } 75643 case "Networks": 75644 if r.TryDecodeAsNil() { 75645 x.Networks = nil 75646 } else { 75647 x.Networks.CodecDecodeSelf(d) 75648 } 75649 case "Devices": 75650 if r.TryDecodeAsNil() { 75651 x.Devices = nil 75652 } else { 75653 if false { 75654 } else { 75655 h.decSlicePtrtoNodeDeviceResource((*[]*NodeDeviceResource)(&x.Devices), d) 75656 } 75657 } 75658 default: 75659 z.DecStructFieldNotFound(-1, yys3) 75660 } // end switch yys3 75661 } // end for yyj3 75662 r.ReadMapEnd() 75663 } 75664 75665 func (x *NodeResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 75666 var h codecSelfer100 75667 z, r := codec1978.GenHelperDecoder(d) 75668 _, _, _ = h, z, r 75669 var yyj10 int 75670 var yyb10 bool 75671 var yyhl10 bool = l >= 0 75672 yyj10++ 75673 if yyhl10 { 75674 yyb10 = yyj10 > l 75675 } else { 75676 yyb10 = r.CheckBreak() 75677 } 75678 if yyb10 { 75679 r.ReadArrayEnd() 75680 return 75681 } 75682 r.ReadArrayElem() 75683 if r.TryDecodeAsNil() { 75684 x.Cpu = NodeCpuResources{} 75685 } else { 75686 x.Cpu.CodecDecodeSelf(d) 75687 } 75688 yyj10++ 75689 if yyhl10 { 75690 yyb10 = yyj10 > l 75691 } else { 75692 yyb10 = r.CheckBreak() 75693 } 75694 if yyb10 { 75695 r.ReadArrayEnd() 75696 return 75697 } 75698 r.ReadArrayElem() 75699 if r.TryDecodeAsNil() { 75700 x.Memory = NodeMemoryResources{} 75701 } else { 75702 x.Memory.CodecDecodeSelf(d) 75703 } 75704 yyj10++ 75705 if yyhl10 { 75706 yyb10 = yyj10 > l 75707 } else { 75708 yyb10 = r.CheckBreak() 75709 } 75710 if yyb10 { 75711 r.ReadArrayEnd() 75712 return 75713 } 75714 r.ReadArrayElem() 75715 if r.TryDecodeAsNil() { 75716 x.Disk = NodeDiskResources{} 75717 } else { 75718 x.Disk.CodecDecodeSelf(d) 75719 } 75720 yyj10++ 75721 if yyhl10 { 75722 yyb10 = yyj10 > l 75723 } else { 75724 yyb10 = r.CheckBreak() 75725 } 75726 if yyb10 { 75727 r.ReadArrayEnd() 75728 return 75729 } 75730 r.ReadArrayElem() 75731 if r.TryDecodeAsNil() { 75732 x.Networks = nil 75733 } else { 75734 x.Networks.CodecDecodeSelf(d) 75735 } 75736 yyj10++ 75737 if yyhl10 { 75738 yyb10 = yyj10 > l 75739 } else { 75740 yyb10 = r.CheckBreak() 75741 } 75742 if yyb10 { 75743 r.ReadArrayEnd() 75744 return 75745 } 75746 r.ReadArrayElem() 75747 if r.TryDecodeAsNil() { 75748 x.Devices = nil 75749 } else { 75750 if false { 75751 } else { 75752 h.decSlicePtrtoNodeDeviceResource((*[]*NodeDeviceResource)(&x.Devices), d) 75753 } 75754 } 75755 for { 75756 yyj10++ 75757 if yyhl10 { 75758 yyb10 = yyj10 > l 75759 } else { 75760 yyb10 = r.CheckBreak() 75761 } 75762 if yyb10 { 75763 break 75764 } 75765 r.ReadArrayElem() 75766 z.DecStructFieldNotFound(yyj10-1, "") 75767 } 75768 r.ReadArrayEnd() 75769 } 75770 75771 func (x *NodeCpuResources) CodecEncodeSelf(e *codec1978.Encoder) { 75772 var h codecSelfer100 75773 z, r := codec1978.GenHelperEncoder(e) 75774 _, _, _ = h, z, r 75775 if x == nil { 75776 r.EncodeNil() 75777 } else { 75778 if false { 75779 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 75780 z.EncExtension(x, yyxt1) 75781 } else { 75782 yysep2 := !z.EncBinary() 75783 yy2arr2 := z.EncBasicHandle().StructToArray 75784 _, _ = yysep2, yy2arr2 75785 const yyr2 bool = false // struct tag has 'toArray' 75786 if yyr2 || yy2arr2 { 75787 r.WriteArrayStart(1) 75788 } else { 75789 r.WriteMapStart(1) 75790 } 75791 if yyr2 || yy2arr2 { 75792 r.WriteArrayElem() 75793 if false { 75794 } else { 75795 r.EncodeInt(int64(x.CpuShares)) 75796 } 75797 } else { 75798 r.WriteMapElemKey() 75799 if z.IsJSONHandle() { 75800 z.WriteStr("\"CpuShares\"") 75801 } else { 75802 r.EncodeStringEnc(codecSelferCcUTF8100, `CpuShares`) 75803 } 75804 r.WriteMapElemValue() 75805 if false { 75806 } else { 75807 r.EncodeInt(int64(x.CpuShares)) 75808 } 75809 } 75810 if yyr2 || yy2arr2 { 75811 r.WriteArrayEnd() 75812 } else { 75813 r.WriteMapEnd() 75814 } 75815 } 75816 } 75817 } 75818 75819 func (x *NodeCpuResources) CodecDecodeSelf(d *codec1978.Decoder) { 75820 var h codecSelfer100 75821 z, r := codec1978.GenHelperDecoder(d) 75822 _, _, _ = h, z, r 75823 if false { 75824 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 75825 z.DecExtension(x, yyxt1) 75826 } else { 75827 yyct2 := r.ContainerType() 75828 if yyct2 == codecSelferValueTypeMap100 { 75829 yyl2 := r.ReadMapStart() 75830 if yyl2 == 0 { 75831 r.ReadMapEnd() 75832 } else { 75833 x.codecDecodeSelfFromMap(yyl2, d) 75834 } 75835 } else if yyct2 == codecSelferValueTypeArray100 { 75836 yyl2 := r.ReadArrayStart() 75837 if yyl2 == 0 { 75838 r.ReadArrayEnd() 75839 } else { 75840 x.codecDecodeSelfFromArray(yyl2, d) 75841 } 75842 } else { 75843 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 75844 } 75845 } 75846 } 75847 75848 func (x *NodeCpuResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 75849 var h codecSelfer100 75850 z, r := codec1978.GenHelperDecoder(d) 75851 _, _, _ = h, z, r 75852 var yyhl3 bool = l >= 0 75853 for yyj3 := 0; ; yyj3++ { 75854 if yyhl3 { 75855 if yyj3 >= l { 75856 break 75857 } 75858 } else { 75859 if r.CheckBreak() { 75860 break 75861 } 75862 } 75863 r.ReadMapElemKey() 75864 yys3 := z.StringView(r.DecodeStringAsBytes()) 75865 r.ReadMapElemValue() 75866 switch yys3 { 75867 case "CpuShares": 75868 if r.TryDecodeAsNil() { 75869 x.CpuShares = 0 75870 } else { 75871 x.CpuShares = (int64)(r.DecodeInt64()) 75872 } 75873 default: 75874 z.DecStructFieldNotFound(-1, yys3) 75875 } // end switch yys3 75876 } // end for yyj3 75877 r.ReadMapEnd() 75878 } 75879 75880 func (x *NodeCpuResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 75881 var h codecSelfer100 75882 z, r := codec1978.GenHelperDecoder(d) 75883 _, _, _ = h, z, r 75884 var yyj5 int 75885 var yyb5 bool 75886 var yyhl5 bool = l >= 0 75887 yyj5++ 75888 if yyhl5 { 75889 yyb5 = yyj5 > l 75890 } else { 75891 yyb5 = r.CheckBreak() 75892 } 75893 if yyb5 { 75894 r.ReadArrayEnd() 75895 return 75896 } 75897 r.ReadArrayElem() 75898 if r.TryDecodeAsNil() { 75899 x.CpuShares = 0 75900 } else { 75901 x.CpuShares = (int64)(r.DecodeInt64()) 75902 } 75903 for { 75904 yyj5++ 75905 if yyhl5 { 75906 yyb5 = yyj5 > l 75907 } else { 75908 yyb5 = r.CheckBreak() 75909 } 75910 if yyb5 { 75911 break 75912 } 75913 r.ReadArrayElem() 75914 z.DecStructFieldNotFound(yyj5-1, "") 75915 } 75916 r.ReadArrayEnd() 75917 } 75918 75919 func (x *NodeMemoryResources) CodecEncodeSelf(e *codec1978.Encoder) { 75920 var h codecSelfer100 75921 z, r := codec1978.GenHelperEncoder(e) 75922 _, _, _ = h, z, r 75923 if x == nil { 75924 r.EncodeNil() 75925 } else { 75926 if false { 75927 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 75928 z.EncExtension(x, yyxt1) 75929 } else { 75930 yysep2 := !z.EncBinary() 75931 yy2arr2 := z.EncBasicHandle().StructToArray 75932 _, _ = yysep2, yy2arr2 75933 const yyr2 bool = false // struct tag has 'toArray' 75934 if yyr2 || yy2arr2 { 75935 r.WriteArrayStart(1) 75936 } else { 75937 r.WriteMapStart(1) 75938 } 75939 if yyr2 || yy2arr2 { 75940 r.WriteArrayElem() 75941 if false { 75942 } else { 75943 r.EncodeInt(int64(x.MemoryMB)) 75944 } 75945 } else { 75946 r.WriteMapElemKey() 75947 if z.IsJSONHandle() { 75948 z.WriteStr("\"MemoryMB\"") 75949 } else { 75950 r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryMB`) 75951 } 75952 r.WriteMapElemValue() 75953 if false { 75954 } else { 75955 r.EncodeInt(int64(x.MemoryMB)) 75956 } 75957 } 75958 if yyr2 || yy2arr2 { 75959 r.WriteArrayEnd() 75960 } else { 75961 r.WriteMapEnd() 75962 } 75963 } 75964 } 75965 } 75966 75967 func (x *NodeMemoryResources) CodecDecodeSelf(d *codec1978.Decoder) { 75968 var h codecSelfer100 75969 z, r := codec1978.GenHelperDecoder(d) 75970 _, _, _ = h, z, r 75971 if false { 75972 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 75973 z.DecExtension(x, yyxt1) 75974 } else { 75975 yyct2 := r.ContainerType() 75976 if yyct2 == codecSelferValueTypeMap100 { 75977 yyl2 := r.ReadMapStart() 75978 if yyl2 == 0 { 75979 r.ReadMapEnd() 75980 } else { 75981 x.codecDecodeSelfFromMap(yyl2, d) 75982 } 75983 } else if yyct2 == codecSelferValueTypeArray100 { 75984 yyl2 := r.ReadArrayStart() 75985 if yyl2 == 0 { 75986 r.ReadArrayEnd() 75987 } else { 75988 x.codecDecodeSelfFromArray(yyl2, d) 75989 } 75990 } else { 75991 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 75992 } 75993 } 75994 } 75995 75996 func (x *NodeMemoryResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 75997 var h codecSelfer100 75998 z, r := codec1978.GenHelperDecoder(d) 75999 _, _, _ = h, z, r 76000 var yyhl3 bool = l >= 0 76001 for yyj3 := 0; ; yyj3++ { 76002 if yyhl3 { 76003 if yyj3 >= l { 76004 break 76005 } 76006 } else { 76007 if r.CheckBreak() { 76008 break 76009 } 76010 } 76011 r.ReadMapElemKey() 76012 yys3 := z.StringView(r.DecodeStringAsBytes()) 76013 r.ReadMapElemValue() 76014 switch yys3 { 76015 case "MemoryMB": 76016 if r.TryDecodeAsNil() { 76017 x.MemoryMB = 0 76018 } else { 76019 x.MemoryMB = (int64)(r.DecodeInt64()) 76020 } 76021 default: 76022 z.DecStructFieldNotFound(-1, yys3) 76023 } // end switch yys3 76024 } // end for yyj3 76025 r.ReadMapEnd() 76026 } 76027 76028 func (x *NodeMemoryResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 76029 var h codecSelfer100 76030 z, r := codec1978.GenHelperDecoder(d) 76031 _, _, _ = h, z, r 76032 var yyj5 int 76033 var yyb5 bool 76034 var yyhl5 bool = l >= 0 76035 yyj5++ 76036 if yyhl5 { 76037 yyb5 = yyj5 > l 76038 } else { 76039 yyb5 = r.CheckBreak() 76040 } 76041 if yyb5 { 76042 r.ReadArrayEnd() 76043 return 76044 } 76045 r.ReadArrayElem() 76046 if r.TryDecodeAsNil() { 76047 x.MemoryMB = 0 76048 } else { 76049 x.MemoryMB = (int64)(r.DecodeInt64()) 76050 } 76051 for { 76052 yyj5++ 76053 if yyhl5 { 76054 yyb5 = yyj5 > l 76055 } else { 76056 yyb5 = r.CheckBreak() 76057 } 76058 if yyb5 { 76059 break 76060 } 76061 r.ReadArrayElem() 76062 z.DecStructFieldNotFound(yyj5-1, "") 76063 } 76064 r.ReadArrayEnd() 76065 } 76066 76067 func (x *NodeDiskResources) CodecEncodeSelf(e *codec1978.Encoder) { 76068 var h codecSelfer100 76069 z, r := codec1978.GenHelperEncoder(e) 76070 _, _, _ = h, z, r 76071 if x == nil { 76072 r.EncodeNil() 76073 } else { 76074 if false { 76075 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 76076 z.EncExtension(x, yyxt1) 76077 } else { 76078 yysep2 := !z.EncBinary() 76079 yy2arr2 := z.EncBasicHandle().StructToArray 76080 _, _ = yysep2, yy2arr2 76081 const yyr2 bool = false // struct tag has 'toArray' 76082 if yyr2 || yy2arr2 { 76083 r.WriteArrayStart(1) 76084 } else { 76085 r.WriteMapStart(1) 76086 } 76087 if yyr2 || yy2arr2 { 76088 r.WriteArrayElem() 76089 if false { 76090 } else { 76091 r.EncodeInt(int64(x.DiskMB)) 76092 } 76093 } else { 76094 r.WriteMapElemKey() 76095 if z.IsJSONHandle() { 76096 z.WriteStr("\"DiskMB\"") 76097 } else { 76098 r.EncodeStringEnc(codecSelferCcUTF8100, `DiskMB`) 76099 } 76100 r.WriteMapElemValue() 76101 if false { 76102 } else { 76103 r.EncodeInt(int64(x.DiskMB)) 76104 } 76105 } 76106 if yyr2 || yy2arr2 { 76107 r.WriteArrayEnd() 76108 } else { 76109 r.WriteMapEnd() 76110 } 76111 } 76112 } 76113 } 76114 76115 func (x *NodeDiskResources) CodecDecodeSelf(d *codec1978.Decoder) { 76116 var h codecSelfer100 76117 z, r := codec1978.GenHelperDecoder(d) 76118 _, _, _ = h, z, r 76119 if false { 76120 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 76121 z.DecExtension(x, yyxt1) 76122 } else { 76123 yyct2 := r.ContainerType() 76124 if yyct2 == codecSelferValueTypeMap100 { 76125 yyl2 := r.ReadMapStart() 76126 if yyl2 == 0 { 76127 r.ReadMapEnd() 76128 } else { 76129 x.codecDecodeSelfFromMap(yyl2, d) 76130 } 76131 } else if yyct2 == codecSelferValueTypeArray100 { 76132 yyl2 := r.ReadArrayStart() 76133 if yyl2 == 0 { 76134 r.ReadArrayEnd() 76135 } else { 76136 x.codecDecodeSelfFromArray(yyl2, d) 76137 } 76138 } else { 76139 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 76140 } 76141 } 76142 } 76143 76144 func (x *NodeDiskResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 76145 var h codecSelfer100 76146 z, r := codec1978.GenHelperDecoder(d) 76147 _, _, _ = h, z, r 76148 var yyhl3 bool = l >= 0 76149 for yyj3 := 0; ; yyj3++ { 76150 if yyhl3 { 76151 if yyj3 >= l { 76152 break 76153 } 76154 } else { 76155 if r.CheckBreak() { 76156 break 76157 } 76158 } 76159 r.ReadMapElemKey() 76160 yys3 := z.StringView(r.DecodeStringAsBytes()) 76161 r.ReadMapElemValue() 76162 switch yys3 { 76163 case "DiskMB": 76164 if r.TryDecodeAsNil() { 76165 x.DiskMB = 0 76166 } else { 76167 x.DiskMB = (int64)(r.DecodeInt64()) 76168 } 76169 default: 76170 z.DecStructFieldNotFound(-1, yys3) 76171 } // end switch yys3 76172 } // end for yyj3 76173 r.ReadMapEnd() 76174 } 76175 76176 func (x *NodeDiskResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 76177 var h codecSelfer100 76178 z, r := codec1978.GenHelperDecoder(d) 76179 _, _, _ = h, z, r 76180 var yyj5 int 76181 var yyb5 bool 76182 var yyhl5 bool = l >= 0 76183 yyj5++ 76184 if yyhl5 { 76185 yyb5 = yyj5 > l 76186 } else { 76187 yyb5 = r.CheckBreak() 76188 } 76189 if yyb5 { 76190 r.ReadArrayEnd() 76191 return 76192 } 76193 r.ReadArrayElem() 76194 if r.TryDecodeAsNil() { 76195 x.DiskMB = 0 76196 } else { 76197 x.DiskMB = (int64)(r.DecodeInt64()) 76198 } 76199 for { 76200 yyj5++ 76201 if yyhl5 { 76202 yyb5 = yyj5 > l 76203 } else { 76204 yyb5 = r.CheckBreak() 76205 } 76206 if yyb5 { 76207 break 76208 } 76209 r.ReadArrayElem() 76210 z.DecStructFieldNotFound(yyj5-1, "") 76211 } 76212 r.ReadArrayEnd() 76213 } 76214 76215 func (x *DeviceIdTuple) CodecEncodeSelf(e *codec1978.Encoder) { 76216 var h codecSelfer100 76217 z, r := codec1978.GenHelperEncoder(e) 76218 _, _, _ = h, z, r 76219 if x == nil { 76220 r.EncodeNil() 76221 } else { 76222 if false { 76223 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 76224 z.EncExtension(x, yyxt1) 76225 } else { 76226 yysep2 := !z.EncBinary() 76227 yy2arr2 := z.EncBasicHandle().StructToArray 76228 _, _ = yysep2, yy2arr2 76229 const yyr2 bool = false // struct tag has 'toArray' 76230 if yyr2 || yy2arr2 { 76231 r.WriteArrayStart(3) 76232 } else { 76233 r.WriteMapStart(3) 76234 } 76235 if yyr2 || yy2arr2 { 76236 r.WriteArrayElem() 76237 if false { 76238 } else { 76239 if z.EncBasicHandle().StringToRaw { 76240 r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) 76241 } else { 76242 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) 76243 } 76244 } 76245 } else { 76246 r.WriteMapElemKey() 76247 if z.IsJSONHandle() { 76248 z.WriteStr("\"Vendor\"") 76249 } else { 76250 r.EncodeStringEnc(codecSelferCcUTF8100, `Vendor`) 76251 } 76252 r.WriteMapElemValue() 76253 if false { 76254 } else { 76255 if z.EncBasicHandle().StringToRaw { 76256 r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) 76257 } else { 76258 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) 76259 } 76260 } 76261 } 76262 if yyr2 || yy2arr2 { 76263 r.WriteArrayElem() 76264 if false { 76265 } else { 76266 if z.EncBasicHandle().StringToRaw { 76267 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 76268 } else { 76269 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 76270 } 76271 } 76272 } else { 76273 r.WriteMapElemKey() 76274 if z.IsJSONHandle() { 76275 z.WriteStr("\"Type\"") 76276 } else { 76277 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 76278 } 76279 r.WriteMapElemValue() 76280 if false { 76281 } else { 76282 if z.EncBasicHandle().StringToRaw { 76283 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 76284 } else { 76285 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 76286 } 76287 } 76288 } 76289 if yyr2 || yy2arr2 { 76290 r.WriteArrayElem() 76291 if false { 76292 } else { 76293 if z.EncBasicHandle().StringToRaw { 76294 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 76295 } else { 76296 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 76297 } 76298 } 76299 } else { 76300 r.WriteMapElemKey() 76301 if z.IsJSONHandle() { 76302 z.WriteStr("\"Name\"") 76303 } else { 76304 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 76305 } 76306 r.WriteMapElemValue() 76307 if false { 76308 } else { 76309 if z.EncBasicHandle().StringToRaw { 76310 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 76311 } else { 76312 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 76313 } 76314 } 76315 } 76316 if yyr2 || yy2arr2 { 76317 r.WriteArrayEnd() 76318 } else { 76319 r.WriteMapEnd() 76320 } 76321 } 76322 } 76323 } 76324 76325 func (x *DeviceIdTuple) CodecDecodeSelf(d *codec1978.Decoder) { 76326 var h codecSelfer100 76327 z, r := codec1978.GenHelperDecoder(d) 76328 _, _, _ = h, z, r 76329 if false { 76330 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 76331 z.DecExtension(x, yyxt1) 76332 } else { 76333 yyct2 := r.ContainerType() 76334 if yyct2 == codecSelferValueTypeMap100 { 76335 yyl2 := r.ReadMapStart() 76336 if yyl2 == 0 { 76337 r.ReadMapEnd() 76338 } else { 76339 x.codecDecodeSelfFromMap(yyl2, d) 76340 } 76341 } else if yyct2 == codecSelferValueTypeArray100 { 76342 yyl2 := r.ReadArrayStart() 76343 if yyl2 == 0 { 76344 r.ReadArrayEnd() 76345 } else { 76346 x.codecDecodeSelfFromArray(yyl2, d) 76347 } 76348 } else { 76349 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 76350 } 76351 } 76352 } 76353 76354 func (x *DeviceIdTuple) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 76355 var h codecSelfer100 76356 z, r := codec1978.GenHelperDecoder(d) 76357 _, _, _ = h, z, r 76358 var yyhl3 bool = l >= 0 76359 for yyj3 := 0; ; yyj3++ { 76360 if yyhl3 { 76361 if yyj3 >= l { 76362 break 76363 } 76364 } else { 76365 if r.CheckBreak() { 76366 break 76367 } 76368 } 76369 r.ReadMapElemKey() 76370 yys3 := z.StringView(r.DecodeStringAsBytes()) 76371 r.ReadMapElemValue() 76372 switch yys3 { 76373 case "Vendor": 76374 if r.TryDecodeAsNil() { 76375 x.Vendor = "" 76376 } else { 76377 x.Vendor = (string)(r.DecodeString()) 76378 } 76379 case "Type": 76380 if r.TryDecodeAsNil() { 76381 x.Type = "" 76382 } else { 76383 x.Type = (string)(r.DecodeString()) 76384 } 76385 case "Name": 76386 if r.TryDecodeAsNil() { 76387 x.Name = "" 76388 } else { 76389 x.Name = (string)(r.DecodeString()) 76390 } 76391 default: 76392 z.DecStructFieldNotFound(-1, yys3) 76393 } // end switch yys3 76394 } // end for yyj3 76395 r.ReadMapEnd() 76396 } 76397 76398 func (x *DeviceIdTuple) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 76399 var h codecSelfer100 76400 z, r := codec1978.GenHelperDecoder(d) 76401 _, _, _ = h, z, r 76402 var yyj7 int 76403 var yyb7 bool 76404 var yyhl7 bool = l >= 0 76405 yyj7++ 76406 if yyhl7 { 76407 yyb7 = yyj7 > l 76408 } else { 76409 yyb7 = r.CheckBreak() 76410 } 76411 if yyb7 { 76412 r.ReadArrayEnd() 76413 return 76414 } 76415 r.ReadArrayElem() 76416 if r.TryDecodeAsNil() { 76417 x.Vendor = "" 76418 } else { 76419 x.Vendor = (string)(r.DecodeString()) 76420 } 76421 yyj7++ 76422 if yyhl7 { 76423 yyb7 = yyj7 > l 76424 } else { 76425 yyb7 = r.CheckBreak() 76426 } 76427 if yyb7 { 76428 r.ReadArrayEnd() 76429 return 76430 } 76431 r.ReadArrayElem() 76432 if r.TryDecodeAsNil() { 76433 x.Type = "" 76434 } else { 76435 x.Type = (string)(r.DecodeString()) 76436 } 76437 yyj7++ 76438 if yyhl7 { 76439 yyb7 = yyj7 > l 76440 } else { 76441 yyb7 = r.CheckBreak() 76442 } 76443 if yyb7 { 76444 r.ReadArrayEnd() 76445 return 76446 } 76447 r.ReadArrayElem() 76448 if r.TryDecodeAsNil() { 76449 x.Name = "" 76450 } else { 76451 x.Name = (string)(r.DecodeString()) 76452 } 76453 for { 76454 yyj7++ 76455 if yyhl7 { 76456 yyb7 = yyj7 > l 76457 } else { 76458 yyb7 = r.CheckBreak() 76459 } 76460 if yyb7 { 76461 break 76462 } 76463 r.ReadArrayElem() 76464 z.DecStructFieldNotFound(yyj7-1, "") 76465 } 76466 r.ReadArrayEnd() 76467 } 76468 76469 func (x *NodeDeviceResource) CodecEncodeSelf(e *codec1978.Encoder) { 76470 var h codecSelfer100 76471 z, r := codec1978.GenHelperEncoder(e) 76472 _, _, _ = h, z, r 76473 if x == nil { 76474 r.EncodeNil() 76475 } else { 76476 if false { 76477 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 76478 z.EncExtension(x, yyxt1) 76479 } else { 76480 yysep2 := !z.EncBinary() 76481 yy2arr2 := z.EncBasicHandle().StructToArray 76482 _, _ = yysep2, yy2arr2 76483 const yyr2 bool = false // struct tag has 'toArray' 76484 if yyr2 || yy2arr2 { 76485 r.WriteArrayStart(5) 76486 } else { 76487 r.WriteMapStart(5) 76488 } 76489 if yyr2 || yy2arr2 { 76490 r.WriteArrayElem() 76491 if false { 76492 } else { 76493 if z.EncBasicHandle().StringToRaw { 76494 r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) 76495 } else { 76496 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) 76497 } 76498 } 76499 } else { 76500 r.WriteMapElemKey() 76501 if z.IsJSONHandle() { 76502 z.WriteStr("\"Vendor\"") 76503 } else { 76504 r.EncodeStringEnc(codecSelferCcUTF8100, `Vendor`) 76505 } 76506 r.WriteMapElemValue() 76507 if false { 76508 } else { 76509 if z.EncBasicHandle().StringToRaw { 76510 r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) 76511 } else { 76512 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) 76513 } 76514 } 76515 } 76516 if yyr2 || yy2arr2 { 76517 r.WriteArrayElem() 76518 if false { 76519 } else { 76520 if z.EncBasicHandle().StringToRaw { 76521 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 76522 } else { 76523 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 76524 } 76525 } 76526 } else { 76527 r.WriteMapElemKey() 76528 if z.IsJSONHandle() { 76529 z.WriteStr("\"Type\"") 76530 } else { 76531 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 76532 } 76533 r.WriteMapElemValue() 76534 if false { 76535 } else { 76536 if z.EncBasicHandle().StringToRaw { 76537 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 76538 } else { 76539 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 76540 } 76541 } 76542 } 76543 if yyr2 || yy2arr2 { 76544 r.WriteArrayElem() 76545 if false { 76546 } else { 76547 if z.EncBasicHandle().StringToRaw { 76548 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 76549 } else { 76550 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 76551 } 76552 } 76553 } else { 76554 r.WriteMapElemKey() 76555 if z.IsJSONHandle() { 76556 z.WriteStr("\"Name\"") 76557 } else { 76558 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 76559 } 76560 r.WriteMapElemValue() 76561 if false { 76562 } else { 76563 if z.EncBasicHandle().StringToRaw { 76564 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 76565 } else { 76566 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 76567 } 76568 } 76569 } 76570 if yyr2 || yy2arr2 { 76571 r.WriteArrayElem() 76572 if x.Instances == nil { 76573 r.EncodeNil() 76574 } else { 76575 if false { 76576 } else { 76577 h.encSlicePtrtoNodeDevice(([]*NodeDevice)(x.Instances), e) 76578 } 76579 } 76580 } else { 76581 r.WriteMapElemKey() 76582 if z.IsJSONHandle() { 76583 z.WriteStr("\"Instances\"") 76584 } else { 76585 r.EncodeStringEnc(codecSelferCcUTF8100, `Instances`) 76586 } 76587 r.WriteMapElemValue() 76588 if x.Instances == nil { 76589 r.EncodeNil() 76590 } else { 76591 if false { 76592 } else { 76593 h.encSlicePtrtoNodeDevice(([]*NodeDevice)(x.Instances), e) 76594 } 76595 } 76596 } 76597 if yyr2 || yy2arr2 { 76598 r.WriteArrayElem() 76599 if x.Attributes == nil { 76600 r.EncodeNil() 76601 } else { 76602 if false { 76603 } else { 76604 h.encMapstringPtrtostructs_Attribute((map[string]*pkg1_structs.Attribute)(x.Attributes), e) 76605 } 76606 } 76607 } else { 76608 r.WriteMapElemKey() 76609 if z.IsJSONHandle() { 76610 z.WriteStr("\"Attributes\"") 76611 } else { 76612 r.EncodeStringEnc(codecSelferCcUTF8100, `Attributes`) 76613 } 76614 r.WriteMapElemValue() 76615 if x.Attributes == nil { 76616 r.EncodeNil() 76617 } else { 76618 if false { 76619 } else { 76620 h.encMapstringPtrtostructs_Attribute((map[string]*pkg1_structs.Attribute)(x.Attributes), e) 76621 } 76622 } 76623 } 76624 if yyr2 || yy2arr2 { 76625 r.WriteArrayEnd() 76626 } else { 76627 r.WriteMapEnd() 76628 } 76629 } 76630 } 76631 } 76632 76633 func (x *NodeDeviceResource) CodecDecodeSelf(d *codec1978.Decoder) { 76634 var h codecSelfer100 76635 z, r := codec1978.GenHelperDecoder(d) 76636 _, _, _ = h, z, r 76637 if false { 76638 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 76639 z.DecExtension(x, yyxt1) 76640 } else { 76641 yyct2 := r.ContainerType() 76642 if yyct2 == codecSelferValueTypeMap100 { 76643 yyl2 := r.ReadMapStart() 76644 if yyl2 == 0 { 76645 r.ReadMapEnd() 76646 } else { 76647 x.codecDecodeSelfFromMap(yyl2, d) 76648 } 76649 } else if yyct2 == codecSelferValueTypeArray100 { 76650 yyl2 := r.ReadArrayStart() 76651 if yyl2 == 0 { 76652 r.ReadArrayEnd() 76653 } else { 76654 x.codecDecodeSelfFromArray(yyl2, d) 76655 } 76656 } else { 76657 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 76658 } 76659 } 76660 } 76661 76662 func (x *NodeDeviceResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 76663 var h codecSelfer100 76664 z, r := codec1978.GenHelperDecoder(d) 76665 _, _, _ = h, z, r 76666 var yyhl3 bool = l >= 0 76667 for yyj3 := 0; ; yyj3++ { 76668 if yyhl3 { 76669 if yyj3 >= l { 76670 break 76671 } 76672 } else { 76673 if r.CheckBreak() { 76674 break 76675 } 76676 } 76677 r.ReadMapElemKey() 76678 yys3 := z.StringView(r.DecodeStringAsBytes()) 76679 r.ReadMapElemValue() 76680 switch yys3 { 76681 case "Vendor": 76682 if r.TryDecodeAsNil() { 76683 x.Vendor = "" 76684 } else { 76685 x.Vendor = (string)(r.DecodeString()) 76686 } 76687 case "Type": 76688 if r.TryDecodeAsNil() { 76689 x.Type = "" 76690 } else { 76691 x.Type = (string)(r.DecodeString()) 76692 } 76693 case "Name": 76694 if r.TryDecodeAsNil() { 76695 x.Name = "" 76696 } else { 76697 x.Name = (string)(r.DecodeString()) 76698 } 76699 case "Instances": 76700 if r.TryDecodeAsNil() { 76701 x.Instances = nil 76702 } else { 76703 if false { 76704 } else { 76705 h.decSlicePtrtoNodeDevice((*[]*NodeDevice)(&x.Instances), d) 76706 } 76707 } 76708 case "Attributes": 76709 if r.TryDecodeAsNil() { 76710 x.Attributes = nil 76711 } else { 76712 if false { 76713 } else { 76714 h.decMapstringPtrtostructs_Attribute((*map[string]*pkg1_structs.Attribute)(&x.Attributes), d) 76715 } 76716 } 76717 default: 76718 z.DecStructFieldNotFound(-1, yys3) 76719 } // end switch yys3 76720 } // end for yyj3 76721 r.ReadMapEnd() 76722 } 76723 76724 func (x *NodeDeviceResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 76725 var h codecSelfer100 76726 z, r := codec1978.GenHelperDecoder(d) 76727 _, _, _ = h, z, r 76728 var yyj11 int 76729 var yyb11 bool 76730 var yyhl11 bool = l >= 0 76731 yyj11++ 76732 if yyhl11 { 76733 yyb11 = yyj11 > l 76734 } else { 76735 yyb11 = r.CheckBreak() 76736 } 76737 if yyb11 { 76738 r.ReadArrayEnd() 76739 return 76740 } 76741 r.ReadArrayElem() 76742 if r.TryDecodeAsNil() { 76743 x.Vendor = "" 76744 } else { 76745 x.Vendor = (string)(r.DecodeString()) 76746 } 76747 yyj11++ 76748 if yyhl11 { 76749 yyb11 = yyj11 > l 76750 } else { 76751 yyb11 = r.CheckBreak() 76752 } 76753 if yyb11 { 76754 r.ReadArrayEnd() 76755 return 76756 } 76757 r.ReadArrayElem() 76758 if r.TryDecodeAsNil() { 76759 x.Type = "" 76760 } else { 76761 x.Type = (string)(r.DecodeString()) 76762 } 76763 yyj11++ 76764 if yyhl11 { 76765 yyb11 = yyj11 > l 76766 } else { 76767 yyb11 = r.CheckBreak() 76768 } 76769 if yyb11 { 76770 r.ReadArrayEnd() 76771 return 76772 } 76773 r.ReadArrayElem() 76774 if r.TryDecodeAsNil() { 76775 x.Name = "" 76776 } else { 76777 x.Name = (string)(r.DecodeString()) 76778 } 76779 yyj11++ 76780 if yyhl11 { 76781 yyb11 = yyj11 > l 76782 } else { 76783 yyb11 = r.CheckBreak() 76784 } 76785 if yyb11 { 76786 r.ReadArrayEnd() 76787 return 76788 } 76789 r.ReadArrayElem() 76790 if r.TryDecodeAsNil() { 76791 x.Instances = nil 76792 } else { 76793 if false { 76794 } else { 76795 h.decSlicePtrtoNodeDevice((*[]*NodeDevice)(&x.Instances), d) 76796 } 76797 } 76798 yyj11++ 76799 if yyhl11 { 76800 yyb11 = yyj11 > l 76801 } else { 76802 yyb11 = r.CheckBreak() 76803 } 76804 if yyb11 { 76805 r.ReadArrayEnd() 76806 return 76807 } 76808 r.ReadArrayElem() 76809 if r.TryDecodeAsNil() { 76810 x.Attributes = nil 76811 } else { 76812 if false { 76813 } else { 76814 h.decMapstringPtrtostructs_Attribute((*map[string]*pkg1_structs.Attribute)(&x.Attributes), d) 76815 } 76816 } 76817 for { 76818 yyj11++ 76819 if yyhl11 { 76820 yyb11 = yyj11 > l 76821 } else { 76822 yyb11 = r.CheckBreak() 76823 } 76824 if yyb11 { 76825 break 76826 } 76827 r.ReadArrayElem() 76828 z.DecStructFieldNotFound(yyj11-1, "") 76829 } 76830 r.ReadArrayEnd() 76831 } 76832 76833 func (x *NodeDevice) CodecEncodeSelf(e *codec1978.Encoder) { 76834 var h codecSelfer100 76835 z, r := codec1978.GenHelperEncoder(e) 76836 _, _, _ = h, z, r 76837 if x == nil { 76838 r.EncodeNil() 76839 } else { 76840 if false { 76841 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 76842 z.EncExtension(x, yyxt1) 76843 } else { 76844 yysep2 := !z.EncBinary() 76845 yy2arr2 := z.EncBasicHandle().StructToArray 76846 _, _ = yysep2, yy2arr2 76847 const yyr2 bool = false // struct tag has 'toArray' 76848 if yyr2 || yy2arr2 { 76849 r.WriteArrayStart(4) 76850 } else { 76851 r.WriteMapStart(4) 76852 } 76853 if yyr2 || yy2arr2 { 76854 r.WriteArrayElem() 76855 if false { 76856 } else { 76857 if z.EncBasicHandle().StringToRaw { 76858 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 76859 } else { 76860 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 76861 } 76862 } 76863 } else { 76864 r.WriteMapElemKey() 76865 if z.IsJSONHandle() { 76866 z.WriteStr("\"ID\"") 76867 } else { 76868 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 76869 } 76870 r.WriteMapElemValue() 76871 if false { 76872 } else { 76873 if z.EncBasicHandle().StringToRaw { 76874 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 76875 } else { 76876 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 76877 } 76878 } 76879 } 76880 if yyr2 || yy2arr2 { 76881 r.WriteArrayElem() 76882 if false { 76883 } else { 76884 r.EncodeBool(bool(x.Healthy)) 76885 } 76886 } else { 76887 r.WriteMapElemKey() 76888 if z.IsJSONHandle() { 76889 z.WriteStr("\"Healthy\"") 76890 } else { 76891 r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) 76892 } 76893 r.WriteMapElemValue() 76894 if false { 76895 } else { 76896 r.EncodeBool(bool(x.Healthy)) 76897 } 76898 } 76899 if yyr2 || yy2arr2 { 76900 r.WriteArrayElem() 76901 if false { 76902 } else { 76903 if z.EncBasicHandle().StringToRaw { 76904 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) 76905 } else { 76906 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) 76907 } 76908 } 76909 } else { 76910 r.WriteMapElemKey() 76911 if z.IsJSONHandle() { 76912 z.WriteStr("\"HealthDescription\"") 76913 } else { 76914 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthDescription`) 76915 } 76916 r.WriteMapElemValue() 76917 if false { 76918 } else { 76919 if z.EncBasicHandle().StringToRaw { 76920 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) 76921 } else { 76922 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) 76923 } 76924 } 76925 } 76926 var yyn12 bool 76927 if x.Locality == nil { 76928 yyn12 = true 76929 goto LABEL12 76930 } 76931 LABEL12: 76932 if yyr2 || yy2arr2 { 76933 if yyn12 { 76934 r.WriteArrayElem() 76935 r.EncodeNil() 76936 } else { 76937 r.WriteArrayElem() 76938 if x.Locality == nil { 76939 r.EncodeNil() 76940 } else { 76941 x.Locality.CodecEncodeSelf(e) 76942 } 76943 } 76944 } else { 76945 r.WriteMapElemKey() 76946 if z.IsJSONHandle() { 76947 z.WriteStr("\"Locality\"") 76948 } else { 76949 r.EncodeStringEnc(codecSelferCcUTF8100, `Locality`) 76950 } 76951 r.WriteMapElemValue() 76952 if yyn12 { 76953 r.EncodeNil() 76954 } else { 76955 if x.Locality == nil { 76956 r.EncodeNil() 76957 } else { 76958 x.Locality.CodecEncodeSelf(e) 76959 } 76960 } 76961 } 76962 if yyr2 || yy2arr2 { 76963 r.WriteArrayEnd() 76964 } else { 76965 r.WriteMapEnd() 76966 } 76967 } 76968 } 76969 } 76970 76971 func (x *NodeDevice) CodecDecodeSelf(d *codec1978.Decoder) { 76972 var h codecSelfer100 76973 z, r := codec1978.GenHelperDecoder(d) 76974 _, _, _ = h, z, r 76975 if false { 76976 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 76977 z.DecExtension(x, yyxt1) 76978 } else { 76979 yyct2 := r.ContainerType() 76980 if yyct2 == codecSelferValueTypeMap100 { 76981 yyl2 := r.ReadMapStart() 76982 if yyl2 == 0 { 76983 r.ReadMapEnd() 76984 } else { 76985 x.codecDecodeSelfFromMap(yyl2, d) 76986 } 76987 } else if yyct2 == codecSelferValueTypeArray100 { 76988 yyl2 := r.ReadArrayStart() 76989 if yyl2 == 0 { 76990 r.ReadArrayEnd() 76991 } else { 76992 x.codecDecodeSelfFromArray(yyl2, d) 76993 } 76994 } else { 76995 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 76996 } 76997 } 76998 } 76999 77000 func (x *NodeDevice) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 77001 var h codecSelfer100 77002 z, r := codec1978.GenHelperDecoder(d) 77003 _, _, _ = h, z, r 77004 var yyhl3 bool = l >= 0 77005 for yyj3 := 0; ; yyj3++ { 77006 if yyhl3 { 77007 if yyj3 >= l { 77008 break 77009 } 77010 } else { 77011 if r.CheckBreak() { 77012 break 77013 } 77014 } 77015 r.ReadMapElemKey() 77016 yys3 := z.StringView(r.DecodeStringAsBytes()) 77017 r.ReadMapElemValue() 77018 switch yys3 { 77019 case "ID": 77020 if r.TryDecodeAsNil() { 77021 x.ID = "" 77022 } else { 77023 x.ID = (string)(r.DecodeString()) 77024 } 77025 case "Healthy": 77026 if r.TryDecodeAsNil() { 77027 x.Healthy = false 77028 } else { 77029 x.Healthy = (bool)(r.DecodeBool()) 77030 } 77031 case "HealthDescription": 77032 if r.TryDecodeAsNil() { 77033 x.HealthDescription = "" 77034 } else { 77035 x.HealthDescription = (string)(r.DecodeString()) 77036 } 77037 case "Locality": 77038 if r.TryDecodeAsNil() { 77039 if true && x.Locality != nil { 77040 x.Locality = nil 77041 } 77042 } else { 77043 if x.Locality == nil { 77044 x.Locality = new(NodeDeviceLocality) 77045 } 77046 77047 x.Locality.CodecDecodeSelf(d) 77048 } 77049 default: 77050 z.DecStructFieldNotFound(-1, yys3) 77051 } // end switch yys3 77052 } // end for yyj3 77053 r.ReadMapEnd() 77054 } 77055 77056 func (x *NodeDevice) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 77057 var h codecSelfer100 77058 z, r := codec1978.GenHelperDecoder(d) 77059 _, _, _ = h, z, r 77060 var yyj8 int 77061 var yyb8 bool 77062 var yyhl8 bool = l >= 0 77063 yyj8++ 77064 if yyhl8 { 77065 yyb8 = yyj8 > l 77066 } else { 77067 yyb8 = r.CheckBreak() 77068 } 77069 if yyb8 { 77070 r.ReadArrayEnd() 77071 return 77072 } 77073 r.ReadArrayElem() 77074 if r.TryDecodeAsNil() { 77075 x.ID = "" 77076 } else { 77077 x.ID = (string)(r.DecodeString()) 77078 } 77079 yyj8++ 77080 if yyhl8 { 77081 yyb8 = yyj8 > l 77082 } else { 77083 yyb8 = r.CheckBreak() 77084 } 77085 if yyb8 { 77086 r.ReadArrayEnd() 77087 return 77088 } 77089 r.ReadArrayElem() 77090 if r.TryDecodeAsNil() { 77091 x.Healthy = false 77092 } else { 77093 x.Healthy = (bool)(r.DecodeBool()) 77094 } 77095 yyj8++ 77096 if yyhl8 { 77097 yyb8 = yyj8 > l 77098 } else { 77099 yyb8 = r.CheckBreak() 77100 } 77101 if yyb8 { 77102 r.ReadArrayEnd() 77103 return 77104 } 77105 r.ReadArrayElem() 77106 if r.TryDecodeAsNil() { 77107 x.HealthDescription = "" 77108 } else { 77109 x.HealthDescription = (string)(r.DecodeString()) 77110 } 77111 yyj8++ 77112 if yyhl8 { 77113 yyb8 = yyj8 > l 77114 } else { 77115 yyb8 = r.CheckBreak() 77116 } 77117 if yyb8 { 77118 r.ReadArrayEnd() 77119 return 77120 } 77121 r.ReadArrayElem() 77122 if r.TryDecodeAsNil() { 77123 if true && x.Locality != nil { 77124 x.Locality = nil 77125 } 77126 } else { 77127 if x.Locality == nil { 77128 x.Locality = new(NodeDeviceLocality) 77129 } 77130 77131 x.Locality.CodecDecodeSelf(d) 77132 } 77133 for { 77134 yyj8++ 77135 if yyhl8 { 77136 yyb8 = yyj8 > l 77137 } else { 77138 yyb8 = r.CheckBreak() 77139 } 77140 if yyb8 { 77141 break 77142 } 77143 r.ReadArrayElem() 77144 z.DecStructFieldNotFound(yyj8-1, "") 77145 } 77146 r.ReadArrayEnd() 77147 } 77148 77149 func (x *NodeDeviceLocality) CodecEncodeSelf(e *codec1978.Encoder) { 77150 var h codecSelfer100 77151 z, r := codec1978.GenHelperEncoder(e) 77152 _, _, _ = h, z, r 77153 if x == nil { 77154 r.EncodeNil() 77155 } else { 77156 if false { 77157 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77158 z.EncExtension(x, yyxt1) 77159 } else { 77160 yysep2 := !z.EncBinary() 77161 yy2arr2 := z.EncBasicHandle().StructToArray 77162 _, _ = yysep2, yy2arr2 77163 const yyr2 bool = false // struct tag has 'toArray' 77164 if yyr2 || yy2arr2 { 77165 r.WriteArrayStart(1) 77166 } else { 77167 r.WriteMapStart(1) 77168 } 77169 if yyr2 || yy2arr2 { 77170 r.WriteArrayElem() 77171 if false { 77172 } else { 77173 if z.EncBasicHandle().StringToRaw { 77174 r.EncodeStringBytesRaw(z.BytesView(string(x.PciBusID))) 77175 } else { 77176 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PciBusID)) 77177 } 77178 } 77179 } else { 77180 r.WriteMapElemKey() 77181 if z.IsJSONHandle() { 77182 z.WriteStr("\"PciBusID\"") 77183 } else { 77184 r.EncodeStringEnc(codecSelferCcUTF8100, `PciBusID`) 77185 } 77186 r.WriteMapElemValue() 77187 if false { 77188 } else { 77189 if z.EncBasicHandle().StringToRaw { 77190 r.EncodeStringBytesRaw(z.BytesView(string(x.PciBusID))) 77191 } else { 77192 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PciBusID)) 77193 } 77194 } 77195 } 77196 if yyr2 || yy2arr2 { 77197 r.WriteArrayEnd() 77198 } else { 77199 r.WriteMapEnd() 77200 } 77201 } 77202 } 77203 } 77204 77205 func (x *NodeDeviceLocality) CodecDecodeSelf(d *codec1978.Decoder) { 77206 var h codecSelfer100 77207 z, r := codec1978.GenHelperDecoder(d) 77208 _, _, _ = h, z, r 77209 if false { 77210 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77211 z.DecExtension(x, yyxt1) 77212 } else { 77213 yyct2 := r.ContainerType() 77214 if yyct2 == codecSelferValueTypeMap100 { 77215 yyl2 := r.ReadMapStart() 77216 if yyl2 == 0 { 77217 r.ReadMapEnd() 77218 } else { 77219 x.codecDecodeSelfFromMap(yyl2, d) 77220 } 77221 } else if yyct2 == codecSelferValueTypeArray100 { 77222 yyl2 := r.ReadArrayStart() 77223 if yyl2 == 0 { 77224 r.ReadArrayEnd() 77225 } else { 77226 x.codecDecodeSelfFromArray(yyl2, d) 77227 } 77228 } else { 77229 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 77230 } 77231 } 77232 } 77233 77234 func (x *NodeDeviceLocality) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 77235 var h codecSelfer100 77236 z, r := codec1978.GenHelperDecoder(d) 77237 _, _, _ = h, z, r 77238 var yyhl3 bool = l >= 0 77239 for yyj3 := 0; ; yyj3++ { 77240 if yyhl3 { 77241 if yyj3 >= l { 77242 break 77243 } 77244 } else { 77245 if r.CheckBreak() { 77246 break 77247 } 77248 } 77249 r.ReadMapElemKey() 77250 yys3 := z.StringView(r.DecodeStringAsBytes()) 77251 r.ReadMapElemValue() 77252 switch yys3 { 77253 case "PciBusID": 77254 if r.TryDecodeAsNil() { 77255 x.PciBusID = "" 77256 } else { 77257 x.PciBusID = (string)(r.DecodeString()) 77258 } 77259 default: 77260 z.DecStructFieldNotFound(-1, yys3) 77261 } // end switch yys3 77262 } // end for yyj3 77263 r.ReadMapEnd() 77264 } 77265 77266 func (x *NodeDeviceLocality) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 77267 var h codecSelfer100 77268 z, r := codec1978.GenHelperDecoder(d) 77269 _, _, _ = h, z, r 77270 var yyj5 int 77271 var yyb5 bool 77272 var yyhl5 bool = l >= 0 77273 yyj5++ 77274 if yyhl5 { 77275 yyb5 = yyj5 > l 77276 } else { 77277 yyb5 = r.CheckBreak() 77278 } 77279 if yyb5 { 77280 r.ReadArrayEnd() 77281 return 77282 } 77283 r.ReadArrayElem() 77284 if r.TryDecodeAsNil() { 77285 x.PciBusID = "" 77286 } else { 77287 x.PciBusID = (string)(r.DecodeString()) 77288 } 77289 for { 77290 yyj5++ 77291 if yyhl5 { 77292 yyb5 = yyj5 > l 77293 } else { 77294 yyb5 = r.CheckBreak() 77295 } 77296 if yyb5 { 77297 break 77298 } 77299 r.ReadArrayElem() 77300 z.DecStructFieldNotFound(yyj5-1, "") 77301 } 77302 r.ReadArrayEnd() 77303 } 77304 77305 func (x *NodeReservedResources) CodecEncodeSelf(e *codec1978.Encoder) { 77306 var h codecSelfer100 77307 z, r := codec1978.GenHelperEncoder(e) 77308 _, _, _ = h, z, r 77309 if x == nil { 77310 r.EncodeNil() 77311 } else { 77312 if false { 77313 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77314 z.EncExtension(x, yyxt1) 77315 } else { 77316 yysep2 := !z.EncBinary() 77317 yy2arr2 := z.EncBasicHandle().StructToArray 77318 _, _ = yysep2, yy2arr2 77319 const yyr2 bool = false // struct tag has 'toArray' 77320 if yyr2 || yy2arr2 { 77321 r.WriteArrayStart(4) 77322 } else { 77323 r.WriteMapStart(4) 77324 } 77325 if yyr2 || yy2arr2 { 77326 r.WriteArrayElem() 77327 yy4 := &x.Cpu 77328 yy4.CodecEncodeSelf(e) 77329 } else { 77330 r.WriteMapElemKey() 77331 if z.IsJSONHandle() { 77332 z.WriteStr("\"Cpu\"") 77333 } else { 77334 r.EncodeStringEnc(codecSelferCcUTF8100, `Cpu`) 77335 } 77336 r.WriteMapElemValue() 77337 yy6 := &x.Cpu 77338 yy6.CodecEncodeSelf(e) 77339 } 77340 if yyr2 || yy2arr2 { 77341 r.WriteArrayElem() 77342 yy9 := &x.Memory 77343 yy9.CodecEncodeSelf(e) 77344 } else { 77345 r.WriteMapElemKey() 77346 if z.IsJSONHandle() { 77347 z.WriteStr("\"Memory\"") 77348 } else { 77349 r.EncodeStringEnc(codecSelferCcUTF8100, `Memory`) 77350 } 77351 r.WriteMapElemValue() 77352 yy11 := &x.Memory 77353 yy11.CodecEncodeSelf(e) 77354 } 77355 if yyr2 || yy2arr2 { 77356 r.WriteArrayElem() 77357 yy14 := &x.Disk 77358 yy14.CodecEncodeSelf(e) 77359 } else { 77360 r.WriteMapElemKey() 77361 if z.IsJSONHandle() { 77362 z.WriteStr("\"Disk\"") 77363 } else { 77364 r.EncodeStringEnc(codecSelferCcUTF8100, `Disk`) 77365 } 77366 r.WriteMapElemValue() 77367 yy16 := &x.Disk 77368 yy16.CodecEncodeSelf(e) 77369 } 77370 if yyr2 || yy2arr2 { 77371 r.WriteArrayElem() 77372 yy19 := &x.Networks 77373 yy19.CodecEncodeSelf(e) 77374 } else { 77375 r.WriteMapElemKey() 77376 if z.IsJSONHandle() { 77377 z.WriteStr("\"Networks\"") 77378 } else { 77379 r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) 77380 } 77381 r.WriteMapElemValue() 77382 yy21 := &x.Networks 77383 yy21.CodecEncodeSelf(e) 77384 } 77385 if yyr2 || yy2arr2 { 77386 r.WriteArrayEnd() 77387 } else { 77388 r.WriteMapEnd() 77389 } 77390 } 77391 } 77392 } 77393 77394 func (x *NodeReservedResources) CodecDecodeSelf(d *codec1978.Decoder) { 77395 var h codecSelfer100 77396 z, r := codec1978.GenHelperDecoder(d) 77397 _, _, _ = h, z, r 77398 if false { 77399 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77400 z.DecExtension(x, yyxt1) 77401 } else { 77402 yyct2 := r.ContainerType() 77403 if yyct2 == codecSelferValueTypeMap100 { 77404 yyl2 := r.ReadMapStart() 77405 if yyl2 == 0 { 77406 r.ReadMapEnd() 77407 } else { 77408 x.codecDecodeSelfFromMap(yyl2, d) 77409 } 77410 } else if yyct2 == codecSelferValueTypeArray100 { 77411 yyl2 := r.ReadArrayStart() 77412 if yyl2 == 0 { 77413 r.ReadArrayEnd() 77414 } else { 77415 x.codecDecodeSelfFromArray(yyl2, d) 77416 } 77417 } else { 77418 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 77419 } 77420 } 77421 } 77422 77423 func (x *NodeReservedResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 77424 var h codecSelfer100 77425 z, r := codec1978.GenHelperDecoder(d) 77426 _, _, _ = h, z, r 77427 var yyhl3 bool = l >= 0 77428 for yyj3 := 0; ; yyj3++ { 77429 if yyhl3 { 77430 if yyj3 >= l { 77431 break 77432 } 77433 } else { 77434 if r.CheckBreak() { 77435 break 77436 } 77437 } 77438 r.ReadMapElemKey() 77439 yys3 := z.StringView(r.DecodeStringAsBytes()) 77440 r.ReadMapElemValue() 77441 switch yys3 { 77442 case "Cpu": 77443 if r.TryDecodeAsNil() { 77444 x.Cpu = NodeReservedCpuResources{} 77445 } else { 77446 x.Cpu.CodecDecodeSelf(d) 77447 } 77448 case "Memory": 77449 if r.TryDecodeAsNil() { 77450 x.Memory = NodeReservedMemoryResources{} 77451 } else { 77452 x.Memory.CodecDecodeSelf(d) 77453 } 77454 case "Disk": 77455 if r.TryDecodeAsNil() { 77456 x.Disk = NodeReservedDiskResources{} 77457 } else { 77458 x.Disk.CodecDecodeSelf(d) 77459 } 77460 case "Networks": 77461 if r.TryDecodeAsNil() { 77462 x.Networks = NodeReservedNetworkResources{} 77463 } else { 77464 x.Networks.CodecDecodeSelf(d) 77465 } 77466 default: 77467 z.DecStructFieldNotFound(-1, yys3) 77468 } // end switch yys3 77469 } // end for yyj3 77470 r.ReadMapEnd() 77471 } 77472 77473 func (x *NodeReservedResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 77474 var h codecSelfer100 77475 z, r := codec1978.GenHelperDecoder(d) 77476 _, _, _ = h, z, r 77477 var yyj8 int 77478 var yyb8 bool 77479 var yyhl8 bool = l >= 0 77480 yyj8++ 77481 if yyhl8 { 77482 yyb8 = yyj8 > l 77483 } else { 77484 yyb8 = r.CheckBreak() 77485 } 77486 if yyb8 { 77487 r.ReadArrayEnd() 77488 return 77489 } 77490 r.ReadArrayElem() 77491 if r.TryDecodeAsNil() { 77492 x.Cpu = NodeReservedCpuResources{} 77493 } else { 77494 x.Cpu.CodecDecodeSelf(d) 77495 } 77496 yyj8++ 77497 if yyhl8 { 77498 yyb8 = yyj8 > l 77499 } else { 77500 yyb8 = r.CheckBreak() 77501 } 77502 if yyb8 { 77503 r.ReadArrayEnd() 77504 return 77505 } 77506 r.ReadArrayElem() 77507 if r.TryDecodeAsNil() { 77508 x.Memory = NodeReservedMemoryResources{} 77509 } else { 77510 x.Memory.CodecDecodeSelf(d) 77511 } 77512 yyj8++ 77513 if yyhl8 { 77514 yyb8 = yyj8 > l 77515 } else { 77516 yyb8 = r.CheckBreak() 77517 } 77518 if yyb8 { 77519 r.ReadArrayEnd() 77520 return 77521 } 77522 r.ReadArrayElem() 77523 if r.TryDecodeAsNil() { 77524 x.Disk = NodeReservedDiskResources{} 77525 } else { 77526 x.Disk.CodecDecodeSelf(d) 77527 } 77528 yyj8++ 77529 if yyhl8 { 77530 yyb8 = yyj8 > l 77531 } else { 77532 yyb8 = r.CheckBreak() 77533 } 77534 if yyb8 { 77535 r.ReadArrayEnd() 77536 return 77537 } 77538 r.ReadArrayElem() 77539 if r.TryDecodeAsNil() { 77540 x.Networks = NodeReservedNetworkResources{} 77541 } else { 77542 x.Networks.CodecDecodeSelf(d) 77543 } 77544 for { 77545 yyj8++ 77546 if yyhl8 { 77547 yyb8 = yyj8 > l 77548 } else { 77549 yyb8 = r.CheckBreak() 77550 } 77551 if yyb8 { 77552 break 77553 } 77554 r.ReadArrayElem() 77555 z.DecStructFieldNotFound(yyj8-1, "") 77556 } 77557 r.ReadArrayEnd() 77558 } 77559 77560 func (x *NodeReservedCpuResources) CodecEncodeSelf(e *codec1978.Encoder) { 77561 var h codecSelfer100 77562 z, r := codec1978.GenHelperEncoder(e) 77563 _, _, _ = h, z, r 77564 if x == nil { 77565 r.EncodeNil() 77566 } else { 77567 if false { 77568 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77569 z.EncExtension(x, yyxt1) 77570 } else { 77571 yysep2 := !z.EncBinary() 77572 yy2arr2 := z.EncBasicHandle().StructToArray 77573 _, _ = yysep2, yy2arr2 77574 const yyr2 bool = false // struct tag has 'toArray' 77575 if yyr2 || yy2arr2 { 77576 r.WriteArrayStart(1) 77577 } else { 77578 r.WriteMapStart(1) 77579 } 77580 if yyr2 || yy2arr2 { 77581 r.WriteArrayElem() 77582 if false { 77583 } else { 77584 r.EncodeInt(int64(x.CpuShares)) 77585 } 77586 } else { 77587 r.WriteMapElemKey() 77588 if z.IsJSONHandle() { 77589 z.WriteStr("\"CpuShares\"") 77590 } else { 77591 r.EncodeStringEnc(codecSelferCcUTF8100, `CpuShares`) 77592 } 77593 r.WriteMapElemValue() 77594 if false { 77595 } else { 77596 r.EncodeInt(int64(x.CpuShares)) 77597 } 77598 } 77599 if yyr2 || yy2arr2 { 77600 r.WriteArrayEnd() 77601 } else { 77602 r.WriteMapEnd() 77603 } 77604 } 77605 } 77606 } 77607 77608 func (x *NodeReservedCpuResources) CodecDecodeSelf(d *codec1978.Decoder) { 77609 var h codecSelfer100 77610 z, r := codec1978.GenHelperDecoder(d) 77611 _, _, _ = h, z, r 77612 if false { 77613 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77614 z.DecExtension(x, yyxt1) 77615 } else { 77616 yyct2 := r.ContainerType() 77617 if yyct2 == codecSelferValueTypeMap100 { 77618 yyl2 := r.ReadMapStart() 77619 if yyl2 == 0 { 77620 r.ReadMapEnd() 77621 } else { 77622 x.codecDecodeSelfFromMap(yyl2, d) 77623 } 77624 } else if yyct2 == codecSelferValueTypeArray100 { 77625 yyl2 := r.ReadArrayStart() 77626 if yyl2 == 0 { 77627 r.ReadArrayEnd() 77628 } else { 77629 x.codecDecodeSelfFromArray(yyl2, d) 77630 } 77631 } else { 77632 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 77633 } 77634 } 77635 } 77636 77637 func (x *NodeReservedCpuResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 77638 var h codecSelfer100 77639 z, r := codec1978.GenHelperDecoder(d) 77640 _, _, _ = h, z, r 77641 var yyhl3 bool = l >= 0 77642 for yyj3 := 0; ; yyj3++ { 77643 if yyhl3 { 77644 if yyj3 >= l { 77645 break 77646 } 77647 } else { 77648 if r.CheckBreak() { 77649 break 77650 } 77651 } 77652 r.ReadMapElemKey() 77653 yys3 := z.StringView(r.DecodeStringAsBytes()) 77654 r.ReadMapElemValue() 77655 switch yys3 { 77656 case "CpuShares": 77657 if r.TryDecodeAsNil() { 77658 x.CpuShares = 0 77659 } else { 77660 x.CpuShares = (int64)(r.DecodeInt64()) 77661 } 77662 default: 77663 z.DecStructFieldNotFound(-1, yys3) 77664 } // end switch yys3 77665 } // end for yyj3 77666 r.ReadMapEnd() 77667 } 77668 77669 func (x *NodeReservedCpuResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 77670 var h codecSelfer100 77671 z, r := codec1978.GenHelperDecoder(d) 77672 _, _, _ = h, z, r 77673 var yyj5 int 77674 var yyb5 bool 77675 var yyhl5 bool = l >= 0 77676 yyj5++ 77677 if yyhl5 { 77678 yyb5 = yyj5 > l 77679 } else { 77680 yyb5 = r.CheckBreak() 77681 } 77682 if yyb5 { 77683 r.ReadArrayEnd() 77684 return 77685 } 77686 r.ReadArrayElem() 77687 if r.TryDecodeAsNil() { 77688 x.CpuShares = 0 77689 } else { 77690 x.CpuShares = (int64)(r.DecodeInt64()) 77691 } 77692 for { 77693 yyj5++ 77694 if yyhl5 { 77695 yyb5 = yyj5 > l 77696 } else { 77697 yyb5 = r.CheckBreak() 77698 } 77699 if yyb5 { 77700 break 77701 } 77702 r.ReadArrayElem() 77703 z.DecStructFieldNotFound(yyj5-1, "") 77704 } 77705 r.ReadArrayEnd() 77706 } 77707 77708 func (x *NodeReservedMemoryResources) CodecEncodeSelf(e *codec1978.Encoder) { 77709 var h codecSelfer100 77710 z, r := codec1978.GenHelperEncoder(e) 77711 _, _, _ = h, z, r 77712 if x == nil { 77713 r.EncodeNil() 77714 } else { 77715 if false { 77716 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77717 z.EncExtension(x, yyxt1) 77718 } else { 77719 yysep2 := !z.EncBinary() 77720 yy2arr2 := z.EncBasicHandle().StructToArray 77721 _, _ = yysep2, yy2arr2 77722 const yyr2 bool = false // struct tag has 'toArray' 77723 if yyr2 || yy2arr2 { 77724 r.WriteArrayStart(1) 77725 } else { 77726 r.WriteMapStart(1) 77727 } 77728 if yyr2 || yy2arr2 { 77729 r.WriteArrayElem() 77730 if false { 77731 } else { 77732 r.EncodeInt(int64(x.MemoryMB)) 77733 } 77734 } else { 77735 r.WriteMapElemKey() 77736 if z.IsJSONHandle() { 77737 z.WriteStr("\"MemoryMB\"") 77738 } else { 77739 r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryMB`) 77740 } 77741 r.WriteMapElemValue() 77742 if false { 77743 } else { 77744 r.EncodeInt(int64(x.MemoryMB)) 77745 } 77746 } 77747 if yyr2 || yy2arr2 { 77748 r.WriteArrayEnd() 77749 } else { 77750 r.WriteMapEnd() 77751 } 77752 } 77753 } 77754 } 77755 77756 func (x *NodeReservedMemoryResources) CodecDecodeSelf(d *codec1978.Decoder) { 77757 var h codecSelfer100 77758 z, r := codec1978.GenHelperDecoder(d) 77759 _, _, _ = h, z, r 77760 if false { 77761 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77762 z.DecExtension(x, yyxt1) 77763 } else { 77764 yyct2 := r.ContainerType() 77765 if yyct2 == codecSelferValueTypeMap100 { 77766 yyl2 := r.ReadMapStart() 77767 if yyl2 == 0 { 77768 r.ReadMapEnd() 77769 } else { 77770 x.codecDecodeSelfFromMap(yyl2, d) 77771 } 77772 } else if yyct2 == codecSelferValueTypeArray100 { 77773 yyl2 := r.ReadArrayStart() 77774 if yyl2 == 0 { 77775 r.ReadArrayEnd() 77776 } else { 77777 x.codecDecodeSelfFromArray(yyl2, d) 77778 } 77779 } else { 77780 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 77781 } 77782 } 77783 } 77784 77785 func (x *NodeReservedMemoryResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 77786 var h codecSelfer100 77787 z, r := codec1978.GenHelperDecoder(d) 77788 _, _, _ = h, z, r 77789 var yyhl3 bool = l >= 0 77790 for yyj3 := 0; ; yyj3++ { 77791 if yyhl3 { 77792 if yyj3 >= l { 77793 break 77794 } 77795 } else { 77796 if r.CheckBreak() { 77797 break 77798 } 77799 } 77800 r.ReadMapElemKey() 77801 yys3 := z.StringView(r.DecodeStringAsBytes()) 77802 r.ReadMapElemValue() 77803 switch yys3 { 77804 case "MemoryMB": 77805 if r.TryDecodeAsNil() { 77806 x.MemoryMB = 0 77807 } else { 77808 x.MemoryMB = (int64)(r.DecodeInt64()) 77809 } 77810 default: 77811 z.DecStructFieldNotFound(-1, yys3) 77812 } // end switch yys3 77813 } // end for yyj3 77814 r.ReadMapEnd() 77815 } 77816 77817 func (x *NodeReservedMemoryResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 77818 var h codecSelfer100 77819 z, r := codec1978.GenHelperDecoder(d) 77820 _, _, _ = h, z, r 77821 var yyj5 int 77822 var yyb5 bool 77823 var yyhl5 bool = l >= 0 77824 yyj5++ 77825 if yyhl5 { 77826 yyb5 = yyj5 > l 77827 } else { 77828 yyb5 = r.CheckBreak() 77829 } 77830 if yyb5 { 77831 r.ReadArrayEnd() 77832 return 77833 } 77834 r.ReadArrayElem() 77835 if r.TryDecodeAsNil() { 77836 x.MemoryMB = 0 77837 } else { 77838 x.MemoryMB = (int64)(r.DecodeInt64()) 77839 } 77840 for { 77841 yyj5++ 77842 if yyhl5 { 77843 yyb5 = yyj5 > l 77844 } else { 77845 yyb5 = r.CheckBreak() 77846 } 77847 if yyb5 { 77848 break 77849 } 77850 r.ReadArrayElem() 77851 z.DecStructFieldNotFound(yyj5-1, "") 77852 } 77853 r.ReadArrayEnd() 77854 } 77855 77856 func (x *NodeReservedDiskResources) CodecEncodeSelf(e *codec1978.Encoder) { 77857 var h codecSelfer100 77858 z, r := codec1978.GenHelperEncoder(e) 77859 _, _, _ = h, z, r 77860 if x == nil { 77861 r.EncodeNil() 77862 } else { 77863 if false { 77864 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77865 z.EncExtension(x, yyxt1) 77866 } else { 77867 yysep2 := !z.EncBinary() 77868 yy2arr2 := z.EncBasicHandle().StructToArray 77869 _, _ = yysep2, yy2arr2 77870 const yyr2 bool = false // struct tag has 'toArray' 77871 if yyr2 || yy2arr2 { 77872 r.WriteArrayStart(1) 77873 } else { 77874 r.WriteMapStart(1) 77875 } 77876 if yyr2 || yy2arr2 { 77877 r.WriteArrayElem() 77878 if false { 77879 } else { 77880 r.EncodeInt(int64(x.DiskMB)) 77881 } 77882 } else { 77883 r.WriteMapElemKey() 77884 if z.IsJSONHandle() { 77885 z.WriteStr("\"DiskMB\"") 77886 } else { 77887 r.EncodeStringEnc(codecSelferCcUTF8100, `DiskMB`) 77888 } 77889 r.WriteMapElemValue() 77890 if false { 77891 } else { 77892 r.EncodeInt(int64(x.DiskMB)) 77893 } 77894 } 77895 if yyr2 || yy2arr2 { 77896 r.WriteArrayEnd() 77897 } else { 77898 r.WriteMapEnd() 77899 } 77900 } 77901 } 77902 } 77903 77904 func (x *NodeReservedDiskResources) CodecDecodeSelf(d *codec1978.Decoder) { 77905 var h codecSelfer100 77906 z, r := codec1978.GenHelperDecoder(d) 77907 _, _, _ = h, z, r 77908 if false { 77909 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77910 z.DecExtension(x, yyxt1) 77911 } else { 77912 yyct2 := r.ContainerType() 77913 if yyct2 == codecSelferValueTypeMap100 { 77914 yyl2 := r.ReadMapStart() 77915 if yyl2 == 0 { 77916 r.ReadMapEnd() 77917 } else { 77918 x.codecDecodeSelfFromMap(yyl2, d) 77919 } 77920 } else if yyct2 == codecSelferValueTypeArray100 { 77921 yyl2 := r.ReadArrayStart() 77922 if yyl2 == 0 { 77923 r.ReadArrayEnd() 77924 } else { 77925 x.codecDecodeSelfFromArray(yyl2, d) 77926 } 77927 } else { 77928 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 77929 } 77930 } 77931 } 77932 77933 func (x *NodeReservedDiskResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 77934 var h codecSelfer100 77935 z, r := codec1978.GenHelperDecoder(d) 77936 _, _, _ = h, z, r 77937 var yyhl3 bool = l >= 0 77938 for yyj3 := 0; ; yyj3++ { 77939 if yyhl3 { 77940 if yyj3 >= l { 77941 break 77942 } 77943 } else { 77944 if r.CheckBreak() { 77945 break 77946 } 77947 } 77948 r.ReadMapElemKey() 77949 yys3 := z.StringView(r.DecodeStringAsBytes()) 77950 r.ReadMapElemValue() 77951 switch yys3 { 77952 case "DiskMB": 77953 if r.TryDecodeAsNil() { 77954 x.DiskMB = 0 77955 } else { 77956 x.DiskMB = (int64)(r.DecodeInt64()) 77957 } 77958 default: 77959 z.DecStructFieldNotFound(-1, yys3) 77960 } // end switch yys3 77961 } // end for yyj3 77962 r.ReadMapEnd() 77963 } 77964 77965 func (x *NodeReservedDiskResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 77966 var h codecSelfer100 77967 z, r := codec1978.GenHelperDecoder(d) 77968 _, _, _ = h, z, r 77969 var yyj5 int 77970 var yyb5 bool 77971 var yyhl5 bool = l >= 0 77972 yyj5++ 77973 if yyhl5 { 77974 yyb5 = yyj5 > l 77975 } else { 77976 yyb5 = r.CheckBreak() 77977 } 77978 if yyb5 { 77979 r.ReadArrayEnd() 77980 return 77981 } 77982 r.ReadArrayElem() 77983 if r.TryDecodeAsNil() { 77984 x.DiskMB = 0 77985 } else { 77986 x.DiskMB = (int64)(r.DecodeInt64()) 77987 } 77988 for { 77989 yyj5++ 77990 if yyhl5 { 77991 yyb5 = yyj5 > l 77992 } else { 77993 yyb5 = r.CheckBreak() 77994 } 77995 if yyb5 { 77996 break 77997 } 77998 r.ReadArrayElem() 77999 z.DecStructFieldNotFound(yyj5-1, "") 78000 } 78001 r.ReadArrayEnd() 78002 } 78003 78004 func (x *NodeReservedNetworkResources) CodecEncodeSelf(e *codec1978.Encoder) { 78005 var h codecSelfer100 78006 z, r := codec1978.GenHelperEncoder(e) 78007 _, _, _ = h, z, r 78008 if x == nil { 78009 r.EncodeNil() 78010 } else { 78011 if false { 78012 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 78013 z.EncExtension(x, yyxt1) 78014 } else { 78015 yysep2 := !z.EncBinary() 78016 yy2arr2 := z.EncBasicHandle().StructToArray 78017 _, _ = yysep2, yy2arr2 78018 const yyr2 bool = false // struct tag has 'toArray' 78019 if yyr2 || yy2arr2 { 78020 r.WriteArrayStart(1) 78021 } else { 78022 r.WriteMapStart(1) 78023 } 78024 if yyr2 || yy2arr2 { 78025 r.WriteArrayElem() 78026 if false { 78027 } else { 78028 if z.EncBasicHandle().StringToRaw { 78029 r.EncodeStringBytesRaw(z.BytesView(string(x.ReservedHostPorts))) 78030 } else { 78031 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ReservedHostPorts)) 78032 } 78033 } 78034 } else { 78035 r.WriteMapElemKey() 78036 if z.IsJSONHandle() { 78037 z.WriteStr("\"ReservedHostPorts\"") 78038 } else { 78039 r.EncodeStringEnc(codecSelferCcUTF8100, `ReservedHostPorts`) 78040 } 78041 r.WriteMapElemValue() 78042 if false { 78043 } else { 78044 if z.EncBasicHandle().StringToRaw { 78045 r.EncodeStringBytesRaw(z.BytesView(string(x.ReservedHostPorts))) 78046 } else { 78047 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ReservedHostPorts)) 78048 } 78049 } 78050 } 78051 if yyr2 || yy2arr2 { 78052 r.WriteArrayEnd() 78053 } else { 78054 r.WriteMapEnd() 78055 } 78056 } 78057 } 78058 } 78059 78060 func (x *NodeReservedNetworkResources) CodecDecodeSelf(d *codec1978.Decoder) { 78061 var h codecSelfer100 78062 z, r := codec1978.GenHelperDecoder(d) 78063 _, _, _ = h, z, r 78064 if false { 78065 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 78066 z.DecExtension(x, yyxt1) 78067 } else { 78068 yyct2 := r.ContainerType() 78069 if yyct2 == codecSelferValueTypeMap100 { 78070 yyl2 := r.ReadMapStart() 78071 if yyl2 == 0 { 78072 r.ReadMapEnd() 78073 } else { 78074 x.codecDecodeSelfFromMap(yyl2, d) 78075 } 78076 } else if yyct2 == codecSelferValueTypeArray100 { 78077 yyl2 := r.ReadArrayStart() 78078 if yyl2 == 0 { 78079 r.ReadArrayEnd() 78080 } else { 78081 x.codecDecodeSelfFromArray(yyl2, d) 78082 } 78083 } else { 78084 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 78085 } 78086 } 78087 } 78088 78089 func (x *NodeReservedNetworkResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 78090 var h codecSelfer100 78091 z, r := codec1978.GenHelperDecoder(d) 78092 _, _, _ = h, z, r 78093 var yyhl3 bool = l >= 0 78094 for yyj3 := 0; ; yyj3++ { 78095 if yyhl3 { 78096 if yyj3 >= l { 78097 break 78098 } 78099 } else { 78100 if r.CheckBreak() { 78101 break 78102 } 78103 } 78104 r.ReadMapElemKey() 78105 yys3 := z.StringView(r.DecodeStringAsBytes()) 78106 r.ReadMapElemValue() 78107 switch yys3 { 78108 case "ReservedHostPorts": 78109 if r.TryDecodeAsNil() { 78110 x.ReservedHostPorts = "" 78111 } else { 78112 x.ReservedHostPorts = (string)(r.DecodeString()) 78113 } 78114 default: 78115 z.DecStructFieldNotFound(-1, yys3) 78116 } // end switch yys3 78117 } // end for yyj3 78118 r.ReadMapEnd() 78119 } 78120 78121 func (x *NodeReservedNetworkResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 78122 var h codecSelfer100 78123 z, r := codec1978.GenHelperDecoder(d) 78124 _, _, _ = h, z, r 78125 var yyj5 int 78126 var yyb5 bool 78127 var yyhl5 bool = l >= 0 78128 yyj5++ 78129 if yyhl5 { 78130 yyb5 = yyj5 > l 78131 } else { 78132 yyb5 = r.CheckBreak() 78133 } 78134 if yyb5 { 78135 r.ReadArrayEnd() 78136 return 78137 } 78138 r.ReadArrayElem() 78139 if r.TryDecodeAsNil() { 78140 x.ReservedHostPorts = "" 78141 } else { 78142 x.ReservedHostPorts = (string)(r.DecodeString()) 78143 } 78144 for { 78145 yyj5++ 78146 if yyhl5 { 78147 yyb5 = yyj5 > l 78148 } else { 78149 yyb5 = r.CheckBreak() 78150 } 78151 if yyb5 { 78152 break 78153 } 78154 r.ReadArrayElem() 78155 z.DecStructFieldNotFound(yyj5-1, "") 78156 } 78157 r.ReadArrayEnd() 78158 } 78159 78160 func (x *AllocatedResources) CodecEncodeSelf(e *codec1978.Encoder) { 78161 var h codecSelfer100 78162 z, r := codec1978.GenHelperEncoder(e) 78163 _, _, _ = h, z, r 78164 if x == nil { 78165 r.EncodeNil() 78166 } else { 78167 if false { 78168 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 78169 z.EncExtension(x, yyxt1) 78170 } else { 78171 yysep2 := !z.EncBinary() 78172 yy2arr2 := z.EncBasicHandle().StructToArray 78173 _, _ = yysep2, yy2arr2 78174 const yyr2 bool = false // struct tag has 'toArray' 78175 if yyr2 || yy2arr2 { 78176 r.WriteArrayStart(3) 78177 } else { 78178 r.WriteMapStart(3) 78179 } 78180 if yyr2 || yy2arr2 { 78181 r.WriteArrayElem() 78182 if x.Tasks == nil { 78183 r.EncodeNil() 78184 } else { 78185 if false { 78186 } else { 78187 h.encMapstringPtrtoAllocatedTaskResources((map[string]*AllocatedTaskResources)(x.Tasks), e) 78188 } 78189 } 78190 } else { 78191 r.WriteMapElemKey() 78192 if z.IsJSONHandle() { 78193 z.WriteStr("\"Tasks\"") 78194 } else { 78195 r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) 78196 } 78197 r.WriteMapElemValue() 78198 if x.Tasks == nil { 78199 r.EncodeNil() 78200 } else { 78201 if false { 78202 } else { 78203 h.encMapstringPtrtoAllocatedTaskResources((map[string]*AllocatedTaskResources)(x.Tasks), e) 78204 } 78205 } 78206 } 78207 if yyr2 || yy2arr2 { 78208 r.WriteArrayElem() 78209 if x.TaskLifecycles == nil { 78210 r.EncodeNil() 78211 } else { 78212 if false { 78213 } else { 78214 h.encMapstringPtrtoTaskLifecycleConfig((map[string]*TaskLifecycleConfig)(x.TaskLifecycles), e) 78215 } 78216 } 78217 } else { 78218 r.WriteMapElemKey() 78219 if z.IsJSONHandle() { 78220 z.WriteStr("\"TaskLifecycles\"") 78221 } else { 78222 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskLifecycles`) 78223 } 78224 r.WriteMapElemValue() 78225 if x.TaskLifecycles == nil { 78226 r.EncodeNil() 78227 } else { 78228 if false { 78229 } else { 78230 h.encMapstringPtrtoTaskLifecycleConfig((map[string]*TaskLifecycleConfig)(x.TaskLifecycles), e) 78231 } 78232 } 78233 } 78234 if yyr2 || yy2arr2 { 78235 r.WriteArrayElem() 78236 yy10 := &x.Shared 78237 yy10.CodecEncodeSelf(e) 78238 } else { 78239 r.WriteMapElemKey() 78240 if z.IsJSONHandle() { 78241 z.WriteStr("\"Shared\"") 78242 } else { 78243 r.EncodeStringEnc(codecSelferCcUTF8100, `Shared`) 78244 } 78245 r.WriteMapElemValue() 78246 yy12 := &x.Shared 78247 yy12.CodecEncodeSelf(e) 78248 } 78249 if yyr2 || yy2arr2 { 78250 r.WriteArrayEnd() 78251 } else { 78252 r.WriteMapEnd() 78253 } 78254 } 78255 } 78256 } 78257 78258 func (x *AllocatedResources) 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 *AllocatedResources) 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 "Tasks": 78307 if r.TryDecodeAsNil() { 78308 x.Tasks = nil 78309 } else { 78310 if false { 78311 } else { 78312 h.decMapstringPtrtoAllocatedTaskResources((*map[string]*AllocatedTaskResources)(&x.Tasks), d) 78313 } 78314 } 78315 case "TaskLifecycles": 78316 if r.TryDecodeAsNil() { 78317 x.TaskLifecycles = nil 78318 } else { 78319 if false { 78320 } else { 78321 h.decMapstringPtrtoTaskLifecycleConfig((*map[string]*TaskLifecycleConfig)(&x.TaskLifecycles), d) 78322 } 78323 } 78324 case "Shared": 78325 if r.TryDecodeAsNil() { 78326 x.Shared = AllocatedSharedResources{} 78327 } else { 78328 x.Shared.CodecDecodeSelf(d) 78329 } 78330 default: 78331 z.DecStructFieldNotFound(-1, yys3) 78332 } // end switch yys3 78333 } // end for yyj3 78334 r.ReadMapEnd() 78335 } 78336 78337 func (x *AllocatedResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 78338 var h codecSelfer100 78339 z, r := codec1978.GenHelperDecoder(d) 78340 _, _, _ = h, z, r 78341 var yyj9 int 78342 var yyb9 bool 78343 var yyhl9 bool = l >= 0 78344 yyj9++ 78345 if yyhl9 { 78346 yyb9 = yyj9 > l 78347 } else { 78348 yyb9 = r.CheckBreak() 78349 } 78350 if yyb9 { 78351 r.ReadArrayEnd() 78352 return 78353 } 78354 r.ReadArrayElem() 78355 if r.TryDecodeAsNil() { 78356 x.Tasks = nil 78357 } else { 78358 if false { 78359 } else { 78360 h.decMapstringPtrtoAllocatedTaskResources((*map[string]*AllocatedTaskResources)(&x.Tasks), d) 78361 } 78362 } 78363 yyj9++ 78364 if yyhl9 { 78365 yyb9 = yyj9 > l 78366 } else { 78367 yyb9 = r.CheckBreak() 78368 } 78369 if yyb9 { 78370 r.ReadArrayEnd() 78371 return 78372 } 78373 r.ReadArrayElem() 78374 if r.TryDecodeAsNil() { 78375 x.TaskLifecycles = nil 78376 } else { 78377 if false { 78378 } else { 78379 h.decMapstringPtrtoTaskLifecycleConfig((*map[string]*TaskLifecycleConfig)(&x.TaskLifecycles), d) 78380 } 78381 } 78382 yyj9++ 78383 if yyhl9 { 78384 yyb9 = yyj9 > l 78385 } else { 78386 yyb9 = r.CheckBreak() 78387 } 78388 if yyb9 { 78389 r.ReadArrayEnd() 78390 return 78391 } 78392 r.ReadArrayElem() 78393 if r.TryDecodeAsNil() { 78394 x.Shared = AllocatedSharedResources{} 78395 } else { 78396 x.Shared.CodecDecodeSelf(d) 78397 } 78398 for { 78399 yyj9++ 78400 if yyhl9 { 78401 yyb9 = yyj9 > l 78402 } else { 78403 yyb9 = r.CheckBreak() 78404 } 78405 if yyb9 { 78406 break 78407 } 78408 r.ReadArrayElem() 78409 z.DecStructFieldNotFound(yyj9-1, "") 78410 } 78411 r.ReadArrayEnd() 78412 } 78413 78414 func (x *AllocatedTaskResources) CodecEncodeSelf(e *codec1978.Encoder) { 78415 var h codecSelfer100 78416 z, r := codec1978.GenHelperEncoder(e) 78417 _, _, _ = h, z, r 78418 if x == nil { 78419 r.EncodeNil() 78420 } else { 78421 if false { 78422 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 78423 z.EncExtension(x, yyxt1) 78424 } else { 78425 yysep2 := !z.EncBinary() 78426 yy2arr2 := z.EncBasicHandle().StructToArray 78427 _, _ = yysep2, yy2arr2 78428 const yyr2 bool = false // struct tag has 'toArray' 78429 if yyr2 || yy2arr2 { 78430 r.WriteArrayStart(4) 78431 } else { 78432 r.WriteMapStart(4) 78433 } 78434 if yyr2 || yy2arr2 { 78435 r.WriteArrayElem() 78436 yy4 := &x.Cpu 78437 yy4.CodecEncodeSelf(e) 78438 } else { 78439 r.WriteMapElemKey() 78440 if z.IsJSONHandle() { 78441 z.WriteStr("\"Cpu\"") 78442 } else { 78443 r.EncodeStringEnc(codecSelferCcUTF8100, `Cpu`) 78444 } 78445 r.WriteMapElemValue() 78446 yy6 := &x.Cpu 78447 yy6.CodecEncodeSelf(e) 78448 } 78449 if yyr2 || yy2arr2 { 78450 r.WriteArrayElem() 78451 yy9 := &x.Memory 78452 yy9.CodecEncodeSelf(e) 78453 } else { 78454 r.WriteMapElemKey() 78455 if z.IsJSONHandle() { 78456 z.WriteStr("\"Memory\"") 78457 } else { 78458 r.EncodeStringEnc(codecSelferCcUTF8100, `Memory`) 78459 } 78460 r.WriteMapElemValue() 78461 yy11 := &x.Memory 78462 yy11.CodecEncodeSelf(e) 78463 } 78464 if yyr2 || yy2arr2 { 78465 r.WriteArrayElem() 78466 if x.Networks == nil { 78467 r.EncodeNil() 78468 } else { 78469 x.Networks.CodecEncodeSelf(e) 78470 } 78471 } else { 78472 r.WriteMapElemKey() 78473 if z.IsJSONHandle() { 78474 z.WriteStr("\"Networks\"") 78475 } else { 78476 r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) 78477 } 78478 r.WriteMapElemValue() 78479 if x.Networks == nil { 78480 r.EncodeNil() 78481 } else { 78482 x.Networks.CodecEncodeSelf(e) 78483 } 78484 } 78485 if yyr2 || yy2arr2 { 78486 r.WriteArrayElem() 78487 if x.Devices == nil { 78488 r.EncodeNil() 78489 } else { 78490 if false { 78491 } else { 78492 h.encSlicePtrtoAllocatedDeviceResource(([]*AllocatedDeviceResource)(x.Devices), e) 78493 } 78494 } 78495 } else { 78496 r.WriteMapElemKey() 78497 if z.IsJSONHandle() { 78498 z.WriteStr("\"Devices\"") 78499 } else { 78500 r.EncodeStringEnc(codecSelferCcUTF8100, `Devices`) 78501 } 78502 r.WriteMapElemValue() 78503 if x.Devices == nil { 78504 r.EncodeNil() 78505 } else { 78506 if false { 78507 } else { 78508 h.encSlicePtrtoAllocatedDeviceResource(([]*AllocatedDeviceResource)(x.Devices), e) 78509 } 78510 } 78511 } 78512 if yyr2 || yy2arr2 { 78513 r.WriteArrayEnd() 78514 } else { 78515 r.WriteMapEnd() 78516 } 78517 } 78518 } 78519 } 78520 78521 func (x *AllocatedTaskResources) CodecDecodeSelf(d *codec1978.Decoder) { 78522 var h codecSelfer100 78523 z, r := codec1978.GenHelperDecoder(d) 78524 _, _, _ = h, z, r 78525 if false { 78526 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 78527 z.DecExtension(x, yyxt1) 78528 } else { 78529 yyct2 := r.ContainerType() 78530 if yyct2 == codecSelferValueTypeMap100 { 78531 yyl2 := r.ReadMapStart() 78532 if yyl2 == 0 { 78533 r.ReadMapEnd() 78534 } else { 78535 x.codecDecodeSelfFromMap(yyl2, d) 78536 } 78537 } else if yyct2 == codecSelferValueTypeArray100 { 78538 yyl2 := r.ReadArrayStart() 78539 if yyl2 == 0 { 78540 r.ReadArrayEnd() 78541 } else { 78542 x.codecDecodeSelfFromArray(yyl2, d) 78543 } 78544 } else { 78545 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 78546 } 78547 } 78548 } 78549 78550 func (x *AllocatedTaskResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 78551 var h codecSelfer100 78552 z, r := codec1978.GenHelperDecoder(d) 78553 _, _, _ = h, z, r 78554 var yyhl3 bool = l >= 0 78555 for yyj3 := 0; ; yyj3++ { 78556 if yyhl3 { 78557 if yyj3 >= l { 78558 break 78559 } 78560 } else { 78561 if r.CheckBreak() { 78562 break 78563 } 78564 } 78565 r.ReadMapElemKey() 78566 yys3 := z.StringView(r.DecodeStringAsBytes()) 78567 r.ReadMapElemValue() 78568 switch yys3 { 78569 case "Cpu": 78570 if r.TryDecodeAsNil() { 78571 x.Cpu = AllocatedCpuResources{} 78572 } else { 78573 x.Cpu.CodecDecodeSelf(d) 78574 } 78575 case "Memory": 78576 if r.TryDecodeAsNil() { 78577 x.Memory = AllocatedMemoryResources{} 78578 } else { 78579 x.Memory.CodecDecodeSelf(d) 78580 } 78581 case "Networks": 78582 if r.TryDecodeAsNil() { 78583 x.Networks = nil 78584 } else { 78585 x.Networks.CodecDecodeSelf(d) 78586 } 78587 case "Devices": 78588 if r.TryDecodeAsNil() { 78589 x.Devices = nil 78590 } else { 78591 if false { 78592 } else { 78593 h.decSlicePtrtoAllocatedDeviceResource((*[]*AllocatedDeviceResource)(&x.Devices), d) 78594 } 78595 } 78596 default: 78597 z.DecStructFieldNotFound(-1, yys3) 78598 } // end switch yys3 78599 } // end for yyj3 78600 r.ReadMapEnd() 78601 } 78602 78603 func (x *AllocatedTaskResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 78604 var h codecSelfer100 78605 z, r := codec1978.GenHelperDecoder(d) 78606 _, _, _ = h, z, r 78607 var yyj9 int 78608 var yyb9 bool 78609 var yyhl9 bool = l >= 0 78610 yyj9++ 78611 if yyhl9 { 78612 yyb9 = yyj9 > l 78613 } else { 78614 yyb9 = r.CheckBreak() 78615 } 78616 if yyb9 { 78617 r.ReadArrayEnd() 78618 return 78619 } 78620 r.ReadArrayElem() 78621 if r.TryDecodeAsNil() { 78622 x.Cpu = AllocatedCpuResources{} 78623 } else { 78624 x.Cpu.CodecDecodeSelf(d) 78625 } 78626 yyj9++ 78627 if yyhl9 { 78628 yyb9 = yyj9 > l 78629 } else { 78630 yyb9 = r.CheckBreak() 78631 } 78632 if yyb9 { 78633 r.ReadArrayEnd() 78634 return 78635 } 78636 r.ReadArrayElem() 78637 if r.TryDecodeAsNil() { 78638 x.Memory = AllocatedMemoryResources{} 78639 } else { 78640 x.Memory.CodecDecodeSelf(d) 78641 } 78642 yyj9++ 78643 if yyhl9 { 78644 yyb9 = yyj9 > l 78645 } else { 78646 yyb9 = r.CheckBreak() 78647 } 78648 if yyb9 { 78649 r.ReadArrayEnd() 78650 return 78651 } 78652 r.ReadArrayElem() 78653 if r.TryDecodeAsNil() { 78654 x.Networks = nil 78655 } else { 78656 x.Networks.CodecDecodeSelf(d) 78657 } 78658 yyj9++ 78659 if yyhl9 { 78660 yyb9 = yyj9 > l 78661 } else { 78662 yyb9 = r.CheckBreak() 78663 } 78664 if yyb9 { 78665 r.ReadArrayEnd() 78666 return 78667 } 78668 r.ReadArrayElem() 78669 if r.TryDecodeAsNil() { 78670 x.Devices = nil 78671 } else { 78672 if false { 78673 } else { 78674 h.decSlicePtrtoAllocatedDeviceResource((*[]*AllocatedDeviceResource)(&x.Devices), d) 78675 } 78676 } 78677 for { 78678 yyj9++ 78679 if yyhl9 { 78680 yyb9 = yyj9 > l 78681 } else { 78682 yyb9 = r.CheckBreak() 78683 } 78684 if yyb9 { 78685 break 78686 } 78687 r.ReadArrayElem() 78688 z.DecStructFieldNotFound(yyj9-1, "") 78689 } 78690 r.ReadArrayEnd() 78691 } 78692 78693 func (x *AllocatedSharedResources) CodecEncodeSelf(e *codec1978.Encoder) { 78694 var h codecSelfer100 78695 z, r := codec1978.GenHelperEncoder(e) 78696 _, _, _ = h, z, r 78697 if x == nil { 78698 r.EncodeNil() 78699 } else { 78700 if false { 78701 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 78702 z.EncExtension(x, yyxt1) 78703 } else { 78704 yysep2 := !z.EncBinary() 78705 yy2arr2 := z.EncBasicHandle().StructToArray 78706 _, _ = yysep2, yy2arr2 78707 const yyr2 bool = false // struct tag has 'toArray' 78708 if yyr2 || yy2arr2 { 78709 r.WriteArrayStart(2) 78710 } else { 78711 r.WriteMapStart(2) 78712 } 78713 if yyr2 || yy2arr2 { 78714 r.WriteArrayElem() 78715 if x.Networks == nil { 78716 r.EncodeNil() 78717 } else { 78718 x.Networks.CodecEncodeSelf(e) 78719 } 78720 } else { 78721 r.WriteMapElemKey() 78722 if z.IsJSONHandle() { 78723 z.WriteStr("\"Networks\"") 78724 } else { 78725 r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) 78726 } 78727 r.WriteMapElemValue() 78728 if x.Networks == nil { 78729 r.EncodeNil() 78730 } else { 78731 x.Networks.CodecEncodeSelf(e) 78732 } 78733 } 78734 if yyr2 || yy2arr2 { 78735 r.WriteArrayElem() 78736 if false { 78737 } else { 78738 r.EncodeInt(int64(x.DiskMB)) 78739 } 78740 } else { 78741 r.WriteMapElemKey() 78742 if z.IsJSONHandle() { 78743 z.WriteStr("\"DiskMB\"") 78744 } else { 78745 r.EncodeStringEnc(codecSelferCcUTF8100, `DiskMB`) 78746 } 78747 r.WriteMapElemValue() 78748 if false { 78749 } else { 78750 r.EncodeInt(int64(x.DiskMB)) 78751 } 78752 } 78753 if yyr2 || yy2arr2 { 78754 r.WriteArrayEnd() 78755 } else { 78756 r.WriteMapEnd() 78757 } 78758 } 78759 } 78760 } 78761 78762 func (x *AllocatedSharedResources) CodecDecodeSelf(d *codec1978.Decoder) { 78763 var h codecSelfer100 78764 z, r := codec1978.GenHelperDecoder(d) 78765 _, _, _ = h, z, r 78766 if false { 78767 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 78768 z.DecExtension(x, yyxt1) 78769 } else { 78770 yyct2 := r.ContainerType() 78771 if yyct2 == codecSelferValueTypeMap100 { 78772 yyl2 := r.ReadMapStart() 78773 if yyl2 == 0 { 78774 r.ReadMapEnd() 78775 } else { 78776 x.codecDecodeSelfFromMap(yyl2, d) 78777 } 78778 } else if yyct2 == codecSelferValueTypeArray100 { 78779 yyl2 := r.ReadArrayStart() 78780 if yyl2 == 0 { 78781 r.ReadArrayEnd() 78782 } else { 78783 x.codecDecodeSelfFromArray(yyl2, d) 78784 } 78785 } else { 78786 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 78787 } 78788 } 78789 } 78790 78791 func (x *AllocatedSharedResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 78792 var h codecSelfer100 78793 z, r := codec1978.GenHelperDecoder(d) 78794 _, _, _ = h, z, r 78795 var yyhl3 bool = l >= 0 78796 for yyj3 := 0; ; yyj3++ { 78797 if yyhl3 { 78798 if yyj3 >= l { 78799 break 78800 } 78801 } else { 78802 if r.CheckBreak() { 78803 break 78804 } 78805 } 78806 r.ReadMapElemKey() 78807 yys3 := z.StringView(r.DecodeStringAsBytes()) 78808 r.ReadMapElemValue() 78809 switch yys3 { 78810 case "Networks": 78811 if r.TryDecodeAsNil() { 78812 x.Networks = nil 78813 } else { 78814 x.Networks.CodecDecodeSelf(d) 78815 } 78816 case "DiskMB": 78817 if r.TryDecodeAsNil() { 78818 x.DiskMB = 0 78819 } else { 78820 x.DiskMB = (int64)(r.DecodeInt64()) 78821 } 78822 default: 78823 z.DecStructFieldNotFound(-1, yys3) 78824 } // end switch yys3 78825 } // end for yyj3 78826 r.ReadMapEnd() 78827 } 78828 78829 func (x *AllocatedSharedResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 78830 var h codecSelfer100 78831 z, r := codec1978.GenHelperDecoder(d) 78832 _, _, _ = h, z, r 78833 var yyj6 int 78834 var yyb6 bool 78835 var yyhl6 bool = l >= 0 78836 yyj6++ 78837 if yyhl6 { 78838 yyb6 = yyj6 > l 78839 } else { 78840 yyb6 = r.CheckBreak() 78841 } 78842 if yyb6 { 78843 r.ReadArrayEnd() 78844 return 78845 } 78846 r.ReadArrayElem() 78847 if r.TryDecodeAsNil() { 78848 x.Networks = nil 78849 } else { 78850 x.Networks.CodecDecodeSelf(d) 78851 } 78852 yyj6++ 78853 if yyhl6 { 78854 yyb6 = yyj6 > l 78855 } else { 78856 yyb6 = r.CheckBreak() 78857 } 78858 if yyb6 { 78859 r.ReadArrayEnd() 78860 return 78861 } 78862 r.ReadArrayElem() 78863 if r.TryDecodeAsNil() { 78864 x.DiskMB = 0 78865 } else { 78866 x.DiskMB = (int64)(r.DecodeInt64()) 78867 } 78868 for { 78869 yyj6++ 78870 if yyhl6 { 78871 yyb6 = yyj6 > l 78872 } else { 78873 yyb6 = r.CheckBreak() 78874 } 78875 if yyb6 { 78876 break 78877 } 78878 r.ReadArrayElem() 78879 z.DecStructFieldNotFound(yyj6-1, "") 78880 } 78881 r.ReadArrayEnd() 78882 } 78883 78884 func (x *AllocatedCpuResources) CodecEncodeSelf(e *codec1978.Encoder) { 78885 var h codecSelfer100 78886 z, r := codec1978.GenHelperEncoder(e) 78887 _, _, _ = h, z, r 78888 if x == nil { 78889 r.EncodeNil() 78890 } else { 78891 if false { 78892 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 78893 z.EncExtension(x, yyxt1) 78894 } else { 78895 yysep2 := !z.EncBinary() 78896 yy2arr2 := z.EncBasicHandle().StructToArray 78897 _, _ = yysep2, yy2arr2 78898 const yyr2 bool = false // struct tag has 'toArray' 78899 if yyr2 || yy2arr2 { 78900 r.WriteArrayStart(1) 78901 } else { 78902 r.WriteMapStart(1) 78903 } 78904 if yyr2 || yy2arr2 { 78905 r.WriteArrayElem() 78906 if false { 78907 } else { 78908 r.EncodeInt(int64(x.CpuShares)) 78909 } 78910 } else { 78911 r.WriteMapElemKey() 78912 if z.IsJSONHandle() { 78913 z.WriteStr("\"CpuShares\"") 78914 } else { 78915 r.EncodeStringEnc(codecSelferCcUTF8100, `CpuShares`) 78916 } 78917 r.WriteMapElemValue() 78918 if false { 78919 } else { 78920 r.EncodeInt(int64(x.CpuShares)) 78921 } 78922 } 78923 if yyr2 || yy2arr2 { 78924 r.WriteArrayEnd() 78925 } else { 78926 r.WriteMapEnd() 78927 } 78928 } 78929 } 78930 } 78931 78932 func (x *AllocatedCpuResources) CodecDecodeSelf(d *codec1978.Decoder) { 78933 var h codecSelfer100 78934 z, r := codec1978.GenHelperDecoder(d) 78935 _, _, _ = h, z, r 78936 if false { 78937 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 78938 z.DecExtension(x, yyxt1) 78939 } else { 78940 yyct2 := r.ContainerType() 78941 if yyct2 == codecSelferValueTypeMap100 { 78942 yyl2 := r.ReadMapStart() 78943 if yyl2 == 0 { 78944 r.ReadMapEnd() 78945 } else { 78946 x.codecDecodeSelfFromMap(yyl2, d) 78947 } 78948 } else if yyct2 == codecSelferValueTypeArray100 { 78949 yyl2 := r.ReadArrayStart() 78950 if yyl2 == 0 { 78951 r.ReadArrayEnd() 78952 } else { 78953 x.codecDecodeSelfFromArray(yyl2, d) 78954 } 78955 } else { 78956 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 78957 } 78958 } 78959 } 78960 78961 func (x *AllocatedCpuResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 78962 var h codecSelfer100 78963 z, r := codec1978.GenHelperDecoder(d) 78964 _, _, _ = h, z, r 78965 var yyhl3 bool = l >= 0 78966 for yyj3 := 0; ; yyj3++ { 78967 if yyhl3 { 78968 if yyj3 >= l { 78969 break 78970 } 78971 } else { 78972 if r.CheckBreak() { 78973 break 78974 } 78975 } 78976 r.ReadMapElemKey() 78977 yys3 := z.StringView(r.DecodeStringAsBytes()) 78978 r.ReadMapElemValue() 78979 switch yys3 { 78980 case "CpuShares": 78981 if r.TryDecodeAsNil() { 78982 x.CpuShares = 0 78983 } else { 78984 x.CpuShares = (int64)(r.DecodeInt64()) 78985 } 78986 default: 78987 z.DecStructFieldNotFound(-1, yys3) 78988 } // end switch yys3 78989 } // end for yyj3 78990 r.ReadMapEnd() 78991 } 78992 78993 func (x *AllocatedCpuResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 78994 var h codecSelfer100 78995 z, r := codec1978.GenHelperDecoder(d) 78996 _, _, _ = h, z, r 78997 var yyj5 int 78998 var yyb5 bool 78999 var yyhl5 bool = l >= 0 79000 yyj5++ 79001 if yyhl5 { 79002 yyb5 = yyj5 > l 79003 } else { 79004 yyb5 = r.CheckBreak() 79005 } 79006 if yyb5 { 79007 r.ReadArrayEnd() 79008 return 79009 } 79010 r.ReadArrayElem() 79011 if r.TryDecodeAsNil() { 79012 x.CpuShares = 0 79013 } else { 79014 x.CpuShares = (int64)(r.DecodeInt64()) 79015 } 79016 for { 79017 yyj5++ 79018 if yyhl5 { 79019 yyb5 = yyj5 > l 79020 } else { 79021 yyb5 = r.CheckBreak() 79022 } 79023 if yyb5 { 79024 break 79025 } 79026 r.ReadArrayElem() 79027 z.DecStructFieldNotFound(yyj5-1, "") 79028 } 79029 r.ReadArrayEnd() 79030 } 79031 79032 func (x *AllocatedMemoryResources) CodecEncodeSelf(e *codec1978.Encoder) { 79033 var h codecSelfer100 79034 z, r := codec1978.GenHelperEncoder(e) 79035 _, _, _ = h, z, r 79036 if x == nil { 79037 r.EncodeNil() 79038 } else { 79039 if false { 79040 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79041 z.EncExtension(x, yyxt1) 79042 } else { 79043 yysep2 := !z.EncBinary() 79044 yy2arr2 := z.EncBasicHandle().StructToArray 79045 _, _ = yysep2, yy2arr2 79046 const yyr2 bool = false // struct tag has 'toArray' 79047 if yyr2 || yy2arr2 { 79048 r.WriteArrayStart(1) 79049 } else { 79050 r.WriteMapStart(1) 79051 } 79052 if yyr2 || yy2arr2 { 79053 r.WriteArrayElem() 79054 if false { 79055 } else { 79056 r.EncodeInt(int64(x.MemoryMB)) 79057 } 79058 } else { 79059 r.WriteMapElemKey() 79060 if z.IsJSONHandle() { 79061 z.WriteStr("\"MemoryMB\"") 79062 } else { 79063 r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryMB`) 79064 } 79065 r.WriteMapElemValue() 79066 if false { 79067 } else { 79068 r.EncodeInt(int64(x.MemoryMB)) 79069 } 79070 } 79071 if yyr2 || yy2arr2 { 79072 r.WriteArrayEnd() 79073 } else { 79074 r.WriteMapEnd() 79075 } 79076 } 79077 } 79078 } 79079 79080 func (x *AllocatedMemoryResources) CodecDecodeSelf(d *codec1978.Decoder) { 79081 var h codecSelfer100 79082 z, r := codec1978.GenHelperDecoder(d) 79083 _, _, _ = h, z, r 79084 if false { 79085 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79086 z.DecExtension(x, yyxt1) 79087 } else { 79088 yyct2 := r.ContainerType() 79089 if yyct2 == codecSelferValueTypeMap100 { 79090 yyl2 := r.ReadMapStart() 79091 if yyl2 == 0 { 79092 r.ReadMapEnd() 79093 } else { 79094 x.codecDecodeSelfFromMap(yyl2, d) 79095 } 79096 } else if yyct2 == codecSelferValueTypeArray100 { 79097 yyl2 := r.ReadArrayStart() 79098 if yyl2 == 0 { 79099 r.ReadArrayEnd() 79100 } else { 79101 x.codecDecodeSelfFromArray(yyl2, d) 79102 } 79103 } else { 79104 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 79105 } 79106 } 79107 } 79108 79109 func (x *AllocatedMemoryResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 79110 var h codecSelfer100 79111 z, r := codec1978.GenHelperDecoder(d) 79112 _, _, _ = h, z, r 79113 var yyhl3 bool = l >= 0 79114 for yyj3 := 0; ; yyj3++ { 79115 if yyhl3 { 79116 if yyj3 >= l { 79117 break 79118 } 79119 } else { 79120 if r.CheckBreak() { 79121 break 79122 } 79123 } 79124 r.ReadMapElemKey() 79125 yys3 := z.StringView(r.DecodeStringAsBytes()) 79126 r.ReadMapElemValue() 79127 switch yys3 { 79128 case "MemoryMB": 79129 if r.TryDecodeAsNil() { 79130 x.MemoryMB = 0 79131 } else { 79132 x.MemoryMB = (int64)(r.DecodeInt64()) 79133 } 79134 default: 79135 z.DecStructFieldNotFound(-1, yys3) 79136 } // end switch yys3 79137 } // end for yyj3 79138 r.ReadMapEnd() 79139 } 79140 79141 func (x *AllocatedMemoryResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 79142 var h codecSelfer100 79143 z, r := codec1978.GenHelperDecoder(d) 79144 _, _, _ = h, z, r 79145 var yyj5 int 79146 var yyb5 bool 79147 var yyhl5 bool = l >= 0 79148 yyj5++ 79149 if yyhl5 { 79150 yyb5 = yyj5 > l 79151 } else { 79152 yyb5 = r.CheckBreak() 79153 } 79154 if yyb5 { 79155 r.ReadArrayEnd() 79156 return 79157 } 79158 r.ReadArrayElem() 79159 if r.TryDecodeAsNil() { 79160 x.MemoryMB = 0 79161 } else { 79162 x.MemoryMB = (int64)(r.DecodeInt64()) 79163 } 79164 for { 79165 yyj5++ 79166 if yyhl5 { 79167 yyb5 = yyj5 > l 79168 } else { 79169 yyb5 = r.CheckBreak() 79170 } 79171 if yyb5 { 79172 break 79173 } 79174 r.ReadArrayElem() 79175 z.DecStructFieldNotFound(yyj5-1, "") 79176 } 79177 r.ReadArrayEnd() 79178 } 79179 79180 func (x AllocatedDevices) CodecEncodeSelf(e *codec1978.Encoder) { 79181 var h codecSelfer100 79182 z, r := codec1978.GenHelperEncoder(e) 79183 _, _, _ = h, z, r 79184 if x == nil { 79185 r.EncodeNil() 79186 } else { 79187 if false { 79188 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79189 z.EncExtension(x, yyxt1) 79190 } else { 79191 h.encAllocatedDevices((AllocatedDevices)(x), e) 79192 } 79193 } 79194 } 79195 79196 func (x *AllocatedDevices) CodecDecodeSelf(d *codec1978.Decoder) { 79197 var h codecSelfer100 79198 z, r := codec1978.GenHelperDecoder(d) 79199 _, _, _ = h, z, r 79200 if false { 79201 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79202 z.DecExtension(x, yyxt1) 79203 } else { 79204 h.decAllocatedDevices((*AllocatedDevices)(x), d) 79205 } 79206 } 79207 79208 func (x *AllocatedDeviceResource) CodecEncodeSelf(e *codec1978.Encoder) { 79209 var h codecSelfer100 79210 z, r := codec1978.GenHelperEncoder(e) 79211 _, _, _ = h, z, r 79212 if x == nil { 79213 r.EncodeNil() 79214 } else { 79215 if false { 79216 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79217 z.EncExtension(x, yyxt1) 79218 } else { 79219 yysep2 := !z.EncBinary() 79220 yy2arr2 := z.EncBasicHandle().StructToArray 79221 _, _ = yysep2, yy2arr2 79222 const yyr2 bool = false // struct tag has 'toArray' 79223 if yyr2 || yy2arr2 { 79224 r.WriteArrayStart(4) 79225 } else { 79226 r.WriteMapStart(4) 79227 } 79228 if yyr2 || yy2arr2 { 79229 r.WriteArrayElem() 79230 if false { 79231 } else { 79232 if z.EncBasicHandle().StringToRaw { 79233 r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) 79234 } else { 79235 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) 79236 } 79237 } 79238 } else { 79239 r.WriteMapElemKey() 79240 if z.IsJSONHandle() { 79241 z.WriteStr("\"Vendor\"") 79242 } else { 79243 r.EncodeStringEnc(codecSelferCcUTF8100, `Vendor`) 79244 } 79245 r.WriteMapElemValue() 79246 if false { 79247 } else { 79248 if z.EncBasicHandle().StringToRaw { 79249 r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) 79250 } else { 79251 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) 79252 } 79253 } 79254 } 79255 if yyr2 || yy2arr2 { 79256 r.WriteArrayElem() 79257 if false { 79258 } else { 79259 if z.EncBasicHandle().StringToRaw { 79260 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 79261 } else { 79262 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 79263 } 79264 } 79265 } else { 79266 r.WriteMapElemKey() 79267 if z.IsJSONHandle() { 79268 z.WriteStr("\"Type\"") 79269 } else { 79270 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 79271 } 79272 r.WriteMapElemValue() 79273 if false { 79274 } else { 79275 if z.EncBasicHandle().StringToRaw { 79276 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 79277 } else { 79278 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 79279 } 79280 } 79281 } 79282 if yyr2 || yy2arr2 { 79283 r.WriteArrayElem() 79284 if false { 79285 } else { 79286 if z.EncBasicHandle().StringToRaw { 79287 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 79288 } else { 79289 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 79290 } 79291 } 79292 } else { 79293 r.WriteMapElemKey() 79294 if z.IsJSONHandle() { 79295 z.WriteStr("\"Name\"") 79296 } else { 79297 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 79298 } 79299 r.WriteMapElemValue() 79300 if false { 79301 } else { 79302 if z.EncBasicHandle().StringToRaw { 79303 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 79304 } else { 79305 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 79306 } 79307 } 79308 } 79309 if yyr2 || yy2arr2 { 79310 r.WriteArrayElem() 79311 if x.DeviceIDs == nil { 79312 r.EncodeNil() 79313 } else { 79314 if false { 79315 } else { 79316 z.F.EncSliceStringV(x.DeviceIDs, e) 79317 } 79318 } 79319 } else { 79320 r.WriteMapElemKey() 79321 if z.IsJSONHandle() { 79322 z.WriteStr("\"DeviceIDs\"") 79323 } else { 79324 r.EncodeStringEnc(codecSelferCcUTF8100, `DeviceIDs`) 79325 } 79326 r.WriteMapElemValue() 79327 if x.DeviceIDs == nil { 79328 r.EncodeNil() 79329 } else { 79330 if false { 79331 } else { 79332 z.F.EncSliceStringV(x.DeviceIDs, e) 79333 } 79334 } 79335 } 79336 if yyr2 || yy2arr2 { 79337 r.WriteArrayEnd() 79338 } else { 79339 r.WriteMapEnd() 79340 } 79341 } 79342 } 79343 } 79344 79345 func (x *AllocatedDeviceResource) CodecDecodeSelf(d *codec1978.Decoder) { 79346 var h codecSelfer100 79347 z, r := codec1978.GenHelperDecoder(d) 79348 _, _, _ = h, z, r 79349 if false { 79350 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79351 z.DecExtension(x, yyxt1) 79352 } else { 79353 yyct2 := r.ContainerType() 79354 if yyct2 == codecSelferValueTypeMap100 { 79355 yyl2 := r.ReadMapStart() 79356 if yyl2 == 0 { 79357 r.ReadMapEnd() 79358 } else { 79359 x.codecDecodeSelfFromMap(yyl2, d) 79360 } 79361 } else if yyct2 == codecSelferValueTypeArray100 { 79362 yyl2 := r.ReadArrayStart() 79363 if yyl2 == 0 { 79364 r.ReadArrayEnd() 79365 } else { 79366 x.codecDecodeSelfFromArray(yyl2, d) 79367 } 79368 } else { 79369 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 79370 } 79371 } 79372 } 79373 79374 func (x *AllocatedDeviceResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 79375 var h codecSelfer100 79376 z, r := codec1978.GenHelperDecoder(d) 79377 _, _, _ = h, z, r 79378 var yyhl3 bool = l >= 0 79379 for yyj3 := 0; ; yyj3++ { 79380 if yyhl3 { 79381 if yyj3 >= l { 79382 break 79383 } 79384 } else { 79385 if r.CheckBreak() { 79386 break 79387 } 79388 } 79389 r.ReadMapElemKey() 79390 yys3 := z.StringView(r.DecodeStringAsBytes()) 79391 r.ReadMapElemValue() 79392 switch yys3 { 79393 case "Vendor": 79394 if r.TryDecodeAsNil() { 79395 x.Vendor = "" 79396 } else { 79397 x.Vendor = (string)(r.DecodeString()) 79398 } 79399 case "Type": 79400 if r.TryDecodeAsNil() { 79401 x.Type = "" 79402 } else { 79403 x.Type = (string)(r.DecodeString()) 79404 } 79405 case "Name": 79406 if r.TryDecodeAsNil() { 79407 x.Name = "" 79408 } else { 79409 x.Name = (string)(r.DecodeString()) 79410 } 79411 case "DeviceIDs": 79412 if r.TryDecodeAsNil() { 79413 x.DeviceIDs = nil 79414 } else { 79415 if false { 79416 } else { 79417 z.F.DecSliceStringX(&x.DeviceIDs, d) 79418 } 79419 } 79420 default: 79421 z.DecStructFieldNotFound(-1, yys3) 79422 } // end switch yys3 79423 } // end for yyj3 79424 r.ReadMapEnd() 79425 } 79426 79427 func (x *AllocatedDeviceResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 79428 var h codecSelfer100 79429 z, r := codec1978.GenHelperDecoder(d) 79430 _, _, _ = h, z, r 79431 var yyj9 int 79432 var yyb9 bool 79433 var yyhl9 bool = l >= 0 79434 yyj9++ 79435 if yyhl9 { 79436 yyb9 = yyj9 > l 79437 } else { 79438 yyb9 = r.CheckBreak() 79439 } 79440 if yyb9 { 79441 r.ReadArrayEnd() 79442 return 79443 } 79444 r.ReadArrayElem() 79445 if r.TryDecodeAsNil() { 79446 x.Vendor = "" 79447 } else { 79448 x.Vendor = (string)(r.DecodeString()) 79449 } 79450 yyj9++ 79451 if yyhl9 { 79452 yyb9 = yyj9 > l 79453 } else { 79454 yyb9 = r.CheckBreak() 79455 } 79456 if yyb9 { 79457 r.ReadArrayEnd() 79458 return 79459 } 79460 r.ReadArrayElem() 79461 if r.TryDecodeAsNil() { 79462 x.Type = "" 79463 } else { 79464 x.Type = (string)(r.DecodeString()) 79465 } 79466 yyj9++ 79467 if yyhl9 { 79468 yyb9 = yyj9 > l 79469 } else { 79470 yyb9 = r.CheckBreak() 79471 } 79472 if yyb9 { 79473 r.ReadArrayEnd() 79474 return 79475 } 79476 r.ReadArrayElem() 79477 if r.TryDecodeAsNil() { 79478 x.Name = "" 79479 } else { 79480 x.Name = (string)(r.DecodeString()) 79481 } 79482 yyj9++ 79483 if yyhl9 { 79484 yyb9 = yyj9 > l 79485 } else { 79486 yyb9 = r.CheckBreak() 79487 } 79488 if yyb9 { 79489 r.ReadArrayEnd() 79490 return 79491 } 79492 r.ReadArrayElem() 79493 if r.TryDecodeAsNil() { 79494 x.DeviceIDs = nil 79495 } else { 79496 if false { 79497 } else { 79498 z.F.DecSliceStringX(&x.DeviceIDs, d) 79499 } 79500 } 79501 for { 79502 yyj9++ 79503 if yyhl9 { 79504 yyb9 = yyj9 > l 79505 } else { 79506 yyb9 = r.CheckBreak() 79507 } 79508 if yyb9 { 79509 break 79510 } 79511 r.ReadArrayElem() 79512 z.DecStructFieldNotFound(yyj9-1, "") 79513 } 79514 r.ReadArrayEnd() 79515 } 79516 79517 func (x *ComparableResources) CodecEncodeSelf(e *codec1978.Encoder) { 79518 var h codecSelfer100 79519 z, r := codec1978.GenHelperEncoder(e) 79520 _, _, _ = h, z, r 79521 if x == nil { 79522 r.EncodeNil() 79523 } else { 79524 if false { 79525 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79526 z.EncExtension(x, yyxt1) 79527 } else { 79528 yysep2 := !z.EncBinary() 79529 yy2arr2 := z.EncBasicHandle().StructToArray 79530 _, _ = yysep2, yy2arr2 79531 const yyr2 bool = false // struct tag has 'toArray' 79532 if yyr2 || yy2arr2 { 79533 r.WriteArrayStart(2) 79534 } else { 79535 r.WriteMapStart(2) 79536 } 79537 if yyr2 || yy2arr2 { 79538 r.WriteArrayElem() 79539 yy4 := &x.Flattened 79540 yy4.CodecEncodeSelf(e) 79541 } else { 79542 r.WriteMapElemKey() 79543 if z.IsJSONHandle() { 79544 z.WriteStr("\"Flattened\"") 79545 } else { 79546 r.EncodeStringEnc(codecSelferCcUTF8100, `Flattened`) 79547 } 79548 r.WriteMapElemValue() 79549 yy6 := &x.Flattened 79550 yy6.CodecEncodeSelf(e) 79551 } 79552 if yyr2 || yy2arr2 { 79553 r.WriteArrayElem() 79554 yy9 := &x.Shared 79555 yy9.CodecEncodeSelf(e) 79556 } else { 79557 r.WriteMapElemKey() 79558 if z.IsJSONHandle() { 79559 z.WriteStr("\"Shared\"") 79560 } else { 79561 r.EncodeStringEnc(codecSelferCcUTF8100, `Shared`) 79562 } 79563 r.WriteMapElemValue() 79564 yy11 := &x.Shared 79565 yy11.CodecEncodeSelf(e) 79566 } 79567 if yyr2 || yy2arr2 { 79568 r.WriteArrayEnd() 79569 } else { 79570 r.WriteMapEnd() 79571 } 79572 } 79573 } 79574 } 79575 79576 func (x *ComparableResources) CodecDecodeSelf(d *codec1978.Decoder) { 79577 var h codecSelfer100 79578 z, r := codec1978.GenHelperDecoder(d) 79579 _, _, _ = h, z, r 79580 if false { 79581 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79582 z.DecExtension(x, yyxt1) 79583 } else { 79584 yyct2 := r.ContainerType() 79585 if yyct2 == codecSelferValueTypeMap100 { 79586 yyl2 := r.ReadMapStart() 79587 if yyl2 == 0 { 79588 r.ReadMapEnd() 79589 } else { 79590 x.codecDecodeSelfFromMap(yyl2, d) 79591 } 79592 } else if yyct2 == codecSelferValueTypeArray100 { 79593 yyl2 := r.ReadArrayStart() 79594 if yyl2 == 0 { 79595 r.ReadArrayEnd() 79596 } else { 79597 x.codecDecodeSelfFromArray(yyl2, d) 79598 } 79599 } else { 79600 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 79601 } 79602 } 79603 } 79604 79605 func (x *ComparableResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 79606 var h codecSelfer100 79607 z, r := codec1978.GenHelperDecoder(d) 79608 _, _, _ = h, z, r 79609 var yyhl3 bool = l >= 0 79610 for yyj3 := 0; ; yyj3++ { 79611 if yyhl3 { 79612 if yyj3 >= l { 79613 break 79614 } 79615 } else { 79616 if r.CheckBreak() { 79617 break 79618 } 79619 } 79620 r.ReadMapElemKey() 79621 yys3 := z.StringView(r.DecodeStringAsBytes()) 79622 r.ReadMapElemValue() 79623 switch yys3 { 79624 case "Flattened": 79625 if r.TryDecodeAsNil() { 79626 x.Flattened = AllocatedTaskResources{} 79627 } else { 79628 x.Flattened.CodecDecodeSelf(d) 79629 } 79630 case "Shared": 79631 if r.TryDecodeAsNil() { 79632 x.Shared = AllocatedSharedResources{} 79633 } else { 79634 x.Shared.CodecDecodeSelf(d) 79635 } 79636 default: 79637 z.DecStructFieldNotFound(-1, yys3) 79638 } // end switch yys3 79639 } // end for yyj3 79640 r.ReadMapEnd() 79641 } 79642 79643 func (x *ComparableResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 79644 var h codecSelfer100 79645 z, r := codec1978.GenHelperDecoder(d) 79646 _, _, _ = h, z, r 79647 var yyj6 int 79648 var yyb6 bool 79649 var yyhl6 bool = l >= 0 79650 yyj6++ 79651 if yyhl6 { 79652 yyb6 = yyj6 > l 79653 } else { 79654 yyb6 = r.CheckBreak() 79655 } 79656 if yyb6 { 79657 r.ReadArrayEnd() 79658 return 79659 } 79660 r.ReadArrayElem() 79661 if r.TryDecodeAsNil() { 79662 x.Flattened = AllocatedTaskResources{} 79663 } else { 79664 x.Flattened.CodecDecodeSelf(d) 79665 } 79666 yyj6++ 79667 if yyhl6 { 79668 yyb6 = yyj6 > l 79669 } else { 79670 yyb6 = r.CheckBreak() 79671 } 79672 if yyb6 { 79673 r.ReadArrayEnd() 79674 return 79675 } 79676 r.ReadArrayElem() 79677 if r.TryDecodeAsNil() { 79678 x.Shared = AllocatedSharedResources{} 79679 } else { 79680 x.Shared.CodecDecodeSelf(d) 79681 } 79682 for { 79683 yyj6++ 79684 if yyhl6 { 79685 yyb6 = yyj6 > l 79686 } else { 79687 yyb6 = r.CheckBreak() 79688 } 79689 if yyb6 { 79690 break 79691 } 79692 r.ReadArrayElem() 79693 z.DecStructFieldNotFound(yyj6-1, "") 79694 } 79695 r.ReadArrayEnd() 79696 } 79697 79698 func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { 79699 var h codecSelfer100 79700 z, r := codec1978.GenHelperEncoder(e) 79701 _, _, _ = h, z, r 79702 if x == nil { 79703 r.EncodeNil() 79704 } else { 79705 if false { 79706 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79707 z.EncExtension(x, yyxt1) 79708 } else { 79709 yysep2 := !z.EncBinary() 79710 yy2arr2 := z.EncBasicHandle().StructToArray 79711 _, _ = yysep2, yy2arr2 79712 const yyr2 bool = false // struct tag has 'toArray' 79713 if yyr2 || yy2arr2 { 79714 r.WriteArrayStart(30) 79715 } else { 79716 r.WriteMapStart(30) 79717 } 79718 if yyr2 || yy2arr2 { 79719 r.WriteArrayElem() 79720 if false { 79721 } else { 79722 r.EncodeBool(bool(x.Stop)) 79723 } 79724 } else { 79725 r.WriteMapElemKey() 79726 if z.IsJSONHandle() { 79727 z.WriteStr("\"Stop\"") 79728 } else { 79729 r.EncodeStringEnc(codecSelferCcUTF8100, `Stop`) 79730 } 79731 r.WriteMapElemValue() 79732 if false { 79733 } else { 79734 r.EncodeBool(bool(x.Stop)) 79735 } 79736 } 79737 if yyr2 || yy2arr2 { 79738 r.WriteArrayElem() 79739 if false { 79740 } else { 79741 if z.EncBasicHandle().StringToRaw { 79742 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 79743 } else { 79744 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 79745 } 79746 } 79747 } else { 79748 r.WriteMapElemKey() 79749 if z.IsJSONHandle() { 79750 z.WriteStr("\"Region\"") 79751 } else { 79752 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 79753 } 79754 r.WriteMapElemValue() 79755 if false { 79756 } else { 79757 if z.EncBasicHandle().StringToRaw { 79758 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 79759 } else { 79760 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 79761 } 79762 } 79763 } 79764 if yyr2 || yy2arr2 { 79765 r.WriteArrayElem() 79766 if false { 79767 } else { 79768 if z.EncBasicHandle().StringToRaw { 79769 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 79770 } else { 79771 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 79772 } 79773 } 79774 } else { 79775 r.WriteMapElemKey() 79776 if z.IsJSONHandle() { 79777 z.WriteStr("\"Namespace\"") 79778 } else { 79779 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 79780 } 79781 r.WriteMapElemValue() 79782 if false { 79783 } else { 79784 if z.EncBasicHandle().StringToRaw { 79785 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 79786 } else { 79787 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 79788 } 79789 } 79790 } 79791 if yyr2 || yy2arr2 { 79792 r.WriteArrayElem() 79793 if false { 79794 } else { 79795 if z.EncBasicHandle().StringToRaw { 79796 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 79797 } else { 79798 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 79799 } 79800 } 79801 } else { 79802 r.WriteMapElemKey() 79803 if z.IsJSONHandle() { 79804 z.WriteStr("\"ID\"") 79805 } else { 79806 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 79807 } 79808 r.WriteMapElemValue() 79809 if false { 79810 } else { 79811 if z.EncBasicHandle().StringToRaw { 79812 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 79813 } else { 79814 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 79815 } 79816 } 79817 } 79818 if yyr2 || yy2arr2 { 79819 r.WriteArrayElem() 79820 if false { 79821 } else { 79822 if z.EncBasicHandle().StringToRaw { 79823 r.EncodeStringBytesRaw(z.BytesView(string(x.ParentID))) 79824 } else { 79825 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ParentID)) 79826 } 79827 } 79828 } else { 79829 r.WriteMapElemKey() 79830 if z.IsJSONHandle() { 79831 z.WriteStr("\"ParentID\"") 79832 } else { 79833 r.EncodeStringEnc(codecSelferCcUTF8100, `ParentID`) 79834 } 79835 r.WriteMapElemValue() 79836 if false { 79837 } else { 79838 if z.EncBasicHandle().StringToRaw { 79839 r.EncodeStringBytesRaw(z.BytesView(string(x.ParentID))) 79840 } else { 79841 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ParentID)) 79842 } 79843 } 79844 } 79845 if yyr2 || yy2arr2 { 79846 r.WriteArrayElem() 79847 if false { 79848 } else { 79849 if z.EncBasicHandle().StringToRaw { 79850 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 79851 } else { 79852 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 79853 } 79854 } 79855 } else { 79856 r.WriteMapElemKey() 79857 if z.IsJSONHandle() { 79858 z.WriteStr("\"Name\"") 79859 } else { 79860 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 79861 } 79862 r.WriteMapElemValue() 79863 if false { 79864 } else { 79865 if z.EncBasicHandle().StringToRaw { 79866 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 79867 } else { 79868 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 79869 } 79870 } 79871 } 79872 if yyr2 || yy2arr2 { 79873 r.WriteArrayElem() 79874 if false { 79875 } else { 79876 if z.EncBasicHandle().StringToRaw { 79877 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 79878 } else { 79879 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 79880 } 79881 } 79882 } else { 79883 r.WriteMapElemKey() 79884 if z.IsJSONHandle() { 79885 z.WriteStr("\"Type\"") 79886 } else { 79887 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 79888 } 79889 r.WriteMapElemValue() 79890 if false { 79891 } else { 79892 if z.EncBasicHandle().StringToRaw { 79893 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 79894 } else { 79895 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 79896 } 79897 } 79898 } 79899 if yyr2 || yy2arr2 { 79900 r.WriteArrayElem() 79901 if false { 79902 } else { 79903 r.EncodeInt(int64(x.Priority)) 79904 } 79905 } else { 79906 r.WriteMapElemKey() 79907 if z.IsJSONHandle() { 79908 z.WriteStr("\"Priority\"") 79909 } else { 79910 r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) 79911 } 79912 r.WriteMapElemValue() 79913 if false { 79914 } else { 79915 r.EncodeInt(int64(x.Priority)) 79916 } 79917 } 79918 if yyr2 || yy2arr2 { 79919 r.WriteArrayElem() 79920 if false { 79921 } else { 79922 r.EncodeBool(bool(x.AllAtOnce)) 79923 } 79924 } else { 79925 r.WriteMapElemKey() 79926 if z.IsJSONHandle() { 79927 z.WriteStr("\"AllAtOnce\"") 79928 } else { 79929 r.EncodeStringEnc(codecSelferCcUTF8100, `AllAtOnce`) 79930 } 79931 r.WriteMapElemValue() 79932 if false { 79933 } else { 79934 r.EncodeBool(bool(x.AllAtOnce)) 79935 } 79936 } 79937 if yyr2 || yy2arr2 { 79938 r.WriteArrayElem() 79939 if x.Datacenters == nil { 79940 r.EncodeNil() 79941 } else { 79942 if false { 79943 } else { 79944 z.F.EncSliceStringV(x.Datacenters, e) 79945 } 79946 } 79947 } else { 79948 r.WriteMapElemKey() 79949 if z.IsJSONHandle() { 79950 z.WriteStr("\"Datacenters\"") 79951 } else { 79952 r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenters`) 79953 } 79954 r.WriteMapElemValue() 79955 if x.Datacenters == nil { 79956 r.EncodeNil() 79957 } else { 79958 if false { 79959 } else { 79960 z.F.EncSliceStringV(x.Datacenters, e) 79961 } 79962 } 79963 } 79964 if yyr2 || yy2arr2 { 79965 r.WriteArrayElem() 79966 if x.Constraints == nil { 79967 r.EncodeNil() 79968 } else { 79969 if false { 79970 } else { 79971 h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) 79972 } 79973 } 79974 } else { 79975 r.WriteMapElemKey() 79976 if z.IsJSONHandle() { 79977 z.WriteStr("\"Constraints\"") 79978 } else { 79979 r.EncodeStringEnc(codecSelferCcUTF8100, `Constraints`) 79980 } 79981 r.WriteMapElemValue() 79982 if x.Constraints == nil { 79983 r.EncodeNil() 79984 } else { 79985 if false { 79986 } else { 79987 h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) 79988 } 79989 } 79990 } 79991 if yyr2 || yy2arr2 { 79992 r.WriteArrayElem() 79993 if x.Affinities == nil { 79994 r.EncodeNil() 79995 } else { 79996 if false { 79997 } else { 79998 h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) 79999 } 80000 } 80001 } else { 80002 r.WriteMapElemKey() 80003 if z.IsJSONHandle() { 80004 z.WriteStr("\"Affinities\"") 80005 } else { 80006 r.EncodeStringEnc(codecSelferCcUTF8100, `Affinities`) 80007 } 80008 r.WriteMapElemValue() 80009 if x.Affinities == nil { 80010 r.EncodeNil() 80011 } else { 80012 if false { 80013 } else { 80014 h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) 80015 } 80016 } 80017 } 80018 if yyr2 || yy2arr2 { 80019 r.WriteArrayElem() 80020 if x.Spreads == nil { 80021 r.EncodeNil() 80022 } else { 80023 if false { 80024 } else { 80025 h.encSlicePtrtoSpread(([]*Spread)(x.Spreads), e) 80026 } 80027 } 80028 } else { 80029 r.WriteMapElemKey() 80030 if z.IsJSONHandle() { 80031 z.WriteStr("\"Spreads\"") 80032 } else { 80033 r.EncodeStringEnc(codecSelferCcUTF8100, `Spreads`) 80034 } 80035 r.WriteMapElemValue() 80036 if x.Spreads == nil { 80037 r.EncodeNil() 80038 } else { 80039 if false { 80040 } else { 80041 h.encSlicePtrtoSpread(([]*Spread)(x.Spreads), e) 80042 } 80043 } 80044 } 80045 if yyr2 || yy2arr2 { 80046 r.WriteArrayElem() 80047 if x.TaskGroups == nil { 80048 r.EncodeNil() 80049 } else { 80050 if false { 80051 } else { 80052 h.encSlicePtrtoTaskGroup(([]*TaskGroup)(x.TaskGroups), e) 80053 } 80054 } 80055 } else { 80056 r.WriteMapElemKey() 80057 if z.IsJSONHandle() { 80058 z.WriteStr("\"TaskGroups\"") 80059 } else { 80060 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroups`) 80061 } 80062 r.WriteMapElemValue() 80063 if x.TaskGroups == nil { 80064 r.EncodeNil() 80065 } else { 80066 if false { 80067 } else { 80068 h.encSlicePtrtoTaskGroup(([]*TaskGroup)(x.TaskGroups), e) 80069 } 80070 } 80071 } 80072 if yyr2 || yy2arr2 { 80073 r.WriteArrayElem() 80074 yy46 := &x.Update 80075 yy46.CodecEncodeSelf(e) 80076 } else { 80077 r.WriteMapElemKey() 80078 if z.IsJSONHandle() { 80079 z.WriteStr("\"Update\"") 80080 } else { 80081 r.EncodeStringEnc(codecSelferCcUTF8100, `Update`) 80082 } 80083 r.WriteMapElemValue() 80084 yy48 := &x.Update 80085 yy48.CodecEncodeSelf(e) 80086 } 80087 var yyn50 bool 80088 if x.Periodic == nil { 80089 yyn50 = true 80090 goto LABEL50 80091 } 80092 LABEL50: 80093 if yyr2 || yy2arr2 { 80094 if yyn50 { 80095 r.WriteArrayElem() 80096 r.EncodeNil() 80097 } else { 80098 r.WriteArrayElem() 80099 if x.Periodic == nil { 80100 r.EncodeNil() 80101 } else { 80102 x.Periodic.CodecEncodeSelf(e) 80103 } 80104 } 80105 } else { 80106 r.WriteMapElemKey() 80107 if z.IsJSONHandle() { 80108 z.WriteStr("\"Periodic\"") 80109 } else { 80110 r.EncodeStringEnc(codecSelferCcUTF8100, `Periodic`) 80111 } 80112 r.WriteMapElemValue() 80113 if yyn50 { 80114 r.EncodeNil() 80115 } else { 80116 if x.Periodic == nil { 80117 r.EncodeNil() 80118 } else { 80119 x.Periodic.CodecEncodeSelf(e) 80120 } 80121 } 80122 } 80123 var yyn53 bool 80124 if x.ParameterizedJob == nil { 80125 yyn53 = true 80126 goto LABEL53 80127 } 80128 LABEL53: 80129 if yyr2 || yy2arr2 { 80130 if yyn53 { 80131 r.WriteArrayElem() 80132 r.EncodeNil() 80133 } else { 80134 r.WriteArrayElem() 80135 if x.ParameterizedJob == nil { 80136 r.EncodeNil() 80137 } else { 80138 x.ParameterizedJob.CodecEncodeSelf(e) 80139 } 80140 } 80141 } else { 80142 r.WriteMapElemKey() 80143 if z.IsJSONHandle() { 80144 z.WriteStr("\"ParameterizedJob\"") 80145 } else { 80146 r.EncodeStringEnc(codecSelferCcUTF8100, `ParameterizedJob`) 80147 } 80148 r.WriteMapElemValue() 80149 if yyn53 { 80150 r.EncodeNil() 80151 } else { 80152 if x.ParameterizedJob == nil { 80153 r.EncodeNil() 80154 } else { 80155 x.ParameterizedJob.CodecEncodeSelf(e) 80156 } 80157 } 80158 } 80159 if yyr2 || yy2arr2 { 80160 r.WriteArrayElem() 80161 if false { 80162 } else { 80163 r.EncodeBool(bool(x.Dispatched)) 80164 } 80165 } else { 80166 r.WriteMapElemKey() 80167 if z.IsJSONHandle() { 80168 z.WriteStr("\"Dispatched\"") 80169 } else { 80170 r.EncodeStringEnc(codecSelferCcUTF8100, `Dispatched`) 80171 } 80172 r.WriteMapElemValue() 80173 if false { 80174 } else { 80175 r.EncodeBool(bool(x.Dispatched)) 80176 } 80177 } 80178 if yyr2 || yy2arr2 { 80179 r.WriteArrayElem() 80180 if x.Payload == nil { 80181 r.EncodeNil() 80182 } else { 80183 if false { 80184 } else { 80185 r.EncodeStringBytesRaw([]byte(x.Payload)) 80186 } 80187 } 80188 } else { 80189 r.WriteMapElemKey() 80190 if z.IsJSONHandle() { 80191 z.WriteStr("\"Payload\"") 80192 } else { 80193 r.EncodeStringEnc(codecSelferCcUTF8100, `Payload`) 80194 } 80195 r.WriteMapElemValue() 80196 if x.Payload == nil { 80197 r.EncodeNil() 80198 } else { 80199 if false { 80200 } else { 80201 r.EncodeStringBytesRaw([]byte(x.Payload)) 80202 } 80203 } 80204 } 80205 if yyr2 || yy2arr2 { 80206 r.WriteArrayElem() 80207 if x.Meta == nil { 80208 r.EncodeNil() 80209 } else { 80210 if false { 80211 } else { 80212 z.F.EncMapStringStringV(x.Meta, e) 80213 } 80214 } 80215 } else { 80216 r.WriteMapElemKey() 80217 if z.IsJSONHandle() { 80218 z.WriteStr("\"Meta\"") 80219 } else { 80220 r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) 80221 } 80222 r.WriteMapElemValue() 80223 if x.Meta == nil { 80224 r.EncodeNil() 80225 } else { 80226 if false { 80227 } else { 80228 z.F.EncMapStringStringV(x.Meta, e) 80229 } 80230 } 80231 } 80232 if yyr2 || yy2arr2 { 80233 r.WriteArrayElem() 80234 if false { 80235 } else { 80236 if z.EncBasicHandle().StringToRaw { 80237 r.EncodeStringBytesRaw(z.BytesView(string(x.ConsulToken))) 80238 } else { 80239 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ConsulToken)) 80240 } 80241 } 80242 } else { 80243 r.WriteMapElemKey() 80244 if z.IsJSONHandle() { 80245 z.WriteStr("\"ConsulToken\"") 80246 } else { 80247 r.EncodeStringEnc(codecSelferCcUTF8100, `ConsulToken`) 80248 } 80249 r.WriteMapElemValue() 80250 if false { 80251 } else { 80252 if z.EncBasicHandle().StringToRaw { 80253 r.EncodeStringBytesRaw(z.BytesView(string(x.ConsulToken))) 80254 } else { 80255 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ConsulToken)) 80256 } 80257 } 80258 } 80259 if yyr2 || yy2arr2 { 80260 r.WriteArrayElem() 80261 if false { 80262 } else { 80263 if z.EncBasicHandle().StringToRaw { 80264 r.EncodeStringBytesRaw(z.BytesView(string(x.VaultToken))) 80265 } else { 80266 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultToken)) 80267 } 80268 } 80269 } else { 80270 r.WriteMapElemKey() 80271 if z.IsJSONHandle() { 80272 z.WriteStr("\"VaultToken\"") 80273 } else { 80274 r.EncodeStringEnc(codecSelferCcUTF8100, `VaultToken`) 80275 } 80276 r.WriteMapElemValue() 80277 if false { 80278 } else { 80279 if z.EncBasicHandle().StringToRaw { 80280 r.EncodeStringBytesRaw(z.BytesView(string(x.VaultToken))) 80281 } else { 80282 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultToken)) 80283 } 80284 } 80285 } 80286 if yyr2 || yy2arr2 { 80287 r.WriteArrayElem() 80288 if false { 80289 } else { 80290 if z.EncBasicHandle().StringToRaw { 80291 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 80292 } else { 80293 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 80294 } 80295 } 80296 } else { 80297 r.WriteMapElemKey() 80298 if z.IsJSONHandle() { 80299 z.WriteStr("\"Status\"") 80300 } else { 80301 r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) 80302 } 80303 r.WriteMapElemValue() 80304 if false { 80305 } else { 80306 if z.EncBasicHandle().StringToRaw { 80307 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 80308 } else { 80309 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 80310 } 80311 } 80312 } 80313 if yyr2 || yy2arr2 { 80314 r.WriteArrayElem() 80315 if false { 80316 } else { 80317 if z.EncBasicHandle().StringToRaw { 80318 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 80319 } else { 80320 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 80321 } 80322 } 80323 } else { 80324 r.WriteMapElemKey() 80325 if z.IsJSONHandle() { 80326 z.WriteStr("\"StatusDescription\"") 80327 } else { 80328 r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) 80329 } 80330 r.WriteMapElemValue() 80331 if false { 80332 } else { 80333 if z.EncBasicHandle().StringToRaw { 80334 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 80335 } else { 80336 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 80337 } 80338 } 80339 } 80340 if yyr2 || yy2arr2 { 80341 r.WriteArrayElem() 80342 if false { 80343 } else { 80344 r.EncodeBool(bool(x.Stable)) 80345 } 80346 } else { 80347 r.WriteMapElemKey() 80348 if z.IsJSONHandle() { 80349 z.WriteStr("\"Stable\"") 80350 } else { 80351 r.EncodeStringEnc(codecSelferCcUTF8100, `Stable`) 80352 } 80353 r.WriteMapElemValue() 80354 if false { 80355 } else { 80356 r.EncodeBool(bool(x.Stable)) 80357 } 80358 } 80359 if yyr2 || yy2arr2 { 80360 r.WriteArrayElem() 80361 if false { 80362 } else { 80363 r.EncodeUint(uint64(x.Version)) 80364 } 80365 } else { 80366 r.WriteMapElemKey() 80367 if z.IsJSONHandle() { 80368 z.WriteStr("\"Version\"") 80369 } else { 80370 r.EncodeStringEnc(codecSelferCcUTF8100, `Version`) 80371 } 80372 r.WriteMapElemValue() 80373 if false { 80374 } else { 80375 r.EncodeUint(uint64(x.Version)) 80376 } 80377 } 80378 if yyr2 || yy2arr2 { 80379 r.WriteArrayElem() 80380 if false { 80381 } else { 80382 r.EncodeInt(int64(x.SubmitTime)) 80383 } 80384 } else { 80385 r.WriteMapElemKey() 80386 if z.IsJSONHandle() { 80387 z.WriteStr("\"SubmitTime\"") 80388 } else { 80389 r.EncodeStringEnc(codecSelferCcUTF8100, `SubmitTime`) 80390 } 80391 r.WriteMapElemValue() 80392 if false { 80393 } else { 80394 r.EncodeInt(int64(x.SubmitTime)) 80395 } 80396 } 80397 if yyr2 || yy2arr2 { 80398 r.WriteArrayElem() 80399 if false { 80400 } else { 80401 r.EncodeUint(uint64(x.CreateIndex)) 80402 } 80403 } else { 80404 r.WriteMapElemKey() 80405 if z.IsJSONHandle() { 80406 z.WriteStr("\"CreateIndex\"") 80407 } else { 80408 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 80409 } 80410 r.WriteMapElemValue() 80411 if false { 80412 } else { 80413 r.EncodeUint(uint64(x.CreateIndex)) 80414 } 80415 } 80416 if yyr2 || yy2arr2 { 80417 r.WriteArrayElem() 80418 if false { 80419 } else { 80420 r.EncodeUint(uint64(x.ModifyIndex)) 80421 } 80422 } else { 80423 r.WriteMapElemKey() 80424 if z.IsJSONHandle() { 80425 z.WriteStr("\"ModifyIndex\"") 80426 } else { 80427 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 80428 } 80429 r.WriteMapElemValue() 80430 if false { 80431 } else { 80432 r.EncodeUint(uint64(x.ModifyIndex)) 80433 } 80434 } 80435 if yyr2 || yy2arr2 { 80436 r.WriteArrayElem() 80437 if false { 80438 } else { 80439 r.EncodeUint(uint64(x.JobModifyIndex)) 80440 } 80441 } else { 80442 r.WriteMapElemKey() 80443 if z.IsJSONHandle() { 80444 z.WriteStr("\"JobModifyIndex\"") 80445 } else { 80446 r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) 80447 } 80448 r.WriteMapElemValue() 80449 if false { 80450 } else { 80451 r.EncodeUint(uint64(x.JobModifyIndex)) 80452 } 80453 } 80454 if yyr2 || yy2arr2 { 80455 r.WriteArrayEnd() 80456 } else { 80457 r.WriteMapEnd() 80458 } 80459 } 80460 } 80461 } 80462 80463 func (x *Job) CodecDecodeSelf(d *codec1978.Decoder) { 80464 var h codecSelfer100 80465 z, r := codec1978.GenHelperDecoder(d) 80466 _, _, _ = h, z, r 80467 if false { 80468 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 80469 z.DecExtension(x, yyxt1) 80470 } else { 80471 yyct2 := r.ContainerType() 80472 if yyct2 == codecSelferValueTypeMap100 { 80473 yyl2 := r.ReadMapStart() 80474 if yyl2 == 0 { 80475 r.ReadMapEnd() 80476 } else { 80477 x.codecDecodeSelfFromMap(yyl2, d) 80478 } 80479 } else if yyct2 == codecSelferValueTypeArray100 { 80480 yyl2 := r.ReadArrayStart() 80481 if yyl2 == 0 { 80482 r.ReadArrayEnd() 80483 } else { 80484 x.codecDecodeSelfFromArray(yyl2, d) 80485 } 80486 } else { 80487 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 80488 } 80489 } 80490 } 80491 80492 func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 80493 var h codecSelfer100 80494 z, r := codec1978.GenHelperDecoder(d) 80495 _, _, _ = h, z, r 80496 var yyhl3 bool = l >= 0 80497 for yyj3 := 0; ; yyj3++ { 80498 if yyhl3 { 80499 if yyj3 >= l { 80500 break 80501 } 80502 } else { 80503 if r.CheckBreak() { 80504 break 80505 } 80506 } 80507 r.ReadMapElemKey() 80508 yys3 := z.StringView(r.DecodeStringAsBytes()) 80509 r.ReadMapElemValue() 80510 switch yys3 { 80511 case "Stop": 80512 if r.TryDecodeAsNil() { 80513 x.Stop = false 80514 } else { 80515 x.Stop = (bool)(r.DecodeBool()) 80516 } 80517 case "Region": 80518 if r.TryDecodeAsNil() { 80519 x.Region = "" 80520 } else { 80521 x.Region = (string)(r.DecodeString()) 80522 } 80523 case "Namespace": 80524 if r.TryDecodeAsNil() { 80525 x.Namespace = "" 80526 } else { 80527 x.Namespace = (string)(r.DecodeString()) 80528 } 80529 case "ID": 80530 if r.TryDecodeAsNil() { 80531 x.ID = "" 80532 } else { 80533 x.ID = (string)(r.DecodeString()) 80534 } 80535 case "ParentID": 80536 if r.TryDecodeAsNil() { 80537 x.ParentID = "" 80538 } else { 80539 x.ParentID = (string)(r.DecodeString()) 80540 } 80541 case "Name": 80542 if r.TryDecodeAsNil() { 80543 x.Name = "" 80544 } else { 80545 x.Name = (string)(r.DecodeString()) 80546 } 80547 case "Type": 80548 if r.TryDecodeAsNil() { 80549 x.Type = "" 80550 } else { 80551 x.Type = (string)(r.DecodeString()) 80552 } 80553 case "Priority": 80554 if r.TryDecodeAsNil() { 80555 x.Priority = 0 80556 } else { 80557 x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 80558 } 80559 case "AllAtOnce": 80560 if r.TryDecodeAsNil() { 80561 x.AllAtOnce = false 80562 } else { 80563 x.AllAtOnce = (bool)(r.DecodeBool()) 80564 } 80565 case "Datacenters": 80566 if r.TryDecodeAsNil() { 80567 x.Datacenters = nil 80568 } else { 80569 if false { 80570 } else { 80571 z.F.DecSliceStringX(&x.Datacenters, d) 80572 } 80573 } 80574 case "Constraints": 80575 if r.TryDecodeAsNil() { 80576 x.Constraints = nil 80577 } else { 80578 if false { 80579 } else { 80580 h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) 80581 } 80582 } 80583 case "Affinities": 80584 if r.TryDecodeAsNil() { 80585 x.Affinities = nil 80586 } else { 80587 if false { 80588 } else { 80589 h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) 80590 } 80591 } 80592 case "Spreads": 80593 if r.TryDecodeAsNil() { 80594 x.Spreads = nil 80595 } else { 80596 if false { 80597 } else { 80598 h.decSlicePtrtoSpread((*[]*Spread)(&x.Spreads), d) 80599 } 80600 } 80601 case "TaskGroups": 80602 if r.TryDecodeAsNil() { 80603 x.TaskGroups = nil 80604 } else { 80605 if false { 80606 } else { 80607 h.decSlicePtrtoTaskGroup((*[]*TaskGroup)(&x.TaskGroups), d) 80608 } 80609 } 80610 case "Update": 80611 if r.TryDecodeAsNil() { 80612 x.Update = UpdateStrategy{} 80613 } else { 80614 x.Update.CodecDecodeSelf(d) 80615 } 80616 case "Periodic": 80617 if r.TryDecodeAsNil() { 80618 if true && x.Periodic != nil { 80619 x.Periodic = nil 80620 } 80621 } else { 80622 if x.Periodic == nil { 80623 x.Periodic = new(PeriodicConfig) 80624 } 80625 80626 x.Periodic.CodecDecodeSelf(d) 80627 } 80628 case "ParameterizedJob": 80629 if r.TryDecodeAsNil() { 80630 if true && x.ParameterizedJob != nil { 80631 x.ParameterizedJob = nil 80632 } 80633 } else { 80634 if x.ParameterizedJob == nil { 80635 x.ParameterizedJob = new(ParameterizedJobConfig) 80636 } 80637 80638 x.ParameterizedJob.CodecDecodeSelf(d) 80639 } 80640 case "Dispatched": 80641 if r.TryDecodeAsNil() { 80642 x.Dispatched = false 80643 } else { 80644 x.Dispatched = (bool)(r.DecodeBool()) 80645 } 80646 case "Payload": 80647 if r.TryDecodeAsNil() { 80648 x.Payload = nil 80649 } else { 80650 if false { 80651 } else { 80652 x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) 80653 } 80654 } 80655 case "Meta": 80656 if r.TryDecodeAsNil() { 80657 x.Meta = nil 80658 } else { 80659 if false { 80660 } else { 80661 z.F.DecMapStringStringX(&x.Meta, d) 80662 } 80663 } 80664 case "ConsulToken": 80665 if r.TryDecodeAsNil() { 80666 x.ConsulToken = "" 80667 } else { 80668 x.ConsulToken = (string)(r.DecodeString()) 80669 } 80670 case "VaultToken": 80671 if r.TryDecodeAsNil() { 80672 x.VaultToken = "" 80673 } else { 80674 x.VaultToken = (string)(r.DecodeString()) 80675 } 80676 case "Status": 80677 if r.TryDecodeAsNil() { 80678 x.Status = "" 80679 } else { 80680 x.Status = (string)(r.DecodeString()) 80681 } 80682 case "StatusDescription": 80683 if r.TryDecodeAsNil() { 80684 x.StatusDescription = "" 80685 } else { 80686 x.StatusDescription = (string)(r.DecodeString()) 80687 } 80688 case "Stable": 80689 if r.TryDecodeAsNil() { 80690 x.Stable = false 80691 } else { 80692 x.Stable = (bool)(r.DecodeBool()) 80693 } 80694 case "Version": 80695 if r.TryDecodeAsNil() { 80696 x.Version = 0 80697 } else { 80698 x.Version = (uint64)(r.DecodeUint64()) 80699 } 80700 case "SubmitTime": 80701 if r.TryDecodeAsNil() { 80702 x.SubmitTime = 0 80703 } else { 80704 x.SubmitTime = (int64)(r.DecodeInt64()) 80705 } 80706 case "CreateIndex": 80707 if r.TryDecodeAsNil() { 80708 x.CreateIndex = 0 80709 } else { 80710 x.CreateIndex = (uint64)(r.DecodeUint64()) 80711 } 80712 case "ModifyIndex": 80713 if r.TryDecodeAsNil() { 80714 x.ModifyIndex = 0 80715 } else { 80716 x.ModifyIndex = (uint64)(r.DecodeUint64()) 80717 } 80718 case "JobModifyIndex": 80719 if r.TryDecodeAsNil() { 80720 x.JobModifyIndex = 0 80721 } else { 80722 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 80723 } 80724 default: 80725 z.DecStructFieldNotFound(-1, yys3) 80726 } // end switch yys3 80727 } // end for yyj3 80728 r.ReadMapEnd() 80729 } 80730 80731 func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 80732 var h codecSelfer100 80733 z, r := codec1978.GenHelperDecoder(d) 80734 _, _, _ = h, z, r 80735 var yyj41 int 80736 var yyb41 bool 80737 var yyhl41 bool = l >= 0 80738 yyj41++ 80739 if yyhl41 { 80740 yyb41 = yyj41 > l 80741 } else { 80742 yyb41 = r.CheckBreak() 80743 } 80744 if yyb41 { 80745 r.ReadArrayEnd() 80746 return 80747 } 80748 r.ReadArrayElem() 80749 if r.TryDecodeAsNil() { 80750 x.Stop = false 80751 } else { 80752 x.Stop = (bool)(r.DecodeBool()) 80753 } 80754 yyj41++ 80755 if yyhl41 { 80756 yyb41 = yyj41 > l 80757 } else { 80758 yyb41 = r.CheckBreak() 80759 } 80760 if yyb41 { 80761 r.ReadArrayEnd() 80762 return 80763 } 80764 r.ReadArrayElem() 80765 if r.TryDecodeAsNil() { 80766 x.Region = "" 80767 } else { 80768 x.Region = (string)(r.DecodeString()) 80769 } 80770 yyj41++ 80771 if yyhl41 { 80772 yyb41 = yyj41 > l 80773 } else { 80774 yyb41 = r.CheckBreak() 80775 } 80776 if yyb41 { 80777 r.ReadArrayEnd() 80778 return 80779 } 80780 r.ReadArrayElem() 80781 if r.TryDecodeAsNil() { 80782 x.Namespace = "" 80783 } else { 80784 x.Namespace = (string)(r.DecodeString()) 80785 } 80786 yyj41++ 80787 if yyhl41 { 80788 yyb41 = yyj41 > l 80789 } else { 80790 yyb41 = r.CheckBreak() 80791 } 80792 if yyb41 { 80793 r.ReadArrayEnd() 80794 return 80795 } 80796 r.ReadArrayElem() 80797 if r.TryDecodeAsNil() { 80798 x.ID = "" 80799 } else { 80800 x.ID = (string)(r.DecodeString()) 80801 } 80802 yyj41++ 80803 if yyhl41 { 80804 yyb41 = yyj41 > l 80805 } else { 80806 yyb41 = r.CheckBreak() 80807 } 80808 if yyb41 { 80809 r.ReadArrayEnd() 80810 return 80811 } 80812 r.ReadArrayElem() 80813 if r.TryDecodeAsNil() { 80814 x.ParentID = "" 80815 } else { 80816 x.ParentID = (string)(r.DecodeString()) 80817 } 80818 yyj41++ 80819 if yyhl41 { 80820 yyb41 = yyj41 > l 80821 } else { 80822 yyb41 = r.CheckBreak() 80823 } 80824 if yyb41 { 80825 r.ReadArrayEnd() 80826 return 80827 } 80828 r.ReadArrayElem() 80829 if r.TryDecodeAsNil() { 80830 x.Name = "" 80831 } else { 80832 x.Name = (string)(r.DecodeString()) 80833 } 80834 yyj41++ 80835 if yyhl41 { 80836 yyb41 = yyj41 > l 80837 } else { 80838 yyb41 = r.CheckBreak() 80839 } 80840 if yyb41 { 80841 r.ReadArrayEnd() 80842 return 80843 } 80844 r.ReadArrayElem() 80845 if r.TryDecodeAsNil() { 80846 x.Type = "" 80847 } else { 80848 x.Type = (string)(r.DecodeString()) 80849 } 80850 yyj41++ 80851 if yyhl41 { 80852 yyb41 = yyj41 > l 80853 } else { 80854 yyb41 = r.CheckBreak() 80855 } 80856 if yyb41 { 80857 r.ReadArrayEnd() 80858 return 80859 } 80860 r.ReadArrayElem() 80861 if r.TryDecodeAsNil() { 80862 x.Priority = 0 80863 } else { 80864 x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 80865 } 80866 yyj41++ 80867 if yyhl41 { 80868 yyb41 = yyj41 > l 80869 } else { 80870 yyb41 = r.CheckBreak() 80871 } 80872 if yyb41 { 80873 r.ReadArrayEnd() 80874 return 80875 } 80876 r.ReadArrayElem() 80877 if r.TryDecodeAsNil() { 80878 x.AllAtOnce = false 80879 } else { 80880 x.AllAtOnce = (bool)(r.DecodeBool()) 80881 } 80882 yyj41++ 80883 if yyhl41 { 80884 yyb41 = yyj41 > l 80885 } else { 80886 yyb41 = r.CheckBreak() 80887 } 80888 if yyb41 { 80889 r.ReadArrayEnd() 80890 return 80891 } 80892 r.ReadArrayElem() 80893 if r.TryDecodeAsNil() { 80894 x.Datacenters = nil 80895 } else { 80896 if false { 80897 } else { 80898 z.F.DecSliceStringX(&x.Datacenters, d) 80899 } 80900 } 80901 yyj41++ 80902 if yyhl41 { 80903 yyb41 = yyj41 > l 80904 } else { 80905 yyb41 = r.CheckBreak() 80906 } 80907 if yyb41 { 80908 r.ReadArrayEnd() 80909 return 80910 } 80911 r.ReadArrayElem() 80912 if r.TryDecodeAsNil() { 80913 x.Constraints = nil 80914 } else { 80915 if false { 80916 } else { 80917 h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) 80918 } 80919 } 80920 yyj41++ 80921 if yyhl41 { 80922 yyb41 = yyj41 > l 80923 } else { 80924 yyb41 = r.CheckBreak() 80925 } 80926 if yyb41 { 80927 r.ReadArrayEnd() 80928 return 80929 } 80930 r.ReadArrayElem() 80931 if r.TryDecodeAsNil() { 80932 x.Affinities = nil 80933 } else { 80934 if false { 80935 } else { 80936 h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) 80937 } 80938 } 80939 yyj41++ 80940 if yyhl41 { 80941 yyb41 = yyj41 > l 80942 } else { 80943 yyb41 = r.CheckBreak() 80944 } 80945 if yyb41 { 80946 r.ReadArrayEnd() 80947 return 80948 } 80949 r.ReadArrayElem() 80950 if r.TryDecodeAsNil() { 80951 x.Spreads = nil 80952 } else { 80953 if false { 80954 } else { 80955 h.decSlicePtrtoSpread((*[]*Spread)(&x.Spreads), d) 80956 } 80957 } 80958 yyj41++ 80959 if yyhl41 { 80960 yyb41 = yyj41 > l 80961 } else { 80962 yyb41 = r.CheckBreak() 80963 } 80964 if yyb41 { 80965 r.ReadArrayEnd() 80966 return 80967 } 80968 r.ReadArrayElem() 80969 if r.TryDecodeAsNil() { 80970 x.TaskGroups = nil 80971 } else { 80972 if false { 80973 } else { 80974 h.decSlicePtrtoTaskGroup((*[]*TaskGroup)(&x.TaskGroups), d) 80975 } 80976 } 80977 yyj41++ 80978 if yyhl41 { 80979 yyb41 = yyj41 > l 80980 } else { 80981 yyb41 = r.CheckBreak() 80982 } 80983 if yyb41 { 80984 r.ReadArrayEnd() 80985 return 80986 } 80987 r.ReadArrayElem() 80988 if r.TryDecodeAsNil() { 80989 x.Update = UpdateStrategy{} 80990 } else { 80991 x.Update.CodecDecodeSelf(d) 80992 } 80993 yyj41++ 80994 if yyhl41 { 80995 yyb41 = yyj41 > l 80996 } else { 80997 yyb41 = r.CheckBreak() 80998 } 80999 if yyb41 { 81000 r.ReadArrayEnd() 81001 return 81002 } 81003 r.ReadArrayElem() 81004 if r.TryDecodeAsNil() { 81005 if true && x.Periodic != nil { 81006 x.Periodic = nil 81007 } 81008 } else { 81009 if x.Periodic == nil { 81010 x.Periodic = new(PeriodicConfig) 81011 } 81012 81013 x.Periodic.CodecDecodeSelf(d) 81014 } 81015 yyj41++ 81016 if yyhl41 { 81017 yyb41 = yyj41 > l 81018 } else { 81019 yyb41 = r.CheckBreak() 81020 } 81021 if yyb41 { 81022 r.ReadArrayEnd() 81023 return 81024 } 81025 r.ReadArrayElem() 81026 if r.TryDecodeAsNil() { 81027 if true && x.ParameterizedJob != nil { 81028 x.ParameterizedJob = nil 81029 } 81030 } else { 81031 if x.ParameterizedJob == nil { 81032 x.ParameterizedJob = new(ParameterizedJobConfig) 81033 } 81034 81035 x.ParameterizedJob.CodecDecodeSelf(d) 81036 } 81037 yyj41++ 81038 if yyhl41 { 81039 yyb41 = yyj41 > l 81040 } else { 81041 yyb41 = r.CheckBreak() 81042 } 81043 if yyb41 { 81044 r.ReadArrayEnd() 81045 return 81046 } 81047 r.ReadArrayElem() 81048 if r.TryDecodeAsNil() { 81049 x.Dispatched = false 81050 } else { 81051 x.Dispatched = (bool)(r.DecodeBool()) 81052 } 81053 yyj41++ 81054 if yyhl41 { 81055 yyb41 = yyj41 > l 81056 } else { 81057 yyb41 = r.CheckBreak() 81058 } 81059 if yyb41 { 81060 r.ReadArrayEnd() 81061 return 81062 } 81063 r.ReadArrayElem() 81064 if r.TryDecodeAsNil() { 81065 x.Payload = nil 81066 } else { 81067 if false { 81068 } else { 81069 x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) 81070 } 81071 } 81072 yyj41++ 81073 if yyhl41 { 81074 yyb41 = yyj41 > l 81075 } else { 81076 yyb41 = r.CheckBreak() 81077 } 81078 if yyb41 { 81079 r.ReadArrayEnd() 81080 return 81081 } 81082 r.ReadArrayElem() 81083 if r.TryDecodeAsNil() { 81084 x.Meta = nil 81085 } else { 81086 if false { 81087 } else { 81088 z.F.DecMapStringStringX(&x.Meta, d) 81089 } 81090 } 81091 yyj41++ 81092 if yyhl41 { 81093 yyb41 = yyj41 > l 81094 } else { 81095 yyb41 = r.CheckBreak() 81096 } 81097 if yyb41 { 81098 r.ReadArrayEnd() 81099 return 81100 } 81101 r.ReadArrayElem() 81102 if r.TryDecodeAsNil() { 81103 x.ConsulToken = "" 81104 } else { 81105 x.ConsulToken = (string)(r.DecodeString()) 81106 } 81107 yyj41++ 81108 if yyhl41 { 81109 yyb41 = yyj41 > l 81110 } else { 81111 yyb41 = r.CheckBreak() 81112 } 81113 if yyb41 { 81114 r.ReadArrayEnd() 81115 return 81116 } 81117 r.ReadArrayElem() 81118 if r.TryDecodeAsNil() { 81119 x.VaultToken = "" 81120 } else { 81121 x.VaultToken = (string)(r.DecodeString()) 81122 } 81123 yyj41++ 81124 if yyhl41 { 81125 yyb41 = yyj41 > l 81126 } else { 81127 yyb41 = r.CheckBreak() 81128 } 81129 if yyb41 { 81130 r.ReadArrayEnd() 81131 return 81132 } 81133 r.ReadArrayElem() 81134 if r.TryDecodeAsNil() { 81135 x.Status = "" 81136 } else { 81137 x.Status = (string)(r.DecodeString()) 81138 } 81139 yyj41++ 81140 if yyhl41 { 81141 yyb41 = yyj41 > l 81142 } else { 81143 yyb41 = r.CheckBreak() 81144 } 81145 if yyb41 { 81146 r.ReadArrayEnd() 81147 return 81148 } 81149 r.ReadArrayElem() 81150 if r.TryDecodeAsNil() { 81151 x.StatusDescription = "" 81152 } else { 81153 x.StatusDescription = (string)(r.DecodeString()) 81154 } 81155 yyj41++ 81156 if yyhl41 { 81157 yyb41 = yyj41 > l 81158 } else { 81159 yyb41 = r.CheckBreak() 81160 } 81161 if yyb41 { 81162 r.ReadArrayEnd() 81163 return 81164 } 81165 r.ReadArrayElem() 81166 if r.TryDecodeAsNil() { 81167 x.Stable = false 81168 } else { 81169 x.Stable = (bool)(r.DecodeBool()) 81170 } 81171 yyj41++ 81172 if yyhl41 { 81173 yyb41 = yyj41 > l 81174 } else { 81175 yyb41 = r.CheckBreak() 81176 } 81177 if yyb41 { 81178 r.ReadArrayEnd() 81179 return 81180 } 81181 r.ReadArrayElem() 81182 if r.TryDecodeAsNil() { 81183 x.Version = 0 81184 } else { 81185 x.Version = (uint64)(r.DecodeUint64()) 81186 } 81187 yyj41++ 81188 if yyhl41 { 81189 yyb41 = yyj41 > l 81190 } else { 81191 yyb41 = r.CheckBreak() 81192 } 81193 if yyb41 { 81194 r.ReadArrayEnd() 81195 return 81196 } 81197 r.ReadArrayElem() 81198 if r.TryDecodeAsNil() { 81199 x.SubmitTime = 0 81200 } else { 81201 x.SubmitTime = (int64)(r.DecodeInt64()) 81202 } 81203 yyj41++ 81204 if yyhl41 { 81205 yyb41 = yyj41 > l 81206 } else { 81207 yyb41 = r.CheckBreak() 81208 } 81209 if yyb41 { 81210 r.ReadArrayEnd() 81211 return 81212 } 81213 r.ReadArrayElem() 81214 if r.TryDecodeAsNil() { 81215 x.CreateIndex = 0 81216 } else { 81217 x.CreateIndex = (uint64)(r.DecodeUint64()) 81218 } 81219 yyj41++ 81220 if yyhl41 { 81221 yyb41 = yyj41 > l 81222 } else { 81223 yyb41 = r.CheckBreak() 81224 } 81225 if yyb41 { 81226 r.ReadArrayEnd() 81227 return 81228 } 81229 r.ReadArrayElem() 81230 if r.TryDecodeAsNil() { 81231 x.ModifyIndex = 0 81232 } else { 81233 x.ModifyIndex = (uint64)(r.DecodeUint64()) 81234 } 81235 yyj41++ 81236 if yyhl41 { 81237 yyb41 = yyj41 > l 81238 } else { 81239 yyb41 = r.CheckBreak() 81240 } 81241 if yyb41 { 81242 r.ReadArrayEnd() 81243 return 81244 } 81245 r.ReadArrayElem() 81246 if r.TryDecodeAsNil() { 81247 x.JobModifyIndex = 0 81248 } else { 81249 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 81250 } 81251 for { 81252 yyj41++ 81253 if yyhl41 { 81254 yyb41 = yyj41 > l 81255 } else { 81256 yyb41 = r.CheckBreak() 81257 } 81258 if yyb41 { 81259 break 81260 } 81261 r.ReadArrayElem() 81262 z.DecStructFieldNotFound(yyj41-1, "") 81263 } 81264 r.ReadArrayEnd() 81265 } 81266 81267 func (x *JobListStub) CodecEncodeSelf(e *codec1978.Encoder) { 81268 var h codecSelfer100 81269 z, r := codec1978.GenHelperEncoder(e) 81270 _, _, _ = h, z, r 81271 if x == nil { 81272 r.EncodeNil() 81273 } else { 81274 if false { 81275 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 81276 z.EncExtension(x, yyxt1) 81277 } else { 81278 yysep2 := !z.EncBinary() 81279 yy2arr2 := z.EncBasicHandle().StructToArray 81280 _, _ = yysep2, yy2arr2 81281 const yyr2 bool = false // struct tag has 'toArray' 81282 if yyr2 || yy2arr2 { 81283 r.WriteArrayStart(16) 81284 } else { 81285 r.WriteMapStart(16) 81286 } 81287 if yyr2 || yy2arr2 { 81288 r.WriteArrayElem() 81289 if false { 81290 } else { 81291 if z.EncBasicHandle().StringToRaw { 81292 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 81293 } else { 81294 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 81295 } 81296 } 81297 } else { 81298 r.WriteMapElemKey() 81299 if z.IsJSONHandle() { 81300 z.WriteStr("\"ID\"") 81301 } else { 81302 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 81303 } 81304 r.WriteMapElemValue() 81305 if false { 81306 } else { 81307 if z.EncBasicHandle().StringToRaw { 81308 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 81309 } else { 81310 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 81311 } 81312 } 81313 } 81314 if yyr2 || yy2arr2 { 81315 r.WriteArrayElem() 81316 if false { 81317 } else { 81318 if z.EncBasicHandle().StringToRaw { 81319 r.EncodeStringBytesRaw(z.BytesView(string(x.ParentID))) 81320 } else { 81321 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ParentID)) 81322 } 81323 } 81324 } else { 81325 r.WriteMapElemKey() 81326 if z.IsJSONHandle() { 81327 z.WriteStr("\"ParentID\"") 81328 } else { 81329 r.EncodeStringEnc(codecSelferCcUTF8100, `ParentID`) 81330 } 81331 r.WriteMapElemValue() 81332 if false { 81333 } else { 81334 if z.EncBasicHandle().StringToRaw { 81335 r.EncodeStringBytesRaw(z.BytesView(string(x.ParentID))) 81336 } else { 81337 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ParentID)) 81338 } 81339 } 81340 } 81341 if yyr2 || yy2arr2 { 81342 r.WriteArrayElem() 81343 if false { 81344 } else { 81345 if z.EncBasicHandle().StringToRaw { 81346 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 81347 } else { 81348 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 81349 } 81350 } 81351 } else { 81352 r.WriteMapElemKey() 81353 if z.IsJSONHandle() { 81354 z.WriteStr("\"Name\"") 81355 } else { 81356 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 81357 } 81358 r.WriteMapElemValue() 81359 if false { 81360 } else { 81361 if z.EncBasicHandle().StringToRaw { 81362 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 81363 } else { 81364 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 81365 } 81366 } 81367 } 81368 if yyr2 || yy2arr2 { 81369 r.WriteArrayElem() 81370 if x.Datacenters == nil { 81371 r.EncodeNil() 81372 } else { 81373 if false { 81374 } else { 81375 z.F.EncSliceStringV(x.Datacenters, e) 81376 } 81377 } 81378 } else { 81379 r.WriteMapElemKey() 81380 if z.IsJSONHandle() { 81381 z.WriteStr("\"Datacenters\"") 81382 } else { 81383 r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenters`) 81384 } 81385 r.WriteMapElemValue() 81386 if x.Datacenters == nil { 81387 r.EncodeNil() 81388 } else { 81389 if false { 81390 } else { 81391 z.F.EncSliceStringV(x.Datacenters, e) 81392 } 81393 } 81394 } 81395 if yyr2 || yy2arr2 { 81396 r.WriteArrayElem() 81397 if false { 81398 } else { 81399 if z.EncBasicHandle().StringToRaw { 81400 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 81401 } else { 81402 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 81403 } 81404 } 81405 } else { 81406 r.WriteMapElemKey() 81407 if z.IsJSONHandle() { 81408 z.WriteStr("\"Type\"") 81409 } else { 81410 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 81411 } 81412 r.WriteMapElemValue() 81413 if false { 81414 } else { 81415 if z.EncBasicHandle().StringToRaw { 81416 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 81417 } else { 81418 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 81419 } 81420 } 81421 } 81422 if yyr2 || yy2arr2 { 81423 r.WriteArrayElem() 81424 if false { 81425 } else { 81426 r.EncodeInt(int64(x.Priority)) 81427 } 81428 } else { 81429 r.WriteMapElemKey() 81430 if z.IsJSONHandle() { 81431 z.WriteStr("\"Priority\"") 81432 } else { 81433 r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) 81434 } 81435 r.WriteMapElemValue() 81436 if false { 81437 } else { 81438 r.EncodeInt(int64(x.Priority)) 81439 } 81440 } 81441 if yyr2 || yy2arr2 { 81442 r.WriteArrayElem() 81443 if false { 81444 } else { 81445 r.EncodeBool(bool(x.Periodic)) 81446 } 81447 } else { 81448 r.WriteMapElemKey() 81449 if z.IsJSONHandle() { 81450 z.WriteStr("\"Periodic\"") 81451 } else { 81452 r.EncodeStringEnc(codecSelferCcUTF8100, `Periodic`) 81453 } 81454 r.WriteMapElemValue() 81455 if false { 81456 } else { 81457 r.EncodeBool(bool(x.Periodic)) 81458 } 81459 } 81460 if yyr2 || yy2arr2 { 81461 r.WriteArrayElem() 81462 if false { 81463 } else { 81464 r.EncodeBool(bool(x.ParameterizedJob)) 81465 } 81466 } else { 81467 r.WriteMapElemKey() 81468 if z.IsJSONHandle() { 81469 z.WriteStr("\"ParameterizedJob\"") 81470 } else { 81471 r.EncodeStringEnc(codecSelferCcUTF8100, `ParameterizedJob`) 81472 } 81473 r.WriteMapElemValue() 81474 if false { 81475 } else { 81476 r.EncodeBool(bool(x.ParameterizedJob)) 81477 } 81478 } 81479 if yyr2 || yy2arr2 { 81480 r.WriteArrayElem() 81481 if false { 81482 } else { 81483 r.EncodeBool(bool(x.Stop)) 81484 } 81485 } else { 81486 r.WriteMapElemKey() 81487 if z.IsJSONHandle() { 81488 z.WriteStr("\"Stop\"") 81489 } else { 81490 r.EncodeStringEnc(codecSelferCcUTF8100, `Stop`) 81491 } 81492 r.WriteMapElemValue() 81493 if false { 81494 } else { 81495 r.EncodeBool(bool(x.Stop)) 81496 } 81497 } 81498 if yyr2 || yy2arr2 { 81499 r.WriteArrayElem() 81500 if false { 81501 } else { 81502 if z.EncBasicHandle().StringToRaw { 81503 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 81504 } else { 81505 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 81506 } 81507 } 81508 } else { 81509 r.WriteMapElemKey() 81510 if z.IsJSONHandle() { 81511 z.WriteStr("\"Status\"") 81512 } else { 81513 r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) 81514 } 81515 r.WriteMapElemValue() 81516 if false { 81517 } else { 81518 if z.EncBasicHandle().StringToRaw { 81519 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 81520 } else { 81521 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 81522 } 81523 } 81524 } 81525 if yyr2 || yy2arr2 { 81526 r.WriteArrayElem() 81527 if false { 81528 } else { 81529 if z.EncBasicHandle().StringToRaw { 81530 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 81531 } else { 81532 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 81533 } 81534 } 81535 } else { 81536 r.WriteMapElemKey() 81537 if z.IsJSONHandle() { 81538 z.WriteStr("\"StatusDescription\"") 81539 } else { 81540 r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) 81541 } 81542 r.WriteMapElemValue() 81543 if false { 81544 } else { 81545 if z.EncBasicHandle().StringToRaw { 81546 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 81547 } else { 81548 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 81549 } 81550 } 81551 } 81552 var yyn36 bool 81553 if x.JobSummary == nil { 81554 yyn36 = true 81555 goto LABEL36 81556 } 81557 LABEL36: 81558 if yyr2 || yy2arr2 { 81559 if yyn36 { 81560 r.WriteArrayElem() 81561 r.EncodeNil() 81562 } else { 81563 r.WriteArrayElem() 81564 if x.JobSummary == nil { 81565 r.EncodeNil() 81566 } else { 81567 x.JobSummary.CodecEncodeSelf(e) 81568 } 81569 } 81570 } else { 81571 r.WriteMapElemKey() 81572 if z.IsJSONHandle() { 81573 z.WriteStr("\"JobSummary\"") 81574 } else { 81575 r.EncodeStringEnc(codecSelferCcUTF8100, `JobSummary`) 81576 } 81577 r.WriteMapElemValue() 81578 if yyn36 { 81579 r.EncodeNil() 81580 } else { 81581 if x.JobSummary == nil { 81582 r.EncodeNil() 81583 } else { 81584 x.JobSummary.CodecEncodeSelf(e) 81585 } 81586 } 81587 } 81588 if yyr2 || yy2arr2 { 81589 r.WriteArrayElem() 81590 if false { 81591 } else { 81592 r.EncodeUint(uint64(x.CreateIndex)) 81593 } 81594 } else { 81595 r.WriteMapElemKey() 81596 if z.IsJSONHandle() { 81597 z.WriteStr("\"CreateIndex\"") 81598 } else { 81599 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 81600 } 81601 r.WriteMapElemValue() 81602 if false { 81603 } else { 81604 r.EncodeUint(uint64(x.CreateIndex)) 81605 } 81606 } 81607 if yyr2 || yy2arr2 { 81608 r.WriteArrayElem() 81609 if false { 81610 } else { 81611 r.EncodeUint(uint64(x.ModifyIndex)) 81612 } 81613 } else { 81614 r.WriteMapElemKey() 81615 if z.IsJSONHandle() { 81616 z.WriteStr("\"ModifyIndex\"") 81617 } else { 81618 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 81619 } 81620 r.WriteMapElemValue() 81621 if false { 81622 } else { 81623 r.EncodeUint(uint64(x.ModifyIndex)) 81624 } 81625 } 81626 if yyr2 || yy2arr2 { 81627 r.WriteArrayElem() 81628 if false { 81629 } else { 81630 r.EncodeUint(uint64(x.JobModifyIndex)) 81631 } 81632 } else { 81633 r.WriteMapElemKey() 81634 if z.IsJSONHandle() { 81635 z.WriteStr("\"JobModifyIndex\"") 81636 } else { 81637 r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) 81638 } 81639 r.WriteMapElemValue() 81640 if false { 81641 } else { 81642 r.EncodeUint(uint64(x.JobModifyIndex)) 81643 } 81644 } 81645 if yyr2 || yy2arr2 { 81646 r.WriteArrayElem() 81647 if false { 81648 } else { 81649 r.EncodeInt(int64(x.SubmitTime)) 81650 } 81651 } else { 81652 r.WriteMapElemKey() 81653 if z.IsJSONHandle() { 81654 z.WriteStr("\"SubmitTime\"") 81655 } else { 81656 r.EncodeStringEnc(codecSelferCcUTF8100, `SubmitTime`) 81657 } 81658 r.WriteMapElemValue() 81659 if false { 81660 } else { 81661 r.EncodeInt(int64(x.SubmitTime)) 81662 } 81663 } 81664 if yyr2 || yy2arr2 { 81665 r.WriteArrayEnd() 81666 } else { 81667 r.WriteMapEnd() 81668 } 81669 } 81670 } 81671 } 81672 81673 func (x *JobListStub) CodecDecodeSelf(d *codec1978.Decoder) { 81674 var h codecSelfer100 81675 z, r := codec1978.GenHelperDecoder(d) 81676 _, _, _ = h, z, r 81677 if false { 81678 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 81679 z.DecExtension(x, yyxt1) 81680 } else { 81681 yyct2 := r.ContainerType() 81682 if yyct2 == codecSelferValueTypeMap100 { 81683 yyl2 := r.ReadMapStart() 81684 if yyl2 == 0 { 81685 r.ReadMapEnd() 81686 } else { 81687 x.codecDecodeSelfFromMap(yyl2, d) 81688 } 81689 } else if yyct2 == codecSelferValueTypeArray100 { 81690 yyl2 := r.ReadArrayStart() 81691 if yyl2 == 0 { 81692 r.ReadArrayEnd() 81693 } else { 81694 x.codecDecodeSelfFromArray(yyl2, d) 81695 } 81696 } else { 81697 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 81698 } 81699 } 81700 } 81701 81702 func (x *JobListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 81703 var h codecSelfer100 81704 z, r := codec1978.GenHelperDecoder(d) 81705 _, _, _ = h, z, r 81706 var yyhl3 bool = l >= 0 81707 for yyj3 := 0; ; yyj3++ { 81708 if yyhl3 { 81709 if yyj3 >= l { 81710 break 81711 } 81712 } else { 81713 if r.CheckBreak() { 81714 break 81715 } 81716 } 81717 r.ReadMapElemKey() 81718 yys3 := z.StringView(r.DecodeStringAsBytes()) 81719 r.ReadMapElemValue() 81720 switch yys3 { 81721 case "ID": 81722 if r.TryDecodeAsNil() { 81723 x.ID = "" 81724 } else { 81725 x.ID = (string)(r.DecodeString()) 81726 } 81727 case "ParentID": 81728 if r.TryDecodeAsNil() { 81729 x.ParentID = "" 81730 } else { 81731 x.ParentID = (string)(r.DecodeString()) 81732 } 81733 case "Name": 81734 if r.TryDecodeAsNil() { 81735 x.Name = "" 81736 } else { 81737 x.Name = (string)(r.DecodeString()) 81738 } 81739 case "Datacenters": 81740 if r.TryDecodeAsNil() { 81741 x.Datacenters = nil 81742 } else { 81743 if false { 81744 } else { 81745 z.F.DecSliceStringX(&x.Datacenters, d) 81746 } 81747 } 81748 case "Type": 81749 if r.TryDecodeAsNil() { 81750 x.Type = "" 81751 } else { 81752 x.Type = (string)(r.DecodeString()) 81753 } 81754 case "Priority": 81755 if r.TryDecodeAsNil() { 81756 x.Priority = 0 81757 } else { 81758 x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 81759 } 81760 case "Periodic": 81761 if r.TryDecodeAsNil() { 81762 x.Periodic = false 81763 } else { 81764 x.Periodic = (bool)(r.DecodeBool()) 81765 } 81766 case "ParameterizedJob": 81767 if r.TryDecodeAsNil() { 81768 x.ParameterizedJob = false 81769 } else { 81770 x.ParameterizedJob = (bool)(r.DecodeBool()) 81771 } 81772 case "Stop": 81773 if r.TryDecodeAsNil() { 81774 x.Stop = false 81775 } else { 81776 x.Stop = (bool)(r.DecodeBool()) 81777 } 81778 case "Status": 81779 if r.TryDecodeAsNil() { 81780 x.Status = "" 81781 } else { 81782 x.Status = (string)(r.DecodeString()) 81783 } 81784 case "StatusDescription": 81785 if r.TryDecodeAsNil() { 81786 x.StatusDescription = "" 81787 } else { 81788 x.StatusDescription = (string)(r.DecodeString()) 81789 } 81790 case "JobSummary": 81791 if r.TryDecodeAsNil() { 81792 if true && x.JobSummary != nil { 81793 x.JobSummary = nil 81794 } 81795 } else { 81796 if x.JobSummary == nil { 81797 x.JobSummary = new(JobSummary) 81798 } 81799 81800 x.JobSummary.CodecDecodeSelf(d) 81801 } 81802 case "CreateIndex": 81803 if r.TryDecodeAsNil() { 81804 x.CreateIndex = 0 81805 } else { 81806 x.CreateIndex = (uint64)(r.DecodeUint64()) 81807 } 81808 case "ModifyIndex": 81809 if r.TryDecodeAsNil() { 81810 x.ModifyIndex = 0 81811 } else { 81812 x.ModifyIndex = (uint64)(r.DecodeUint64()) 81813 } 81814 case "JobModifyIndex": 81815 if r.TryDecodeAsNil() { 81816 x.JobModifyIndex = 0 81817 } else { 81818 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 81819 } 81820 case "SubmitTime": 81821 if r.TryDecodeAsNil() { 81822 x.SubmitTime = 0 81823 } else { 81824 x.SubmitTime = (int64)(r.DecodeInt64()) 81825 } 81826 default: 81827 z.DecStructFieldNotFound(-1, yys3) 81828 } // end switch yys3 81829 } // end for yyj3 81830 r.ReadMapEnd() 81831 } 81832 81833 func (x *JobListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 81834 var h codecSelfer100 81835 z, r := codec1978.GenHelperDecoder(d) 81836 _, _, _ = h, z, r 81837 var yyj21 int 81838 var yyb21 bool 81839 var yyhl21 bool = l >= 0 81840 yyj21++ 81841 if yyhl21 { 81842 yyb21 = yyj21 > l 81843 } else { 81844 yyb21 = r.CheckBreak() 81845 } 81846 if yyb21 { 81847 r.ReadArrayEnd() 81848 return 81849 } 81850 r.ReadArrayElem() 81851 if r.TryDecodeAsNil() { 81852 x.ID = "" 81853 } else { 81854 x.ID = (string)(r.DecodeString()) 81855 } 81856 yyj21++ 81857 if yyhl21 { 81858 yyb21 = yyj21 > l 81859 } else { 81860 yyb21 = r.CheckBreak() 81861 } 81862 if yyb21 { 81863 r.ReadArrayEnd() 81864 return 81865 } 81866 r.ReadArrayElem() 81867 if r.TryDecodeAsNil() { 81868 x.ParentID = "" 81869 } else { 81870 x.ParentID = (string)(r.DecodeString()) 81871 } 81872 yyj21++ 81873 if yyhl21 { 81874 yyb21 = yyj21 > l 81875 } else { 81876 yyb21 = r.CheckBreak() 81877 } 81878 if yyb21 { 81879 r.ReadArrayEnd() 81880 return 81881 } 81882 r.ReadArrayElem() 81883 if r.TryDecodeAsNil() { 81884 x.Name = "" 81885 } else { 81886 x.Name = (string)(r.DecodeString()) 81887 } 81888 yyj21++ 81889 if yyhl21 { 81890 yyb21 = yyj21 > l 81891 } else { 81892 yyb21 = r.CheckBreak() 81893 } 81894 if yyb21 { 81895 r.ReadArrayEnd() 81896 return 81897 } 81898 r.ReadArrayElem() 81899 if r.TryDecodeAsNil() { 81900 x.Datacenters = nil 81901 } else { 81902 if false { 81903 } else { 81904 z.F.DecSliceStringX(&x.Datacenters, d) 81905 } 81906 } 81907 yyj21++ 81908 if yyhl21 { 81909 yyb21 = yyj21 > l 81910 } else { 81911 yyb21 = r.CheckBreak() 81912 } 81913 if yyb21 { 81914 r.ReadArrayEnd() 81915 return 81916 } 81917 r.ReadArrayElem() 81918 if r.TryDecodeAsNil() { 81919 x.Type = "" 81920 } else { 81921 x.Type = (string)(r.DecodeString()) 81922 } 81923 yyj21++ 81924 if yyhl21 { 81925 yyb21 = yyj21 > l 81926 } else { 81927 yyb21 = r.CheckBreak() 81928 } 81929 if yyb21 { 81930 r.ReadArrayEnd() 81931 return 81932 } 81933 r.ReadArrayElem() 81934 if r.TryDecodeAsNil() { 81935 x.Priority = 0 81936 } else { 81937 x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 81938 } 81939 yyj21++ 81940 if yyhl21 { 81941 yyb21 = yyj21 > l 81942 } else { 81943 yyb21 = r.CheckBreak() 81944 } 81945 if yyb21 { 81946 r.ReadArrayEnd() 81947 return 81948 } 81949 r.ReadArrayElem() 81950 if r.TryDecodeAsNil() { 81951 x.Periodic = false 81952 } else { 81953 x.Periodic = (bool)(r.DecodeBool()) 81954 } 81955 yyj21++ 81956 if yyhl21 { 81957 yyb21 = yyj21 > l 81958 } else { 81959 yyb21 = r.CheckBreak() 81960 } 81961 if yyb21 { 81962 r.ReadArrayEnd() 81963 return 81964 } 81965 r.ReadArrayElem() 81966 if r.TryDecodeAsNil() { 81967 x.ParameterizedJob = false 81968 } else { 81969 x.ParameterizedJob = (bool)(r.DecodeBool()) 81970 } 81971 yyj21++ 81972 if yyhl21 { 81973 yyb21 = yyj21 > l 81974 } else { 81975 yyb21 = r.CheckBreak() 81976 } 81977 if yyb21 { 81978 r.ReadArrayEnd() 81979 return 81980 } 81981 r.ReadArrayElem() 81982 if r.TryDecodeAsNil() { 81983 x.Stop = false 81984 } else { 81985 x.Stop = (bool)(r.DecodeBool()) 81986 } 81987 yyj21++ 81988 if yyhl21 { 81989 yyb21 = yyj21 > l 81990 } else { 81991 yyb21 = r.CheckBreak() 81992 } 81993 if yyb21 { 81994 r.ReadArrayEnd() 81995 return 81996 } 81997 r.ReadArrayElem() 81998 if r.TryDecodeAsNil() { 81999 x.Status = "" 82000 } else { 82001 x.Status = (string)(r.DecodeString()) 82002 } 82003 yyj21++ 82004 if yyhl21 { 82005 yyb21 = yyj21 > l 82006 } else { 82007 yyb21 = r.CheckBreak() 82008 } 82009 if yyb21 { 82010 r.ReadArrayEnd() 82011 return 82012 } 82013 r.ReadArrayElem() 82014 if r.TryDecodeAsNil() { 82015 x.StatusDescription = "" 82016 } else { 82017 x.StatusDescription = (string)(r.DecodeString()) 82018 } 82019 yyj21++ 82020 if yyhl21 { 82021 yyb21 = yyj21 > l 82022 } else { 82023 yyb21 = r.CheckBreak() 82024 } 82025 if yyb21 { 82026 r.ReadArrayEnd() 82027 return 82028 } 82029 r.ReadArrayElem() 82030 if r.TryDecodeAsNil() { 82031 if true && x.JobSummary != nil { 82032 x.JobSummary = nil 82033 } 82034 } else { 82035 if x.JobSummary == nil { 82036 x.JobSummary = new(JobSummary) 82037 } 82038 82039 x.JobSummary.CodecDecodeSelf(d) 82040 } 82041 yyj21++ 82042 if yyhl21 { 82043 yyb21 = yyj21 > l 82044 } else { 82045 yyb21 = r.CheckBreak() 82046 } 82047 if yyb21 { 82048 r.ReadArrayEnd() 82049 return 82050 } 82051 r.ReadArrayElem() 82052 if r.TryDecodeAsNil() { 82053 x.CreateIndex = 0 82054 } else { 82055 x.CreateIndex = (uint64)(r.DecodeUint64()) 82056 } 82057 yyj21++ 82058 if yyhl21 { 82059 yyb21 = yyj21 > l 82060 } else { 82061 yyb21 = r.CheckBreak() 82062 } 82063 if yyb21 { 82064 r.ReadArrayEnd() 82065 return 82066 } 82067 r.ReadArrayElem() 82068 if r.TryDecodeAsNil() { 82069 x.ModifyIndex = 0 82070 } else { 82071 x.ModifyIndex = (uint64)(r.DecodeUint64()) 82072 } 82073 yyj21++ 82074 if yyhl21 { 82075 yyb21 = yyj21 > l 82076 } else { 82077 yyb21 = r.CheckBreak() 82078 } 82079 if yyb21 { 82080 r.ReadArrayEnd() 82081 return 82082 } 82083 r.ReadArrayElem() 82084 if r.TryDecodeAsNil() { 82085 x.JobModifyIndex = 0 82086 } else { 82087 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 82088 } 82089 yyj21++ 82090 if yyhl21 { 82091 yyb21 = yyj21 > l 82092 } else { 82093 yyb21 = r.CheckBreak() 82094 } 82095 if yyb21 { 82096 r.ReadArrayEnd() 82097 return 82098 } 82099 r.ReadArrayElem() 82100 if r.TryDecodeAsNil() { 82101 x.SubmitTime = 0 82102 } else { 82103 x.SubmitTime = (int64)(r.DecodeInt64()) 82104 } 82105 for { 82106 yyj21++ 82107 if yyhl21 { 82108 yyb21 = yyj21 > l 82109 } else { 82110 yyb21 = r.CheckBreak() 82111 } 82112 if yyb21 { 82113 break 82114 } 82115 r.ReadArrayElem() 82116 z.DecStructFieldNotFound(yyj21-1, "") 82117 } 82118 r.ReadArrayEnd() 82119 } 82120 82121 func (x *JobSummary) CodecEncodeSelf(e *codec1978.Encoder) { 82122 var h codecSelfer100 82123 z, r := codec1978.GenHelperEncoder(e) 82124 _, _, _ = h, z, r 82125 if x == nil { 82126 r.EncodeNil() 82127 } else { 82128 if false { 82129 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 82130 z.EncExtension(x, yyxt1) 82131 } else { 82132 yysep2 := !z.EncBinary() 82133 yy2arr2 := z.EncBasicHandle().StructToArray 82134 _, _ = yysep2, yy2arr2 82135 const yyr2 bool = false // struct tag has 'toArray' 82136 if yyr2 || yy2arr2 { 82137 r.WriteArrayStart(6) 82138 } else { 82139 r.WriteMapStart(6) 82140 } 82141 if yyr2 || yy2arr2 { 82142 r.WriteArrayElem() 82143 if false { 82144 } else { 82145 if z.EncBasicHandle().StringToRaw { 82146 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 82147 } else { 82148 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 82149 } 82150 } 82151 } else { 82152 r.WriteMapElemKey() 82153 if z.IsJSONHandle() { 82154 z.WriteStr("\"JobID\"") 82155 } else { 82156 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 82157 } 82158 r.WriteMapElemValue() 82159 if false { 82160 } else { 82161 if z.EncBasicHandle().StringToRaw { 82162 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 82163 } else { 82164 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 82165 } 82166 } 82167 } 82168 if yyr2 || yy2arr2 { 82169 r.WriteArrayElem() 82170 if false { 82171 } else { 82172 if z.EncBasicHandle().StringToRaw { 82173 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 82174 } else { 82175 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 82176 } 82177 } 82178 } else { 82179 r.WriteMapElemKey() 82180 if z.IsJSONHandle() { 82181 z.WriteStr("\"Namespace\"") 82182 } else { 82183 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 82184 } 82185 r.WriteMapElemValue() 82186 if false { 82187 } else { 82188 if z.EncBasicHandle().StringToRaw { 82189 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 82190 } else { 82191 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 82192 } 82193 } 82194 } 82195 if yyr2 || yy2arr2 { 82196 r.WriteArrayElem() 82197 if x.Summary == nil { 82198 r.EncodeNil() 82199 } else { 82200 if false { 82201 } else { 82202 h.encMapstringTaskGroupSummary((map[string]TaskGroupSummary)(x.Summary), e) 82203 } 82204 } 82205 } else { 82206 r.WriteMapElemKey() 82207 if z.IsJSONHandle() { 82208 z.WriteStr("\"Summary\"") 82209 } else { 82210 r.EncodeStringEnc(codecSelferCcUTF8100, `Summary`) 82211 } 82212 r.WriteMapElemValue() 82213 if x.Summary == nil { 82214 r.EncodeNil() 82215 } else { 82216 if false { 82217 } else { 82218 h.encMapstringTaskGroupSummary((map[string]TaskGroupSummary)(x.Summary), e) 82219 } 82220 } 82221 } 82222 var yyn12 bool 82223 if x.Children == nil { 82224 yyn12 = true 82225 goto LABEL12 82226 } 82227 LABEL12: 82228 if yyr2 || yy2arr2 { 82229 if yyn12 { 82230 r.WriteArrayElem() 82231 r.EncodeNil() 82232 } else { 82233 r.WriteArrayElem() 82234 if x.Children == nil { 82235 r.EncodeNil() 82236 } else { 82237 x.Children.CodecEncodeSelf(e) 82238 } 82239 } 82240 } else { 82241 r.WriteMapElemKey() 82242 if z.IsJSONHandle() { 82243 z.WriteStr("\"Children\"") 82244 } else { 82245 r.EncodeStringEnc(codecSelferCcUTF8100, `Children`) 82246 } 82247 r.WriteMapElemValue() 82248 if yyn12 { 82249 r.EncodeNil() 82250 } else { 82251 if x.Children == nil { 82252 r.EncodeNil() 82253 } else { 82254 x.Children.CodecEncodeSelf(e) 82255 } 82256 } 82257 } 82258 if yyr2 || yy2arr2 { 82259 r.WriteArrayElem() 82260 if false { 82261 } else { 82262 r.EncodeUint(uint64(x.CreateIndex)) 82263 } 82264 } else { 82265 r.WriteMapElemKey() 82266 if z.IsJSONHandle() { 82267 z.WriteStr("\"CreateIndex\"") 82268 } else { 82269 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 82270 } 82271 r.WriteMapElemValue() 82272 if false { 82273 } else { 82274 r.EncodeUint(uint64(x.CreateIndex)) 82275 } 82276 } 82277 if yyr2 || yy2arr2 { 82278 r.WriteArrayElem() 82279 if false { 82280 } else { 82281 r.EncodeUint(uint64(x.ModifyIndex)) 82282 } 82283 } else { 82284 r.WriteMapElemKey() 82285 if z.IsJSONHandle() { 82286 z.WriteStr("\"ModifyIndex\"") 82287 } else { 82288 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 82289 } 82290 r.WriteMapElemValue() 82291 if false { 82292 } else { 82293 r.EncodeUint(uint64(x.ModifyIndex)) 82294 } 82295 } 82296 if yyr2 || yy2arr2 { 82297 r.WriteArrayEnd() 82298 } else { 82299 r.WriteMapEnd() 82300 } 82301 } 82302 } 82303 } 82304 82305 func (x *JobSummary) CodecDecodeSelf(d *codec1978.Decoder) { 82306 var h codecSelfer100 82307 z, r := codec1978.GenHelperDecoder(d) 82308 _, _, _ = h, z, r 82309 if false { 82310 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 82311 z.DecExtension(x, yyxt1) 82312 } else { 82313 yyct2 := r.ContainerType() 82314 if yyct2 == codecSelferValueTypeMap100 { 82315 yyl2 := r.ReadMapStart() 82316 if yyl2 == 0 { 82317 r.ReadMapEnd() 82318 } else { 82319 x.codecDecodeSelfFromMap(yyl2, d) 82320 } 82321 } else if yyct2 == codecSelferValueTypeArray100 { 82322 yyl2 := r.ReadArrayStart() 82323 if yyl2 == 0 { 82324 r.ReadArrayEnd() 82325 } else { 82326 x.codecDecodeSelfFromArray(yyl2, d) 82327 } 82328 } else { 82329 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 82330 } 82331 } 82332 } 82333 82334 func (x *JobSummary) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 82335 var h codecSelfer100 82336 z, r := codec1978.GenHelperDecoder(d) 82337 _, _, _ = h, z, r 82338 var yyhl3 bool = l >= 0 82339 for yyj3 := 0; ; yyj3++ { 82340 if yyhl3 { 82341 if yyj3 >= l { 82342 break 82343 } 82344 } else { 82345 if r.CheckBreak() { 82346 break 82347 } 82348 } 82349 r.ReadMapElemKey() 82350 yys3 := z.StringView(r.DecodeStringAsBytes()) 82351 r.ReadMapElemValue() 82352 switch yys3 { 82353 case "JobID": 82354 if r.TryDecodeAsNil() { 82355 x.JobID = "" 82356 } else { 82357 x.JobID = (string)(r.DecodeString()) 82358 } 82359 case "Namespace": 82360 if r.TryDecodeAsNil() { 82361 x.Namespace = "" 82362 } else { 82363 x.Namespace = (string)(r.DecodeString()) 82364 } 82365 case "Summary": 82366 if r.TryDecodeAsNil() { 82367 x.Summary = nil 82368 } else { 82369 if false { 82370 } else { 82371 h.decMapstringTaskGroupSummary((*map[string]TaskGroupSummary)(&x.Summary), d) 82372 } 82373 } 82374 case "Children": 82375 if r.TryDecodeAsNil() { 82376 if true && x.Children != nil { 82377 x.Children = nil 82378 } 82379 } else { 82380 if x.Children == nil { 82381 x.Children = new(JobChildrenSummary) 82382 } 82383 82384 x.Children.CodecDecodeSelf(d) 82385 } 82386 case "CreateIndex": 82387 if r.TryDecodeAsNil() { 82388 x.CreateIndex = 0 82389 } else { 82390 x.CreateIndex = (uint64)(r.DecodeUint64()) 82391 } 82392 case "ModifyIndex": 82393 if r.TryDecodeAsNil() { 82394 x.ModifyIndex = 0 82395 } else { 82396 x.ModifyIndex = (uint64)(r.DecodeUint64()) 82397 } 82398 default: 82399 z.DecStructFieldNotFound(-1, yys3) 82400 } // end switch yys3 82401 } // end for yyj3 82402 r.ReadMapEnd() 82403 } 82404 82405 func (x *JobSummary) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 82406 var h codecSelfer100 82407 z, r := codec1978.GenHelperDecoder(d) 82408 _, _, _ = h, z, r 82409 var yyj11 int 82410 var yyb11 bool 82411 var yyhl11 bool = l >= 0 82412 yyj11++ 82413 if yyhl11 { 82414 yyb11 = yyj11 > l 82415 } else { 82416 yyb11 = r.CheckBreak() 82417 } 82418 if yyb11 { 82419 r.ReadArrayEnd() 82420 return 82421 } 82422 r.ReadArrayElem() 82423 if r.TryDecodeAsNil() { 82424 x.JobID = "" 82425 } else { 82426 x.JobID = (string)(r.DecodeString()) 82427 } 82428 yyj11++ 82429 if yyhl11 { 82430 yyb11 = yyj11 > l 82431 } else { 82432 yyb11 = r.CheckBreak() 82433 } 82434 if yyb11 { 82435 r.ReadArrayEnd() 82436 return 82437 } 82438 r.ReadArrayElem() 82439 if r.TryDecodeAsNil() { 82440 x.Namespace = "" 82441 } else { 82442 x.Namespace = (string)(r.DecodeString()) 82443 } 82444 yyj11++ 82445 if yyhl11 { 82446 yyb11 = yyj11 > l 82447 } else { 82448 yyb11 = r.CheckBreak() 82449 } 82450 if yyb11 { 82451 r.ReadArrayEnd() 82452 return 82453 } 82454 r.ReadArrayElem() 82455 if r.TryDecodeAsNil() { 82456 x.Summary = nil 82457 } else { 82458 if false { 82459 } else { 82460 h.decMapstringTaskGroupSummary((*map[string]TaskGroupSummary)(&x.Summary), d) 82461 } 82462 } 82463 yyj11++ 82464 if yyhl11 { 82465 yyb11 = yyj11 > l 82466 } else { 82467 yyb11 = r.CheckBreak() 82468 } 82469 if yyb11 { 82470 r.ReadArrayEnd() 82471 return 82472 } 82473 r.ReadArrayElem() 82474 if r.TryDecodeAsNil() { 82475 if true && x.Children != nil { 82476 x.Children = nil 82477 } 82478 } else { 82479 if x.Children == nil { 82480 x.Children = new(JobChildrenSummary) 82481 } 82482 82483 x.Children.CodecDecodeSelf(d) 82484 } 82485 yyj11++ 82486 if yyhl11 { 82487 yyb11 = yyj11 > l 82488 } else { 82489 yyb11 = r.CheckBreak() 82490 } 82491 if yyb11 { 82492 r.ReadArrayEnd() 82493 return 82494 } 82495 r.ReadArrayElem() 82496 if r.TryDecodeAsNil() { 82497 x.CreateIndex = 0 82498 } else { 82499 x.CreateIndex = (uint64)(r.DecodeUint64()) 82500 } 82501 yyj11++ 82502 if yyhl11 { 82503 yyb11 = yyj11 > l 82504 } else { 82505 yyb11 = r.CheckBreak() 82506 } 82507 if yyb11 { 82508 r.ReadArrayEnd() 82509 return 82510 } 82511 r.ReadArrayElem() 82512 if r.TryDecodeAsNil() { 82513 x.ModifyIndex = 0 82514 } else { 82515 x.ModifyIndex = (uint64)(r.DecodeUint64()) 82516 } 82517 for { 82518 yyj11++ 82519 if yyhl11 { 82520 yyb11 = yyj11 > l 82521 } else { 82522 yyb11 = r.CheckBreak() 82523 } 82524 if yyb11 { 82525 break 82526 } 82527 r.ReadArrayElem() 82528 z.DecStructFieldNotFound(yyj11-1, "") 82529 } 82530 r.ReadArrayEnd() 82531 } 82532 82533 func (x *JobChildrenSummary) CodecEncodeSelf(e *codec1978.Encoder) { 82534 var h codecSelfer100 82535 z, r := codec1978.GenHelperEncoder(e) 82536 _, _, _ = h, z, r 82537 if x == nil { 82538 r.EncodeNil() 82539 } else { 82540 if false { 82541 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 82542 z.EncExtension(x, yyxt1) 82543 } else { 82544 yysep2 := !z.EncBinary() 82545 yy2arr2 := z.EncBasicHandle().StructToArray 82546 _, _ = yysep2, yy2arr2 82547 const yyr2 bool = false // struct tag has 'toArray' 82548 if yyr2 || yy2arr2 { 82549 r.WriteArrayStart(3) 82550 } else { 82551 r.WriteMapStart(3) 82552 } 82553 if yyr2 || yy2arr2 { 82554 r.WriteArrayElem() 82555 if false { 82556 } else { 82557 r.EncodeInt(int64(x.Pending)) 82558 } 82559 } else { 82560 r.WriteMapElemKey() 82561 if z.IsJSONHandle() { 82562 z.WriteStr("\"Pending\"") 82563 } else { 82564 r.EncodeStringEnc(codecSelferCcUTF8100, `Pending`) 82565 } 82566 r.WriteMapElemValue() 82567 if false { 82568 } else { 82569 r.EncodeInt(int64(x.Pending)) 82570 } 82571 } 82572 if yyr2 || yy2arr2 { 82573 r.WriteArrayElem() 82574 if false { 82575 } else { 82576 r.EncodeInt(int64(x.Running)) 82577 } 82578 } else { 82579 r.WriteMapElemKey() 82580 if z.IsJSONHandle() { 82581 z.WriteStr("\"Running\"") 82582 } else { 82583 r.EncodeStringEnc(codecSelferCcUTF8100, `Running`) 82584 } 82585 r.WriteMapElemValue() 82586 if false { 82587 } else { 82588 r.EncodeInt(int64(x.Running)) 82589 } 82590 } 82591 if yyr2 || yy2arr2 { 82592 r.WriteArrayElem() 82593 if false { 82594 } else { 82595 r.EncodeInt(int64(x.Dead)) 82596 } 82597 } else { 82598 r.WriteMapElemKey() 82599 if z.IsJSONHandle() { 82600 z.WriteStr("\"Dead\"") 82601 } else { 82602 r.EncodeStringEnc(codecSelferCcUTF8100, `Dead`) 82603 } 82604 r.WriteMapElemValue() 82605 if false { 82606 } else { 82607 r.EncodeInt(int64(x.Dead)) 82608 } 82609 } 82610 if yyr2 || yy2arr2 { 82611 r.WriteArrayEnd() 82612 } else { 82613 r.WriteMapEnd() 82614 } 82615 } 82616 } 82617 } 82618 82619 func (x *JobChildrenSummary) CodecDecodeSelf(d *codec1978.Decoder) { 82620 var h codecSelfer100 82621 z, r := codec1978.GenHelperDecoder(d) 82622 _, _, _ = h, z, r 82623 if false { 82624 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 82625 z.DecExtension(x, yyxt1) 82626 } else { 82627 yyct2 := r.ContainerType() 82628 if yyct2 == codecSelferValueTypeMap100 { 82629 yyl2 := r.ReadMapStart() 82630 if yyl2 == 0 { 82631 r.ReadMapEnd() 82632 } else { 82633 x.codecDecodeSelfFromMap(yyl2, d) 82634 } 82635 } else if yyct2 == codecSelferValueTypeArray100 { 82636 yyl2 := r.ReadArrayStart() 82637 if yyl2 == 0 { 82638 r.ReadArrayEnd() 82639 } else { 82640 x.codecDecodeSelfFromArray(yyl2, d) 82641 } 82642 } else { 82643 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 82644 } 82645 } 82646 } 82647 82648 func (x *JobChildrenSummary) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 82649 var h codecSelfer100 82650 z, r := codec1978.GenHelperDecoder(d) 82651 _, _, _ = h, z, r 82652 var yyhl3 bool = l >= 0 82653 for yyj3 := 0; ; yyj3++ { 82654 if yyhl3 { 82655 if yyj3 >= l { 82656 break 82657 } 82658 } else { 82659 if r.CheckBreak() { 82660 break 82661 } 82662 } 82663 r.ReadMapElemKey() 82664 yys3 := z.StringView(r.DecodeStringAsBytes()) 82665 r.ReadMapElemValue() 82666 switch yys3 { 82667 case "Pending": 82668 if r.TryDecodeAsNil() { 82669 x.Pending = 0 82670 } else { 82671 x.Pending = (int64)(r.DecodeInt64()) 82672 } 82673 case "Running": 82674 if r.TryDecodeAsNil() { 82675 x.Running = 0 82676 } else { 82677 x.Running = (int64)(r.DecodeInt64()) 82678 } 82679 case "Dead": 82680 if r.TryDecodeAsNil() { 82681 x.Dead = 0 82682 } else { 82683 x.Dead = (int64)(r.DecodeInt64()) 82684 } 82685 default: 82686 z.DecStructFieldNotFound(-1, yys3) 82687 } // end switch yys3 82688 } // end for yyj3 82689 r.ReadMapEnd() 82690 } 82691 82692 func (x *JobChildrenSummary) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 82693 var h codecSelfer100 82694 z, r := codec1978.GenHelperDecoder(d) 82695 _, _, _ = h, z, r 82696 var yyj7 int 82697 var yyb7 bool 82698 var yyhl7 bool = l >= 0 82699 yyj7++ 82700 if yyhl7 { 82701 yyb7 = yyj7 > l 82702 } else { 82703 yyb7 = r.CheckBreak() 82704 } 82705 if yyb7 { 82706 r.ReadArrayEnd() 82707 return 82708 } 82709 r.ReadArrayElem() 82710 if r.TryDecodeAsNil() { 82711 x.Pending = 0 82712 } else { 82713 x.Pending = (int64)(r.DecodeInt64()) 82714 } 82715 yyj7++ 82716 if yyhl7 { 82717 yyb7 = yyj7 > l 82718 } else { 82719 yyb7 = r.CheckBreak() 82720 } 82721 if yyb7 { 82722 r.ReadArrayEnd() 82723 return 82724 } 82725 r.ReadArrayElem() 82726 if r.TryDecodeAsNil() { 82727 x.Running = 0 82728 } else { 82729 x.Running = (int64)(r.DecodeInt64()) 82730 } 82731 yyj7++ 82732 if yyhl7 { 82733 yyb7 = yyj7 > l 82734 } else { 82735 yyb7 = r.CheckBreak() 82736 } 82737 if yyb7 { 82738 r.ReadArrayEnd() 82739 return 82740 } 82741 r.ReadArrayElem() 82742 if r.TryDecodeAsNil() { 82743 x.Dead = 0 82744 } else { 82745 x.Dead = (int64)(r.DecodeInt64()) 82746 } 82747 for { 82748 yyj7++ 82749 if yyhl7 { 82750 yyb7 = yyj7 > l 82751 } else { 82752 yyb7 = r.CheckBreak() 82753 } 82754 if yyb7 { 82755 break 82756 } 82757 r.ReadArrayElem() 82758 z.DecStructFieldNotFound(yyj7-1, "") 82759 } 82760 r.ReadArrayEnd() 82761 } 82762 82763 func (x *TaskGroupSummary) CodecEncodeSelf(e *codec1978.Encoder) { 82764 var h codecSelfer100 82765 z, r := codec1978.GenHelperEncoder(e) 82766 _, _, _ = h, z, r 82767 if x == nil { 82768 r.EncodeNil() 82769 } else { 82770 if false { 82771 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 82772 z.EncExtension(x, yyxt1) 82773 } else { 82774 yysep2 := !z.EncBinary() 82775 yy2arr2 := z.EncBasicHandle().StructToArray 82776 _, _ = yysep2, yy2arr2 82777 const yyr2 bool = false // struct tag has 'toArray' 82778 if yyr2 || yy2arr2 { 82779 r.WriteArrayStart(6) 82780 } else { 82781 r.WriteMapStart(6) 82782 } 82783 if yyr2 || yy2arr2 { 82784 r.WriteArrayElem() 82785 if false { 82786 } else { 82787 r.EncodeInt(int64(x.Queued)) 82788 } 82789 } else { 82790 r.WriteMapElemKey() 82791 if z.IsJSONHandle() { 82792 z.WriteStr("\"Queued\"") 82793 } else { 82794 r.EncodeStringEnc(codecSelferCcUTF8100, `Queued`) 82795 } 82796 r.WriteMapElemValue() 82797 if false { 82798 } else { 82799 r.EncodeInt(int64(x.Queued)) 82800 } 82801 } 82802 if yyr2 || yy2arr2 { 82803 r.WriteArrayElem() 82804 if false { 82805 } else { 82806 r.EncodeInt(int64(x.Complete)) 82807 } 82808 } else { 82809 r.WriteMapElemKey() 82810 if z.IsJSONHandle() { 82811 z.WriteStr("\"Complete\"") 82812 } else { 82813 r.EncodeStringEnc(codecSelferCcUTF8100, `Complete`) 82814 } 82815 r.WriteMapElemValue() 82816 if false { 82817 } else { 82818 r.EncodeInt(int64(x.Complete)) 82819 } 82820 } 82821 if yyr2 || yy2arr2 { 82822 r.WriteArrayElem() 82823 if false { 82824 } else { 82825 r.EncodeInt(int64(x.Failed)) 82826 } 82827 } else { 82828 r.WriteMapElemKey() 82829 if z.IsJSONHandle() { 82830 z.WriteStr("\"Failed\"") 82831 } else { 82832 r.EncodeStringEnc(codecSelferCcUTF8100, `Failed`) 82833 } 82834 r.WriteMapElemValue() 82835 if false { 82836 } else { 82837 r.EncodeInt(int64(x.Failed)) 82838 } 82839 } 82840 if yyr2 || yy2arr2 { 82841 r.WriteArrayElem() 82842 if false { 82843 } else { 82844 r.EncodeInt(int64(x.Running)) 82845 } 82846 } else { 82847 r.WriteMapElemKey() 82848 if z.IsJSONHandle() { 82849 z.WriteStr("\"Running\"") 82850 } else { 82851 r.EncodeStringEnc(codecSelferCcUTF8100, `Running`) 82852 } 82853 r.WriteMapElemValue() 82854 if false { 82855 } else { 82856 r.EncodeInt(int64(x.Running)) 82857 } 82858 } 82859 if yyr2 || yy2arr2 { 82860 r.WriteArrayElem() 82861 if false { 82862 } else { 82863 r.EncodeInt(int64(x.Starting)) 82864 } 82865 } else { 82866 r.WriteMapElemKey() 82867 if z.IsJSONHandle() { 82868 z.WriteStr("\"Starting\"") 82869 } else { 82870 r.EncodeStringEnc(codecSelferCcUTF8100, `Starting`) 82871 } 82872 r.WriteMapElemValue() 82873 if false { 82874 } else { 82875 r.EncodeInt(int64(x.Starting)) 82876 } 82877 } 82878 if yyr2 || yy2arr2 { 82879 r.WriteArrayElem() 82880 if false { 82881 } else { 82882 r.EncodeInt(int64(x.Lost)) 82883 } 82884 } else { 82885 r.WriteMapElemKey() 82886 if z.IsJSONHandle() { 82887 z.WriteStr("\"Lost\"") 82888 } else { 82889 r.EncodeStringEnc(codecSelferCcUTF8100, `Lost`) 82890 } 82891 r.WriteMapElemValue() 82892 if false { 82893 } else { 82894 r.EncodeInt(int64(x.Lost)) 82895 } 82896 } 82897 if yyr2 || yy2arr2 { 82898 r.WriteArrayEnd() 82899 } else { 82900 r.WriteMapEnd() 82901 } 82902 } 82903 } 82904 } 82905 82906 func (x *TaskGroupSummary) CodecDecodeSelf(d *codec1978.Decoder) { 82907 var h codecSelfer100 82908 z, r := codec1978.GenHelperDecoder(d) 82909 _, _, _ = h, z, r 82910 if false { 82911 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 82912 z.DecExtension(x, yyxt1) 82913 } else { 82914 yyct2 := r.ContainerType() 82915 if yyct2 == codecSelferValueTypeMap100 { 82916 yyl2 := r.ReadMapStart() 82917 if yyl2 == 0 { 82918 r.ReadMapEnd() 82919 } else { 82920 x.codecDecodeSelfFromMap(yyl2, d) 82921 } 82922 } else if yyct2 == codecSelferValueTypeArray100 { 82923 yyl2 := r.ReadArrayStart() 82924 if yyl2 == 0 { 82925 r.ReadArrayEnd() 82926 } else { 82927 x.codecDecodeSelfFromArray(yyl2, d) 82928 } 82929 } else { 82930 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 82931 } 82932 } 82933 } 82934 82935 func (x *TaskGroupSummary) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 82936 var h codecSelfer100 82937 z, r := codec1978.GenHelperDecoder(d) 82938 _, _, _ = h, z, r 82939 var yyhl3 bool = l >= 0 82940 for yyj3 := 0; ; yyj3++ { 82941 if yyhl3 { 82942 if yyj3 >= l { 82943 break 82944 } 82945 } else { 82946 if r.CheckBreak() { 82947 break 82948 } 82949 } 82950 r.ReadMapElemKey() 82951 yys3 := z.StringView(r.DecodeStringAsBytes()) 82952 r.ReadMapElemValue() 82953 switch yys3 { 82954 case "Queued": 82955 if r.TryDecodeAsNil() { 82956 x.Queued = 0 82957 } else { 82958 x.Queued = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 82959 } 82960 case "Complete": 82961 if r.TryDecodeAsNil() { 82962 x.Complete = 0 82963 } else { 82964 x.Complete = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 82965 } 82966 case "Failed": 82967 if r.TryDecodeAsNil() { 82968 x.Failed = 0 82969 } else { 82970 x.Failed = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 82971 } 82972 case "Running": 82973 if r.TryDecodeAsNil() { 82974 x.Running = 0 82975 } else { 82976 x.Running = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 82977 } 82978 case "Starting": 82979 if r.TryDecodeAsNil() { 82980 x.Starting = 0 82981 } else { 82982 x.Starting = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 82983 } 82984 case "Lost": 82985 if r.TryDecodeAsNil() { 82986 x.Lost = 0 82987 } else { 82988 x.Lost = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 82989 } 82990 default: 82991 z.DecStructFieldNotFound(-1, yys3) 82992 } // end switch yys3 82993 } // end for yyj3 82994 r.ReadMapEnd() 82995 } 82996 82997 func (x *TaskGroupSummary) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 82998 var h codecSelfer100 82999 z, r := codec1978.GenHelperDecoder(d) 83000 _, _, _ = h, z, r 83001 var yyj10 int 83002 var yyb10 bool 83003 var yyhl10 bool = l >= 0 83004 yyj10++ 83005 if yyhl10 { 83006 yyb10 = yyj10 > l 83007 } else { 83008 yyb10 = r.CheckBreak() 83009 } 83010 if yyb10 { 83011 r.ReadArrayEnd() 83012 return 83013 } 83014 r.ReadArrayElem() 83015 if r.TryDecodeAsNil() { 83016 x.Queued = 0 83017 } else { 83018 x.Queued = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 83019 } 83020 yyj10++ 83021 if yyhl10 { 83022 yyb10 = yyj10 > l 83023 } else { 83024 yyb10 = r.CheckBreak() 83025 } 83026 if yyb10 { 83027 r.ReadArrayEnd() 83028 return 83029 } 83030 r.ReadArrayElem() 83031 if r.TryDecodeAsNil() { 83032 x.Complete = 0 83033 } else { 83034 x.Complete = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 83035 } 83036 yyj10++ 83037 if yyhl10 { 83038 yyb10 = yyj10 > l 83039 } else { 83040 yyb10 = r.CheckBreak() 83041 } 83042 if yyb10 { 83043 r.ReadArrayEnd() 83044 return 83045 } 83046 r.ReadArrayElem() 83047 if r.TryDecodeAsNil() { 83048 x.Failed = 0 83049 } else { 83050 x.Failed = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 83051 } 83052 yyj10++ 83053 if yyhl10 { 83054 yyb10 = yyj10 > l 83055 } else { 83056 yyb10 = r.CheckBreak() 83057 } 83058 if yyb10 { 83059 r.ReadArrayEnd() 83060 return 83061 } 83062 r.ReadArrayElem() 83063 if r.TryDecodeAsNil() { 83064 x.Running = 0 83065 } else { 83066 x.Running = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 83067 } 83068 yyj10++ 83069 if yyhl10 { 83070 yyb10 = yyj10 > l 83071 } else { 83072 yyb10 = r.CheckBreak() 83073 } 83074 if yyb10 { 83075 r.ReadArrayEnd() 83076 return 83077 } 83078 r.ReadArrayElem() 83079 if r.TryDecodeAsNil() { 83080 x.Starting = 0 83081 } else { 83082 x.Starting = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 83083 } 83084 yyj10++ 83085 if yyhl10 { 83086 yyb10 = yyj10 > l 83087 } else { 83088 yyb10 = r.CheckBreak() 83089 } 83090 if yyb10 { 83091 r.ReadArrayEnd() 83092 return 83093 } 83094 r.ReadArrayElem() 83095 if r.TryDecodeAsNil() { 83096 x.Lost = 0 83097 } else { 83098 x.Lost = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 83099 } 83100 for { 83101 yyj10++ 83102 if yyhl10 { 83103 yyb10 = yyj10 > l 83104 } else { 83105 yyb10 = r.CheckBreak() 83106 } 83107 if yyb10 { 83108 break 83109 } 83110 r.ReadArrayElem() 83111 z.DecStructFieldNotFound(yyj10-1, "") 83112 } 83113 r.ReadArrayEnd() 83114 } 83115 83116 func (x *UpdateStrategy) CodecEncodeSelf(e *codec1978.Encoder) { 83117 var h codecSelfer100 83118 z, r := codec1978.GenHelperEncoder(e) 83119 _, _, _ = h, z, r 83120 if x == nil { 83121 r.EncodeNil() 83122 } else { 83123 if false { 83124 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 83125 z.EncExtension(x, yyxt1) 83126 } else { 83127 yysep2 := !z.EncBinary() 83128 yy2arr2 := z.EncBasicHandle().StructToArray 83129 _, _ = yysep2, yy2arr2 83130 const yyr2 bool = false // struct tag has 'toArray' 83131 if yyr2 || yy2arr2 { 83132 r.WriteArrayStart(9) 83133 } else { 83134 r.WriteMapStart(9) 83135 } 83136 if yyr2 || yy2arr2 { 83137 r.WriteArrayElem() 83138 if false { 83139 } else if yyxt4 := z.Extension(z.I2Rtid(x.Stagger)); yyxt4 != nil { 83140 z.EncExtension(x.Stagger, yyxt4) 83141 } else { 83142 r.EncodeInt(int64(x.Stagger)) 83143 } 83144 } else { 83145 r.WriteMapElemKey() 83146 if z.IsJSONHandle() { 83147 z.WriteStr("\"Stagger\"") 83148 } else { 83149 r.EncodeStringEnc(codecSelferCcUTF8100, `Stagger`) 83150 } 83151 r.WriteMapElemValue() 83152 if false { 83153 } else if yyxt5 := z.Extension(z.I2Rtid(x.Stagger)); yyxt5 != nil { 83154 z.EncExtension(x.Stagger, yyxt5) 83155 } else { 83156 r.EncodeInt(int64(x.Stagger)) 83157 } 83158 } 83159 if yyr2 || yy2arr2 { 83160 r.WriteArrayElem() 83161 if false { 83162 } else { 83163 r.EncodeInt(int64(x.MaxParallel)) 83164 } 83165 } else { 83166 r.WriteMapElemKey() 83167 if z.IsJSONHandle() { 83168 z.WriteStr("\"MaxParallel\"") 83169 } else { 83170 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxParallel`) 83171 } 83172 r.WriteMapElemValue() 83173 if false { 83174 } else { 83175 r.EncodeInt(int64(x.MaxParallel)) 83176 } 83177 } 83178 if yyr2 || yy2arr2 { 83179 r.WriteArrayElem() 83180 if false { 83181 } else { 83182 if z.EncBasicHandle().StringToRaw { 83183 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthCheck))) 83184 } else { 83185 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthCheck)) 83186 } 83187 } 83188 } else { 83189 r.WriteMapElemKey() 83190 if z.IsJSONHandle() { 83191 z.WriteStr("\"HealthCheck\"") 83192 } else { 83193 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthCheck`) 83194 } 83195 r.WriteMapElemValue() 83196 if false { 83197 } else { 83198 if z.EncBasicHandle().StringToRaw { 83199 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthCheck))) 83200 } else { 83201 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthCheck)) 83202 } 83203 } 83204 } 83205 if yyr2 || yy2arr2 { 83206 r.WriteArrayElem() 83207 if false { 83208 } else if yyxt13 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt13 != nil { 83209 z.EncExtension(x.MinHealthyTime, yyxt13) 83210 } else { 83211 r.EncodeInt(int64(x.MinHealthyTime)) 83212 } 83213 } else { 83214 r.WriteMapElemKey() 83215 if z.IsJSONHandle() { 83216 z.WriteStr("\"MinHealthyTime\"") 83217 } else { 83218 r.EncodeStringEnc(codecSelferCcUTF8100, `MinHealthyTime`) 83219 } 83220 r.WriteMapElemValue() 83221 if false { 83222 } else if yyxt14 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt14 != nil { 83223 z.EncExtension(x.MinHealthyTime, yyxt14) 83224 } else { 83225 r.EncodeInt(int64(x.MinHealthyTime)) 83226 } 83227 } 83228 if yyr2 || yy2arr2 { 83229 r.WriteArrayElem() 83230 if false { 83231 } else if yyxt16 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt16 != nil { 83232 z.EncExtension(x.HealthyDeadline, yyxt16) 83233 } else { 83234 r.EncodeInt(int64(x.HealthyDeadline)) 83235 } 83236 } else { 83237 r.WriteMapElemKey() 83238 if z.IsJSONHandle() { 83239 z.WriteStr("\"HealthyDeadline\"") 83240 } else { 83241 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyDeadline`) 83242 } 83243 r.WriteMapElemValue() 83244 if false { 83245 } else if yyxt17 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt17 != nil { 83246 z.EncExtension(x.HealthyDeadline, yyxt17) 83247 } else { 83248 r.EncodeInt(int64(x.HealthyDeadline)) 83249 } 83250 } 83251 if yyr2 || yy2arr2 { 83252 r.WriteArrayElem() 83253 if false { 83254 } else if yyxt19 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt19 != nil { 83255 z.EncExtension(x.ProgressDeadline, yyxt19) 83256 } else { 83257 r.EncodeInt(int64(x.ProgressDeadline)) 83258 } 83259 } else { 83260 r.WriteMapElemKey() 83261 if z.IsJSONHandle() { 83262 z.WriteStr("\"ProgressDeadline\"") 83263 } else { 83264 r.EncodeStringEnc(codecSelferCcUTF8100, `ProgressDeadline`) 83265 } 83266 r.WriteMapElemValue() 83267 if false { 83268 } else if yyxt20 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt20 != nil { 83269 z.EncExtension(x.ProgressDeadline, yyxt20) 83270 } else { 83271 r.EncodeInt(int64(x.ProgressDeadline)) 83272 } 83273 } 83274 if yyr2 || yy2arr2 { 83275 r.WriteArrayElem() 83276 if false { 83277 } else { 83278 r.EncodeBool(bool(x.AutoRevert)) 83279 } 83280 } else { 83281 r.WriteMapElemKey() 83282 if z.IsJSONHandle() { 83283 z.WriteStr("\"AutoRevert\"") 83284 } else { 83285 r.EncodeStringEnc(codecSelferCcUTF8100, `AutoRevert`) 83286 } 83287 r.WriteMapElemValue() 83288 if false { 83289 } else { 83290 r.EncodeBool(bool(x.AutoRevert)) 83291 } 83292 } 83293 if yyr2 || yy2arr2 { 83294 r.WriteArrayElem() 83295 if false { 83296 } else { 83297 r.EncodeBool(bool(x.AutoPromote)) 83298 } 83299 } else { 83300 r.WriteMapElemKey() 83301 if z.IsJSONHandle() { 83302 z.WriteStr("\"AutoPromote\"") 83303 } else { 83304 r.EncodeStringEnc(codecSelferCcUTF8100, `AutoPromote`) 83305 } 83306 r.WriteMapElemValue() 83307 if false { 83308 } else { 83309 r.EncodeBool(bool(x.AutoPromote)) 83310 } 83311 } 83312 if yyr2 || yy2arr2 { 83313 r.WriteArrayElem() 83314 if false { 83315 } else { 83316 r.EncodeInt(int64(x.Canary)) 83317 } 83318 } else { 83319 r.WriteMapElemKey() 83320 if z.IsJSONHandle() { 83321 z.WriteStr("\"Canary\"") 83322 } else { 83323 r.EncodeStringEnc(codecSelferCcUTF8100, `Canary`) 83324 } 83325 r.WriteMapElemValue() 83326 if false { 83327 } else { 83328 r.EncodeInt(int64(x.Canary)) 83329 } 83330 } 83331 if yyr2 || yy2arr2 { 83332 r.WriteArrayEnd() 83333 } else { 83334 r.WriteMapEnd() 83335 } 83336 } 83337 } 83338 } 83339 83340 func (x *UpdateStrategy) CodecDecodeSelf(d *codec1978.Decoder) { 83341 var h codecSelfer100 83342 z, r := codec1978.GenHelperDecoder(d) 83343 _, _, _ = h, z, r 83344 if false { 83345 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 83346 z.DecExtension(x, yyxt1) 83347 } else { 83348 yyct2 := r.ContainerType() 83349 if yyct2 == codecSelferValueTypeMap100 { 83350 yyl2 := r.ReadMapStart() 83351 if yyl2 == 0 { 83352 r.ReadMapEnd() 83353 } else { 83354 x.codecDecodeSelfFromMap(yyl2, d) 83355 } 83356 } else if yyct2 == codecSelferValueTypeArray100 { 83357 yyl2 := r.ReadArrayStart() 83358 if yyl2 == 0 { 83359 r.ReadArrayEnd() 83360 } else { 83361 x.codecDecodeSelfFromArray(yyl2, d) 83362 } 83363 } else { 83364 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 83365 } 83366 } 83367 } 83368 83369 func (x *UpdateStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 83370 var h codecSelfer100 83371 z, r := codec1978.GenHelperDecoder(d) 83372 _, _, _ = h, z, r 83373 var yyhl3 bool = l >= 0 83374 for yyj3 := 0; ; yyj3++ { 83375 if yyhl3 { 83376 if yyj3 >= l { 83377 break 83378 } 83379 } else { 83380 if r.CheckBreak() { 83381 break 83382 } 83383 } 83384 r.ReadMapElemKey() 83385 yys3 := z.StringView(r.DecodeStringAsBytes()) 83386 r.ReadMapElemValue() 83387 switch yys3 { 83388 case "Stagger": 83389 if r.TryDecodeAsNil() { 83390 x.Stagger = 0 83391 } else { 83392 if false { 83393 } else if yyxt5 := z.Extension(z.I2Rtid(x.Stagger)); yyxt5 != nil { 83394 z.DecExtension(x.Stagger, yyxt5) 83395 } else { 83396 x.Stagger = (time.Duration)(r.DecodeInt64()) 83397 } 83398 } 83399 case "MaxParallel": 83400 if r.TryDecodeAsNil() { 83401 x.MaxParallel = 0 83402 } else { 83403 x.MaxParallel = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 83404 } 83405 case "HealthCheck": 83406 if r.TryDecodeAsNil() { 83407 x.HealthCheck = "" 83408 } else { 83409 x.HealthCheck = (string)(r.DecodeString()) 83410 } 83411 case "MinHealthyTime": 83412 if r.TryDecodeAsNil() { 83413 x.MinHealthyTime = 0 83414 } else { 83415 if false { 83416 } else if yyxt9 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt9 != nil { 83417 z.DecExtension(x.MinHealthyTime, yyxt9) 83418 } else { 83419 x.MinHealthyTime = (time.Duration)(r.DecodeInt64()) 83420 } 83421 } 83422 case "HealthyDeadline": 83423 if r.TryDecodeAsNil() { 83424 x.HealthyDeadline = 0 83425 } else { 83426 if false { 83427 } else if yyxt11 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt11 != nil { 83428 z.DecExtension(x.HealthyDeadline, yyxt11) 83429 } else { 83430 x.HealthyDeadline = (time.Duration)(r.DecodeInt64()) 83431 } 83432 } 83433 case "ProgressDeadline": 83434 if r.TryDecodeAsNil() { 83435 x.ProgressDeadline = 0 83436 } else { 83437 if false { 83438 } else if yyxt13 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt13 != nil { 83439 z.DecExtension(x.ProgressDeadline, yyxt13) 83440 } else { 83441 x.ProgressDeadline = (time.Duration)(r.DecodeInt64()) 83442 } 83443 } 83444 case "AutoRevert": 83445 if r.TryDecodeAsNil() { 83446 x.AutoRevert = false 83447 } else { 83448 x.AutoRevert = (bool)(r.DecodeBool()) 83449 } 83450 case "AutoPromote": 83451 if r.TryDecodeAsNil() { 83452 x.AutoPromote = false 83453 } else { 83454 x.AutoPromote = (bool)(r.DecodeBool()) 83455 } 83456 case "Canary": 83457 if r.TryDecodeAsNil() { 83458 x.Canary = 0 83459 } else { 83460 x.Canary = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 83461 } 83462 default: 83463 z.DecStructFieldNotFound(-1, yys3) 83464 } // end switch yys3 83465 } // end for yyj3 83466 r.ReadMapEnd() 83467 } 83468 83469 func (x *UpdateStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 83470 var h codecSelfer100 83471 z, r := codec1978.GenHelperDecoder(d) 83472 _, _, _ = h, z, r 83473 var yyj17 int 83474 var yyb17 bool 83475 var yyhl17 bool = l >= 0 83476 yyj17++ 83477 if yyhl17 { 83478 yyb17 = yyj17 > l 83479 } else { 83480 yyb17 = r.CheckBreak() 83481 } 83482 if yyb17 { 83483 r.ReadArrayEnd() 83484 return 83485 } 83486 r.ReadArrayElem() 83487 if r.TryDecodeAsNil() { 83488 x.Stagger = 0 83489 } else { 83490 if false { 83491 } else if yyxt19 := z.Extension(z.I2Rtid(x.Stagger)); yyxt19 != nil { 83492 z.DecExtension(x.Stagger, yyxt19) 83493 } else { 83494 x.Stagger = (time.Duration)(r.DecodeInt64()) 83495 } 83496 } 83497 yyj17++ 83498 if yyhl17 { 83499 yyb17 = yyj17 > l 83500 } else { 83501 yyb17 = r.CheckBreak() 83502 } 83503 if yyb17 { 83504 r.ReadArrayEnd() 83505 return 83506 } 83507 r.ReadArrayElem() 83508 if r.TryDecodeAsNil() { 83509 x.MaxParallel = 0 83510 } else { 83511 x.MaxParallel = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 83512 } 83513 yyj17++ 83514 if yyhl17 { 83515 yyb17 = yyj17 > l 83516 } else { 83517 yyb17 = r.CheckBreak() 83518 } 83519 if yyb17 { 83520 r.ReadArrayEnd() 83521 return 83522 } 83523 r.ReadArrayElem() 83524 if r.TryDecodeAsNil() { 83525 x.HealthCheck = "" 83526 } else { 83527 x.HealthCheck = (string)(r.DecodeString()) 83528 } 83529 yyj17++ 83530 if yyhl17 { 83531 yyb17 = yyj17 > l 83532 } else { 83533 yyb17 = r.CheckBreak() 83534 } 83535 if yyb17 { 83536 r.ReadArrayEnd() 83537 return 83538 } 83539 r.ReadArrayElem() 83540 if r.TryDecodeAsNil() { 83541 x.MinHealthyTime = 0 83542 } else { 83543 if false { 83544 } else if yyxt23 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt23 != nil { 83545 z.DecExtension(x.MinHealthyTime, yyxt23) 83546 } else { 83547 x.MinHealthyTime = (time.Duration)(r.DecodeInt64()) 83548 } 83549 } 83550 yyj17++ 83551 if yyhl17 { 83552 yyb17 = yyj17 > l 83553 } else { 83554 yyb17 = r.CheckBreak() 83555 } 83556 if yyb17 { 83557 r.ReadArrayEnd() 83558 return 83559 } 83560 r.ReadArrayElem() 83561 if r.TryDecodeAsNil() { 83562 x.HealthyDeadline = 0 83563 } else { 83564 if false { 83565 } else if yyxt25 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt25 != nil { 83566 z.DecExtension(x.HealthyDeadline, yyxt25) 83567 } else { 83568 x.HealthyDeadline = (time.Duration)(r.DecodeInt64()) 83569 } 83570 } 83571 yyj17++ 83572 if yyhl17 { 83573 yyb17 = yyj17 > l 83574 } else { 83575 yyb17 = r.CheckBreak() 83576 } 83577 if yyb17 { 83578 r.ReadArrayEnd() 83579 return 83580 } 83581 r.ReadArrayElem() 83582 if r.TryDecodeAsNil() { 83583 x.ProgressDeadline = 0 83584 } else { 83585 if false { 83586 } else if yyxt27 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt27 != nil { 83587 z.DecExtension(x.ProgressDeadline, yyxt27) 83588 } else { 83589 x.ProgressDeadline = (time.Duration)(r.DecodeInt64()) 83590 } 83591 } 83592 yyj17++ 83593 if yyhl17 { 83594 yyb17 = yyj17 > l 83595 } else { 83596 yyb17 = r.CheckBreak() 83597 } 83598 if yyb17 { 83599 r.ReadArrayEnd() 83600 return 83601 } 83602 r.ReadArrayElem() 83603 if r.TryDecodeAsNil() { 83604 x.AutoRevert = false 83605 } else { 83606 x.AutoRevert = (bool)(r.DecodeBool()) 83607 } 83608 yyj17++ 83609 if yyhl17 { 83610 yyb17 = yyj17 > l 83611 } else { 83612 yyb17 = r.CheckBreak() 83613 } 83614 if yyb17 { 83615 r.ReadArrayEnd() 83616 return 83617 } 83618 r.ReadArrayElem() 83619 if r.TryDecodeAsNil() { 83620 x.AutoPromote = false 83621 } else { 83622 x.AutoPromote = (bool)(r.DecodeBool()) 83623 } 83624 yyj17++ 83625 if yyhl17 { 83626 yyb17 = yyj17 > l 83627 } else { 83628 yyb17 = r.CheckBreak() 83629 } 83630 if yyb17 { 83631 r.ReadArrayEnd() 83632 return 83633 } 83634 r.ReadArrayElem() 83635 if r.TryDecodeAsNil() { 83636 x.Canary = 0 83637 } else { 83638 x.Canary = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 83639 } 83640 for { 83641 yyj17++ 83642 if yyhl17 { 83643 yyb17 = yyj17 > l 83644 } else { 83645 yyb17 = r.CheckBreak() 83646 } 83647 if yyb17 { 83648 break 83649 } 83650 r.ReadArrayElem() 83651 z.DecStructFieldNotFound(yyj17-1, "") 83652 } 83653 r.ReadArrayEnd() 83654 } 83655 83656 func (x *PeriodicConfig) CodecEncodeSelf(e *codec1978.Encoder) { 83657 var h codecSelfer100 83658 z, r := codec1978.GenHelperEncoder(e) 83659 _, _, _ = h, z, r 83660 if x == nil { 83661 r.EncodeNil() 83662 } else { 83663 if false { 83664 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 83665 z.EncExtension(x, yyxt1) 83666 } else { 83667 yysep2 := !z.EncBinary() 83668 yy2arr2 := z.EncBasicHandle().StructToArray 83669 _, _ = yysep2, yy2arr2 83670 const yyr2 bool = false // struct tag has 'toArray' 83671 if yyr2 || yy2arr2 { 83672 r.WriteArrayStart(5) 83673 } else { 83674 r.WriteMapStart(5) 83675 } 83676 if yyr2 || yy2arr2 { 83677 r.WriteArrayElem() 83678 if false { 83679 } else { 83680 r.EncodeBool(bool(x.Enabled)) 83681 } 83682 } else { 83683 r.WriteMapElemKey() 83684 if z.IsJSONHandle() { 83685 z.WriteStr("\"Enabled\"") 83686 } else { 83687 r.EncodeStringEnc(codecSelferCcUTF8100, `Enabled`) 83688 } 83689 r.WriteMapElemValue() 83690 if false { 83691 } else { 83692 r.EncodeBool(bool(x.Enabled)) 83693 } 83694 } 83695 if yyr2 || yy2arr2 { 83696 r.WriteArrayElem() 83697 if false { 83698 } else { 83699 if z.EncBasicHandle().StringToRaw { 83700 r.EncodeStringBytesRaw(z.BytesView(string(x.Spec))) 83701 } else { 83702 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Spec)) 83703 } 83704 } 83705 } else { 83706 r.WriteMapElemKey() 83707 if z.IsJSONHandle() { 83708 z.WriteStr("\"Spec\"") 83709 } else { 83710 r.EncodeStringEnc(codecSelferCcUTF8100, `Spec`) 83711 } 83712 r.WriteMapElemValue() 83713 if false { 83714 } else { 83715 if z.EncBasicHandle().StringToRaw { 83716 r.EncodeStringBytesRaw(z.BytesView(string(x.Spec))) 83717 } else { 83718 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Spec)) 83719 } 83720 } 83721 } 83722 if yyr2 || yy2arr2 { 83723 r.WriteArrayElem() 83724 if false { 83725 } else { 83726 if z.EncBasicHandle().StringToRaw { 83727 r.EncodeStringBytesRaw(z.BytesView(string(x.SpecType))) 83728 } else { 83729 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SpecType)) 83730 } 83731 } 83732 } else { 83733 r.WriteMapElemKey() 83734 if z.IsJSONHandle() { 83735 z.WriteStr("\"SpecType\"") 83736 } else { 83737 r.EncodeStringEnc(codecSelferCcUTF8100, `SpecType`) 83738 } 83739 r.WriteMapElemValue() 83740 if false { 83741 } else { 83742 if z.EncBasicHandle().StringToRaw { 83743 r.EncodeStringBytesRaw(z.BytesView(string(x.SpecType))) 83744 } else { 83745 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SpecType)) 83746 } 83747 } 83748 } 83749 if yyr2 || yy2arr2 { 83750 r.WriteArrayElem() 83751 if false { 83752 } else { 83753 r.EncodeBool(bool(x.ProhibitOverlap)) 83754 } 83755 } else { 83756 r.WriteMapElemKey() 83757 if z.IsJSONHandle() { 83758 z.WriteStr("\"ProhibitOverlap\"") 83759 } else { 83760 r.EncodeStringEnc(codecSelferCcUTF8100, `ProhibitOverlap`) 83761 } 83762 r.WriteMapElemValue() 83763 if false { 83764 } else { 83765 r.EncodeBool(bool(x.ProhibitOverlap)) 83766 } 83767 } 83768 if yyr2 || yy2arr2 { 83769 r.WriteArrayElem() 83770 if false { 83771 } else { 83772 if z.EncBasicHandle().StringToRaw { 83773 r.EncodeStringBytesRaw(z.BytesView(string(x.TimeZone))) 83774 } else { 83775 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TimeZone)) 83776 } 83777 } 83778 } else { 83779 r.WriteMapElemKey() 83780 if z.IsJSONHandle() { 83781 z.WriteStr("\"TimeZone\"") 83782 } else { 83783 r.EncodeStringEnc(codecSelferCcUTF8100, `TimeZone`) 83784 } 83785 r.WriteMapElemValue() 83786 if false { 83787 } else { 83788 if z.EncBasicHandle().StringToRaw { 83789 r.EncodeStringBytesRaw(z.BytesView(string(x.TimeZone))) 83790 } else { 83791 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TimeZone)) 83792 } 83793 } 83794 } 83795 if yyr2 || yy2arr2 { 83796 r.WriteArrayEnd() 83797 } else { 83798 r.WriteMapEnd() 83799 } 83800 } 83801 } 83802 } 83803 83804 func (x *PeriodicConfig) CodecDecodeSelf(d *codec1978.Decoder) { 83805 var h codecSelfer100 83806 z, r := codec1978.GenHelperDecoder(d) 83807 _, _, _ = h, z, r 83808 if false { 83809 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 83810 z.DecExtension(x, yyxt1) 83811 } else { 83812 yyct2 := r.ContainerType() 83813 if yyct2 == codecSelferValueTypeMap100 { 83814 yyl2 := r.ReadMapStart() 83815 if yyl2 == 0 { 83816 r.ReadMapEnd() 83817 } else { 83818 x.codecDecodeSelfFromMap(yyl2, d) 83819 } 83820 } else if yyct2 == codecSelferValueTypeArray100 { 83821 yyl2 := r.ReadArrayStart() 83822 if yyl2 == 0 { 83823 r.ReadArrayEnd() 83824 } else { 83825 x.codecDecodeSelfFromArray(yyl2, d) 83826 } 83827 } else { 83828 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 83829 } 83830 } 83831 } 83832 83833 func (x *PeriodicConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 83834 var h codecSelfer100 83835 z, r := codec1978.GenHelperDecoder(d) 83836 _, _, _ = h, z, r 83837 var yyhl3 bool = l >= 0 83838 for yyj3 := 0; ; yyj3++ { 83839 if yyhl3 { 83840 if yyj3 >= l { 83841 break 83842 } 83843 } else { 83844 if r.CheckBreak() { 83845 break 83846 } 83847 } 83848 r.ReadMapElemKey() 83849 yys3 := z.StringView(r.DecodeStringAsBytes()) 83850 r.ReadMapElemValue() 83851 switch yys3 { 83852 case "Enabled": 83853 if r.TryDecodeAsNil() { 83854 x.Enabled = false 83855 } else { 83856 x.Enabled = (bool)(r.DecodeBool()) 83857 } 83858 case "Spec": 83859 if r.TryDecodeAsNil() { 83860 x.Spec = "" 83861 } else { 83862 x.Spec = (string)(r.DecodeString()) 83863 } 83864 case "SpecType": 83865 if r.TryDecodeAsNil() { 83866 x.SpecType = "" 83867 } else { 83868 x.SpecType = (string)(r.DecodeString()) 83869 } 83870 case "ProhibitOverlap": 83871 if r.TryDecodeAsNil() { 83872 x.ProhibitOverlap = false 83873 } else { 83874 x.ProhibitOverlap = (bool)(r.DecodeBool()) 83875 } 83876 case "TimeZone": 83877 if r.TryDecodeAsNil() { 83878 x.TimeZone = "" 83879 } else { 83880 x.TimeZone = (string)(r.DecodeString()) 83881 } 83882 default: 83883 z.DecStructFieldNotFound(-1, yys3) 83884 } // end switch yys3 83885 } // end for yyj3 83886 r.ReadMapEnd() 83887 } 83888 83889 func (x *PeriodicConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 83890 var h codecSelfer100 83891 z, r := codec1978.GenHelperDecoder(d) 83892 _, _, _ = h, z, r 83893 var yyj9 int 83894 var yyb9 bool 83895 var yyhl9 bool = l >= 0 83896 yyj9++ 83897 if yyhl9 { 83898 yyb9 = yyj9 > l 83899 } else { 83900 yyb9 = r.CheckBreak() 83901 } 83902 if yyb9 { 83903 r.ReadArrayEnd() 83904 return 83905 } 83906 r.ReadArrayElem() 83907 if r.TryDecodeAsNil() { 83908 x.Enabled = false 83909 } else { 83910 x.Enabled = (bool)(r.DecodeBool()) 83911 } 83912 yyj9++ 83913 if yyhl9 { 83914 yyb9 = yyj9 > l 83915 } else { 83916 yyb9 = r.CheckBreak() 83917 } 83918 if yyb9 { 83919 r.ReadArrayEnd() 83920 return 83921 } 83922 r.ReadArrayElem() 83923 if r.TryDecodeAsNil() { 83924 x.Spec = "" 83925 } else { 83926 x.Spec = (string)(r.DecodeString()) 83927 } 83928 yyj9++ 83929 if yyhl9 { 83930 yyb9 = yyj9 > l 83931 } else { 83932 yyb9 = r.CheckBreak() 83933 } 83934 if yyb9 { 83935 r.ReadArrayEnd() 83936 return 83937 } 83938 r.ReadArrayElem() 83939 if r.TryDecodeAsNil() { 83940 x.SpecType = "" 83941 } else { 83942 x.SpecType = (string)(r.DecodeString()) 83943 } 83944 yyj9++ 83945 if yyhl9 { 83946 yyb9 = yyj9 > l 83947 } else { 83948 yyb9 = r.CheckBreak() 83949 } 83950 if yyb9 { 83951 r.ReadArrayEnd() 83952 return 83953 } 83954 r.ReadArrayElem() 83955 if r.TryDecodeAsNil() { 83956 x.ProhibitOverlap = false 83957 } else { 83958 x.ProhibitOverlap = (bool)(r.DecodeBool()) 83959 } 83960 yyj9++ 83961 if yyhl9 { 83962 yyb9 = yyj9 > l 83963 } else { 83964 yyb9 = r.CheckBreak() 83965 } 83966 if yyb9 { 83967 r.ReadArrayEnd() 83968 return 83969 } 83970 r.ReadArrayElem() 83971 if r.TryDecodeAsNil() { 83972 x.TimeZone = "" 83973 } else { 83974 x.TimeZone = (string)(r.DecodeString()) 83975 } 83976 for { 83977 yyj9++ 83978 if yyhl9 { 83979 yyb9 = yyj9 > l 83980 } else { 83981 yyb9 = r.CheckBreak() 83982 } 83983 if yyb9 { 83984 break 83985 } 83986 r.ReadArrayElem() 83987 z.DecStructFieldNotFound(yyj9-1, "") 83988 } 83989 r.ReadArrayEnd() 83990 } 83991 83992 func (x *PeriodicLaunch) CodecEncodeSelf(e *codec1978.Encoder) { 83993 var h codecSelfer100 83994 z, r := codec1978.GenHelperEncoder(e) 83995 _, _, _ = h, z, r 83996 if x == nil { 83997 r.EncodeNil() 83998 } else { 83999 if false { 84000 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 84001 z.EncExtension(x, yyxt1) 84002 } else { 84003 yysep2 := !z.EncBinary() 84004 yy2arr2 := z.EncBasicHandle().StructToArray 84005 _, _ = yysep2, yy2arr2 84006 const yyr2 bool = false // struct tag has 'toArray' 84007 if yyr2 || yy2arr2 { 84008 r.WriteArrayStart(5) 84009 } else { 84010 r.WriteMapStart(5) 84011 } 84012 if yyr2 || yy2arr2 { 84013 r.WriteArrayElem() 84014 if false { 84015 } else { 84016 if z.EncBasicHandle().StringToRaw { 84017 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 84018 } else { 84019 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 84020 } 84021 } 84022 } else { 84023 r.WriteMapElemKey() 84024 if z.IsJSONHandle() { 84025 z.WriteStr("\"ID\"") 84026 } else { 84027 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 84028 } 84029 r.WriteMapElemValue() 84030 if false { 84031 } else { 84032 if z.EncBasicHandle().StringToRaw { 84033 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 84034 } else { 84035 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 84036 } 84037 } 84038 } 84039 if yyr2 || yy2arr2 { 84040 r.WriteArrayElem() 84041 if false { 84042 } else { 84043 if z.EncBasicHandle().StringToRaw { 84044 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 84045 } else { 84046 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 84047 } 84048 } 84049 } else { 84050 r.WriteMapElemKey() 84051 if z.IsJSONHandle() { 84052 z.WriteStr("\"Namespace\"") 84053 } else { 84054 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 84055 } 84056 r.WriteMapElemValue() 84057 if false { 84058 } else { 84059 if z.EncBasicHandle().StringToRaw { 84060 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 84061 } else { 84062 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 84063 } 84064 } 84065 } 84066 if yyr2 || yy2arr2 { 84067 r.WriteArrayElem() 84068 if false { 84069 } else if !z.EncBasicHandle().TimeNotBuiltin { 84070 r.EncodeTime(x.Launch) 84071 } else if yyxt10 := z.Extension(z.I2Rtid(x.Launch)); yyxt10 != nil { 84072 z.EncExtension(x.Launch, yyxt10) 84073 } else if z.EncBinary() { 84074 z.EncBinaryMarshal(x.Launch) 84075 } else if !z.EncBinary() && z.IsJSONHandle() { 84076 z.EncJSONMarshal(x.Launch) 84077 } else { 84078 z.EncFallback(x.Launch) 84079 } 84080 } else { 84081 r.WriteMapElemKey() 84082 if z.IsJSONHandle() { 84083 z.WriteStr("\"Launch\"") 84084 } else { 84085 r.EncodeStringEnc(codecSelferCcUTF8100, `Launch`) 84086 } 84087 r.WriteMapElemValue() 84088 if false { 84089 } else if !z.EncBasicHandle().TimeNotBuiltin { 84090 r.EncodeTime(x.Launch) 84091 } else if yyxt11 := z.Extension(z.I2Rtid(x.Launch)); yyxt11 != nil { 84092 z.EncExtension(x.Launch, yyxt11) 84093 } else if z.EncBinary() { 84094 z.EncBinaryMarshal(x.Launch) 84095 } else if !z.EncBinary() && z.IsJSONHandle() { 84096 z.EncJSONMarshal(x.Launch) 84097 } else { 84098 z.EncFallback(x.Launch) 84099 } 84100 } 84101 if yyr2 || yy2arr2 { 84102 r.WriteArrayElem() 84103 if false { 84104 } else { 84105 r.EncodeUint(uint64(x.CreateIndex)) 84106 } 84107 } else { 84108 r.WriteMapElemKey() 84109 if z.IsJSONHandle() { 84110 z.WriteStr("\"CreateIndex\"") 84111 } else { 84112 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 84113 } 84114 r.WriteMapElemValue() 84115 if false { 84116 } else { 84117 r.EncodeUint(uint64(x.CreateIndex)) 84118 } 84119 } 84120 if yyr2 || yy2arr2 { 84121 r.WriteArrayElem() 84122 if false { 84123 } else { 84124 r.EncodeUint(uint64(x.ModifyIndex)) 84125 } 84126 } else { 84127 r.WriteMapElemKey() 84128 if z.IsJSONHandle() { 84129 z.WriteStr("\"ModifyIndex\"") 84130 } else { 84131 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 84132 } 84133 r.WriteMapElemValue() 84134 if false { 84135 } else { 84136 r.EncodeUint(uint64(x.ModifyIndex)) 84137 } 84138 } 84139 if yyr2 || yy2arr2 { 84140 r.WriteArrayEnd() 84141 } else { 84142 r.WriteMapEnd() 84143 } 84144 } 84145 } 84146 } 84147 84148 func (x *PeriodicLaunch) CodecDecodeSelf(d *codec1978.Decoder) { 84149 var h codecSelfer100 84150 z, r := codec1978.GenHelperDecoder(d) 84151 _, _, _ = h, z, r 84152 if false { 84153 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 84154 z.DecExtension(x, yyxt1) 84155 } else { 84156 yyct2 := r.ContainerType() 84157 if yyct2 == codecSelferValueTypeMap100 { 84158 yyl2 := r.ReadMapStart() 84159 if yyl2 == 0 { 84160 r.ReadMapEnd() 84161 } else { 84162 x.codecDecodeSelfFromMap(yyl2, d) 84163 } 84164 } else if yyct2 == codecSelferValueTypeArray100 { 84165 yyl2 := r.ReadArrayStart() 84166 if yyl2 == 0 { 84167 r.ReadArrayEnd() 84168 } else { 84169 x.codecDecodeSelfFromArray(yyl2, d) 84170 } 84171 } else { 84172 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 84173 } 84174 } 84175 } 84176 84177 func (x *PeriodicLaunch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 84178 var h codecSelfer100 84179 z, r := codec1978.GenHelperDecoder(d) 84180 _, _, _ = h, z, r 84181 var yyhl3 bool = l >= 0 84182 for yyj3 := 0; ; yyj3++ { 84183 if yyhl3 { 84184 if yyj3 >= l { 84185 break 84186 } 84187 } else { 84188 if r.CheckBreak() { 84189 break 84190 } 84191 } 84192 r.ReadMapElemKey() 84193 yys3 := z.StringView(r.DecodeStringAsBytes()) 84194 r.ReadMapElemValue() 84195 switch yys3 { 84196 case "ID": 84197 if r.TryDecodeAsNil() { 84198 x.ID = "" 84199 } else { 84200 x.ID = (string)(r.DecodeString()) 84201 } 84202 case "Namespace": 84203 if r.TryDecodeAsNil() { 84204 x.Namespace = "" 84205 } else { 84206 x.Namespace = (string)(r.DecodeString()) 84207 } 84208 case "Launch": 84209 if r.TryDecodeAsNil() { 84210 x.Launch = time.Time{} 84211 } else { 84212 if false { 84213 } else if !z.DecBasicHandle().TimeNotBuiltin { 84214 x.Launch = r.DecodeTime() 84215 } else if yyxt7 := z.Extension(z.I2Rtid(x.Launch)); yyxt7 != nil { 84216 z.DecExtension(x.Launch, yyxt7) 84217 } else if z.DecBinary() { 84218 z.DecBinaryUnmarshal(&x.Launch) 84219 } else if !z.DecBinary() && z.IsJSONHandle() { 84220 z.DecJSONUnmarshal(&x.Launch) 84221 } else { 84222 z.DecFallback(&x.Launch, false) 84223 } 84224 } 84225 case "CreateIndex": 84226 if r.TryDecodeAsNil() { 84227 x.CreateIndex = 0 84228 } else { 84229 x.CreateIndex = (uint64)(r.DecodeUint64()) 84230 } 84231 case "ModifyIndex": 84232 if r.TryDecodeAsNil() { 84233 x.ModifyIndex = 0 84234 } else { 84235 x.ModifyIndex = (uint64)(r.DecodeUint64()) 84236 } 84237 default: 84238 z.DecStructFieldNotFound(-1, yys3) 84239 } // end switch yys3 84240 } // end for yyj3 84241 r.ReadMapEnd() 84242 } 84243 84244 func (x *PeriodicLaunch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 84245 var h codecSelfer100 84246 z, r := codec1978.GenHelperDecoder(d) 84247 _, _, _ = h, z, r 84248 var yyj10 int 84249 var yyb10 bool 84250 var yyhl10 bool = l >= 0 84251 yyj10++ 84252 if yyhl10 { 84253 yyb10 = yyj10 > l 84254 } else { 84255 yyb10 = r.CheckBreak() 84256 } 84257 if yyb10 { 84258 r.ReadArrayEnd() 84259 return 84260 } 84261 r.ReadArrayElem() 84262 if r.TryDecodeAsNil() { 84263 x.ID = "" 84264 } else { 84265 x.ID = (string)(r.DecodeString()) 84266 } 84267 yyj10++ 84268 if yyhl10 { 84269 yyb10 = yyj10 > l 84270 } else { 84271 yyb10 = r.CheckBreak() 84272 } 84273 if yyb10 { 84274 r.ReadArrayEnd() 84275 return 84276 } 84277 r.ReadArrayElem() 84278 if r.TryDecodeAsNil() { 84279 x.Namespace = "" 84280 } else { 84281 x.Namespace = (string)(r.DecodeString()) 84282 } 84283 yyj10++ 84284 if yyhl10 { 84285 yyb10 = yyj10 > l 84286 } else { 84287 yyb10 = r.CheckBreak() 84288 } 84289 if yyb10 { 84290 r.ReadArrayEnd() 84291 return 84292 } 84293 r.ReadArrayElem() 84294 if r.TryDecodeAsNil() { 84295 x.Launch = time.Time{} 84296 } else { 84297 if false { 84298 } else if !z.DecBasicHandle().TimeNotBuiltin { 84299 x.Launch = r.DecodeTime() 84300 } else if yyxt14 := z.Extension(z.I2Rtid(x.Launch)); yyxt14 != nil { 84301 z.DecExtension(x.Launch, yyxt14) 84302 } else if z.DecBinary() { 84303 z.DecBinaryUnmarshal(&x.Launch) 84304 } else if !z.DecBinary() && z.IsJSONHandle() { 84305 z.DecJSONUnmarshal(&x.Launch) 84306 } else { 84307 z.DecFallback(&x.Launch, false) 84308 } 84309 } 84310 yyj10++ 84311 if yyhl10 { 84312 yyb10 = yyj10 > l 84313 } else { 84314 yyb10 = r.CheckBreak() 84315 } 84316 if yyb10 { 84317 r.ReadArrayEnd() 84318 return 84319 } 84320 r.ReadArrayElem() 84321 if r.TryDecodeAsNil() { 84322 x.CreateIndex = 0 84323 } else { 84324 x.CreateIndex = (uint64)(r.DecodeUint64()) 84325 } 84326 yyj10++ 84327 if yyhl10 { 84328 yyb10 = yyj10 > l 84329 } else { 84330 yyb10 = r.CheckBreak() 84331 } 84332 if yyb10 { 84333 r.ReadArrayEnd() 84334 return 84335 } 84336 r.ReadArrayElem() 84337 if r.TryDecodeAsNil() { 84338 x.ModifyIndex = 0 84339 } else { 84340 x.ModifyIndex = (uint64)(r.DecodeUint64()) 84341 } 84342 for { 84343 yyj10++ 84344 if yyhl10 { 84345 yyb10 = yyj10 > l 84346 } else { 84347 yyb10 = r.CheckBreak() 84348 } 84349 if yyb10 { 84350 break 84351 } 84352 r.ReadArrayElem() 84353 z.DecStructFieldNotFound(yyj10-1, "") 84354 } 84355 r.ReadArrayEnd() 84356 } 84357 84358 func (x *ParameterizedJobConfig) CodecEncodeSelf(e *codec1978.Encoder) { 84359 var h codecSelfer100 84360 z, r := codec1978.GenHelperEncoder(e) 84361 _, _, _ = h, z, r 84362 if x == nil { 84363 r.EncodeNil() 84364 } else { 84365 if false { 84366 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 84367 z.EncExtension(x, yyxt1) 84368 } else { 84369 yysep2 := !z.EncBinary() 84370 yy2arr2 := z.EncBasicHandle().StructToArray 84371 _, _ = yysep2, yy2arr2 84372 const yyr2 bool = false // struct tag has 'toArray' 84373 if yyr2 || yy2arr2 { 84374 r.WriteArrayStart(3) 84375 } else { 84376 r.WriteMapStart(3) 84377 } 84378 if yyr2 || yy2arr2 { 84379 r.WriteArrayElem() 84380 if false { 84381 } else { 84382 if z.EncBasicHandle().StringToRaw { 84383 r.EncodeStringBytesRaw(z.BytesView(string(x.Payload))) 84384 } else { 84385 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Payload)) 84386 } 84387 } 84388 } else { 84389 r.WriteMapElemKey() 84390 if z.IsJSONHandle() { 84391 z.WriteStr("\"Payload\"") 84392 } else { 84393 r.EncodeStringEnc(codecSelferCcUTF8100, `Payload`) 84394 } 84395 r.WriteMapElemValue() 84396 if false { 84397 } else { 84398 if z.EncBasicHandle().StringToRaw { 84399 r.EncodeStringBytesRaw(z.BytesView(string(x.Payload))) 84400 } else { 84401 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Payload)) 84402 } 84403 } 84404 } 84405 if yyr2 || yy2arr2 { 84406 r.WriteArrayElem() 84407 if x.MetaRequired == nil { 84408 r.EncodeNil() 84409 } else { 84410 if false { 84411 } else { 84412 z.F.EncSliceStringV(x.MetaRequired, e) 84413 } 84414 } 84415 } else { 84416 r.WriteMapElemKey() 84417 if z.IsJSONHandle() { 84418 z.WriteStr("\"MetaRequired\"") 84419 } else { 84420 r.EncodeStringEnc(codecSelferCcUTF8100, `MetaRequired`) 84421 } 84422 r.WriteMapElemValue() 84423 if x.MetaRequired == nil { 84424 r.EncodeNil() 84425 } else { 84426 if false { 84427 } else { 84428 z.F.EncSliceStringV(x.MetaRequired, e) 84429 } 84430 } 84431 } 84432 if yyr2 || yy2arr2 { 84433 r.WriteArrayElem() 84434 if x.MetaOptional == nil { 84435 r.EncodeNil() 84436 } else { 84437 if false { 84438 } else { 84439 z.F.EncSliceStringV(x.MetaOptional, e) 84440 } 84441 } 84442 } else { 84443 r.WriteMapElemKey() 84444 if z.IsJSONHandle() { 84445 z.WriteStr("\"MetaOptional\"") 84446 } else { 84447 r.EncodeStringEnc(codecSelferCcUTF8100, `MetaOptional`) 84448 } 84449 r.WriteMapElemValue() 84450 if x.MetaOptional == nil { 84451 r.EncodeNil() 84452 } else { 84453 if false { 84454 } else { 84455 z.F.EncSliceStringV(x.MetaOptional, e) 84456 } 84457 } 84458 } 84459 if yyr2 || yy2arr2 { 84460 r.WriteArrayEnd() 84461 } else { 84462 r.WriteMapEnd() 84463 } 84464 } 84465 } 84466 } 84467 84468 func (x *ParameterizedJobConfig) CodecDecodeSelf(d *codec1978.Decoder) { 84469 var h codecSelfer100 84470 z, r := codec1978.GenHelperDecoder(d) 84471 _, _, _ = h, z, r 84472 if false { 84473 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 84474 z.DecExtension(x, yyxt1) 84475 } else { 84476 yyct2 := r.ContainerType() 84477 if yyct2 == codecSelferValueTypeMap100 { 84478 yyl2 := r.ReadMapStart() 84479 if yyl2 == 0 { 84480 r.ReadMapEnd() 84481 } else { 84482 x.codecDecodeSelfFromMap(yyl2, d) 84483 } 84484 } else if yyct2 == codecSelferValueTypeArray100 { 84485 yyl2 := r.ReadArrayStart() 84486 if yyl2 == 0 { 84487 r.ReadArrayEnd() 84488 } else { 84489 x.codecDecodeSelfFromArray(yyl2, d) 84490 } 84491 } else { 84492 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 84493 } 84494 } 84495 } 84496 84497 func (x *ParameterizedJobConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 84498 var h codecSelfer100 84499 z, r := codec1978.GenHelperDecoder(d) 84500 _, _, _ = h, z, r 84501 var yyhl3 bool = l >= 0 84502 for yyj3 := 0; ; yyj3++ { 84503 if yyhl3 { 84504 if yyj3 >= l { 84505 break 84506 } 84507 } else { 84508 if r.CheckBreak() { 84509 break 84510 } 84511 } 84512 r.ReadMapElemKey() 84513 yys3 := z.StringView(r.DecodeStringAsBytes()) 84514 r.ReadMapElemValue() 84515 switch yys3 { 84516 case "Payload": 84517 if r.TryDecodeAsNil() { 84518 x.Payload = "" 84519 } else { 84520 x.Payload = (string)(r.DecodeString()) 84521 } 84522 case "MetaRequired": 84523 if r.TryDecodeAsNil() { 84524 x.MetaRequired = nil 84525 } else { 84526 if false { 84527 } else { 84528 z.F.DecSliceStringX(&x.MetaRequired, d) 84529 } 84530 } 84531 case "MetaOptional": 84532 if r.TryDecodeAsNil() { 84533 x.MetaOptional = nil 84534 } else { 84535 if false { 84536 } else { 84537 z.F.DecSliceStringX(&x.MetaOptional, d) 84538 } 84539 } 84540 default: 84541 z.DecStructFieldNotFound(-1, yys3) 84542 } // end switch yys3 84543 } // end for yyj3 84544 r.ReadMapEnd() 84545 } 84546 84547 func (x *ParameterizedJobConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 84548 var h codecSelfer100 84549 z, r := codec1978.GenHelperDecoder(d) 84550 _, _, _ = h, z, r 84551 var yyj9 int 84552 var yyb9 bool 84553 var yyhl9 bool = l >= 0 84554 yyj9++ 84555 if yyhl9 { 84556 yyb9 = yyj9 > l 84557 } else { 84558 yyb9 = r.CheckBreak() 84559 } 84560 if yyb9 { 84561 r.ReadArrayEnd() 84562 return 84563 } 84564 r.ReadArrayElem() 84565 if r.TryDecodeAsNil() { 84566 x.Payload = "" 84567 } else { 84568 x.Payload = (string)(r.DecodeString()) 84569 } 84570 yyj9++ 84571 if yyhl9 { 84572 yyb9 = yyj9 > l 84573 } else { 84574 yyb9 = r.CheckBreak() 84575 } 84576 if yyb9 { 84577 r.ReadArrayEnd() 84578 return 84579 } 84580 r.ReadArrayElem() 84581 if r.TryDecodeAsNil() { 84582 x.MetaRequired = nil 84583 } else { 84584 if false { 84585 } else { 84586 z.F.DecSliceStringX(&x.MetaRequired, d) 84587 } 84588 } 84589 yyj9++ 84590 if yyhl9 { 84591 yyb9 = yyj9 > l 84592 } else { 84593 yyb9 = r.CheckBreak() 84594 } 84595 if yyb9 { 84596 r.ReadArrayEnd() 84597 return 84598 } 84599 r.ReadArrayElem() 84600 if r.TryDecodeAsNil() { 84601 x.MetaOptional = nil 84602 } else { 84603 if false { 84604 } else { 84605 z.F.DecSliceStringX(&x.MetaOptional, d) 84606 } 84607 } 84608 for { 84609 yyj9++ 84610 if yyhl9 { 84611 yyb9 = yyj9 > l 84612 } else { 84613 yyb9 = r.CheckBreak() 84614 } 84615 if yyb9 { 84616 break 84617 } 84618 r.ReadArrayElem() 84619 z.DecStructFieldNotFound(yyj9-1, "") 84620 } 84621 r.ReadArrayEnd() 84622 } 84623 84624 func (x *DispatchPayloadConfig) CodecEncodeSelf(e *codec1978.Encoder) { 84625 var h codecSelfer100 84626 z, r := codec1978.GenHelperEncoder(e) 84627 _, _, _ = h, z, r 84628 if x == nil { 84629 r.EncodeNil() 84630 } else { 84631 if false { 84632 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 84633 z.EncExtension(x, yyxt1) 84634 } else { 84635 yysep2 := !z.EncBinary() 84636 yy2arr2 := z.EncBasicHandle().StructToArray 84637 _, _ = yysep2, yy2arr2 84638 const yyr2 bool = false // struct tag has 'toArray' 84639 if yyr2 || yy2arr2 { 84640 r.WriteArrayStart(1) 84641 } else { 84642 r.WriteMapStart(1) 84643 } 84644 if yyr2 || yy2arr2 { 84645 r.WriteArrayElem() 84646 if false { 84647 } else { 84648 if z.EncBasicHandle().StringToRaw { 84649 r.EncodeStringBytesRaw(z.BytesView(string(x.File))) 84650 } else { 84651 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.File)) 84652 } 84653 } 84654 } else { 84655 r.WriteMapElemKey() 84656 if z.IsJSONHandle() { 84657 z.WriteStr("\"File\"") 84658 } else { 84659 r.EncodeStringEnc(codecSelferCcUTF8100, `File`) 84660 } 84661 r.WriteMapElemValue() 84662 if false { 84663 } else { 84664 if z.EncBasicHandle().StringToRaw { 84665 r.EncodeStringBytesRaw(z.BytesView(string(x.File))) 84666 } else { 84667 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.File)) 84668 } 84669 } 84670 } 84671 if yyr2 || yy2arr2 { 84672 r.WriteArrayEnd() 84673 } else { 84674 r.WriteMapEnd() 84675 } 84676 } 84677 } 84678 } 84679 84680 func (x *DispatchPayloadConfig) CodecDecodeSelf(d *codec1978.Decoder) { 84681 var h codecSelfer100 84682 z, r := codec1978.GenHelperDecoder(d) 84683 _, _, _ = h, z, r 84684 if false { 84685 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 84686 z.DecExtension(x, yyxt1) 84687 } else { 84688 yyct2 := r.ContainerType() 84689 if yyct2 == codecSelferValueTypeMap100 { 84690 yyl2 := r.ReadMapStart() 84691 if yyl2 == 0 { 84692 r.ReadMapEnd() 84693 } else { 84694 x.codecDecodeSelfFromMap(yyl2, d) 84695 } 84696 } else if yyct2 == codecSelferValueTypeArray100 { 84697 yyl2 := r.ReadArrayStart() 84698 if yyl2 == 0 { 84699 r.ReadArrayEnd() 84700 } else { 84701 x.codecDecodeSelfFromArray(yyl2, d) 84702 } 84703 } else { 84704 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 84705 } 84706 } 84707 } 84708 84709 func (x *DispatchPayloadConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 84710 var h codecSelfer100 84711 z, r := codec1978.GenHelperDecoder(d) 84712 _, _, _ = h, z, r 84713 var yyhl3 bool = l >= 0 84714 for yyj3 := 0; ; yyj3++ { 84715 if yyhl3 { 84716 if yyj3 >= l { 84717 break 84718 } 84719 } else { 84720 if r.CheckBreak() { 84721 break 84722 } 84723 } 84724 r.ReadMapElemKey() 84725 yys3 := z.StringView(r.DecodeStringAsBytes()) 84726 r.ReadMapElemValue() 84727 switch yys3 { 84728 case "File": 84729 if r.TryDecodeAsNil() { 84730 x.File = "" 84731 } else { 84732 x.File = (string)(r.DecodeString()) 84733 } 84734 default: 84735 z.DecStructFieldNotFound(-1, yys3) 84736 } // end switch yys3 84737 } // end for yyj3 84738 r.ReadMapEnd() 84739 } 84740 84741 func (x *DispatchPayloadConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 84742 var h codecSelfer100 84743 z, r := codec1978.GenHelperDecoder(d) 84744 _, _, _ = h, z, r 84745 var yyj5 int 84746 var yyb5 bool 84747 var yyhl5 bool = l >= 0 84748 yyj5++ 84749 if yyhl5 { 84750 yyb5 = yyj5 > l 84751 } else { 84752 yyb5 = r.CheckBreak() 84753 } 84754 if yyb5 { 84755 r.ReadArrayEnd() 84756 return 84757 } 84758 r.ReadArrayElem() 84759 if r.TryDecodeAsNil() { 84760 x.File = "" 84761 } else { 84762 x.File = (string)(r.DecodeString()) 84763 } 84764 for { 84765 yyj5++ 84766 if yyhl5 { 84767 yyb5 = yyj5 > l 84768 } else { 84769 yyb5 = r.CheckBreak() 84770 } 84771 if yyb5 { 84772 break 84773 } 84774 r.ReadArrayElem() 84775 z.DecStructFieldNotFound(yyj5-1, "") 84776 } 84777 r.ReadArrayEnd() 84778 } 84779 84780 func (x *TaskLifecycleConfig) CodecEncodeSelf(e *codec1978.Encoder) { 84781 var h codecSelfer100 84782 z, r := codec1978.GenHelperEncoder(e) 84783 _, _, _ = h, z, r 84784 if x == nil { 84785 r.EncodeNil() 84786 } else { 84787 if false { 84788 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 84789 z.EncExtension(x, yyxt1) 84790 } else { 84791 yysep2 := !z.EncBinary() 84792 yy2arr2 := z.EncBasicHandle().StructToArray 84793 _, _ = yysep2, yy2arr2 84794 const yyr2 bool = false // struct tag has 'toArray' 84795 if yyr2 || yy2arr2 { 84796 r.WriteArrayStart(2) 84797 } else { 84798 r.WriteMapStart(2) 84799 } 84800 if yyr2 || yy2arr2 { 84801 r.WriteArrayElem() 84802 if false { 84803 } else { 84804 if z.EncBasicHandle().StringToRaw { 84805 r.EncodeStringBytesRaw(z.BytesView(string(x.Hook))) 84806 } else { 84807 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Hook)) 84808 } 84809 } 84810 } else { 84811 r.WriteMapElemKey() 84812 if z.IsJSONHandle() { 84813 z.WriteStr("\"Hook\"") 84814 } else { 84815 r.EncodeStringEnc(codecSelferCcUTF8100, `Hook`) 84816 } 84817 r.WriteMapElemValue() 84818 if false { 84819 } else { 84820 if z.EncBasicHandle().StringToRaw { 84821 r.EncodeStringBytesRaw(z.BytesView(string(x.Hook))) 84822 } else { 84823 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Hook)) 84824 } 84825 } 84826 } 84827 if yyr2 || yy2arr2 { 84828 r.WriteArrayElem() 84829 if false { 84830 } else { 84831 r.EncodeBool(bool(x.Sidecar)) 84832 } 84833 } else { 84834 r.WriteMapElemKey() 84835 if z.IsJSONHandle() { 84836 z.WriteStr("\"Sidecar\"") 84837 } else { 84838 r.EncodeStringEnc(codecSelferCcUTF8100, `Sidecar`) 84839 } 84840 r.WriteMapElemValue() 84841 if false { 84842 } else { 84843 r.EncodeBool(bool(x.Sidecar)) 84844 } 84845 } 84846 if yyr2 || yy2arr2 { 84847 r.WriteArrayEnd() 84848 } else { 84849 r.WriteMapEnd() 84850 } 84851 } 84852 } 84853 } 84854 84855 func (x *TaskLifecycleConfig) CodecDecodeSelf(d *codec1978.Decoder) { 84856 var h codecSelfer100 84857 z, r := codec1978.GenHelperDecoder(d) 84858 _, _, _ = h, z, r 84859 if false { 84860 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 84861 z.DecExtension(x, yyxt1) 84862 } else { 84863 yyct2 := r.ContainerType() 84864 if yyct2 == codecSelferValueTypeMap100 { 84865 yyl2 := r.ReadMapStart() 84866 if yyl2 == 0 { 84867 r.ReadMapEnd() 84868 } else { 84869 x.codecDecodeSelfFromMap(yyl2, d) 84870 } 84871 } else if yyct2 == codecSelferValueTypeArray100 { 84872 yyl2 := r.ReadArrayStart() 84873 if yyl2 == 0 { 84874 r.ReadArrayEnd() 84875 } else { 84876 x.codecDecodeSelfFromArray(yyl2, d) 84877 } 84878 } else { 84879 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 84880 } 84881 } 84882 } 84883 84884 func (x *TaskLifecycleConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 84885 var h codecSelfer100 84886 z, r := codec1978.GenHelperDecoder(d) 84887 _, _, _ = h, z, r 84888 var yyhl3 bool = l >= 0 84889 for yyj3 := 0; ; yyj3++ { 84890 if yyhl3 { 84891 if yyj3 >= l { 84892 break 84893 } 84894 } else { 84895 if r.CheckBreak() { 84896 break 84897 } 84898 } 84899 r.ReadMapElemKey() 84900 yys3 := z.StringView(r.DecodeStringAsBytes()) 84901 r.ReadMapElemValue() 84902 switch yys3 { 84903 case "Hook": 84904 if r.TryDecodeAsNil() { 84905 x.Hook = "" 84906 } else { 84907 x.Hook = (string)(r.DecodeString()) 84908 } 84909 case "Sidecar": 84910 if r.TryDecodeAsNil() { 84911 x.Sidecar = false 84912 } else { 84913 x.Sidecar = (bool)(r.DecodeBool()) 84914 } 84915 default: 84916 z.DecStructFieldNotFound(-1, yys3) 84917 } // end switch yys3 84918 } // end for yyj3 84919 r.ReadMapEnd() 84920 } 84921 84922 func (x *TaskLifecycleConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 84923 var h codecSelfer100 84924 z, r := codec1978.GenHelperDecoder(d) 84925 _, _, _ = h, z, r 84926 var yyj6 int 84927 var yyb6 bool 84928 var yyhl6 bool = l >= 0 84929 yyj6++ 84930 if yyhl6 { 84931 yyb6 = yyj6 > l 84932 } else { 84933 yyb6 = r.CheckBreak() 84934 } 84935 if yyb6 { 84936 r.ReadArrayEnd() 84937 return 84938 } 84939 r.ReadArrayElem() 84940 if r.TryDecodeAsNil() { 84941 x.Hook = "" 84942 } else { 84943 x.Hook = (string)(r.DecodeString()) 84944 } 84945 yyj6++ 84946 if yyhl6 { 84947 yyb6 = yyj6 > l 84948 } else { 84949 yyb6 = r.CheckBreak() 84950 } 84951 if yyb6 { 84952 r.ReadArrayEnd() 84953 return 84954 } 84955 r.ReadArrayElem() 84956 if r.TryDecodeAsNil() { 84957 x.Sidecar = false 84958 } else { 84959 x.Sidecar = (bool)(r.DecodeBool()) 84960 } 84961 for { 84962 yyj6++ 84963 if yyhl6 { 84964 yyb6 = yyj6 > l 84965 } else { 84966 yyb6 = r.CheckBreak() 84967 } 84968 if yyb6 { 84969 break 84970 } 84971 r.ReadArrayElem() 84972 z.DecStructFieldNotFound(yyj6-1, "") 84973 } 84974 r.ReadArrayEnd() 84975 } 84976 84977 func (x *JobScalingEvents) CodecEncodeSelf(e *codec1978.Encoder) { 84978 var h codecSelfer100 84979 z, r := codec1978.GenHelperEncoder(e) 84980 _, _, _ = h, z, r 84981 if x == nil { 84982 r.EncodeNil() 84983 } else { 84984 if false { 84985 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 84986 z.EncExtension(x, yyxt1) 84987 } else { 84988 yysep2 := !z.EncBinary() 84989 yy2arr2 := z.EncBasicHandle().StructToArray 84990 _, _ = yysep2, yy2arr2 84991 const yyr2 bool = false // struct tag has 'toArray' 84992 if yyr2 || yy2arr2 { 84993 r.WriteArrayStart(4) 84994 } else { 84995 r.WriteMapStart(4) 84996 } 84997 if yyr2 || yy2arr2 { 84998 r.WriteArrayElem() 84999 if false { 85000 } else { 85001 if z.EncBasicHandle().StringToRaw { 85002 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 85003 } else { 85004 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 85005 } 85006 } 85007 } else { 85008 r.WriteMapElemKey() 85009 if z.IsJSONHandle() { 85010 z.WriteStr("\"Namespace\"") 85011 } else { 85012 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 85013 } 85014 r.WriteMapElemValue() 85015 if false { 85016 } else { 85017 if z.EncBasicHandle().StringToRaw { 85018 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 85019 } else { 85020 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 85021 } 85022 } 85023 } 85024 if yyr2 || yy2arr2 { 85025 r.WriteArrayElem() 85026 if false { 85027 } else { 85028 if z.EncBasicHandle().StringToRaw { 85029 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 85030 } else { 85031 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 85032 } 85033 } 85034 } else { 85035 r.WriteMapElemKey() 85036 if z.IsJSONHandle() { 85037 z.WriteStr("\"JobID\"") 85038 } else { 85039 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 85040 } 85041 r.WriteMapElemValue() 85042 if false { 85043 } else { 85044 if z.EncBasicHandle().StringToRaw { 85045 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 85046 } else { 85047 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 85048 } 85049 } 85050 } 85051 if yyr2 || yy2arr2 { 85052 r.WriteArrayElem() 85053 if x.ScalingEvents == nil { 85054 r.EncodeNil() 85055 } else { 85056 if false { 85057 } else { 85058 h.encMapstringSlicePtrtoScalingEvent((map[string][]*ScalingEvent)(x.ScalingEvents), e) 85059 } 85060 } 85061 } else { 85062 r.WriteMapElemKey() 85063 if z.IsJSONHandle() { 85064 z.WriteStr("\"ScalingEvents\"") 85065 } else { 85066 r.EncodeStringEnc(codecSelferCcUTF8100, `ScalingEvents`) 85067 } 85068 r.WriteMapElemValue() 85069 if x.ScalingEvents == nil { 85070 r.EncodeNil() 85071 } else { 85072 if false { 85073 } else { 85074 h.encMapstringSlicePtrtoScalingEvent((map[string][]*ScalingEvent)(x.ScalingEvents), e) 85075 } 85076 } 85077 } 85078 if yyr2 || yy2arr2 { 85079 r.WriteArrayElem() 85080 if false { 85081 } else { 85082 r.EncodeUint(uint64(x.ModifyIndex)) 85083 } 85084 } else { 85085 r.WriteMapElemKey() 85086 if z.IsJSONHandle() { 85087 z.WriteStr("\"ModifyIndex\"") 85088 } else { 85089 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 85090 } 85091 r.WriteMapElemValue() 85092 if false { 85093 } else { 85094 r.EncodeUint(uint64(x.ModifyIndex)) 85095 } 85096 } 85097 if yyr2 || yy2arr2 { 85098 r.WriteArrayEnd() 85099 } else { 85100 r.WriteMapEnd() 85101 } 85102 } 85103 } 85104 } 85105 85106 func (x *JobScalingEvents) CodecDecodeSelf(d *codec1978.Decoder) { 85107 var h codecSelfer100 85108 z, r := codec1978.GenHelperDecoder(d) 85109 _, _, _ = h, z, r 85110 if false { 85111 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 85112 z.DecExtension(x, yyxt1) 85113 } else { 85114 yyct2 := r.ContainerType() 85115 if yyct2 == codecSelferValueTypeMap100 { 85116 yyl2 := r.ReadMapStart() 85117 if yyl2 == 0 { 85118 r.ReadMapEnd() 85119 } else { 85120 x.codecDecodeSelfFromMap(yyl2, d) 85121 } 85122 } else if yyct2 == codecSelferValueTypeArray100 { 85123 yyl2 := r.ReadArrayStart() 85124 if yyl2 == 0 { 85125 r.ReadArrayEnd() 85126 } else { 85127 x.codecDecodeSelfFromArray(yyl2, d) 85128 } 85129 } else { 85130 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 85131 } 85132 } 85133 } 85134 85135 func (x *JobScalingEvents) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 85136 var h codecSelfer100 85137 z, r := codec1978.GenHelperDecoder(d) 85138 _, _, _ = h, z, r 85139 var yyhl3 bool = l >= 0 85140 for yyj3 := 0; ; yyj3++ { 85141 if yyhl3 { 85142 if yyj3 >= l { 85143 break 85144 } 85145 } else { 85146 if r.CheckBreak() { 85147 break 85148 } 85149 } 85150 r.ReadMapElemKey() 85151 yys3 := z.StringView(r.DecodeStringAsBytes()) 85152 r.ReadMapElemValue() 85153 switch yys3 { 85154 case "Namespace": 85155 if r.TryDecodeAsNil() { 85156 x.Namespace = "" 85157 } else { 85158 x.Namespace = (string)(r.DecodeString()) 85159 } 85160 case "JobID": 85161 if r.TryDecodeAsNil() { 85162 x.JobID = "" 85163 } else { 85164 x.JobID = (string)(r.DecodeString()) 85165 } 85166 case "ScalingEvents": 85167 if r.TryDecodeAsNil() { 85168 x.ScalingEvents = nil 85169 } else { 85170 if false { 85171 } else { 85172 h.decMapstringSlicePtrtoScalingEvent((*map[string][]*ScalingEvent)(&x.ScalingEvents), d) 85173 } 85174 } 85175 case "ModifyIndex": 85176 if r.TryDecodeAsNil() { 85177 x.ModifyIndex = 0 85178 } else { 85179 x.ModifyIndex = (uint64)(r.DecodeUint64()) 85180 } 85181 default: 85182 z.DecStructFieldNotFound(-1, yys3) 85183 } // end switch yys3 85184 } // end for yyj3 85185 r.ReadMapEnd() 85186 } 85187 85188 func (x *JobScalingEvents) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 85189 var h codecSelfer100 85190 z, r := codec1978.GenHelperDecoder(d) 85191 _, _, _ = h, z, r 85192 var yyj9 int 85193 var yyb9 bool 85194 var yyhl9 bool = l >= 0 85195 yyj9++ 85196 if yyhl9 { 85197 yyb9 = yyj9 > l 85198 } else { 85199 yyb9 = r.CheckBreak() 85200 } 85201 if yyb9 { 85202 r.ReadArrayEnd() 85203 return 85204 } 85205 r.ReadArrayElem() 85206 if r.TryDecodeAsNil() { 85207 x.Namespace = "" 85208 } else { 85209 x.Namespace = (string)(r.DecodeString()) 85210 } 85211 yyj9++ 85212 if yyhl9 { 85213 yyb9 = yyj9 > l 85214 } else { 85215 yyb9 = r.CheckBreak() 85216 } 85217 if yyb9 { 85218 r.ReadArrayEnd() 85219 return 85220 } 85221 r.ReadArrayElem() 85222 if r.TryDecodeAsNil() { 85223 x.JobID = "" 85224 } else { 85225 x.JobID = (string)(r.DecodeString()) 85226 } 85227 yyj9++ 85228 if yyhl9 { 85229 yyb9 = yyj9 > l 85230 } else { 85231 yyb9 = r.CheckBreak() 85232 } 85233 if yyb9 { 85234 r.ReadArrayEnd() 85235 return 85236 } 85237 r.ReadArrayElem() 85238 if r.TryDecodeAsNil() { 85239 x.ScalingEvents = nil 85240 } else { 85241 if false { 85242 } else { 85243 h.decMapstringSlicePtrtoScalingEvent((*map[string][]*ScalingEvent)(&x.ScalingEvents), d) 85244 } 85245 } 85246 yyj9++ 85247 if yyhl9 { 85248 yyb9 = yyj9 > l 85249 } else { 85250 yyb9 = r.CheckBreak() 85251 } 85252 if yyb9 { 85253 r.ReadArrayEnd() 85254 return 85255 } 85256 r.ReadArrayElem() 85257 if r.TryDecodeAsNil() { 85258 x.ModifyIndex = 0 85259 } else { 85260 x.ModifyIndex = (uint64)(r.DecodeUint64()) 85261 } 85262 for { 85263 yyj9++ 85264 if yyhl9 { 85265 yyb9 = yyj9 > l 85266 } else { 85267 yyb9 = r.CheckBreak() 85268 } 85269 if yyb9 { 85270 break 85271 } 85272 r.ReadArrayElem() 85273 z.DecStructFieldNotFound(yyj9-1, "") 85274 } 85275 r.ReadArrayEnd() 85276 } 85277 85278 func (x *ScalingEvent) CodecEncodeSelf(e *codec1978.Encoder) { 85279 var h codecSelfer100 85280 z, r := codec1978.GenHelperEncoder(e) 85281 _, _, _ = h, z, r 85282 if x == nil { 85283 r.EncodeNil() 85284 } else { 85285 if false { 85286 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 85287 z.EncExtension(x, yyxt1) 85288 } else { 85289 yysep2 := !z.EncBinary() 85290 yy2arr2 := z.EncBasicHandle().StructToArray 85291 _, _ = yysep2, yy2arr2 85292 const yyr2 bool = false // struct tag has 'toArray' 85293 if yyr2 || yy2arr2 { 85294 r.WriteArrayStart(7) 85295 } else { 85296 r.WriteMapStart(7) 85297 } 85298 if yyr2 || yy2arr2 { 85299 r.WriteArrayElem() 85300 if false { 85301 } else { 85302 r.EncodeInt(int64(x.Time)) 85303 } 85304 } else { 85305 r.WriteMapElemKey() 85306 if z.IsJSONHandle() { 85307 z.WriteStr("\"Time\"") 85308 } else { 85309 r.EncodeStringEnc(codecSelferCcUTF8100, `Time`) 85310 } 85311 r.WriteMapElemValue() 85312 if false { 85313 } else { 85314 r.EncodeInt(int64(x.Time)) 85315 } 85316 } 85317 var yyn6 bool 85318 if x.Count == nil { 85319 yyn6 = true 85320 goto LABEL6 85321 } 85322 LABEL6: 85323 if yyr2 || yy2arr2 { 85324 if yyn6 { 85325 r.WriteArrayElem() 85326 r.EncodeNil() 85327 } else { 85328 r.WriteArrayElem() 85329 if x.Count == nil { 85330 r.EncodeNil() 85331 } else { 85332 yy7 := *x.Count 85333 if false { 85334 } else { 85335 r.EncodeInt(int64(yy7)) 85336 } 85337 } 85338 } 85339 } else { 85340 r.WriteMapElemKey() 85341 if z.IsJSONHandle() { 85342 z.WriteStr("\"Count\"") 85343 } else { 85344 r.EncodeStringEnc(codecSelferCcUTF8100, `Count`) 85345 } 85346 r.WriteMapElemValue() 85347 if yyn6 { 85348 r.EncodeNil() 85349 } else { 85350 if x.Count == nil { 85351 r.EncodeNil() 85352 } else { 85353 yy9 := *x.Count 85354 if false { 85355 } else { 85356 r.EncodeInt(int64(yy9)) 85357 } 85358 } 85359 } 85360 } 85361 if yyr2 || yy2arr2 { 85362 r.WriteArrayElem() 85363 if false { 85364 } else { 85365 if z.EncBasicHandle().StringToRaw { 85366 r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) 85367 } else { 85368 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) 85369 } 85370 } 85371 } else { 85372 r.WriteMapElemKey() 85373 if z.IsJSONHandle() { 85374 z.WriteStr("\"Message\"") 85375 } else { 85376 r.EncodeStringEnc(codecSelferCcUTF8100, `Message`) 85377 } 85378 r.WriteMapElemValue() 85379 if false { 85380 } else { 85381 if z.EncBasicHandle().StringToRaw { 85382 r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) 85383 } else { 85384 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) 85385 } 85386 } 85387 } 85388 if yyr2 || yy2arr2 { 85389 r.WriteArrayElem() 85390 if false { 85391 } else { 85392 r.EncodeBool(bool(x.Error)) 85393 } 85394 } else { 85395 r.WriteMapElemKey() 85396 if z.IsJSONHandle() { 85397 z.WriteStr("\"Error\"") 85398 } else { 85399 r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) 85400 } 85401 r.WriteMapElemValue() 85402 if false { 85403 } else { 85404 r.EncodeBool(bool(x.Error)) 85405 } 85406 } 85407 if yyr2 || yy2arr2 { 85408 r.WriteArrayElem() 85409 if x.Meta == nil { 85410 r.EncodeNil() 85411 } else { 85412 if false { 85413 } else { 85414 z.F.EncMapStringIntfV(x.Meta, e) 85415 } 85416 } 85417 } else { 85418 r.WriteMapElemKey() 85419 if z.IsJSONHandle() { 85420 z.WriteStr("\"Meta\"") 85421 } else { 85422 r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) 85423 } 85424 r.WriteMapElemValue() 85425 if x.Meta == nil { 85426 r.EncodeNil() 85427 } else { 85428 if false { 85429 } else { 85430 z.F.EncMapStringIntfV(x.Meta, e) 85431 } 85432 } 85433 } 85434 var yyn20 bool 85435 if x.EvalID == nil { 85436 yyn20 = true 85437 goto LABEL20 85438 } 85439 LABEL20: 85440 if yyr2 || yy2arr2 { 85441 if yyn20 { 85442 r.WriteArrayElem() 85443 r.EncodeNil() 85444 } else { 85445 r.WriteArrayElem() 85446 if x.EvalID == nil { 85447 r.EncodeNil() 85448 } else { 85449 yy21 := *x.EvalID 85450 if false { 85451 } else { 85452 if z.EncBasicHandle().StringToRaw { 85453 r.EncodeStringBytesRaw(z.BytesView(string(yy21))) 85454 } else { 85455 r.EncodeStringEnc(codecSelferCcUTF8100, string(yy21)) 85456 } 85457 } 85458 } 85459 } 85460 } else { 85461 r.WriteMapElemKey() 85462 if z.IsJSONHandle() { 85463 z.WriteStr("\"EvalID\"") 85464 } else { 85465 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 85466 } 85467 r.WriteMapElemValue() 85468 if yyn20 { 85469 r.EncodeNil() 85470 } else { 85471 if x.EvalID == nil { 85472 r.EncodeNil() 85473 } else { 85474 yy23 := *x.EvalID 85475 if false { 85476 } else { 85477 if z.EncBasicHandle().StringToRaw { 85478 r.EncodeStringBytesRaw(z.BytesView(string(yy23))) 85479 } else { 85480 r.EncodeStringEnc(codecSelferCcUTF8100, string(yy23)) 85481 } 85482 } 85483 } 85484 } 85485 } 85486 if yyr2 || yy2arr2 { 85487 r.WriteArrayElem() 85488 if false { 85489 } else { 85490 r.EncodeUint(uint64(x.CreateIndex)) 85491 } 85492 } else { 85493 r.WriteMapElemKey() 85494 if z.IsJSONHandle() { 85495 z.WriteStr("\"CreateIndex\"") 85496 } else { 85497 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 85498 } 85499 r.WriteMapElemValue() 85500 if false { 85501 } else { 85502 r.EncodeUint(uint64(x.CreateIndex)) 85503 } 85504 } 85505 if yyr2 || yy2arr2 { 85506 r.WriteArrayEnd() 85507 } else { 85508 r.WriteMapEnd() 85509 } 85510 } 85511 } 85512 } 85513 85514 func (x *ScalingEvent) CodecDecodeSelf(d *codec1978.Decoder) { 85515 var h codecSelfer100 85516 z, r := codec1978.GenHelperDecoder(d) 85517 _, _, _ = h, z, r 85518 if false { 85519 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 85520 z.DecExtension(x, yyxt1) 85521 } else { 85522 yyct2 := r.ContainerType() 85523 if yyct2 == codecSelferValueTypeMap100 { 85524 yyl2 := r.ReadMapStart() 85525 if yyl2 == 0 { 85526 r.ReadMapEnd() 85527 } else { 85528 x.codecDecodeSelfFromMap(yyl2, d) 85529 } 85530 } else if yyct2 == codecSelferValueTypeArray100 { 85531 yyl2 := r.ReadArrayStart() 85532 if yyl2 == 0 { 85533 r.ReadArrayEnd() 85534 } else { 85535 x.codecDecodeSelfFromArray(yyl2, d) 85536 } 85537 } else { 85538 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 85539 } 85540 } 85541 } 85542 85543 func (x *ScalingEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 85544 var h codecSelfer100 85545 z, r := codec1978.GenHelperDecoder(d) 85546 _, _, _ = h, z, r 85547 var yyhl3 bool = l >= 0 85548 for yyj3 := 0; ; yyj3++ { 85549 if yyhl3 { 85550 if yyj3 >= l { 85551 break 85552 } 85553 } else { 85554 if r.CheckBreak() { 85555 break 85556 } 85557 } 85558 r.ReadMapElemKey() 85559 yys3 := z.StringView(r.DecodeStringAsBytes()) 85560 r.ReadMapElemValue() 85561 switch yys3 { 85562 case "Time": 85563 if r.TryDecodeAsNil() { 85564 x.Time = 0 85565 } else { 85566 x.Time = (int64)(r.DecodeInt64()) 85567 } 85568 case "Count": 85569 if r.TryDecodeAsNil() { 85570 if true && x.Count != nil { 85571 x.Count = nil 85572 } 85573 } else { 85574 if x.Count == nil { 85575 x.Count = new(int64) 85576 } 85577 85578 if false { 85579 } else { 85580 *x.Count = (int64)(r.DecodeInt64()) 85581 } 85582 } 85583 case "Message": 85584 if r.TryDecodeAsNil() { 85585 x.Message = "" 85586 } else { 85587 x.Message = (string)(r.DecodeString()) 85588 } 85589 case "Error": 85590 if r.TryDecodeAsNil() { 85591 x.Error = false 85592 } else { 85593 x.Error = (bool)(r.DecodeBool()) 85594 } 85595 case "Meta": 85596 if r.TryDecodeAsNil() { 85597 x.Meta = nil 85598 } else { 85599 if false { 85600 } else { 85601 z.F.DecMapStringIntfX(&x.Meta, d) 85602 } 85603 } 85604 case "EvalID": 85605 if r.TryDecodeAsNil() { 85606 if true && x.EvalID != nil { 85607 x.EvalID = nil 85608 } 85609 } else { 85610 if x.EvalID == nil { 85611 x.EvalID = new(string) 85612 } 85613 85614 if false { 85615 } else { 85616 *x.EvalID = (string)(r.DecodeString()) 85617 } 85618 } 85619 case "CreateIndex": 85620 if r.TryDecodeAsNil() { 85621 x.CreateIndex = 0 85622 } else { 85623 x.CreateIndex = (uint64)(r.DecodeUint64()) 85624 } 85625 default: 85626 z.DecStructFieldNotFound(-1, yys3) 85627 } // end switch yys3 85628 } // end for yyj3 85629 r.ReadMapEnd() 85630 } 85631 85632 func (x *ScalingEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 85633 var h codecSelfer100 85634 z, r := codec1978.GenHelperDecoder(d) 85635 _, _, _ = h, z, r 85636 var yyj14 int 85637 var yyb14 bool 85638 var yyhl14 bool = l >= 0 85639 yyj14++ 85640 if yyhl14 { 85641 yyb14 = yyj14 > l 85642 } else { 85643 yyb14 = r.CheckBreak() 85644 } 85645 if yyb14 { 85646 r.ReadArrayEnd() 85647 return 85648 } 85649 r.ReadArrayElem() 85650 if r.TryDecodeAsNil() { 85651 x.Time = 0 85652 } else { 85653 x.Time = (int64)(r.DecodeInt64()) 85654 } 85655 yyj14++ 85656 if yyhl14 { 85657 yyb14 = yyj14 > l 85658 } else { 85659 yyb14 = r.CheckBreak() 85660 } 85661 if yyb14 { 85662 r.ReadArrayEnd() 85663 return 85664 } 85665 r.ReadArrayElem() 85666 if r.TryDecodeAsNil() { 85667 if true && x.Count != nil { 85668 x.Count = nil 85669 } 85670 } else { 85671 if x.Count == nil { 85672 x.Count = new(int64) 85673 } 85674 85675 if false { 85676 } else { 85677 *x.Count = (int64)(r.DecodeInt64()) 85678 } 85679 } 85680 yyj14++ 85681 if yyhl14 { 85682 yyb14 = yyj14 > l 85683 } else { 85684 yyb14 = r.CheckBreak() 85685 } 85686 if yyb14 { 85687 r.ReadArrayEnd() 85688 return 85689 } 85690 r.ReadArrayElem() 85691 if r.TryDecodeAsNil() { 85692 x.Message = "" 85693 } else { 85694 x.Message = (string)(r.DecodeString()) 85695 } 85696 yyj14++ 85697 if yyhl14 { 85698 yyb14 = yyj14 > l 85699 } else { 85700 yyb14 = r.CheckBreak() 85701 } 85702 if yyb14 { 85703 r.ReadArrayEnd() 85704 return 85705 } 85706 r.ReadArrayElem() 85707 if r.TryDecodeAsNil() { 85708 x.Error = false 85709 } else { 85710 x.Error = (bool)(r.DecodeBool()) 85711 } 85712 yyj14++ 85713 if yyhl14 { 85714 yyb14 = yyj14 > l 85715 } else { 85716 yyb14 = r.CheckBreak() 85717 } 85718 if yyb14 { 85719 r.ReadArrayEnd() 85720 return 85721 } 85722 r.ReadArrayElem() 85723 if r.TryDecodeAsNil() { 85724 x.Meta = nil 85725 } else { 85726 if false { 85727 } else { 85728 z.F.DecMapStringIntfX(&x.Meta, d) 85729 } 85730 } 85731 yyj14++ 85732 if yyhl14 { 85733 yyb14 = yyj14 > l 85734 } else { 85735 yyb14 = r.CheckBreak() 85736 } 85737 if yyb14 { 85738 r.ReadArrayEnd() 85739 return 85740 } 85741 r.ReadArrayElem() 85742 if r.TryDecodeAsNil() { 85743 if true && x.EvalID != nil { 85744 x.EvalID = nil 85745 } 85746 } else { 85747 if x.EvalID == nil { 85748 x.EvalID = new(string) 85749 } 85750 85751 if false { 85752 } else { 85753 *x.EvalID = (string)(r.DecodeString()) 85754 } 85755 } 85756 yyj14++ 85757 if yyhl14 { 85758 yyb14 = yyj14 > l 85759 } else { 85760 yyb14 = r.CheckBreak() 85761 } 85762 if yyb14 { 85763 r.ReadArrayEnd() 85764 return 85765 } 85766 r.ReadArrayElem() 85767 if r.TryDecodeAsNil() { 85768 x.CreateIndex = 0 85769 } else { 85770 x.CreateIndex = (uint64)(r.DecodeUint64()) 85771 } 85772 for { 85773 yyj14++ 85774 if yyhl14 { 85775 yyb14 = yyj14 > l 85776 } else { 85777 yyb14 = r.CheckBreak() 85778 } 85779 if yyb14 { 85780 break 85781 } 85782 r.ReadArrayElem() 85783 z.DecStructFieldNotFound(yyj14-1, "") 85784 } 85785 r.ReadArrayEnd() 85786 } 85787 85788 func (x *ScalingEventRequest) CodecEncodeSelf(e *codec1978.Encoder) { 85789 var h codecSelfer100 85790 z, r := codec1978.GenHelperEncoder(e) 85791 _, _, _ = h, z, r 85792 if x == nil { 85793 r.EncodeNil() 85794 } else { 85795 if false { 85796 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 85797 z.EncExtension(x, yyxt1) 85798 } else { 85799 yysep2 := !z.EncBinary() 85800 yy2arr2 := z.EncBasicHandle().StructToArray 85801 _, _ = yysep2, yy2arr2 85802 const yyr2 bool = false // struct tag has 'toArray' 85803 if yyr2 || yy2arr2 { 85804 r.WriteArrayStart(4) 85805 } else { 85806 r.WriteMapStart(4) 85807 } 85808 if yyr2 || yy2arr2 { 85809 r.WriteArrayElem() 85810 if false { 85811 } else { 85812 if z.EncBasicHandle().StringToRaw { 85813 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 85814 } else { 85815 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 85816 } 85817 } 85818 } else { 85819 r.WriteMapElemKey() 85820 if z.IsJSONHandle() { 85821 z.WriteStr("\"Namespace\"") 85822 } else { 85823 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 85824 } 85825 r.WriteMapElemValue() 85826 if false { 85827 } else { 85828 if z.EncBasicHandle().StringToRaw { 85829 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 85830 } else { 85831 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 85832 } 85833 } 85834 } 85835 if yyr2 || yy2arr2 { 85836 r.WriteArrayElem() 85837 if false { 85838 } else { 85839 if z.EncBasicHandle().StringToRaw { 85840 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 85841 } else { 85842 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 85843 } 85844 } 85845 } else { 85846 r.WriteMapElemKey() 85847 if z.IsJSONHandle() { 85848 z.WriteStr("\"JobID\"") 85849 } else { 85850 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 85851 } 85852 r.WriteMapElemValue() 85853 if false { 85854 } else { 85855 if z.EncBasicHandle().StringToRaw { 85856 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 85857 } else { 85858 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 85859 } 85860 } 85861 } 85862 if yyr2 || yy2arr2 { 85863 r.WriteArrayElem() 85864 if false { 85865 } else { 85866 if z.EncBasicHandle().StringToRaw { 85867 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) 85868 } else { 85869 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) 85870 } 85871 } 85872 } else { 85873 r.WriteMapElemKey() 85874 if z.IsJSONHandle() { 85875 z.WriteStr("\"TaskGroup\"") 85876 } else { 85877 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroup`) 85878 } 85879 r.WriteMapElemValue() 85880 if false { 85881 } else { 85882 if z.EncBasicHandle().StringToRaw { 85883 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) 85884 } else { 85885 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) 85886 } 85887 } 85888 } 85889 var yyn12 bool 85890 if x.ScalingEvent == nil { 85891 yyn12 = true 85892 goto LABEL12 85893 } 85894 LABEL12: 85895 if yyr2 || yy2arr2 { 85896 if yyn12 { 85897 r.WriteArrayElem() 85898 r.EncodeNil() 85899 } else { 85900 r.WriteArrayElem() 85901 if x.ScalingEvent == nil { 85902 r.EncodeNil() 85903 } else { 85904 x.ScalingEvent.CodecEncodeSelf(e) 85905 } 85906 } 85907 } else { 85908 r.WriteMapElemKey() 85909 if z.IsJSONHandle() { 85910 z.WriteStr("\"ScalingEvent\"") 85911 } else { 85912 r.EncodeStringEnc(codecSelferCcUTF8100, `ScalingEvent`) 85913 } 85914 r.WriteMapElemValue() 85915 if yyn12 { 85916 r.EncodeNil() 85917 } else { 85918 if x.ScalingEvent == nil { 85919 r.EncodeNil() 85920 } else { 85921 x.ScalingEvent.CodecEncodeSelf(e) 85922 } 85923 } 85924 } 85925 if yyr2 || yy2arr2 { 85926 r.WriteArrayEnd() 85927 } else { 85928 r.WriteMapEnd() 85929 } 85930 } 85931 } 85932 } 85933 85934 func (x *ScalingEventRequest) CodecDecodeSelf(d *codec1978.Decoder) { 85935 var h codecSelfer100 85936 z, r := codec1978.GenHelperDecoder(d) 85937 _, _, _ = h, z, r 85938 if false { 85939 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 85940 z.DecExtension(x, yyxt1) 85941 } else { 85942 yyct2 := r.ContainerType() 85943 if yyct2 == codecSelferValueTypeMap100 { 85944 yyl2 := r.ReadMapStart() 85945 if yyl2 == 0 { 85946 r.ReadMapEnd() 85947 } else { 85948 x.codecDecodeSelfFromMap(yyl2, d) 85949 } 85950 } else if yyct2 == codecSelferValueTypeArray100 { 85951 yyl2 := r.ReadArrayStart() 85952 if yyl2 == 0 { 85953 r.ReadArrayEnd() 85954 } else { 85955 x.codecDecodeSelfFromArray(yyl2, d) 85956 } 85957 } else { 85958 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 85959 } 85960 } 85961 } 85962 85963 func (x *ScalingEventRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 85964 var h codecSelfer100 85965 z, r := codec1978.GenHelperDecoder(d) 85966 _, _, _ = h, z, r 85967 var yyhl3 bool = l >= 0 85968 for yyj3 := 0; ; yyj3++ { 85969 if yyhl3 { 85970 if yyj3 >= l { 85971 break 85972 } 85973 } else { 85974 if r.CheckBreak() { 85975 break 85976 } 85977 } 85978 r.ReadMapElemKey() 85979 yys3 := z.StringView(r.DecodeStringAsBytes()) 85980 r.ReadMapElemValue() 85981 switch yys3 { 85982 case "Namespace": 85983 if r.TryDecodeAsNil() { 85984 x.Namespace = "" 85985 } else { 85986 x.Namespace = (string)(r.DecodeString()) 85987 } 85988 case "JobID": 85989 if r.TryDecodeAsNil() { 85990 x.JobID = "" 85991 } else { 85992 x.JobID = (string)(r.DecodeString()) 85993 } 85994 case "TaskGroup": 85995 if r.TryDecodeAsNil() { 85996 x.TaskGroup = "" 85997 } else { 85998 x.TaskGroup = (string)(r.DecodeString()) 85999 } 86000 case "ScalingEvent": 86001 if r.TryDecodeAsNil() { 86002 if true && x.ScalingEvent != nil { 86003 x.ScalingEvent = nil 86004 } 86005 } else { 86006 if x.ScalingEvent == nil { 86007 x.ScalingEvent = new(ScalingEvent) 86008 } 86009 86010 x.ScalingEvent.CodecDecodeSelf(d) 86011 } 86012 default: 86013 z.DecStructFieldNotFound(-1, yys3) 86014 } // end switch yys3 86015 } // end for yyj3 86016 r.ReadMapEnd() 86017 } 86018 86019 func (x *ScalingEventRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 86020 var h codecSelfer100 86021 z, r := codec1978.GenHelperDecoder(d) 86022 _, _, _ = h, z, r 86023 var yyj8 int 86024 var yyb8 bool 86025 var yyhl8 bool = l >= 0 86026 yyj8++ 86027 if yyhl8 { 86028 yyb8 = yyj8 > l 86029 } else { 86030 yyb8 = r.CheckBreak() 86031 } 86032 if yyb8 { 86033 r.ReadArrayEnd() 86034 return 86035 } 86036 r.ReadArrayElem() 86037 if r.TryDecodeAsNil() { 86038 x.Namespace = "" 86039 } else { 86040 x.Namespace = (string)(r.DecodeString()) 86041 } 86042 yyj8++ 86043 if yyhl8 { 86044 yyb8 = yyj8 > l 86045 } else { 86046 yyb8 = r.CheckBreak() 86047 } 86048 if yyb8 { 86049 r.ReadArrayEnd() 86050 return 86051 } 86052 r.ReadArrayElem() 86053 if r.TryDecodeAsNil() { 86054 x.JobID = "" 86055 } else { 86056 x.JobID = (string)(r.DecodeString()) 86057 } 86058 yyj8++ 86059 if yyhl8 { 86060 yyb8 = yyj8 > l 86061 } else { 86062 yyb8 = r.CheckBreak() 86063 } 86064 if yyb8 { 86065 r.ReadArrayEnd() 86066 return 86067 } 86068 r.ReadArrayElem() 86069 if r.TryDecodeAsNil() { 86070 x.TaskGroup = "" 86071 } else { 86072 x.TaskGroup = (string)(r.DecodeString()) 86073 } 86074 yyj8++ 86075 if yyhl8 { 86076 yyb8 = yyj8 > l 86077 } else { 86078 yyb8 = r.CheckBreak() 86079 } 86080 if yyb8 { 86081 r.ReadArrayEnd() 86082 return 86083 } 86084 r.ReadArrayElem() 86085 if r.TryDecodeAsNil() { 86086 if true && x.ScalingEvent != nil { 86087 x.ScalingEvent = nil 86088 } 86089 } else { 86090 if x.ScalingEvent == nil { 86091 x.ScalingEvent = new(ScalingEvent) 86092 } 86093 86094 x.ScalingEvent.CodecDecodeSelf(d) 86095 } 86096 for { 86097 yyj8++ 86098 if yyhl8 { 86099 yyb8 = yyj8 > l 86100 } else { 86101 yyb8 = r.CheckBreak() 86102 } 86103 if yyb8 { 86104 break 86105 } 86106 r.ReadArrayElem() 86107 z.DecStructFieldNotFound(yyj8-1, "") 86108 } 86109 r.ReadArrayEnd() 86110 } 86111 86112 func (x *ScalingPolicy) CodecEncodeSelf(e *codec1978.Encoder) { 86113 var h codecSelfer100 86114 z, r := codec1978.GenHelperEncoder(e) 86115 _, _, _ = h, z, r 86116 if x == nil { 86117 r.EncodeNil() 86118 } else { 86119 if false { 86120 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 86121 z.EncExtension(x, yyxt1) 86122 } else { 86123 yysep2 := !z.EncBinary() 86124 yy2arr2 := z.EncBasicHandle().StructToArray 86125 _, _ = yysep2, yy2arr2 86126 const yyr2 bool = false // struct tag has 'toArray' 86127 if yyr2 || yy2arr2 { 86128 r.WriteArrayStart(8) 86129 } else { 86130 r.WriteMapStart(8) 86131 } 86132 if yyr2 || yy2arr2 { 86133 r.WriteArrayElem() 86134 if false { 86135 } else { 86136 if z.EncBasicHandle().StringToRaw { 86137 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 86138 } else { 86139 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 86140 } 86141 } 86142 } else { 86143 r.WriteMapElemKey() 86144 if z.IsJSONHandle() { 86145 z.WriteStr("\"ID\"") 86146 } else { 86147 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 86148 } 86149 r.WriteMapElemValue() 86150 if false { 86151 } else { 86152 if z.EncBasicHandle().StringToRaw { 86153 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 86154 } else { 86155 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 86156 } 86157 } 86158 } 86159 if yyr2 || yy2arr2 { 86160 r.WriteArrayElem() 86161 if x.Target == nil { 86162 r.EncodeNil() 86163 } else { 86164 if false { 86165 } else { 86166 z.F.EncMapStringStringV(x.Target, e) 86167 } 86168 } 86169 } else { 86170 r.WriteMapElemKey() 86171 if z.IsJSONHandle() { 86172 z.WriteStr("\"Target\"") 86173 } else { 86174 r.EncodeStringEnc(codecSelferCcUTF8100, `Target`) 86175 } 86176 r.WriteMapElemValue() 86177 if x.Target == nil { 86178 r.EncodeNil() 86179 } else { 86180 if false { 86181 } else { 86182 z.F.EncMapStringStringV(x.Target, e) 86183 } 86184 } 86185 } 86186 if yyr2 || yy2arr2 { 86187 r.WriteArrayElem() 86188 if x.Policy == nil { 86189 r.EncodeNil() 86190 } else { 86191 if false { 86192 } else { 86193 z.F.EncMapStringIntfV(x.Policy, e) 86194 } 86195 } 86196 } else { 86197 r.WriteMapElemKey() 86198 if z.IsJSONHandle() { 86199 z.WriteStr("\"Policy\"") 86200 } else { 86201 r.EncodeStringEnc(codecSelferCcUTF8100, `Policy`) 86202 } 86203 r.WriteMapElemValue() 86204 if x.Policy == nil { 86205 r.EncodeNil() 86206 } else { 86207 if false { 86208 } else { 86209 z.F.EncMapStringIntfV(x.Policy, e) 86210 } 86211 } 86212 } 86213 if yyr2 || yy2arr2 { 86214 r.WriteArrayElem() 86215 if false { 86216 } else { 86217 r.EncodeInt(int64(x.Min)) 86218 } 86219 } else { 86220 r.WriteMapElemKey() 86221 if z.IsJSONHandle() { 86222 z.WriteStr("\"Min\"") 86223 } else { 86224 r.EncodeStringEnc(codecSelferCcUTF8100, `Min`) 86225 } 86226 r.WriteMapElemValue() 86227 if false { 86228 } else { 86229 r.EncodeInt(int64(x.Min)) 86230 } 86231 } 86232 if yyr2 || yy2arr2 { 86233 r.WriteArrayElem() 86234 if false { 86235 } else { 86236 r.EncodeInt(int64(x.Max)) 86237 } 86238 } else { 86239 r.WriteMapElemKey() 86240 if z.IsJSONHandle() { 86241 z.WriteStr("\"Max\"") 86242 } else { 86243 r.EncodeStringEnc(codecSelferCcUTF8100, `Max`) 86244 } 86245 r.WriteMapElemValue() 86246 if false { 86247 } else { 86248 r.EncodeInt(int64(x.Max)) 86249 } 86250 } 86251 if yyr2 || yy2arr2 { 86252 r.WriteArrayElem() 86253 if false { 86254 } else { 86255 r.EncodeBool(bool(x.Enabled)) 86256 } 86257 } else { 86258 r.WriteMapElemKey() 86259 if z.IsJSONHandle() { 86260 z.WriteStr("\"Enabled\"") 86261 } else { 86262 r.EncodeStringEnc(codecSelferCcUTF8100, `Enabled`) 86263 } 86264 r.WriteMapElemValue() 86265 if false { 86266 } else { 86267 r.EncodeBool(bool(x.Enabled)) 86268 } 86269 } 86270 if yyr2 || yy2arr2 { 86271 r.WriteArrayElem() 86272 if false { 86273 } else { 86274 r.EncodeUint(uint64(x.CreateIndex)) 86275 } 86276 } else { 86277 r.WriteMapElemKey() 86278 if z.IsJSONHandle() { 86279 z.WriteStr("\"CreateIndex\"") 86280 } else { 86281 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 86282 } 86283 r.WriteMapElemValue() 86284 if false { 86285 } else { 86286 r.EncodeUint(uint64(x.CreateIndex)) 86287 } 86288 } 86289 if yyr2 || yy2arr2 { 86290 r.WriteArrayElem() 86291 if false { 86292 } else { 86293 r.EncodeUint(uint64(x.ModifyIndex)) 86294 } 86295 } else { 86296 r.WriteMapElemKey() 86297 if z.IsJSONHandle() { 86298 z.WriteStr("\"ModifyIndex\"") 86299 } else { 86300 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 86301 } 86302 r.WriteMapElemValue() 86303 if false { 86304 } else { 86305 r.EncodeUint(uint64(x.ModifyIndex)) 86306 } 86307 } 86308 if yyr2 || yy2arr2 { 86309 r.WriteArrayEnd() 86310 } else { 86311 r.WriteMapEnd() 86312 } 86313 } 86314 } 86315 } 86316 86317 func (x *ScalingPolicy) CodecDecodeSelf(d *codec1978.Decoder) { 86318 var h codecSelfer100 86319 z, r := codec1978.GenHelperDecoder(d) 86320 _, _, _ = h, z, r 86321 if false { 86322 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 86323 z.DecExtension(x, yyxt1) 86324 } else { 86325 yyct2 := r.ContainerType() 86326 if yyct2 == codecSelferValueTypeMap100 { 86327 yyl2 := r.ReadMapStart() 86328 if yyl2 == 0 { 86329 r.ReadMapEnd() 86330 } else { 86331 x.codecDecodeSelfFromMap(yyl2, d) 86332 } 86333 } else if yyct2 == codecSelferValueTypeArray100 { 86334 yyl2 := r.ReadArrayStart() 86335 if yyl2 == 0 { 86336 r.ReadArrayEnd() 86337 } else { 86338 x.codecDecodeSelfFromArray(yyl2, d) 86339 } 86340 } else { 86341 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 86342 } 86343 } 86344 } 86345 86346 func (x *ScalingPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 86347 var h codecSelfer100 86348 z, r := codec1978.GenHelperDecoder(d) 86349 _, _, _ = h, z, r 86350 var yyhl3 bool = l >= 0 86351 for yyj3 := 0; ; yyj3++ { 86352 if yyhl3 { 86353 if yyj3 >= l { 86354 break 86355 } 86356 } else { 86357 if r.CheckBreak() { 86358 break 86359 } 86360 } 86361 r.ReadMapElemKey() 86362 yys3 := z.StringView(r.DecodeStringAsBytes()) 86363 r.ReadMapElemValue() 86364 switch yys3 { 86365 case "ID": 86366 if r.TryDecodeAsNil() { 86367 x.ID = "" 86368 } else { 86369 x.ID = (string)(r.DecodeString()) 86370 } 86371 case "Target": 86372 if r.TryDecodeAsNil() { 86373 x.Target = nil 86374 } else { 86375 if false { 86376 } else { 86377 z.F.DecMapStringStringX(&x.Target, d) 86378 } 86379 } 86380 case "Policy": 86381 if r.TryDecodeAsNil() { 86382 x.Policy = nil 86383 } else { 86384 if false { 86385 } else { 86386 z.F.DecMapStringIntfX(&x.Policy, d) 86387 } 86388 } 86389 case "Min": 86390 if r.TryDecodeAsNil() { 86391 x.Min = 0 86392 } else { 86393 x.Min = (int64)(r.DecodeInt64()) 86394 } 86395 case "Max": 86396 if r.TryDecodeAsNil() { 86397 x.Max = 0 86398 } else { 86399 x.Max = (int64)(r.DecodeInt64()) 86400 } 86401 case "Enabled": 86402 if r.TryDecodeAsNil() { 86403 x.Enabled = false 86404 } else { 86405 x.Enabled = (bool)(r.DecodeBool()) 86406 } 86407 case "CreateIndex": 86408 if r.TryDecodeAsNil() { 86409 x.CreateIndex = 0 86410 } else { 86411 x.CreateIndex = (uint64)(r.DecodeUint64()) 86412 } 86413 case "ModifyIndex": 86414 if r.TryDecodeAsNil() { 86415 x.ModifyIndex = 0 86416 } else { 86417 x.ModifyIndex = (uint64)(r.DecodeUint64()) 86418 } 86419 default: 86420 z.DecStructFieldNotFound(-1, yys3) 86421 } // end switch yys3 86422 } // end for yyj3 86423 r.ReadMapEnd() 86424 } 86425 86426 func (x *ScalingPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 86427 var h codecSelfer100 86428 z, r := codec1978.GenHelperDecoder(d) 86429 _, _, _ = h, z, r 86430 var yyj14 int 86431 var yyb14 bool 86432 var yyhl14 bool = l >= 0 86433 yyj14++ 86434 if yyhl14 { 86435 yyb14 = yyj14 > l 86436 } else { 86437 yyb14 = r.CheckBreak() 86438 } 86439 if yyb14 { 86440 r.ReadArrayEnd() 86441 return 86442 } 86443 r.ReadArrayElem() 86444 if r.TryDecodeAsNil() { 86445 x.ID = "" 86446 } else { 86447 x.ID = (string)(r.DecodeString()) 86448 } 86449 yyj14++ 86450 if yyhl14 { 86451 yyb14 = yyj14 > l 86452 } else { 86453 yyb14 = r.CheckBreak() 86454 } 86455 if yyb14 { 86456 r.ReadArrayEnd() 86457 return 86458 } 86459 r.ReadArrayElem() 86460 if r.TryDecodeAsNil() { 86461 x.Target = nil 86462 } else { 86463 if false { 86464 } else { 86465 z.F.DecMapStringStringX(&x.Target, d) 86466 } 86467 } 86468 yyj14++ 86469 if yyhl14 { 86470 yyb14 = yyj14 > l 86471 } else { 86472 yyb14 = r.CheckBreak() 86473 } 86474 if yyb14 { 86475 r.ReadArrayEnd() 86476 return 86477 } 86478 r.ReadArrayElem() 86479 if r.TryDecodeAsNil() { 86480 x.Policy = nil 86481 } else { 86482 if false { 86483 } else { 86484 z.F.DecMapStringIntfX(&x.Policy, d) 86485 } 86486 } 86487 yyj14++ 86488 if yyhl14 { 86489 yyb14 = yyj14 > l 86490 } else { 86491 yyb14 = r.CheckBreak() 86492 } 86493 if yyb14 { 86494 r.ReadArrayEnd() 86495 return 86496 } 86497 r.ReadArrayElem() 86498 if r.TryDecodeAsNil() { 86499 x.Min = 0 86500 } else { 86501 x.Min = (int64)(r.DecodeInt64()) 86502 } 86503 yyj14++ 86504 if yyhl14 { 86505 yyb14 = yyj14 > l 86506 } else { 86507 yyb14 = r.CheckBreak() 86508 } 86509 if yyb14 { 86510 r.ReadArrayEnd() 86511 return 86512 } 86513 r.ReadArrayElem() 86514 if r.TryDecodeAsNil() { 86515 x.Max = 0 86516 } else { 86517 x.Max = (int64)(r.DecodeInt64()) 86518 } 86519 yyj14++ 86520 if yyhl14 { 86521 yyb14 = yyj14 > l 86522 } else { 86523 yyb14 = r.CheckBreak() 86524 } 86525 if yyb14 { 86526 r.ReadArrayEnd() 86527 return 86528 } 86529 r.ReadArrayElem() 86530 if r.TryDecodeAsNil() { 86531 x.Enabled = false 86532 } else { 86533 x.Enabled = (bool)(r.DecodeBool()) 86534 } 86535 yyj14++ 86536 if yyhl14 { 86537 yyb14 = yyj14 > l 86538 } else { 86539 yyb14 = r.CheckBreak() 86540 } 86541 if yyb14 { 86542 r.ReadArrayEnd() 86543 return 86544 } 86545 r.ReadArrayElem() 86546 if r.TryDecodeAsNil() { 86547 x.CreateIndex = 0 86548 } else { 86549 x.CreateIndex = (uint64)(r.DecodeUint64()) 86550 } 86551 yyj14++ 86552 if yyhl14 { 86553 yyb14 = yyj14 > l 86554 } else { 86555 yyb14 = r.CheckBreak() 86556 } 86557 if yyb14 { 86558 r.ReadArrayEnd() 86559 return 86560 } 86561 r.ReadArrayElem() 86562 if r.TryDecodeAsNil() { 86563 x.ModifyIndex = 0 86564 } else { 86565 x.ModifyIndex = (uint64)(r.DecodeUint64()) 86566 } 86567 for { 86568 yyj14++ 86569 if yyhl14 { 86570 yyb14 = yyj14 > l 86571 } else { 86572 yyb14 = r.CheckBreak() 86573 } 86574 if yyb14 { 86575 break 86576 } 86577 r.ReadArrayElem() 86578 z.DecStructFieldNotFound(yyj14-1, "") 86579 } 86580 r.ReadArrayEnd() 86581 } 86582 86583 func (x *ScalingPolicyListStub) CodecEncodeSelf(e *codec1978.Encoder) { 86584 var h codecSelfer100 86585 z, r := codec1978.GenHelperEncoder(e) 86586 _, _, _ = h, z, r 86587 if x == nil { 86588 r.EncodeNil() 86589 } else { 86590 if false { 86591 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 86592 z.EncExtension(x, yyxt1) 86593 } else { 86594 yysep2 := !z.EncBinary() 86595 yy2arr2 := z.EncBasicHandle().StructToArray 86596 _, _ = yysep2, yy2arr2 86597 const yyr2 bool = false // struct tag has 'toArray' 86598 if yyr2 || yy2arr2 { 86599 r.WriteArrayStart(5) 86600 } else { 86601 r.WriteMapStart(5) 86602 } 86603 if yyr2 || yy2arr2 { 86604 r.WriteArrayElem() 86605 if false { 86606 } else { 86607 if z.EncBasicHandle().StringToRaw { 86608 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 86609 } else { 86610 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 86611 } 86612 } 86613 } else { 86614 r.WriteMapElemKey() 86615 if z.IsJSONHandle() { 86616 z.WriteStr("\"ID\"") 86617 } else { 86618 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 86619 } 86620 r.WriteMapElemValue() 86621 if false { 86622 } else { 86623 if z.EncBasicHandle().StringToRaw { 86624 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 86625 } else { 86626 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 86627 } 86628 } 86629 } 86630 if yyr2 || yy2arr2 { 86631 r.WriteArrayElem() 86632 if false { 86633 } else { 86634 r.EncodeBool(bool(x.Enabled)) 86635 } 86636 } else { 86637 r.WriteMapElemKey() 86638 if z.IsJSONHandle() { 86639 z.WriteStr("\"Enabled\"") 86640 } else { 86641 r.EncodeStringEnc(codecSelferCcUTF8100, `Enabled`) 86642 } 86643 r.WriteMapElemValue() 86644 if false { 86645 } else { 86646 r.EncodeBool(bool(x.Enabled)) 86647 } 86648 } 86649 if yyr2 || yy2arr2 { 86650 r.WriteArrayElem() 86651 if x.Target == nil { 86652 r.EncodeNil() 86653 } else { 86654 if false { 86655 } else { 86656 z.F.EncMapStringStringV(x.Target, e) 86657 } 86658 } 86659 } else { 86660 r.WriteMapElemKey() 86661 if z.IsJSONHandle() { 86662 z.WriteStr("\"Target\"") 86663 } else { 86664 r.EncodeStringEnc(codecSelferCcUTF8100, `Target`) 86665 } 86666 r.WriteMapElemValue() 86667 if x.Target == nil { 86668 r.EncodeNil() 86669 } else { 86670 if false { 86671 } else { 86672 z.F.EncMapStringStringV(x.Target, e) 86673 } 86674 } 86675 } 86676 if yyr2 || yy2arr2 { 86677 r.WriteArrayElem() 86678 if false { 86679 } else { 86680 r.EncodeUint(uint64(x.CreateIndex)) 86681 } 86682 } else { 86683 r.WriteMapElemKey() 86684 if z.IsJSONHandle() { 86685 z.WriteStr("\"CreateIndex\"") 86686 } else { 86687 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 86688 } 86689 r.WriteMapElemValue() 86690 if false { 86691 } else { 86692 r.EncodeUint(uint64(x.CreateIndex)) 86693 } 86694 } 86695 if yyr2 || yy2arr2 { 86696 r.WriteArrayElem() 86697 if false { 86698 } else { 86699 r.EncodeUint(uint64(x.ModifyIndex)) 86700 } 86701 } else { 86702 r.WriteMapElemKey() 86703 if z.IsJSONHandle() { 86704 z.WriteStr("\"ModifyIndex\"") 86705 } else { 86706 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 86707 } 86708 r.WriteMapElemValue() 86709 if false { 86710 } else { 86711 r.EncodeUint(uint64(x.ModifyIndex)) 86712 } 86713 } 86714 if yyr2 || yy2arr2 { 86715 r.WriteArrayEnd() 86716 } else { 86717 r.WriteMapEnd() 86718 } 86719 } 86720 } 86721 } 86722 86723 func (x *ScalingPolicyListStub) CodecDecodeSelf(d *codec1978.Decoder) { 86724 var h codecSelfer100 86725 z, r := codec1978.GenHelperDecoder(d) 86726 _, _, _ = h, z, r 86727 if false { 86728 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 86729 z.DecExtension(x, yyxt1) 86730 } else { 86731 yyct2 := r.ContainerType() 86732 if yyct2 == codecSelferValueTypeMap100 { 86733 yyl2 := r.ReadMapStart() 86734 if yyl2 == 0 { 86735 r.ReadMapEnd() 86736 } else { 86737 x.codecDecodeSelfFromMap(yyl2, d) 86738 } 86739 } else if yyct2 == codecSelferValueTypeArray100 { 86740 yyl2 := r.ReadArrayStart() 86741 if yyl2 == 0 { 86742 r.ReadArrayEnd() 86743 } else { 86744 x.codecDecodeSelfFromArray(yyl2, d) 86745 } 86746 } else { 86747 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 86748 } 86749 } 86750 } 86751 86752 func (x *ScalingPolicyListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 86753 var h codecSelfer100 86754 z, r := codec1978.GenHelperDecoder(d) 86755 _, _, _ = h, z, r 86756 var yyhl3 bool = l >= 0 86757 for yyj3 := 0; ; yyj3++ { 86758 if yyhl3 { 86759 if yyj3 >= l { 86760 break 86761 } 86762 } else { 86763 if r.CheckBreak() { 86764 break 86765 } 86766 } 86767 r.ReadMapElemKey() 86768 yys3 := z.StringView(r.DecodeStringAsBytes()) 86769 r.ReadMapElemValue() 86770 switch yys3 { 86771 case "ID": 86772 if r.TryDecodeAsNil() { 86773 x.ID = "" 86774 } else { 86775 x.ID = (string)(r.DecodeString()) 86776 } 86777 case "Enabled": 86778 if r.TryDecodeAsNil() { 86779 x.Enabled = false 86780 } else { 86781 x.Enabled = (bool)(r.DecodeBool()) 86782 } 86783 case "Target": 86784 if r.TryDecodeAsNil() { 86785 x.Target = nil 86786 } else { 86787 if false { 86788 } else { 86789 z.F.DecMapStringStringX(&x.Target, d) 86790 } 86791 } 86792 case "CreateIndex": 86793 if r.TryDecodeAsNil() { 86794 x.CreateIndex = 0 86795 } else { 86796 x.CreateIndex = (uint64)(r.DecodeUint64()) 86797 } 86798 case "ModifyIndex": 86799 if r.TryDecodeAsNil() { 86800 x.ModifyIndex = 0 86801 } else { 86802 x.ModifyIndex = (uint64)(r.DecodeUint64()) 86803 } 86804 default: 86805 z.DecStructFieldNotFound(-1, yys3) 86806 } // end switch yys3 86807 } // end for yyj3 86808 r.ReadMapEnd() 86809 } 86810 86811 func (x *ScalingPolicyListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 86812 var h codecSelfer100 86813 z, r := codec1978.GenHelperDecoder(d) 86814 _, _, _ = h, z, r 86815 var yyj10 int 86816 var yyb10 bool 86817 var yyhl10 bool = l >= 0 86818 yyj10++ 86819 if yyhl10 { 86820 yyb10 = yyj10 > l 86821 } else { 86822 yyb10 = r.CheckBreak() 86823 } 86824 if yyb10 { 86825 r.ReadArrayEnd() 86826 return 86827 } 86828 r.ReadArrayElem() 86829 if r.TryDecodeAsNil() { 86830 x.ID = "" 86831 } else { 86832 x.ID = (string)(r.DecodeString()) 86833 } 86834 yyj10++ 86835 if yyhl10 { 86836 yyb10 = yyj10 > l 86837 } else { 86838 yyb10 = r.CheckBreak() 86839 } 86840 if yyb10 { 86841 r.ReadArrayEnd() 86842 return 86843 } 86844 r.ReadArrayElem() 86845 if r.TryDecodeAsNil() { 86846 x.Enabled = false 86847 } else { 86848 x.Enabled = (bool)(r.DecodeBool()) 86849 } 86850 yyj10++ 86851 if yyhl10 { 86852 yyb10 = yyj10 > l 86853 } else { 86854 yyb10 = r.CheckBreak() 86855 } 86856 if yyb10 { 86857 r.ReadArrayEnd() 86858 return 86859 } 86860 r.ReadArrayElem() 86861 if r.TryDecodeAsNil() { 86862 x.Target = nil 86863 } else { 86864 if false { 86865 } else { 86866 z.F.DecMapStringStringX(&x.Target, d) 86867 } 86868 } 86869 yyj10++ 86870 if yyhl10 { 86871 yyb10 = yyj10 > l 86872 } else { 86873 yyb10 = r.CheckBreak() 86874 } 86875 if yyb10 { 86876 r.ReadArrayEnd() 86877 return 86878 } 86879 r.ReadArrayElem() 86880 if r.TryDecodeAsNil() { 86881 x.CreateIndex = 0 86882 } else { 86883 x.CreateIndex = (uint64)(r.DecodeUint64()) 86884 } 86885 yyj10++ 86886 if yyhl10 { 86887 yyb10 = yyj10 > l 86888 } else { 86889 yyb10 = r.CheckBreak() 86890 } 86891 if yyb10 { 86892 r.ReadArrayEnd() 86893 return 86894 } 86895 r.ReadArrayElem() 86896 if r.TryDecodeAsNil() { 86897 x.ModifyIndex = 0 86898 } else { 86899 x.ModifyIndex = (uint64)(r.DecodeUint64()) 86900 } 86901 for { 86902 yyj10++ 86903 if yyhl10 { 86904 yyb10 = yyj10 > l 86905 } else { 86906 yyb10 = r.CheckBreak() 86907 } 86908 if yyb10 { 86909 break 86910 } 86911 r.ReadArrayElem() 86912 z.DecStructFieldNotFound(yyj10-1, "") 86913 } 86914 r.ReadArrayEnd() 86915 } 86916 86917 func (x *RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { 86918 var h codecSelfer100 86919 z, r := codec1978.GenHelperEncoder(e) 86920 _, _, _ = h, z, r 86921 if x == nil { 86922 r.EncodeNil() 86923 } else { 86924 if false { 86925 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 86926 z.EncExtension(x, yyxt1) 86927 } else { 86928 yysep2 := !z.EncBinary() 86929 yy2arr2 := z.EncBasicHandle().StructToArray 86930 _, _ = yysep2, yy2arr2 86931 const yyr2 bool = false // struct tag has 'toArray' 86932 if yyr2 || yy2arr2 { 86933 r.WriteArrayStart(4) 86934 } else { 86935 r.WriteMapStart(4) 86936 } 86937 if yyr2 || yy2arr2 { 86938 r.WriteArrayElem() 86939 if false { 86940 } else { 86941 r.EncodeInt(int64(x.Attempts)) 86942 } 86943 } else { 86944 r.WriteMapElemKey() 86945 if z.IsJSONHandle() { 86946 z.WriteStr("\"Attempts\"") 86947 } else { 86948 r.EncodeStringEnc(codecSelferCcUTF8100, `Attempts`) 86949 } 86950 r.WriteMapElemValue() 86951 if false { 86952 } else { 86953 r.EncodeInt(int64(x.Attempts)) 86954 } 86955 } 86956 if yyr2 || yy2arr2 { 86957 r.WriteArrayElem() 86958 if false { 86959 } else if yyxt7 := z.Extension(z.I2Rtid(x.Interval)); yyxt7 != nil { 86960 z.EncExtension(x.Interval, yyxt7) 86961 } else { 86962 r.EncodeInt(int64(x.Interval)) 86963 } 86964 } else { 86965 r.WriteMapElemKey() 86966 if z.IsJSONHandle() { 86967 z.WriteStr("\"Interval\"") 86968 } else { 86969 r.EncodeStringEnc(codecSelferCcUTF8100, `Interval`) 86970 } 86971 r.WriteMapElemValue() 86972 if false { 86973 } else if yyxt8 := z.Extension(z.I2Rtid(x.Interval)); yyxt8 != nil { 86974 z.EncExtension(x.Interval, yyxt8) 86975 } else { 86976 r.EncodeInt(int64(x.Interval)) 86977 } 86978 } 86979 if yyr2 || yy2arr2 { 86980 r.WriteArrayElem() 86981 if false { 86982 } else if yyxt10 := z.Extension(z.I2Rtid(x.Delay)); yyxt10 != nil { 86983 z.EncExtension(x.Delay, yyxt10) 86984 } else { 86985 r.EncodeInt(int64(x.Delay)) 86986 } 86987 } else { 86988 r.WriteMapElemKey() 86989 if z.IsJSONHandle() { 86990 z.WriteStr("\"Delay\"") 86991 } else { 86992 r.EncodeStringEnc(codecSelferCcUTF8100, `Delay`) 86993 } 86994 r.WriteMapElemValue() 86995 if false { 86996 } else if yyxt11 := z.Extension(z.I2Rtid(x.Delay)); yyxt11 != nil { 86997 z.EncExtension(x.Delay, yyxt11) 86998 } else { 86999 r.EncodeInt(int64(x.Delay)) 87000 } 87001 } 87002 if yyr2 || yy2arr2 { 87003 r.WriteArrayElem() 87004 if false { 87005 } else { 87006 if z.EncBasicHandle().StringToRaw { 87007 r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) 87008 } else { 87009 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) 87010 } 87011 } 87012 } else { 87013 r.WriteMapElemKey() 87014 if z.IsJSONHandle() { 87015 z.WriteStr("\"Mode\"") 87016 } else { 87017 r.EncodeStringEnc(codecSelferCcUTF8100, `Mode`) 87018 } 87019 r.WriteMapElemValue() 87020 if false { 87021 } else { 87022 if z.EncBasicHandle().StringToRaw { 87023 r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) 87024 } else { 87025 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) 87026 } 87027 } 87028 } 87029 if yyr2 || yy2arr2 { 87030 r.WriteArrayEnd() 87031 } else { 87032 r.WriteMapEnd() 87033 } 87034 } 87035 } 87036 } 87037 87038 func (x *RestartPolicy) CodecDecodeSelf(d *codec1978.Decoder) { 87039 var h codecSelfer100 87040 z, r := codec1978.GenHelperDecoder(d) 87041 _, _, _ = h, z, r 87042 if false { 87043 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 87044 z.DecExtension(x, yyxt1) 87045 } else { 87046 yyct2 := r.ContainerType() 87047 if yyct2 == codecSelferValueTypeMap100 { 87048 yyl2 := r.ReadMapStart() 87049 if yyl2 == 0 { 87050 r.ReadMapEnd() 87051 } else { 87052 x.codecDecodeSelfFromMap(yyl2, d) 87053 } 87054 } else if yyct2 == codecSelferValueTypeArray100 { 87055 yyl2 := r.ReadArrayStart() 87056 if yyl2 == 0 { 87057 r.ReadArrayEnd() 87058 } else { 87059 x.codecDecodeSelfFromArray(yyl2, d) 87060 } 87061 } else { 87062 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 87063 } 87064 } 87065 } 87066 87067 func (x *RestartPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 87068 var h codecSelfer100 87069 z, r := codec1978.GenHelperDecoder(d) 87070 _, _, _ = h, z, r 87071 var yyhl3 bool = l >= 0 87072 for yyj3 := 0; ; yyj3++ { 87073 if yyhl3 { 87074 if yyj3 >= l { 87075 break 87076 } 87077 } else { 87078 if r.CheckBreak() { 87079 break 87080 } 87081 } 87082 r.ReadMapElemKey() 87083 yys3 := z.StringView(r.DecodeStringAsBytes()) 87084 r.ReadMapElemValue() 87085 switch yys3 { 87086 case "Attempts": 87087 if r.TryDecodeAsNil() { 87088 x.Attempts = 0 87089 } else { 87090 x.Attempts = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 87091 } 87092 case "Interval": 87093 if r.TryDecodeAsNil() { 87094 x.Interval = 0 87095 } else { 87096 if false { 87097 } else if yyxt6 := z.Extension(z.I2Rtid(x.Interval)); yyxt6 != nil { 87098 z.DecExtension(x.Interval, yyxt6) 87099 } else { 87100 x.Interval = (time.Duration)(r.DecodeInt64()) 87101 } 87102 } 87103 case "Delay": 87104 if r.TryDecodeAsNil() { 87105 x.Delay = 0 87106 } else { 87107 if false { 87108 } else if yyxt8 := z.Extension(z.I2Rtid(x.Delay)); yyxt8 != nil { 87109 z.DecExtension(x.Delay, yyxt8) 87110 } else { 87111 x.Delay = (time.Duration)(r.DecodeInt64()) 87112 } 87113 } 87114 case "Mode": 87115 if r.TryDecodeAsNil() { 87116 x.Mode = "" 87117 } else { 87118 x.Mode = (string)(r.DecodeString()) 87119 } 87120 default: 87121 z.DecStructFieldNotFound(-1, yys3) 87122 } // end switch yys3 87123 } // end for yyj3 87124 r.ReadMapEnd() 87125 } 87126 87127 func (x *RestartPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 87128 var h codecSelfer100 87129 z, r := codec1978.GenHelperDecoder(d) 87130 _, _, _ = h, z, r 87131 var yyj10 int 87132 var yyb10 bool 87133 var yyhl10 bool = l >= 0 87134 yyj10++ 87135 if yyhl10 { 87136 yyb10 = yyj10 > l 87137 } else { 87138 yyb10 = r.CheckBreak() 87139 } 87140 if yyb10 { 87141 r.ReadArrayEnd() 87142 return 87143 } 87144 r.ReadArrayElem() 87145 if r.TryDecodeAsNil() { 87146 x.Attempts = 0 87147 } else { 87148 x.Attempts = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 87149 } 87150 yyj10++ 87151 if yyhl10 { 87152 yyb10 = yyj10 > l 87153 } else { 87154 yyb10 = r.CheckBreak() 87155 } 87156 if yyb10 { 87157 r.ReadArrayEnd() 87158 return 87159 } 87160 r.ReadArrayElem() 87161 if r.TryDecodeAsNil() { 87162 x.Interval = 0 87163 } else { 87164 if false { 87165 } else if yyxt13 := z.Extension(z.I2Rtid(x.Interval)); yyxt13 != nil { 87166 z.DecExtension(x.Interval, yyxt13) 87167 } else { 87168 x.Interval = (time.Duration)(r.DecodeInt64()) 87169 } 87170 } 87171 yyj10++ 87172 if yyhl10 { 87173 yyb10 = yyj10 > l 87174 } else { 87175 yyb10 = r.CheckBreak() 87176 } 87177 if yyb10 { 87178 r.ReadArrayEnd() 87179 return 87180 } 87181 r.ReadArrayElem() 87182 if r.TryDecodeAsNil() { 87183 x.Delay = 0 87184 } else { 87185 if false { 87186 } else if yyxt15 := z.Extension(z.I2Rtid(x.Delay)); yyxt15 != nil { 87187 z.DecExtension(x.Delay, yyxt15) 87188 } else { 87189 x.Delay = (time.Duration)(r.DecodeInt64()) 87190 } 87191 } 87192 yyj10++ 87193 if yyhl10 { 87194 yyb10 = yyj10 > l 87195 } else { 87196 yyb10 = r.CheckBreak() 87197 } 87198 if yyb10 { 87199 r.ReadArrayEnd() 87200 return 87201 } 87202 r.ReadArrayElem() 87203 if r.TryDecodeAsNil() { 87204 x.Mode = "" 87205 } else { 87206 x.Mode = (string)(r.DecodeString()) 87207 } 87208 for { 87209 yyj10++ 87210 if yyhl10 { 87211 yyb10 = yyj10 > l 87212 } else { 87213 yyb10 = r.CheckBreak() 87214 } 87215 if yyb10 { 87216 break 87217 } 87218 r.ReadArrayElem() 87219 z.DecStructFieldNotFound(yyj10-1, "") 87220 } 87221 r.ReadArrayEnd() 87222 } 87223 87224 func (x *ReschedulePolicy) CodecEncodeSelf(e *codec1978.Encoder) { 87225 var h codecSelfer100 87226 z, r := codec1978.GenHelperEncoder(e) 87227 _, _, _ = h, z, r 87228 if x == nil { 87229 r.EncodeNil() 87230 } else { 87231 if false { 87232 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 87233 z.EncExtension(x, yyxt1) 87234 } else { 87235 yysep2 := !z.EncBinary() 87236 yy2arr2 := z.EncBasicHandle().StructToArray 87237 _, _ = yysep2, yy2arr2 87238 const yyr2 bool = false // struct tag has 'toArray' 87239 if yyr2 || yy2arr2 { 87240 r.WriteArrayStart(6) 87241 } else { 87242 r.WriteMapStart(6) 87243 } 87244 if yyr2 || yy2arr2 { 87245 r.WriteArrayElem() 87246 if false { 87247 } else { 87248 r.EncodeInt(int64(x.Attempts)) 87249 } 87250 } else { 87251 r.WriteMapElemKey() 87252 if z.IsJSONHandle() { 87253 z.WriteStr("\"Attempts\"") 87254 } else { 87255 r.EncodeStringEnc(codecSelferCcUTF8100, `Attempts`) 87256 } 87257 r.WriteMapElemValue() 87258 if false { 87259 } else { 87260 r.EncodeInt(int64(x.Attempts)) 87261 } 87262 } 87263 if yyr2 || yy2arr2 { 87264 r.WriteArrayElem() 87265 if false { 87266 } else if yyxt7 := z.Extension(z.I2Rtid(x.Interval)); yyxt7 != nil { 87267 z.EncExtension(x.Interval, yyxt7) 87268 } else { 87269 r.EncodeInt(int64(x.Interval)) 87270 } 87271 } else { 87272 r.WriteMapElemKey() 87273 if z.IsJSONHandle() { 87274 z.WriteStr("\"Interval\"") 87275 } else { 87276 r.EncodeStringEnc(codecSelferCcUTF8100, `Interval`) 87277 } 87278 r.WriteMapElemValue() 87279 if false { 87280 } else if yyxt8 := z.Extension(z.I2Rtid(x.Interval)); yyxt8 != nil { 87281 z.EncExtension(x.Interval, yyxt8) 87282 } else { 87283 r.EncodeInt(int64(x.Interval)) 87284 } 87285 } 87286 if yyr2 || yy2arr2 { 87287 r.WriteArrayElem() 87288 if false { 87289 } else if yyxt10 := z.Extension(z.I2Rtid(x.Delay)); yyxt10 != nil { 87290 z.EncExtension(x.Delay, yyxt10) 87291 } else { 87292 r.EncodeInt(int64(x.Delay)) 87293 } 87294 } else { 87295 r.WriteMapElemKey() 87296 if z.IsJSONHandle() { 87297 z.WriteStr("\"Delay\"") 87298 } else { 87299 r.EncodeStringEnc(codecSelferCcUTF8100, `Delay`) 87300 } 87301 r.WriteMapElemValue() 87302 if false { 87303 } else if yyxt11 := z.Extension(z.I2Rtid(x.Delay)); yyxt11 != nil { 87304 z.EncExtension(x.Delay, yyxt11) 87305 } else { 87306 r.EncodeInt(int64(x.Delay)) 87307 } 87308 } 87309 if yyr2 || yy2arr2 { 87310 r.WriteArrayElem() 87311 if false { 87312 } else { 87313 if z.EncBasicHandle().StringToRaw { 87314 r.EncodeStringBytesRaw(z.BytesView(string(x.DelayFunction))) 87315 } else { 87316 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DelayFunction)) 87317 } 87318 } 87319 } else { 87320 r.WriteMapElemKey() 87321 if z.IsJSONHandle() { 87322 z.WriteStr("\"DelayFunction\"") 87323 } else { 87324 r.EncodeStringEnc(codecSelferCcUTF8100, `DelayFunction`) 87325 } 87326 r.WriteMapElemValue() 87327 if false { 87328 } else { 87329 if z.EncBasicHandle().StringToRaw { 87330 r.EncodeStringBytesRaw(z.BytesView(string(x.DelayFunction))) 87331 } else { 87332 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DelayFunction)) 87333 } 87334 } 87335 } 87336 if yyr2 || yy2arr2 { 87337 r.WriteArrayElem() 87338 if false { 87339 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxDelay)); yyxt16 != nil { 87340 z.EncExtension(x.MaxDelay, yyxt16) 87341 } else { 87342 r.EncodeInt(int64(x.MaxDelay)) 87343 } 87344 } else { 87345 r.WriteMapElemKey() 87346 if z.IsJSONHandle() { 87347 z.WriteStr("\"MaxDelay\"") 87348 } else { 87349 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxDelay`) 87350 } 87351 r.WriteMapElemValue() 87352 if false { 87353 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxDelay)); yyxt17 != nil { 87354 z.EncExtension(x.MaxDelay, yyxt17) 87355 } else { 87356 r.EncodeInt(int64(x.MaxDelay)) 87357 } 87358 } 87359 if yyr2 || yy2arr2 { 87360 r.WriteArrayElem() 87361 if false { 87362 } else { 87363 r.EncodeBool(bool(x.Unlimited)) 87364 } 87365 } else { 87366 r.WriteMapElemKey() 87367 if z.IsJSONHandle() { 87368 z.WriteStr("\"Unlimited\"") 87369 } else { 87370 r.EncodeStringEnc(codecSelferCcUTF8100, `Unlimited`) 87371 } 87372 r.WriteMapElemValue() 87373 if false { 87374 } else { 87375 r.EncodeBool(bool(x.Unlimited)) 87376 } 87377 } 87378 if yyr2 || yy2arr2 { 87379 r.WriteArrayEnd() 87380 } else { 87381 r.WriteMapEnd() 87382 } 87383 } 87384 } 87385 } 87386 87387 func (x *ReschedulePolicy) CodecDecodeSelf(d *codec1978.Decoder) { 87388 var h codecSelfer100 87389 z, r := codec1978.GenHelperDecoder(d) 87390 _, _, _ = h, z, r 87391 if false { 87392 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 87393 z.DecExtension(x, yyxt1) 87394 } else { 87395 yyct2 := r.ContainerType() 87396 if yyct2 == codecSelferValueTypeMap100 { 87397 yyl2 := r.ReadMapStart() 87398 if yyl2 == 0 { 87399 r.ReadMapEnd() 87400 } else { 87401 x.codecDecodeSelfFromMap(yyl2, d) 87402 } 87403 } else if yyct2 == codecSelferValueTypeArray100 { 87404 yyl2 := r.ReadArrayStart() 87405 if yyl2 == 0 { 87406 r.ReadArrayEnd() 87407 } else { 87408 x.codecDecodeSelfFromArray(yyl2, d) 87409 } 87410 } else { 87411 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 87412 } 87413 } 87414 } 87415 87416 func (x *ReschedulePolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 87417 var h codecSelfer100 87418 z, r := codec1978.GenHelperDecoder(d) 87419 _, _, _ = h, z, r 87420 var yyhl3 bool = l >= 0 87421 for yyj3 := 0; ; yyj3++ { 87422 if yyhl3 { 87423 if yyj3 >= l { 87424 break 87425 } 87426 } else { 87427 if r.CheckBreak() { 87428 break 87429 } 87430 } 87431 r.ReadMapElemKey() 87432 yys3 := z.StringView(r.DecodeStringAsBytes()) 87433 r.ReadMapElemValue() 87434 switch yys3 { 87435 case "Attempts": 87436 if r.TryDecodeAsNil() { 87437 x.Attempts = 0 87438 } else { 87439 x.Attempts = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 87440 } 87441 case "Interval": 87442 if r.TryDecodeAsNil() { 87443 x.Interval = 0 87444 } else { 87445 if false { 87446 } else if yyxt6 := z.Extension(z.I2Rtid(x.Interval)); yyxt6 != nil { 87447 z.DecExtension(x.Interval, yyxt6) 87448 } else { 87449 x.Interval = (time.Duration)(r.DecodeInt64()) 87450 } 87451 } 87452 case "Delay": 87453 if r.TryDecodeAsNil() { 87454 x.Delay = 0 87455 } else { 87456 if false { 87457 } else if yyxt8 := z.Extension(z.I2Rtid(x.Delay)); yyxt8 != nil { 87458 z.DecExtension(x.Delay, yyxt8) 87459 } else { 87460 x.Delay = (time.Duration)(r.DecodeInt64()) 87461 } 87462 } 87463 case "DelayFunction": 87464 if r.TryDecodeAsNil() { 87465 x.DelayFunction = "" 87466 } else { 87467 x.DelayFunction = (string)(r.DecodeString()) 87468 } 87469 case "MaxDelay": 87470 if r.TryDecodeAsNil() { 87471 x.MaxDelay = 0 87472 } else { 87473 if false { 87474 } else if yyxt11 := z.Extension(z.I2Rtid(x.MaxDelay)); yyxt11 != nil { 87475 z.DecExtension(x.MaxDelay, yyxt11) 87476 } else { 87477 x.MaxDelay = (time.Duration)(r.DecodeInt64()) 87478 } 87479 } 87480 case "Unlimited": 87481 if r.TryDecodeAsNil() { 87482 x.Unlimited = false 87483 } else { 87484 x.Unlimited = (bool)(r.DecodeBool()) 87485 } 87486 default: 87487 z.DecStructFieldNotFound(-1, yys3) 87488 } // end switch yys3 87489 } // end for yyj3 87490 r.ReadMapEnd() 87491 } 87492 87493 func (x *ReschedulePolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 87494 var h codecSelfer100 87495 z, r := codec1978.GenHelperDecoder(d) 87496 _, _, _ = h, z, r 87497 var yyj13 int 87498 var yyb13 bool 87499 var yyhl13 bool = l >= 0 87500 yyj13++ 87501 if yyhl13 { 87502 yyb13 = yyj13 > l 87503 } else { 87504 yyb13 = r.CheckBreak() 87505 } 87506 if yyb13 { 87507 r.ReadArrayEnd() 87508 return 87509 } 87510 r.ReadArrayElem() 87511 if r.TryDecodeAsNil() { 87512 x.Attempts = 0 87513 } else { 87514 x.Attempts = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 87515 } 87516 yyj13++ 87517 if yyhl13 { 87518 yyb13 = yyj13 > l 87519 } else { 87520 yyb13 = r.CheckBreak() 87521 } 87522 if yyb13 { 87523 r.ReadArrayEnd() 87524 return 87525 } 87526 r.ReadArrayElem() 87527 if r.TryDecodeAsNil() { 87528 x.Interval = 0 87529 } else { 87530 if false { 87531 } else if yyxt16 := z.Extension(z.I2Rtid(x.Interval)); yyxt16 != nil { 87532 z.DecExtension(x.Interval, yyxt16) 87533 } else { 87534 x.Interval = (time.Duration)(r.DecodeInt64()) 87535 } 87536 } 87537 yyj13++ 87538 if yyhl13 { 87539 yyb13 = yyj13 > l 87540 } else { 87541 yyb13 = r.CheckBreak() 87542 } 87543 if yyb13 { 87544 r.ReadArrayEnd() 87545 return 87546 } 87547 r.ReadArrayElem() 87548 if r.TryDecodeAsNil() { 87549 x.Delay = 0 87550 } else { 87551 if false { 87552 } else if yyxt18 := z.Extension(z.I2Rtid(x.Delay)); yyxt18 != nil { 87553 z.DecExtension(x.Delay, yyxt18) 87554 } else { 87555 x.Delay = (time.Duration)(r.DecodeInt64()) 87556 } 87557 } 87558 yyj13++ 87559 if yyhl13 { 87560 yyb13 = yyj13 > l 87561 } else { 87562 yyb13 = r.CheckBreak() 87563 } 87564 if yyb13 { 87565 r.ReadArrayEnd() 87566 return 87567 } 87568 r.ReadArrayElem() 87569 if r.TryDecodeAsNil() { 87570 x.DelayFunction = "" 87571 } else { 87572 x.DelayFunction = (string)(r.DecodeString()) 87573 } 87574 yyj13++ 87575 if yyhl13 { 87576 yyb13 = yyj13 > l 87577 } else { 87578 yyb13 = r.CheckBreak() 87579 } 87580 if yyb13 { 87581 r.ReadArrayEnd() 87582 return 87583 } 87584 r.ReadArrayElem() 87585 if r.TryDecodeAsNil() { 87586 x.MaxDelay = 0 87587 } else { 87588 if false { 87589 } else if yyxt21 := z.Extension(z.I2Rtid(x.MaxDelay)); yyxt21 != nil { 87590 z.DecExtension(x.MaxDelay, yyxt21) 87591 } else { 87592 x.MaxDelay = (time.Duration)(r.DecodeInt64()) 87593 } 87594 } 87595 yyj13++ 87596 if yyhl13 { 87597 yyb13 = yyj13 > l 87598 } else { 87599 yyb13 = r.CheckBreak() 87600 } 87601 if yyb13 { 87602 r.ReadArrayEnd() 87603 return 87604 } 87605 r.ReadArrayElem() 87606 if r.TryDecodeAsNil() { 87607 x.Unlimited = false 87608 } else { 87609 x.Unlimited = (bool)(r.DecodeBool()) 87610 } 87611 for { 87612 yyj13++ 87613 if yyhl13 { 87614 yyb13 = yyj13 > l 87615 } else { 87616 yyb13 = r.CheckBreak() 87617 } 87618 if yyb13 { 87619 break 87620 } 87621 r.ReadArrayElem() 87622 z.DecStructFieldNotFound(yyj13-1, "") 87623 } 87624 r.ReadArrayEnd() 87625 } 87626 87627 func (x *MigrateStrategy) CodecEncodeSelf(e *codec1978.Encoder) { 87628 var h codecSelfer100 87629 z, r := codec1978.GenHelperEncoder(e) 87630 _, _, _ = h, z, r 87631 if x == nil { 87632 r.EncodeNil() 87633 } else { 87634 if false { 87635 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 87636 z.EncExtension(x, yyxt1) 87637 } else { 87638 yysep2 := !z.EncBinary() 87639 yy2arr2 := z.EncBasicHandle().StructToArray 87640 _, _ = yysep2, yy2arr2 87641 const yyr2 bool = false // struct tag has 'toArray' 87642 if yyr2 || yy2arr2 { 87643 r.WriteArrayStart(4) 87644 } else { 87645 r.WriteMapStart(4) 87646 } 87647 if yyr2 || yy2arr2 { 87648 r.WriteArrayElem() 87649 if false { 87650 } else { 87651 r.EncodeInt(int64(x.MaxParallel)) 87652 } 87653 } else { 87654 r.WriteMapElemKey() 87655 if z.IsJSONHandle() { 87656 z.WriteStr("\"MaxParallel\"") 87657 } else { 87658 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxParallel`) 87659 } 87660 r.WriteMapElemValue() 87661 if false { 87662 } else { 87663 r.EncodeInt(int64(x.MaxParallel)) 87664 } 87665 } 87666 if yyr2 || yy2arr2 { 87667 r.WriteArrayElem() 87668 if false { 87669 } else { 87670 if z.EncBasicHandle().StringToRaw { 87671 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthCheck))) 87672 } else { 87673 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthCheck)) 87674 } 87675 } 87676 } else { 87677 r.WriteMapElemKey() 87678 if z.IsJSONHandle() { 87679 z.WriteStr("\"HealthCheck\"") 87680 } else { 87681 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthCheck`) 87682 } 87683 r.WriteMapElemValue() 87684 if false { 87685 } else { 87686 if z.EncBasicHandle().StringToRaw { 87687 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthCheck))) 87688 } else { 87689 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthCheck)) 87690 } 87691 } 87692 } 87693 if yyr2 || yy2arr2 { 87694 r.WriteArrayElem() 87695 if false { 87696 } else if yyxt10 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt10 != nil { 87697 z.EncExtension(x.MinHealthyTime, yyxt10) 87698 } else { 87699 r.EncodeInt(int64(x.MinHealthyTime)) 87700 } 87701 } else { 87702 r.WriteMapElemKey() 87703 if z.IsJSONHandle() { 87704 z.WriteStr("\"MinHealthyTime\"") 87705 } else { 87706 r.EncodeStringEnc(codecSelferCcUTF8100, `MinHealthyTime`) 87707 } 87708 r.WriteMapElemValue() 87709 if false { 87710 } else if yyxt11 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt11 != nil { 87711 z.EncExtension(x.MinHealthyTime, yyxt11) 87712 } else { 87713 r.EncodeInt(int64(x.MinHealthyTime)) 87714 } 87715 } 87716 if yyr2 || yy2arr2 { 87717 r.WriteArrayElem() 87718 if false { 87719 } else if yyxt13 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt13 != nil { 87720 z.EncExtension(x.HealthyDeadline, yyxt13) 87721 } else { 87722 r.EncodeInt(int64(x.HealthyDeadline)) 87723 } 87724 } else { 87725 r.WriteMapElemKey() 87726 if z.IsJSONHandle() { 87727 z.WriteStr("\"HealthyDeadline\"") 87728 } else { 87729 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyDeadline`) 87730 } 87731 r.WriteMapElemValue() 87732 if false { 87733 } else if yyxt14 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt14 != nil { 87734 z.EncExtension(x.HealthyDeadline, yyxt14) 87735 } else { 87736 r.EncodeInt(int64(x.HealthyDeadline)) 87737 } 87738 } 87739 if yyr2 || yy2arr2 { 87740 r.WriteArrayEnd() 87741 } else { 87742 r.WriteMapEnd() 87743 } 87744 } 87745 } 87746 } 87747 87748 func (x *MigrateStrategy) CodecDecodeSelf(d *codec1978.Decoder) { 87749 var h codecSelfer100 87750 z, r := codec1978.GenHelperDecoder(d) 87751 _, _, _ = h, z, r 87752 if false { 87753 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 87754 z.DecExtension(x, yyxt1) 87755 } else { 87756 yyct2 := r.ContainerType() 87757 if yyct2 == codecSelferValueTypeMap100 { 87758 yyl2 := r.ReadMapStart() 87759 if yyl2 == 0 { 87760 r.ReadMapEnd() 87761 } else { 87762 x.codecDecodeSelfFromMap(yyl2, d) 87763 } 87764 } else if yyct2 == codecSelferValueTypeArray100 { 87765 yyl2 := r.ReadArrayStart() 87766 if yyl2 == 0 { 87767 r.ReadArrayEnd() 87768 } else { 87769 x.codecDecodeSelfFromArray(yyl2, d) 87770 } 87771 } else { 87772 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 87773 } 87774 } 87775 } 87776 87777 func (x *MigrateStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 87778 var h codecSelfer100 87779 z, r := codec1978.GenHelperDecoder(d) 87780 _, _, _ = h, z, r 87781 var yyhl3 bool = l >= 0 87782 for yyj3 := 0; ; yyj3++ { 87783 if yyhl3 { 87784 if yyj3 >= l { 87785 break 87786 } 87787 } else { 87788 if r.CheckBreak() { 87789 break 87790 } 87791 } 87792 r.ReadMapElemKey() 87793 yys3 := z.StringView(r.DecodeStringAsBytes()) 87794 r.ReadMapElemValue() 87795 switch yys3 { 87796 case "MaxParallel": 87797 if r.TryDecodeAsNil() { 87798 x.MaxParallel = 0 87799 } else { 87800 x.MaxParallel = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 87801 } 87802 case "HealthCheck": 87803 if r.TryDecodeAsNil() { 87804 x.HealthCheck = "" 87805 } else { 87806 x.HealthCheck = (string)(r.DecodeString()) 87807 } 87808 case "MinHealthyTime": 87809 if r.TryDecodeAsNil() { 87810 x.MinHealthyTime = 0 87811 } else { 87812 if false { 87813 } else if yyxt7 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt7 != nil { 87814 z.DecExtension(x.MinHealthyTime, yyxt7) 87815 } else { 87816 x.MinHealthyTime = (time.Duration)(r.DecodeInt64()) 87817 } 87818 } 87819 case "HealthyDeadline": 87820 if r.TryDecodeAsNil() { 87821 x.HealthyDeadline = 0 87822 } else { 87823 if false { 87824 } else if yyxt9 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt9 != nil { 87825 z.DecExtension(x.HealthyDeadline, yyxt9) 87826 } else { 87827 x.HealthyDeadline = (time.Duration)(r.DecodeInt64()) 87828 } 87829 } 87830 default: 87831 z.DecStructFieldNotFound(-1, yys3) 87832 } // end switch yys3 87833 } // end for yyj3 87834 r.ReadMapEnd() 87835 } 87836 87837 func (x *MigrateStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 87838 var h codecSelfer100 87839 z, r := codec1978.GenHelperDecoder(d) 87840 _, _, _ = h, z, r 87841 var yyj10 int 87842 var yyb10 bool 87843 var yyhl10 bool = l >= 0 87844 yyj10++ 87845 if yyhl10 { 87846 yyb10 = yyj10 > l 87847 } else { 87848 yyb10 = r.CheckBreak() 87849 } 87850 if yyb10 { 87851 r.ReadArrayEnd() 87852 return 87853 } 87854 r.ReadArrayElem() 87855 if r.TryDecodeAsNil() { 87856 x.MaxParallel = 0 87857 } else { 87858 x.MaxParallel = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 87859 } 87860 yyj10++ 87861 if yyhl10 { 87862 yyb10 = yyj10 > l 87863 } else { 87864 yyb10 = r.CheckBreak() 87865 } 87866 if yyb10 { 87867 r.ReadArrayEnd() 87868 return 87869 } 87870 r.ReadArrayElem() 87871 if r.TryDecodeAsNil() { 87872 x.HealthCheck = "" 87873 } else { 87874 x.HealthCheck = (string)(r.DecodeString()) 87875 } 87876 yyj10++ 87877 if yyhl10 { 87878 yyb10 = yyj10 > l 87879 } else { 87880 yyb10 = r.CheckBreak() 87881 } 87882 if yyb10 { 87883 r.ReadArrayEnd() 87884 return 87885 } 87886 r.ReadArrayElem() 87887 if r.TryDecodeAsNil() { 87888 x.MinHealthyTime = 0 87889 } else { 87890 if false { 87891 } else if yyxt14 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt14 != nil { 87892 z.DecExtension(x.MinHealthyTime, yyxt14) 87893 } else { 87894 x.MinHealthyTime = (time.Duration)(r.DecodeInt64()) 87895 } 87896 } 87897 yyj10++ 87898 if yyhl10 { 87899 yyb10 = yyj10 > l 87900 } else { 87901 yyb10 = r.CheckBreak() 87902 } 87903 if yyb10 { 87904 r.ReadArrayEnd() 87905 return 87906 } 87907 r.ReadArrayElem() 87908 if r.TryDecodeAsNil() { 87909 x.HealthyDeadline = 0 87910 } else { 87911 if false { 87912 } else if yyxt16 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt16 != nil { 87913 z.DecExtension(x.HealthyDeadline, yyxt16) 87914 } else { 87915 x.HealthyDeadline = (time.Duration)(r.DecodeInt64()) 87916 } 87917 } 87918 for { 87919 yyj10++ 87920 if yyhl10 { 87921 yyb10 = yyj10 > l 87922 } else { 87923 yyb10 = r.CheckBreak() 87924 } 87925 if yyb10 { 87926 break 87927 } 87928 r.ReadArrayElem() 87929 z.DecStructFieldNotFound(yyj10-1, "") 87930 } 87931 r.ReadArrayEnd() 87932 } 87933 87934 func (x *TaskGroup) CodecEncodeSelf(e *codec1978.Encoder) { 87935 var h codecSelfer100 87936 z, r := codec1978.GenHelperEncoder(e) 87937 _, _, _ = h, z, r 87938 if x == nil { 87939 r.EncodeNil() 87940 } else { 87941 if false { 87942 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 87943 z.EncExtension(x, yyxt1) 87944 } else { 87945 yysep2 := !z.EncBinary() 87946 yy2arr2 := z.EncBasicHandle().StructToArray 87947 _, _ = yysep2, yy2arr2 87948 const yyr2 bool = false // struct tag has 'toArray' 87949 if yyr2 || yy2arr2 { 87950 r.WriteArrayStart(17) 87951 } else { 87952 r.WriteMapStart(17) 87953 } 87954 if yyr2 || yy2arr2 { 87955 r.WriteArrayElem() 87956 if false { 87957 } else { 87958 if z.EncBasicHandle().StringToRaw { 87959 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 87960 } else { 87961 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 87962 } 87963 } 87964 } else { 87965 r.WriteMapElemKey() 87966 if z.IsJSONHandle() { 87967 z.WriteStr("\"Name\"") 87968 } else { 87969 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 87970 } 87971 r.WriteMapElemValue() 87972 if false { 87973 } else { 87974 if z.EncBasicHandle().StringToRaw { 87975 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 87976 } else { 87977 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 87978 } 87979 } 87980 } 87981 if yyr2 || yy2arr2 { 87982 r.WriteArrayElem() 87983 if false { 87984 } else { 87985 r.EncodeInt(int64(x.Count)) 87986 } 87987 } else { 87988 r.WriteMapElemKey() 87989 if z.IsJSONHandle() { 87990 z.WriteStr("\"Count\"") 87991 } else { 87992 r.EncodeStringEnc(codecSelferCcUTF8100, `Count`) 87993 } 87994 r.WriteMapElemValue() 87995 if false { 87996 } else { 87997 r.EncodeInt(int64(x.Count)) 87998 } 87999 } 88000 var yyn9 bool 88001 if x.Update == nil { 88002 yyn9 = true 88003 goto LABEL9 88004 } 88005 LABEL9: 88006 if yyr2 || yy2arr2 { 88007 if yyn9 { 88008 r.WriteArrayElem() 88009 r.EncodeNil() 88010 } else { 88011 r.WriteArrayElem() 88012 if x.Update == nil { 88013 r.EncodeNil() 88014 } else { 88015 x.Update.CodecEncodeSelf(e) 88016 } 88017 } 88018 } else { 88019 r.WriteMapElemKey() 88020 if z.IsJSONHandle() { 88021 z.WriteStr("\"Update\"") 88022 } else { 88023 r.EncodeStringEnc(codecSelferCcUTF8100, `Update`) 88024 } 88025 r.WriteMapElemValue() 88026 if yyn9 { 88027 r.EncodeNil() 88028 } else { 88029 if x.Update == nil { 88030 r.EncodeNil() 88031 } else { 88032 x.Update.CodecEncodeSelf(e) 88033 } 88034 } 88035 } 88036 var yyn12 bool 88037 if x.Migrate == nil { 88038 yyn12 = true 88039 goto LABEL12 88040 } 88041 LABEL12: 88042 if yyr2 || yy2arr2 { 88043 if yyn12 { 88044 r.WriteArrayElem() 88045 r.EncodeNil() 88046 } else { 88047 r.WriteArrayElem() 88048 if x.Migrate == nil { 88049 r.EncodeNil() 88050 } else { 88051 x.Migrate.CodecEncodeSelf(e) 88052 } 88053 } 88054 } else { 88055 r.WriteMapElemKey() 88056 if z.IsJSONHandle() { 88057 z.WriteStr("\"Migrate\"") 88058 } else { 88059 r.EncodeStringEnc(codecSelferCcUTF8100, `Migrate`) 88060 } 88061 r.WriteMapElemValue() 88062 if yyn12 { 88063 r.EncodeNil() 88064 } else { 88065 if x.Migrate == nil { 88066 r.EncodeNil() 88067 } else { 88068 x.Migrate.CodecEncodeSelf(e) 88069 } 88070 } 88071 } 88072 if yyr2 || yy2arr2 { 88073 r.WriteArrayElem() 88074 if x.Constraints == nil { 88075 r.EncodeNil() 88076 } else { 88077 if false { 88078 } else { 88079 h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) 88080 } 88081 } 88082 } else { 88083 r.WriteMapElemKey() 88084 if z.IsJSONHandle() { 88085 z.WriteStr("\"Constraints\"") 88086 } else { 88087 r.EncodeStringEnc(codecSelferCcUTF8100, `Constraints`) 88088 } 88089 r.WriteMapElemValue() 88090 if x.Constraints == nil { 88091 r.EncodeNil() 88092 } else { 88093 if false { 88094 } else { 88095 h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) 88096 } 88097 } 88098 } 88099 var yyn18 bool 88100 if x.Scaling == nil { 88101 yyn18 = true 88102 goto LABEL18 88103 } 88104 LABEL18: 88105 if yyr2 || yy2arr2 { 88106 if yyn18 { 88107 r.WriteArrayElem() 88108 r.EncodeNil() 88109 } else { 88110 r.WriteArrayElem() 88111 if x.Scaling == nil { 88112 r.EncodeNil() 88113 } else { 88114 x.Scaling.CodecEncodeSelf(e) 88115 } 88116 } 88117 } else { 88118 r.WriteMapElemKey() 88119 if z.IsJSONHandle() { 88120 z.WriteStr("\"Scaling\"") 88121 } else { 88122 r.EncodeStringEnc(codecSelferCcUTF8100, `Scaling`) 88123 } 88124 r.WriteMapElemValue() 88125 if yyn18 { 88126 r.EncodeNil() 88127 } else { 88128 if x.Scaling == nil { 88129 r.EncodeNil() 88130 } else { 88131 x.Scaling.CodecEncodeSelf(e) 88132 } 88133 } 88134 } 88135 var yyn21 bool 88136 if x.RestartPolicy == nil { 88137 yyn21 = true 88138 goto LABEL21 88139 } 88140 LABEL21: 88141 if yyr2 || yy2arr2 { 88142 if yyn21 { 88143 r.WriteArrayElem() 88144 r.EncodeNil() 88145 } else { 88146 r.WriteArrayElem() 88147 if x.RestartPolicy == nil { 88148 r.EncodeNil() 88149 } else { 88150 x.RestartPolicy.CodecEncodeSelf(e) 88151 } 88152 } 88153 } else { 88154 r.WriteMapElemKey() 88155 if z.IsJSONHandle() { 88156 z.WriteStr("\"RestartPolicy\"") 88157 } else { 88158 r.EncodeStringEnc(codecSelferCcUTF8100, `RestartPolicy`) 88159 } 88160 r.WriteMapElemValue() 88161 if yyn21 { 88162 r.EncodeNil() 88163 } else { 88164 if x.RestartPolicy == nil { 88165 r.EncodeNil() 88166 } else { 88167 x.RestartPolicy.CodecEncodeSelf(e) 88168 } 88169 } 88170 } 88171 if yyr2 || yy2arr2 { 88172 r.WriteArrayElem() 88173 if x.Tasks == nil { 88174 r.EncodeNil() 88175 } else { 88176 if false { 88177 } else { 88178 h.encSlicePtrtoTask(([]*Task)(x.Tasks), e) 88179 } 88180 } 88181 } else { 88182 r.WriteMapElemKey() 88183 if z.IsJSONHandle() { 88184 z.WriteStr("\"Tasks\"") 88185 } else { 88186 r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) 88187 } 88188 r.WriteMapElemValue() 88189 if x.Tasks == nil { 88190 r.EncodeNil() 88191 } else { 88192 if false { 88193 } else { 88194 h.encSlicePtrtoTask(([]*Task)(x.Tasks), e) 88195 } 88196 } 88197 } 88198 var yyn27 bool 88199 if x.EphemeralDisk == nil { 88200 yyn27 = true 88201 goto LABEL27 88202 } 88203 LABEL27: 88204 if yyr2 || yy2arr2 { 88205 if yyn27 { 88206 r.WriteArrayElem() 88207 r.EncodeNil() 88208 } else { 88209 r.WriteArrayElem() 88210 if x.EphemeralDisk == nil { 88211 r.EncodeNil() 88212 } else { 88213 x.EphemeralDisk.CodecEncodeSelf(e) 88214 } 88215 } 88216 } else { 88217 r.WriteMapElemKey() 88218 if z.IsJSONHandle() { 88219 z.WriteStr("\"EphemeralDisk\"") 88220 } else { 88221 r.EncodeStringEnc(codecSelferCcUTF8100, `EphemeralDisk`) 88222 } 88223 r.WriteMapElemValue() 88224 if yyn27 { 88225 r.EncodeNil() 88226 } else { 88227 if x.EphemeralDisk == nil { 88228 r.EncodeNil() 88229 } else { 88230 x.EphemeralDisk.CodecEncodeSelf(e) 88231 } 88232 } 88233 } 88234 if yyr2 || yy2arr2 { 88235 r.WriteArrayElem() 88236 if x.Meta == nil { 88237 r.EncodeNil() 88238 } else { 88239 if false { 88240 } else { 88241 z.F.EncMapStringStringV(x.Meta, e) 88242 } 88243 } 88244 } else { 88245 r.WriteMapElemKey() 88246 if z.IsJSONHandle() { 88247 z.WriteStr("\"Meta\"") 88248 } else { 88249 r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) 88250 } 88251 r.WriteMapElemValue() 88252 if x.Meta == nil { 88253 r.EncodeNil() 88254 } else { 88255 if false { 88256 } else { 88257 z.F.EncMapStringStringV(x.Meta, e) 88258 } 88259 } 88260 } 88261 var yyn33 bool 88262 if x.ReschedulePolicy == nil { 88263 yyn33 = true 88264 goto LABEL33 88265 } 88266 LABEL33: 88267 if yyr2 || yy2arr2 { 88268 if yyn33 { 88269 r.WriteArrayElem() 88270 r.EncodeNil() 88271 } else { 88272 r.WriteArrayElem() 88273 if x.ReschedulePolicy == nil { 88274 r.EncodeNil() 88275 } else { 88276 x.ReschedulePolicy.CodecEncodeSelf(e) 88277 } 88278 } 88279 } else { 88280 r.WriteMapElemKey() 88281 if z.IsJSONHandle() { 88282 z.WriteStr("\"ReschedulePolicy\"") 88283 } else { 88284 r.EncodeStringEnc(codecSelferCcUTF8100, `ReschedulePolicy`) 88285 } 88286 r.WriteMapElemValue() 88287 if yyn33 { 88288 r.EncodeNil() 88289 } else { 88290 if x.ReschedulePolicy == nil { 88291 r.EncodeNil() 88292 } else { 88293 x.ReschedulePolicy.CodecEncodeSelf(e) 88294 } 88295 } 88296 } 88297 if yyr2 || yy2arr2 { 88298 r.WriteArrayElem() 88299 if x.Affinities == nil { 88300 r.EncodeNil() 88301 } else { 88302 if false { 88303 } else { 88304 h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) 88305 } 88306 } 88307 } else { 88308 r.WriteMapElemKey() 88309 if z.IsJSONHandle() { 88310 z.WriteStr("\"Affinities\"") 88311 } else { 88312 r.EncodeStringEnc(codecSelferCcUTF8100, `Affinities`) 88313 } 88314 r.WriteMapElemValue() 88315 if x.Affinities == nil { 88316 r.EncodeNil() 88317 } else { 88318 if false { 88319 } else { 88320 h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) 88321 } 88322 } 88323 } 88324 if yyr2 || yy2arr2 { 88325 r.WriteArrayElem() 88326 if x.Spreads == nil { 88327 r.EncodeNil() 88328 } else { 88329 if false { 88330 } else { 88331 h.encSlicePtrtoSpread(([]*Spread)(x.Spreads), e) 88332 } 88333 } 88334 } else { 88335 r.WriteMapElemKey() 88336 if z.IsJSONHandle() { 88337 z.WriteStr("\"Spreads\"") 88338 } else { 88339 r.EncodeStringEnc(codecSelferCcUTF8100, `Spreads`) 88340 } 88341 r.WriteMapElemValue() 88342 if x.Spreads == nil { 88343 r.EncodeNil() 88344 } else { 88345 if false { 88346 } else { 88347 h.encSlicePtrtoSpread(([]*Spread)(x.Spreads), e) 88348 } 88349 } 88350 } 88351 if yyr2 || yy2arr2 { 88352 r.WriteArrayElem() 88353 if x.Networks == nil { 88354 r.EncodeNil() 88355 } else { 88356 x.Networks.CodecEncodeSelf(e) 88357 } 88358 } else { 88359 r.WriteMapElemKey() 88360 if z.IsJSONHandle() { 88361 z.WriteStr("\"Networks\"") 88362 } else { 88363 r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) 88364 } 88365 r.WriteMapElemValue() 88366 if x.Networks == nil { 88367 r.EncodeNil() 88368 } else { 88369 x.Networks.CodecEncodeSelf(e) 88370 } 88371 } 88372 if yyr2 || yy2arr2 { 88373 r.WriteArrayElem() 88374 if x.Services == nil { 88375 r.EncodeNil() 88376 } else { 88377 if false { 88378 } else { 88379 h.encSlicePtrtoService(([]*Service)(x.Services), e) 88380 } 88381 } 88382 } else { 88383 r.WriteMapElemKey() 88384 if z.IsJSONHandle() { 88385 z.WriteStr("\"Services\"") 88386 } else { 88387 r.EncodeStringEnc(codecSelferCcUTF8100, `Services`) 88388 } 88389 r.WriteMapElemValue() 88390 if x.Services == nil { 88391 r.EncodeNil() 88392 } else { 88393 if false { 88394 } else { 88395 h.encSlicePtrtoService(([]*Service)(x.Services), e) 88396 } 88397 } 88398 } 88399 if yyr2 || yy2arr2 { 88400 r.WriteArrayElem() 88401 if x.Volumes == nil { 88402 r.EncodeNil() 88403 } else { 88404 if false { 88405 } else { 88406 h.encMapstringPtrtoVolumeRequest((map[string]*VolumeRequest)(x.Volumes), e) 88407 } 88408 } 88409 } else { 88410 r.WriteMapElemKey() 88411 if z.IsJSONHandle() { 88412 z.WriteStr("\"Volumes\"") 88413 } else { 88414 r.EncodeStringEnc(codecSelferCcUTF8100, `Volumes`) 88415 } 88416 r.WriteMapElemValue() 88417 if x.Volumes == nil { 88418 r.EncodeNil() 88419 } else { 88420 if false { 88421 } else { 88422 h.encMapstringPtrtoVolumeRequest((map[string]*VolumeRequest)(x.Volumes), e) 88423 } 88424 } 88425 } 88426 var yyn51 bool 88427 if x.ShutdownDelay == nil { 88428 yyn51 = true 88429 goto LABEL51 88430 } 88431 LABEL51: 88432 if yyr2 || yy2arr2 { 88433 if yyn51 { 88434 r.WriteArrayElem() 88435 r.EncodeNil() 88436 } else { 88437 r.WriteArrayElem() 88438 if x.ShutdownDelay == nil { 88439 r.EncodeNil() 88440 } else { 88441 yy52 := *x.ShutdownDelay 88442 if false { 88443 } else if yyxt53 := z.Extension(z.I2Rtid(yy52)); yyxt53 != nil { 88444 z.EncExtension(yy52, yyxt53) 88445 } else { 88446 r.EncodeInt(int64(yy52)) 88447 } 88448 } 88449 } 88450 } else { 88451 r.WriteMapElemKey() 88452 if z.IsJSONHandle() { 88453 z.WriteStr("\"ShutdownDelay\"") 88454 } else { 88455 r.EncodeStringEnc(codecSelferCcUTF8100, `ShutdownDelay`) 88456 } 88457 r.WriteMapElemValue() 88458 if yyn51 { 88459 r.EncodeNil() 88460 } else { 88461 if x.ShutdownDelay == nil { 88462 r.EncodeNil() 88463 } else { 88464 yy54 := *x.ShutdownDelay 88465 if false { 88466 } else if yyxt55 := z.Extension(z.I2Rtid(yy54)); yyxt55 != nil { 88467 z.EncExtension(yy54, yyxt55) 88468 } else { 88469 r.EncodeInt(int64(yy54)) 88470 } 88471 } 88472 } 88473 } 88474 if yyr2 || yy2arr2 { 88475 r.WriteArrayEnd() 88476 } else { 88477 r.WriteMapEnd() 88478 } 88479 } 88480 } 88481 } 88482 88483 func (x *TaskGroup) CodecDecodeSelf(d *codec1978.Decoder) { 88484 var h codecSelfer100 88485 z, r := codec1978.GenHelperDecoder(d) 88486 _, _, _ = h, z, r 88487 if false { 88488 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 88489 z.DecExtension(x, yyxt1) 88490 } else { 88491 yyct2 := r.ContainerType() 88492 if yyct2 == codecSelferValueTypeMap100 { 88493 yyl2 := r.ReadMapStart() 88494 if yyl2 == 0 { 88495 r.ReadMapEnd() 88496 } else { 88497 x.codecDecodeSelfFromMap(yyl2, d) 88498 } 88499 } else if yyct2 == codecSelferValueTypeArray100 { 88500 yyl2 := r.ReadArrayStart() 88501 if yyl2 == 0 { 88502 r.ReadArrayEnd() 88503 } else { 88504 x.codecDecodeSelfFromArray(yyl2, d) 88505 } 88506 } else { 88507 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 88508 } 88509 } 88510 } 88511 88512 func (x *TaskGroup) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 88513 var h codecSelfer100 88514 z, r := codec1978.GenHelperDecoder(d) 88515 _, _, _ = h, z, r 88516 var yyhl3 bool = l >= 0 88517 for yyj3 := 0; ; yyj3++ { 88518 if yyhl3 { 88519 if yyj3 >= l { 88520 break 88521 } 88522 } else { 88523 if r.CheckBreak() { 88524 break 88525 } 88526 } 88527 r.ReadMapElemKey() 88528 yys3 := z.StringView(r.DecodeStringAsBytes()) 88529 r.ReadMapElemValue() 88530 switch yys3 { 88531 case "Name": 88532 if r.TryDecodeAsNil() { 88533 x.Name = "" 88534 } else { 88535 x.Name = (string)(r.DecodeString()) 88536 } 88537 case "Count": 88538 if r.TryDecodeAsNil() { 88539 x.Count = 0 88540 } else { 88541 x.Count = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 88542 } 88543 case "Update": 88544 if r.TryDecodeAsNil() { 88545 if true && x.Update != nil { 88546 x.Update = nil 88547 } 88548 } else { 88549 if x.Update == nil { 88550 x.Update = new(UpdateStrategy) 88551 } 88552 88553 x.Update.CodecDecodeSelf(d) 88554 } 88555 case "Migrate": 88556 if r.TryDecodeAsNil() { 88557 if true && x.Migrate != nil { 88558 x.Migrate = nil 88559 } 88560 } else { 88561 if x.Migrate == nil { 88562 x.Migrate = new(MigrateStrategy) 88563 } 88564 88565 x.Migrate.CodecDecodeSelf(d) 88566 } 88567 case "Constraints": 88568 if r.TryDecodeAsNil() { 88569 x.Constraints = nil 88570 } else { 88571 if false { 88572 } else { 88573 h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) 88574 } 88575 } 88576 case "Scaling": 88577 if r.TryDecodeAsNil() { 88578 if true && x.Scaling != nil { 88579 x.Scaling = nil 88580 } 88581 } else { 88582 if x.Scaling == nil { 88583 x.Scaling = new(ScalingPolicy) 88584 } 88585 88586 x.Scaling.CodecDecodeSelf(d) 88587 } 88588 case "RestartPolicy": 88589 if r.TryDecodeAsNil() { 88590 if true && x.RestartPolicy != nil { 88591 x.RestartPolicy = nil 88592 } 88593 } else { 88594 if x.RestartPolicy == nil { 88595 x.RestartPolicy = new(RestartPolicy) 88596 } 88597 88598 x.RestartPolicy.CodecDecodeSelf(d) 88599 } 88600 case "Tasks": 88601 if r.TryDecodeAsNil() { 88602 x.Tasks = nil 88603 } else { 88604 if false { 88605 } else { 88606 h.decSlicePtrtoTask((*[]*Task)(&x.Tasks), d) 88607 } 88608 } 88609 case "EphemeralDisk": 88610 if r.TryDecodeAsNil() { 88611 if true && x.EphemeralDisk != nil { 88612 x.EphemeralDisk = nil 88613 } 88614 } else { 88615 if x.EphemeralDisk == nil { 88616 x.EphemeralDisk = new(EphemeralDisk) 88617 } 88618 88619 x.EphemeralDisk.CodecDecodeSelf(d) 88620 } 88621 case "Meta": 88622 if r.TryDecodeAsNil() { 88623 x.Meta = nil 88624 } else { 88625 if false { 88626 } else { 88627 z.F.DecMapStringStringX(&x.Meta, d) 88628 } 88629 } 88630 case "ReschedulePolicy": 88631 if r.TryDecodeAsNil() { 88632 if true && x.ReschedulePolicy != nil { 88633 x.ReschedulePolicy = nil 88634 } 88635 } else { 88636 if x.ReschedulePolicy == nil { 88637 x.ReschedulePolicy = new(ReschedulePolicy) 88638 } 88639 88640 x.ReschedulePolicy.CodecDecodeSelf(d) 88641 } 88642 case "Affinities": 88643 if r.TryDecodeAsNil() { 88644 x.Affinities = nil 88645 } else { 88646 if false { 88647 } else { 88648 h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) 88649 } 88650 } 88651 case "Spreads": 88652 if r.TryDecodeAsNil() { 88653 x.Spreads = nil 88654 } else { 88655 if false { 88656 } else { 88657 h.decSlicePtrtoSpread((*[]*Spread)(&x.Spreads), d) 88658 } 88659 } 88660 case "Networks": 88661 if r.TryDecodeAsNil() { 88662 x.Networks = nil 88663 } else { 88664 x.Networks.CodecDecodeSelf(d) 88665 } 88666 case "Services": 88667 if r.TryDecodeAsNil() { 88668 x.Services = nil 88669 } else { 88670 if false { 88671 } else { 88672 h.decSlicePtrtoService((*[]*Service)(&x.Services), d) 88673 } 88674 } 88675 case "Volumes": 88676 if r.TryDecodeAsNil() { 88677 x.Volumes = nil 88678 } else { 88679 if false { 88680 } else { 88681 h.decMapstringPtrtoVolumeRequest((*map[string]*VolumeRequest)(&x.Volumes), d) 88682 } 88683 } 88684 case "ShutdownDelay": 88685 if r.TryDecodeAsNil() { 88686 if true && x.ShutdownDelay != nil { 88687 x.ShutdownDelay = nil 88688 } 88689 } else { 88690 if x.ShutdownDelay == nil { 88691 x.ShutdownDelay = new(time.Duration) 88692 } 88693 88694 if false { 88695 } else if yyxt28 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt28 != nil { 88696 z.DecExtension(x.ShutdownDelay, yyxt28) 88697 } else { 88698 *x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) 88699 } 88700 } 88701 default: 88702 z.DecStructFieldNotFound(-1, yys3) 88703 } // end switch yys3 88704 } // end for yyj3 88705 r.ReadMapEnd() 88706 } 88707 88708 func (x *TaskGroup) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 88709 var h codecSelfer100 88710 z, r := codec1978.GenHelperDecoder(d) 88711 _, _, _ = h, z, r 88712 var yyj29 int 88713 var yyb29 bool 88714 var yyhl29 bool = l >= 0 88715 yyj29++ 88716 if yyhl29 { 88717 yyb29 = yyj29 > l 88718 } else { 88719 yyb29 = r.CheckBreak() 88720 } 88721 if yyb29 { 88722 r.ReadArrayEnd() 88723 return 88724 } 88725 r.ReadArrayElem() 88726 if r.TryDecodeAsNil() { 88727 x.Name = "" 88728 } else { 88729 x.Name = (string)(r.DecodeString()) 88730 } 88731 yyj29++ 88732 if yyhl29 { 88733 yyb29 = yyj29 > l 88734 } else { 88735 yyb29 = r.CheckBreak() 88736 } 88737 if yyb29 { 88738 r.ReadArrayEnd() 88739 return 88740 } 88741 r.ReadArrayElem() 88742 if r.TryDecodeAsNil() { 88743 x.Count = 0 88744 } else { 88745 x.Count = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 88746 } 88747 yyj29++ 88748 if yyhl29 { 88749 yyb29 = yyj29 > l 88750 } else { 88751 yyb29 = r.CheckBreak() 88752 } 88753 if yyb29 { 88754 r.ReadArrayEnd() 88755 return 88756 } 88757 r.ReadArrayElem() 88758 if r.TryDecodeAsNil() { 88759 if true && x.Update != nil { 88760 x.Update = nil 88761 } 88762 } else { 88763 if x.Update == nil { 88764 x.Update = new(UpdateStrategy) 88765 } 88766 88767 x.Update.CodecDecodeSelf(d) 88768 } 88769 yyj29++ 88770 if yyhl29 { 88771 yyb29 = yyj29 > l 88772 } else { 88773 yyb29 = r.CheckBreak() 88774 } 88775 if yyb29 { 88776 r.ReadArrayEnd() 88777 return 88778 } 88779 r.ReadArrayElem() 88780 if r.TryDecodeAsNil() { 88781 if true && x.Migrate != nil { 88782 x.Migrate = nil 88783 } 88784 } else { 88785 if x.Migrate == nil { 88786 x.Migrate = new(MigrateStrategy) 88787 } 88788 88789 x.Migrate.CodecDecodeSelf(d) 88790 } 88791 yyj29++ 88792 if yyhl29 { 88793 yyb29 = yyj29 > l 88794 } else { 88795 yyb29 = r.CheckBreak() 88796 } 88797 if yyb29 { 88798 r.ReadArrayEnd() 88799 return 88800 } 88801 r.ReadArrayElem() 88802 if r.TryDecodeAsNil() { 88803 x.Constraints = nil 88804 } else { 88805 if false { 88806 } else { 88807 h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) 88808 } 88809 } 88810 yyj29++ 88811 if yyhl29 { 88812 yyb29 = yyj29 > l 88813 } else { 88814 yyb29 = r.CheckBreak() 88815 } 88816 if yyb29 { 88817 r.ReadArrayEnd() 88818 return 88819 } 88820 r.ReadArrayElem() 88821 if r.TryDecodeAsNil() { 88822 if true && x.Scaling != nil { 88823 x.Scaling = nil 88824 } 88825 } else { 88826 if x.Scaling == nil { 88827 x.Scaling = new(ScalingPolicy) 88828 } 88829 88830 x.Scaling.CodecDecodeSelf(d) 88831 } 88832 yyj29++ 88833 if yyhl29 { 88834 yyb29 = yyj29 > l 88835 } else { 88836 yyb29 = r.CheckBreak() 88837 } 88838 if yyb29 { 88839 r.ReadArrayEnd() 88840 return 88841 } 88842 r.ReadArrayElem() 88843 if r.TryDecodeAsNil() { 88844 if true && x.RestartPolicy != nil { 88845 x.RestartPolicy = nil 88846 } 88847 } else { 88848 if x.RestartPolicy == nil { 88849 x.RestartPolicy = new(RestartPolicy) 88850 } 88851 88852 x.RestartPolicy.CodecDecodeSelf(d) 88853 } 88854 yyj29++ 88855 if yyhl29 { 88856 yyb29 = yyj29 > l 88857 } else { 88858 yyb29 = r.CheckBreak() 88859 } 88860 if yyb29 { 88861 r.ReadArrayEnd() 88862 return 88863 } 88864 r.ReadArrayElem() 88865 if r.TryDecodeAsNil() { 88866 x.Tasks = nil 88867 } else { 88868 if false { 88869 } else { 88870 h.decSlicePtrtoTask((*[]*Task)(&x.Tasks), d) 88871 } 88872 } 88873 yyj29++ 88874 if yyhl29 { 88875 yyb29 = yyj29 > l 88876 } else { 88877 yyb29 = r.CheckBreak() 88878 } 88879 if yyb29 { 88880 r.ReadArrayEnd() 88881 return 88882 } 88883 r.ReadArrayElem() 88884 if r.TryDecodeAsNil() { 88885 if true && x.EphemeralDisk != nil { 88886 x.EphemeralDisk = nil 88887 } 88888 } else { 88889 if x.EphemeralDisk == nil { 88890 x.EphemeralDisk = new(EphemeralDisk) 88891 } 88892 88893 x.EphemeralDisk.CodecDecodeSelf(d) 88894 } 88895 yyj29++ 88896 if yyhl29 { 88897 yyb29 = yyj29 > l 88898 } else { 88899 yyb29 = r.CheckBreak() 88900 } 88901 if yyb29 { 88902 r.ReadArrayEnd() 88903 return 88904 } 88905 r.ReadArrayElem() 88906 if r.TryDecodeAsNil() { 88907 x.Meta = nil 88908 } else { 88909 if false { 88910 } else { 88911 z.F.DecMapStringStringX(&x.Meta, d) 88912 } 88913 } 88914 yyj29++ 88915 if yyhl29 { 88916 yyb29 = yyj29 > l 88917 } else { 88918 yyb29 = r.CheckBreak() 88919 } 88920 if yyb29 { 88921 r.ReadArrayEnd() 88922 return 88923 } 88924 r.ReadArrayElem() 88925 if r.TryDecodeAsNil() { 88926 if true && x.ReschedulePolicy != nil { 88927 x.ReschedulePolicy = nil 88928 } 88929 } else { 88930 if x.ReschedulePolicy == nil { 88931 x.ReschedulePolicy = new(ReschedulePolicy) 88932 } 88933 88934 x.ReschedulePolicy.CodecDecodeSelf(d) 88935 } 88936 yyj29++ 88937 if yyhl29 { 88938 yyb29 = yyj29 > l 88939 } else { 88940 yyb29 = r.CheckBreak() 88941 } 88942 if yyb29 { 88943 r.ReadArrayEnd() 88944 return 88945 } 88946 r.ReadArrayElem() 88947 if r.TryDecodeAsNil() { 88948 x.Affinities = nil 88949 } else { 88950 if false { 88951 } else { 88952 h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) 88953 } 88954 } 88955 yyj29++ 88956 if yyhl29 { 88957 yyb29 = yyj29 > l 88958 } else { 88959 yyb29 = r.CheckBreak() 88960 } 88961 if yyb29 { 88962 r.ReadArrayEnd() 88963 return 88964 } 88965 r.ReadArrayElem() 88966 if r.TryDecodeAsNil() { 88967 x.Spreads = nil 88968 } else { 88969 if false { 88970 } else { 88971 h.decSlicePtrtoSpread((*[]*Spread)(&x.Spreads), d) 88972 } 88973 } 88974 yyj29++ 88975 if yyhl29 { 88976 yyb29 = yyj29 > l 88977 } else { 88978 yyb29 = r.CheckBreak() 88979 } 88980 if yyb29 { 88981 r.ReadArrayEnd() 88982 return 88983 } 88984 r.ReadArrayElem() 88985 if r.TryDecodeAsNil() { 88986 x.Networks = nil 88987 } else { 88988 x.Networks.CodecDecodeSelf(d) 88989 } 88990 yyj29++ 88991 if yyhl29 { 88992 yyb29 = yyj29 > l 88993 } else { 88994 yyb29 = r.CheckBreak() 88995 } 88996 if yyb29 { 88997 r.ReadArrayEnd() 88998 return 88999 } 89000 r.ReadArrayElem() 89001 if r.TryDecodeAsNil() { 89002 x.Services = nil 89003 } else { 89004 if false { 89005 } else { 89006 h.decSlicePtrtoService((*[]*Service)(&x.Services), d) 89007 } 89008 } 89009 yyj29++ 89010 if yyhl29 { 89011 yyb29 = yyj29 > l 89012 } else { 89013 yyb29 = r.CheckBreak() 89014 } 89015 if yyb29 { 89016 r.ReadArrayEnd() 89017 return 89018 } 89019 r.ReadArrayElem() 89020 if r.TryDecodeAsNil() { 89021 x.Volumes = nil 89022 } else { 89023 if false { 89024 } else { 89025 h.decMapstringPtrtoVolumeRequest((*map[string]*VolumeRequest)(&x.Volumes), d) 89026 } 89027 } 89028 yyj29++ 89029 if yyhl29 { 89030 yyb29 = yyj29 > l 89031 } else { 89032 yyb29 = r.CheckBreak() 89033 } 89034 if yyb29 { 89035 r.ReadArrayEnd() 89036 return 89037 } 89038 r.ReadArrayElem() 89039 if r.TryDecodeAsNil() { 89040 if true && x.ShutdownDelay != nil { 89041 x.ShutdownDelay = nil 89042 } 89043 } else { 89044 if x.ShutdownDelay == nil { 89045 x.ShutdownDelay = new(time.Duration) 89046 } 89047 89048 if false { 89049 } else if yyxt54 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt54 != nil { 89050 z.DecExtension(x.ShutdownDelay, yyxt54) 89051 } else { 89052 *x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) 89053 } 89054 } 89055 for { 89056 yyj29++ 89057 if yyhl29 { 89058 yyb29 = yyj29 > l 89059 } else { 89060 yyb29 = r.CheckBreak() 89061 } 89062 if yyb29 { 89063 break 89064 } 89065 r.ReadArrayElem() 89066 z.DecStructFieldNotFound(yyj29-1, "") 89067 } 89068 r.ReadArrayEnd() 89069 } 89070 89071 func (x *CheckRestart) CodecEncodeSelf(e *codec1978.Encoder) { 89072 var h codecSelfer100 89073 z, r := codec1978.GenHelperEncoder(e) 89074 _, _, _ = h, z, r 89075 if x == nil { 89076 r.EncodeNil() 89077 } else { 89078 if false { 89079 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 89080 z.EncExtension(x, yyxt1) 89081 } else { 89082 yysep2 := !z.EncBinary() 89083 yy2arr2 := z.EncBasicHandle().StructToArray 89084 _, _ = yysep2, yy2arr2 89085 const yyr2 bool = false // struct tag has 'toArray' 89086 if yyr2 || yy2arr2 { 89087 r.WriteArrayStart(3) 89088 } else { 89089 r.WriteMapStart(3) 89090 } 89091 if yyr2 || yy2arr2 { 89092 r.WriteArrayElem() 89093 if false { 89094 } else { 89095 r.EncodeInt(int64(x.Limit)) 89096 } 89097 } else { 89098 r.WriteMapElemKey() 89099 if z.IsJSONHandle() { 89100 z.WriteStr("\"Limit\"") 89101 } else { 89102 r.EncodeStringEnc(codecSelferCcUTF8100, `Limit`) 89103 } 89104 r.WriteMapElemValue() 89105 if false { 89106 } else { 89107 r.EncodeInt(int64(x.Limit)) 89108 } 89109 } 89110 if yyr2 || yy2arr2 { 89111 r.WriteArrayElem() 89112 if false { 89113 } else if yyxt7 := z.Extension(z.I2Rtid(x.Grace)); yyxt7 != nil { 89114 z.EncExtension(x.Grace, yyxt7) 89115 } else { 89116 r.EncodeInt(int64(x.Grace)) 89117 } 89118 } else { 89119 r.WriteMapElemKey() 89120 if z.IsJSONHandle() { 89121 z.WriteStr("\"Grace\"") 89122 } else { 89123 r.EncodeStringEnc(codecSelferCcUTF8100, `Grace`) 89124 } 89125 r.WriteMapElemValue() 89126 if false { 89127 } else if yyxt8 := z.Extension(z.I2Rtid(x.Grace)); yyxt8 != nil { 89128 z.EncExtension(x.Grace, yyxt8) 89129 } else { 89130 r.EncodeInt(int64(x.Grace)) 89131 } 89132 } 89133 if yyr2 || yy2arr2 { 89134 r.WriteArrayElem() 89135 if false { 89136 } else { 89137 r.EncodeBool(bool(x.IgnoreWarnings)) 89138 } 89139 } else { 89140 r.WriteMapElemKey() 89141 if z.IsJSONHandle() { 89142 z.WriteStr("\"IgnoreWarnings\"") 89143 } else { 89144 r.EncodeStringEnc(codecSelferCcUTF8100, `IgnoreWarnings`) 89145 } 89146 r.WriteMapElemValue() 89147 if false { 89148 } else { 89149 r.EncodeBool(bool(x.IgnoreWarnings)) 89150 } 89151 } 89152 if yyr2 || yy2arr2 { 89153 r.WriteArrayEnd() 89154 } else { 89155 r.WriteMapEnd() 89156 } 89157 } 89158 } 89159 } 89160 89161 func (x *CheckRestart) CodecDecodeSelf(d *codec1978.Decoder) { 89162 var h codecSelfer100 89163 z, r := codec1978.GenHelperDecoder(d) 89164 _, _, _ = h, z, r 89165 if false { 89166 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 89167 z.DecExtension(x, yyxt1) 89168 } else { 89169 yyct2 := r.ContainerType() 89170 if yyct2 == codecSelferValueTypeMap100 { 89171 yyl2 := r.ReadMapStart() 89172 if yyl2 == 0 { 89173 r.ReadMapEnd() 89174 } else { 89175 x.codecDecodeSelfFromMap(yyl2, d) 89176 } 89177 } else if yyct2 == codecSelferValueTypeArray100 { 89178 yyl2 := r.ReadArrayStart() 89179 if yyl2 == 0 { 89180 r.ReadArrayEnd() 89181 } else { 89182 x.codecDecodeSelfFromArray(yyl2, d) 89183 } 89184 } else { 89185 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 89186 } 89187 } 89188 } 89189 89190 func (x *CheckRestart) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 89191 var h codecSelfer100 89192 z, r := codec1978.GenHelperDecoder(d) 89193 _, _, _ = h, z, r 89194 var yyhl3 bool = l >= 0 89195 for yyj3 := 0; ; yyj3++ { 89196 if yyhl3 { 89197 if yyj3 >= l { 89198 break 89199 } 89200 } else { 89201 if r.CheckBreak() { 89202 break 89203 } 89204 } 89205 r.ReadMapElemKey() 89206 yys3 := z.StringView(r.DecodeStringAsBytes()) 89207 r.ReadMapElemValue() 89208 switch yys3 { 89209 case "Limit": 89210 if r.TryDecodeAsNil() { 89211 x.Limit = 0 89212 } else { 89213 x.Limit = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 89214 } 89215 case "Grace": 89216 if r.TryDecodeAsNil() { 89217 x.Grace = 0 89218 } else { 89219 if false { 89220 } else if yyxt6 := z.Extension(z.I2Rtid(x.Grace)); yyxt6 != nil { 89221 z.DecExtension(x.Grace, yyxt6) 89222 } else { 89223 x.Grace = (time.Duration)(r.DecodeInt64()) 89224 } 89225 } 89226 case "IgnoreWarnings": 89227 if r.TryDecodeAsNil() { 89228 x.IgnoreWarnings = false 89229 } else { 89230 x.IgnoreWarnings = (bool)(r.DecodeBool()) 89231 } 89232 default: 89233 z.DecStructFieldNotFound(-1, yys3) 89234 } // end switch yys3 89235 } // end for yyj3 89236 r.ReadMapEnd() 89237 } 89238 89239 func (x *CheckRestart) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 89240 var h codecSelfer100 89241 z, r := codec1978.GenHelperDecoder(d) 89242 _, _, _ = h, z, r 89243 var yyj8 int 89244 var yyb8 bool 89245 var yyhl8 bool = l >= 0 89246 yyj8++ 89247 if yyhl8 { 89248 yyb8 = yyj8 > l 89249 } else { 89250 yyb8 = r.CheckBreak() 89251 } 89252 if yyb8 { 89253 r.ReadArrayEnd() 89254 return 89255 } 89256 r.ReadArrayElem() 89257 if r.TryDecodeAsNil() { 89258 x.Limit = 0 89259 } else { 89260 x.Limit = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 89261 } 89262 yyj8++ 89263 if yyhl8 { 89264 yyb8 = yyj8 > l 89265 } else { 89266 yyb8 = r.CheckBreak() 89267 } 89268 if yyb8 { 89269 r.ReadArrayEnd() 89270 return 89271 } 89272 r.ReadArrayElem() 89273 if r.TryDecodeAsNil() { 89274 x.Grace = 0 89275 } else { 89276 if false { 89277 } else if yyxt11 := z.Extension(z.I2Rtid(x.Grace)); yyxt11 != nil { 89278 z.DecExtension(x.Grace, yyxt11) 89279 } else { 89280 x.Grace = (time.Duration)(r.DecodeInt64()) 89281 } 89282 } 89283 yyj8++ 89284 if yyhl8 { 89285 yyb8 = yyj8 > l 89286 } else { 89287 yyb8 = r.CheckBreak() 89288 } 89289 if yyb8 { 89290 r.ReadArrayEnd() 89291 return 89292 } 89293 r.ReadArrayElem() 89294 if r.TryDecodeAsNil() { 89295 x.IgnoreWarnings = false 89296 } else { 89297 x.IgnoreWarnings = (bool)(r.DecodeBool()) 89298 } 89299 for { 89300 yyj8++ 89301 if yyhl8 { 89302 yyb8 = yyj8 > l 89303 } else { 89304 yyb8 = r.CheckBreak() 89305 } 89306 if yyb8 { 89307 break 89308 } 89309 r.ReadArrayElem() 89310 z.DecStructFieldNotFound(yyj8-1, "") 89311 } 89312 r.ReadArrayEnd() 89313 } 89314 89315 func (x *LogConfig) CodecEncodeSelf(e *codec1978.Encoder) { 89316 var h codecSelfer100 89317 z, r := codec1978.GenHelperEncoder(e) 89318 _, _, _ = h, z, r 89319 if x == nil { 89320 r.EncodeNil() 89321 } else { 89322 if false { 89323 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 89324 z.EncExtension(x, yyxt1) 89325 } else { 89326 yysep2 := !z.EncBinary() 89327 yy2arr2 := z.EncBasicHandle().StructToArray 89328 _, _ = yysep2, yy2arr2 89329 const yyr2 bool = false // struct tag has 'toArray' 89330 if yyr2 || yy2arr2 { 89331 r.WriteArrayStart(2) 89332 } else { 89333 r.WriteMapStart(2) 89334 } 89335 if yyr2 || yy2arr2 { 89336 r.WriteArrayElem() 89337 if false { 89338 } else { 89339 r.EncodeInt(int64(x.MaxFiles)) 89340 } 89341 } else { 89342 r.WriteMapElemKey() 89343 if z.IsJSONHandle() { 89344 z.WriteStr("\"MaxFiles\"") 89345 } else { 89346 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxFiles`) 89347 } 89348 r.WriteMapElemValue() 89349 if false { 89350 } else { 89351 r.EncodeInt(int64(x.MaxFiles)) 89352 } 89353 } 89354 if yyr2 || yy2arr2 { 89355 r.WriteArrayElem() 89356 if false { 89357 } else { 89358 r.EncodeInt(int64(x.MaxFileSizeMB)) 89359 } 89360 } else { 89361 r.WriteMapElemKey() 89362 if z.IsJSONHandle() { 89363 z.WriteStr("\"MaxFileSizeMB\"") 89364 } else { 89365 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxFileSizeMB`) 89366 } 89367 r.WriteMapElemValue() 89368 if false { 89369 } else { 89370 r.EncodeInt(int64(x.MaxFileSizeMB)) 89371 } 89372 } 89373 if yyr2 || yy2arr2 { 89374 r.WriteArrayEnd() 89375 } else { 89376 r.WriteMapEnd() 89377 } 89378 } 89379 } 89380 } 89381 89382 func (x *LogConfig) CodecDecodeSelf(d *codec1978.Decoder) { 89383 var h codecSelfer100 89384 z, r := codec1978.GenHelperDecoder(d) 89385 _, _, _ = h, z, r 89386 if false { 89387 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 89388 z.DecExtension(x, yyxt1) 89389 } else { 89390 yyct2 := r.ContainerType() 89391 if yyct2 == codecSelferValueTypeMap100 { 89392 yyl2 := r.ReadMapStart() 89393 if yyl2 == 0 { 89394 r.ReadMapEnd() 89395 } else { 89396 x.codecDecodeSelfFromMap(yyl2, d) 89397 } 89398 } else if yyct2 == codecSelferValueTypeArray100 { 89399 yyl2 := r.ReadArrayStart() 89400 if yyl2 == 0 { 89401 r.ReadArrayEnd() 89402 } else { 89403 x.codecDecodeSelfFromArray(yyl2, d) 89404 } 89405 } else { 89406 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 89407 } 89408 } 89409 } 89410 89411 func (x *LogConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 89412 var h codecSelfer100 89413 z, r := codec1978.GenHelperDecoder(d) 89414 _, _, _ = h, z, r 89415 var yyhl3 bool = l >= 0 89416 for yyj3 := 0; ; yyj3++ { 89417 if yyhl3 { 89418 if yyj3 >= l { 89419 break 89420 } 89421 } else { 89422 if r.CheckBreak() { 89423 break 89424 } 89425 } 89426 r.ReadMapElemKey() 89427 yys3 := z.StringView(r.DecodeStringAsBytes()) 89428 r.ReadMapElemValue() 89429 switch yys3 { 89430 case "MaxFiles": 89431 if r.TryDecodeAsNil() { 89432 x.MaxFiles = 0 89433 } else { 89434 x.MaxFiles = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 89435 } 89436 case "MaxFileSizeMB": 89437 if r.TryDecodeAsNil() { 89438 x.MaxFileSizeMB = 0 89439 } else { 89440 x.MaxFileSizeMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 89441 } 89442 default: 89443 z.DecStructFieldNotFound(-1, yys3) 89444 } // end switch yys3 89445 } // end for yyj3 89446 r.ReadMapEnd() 89447 } 89448 89449 func (x *LogConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 89450 var h codecSelfer100 89451 z, r := codec1978.GenHelperDecoder(d) 89452 _, _, _ = h, z, r 89453 var yyj6 int 89454 var yyb6 bool 89455 var yyhl6 bool = l >= 0 89456 yyj6++ 89457 if yyhl6 { 89458 yyb6 = yyj6 > l 89459 } else { 89460 yyb6 = r.CheckBreak() 89461 } 89462 if yyb6 { 89463 r.ReadArrayEnd() 89464 return 89465 } 89466 r.ReadArrayElem() 89467 if r.TryDecodeAsNil() { 89468 x.MaxFiles = 0 89469 } else { 89470 x.MaxFiles = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 89471 } 89472 yyj6++ 89473 if yyhl6 { 89474 yyb6 = yyj6 > l 89475 } else { 89476 yyb6 = r.CheckBreak() 89477 } 89478 if yyb6 { 89479 r.ReadArrayEnd() 89480 return 89481 } 89482 r.ReadArrayElem() 89483 if r.TryDecodeAsNil() { 89484 x.MaxFileSizeMB = 0 89485 } else { 89486 x.MaxFileSizeMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 89487 } 89488 for { 89489 yyj6++ 89490 if yyhl6 { 89491 yyb6 = yyj6 > l 89492 } else { 89493 yyb6 = r.CheckBreak() 89494 } 89495 if yyb6 { 89496 break 89497 } 89498 r.ReadArrayElem() 89499 z.DecStructFieldNotFound(yyj6-1, "") 89500 } 89501 r.ReadArrayEnd() 89502 } 89503 89504 func (x *Task) CodecEncodeSelf(e *codec1978.Encoder) { 89505 var h codecSelfer100 89506 z, r := codec1978.GenHelperEncoder(e) 89507 _, _, _ = h, z, r 89508 if x == nil { 89509 r.EncodeNil() 89510 } else { 89511 if false { 89512 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 89513 z.EncExtension(x, yyxt1) 89514 } else { 89515 yysep2 := !z.EncBinary() 89516 yy2arr2 := z.EncBasicHandle().StructToArray 89517 _, _ = yysep2, yy2arr2 89518 const yyr2 bool = false // struct tag has 'toArray' 89519 if yyr2 || yy2arr2 { 89520 r.WriteArrayStart(24) 89521 } else { 89522 r.WriteMapStart(24) 89523 } 89524 if yyr2 || yy2arr2 { 89525 r.WriteArrayElem() 89526 if false { 89527 } else { 89528 if z.EncBasicHandle().StringToRaw { 89529 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 89530 } else { 89531 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 89532 } 89533 } 89534 } else { 89535 r.WriteMapElemKey() 89536 if z.IsJSONHandle() { 89537 z.WriteStr("\"Name\"") 89538 } else { 89539 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 89540 } 89541 r.WriteMapElemValue() 89542 if false { 89543 } else { 89544 if z.EncBasicHandle().StringToRaw { 89545 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 89546 } else { 89547 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 89548 } 89549 } 89550 } 89551 if yyr2 || yy2arr2 { 89552 r.WriteArrayElem() 89553 if false { 89554 } else { 89555 if z.EncBasicHandle().StringToRaw { 89556 r.EncodeStringBytesRaw(z.BytesView(string(x.Driver))) 89557 } else { 89558 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Driver)) 89559 } 89560 } 89561 } else { 89562 r.WriteMapElemKey() 89563 if z.IsJSONHandle() { 89564 z.WriteStr("\"Driver\"") 89565 } else { 89566 r.EncodeStringEnc(codecSelferCcUTF8100, `Driver`) 89567 } 89568 r.WriteMapElemValue() 89569 if false { 89570 } else { 89571 if z.EncBasicHandle().StringToRaw { 89572 r.EncodeStringBytesRaw(z.BytesView(string(x.Driver))) 89573 } else { 89574 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Driver)) 89575 } 89576 } 89577 } 89578 if yyr2 || yy2arr2 { 89579 r.WriteArrayElem() 89580 if false { 89581 } else { 89582 if z.EncBasicHandle().StringToRaw { 89583 r.EncodeStringBytesRaw(z.BytesView(string(x.User))) 89584 } else { 89585 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.User)) 89586 } 89587 } 89588 } else { 89589 r.WriteMapElemKey() 89590 if z.IsJSONHandle() { 89591 z.WriteStr("\"User\"") 89592 } else { 89593 r.EncodeStringEnc(codecSelferCcUTF8100, `User`) 89594 } 89595 r.WriteMapElemValue() 89596 if false { 89597 } else { 89598 if z.EncBasicHandle().StringToRaw { 89599 r.EncodeStringBytesRaw(z.BytesView(string(x.User))) 89600 } else { 89601 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.User)) 89602 } 89603 } 89604 } 89605 if yyr2 || yy2arr2 { 89606 r.WriteArrayElem() 89607 if x.Config == nil { 89608 r.EncodeNil() 89609 } else { 89610 if false { 89611 } else { 89612 z.F.EncMapStringIntfV(x.Config, e) 89613 } 89614 } 89615 } else { 89616 r.WriteMapElemKey() 89617 if z.IsJSONHandle() { 89618 z.WriteStr("\"Config\"") 89619 } else { 89620 r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) 89621 } 89622 r.WriteMapElemValue() 89623 if x.Config == nil { 89624 r.EncodeNil() 89625 } else { 89626 if false { 89627 } else { 89628 z.F.EncMapStringIntfV(x.Config, e) 89629 } 89630 } 89631 } 89632 if yyr2 || yy2arr2 { 89633 r.WriteArrayElem() 89634 if x.Env == nil { 89635 r.EncodeNil() 89636 } else { 89637 if false { 89638 } else { 89639 z.F.EncMapStringStringV(x.Env, e) 89640 } 89641 } 89642 } else { 89643 r.WriteMapElemKey() 89644 if z.IsJSONHandle() { 89645 z.WriteStr("\"Env\"") 89646 } else { 89647 r.EncodeStringEnc(codecSelferCcUTF8100, `Env`) 89648 } 89649 r.WriteMapElemValue() 89650 if x.Env == nil { 89651 r.EncodeNil() 89652 } else { 89653 if false { 89654 } else { 89655 z.F.EncMapStringStringV(x.Env, e) 89656 } 89657 } 89658 } 89659 if yyr2 || yy2arr2 { 89660 r.WriteArrayElem() 89661 if x.Services == nil { 89662 r.EncodeNil() 89663 } else { 89664 if false { 89665 } else { 89666 h.encSlicePtrtoService(([]*Service)(x.Services), e) 89667 } 89668 } 89669 } else { 89670 r.WriteMapElemKey() 89671 if z.IsJSONHandle() { 89672 z.WriteStr("\"Services\"") 89673 } else { 89674 r.EncodeStringEnc(codecSelferCcUTF8100, `Services`) 89675 } 89676 r.WriteMapElemValue() 89677 if x.Services == nil { 89678 r.EncodeNil() 89679 } else { 89680 if false { 89681 } else { 89682 h.encSlicePtrtoService(([]*Service)(x.Services), e) 89683 } 89684 } 89685 } 89686 var yyn21 bool 89687 if x.Vault == nil { 89688 yyn21 = true 89689 goto LABEL21 89690 } 89691 LABEL21: 89692 if yyr2 || yy2arr2 { 89693 if yyn21 { 89694 r.WriteArrayElem() 89695 r.EncodeNil() 89696 } else { 89697 r.WriteArrayElem() 89698 if x.Vault == nil { 89699 r.EncodeNil() 89700 } else { 89701 x.Vault.CodecEncodeSelf(e) 89702 } 89703 } 89704 } else { 89705 r.WriteMapElemKey() 89706 if z.IsJSONHandle() { 89707 z.WriteStr("\"Vault\"") 89708 } else { 89709 r.EncodeStringEnc(codecSelferCcUTF8100, `Vault`) 89710 } 89711 r.WriteMapElemValue() 89712 if yyn21 { 89713 r.EncodeNil() 89714 } else { 89715 if x.Vault == nil { 89716 r.EncodeNil() 89717 } else { 89718 x.Vault.CodecEncodeSelf(e) 89719 } 89720 } 89721 } 89722 if yyr2 || yy2arr2 { 89723 r.WriteArrayElem() 89724 if x.Templates == nil { 89725 r.EncodeNil() 89726 } else { 89727 if false { 89728 } else { 89729 h.encSlicePtrtoTemplate(([]*Template)(x.Templates), e) 89730 } 89731 } 89732 } else { 89733 r.WriteMapElemKey() 89734 if z.IsJSONHandle() { 89735 z.WriteStr("\"Templates\"") 89736 } else { 89737 r.EncodeStringEnc(codecSelferCcUTF8100, `Templates`) 89738 } 89739 r.WriteMapElemValue() 89740 if x.Templates == nil { 89741 r.EncodeNil() 89742 } else { 89743 if false { 89744 } else { 89745 h.encSlicePtrtoTemplate(([]*Template)(x.Templates), e) 89746 } 89747 } 89748 } 89749 if yyr2 || yy2arr2 { 89750 r.WriteArrayElem() 89751 if x.Constraints == nil { 89752 r.EncodeNil() 89753 } else { 89754 if false { 89755 } else { 89756 h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) 89757 } 89758 } 89759 } else { 89760 r.WriteMapElemKey() 89761 if z.IsJSONHandle() { 89762 z.WriteStr("\"Constraints\"") 89763 } else { 89764 r.EncodeStringEnc(codecSelferCcUTF8100, `Constraints`) 89765 } 89766 r.WriteMapElemValue() 89767 if x.Constraints == nil { 89768 r.EncodeNil() 89769 } else { 89770 if false { 89771 } else { 89772 h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) 89773 } 89774 } 89775 } 89776 if yyr2 || yy2arr2 { 89777 r.WriteArrayElem() 89778 if x.Affinities == nil { 89779 r.EncodeNil() 89780 } else { 89781 if false { 89782 } else { 89783 h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) 89784 } 89785 } 89786 } else { 89787 r.WriteMapElemKey() 89788 if z.IsJSONHandle() { 89789 z.WriteStr("\"Affinities\"") 89790 } else { 89791 r.EncodeStringEnc(codecSelferCcUTF8100, `Affinities`) 89792 } 89793 r.WriteMapElemValue() 89794 if x.Affinities == nil { 89795 r.EncodeNil() 89796 } else { 89797 if false { 89798 } else { 89799 h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) 89800 } 89801 } 89802 } 89803 var yyn33 bool 89804 if x.Resources == nil { 89805 yyn33 = true 89806 goto LABEL33 89807 } 89808 LABEL33: 89809 if yyr2 || yy2arr2 { 89810 if yyn33 { 89811 r.WriteArrayElem() 89812 r.EncodeNil() 89813 } else { 89814 r.WriteArrayElem() 89815 if x.Resources == nil { 89816 r.EncodeNil() 89817 } else { 89818 x.Resources.CodecEncodeSelf(e) 89819 } 89820 } 89821 } else { 89822 r.WriteMapElemKey() 89823 if z.IsJSONHandle() { 89824 z.WriteStr("\"Resources\"") 89825 } else { 89826 r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) 89827 } 89828 r.WriteMapElemValue() 89829 if yyn33 { 89830 r.EncodeNil() 89831 } else { 89832 if x.Resources == nil { 89833 r.EncodeNil() 89834 } else { 89835 x.Resources.CodecEncodeSelf(e) 89836 } 89837 } 89838 } 89839 var yyn36 bool 89840 if x.RestartPolicy == nil { 89841 yyn36 = true 89842 goto LABEL36 89843 } 89844 LABEL36: 89845 if yyr2 || yy2arr2 { 89846 if yyn36 { 89847 r.WriteArrayElem() 89848 r.EncodeNil() 89849 } else { 89850 r.WriteArrayElem() 89851 if x.RestartPolicy == nil { 89852 r.EncodeNil() 89853 } else { 89854 x.RestartPolicy.CodecEncodeSelf(e) 89855 } 89856 } 89857 } else { 89858 r.WriteMapElemKey() 89859 if z.IsJSONHandle() { 89860 z.WriteStr("\"RestartPolicy\"") 89861 } else { 89862 r.EncodeStringEnc(codecSelferCcUTF8100, `RestartPolicy`) 89863 } 89864 r.WriteMapElemValue() 89865 if yyn36 { 89866 r.EncodeNil() 89867 } else { 89868 if x.RestartPolicy == nil { 89869 r.EncodeNil() 89870 } else { 89871 x.RestartPolicy.CodecEncodeSelf(e) 89872 } 89873 } 89874 } 89875 var yyn39 bool 89876 if x.DispatchPayload == nil { 89877 yyn39 = true 89878 goto LABEL39 89879 } 89880 LABEL39: 89881 if yyr2 || yy2arr2 { 89882 if yyn39 { 89883 r.WriteArrayElem() 89884 r.EncodeNil() 89885 } else { 89886 r.WriteArrayElem() 89887 if x.DispatchPayload == nil { 89888 r.EncodeNil() 89889 } else { 89890 x.DispatchPayload.CodecEncodeSelf(e) 89891 } 89892 } 89893 } else { 89894 r.WriteMapElemKey() 89895 if z.IsJSONHandle() { 89896 z.WriteStr("\"DispatchPayload\"") 89897 } else { 89898 r.EncodeStringEnc(codecSelferCcUTF8100, `DispatchPayload`) 89899 } 89900 r.WriteMapElemValue() 89901 if yyn39 { 89902 r.EncodeNil() 89903 } else { 89904 if x.DispatchPayload == nil { 89905 r.EncodeNil() 89906 } else { 89907 x.DispatchPayload.CodecEncodeSelf(e) 89908 } 89909 } 89910 } 89911 var yyn42 bool 89912 if x.Lifecycle == nil { 89913 yyn42 = true 89914 goto LABEL42 89915 } 89916 LABEL42: 89917 if yyr2 || yy2arr2 { 89918 if yyn42 { 89919 r.WriteArrayElem() 89920 r.EncodeNil() 89921 } else { 89922 r.WriteArrayElem() 89923 if x.Lifecycle == nil { 89924 r.EncodeNil() 89925 } else { 89926 x.Lifecycle.CodecEncodeSelf(e) 89927 } 89928 } 89929 } else { 89930 r.WriteMapElemKey() 89931 if z.IsJSONHandle() { 89932 z.WriteStr("\"Lifecycle\"") 89933 } else { 89934 r.EncodeStringEnc(codecSelferCcUTF8100, `Lifecycle`) 89935 } 89936 r.WriteMapElemValue() 89937 if yyn42 { 89938 r.EncodeNil() 89939 } else { 89940 if x.Lifecycle == nil { 89941 r.EncodeNil() 89942 } else { 89943 x.Lifecycle.CodecEncodeSelf(e) 89944 } 89945 } 89946 } 89947 if yyr2 || yy2arr2 { 89948 r.WriteArrayElem() 89949 if x.Meta == nil { 89950 r.EncodeNil() 89951 } else { 89952 if false { 89953 } else { 89954 z.F.EncMapStringStringV(x.Meta, e) 89955 } 89956 } 89957 } else { 89958 r.WriteMapElemKey() 89959 if z.IsJSONHandle() { 89960 z.WriteStr("\"Meta\"") 89961 } else { 89962 r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) 89963 } 89964 r.WriteMapElemValue() 89965 if x.Meta == nil { 89966 r.EncodeNil() 89967 } else { 89968 if false { 89969 } else { 89970 z.F.EncMapStringStringV(x.Meta, e) 89971 } 89972 } 89973 } 89974 if yyr2 || yy2arr2 { 89975 r.WriteArrayElem() 89976 if false { 89977 } else if yyxt49 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt49 != nil { 89978 z.EncExtension(x.KillTimeout, yyxt49) 89979 } else { 89980 r.EncodeInt(int64(x.KillTimeout)) 89981 } 89982 } else { 89983 r.WriteMapElemKey() 89984 if z.IsJSONHandle() { 89985 z.WriteStr("\"KillTimeout\"") 89986 } else { 89987 r.EncodeStringEnc(codecSelferCcUTF8100, `KillTimeout`) 89988 } 89989 r.WriteMapElemValue() 89990 if false { 89991 } else if yyxt50 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt50 != nil { 89992 z.EncExtension(x.KillTimeout, yyxt50) 89993 } else { 89994 r.EncodeInt(int64(x.KillTimeout)) 89995 } 89996 } 89997 var yyn51 bool 89998 if x.LogConfig == nil { 89999 yyn51 = true 90000 goto LABEL51 90001 } 90002 LABEL51: 90003 if yyr2 || yy2arr2 { 90004 if yyn51 { 90005 r.WriteArrayElem() 90006 r.EncodeNil() 90007 } else { 90008 r.WriteArrayElem() 90009 if x.LogConfig == nil { 90010 r.EncodeNil() 90011 } else { 90012 x.LogConfig.CodecEncodeSelf(e) 90013 } 90014 } 90015 } else { 90016 r.WriteMapElemKey() 90017 if z.IsJSONHandle() { 90018 z.WriteStr("\"LogConfig\"") 90019 } else { 90020 r.EncodeStringEnc(codecSelferCcUTF8100, `LogConfig`) 90021 } 90022 r.WriteMapElemValue() 90023 if yyn51 { 90024 r.EncodeNil() 90025 } else { 90026 if x.LogConfig == nil { 90027 r.EncodeNil() 90028 } else { 90029 x.LogConfig.CodecEncodeSelf(e) 90030 } 90031 } 90032 } 90033 if yyr2 || yy2arr2 { 90034 r.WriteArrayElem() 90035 if x.Artifacts == nil { 90036 r.EncodeNil() 90037 } else { 90038 if false { 90039 } else { 90040 h.encSlicePtrtoTaskArtifact(([]*TaskArtifact)(x.Artifacts), e) 90041 } 90042 } 90043 } else { 90044 r.WriteMapElemKey() 90045 if z.IsJSONHandle() { 90046 z.WriteStr("\"Artifacts\"") 90047 } else { 90048 r.EncodeStringEnc(codecSelferCcUTF8100, `Artifacts`) 90049 } 90050 r.WriteMapElemValue() 90051 if x.Artifacts == nil { 90052 r.EncodeNil() 90053 } else { 90054 if false { 90055 } else { 90056 h.encSlicePtrtoTaskArtifact(([]*TaskArtifact)(x.Artifacts), e) 90057 } 90058 } 90059 } 90060 if yyr2 || yy2arr2 { 90061 r.WriteArrayElem() 90062 if false { 90063 } else { 90064 r.EncodeBool(bool(x.Leader)) 90065 } 90066 } else { 90067 r.WriteMapElemKey() 90068 if z.IsJSONHandle() { 90069 z.WriteStr("\"Leader\"") 90070 } else { 90071 r.EncodeStringEnc(codecSelferCcUTF8100, `Leader`) 90072 } 90073 r.WriteMapElemValue() 90074 if false { 90075 } else { 90076 r.EncodeBool(bool(x.Leader)) 90077 } 90078 } 90079 if yyr2 || yy2arr2 { 90080 r.WriteArrayElem() 90081 if false { 90082 } else if yyxt61 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt61 != nil { 90083 z.EncExtension(x.ShutdownDelay, yyxt61) 90084 } else { 90085 r.EncodeInt(int64(x.ShutdownDelay)) 90086 } 90087 } else { 90088 r.WriteMapElemKey() 90089 if z.IsJSONHandle() { 90090 z.WriteStr("\"ShutdownDelay\"") 90091 } else { 90092 r.EncodeStringEnc(codecSelferCcUTF8100, `ShutdownDelay`) 90093 } 90094 r.WriteMapElemValue() 90095 if false { 90096 } else if yyxt62 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt62 != nil { 90097 z.EncExtension(x.ShutdownDelay, yyxt62) 90098 } else { 90099 r.EncodeInt(int64(x.ShutdownDelay)) 90100 } 90101 } 90102 if yyr2 || yy2arr2 { 90103 r.WriteArrayElem() 90104 if x.VolumeMounts == nil { 90105 r.EncodeNil() 90106 } else { 90107 if false { 90108 } else { 90109 h.encSlicePtrtoVolumeMount(([]*VolumeMount)(x.VolumeMounts), e) 90110 } 90111 } 90112 } else { 90113 r.WriteMapElemKey() 90114 if z.IsJSONHandle() { 90115 z.WriteStr("\"VolumeMounts\"") 90116 } else { 90117 r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeMounts`) 90118 } 90119 r.WriteMapElemValue() 90120 if x.VolumeMounts == nil { 90121 r.EncodeNil() 90122 } else { 90123 if false { 90124 } else { 90125 h.encSlicePtrtoVolumeMount(([]*VolumeMount)(x.VolumeMounts), e) 90126 } 90127 } 90128 } 90129 if yyr2 || yy2arr2 { 90130 r.WriteArrayElem() 90131 if false { 90132 } else { 90133 if z.EncBasicHandle().StringToRaw { 90134 r.EncodeStringBytesRaw(z.BytesView(string(x.KillSignal))) 90135 } else { 90136 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillSignal)) 90137 } 90138 } 90139 } else { 90140 r.WriteMapElemKey() 90141 if z.IsJSONHandle() { 90142 z.WriteStr("\"KillSignal\"") 90143 } else { 90144 r.EncodeStringEnc(codecSelferCcUTF8100, `KillSignal`) 90145 } 90146 r.WriteMapElemValue() 90147 if false { 90148 } else { 90149 if z.EncBasicHandle().StringToRaw { 90150 r.EncodeStringBytesRaw(z.BytesView(string(x.KillSignal))) 90151 } else { 90152 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillSignal)) 90153 } 90154 } 90155 } 90156 if yyr2 || yy2arr2 { 90157 r.WriteArrayElem() 90158 x.Kind.CodecEncodeSelf(e) 90159 } else { 90160 r.WriteMapElemKey() 90161 if z.IsJSONHandle() { 90162 z.WriteStr("\"Kind\"") 90163 } else { 90164 r.EncodeStringEnc(codecSelferCcUTF8100, `Kind`) 90165 } 90166 r.WriteMapElemValue() 90167 x.Kind.CodecEncodeSelf(e) 90168 } 90169 var yyn72 bool 90170 if x.CSIPluginConfig == nil { 90171 yyn72 = true 90172 goto LABEL72 90173 } 90174 LABEL72: 90175 if yyr2 || yy2arr2 { 90176 if yyn72 { 90177 r.WriteArrayElem() 90178 r.EncodeNil() 90179 } else { 90180 r.WriteArrayElem() 90181 if x.CSIPluginConfig == nil { 90182 r.EncodeNil() 90183 } else { 90184 x.CSIPluginConfig.CodecEncodeSelf(e) 90185 } 90186 } 90187 } else { 90188 r.WriteMapElemKey() 90189 if z.IsJSONHandle() { 90190 z.WriteStr("\"CSIPluginConfig\"") 90191 } else { 90192 r.EncodeStringEnc(codecSelferCcUTF8100, `CSIPluginConfig`) 90193 } 90194 r.WriteMapElemValue() 90195 if yyn72 { 90196 r.EncodeNil() 90197 } else { 90198 if x.CSIPluginConfig == nil { 90199 r.EncodeNil() 90200 } else { 90201 x.CSIPluginConfig.CodecEncodeSelf(e) 90202 } 90203 } 90204 } 90205 if yyr2 || yy2arr2 { 90206 r.WriteArrayEnd() 90207 } else { 90208 r.WriteMapEnd() 90209 } 90210 } 90211 } 90212 } 90213 90214 func (x *Task) CodecDecodeSelf(d *codec1978.Decoder) { 90215 var h codecSelfer100 90216 z, r := codec1978.GenHelperDecoder(d) 90217 _, _, _ = h, z, r 90218 if false { 90219 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 90220 z.DecExtension(x, yyxt1) 90221 } else { 90222 yyct2 := r.ContainerType() 90223 if yyct2 == codecSelferValueTypeMap100 { 90224 yyl2 := r.ReadMapStart() 90225 if yyl2 == 0 { 90226 r.ReadMapEnd() 90227 } else { 90228 x.codecDecodeSelfFromMap(yyl2, d) 90229 } 90230 } else if yyct2 == codecSelferValueTypeArray100 { 90231 yyl2 := r.ReadArrayStart() 90232 if yyl2 == 0 { 90233 r.ReadArrayEnd() 90234 } else { 90235 x.codecDecodeSelfFromArray(yyl2, d) 90236 } 90237 } else { 90238 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 90239 } 90240 } 90241 } 90242 90243 func (x *Task) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 90244 var h codecSelfer100 90245 z, r := codec1978.GenHelperDecoder(d) 90246 _, _, _ = h, z, r 90247 var yyhl3 bool = l >= 0 90248 for yyj3 := 0; ; yyj3++ { 90249 if yyhl3 { 90250 if yyj3 >= l { 90251 break 90252 } 90253 } else { 90254 if r.CheckBreak() { 90255 break 90256 } 90257 } 90258 r.ReadMapElemKey() 90259 yys3 := z.StringView(r.DecodeStringAsBytes()) 90260 r.ReadMapElemValue() 90261 switch yys3 { 90262 case "Name": 90263 if r.TryDecodeAsNil() { 90264 x.Name = "" 90265 } else { 90266 x.Name = (string)(r.DecodeString()) 90267 } 90268 case "Driver": 90269 if r.TryDecodeAsNil() { 90270 x.Driver = "" 90271 } else { 90272 x.Driver = (string)(r.DecodeString()) 90273 } 90274 case "User": 90275 if r.TryDecodeAsNil() { 90276 x.User = "" 90277 } else { 90278 x.User = (string)(r.DecodeString()) 90279 } 90280 case "Config": 90281 if r.TryDecodeAsNil() { 90282 x.Config = nil 90283 } else { 90284 if false { 90285 } else { 90286 z.F.DecMapStringIntfX(&x.Config, d) 90287 } 90288 } 90289 case "Env": 90290 if r.TryDecodeAsNil() { 90291 x.Env = nil 90292 } else { 90293 if false { 90294 } else { 90295 z.F.DecMapStringStringX(&x.Env, d) 90296 } 90297 } 90298 case "Services": 90299 if r.TryDecodeAsNil() { 90300 x.Services = nil 90301 } else { 90302 if false { 90303 } else { 90304 h.decSlicePtrtoService((*[]*Service)(&x.Services), d) 90305 } 90306 } 90307 case "Vault": 90308 if r.TryDecodeAsNil() { 90309 if true && x.Vault != nil { 90310 x.Vault = nil 90311 } 90312 } else { 90313 if x.Vault == nil { 90314 x.Vault = new(Vault) 90315 } 90316 90317 x.Vault.CodecDecodeSelf(d) 90318 } 90319 case "Templates": 90320 if r.TryDecodeAsNil() { 90321 x.Templates = nil 90322 } else { 90323 if false { 90324 } else { 90325 h.decSlicePtrtoTemplate((*[]*Template)(&x.Templates), d) 90326 } 90327 } 90328 case "Constraints": 90329 if r.TryDecodeAsNil() { 90330 x.Constraints = nil 90331 } else { 90332 if false { 90333 } else { 90334 h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) 90335 } 90336 } 90337 case "Affinities": 90338 if r.TryDecodeAsNil() { 90339 x.Affinities = nil 90340 } else { 90341 if false { 90342 } else { 90343 h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) 90344 } 90345 } 90346 case "Resources": 90347 if r.TryDecodeAsNil() { 90348 if true && x.Resources != nil { 90349 x.Resources = nil 90350 } 90351 } else { 90352 if x.Resources == nil { 90353 x.Resources = new(Resources) 90354 } 90355 90356 x.Resources.CodecDecodeSelf(d) 90357 } 90358 case "RestartPolicy": 90359 if r.TryDecodeAsNil() { 90360 if true && x.RestartPolicy != nil { 90361 x.RestartPolicy = nil 90362 } 90363 } else { 90364 if x.RestartPolicy == nil { 90365 x.RestartPolicy = new(RestartPolicy) 90366 } 90367 90368 x.RestartPolicy.CodecDecodeSelf(d) 90369 } 90370 case "DispatchPayload": 90371 if r.TryDecodeAsNil() { 90372 if true && x.DispatchPayload != nil { 90373 x.DispatchPayload = nil 90374 } 90375 } else { 90376 if x.DispatchPayload == nil { 90377 x.DispatchPayload = new(DispatchPayloadConfig) 90378 } 90379 90380 x.DispatchPayload.CodecDecodeSelf(d) 90381 } 90382 case "Lifecycle": 90383 if r.TryDecodeAsNil() { 90384 if true && x.Lifecycle != nil { 90385 x.Lifecycle = nil 90386 } 90387 } else { 90388 if x.Lifecycle == nil { 90389 x.Lifecycle = new(TaskLifecycleConfig) 90390 } 90391 90392 x.Lifecycle.CodecDecodeSelf(d) 90393 } 90394 case "Meta": 90395 if r.TryDecodeAsNil() { 90396 x.Meta = nil 90397 } else { 90398 if false { 90399 } else { 90400 z.F.DecMapStringStringX(&x.Meta, d) 90401 } 90402 } 90403 case "KillTimeout": 90404 if r.TryDecodeAsNil() { 90405 x.KillTimeout = 0 90406 } else { 90407 if false { 90408 } else if yyxt27 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt27 != nil { 90409 z.DecExtension(x.KillTimeout, yyxt27) 90410 } else { 90411 x.KillTimeout = (time.Duration)(r.DecodeInt64()) 90412 } 90413 } 90414 case "LogConfig": 90415 if r.TryDecodeAsNil() { 90416 if true && x.LogConfig != nil { 90417 x.LogConfig = nil 90418 } 90419 } else { 90420 if x.LogConfig == nil { 90421 x.LogConfig = new(LogConfig) 90422 } 90423 90424 x.LogConfig.CodecDecodeSelf(d) 90425 } 90426 case "Artifacts": 90427 if r.TryDecodeAsNil() { 90428 x.Artifacts = nil 90429 } else { 90430 if false { 90431 } else { 90432 h.decSlicePtrtoTaskArtifact((*[]*TaskArtifact)(&x.Artifacts), d) 90433 } 90434 } 90435 case "Leader": 90436 if r.TryDecodeAsNil() { 90437 x.Leader = false 90438 } else { 90439 x.Leader = (bool)(r.DecodeBool()) 90440 } 90441 case "ShutdownDelay": 90442 if r.TryDecodeAsNil() { 90443 x.ShutdownDelay = 0 90444 } else { 90445 if false { 90446 } else if yyxt33 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt33 != nil { 90447 z.DecExtension(x.ShutdownDelay, yyxt33) 90448 } else { 90449 x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) 90450 } 90451 } 90452 case "VolumeMounts": 90453 if r.TryDecodeAsNil() { 90454 x.VolumeMounts = nil 90455 } else { 90456 if false { 90457 } else { 90458 h.decSlicePtrtoVolumeMount((*[]*VolumeMount)(&x.VolumeMounts), d) 90459 } 90460 } 90461 case "KillSignal": 90462 if r.TryDecodeAsNil() { 90463 x.KillSignal = "" 90464 } else { 90465 x.KillSignal = (string)(r.DecodeString()) 90466 } 90467 case "Kind": 90468 if r.TryDecodeAsNil() { 90469 x.Kind = "" 90470 } else { 90471 x.Kind.CodecDecodeSelf(d) 90472 } 90473 case "CSIPluginConfig": 90474 if r.TryDecodeAsNil() { 90475 if true && x.CSIPluginConfig != nil { 90476 x.CSIPluginConfig = nil 90477 } 90478 } else { 90479 if x.CSIPluginConfig == nil { 90480 x.CSIPluginConfig = new(TaskCSIPluginConfig) 90481 } 90482 90483 x.CSIPluginConfig.CodecDecodeSelf(d) 90484 } 90485 default: 90486 z.DecStructFieldNotFound(-1, yys3) 90487 } // end switch yys3 90488 } // end for yyj3 90489 r.ReadMapEnd() 90490 } 90491 90492 func (x *Task) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 90493 var h codecSelfer100 90494 z, r := codec1978.GenHelperDecoder(d) 90495 _, _, _ = h, z, r 90496 var yyj39 int 90497 var yyb39 bool 90498 var yyhl39 bool = l >= 0 90499 yyj39++ 90500 if yyhl39 { 90501 yyb39 = yyj39 > l 90502 } else { 90503 yyb39 = r.CheckBreak() 90504 } 90505 if yyb39 { 90506 r.ReadArrayEnd() 90507 return 90508 } 90509 r.ReadArrayElem() 90510 if r.TryDecodeAsNil() { 90511 x.Name = "" 90512 } else { 90513 x.Name = (string)(r.DecodeString()) 90514 } 90515 yyj39++ 90516 if yyhl39 { 90517 yyb39 = yyj39 > l 90518 } else { 90519 yyb39 = r.CheckBreak() 90520 } 90521 if yyb39 { 90522 r.ReadArrayEnd() 90523 return 90524 } 90525 r.ReadArrayElem() 90526 if r.TryDecodeAsNil() { 90527 x.Driver = "" 90528 } else { 90529 x.Driver = (string)(r.DecodeString()) 90530 } 90531 yyj39++ 90532 if yyhl39 { 90533 yyb39 = yyj39 > l 90534 } else { 90535 yyb39 = r.CheckBreak() 90536 } 90537 if yyb39 { 90538 r.ReadArrayEnd() 90539 return 90540 } 90541 r.ReadArrayElem() 90542 if r.TryDecodeAsNil() { 90543 x.User = "" 90544 } else { 90545 x.User = (string)(r.DecodeString()) 90546 } 90547 yyj39++ 90548 if yyhl39 { 90549 yyb39 = yyj39 > l 90550 } else { 90551 yyb39 = r.CheckBreak() 90552 } 90553 if yyb39 { 90554 r.ReadArrayEnd() 90555 return 90556 } 90557 r.ReadArrayElem() 90558 if r.TryDecodeAsNil() { 90559 x.Config = nil 90560 } else { 90561 if false { 90562 } else { 90563 z.F.DecMapStringIntfX(&x.Config, d) 90564 } 90565 } 90566 yyj39++ 90567 if yyhl39 { 90568 yyb39 = yyj39 > l 90569 } else { 90570 yyb39 = r.CheckBreak() 90571 } 90572 if yyb39 { 90573 r.ReadArrayEnd() 90574 return 90575 } 90576 r.ReadArrayElem() 90577 if r.TryDecodeAsNil() { 90578 x.Env = nil 90579 } else { 90580 if false { 90581 } else { 90582 z.F.DecMapStringStringX(&x.Env, d) 90583 } 90584 } 90585 yyj39++ 90586 if yyhl39 { 90587 yyb39 = yyj39 > l 90588 } else { 90589 yyb39 = r.CheckBreak() 90590 } 90591 if yyb39 { 90592 r.ReadArrayEnd() 90593 return 90594 } 90595 r.ReadArrayElem() 90596 if r.TryDecodeAsNil() { 90597 x.Services = nil 90598 } else { 90599 if false { 90600 } else { 90601 h.decSlicePtrtoService((*[]*Service)(&x.Services), d) 90602 } 90603 } 90604 yyj39++ 90605 if yyhl39 { 90606 yyb39 = yyj39 > l 90607 } else { 90608 yyb39 = r.CheckBreak() 90609 } 90610 if yyb39 { 90611 r.ReadArrayEnd() 90612 return 90613 } 90614 r.ReadArrayElem() 90615 if r.TryDecodeAsNil() { 90616 if true && x.Vault != nil { 90617 x.Vault = nil 90618 } 90619 } else { 90620 if x.Vault == nil { 90621 x.Vault = new(Vault) 90622 } 90623 90624 x.Vault.CodecDecodeSelf(d) 90625 } 90626 yyj39++ 90627 if yyhl39 { 90628 yyb39 = yyj39 > l 90629 } else { 90630 yyb39 = r.CheckBreak() 90631 } 90632 if yyb39 { 90633 r.ReadArrayEnd() 90634 return 90635 } 90636 r.ReadArrayElem() 90637 if r.TryDecodeAsNil() { 90638 x.Templates = nil 90639 } else { 90640 if false { 90641 } else { 90642 h.decSlicePtrtoTemplate((*[]*Template)(&x.Templates), d) 90643 } 90644 } 90645 yyj39++ 90646 if yyhl39 { 90647 yyb39 = yyj39 > l 90648 } else { 90649 yyb39 = r.CheckBreak() 90650 } 90651 if yyb39 { 90652 r.ReadArrayEnd() 90653 return 90654 } 90655 r.ReadArrayElem() 90656 if r.TryDecodeAsNil() { 90657 x.Constraints = nil 90658 } else { 90659 if false { 90660 } else { 90661 h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) 90662 } 90663 } 90664 yyj39++ 90665 if yyhl39 { 90666 yyb39 = yyj39 > l 90667 } else { 90668 yyb39 = r.CheckBreak() 90669 } 90670 if yyb39 { 90671 r.ReadArrayEnd() 90672 return 90673 } 90674 r.ReadArrayElem() 90675 if r.TryDecodeAsNil() { 90676 x.Affinities = nil 90677 } else { 90678 if false { 90679 } else { 90680 h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) 90681 } 90682 } 90683 yyj39++ 90684 if yyhl39 { 90685 yyb39 = yyj39 > l 90686 } else { 90687 yyb39 = r.CheckBreak() 90688 } 90689 if yyb39 { 90690 r.ReadArrayEnd() 90691 return 90692 } 90693 r.ReadArrayElem() 90694 if r.TryDecodeAsNil() { 90695 if true && x.Resources != nil { 90696 x.Resources = nil 90697 } 90698 } else { 90699 if x.Resources == nil { 90700 x.Resources = new(Resources) 90701 } 90702 90703 x.Resources.CodecDecodeSelf(d) 90704 } 90705 yyj39++ 90706 if yyhl39 { 90707 yyb39 = yyj39 > l 90708 } else { 90709 yyb39 = r.CheckBreak() 90710 } 90711 if yyb39 { 90712 r.ReadArrayEnd() 90713 return 90714 } 90715 r.ReadArrayElem() 90716 if r.TryDecodeAsNil() { 90717 if true && x.RestartPolicy != nil { 90718 x.RestartPolicy = nil 90719 } 90720 } else { 90721 if x.RestartPolicy == nil { 90722 x.RestartPolicy = new(RestartPolicy) 90723 } 90724 90725 x.RestartPolicy.CodecDecodeSelf(d) 90726 } 90727 yyj39++ 90728 if yyhl39 { 90729 yyb39 = yyj39 > l 90730 } else { 90731 yyb39 = r.CheckBreak() 90732 } 90733 if yyb39 { 90734 r.ReadArrayEnd() 90735 return 90736 } 90737 r.ReadArrayElem() 90738 if r.TryDecodeAsNil() { 90739 if true && x.DispatchPayload != nil { 90740 x.DispatchPayload = nil 90741 } 90742 } else { 90743 if x.DispatchPayload == nil { 90744 x.DispatchPayload = new(DispatchPayloadConfig) 90745 } 90746 90747 x.DispatchPayload.CodecDecodeSelf(d) 90748 } 90749 yyj39++ 90750 if yyhl39 { 90751 yyb39 = yyj39 > l 90752 } else { 90753 yyb39 = r.CheckBreak() 90754 } 90755 if yyb39 { 90756 r.ReadArrayEnd() 90757 return 90758 } 90759 r.ReadArrayElem() 90760 if r.TryDecodeAsNil() { 90761 if true && x.Lifecycle != nil { 90762 x.Lifecycle = nil 90763 } 90764 } else { 90765 if x.Lifecycle == nil { 90766 x.Lifecycle = new(TaskLifecycleConfig) 90767 } 90768 90769 x.Lifecycle.CodecDecodeSelf(d) 90770 } 90771 yyj39++ 90772 if yyhl39 { 90773 yyb39 = yyj39 > l 90774 } else { 90775 yyb39 = r.CheckBreak() 90776 } 90777 if yyb39 { 90778 r.ReadArrayEnd() 90779 return 90780 } 90781 r.ReadArrayElem() 90782 if r.TryDecodeAsNil() { 90783 x.Meta = nil 90784 } else { 90785 if false { 90786 } else { 90787 z.F.DecMapStringStringX(&x.Meta, d) 90788 } 90789 } 90790 yyj39++ 90791 if yyhl39 { 90792 yyb39 = yyj39 > l 90793 } else { 90794 yyb39 = r.CheckBreak() 90795 } 90796 if yyb39 { 90797 r.ReadArrayEnd() 90798 return 90799 } 90800 r.ReadArrayElem() 90801 if r.TryDecodeAsNil() { 90802 x.KillTimeout = 0 90803 } else { 90804 if false { 90805 } else if yyxt63 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt63 != nil { 90806 z.DecExtension(x.KillTimeout, yyxt63) 90807 } else { 90808 x.KillTimeout = (time.Duration)(r.DecodeInt64()) 90809 } 90810 } 90811 yyj39++ 90812 if yyhl39 { 90813 yyb39 = yyj39 > l 90814 } else { 90815 yyb39 = r.CheckBreak() 90816 } 90817 if yyb39 { 90818 r.ReadArrayEnd() 90819 return 90820 } 90821 r.ReadArrayElem() 90822 if r.TryDecodeAsNil() { 90823 if true && x.LogConfig != nil { 90824 x.LogConfig = nil 90825 } 90826 } else { 90827 if x.LogConfig == nil { 90828 x.LogConfig = new(LogConfig) 90829 } 90830 90831 x.LogConfig.CodecDecodeSelf(d) 90832 } 90833 yyj39++ 90834 if yyhl39 { 90835 yyb39 = yyj39 > l 90836 } else { 90837 yyb39 = r.CheckBreak() 90838 } 90839 if yyb39 { 90840 r.ReadArrayEnd() 90841 return 90842 } 90843 r.ReadArrayElem() 90844 if r.TryDecodeAsNil() { 90845 x.Artifacts = nil 90846 } else { 90847 if false { 90848 } else { 90849 h.decSlicePtrtoTaskArtifact((*[]*TaskArtifact)(&x.Artifacts), d) 90850 } 90851 } 90852 yyj39++ 90853 if yyhl39 { 90854 yyb39 = yyj39 > l 90855 } else { 90856 yyb39 = r.CheckBreak() 90857 } 90858 if yyb39 { 90859 r.ReadArrayEnd() 90860 return 90861 } 90862 r.ReadArrayElem() 90863 if r.TryDecodeAsNil() { 90864 x.Leader = false 90865 } else { 90866 x.Leader = (bool)(r.DecodeBool()) 90867 } 90868 yyj39++ 90869 if yyhl39 { 90870 yyb39 = yyj39 > l 90871 } else { 90872 yyb39 = r.CheckBreak() 90873 } 90874 if yyb39 { 90875 r.ReadArrayEnd() 90876 return 90877 } 90878 r.ReadArrayElem() 90879 if r.TryDecodeAsNil() { 90880 x.ShutdownDelay = 0 90881 } else { 90882 if false { 90883 } else if yyxt69 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt69 != nil { 90884 z.DecExtension(x.ShutdownDelay, yyxt69) 90885 } else { 90886 x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) 90887 } 90888 } 90889 yyj39++ 90890 if yyhl39 { 90891 yyb39 = yyj39 > l 90892 } else { 90893 yyb39 = r.CheckBreak() 90894 } 90895 if yyb39 { 90896 r.ReadArrayEnd() 90897 return 90898 } 90899 r.ReadArrayElem() 90900 if r.TryDecodeAsNil() { 90901 x.VolumeMounts = nil 90902 } else { 90903 if false { 90904 } else { 90905 h.decSlicePtrtoVolumeMount((*[]*VolumeMount)(&x.VolumeMounts), d) 90906 } 90907 } 90908 yyj39++ 90909 if yyhl39 { 90910 yyb39 = yyj39 > l 90911 } else { 90912 yyb39 = r.CheckBreak() 90913 } 90914 if yyb39 { 90915 r.ReadArrayEnd() 90916 return 90917 } 90918 r.ReadArrayElem() 90919 if r.TryDecodeAsNil() { 90920 x.KillSignal = "" 90921 } else { 90922 x.KillSignal = (string)(r.DecodeString()) 90923 } 90924 yyj39++ 90925 if yyhl39 { 90926 yyb39 = yyj39 > l 90927 } else { 90928 yyb39 = r.CheckBreak() 90929 } 90930 if yyb39 { 90931 r.ReadArrayEnd() 90932 return 90933 } 90934 r.ReadArrayElem() 90935 if r.TryDecodeAsNil() { 90936 x.Kind = "" 90937 } else { 90938 x.Kind.CodecDecodeSelf(d) 90939 } 90940 yyj39++ 90941 if yyhl39 { 90942 yyb39 = yyj39 > l 90943 } else { 90944 yyb39 = r.CheckBreak() 90945 } 90946 if yyb39 { 90947 r.ReadArrayEnd() 90948 return 90949 } 90950 r.ReadArrayElem() 90951 if r.TryDecodeAsNil() { 90952 if true && x.CSIPluginConfig != nil { 90953 x.CSIPluginConfig = nil 90954 } 90955 } else { 90956 if x.CSIPluginConfig == nil { 90957 x.CSIPluginConfig = new(TaskCSIPluginConfig) 90958 } 90959 90960 x.CSIPluginConfig.CodecDecodeSelf(d) 90961 } 90962 for { 90963 yyj39++ 90964 if yyhl39 { 90965 yyb39 = yyj39 > l 90966 } else { 90967 yyb39 = r.CheckBreak() 90968 } 90969 if yyb39 { 90970 break 90971 } 90972 r.ReadArrayElem() 90973 z.DecStructFieldNotFound(yyj39-1, "") 90974 } 90975 r.ReadArrayEnd() 90976 } 90977 90978 func (x TaskKind) CodecEncodeSelf(e *codec1978.Encoder) { 90979 var h codecSelfer100 90980 z, r := codec1978.GenHelperEncoder(e) 90981 _, _, _ = h, z, r 90982 if false { 90983 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 90984 z.EncExtension(x, yyxt1) 90985 } else { 90986 if z.EncBasicHandle().StringToRaw { 90987 r.EncodeStringBytesRaw(z.BytesView(string(x))) 90988 } else { 90989 r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) 90990 } 90991 } 90992 } 90993 90994 func (x *TaskKind) CodecDecodeSelf(d *codec1978.Decoder) { 90995 var h codecSelfer100 90996 z, r := codec1978.GenHelperDecoder(d) 90997 _, _, _ = h, z, r 90998 if false { 90999 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 91000 z.DecExtension(x, yyxt1) 91001 } else { 91002 *x = (TaskKind)(r.DecodeString()) 91003 } 91004 } 91005 91006 func (x *Template) CodecEncodeSelf(e *codec1978.Encoder) { 91007 var h codecSelfer100 91008 z, r := codec1978.GenHelperEncoder(e) 91009 _, _, _ = h, z, r 91010 if x == nil { 91011 r.EncodeNil() 91012 } else { 91013 if false { 91014 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 91015 z.EncExtension(x, yyxt1) 91016 } else { 91017 yysep2 := !z.EncBinary() 91018 yy2arr2 := z.EncBasicHandle().StructToArray 91019 _, _ = yysep2, yy2arr2 91020 const yyr2 bool = false // struct tag has 'toArray' 91021 if yyr2 || yy2arr2 { 91022 r.WriteArrayStart(11) 91023 } else { 91024 r.WriteMapStart(11) 91025 } 91026 if yyr2 || yy2arr2 { 91027 r.WriteArrayElem() 91028 if false { 91029 } else { 91030 if z.EncBasicHandle().StringToRaw { 91031 r.EncodeStringBytesRaw(z.BytesView(string(x.SourcePath))) 91032 } else { 91033 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SourcePath)) 91034 } 91035 } 91036 } else { 91037 r.WriteMapElemKey() 91038 if z.IsJSONHandle() { 91039 z.WriteStr("\"SourcePath\"") 91040 } else { 91041 r.EncodeStringEnc(codecSelferCcUTF8100, `SourcePath`) 91042 } 91043 r.WriteMapElemValue() 91044 if false { 91045 } else { 91046 if z.EncBasicHandle().StringToRaw { 91047 r.EncodeStringBytesRaw(z.BytesView(string(x.SourcePath))) 91048 } else { 91049 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SourcePath)) 91050 } 91051 } 91052 } 91053 if yyr2 || yy2arr2 { 91054 r.WriteArrayElem() 91055 if false { 91056 } else { 91057 if z.EncBasicHandle().StringToRaw { 91058 r.EncodeStringBytesRaw(z.BytesView(string(x.DestPath))) 91059 } else { 91060 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestPath)) 91061 } 91062 } 91063 } else { 91064 r.WriteMapElemKey() 91065 if z.IsJSONHandle() { 91066 z.WriteStr("\"DestPath\"") 91067 } else { 91068 r.EncodeStringEnc(codecSelferCcUTF8100, `DestPath`) 91069 } 91070 r.WriteMapElemValue() 91071 if false { 91072 } else { 91073 if z.EncBasicHandle().StringToRaw { 91074 r.EncodeStringBytesRaw(z.BytesView(string(x.DestPath))) 91075 } else { 91076 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestPath)) 91077 } 91078 } 91079 } 91080 if yyr2 || yy2arr2 { 91081 r.WriteArrayElem() 91082 if false { 91083 } else { 91084 if z.EncBasicHandle().StringToRaw { 91085 r.EncodeStringBytesRaw(z.BytesView(string(x.EmbeddedTmpl))) 91086 } else { 91087 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EmbeddedTmpl)) 91088 } 91089 } 91090 } else { 91091 r.WriteMapElemKey() 91092 if z.IsJSONHandle() { 91093 z.WriteStr("\"EmbeddedTmpl\"") 91094 } else { 91095 r.EncodeStringEnc(codecSelferCcUTF8100, `EmbeddedTmpl`) 91096 } 91097 r.WriteMapElemValue() 91098 if false { 91099 } else { 91100 if z.EncBasicHandle().StringToRaw { 91101 r.EncodeStringBytesRaw(z.BytesView(string(x.EmbeddedTmpl))) 91102 } else { 91103 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EmbeddedTmpl)) 91104 } 91105 } 91106 } 91107 if yyr2 || yy2arr2 { 91108 r.WriteArrayElem() 91109 if false { 91110 } else { 91111 if z.EncBasicHandle().StringToRaw { 91112 r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeMode))) 91113 } else { 91114 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeMode)) 91115 } 91116 } 91117 } else { 91118 r.WriteMapElemKey() 91119 if z.IsJSONHandle() { 91120 z.WriteStr("\"ChangeMode\"") 91121 } else { 91122 r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeMode`) 91123 } 91124 r.WriteMapElemValue() 91125 if false { 91126 } else { 91127 if z.EncBasicHandle().StringToRaw { 91128 r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeMode))) 91129 } else { 91130 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeMode)) 91131 } 91132 } 91133 } 91134 if yyr2 || yy2arr2 { 91135 r.WriteArrayElem() 91136 if false { 91137 } else { 91138 if z.EncBasicHandle().StringToRaw { 91139 r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeSignal))) 91140 } else { 91141 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeSignal)) 91142 } 91143 } 91144 } else { 91145 r.WriteMapElemKey() 91146 if z.IsJSONHandle() { 91147 z.WriteStr("\"ChangeSignal\"") 91148 } else { 91149 r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeSignal`) 91150 } 91151 r.WriteMapElemValue() 91152 if false { 91153 } else { 91154 if z.EncBasicHandle().StringToRaw { 91155 r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeSignal))) 91156 } else { 91157 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeSignal)) 91158 } 91159 } 91160 } 91161 if yyr2 || yy2arr2 { 91162 r.WriteArrayElem() 91163 if false { 91164 } else if yyxt19 := z.Extension(z.I2Rtid(x.Splay)); yyxt19 != nil { 91165 z.EncExtension(x.Splay, yyxt19) 91166 } else { 91167 r.EncodeInt(int64(x.Splay)) 91168 } 91169 } else { 91170 r.WriteMapElemKey() 91171 if z.IsJSONHandle() { 91172 z.WriteStr("\"Splay\"") 91173 } else { 91174 r.EncodeStringEnc(codecSelferCcUTF8100, `Splay`) 91175 } 91176 r.WriteMapElemValue() 91177 if false { 91178 } else if yyxt20 := z.Extension(z.I2Rtid(x.Splay)); yyxt20 != nil { 91179 z.EncExtension(x.Splay, yyxt20) 91180 } else { 91181 r.EncodeInt(int64(x.Splay)) 91182 } 91183 } 91184 if yyr2 || yy2arr2 { 91185 r.WriteArrayElem() 91186 if false { 91187 } else { 91188 if z.EncBasicHandle().StringToRaw { 91189 r.EncodeStringBytesRaw(z.BytesView(string(x.Perms))) 91190 } else { 91191 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Perms)) 91192 } 91193 } 91194 } else { 91195 r.WriteMapElemKey() 91196 if z.IsJSONHandle() { 91197 z.WriteStr("\"Perms\"") 91198 } else { 91199 r.EncodeStringEnc(codecSelferCcUTF8100, `Perms`) 91200 } 91201 r.WriteMapElemValue() 91202 if false { 91203 } else { 91204 if z.EncBasicHandle().StringToRaw { 91205 r.EncodeStringBytesRaw(z.BytesView(string(x.Perms))) 91206 } else { 91207 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Perms)) 91208 } 91209 } 91210 } 91211 if yyr2 || yy2arr2 { 91212 r.WriteArrayElem() 91213 if false { 91214 } else { 91215 if z.EncBasicHandle().StringToRaw { 91216 r.EncodeStringBytesRaw(z.BytesView(string(x.LeftDelim))) 91217 } else { 91218 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeftDelim)) 91219 } 91220 } 91221 } else { 91222 r.WriteMapElemKey() 91223 if z.IsJSONHandle() { 91224 z.WriteStr("\"LeftDelim\"") 91225 } else { 91226 r.EncodeStringEnc(codecSelferCcUTF8100, `LeftDelim`) 91227 } 91228 r.WriteMapElemValue() 91229 if false { 91230 } else { 91231 if z.EncBasicHandle().StringToRaw { 91232 r.EncodeStringBytesRaw(z.BytesView(string(x.LeftDelim))) 91233 } else { 91234 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeftDelim)) 91235 } 91236 } 91237 } 91238 if yyr2 || yy2arr2 { 91239 r.WriteArrayElem() 91240 if false { 91241 } else { 91242 if z.EncBasicHandle().StringToRaw { 91243 r.EncodeStringBytesRaw(z.BytesView(string(x.RightDelim))) 91244 } else { 91245 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RightDelim)) 91246 } 91247 } 91248 } else { 91249 r.WriteMapElemKey() 91250 if z.IsJSONHandle() { 91251 z.WriteStr("\"RightDelim\"") 91252 } else { 91253 r.EncodeStringEnc(codecSelferCcUTF8100, `RightDelim`) 91254 } 91255 r.WriteMapElemValue() 91256 if false { 91257 } else { 91258 if z.EncBasicHandle().StringToRaw { 91259 r.EncodeStringBytesRaw(z.BytesView(string(x.RightDelim))) 91260 } else { 91261 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RightDelim)) 91262 } 91263 } 91264 } 91265 if yyr2 || yy2arr2 { 91266 r.WriteArrayElem() 91267 if false { 91268 } else { 91269 r.EncodeBool(bool(x.Envvars)) 91270 } 91271 } else { 91272 r.WriteMapElemKey() 91273 if z.IsJSONHandle() { 91274 z.WriteStr("\"Envvars\"") 91275 } else { 91276 r.EncodeStringEnc(codecSelferCcUTF8100, `Envvars`) 91277 } 91278 r.WriteMapElemValue() 91279 if false { 91280 } else { 91281 r.EncodeBool(bool(x.Envvars)) 91282 } 91283 } 91284 if yyr2 || yy2arr2 { 91285 r.WriteArrayElem() 91286 if false { 91287 } else if yyxt34 := z.Extension(z.I2Rtid(x.VaultGrace)); yyxt34 != nil { 91288 z.EncExtension(x.VaultGrace, yyxt34) 91289 } else { 91290 r.EncodeInt(int64(x.VaultGrace)) 91291 } 91292 } else { 91293 r.WriteMapElemKey() 91294 if z.IsJSONHandle() { 91295 z.WriteStr("\"VaultGrace\"") 91296 } else { 91297 r.EncodeStringEnc(codecSelferCcUTF8100, `VaultGrace`) 91298 } 91299 r.WriteMapElemValue() 91300 if false { 91301 } else if yyxt35 := z.Extension(z.I2Rtid(x.VaultGrace)); yyxt35 != nil { 91302 z.EncExtension(x.VaultGrace, yyxt35) 91303 } else { 91304 r.EncodeInt(int64(x.VaultGrace)) 91305 } 91306 } 91307 if yyr2 || yy2arr2 { 91308 r.WriteArrayEnd() 91309 } else { 91310 r.WriteMapEnd() 91311 } 91312 } 91313 } 91314 } 91315 91316 func (x *Template) CodecDecodeSelf(d *codec1978.Decoder) { 91317 var h codecSelfer100 91318 z, r := codec1978.GenHelperDecoder(d) 91319 _, _, _ = h, z, r 91320 if false { 91321 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 91322 z.DecExtension(x, yyxt1) 91323 } else { 91324 yyct2 := r.ContainerType() 91325 if yyct2 == codecSelferValueTypeMap100 { 91326 yyl2 := r.ReadMapStart() 91327 if yyl2 == 0 { 91328 r.ReadMapEnd() 91329 } else { 91330 x.codecDecodeSelfFromMap(yyl2, d) 91331 } 91332 } else if yyct2 == codecSelferValueTypeArray100 { 91333 yyl2 := r.ReadArrayStart() 91334 if yyl2 == 0 { 91335 r.ReadArrayEnd() 91336 } else { 91337 x.codecDecodeSelfFromArray(yyl2, d) 91338 } 91339 } else { 91340 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 91341 } 91342 } 91343 } 91344 91345 func (x *Template) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 91346 var h codecSelfer100 91347 z, r := codec1978.GenHelperDecoder(d) 91348 _, _, _ = h, z, r 91349 var yyhl3 bool = l >= 0 91350 for yyj3 := 0; ; yyj3++ { 91351 if yyhl3 { 91352 if yyj3 >= l { 91353 break 91354 } 91355 } else { 91356 if r.CheckBreak() { 91357 break 91358 } 91359 } 91360 r.ReadMapElemKey() 91361 yys3 := z.StringView(r.DecodeStringAsBytes()) 91362 r.ReadMapElemValue() 91363 switch yys3 { 91364 case "SourcePath": 91365 if r.TryDecodeAsNil() { 91366 x.SourcePath = "" 91367 } else { 91368 x.SourcePath = (string)(r.DecodeString()) 91369 } 91370 case "DestPath": 91371 if r.TryDecodeAsNil() { 91372 x.DestPath = "" 91373 } else { 91374 x.DestPath = (string)(r.DecodeString()) 91375 } 91376 case "EmbeddedTmpl": 91377 if r.TryDecodeAsNil() { 91378 x.EmbeddedTmpl = "" 91379 } else { 91380 x.EmbeddedTmpl = (string)(r.DecodeString()) 91381 } 91382 case "ChangeMode": 91383 if r.TryDecodeAsNil() { 91384 x.ChangeMode = "" 91385 } else { 91386 x.ChangeMode = (string)(r.DecodeString()) 91387 } 91388 case "ChangeSignal": 91389 if r.TryDecodeAsNil() { 91390 x.ChangeSignal = "" 91391 } else { 91392 x.ChangeSignal = (string)(r.DecodeString()) 91393 } 91394 case "Splay": 91395 if r.TryDecodeAsNil() { 91396 x.Splay = 0 91397 } else { 91398 if false { 91399 } else if yyxt10 := z.Extension(z.I2Rtid(x.Splay)); yyxt10 != nil { 91400 z.DecExtension(x.Splay, yyxt10) 91401 } else { 91402 x.Splay = (time.Duration)(r.DecodeInt64()) 91403 } 91404 } 91405 case "Perms": 91406 if r.TryDecodeAsNil() { 91407 x.Perms = "" 91408 } else { 91409 x.Perms = (string)(r.DecodeString()) 91410 } 91411 case "LeftDelim": 91412 if r.TryDecodeAsNil() { 91413 x.LeftDelim = "" 91414 } else { 91415 x.LeftDelim = (string)(r.DecodeString()) 91416 } 91417 case "RightDelim": 91418 if r.TryDecodeAsNil() { 91419 x.RightDelim = "" 91420 } else { 91421 x.RightDelim = (string)(r.DecodeString()) 91422 } 91423 case "Envvars": 91424 if r.TryDecodeAsNil() { 91425 x.Envvars = false 91426 } else { 91427 x.Envvars = (bool)(r.DecodeBool()) 91428 } 91429 case "VaultGrace": 91430 if r.TryDecodeAsNil() { 91431 x.VaultGrace = 0 91432 } else { 91433 if false { 91434 } else if yyxt16 := z.Extension(z.I2Rtid(x.VaultGrace)); yyxt16 != nil { 91435 z.DecExtension(x.VaultGrace, yyxt16) 91436 } else { 91437 x.VaultGrace = (time.Duration)(r.DecodeInt64()) 91438 } 91439 } 91440 default: 91441 z.DecStructFieldNotFound(-1, yys3) 91442 } // end switch yys3 91443 } // end for yyj3 91444 r.ReadMapEnd() 91445 } 91446 91447 func (x *Template) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 91448 var h codecSelfer100 91449 z, r := codec1978.GenHelperDecoder(d) 91450 _, _, _ = h, z, r 91451 var yyj17 int 91452 var yyb17 bool 91453 var yyhl17 bool = l >= 0 91454 yyj17++ 91455 if yyhl17 { 91456 yyb17 = yyj17 > l 91457 } else { 91458 yyb17 = r.CheckBreak() 91459 } 91460 if yyb17 { 91461 r.ReadArrayEnd() 91462 return 91463 } 91464 r.ReadArrayElem() 91465 if r.TryDecodeAsNil() { 91466 x.SourcePath = "" 91467 } else { 91468 x.SourcePath = (string)(r.DecodeString()) 91469 } 91470 yyj17++ 91471 if yyhl17 { 91472 yyb17 = yyj17 > l 91473 } else { 91474 yyb17 = r.CheckBreak() 91475 } 91476 if yyb17 { 91477 r.ReadArrayEnd() 91478 return 91479 } 91480 r.ReadArrayElem() 91481 if r.TryDecodeAsNil() { 91482 x.DestPath = "" 91483 } else { 91484 x.DestPath = (string)(r.DecodeString()) 91485 } 91486 yyj17++ 91487 if yyhl17 { 91488 yyb17 = yyj17 > l 91489 } else { 91490 yyb17 = r.CheckBreak() 91491 } 91492 if yyb17 { 91493 r.ReadArrayEnd() 91494 return 91495 } 91496 r.ReadArrayElem() 91497 if r.TryDecodeAsNil() { 91498 x.EmbeddedTmpl = "" 91499 } else { 91500 x.EmbeddedTmpl = (string)(r.DecodeString()) 91501 } 91502 yyj17++ 91503 if yyhl17 { 91504 yyb17 = yyj17 > l 91505 } else { 91506 yyb17 = r.CheckBreak() 91507 } 91508 if yyb17 { 91509 r.ReadArrayEnd() 91510 return 91511 } 91512 r.ReadArrayElem() 91513 if r.TryDecodeAsNil() { 91514 x.ChangeMode = "" 91515 } else { 91516 x.ChangeMode = (string)(r.DecodeString()) 91517 } 91518 yyj17++ 91519 if yyhl17 { 91520 yyb17 = yyj17 > l 91521 } else { 91522 yyb17 = r.CheckBreak() 91523 } 91524 if yyb17 { 91525 r.ReadArrayEnd() 91526 return 91527 } 91528 r.ReadArrayElem() 91529 if r.TryDecodeAsNil() { 91530 x.ChangeSignal = "" 91531 } else { 91532 x.ChangeSignal = (string)(r.DecodeString()) 91533 } 91534 yyj17++ 91535 if yyhl17 { 91536 yyb17 = yyj17 > l 91537 } else { 91538 yyb17 = r.CheckBreak() 91539 } 91540 if yyb17 { 91541 r.ReadArrayEnd() 91542 return 91543 } 91544 r.ReadArrayElem() 91545 if r.TryDecodeAsNil() { 91546 x.Splay = 0 91547 } else { 91548 if false { 91549 } else if yyxt24 := z.Extension(z.I2Rtid(x.Splay)); yyxt24 != nil { 91550 z.DecExtension(x.Splay, yyxt24) 91551 } else { 91552 x.Splay = (time.Duration)(r.DecodeInt64()) 91553 } 91554 } 91555 yyj17++ 91556 if yyhl17 { 91557 yyb17 = yyj17 > l 91558 } else { 91559 yyb17 = r.CheckBreak() 91560 } 91561 if yyb17 { 91562 r.ReadArrayEnd() 91563 return 91564 } 91565 r.ReadArrayElem() 91566 if r.TryDecodeAsNil() { 91567 x.Perms = "" 91568 } else { 91569 x.Perms = (string)(r.DecodeString()) 91570 } 91571 yyj17++ 91572 if yyhl17 { 91573 yyb17 = yyj17 > l 91574 } else { 91575 yyb17 = r.CheckBreak() 91576 } 91577 if yyb17 { 91578 r.ReadArrayEnd() 91579 return 91580 } 91581 r.ReadArrayElem() 91582 if r.TryDecodeAsNil() { 91583 x.LeftDelim = "" 91584 } else { 91585 x.LeftDelim = (string)(r.DecodeString()) 91586 } 91587 yyj17++ 91588 if yyhl17 { 91589 yyb17 = yyj17 > l 91590 } else { 91591 yyb17 = r.CheckBreak() 91592 } 91593 if yyb17 { 91594 r.ReadArrayEnd() 91595 return 91596 } 91597 r.ReadArrayElem() 91598 if r.TryDecodeAsNil() { 91599 x.RightDelim = "" 91600 } else { 91601 x.RightDelim = (string)(r.DecodeString()) 91602 } 91603 yyj17++ 91604 if yyhl17 { 91605 yyb17 = yyj17 > l 91606 } else { 91607 yyb17 = r.CheckBreak() 91608 } 91609 if yyb17 { 91610 r.ReadArrayEnd() 91611 return 91612 } 91613 r.ReadArrayElem() 91614 if r.TryDecodeAsNil() { 91615 x.Envvars = false 91616 } else { 91617 x.Envvars = (bool)(r.DecodeBool()) 91618 } 91619 yyj17++ 91620 if yyhl17 { 91621 yyb17 = yyj17 > l 91622 } else { 91623 yyb17 = r.CheckBreak() 91624 } 91625 if yyb17 { 91626 r.ReadArrayEnd() 91627 return 91628 } 91629 r.ReadArrayElem() 91630 if r.TryDecodeAsNil() { 91631 x.VaultGrace = 0 91632 } else { 91633 if false { 91634 } else if yyxt30 := z.Extension(z.I2Rtid(x.VaultGrace)); yyxt30 != nil { 91635 z.DecExtension(x.VaultGrace, yyxt30) 91636 } else { 91637 x.VaultGrace = (time.Duration)(r.DecodeInt64()) 91638 } 91639 } 91640 for { 91641 yyj17++ 91642 if yyhl17 { 91643 yyb17 = yyj17 > l 91644 } else { 91645 yyb17 = r.CheckBreak() 91646 } 91647 if yyb17 { 91648 break 91649 } 91650 r.ReadArrayElem() 91651 z.DecStructFieldNotFound(yyj17-1, "") 91652 } 91653 r.ReadArrayEnd() 91654 } 91655 91656 func (x *TaskState) CodecEncodeSelf(e *codec1978.Encoder) { 91657 var h codecSelfer100 91658 z, r := codec1978.GenHelperEncoder(e) 91659 _, _, _ = h, z, r 91660 if x == nil { 91661 r.EncodeNil() 91662 } else { 91663 if false { 91664 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 91665 z.EncExtension(x, yyxt1) 91666 } else { 91667 yysep2 := !z.EncBinary() 91668 yy2arr2 := z.EncBasicHandle().StructToArray 91669 _, _ = yysep2, yy2arr2 91670 const yyr2 bool = false // struct tag has 'toArray' 91671 if yyr2 || yy2arr2 { 91672 r.WriteArrayStart(7) 91673 } else { 91674 r.WriteMapStart(7) 91675 } 91676 if yyr2 || yy2arr2 { 91677 r.WriteArrayElem() 91678 if false { 91679 } else { 91680 if z.EncBasicHandle().StringToRaw { 91681 r.EncodeStringBytesRaw(z.BytesView(string(x.State))) 91682 } else { 91683 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.State)) 91684 } 91685 } 91686 } else { 91687 r.WriteMapElemKey() 91688 if z.IsJSONHandle() { 91689 z.WriteStr("\"State\"") 91690 } else { 91691 r.EncodeStringEnc(codecSelferCcUTF8100, `State`) 91692 } 91693 r.WriteMapElemValue() 91694 if false { 91695 } else { 91696 if z.EncBasicHandle().StringToRaw { 91697 r.EncodeStringBytesRaw(z.BytesView(string(x.State))) 91698 } else { 91699 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.State)) 91700 } 91701 } 91702 } 91703 if yyr2 || yy2arr2 { 91704 r.WriteArrayElem() 91705 if false { 91706 } else { 91707 r.EncodeBool(bool(x.Failed)) 91708 } 91709 } else { 91710 r.WriteMapElemKey() 91711 if z.IsJSONHandle() { 91712 z.WriteStr("\"Failed\"") 91713 } else { 91714 r.EncodeStringEnc(codecSelferCcUTF8100, `Failed`) 91715 } 91716 r.WriteMapElemValue() 91717 if false { 91718 } else { 91719 r.EncodeBool(bool(x.Failed)) 91720 } 91721 } 91722 if yyr2 || yy2arr2 { 91723 r.WriteArrayElem() 91724 if false { 91725 } else { 91726 r.EncodeUint(uint64(x.Restarts)) 91727 } 91728 } else { 91729 r.WriteMapElemKey() 91730 if z.IsJSONHandle() { 91731 z.WriteStr("\"Restarts\"") 91732 } else { 91733 r.EncodeStringEnc(codecSelferCcUTF8100, `Restarts`) 91734 } 91735 r.WriteMapElemValue() 91736 if false { 91737 } else { 91738 r.EncodeUint(uint64(x.Restarts)) 91739 } 91740 } 91741 if yyr2 || yy2arr2 { 91742 r.WriteArrayElem() 91743 if false { 91744 } else if !z.EncBasicHandle().TimeNotBuiltin { 91745 r.EncodeTime(x.LastRestart) 91746 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastRestart)); yyxt13 != nil { 91747 z.EncExtension(x.LastRestart, yyxt13) 91748 } else if z.EncBinary() { 91749 z.EncBinaryMarshal(x.LastRestart) 91750 } else if !z.EncBinary() && z.IsJSONHandle() { 91751 z.EncJSONMarshal(x.LastRestart) 91752 } else { 91753 z.EncFallback(x.LastRestart) 91754 } 91755 } else { 91756 r.WriteMapElemKey() 91757 if z.IsJSONHandle() { 91758 z.WriteStr("\"LastRestart\"") 91759 } else { 91760 r.EncodeStringEnc(codecSelferCcUTF8100, `LastRestart`) 91761 } 91762 r.WriteMapElemValue() 91763 if false { 91764 } else if !z.EncBasicHandle().TimeNotBuiltin { 91765 r.EncodeTime(x.LastRestart) 91766 } else if yyxt14 := z.Extension(z.I2Rtid(x.LastRestart)); yyxt14 != nil { 91767 z.EncExtension(x.LastRestart, yyxt14) 91768 } else if z.EncBinary() { 91769 z.EncBinaryMarshal(x.LastRestart) 91770 } else if !z.EncBinary() && z.IsJSONHandle() { 91771 z.EncJSONMarshal(x.LastRestart) 91772 } else { 91773 z.EncFallback(x.LastRestart) 91774 } 91775 } 91776 if yyr2 || yy2arr2 { 91777 r.WriteArrayElem() 91778 if false { 91779 } else if !z.EncBasicHandle().TimeNotBuiltin { 91780 r.EncodeTime(x.StartedAt) 91781 } else if yyxt16 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt16 != nil { 91782 z.EncExtension(x.StartedAt, yyxt16) 91783 } else if z.EncBinary() { 91784 z.EncBinaryMarshal(x.StartedAt) 91785 } else if !z.EncBinary() && z.IsJSONHandle() { 91786 z.EncJSONMarshal(x.StartedAt) 91787 } else { 91788 z.EncFallback(x.StartedAt) 91789 } 91790 } else { 91791 r.WriteMapElemKey() 91792 if z.IsJSONHandle() { 91793 z.WriteStr("\"StartedAt\"") 91794 } else { 91795 r.EncodeStringEnc(codecSelferCcUTF8100, `StartedAt`) 91796 } 91797 r.WriteMapElemValue() 91798 if false { 91799 } else if !z.EncBasicHandle().TimeNotBuiltin { 91800 r.EncodeTime(x.StartedAt) 91801 } else if yyxt17 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt17 != nil { 91802 z.EncExtension(x.StartedAt, yyxt17) 91803 } else if z.EncBinary() { 91804 z.EncBinaryMarshal(x.StartedAt) 91805 } else if !z.EncBinary() && z.IsJSONHandle() { 91806 z.EncJSONMarshal(x.StartedAt) 91807 } else { 91808 z.EncFallback(x.StartedAt) 91809 } 91810 } 91811 if yyr2 || yy2arr2 { 91812 r.WriteArrayElem() 91813 if false { 91814 } else if !z.EncBasicHandle().TimeNotBuiltin { 91815 r.EncodeTime(x.FinishedAt) 91816 } else if yyxt19 := z.Extension(z.I2Rtid(x.FinishedAt)); yyxt19 != nil { 91817 z.EncExtension(x.FinishedAt, yyxt19) 91818 } else if z.EncBinary() { 91819 z.EncBinaryMarshal(x.FinishedAt) 91820 } else if !z.EncBinary() && z.IsJSONHandle() { 91821 z.EncJSONMarshal(x.FinishedAt) 91822 } else { 91823 z.EncFallback(x.FinishedAt) 91824 } 91825 } else { 91826 r.WriteMapElemKey() 91827 if z.IsJSONHandle() { 91828 z.WriteStr("\"FinishedAt\"") 91829 } else { 91830 r.EncodeStringEnc(codecSelferCcUTF8100, `FinishedAt`) 91831 } 91832 r.WriteMapElemValue() 91833 if false { 91834 } else if !z.EncBasicHandle().TimeNotBuiltin { 91835 r.EncodeTime(x.FinishedAt) 91836 } else if yyxt20 := z.Extension(z.I2Rtid(x.FinishedAt)); yyxt20 != nil { 91837 z.EncExtension(x.FinishedAt, yyxt20) 91838 } else if z.EncBinary() { 91839 z.EncBinaryMarshal(x.FinishedAt) 91840 } else if !z.EncBinary() && z.IsJSONHandle() { 91841 z.EncJSONMarshal(x.FinishedAt) 91842 } else { 91843 z.EncFallback(x.FinishedAt) 91844 } 91845 } 91846 if yyr2 || yy2arr2 { 91847 r.WriteArrayElem() 91848 if x.Events == nil { 91849 r.EncodeNil() 91850 } else { 91851 if false { 91852 } else { 91853 h.encSlicePtrtoTaskEvent(([]*TaskEvent)(x.Events), e) 91854 } 91855 } 91856 } else { 91857 r.WriteMapElemKey() 91858 if z.IsJSONHandle() { 91859 z.WriteStr("\"Events\"") 91860 } else { 91861 r.EncodeStringEnc(codecSelferCcUTF8100, `Events`) 91862 } 91863 r.WriteMapElemValue() 91864 if x.Events == nil { 91865 r.EncodeNil() 91866 } else { 91867 if false { 91868 } else { 91869 h.encSlicePtrtoTaskEvent(([]*TaskEvent)(x.Events), e) 91870 } 91871 } 91872 } 91873 if yyr2 || yy2arr2 { 91874 r.WriteArrayEnd() 91875 } else { 91876 r.WriteMapEnd() 91877 } 91878 } 91879 } 91880 } 91881 91882 func (x *TaskState) CodecDecodeSelf(d *codec1978.Decoder) { 91883 var h codecSelfer100 91884 z, r := codec1978.GenHelperDecoder(d) 91885 _, _, _ = h, z, r 91886 if false { 91887 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 91888 z.DecExtension(x, yyxt1) 91889 } else { 91890 yyct2 := r.ContainerType() 91891 if yyct2 == codecSelferValueTypeMap100 { 91892 yyl2 := r.ReadMapStart() 91893 if yyl2 == 0 { 91894 r.ReadMapEnd() 91895 } else { 91896 x.codecDecodeSelfFromMap(yyl2, d) 91897 } 91898 } else if yyct2 == codecSelferValueTypeArray100 { 91899 yyl2 := r.ReadArrayStart() 91900 if yyl2 == 0 { 91901 r.ReadArrayEnd() 91902 } else { 91903 x.codecDecodeSelfFromArray(yyl2, d) 91904 } 91905 } else { 91906 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 91907 } 91908 } 91909 } 91910 91911 func (x *TaskState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 91912 var h codecSelfer100 91913 z, r := codec1978.GenHelperDecoder(d) 91914 _, _, _ = h, z, r 91915 var yyhl3 bool = l >= 0 91916 for yyj3 := 0; ; yyj3++ { 91917 if yyhl3 { 91918 if yyj3 >= l { 91919 break 91920 } 91921 } else { 91922 if r.CheckBreak() { 91923 break 91924 } 91925 } 91926 r.ReadMapElemKey() 91927 yys3 := z.StringView(r.DecodeStringAsBytes()) 91928 r.ReadMapElemValue() 91929 switch yys3 { 91930 case "State": 91931 if r.TryDecodeAsNil() { 91932 x.State = "" 91933 } else { 91934 x.State = (string)(r.DecodeString()) 91935 } 91936 case "Failed": 91937 if r.TryDecodeAsNil() { 91938 x.Failed = false 91939 } else { 91940 x.Failed = (bool)(r.DecodeBool()) 91941 } 91942 case "Restarts": 91943 if r.TryDecodeAsNil() { 91944 x.Restarts = 0 91945 } else { 91946 x.Restarts = (uint64)(r.DecodeUint64()) 91947 } 91948 case "LastRestart": 91949 if r.TryDecodeAsNil() { 91950 x.LastRestart = time.Time{} 91951 } else { 91952 if false { 91953 } else if !z.DecBasicHandle().TimeNotBuiltin { 91954 x.LastRestart = r.DecodeTime() 91955 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastRestart)); yyxt8 != nil { 91956 z.DecExtension(x.LastRestart, yyxt8) 91957 } else if z.DecBinary() { 91958 z.DecBinaryUnmarshal(&x.LastRestart) 91959 } else if !z.DecBinary() && z.IsJSONHandle() { 91960 z.DecJSONUnmarshal(&x.LastRestart) 91961 } else { 91962 z.DecFallback(&x.LastRestart, false) 91963 } 91964 } 91965 case "StartedAt": 91966 if r.TryDecodeAsNil() { 91967 x.StartedAt = time.Time{} 91968 } else { 91969 if false { 91970 } else if !z.DecBasicHandle().TimeNotBuiltin { 91971 x.StartedAt = r.DecodeTime() 91972 } else if yyxt10 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt10 != nil { 91973 z.DecExtension(x.StartedAt, yyxt10) 91974 } else if z.DecBinary() { 91975 z.DecBinaryUnmarshal(&x.StartedAt) 91976 } else if !z.DecBinary() && z.IsJSONHandle() { 91977 z.DecJSONUnmarshal(&x.StartedAt) 91978 } else { 91979 z.DecFallback(&x.StartedAt, false) 91980 } 91981 } 91982 case "FinishedAt": 91983 if r.TryDecodeAsNil() { 91984 x.FinishedAt = time.Time{} 91985 } else { 91986 if false { 91987 } else if !z.DecBasicHandle().TimeNotBuiltin { 91988 x.FinishedAt = r.DecodeTime() 91989 } else if yyxt12 := z.Extension(z.I2Rtid(x.FinishedAt)); yyxt12 != nil { 91990 z.DecExtension(x.FinishedAt, yyxt12) 91991 } else if z.DecBinary() { 91992 z.DecBinaryUnmarshal(&x.FinishedAt) 91993 } else if !z.DecBinary() && z.IsJSONHandle() { 91994 z.DecJSONUnmarshal(&x.FinishedAt) 91995 } else { 91996 z.DecFallback(&x.FinishedAt, false) 91997 } 91998 } 91999 case "Events": 92000 if r.TryDecodeAsNil() { 92001 x.Events = nil 92002 } else { 92003 if false { 92004 } else { 92005 h.decSlicePtrtoTaskEvent((*[]*TaskEvent)(&x.Events), d) 92006 } 92007 } 92008 default: 92009 z.DecStructFieldNotFound(-1, yys3) 92010 } // end switch yys3 92011 } // end for yyj3 92012 r.ReadMapEnd() 92013 } 92014 92015 func (x *TaskState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 92016 var h codecSelfer100 92017 z, r := codec1978.GenHelperDecoder(d) 92018 _, _, _ = h, z, r 92019 var yyj15 int 92020 var yyb15 bool 92021 var yyhl15 bool = l >= 0 92022 yyj15++ 92023 if yyhl15 { 92024 yyb15 = yyj15 > l 92025 } else { 92026 yyb15 = r.CheckBreak() 92027 } 92028 if yyb15 { 92029 r.ReadArrayEnd() 92030 return 92031 } 92032 r.ReadArrayElem() 92033 if r.TryDecodeAsNil() { 92034 x.State = "" 92035 } else { 92036 x.State = (string)(r.DecodeString()) 92037 } 92038 yyj15++ 92039 if yyhl15 { 92040 yyb15 = yyj15 > l 92041 } else { 92042 yyb15 = r.CheckBreak() 92043 } 92044 if yyb15 { 92045 r.ReadArrayEnd() 92046 return 92047 } 92048 r.ReadArrayElem() 92049 if r.TryDecodeAsNil() { 92050 x.Failed = false 92051 } else { 92052 x.Failed = (bool)(r.DecodeBool()) 92053 } 92054 yyj15++ 92055 if yyhl15 { 92056 yyb15 = yyj15 > l 92057 } else { 92058 yyb15 = r.CheckBreak() 92059 } 92060 if yyb15 { 92061 r.ReadArrayEnd() 92062 return 92063 } 92064 r.ReadArrayElem() 92065 if r.TryDecodeAsNil() { 92066 x.Restarts = 0 92067 } else { 92068 x.Restarts = (uint64)(r.DecodeUint64()) 92069 } 92070 yyj15++ 92071 if yyhl15 { 92072 yyb15 = yyj15 > l 92073 } else { 92074 yyb15 = r.CheckBreak() 92075 } 92076 if yyb15 { 92077 r.ReadArrayEnd() 92078 return 92079 } 92080 r.ReadArrayElem() 92081 if r.TryDecodeAsNil() { 92082 x.LastRestart = time.Time{} 92083 } else { 92084 if false { 92085 } else if !z.DecBasicHandle().TimeNotBuiltin { 92086 x.LastRestart = r.DecodeTime() 92087 } else if yyxt20 := z.Extension(z.I2Rtid(x.LastRestart)); yyxt20 != nil { 92088 z.DecExtension(x.LastRestart, yyxt20) 92089 } else if z.DecBinary() { 92090 z.DecBinaryUnmarshal(&x.LastRestart) 92091 } else if !z.DecBinary() && z.IsJSONHandle() { 92092 z.DecJSONUnmarshal(&x.LastRestart) 92093 } else { 92094 z.DecFallback(&x.LastRestart, false) 92095 } 92096 } 92097 yyj15++ 92098 if yyhl15 { 92099 yyb15 = yyj15 > l 92100 } else { 92101 yyb15 = r.CheckBreak() 92102 } 92103 if yyb15 { 92104 r.ReadArrayEnd() 92105 return 92106 } 92107 r.ReadArrayElem() 92108 if r.TryDecodeAsNil() { 92109 x.StartedAt = time.Time{} 92110 } else { 92111 if false { 92112 } else if !z.DecBasicHandle().TimeNotBuiltin { 92113 x.StartedAt = r.DecodeTime() 92114 } else if yyxt22 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt22 != nil { 92115 z.DecExtension(x.StartedAt, yyxt22) 92116 } else if z.DecBinary() { 92117 z.DecBinaryUnmarshal(&x.StartedAt) 92118 } else if !z.DecBinary() && z.IsJSONHandle() { 92119 z.DecJSONUnmarshal(&x.StartedAt) 92120 } else { 92121 z.DecFallback(&x.StartedAt, false) 92122 } 92123 } 92124 yyj15++ 92125 if yyhl15 { 92126 yyb15 = yyj15 > l 92127 } else { 92128 yyb15 = r.CheckBreak() 92129 } 92130 if yyb15 { 92131 r.ReadArrayEnd() 92132 return 92133 } 92134 r.ReadArrayElem() 92135 if r.TryDecodeAsNil() { 92136 x.FinishedAt = time.Time{} 92137 } else { 92138 if false { 92139 } else if !z.DecBasicHandle().TimeNotBuiltin { 92140 x.FinishedAt = r.DecodeTime() 92141 } else if yyxt24 := z.Extension(z.I2Rtid(x.FinishedAt)); yyxt24 != nil { 92142 z.DecExtension(x.FinishedAt, yyxt24) 92143 } else if z.DecBinary() { 92144 z.DecBinaryUnmarshal(&x.FinishedAt) 92145 } else if !z.DecBinary() && z.IsJSONHandle() { 92146 z.DecJSONUnmarshal(&x.FinishedAt) 92147 } else { 92148 z.DecFallback(&x.FinishedAt, false) 92149 } 92150 } 92151 yyj15++ 92152 if yyhl15 { 92153 yyb15 = yyj15 > l 92154 } else { 92155 yyb15 = r.CheckBreak() 92156 } 92157 if yyb15 { 92158 r.ReadArrayEnd() 92159 return 92160 } 92161 r.ReadArrayElem() 92162 if r.TryDecodeAsNil() { 92163 x.Events = nil 92164 } else { 92165 if false { 92166 } else { 92167 h.decSlicePtrtoTaskEvent((*[]*TaskEvent)(&x.Events), d) 92168 } 92169 } 92170 for { 92171 yyj15++ 92172 if yyhl15 { 92173 yyb15 = yyj15 > l 92174 } else { 92175 yyb15 = r.CheckBreak() 92176 } 92177 if yyb15 { 92178 break 92179 } 92180 r.ReadArrayElem() 92181 z.DecStructFieldNotFound(yyj15-1, "") 92182 } 92183 r.ReadArrayEnd() 92184 } 92185 92186 func (x *TaskEvent) CodecEncodeSelf(e *codec1978.Encoder) { 92187 var h codecSelfer100 92188 z, r := codec1978.GenHelperEncoder(e) 92189 _, _, _ = h, z, r 92190 if x == nil { 92191 r.EncodeNil() 92192 } else { 92193 if false { 92194 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 92195 z.EncExtension(x, yyxt1) 92196 } else { 92197 yysep2 := !z.EncBinary() 92198 yy2arr2 := z.EncBasicHandle().StructToArray 92199 _, _ = yysep2, yy2arr2 92200 const yyr2 bool = false // struct tag has 'toArray' 92201 if yyr2 || yy2arr2 { 92202 r.WriteArrayStart(24) 92203 } else { 92204 r.WriteMapStart(24) 92205 } 92206 if yyr2 || yy2arr2 { 92207 r.WriteArrayElem() 92208 if false { 92209 } else { 92210 if z.EncBasicHandle().StringToRaw { 92211 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 92212 } else { 92213 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 92214 } 92215 } 92216 } else { 92217 r.WriteMapElemKey() 92218 if z.IsJSONHandle() { 92219 z.WriteStr("\"Type\"") 92220 } else { 92221 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 92222 } 92223 r.WriteMapElemValue() 92224 if false { 92225 } else { 92226 if z.EncBasicHandle().StringToRaw { 92227 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 92228 } else { 92229 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 92230 } 92231 } 92232 } 92233 if yyr2 || yy2arr2 { 92234 r.WriteArrayElem() 92235 if false { 92236 } else { 92237 r.EncodeInt(int64(x.Time)) 92238 } 92239 } else { 92240 r.WriteMapElemKey() 92241 if z.IsJSONHandle() { 92242 z.WriteStr("\"Time\"") 92243 } else { 92244 r.EncodeStringEnc(codecSelferCcUTF8100, `Time`) 92245 } 92246 r.WriteMapElemValue() 92247 if false { 92248 } else { 92249 r.EncodeInt(int64(x.Time)) 92250 } 92251 } 92252 if yyr2 || yy2arr2 { 92253 r.WriteArrayElem() 92254 if false { 92255 } else { 92256 if z.EncBasicHandle().StringToRaw { 92257 r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) 92258 } else { 92259 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) 92260 } 92261 } 92262 } else { 92263 r.WriteMapElemKey() 92264 if z.IsJSONHandle() { 92265 z.WriteStr("\"Message\"") 92266 } else { 92267 r.EncodeStringEnc(codecSelferCcUTF8100, `Message`) 92268 } 92269 r.WriteMapElemValue() 92270 if false { 92271 } else { 92272 if z.EncBasicHandle().StringToRaw { 92273 r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) 92274 } else { 92275 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) 92276 } 92277 } 92278 } 92279 if yyr2 || yy2arr2 { 92280 r.WriteArrayElem() 92281 if false { 92282 } else { 92283 if z.EncBasicHandle().StringToRaw { 92284 r.EncodeStringBytesRaw(z.BytesView(string(x.DisplayMessage))) 92285 } else { 92286 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DisplayMessage)) 92287 } 92288 } 92289 } else { 92290 r.WriteMapElemKey() 92291 if z.IsJSONHandle() { 92292 z.WriteStr("\"DisplayMessage\"") 92293 } else { 92294 r.EncodeStringEnc(codecSelferCcUTF8100, `DisplayMessage`) 92295 } 92296 r.WriteMapElemValue() 92297 if false { 92298 } else { 92299 if z.EncBasicHandle().StringToRaw { 92300 r.EncodeStringBytesRaw(z.BytesView(string(x.DisplayMessage))) 92301 } else { 92302 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DisplayMessage)) 92303 } 92304 } 92305 } 92306 if yyr2 || yy2arr2 { 92307 r.WriteArrayElem() 92308 if x.Details == nil { 92309 r.EncodeNil() 92310 } else { 92311 if false { 92312 } else { 92313 z.F.EncMapStringStringV(x.Details, e) 92314 } 92315 } 92316 } else { 92317 r.WriteMapElemKey() 92318 if z.IsJSONHandle() { 92319 z.WriteStr("\"Details\"") 92320 } else { 92321 r.EncodeStringEnc(codecSelferCcUTF8100, `Details`) 92322 } 92323 r.WriteMapElemValue() 92324 if x.Details == nil { 92325 r.EncodeNil() 92326 } else { 92327 if false { 92328 } else { 92329 z.F.EncMapStringStringV(x.Details, e) 92330 } 92331 } 92332 } 92333 if yyr2 || yy2arr2 { 92334 r.WriteArrayElem() 92335 if false { 92336 } else { 92337 r.EncodeBool(bool(x.FailsTask)) 92338 } 92339 } else { 92340 r.WriteMapElemKey() 92341 if z.IsJSONHandle() { 92342 z.WriteStr("\"FailsTask\"") 92343 } else { 92344 r.EncodeStringEnc(codecSelferCcUTF8100, `FailsTask`) 92345 } 92346 r.WriteMapElemValue() 92347 if false { 92348 } else { 92349 r.EncodeBool(bool(x.FailsTask)) 92350 } 92351 } 92352 if yyr2 || yy2arr2 { 92353 r.WriteArrayElem() 92354 if false { 92355 } else { 92356 if z.EncBasicHandle().StringToRaw { 92357 r.EncodeStringBytesRaw(z.BytesView(string(x.RestartReason))) 92358 } else { 92359 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RestartReason)) 92360 } 92361 } 92362 } else { 92363 r.WriteMapElemKey() 92364 if z.IsJSONHandle() { 92365 z.WriteStr("\"RestartReason\"") 92366 } else { 92367 r.EncodeStringEnc(codecSelferCcUTF8100, `RestartReason`) 92368 } 92369 r.WriteMapElemValue() 92370 if false { 92371 } else { 92372 if z.EncBasicHandle().StringToRaw { 92373 r.EncodeStringBytesRaw(z.BytesView(string(x.RestartReason))) 92374 } else { 92375 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RestartReason)) 92376 } 92377 } 92378 } 92379 if yyr2 || yy2arr2 { 92380 r.WriteArrayElem() 92381 if false { 92382 } else { 92383 if z.EncBasicHandle().StringToRaw { 92384 r.EncodeStringBytesRaw(z.BytesView(string(x.SetupError))) 92385 } else { 92386 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SetupError)) 92387 } 92388 } 92389 } else { 92390 r.WriteMapElemKey() 92391 if z.IsJSONHandle() { 92392 z.WriteStr("\"SetupError\"") 92393 } else { 92394 r.EncodeStringEnc(codecSelferCcUTF8100, `SetupError`) 92395 } 92396 r.WriteMapElemValue() 92397 if false { 92398 } else { 92399 if z.EncBasicHandle().StringToRaw { 92400 r.EncodeStringBytesRaw(z.BytesView(string(x.SetupError))) 92401 } else { 92402 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SetupError)) 92403 } 92404 } 92405 } 92406 if yyr2 || yy2arr2 { 92407 r.WriteArrayElem() 92408 if false { 92409 } else { 92410 if z.EncBasicHandle().StringToRaw { 92411 r.EncodeStringBytesRaw(z.BytesView(string(x.DriverError))) 92412 } else { 92413 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DriverError)) 92414 } 92415 } 92416 } else { 92417 r.WriteMapElemKey() 92418 if z.IsJSONHandle() { 92419 z.WriteStr("\"DriverError\"") 92420 } else { 92421 r.EncodeStringEnc(codecSelferCcUTF8100, `DriverError`) 92422 } 92423 r.WriteMapElemValue() 92424 if false { 92425 } else { 92426 if z.EncBasicHandle().StringToRaw { 92427 r.EncodeStringBytesRaw(z.BytesView(string(x.DriverError))) 92428 } else { 92429 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DriverError)) 92430 } 92431 } 92432 } 92433 if yyr2 || yy2arr2 { 92434 r.WriteArrayElem() 92435 if false { 92436 } else { 92437 r.EncodeInt(int64(x.ExitCode)) 92438 } 92439 } else { 92440 r.WriteMapElemKey() 92441 if z.IsJSONHandle() { 92442 z.WriteStr("\"ExitCode\"") 92443 } else { 92444 r.EncodeStringEnc(codecSelferCcUTF8100, `ExitCode`) 92445 } 92446 r.WriteMapElemValue() 92447 if false { 92448 } else { 92449 r.EncodeInt(int64(x.ExitCode)) 92450 } 92451 } 92452 if yyr2 || yy2arr2 { 92453 r.WriteArrayElem() 92454 if false { 92455 } else { 92456 r.EncodeInt(int64(x.Signal)) 92457 } 92458 } else { 92459 r.WriteMapElemKey() 92460 if z.IsJSONHandle() { 92461 z.WriteStr("\"Signal\"") 92462 } else { 92463 r.EncodeStringEnc(codecSelferCcUTF8100, `Signal`) 92464 } 92465 r.WriteMapElemValue() 92466 if false { 92467 } else { 92468 r.EncodeInt(int64(x.Signal)) 92469 } 92470 } 92471 if yyr2 || yy2arr2 { 92472 r.WriteArrayElem() 92473 if false { 92474 } else if yyxt37 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt37 != nil { 92475 z.EncExtension(x.KillTimeout, yyxt37) 92476 } else { 92477 r.EncodeInt(int64(x.KillTimeout)) 92478 } 92479 } else { 92480 r.WriteMapElemKey() 92481 if z.IsJSONHandle() { 92482 z.WriteStr("\"KillTimeout\"") 92483 } else { 92484 r.EncodeStringEnc(codecSelferCcUTF8100, `KillTimeout`) 92485 } 92486 r.WriteMapElemValue() 92487 if false { 92488 } else if yyxt38 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt38 != nil { 92489 z.EncExtension(x.KillTimeout, yyxt38) 92490 } else { 92491 r.EncodeInt(int64(x.KillTimeout)) 92492 } 92493 } 92494 if yyr2 || yy2arr2 { 92495 r.WriteArrayElem() 92496 if false { 92497 } else { 92498 if z.EncBasicHandle().StringToRaw { 92499 r.EncodeStringBytesRaw(z.BytesView(string(x.KillError))) 92500 } else { 92501 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillError)) 92502 } 92503 } 92504 } else { 92505 r.WriteMapElemKey() 92506 if z.IsJSONHandle() { 92507 z.WriteStr("\"KillError\"") 92508 } else { 92509 r.EncodeStringEnc(codecSelferCcUTF8100, `KillError`) 92510 } 92511 r.WriteMapElemValue() 92512 if false { 92513 } else { 92514 if z.EncBasicHandle().StringToRaw { 92515 r.EncodeStringBytesRaw(z.BytesView(string(x.KillError))) 92516 } else { 92517 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillError)) 92518 } 92519 } 92520 } 92521 if yyr2 || yy2arr2 { 92522 r.WriteArrayElem() 92523 if false { 92524 } else { 92525 if z.EncBasicHandle().StringToRaw { 92526 r.EncodeStringBytesRaw(z.BytesView(string(x.KillReason))) 92527 } else { 92528 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillReason)) 92529 } 92530 } 92531 } else { 92532 r.WriteMapElemKey() 92533 if z.IsJSONHandle() { 92534 z.WriteStr("\"KillReason\"") 92535 } else { 92536 r.EncodeStringEnc(codecSelferCcUTF8100, `KillReason`) 92537 } 92538 r.WriteMapElemValue() 92539 if false { 92540 } else { 92541 if z.EncBasicHandle().StringToRaw { 92542 r.EncodeStringBytesRaw(z.BytesView(string(x.KillReason))) 92543 } else { 92544 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillReason)) 92545 } 92546 } 92547 } 92548 if yyr2 || yy2arr2 { 92549 r.WriteArrayElem() 92550 if false { 92551 } else { 92552 r.EncodeInt(int64(x.StartDelay)) 92553 } 92554 } else { 92555 r.WriteMapElemKey() 92556 if z.IsJSONHandle() { 92557 z.WriteStr("\"StartDelay\"") 92558 } else { 92559 r.EncodeStringEnc(codecSelferCcUTF8100, `StartDelay`) 92560 } 92561 r.WriteMapElemValue() 92562 if false { 92563 } else { 92564 r.EncodeInt(int64(x.StartDelay)) 92565 } 92566 } 92567 if yyr2 || yy2arr2 { 92568 r.WriteArrayElem() 92569 if false { 92570 } else { 92571 if z.EncBasicHandle().StringToRaw { 92572 r.EncodeStringBytesRaw(z.BytesView(string(x.DownloadError))) 92573 } else { 92574 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DownloadError)) 92575 } 92576 } 92577 } else { 92578 r.WriteMapElemKey() 92579 if z.IsJSONHandle() { 92580 z.WriteStr("\"DownloadError\"") 92581 } else { 92582 r.EncodeStringEnc(codecSelferCcUTF8100, `DownloadError`) 92583 } 92584 r.WriteMapElemValue() 92585 if false { 92586 } else { 92587 if z.EncBasicHandle().StringToRaw { 92588 r.EncodeStringBytesRaw(z.BytesView(string(x.DownloadError))) 92589 } else { 92590 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DownloadError)) 92591 } 92592 } 92593 } 92594 if yyr2 || yy2arr2 { 92595 r.WriteArrayElem() 92596 if false { 92597 } else { 92598 if z.EncBasicHandle().StringToRaw { 92599 r.EncodeStringBytesRaw(z.BytesView(string(x.ValidationError))) 92600 } else { 92601 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ValidationError)) 92602 } 92603 } 92604 } else { 92605 r.WriteMapElemKey() 92606 if z.IsJSONHandle() { 92607 z.WriteStr("\"ValidationError\"") 92608 } else { 92609 r.EncodeStringEnc(codecSelferCcUTF8100, `ValidationError`) 92610 } 92611 r.WriteMapElemValue() 92612 if false { 92613 } else { 92614 if z.EncBasicHandle().StringToRaw { 92615 r.EncodeStringBytesRaw(z.BytesView(string(x.ValidationError))) 92616 } else { 92617 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ValidationError)) 92618 } 92619 } 92620 } 92621 if yyr2 || yy2arr2 { 92622 r.WriteArrayElem() 92623 if false { 92624 } else { 92625 r.EncodeInt(int64(x.DiskLimit)) 92626 } 92627 } else { 92628 r.WriteMapElemKey() 92629 if z.IsJSONHandle() { 92630 z.WriteStr("\"DiskLimit\"") 92631 } else { 92632 r.EncodeStringEnc(codecSelferCcUTF8100, `DiskLimit`) 92633 } 92634 r.WriteMapElemValue() 92635 if false { 92636 } else { 92637 r.EncodeInt(int64(x.DiskLimit)) 92638 } 92639 } 92640 if yyr2 || yy2arr2 { 92641 r.WriteArrayElem() 92642 if false { 92643 } else { 92644 if z.EncBasicHandle().StringToRaw { 92645 r.EncodeStringBytesRaw(z.BytesView(string(x.FailedSibling))) 92646 } else { 92647 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FailedSibling)) 92648 } 92649 } 92650 } else { 92651 r.WriteMapElemKey() 92652 if z.IsJSONHandle() { 92653 z.WriteStr("\"FailedSibling\"") 92654 } else { 92655 r.EncodeStringEnc(codecSelferCcUTF8100, `FailedSibling`) 92656 } 92657 r.WriteMapElemValue() 92658 if false { 92659 } else { 92660 if z.EncBasicHandle().StringToRaw { 92661 r.EncodeStringBytesRaw(z.BytesView(string(x.FailedSibling))) 92662 } else { 92663 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FailedSibling)) 92664 } 92665 } 92666 } 92667 if yyr2 || yy2arr2 { 92668 r.WriteArrayElem() 92669 if false { 92670 } else { 92671 if z.EncBasicHandle().StringToRaw { 92672 r.EncodeStringBytesRaw(z.BytesView(string(x.VaultError))) 92673 } else { 92674 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultError)) 92675 } 92676 } 92677 } else { 92678 r.WriteMapElemKey() 92679 if z.IsJSONHandle() { 92680 z.WriteStr("\"VaultError\"") 92681 } else { 92682 r.EncodeStringEnc(codecSelferCcUTF8100, `VaultError`) 92683 } 92684 r.WriteMapElemValue() 92685 if false { 92686 } else { 92687 if z.EncBasicHandle().StringToRaw { 92688 r.EncodeStringBytesRaw(z.BytesView(string(x.VaultError))) 92689 } else { 92690 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultError)) 92691 } 92692 } 92693 } 92694 if yyr2 || yy2arr2 { 92695 r.WriteArrayElem() 92696 if false { 92697 } else { 92698 if z.EncBasicHandle().StringToRaw { 92699 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskSignalReason))) 92700 } else { 92701 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskSignalReason)) 92702 } 92703 } 92704 } else { 92705 r.WriteMapElemKey() 92706 if z.IsJSONHandle() { 92707 z.WriteStr("\"TaskSignalReason\"") 92708 } else { 92709 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskSignalReason`) 92710 } 92711 r.WriteMapElemValue() 92712 if false { 92713 } else { 92714 if z.EncBasicHandle().StringToRaw { 92715 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskSignalReason))) 92716 } else { 92717 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskSignalReason)) 92718 } 92719 } 92720 } 92721 if yyr2 || yy2arr2 { 92722 r.WriteArrayElem() 92723 if false { 92724 } else { 92725 if z.EncBasicHandle().StringToRaw { 92726 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskSignal))) 92727 } else { 92728 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskSignal)) 92729 } 92730 } 92731 } else { 92732 r.WriteMapElemKey() 92733 if z.IsJSONHandle() { 92734 z.WriteStr("\"TaskSignal\"") 92735 } else { 92736 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskSignal`) 92737 } 92738 r.WriteMapElemValue() 92739 if false { 92740 } else { 92741 if z.EncBasicHandle().StringToRaw { 92742 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskSignal))) 92743 } else { 92744 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskSignal)) 92745 } 92746 } 92747 } 92748 if yyr2 || yy2arr2 { 92749 r.WriteArrayElem() 92750 if false { 92751 } else { 92752 if z.EncBasicHandle().StringToRaw { 92753 r.EncodeStringBytesRaw(z.BytesView(string(x.DriverMessage))) 92754 } else { 92755 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DriverMessage)) 92756 } 92757 } 92758 } else { 92759 r.WriteMapElemKey() 92760 if z.IsJSONHandle() { 92761 z.WriteStr("\"DriverMessage\"") 92762 } else { 92763 r.EncodeStringEnc(codecSelferCcUTF8100, `DriverMessage`) 92764 } 92765 r.WriteMapElemValue() 92766 if false { 92767 } else { 92768 if z.EncBasicHandle().StringToRaw { 92769 r.EncodeStringBytesRaw(z.BytesView(string(x.DriverMessage))) 92770 } else { 92771 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DriverMessage)) 92772 } 92773 } 92774 } 92775 if yyr2 || yy2arr2 { 92776 r.WriteArrayElem() 92777 if false { 92778 } else { 92779 if z.EncBasicHandle().StringToRaw { 92780 r.EncodeStringBytesRaw(z.BytesView(string(x.GenericSource))) 92781 } else { 92782 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GenericSource)) 92783 } 92784 } 92785 } else { 92786 r.WriteMapElemKey() 92787 if z.IsJSONHandle() { 92788 z.WriteStr("\"GenericSource\"") 92789 } else { 92790 r.EncodeStringEnc(codecSelferCcUTF8100, `GenericSource`) 92791 } 92792 r.WriteMapElemValue() 92793 if false { 92794 } else { 92795 if z.EncBasicHandle().StringToRaw { 92796 r.EncodeStringBytesRaw(z.BytesView(string(x.GenericSource))) 92797 } else { 92798 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GenericSource)) 92799 } 92800 } 92801 } 92802 if yyr2 || yy2arr2 { 92803 r.WriteArrayEnd() 92804 } else { 92805 r.WriteMapEnd() 92806 } 92807 } 92808 } 92809 } 92810 92811 func (x *TaskEvent) CodecDecodeSelf(d *codec1978.Decoder) { 92812 var h codecSelfer100 92813 z, r := codec1978.GenHelperDecoder(d) 92814 _, _, _ = h, z, r 92815 if false { 92816 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 92817 z.DecExtension(x, yyxt1) 92818 } else { 92819 yyct2 := r.ContainerType() 92820 if yyct2 == codecSelferValueTypeMap100 { 92821 yyl2 := r.ReadMapStart() 92822 if yyl2 == 0 { 92823 r.ReadMapEnd() 92824 } else { 92825 x.codecDecodeSelfFromMap(yyl2, d) 92826 } 92827 } else if yyct2 == codecSelferValueTypeArray100 { 92828 yyl2 := r.ReadArrayStart() 92829 if yyl2 == 0 { 92830 r.ReadArrayEnd() 92831 } else { 92832 x.codecDecodeSelfFromArray(yyl2, d) 92833 } 92834 } else { 92835 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 92836 } 92837 } 92838 } 92839 92840 func (x *TaskEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 92841 var h codecSelfer100 92842 z, r := codec1978.GenHelperDecoder(d) 92843 _, _, _ = h, z, r 92844 var yyhl3 bool = l >= 0 92845 for yyj3 := 0; ; yyj3++ { 92846 if yyhl3 { 92847 if yyj3 >= l { 92848 break 92849 } 92850 } else { 92851 if r.CheckBreak() { 92852 break 92853 } 92854 } 92855 r.ReadMapElemKey() 92856 yys3 := z.StringView(r.DecodeStringAsBytes()) 92857 r.ReadMapElemValue() 92858 switch yys3 { 92859 case "Type": 92860 if r.TryDecodeAsNil() { 92861 x.Type = "" 92862 } else { 92863 x.Type = (string)(r.DecodeString()) 92864 } 92865 case "Time": 92866 if r.TryDecodeAsNil() { 92867 x.Time = 0 92868 } else { 92869 x.Time = (int64)(r.DecodeInt64()) 92870 } 92871 case "Message": 92872 if r.TryDecodeAsNil() { 92873 x.Message = "" 92874 } else { 92875 x.Message = (string)(r.DecodeString()) 92876 } 92877 case "DisplayMessage": 92878 if r.TryDecodeAsNil() { 92879 x.DisplayMessage = "" 92880 } else { 92881 x.DisplayMessage = (string)(r.DecodeString()) 92882 } 92883 case "Details": 92884 if r.TryDecodeAsNil() { 92885 x.Details = nil 92886 } else { 92887 if false { 92888 } else { 92889 z.F.DecMapStringStringX(&x.Details, d) 92890 } 92891 } 92892 case "FailsTask": 92893 if r.TryDecodeAsNil() { 92894 x.FailsTask = false 92895 } else { 92896 x.FailsTask = (bool)(r.DecodeBool()) 92897 } 92898 case "RestartReason": 92899 if r.TryDecodeAsNil() { 92900 x.RestartReason = "" 92901 } else { 92902 x.RestartReason = (string)(r.DecodeString()) 92903 } 92904 case "SetupError": 92905 if r.TryDecodeAsNil() { 92906 x.SetupError = "" 92907 } else { 92908 x.SetupError = (string)(r.DecodeString()) 92909 } 92910 case "DriverError": 92911 if r.TryDecodeAsNil() { 92912 x.DriverError = "" 92913 } else { 92914 x.DriverError = (string)(r.DecodeString()) 92915 } 92916 case "ExitCode": 92917 if r.TryDecodeAsNil() { 92918 x.ExitCode = 0 92919 } else { 92920 x.ExitCode = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 92921 } 92922 case "Signal": 92923 if r.TryDecodeAsNil() { 92924 x.Signal = 0 92925 } else { 92926 x.Signal = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 92927 } 92928 case "KillTimeout": 92929 if r.TryDecodeAsNil() { 92930 x.KillTimeout = 0 92931 } else { 92932 if false { 92933 } else if yyxt17 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt17 != nil { 92934 z.DecExtension(x.KillTimeout, yyxt17) 92935 } else { 92936 x.KillTimeout = (time.Duration)(r.DecodeInt64()) 92937 } 92938 } 92939 case "KillError": 92940 if r.TryDecodeAsNil() { 92941 x.KillError = "" 92942 } else { 92943 x.KillError = (string)(r.DecodeString()) 92944 } 92945 case "KillReason": 92946 if r.TryDecodeAsNil() { 92947 x.KillReason = "" 92948 } else { 92949 x.KillReason = (string)(r.DecodeString()) 92950 } 92951 case "StartDelay": 92952 if r.TryDecodeAsNil() { 92953 x.StartDelay = 0 92954 } else { 92955 x.StartDelay = (int64)(r.DecodeInt64()) 92956 } 92957 case "DownloadError": 92958 if r.TryDecodeAsNil() { 92959 x.DownloadError = "" 92960 } else { 92961 x.DownloadError = (string)(r.DecodeString()) 92962 } 92963 case "ValidationError": 92964 if r.TryDecodeAsNil() { 92965 x.ValidationError = "" 92966 } else { 92967 x.ValidationError = (string)(r.DecodeString()) 92968 } 92969 case "DiskLimit": 92970 if r.TryDecodeAsNil() { 92971 x.DiskLimit = 0 92972 } else { 92973 x.DiskLimit = (int64)(r.DecodeInt64()) 92974 } 92975 case "FailedSibling": 92976 if r.TryDecodeAsNil() { 92977 x.FailedSibling = "" 92978 } else { 92979 x.FailedSibling = (string)(r.DecodeString()) 92980 } 92981 case "VaultError": 92982 if r.TryDecodeAsNil() { 92983 x.VaultError = "" 92984 } else { 92985 x.VaultError = (string)(r.DecodeString()) 92986 } 92987 case "TaskSignalReason": 92988 if r.TryDecodeAsNil() { 92989 x.TaskSignalReason = "" 92990 } else { 92991 x.TaskSignalReason = (string)(r.DecodeString()) 92992 } 92993 case "TaskSignal": 92994 if r.TryDecodeAsNil() { 92995 x.TaskSignal = "" 92996 } else { 92997 x.TaskSignal = (string)(r.DecodeString()) 92998 } 92999 case "DriverMessage": 93000 if r.TryDecodeAsNil() { 93001 x.DriverMessage = "" 93002 } else { 93003 x.DriverMessage = (string)(r.DecodeString()) 93004 } 93005 case "GenericSource": 93006 if r.TryDecodeAsNil() { 93007 x.GenericSource = "" 93008 } else { 93009 x.GenericSource = (string)(r.DecodeString()) 93010 } 93011 default: 93012 z.DecStructFieldNotFound(-1, yys3) 93013 } // end switch yys3 93014 } // end for yyj3 93015 r.ReadMapEnd() 93016 } 93017 93018 func (x *TaskEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 93019 var h codecSelfer100 93020 z, r := codec1978.GenHelperDecoder(d) 93021 _, _, _ = h, z, r 93022 var yyj30 int 93023 var yyb30 bool 93024 var yyhl30 bool = l >= 0 93025 yyj30++ 93026 if yyhl30 { 93027 yyb30 = yyj30 > l 93028 } else { 93029 yyb30 = r.CheckBreak() 93030 } 93031 if yyb30 { 93032 r.ReadArrayEnd() 93033 return 93034 } 93035 r.ReadArrayElem() 93036 if r.TryDecodeAsNil() { 93037 x.Type = "" 93038 } else { 93039 x.Type = (string)(r.DecodeString()) 93040 } 93041 yyj30++ 93042 if yyhl30 { 93043 yyb30 = yyj30 > l 93044 } else { 93045 yyb30 = r.CheckBreak() 93046 } 93047 if yyb30 { 93048 r.ReadArrayEnd() 93049 return 93050 } 93051 r.ReadArrayElem() 93052 if r.TryDecodeAsNil() { 93053 x.Time = 0 93054 } else { 93055 x.Time = (int64)(r.DecodeInt64()) 93056 } 93057 yyj30++ 93058 if yyhl30 { 93059 yyb30 = yyj30 > l 93060 } else { 93061 yyb30 = r.CheckBreak() 93062 } 93063 if yyb30 { 93064 r.ReadArrayEnd() 93065 return 93066 } 93067 r.ReadArrayElem() 93068 if r.TryDecodeAsNil() { 93069 x.Message = "" 93070 } else { 93071 x.Message = (string)(r.DecodeString()) 93072 } 93073 yyj30++ 93074 if yyhl30 { 93075 yyb30 = yyj30 > l 93076 } else { 93077 yyb30 = r.CheckBreak() 93078 } 93079 if yyb30 { 93080 r.ReadArrayEnd() 93081 return 93082 } 93083 r.ReadArrayElem() 93084 if r.TryDecodeAsNil() { 93085 x.DisplayMessage = "" 93086 } else { 93087 x.DisplayMessage = (string)(r.DecodeString()) 93088 } 93089 yyj30++ 93090 if yyhl30 { 93091 yyb30 = yyj30 > l 93092 } else { 93093 yyb30 = r.CheckBreak() 93094 } 93095 if yyb30 { 93096 r.ReadArrayEnd() 93097 return 93098 } 93099 r.ReadArrayElem() 93100 if r.TryDecodeAsNil() { 93101 x.Details = nil 93102 } else { 93103 if false { 93104 } else { 93105 z.F.DecMapStringStringX(&x.Details, d) 93106 } 93107 } 93108 yyj30++ 93109 if yyhl30 { 93110 yyb30 = yyj30 > l 93111 } else { 93112 yyb30 = r.CheckBreak() 93113 } 93114 if yyb30 { 93115 r.ReadArrayEnd() 93116 return 93117 } 93118 r.ReadArrayElem() 93119 if r.TryDecodeAsNil() { 93120 x.FailsTask = false 93121 } else { 93122 x.FailsTask = (bool)(r.DecodeBool()) 93123 } 93124 yyj30++ 93125 if yyhl30 { 93126 yyb30 = yyj30 > l 93127 } else { 93128 yyb30 = r.CheckBreak() 93129 } 93130 if yyb30 { 93131 r.ReadArrayEnd() 93132 return 93133 } 93134 r.ReadArrayElem() 93135 if r.TryDecodeAsNil() { 93136 x.RestartReason = "" 93137 } else { 93138 x.RestartReason = (string)(r.DecodeString()) 93139 } 93140 yyj30++ 93141 if yyhl30 { 93142 yyb30 = yyj30 > l 93143 } else { 93144 yyb30 = r.CheckBreak() 93145 } 93146 if yyb30 { 93147 r.ReadArrayEnd() 93148 return 93149 } 93150 r.ReadArrayElem() 93151 if r.TryDecodeAsNil() { 93152 x.SetupError = "" 93153 } else { 93154 x.SetupError = (string)(r.DecodeString()) 93155 } 93156 yyj30++ 93157 if yyhl30 { 93158 yyb30 = yyj30 > l 93159 } else { 93160 yyb30 = r.CheckBreak() 93161 } 93162 if yyb30 { 93163 r.ReadArrayEnd() 93164 return 93165 } 93166 r.ReadArrayElem() 93167 if r.TryDecodeAsNil() { 93168 x.DriverError = "" 93169 } else { 93170 x.DriverError = (string)(r.DecodeString()) 93171 } 93172 yyj30++ 93173 if yyhl30 { 93174 yyb30 = yyj30 > l 93175 } else { 93176 yyb30 = r.CheckBreak() 93177 } 93178 if yyb30 { 93179 r.ReadArrayEnd() 93180 return 93181 } 93182 r.ReadArrayElem() 93183 if r.TryDecodeAsNil() { 93184 x.ExitCode = 0 93185 } else { 93186 x.ExitCode = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 93187 } 93188 yyj30++ 93189 if yyhl30 { 93190 yyb30 = yyj30 > l 93191 } else { 93192 yyb30 = r.CheckBreak() 93193 } 93194 if yyb30 { 93195 r.ReadArrayEnd() 93196 return 93197 } 93198 r.ReadArrayElem() 93199 if r.TryDecodeAsNil() { 93200 x.Signal = 0 93201 } else { 93202 x.Signal = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 93203 } 93204 yyj30++ 93205 if yyhl30 { 93206 yyb30 = yyj30 > l 93207 } else { 93208 yyb30 = r.CheckBreak() 93209 } 93210 if yyb30 { 93211 r.ReadArrayEnd() 93212 return 93213 } 93214 r.ReadArrayElem() 93215 if r.TryDecodeAsNil() { 93216 x.KillTimeout = 0 93217 } else { 93218 if false { 93219 } else if yyxt44 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt44 != nil { 93220 z.DecExtension(x.KillTimeout, yyxt44) 93221 } else { 93222 x.KillTimeout = (time.Duration)(r.DecodeInt64()) 93223 } 93224 } 93225 yyj30++ 93226 if yyhl30 { 93227 yyb30 = yyj30 > l 93228 } else { 93229 yyb30 = r.CheckBreak() 93230 } 93231 if yyb30 { 93232 r.ReadArrayEnd() 93233 return 93234 } 93235 r.ReadArrayElem() 93236 if r.TryDecodeAsNil() { 93237 x.KillError = "" 93238 } else { 93239 x.KillError = (string)(r.DecodeString()) 93240 } 93241 yyj30++ 93242 if yyhl30 { 93243 yyb30 = yyj30 > l 93244 } else { 93245 yyb30 = r.CheckBreak() 93246 } 93247 if yyb30 { 93248 r.ReadArrayEnd() 93249 return 93250 } 93251 r.ReadArrayElem() 93252 if r.TryDecodeAsNil() { 93253 x.KillReason = "" 93254 } else { 93255 x.KillReason = (string)(r.DecodeString()) 93256 } 93257 yyj30++ 93258 if yyhl30 { 93259 yyb30 = yyj30 > l 93260 } else { 93261 yyb30 = r.CheckBreak() 93262 } 93263 if yyb30 { 93264 r.ReadArrayEnd() 93265 return 93266 } 93267 r.ReadArrayElem() 93268 if r.TryDecodeAsNil() { 93269 x.StartDelay = 0 93270 } else { 93271 x.StartDelay = (int64)(r.DecodeInt64()) 93272 } 93273 yyj30++ 93274 if yyhl30 { 93275 yyb30 = yyj30 > l 93276 } else { 93277 yyb30 = r.CheckBreak() 93278 } 93279 if yyb30 { 93280 r.ReadArrayEnd() 93281 return 93282 } 93283 r.ReadArrayElem() 93284 if r.TryDecodeAsNil() { 93285 x.DownloadError = "" 93286 } else { 93287 x.DownloadError = (string)(r.DecodeString()) 93288 } 93289 yyj30++ 93290 if yyhl30 { 93291 yyb30 = yyj30 > l 93292 } else { 93293 yyb30 = r.CheckBreak() 93294 } 93295 if yyb30 { 93296 r.ReadArrayEnd() 93297 return 93298 } 93299 r.ReadArrayElem() 93300 if r.TryDecodeAsNil() { 93301 x.ValidationError = "" 93302 } else { 93303 x.ValidationError = (string)(r.DecodeString()) 93304 } 93305 yyj30++ 93306 if yyhl30 { 93307 yyb30 = yyj30 > l 93308 } else { 93309 yyb30 = r.CheckBreak() 93310 } 93311 if yyb30 { 93312 r.ReadArrayEnd() 93313 return 93314 } 93315 r.ReadArrayElem() 93316 if r.TryDecodeAsNil() { 93317 x.DiskLimit = 0 93318 } else { 93319 x.DiskLimit = (int64)(r.DecodeInt64()) 93320 } 93321 yyj30++ 93322 if yyhl30 { 93323 yyb30 = yyj30 > l 93324 } else { 93325 yyb30 = r.CheckBreak() 93326 } 93327 if yyb30 { 93328 r.ReadArrayEnd() 93329 return 93330 } 93331 r.ReadArrayElem() 93332 if r.TryDecodeAsNil() { 93333 x.FailedSibling = "" 93334 } else { 93335 x.FailedSibling = (string)(r.DecodeString()) 93336 } 93337 yyj30++ 93338 if yyhl30 { 93339 yyb30 = yyj30 > l 93340 } else { 93341 yyb30 = r.CheckBreak() 93342 } 93343 if yyb30 { 93344 r.ReadArrayEnd() 93345 return 93346 } 93347 r.ReadArrayElem() 93348 if r.TryDecodeAsNil() { 93349 x.VaultError = "" 93350 } else { 93351 x.VaultError = (string)(r.DecodeString()) 93352 } 93353 yyj30++ 93354 if yyhl30 { 93355 yyb30 = yyj30 > l 93356 } else { 93357 yyb30 = r.CheckBreak() 93358 } 93359 if yyb30 { 93360 r.ReadArrayEnd() 93361 return 93362 } 93363 r.ReadArrayElem() 93364 if r.TryDecodeAsNil() { 93365 x.TaskSignalReason = "" 93366 } else { 93367 x.TaskSignalReason = (string)(r.DecodeString()) 93368 } 93369 yyj30++ 93370 if yyhl30 { 93371 yyb30 = yyj30 > l 93372 } else { 93373 yyb30 = r.CheckBreak() 93374 } 93375 if yyb30 { 93376 r.ReadArrayEnd() 93377 return 93378 } 93379 r.ReadArrayElem() 93380 if r.TryDecodeAsNil() { 93381 x.TaskSignal = "" 93382 } else { 93383 x.TaskSignal = (string)(r.DecodeString()) 93384 } 93385 yyj30++ 93386 if yyhl30 { 93387 yyb30 = yyj30 > l 93388 } else { 93389 yyb30 = r.CheckBreak() 93390 } 93391 if yyb30 { 93392 r.ReadArrayEnd() 93393 return 93394 } 93395 r.ReadArrayElem() 93396 if r.TryDecodeAsNil() { 93397 x.DriverMessage = "" 93398 } else { 93399 x.DriverMessage = (string)(r.DecodeString()) 93400 } 93401 yyj30++ 93402 if yyhl30 { 93403 yyb30 = yyj30 > l 93404 } else { 93405 yyb30 = r.CheckBreak() 93406 } 93407 if yyb30 { 93408 r.ReadArrayEnd() 93409 return 93410 } 93411 r.ReadArrayElem() 93412 if r.TryDecodeAsNil() { 93413 x.GenericSource = "" 93414 } else { 93415 x.GenericSource = (string)(r.DecodeString()) 93416 } 93417 for { 93418 yyj30++ 93419 if yyhl30 { 93420 yyb30 = yyj30 > l 93421 } else { 93422 yyb30 = r.CheckBreak() 93423 } 93424 if yyb30 { 93425 break 93426 } 93427 r.ReadArrayElem() 93428 z.DecStructFieldNotFound(yyj30-1, "") 93429 } 93430 r.ReadArrayEnd() 93431 } 93432 93433 func (x *TaskArtifact) CodecEncodeSelf(e *codec1978.Encoder) { 93434 var h codecSelfer100 93435 z, r := codec1978.GenHelperEncoder(e) 93436 _, _, _ = h, z, r 93437 if x == nil { 93438 r.EncodeNil() 93439 } else { 93440 if false { 93441 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 93442 z.EncExtension(x, yyxt1) 93443 } else { 93444 yysep2 := !z.EncBinary() 93445 yy2arr2 := z.EncBasicHandle().StructToArray 93446 _, _ = yysep2, yy2arr2 93447 const yyr2 bool = false // struct tag has 'toArray' 93448 if yyr2 || yy2arr2 { 93449 r.WriteArrayStart(4) 93450 } else { 93451 r.WriteMapStart(4) 93452 } 93453 if yyr2 || yy2arr2 { 93454 r.WriteArrayElem() 93455 if false { 93456 } else { 93457 if z.EncBasicHandle().StringToRaw { 93458 r.EncodeStringBytesRaw(z.BytesView(string(x.GetterSource))) 93459 } else { 93460 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GetterSource)) 93461 } 93462 } 93463 } else { 93464 r.WriteMapElemKey() 93465 if z.IsJSONHandle() { 93466 z.WriteStr("\"GetterSource\"") 93467 } else { 93468 r.EncodeStringEnc(codecSelferCcUTF8100, `GetterSource`) 93469 } 93470 r.WriteMapElemValue() 93471 if false { 93472 } else { 93473 if z.EncBasicHandle().StringToRaw { 93474 r.EncodeStringBytesRaw(z.BytesView(string(x.GetterSource))) 93475 } else { 93476 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GetterSource)) 93477 } 93478 } 93479 } 93480 if yyr2 || yy2arr2 { 93481 r.WriteArrayElem() 93482 if x.GetterOptions == nil { 93483 r.EncodeNil() 93484 } else { 93485 if false { 93486 } else { 93487 z.F.EncMapStringStringV(x.GetterOptions, e) 93488 } 93489 } 93490 } else { 93491 r.WriteMapElemKey() 93492 if z.IsJSONHandle() { 93493 z.WriteStr("\"GetterOptions\"") 93494 } else { 93495 r.EncodeStringEnc(codecSelferCcUTF8100, `GetterOptions`) 93496 } 93497 r.WriteMapElemValue() 93498 if x.GetterOptions == nil { 93499 r.EncodeNil() 93500 } else { 93501 if false { 93502 } else { 93503 z.F.EncMapStringStringV(x.GetterOptions, e) 93504 } 93505 } 93506 } 93507 if yyr2 || yy2arr2 { 93508 r.WriteArrayElem() 93509 if false { 93510 } else { 93511 if z.EncBasicHandle().StringToRaw { 93512 r.EncodeStringBytesRaw(z.BytesView(string(x.GetterMode))) 93513 } else { 93514 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GetterMode)) 93515 } 93516 } 93517 } else { 93518 r.WriteMapElemKey() 93519 if z.IsJSONHandle() { 93520 z.WriteStr("\"GetterMode\"") 93521 } else { 93522 r.EncodeStringEnc(codecSelferCcUTF8100, `GetterMode`) 93523 } 93524 r.WriteMapElemValue() 93525 if false { 93526 } else { 93527 if z.EncBasicHandle().StringToRaw { 93528 r.EncodeStringBytesRaw(z.BytesView(string(x.GetterMode))) 93529 } else { 93530 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GetterMode)) 93531 } 93532 } 93533 } 93534 if yyr2 || yy2arr2 { 93535 r.WriteArrayElem() 93536 if false { 93537 } else { 93538 if z.EncBasicHandle().StringToRaw { 93539 r.EncodeStringBytesRaw(z.BytesView(string(x.RelativeDest))) 93540 } else { 93541 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RelativeDest)) 93542 } 93543 } 93544 } else { 93545 r.WriteMapElemKey() 93546 if z.IsJSONHandle() { 93547 z.WriteStr("\"RelativeDest\"") 93548 } else { 93549 r.EncodeStringEnc(codecSelferCcUTF8100, `RelativeDest`) 93550 } 93551 r.WriteMapElemValue() 93552 if false { 93553 } else { 93554 if z.EncBasicHandle().StringToRaw { 93555 r.EncodeStringBytesRaw(z.BytesView(string(x.RelativeDest))) 93556 } else { 93557 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RelativeDest)) 93558 } 93559 } 93560 } 93561 if yyr2 || yy2arr2 { 93562 r.WriteArrayEnd() 93563 } else { 93564 r.WriteMapEnd() 93565 } 93566 } 93567 } 93568 } 93569 93570 func (x *TaskArtifact) CodecDecodeSelf(d *codec1978.Decoder) { 93571 var h codecSelfer100 93572 z, r := codec1978.GenHelperDecoder(d) 93573 _, _, _ = h, z, r 93574 if false { 93575 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 93576 z.DecExtension(x, yyxt1) 93577 } else { 93578 yyct2 := r.ContainerType() 93579 if yyct2 == codecSelferValueTypeMap100 { 93580 yyl2 := r.ReadMapStart() 93581 if yyl2 == 0 { 93582 r.ReadMapEnd() 93583 } else { 93584 x.codecDecodeSelfFromMap(yyl2, d) 93585 } 93586 } else if yyct2 == codecSelferValueTypeArray100 { 93587 yyl2 := r.ReadArrayStart() 93588 if yyl2 == 0 { 93589 r.ReadArrayEnd() 93590 } else { 93591 x.codecDecodeSelfFromArray(yyl2, d) 93592 } 93593 } else { 93594 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 93595 } 93596 } 93597 } 93598 93599 func (x *TaskArtifact) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 93600 var h codecSelfer100 93601 z, r := codec1978.GenHelperDecoder(d) 93602 _, _, _ = h, z, r 93603 var yyhl3 bool = l >= 0 93604 for yyj3 := 0; ; yyj3++ { 93605 if yyhl3 { 93606 if yyj3 >= l { 93607 break 93608 } 93609 } else { 93610 if r.CheckBreak() { 93611 break 93612 } 93613 } 93614 r.ReadMapElemKey() 93615 yys3 := z.StringView(r.DecodeStringAsBytes()) 93616 r.ReadMapElemValue() 93617 switch yys3 { 93618 case "GetterSource": 93619 if r.TryDecodeAsNil() { 93620 x.GetterSource = "" 93621 } else { 93622 x.GetterSource = (string)(r.DecodeString()) 93623 } 93624 case "GetterOptions": 93625 if r.TryDecodeAsNil() { 93626 x.GetterOptions = nil 93627 } else { 93628 if false { 93629 } else { 93630 z.F.DecMapStringStringX(&x.GetterOptions, d) 93631 } 93632 } 93633 case "GetterMode": 93634 if r.TryDecodeAsNil() { 93635 x.GetterMode = "" 93636 } else { 93637 x.GetterMode = (string)(r.DecodeString()) 93638 } 93639 case "RelativeDest": 93640 if r.TryDecodeAsNil() { 93641 x.RelativeDest = "" 93642 } else { 93643 x.RelativeDest = (string)(r.DecodeString()) 93644 } 93645 default: 93646 z.DecStructFieldNotFound(-1, yys3) 93647 } // end switch yys3 93648 } // end for yyj3 93649 r.ReadMapEnd() 93650 } 93651 93652 func (x *TaskArtifact) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 93653 var h codecSelfer100 93654 z, r := codec1978.GenHelperDecoder(d) 93655 _, _, _ = h, z, r 93656 var yyj9 int 93657 var yyb9 bool 93658 var yyhl9 bool = l >= 0 93659 yyj9++ 93660 if yyhl9 { 93661 yyb9 = yyj9 > l 93662 } else { 93663 yyb9 = r.CheckBreak() 93664 } 93665 if yyb9 { 93666 r.ReadArrayEnd() 93667 return 93668 } 93669 r.ReadArrayElem() 93670 if r.TryDecodeAsNil() { 93671 x.GetterSource = "" 93672 } else { 93673 x.GetterSource = (string)(r.DecodeString()) 93674 } 93675 yyj9++ 93676 if yyhl9 { 93677 yyb9 = yyj9 > l 93678 } else { 93679 yyb9 = r.CheckBreak() 93680 } 93681 if yyb9 { 93682 r.ReadArrayEnd() 93683 return 93684 } 93685 r.ReadArrayElem() 93686 if r.TryDecodeAsNil() { 93687 x.GetterOptions = nil 93688 } else { 93689 if false { 93690 } else { 93691 z.F.DecMapStringStringX(&x.GetterOptions, d) 93692 } 93693 } 93694 yyj9++ 93695 if yyhl9 { 93696 yyb9 = yyj9 > l 93697 } else { 93698 yyb9 = r.CheckBreak() 93699 } 93700 if yyb9 { 93701 r.ReadArrayEnd() 93702 return 93703 } 93704 r.ReadArrayElem() 93705 if r.TryDecodeAsNil() { 93706 x.GetterMode = "" 93707 } else { 93708 x.GetterMode = (string)(r.DecodeString()) 93709 } 93710 yyj9++ 93711 if yyhl9 { 93712 yyb9 = yyj9 > l 93713 } else { 93714 yyb9 = r.CheckBreak() 93715 } 93716 if yyb9 { 93717 r.ReadArrayEnd() 93718 return 93719 } 93720 r.ReadArrayElem() 93721 if r.TryDecodeAsNil() { 93722 x.RelativeDest = "" 93723 } else { 93724 x.RelativeDest = (string)(r.DecodeString()) 93725 } 93726 for { 93727 yyj9++ 93728 if yyhl9 { 93729 yyb9 = yyj9 > l 93730 } else { 93731 yyb9 = r.CheckBreak() 93732 } 93733 if yyb9 { 93734 break 93735 } 93736 r.ReadArrayElem() 93737 z.DecStructFieldNotFound(yyj9-1, "") 93738 } 93739 r.ReadArrayEnd() 93740 } 93741 93742 func (x *Constraint) CodecEncodeSelf(e *codec1978.Encoder) { 93743 var h codecSelfer100 93744 z, r := codec1978.GenHelperEncoder(e) 93745 _, _, _ = h, z, r 93746 if x == nil { 93747 r.EncodeNil() 93748 } else { 93749 if false { 93750 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 93751 z.EncExtension(x, yyxt1) 93752 } else { 93753 yysep2 := !z.EncBinary() 93754 yy2arr2 := z.EncBasicHandle().StructToArray 93755 _, _ = yysep2, yy2arr2 93756 const yyr2 bool = false // struct tag has 'toArray' 93757 if yyr2 || yy2arr2 { 93758 r.WriteArrayStart(3) 93759 } else { 93760 r.WriteMapStart(3) 93761 } 93762 if yyr2 || yy2arr2 { 93763 r.WriteArrayElem() 93764 if false { 93765 } else { 93766 if z.EncBasicHandle().StringToRaw { 93767 r.EncodeStringBytesRaw(z.BytesView(string(x.LTarget))) 93768 } else { 93769 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LTarget)) 93770 } 93771 } 93772 } else { 93773 r.WriteMapElemKey() 93774 if z.IsJSONHandle() { 93775 z.WriteStr("\"LTarget\"") 93776 } else { 93777 r.EncodeStringEnc(codecSelferCcUTF8100, `LTarget`) 93778 } 93779 r.WriteMapElemValue() 93780 if false { 93781 } else { 93782 if z.EncBasicHandle().StringToRaw { 93783 r.EncodeStringBytesRaw(z.BytesView(string(x.LTarget))) 93784 } else { 93785 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LTarget)) 93786 } 93787 } 93788 } 93789 if yyr2 || yy2arr2 { 93790 r.WriteArrayElem() 93791 if false { 93792 } else { 93793 if z.EncBasicHandle().StringToRaw { 93794 r.EncodeStringBytesRaw(z.BytesView(string(x.RTarget))) 93795 } else { 93796 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RTarget)) 93797 } 93798 } 93799 } else { 93800 r.WriteMapElemKey() 93801 if z.IsJSONHandle() { 93802 z.WriteStr("\"RTarget\"") 93803 } else { 93804 r.EncodeStringEnc(codecSelferCcUTF8100, `RTarget`) 93805 } 93806 r.WriteMapElemValue() 93807 if false { 93808 } else { 93809 if z.EncBasicHandle().StringToRaw { 93810 r.EncodeStringBytesRaw(z.BytesView(string(x.RTarget))) 93811 } else { 93812 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RTarget)) 93813 } 93814 } 93815 } 93816 if yyr2 || yy2arr2 { 93817 r.WriteArrayElem() 93818 if false { 93819 } else { 93820 if z.EncBasicHandle().StringToRaw { 93821 r.EncodeStringBytesRaw(z.BytesView(string(x.Operand))) 93822 } else { 93823 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Operand)) 93824 } 93825 } 93826 } else { 93827 r.WriteMapElemKey() 93828 if z.IsJSONHandle() { 93829 z.WriteStr("\"Operand\"") 93830 } else { 93831 r.EncodeStringEnc(codecSelferCcUTF8100, `Operand`) 93832 } 93833 r.WriteMapElemValue() 93834 if false { 93835 } else { 93836 if z.EncBasicHandle().StringToRaw { 93837 r.EncodeStringBytesRaw(z.BytesView(string(x.Operand))) 93838 } else { 93839 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Operand)) 93840 } 93841 } 93842 } 93843 if yyr2 || yy2arr2 { 93844 r.WriteArrayEnd() 93845 } else { 93846 r.WriteMapEnd() 93847 } 93848 } 93849 } 93850 } 93851 93852 func (x *Constraint) CodecDecodeSelf(d *codec1978.Decoder) { 93853 var h codecSelfer100 93854 z, r := codec1978.GenHelperDecoder(d) 93855 _, _, _ = h, z, r 93856 if false { 93857 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 93858 z.DecExtension(x, yyxt1) 93859 } else { 93860 yyct2 := r.ContainerType() 93861 if yyct2 == codecSelferValueTypeMap100 { 93862 yyl2 := r.ReadMapStart() 93863 if yyl2 == 0 { 93864 r.ReadMapEnd() 93865 } else { 93866 x.codecDecodeSelfFromMap(yyl2, d) 93867 } 93868 } else if yyct2 == codecSelferValueTypeArray100 { 93869 yyl2 := r.ReadArrayStart() 93870 if yyl2 == 0 { 93871 r.ReadArrayEnd() 93872 } else { 93873 x.codecDecodeSelfFromArray(yyl2, d) 93874 } 93875 } else { 93876 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 93877 } 93878 } 93879 } 93880 93881 func (x *Constraint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 93882 var h codecSelfer100 93883 z, r := codec1978.GenHelperDecoder(d) 93884 _, _, _ = h, z, r 93885 var yyhl3 bool = l >= 0 93886 for yyj3 := 0; ; yyj3++ { 93887 if yyhl3 { 93888 if yyj3 >= l { 93889 break 93890 } 93891 } else { 93892 if r.CheckBreak() { 93893 break 93894 } 93895 } 93896 r.ReadMapElemKey() 93897 yys3 := z.StringView(r.DecodeStringAsBytes()) 93898 r.ReadMapElemValue() 93899 switch yys3 { 93900 case "LTarget": 93901 if r.TryDecodeAsNil() { 93902 x.LTarget = "" 93903 } else { 93904 x.LTarget = (string)(r.DecodeString()) 93905 } 93906 case "RTarget": 93907 if r.TryDecodeAsNil() { 93908 x.RTarget = "" 93909 } else { 93910 x.RTarget = (string)(r.DecodeString()) 93911 } 93912 case "Operand": 93913 if r.TryDecodeAsNil() { 93914 x.Operand = "" 93915 } else { 93916 x.Operand = (string)(r.DecodeString()) 93917 } 93918 default: 93919 z.DecStructFieldNotFound(-1, yys3) 93920 } // end switch yys3 93921 } // end for yyj3 93922 r.ReadMapEnd() 93923 } 93924 93925 func (x *Constraint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 93926 var h codecSelfer100 93927 z, r := codec1978.GenHelperDecoder(d) 93928 _, _, _ = h, z, r 93929 var yyj7 int 93930 var yyb7 bool 93931 var yyhl7 bool = l >= 0 93932 yyj7++ 93933 if yyhl7 { 93934 yyb7 = yyj7 > l 93935 } else { 93936 yyb7 = r.CheckBreak() 93937 } 93938 if yyb7 { 93939 r.ReadArrayEnd() 93940 return 93941 } 93942 r.ReadArrayElem() 93943 if r.TryDecodeAsNil() { 93944 x.LTarget = "" 93945 } else { 93946 x.LTarget = (string)(r.DecodeString()) 93947 } 93948 yyj7++ 93949 if yyhl7 { 93950 yyb7 = yyj7 > l 93951 } else { 93952 yyb7 = r.CheckBreak() 93953 } 93954 if yyb7 { 93955 r.ReadArrayEnd() 93956 return 93957 } 93958 r.ReadArrayElem() 93959 if r.TryDecodeAsNil() { 93960 x.RTarget = "" 93961 } else { 93962 x.RTarget = (string)(r.DecodeString()) 93963 } 93964 yyj7++ 93965 if yyhl7 { 93966 yyb7 = yyj7 > l 93967 } else { 93968 yyb7 = r.CheckBreak() 93969 } 93970 if yyb7 { 93971 r.ReadArrayEnd() 93972 return 93973 } 93974 r.ReadArrayElem() 93975 if r.TryDecodeAsNil() { 93976 x.Operand = "" 93977 } else { 93978 x.Operand = (string)(r.DecodeString()) 93979 } 93980 for { 93981 yyj7++ 93982 if yyhl7 { 93983 yyb7 = yyj7 > l 93984 } else { 93985 yyb7 = r.CheckBreak() 93986 } 93987 if yyb7 { 93988 break 93989 } 93990 r.ReadArrayElem() 93991 z.DecStructFieldNotFound(yyj7-1, "") 93992 } 93993 r.ReadArrayEnd() 93994 } 93995 93996 func (x Constraints) CodecEncodeSelf(e *codec1978.Encoder) { 93997 var h codecSelfer100 93998 z, r := codec1978.GenHelperEncoder(e) 93999 _, _, _ = h, z, r 94000 if x == nil { 94001 r.EncodeNil() 94002 } else { 94003 if false { 94004 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 94005 z.EncExtension(x, yyxt1) 94006 } else { 94007 h.encConstraints((Constraints)(x), e) 94008 } 94009 } 94010 } 94011 94012 func (x *Constraints) CodecDecodeSelf(d *codec1978.Decoder) { 94013 var h codecSelfer100 94014 z, r := codec1978.GenHelperDecoder(d) 94015 _, _, _ = h, z, r 94016 if false { 94017 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 94018 z.DecExtension(x, yyxt1) 94019 } else { 94020 h.decConstraints((*Constraints)(x), d) 94021 } 94022 } 94023 94024 func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { 94025 var h codecSelfer100 94026 z, r := codec1978.GenHelperEncoder(e) 94027 _, _, _ = h, z, r 94028 if x == nil { 94029 r.EncodeNil() 94030 } else { 94031 if false { 94032 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 94033 z.EncExtension(x, yyxt1) 94034 } else { 94035 yysep2 := !z.EncBinary() 94036 yy2arr2 := z.EncBasicHandle().StructToArray 94037 _, _ = yysep2, yy2arr2 94038 const yyr2 bool = false // struct tag has 'toArray' 94039 if yyr2 || yy2arr2 { 94040 r.WriteArrayStart(4) 94041 } else { 94042 r.WriteMapStart(4) 94043 } 94044 if yyr2 || yy2arr2 { 94045 r.WriteArrayElem() 94046 if false { 94047 } else { 94048 if z.EncBasicHandle().StringToRaw { 94049 r.EncodeStringBytesRaw(z.BytesView(string(x.LTarget))) 94050 } else { 94051 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LTarget)) 94052 } 94053 } 94054 } else { 94055 r.WriteMapElemKey() 94056 if z.IsJSONHandle() { 94057 z.WriteStr("\"LTarget\"") 94058 } else { 94059 r.EncodeStringEnc(codecSelferCcUTF8100, `LTarget`) 94060 } 94061 r.WriteMapElemValue() 94062 if false { 94063 } else { 94064 if z.EncBasicHandle().StringToRaw { 94065 r.EncodeStringBytesRaw(z.BytesView(string(x.LTarget))) 94066 } else { 94067 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LTarget)) 94068 } 94069 } 94070 } 94071 if yyr2 || yy2arr2 { 94072 r.WriteArrayElem() 94073 if false { 94074 } else { 94075 if z.EncBasicHandle().StringToRaw { 94076 r.EncodeStringBytesRaw(z.BytesView(string(x.RTarget))) 94077 } else { 94078 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RTarget)) 94079 } 94080 } 94081 } else { 94082 r.WriteMapElemKey() 94083 if z.IsJSONHandle() { 94084 z.WriteStr("\"RTarget\"") 94085 } else { 94086 r.EncodeStringEnc(codecSelferCcUTF8100, `RTarget`) 94087 } 94088 r.WriteMapElemValue() 94089 if false { 94090 } else { 94091 if z.EncBasicHandle().StringToRaw { 94092 r.EncodeStringBytesRaw(z.BytesView(string(x.RTarget))) 94093 } else { 94094 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RTarget)) 94095 } 94096 } 94097 } 94098 if yyr2 || yy2arr2 { 94099 r.WriteArrayElem() 94100 if false { 94101 } else { 94102 if z.EncBasicHandle().StringToRaw { 94103 r.EncodeStringBytesRaw(z.BytesView(string(x.Operand))) 94104 } else { 94105 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Operand)) 94106 } 94107 } 94108 } else { 94109 r.WriteMapElemKey() 94110 if z.IsJSONHandle() { 94111 z.WriteStr("\"Operand\"") 94112 } else { 94113 r.EncodeStringEnc(codecSelferCcUTF8100, `Operand`) 94114 } 94115 r.WriteMapElemValue() 94116 if false { 94117 } else { 94118 if z.EncBasicHandle().StringToRaw { 94119 r.EncodeStringBytesRaw(z.BytesView(string(x.Operand))) 94120 } else { 94121 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Operand)) 94122 } 94123 } 94124 } 94125 if yyr2 || yy2arr2 { 94126 r.WriteArrayElem() 94127 if false { 94128 } else { 94129 r.EncodeInt(int64(x.Weight)) 94130 } 94131 } else { 94132 r.WriteMapElemKey() 94133 if z.IsJSONHandle() { 94134 z.WriteStr("\"Weight\"") 94135 } else { 94136 r.EncodeStringEnc(codecSelferCcUTF8100, `Weight`) 94137 } 94138 r.WriteMapElemValue() 94139 if false { 94140 } else { 94141 r.EncodeInt(int64(x.Weight)) 94142 } 94143 } 94144 if yyr2 || yy2arr2 { 94145 r.WriteArrayEnd() 94146 } else { 94147 r.WriteMapEnd() 94148 } 94149 } 94150 } 94151 } 94152 94153 func (x *Affinity) CodecDecodeSelf(d *codec1978.Decoder) { 94154 var h codecSelfer100 94155 z, r := codec1978.GenHelperDecoder(d) 94156 _, _, _ = h, z, r 94157 if false { 94158 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 94159 z.DecExtension(x, yyxt1) 94160 } else { 94161 yyct2 := r.ContainerType() 94162 if yyct2 == codecSelferValueTypeMap100 { 94163 yyl2 := r.ReadMapStart() 94164 if yyl2 == 0 { 94165 r.ReadMapEnd() 94166 } else { 94167 x.codecDecodeSelfFromMap(yyl2, d) 94168 } 94169 } else if yyct2 == codecSelferValueTypeArray100 { 94170 yyl2 := r.ReadArrayStart() 94171 if yyl2 == 0 { 94172 r.ReadArrayEnd() 94173 } else { 94174 x.codecDecodeSelfFromArray(yyl2, d) 94175 } 94176 } else { 94177 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 94178 } 94179 } 94180 } 94181 94182 func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 94183 var h codecSelfer100 94184 z, r := codec1978.GenHelperDecoder(d) 94185 _, _, _ = h, z, r 94186 var yyhl3 bool = l >= 0 94187 for yyj3 := 0; ; yyj3++ { 94188 if yyhl3 { 94189 if yyj3 >= l { 94190 break 94191 } 94192 } else { 94193 if r.CheckBreak() { 94194 break 94195 } 94196 } 94197 r.ReadMapElemKey() 94198 yys3 := z.StringView(r.DecodeStringAsBytes()) 94199 r.ReadMapElemValue() 94200 switch yys3 { 94201 case "LTarget": 94202 if r.TryDecodeAsNil() { 94203 x.LTarget = "" 94204 } else { 94205 x.LTarget = (string)(r.DecodeString()) 94206 } 94207 case "RTarget": 94208 if r.TryDecodeAsNil() { 94209 x.RTarget = "" 94210 } else { 94211 x.RTarget = (string)(r.DecodeString()) 94212 } 94213 case "Operand": 94214 if r.TryDecodeAsNil() { 94215 x.Operand = "" 94216 } else { 94217 x.Operand = (string)(r.DecodeString()) 94218 } 94219 case "Weight": 94220 if r.TryDecodeAsNil() { 94221 x.Weight = 0 94222 } else { 94223 x.Weight = (int8)(z.C.IntV(r.DecodeInt64(), 8)) 94224 } 94225 default: 94226 z.DecStructFieldNotFound(-1, yys3) 94227 } // end switch yys3 94228 } // end for yyj3 94229 r.ReadMapEnd() 94230 } 94231 94232 func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 94233 var h codecSelfer100 94234 z, r := codec1978.GenHelperDecoder(d) 94235 _, _, _ = h, z, r 94236 var yyj8 int 94237 var yyb8 bool 94238 var yyhl8 bool = l >= 0 94239 yyj8++ 94240 if yyhl8 { 94241 yyb8 = yyj8 > l 94242 } else { 94243 yyb8 = r.CheckBreak() 94244 } 94245 if yyb8 { 94246 r.ReadArrayEnd() 94247 return 94248 } 94249 r.ReadArrayElem() 94250 if r.TryDecodeAsNil() { 94251 x.LTarget = "" 94252 } else { 94253 x.LTarget = (string)(r.DecodeString()) 94254 } 94255 yyj8++ 94256 if yyhl8 { 94257 yyb8 = yyj8 > l 94258 } else { 94259 yyb8 = r.CheckBreak() 94260 } 94261 if yyb8 { 94262 r.ReadArrayEnd() 94263 return 94264 } 94265 r.ReadArrayElem() 94266 if r.TryDecodeAsNil() { 94267 x.RTarget = "" 94268 } else { 94269 x.RTarget = (string)(r.DecodeString()) 94270 } 94271 yyj8++ 94272 if yyhl8 { 94273 yyb8 = yyj8 > l 94274 } else { 94275 yyb8 = r.CheckBreak() 94276 } 94277 if yyb8 { 94278 r.ReadArrayEnd() 94279 return 94280 } 94281 r.ReadArrayElem() 94282 if r.TryDecodeAsNil() { 94283 x.Operand = "" 94284 } else { 94285 x.Operand = (string)(r.DecodeString()) 94286 } 94287 yyj8++ 94288 if yyhl8 { 94289 yyb8 = yyj8 > l 94290 } else { 94291 yyb8 = r.CheckBreak() 94292 } 94293 if yyb8 { 94294 r.ReadArrayEnd() 94295 return 94296 } 94297 r.ReadArrayElem() 94298 if r.TryDecodeAsNil() { 94299 x.Weight = 0 94300 } else { 94301 x.Weight = (int8)(z.C.IntV(r.DecodeInt64(), 8)) 94302 } 94303 for { 94304 yyj8++ 94305 if yyhl8 { 94306 yyb8 = yyj8 > l 94307 } else { 94308 yyb8 = r.CheckBreak() 94309 } 94310 if yyb8 { 94311 break 94312 } 94313 r.ReadArrayElem() 94314 z.DecStructFieldNotFound(yyj8-1, "") 94315 } 94316 r.ReadArrayEnd() 94317 } 94318 94319 func (x *Spread) CodecEncodeSelf(e *codec1978.Encoder) { 94320 var h codecSelfer100 94321 z, r := codec1978.GenHelperEncoder(e) 94322 _, _, _ = h, z, r 94323 if x == nil { 94324 r.EncodeNil() 94325 } else { 94326 if false { 94327 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 94328 z.EncExtension(x, yyxt1) 94329 } else { 94330 yysep2 := !z.EncBinary() 94331 yy2arr2 := z.EncBasicHandle().StructToArray 94332 _, _ = yysep2, yy2arr2 94333 const yyr2 bool = false // struct tag has 'toArray' 94334 if yyr2 || yy2arr2 { 94335 r.WriteArrayStart(3) 94336 } else { 94337 r.WriteMapStart(3) 94338 } 94339 if yyr2 || yy2arr2 { 94340 r.WriteArrayElem() 94341 if false { 94342 } else { 94343 if z.EncBasicHandle().StringToRaw { 94344 r.EncodeStringBytesRaw(z.BytesView(string(x.Attribute))) 94345 } else { 94346 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Attribute)) 94347 } 94348 } 94349 } else { 94350 r.WriteMapElemKey() 94351 if z.IsJSONHandle() { 94352 z.WriteStr("\"Attribute\"") 94353 } else { 94354 r.EncodeStringEnc(codecSelferCcUTF8100, `Attribute`) 94355 } 94356 r.WriteMapElemValue() 94357 if false { 94358 } else { 94359 if z.EncBasicHandle().StringToRaw { 94360 r.EncodeStringBytesRaw(z.BytesView(string(x.Attribute))) 94361 } else { 94362 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Attribute)) 94363 } 94364 } 94365 } 94366 if yyr2 || yy2arr2 { 94367 r.WriteArrayElem() 94368 if false { 94369 } else { 94370 r.EncodeInt(int64(x.Weight)) 94371 } 94372 } else { 94373 r.WriteMapElemKey() 94374 if z.IsJSONHandle() { 94375 z.WriteStr("\"Weight\"") 94376 } else { 94377 r.EncodeStringEnc(codecSelferCcUTF8100, `Weight`) 94378 } 94379 r.WriteMapElemValue() 94380 if false { 94381 } else { 94382 r.EncodeInt(int64(x.Weight)) 94383 } 94384 } 94385 if yyr2 || yy2arr2 { 94386 r.WriteArrayElem() 94387 if x.SpreadTarget == nil { 94388 r.EncodeNil() 94389 } else { 94390 if false { 94391 } else { 94392 h.encSlicePtrtoSpreadTarget(([]*SpreadTarget)(x.SpreadTarget), e) 94393 } 94394 } 94395 } else { 94396 r.WriteMapElemKey() 94397 if z.IsJSONHandle() { 94398 z.WriteStr("\"SpreadTarget\"") 94399 } else { 94400 r.EncodeStringEnc(codecSelferCcUTF8100, `SpreadTarget`) 94401 } 94402 r.WriteMapElemValue() 94403 if x.SpreadTarget == nil { 94404 r.EncodeNil() 94405 } else { 94406 if false { 94407 } else { 94408 h.encSlicePtrtoSpreadTarget(([]*SpreadTarget)(x.SpreadTarget), e) 94409 } 94410 } 94411 } 94412 if yyr2 || yy2arr2 { 94413 r.WriteArrayEnd() 94414 } else { 94415 r.WriteMapEnd() 94416 } 94417 } 94418 } 94419 } 94420 94421 func (x *Spread) CodecDecodeSelf(d *codec1978.Decoder) { 94422 var h codecSelfer100 94423 z, r := codec1978.GenHelperDecoder(d) 94424 _, _, _ = h, z, r 94425 if false { 94426 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 94427 z.DecExtension(x, yyxt1) 94428 } else { 94429 yyct2 := r.ContainerType() 94430 if yyct2 == codecSelferValueTypeMap100 { 94431 yyl2 := r.ReadMapStart() 94432 if yyl2 == 0 { 94433 r.ReadMapEnd() 94434 } else { 94435 x.codecDecodeSelfFromMap(yyl2, d) 94436 } 94437 } else if yyct2 == codecSelferValueTypeArray100 { 94438 yyl2 := r.ReadArrayStart() 94439 if yyl2 == 0 { 94440 r.ReadArrayEnd() 94441 } else { 94442 x.codecDecodeSelfFromArray(yyl2, d) 94443 } 94444 } else { 94445 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 94446 } 94447 } 94448 } 94449 94450 func (x *Spread) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 94451 var h codecSelfer100 94452 z, r := codec1978.GenHelperDecoder(d) 94453 _, _, _ = h, z, r 94454 var yyhl3 bool = l >= 0 94455 for yyj3 := 0; ; yyj3++ { 94456 if yyhl3 { 94457 if yyj3 >= l { 94458 break 94459 } 94460 } else { 94461 if r.CheckBreak() { 94462 break 94463 } 94464 } 94465 r.ReadMapElemKey() 94466 yys3 := z.StringView(r.DecodeStringAsBytes()) 94467 r.ReadMapElemValue() 94468 switch yys3 { 94469 case "Attribute": 94470 if r.TryDecodeAsNil() { 94471 x.Attribute = "" 94472 } else { 94473 x.Attribute = (string)(r.DecodeString()) 94474 } 94475 case "Weight": 94476 if r.TryDecodeAsNil() { 94477 x.Weight = 0 94478 } else { 94479 x.Weight = (int8)(z.C.IntV(r.DecodeInt64(), 8)) 94480 } 94481 case "SpreadTarget": 94482 if r.TryDecodeAsNil() { 94483 x.SpreadTarget = nil 94484 } else { 94485 if false { 94486 } else { 94487 h.decSlicePtrtoSpreadTarget((*[]*SpreadTarget)(&x.SpreadTarget), d) 94488 } 94489 } 94490 default: 94491 z.DecStructFieldNotFound(-1, yys3) 94492 } // end switch yys3 94493 } // end for yyj3 94494 r.ReadMapEnd() 94495 } 94496 94497 func (x *Spread) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 94498 var h codecSelfer100 94499 z, r := codec1978.GenHelperDecoder(d) 94500 _, _, _ = h, z, r 94501 var yyj8 int 94502 var yyb8 bool 94503 var yyhl8 bool = l >= 0 94504 yyj8++ 94505 if yyhl8 { 94506 yyb8 = yyj8 > l 94507 } else { 94508 yyb8 = r.CheckBreak() 94509 } 94510 if yyb8 { 94511 r.ReadArrayEnd() 94512 return 94513 } 94514 r.ReadArrayElem() 94515 if r.TryDecodeAsNil() { 94516 x.Attribute = "" 94517 } else { 94518 x.Attribute = (string)(r.DecodeString()) 94519 } 94520 yyj8++ 94521 if yyhl8 { 94522 yyb8 = yyj8 > l 94523 } else { 94524 yyb8 = r.CheckBreak() 94525 } 94526 if yyb8 { 94527 r.ReadArrayEnd() 94528 return 94529 } 94530 r.ReadArrayElem() 94531 if r.TryDecodeAsNil() { 94532 x.Weight = 0 94533 } else { 94534 x.Weight = (int8)(z.C.IntV(r.DecodeInt64(), 8)) 94535 } 94536 yyj8++ 94537 if yyhl8 { 94538 yyb8 = yyj8 > l 94539 } else { 94540 yyb8 = r.CheckBreak() 94541 } 94542 if yyb8 { 94543 r.ReadArrayEnd() 94544 return 94545 } 94546 r.ReadArrayElem() 94547 if r.TryDecodeAsNil() { 94548 x.SpreadTarget = nil 94549 } else { 94550 if false { 94551 } else { 94552 h.decSlicePtrtoSpreadTarget((*[]*SpreadTarget)(&x.SpreadTarget), d) 94553 } 94554 } 94555 for { 94556 yyj8++ 94557 if yyhl8 { 94558 yyb8 = yyj8 > l 94559 } else { 94560 yyb8 = r.CheckBreak() 94561 } 94562 if yyb8 { 94563 break 94564 } 94565 r.ReadArrayElem() 94566 z.DecStructFieldNotFound(yyj8-1, "") 94567 } 94568 r.ReadArrayEnd() 94569 } 94570 94571 func (x Affinities) CodecEncodeSelf(e *codec1978.Encoder) { 94572 var h codecSelfer100 94573 z, r := codec1978.GenHelperEncoder(e) 94574 _, _, _ = h, z, r 94575 if x == nil { 94576 r.EncodeNil() 94577 } else { 94578 if false { 94579 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 94580 z.EncExtension(x, yyxt1) 94581 } else { 94582 h.encAffinities((Affinities)(x), e) 94583 } 94584 } 94585 } 94586 94587 func (x *Affinities) CodecDecodeSelf(d *codec1978.Decoder) { 94588 var h codecSelfer100 94589 z, r := codec1978.GenHelperDecoder(d) 94590 _, _, _ = h, z, r 94591 if false { 94592 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 94593 z.DecExtension(x, yyxt1) 94594 } else { 94595 h.decAffinities((*Affinities)(x), d) 94596 } 94597 } 94598 94599 func (x *SpreadTarget) CodecEncodeSelf(e *codec1978.Encoder) { 94600 var h codecSelfer100 94601 z, r := codec1978.GenHelperEncoder(e) 94602 _, _, _ = h, z, r 94603 if x == nil { 94604 r.EncodeNil() 94605 } else { 94606 if false { 94607 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 94608 z.EncExtension(x, yyxt1) 94609 } else { 94610 yysep2 := !z.EncBinary() 94611 yy2arr2 := z.EncBasicHandle().StructToArray 94612 _, _ = yysep2, yy2arr2 94613 const yyr2 bool = false // struct tag has 'toArray' 94614 if yyr2 || yy2arr2 { 94615 r.WriteArrayStart(2) 94616 } else { 94617 r.WriteMapStart(2) 94618 } 94619 if yyr2 || yy2arr2 { 94620 r.WriteArrayElem() 94621 if false { 94622 } else { 94623 if z.EncBasicHandle().StringToRaw { 94624 r.EncodeStringBytesRaw(z.BytesView(string(x.Value))) 94625 } else { 94626 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Value)) 94627 } 94628 } 94629 } else { 94630 r.WriteMapElemKey() 94631 if z.IsJSONHandle() { 94632 z.WriteStr("\"Value\"") 94633 } else { 94634 r.EncodeStringEnc(codecSelferCcUTF8100, `Value`) 94635 } 94636 r.WriteMapElemValue() 94637 if false { 94638 } else { 94639 if z.EncBasicHandle().StringToRaw { 94640 r.EncodeStringBytesRaw(z.BytesView(string(x.Value))) 94641 } else { 94642 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Value)) 94643 } 94644 } 94645 } 94646 if yyr2 || yy2arr2 { 94647 r.WriteArrayElem() 94648 if false { 94649 } else { 94650 r.EncodeUint(uint64(x.Percent)) 94651 } 94652 } else { 94653 r.WriteMapElemKey() 94654 if z.IsJSONHandle() { 94655 z.WriteStr("\"Percent\"") 94656 } else { 94657 r.EncodeStringEnc(codecSelferCcUTF8100, `Percent`) 94658 } 94659 r.WriteMapElemValue() 94660 if false { 94661 } else { 94662 r.EncodeUint(uint64(x.Percent)) 94663 } 94664 } 94665 if yyr2 || yy2arr2 { 94666 r.WriteArrayEnd() 94667 } else { 94668 r.WriteMapEnd() 94669 } 94670 } 94671 } 94672 } 94673 94674 func (x *SpreadTarget) CodecDecodeSelf(d *codec1978.Decoder) { 94675 var h codecSelfer100 94676 z, r := codec1978.GenHelperDecoder(d) 94677 _, _, _ = h, z, r 94678 if false { 94679 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 94680 z.DecExtension(x, yyxt1) 94681 } else { 94682 yyct2 := r.ContainerType() 94683 if yyct2 == codecSelferValueTypeMap100 { 94684 yyl2 := r.ReadMapStart() 94685 if yyl2 == 0 { 94686 r.ReadMapEnd() 94687 } else { 94688 x.codecDecodeSelfFromMap(yyl2, d) 94689 } 94690 } else if yyct2 == codecSelferValueTypeArray100 { 94691 yyl2 := r.ReadArrayStart() 94692 if yyl2 == 0 { 94693 r.ReadArrayEnd() 94694 } else { 94695 x.codecDecodeSelfFromArray(yyl2, d) 94696 } 94697 } else { 94698 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 94699 } 94700 } 94701 } 94702 94703 func (x *SpreadTarget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 94704 var h codecSelfer100 94705 z, r := codec1978.GenHelperDecoder(d) 94706 _, _, _ = h, z, r 94707 var yyhl3 bool = l >= 0 94708 for yyj3 := 0; ; yyj3++ { 94709 if yyhl3 { 94710 if yyj3 >= l { 94711 break 94712 } 94713 } else { 94714 if r.CheckBreak() { 94715 break 94716 } 94717 } 94718 r.ReadMapElemKey() 94719 yys3 := z.StringView(r.DecodeStringAsBytes()) 94720 r.ReadMapElemValue() 94721 switch yys3 { 94722 case "Value": 94723 if r.TryDecodeAsNil() { 94724 x.Value = "" 94725 } else { 94726 x.Value = (string)(r.DecodeString()) 94727 } 94728 case "Percent": 94729 if r.TryDecodeAsNil() { 94730 x.Percent = 0 94731 } else { 94732 x.Percent = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 94733 } 94734 default: 94735 z.DecStructFieldNotFound(-1, yys3) 94736 } // end switch yys3 94737 } // end for yyj3 94738 r.ReadMapEnd() 94739 } 94740 94741 func (x *SpreadTarget) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 94742 var h codecSelfer100 94743 z, r := codec1978.GenHelperDecoder(d) 94744 _, _, _ = h, z, r 94745 var yyj6 int 94746 var yyb6 bool 94747 var yyhl6 bool = l >= 0 94748 yyj6++ 94749 if yyhl6 { 94750 yyb6 = yyj6 > l 94751 } else { 94752 yyb6 = r.CheckBreak() 94753 } 94754 if yyb6 { 94755 r.ReadArrayEnd() 94756 return 94757 } 94758 r.ReadArrayElem() 94759 if r.TryDecodeAsNil() { 94760 x.Value = "" 94761 } else { 94762 x.Value = (string)(r.DecodeString()) 94763 } 94764 yyj6++ 94765 if yyhl6 { 94766 yyb6 = yyj6 > l 94767 } else { 94768 yyb6 = r.CheckBreak() 94769 } 94770 if yyb6 { 94771 r.ReadArrayEnd() 94772 return 94773 } 94774 r.ReadArrayElem() 94775 if r.TryDecodeAsNil() { 94776 x.Percent = 0 94777 } else { 94778 x.Percent = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 94779 } 94780 for { 94781 yyj6++ 94782 if yyhl6 { 94783 yyb6 = yyj6 > l 94784 } else { 94785 yyb6 = r.CheckBreak() 94786 } 94787 if yyb6 { 94788 break 94789 } 94790 r.ReadArrayElem() 94791 z.DecStructFieldNotFound(yyj6-1, "") 94792 } 94793 r.ReadArrayEnd() 94794 } 94795 94796 func (x *EphemeralDisk) CodecEncodeSelf(e *codec1978.Encoder) { 94797 var h codecSelfer100 94798 z, r := codec1978.GenHelperEncoder(e) 94799 _, _, _ = h, z, r 94800 if x == nil { 94801 r.EncodeNil() 94802 } else { 94803 if false { 94804 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 94805 z.EncExtension(x, yyxt1) 94806 } else { 94807 yysep2 := !z.EncBinary() 94808 yy2arr2 := z.EncBasicHandle().StructToArray 94809 _, _ = yysep2, yy2arr2 94810 const yyr2 bool = false // struct tag has 'toArray' 94811 if yyr2 || yy2arr2 { 94812 r.WriteArrayStart(3) 94813 } else { 94814 r.WriteMapStart(3) 94815 } 94816 if yyr2 || yy2arr2 { 94817 r.WriteArrayElem() 94818 if false { 94819 } else { 94820 r.EncodeBool(bool(x.Sticky)) 94821 } 94822 } else { 94823 r.WriteMapElemKey() 94824 if z.IsJSONHandle() { 94825 z.WriteStr("\"Sticky\"") 94826 } else { 94827 r.EncodeStringEnc(codecSelferCcUTF8100, `Sticky`) 94828 } 94829 r.WriteMapElemValue() 94830 if false { 94831 } else { 94832 r.EncodeBool(bool(x.Sticky)) 94833 } 94834 } 94835 if yyr2 || yy2arr2 { 94836 r.WriteArrayElem() 94837 if false { 94838 } else { 94839 r.EncodeInt(int64(x.SizeMB)) 94840 } 94841 } else { 94842 r.WriteMapElemKey() 94843 if z.IsJSONHandle() { 94844 z.WriteStr("\"SizeMB\"") 94845 } else { 94846 r.EncodeStringEnc(codecSelferCcUTF8100, `SizeMB`) 94847 } 94848 r.WriteMapElemValue() 94849 if false { 94850 } else { 94851 r.EncodeInt(int64(x.SizeMB)) 94852 } 94853 } 94854 if yyr2 || yy2arr2 { 94855 r.WriteArrayElem() 94856 if false { 94857 } else { 94858 r.EncodeBool(bool(x.Migrate)) 94859 } 94860 } else { 94861 r.WriteMapElemKey() 94862 if z.IsJSONHandle() { 94863 z.WriteStr("\"Migrate\"") 94864 } else { 94865 r.EncodeStringEnc(codecSelferCcUTF8100, `Migrate`) 94866 } 94867 r.WriteMapElemValue() 94868 if false { 94869 } else { 94870 r.EncodeBool(bool(x.Migrate)) 94871 } 94872 } 94873 if yyr2 || yy2arr2 { 94874 r.WriteArrayEnd() 94875 } else { 94876 r.WriteMapEnd() 94877 } 94878 } 94879 } 94880 } 94881 94882 func (x *EphemeralDisk) CodecDecodeSelf(d *codec1978.Decoder) { 94883 var h codecSelfer100 94884 z, r := codec1978.GenHelperDecoder(d) 94885 _, _, _ = h, z, r 94886 if false { 94887 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 94888 z.DecExtension(x, yyxt1) 94889 } else { 94890 yyct2 := r.ContainerType() 94891 if yyct2 == codecSelferValueTypeMap100 { 94892 yyl2 := r.ReadMapStart() 94893 if yyl2 == 0 { 94894 r.ReadMapEnd() 94895 } else { 94896 x.codecDecodeSelfFromMap(yyl2, d) 94897 } 94898 } else if yyct2 == codecSelferValueTypeArray100 { 94899 yyl2 := r.ReadArrayStart() 94900 if yyl2 == 0 { 94901 r.ReadArrayEnd() 94902 } else { 94903 x.codecDecodeSelfFromArray(yyl2, d) 94904 } 94905 } else { 94906 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 94907 } 94908 } 94909 } 94910 94911 func (x *EphemeralDisk) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 94912 var h codecSelfer100 94913 z, r := codec1978.GenHelperDecoder(d) 94914 _, _, _ = h, z, r 94915 var yyhl3 bool = l >= 0 94916 for yyj3 := 0; ; yyj3++ { 94917 if yyhl3 { 94918 if yyj3 >= l { 94919 break 94920 } 94921 } else { 94922 if r.CheckBreak() { 94923 break 94924 } 94925 } 94926 r.ReadMapElemKey() 94927 yys3 := z.StringView(r.DecodeStringAsBytes()) 94928 r.ReadMapElemValue() 94929 switch yys3 { 94930 case "Sticky": 94931 if r.TryDecodeAsNil() { 94932 x.Sticky = false 94933 } else { 94934 x.Sticky = (bool)(r.DecodeBool()) 94935 } 94936 case "SizeMB": 94937 if r.TryDecodeAsNil() { 94938 x.SizeMB = 0 94939 } else { 94940 x.SizeMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 94941 } 94942 case "Migrate": 94943 if r.TryDecodeAsNil() { 94944 x.Migrate = false 94945 } else { 94946 x.Migrate = (bool)(r.DecodeBool()) 94947 } 94948 default: 94949 z.DecStructFieldNotFound(-1, yys3) 94950 } // end switch yys3 94951 } // end for yyj3 94952 r.ReadMapEnd() 94953 } 94954 94955 func (x *EphemeralDisk) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 94956 var h codecSelfer100 94957 z, r := codec1978.GenHelperDecoder(d) 94958 _, _, _ = h, z, r 94959 var yyj7 int 94960 var yyb7 bool 94961 var yyhl7 bool = l >= 0 94962 yyj7++ 94963 if yyhl7 { 94964 yyb7 = yyj7 > l 94965 } else { 94966 yyb7 = r.CheckBreak() 94967 } 94968 if yyb7 { 94969 r.ReadArrayEnd() 94970 return 94971 } 94972 r.ReadArrayElem() 94973 if r.TryDecodeAsNil() { 94974 x.Sticky = false 94975 } else { 94976 x.Sticky = (bool)(r.DecodeBool()) 94977 } 94978 yyj7++ 94979 if yyhl7 { 94980 yyb7 = yyj7 > l 94981 } else { 94982 yyb7 = r.CheckBreak() 94983 } 94984 if yyb7 { 94985 r.ReadArrayEnd() 94986 return 94987 } 94988 r.ReadArrayElem() 94989 if r.TryDecodeAsNil() { 94990 x.SizeMB = 0 94991 } else { 94992 x.SizeMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 94993 } 94994 yyj7++ 94995 if yyhl7 { 94996 yyb7 = yyj7 > l 94997 } else { 94998 yyb7 = r.CheckBreak() 94999 } 95000 if yyb7 { 95001 r.ReadArrayEnd() 95002 return 95003 } 95004 r.ReadArrayElem() 95005 if r.TryDecodeAsNil() { 95006 x.Migrate = false 95007 } else { 95008 x.Migrate = (bool)(r.DecodeBool()) 95009 } 95010 for { 95011 yyj7++ 95012 if yyhl7 { 95013 yyb7 = yyj7 > l 95014 } else { 95015 yyb7 = r.CheckBreak() 95016 } 95017 if yyb7 { 95018 break 95019 } 95020 r.ReadArrayElem() 95021 z.DecStructFieldNotFound(yyj7-1, "") 95022 } 95023 r.ReadArrayEnd() 95024 } 95025 95026 func (x *Vault) CodecEncodeSelf(e *codec1978.Encoder) { 95027 var h codecSelfer100 95028 z, r := codec1978.GenHelperEncoder(e) 95029 _, _, _ = h, z, r 95030 if x == nil { 95031 r.EncodeNil() 95032 } else { 95033 if false { 95034 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 95035 z.EncExtension(x, yyxt1) 95036 } else { 95037 yysep2 := !z.EncBinary() 95038 yy2arr2 := z.EncBasicHandle().StructToArray 95039 _, _ = yysep2, yy2arr2 95040 const yyr2 bool = false // struct tag has 'toArray' 95041 if yyr2 || yy2arr2 { 95042 r.WriteArrayStart(4) 95043 } else { 95044 r.WriteMapStart(4) 95045 } 95046 if yyr2 || yy2arr2 { 95047 r.WriteArrayElem() 95048 if x.Policies == nil { 95049 r.EncodeNil() 95050 } else { 95051 if false { 95052 } else { 95053 z.F.EncSliceStringV(x.Policies, e) 95054 } 95055 } 95056 } else { 95057 r.WriteMapElemKey() 95058 if z.IsJSONHandle() { 95059 z.WriteStr("\"Policies\"") 95060 } else { 95061 r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) 95062 } 95063 r.WriteMapElemValue() 95064 if x.Policies == nil { 95065 r.EncodeNil() 95066 } else { 95067 if false { 95068 } else { 95069 z.F.EncSliceStringV(x.Policies, e) 95070 } 95071 } 95072 } 95073 if yyr2 || yy2arr2 { 95074 r.WriteArrayElem() 95075 if false { 95076 } else { 95077 r.EncodeBool(bool(x.Env)) 95078 } 95079 } else { 95080 r.WriteMapElemKey() 95081 if z.IsJSONHandle() { 95082 z.WriteStr("\"Env\"") 95083 } else { 95084 r.EncodeStringEnc(codecSelferCcUTF8100, `Env`) 95085 } 95086 r.WriteMapElemValue() 95087 if false { 95088 } else { 95089 r.EncodeBool(bool(x.Env)) 95090 } 95091 } 95092 if yyr2 || yy2arr2 { 95093 r.WriteArrayElem() 95094 if false { 95095 } else { 95096 if z.EncBasicHandle().StringToRaw { 95097 r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeMode))) 95098 } else { 95099 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeMode)) 95100 } 95101 } 95102 } else { 95103 r.WriteMapElemKey() 95104 if z.IsJSONHandle() { 95105 z.WriteStr("\"ChangeMode\"") 95106 } else { 95107 r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeMode`) 95108 } 95109 r.WriteMapElemValue() 95110 if false { 95111 } else { 95112 if z.EncBasicHandle().StringToRaw { 95113 r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeMode))) 95114 } else { 95115 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeMode)) 95116 } 95117 } 95118 } 95119 if yyr2 || yy2arr2 { 95120 r.WriteArrayElem() 95121 if false { 95122 } else { 95123 if z.EncBasicHandle().StringToRaw { 95124 r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeSignal))) 95125 } else { 95126 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeSignal)) 95127 } 95128 } 95129 } else { 95130 r.WriteMapElemKey() 95131 if z.IsJSONHandle() { 95132 z.WriteStr("\"ChangeSignal\"") 95133 } else { 95134 r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeSignal`) 95135 } 95136 r.WriteMapElemValue() 95137 if false { 95138 } else { 95139 if z.EncBasicHandle().StringToRaw { 95140 r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeSignal))) 95141 } else { 95142 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeSignal)) 95143 } 95144 } 95145 } 95146 if yyr2 || yy2arr2 { 95147 r.WriteArrayEnd() 95148 } else { 95149 r.WriteMapEnd() 95150 } 95151 } 95152 } 95153 } 95154 95155 func (x *Vault) CodecDecodeSelf(d *codec1978.Decoder) { 95156 var h codecSelfer100 95157 z, r := codec1978.GenHelperDecoder(d) 95158 _, _, _ = h, z, r 95159 if false { 95160 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 95161 z.DecExtension(x, yyxt1) 95162 } else { 95163 yyct2 := r.ContainerType() 95164 if yyct2 == codecSelferValueTypeMap100 { 95165 yyl2 := r.ReadMapStart() 95166 if yyl2 == 0 { 95167 r.ReadMapEnd() 95168 } else { 95169 x.codecDecodeSelfFromMap(yyl2, d) 95170 } 95171 } else if yyct2 == codecSelferValueTypeArray100 { 95172 yyl2 := r.ReadArrayStart() 95173 if yyl2 == 0 { 95174 r.ReadArrayEnd() 95175 } else { 95176 x.codecDecodeSelfFromArray(yyl2, d) 95177 } 95178 } else { 95179 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 95180 } 95181 } 95182 } 95183 95184 func (x *Vault) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 95185 var h codecSelfer100 95186 z, r := codec1978.GenHelperDecoder(d) 95187 _, _, _ = h, z, r 95188 var yyhl3 bool = l >= 0 95189 for yyj3 := 0; ; yyj3++ { 95190 if yyhl3 { 95191 if yyj3 >= l { 95192 break 95193 } 95194 } else { 95195 if r.CheckBreak() { 95196 break 95197 } 95198 } 95199 r.ReadMapElemKey() 95200 yys3 := z.StringView(r.DecodeStringAsBytes()) 95201 r.ReadMapElemValue() 95202 switch yys3 { 95203 case "Policies": 95204 if r.TryDecodeAsNil() { 95205 x.Policies = nil 95206 } else { 95207 if false { 95208 } else { 95209 z.F.DecSliceStringX(&x.Policies, d) 95210 } 95211 } 95212 case "Env": 95213 if r.TryDecodeAsNil() { 95214 x.Env = false 95215 } else { 95216 x.Env = (bool)(r.DecodeBool()) 95217 } 95218 case "ChangeMode": 95219 if r.TryDecodeAsNil() { 95220 x.ChangeMode = "" 95221 } else { 95222 x.ChangeMode = (string)(r.DecodeString()) 95223 } 95224 case "ChangeSignal": 95225 if r.TryDecodeAsNil() { 95226 x.ChangeSignal = "" 95227 } else { 95228 x.ChangeSignal = (string)(r.DecodeString()) 95229 } 95230 default: 95231 z.DecStructFieldNotFound(-1, yys3) 95232 } // end switch yys3 95233 } // end for yyj3 95234 r.ReadMapEnd() 95235 } 95236 95237 func (x *Vault) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 95238 var h codecSelfer100 95239 z, r := codec1978.GenHelperDecoder(d) 95240 _, _, _ = h, z, r 95241 var yyj9 int 95242 var yyb9 bool 95243 var yyhl9 bool = l >= 0 95244 yyj9++ 95245 if yyhl9 { 95246 yyb9 = yyj9 > l 95247 } else { 95248 yyb9 = r.CheckBreak() 95249 } 95250 if yyb9 { 95251 r.ReadArrayEnd() 95252 return 95253 } 95254 r.ReadArrayElem() 95255 if r.TryDecodeAsNil() { 95256 x.Policies = nil 95257 } else { 95258 if false { 95259 } else { 95260 z.F.DecSliceStringX(&x.Policies, d) 95261 } 95262 } 95263 yyj9++ 95264 if yyhl9 { 95265 yyb9 = yyj9 > l 95266 } else { 95267 yyb9 = r.CheckBreak() 95268 } 95269 if yyb9 { 95270 r.ReadArrayEnd() 95271 return 95272 } 95273 r.ReadArrayElem() 95274 if r.TryDecodeAsNil() { 95275 x.Env = false 95276 } else { 95277 x.Env = (bool)(r.DecodeBool()) 95278 } 95279 yyj9++ 95280 if yyhl9 { 95281 yyb9 = yyj9 > l 95282 } else { 95283 yyb9 = r.CheckBreak() 95284 } 95285 if yyb9 { 95286 r.ReadArrayEnd() 95287 return 95288 } 95289 r.ReadArrayElem() 95290 if r.TryDecodeAsNil() { 95291 x.ChangeMode = "" 95292 } else { 95293 x.ChangeMode = (string)(r.DecodeString()) 95294 } 95295 yyj9++ 95296 if yyhl9 { 95297 yyb9 = yyj9 > l 95298 } else { 95299 yyb9 = r.CheckBreak() 95300 } 95301 if yyb9 { 95302 r.ReadArrayEnd() 95303 return 95304 } 95305 r.ReadArrayElem() 95306 if r.TryDecodeAsNil() { 95307 x.ChangeSignal = "" 95308 } else { 95309 x.ChangeSignal = (string)(r.DecodeString()) 95310 } 95311 for { 95312 yyj9++ 95313 if yyhl9 { 95314 yyb9 = yyj9 > l 95315 } else { 95316 yyb9 = r.CheckBreak() 95317 } 95318 if yyb9 { 95319 break 95320 } 95321 r.ReadArrayElem() 95322 z.DecStructFieldNotFound(yyj9-1, "") 95323 } 95324 r.ReadArrayEnd() 95325 } 95326 95327 func (x *Deployment) CodecEncodeSelf(e *codec1978.Encoder) { 95328 var h codecSelfer100 95329 z, r := codec1978.GenHelperEncoder(e) 95330 _, _, _ = h, z, r 95331 if x == nil { 95332 r.EncodeNil() 95333 } else { 95334 if false { 95335 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 95336 z.EncExtension(x, yyxt1) 95337 } else { 95338 yysep2 := !z.EncBinary() 95339 yy2arr2 := z.EncBasicHandle().StructToArray 95340 _, _ = yysep2, yy2arr2 95341 const yyr2 bool = false // struct tag has 'toArray' 95342 if yyr2 || yy2arr2 { 95343 r.WriteArrayStart(12) 95344 } else { 95345 r.WriteMapStart(12) 95346 } 95347 if yyr2 || yy2arr2 { 95348 r.WriteArrayElem() 95349 if false { 95350 } else { 95351 if z.EncBasicHandle().StringToRaw { 95352 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 95353 } else { 95354 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 95355 } 95356 } 95357 } else { 95358 r.WriteMapElemKey() 95359 if z.IsJSONHandle() { 95360 z.WriteStr("\"ID\"") 95361 } else { 95362 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 95363 } 95364 r.WriteMapElemValue() 95365 if false { 95366 } else { 95367 if z.EncBasicHandle().StringToRaw { 95368 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 95369 } else { 95370 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 95371 } 95372 } 95373 } 95374 if yyr2 || yy2arr2 { 95375 r.WriteArrayElem() 95376 if false { 95377 } else { 95378 if z.EncBasicHandle().StringToRaw { 95379 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 95380 } else { 95381 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 95382 } 95383 } 95384 } else { 95385 r.WriteMapElemKey() 95386 if z.IsJSONHandle() { 95387 z.WriteStr("\"Namespace\"") 95388 } else { 95389 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 95390 } 95391 r.WriteMapElemValue() 95392 if false { 95393 } else { 95394 if z.EncBasicHandle().StringToRaw { 95395 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 95396 } else { 95397 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 95398 } 95399 } 95400 } 95401 if yyr2 || yy2arr2 { 95402 r.WriteArrayElem() 95403 if false { 95404 } else { 95405 if z.EncBasicHandle().StringToRaw { 95406 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 95407 } else { 95408 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 95409 } 95410 } 95411 } else { 95412 r.WriteMapElemKey() 95413 if z.IsJSONHandle() { 95414 z.WriteStr("\"JobID\"") 95415 } else { 95416 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 95417 } 95418 r.WriteMapElemValue() 95419 if false { 95420 } else { 95421 if z.EncBasicHandle().StringToRaw { 95422 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 95423 } else { 95424 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 95425 } 95426 } 95427 } 95428 if yyr2 || yy2arr2 { 95429 r.WriteArrayElem() 95430 if false { 95431 } else { 95432 r.EncodeUint(uint64(x.JobVersion)) 95433 } 95434 } else { 95435 r.WriteMapElemKey() 95436 if z.IsJSONHandle() { 95437 z.WriteStr("\"JobVersion\"") 95438 } else { 95439 r.EncodeStringEnc(codecSelferCcUTF8100, `JobVersion`) 95440 } 95441 r.WriteMapElemValue() 95442 if false { 95443 } else { 95444 r.EncodeUint(uint64(x.JobVersion)) 95445 } 95446 } 95447 if yyr2 || yy2arr2 { 95448 r.WriteArrayElem() 95449 if false { 95450 } else { 95451 r.EncodeUint(uint64(x.JobModifyIndex)) 95452 } 95453 } else { 95454 r.WriteMapElemKey() 95455 if z.IsJSONHandle() { 95456 z.WriteStr("\"JobModifyIndex\"") 95457 } else { 95458 r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) 95459 } 95460 r.WriteMapElemValue() 95461 if false { 95462 } else { 95463 r.EncodeUint(uint64(x.JobModifyIndex)) 95464 } 95465 } 95466 if yyr2 || yy2arr2 { 95467 r.WriteArrayElem() 95468 if false { 95469 } else { 95470 r.EncodeUint(uint64(x.JobSpecModifyIndex)) 95471 } 95472 } else { 95473 r.WriteMapElemKey() 95474 if z.IsJSONHandle() { 95475 z.WriteStr("\"JobSpecModifyIndex\"") 95476 } else { 95477 r.EncodeStringEnc(codecSelferCcUTF8100, `JobSpecModifyIndex`) 95478 } 95479 r.WriteMapElemValue() 95480 if false { 95481 } else { 95482 r.EncodeUint(uint64(x.JobSpecModifyIndex)) 95483 } 95484 } 95485 if yyr2 || yy2arr2 { 95486 r.WriteArrayElem() 95487 if false { 95488 } else { 95489 r.EncodeUint(uint64(x.JobCreateIndex)) 95490 } 95491 } else { 95492 r.WriteMapElemKey() 95493 if z.IsJSONHandle() { 95494 z.WriteStr("\"JobCreateIndex\"") 95495 } else { 95496 r.EncodeStringEnc(codecSelferCcUTF8100, `JobCreateIndex`) 95497 } 95498 r.WriteMapElemValue() 95499 if false { 95500 } else { 95501 r.EncodeUint(uint64(x.JobCreateIndex)) 95502 } 95503 } 95504 if yyr2 || yy2arr2 { 95505 r.WriteArrayElem() 95506 if x.TaskGroups == nil { 95507 r.EncodeNil() 95508 } else { 95509 if false { 95510 } else { 95511 h.encMapstringPtrtoDeploymentState((map[string]*DeploymentState)(x.TaskGroups), e) 95512 } 95513 } 95514 } else { 95515 r.WriteMapElemKey() 95516 if z.IsJSONHandle() { 95517 z.WriteStr("\"TaskGroups\"") 95518 } else { 95519 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroups`) 95520 } 95521 r.WriteMapElemValue() 95522 if x.TaskGroups == nil { 95523 r.EncodeNil() 95524 } else { 95525 if false { 95526 } else { 95527 h.encMapstringPtrtoDeploymentState((map[string]*DeploymentState)(x.TaskGroups), e) 95528 } 95529 } 95530 } 95531 if yyr2 || yy2arr2 { 95532 r.WriteArrayElem() 95533 if false { 95534 } else { 95535 if z.EncBasicHandle().StringToRaw { 95536 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 95537 } else { 95538 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 95539 } 95540 } 95541 } else { 95542 r.WriteMapElemKey() 95543 if z.IsJSONHandle() { 95544 z.WriteStr("\"Status\"") 95545 } else { 95546 r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) 95547 } 95548 r.WriteMapElemValue() 95549 if false { 95550 } else { 95551 if z.EncBasicHandle().StringToRaw { 95552 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 95553 } else { 95554 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 95555 } 95556 } 95557 } 95558 if yyr2 || yy2arr2 { 95559 r.WriteArrayElem() 95560 if false { 95561 } else { 95562 if z.EncBasicHandle().StringToRaw { 95563 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 95564 } else { 95565 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 95566 } 95567 } 95568 } else { 95569 r.WriteMapElemKey() 95570 if z.IsJSONHandle() { 95571 z.WriteStr("\"StatusDescription\"") 95572 } else { 95573 r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) 95574 } 95575 r.WriteMapElemValue() 95576 if false { 95577 } else { 95578 if z.EncBasicHandle().StringToRaw { 95579 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 95580 } else { 95581 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 95582 } 95583 } 95584 } 95585 if yyr2 || yy2arr2 { 95586 r.WriteArrayElem() 95587 if false { 95588 } else { 95589 r.EncodeUint(uint64(x.CreateIndex)) 95590 } 95591 } else { 95592 r.WriteMapElemKey() 95593 if z.IsJSONHandle() { 95594 z.WriteStr("\"CreateIndex\"") 95595 } else { 95596 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 95597 } 95598 r.WriteMapElemValue() 95599 if false { 95600 } else { 95601 r.EncodeUint(uint64(x.CreateIndex)) 95602 } 95603 } 95604 if yyr2 || yy2arr2 { 95605 r.WriteArrayElem() 95606 if false { 95607 } else { 95608 r.EncodeUint(uint64(x.ModifyIndex)) 95609 } 95610 } else { 95611 r.WriteMapElemKey() 95612 if z.IsJSONHandle() { 95613 z.WriteStr("\"ModifyIndex\"") 95614 } else { 95615 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 95616 } 95617 r.WriteMapElemValue() 95618 if false { 95619 } else { 95620 r.EncodeUint(uint64(x.ModifyIndex)) 95621 } 95622 } 95623 if yyr2 || yy2arr2 { 95624 r.WriteArrayEnd() 95625 } else { 95626 r.WriteMapEnd() 95627 } 95628 } 95629 } 95630 } 95631 95632 func (x *Deployment) CodecDecodeSelf(d *codec1978.Decoder) { 95633 var h codecSelfer100 95634 z, r := codec1978.GenHelperDecoder(d) 95635 _, _, _ = h, z, r 95636 if false { 95637 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 95638 z.DecExtension(x, yyxt1) 95639 } else { 95640 yyct2 := r.ContainerType() 95641 if yyct2 == codecSelferValueTypeMap100 { 95642 yyl2 := r.ReadMapStart() 95643 if yyl2 == 0 { 95644 r.ReadMapEnd() 95645 } else { 95646 x.codecDecodeSelfFromMap(yyl2, d) 95647 } 95648 } else if yyct2 == codecSelferValueTypeArray100 { 95649 yyl2 := r.ReadArrayStart() 95650 if yyl2 == 0 { 95651 r.ReadArrayEnd() 95652 } else { 95653 x.codecDecodeSelfFromArray(yyl2, d) 95654 } 95655 } else { 95656 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 95657 } 95658 } 95659 } 95660 95661 func (x *Deployment) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 95662 var h codecSelfer100 95663 z, r := codec1978.GenHelperDecoder(d) 95664 _, _, _ = h, z, r 95665 var yyhl3 bool = l >= 0 95666 for yyj3 := 0; ; yyj3++ { 95667 if yyhl3 { 95668 if yyj3 >= l { 95669 break 95670 } 95671 } else { 95672 if r.CheckBreak() { 95673 break 95674 } 95675 } 95676 r.ReadMapElemKey() 95677 yys3 := z.StringView(r.DecodeStringAsBytes()) 95678 r.ReadMapElemValue() 95679 switch yys3 { 95680 case "ID": 95681 if r.TryDecodeAsNil() { 95682 x.ID = "" 95683 } else { 95684 x.ID = (string)(r.DecodeString()) 95685 } 95686 case "Namespace": 95687 if r.TryDecodeAsNil() { 95688 x.Namespace = "" 95689 } else { 95690 x.Namespace = (string)(r.DecodeString()) 95691 } 95692 case "JobID": 95693 if r.TryDecodeAsNil() { 95694 x.JobID = "" 95695 } else { 95696 x.JobID = (string)(r.DecodeString()) 95697 } 95698 case "JobVersion": 95699 if r.TryDecodeAsNil() { 95700 x.JobVersion = 0 95701 } else { 95702 x.JobVersion = (uint64)(r.DecodeUint64()) 95703 } 95704 case "JobModifyIndex": 95705 if r.TryDecodeAsNil() { 95706 x.JobModifyIndex = 0 95707 } else { 95708 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 95709 } 95710 case "JobSpecModifyIndex": 95711 if r.TryDecodeAsNil() { 95712 x.JobSpecModifyIndex = 0 95713 } else { 95714 x.JobSpecModifyIndex = (uint64)(r.DecodeUint64()) 95715 } 95716 case "JobCreateIndex": 95717 if r.TryDecodeAsNil() { 95718 x.JobCreateIndex = 0 95719 } else { 95720 x.JobCreateIndex = (uint64)(r.DecodeUint64()) 95721 } 95722 case "TaskGroups": 95723 if r.TryDecodeAsNil() { 95724 x.TaskGroups = nil 95725 } else { 95726 if false { 95727 } else { 95728 h.decMapstringPtrtoDeploymentState((*map[string]*DeploymentState)(&x.TaskGroups), d) 95729 } 95730 } 95731 case "Status": 95732 if r.TryDecodeAsNil() { 95733 x.Status = "" 95734 } else { 95735 x.Status = (string)(r.DecodeString()) 95736 } 95737 case "StatusDescription": 95738 if r.TryDecodeAsNil() { 95739 x.StatusDescription = "" 95740 } else { 95741 x.StatusDescription = (string)(r.DecodeString()) 95742 } 95743 case "CreateIndex": 95744 if r.TryDecodeAsNil() { 95745 x.CreateIndex = 0 95746 } else { 95747 x.CreateIndex = (uint64)(r.DecodeUint64()) 95748 } 95749 case "ModifyIndex": 95750 if r.TryDecodeAsNil() { 95751 x.ModifyIndex = 0 95752 } else { 95753 x.ModifyIndex = (uint64)(r.DecodeUint64()) 95754 } 95755 default: 95756 z.DecStructFieldNotFound(-1, yys3) 95757 } // end switch yys3 95758 } // end for yyj3 95759 r.ReadMapEnd() 95760 } 95761 95762 func (x *Deployment) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 95763 var h codecSelfer100 95764 z, r := codec1978.GenHelperDecoder(d) 95765 _, _, _ = h, z, r 95766 var yyj17 int 95767 var yyb17 bool 95768 var yyhl17 bool = l >= 0 95769 yyj17++ 95770 if yyhl17 { 95771 yyb17 = yyj17 > l 95772 } else { 95773 yyb17 = r.CheckBreak() 95774 } 95775 if yyb17 { 95776 r.ReadArrayEnd() 95777 return 95778 } 95779 r.ReadArrayElem() 95780 if r.TryDecodeAsNil() { 95781 x.ID = "" 95782 } else { 95783 x.ID = (string)(r.DecodeString()) 95784 } 95785 yyj17++ 95786 if yyhl17 { 95787 yyb17 = yyj17 > l 95788 } else { 95789 yyb17 = r.CheckBreak() 95790 } 95791 if yyb17 { 95792 r.ReadArrayEnd() 95793 return 95794 } 95795 r.ReadArrayElem() 95796 if r.TryDecodeAsNil() { 95797 x.Namespace = "" 95798 } else { 95799 x.Namespace = (string)(r.DecodeString()) 95800 } 95801 yyj17++ 95802 if yyhl17 { 95803 yyb17 = yyj17 > l 95804 } else { 95805 yyb17 = r.CheckBreak() 95806 } 95807 if yyb17 { 95808 r.ReadArrayEnd() 95809 return 95810 } 95811 r.ReadArrayElem() 95812 if r.TryDecodeAsNil() { 95813 x.JobID = "" 95814 } else { 95815 x.JobID = (string)(r.DecodeString()) 95816 } 95817 yyj17++ 95818 if yyhl17 { 95819 yyb17 = yyj17 > l 95820 } else { 95821 yyb17 = r.CheckBreak() 95822 } 95823 if yyb17 { 95824 r.ReadArrayEnd() 95825 return 95826 } 95827 r.ReadArrayElem() 95828 if r.TryDecodeAsNil() { 95829 x.JobVersion = 0 95830 } else { 95831 x.JobVersion = (uint64)(r.DecodeUint64()) 95832 } 95833 yyj17++ 95834 if yyhl17 { 95835 yyb17 = yyj17 > l 95836 } else { 95837 yyb17 = r.CheckBreak() 95838 } 95839 if yyb17 { 95840 r.ReadArrayEnd() 95841 return 95842 } 95843 r.ReadArrayElem() 95844 if r.TryDecodeAsNil() { 95845 x.JobModifyIndex = 0 95846 } else { 95847 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 95848 } 95849 yyj17++ 95850 if yyhl17 { 95851 yyb17 = yyj17 > l 95852 } else { 95853 yyb17 = r.CheckBreak() 95854 } 95855 if yyb17 { 95856 r.ReadArrayEnd() 95857 return 95858 } 95859 r.ReadArrayElem() 95860 if r.TryDecodeAsNil() { 95861 x.JobSpecModifyIndex = 0 95862 } else { 95863 x.JobSpecModifyIndex = (uint64)(r.DecodeUint64()) 95864 } 95865 yyj17++ 95866 if yyhl17 { 95867 yyb17 = yyj17 > l 95868 } else { 95869 yyb17 = r.CheckBreak() 95870 } 95871 if yyb17 { 95872 r.ReadArrayEnd() 95873 return 95874 } 95875 r.ReadArrayElem() 95876 if r.TryDecodeAsNil() { 95877 x.JobCreateIndex = 0 95878 } else { 95879 x.JobCreateIndex = (uint64)(r.DecodeUint64()) 95880 } 95881 yyj17++ 95882 if yyhl17 { 95883 yyb17 = yyj17 > l 95884 } else { 95885 yyb17 = r.CheckBreak() 95886 } 95887 if yyb17 { 95888 r.ReadArrayEnd() 95889 return 95890 } 95891 r.ReadArrayElem() 95892 if r.TryDecodeAsNil() { 95893 x.TaskGroups = nil 95894 } else { 95895 if false { 95896 } else { 95897 h.decMapstringPtrtoDeploymentState((*map[string]*DeploymentState)(&x.TaskGroups), d) 95898 } 95899 } 95900 yyj17++ 95901 if yyhl17 { 95902 yyb17 = yyj17 > l 95903 } else { 95904 yyb17 = r.CheckBreak() 95905 } 95906 if yyb17 { 95907 r.ReadArrayEnd() 95908 return 95909 } 95910 r.ReadArrayElem() 95911 if r.TryDecodeAsNil() { 95912 x.Status = "" 95913 } else { 95914 x.Status = (string)(r.DecodeString()) 95915 } 95916 yyj17++ 95917 if yyhl17 { 95918 yyb17 = yyj17 > l 95919 } else { 95920 yyb17 = r.CheckBreak() 95921 } 95922 if yyb17 { 95923 r.ReadArrayEnd() 95924 return 95925 } 95926 r.ReadArrayElem() 95927 if r.TryDecodeAsNil() { 95928 x.StatusDescription = "" 95929 } else { 95930 x.StatusDescription = (string)(r.DecodeString()) 95931 } 95932 yyj17++ 95933 if yyhl17 { 95934 yyb17 = yyj17 > l 95935 } else { 95936 yyb17 = r.CheckBreak() 95937 } 95938 if yyb17 { 95939 r.ReadArrayEnd() 95940 return 95941 } 95942 r.ReadArrayElem() 95943 if r.TryDecodeAsNil() { 95944 x.CreateIndex = 0 95945 } else { 95946 x.CreateIndex = (uint64)(r.DecodeUint64()) 95947 } 95948 yyj17++ 95949 if yyhl17 { 95950 yyb17 = yyj17 > l 95951 } else { 95952 yyb17 = r.CheckBreak() 95953 } 95954 if yyb17 { 95955 r.ReadArrayEnd() 95956 return 95957 } 95958 r.ReadArrayElem() 95959 if r.TryDecodeAsNil() { 95960 x.ModifyIndex = 0 95961 } else { 95962 x.ModifyIndex = (uint64)(r.DecodeUint64()) 95963 } 95964 for { 95965 yyj17++ 95966 if yyhl17 { 95967 yyb17 = yyj17 > l 95968 } else { 95969 yyb17 = r.CheckBreak() 95970 } 95971 if yyb17 { 95972 break 95973 } 95974 r.ReadArrayElem() 95975 z.DecStructFieldNotFound(yyj17-1, "") 95976 } 95977 r.ReadArrayEnd() 95978 } 95979 95980 func (x *DeploymentState) CodecEncodeSelf(e *codec1978.Encoder) { 95981 var h codecSelfer100 95982 z, r := codec1978.GenHelperEncoder(e) 95983 _, _, _ = h, z, r 95984 if x == nil { 95985 r.EncodeNil() 95986 } else { 95987 if false { 95988 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 95989 z.EncExtension(x, yyxt1) 95990 } else { 95991 yysep2 := !z.EncBinary() 95992 yy2arr2 := z.EncBasicHandle().StructToArray 95993 _, _ = yysep2, yy2arr2 95994 const yyr2 bool = false // struct tag has 'toArray' 95995 if yyr2 || yy2arr2 { 95996 r.WriteArrayStart(11) 95997 } else { 95998 r.WriteMapStart(11) 95999 } 96000 if yyr2 || yy2arr2 { 96001 r.WriteArrayElem() 96002 if false { 96003 } else { 96004 r.EncodeBool(bool(x.AutoRevert)) 96005 } 96006 } else { 96007 r.WriteMapElemKey() 96008 if z.IsJSONHandle() { 96009 z.WriteStr("\"AutoRevert\"") 96010 } else { 96011 r.EncodeStringEnc(codecSelferCcUTF8100, `AutoRevert`) 96012 } 96013 r.WriteMapElemValue() 96014 if false { 96015 } else { 96016 r.EncodeBool(bool(x.AutoRevert)) 96017 } 96018 } 96019 if yyr2 || yy2arr2 { 96020 r.WriteArrayElem() 96021 if false { 96022 } else { 96023 r.EncodeBool(bool(x.AutoPromote)) 96024 } 96025 } else { 96026 r.WriteMapElemKey() 96027 if z.IsJSONHandle() { 96028 z.WriteStr("\"AutoPromote\"") 96029 } else { 96030 r.EncodeStringEnc(codecSelferCcUTF8100, `AutoPromote`) 96031 } 96032 r.WriteMapElemValue() 96033 if false { 96034 } else { 96035 r.EncodeBool(bool(x.AutoPromote)) 96036 } 96037 } 96038 if yyr2 || yy2arr2 { 96039 r.WriteArrayElem() 96040 if false { 96041 } else if yyxt10 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt10 != nil { 96042 z.EncExtension(x.ProgressDeadline, yyxt10) 96043 } else { 96044 r.EncodeInt(int64(x.ProgressDeadline)) 96045 } 96046 } else { 96047 r.WriteMapElemKey() 96048 if z.IsJSONHandle() { 96049 z.WriteStr("\"ProgressDeadline\"") 96050 } else { 96051 r.EncodeStringEnc(codecSelferCcUTF8100, `ProgressDeadline`) 96052 } 96053 r.WriteMapElemValue() 96054 if false { 96055 } else if yyxt11 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt11 != nil { 96056 z.EncExtension(x.ProgressDeadline, yyxt11) 96057 } else { 96058 r.EncodeInt(int64(x.ProgressDeadline)) 96059 } 96060 } 96061 if yyr2 || yy2arr2 { 96062 r.WriteArrayElem() 96063 if false { 96064 } else if !z.EncBasicHandle().TimeNotBuiltin { 96065 r.EncodeTime(x.RequireProgressBy) 96066 } else if yyxt13 := z.Extension(z.I2Rtid(x.RequireProgressBy)); yyxt13 != nil { 96067 z.EncExtension(x.RequireProgressBy, yyxt13) 96068 } else if z.EncBinary() { 96069 z.EncBinaryMarshal(x.RequireProgressBy) 96070 } else if !z.EncBinary() && z.IsJSONHandle() { 96071 z.EncJSONMarshal(x.RequireProgressBy) 96072 } else { 96073 z.EncFallback(x.RequireProgressBy) 96074 } 96075 } else { 96076 r.WriteMapElemKey() 96077 if z.IsJSONHandle() { 96078 z.WriteStr("\"RequireProgressBy\"") 96079 } else { 96080 r.EncodeStringEnc(codecSelferCcUTF8100, `RequireProgressBy`) 96081 } 96082 r.WriteMapElemValue() 96083 if false { 96084 } else if !z.EncBasicHandle().TimeNotBuiltin { 96085 r.EncodeTime(x.RequireProgressBy) 96086 } else if yyxt14 := z.Extension(z.I2Rtid(x.RequireProgressBy)); yyxt14 != nil { 96087 z.EncExtension(x.RequireProgressBy, yyxt14) 96088 } else if z.EncBinary() { 96089 z.EncBinaryMarshal(x.RequireProgressBy) 96090 } else if !z.EncBinary() && z.IsJSONHandle() { 96091 z.EncJSONMarshal(x.RequireProgressBy) 96092 } else { 96093 z.EncFallback(x.RequireProgressBy) 96094 } 96095 } 96096 if yyr2 || yy2arr2 { 96097 r.WriteArrayElem() 96098 if false { 96099 } else { 96100 r.EncodeBool(bool(x.Promoted)) 96101 } 96102 } else { 96103 r.WriteMapElemKey() 96104 if z.IsJSONHandle() { 96105 z.WriteStr("\"Promoted\"") 96106 } else { 96107 r.EncodeStringEnc(codecSelferCcUTF8100, `Promoted`) 96108 } 96109 r.WriteMapElemValue() 96110 if false { 96111 } else { 96112 r.EncodeBool(bool(x.Promoted)) 96113 } 96114 } 96115 if yyr2 || yy2arr2 { 96116 r.WriteArrayElem() 96117 if x.PlacedCanaries == nil { 96118 r.EncodeNil() 96119 } else { 96120 if false { 96121 } else { 96122 z.F.EncSliceStringV(x.PlacedCanaries, e) 96123 } 96124 } 96125 } else { 96126 r.WriteMapElemKey() 96127 if z.IsJSONHandle() { 96128 z.WriteStr("\"PlacedCanaries\"") 96129 } else { 96130 r.EncodeStringEnc(codecSelferCcUTF8100, `PlacedCanaries`) 96131 } 96132 r.WriteMapElemValue() 96133 if x.PlacedCanaries == nil { 96134 r.EncodeNil() 96135 } else { 96136 if false { 96137 } else { 96138 z.F.EncSliceStringV(x.PlacedCanaries, e) 96139 } 96140 } 96141 } 96142 if yyr2 || yy2arr2 { 96143 r.WriteArrayElem() 96144 if false { 96145 } else { 96146 r.EncodeInt(int64(x.DesiredCanaries)) 96147 } 96148 } else { 96149 r.WriteMapElemKey() 96150 if z.IsJSONHandle() { 96151 z.WriteStr("\"DesiredCanaries\"") 96152 } else { 96153 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredCanaries`) 96154 } 96155 r.WriteMapElemValue() 96156 if false { 96157 } else { 96158 r.EncodeInt(int64(x.DesiredCanaries)) 96159 } 96160 } 96161 if yyr2 || yy2arr2 { 96162 r.WriteArrayElem() 96163 if false { 96164 } else { 96165 r.EncodeInt(int64(x.DesiredTotal)) 96166 } 96167 } else { 96168 r.WriteMapElemKey() 96169 if z.IsJSONHandle() { 96170 z.WriteStr("\"DesiredTotal\"") 96171 } else { 96172 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTotal`) 96173 } 96174 r.WriteMapElemValue() 96175 if false { 96176 } else { 96177 r.EncodeInt(int64(x.DesiredTotal)) 96178 } 96179 } 96180 if yyr2 || yy2arr2 { 96181 r.WriteArrayElem() 96182 if false { 96183 } else { 96184 r.EncodeInt(int64(x.PlacedAllocs)) 96185 } 96186 } else { 96187 r.WriteMapElemKey() 96188 if z.IsJSONHandle() { 96189 z.WriteStr("\"PlacedAllocs\"") 96190 } else { 96191 r.EncodeStringEnc(codecSelferCcUTF8100, `PlacedAllocs`) 96192 } 96193 r.WriteMapElemValue() 96194 if false { 96195 } else { 96196 r.EncodeInt(int64(x.PlacedAllocs)) 96197 } 96198 } 96199 if yyr2 || yy2arr2 { 96200 r.WriteArrayElem() 96201 if false { 96202 } else { 96203 r.EncodeInt(int64(x.HealthyAllocs)) 96204 } 96205 } else { 96206 r.WriteMapElemKey() 96207 if z.IsJSONHandle() { 96208 z.WriteStr("\"HealthyAllocs\"") 96209 } else { 96210 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyAllocs`) 96211 } 96212 r.WriteMapElemValue() 96213 if false { 96214 } else { 96215 r.EncodeInt(int64(x.HealthyAllocs)) 96216 } 96217 } 96218 if yyr2 || yy2arr2 { 96219 r.WriteArrayElem() 96220 if false { 96221 } else { 96222 r.EncodeInt(int64(x.UnhealthyAllocs)) 96223 } 96224 } else { 96225 r.WriteMapElemKey() 96226 if z.IsJSONHandle() { 96227 z.WriteStr("\"UnhealthyAllocs\"") 96228 } else { 96229 r.EncodeStringEnc(codecSelferCcUTF8100, `UnhealthyAllocs`) 96230 } 96231 r.WriteMapElemValue() 96232 if false { 96233 } else { 96234 r.EncodeInt(int64(x.UnhealthyAllocs)) 96235 } 96236 } 96237 if yyr2 || yy2arr2 { 96238 r.WriteArrayEnd() 96239 } else { 96240 r.WriteMapEnd() 96241 } 96242 } 96243 } 96244 } 96245 96246 func (x *DeploymentState) CodecDecodeSelf(d *codec1978.Decoder) { 96247 var h codecSelfer100 96248 z, r := codec1978.GenHelperDecoder(d) 96249 _, _, _ = h, z, r 96250 if false { 96251 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 96252 z.DecExtension(x, yyxt1) 96253 } else { 96254 yyct2 := r.ContainerType() 96255 if yyct2 == codecSelferValueTypeMap100 { 96256 yyl2 := r.ReadMapStart() 96257 if yyl2 == 0 { 96258 r.ReadMapEnd() 96259 } else { 96260 x.codecDecodeSelfFromMap(yyl2, d) 96261 } 96262 } else if yyct2 == codecSelferValueTypeArray100 { 96263 yyl2 := r.ReadArrayStart() 96264 if yyl2 == 0 { 96265 r.ReadArrayEnd() 96266 } else { 96267 x.codecDecodeSelfFromArray(yyl2, d) 96268 } 96269 } else { 96270 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 96271 } 96272 } 96273 } 96274 96275 func (x *DeploymentState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 96276 var h codecSelfer100 96277 z, r := codec1978.GenHelperDecoder(d) 96278 _, _, _ = h, z, r 96279 var yyhl3 bool = l >= 0 96280 for yyj3 := 0; ; yyj3++ { 96281 if yyhl3 { 96282 if yyj3 >= l { 96283 break 96284 } 96285 } else { 96286 if r.CheckBreak() { 96287 break 96288 } 96289 } 96290 r.ReadMapElemKey() 96291 yys3 := z.StringView(r.DecodeStringAsBytes()) 96292 r.ReadMapElemValue() 96293 switch yys3 { 96294 case "AutoRevert": 96295 if r.TryDecodeAsNil() { 96296 x.AutoRevert = false 96297 } else { 96298 x.AutoRevert = (bool)(r.DecodeBool()) 96299 } 96300 case "AutoPromote": 96301 if r.TryDecodeAsNil() { 96302 x.AutoPromote = false 96303 } else { 96304 x.AutoPromote = (bool)(r.DecodeBool()) 96305 } 96306 case "ProgressDeadline": 96307 if r.TryDecodeAsNil() { 96308 x.ProgressDeadline = 0 96309 } else { 96310 if false { 96311 } else if yyxt7 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt7 != nil { 96312 z.DecExtension(x.ProgressDeadline, yyxt7) 96313 } else { 96314 x.ProgressDeadline = (time.Duration)(r.DecodeInt64()) 96315 } 96316 } 96317 case "RequireProgressBy": 96318 if r.TryDecodeAsNil() { 96319 x.RequireProgressBy = time.Time{} 96320 } else { 96321 if false { 96322 } else if !z.DecBasicHandle().TimeNotBuiltin { 96323 x.RequireProgressBy = r.DecodeTime() 96324 } else if yyxt9 := z.Extension(z.I2Rtid(x.RequireProgressBy)); yyxt9 != nil { 96325 z.DecExtension(x.RequireProgressBy, yyxt9) 96326 } else if z.DecBinary() { 96327 z.DecBinaryUnmarshal(&x.RequireProgressBy) 96328 } else if !z.DecBinary() && z.IsJSONHandle() { 96329 z.DecJSONUnmarshal(&x.RequireProgressBy) 96330 } else { 96331 z.DecFallback(&x.RequireProgressBy, false) 96332 } 96333 } 96334 case "Promoted": 96335 if r.TryDecodeAsNil() { 96336 x.Promoted = false 96337 } else { 96338 x.Promoted = (bool)(r.DecodeBool()) 96339 } 96340 case "PlacedCanaries": 96341 if r.TryDecodeAsNil() { 96342 x.PlacedCanaries = nil 96343 } else { 96344 if false { 96345 } else { 96346 z.F.DecSliceStringX(&x.PlacedCanaries, d) 96347 } 96348 } 96349 case "DesiredCanaries": 96350 if r.TryDecodeAsNil() { 96351 x.DesiredCanaries = 0 96352 } else { 96353 x.DesiredCanaries = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 96354 } 96355 case "DesiredTotal": 96356 if r.TryDecodeAsNil() { 96357 x.DesiredTotal = 0 96358 } else { 96359 x.DesiredTotal = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 96360 } 96361 case "PlacedAllocs": 96362 if r.TryDecodeAsNil() { 96363 x.PlacedAllocs = 0 96364 } else { 96365 x.PlacedAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 96366 } 96367 case "HealthyAllocs": 96368 if r.TryDecodeAsNil() { 96369 x.HealthyAllocs = 0 96370 } else { 96371 x.HealthyAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 96372 } 96373 case "UnhealthyAllocs": 96374 if r.TryDecodeAsNil() { 96375 x.UnhealthyAllocs = 0 96376 } else { 96377 x.UnhealthyAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 96378 } 96379 default: 96380 z.DecStructFieldNotFound(-1, yys3) 96381 } // end switch yys3 96382 } // end for yyj3 96383 r.ReadMapEnd() 96384 } 96385 96386 func (x *DeploymentState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 96387 var h codecSelfer100 96388 z, r := codec1978.GenHelperDecoder(d) 96389 _, _, _ = h, z, r 96390 var yyj18 int 96391 var yyb18 bool 96392 var yyhl18 bool = l >= 0 96393 yyj18++ 96394 if yyhl18 { 96395 yyb18 = yyj18 > l 96396 } else { 96397 yyb18 = r.CheckBreak() 96398 } 96399 if yyb18 { 96400 r.ReadArrayEnd() 96401 return 96402 } 96403 r.ReadArrayElem() 96404 if r.TryDecodeAsNil() { 96405 x.AutoRevert = false 96406 } else { 96407 x.AutoRevert = (bool)(r.DecodeBool()) 96408 } 96409 yyj18++ 96410 if yyhl18 { 96411 yyb18 = yyj18 > l 96412 } else { 96413 yyb18 = r.CheckBreak() 96414 } 96415 if yyb18 { 96416 r.ReadArrayEnd() 96417 return 96418 } 96419 r.ReadArrayElem() 96420 if r.TryDecodeAsNil() { 96421 x.AutoPromote = false 96422 } else { 96423 x.AutoPromote = (bool)(r.DecodeBool()) 96424 } 96425 yyj18++ 96426 if yyhl18 { 96427 yyb18 = yyj18 > l 96428 } else { 96429 yyb18 = r.CheckBreak() 96430 } 96431 if yyb18 { 96432 r.ReadArrayEnd() 96433 return 96434 } 96435 r.ReadArrayElem() 96436 if r.TryDecodeAsNil() { 96437 x.ProgressDeadline = 0 96438 } else { 96439 if false { 96440 } else if yyxt22 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt22 != nil { 96441 z.DecExtension(x.ProgressDeadline, yyxt22) 96442 } else { 96443 x.ProgressDeadline = (time.Duration)(r.DecodeInt64()) 96444 } 96445 } 96446 yyj18++ 96447 if yyhl18 { 96448 yyb18 = yyj18 > l 96449 } else { 96450 yyb18 = r.CheckBreak() 96451 } 96452 if yyb18 { 96453 r.ReadArrayEnd() 96454 return 96455 } 96456 r.ReadArrayElem() 96457 if r.TryDecodeAsNil() { 96458 x.RequireProgressBy = time.Time{} 96459 } else { 96460 if false { 96461 } else if !z.DecBasicHandle().TimeNotBuiltin { 96462 x.RequireProgressBy = r.DecodeTime() 96463 } else if yyxt24 := z.Extension(z.I2Rtid(x.RequireProgressBy)); yyxt24 != nil { 96464 z.DecExtension(x.RequireProgressBy, yyxt24) 96465 } else if z.DecBinary() { 96466 z.DecBinaryUnmarshal(&x.RequireProgressBy) 96467 } else if !z.DecBinary() && z.IsJSONHandle() { 96468 z.DecJSONUnmarshal(&x.RequireProgressBy) 96469 } else { 96470 z.DecFallback(&x.RequireProgressBy, false) 96471 } 96472 } 96473 yyj18++ 96474 if yyhl18 { 96475 yyb18 = yyj18 > l 96476 } else { 96477 yyb18 = r.CheckBreak() 96478 } 96479 if yyb18 { 96480 r.ReadArrayEnd() 96481 return 96482 } 96483 r.ReadArrayElem() 96484 if r.TryDecodeAsNil() { 96485 x.Promoted = false 96486 } else { 96487 x.Promoted = (bool)(r.DecodeBool()) 96488 } 96489 yyj18++ 96490 if yyhl18 { 96491 yyb18 = yyj18 > l 96492 } else { 96493 yyb18 = r.CheckBreak() 96494 } 96495 if yyb18 { 96496 r.ReadArrayEnd() 96497 return 96498 } 96499 r.ReadArrayElem() 96500 if r.TryDecodeAsNil() { 96501 x.PlacedCanaries = nil 96502 } else { 96503 if false { 96504 } else { 96505 z.F.DecSliceStringX(&x.PlacedCanaries, d) 96506 } 96507 } 96508 yyj18++ 96509 if yyhl18 { 96510 yyb18 = yyj18 > l 96511 } else { 96512 yyb18 = r.CheckBreak() 96513 } 96514 if yyb18 { 96515 r.ReadArrayEnd() 96516 return 96517 } 96518 r.ReadArrayElem() 96519 if r.TryDecodeAsNil() { 96520 x.DesiredCanaries = 0 96521 } else { 96522 x.DesiredCanaries = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 96523 } 96524 yyj18++ 96525 if yyhl18 { 96526 yyb18 = yyj18 > l 96527 } else { 96528 yyb18 = r.CheckBreak() 96529 } 96530 if yyb18 { 96531 r.ReadArrayEnd() 96532 return 96533 } 96534 r.ReadArrayElem() 96535 if r.TryDecodeAsNil() { 96536 x.DesiredTotal = 0 96537 } else { 96538 x.DesiredTotal = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 96539 } 96540 yyj18++ 96541 if yyhl18 { 96542 yyb18 = yyj18 > l 96543 } else { 96544 yyb18 = r.CheckBreak() 96545 } 96546 if yyb18 { 96547 r.ReadArrayEnd() 96548 return 96549 } 96550 r.ReadArrayElem() 96551 if r.TryDecodeAsNil() { 96552 x.PlacedAllocs = 0 96553 } else { 96554 x.PlacedAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 96555 } 96556 yyj18++ 96557 if yyhl18 { 96558 yyb18 = yyj18 > l 96559 } else { 96560 yyb18 = r.CheckBreak() 96561 } 96562 if yyb18 { 96563 r.ReadArrayEnd() 96564 return 96565 } 96566 r.ReadArrayElem() 96567 if r.TryDecodeAsNil() { 96568 x.HealthyAllocs = 0 96569 } else { 96570 x.HealthyAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 96571 } 96572 yyj18++ 96573 if yyhl18 { 96574 yyb18 = yyj18 > l 96575 } else { 96576 yyb18 = r.CheckBreak() 96577 } 96578 if yyb18 { 96579 r.ReadArrayEnd() 96580 return 96581 } 96582 r.ReadArrayElem() 96583 if r.TryDecodeAsNil() { 96584 x.UnhealthyAllocs = 0 96585 } else { 96586 x.UnhealthyAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 96587 } 96588 for { 96589 yyj18++ 96590 if yyhl18 { 96591 yyb18 = yyj18 > l 96592 } else { 96593 yyb18 = r.CheckBreak() 96594 } 96595 if yyb18 { 96596 break 96597 } 96598 r.ReadArrayElem() 96599 z.DecStructFieldNotFound(yyj18-1, "") 96600 } 96601 r.ReadArrayEnd() 96602 } 96603 96604 func (x *DeploymentStatusUpdate) CodecEncodeSelf(e *codec1978.Encoder) { 96605 var h codecSelfer100 96606 z, r := codec1978.GenHelperEncoder(e) 96607 _, _, _ = h, z, r 96608 if x == nil { 96609 r.EncodeNil() 96610 } else { 96611 if false { 96612 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 96613 z.EncExtension(x, yyxt1) 96614 } else { 96615 yysep2 := !z.EncBinary() 96616 yy2arr2 := z.EncBasicHandle().StructToArray 96617 _, _ = yysep2, yy2arr2 96618 const yyr2 bool = false // struct tag has 'toArray' 96619 if yyr2 || yy2arr2 { 96620 r.WriteArrayStart(3) 96621 } else { 96622 r.WriteMapStart(3) 96623 } 96624 if yyr2 || yy2arr2 { 96625 r.WriteArrayElem() 96626 if false { 96627 } else { 96628 if z.EncBasicHandle().StringToRaw { 96629 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 96630 } else { 96631 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 96632 } 96633 } 96634 } else { 96635 r.WriteMapElemKey() 96636 if z.IsJSONHandle() { 96637 z.WriteStr("\"DeploymentID\"") 96638 } else { 96639 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 96640 } 96641 r.WriteMapElemValue() 96642 if false { 96643 } else { 96644 if z.EncBasicHandle().StringToRaw { 96645 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 96646 } else { 96647 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 96648 } 96649 } 96650 } 96651 if yyr2 || yy2arr2 { 96652 r.WriteArrayElem() 96653 if false { 96654 } else { 96655 if z.EncBasicHandle().StringToRaw { 96656 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 96657 } else { 96658 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 96659 } 96660 } 96661 } else { 96662 r.WriteMapElemKey() 96663 if z.IsJSONHandle() { 96664 z.WriteStr("\"Status\"") 96665 } else { 96666 r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) 96667 } 96668 r.WriteMapElemValue() 96669 if false { 96670 } else { 96671 if z.EncBasicHandle().StringToRaw { 96672 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 96673 } else { 96674 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 96675 } 96676 } 96677 } 96678 if yyr2 || yy2arr2 { 96679 r.WriteArrayElem() 96680 if false { 96681 } else { 96682 if z.EncBasicHandle().StringToRaw { 96683 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 96684 } else { 96685 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 96686 } 96687 } 96688 } else { 96689 r.WriteMapElemKey() 96690 if z.IsJSONHandle() { 96691 z.WriteStr("\"StatusDescription\"") 96692 } else { 96693 r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) 96694 } 96695 r.WriteMapElemValue() 96696 if false { 96697 } else { 96698 if z.EncBasicHandle().StringToRaw { 96699 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 96700 } else { 96701 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 96702 } 96703 } 96704 } 96705 if yyr2 || yy2arr2 { 96706 r.WriteArrayEnd() 96707 } else { 96708 r.WriteMapEnd() 96709 } 96710 } 96711 } 96712 } 96713 96714 func (x *DeploymentStatusUpdate) CodecDecodeSelf(d *codec1978.Decoder) { 96715 var h codecSelfer100 96716 z, r := codec1978.GenHelperDecoder(d) 96717 _, _, _ = h, z, r 96718 if false { 96719 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 96720 z.DecExtension(x, yyxt1) 96721 } else { 96722 yyct2 := r.ContainerType() 96723 if yyct2 == codecSelferValueTypeMap100 { 96724 yyl2 := r.ReadMapStart() 96725 if yyl2 == 0 { 96726 r.ReadMapEnd() 96727 } else { 96728 x.codecDecodeSelfFromMap(yyl2, d) 96729 } 96730 } else if yyct2 == codecSelferValueTypeArray100 { 96731 yyl2 := r.ReadArrayStart() 96732 if yyl2 == 0 { 96733 r.ReadArrayEnd() 96734 } else { 96735 x.codecDecodeSelfFromArray(yyl2, d) 96736 } 96737 } else { 96738 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 96739 } 96740 } 96741 } 96742 96743 func (x *DeploymentStatusUpdate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 96744 var h codecSelfer100 96745 z, r := codec1978.GenHelperDecoder(d) 96746 _, _, _ = h, z, r 96747 var yyhl3 bool = l >= 0 96748 for yyj3 := 0; ; yyj3++ { 96749 if yyhl3 { 96750 if yyj3 >= l { 96751 break 96752 } 96753 } else { 96754 if r.CheckBreak() { 96755 break 96756 } 96757 } 96758 r.ReadMapElemKey() 96759 yys3 := z.StringView(r.DecodeStringAsBytes()) 96760 r.ReadMapElemValue() 96761 switch yys3 { 96762 case "DeploymentID": 96763 if r.TryDecodeAsNil() { 96764 x.DeploymentID = "" 96765 } else { 96766 x.DeploymentID = (string)(r.DecodeString()) 96767 } 96768 case "Status": 96769 if r.TryDecodeAsNil() { 96770 x.Status = "" 96771 } else { 96772 x.Status = (string)(r.DecodeString()) 96773 } 96774 case "StatusDescription": 96775 if r.TryDecodeAsNil() { 96776 x.StatusDescription = "" 96777 } else { 96778 x.StatusDescription = (string)(r.DecodeString()) 96779 } 96780 default: 96781 z.DecStructFieldNotFound(-1, yys3) 96782 } // end switch yys3 96783 } // end for yyj3 96784 r.ReadMapEnd() 96785 } 96786 96787 func (x *DeploymentStatusUpdate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 96788 var h codecSelfer100 96789 z, r := codec1978.GenHelperDecoder(d) 96790 _, _, _ = h, z, r 96791 var yyj7 int 96792 var yyb7 bool 96793 var yyhl7 bool = l >= 0 96794 yyj7++ 96795 if yyhl7 { 96796 yyb7 = yyj7 > l 96797 } else { 96798 yyb7 = r.CheckBreak() 96799 } 96800 if yyb7 { 96801 r.ReadArrayEnd() 96802 return 96803 } 96804 r.ReadArrayElem() 96805 if r.TryDecodeAsNil() { 96806 x.DeploymentID = "" 96807 } else { 96808 x.DeploymentID = (string)(r.DecodeString()) 96809 } 96810 yyj7++ 96811 if yyhl7 { 96812 yyb7 = yyj7 > l 96813 } else { 96814 yyb7 = r.CheckBreak() 96815 } 96816 if yyb7 { 96817 r.ReadArrayEnd() 96818 return 96819 } 96820 r.ReadArrayElem() 96821 if r.TryDecodeAsNil() { 96822 x.Status = "" 96823 } else { 96824 x.Status = (string)(r.DecodeString()) 96825 } 96826 yyj7++ 96827 if yyhl7 { 96828 yyb7 = yyj7 > l 96829 } else { 96830 yyb7 = r.CheckBreak() 96831 } 96832 if yyb7 { 96833 r.ReadArrayEnd() 96834 return 96835 } 96836 r.ReadArrayElem() 96837 if r.TryDecodeAsNil() { 96838 x.StatusDescription = "" 96839 } else { 96840 x.StatusDescription = (string)(r.DecodeString()) 96841 } 96842 for { 96843 yyj7++ 96844 if yyhl7 { 96845 yyb7 = yyj7 > l 96846 } else { 96847 yyb7 = r.CheckBreak() 96848 } 96849 if yyb7 { 96850 break 96851 } 96852 r.ReadArrayElem() 96853 z.DecStructFieldNotFound(yyj7-1, "") 96854 } 96855 r.ReadArrayEnd() 96856 } 96857 96858 func (x *RescheduleTracker) CodecEncodeSelf(e *codec1978.Encoder) { 96859 var h codecSelfer100 96860 z, r := codec1978.GenHelperEncoder(e) 96861 _, _, _ = h, z, r 96862 if x == nil { 96863 r.EncodeNil() 96864 } else { 96865 if false { 96866 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 96867 z.EncExtension(x, yyxt1) 96868 } else { 96869 yysep2 := !z.EncBinary() 96870 yy2arr2 := z.EncBasicHandle().StructToArray 96871 _, _ = yysep2, yy2arr2 96872 const yyr2 bool = false // struct tag has 'toArray' 96873 if yyr2 || yy2arr2 { 96874 r.WriteArrayStart(1) 96875 } else { 96876 r.WriteMapStart(1) 96877 } 96878 if yyr2 || yy2arr2 { 96879 r.WriteArrayElem() 96880 if x.Events == nil { 96881 r.EncodeNil() 96882 } else { 96883 if false { 96884 } else { 96885 h.encSlicePtrtoRescheduleEvent(([]*RescheduleEvent)(x.Events), e) 96886 } 96887 } 96888 } else { 96889 r.WriteMapElemKey() 96890 if z.IsJSONHandle() { 96891 z.WriteStr("\"Events\"") 96892 } else { 96893 r.EncodeStringEnc(codecSelferCcUTF8100, `Events`) 96894 } 96895 r.WriteMapElemValue() 96896 if x.Events == nil { 96897 r.EncodeNil() 96898 } else { 96899 if false { 96900 } else { 96901 h.encSlicePtrtoRescheduleEvent(([]*RescheduleEvent)(x.Events), e) 96902 } 96903 } 96904 } 96905 if yyr2 || yy2arr2 { 96906 r.WriteArrayEnd() 96907 } else { 96908 r.WriteMapEnd() 96909 } 96910 } 96911 } 96912 } 96913 96914 func (x *RescheduleTracker) CodecDecodeSelf(d *codec1978.Decoder) { 96915 var h codecSelfer100 96916 z, r := codec1978.GenHelperDecoder(d) 96917 _, _, _ = h, z, r 96918 if false { 96919 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 96920 z.DecExtension(x, yyxt1) 96921 } else { 96922 yyct2 := r.ContainerType() 96923 if yyct2 == codecSelferValueTypeMap100 { 96924 yyl2 := r.ReadMapStart() 96925 if yyl2 == 0 { 96926 r.ReadMapEnd() 96927 } else { 96928 x.codecDecodeSelfFromMap(yyl2, d) 96929 } 96930 } else if yyct2 == codecSelferValueTypeArray100 { 96931 yyl2 := r.ReadArrayStart() 96932 if yyl2 == 0 { 96933 r.ReadArrayEnd() 96934 } else { 96935 x.codecDecodeSelfFromArray(yyl2, d) 96936 } 96937 } else { 96938 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 96939 } 96940 } 96941 } 96942 96943 func (x *RescheduleTracker) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 96944 var h codecSelfer100 96945 z, r := codec1978.GenHelperDecoder(d) 96946 _, _, _ = h, z, r 96947 var yyhl3 bool = l >= 0 96948 for yyj3 := 0; ; yyj3++ { 96949 if yyhl3 { 96950 if yyj3 >= l { 96951 break 96952 } 96953 } else { 96954 if r.CheckBreak() { 96955 break 96956 } 96957 } 96958 r.ReadMapElemKey() 96959 yys3 := z.StringView(r.DecodeStringAsBytes()) 96960 r.ReadMapElemValue() 96961 switch yys3 { 96962 case "Events": 96963 if r.TryDecodeAsNil() { 96964 x.Events = nil 96965 } else { 96966 if false { 96967 } else { 96968 h.decSlicePtrtoRescheduleEvent((*[]*RescheduleEvent)(&x.Events), d) 96969 } 96970 } 96971 default: 96972 z.DecStructFieldNotFound(-1, yys3) 96973 } // end switch yys3 96974 } // end for yyj3 96975 r.ReadMapEnd() 96976 } 96977 96978 func (x *RescheduleTracker) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 96979 var h codecSelfer100 96980 z, r := codec1978.GenHelperDecoder(d) 96981 _, _, _ = h, z, r 96982 var yyj6 int 96983 var yyb6 bool 96984 var yyhl6 bool = l >= 0 96985 yyj6++ 96986 if yyhl6 { 96987 yyb6 = yyj6 > l 96988 } else { 96989 yyb6 = r.CheckBreak() 96990 } 96991 if yyb6 { 96992 r.ReadArrayEnd() 96993 return 96994 } 96995 r.ReadArrayElem() 96996 if r.TryDecodeAsNil() { 96997 x.Events = nil 96998 } else { 96999 if false { 97000 } else { 97001 h.decSlicePtrtoRescheduleEvent((*[]*RescheduleEvent)(&x.Events), d) 97002 } 97003 } 97004 for { 97005 yyj6++ 97006 if yyhl6 { 97007 yyb6 = yyj6 > l 97008 } else { 97009 yyb6 = r.CheckBreak() 97010 } 97011 if yyb6 { 97012 break 97013 } 97014 r.ReadArrayElem() 97015 z.DecStructFieldNotFound(yyj6-1, "") 97016 } 97017 r.ReadArrayEnd() 97018 } 97019 97020 func (x *RescheduleEvent) CodecEncodeSelf(e *codec1978.Encoder) { 97021 var h codecSelfer100 97022 z, r := codec1978.GenHelperEncoder(e) 97023 _, _, _ = h, z, r 97024 if x == nil { 97025 r.EncodeNil() 97026 } else { 97027 if false { 97028 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 97029 z.EncExtension(x, yyxt1) 97030 } else { 97031 yysep2 := !z.EncBinary() 97032 yy2arr2 := z.EncBasicHandle().StructToArray 97033 _, _ = yysep2, yy2arr2 97034 const yyr2 bool = false // struct tag has 'toArray' 97035 if yyr2 || yy2arr2 { 97036 r.WriteArrayStart(4) 97037 } else { 97038 r.WriteMapStart(4) 97039 } 97040 if yyr2 || yy2arr2 { 97041 r.WriteArrayElem() 97042 if false { 97043 } else { 97044 r.EncodeInt(int64(x.RescheduleTime)) 97045 } 97046 } else { 97047 r.WriteMapElemKey() 97048 if z.IsJSONHandle() { 97049 z.WriteStr("\"RescheduleTime\"") 97050 } else { 97051 r.EncodeStringEnc(codecSelferCcUTF8100, `RescheduleTime`) 97052 } 97053 r.WriteMapElemValue() 97054 if false { 97055 } else { 97056 r.EncodeInt(int64(x.RescheduleTime)) 97057 } 97058 } 97059 if yyr2 || yy2arr2 { 97060 r.WriteArrayElem() 97061 if false { 97062 } else { 97063 if z.EncBasicHandle().StringToRaw { 97064 r.EncodeStringBytesRaw(z.BytesView(string(x.PrevAllocID))) 97065 } else { 97066 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PrevAllocID)) 97067 } 97068 } 97069 } else { 97070 r.WriteMapElemKey() 97071 if z.IsJSONHandle() { 97072 z.WriteStr("\"PrevAllocID\"") 97073 } else { 97074 r.EncodeStringEnc(codecSelferCcUTF8100, `PrevAllocID`) 97075 } 97076 r.WriteMapElemValue() 97077 if false { 97078 } else { 97079 if z.EncBasicHandle().StringToRaw { 97080 r.EncodeStringBytesRaw(z.BytesView(string(x.PrevAllocID))) 97081 } else { 97082 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PrevAllocID)) 97083 } 97084 } 97085 } 97086 if yyr2 || yy2arr2 { 97087 r.WriteArrayElem() 97088 if false { 97089 } else { 97090 if z.EncBasicHandle().StringToRaw { 97091 r.EncodeStringBytesRaw(z.BytesView(string(x.PrevNodeID))) 97092 } else { 97093 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PrevNodeID)) 97094 } 97095 } 97096 } else { 97097 r.WriteMapElemKey() 97098 if z.IsJSONHandle() { 97099 z.WriteStr("\"PrevNodeID\"") 97100 } else { 97101 r.EncodeStringEnc(codecSelferCcUTF8100, `PrevNodeID`) 97102 } 97103 r.WriteMapElemValue() 97104 if false { 97105 } else { 97106 if z.EncBasicHandle().StringToRaw { 97107 r.EncodeStringBytesRaw(z.BytesView(string(x.PrevNodeID))) 97108 } else { 97109 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PrevNodeID)) 97110 } 97111 } 97112 } 97113 if yyr2 || yy2arr2 { 97114 r.WriteArrayElem() 97115 if false { 97116 } else if yyxt13 := z.Extension(z.I2Rtid(x.Delay)); yyxt13 != nil { 97117 z.EncExtension(x.Delay, yyxt13) 97118 } else { 97119 r.EncodeInt(int64(x.Delay)) 97120 } 97121 } else { 97122 r.WriteMapElemKey() 97123 if z.IsJSONHandle() { 97124 z.WriteStr("\"Delay\"") 97125 } else { 97126 r.EncodeStringEnc(codecSelferCcUTF8100, `Delay`) 97127 } 97128 r.WriteMapElemValue() 97129 if false { 97130 } else if yyxt14 := z.Extension(z.I2Rtid(x.Delay)); yyxt14 != nil { 97131 z.EncExtension(x.Delay, yyxt14) 97132 } else { 97133 r.EncodeInt(int64(x.Delay)) 97134 } 97135 } 97136 if yyr2 || yy2arr2 { 97137 r.WriteArrayEnd() 97138 } else { 97139 r.WriteMapEnd() 97140 } 97141 } 97142 } 97143 } 97144 97145 func (x *RescheduleEvent) CodecDecodeSelf(d *codec1978.Decoder) { 97146 var h codecSelfer100 97147 z, r := codec1978.GenHelperDecoder(d) 97148 _, _, _ = h, z, r 97149 if false { 97150 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 97151 z.DecExtension(x, yyxt1) 97152 } else { 97153 yyct2 := r.ContainerType() 97154 if yyct2 == codecSelferValueTypeMap100 { 97155 yyl2 := r.ReadMapStart() 97156 if yyl2 == 0 { 97157 r.ReadMapEnd() 97158 } else { 97159 x.codecDecodeSelfFromMap(yyl2, d) 97160 } 97161 } else if yyct2 == codecSelferValueTypeArray100 { 97162 yyl2 := r.ReadArrayStart() 97163 if yyl2 == 0 { 97164 r.ReadArrayEnd() 97165 } else { 97166 x.codecDecodeSelfFromArray(yyl2, d) 97167 } 97168 } else { 97169 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 97170 } 97171 } 97172 } 97173 97174 func (x *RescheduleEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 97175 var h codecSelfer100 97176 z, r := codec1978.GenHelperDecoder(d) 97177 _, _, _ = h, z, r 97178 var yyhl3 bool = l >= 0 97179 for yyj3 := 0; ; yyj3++ { 97180 if yyhl3 { 97181 if yyj3 >= l { 97182 break 97183 } 97184 } else { 97185 if r.CheckBreak() { 97186 break 97187 } 97188 } 97189 r.ReadMapElemKey() 97190 yys3 := z.StringView(r.DecodeStringAsBytes()) 97191 r.ReadMapElemValue() 97192 switch yys3 { 97193 case "RescheduleTime": 97194 if r.TryDecodeAsNil() { 97195 x.RescheduleTime = 0 97196 } else { 97197 x.RescheduleTime = (int64)(r.DecodeInt64()) 97198 } 97199 case "PrevAllocID": 97200 if r.TryDecodeAsNil() { 97201 x.PrevAllocID = "" 97202 } else { 97203 x.PrevAllocID = (string)(r.DecodeString()) 97204 } 97205 case "PrevNodeID": 97206 if r.TryDecodeAsNil() { 97207 x.PrevNodeID = "" 97208 } else { 97209 x.PrevNodeID = (string)(r.DecodeString()) 97210 } 97211 case "Delay": 97212 if r.TryDecodeAsNil() { 97213 x.Delay = 0 97214 } else { 97215 if false { 97216 } else if yyxt8 := z.Extension(z.I2Rtid(x.Delay)); yyxt8 != nil { 97217 z.DecExtension(x.Delay, yyxt8) 97218 } else { 97219 x.Delay = (time.Duration)(r.DecodeInt64()) 97220 } 97221 } 97222 default: 97223 z.DecStructFieldNotFound(-1, yys3) 97224 } // end switch yys3 97225 } // end for yyj3 97226 r.ReadMapEnd() 97227 } 97228 97229 func (x *RescheduleEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 97230 var h codecSelfer100 97231 z, r := codec1978.GenHelperDecoder(d) 97232 _, _, _ = h, z, r 97233 var yyj9 int 97234 var yyb9 bool 97235 var yyhl9 bool = l >= 0 97236 yyj9++ 97237 if yyhl9 { 97238 yyb9 = yyj9 > l 97239 } else { 97240 yyb9 = r.CheckBreak() 97241 } 97242 if yyb9 { 97243 r.ReadArrayEnd() 97244 return 97245 } 97246 r.ReadArrayElem() 97247 if r.TryDecodeAsNil() { 97248 x.RescheduleTime = 0 97249 } else { 97250 x.RescheduleTime = (int64)(r.DecodeInt64()) 97251 } 97252 yyj9++ 97253 if yyhl9 { 97254 yyb9 = yyj9 > l 97255 } else { 97256 yyb9 = r.CheckBreak() 97257 } 97258 if yyb9 { 97259 r.ReadArrayEnd() 97260 return 97261 } 97262 r.ReadArrayElem() 97263 if r.TryDecodeAsNil() { 97264 x.PrevAllocID = "" 97265 } else { 97266 x.PrevAllocID = (string)(r.DecodeString()) 97267 } 97268 yyj9++ 97269 if yyhl9 { 97270 yyb9 = yyj9 > l 97271 } else { 97272 yyb9 = r.CheckBreak() 97273 } 97274 if yyb9 { 97275 r.ReadArrayEnd() 97276 return 97277 } 97278 r.ReadArrayElem() 97279 if r.TryDecodeAsNil() { 97280 x.PrevNodeID = "" 97281 } else { 97282 x.PrevNodeID = (string)(r.DecodeString()) 97283 } 97284 yyj9++ 97285 if yyhl9 { 97286 yyb9 = yyj9 > l 97287 } else { 97288 yyb9 = r.CheckBreak() 97289 } 97290 if yyb9 { 97291 r.ReadArrayEnd() 97292 return 97293 } 97294 r.ReadArrayElem() 97295 if r.TryDecodeAsNil() { 97296 x.Delay = 0 97297 } else { 97298 if false { 97299 } else if yyxt14 := z.Extension(z.I2Rtid(x.Delay)); yyxt14 != nil { 97300 z.DecExtension(x.Delay, yyxt14) 97301 } else { 97302 x.Delay = (time.Duration)(r.DecodeInt64()) 97303 } 97304 } 97305 for { 97306 yyj9++ 97307 if yyhl9 { 97308 yyb9 = yyj9 > l 97309 } else { 97310 yyb9 = r.CheckBreak() 97311 } 97312 if yyb9 { 97313 break 97314 } 97315 r.ReadArrayElem() 97316 z.DecStructFieldNotFound(yyj9-1, "") 97317 } 97318 r.ReadArrayEnd() 97319 } 97320 97321 func (x *DesiredTransition) CodecEncodeSelf(e *codec1978.Encoder) { 97322 var h codecSelfer100 97323 z, r := codec1978.GenHelperEncoder(e) 97324 _, _, _ = h, z, r 97325 if x == nil { 97326 r.EncodeNil() 97327 } else { 97328 if false { 97329 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 97330 z.EncExtension(x, yyxt1) 97331 } else { 97332 yysep2 := !z.EncBinary() 97333 yy2arr2 := z.EncBasicHandle().StructToArray 97334 _, _ = yysep2, yy2arr2 97335 const yyr2 bool = false // struct tag has 'toArray' 97336 if yyr2 || yy2arr2 { 97337 r.WriteArrayStart(3) 97338 } else { 97339 r.WriteMapStart(3) 97340 } 97341 var yyn3 bool 97342 if x.Migrate == nil { 97343 yyn3 = true 97344 goto LABEL3 97345 } 97346 LABEL3: 97347 if yyr2 || yy2arr2 { 97348 if yyn3 { 97349 r.WriteArrayElem() 97350 r.EncodeNil() 97351 } else { 97352 r.WriteArrayElem() 97353 if x.Migrate == nil { 97354 r.EncodeNil() 97355 } else { 97356 yy4 := *x.Migrate 97357 if false { 97358 } else { 97359 r.EncodeBool(bool(yy4)) 97360 } 97361 } 97362 } 97363 } else { 97364 r.WriteMapElemKey() 97365 if z.IsJSONHandle() { 97366 z.WriteStr("\"Migrate\"") 97367 } else { 97368 r.EncodeStringEnc(codecSelferCcUTF8100, `Migrate`) 97369 } 97370 r.WriteMapElemValue() 97371 if yyn3 { 97372 r.EncodeNil() 97373 } else { 97374 if x.Migrate == nil { 97375 r.EncodeNil() 97376 } else { 97377 yy6 := *x.Migrate 97378 if false { 97379 } else { 97380 r.EncodeBool(bool(yy6)) 97381 } 97382 } 97383 } 97384 } 97385 var yyn8 bool 97386 if x.Reschedule == nil { 97387 yyn8 = true 97388 goto LABEL8 97389 } 97390 LABEL8: 97391 if yyr2 || yy2arr2 { 97392 if yyn8 { 97393 r.WriteArrayElem() 97394 r.EncodeNil() 97395 } else { 97396 r.WriteArrayElem() 97397 if x.Reschedule == nil { 97398 r.EncodeNil() 97399 } else { 97400 yy9 := *x.Reschedule 97401 if false { 97402 } else { 97403 r.EncodeBool(bool(yy9)) 97404 } 97405 } 97406 } 97407 } else { 97408 r.WriteMapElemKey() 97409 if z.IsJSONHandle() { 97410 z.WriteStr("\"Reschedule\"") 97411 } else { 97412 r.EncodeStringEnc(codecSelferCcUTF8100, `Reschedule`) 97413 } 97414 r.WriteMapElemValue() 97415 if yyn8 { 97416 r.EncodeNil() 97417 } else { 97418 if x.Reschedule == nil { 97419 r.EncodeNil() 97420 } else { 97421 yy11 := *x.Reschedule 97422 if false { 97423 } else { 97424 r.EncodeBool(bool(yy11)) 97425 } 97426 } 97427 } 97428 } 97429 var yyn13 bool 97430 if x.ForceReschedule == nil { 97431 yyn13 = true 97432 goto LABEL13 97433 } 97434 LABEL13: 97435 if yyr2 || yy2arr2 { 97436 if yyn13 { 97437 r.WriteArrayElem() 97438 r.EncodeNil() 97439 } else { 97440 r.WriteArrayElem() 97441 if x.ForceReschedule == nil { 97442 r.EncodeNil() 97443 } else { 97444 yy14 := *x.ForceReschedule 97445 if false { 97446 } else { 97447 r.EncodeBool(bool(yy14)) 97448 } 97449 } 97450 } 97451 } else { 97452 r.WriteMapElemKey() 97453 if z.IsJSONHandle() { 97454 z.WriteStr("\"ForceReschedule\"") 97455 } else { 97456 r.EncodeStringEnc(codecSelferCcUTF8100, `ForceReschedule`) 97457 } 97458 r.WriteMapElemValue() 97459 if yyn13 { 97460 r.EncodeNil() 97461 } else { 97462 if x.ForceReschedule == nil { 97463 r.EncodeNil() 97464 } else { 97465 yy16 := *x.ForceReschedule 97466 if false { 97467 } else { 97468 r.EncodeBool(bool(yy16)) 97469 } 97470 } 97471 } 97472 } 97473 if yyr2 || yy2arr2 { 97474 r.WriteArrayEnd() 97475 } else { 97476 r.WriteMapEnd() 97477 } 97478 } 97479 } 97480 } 97481 97482 func (x *DesiredTransition) CodecDecodeSelf(d *codec1978.Decoder) { 97483 var h codecSelfer100 97484 z, r := codec1978.GenHelperDecoder(d) 97485 _, _, _ = h, z, r 97486 if false { 97487 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 97488 z.DecExtension(x, yyxt1) 97489 } else { 97490 yyct2 := r.ContainerType() 97491 if yyct2 == codecSelferValueTypeMap100 { 97492 yyl2 := r.ReadMapStart() 97493 if yyl2 == 0 { 97494 r.ReadMapEnd() 97495 } else { 97496 x.codecDecodeSelfFromMap(yyl2, d) 97497 } 97498 } else if yyct2 == codecSelferValueTypeArray100 { 97499 yyl2 := r.ReadArrayStart() 97500 if yyl2 == 0 { 97501 r.ReadArrayEnd() 97502 } else { 97503 x.codecDecodeSelfFromArray(yyl2, d) 97504 } 97505 } else { 97506 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 97507 } 97508 } 97509 } 97510 97511 func (x *DesiredTransition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 97512 var h codecSelfer100 97513 z, r := codec1978.GenHelperDecoder(d) 97514 _, _, _ = h, z, r 97515 var yyhl3 bool = l >= 0 97516 for yyj3 := 0; ; yyj3++ { 97517 if yyhl3 { 97518 if yyj3 >= l { 97519 break 97520 } 97521 } else { 97522 if r.CheckBreak() { 97523 break 97524 } 97525 } 97526 r.ReadMapElemKey() 97527 yys3 := z.StringView(r.DecodeStringAsBytes()) 97528 r.ReadMapElemValue() 97529 switch yys3 { 97530 case "Migrate": 97531 if r.TryDecodeAsNil() { 97532 if true && x.Migrate != nil { 97533 x.Migrate = nil 97534 } 97535 } else { 97536 if x.Migrate == nil { 97537 x.Migrate = new(bool) 97538 } 97539 97540 if false { 97541 } else { 97542 *x.Migrate = (bool)(r.DecodeBool()) 97543 } 97544 } 97545 case "Reschedule": 97546 if r.TryDecodeAsNil() { 97547 if true && x.Reschedule != nil { 97548 x.Reschedule = nil 97549 } 97550 } else { 97551 if x.Reschedule == nil { 97552 x.Reschedule = new(bool) 97553 } 97554 97555 if false { 97556 } else { 97557 *x.Reschedule = (bool)(r.DecodeBool()) 97558 } 97559 } 97560 case "ForceReschedule": 97561 if r.TryDecodeAsNil() { 97562 if true && x.ForceReschedule != nil { 97563 x.ForceReschedule = nil 97564 } 97565 } else { 97566 if x.ForceReschedule == nil { 97567 x.ForceReschedule = new(bool) 97568 } 97569 97570 if false { 97571 } else { 97572 *x.ForceReschedule = (bool)(r.DecodeBool()) 97573 } 97574 } 97575 default: 97576 z.DecStructFieldNotFound(-1, yys3) 97577 } // end switch yys3 97578 } // end for yyj3 97579 r.ReadMapEnd() 97580 } 97581 97582 func (x *DesiredTransition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 97583 var h codecSelfer100 97584 z, r := codec1978.GenHelperDecoder(d) 97585 _, _, _ = h, z, r 97586 var yyj10 int 97587 var yyb10 bool 97588 var yyhl10 bool = l >= 0 97589 yyj10++ 97590 if yyhl10 { 97591 yyb10 = yyj10 > l 97592 } else { 97593 yyb10 = r.CheckBreak() 97594 } 97595 if yyb10 { 97596 r.ReadArrayEnd() 97597 return 97598 } 97599 r.ReadArrayElem() 97600 if r.TryDecodeAsNil() { 97601 if true && x.Migrate != nil { 97602 x.Migrate = nil 97603 } 97604 } else { 97605 if x.Migrate == nil { 97606 x.Migrate = new(bool) 97607 } 97608 97609 if false { 97610 } else { 97611 *x.Migrate = (bool)(r.DecodeBool()) 97612 } 97613 } 97614 yyj10++ 97615 if yyhl10 { 97616 yyb10 = yyj10 > l 97617 } else { 97618 yyb10 = r.CheckBreak() 97619 } 97620 if yyb10 { 97621 r.ReadArrayEnd() 97622 return 97623 } 97624 r.ReadArrayElem() 97625 if r.TryDecodeAsNil() { 97626 if true && x.Reschedule != nil { 97627 x.Reschedule = nil 97628 } 97629 } else { 97630 if x.Reschedule == nil { 97631 x.Reschedule = new(bool) 97632 } 97633 97634 if false { 97635 } else { 97636 *x.Reschedule = (bool)(r.DecodeBool()) 97637 } 97638 } 97639 yyj10++ 97640 if yyhl10 { 97641 yyb10 = yyj10 > l 97642 } else { 97643 yyb10 = r.CheckBreak() 97644 } 97645 if yyb10 { 97646 r.ReadArrayEnd() 97647 return 97648 } 97649 r.ReadArrayElem() 97650 if r.TryDecodeAsNil() { 97651 if true && x.ForceReschedule != nil { 97652 x.ForceReschedule = nil 97653 } 97654 } else { 97655 if x.ForceReschedule == nil { 97656 x.ForceReschedule = new(bool) 97657 } 97658 97659 if false { 97660 } else { 97661 *x.ForceReschedule = (bool)(r.DecodeBool()) 97662 } 97663 } 97664 for { 97665 yyj10++ 97666 if yyhl10 { 97667 yyb10 = yyj10 > l 97668 } else { 97669 yyb10 = r.CheckBreak() 97670 } 97671 if yyb10 { 97672 break 97673 } 97674 r.ReadArrayElem() 97675 z.DecStructFieldNotFound(yyj10-1, "") 97676 } 97677 r.ReadArrayEnd() 97678 } 97679 97680 func (x *Allocation) CodecEncodeSelf(e *codec1978.Encoder) { 97681 var h codecSelfer100 97682 z, r := codec1978.GenHelperEncoder(e) 97683 _, _, _ = h, z, r 97684 if x == nil { 97685 r.EncodeNil() 97686 } else { 97687 if false { 97688 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 97689 z.EncExtension(x, yyxt1) 97690 } else { 97691 yysep2 := !z.EncBinary() 97692 yy2arr2 := z.EncBasicHandle().StructToArray 97693 _, _ = yysep2, yy2arr2 97694 const yyr2 bool = false // struct tag has 'toArray' 97695 var yyq2 = [33]bool{ // should field at this index be written? 97696 x.ID != "", // ID 97697 x.Namespace != "", // Namespace 97698 x.EvalID != "", // EvalID 97699 x.Name != "", // Name 97700 x.NodeID != "", // NodeID 97701 x.NodeName != "", // NodeName 97702 x.JobID != "", // JobID 97703 x.Job != nil, // Job 97704 x.TaskGroup != "", // TaskGroup 97705 x.Resources != nil, // Resources 97706 x.SharedResources != nil, // SharedResources 97707 len(x.TaskResources) != 0, // TaskResources 97708 x.AllocatedResources != nil, // AllocatedResources 97709 x.Metrics != nil, // Metrics 97710 x.DesiredStatus != "", // DesiredStatus 97711 x.DesiredDescription != "", // DesiredDescription 97712 x.DesiredTransition != DesiredTransition{}, // DesiredTransition 97713 x.ClientStatus != "", // ClientStatus 97714 x.ClientDescription != "", // ClientDescription 97715 len(x.TaskStates) != 0, // TaskStates 97716 x.PreviousAllocation != "", // PreviousAllocation 97717 x.NextAllocation != "", // NextAllocation 97718 x.DeploymentID != "", // DeploymentID 97719 x.DeploymentStatus != nil, // DeploymentStatus 97720 x.RescheduleTracker != nil, // RescheduleTracker 97721 x.FollowupEvalID != "", // FollowupEvalID 97722 len(x.PreemptedAllocations) != 0, // PreemptedAllocations 97723 x.PreemptedByAllocation != "", // PreemptedByAllocation 97724 x.CreateIndex != 0, // CreateIndex 97725 x.ModifyIndex != 0, // ModifyIndex 97726 x.AllocModifyIndex != 0, // AllocModifyIndex 97727 x.CreateTime != 0, // CreateTime 97728 x.ModifyTime != 0, // ModifyTime 97729 } 97730 _ = yyq2 97731 if yyr2 || yy2arr2 { 97732 r.WriteArrayStart(33) 97733 } else { 97734 var yynn2 int 97735 for _, b := range yyq2 { 97736 if b { 97737 yynn2++ 97738 } 97739 } 97740 r.WriteMapStart(yynn2) 97741 yynn2 = 0 97742 } 97743 if yyr2 || yy2arr2 { 97744 r.WriteArrayElem() 97745 if yyq2[0] { 97746 if false { 97747 } else { 97748 if z.EncBasicHandle().StringToRaw { 97749 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 97750 } else { 97751 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 97752 } 97753 } 97754 } else { 97755 if z.EncBasicHandle().StringToRaw { 97756 r.EncodeStringBytesRaw([]byte{}) 97757 } else { 97758 r.EncodeStringEnc(codecSelferCcUTF8100, "") 97759 } 97760 } 97761 } else { 97762 if yyq2[0] { 97763 r.WriteMapElemKey() 97764 if z.IsJSONHandle() { 97765 z.WriteStr("\"ID\"") 97766 } else { 97767 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 97768 } 97769 r.WriteMapElemValue() 97770 if false { 97771 } else { 97772 if z.EncBasicHandle().StringToRaw { 97773 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 97774 } else { 97775 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 97776 } 97777 } 97778 } 97779 } 97780 if yyr2 || yy2arr2 { 97781 r.WriteArrayElem() 97782 if yyq2[1] { 97783 if false { 97784 } else { 97785 if z.EncBasicHandle().StringToRaw { 97786 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 97787 } else { 97788 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 97789 } 97790 } 97791 } else { 97792 if z.EncBasicHandle().StringToRaw { 97793 r.EncodeStringBytesRaw([]byte{}) 97794 } else { 97795 r.EncodeStringEnc(codecSelferCcUTF8100, "") 97796 } 97797 } 97798 } else { 97799 if yyq2[1] { 97800 r.WriteMapElemKey() 97801 if z.IsJSONHandle() { 97802 z.WriteStr("\"Namespace\"") 97803 } else { 97804 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 97805 } 97806 r.WriteMapElemValue() 97807 if false { 97808 } else { 97809 if z.EncBasicHandle().StringToRaw { 97810 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 97811 } else { 97812 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 97813 } 97814 } 97815 } 97816 } 97817 if yyr2 || yy2arr2 { 97818 r.WriteArrayElem() 97819 if yyq2[2] { 97820 if false { 97821 } else { 97822 if z.EncBasicHandle().StringToRaw { 97823 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 97824 } else { 97825 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 97826 } 97827 } 97828 } else { 97829 if z.EncBasicHandle().StringToRaw { 97830 r.EncodeStringBytesRaw([]byte{}) 97831 } else { 97832 r.EncodeStringEnc(codecSelferCcUTF8100, "") 97833 } 97834 } 97835 } else { 97836 if yyq2[2] { 97837 r.WriteMapElemKey() 97838 if z.IsJSONHandle() { 97839 z.WriteStr("\"EvalID\"") 97840 } else { 97841 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 97842 } 97843 r.WriteMapElemValue() 97844 if false { 97845 } else { 97846 if z.EncBasicHandle().StringToRaw { 97847 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 97848 } else { 97849 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 97850 } 97851 } 97852 } 97853 } 97854 if yyr2 || yy2arr2 { 97855 r.WriteArrayElem() 97856 if yyq2[3] { 97857 if false { 97858 } else { 97859 if z.EncBasicHandle().StringToRaw { 97860 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 97861 } else { 97862 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 97863 } 97864 } 97865 } else { 97866 if z.EncBasicHandle().StringToRaw { 97867 r.EncodeStringBytesRaw([]byte{}) 97868 } else { 97869 r.EncodeStringEnc(codecSelferCcUTF8100, "") 97870 } 97871 } 97872 } else { 97873 if yyq2[3] { 97874 r.WriteMapElemKey() 97875 if z.IsJSONHandle() { 97876 z.WriteStr("\"Name\"") 97877 } else { 97878 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 97879 } 97880 r.WriteMapElemValue() 97881 if false { 97882 } else { 97883 if z.EncBasicHandle().StringToRaw { 97884 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 97885 } else { 97886 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 97887 } 97888 } 97889 } 97890 } 97891 if yyr2 || yy2arr2 { 97892 r.WriteArrayElem() 97893 if yyq2[4] { 97894 if false { 97895 } else { 97896 if z.EncBasicHandle().StringToRaw { 97897 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 97898 } else { 97899 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 97900 } 97901 } 97902 } else { 97903 if z.EncBasicHandle().StringToRaw { 97904 r.EncodeStringBytesRaw([]byte{}) 97905 } else { 97906 r.EncodeStringEnc(codecSelferCcUTF8100, "") 97907 } 97908 } 97909 } else { 97910 if yyq2[4] { 97911 r.WriteMapElemKey() 97912 if z.IsJSONHandle() { 97913 z.WriteStr("\"NodeID\"") 97914 } else { 97915 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 97916 } 97917 r.WriteMapElemValue() 97918 if false { 97919 } else { 97920 if z.EncBasicHandle().StringToRaw { 97921 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 97922 } else { 97923 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 97924 } 97925 } 97926 } 97927 } 97928 if yyr2 || yy2arr2 { 97929 r.WriteArrayElem() 97930 if yyq2[5] { 97931 if false { 97932 } else { 97933 if z.EncBasicHandle().StringToRaw { 97934 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) 97935 } else { 97936 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) 97937 } 97938 } 97939 } else { 97940 if z.EncBasicHandle().StringToRaw { 97941 r.EncodeStringBytesRaw([]byte{}) 97942 } else { 97943 r.EncodeStringEnc(codecSelferCcUTF8100, "") 97944 } 97945 } 97946 } else { 97947 if yyq2[5] { 97948 r.WriteMapElemKey() 97949 if z.IsJSONHandle() { 97950 z.WriteStr("\"NodeName\"") 97951 } else { 97952 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeName`) 97953 } 97954 r.WriteMapElemValue() 97955 if false { 97956 } else { 97957 if z.EncBasicHandle().StringToRaw { 97958 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) 97959 } else { 97960 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) 97961 } 97962 } 97963 } 97964 } 97965 if yyr2 || yy2arr2 { 97966 r.WriteArrayElem() 97967 if yyq2[6] { 97968 if false { 97969 } else { 97970 if z.EncBasicHandle().StringToRaw { 97971 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 97972 } else { 97973 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 97974 } 97975 } 97976 } else { 97977 if z.EncBasicHandle().StringToRaw { 97978 r.EncodeStringBytesRaw([]byte{}) 97979 } else { 97980 r.EncodeStringEnc(codecSelferCcUTF8100, "") 97981 } 97982 } 97983 } else { 97984 if yyq2[6] { 97985 r.WriteMapElemKey() 97986 if z.IsJSONHandle() { 97987 z.WriteStr("\"JobID\"") 97988 } else { 97989 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 97990 } 97991 r.WriteMapElemValue() 97992 if false { 97993 } else { 97994 if z.EncBasicHandle().StringToRaw { 97995 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 97996 } else { 97997 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 97998 } 97999 } 98000 } 98001 } 98002 var yyn24 bool 98003 if x.Job == nil { 98004 yyn24 = true 98005 goto LABEL24 98006 } 98007 LABEL24: 98008 if yyr2 || yy2arr2 { 98009 if yyn24 { 98010 r.WriteArrayElem() 98011 r.EncodeNil() 98012 } else { 98013 r.WriteArrayElem() 98014 if yyq2[7] { 98015 if x.Job == nil { 98016 r.EncodeNil() 98017 } else { 98018 x.Job.CodecEncodeSelf(e) 98019 } 98020 } else { 98021 r.EncodeNil() 98022 } 98023 } 98024 } else { 98025 if yyq2[7] { 98026 r.WriteMapElemKey() 98027 if z.IsJSONHandle() { 98028 z.WriteStr("\"Job\"") 98029 } else { 98030 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 98031 } 98032 r.WriteMapElemValue() 98033 if yyn24 { 98034 r.EncodeNil() 98035 } else { 98036 if x.Job == nil { 98037 r.EncodeNil() 98038 } else { 98039 x.Job.CodecEncodeSelf(e) 98040 } 98041 } 98042 } 98043 } 98044 if yyr2 || yy2arr2 { 98045 r.WriteArrayElem() 98046 if yyq2[8] { 98047 if false { 98048 } else { 98049 if z.EncBasicHandle().StringToRaw { 98050 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) 98051 } else { 98052 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) 98053 } 98054 } 98055 } else { 98056 if z.EncBasicHandle().StringToRaw { 98057 r.EncodeStringBytesRaw([]byte{}) 98058 } else { 98059 r.EncodeStringEnc(codecSelferCcUTF8100, "") 98060 } 98061 } 98062 } else { 98063 if yyq2[8] { 98064 r.WriteMapElemKey() 98065 if z.IsJSONHandle() { 98066 z.WriteStr("\"TaskGroup\"") 98067 } else { 98068 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroup`) 98069 } 98070 r.WriteMapElemValue() 98071 if false { 98072 } else { 98073 if z.EncBasicHandle().StringToRaw { 98074 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) 98075 } else { 98076 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) 98077 } 98078 } 98079 } 98080 } 98081 var yyn30 bool 98082 if x.Resources == nil { 98083 yyn30 = true 98084 goto LABEL30 98085 } 98086 LABEL30: 98087 if yyr2 || yy2arr2 { 98088 if yyn30 { 98089 r.WriteArrayElem() 98090 r.EncodeNil() 98091 } else { 98092 r.WriteArrayElem() 98093 if yyq2[9] { 98094 if x.Resources == nil { 98095 r.EncodeNil() 98096 } else { 98097 x.Resources.CodecEncodeSelf(e) 98098 } 98099 } else { 98100 r.EncodeNil() 98101 } 98102 } 98103 } else { 98104 if yyq2[9] { 98105 r.WriteMapElemKey() 98106 if z.IsJSONHandle() { 98107 z.WriteStr("\"Resources\"") 98108 } else { 98109 r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) 98110 } 98111 r.WriteMapElemValue() 98112 if yyn30 { 98113 r.EncodeNil() 98114 } else { 98115 if x.Resources == nil { 98116 r.EncodeNil() 98117 } else { 98118 x.Resources.CodecEncodeSelf(e) 98119 } 98120 } 98121 } 98122 } 98123 var yyn33 bool 98124 if x.SharedResources == nil { 98125 yyn33 = true 98126 goto LABEL33 98127 } 98128 LABEL33: 98129 if yyr2 || yy2arr2 { 98130 if yyn33 { 98131 r.WriteArrayElem() 98132 r.EncodeNil() 98133 } else { 98134 r.WriteArrayElem() 98135 if yyq2[10] { 98136 if x.SharedResources == nil { 98137 r.EncodeNil() 98138 } else { 98139 x.SharedResources.CodecEncodeSelf(e) 98140 } 98141 } else { 98142 r.EncodeNil() 98143 } 98144 } 98145 } else { 98146 if yyq2[10] { 98147 r.WriteMapElemKey() 98148 if z.IsJSONHandle() { 98149 z.WriteStr("\"SharedResources\"") 98150 } else { 98151 r.EncodeStringEnc(codecSelferCcUTF8100, `SharedResources`) 98152 } 98153 r.WriteMapElemValue() 98154 if yyn33 { 98155 r.EncodeNil() 98156 } else { 98157 if x.SharedResources == nil { 98158 r.EncodeNil() 98159 } else { 98160 x.SharedResources.CodecEncodeSelf(e) 98161 } 98162 } 98163 } 98164 } 98165 if yyr2 || yy2arr2 { 98166 r.WriteArrayElem() 98167 if yyq2[11] { 98168 if x.TaskResources == nil { 98169 r.EncodeNil() 98170 } else { 98171 if false { 98172 } else { 98173 h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) 98174 } 98175 } 98176 } else { 98177 r.EncodeNil() 98178 } 98179 } else { 98180 if yyq2[11] { 98181 r.WriteMapElemKey() 98182 if z.IsJSONHandle() { 98183 z.WriteStr("\"TaskResources\"") 98184 } else { 98185 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskResources`) 98186 } 98187 r.WriteMapElemValue() 98188 if x.TaskResources == nil { 98189 r.EncodeNil() 98190 } else { 98191 if false { 98192 } else { 98193 h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) 98194 } 98195 } 98196 } 98197 } 98198 var yyn39 bool 98199 if x.AllocatedResources == nil { 98200 yyn39 = true 98201 goto LABEL39 98202 } 98203 LABEL39: 98204 if yyr2 || yy2arr2 { 98205 if yyn39 { 98206 r.WriteArrayElem() 98207 r.EncodeNil() 98208 } else { 98209 r.WriteArrayElem() 98210 if yyq2[12] { 98211 if x.AllocatedResources == nil { 98212 r.EncodeNil() 98213 } else { 98214 x.AllocatedResources.CodecEncodeSelf(e) 98215 } 98216 } else { 98217 r.EncodeNil() 98218 } 98219 } 98220 } else { 98221 if yyq2[12] { 98222 r.WriteMapElemKey() 98223 if z.IsJSONHandle() { 98224 z.WriteStr("\"AllocatedResources\"") 98225 } else { 98226 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocatedResources`) 98227 } 98228 r.WriteMapElemValue() 98229 if yyn39 { 98230 r.EncodeNil() 98231 } else { 98232 if x.AllocatedResources == nil { 98233 r.EncodeNil() 98234 } else { 98235 x.AllocatedResources.CodecEncodeSelf(e) 98236 } 98237 } 98238 } 98239 } 98240 var yyn42 bool 98241 if x.Metrics == nil { 98242 yyn42 = true 98243 goto LABEL42 98244 } 98245 LABEL42: 98246 if yyr2 || yy2arr2 { 98247 if yyn42 { 98248 r.WriteArrayElem() 98249 r.EncodeNil() 98250 } else { 98251 r.WriteArrayElem() 98252 if yyq2[13] { 98253 if x.Metrics == nil { 98254 r.EncodeNil() 98255 } else { 98256 x.Metrics.CodecEncodeSelf(e) 98257 } 98258 } else { 98259 r.EncodeNil() 98260 } 98261 } 98262 } else { 98263 if yyq2[13] { 98264 r.WriteMapElemKey() 98265 if z.IsJSONHandle() { 98266 z.WriteStr("\"Metrics\"") 98267 } else { 98268 r.EncodeStringEnc(codecSelferCcUTF8100, `Metrics`) 98269 } 98270 r.WriteMapElemValue() 98271 if yyn42 { 98272 r.EncodeNil() 98273 } else { 98274 if x.Metrics == nil { 98275 r.EncodeNil() 98276 } else { 98277 x.Metrics.CodecEncodeSelf(e) 98278 } 98279 } 98280 } 98281 } 98282 if yyr2 || yy2arr2 { 98283 r.WriteArrayElem() 98284 if yyq2[14] { 98285 if false { 98286 } else { 98287 if z.EncBasicHandle().StringToRaw { 98288 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) 98289 } else { 98290 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) 98291 } 98292 } 98293 } else { 98294 if z.EncBasicHandle().StringToRaw { 98295 r.EncodeStringBytesRaw([]byte{}) 98296 } else { 98297 r.EncodeStringEnc(codecSelferCcUTF8100, "") 98298 } 98299 } 98300 } else { 98301 if yyq2[14] { 98302 r.WriteMapElemKey() 98303 if z.IsJSONHandle() { 98304 z.WriteStr("\"DesiredStatus\"") 98305 } else { 98306 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredStatus`) 98307 } 98308 r.WriteMapElemValue() 98309 if false { 98310 } else { 98311 if z.EncBasicHandle().StringToRaw { 98312 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) 98313 } else { 98314 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) 98315 } 98316 } 98317 } 98318 } 98319 if yyr2 || yy2arr2 { 98320 r.WriteArrayElem() 98321 if yyq2[15] { 98322 if false { 98323 } else { 98324 if z.EncBasicHandle().StringToRaw { 98325 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) 98326 } else { 98327 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) 98328 } 98329 } 98330 } else { 98331 if z.EncBasicHandle().StringToRaw { 98332 r.EncodeStringBytesRaw([]byte{}) 98333 } else { 98334 r.EncodeStringEnc(codecSelferCcUTF8100, "") 98335 } 98336 } 98337 } else { 98338 if yyq2[15] { 98339 r.WriteMapElemKey() 98340 if z.IsJSONHandle() { 98341 z.WriteStr("\"DesiredDescription\"") 98342 } else { 98343 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredDescription`) 98344 } 98345 r.WriteMapElemValue() 98346 if false { 98347 } else { 98348 if z.EncBasicHandle().StringToRaw { 98349 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) 98350 } else { 98351 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) 98352 } 98353 } 98354 } 98355 } 98356 if yyr2 || yy2arr2 { 98357 r.WriteArrayElem() 98358 if yyq2[16] { 98359 yy52 := &x.DesiredTransition 98360 yy52.CodecEncodeSelf(e) 98361 } else { 98362 r.EncodeNil() 98363 } 98364 } else { 98365 if yyq2[16] { 98366 r.WriteMapElemKey() 98367 if z.IsJSONHandle() { 98368 z.WriteStr("\"DesiredTransition\"") 98369 } else { 98370 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTransition`) 98371 } 98372 r.WriteMapElemValue() 98373 yy54 := &x.DesiredTransition 98374 yy54.CodecEncodeSelf(e) 98375 } 98376 } 98377 if yyr2 || yy2arr2 { 98378 r.WriteArrayElem() 98379 if yyq2[17] { 98380 if false { 98381 } else { 98382 if z.EncBasicHandle().StringToRaw { 98383 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) 98384 } else { 98385 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) 98386 } 98387 } 98388 } else { 98389 if z.EncBasicHandle().StringToRaw { 98390 r.EncodeStringBytesRaw([]byte{}) 98391 } else { 98392 r.EncodeStringEnc(codecSelferCcUTF8100, "") 98393 } 98394 } 98395 } else { 98396 if yyq2[17] { 98397 r.WriteMapElemKey() 98398 if z.IsJSONHandle() { 98399 z.WriteStr("\"ClientStatus\"") 98400 } else { 98401 r.EncodeStringEnc(codecSelferCcUTF8100, `ClientStatus`) 98402 } 98403 r.WriteMapElemValue() 98404 if false { 98405 } else { 98406 if z.EncBasicHandle().StringToRaw { 98407 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) 98408 } else { 98409 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) 98410 } 98411 } 98412 } 98413 } 98414 if yyr2 || yy2arr2 { 98415 r.WriteArrayElem() 98416 if yyq2[18] { 98417 if false { 98418 } else { 98419 if z.EncBasicHandle().StringToRaw { 98420 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) 98421 } else { 98422 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) 98423 } 98424 } 98425 } else { 98426 if z.EncBasicHandle().StringToRaw { 98427 r.EncodeStringBytesRaw([]byte{}) 98428 } else { 98429 r.EncodeStringEnc(codecSelferCcUTF8100, "") 98430 } 98431 } 98432 } else { 98433 if yyq2[18] { 98434 r.WriteMapElemKey() 98435 if z.IsJSONHandle() { 98436 z.WriteStr("\"ClientDescription\"") 98437 } else { 98438 r.EncodeStringEnc(codecSelferCcUTF8100, `ClientDescription`) 98439 } 98440 r.WriteMapElemValue() 98441 if false { 98442 } else { 98443 if z.EncBasicHandle().StringToRaw { 98444 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) 98445 } else { 98446 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) 98447 } 98448 } 98449 } 98450 } 98451 if yyr2 || yy2arr2 { 98452 r.WriteArrayElem() 98453 if yyq2[19] { 98454 if x.TaskStates == nil { 98455 r.EncodeNil() 98456 } else { 98457 if false { 98458 } else { 98459 h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) 98460 } 98461 } 98462 } else { 98463 r.EncodeNil() 98464 } 98465 } else { 98466 if yyq2[19] { 98467 r.WriteMapElemKey() 98468 if z.IsJSONHandle() { 98469 z.WriteStr("\"TaskStates\"") 98470 } else { 98471 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskStates`) 98472 } 98473 r.WriteMapElemValue() 98474 if x.TaskStates == nil { 98475 r.EncodeNil() 98476 } else { 98477 if false { 98478 } else { 98479 h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) 98480 } 98481 } 98482 } 98483 } 98484 if yyr2 || yy2arr2 { 98485 r.WriteArrayElem() 98486 if yyq2[20] { 98487 if false { 98488 } else { 98489 if z.EncBasicHandle().StringToRaw { 98490 r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousAllocation))) 98491 } else { 98492 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousAllocation)) 98493 } 98494 } 98495 } else { 98496 if z.EncBasicHandle().StringToRaw { 98497 r.EncodeStringBytesRaw([]byte{}) 98498 } else { 98499 r.EncodeStringEnc(codecSelferCcUTF8100, "") 98500 } 98501 } 98502 } else { 98503 if yyq2[20] { 98504 r.WriteMapElemKey() 98505 if z.IsJSONHandle() { 98506 z.WriteStr("\"PreviousAllocation\"") 98507 } else { 98508 r.EncodeStringEnc(codecSelferCcUTF8100, `PreviousAllocation`) 98509 } 98510 r.WriteMapElemValue() 98511 if false { 98512 } else { 98513 if z.EncBasicHandle().StringToRaw { 98514 r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousAllocation))) 98515 } else { 98516 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousAllocation)) 98517 } 98518 } 98519 } 98520 } 98521 if yyr2 || yy2arr2 { 98522 r.WriteArrayElem() 98523 if yyq2[21] { 98524 if false { 98525 } else { 98526 if z.EncBasicHandle().StringToRaw { 98527 r.EncodeStringBytesRaw(z.BytesView(string(x.NextAllocation))) 98528 } else { 98529 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextAllocation)) 98530 } 98531 } 98532 } else { 98533 if z.EncBasicHandle().StringToRaw { 98534 r.EncodeStringBytesRaw([]byte{}) 98535 } else { 98536 r.EncodeStringEnc(codecSelferCcUTF8100, "") 98537 } 98538 } 98539 } else { 98540 if yyq2[21] { 98541 r.WriteMapElemKey() 98542 if z.IsJSONHandle() { 98543 z.WriteStr("\"NextAllocation\"") 98544 } else { 98545 r.EncodeStringEnc(codecSelferCcUTF8100, `NextAllocation`) 98546 } 98547 r.WriteMapElemValue() 98548 if false { 98549 } else { 98550 if z.EncBasicHandle().StringToRaw { 98551 r.EncodeStringBytesRaw(z.BytesView(string(x.NextAllocation))) 98552 } else { 98553 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextAllocation)) 98554 } 98555 } 98556 } 98557 } 98558 if yyr2 || yy2arr2 { 98559 r.WriteArrayElem() 98560 if yyq2[22] { 98561 if false { 98562 } else { 98563 if z.EncBasicHandle().StringToRaw { 98564 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 98565 } else { 98566 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 98567 } 98568 } 98569 } else { 98570 if z.EncBasicHandle().StringToRaw { 98571 r.EncodeStringBytesRaw([]byte{}) 98572 } else { 98573 r.EncodeStringEnc(codecSelferCcUTF8100, "") 98574 } 98575 } 98576 } else { 98577 if yyq2[22] { 98578 r.WriteMapElemKey() 98579 if z.IsJSONHandle() { 98580 z.WriteStr("\"DeploymentID\"") 98581 } else { 98582 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 98583 } 98584 r.WriteMapElemValue() 98585 if false { 98586 } else { 98587 if z.EncBasicHandle().StringToRaw { 98588 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 98589 } else { 98590 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 98591 } 98592 } 98593 } 98594 } 98595 var yyn74 bool 98596 if x.DeploymentStatus == nil { 98597 yyn74 = true 98598 goto LABEL74 98599 } 98600 LABEL74: 98601 if yyr2 || yy2arr2 { 98602 if yyn74 { 98603 r.WriteArrayElem() 98604 r.EncodeNil() 98605 } else { 98606 r.WriteArrayElem() 98607 if yyq2[23] { 98608 if x.DeploymentStatus == nil { 98609 r.EncodeNil() 98610 } else { 98611 x.DeploymentStatus.CodecEncodeSelf(e) 98612 } 98613 } else { 98614 r.EncodeNil() 98615 } 98616 } 98617 } else { 98618 if yyq2[23] { 98619 r.WriteMapElemKey() 98620 if z.IsJSONHandle() { 98621 z.WriteStr("\"DeploymentStatus\"") 98622 } else { 98623 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentStatus`) 98624 } 98625 r.WriteMapElemValue() 98626 if yyn74 { 98627 r.EncodeNil() 98628 } else { 98629 if x.DeploymentStatus == nil { 98630 r.EncodeNil() 98631 } else { 98632 x.DeploymentStatus.CodecEncodeSelf(e) 98633 } 98634 } 98635 } 98636 } 98637 var yyn77 bool 98638 if x.RescheduleTracker == nil { 98639 yyn77 = true 98640 goto LABEL77 98641 } 98642 LABEL77: 98643 if yyr2 || yy2arr2 { 98644 if yyn77 { 98645 r.WriteArrayElem() 98646 r.EncodeNil() 98647 } else { 98648 r.WriteArrayElem() 98649 if yyq2[24] { 98650 if x.RescheduleTracker == nil { 98651 r.EncodeNil() 98652 } else { 98653 x.RescheduleTracker.CodecEncodeSelf(e) 98654 } 98655 } else { 98656 r.EncodeNil() 98657 } 98658 } 98659 } else { 98660 if yyq2[24] { 98661 r.WriteMapElemKey() 98662 if z.IsJSONHandle() { 98663 z.WriteStr("\"RescheduleTracker\"") 98664 } else { 98665 r.EncodeStringEnc(codecSelferCcUTF8100, `RescheduleTracker`) 98666 } 98667 r.WriteMapElemValue() 98668 if yyn77 { 98669 r.EncodeNil() 98670 } else { 98671 if x.RescheduleTracker == nil { 98672 r.EncodeNil() 98673 } else { 98674 x.RescheduleTracker.CodecEncodeSelf(e) 98675 } 98676 } 98677 } 98678 } 98679 if yyr2 || yy2arr2 { 98680 r.WriteArrayElem() 98681 if yyq2[25] { 98682 if false { 98683 } else { 98684 if z.EncBasicHandle().StringToRaw { 98685 r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) 98686 } else { 98687 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) 98688 } 98689 } 98690 } else { 98691 if z.EncBasicHandle().StringToRaw { 98692 r.EncodeStringBytesRaw([]byte{}) 98693 } else { 98694 r.EncodeStringEnc(codecSelferCcUTF8100, "") 98695 } 98696 } 98697 } else { 98698 if yyq2[25] { 98699 r.WriteMapElemKey() 98700 if z.IsJSONHandle() { 98701 z.WriteStr("\"FollowupEvalID\"") 98702 } else { 98703 r.EncodeStringEnc(codecSelferCcUTF8100, `FollowupEvalID`) 98704 } 98705 r.WriteMapElemValue() 98706 if false { 98707 } else { 98708 if z.EncBasicHandle().StringToRaw { 98709 r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) 98710 } else { 98711 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) 98712 } 98713 } 98714 } 98715 } 98716 if yyr2 || yy2arr2 { 98717 r.WriteArrayElem() 98718 if yyq2[26] { 98719 if x.PreemptedAllocations == nil { 98720 r.EncodeNil() 98721 } else { 98722 if false { 98723 } else { 98724 z.F.EncSliceStringV(x.PreemptedAllocations, e) 98725 } 98726 } 98727 } else { 98728 r.EncodeNil() 98729 } 98730 } else { 98731 if yyq2[26] { 98732 r.WriteMapElemKey() 98733 if z.IsJSONHandle() { 98734 z.WriteStr("\"PreemptedAllocations\"") 98735 } else { 98736 r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedAllocations`) 98737 } 98738 r.WriteMapElemValue() 98739 if x.PreemptedAllocations == nil { 98740 r.EncodeNil() 98741 } else { 98742 if false { 98743 } else { 98744 z.F.EncSliceStringV(x.PreemptedAllocations, e) 98745 } 98746 } 98747 } 98748 } 98749 if yyr2 || yy2arr2 { 98750 r.WriteArrayElem() 98751 if yyq2[27] { 98752 if false { 98753 } else { 98754 if z.EncBasicHandle().StringToRaw { 98755 r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) 98756 } else { 98757 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) 98758 } 98759 } 98760 } else { 98761 if z.EncBasicHandle().StringToRaw { 98762 r.EncodeStringBytesRaw([]byte{}) 98763 } else { 98764 r.EncodeStringEnc(codecSelferCcUTF8100, "") 98765 } 98766 } 98767 } else { 98768 if yyq2[27] { 98769 r.WriteMapElemKey() 98770 if z.IsJSONHandle() { 98771 z.WriteStr("\"PreemptedByAllocation\"") 98772 } else { 98773 r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedByAllocation`) 98774 } 98775 r.WriteMapElemValue() 98776 if false { 98777 } else { 98778 if z.EncBasicHandle().StringToRaw { 98779 r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) 98780 } else { 98781 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) 98782 } 98783 } 98784 } 98785 } 98786 if yyr2 || yy2arr2 { 98787 r.WriteArrayElem() 98788 if yyq2[28] { 98789 if false { 98790 } else { 98791 r.EncodeUint(uint64(x.CreateIndex)) 98792 } 98793 } else { 98794 r.EncodeUint(0) 98795 } 98796 } else { 98797 if yyq2[28] { 98798 r.WriteMapElemKey() 98799 if z.IsJSONHandle() { 98800 z.WriteStr("\"CreateIndex\"") 98801 } else { 98802 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 98803 } 98804 r.WriteMapElemValue() 98805 if false { 98806 } else { 98807 r.EncodeUint(uint64(x.CreateIndex)) 98808 } 98809 } 98810 } 98811 if yyr2 || yy2arr2 { 98812 r.WriteArrayElem() 98813 if yyq2[29] { 98814 if false { 98815 } else { 98816 r.EncodeUint(uint64(x.ModifyIndex)) 98817 } 98818 } else { 98819 r.EncodeUint(0) 98820 } 98821 } else { 98822 if yyq2[29] { 98823 r.WriteMapElemKey() 98824 if z.IsJSONHandle() { 98825 z.WriteStr("\"ModifyIndex\"") 98826 } else { 98827 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 98828 } 98829 r.WriteMapElemValue() 98830 if false { 98831 } else { 98832 r.EncodeUint(uint64(x.ModifyIndex)) 98833 } 98834 } 98835 } 98836 if yyr2 || yy2arr2 { 98837 r.WriteArrayElem() 98838 if yyq2[30] { 98839 if false { 98840 } else { 98841 r.EncodeUint(uint64(x.AllocModifyIndex)) 98842 } 98843 } else { 98844 r.EncodeUint(0) 98845 } 98846 } else { 98847 if yyq2[30] { 98848 r.WriteMapElemKey() 98849 if z.IsJSONHandle() { 98850 z.WriteStr("\"AllocModifyIndex\"") 98851 } else { 98852 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocModifyIndex`) 98853 } 98854 r.WriteMapElemValue() 98855 if false { 98856 } else { 98857 r.EncodeUint(uint64(x.AllocModifyIndex)) 98858 } 98859 } 98860 } 98861 if yyr2 || yy2arr2 { 98862 r.WriteArrayElem() 98863 if yyq2[31] { 98864 if false { 98865 } else { 98866 r.EncodeInt(int64(x.CreateTime)) 98867 } 98868 } else { 98869 r.EncodeInt(0) 98870 } 98871 } else { 98872 if yyq2[31] { 98873 r.WriteMapElemKey() 98874 if z.IsJSONHandle() { 98875 z.WriteStr("\"CreateTime\"") 98876 } else { 98877 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) 98878 } 98879 r.WriteMapElemValue() 98880 if false { 98881 } else { 98882 r.EncodeInt(int64(x.CreateTime)) 98883 } 98884 } 98885 } 98886 if yyr2 || yy2arr2 { 98887 r.WriteArrayElem() 98888 if yyq2[32] { 98889 if false { 98890 } else { 98891 r.EncodeInt(int64(x.ModifyTime)) 98892 } 98893 } else { 98894 r.EncodeInt(0) 98895 } 98896 } else { 98897 if yyq2[32] { 98898 r.WriteMapElemKey() 98899 if z.IsJSONHandle() { 98900 z.WriteStr("\"ModifyTime\"") 98901 } else { 98902 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) 98903 } 98904 r.WriteMapElemValue() 98905 if false { 98906 } else { 98907 r.EncodeInt(int64(x.ModifyTime)) 98908 } 98909 } 98910 } 98911 if yyr2 || yy2arr2 { 98912 r.WriteArrayEnd() 98913 } else { 98914 r.WriteMapEnd() 98915 } 98916 } 98917 } 98918 } 98919 98920 func (x *Allocation) CodecDecodeSelf(d *codec1978.Decoder) { 98921 var h codecSelfer100 98922 z, r := codec1978.GenHelperDecoder(d) 98923 _, _, _ = h, z, r 98924 if false { 98925 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 98926 z.DecExtension(x, yyxt1) 98927 } else { 98928 yyct2 := r.ContainerType() 98929 if yyct2 == codecSelferValueTypeMap100 { 98930 yyl2 := r.ReadMapStart() 98931 if yyl2 == 0 { 98932 r.ReadMapEnd() 98933 } else { 98934 x.codecDecodeSelfFromMap(yyl2, d) 98935 } 98936 } else if yyct2 == codecSelferValueTypeArray100 { 98937 yyl2 := r.ReadArrayStart() 98938 if yyl2 == 0 { 98939 r.ReadArrayEnd() 98940 } else { 98941 x.codecDecodeSelfFromArray(yyl2, d) 98942 } 98943 } else { 98944 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 98945 } 98946 } 98947 } 98948 98949 func (x *Allocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 98950 var h codecSelfer100 98951 z, r := codec1978.GenHelperDecoder(d) 98952 _, _, _ = h, z, r 98953 var yyhl3 bool = l >= 0 98954 for yyj3 := 0; ; yyj3++ { 98955 if yyhl3 { 98956 if yyj3 >= l { 98957 break 98958 } 98959 } else { 98960 if r.CheckBreak() { 98961 break 98962 } 98963 } 98964 r.ReadMapElemKey() 98965 yys3 := z.StringView(r.DecodeStringAsBytes()) 98966 r.ReadMapElemValue() 98967 switch yys3 { 98968 case "ID": 98969 if r.TryDecodeAsNil() { 98970 x.ID = "" 98971 } else { 98972 x.ID = (string)(r.DecodeString()) 98973 } 98974 case "Namespace": 98975 if r.TryDecodeAsNil() { 98976 x.Namespace = "" 98977 } else { 98978 x.Namespace = (string)(r.DecodeString()) 98979 } 98980 case "EvalID": 98981 if r.TryDecodeAsNil() { 98982 x.EvalID = "" 98983 } else { 98984 x.EvalID = (string)(r.DecodeString()) 98985 } 98986 case "Name": 98987 if r.TryDecodeAsNil() { 98988 x.Name = "" 98989 } else { 98990 x.Name = (string)(r.DecodeString()) 98991 } 98992 case "NodeID": 98993 if r.TryDecodeAsNil() { 98994 x.NodeID = "" 98995 } else { 98996 x.NodeID = (string)(r.DecodeString()) 98997 } 98998 case "NodeName": 98999 if r.TryDecodeAsNil() { 99000 x.NodeName = "" 99001 } else { 99002 x.NodeName = (string)(r.DecodeString()) 99003 } 99004 case "JobID": 99005 if r.TryDecodeAsNil() { 99006 x.JobID = "" 99007 } else { 99008 x.JobID = (string)(r.DecodeString()) 99009 } 99010 case "Job": 99011 if r.TryDecodeAsNil() { 99012 if true && x.Job != nil { 99013 x.Job = nil 99014 } 99015 } else { 99016 if x.Job == nil { 99017 x.Job = new(Job) 99018 } 99019 99020 x.Job.CodecDecodeSelf(d) 99021 } 99022 case "TaskGroup": 99023 if r.TryDecodeAsNil() { 99024 x.TaskGroup = "" 99025 } else { 99026 x.TaskGroup = (string)(r.DecodeString()) 99027 } 99028 case "Resources": 99029 if r.TryDecodeAsNil() { 99030 if true && x.Resources != nil { 99031 x.Resources = nil 99032 } 99033 } else { 99034 if x.Resources == nil { 99035 x.Resources = new(Resources) 99036 } 99037 99038 x.Resources.CodecDecodeSelf(d) 99039 } 99040 case "SharedResources": 99041 if r.TryDecodeAsNil() { 99042 if true && x.SharedResources != nil { 99043 x.SharedResources = nil 99044 } 99045 } else { 99046 if x.SharedResources == nil { 99047 x.SharedResources = new(Resources) 99048 } 99049 99050 x.SharedResources.CodecDecodeSelf(d) 99051 } 99052 case "TaskResources": 99053 if r.TryDecodeAsNil() { 99054 x.TaskResources = nil 99055 } else { 99056 if false { 99057 } else { 99058 h.decMapstringPtrtoResources((*map[string]*Resources)(&x.TaskResources), d) 99059 } 99060 } 99061 case "AllocatedResources": 99062 if r.TryDecodeAsNil() { 99063 if true && x.AllocatedResources != nil { 99064 x.AllocatedResources = nil 99065 } 99066 } else { 99067 if x.AllocatedResources == nil { 99068 x.AllocatedResources = new(AllocatedResources) 99069 } 99070 99071 x.AllocatedResources.CodecDecodeSelf(d) 99072 } 99073 case "Metrics": 99074 if r.TryDecodeAsNil() { 99075 if true && x.Metrics != nil { 99076 x.Metrics = nil 99077 } 99078 } else { 99079 if x.Metrics == nil { 99080 x.Metrics = new(AllocMetric) 99081 } 99082 99083 x.Metrics.CodecDecodeSelf(d) 99084 } 99085 case "DesiredStatus": 99086 if r.TryDecodeAsNil() { 99087 x.DesiredStatus = "" 99088 } else { 99089 x.DesiredStatus = (string)(r.DecodeString()) 99090 } 99091 case "DesiredDescription": 99092 if r.TryDecodeAsNil() { 99093 x.DesiredDescription = "" 99094 } else { 99095 x.DesiredDescription = (string)(r.DecodeString()) 99096 } 99097 case "DesiredTransition": 99098 if r.TryDecodeAsNil() { 99099 x.DesiredTransition = DesiredTransition{} 99100 } else { 99101 x.DesiredTransition.CodecDecodeSelf(d) 99102 } 99103 case "ClientStatus": 99104 if r.TryDecodeAsNil() { 99105 x.ClientStatus = "" 99106 } else { 99107 x.ClientStatus = (string)(r.DecodeString()) 99108 } 99109 case "ClientDescription": 99110 if r.TryDecodeAsNil() { 99111 x.ClientDescription = "" 99112 } else { 99113 x.ClientDescription = (string)(r.DecodeString()) 99114 } 99115 case "TaskStates": 99116 if r.TryDecodeAsNil() { 99117 x.TaskStates = nil 99118 } else { 99119 if false { 99120 } else { 99121 h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) 99122 } 99123 } 99124 case "PreviousAllocation": 99125 if r.TryDecodeAsNil() { 99126 x.PreviousAllocation = "" 99127 } else { 99128 x.PreviousAllocation = (string)(r.DecodeString()) 99129 } 99130 case "NextAllocation": 99131 if r.TryDecodeAsNil() { 99132 x.NextAllocation = "" 99133 } else { 99134 x.NextAllocation = (string)(r.DecodeString()) 99135 } 99136 case "DeploymentID": 99137 if r.TryDecodeAsNil() { 99138 x.DeploymentID = "" 99139 } else { 99140 x.DeploymentID = (string)(r.DecodeString()) 99141 } 99142 case "DeploymentStatus": 99143 if r.TryDecodeAsNil() { 99144 if true && x.DeploymentStatus != nil { 99145 x.DeploymentStatus = nil 99146 } 99147 } else { 99148 if x.DeploymentStatus == nil { 99149 x.DeploymentStatus = new(AllocDeploymentStatus) 99150 } 99151 99152 x.DeploymentStatus.CodecDecodeSelf(d) 99153 } 99154 case "RescheduleTracker": 99155 if r.TryDecodeAsNil() { 99156 if true && x.RescheduleTracker != nil { 99157 x.RescheduleTracker = nil 99158 } 99159 } else { 99160 if x.RescheduleTracker == nil { 99161 x.RescheduleTracker = new(RescheduleTracker) 99162 } 99163 99164 x.RescheduleTracker.CodecDecodeSelf(d) 99165 } 99166 case "FollowupEvalID": 99167 if r.TryDecodeAsNil() { 99168 x.FollowupEvalID = "" 99169 } else { 99170 x.FollowupEvalID = (string)(r.DecodeString()) 99171 } 99172 case "PreemptedAllocations": 99173 if r.TryDecodeAsNil() { 99174 x.PreemptedAllocations = nil 99175 } else { 99176 if false { 99177 } else { 99178 z.F.DecSliceStringX(&x.PreemptedAllocations, d) 99179 } 99180 } 99181 case "PreemptedByAllocation": 99182 if r.TryDecodeAsNil() { 99183 x.PreemptedByAllocation = "" 99184 } else { 99185 x.PreemptedByAllocation = (string)(r.DecodeString()) 99186 } 99187 case "CreateIndex": 99188 if r.TryDecodeAsNil() { 99189 x.CreateIndex = 0 99190 } else { 99191 x.CreateIndex = (uint64)(r.DecodeUint64()) 99192 } 99193 case "ModifyIndex": 99194 if r.TryDecodeAsNil() { 99195 x.ModifyIndex = 0 99196 } else { 99197 x.ModifyIndex = (uint64)(r.DecodeUint64()) 99198 } 99199 case "AllocModifyIndex": 99200 if r.TryDecodeAsNil() { 99201 x.AllocModifyIndex = 0 99202 } else { 99203 x.AllocModifyIndex = (uint64)(r.DecodeUint64()) 99204 } 99205 case "CreateTime": 99206 if r.TryDecodeAsNil() { 99207 x.CreateTime = 0 99208 } else { 99209 x.CreateTime = (int64)(r.DecodeInt64()) 99210 } 99211 case "ModifyTime": 99212 if r.TryDecodeAsNil() { 99213 x.ModifyTime = 0 99214 } else { 99215 x.ModifyTime = (int64)(r.DecodeInt64()) 99216 } 99217 default: 99218 z.DecStructFieldNotFound(-1, yys3) 99219 } // end switch yys3 99220 } // end for yyj3 99221 r.ReadMapEnd() 99222 } 99223 99224 func (x *Allocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 99225 var h codecSelfer100 99226 z, r := codec1978.GenHelperDecoder(d) 99227 _, _, _ = h, z, r 99228 var yyj40 int 99229 var yyb40 bool 99230 var yyhl40 bool = l >= 0 99231 yyj40++ 99232 if yyhl40 { 99233 yyb40 = yyj40 > l 99234 } else { 99235 yyb40 = r.CheckBreak() 99236 } 99237 if yyb40 { 99238 r.ReadArrayEnd() 99239 return 99240 } 99241 r.ReadArrayElem() 99242 if r.TryDecodeAsNil() { 99243 x.ID = "" 99244 } else { 99245 x.ID = (string)(r.DecodeString()) 99246 } 99247 yyj40++ 99248 if yyhl40 { 99249 yyb40 = yyj40 > l 99250 } else { 99251 yyb40 = r.CheckBreak() 99252 } 99253 if yyb40 { 99254 r.ReadArrayEnd() 99255 return 99256 } 99257 r.ReadArrayElem() 99258 if r.TryDecodeAsNil() { 99259 x.Namespace = "" 99260 } else { 99261 x.Namespace = (string)(r.DecodeString()) 99262 } 99263 yyj40++ 99264 if yyhl40 { 99265 yyb40 = yyj40 > l 99266 } else { 99267 yyb40 = r.CheckBreak() 99268 } 99269 if yyb40 { 99270 r.ReadArrayEnd() 99271 return 99272 } 99273 r.ReadArrayElem() 99274 if r.TryDecodeAsNil() { 99275 x.EvalID = "" 99276 } else { 99277 x.EvalID = (string)(r.DecodeString()) 99278 } 99279 yyj40++ 99280 if yyhl40 { 99281 yyb40 = yyj40 > l 99282 } else { 99283 yyb40 = r.CheckBreak() 99284 } 99285 if yyb40 { 99286 r.ReadArrayEnd() 99287 return 99288 } 99289 r.ReadArrayElem() 99290 if r.TryDecodeAsNil() { 99291 x.Name = "" 99292 } else { 99293 x.Name = (string)(r.DecodeString()) 99294 } 99295 yyj40++ 99296 if yyhl40 { 99297 yyb40 = yyj40 > l 99298 } else { 99299 yyb40 = r.CheckBreak() 99300 } 99301 if yyb40 { 99302 r.ReadArrayEnd() 99303 return 99304 } 99305 r.ReadArrayElem() 99306 if r.TryDecodeAsNil() { 99307 x.NodeID = "" 99308 } else { 99309 x.NodeID = (string)(r.DecodeString()) 99310 } 99311 yyj40++ 99312 if yyhl40 { 99313 yyb40 = yyj40 > l 99314 } else { 99315 yyb40 = r.CheckBreak() 99316 } 99317 if yyb40 { 99318 r.ReadArrayEnd() 99319 return 99320 } 99321 r.ReadArrayElem() 99322 if r.TryDecodeAsNil() { 99323 x.NodeName = "" 99324 } else { 99325 x.NodeName = (string)(r.DecodeString()) 99326 } 99327 yyj40++ 99328 if yyhl40 { 99329 yyb40 = yyj40 > l 99330 } else { 99331 yyb40 = r.CheckBreak() 99332 } 99333 if yyb40 { 99334 r.ReadArrayEnd() 99335 return 99336 } 99337 r.ReadArrayElem() 99338 if r.TryDecodeAsNil() { 99339 x.JobID = "" 99340 } else { 99341 x.JobID = (string)(r.DecodeString()) 99342 } 99343 yyj40++ 99344 if yyhl40 { 99345 yyb40 = yyj40 > l 99346 } else { 99347 yyb40 = r.CheckBreak() 99348 } 99349 if yyb40 { 99350 r.ReadArrayEnd() 99351 return 99352 } 99353 r.ReadArrayElem() 99354 if r.TryDecodeAsNil() { 99355 if true && x.Job != nil { 99356 x.Job = nil 99357 } 99358 } else { 99359 if x.Job == nil { 99360 x.Job = new(Job) 99361 } 99362 99363 x.Job.CodecDecodeSelf(d) 99364 } 99365 yyj40++ 99366 if yyhl40 { 99367 yyb40 = yyj40 > l 99368 } else { 99369 yyb40 = r.CheckBreak() 99370 } 99371 if yyb40 { 99372 r.ReadArrayEnd() 99373 return 99374 } 99375 r.ReadArrayElem() 99376 if r.TryDecodeAsNil() { 99377 x.TaskGroup = "" 99378 } else { 99379 x.TaskGroup = (string)(r.DecodeString()) 99380 } 99381 yyj40++ 99382 if yyhl40 { 99383 yyb40 = yyj40 > l 99384 } else { 99385 yyb40 = r.CheckBreak() 99386 } 99387 if yyb40 { 99388 r.ReadArrayEnd() 99389 return 99390 } 99391 r.ReadArrayElem() 99392 if r.TryDecodeAsNil() { 99393 if true && x.Resources != nil { 99394 x.Resources = nil 99395 } 99396 } else { 99397 if x.Resources == nil { 99398 x.Resources = new(Resources) 99399 } 99400 99401 x.Resources.CodecDecodeSelf(d) 99402 } 99403 yyj40++ 99404 if yyhl40 { 99405 yyb40 = yyj40 > l 99406 } else { 99407 yyb40 = r.CheckBreak() 99408 } 99409 if yyb40 { 99410 r.ReadArrayEnd() 99411 return 99412 } 99413 r.ReadArrayElem() 99414 if r.TryDecodeAsNil() { 99415 if true && x.SharedResources != nil { 99416 x.SharedResources = nil 99417 } 99418 } else { 99419 if x.SharedResources == nil { 99420 x.SharedResources = new(Resources) 99421 } 99422 99423 x.SharedResources.CodecDecodeSelf(d) 99424 } 99425 yyj40++ 99426 if yyhl40 { 99427 yyb40 = yyj40 > l 99428 } else { 99429 yyb40 = r.CheckBreak() 99430 } 99431 if yyb40 { 99432 r.ReadArrayEnd() 99433 return 99434 } 99435 r.ReadArrayElem() 99436 if r.TryDecodeAsNil() { 99437 x.TaskResources = nil 99438 } else { 99439 if false { 99440 } else { 99441 h.decMapstringPtrtoResources((*map[string]*Resources)(&x.TaskResources), d) 99442 } 99443 } 99444 yyj40++ 99445 if yyhl40 { 99446 yyb40 = yyj40 > l 99447 } else { 99448 yyb40 = r.CheckBreak() 99449 } 99450 if yyb40 { 99451 r.ReadArrayEnd() 99452 return 99453 } 99454 r.ReadArrayElem() 99455 if r.TryDecodeAsNil() { 99456 if true && x.AllocatedResources != nil { 99457 x.AllocatedResources = nil 99458 } 99459 } else { 99460 if x.AllocatedResources == nil { 99461 x.AllocatedResources = new(AllocatedResources) 99462 } 99463 99464 x.AllocatedResources.CodecDecodeSelf(d) 99465 } 99466 yyj40++ 99467 if yyhl40 { 99468 yyb40 = yyj40 > l 99469 } else { 99470 yyb40 = r.CheckBreak() 99471 } 99472 if yyb40 { 99473 r.ReadArrayEnd() 99474 return 99475 } 99476 r.ReadArrayElem() 99477 if r.TryDecodeAsNil() { 99478 if true && x.Metrics != nil { 99479 x.Metrics = nil 99480 } 99481 } else { 99482 if x.Metrics == nil { 99483 x.Metrics = new(AllocMetric) 99484 } 99485 99486 x.Metrics.CodecDecodeSelf(d) 99487 } 99488 yyj40++ 99489 if yyhl40 { 99490 yyb40 = yyj40 > l 99491 } else { 99492 yyb40 = r.CheckBreak() 99493 } 99494 if yyb40 { 99495 r.ReadArrayEnd() 99496 return 99497 } 99498 r.ReadArrayElem() 99499 if r.TryDecodeAsNil() { 99500 x.DesiredStatus = "" 99501 } else { 99502 x.DesiredStatus = (string)(r.DecodeString()) 99503 } 99504 yyj40++ 99505 if yyhl40 { 99506 yyb40 = yyj40 > l 99507 } else { 99508 yyb40 = r.CheckBreak() 99509 } 99510 if yyb40 { 99511 r.ReadArrayEnd() 99512 return 99513 } 99514 r.ReadArrayElem() 99515 if r.TryDecodeAsNil() { 99516 x.DesiredDescription = "" 99517 } else { 99518 x.DesiredDescription = (string)(r.DecodeString()) 99519 } 99520 yyj40++ 99521 if yyhl40 { 99522 yyb40 = yyj40 > l 99523 } else { 99524 yyb40 = r.CheckBreak() 99525 } 99526 if yyb40 { 99527 r.ReadArrayEnd() 99528 return 99529 } 99530 r.ReadArrayElem() 99531 if r.TryDecodeAsNil() { 99532 x.DesiredTransition = DesiredTransition{} 99533 } else { 99534 x.DesiredTransition.CodecDecodeSelf(d) 99535 } 99536 yyj40++ 99537 if yyhl40 { 99538 yyb40 = yyj40 > l 99539 } else { 99540 yyb40 = r.CheckBreak() 99541 } 99542 if yyb40 { 99543 r.ReadArrayEnd() 99544 return 99545 } 99546 r.ReadArrayElem() 99547 if r.TryDecodeAsNil() { 99548 x.ClientStatus = "" 99549 } else { 99550 x.ClientStatus = (string)(r.DecodeString()) 99551 } 99552 yyj40++ 99553 if yyhl40 { 99554 yyb40 = yyj40 > l 99555 } else { 99556 yyb40 = r.CheckBreak() 99557 } 99558 if yyb40 { 99559 r.ReadArrayEnd() 99560 return 99561 } 99562 r.ReadArrayElem() 99563 if r.TryDecodeAsNil() { 99564 x.ClientDescription = "" 99565 } else { 99566 x.ClientDescription = (string)(r.DecodeString()) 99567 } 99568 yyj40++ 99569 if yyhl40 { 99570 yyb40 = yyj40 > l 99571 } else { 99572 yyb40 = r.CheckBreak() 99573 } 99574 if yyb40 { 99575 r.ReadArrayEnd() 99576 return 99577 } 99578 r.ReadArrayElem() 99579 if r.TryDecodeAsNil() { 99580 x.TaskStates = nil 99581 } else { 99582 if false { 99583 } else { 99584 h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) 99585 } 99586 } 99587 yyj40++ 99588 if yyhl40 { 99589 yyb40 = yyj40 > l 99590 } else { 99591 yyb40 = r.CheckBreak() 99592 } 99593 if yyb40 { 99594 r.ReadArrayEnd() 99595 return 99596 } 99597 r.ReadArrayElem() 99598 if r.TryDecodeAsNil() { 99599 x.PreviousAllocation = "" 99600 } else { 99601 x.PreviousAllocation = (string)(r.DecodeString()) 99602 } 99603 yyj40++ 99604 if yyhl40 { 99605 yyb40 = yyj40 > l 99606 } else { 99607 yyb40 = r.CheckBreak() 99608 } 99609 if yyb40 { 99610 r.ReadArrayEnd() 99611 return 99612 } 99613 r.ReadArrayElem() 99614 if r.TryDecodeAsNil() { 99615 x.NextAllocation = "" 99616 } else { 99617 x.NextAllocation = (string)(r.DecodeString()) 99618 } 99619 yyj40++ 99620 if yyhl40 { 99621 yyb40 = yyj40 > l 99622 } else { 99623 yyb40 = r.CheckBreak() 99624 } 99625 if yyb40 { 99626 r.ReadArrayEnd() 99627 return 99628 } 99629 r.ReadArrayElem() 99630 if r.TryDecodeAsNil() { 99631 x.DeploymentID = "" 99632 } else { 99633 x.DeploymentID = (string)(r.DecodeString()) 99634 } 99635 yyj40++ 99636 if yyhl40 { 99637 yyb40 = yyj40 > l 99638 } else { 99639 yyb40 = r.CheckBreak() 99640 } 99641 if yyb40 { 99642 r.ReadArrayEnd() 99643 return 99644 } 99645 r.ReadArrayElem() 99646 if r.TryDecodeAsNil() { 99647 if true && x.DeploymentStatus != nil { 99648 x.DeploymentStatus = nil 99649 } 99650 } else { 99651 if x.DeploymentStatus == nil { 99652 x.DeploymentStatus = new(AllocDeploymentStatus) 99653 } 99654 99655 x.DeploymentStatus.CodecDecodeSelf(d) 99656 } 99657 yyj40++ 99658 if yyhl40 { 99659 yyb40 = yyj40 > l 99660 } else { 99661 yyb40 = r.CheckBreak() 99662 } 99663 if yyb40 { 99664 r.ReadArrayEnd() 99665 return 99666 } 99667 r.ReadArrayElem() 99668 if r.TryDecodeAsNil() { 99669 if true && x.RescheduleTracker != nil { 99670 x.RescheduleTracker = nil 99671 } 99672 } else { 99673 if x.RescheduleTracker == nil { 99674 x.RescheduleTracker = new(RescheduleTracker) 99675 } 99676 99677 x.RescheduleTracker.CodecDecodeSelf(d) 99678 } 99679 yyj40++ 99680 if yyhl40 { 99681 yyb40 = yyj40 > l 99682 } else { 99683 yyb40 = r.CheckBreak() 99684 } 99685 if yyb40 { 99686 r.ReadArrayEnd() 99687 return 99688 } 99689 r.ReadArrayElem() 99690 if r.TryDecodeAsNil() { 99691 x.FollowupEvalID = "" 99692 } else { 99693 x.FollowupEvalID = (string)(r.DecodeString()) 99694 } 99695 yyj40++ 99696 if yyhl40 { 99697 yyb40 = yyj40 > l 99698 } else { 99699 yyb40 = r.CheckBreak() 99700 } 99701 if yyb40 { 99702 r.ReadArrayEnd() 99703 return 99704 } 99705 r.ReadArrayElem() 99706 if r.TryDecodeAsNil() { 99707 x.PreemptedAllocations = nil 99708 } else { 99709 if false { 99710 } else { 99711 z.F.DecSliceStringX(&x.PreemptedAllocations, d) 99712 } 99713 } 99714 yyj40++ 99715 if yyhl40 { 99716 yyb40 = yyj40 > l 99717 } else { 99718 yyb40 = r.CheckBreak() 99719 } 99720 if yyb40 { 99721 r.ReadArrayEnd() 99722 return 99723 } 99724 r.ReadArrayElem() 99725 if r.TryDecodeAsNil() { 99726 x.PreemptedByAllocation = "" 99727 } else { 99728 x.PreemptedByAllocation = (string)(r.DecodeString()) 99729 } 99730 yyj40++ 99731 if yyhl40 { 99732 yyb40 = yyj40 > l 99733 } else { 99734 yyb40 = r.CheckBreak() 99735 } 99736 if yyb40 { 99737 r.ReadArrayEnd() 99738 return 99739 } 99740 r.ReadArrayElem() 99741 if r.TryDecodeAsNil() { 99742 x.CreateIndex = 0 99743 } else { 99744 x.CreateIndex = (uint64)(r.DecodeUint64()) 99745 } 99746 yyj40++ 99747 if yyhl40 { 99748 yyb40 = yyj40 > l 99749 } else { 99750 yyb40 = r.CheckBreak() 99751 } 99752 if yyb40 { 99753 r.ReadArrayEnd() 99754 return 99755 } 99756 r.ReadArrayElem() 99757 if r.TryDecodeAsNil() { 99758 x.ModifyIndex = 0 99759 } else { 99760 x.ModifyIndex = (uint64)(r.DecodeUint64()) 99761 } 99762 yyj40++ 99763 if yyhl40 { 99764 yyb40 = yyj40 > l 99765 } else { 99766 yyb40 = r.CheckBreak() 99767 } 99768 if yyb40 { 99769 r.ReadArrayEnd() 99770 return 99771 } 99772 r.ReadArrayElem() 99773 if r.TryDecodeAsNil() { 99774 x.AllocModifyIndex = 0 99775 } else { 99776 x.AllocModifyIndex = (uint64)(r.DecodeUint64()) 99777 } 99778 yyj40++ 99779 if yyhl40 { 99780 yyb40 = yyj40 > l 99781 } else { 99782 yyb40 = r.CheckBreak() 99783 } 99784 if yyb40 { 99785 r.ReadArrayEnd() 99786 return 99787 } 99788 r.ReadArrayElem() 99789 if r.TryDecodeAsNil() { 99790 x.CreateTime = 0 99791 } else { 99792 x.CreateTime = (int64)(r.DecodeInt64()) 99793 } 99794 yyj40++ 99795 if yyhl40 { 99796 yyb40 = yyj40 > l 99797 } else { 99798 yyb40 = r.CheckBreak() 99799 } 99800 if yyb40 { 99801 r.ReadArrayEnd() 99802 return 99803 } 99804 r.ReadArrayElem() 99805 if r.TryDecodeAsNil() { 99806 x.ModifyTime = 0 99807 } else { 99808 x.ModifyTime = (int64)(r.DecodeInt64()) 99809 } 99810 for { 99811 yyj40++ 99812 if yyhl40 { 99813 yyb40 = yyj40 > l 99814 } else { 99815 yyb40 = r.CheckBreak() 99816 } 99817 if yyb40 { 99818 break 99819 } 99820 r.ReadArrayElem() 99821 z.DecStructFieldNotFound(yyj40-1, "") 99822 } 99823 r.ReadArrayEnd() 99824 } 99825 99826 func (x *AllocationDiff) CodecEncodeSelf(e *codec1978.Encoder) { 99827 var h codecSelfer100 99828 z, r := codec1978.GenHelperEncoder(e) 99829 _, _, _ = h, z, r 99830 if x == nil { 99831 r.EncodeNil() 99832 } else { 99833 if false { 99834 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 99835 z.EncExtension(x, yyxt1) 99836 } else { 99837 yysep2 := !z.EncBinary() 99838 yy2arr2 := z.EncBasicHandle().StructToArray 99839 _, _ = yysep2, yy2arr2 99840 const yyr2 bool = false // struct tag has 'toArray' 99841 var yyq2 = [33]bool{ // should field at this index be written? 99842 x.ID != "", // ID 99843 x.Namespace != "", // Namespace 99844 x.EvalID != "", // EvalID 99845 x.Name != "", // Name 99846 x.NodeID != "", // NodeID 99847 x.NodeName != "", // NodeName 99848 x.JobID != "", // JobID 99849 x.Job != nil, // Job 99850 x.TaskGroup != "", // TaskGroup 99851 x.Resources != nil, // Resources 99852 x.SharedResources != nil, // SharedResources 99853 len(x.TaskResources) != 0, // TaskResources 99854 x.AllocatedResources != nil, // AllocatedResources 99855 x.Metrics != nil, // Metrics 99856 x.DesiredStatus != "", // DesiredStatus 99857 x.DesiredDescription != "", // DesiredDescription 99858 x.DesiredTransition != DesiredTransition{}, // DesiredTransition 99859 x.ClientStatus != "", // ClientStatus 99860 x.ClientDescription != "", // ClientDescription 99861 len(x.TaskStates) != 0, // TaskStates 99862 x.PreviousAllocation != "", // PreviousAllocation 99863 x.NextAllocation != "", // NextAllocation 99864 x.DeploymentID != "", // DeploymentID 99865 x.DeploymentStatus != nil, // DeploymentStatus 99866 x.RescheduleTracker != nil, // RescheduleTracker 99867 x.FollowupEvalID != "", // FollowupEvalID 99868 len(x.PreemptedAllocations) != 0, // PreemptedAllocations 99869 x.PreemptedByAllocation != "", // PreemptedByAllocation 99870 x.CreateIndex != 0, // CreateIndex 99871 x.ModifyIndex != 0, // ModifyIndex 99872 x.AllocModifyIndex != 0, // AllocModifyIndex 99873 x.CreateTime != 0, // CreateTime 99874 x.ModifyTime != 0, // ModifyTime 99875 } 99876 _ = yyq2 99877 if yyr2 || yy2arr2 { 99878 r.WriteArrayStart(33) 99879 } else { 99880 var yynn2 int 99881 for _, b := range yyq2 { 99882 if b { 99883 yynn2++ 99884 } 99885 } 99886 r.WriteMapStart(yynn2) 99887 yynn2 = 0 99888 } 99889 if yyr2 || yy2arr2 { 99890 r.WriteArrayElem() 99891 if yyq2[0] { 99892 if false { 99893 } else { 99894 if z.EncBasicHandle().StringToRaw { 99895 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 99896 } else { 99897 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 99898 } 99899 } 99900 } else { 99901 if z.EncBasicHandle().StringToRaw { 99902 r.EncodeStringBytesRaw([]byte{}) 99903 } else { 99904 r.EncodeStringEnc(codecSelferCcUTF8100, "") 99905 } 99906 } 99907 } else { 99908 if yyq2[0] { 99909 r.WriteMapElemKey() 99910 if z.IsJSONHandle() { 99911 z.WriteStr("\"ID\"") 99912 } else { 99913 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 99914 } 99915 r.WriteMapElemValue() 99916 if false { 99917 } else { 99918 if z.EncBasicHandle().StringToRaw { 99919 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 99920 } else { 99921 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 99922 } 99923 } 99924 } 99925 } 99926 if yyr2 || yy2arr2 { 99927 r.WriteArrayElem() 99928 if yyq2[1] { 99929 if false { 99930 } else { 99931 if z.EncBasicHandle().StringToRaw { 99932 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 99933 } else { 99934 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 99935 } 99936 } 99937 } else { 99938 if z.EncBasicHandle().StringToRaw { 99939 r.EncodeStringBytesRaw([]byte{}) 99940 } else { 99941 r.EncodeStringEnc(codecSelferCcUTF8100, "") 99942 } 99943 } 99944 } else { 99945 if yyq2[1] { 99946 r.WriteMapElemKey() 99947 if z.IsJSONHandle() { 99948 z.WriteStr("\"Namespace\"") 99949 } else { 99950 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 99951 } 99952 r.WriteMapElemValue() 99953 if false { 99954 } else { 99955 if z.EncBasicHandle().StringToRaw { 99956 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 99957 } else { 99958 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 99959 } 99960 } 99961 } 99962 } 99963 if yyr2 || yy2arr2 { 99964 r.WriteArrayElem() 99965 if yyq2[2] { 99966 if false { 99967 } else { 99968 if z.EncBasicHandle().StringToRaw { 99969 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 99970 } else { 99971 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 99972 } 99973 } 99974 } else { 99975 if z.EncBasicHandle().StringToRaw { 99976 r.EncodeStringBytesRaw([]byte{}) 99977 } else { 99978 r.EncodeStringEnc(codecSelferCcUTF8100, "") 99979 } 99980 } 99981 } else { 99982 if yyq2[2] { 99983 r.WriteMapElemKey() 99984 if z.IsJSONHandle() { 99985 z.WriteStr("\"EvalID\"") 99986 } else { 99987 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 99988 } 99989 r.WriteMapElemValue() 99990 if false { 99991 } else { 99992 if z.EncBasicHandle().StringToRaw { 99993 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 99994 } else { 99995 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 99996 } 99997 } 99998 } 99999 } 100000 if yyr2 || yy2arr2 { 100001 r.WriteArrayElem() 100002 if yyq2[3] { 100003 if false { 100004 } else { 100005 if z.EncBasicHandle().StringToRaw { 100006 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 100007 } else { 100008 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 100009 } 100010 } 100011 } else { 100012 if z.EncBasicHandle().StringToRaw { 100013 r.EncodeStringBytesRaw([]byte{}) 100014 } else { 100015 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100016 } 100017 } 100018 } else { 100019 if yyq2[3] { 100020 r.WriteMapElemKey() 100021 if z.IsJSONHandle() { 100022 z.WriteStr("\"Name\"") 100023 } else { 100024 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 100025 } 100026 r.WriteMapElemValue() 100027 if false { 100028 } else { 100029 if z.EncBasicHandle().StringToRaw { 100030 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 100031 } else { 100032 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 100033 } 100034 } 100035 } 100036 } 100037 if yyr2 || yy2arr2 { 100038 r.WriteArrayElem() 100039 if yyq2[4] { 100040 if false { 100041 } else { 100042 if z.EncBasicHandle().StringToRaw { 100043 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 100044 } else { 100045 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 100046 } 100047 } 100048 } else { 100049 if z.EncBasicHandle().StringToRaw { 100050 r.EncodeStringBytesRaw([]byte{}) 100051 } else { 100052 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100053 } 100054 } 100055 } else { 100056 if yyq2[4] { 100057 r.WriteMapElemKey() 100058 if z.IsJSONHandle() { 100059 z.WriteStr("\"NodeID\"") 100060 } else { 100061 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 100062 } 100063 r.WriteMapElemValue() 100064 if false { 100065 } else { 100066 if z.EncBasicHandle().StringToRaw { 100067 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 100068 } else { 100069 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 100070 } 100071 } 100072 } 100073 } 100074 if yyr2 || yy2arr2 { 100075 r.WriteArrayElem() 100076 if yyq2[5] { 100077 if false { 100078 } else { 100079 if z.EncBasicHandle().StringToRaw { 100080 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) 100081 } else { 100082 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) 100083 } 100084 } 100085 } else { 100086 if z.EncBasicHandle().StringToRaw { 100087 r.EncodeStringBytesRaw([]byte{}) 100088 } else { 100089 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100090 } 100091 } 100092 } else { 100093 if yyq2[5] { 100094 r.WriteMapElemKey() 100095 if z.IsJSONHandle() { 100096 z.WriteStr("\"NodeName\"") 100097 } else { 100098 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeName`) 100099 } 100100 r.WriteMapElemValue() 100101 if false { 100102 } else { 100103 if z.EncBasicHandle().StringToRaw { 100104 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) 100105 } else { 100106 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) 100107 } 100108 } 100109 } 100110 } 100111 if yyr2 || yy2arr2 { 100112 r.WriteArrayElem() 100113 if yyq2[6] { 100114 if false { 100115 } else { 100116 if z.EncBasicHandle().StringToRaw { 100117 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 100118 } else { 100119 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 100120 } 100121 } 100122 } else { 100123 if z.EncBasicHandle().StringToRaw { 100124 r.EncodeStringBytesRaw([]byte{}) 100125 } else { 100126 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100127 } 100128 } 100129 } else { 100130 if yyq2[6] { 100131 r.WriteMapElemKey() 100132 if z.IsJSONHandle() { 100133 z.WriteStr("\"JobID\"") 100134 } else { 100135 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 100136 } 100137 r.WriteMapElemValue() 100138 if false { 100139 } else { 100140 if z.EncBasicHandle().StringToRaw { 100141 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 100142 } else { 100143 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 100144 } 100145 } 100146 } 100147 } 100148 var yyn24 bool 100149 if x.Job == nil { 100150 yyn24 = true 100151 goto LABEL24 100152 } 100153 LABEL24: 100154 if yyr2 || yy2arr2 { 100155 if yyn24 { 100156 r.WriteArrayElem() 100157 r.EncodeNil() 100158 } else { 100159 r.WriteArrayElem() 100160 if yyq2[7] { 100161 if x.Job == nil { 100162 r.EncodeNil() 100163 } else { 100164 x.Job.CodecEncodeSelf(e) 100165 } 100166 } else { 100167 r.EncodeNil() 100168 } 100169 } 100170 } else { 100171 if yyq2[7] { 100172 r.WriteMapElemKey() 100173 if z.IsJSONHandle() { 100174 z.WriteStr("\"Job\"") 100175 } else { 100176 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 100177 } 100178 r.WriteMapElemValue() 100179 if yyn24 { 100180 r.EncodeNil() 100181 } else { 100182 if x.Job == nil { 100183 r.EncodeNil() 100184 } else { 100185 x.Job.CodecEncodeSelf(e) 100186 } 100187 } 100188 } 100189 } 100190 if yyr2 || yy2arr2 { 100191 r.WriteArrayElem() 100192 if yyq2[8] { 100193 if false { 100194 } else { 100195 if z.EncBasicHandle().StringToRaw { 100196 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) 100197 } else { 100198 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) 100199 } 100200 } 100201 } else { 100202 if z.EncBasicHandle().StringToRaw { 100203 r.EncodeStringBytesRaw([]byte{}) 100204 } else { 100205 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100206 } 100207 } 100208 } else { 100209 if yyq2[8] { 100210 r.WriteMapElemKey() 100211 if z.IsJSONHandle() { 100212 z.WriteStr("\"TaskGroup\"") 100213 } else { 100214 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroup`) 100215 } 100216 r.WriteMapElemValue() 100217 if false { 100218 } else { 100219 if z.EncBasicHandle().StringToRaw { 100220 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) 100221 } else { 100222 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) 100223 } 100224 } 100225 } 100226 } 100227 var yyn30 bool 100228 if x.Resources == nil { 100229 yyn30 = true 100230 goto LABEL30 100231 } 100232 LABEL30: 100233 if yyr2 || yy2arr2 { 100234 if yyn30 { 100235 r.WriteArrayElem() 100236 r.EncodeNil() 100237 } else { 100238 r.WriteArrayElem() 100239 if yyq2[9] { 100240 if x.Resources == nil { 100241 r.EncodeNil() 100242 } else { 100243 x.Resources.CodecEncodeSelf(e) 100244 } 100245 } else { 100246 r.EncodeNil() 100247 } 100248 } 100249 } else { 100250 if yyq2[9] { 100251 r.WriteMapElemKey() 100252 if z.IsJSONHandle() { 100253 z.WriteStr("\"Resources\"") 100254 } else { 100255 r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) 100256 } 100257 r.WriteMapElemValue() 100258 if yyn30 { 100259 r.EncodeNil() 100260 } else { 100261 if x.Resources == nil { 100262 r.EncodeNil() 100263 } else { 100264 x.Resources.CodecEncodeSelf(e) 100265 } 100266 } 100267 } 100268 } 100269 var yyn33 bool 100270 if x.SharedResources == nil { 100271 yyn33 = true 100272 goto LABEL33 100273 } 100274 LABEL33: 100275 if yyr2 || yy2arr2 { 100276 if yyn33 { 100277 r.WriteArrayElem() 100278 r.EncodeNil() 100279 } else { 100280 r.WriteArrayElem() 100281 if yyq2[10] { 100282 if x.SharedResources == nil { 100283 r.EncodeNil() 100284 } else { 100285 x.SharedResources.CodecEncodeSelf(e) 100286 } 100287 } else { 100288 r.EncodeNil() 100289 } 100290 } 100291 } else { 100292 if yyq2[10] { 100293 r.WriteMapElemKey() 100294 if z.IsJSONHandle() { 100295 z.WriteStr("\"SharedResources\"") 100296 } else { 100297 r.EncodeStringEnc(codecSelferCcUTF8100, `SharedResources`) 100298 } 100299 r.WriteMapElemValue() 100300 if yyn33 { 100301 r.EncodeNil() 100302 } else { 100303 if x.SharedResources == nil { 100304 r.EncodeNil() 100305 } else { 100306 x.SharedResources.CodecEncodeSelf(e) 100307 } 100308 } 100309 } 100310 } 100311 if yyr2 || yy2arr2 { 100312 r.WriteArrayElem() 100313 if yyq2[11] { 100314 if x.TaskResources == nil { 100315 r.EncodeNil() 100316 } else { 100317 if false { 100318 } else { 100319 h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) 100320 } 100321 } 100322 } else { 100323 r.EncodeNil() 100324 } 100325 } else { 100326 if yyq2[11] { 100327 r.WriteMapElemKey() 100328 if z.IsJSONHandle() { 100329 z.WriteStr("\"TaskResources\"") 100330 } else { 100331 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskResources`) 100332 } 100333 r.WriteMapElemValue() 100334 if x.TaskResources == nil { 100335 r.EncodeNil() 100336 } else { 100337 if false { 100338 } else { 100339 h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) 100340 } 100341 } 100342 } 100343 } 100344 var yyn39 bool 100345 if x.AllocatedResources == nil { 100346 yyn39 = true 100347 goto LABEL39 100348 } 100349 LABEL39: 100350 if yyr2 || yy2arr2 { 100351 if yyn39 { 100352 r.WriteArrayElem() 100353 r.EncodeNil() 100354 } else { 100355 r.WriteArrayElem() 100356 if yyq2[12] { 100357 if x.AllocatedResources == nil { 100358 r.EncodeNil() 100359 } else { 100360 x.AllocatedResources.CodecEncodeSelf(e) 100361 } 100362 } else { 100363 r.EncodeNil() 100364 } 100365 } 100366 } else { 100367 if yyq2[12] { 100368 r.WriteMapElemKey() 100369 if z.IsJSONHandle() { 100370 z.WriteStr("\"AllocatedResources\"") 100371 } else { 100372 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocatedResources`) 100373 } 100374 r.WriteMapElemValue() 100375 if yyn39 { 100376 r.EncodeNil() 100377 } else { 100378 if x.AllocatedResources == nil { 100379 r.EncodeNil() 100380 } else { 100381 x.AllocatedResources.CodecEncodeSelf(e) 100382 } 100383 } 100384 } 100385 } 100386 var yyn42 bool 100387 if x.Metrics == nil { 100388 yyn42 = true 100389 goto LABEL42 100390 } 100391 LABEL42: 100392 if yyr2 || yy2arr2 { 100393 if yyn42 { 100394 r.WriteArrayElem() 100395 r.EncodeNil() 100396 } else { 100397 r.WriteArrayElem() 100398 if yyq2[13] { 100399 if x.Metrics == nil { 100400 r.EncodeNil() 100401 } else { 100402 x.Metrics.CodecEncodeSelf(e) 100403 } 100404 } else { 100405 r.EncodeNil() 100406 } 100407 } 100408 } else { 100409 if yyq2[13] { 100410 r.WriteMapElemKey() 100411 if z.IsJSONHandle() { 100412 z.WriteStr("\"Metrics\"") 100413 } else { 100414 r.EncodeStringEnc(codecSelferCcUTF8100, `Metrics`) 100415 } 100416 r.WriteMapElemValue() 100417 if yyn42 { 100418 r.EncodeNil() 100419 } else { 100420 if x.Metrics == nil { 100421 r.EncodeNil() 100422 } else { 100423 x.Metrics.CodecEncodeSelf(e) 100424 } 100425 } 100426 } 100427 } 100428 if yyr2 || yy2arr2 { 100429 r.WriteArrayElem() 100430 if yyq2[14] { 100431 if false { 100432 } else { 100433 if z.EncBasicHandle().StringToRaw { 100434 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) 100435 } else { 100436 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) 100437 } 100438 } 100439 } else { 100440 if z.EncBasicHandle().StringToRaw { 100441 r.EncodeStringBytesRaw([]byte{}) 100442 } else { 100443 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100444 } 100445 } 100446 } else { 100447 if yyq2[14] { 100448 r.WriteMapElemKey() 100449 if z.IsJSONHandle() { 100450 z.WriteStr("\"DesiredStatus\"") 100451 } else { 100452 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredStatus`) 100453 } 100454 r.WriteMapElemValue() 100455 if false { 100456 } else { 100457 if z.EncBasicHandle().StringToRaw { 100458 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) 100459 } else { 100460 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) 100461 } 100462 } 100463 } 100464 } 100465 if yyr2 || yy2arr2 { 100466 r.WriteArrayElem() 100467 if yyq2[15] { 100468 if false { 100469 } else { 100470 if z.EncBasicHandle().StringToRaw { 100471 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) 100472 } else { 100473 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) 100474 } 100475 } 100476 } else { 100477 if z.EncBasicHandle().StringToRaw { 100478 r.EncodeStringBytesRaw([]byte{}) 100479 } else { 100480 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100481 } 100482 } 100483 } else { 100484 if yyq2[15] { 100485 r.WriteMapElemKey() 100486 if z.IsJSONHandle() { 100487 z.WriteStr("\"DesiredDescription\"") 100488 } else { 100489 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredDescription`) 100490 } 100491 r.WriteMapElemValue() 100492 if false { 100493 } else { 100494 if z.EncBasicHandle().StringToRaw { 100495 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) 100496 } else { 100497 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) 100498 } 100499 } 100500 } 100501 } 100502 if yyr2 || yy2arr2 { 100503 r.WriteArrayElem() 100504 if yyq2[16] { 100505 yy52 := &x.DesiredTransition 100506 yy52.CodecEncodeSelf(e) 100507 } else { 100508 r.EncodeNil() 100509 } 100510 } else { 100511 if yyq2[16] { 100512 r.WriteMapElemKey() 100513 if z.IsJSONHandle() { 100514 z.WriteStr("\"DesiredTransition\"") 100515 } else { 100516 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTransition`) 100517 } 100518 r.WriteMapElemValue() 100519 yy54 := &x.DesiredTransition 100520 yy54.CodecEncodeSelf(e) 100521 } 100522 } 100523 if yyr2 || yy2arr2 { 100524 r.WriteArrayElem() 100525 if yyq2[17] { 100526 if false { 100527 } else { 100528 if z.EncBasicHandle().StringToRaw { 100529 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) 100530 } else { 100531 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) 100532 } 100533 } 100534 } else { 100535 if z.EncBasicHandle().StringToRaw { 100536 r.EncodeStringBytesRaw([]byte{}) 100537 } else { 100538 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100539 } 100540 } 100541 } else { 100542 if yyq2[17] { 100543 r.WriteMapElemKey() 100544 if z.IsJSONHandle() { 100545 z.WriteStr("\"ClientStatus\"") 100546 } else { 100547 r.EncodeStringEnc(codecSelferCcUTF8100, `ClientStatus`) 100548 } 100549 r.WriteMapElemValue() 100550 if false { 100551 } else { 100552 if z.EncBasicHandle().StringToRaw { 100553 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) 100554 } else { 100555 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) 100556 } 100557 } 100558 } 100559 } 100560 if yyr2 || yy2arr2 { 100561 r.WriteArrayElem() 100562 if yyq2[18] { 100563 if false { 100564 } else { 100565 if z.EncBasicHandle().StringToRaw { 100566 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) 100567 } else { 100568 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) 100569 } 100570 } 100571 } else { 100572 if z.EncBasicHandle().StringToRaw { 100573 r.EncodeStringBytesRaw([]byte{}) 100574 } else { 100575 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100576 } 100577 } 100578 } else { 100579 if yyq2[18] { 100580 r.WriteMapElemKey() 100581 if z.IsJSONHandle() { 100582 z.WriteStr("\"ClientDescription\"") 100583 } else { 100584 r.EncodeStringEnc(codecSelferCcUTF8100, `ClientDescription`) 100585 } 100586 r.WriteMapElemValue() 100587 if false { 100588 } else { 100589 if z.EncBasicHandle().StringToRaw { 100590 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) 100591 } else { 100592 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) 100593 } 100594 } 100595 } 100596 } 100597 if yyr2 || yy2arr2 { 100598 r.WriteArrayElem() 100599 if yyq2[19] { 100600 if x.TaskStates == nil { 100601 r.EncodeNil() 100602 } else { 100603 if false { 100604 } else { 100605 h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) 100606 } 100607 } 100608 } else { 100609 r.EncodeNil() 100610 } 100611 } else { 100612 if yyq2[19] { 100613 r.WriteMapElemKey() 100614 if z.IsJSONHandle() { 100615 z.WriteStr("\"TaskStates\"") 100616 } else { 100617 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskStates`) 100618 } 100619 r.WriteMapElemValue() 100620 if x.TaskStates == nil { 100621 r.EncodeNil() 100622 } else { 100623 if false { 100624 } else { 100625 h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) 100626 } 100627 } 100628 } 100629 } 100630 if yyr2 || yy2arr2 { 100631 r.WriteArrayElem() 100632 if yyq2[20] { 100633 if false { 100634 } else { 100635 if z.EncBasicHandle().StringToRaw { 100636 r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousAllocation))) 100637 } else { 100638 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousAllocation)) 100639 } 100640 } 100641 } else { 100642 if z.EncBasicHandle().StringToRaw { 100643 r.EncodeStringBytesRaw([]byte{}) 100644 } else { 100645 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100646 } 100647 } 100648 } else { 100649 if yyq2[20] { 100650 r.WriteMapElemKey() 100651 if z.IsJSONHandle() { 100652 z.WriteStr("\"PreviousAllocation\"") 100653 } else { 100654 r.EncodeStringEnc(codecSelferCcUTF8100, `PreviousAllocation`) 100655 } 100656 r.WriteMapElemValue() 100657 if false { 100658 } else { 100659 if z.EncBasicHandle().StringToRaw { 100660 r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousAllocation))) 100661 } else { 100662 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousAllocation)) 100663 } 100664 } 100665 } 100666 } 100667 if yyr2 || yy2arr2 { 100668 r.WriteArrayElem() 100669 if yyq2[21] { 100670 if false { 100671 } else { 100672 if z.EncBasicHandle().StringToRaw { 100673 r.EncodeStringBytesRaw(z.BytesView(string(x.NextAllocation))) 100674 } else { 100675 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextAllocation)) 100676 } 100677 } 100678 } else { 100679 if z.EncBasicHandle().StringToRaw { 100680 r.EncodeStringBytesRaw([]byte{}) 100681 } else { 100682 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100683 } 100684 } 100685 } else { 100686 if yyq2[21] { 100687 r.WriteMapElemKey() 100688 if z.IsJSONHandle() { 100689 z.WriteStr("\"NextAllocation\"") 100690 } else { 100691 r.EncodeStringEnc(codecSelferCcUTF8100, `NextAllocation`) 100692 } 100693 r.WriteMapElemValue() 100694 if false { 100695 } else { 100696 if z.EncBasicHandle().StringToRaw { 100697 r.EncodeStringBytesRaw(z.BytesView(string(x.NextAllocation))) 100698 } else { 100699 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextAllocation)) 100700 } 100701 } 100702 } 100703 } 100704 if yyr2 || yy2arr2 { 100705 r.WriteArrayElem() 100706 if yyq2[22] { 100707 if false { 100708 } else { 100709 if z.EncBasicHandle().StringToRaw { 100710 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 100711 } else { 100712 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 100713 } 100714 } 100715 } else { 100716 if z.EncBasicHandle().StringToRaw { 100717 r.EncodeStringBytesRaw([]byte{}) 100718 } else { 100719 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100720 } 100721 } 100722 } else { 100723 if yyq2[22] { 100724 r.WriteMapElemKey() 100725 if z.IsJSONHandle() { 100726 z.WriteStr("\"DeploymentID\"") 100727 } else { 100728 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 100729 } 100730 r.WriteMapElemValue() 100731 if false { 100732 } else { 100733 if z.EncBasicHandle().StringToRaw { 100734 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 100735 } else { 100736 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 100737 } 100738 } 100739 } 100740 } 100741 var yyn74 bool 100742 if x.DeploymentStatus == nil { 100743 yyn74 = true 100744 goto LABEL74 100745 } 100746 LABEL74: 100747 if yyr2 || yy2arr2 { 100748 if yyn74 { 100749 r.WriteArrayElem() 100750 r.EncodeNil() 100751 } else { 100752 r.WriteArrayElem() 100753 if yyq2[23] { 100754 if x.DeploymentStatus == nil { 100755 r.EncodeNil() 100756 } else { 100757 x.DeploymentStatus.CodecEncodeSelf(e) 100758 } 100759 } else { 100760 r.EncodeNil() 100761 } 100762 } 100763 } else { 100764 if yyq2[23] { 100765 r.WriteMapElemKey() 100766 if z.IsJSONHandle() { 100767 z.WriteStr("\"DeploymentStatus\"") 100768 } else { 100769 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentStatus`) 100770 } 100771 r.WriteMapElemValue() 100772 if yyn74 { 100773 r.EncodeNil() 100774 } else { 100775 if x.DeploymentStatus == nil { 100776 r.EncodeNil() 100777 } else { 100778 x.DeploymentStatus.CodecEncodeSelf(e) 100779 } 100780 } 100781 } 100782 } 100783 var yyn77 bool 100784 if x.RescheduleTracker == nil { 100785 yyn77 = true 100786 goto LABEL77 100787 } 100788 LABEL77: 100789 if yyr2 || yy2arr2 { 100790 if yyn77 { 100791 r.WriteArrayElem() 100792 r.EncodeNil() 100793 } else { 100794 r.WriteArrayElem() 100795 if yyq2[24] { 100796 if x.RescheduleTracker == nil { 100797 r.EncodeNil() 100798 } else { 100799 x.RescheduleTracker.CodecEncodeSelf(e) 100800 } 100801 } else { 100802 r.EncodeNil() 100803 } 100804 } 100805 } else { 100806 if yyq2[24] { 100807 r.WriteMapElemKey() 100808 if z.IsJSONHandle() { 100809 z.WriteStr("\"RescheduleTracker\"") 100810 } else { 100811 r.EncodeStringEnc(codecSelferCcUTF8100, `RescheduleTracker`) 100812 } 100813 r.WriteMapElemValue() 100814 if yyn77 { 100815 r.EncodeNil() 100816 } else { 100817 if x.RescheduleTracker == nil { 100818 r.EncodeNil() 100819 } else { 100820 x.RescheduleTracker.CodecEncodeSelf(e) 100821 } 100822 } 100823 } 100824 } 100825 if yyr2 || yy2arr2 { 100826 r.WriteArrayElem() 100827 if yyq2[25] { 100828 if false { 100829 } else { 100830 if z.EncBasicHandle().StringToRaw { 100831 r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) 100832 } else { 100833 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) 100834 } 100835 } 100836 } else { 100837 if z.EncBasicHandle().StringToRaw { 100838 r.EncodeStringBytesRaw([]byte{}) 100839 } else { 100840 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100841 } 100842 } 100843 } else { 100844 if yyq2[25] { 100845 r.WriteMapElemKey() 100846 if z.IsJSONHandle() { 100847 z.WriteStr("\"FollowupEvalID\"") 100848 } else { 100849 r.EncodeStringEnc(codecSelferCcUTF8100, `FollowupEvalID`) 100850 } 100851 r.WriteMapElemValue() 100852 if false { 100853 } else { 100854 if z.EncBasicHandle().StringToRaw { 100855 r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) 100856 } else { 100857 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) 100858 } 100859 } 100860 } 100861 } 100862 if yyr2 || yy2arr2 { 100863 r.WriteArrayElem() 100864 if yyq2[26] { 100865 if x.PreemptedAllocations == nil { 100866 r.EncodeNil() 100867 } else { 100868 if false { 100869 } else { 100870 z.F.EncSliceStringV(x.PreemptedAllocations, e) 100871 } 100872 } 100873 } else { 100874 r.EncodeNil() 100875 } 100876 } else { 100877 if yyq2[26] { 100878 r.WriteMapElemKey() 100879 if z.IsJSONHandle() { 100880 z.WriteStr("\"PreemptedAllocations\"") 100881 } else { 100882 r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedAllocations`) 100883 } 100884 r.WriteMapElemValue() 100885 if x.PreemptedAllocations == nil { 100886 r.EncodeNil() 100887 } else { 100888 if false { 100889 } else { 100890 z.F.EncSliceStringV(x.PreemptedAllocations, e) 100891 } 100892 } 100893 } 100894 } 100895 if yyr2 || yy2arr2 { 100896 r.WriteArrayElem() 100897 if yyq2[27] { 100898 if false { 100899 } else { 100900 if z.EncBasicHandle().StringToRaw { 100901 r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) 100902 } else { 100903 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) 100904 } 100905 } 100906 } else { 100907 if z.EncBasicHandle().StringToRaw { 100908 r.EncodeStringBytesRaw([]byte{}) 100909 } else { 100910 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100911 } 100912 } 100913 } else { 100914 if yyq2[27] { 100915 r.WriteMapElemKey() 100916 if z.IsJSONHandle() { 100917 z.WriteStr("\"PreemptedByAllocation\"") 100918 } else { 100919 r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedByAllocation`) 100920 } 100921 r.WriteMapElemValue() 100922 if false { 100923 } else { 100924 if z.EncBasicHandle().StringToRaw { 100925 r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) 100926 } else { 100927 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) 100928 } 100929 } 100930 } 100931 } 100932 if yyr2 || yy2arr2 { 100933 r.WriteArrayElem() 100934 if yyq2[28] { 100935 if false { 100936 } else { 100937 r.EncodeUint(uint64(x.CreateIndex)) 100938 } 100939 } else { 100940 r.EncodeUint(0) 100941 } 100942 } else { 100943 if yyq2[28] { 100944 r.WriteMapElemKey() 100945 if z.IsJSONHandle() { 100946 z.WriteStr("\"CreateIndex\"") 100947 } else { 100948 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 100949 } 100950 r.WriteMapElemValue() 100951 if false { 100952 } else { 100953 r.EncodeUint(uint64(x.CreateIndex)) 100954 } 100955 } 100956 } 100957 if yyr2 || yy2arr2 { 100958 r.WriteArrayElem() 100959 if yyq2[29] { 100960 if false { 100961 } else { 100962 r.EncodeUint(uint64(x.ModifyIndex)) 100963 } 100964 } else { 100965 r.EncodeUint(0) 100966 } 100967 } else { 100968 if yyq2[29] { 100969 r.WriteMapElemKey() 100970 if z.IsJSONHandle() { 100971 z.WriteStr("\"ModifyIndex\"") 100972 } else { 100973 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 100974 } 100975 r.WriteMapElemValue() 100976 if false { 100977 } else { 100978 r.EncodeUint(uint64(x.ModifyIndex)) 100979 } 100980 } 100981 } 100982 if yyr2 || yy2arr2 { 100983 r.WriteArrayElem() 100984 if yyq2[30] { 100985 if false { 100986 } else { 100987 r.EncodeUint(uint64(x.AllocModifyIndex)) 100988 } 100989 } else { 100990 r.EncodeUint(0) 100991 } 100992 } else { 100993 if yyq2[30] { 100994 r.WriteMapElemKey() 100995 if z.IsJSONHandle() { 100996 z.WriteStr("\"AllocModifyIndex\"") 100997 } else { 100998 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocModifyIndex`) 100999 } 101000 r.WriteMapElemValue() 101001 if false { 101002 } else { 101003 r.EncodeUint(uint64(x.AllocModifyIndex)) 101004 } 101005 } 101006 } 101007 if yyr2 || yy2arr2 { 101008 r.WriteArrayElem() 101009 if yyq2[31] { 101010 if false { 101011 } else { 101012 r.EncodeInt(int64(x.CreateTime)) 101013 } 101014 } else { 101015 r.EncodeInt(0) 101016 } 101017 } else { 101018 if yyq2[31] { 101019 r.WriteMapElemKey() 101020 if z.IsJSONHandle() { 101021 z.WriteStr("\"CreateTime\"") 101022 } else { 101023 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) 101024 } 101025 r.WriteMapElemValue() 101026 if false { 101027 } else { 101028 r.EncodeInt(int64(x.CreateTime)) 101029 } 101030 } 101031 } 101032 if yyr2 || yy2arr2 { 101033 r.WriteArrayElem() 101034 if yyq2[32] { 101035 if false { 101036 } else { 101037 r.EncodeInt(int64(x.ModifyTime)) 101038 } 101039 } else { 101040 r.EncodeInt(0) 101041 } 101042 } else { 101043 if yyq2[32] { 101044 r.WriteMapElemKey() 101045 if z.IsJSONHandle() { 101046 z.WriteStr("\"ModifyTime\"") 101047 } else { 101048 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) 101049 } 101050 r.WriteMapElemValue() 101051 if false { 101052 } else { 101053 r.EncodeInt(int64(x.ModifyTime)) 101054 } 101055 } 101056 } 101057 if yyr2 || yy2arr2 { 101058 r.WriteArrayEnd() 101059 } else { 101060 r.WriteMapEnd() 101061 } 101062 } 101063 } 101064 } 101065 101066 func (x *AllocationDiff) CodecDecodeSelf(d *codec1978.Decoder) { 101067 var h codecSelfer100 101068 z, r := codec1978.GenHelperDecoder(d) 101069 _, _, _ = h, z, r 101070 if false { 101071 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 101072 z.DecExtension(x, yyxt1) 101073 } else { 101074 yyct2 := r.ContainerType() 101075 if yyct2 == codecSelferValueTypeMap100 { 101076 yyl2 := r.ReadMapStart() 101077 if yyl2 == 0 { 101078 r.ReadMapEnd() 101079 } else { 101080 x.codecDecodeSelfFromMap(yyl2, d) 101081 } 101082 } else if yyct2 == codecSelferValueTypeArray100 { 101083 yyl2 := r.ReadArrayStart() 101084 if yyl2 == 0 { 101085 r.ReadArrayEnd() 101086 } else { 101087 x.codecDecodeSelfFromArray(yyl2, d) 101088 } 101089 } else { 101090 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 101091 } 101092 } 101093 } 101094 101095 func (x *AllocationDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 101096 var h codecSelfer100 101097 z, r := codec1978.GenHelperDecoder(d) 101098 _, _, _ = h, z, r 101099 var yyhl3 bool = l >= 0 101100 for yyj3 := 0; ; yyj3++ { 101101 if yyhl3 { 101102 if yyj3 >= l { 101103 break 101104 } 101105 } else { 101106 if r.CheckBreak() { 101107 break 101108 } 101109 } 101110 r.ReadMapElemKey() 101111 yys3 := z.StringView(r.DecodeStringAsBytes()) 101112 r.ReadMapElemValue() 101113 switch yys3 { 101114 case "ID": 101115 if r.TryDecodeAsNil() { 101116 x.ID = "" 101117 } else { 101118 x.ID = (string)(r.DecodeString()) 101119 } 101120 case "Namespace": 101121 if r.TryDecodeAsNil() { 101122 x.Namespace = "" 101123 } else { 101124 x.Namespace = (string)(r.DecodeString()) 101125 } 101126 case "EvalID": 101127 if r.TryDecodeAsNil() { 101128 x.EvalID = "" 101129 } else { 101130 x.EvalID = (string)(r.DecodeString()) 101131 } 101132 case "Name": 101133 if r.TryDecodeAsNil() { 101134 x.Name = "" 101135 } else { 101136 x.Name = (string)(r.DecodeString()) 101137 } 101138 case "NodeID": 101139 if r.TryDecodeAsNil() { 101140 x.NodeID = "" 101141 } else { 101142 x.NodeID = (string)(r.DecodeString()) 101143 } 101144 case "NodeName": 101145 if r.TryDecodeAsNil() { 101146 x.NodeName = "" 101147 } else { 101148 x.NodeName = (string)(r.DecodeString()) 101149 } 101150 case "JobID": 101151 if r.TryDecodeAsNil() { 101152 x.JobID = "" 101153 } else { 101154 x.JobID = (string)(r.DecodeString()) 101155 } 101156 case "Job": 101157 if r.TryDecodeAsNil() { 101158 if true && x.Job != nil { 101159 x.Job = nil 101160 } 101161 } else { 101162 if x.Job == nil { 101163 x.Job = new(Job) 101164 } 101165 101166 x.Job.CodecDecodeSelf(d) 101167 } 101168 case "TaskGroup": 101169 if r.TryDecodeAsNil() { 101170 x.TaskGroup = "" 101171 } else { 101172 x.TaskGroup = (string)(r.DecodeString()) 101173 } 101174 case "Resources": 101175 if r.TryDecodeAsNil() { 101176 if true && x.Resources != nil { 101177 x.Resources = nil 101178 } 101179 } else { 101180 if x.Resources == nil { 101181 x.Resources = new(Resources) 101182 } 101183 101184 x.Resources.CodecDecodeSelf(d) 101185 } 101186 case "SharedResources": 101187 if r.TryDecodeAsNil() { 101188 if true && x.SharedResources != nil { 101189 x.SharedResources = nil 101190 } 101191 } else { 101192 if x.SharedResources == nil { 101193 x.SharedResources = new(Resources) 101194 } 101195 101196 x.SharedResources.CodecDecodeSelf(d) 101197 } 101198 case "TaskResources": 101199 if r.TryDecodeAsNil() { 101200 x.TaskResources = nil 101201 } else { 101202 if false { 101203 } else { 101204 h.decMapstringPtrtoResources((*map[string]*Resources)(&x.TaskResources), d) 101205 } 101206 } 101207 case "AllocatedResources": 101208 if r.TryDecodeAsNil() { 101209 if true && x.AllocatedResources != nil { 101210 x.AllocatedResources = nil 101211 } 101212 } else { 101213 if x.AllocatedResources == nil { 101214 x.AllocatedResources = new(AllocatedResources) 101215 } 101216 101217 x.AllocatedResources.CodecDecodeSelf(d) 101218 } 101219 case "Metrics": 101220 if r.TryDecodeAsNil() { 101221 if true && x.Metrics != nil { 101222 x.Metrics = nil 101223 } 101224 } else { 101225 if x.Metrics == nil { 101226 x.Metrics = new(AllocMetric) 101227 } 101228 101229 x.Metrics.CodecDecodeSelf(d) 101230 } 101231 case "DesiredStatus": 101232 if r.TryDecodeAsNil() { 101233 x.DesiredStatus = "" 101234 } else { 101235 x.DesiredStatus = (string)(r.DecodeString()) 101236 } 101237 case "DesiredDescription": 101238 if r.TryDecodeAsNil() { 101239 x.DesiredDescription = "" 101240 } else { 101241 x.DesiredDescription = (string)(r.DecodeString()) 101242 } 101243 case "DesiredTransition": 101244 if r.TryDecodeAsNil() { 101245 x.DesiredTransition = DesiredTransition{} 101246 } else { 101247 x.DesiredTransition.CodecDecodeSelf(d) 101248 } 101249 case "ClientStatus": 101250 if r.TryDecodeAsNil() { 101251 x.ClientStatus = "" 101252 } else { 101253 x.ClientStatus = (string)(r.DecodeString()) 101254 } 101255 case "ClientDescription": 101256 if r.TryDecodeAsNil() { 101257 x.ClientDescription = "" 101258 } else { 101259 x.ClientDescription = (string)(r.DecodeString()) 101260 } 101261 case "TaskStates": 101262 if r.TryDecodeAsNil() { 101263 x.TaskStates = nil 101264 } else { 101265 if false { 101266 } else { 101267 h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) 101268 } 101269 } 101270 case "PreviousAllocation": 101271 if r.TryDecodeAsNil() { 101272 x.PreviousAllocation = "" 101273 } else { 101274 x.PreviousAllocation = (string)(r.DecodeString()) 101275 } 101276 case "NextAllocation": 101277 if r.TryDecodeAsNil() { 101278 x.NextAllocation = "" 101279 } else { 101280 x.NextAllocation = (string)(r.DecodeString()) 101281 } 101282 case "DeploymentID": 101283 if r.TryDecodeAsNil() { 101284 x.DeploymentID = "" 101285 } else { 101286 x.DeploymentID = (string)(r.DecodeString()) 101287 } 101288 case "DeploymentStatus": 101289 if r.TryDecodeAsNil() { 101290 if true && x.DeploymentStatus != nil { 101291 x.DeploymentStatus = nil 101292 } 101293 } else { 101294 if x.DeploymentStatus == nil { 101295 x.DeploymentStatus = new(AllocDeploymentStatus) 101296 } 101297 101298 x.DeploymentStatus.CodecDecodeSelf(d) 101299 } 101300 case "RescheduleTracker": 101301 if r.TryDecodeAsNil() { 101302 if true && x.RescheduleTracker != nil { 101303 x.RescheduleTracker = nil 101304 } 101305 } else { 101306 if x.RescheduleTracker == nil { 101307 x.RescheduleTracker = new(RescheduleTracker) 101308 } 101309 101310 x.RescheduleTracker.CodecDecodeSelf(d) 101311 } 101312 case "FollowupEvalID": 101313 if r.TryDecodeAsNil() { 101314 x.FollowupEvalID = "" 101315 } else { 101316 x.FollowupEvalID = (string)(r.DecodeString()) 101317 } 101318 case "PreemptedAllocations": 101319 if r.TryDecodeAsNil() { 101320 x.PreemptedAllocations = nil 101321 } else { 101322 if false { 101323 } else { 101324 z.F.DecSliceStringX(&x.PreemptedAllocations, d) 101325 } 101326 } 101327 case "PreemptedByAllocation": 101328 if r.TryDecodeAsNil() { 101329 x.PreemptedByAllocation = "" 101330 } else { 101331 x.PreemptedByAllocation = (string)(r.DecodeString()) 101332 } 101333 case "CreateIndex": 101334 if r.TryDecodeAsNil() { 101335 x.CreateIndex = 0 101336 } else { 101337 x.CreateIndex = (uint64)(r.DecodeUint64()) 101338 } 101339 case "ModifyIndex": 101340 if r.TryDecodeAsNil() { 101341 x.ModifyIndex = 0 101342 } else { 101343 x.ModifyIndex = (uint64)(r.DecodeUint64()) 101344 } 101345 case "AllocModifyIndex": 101346 if r.TryDecodeAsNil() { 101347 x.AllocModifyIndex = 0 101348 } else { 101349 x.AllocModifyIndex = (uint64)(r.DecodeUint64()) 101350 } 101351 case "CreateTime": 101352 if r.TryDecodeAsNil() { 101353 x.CreateTime = 0 101354 } else { 101355 x.CreateTime = (int64)(r.DecodeInt64()) 101356 } 101357 case "ModifyTime": 101358 if r.TryDecodeAsNil() { 101359 x.ModifyTime = 0 101360 } else { 101361 x.ModifyTime = (int64)(r.DecodeInt64()) 101362 } 101363 default: 101364 z.DecStructFieldNotFound(-1, yys3) 101365 } // end switch yys3 101366 } // end for yyj3 101367 r.ReadMapEnd() 101368 } 101369 101370 func (x *AllocationDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 101371 var h codecSelfer100 101372 z, r := codec1978.GenHelperDecoder(d) 101373 _, _, _ = h, z, r 101374 var yyj40 int 101375 var yyb40 bool 101376 var yyhl40 bool = l >= 0 101377 yyj40++ 101378 if yyhl40 { 101379 yyb40 = yyj40 > l 101380 } else { 101381 yyb40 = r.CheckBreak() 101382 } 101383 if yyb40 { 101384 r.ReadArrayEnd() 101385 return 101386 } 101387 r.ReadArrayElem() 101388 if r.TryDecodeAsNil() { 101389 x.ID = "" 101390 } else { 101391 x.ID = (string)(r.DecodeString()) 101392 } 101393 yyj40++ 101394 if yyhl40 { 101395 yyb40 = yyj40 > l 101396 } else { 101397 yyb40 = r.CheckBreak() 101398 } 101399 if yyb40 { 101400 r.ReadArrayEnd() 101401 return 101402 } 101403 r.ReadArrayElem() 101404 if r.TryDecodeAsNil() { 101405 x.Namespace = "" 101406 } else { 101407 x.Namespace = (string)(r.DecodeString()) 101408 } 101409 yyj40++ 101410 if yyhl40 { 101411 yyb40 = yyj40 > l 101412 } else { 101413 yyb40 = r.CheckBreak() 101414 } 101415 if yyb40 { 101416 r.ReadArrayEnd() 101417 return 101418 } 101419 r.ReadArrayElem() 101420 if r.TryDecodeAsNil() { 101421 x.EvalID = "" 101422 } else { 101423 x.EvalID = (string)(r.DecodeString()) 101424 } 101425 yyj40++ 101426 if yyhl40 { 101427 yyb40 = yyj40 > l 101428 } else { 101429 yyb40 = r.CheckBreak() 101430 } 101431 if yyb40 { 101432 r.ReadArrayEnd() 101433 return 101434 } 101435 r.ReadArrayElem() 101436 if r.TryDecodeAsNil() { 101437 x.Name = "" 101438 } else { 101439 x.Name = (string)(r.DecodeString()) 101440 } 101441 yyj40++ 101442 if yyhl40 { 101443 yyb40 = yyj40 > l 101444 } else { 101445 yyb40 = r.CheckBreak() 101446 } 101447 if yyb40 { 101448 r.ReadArrayEnd() 101449 return 101450 } 101451 r.ReadArrayElem() 101452 if r.TryDecodeAsNil() { 101453 x.NodeID = "" 101454 } else { 101455 x.NodeID = (string)(r.DecodeString()) 101456 } 101457 yyj40++ 101458 if yyhl40 { 101459 yyb40 = yyj40 > l 101460 } else { 101461 yyb40 = r.CheckBreak() 101462 } 101463 if yyb40 { 101464 r.ReadArrayEnd() 101465 return 101466 } 101467 r.ReadArrayElem() 101468 if r.TryDecodeAsNil() { 101469 x.NodeName = "" 101470 } else { 101471 x.NodeName = (string)(r.DecodeString()) 101472 } 101473 yyj40++ 101474 if yyhl40 { 101475 yyb40 = yyj40 > l 101476 } else { 101477 yyb40 = r.CheckBreak() 101478 } 101479 if yyb40 { 101480 r.ReadArrayEnd() 101481 return 101482 } 101483 r.ReadArrayElem() 101484 if r.TryDecodeAsNil() { 101485 x.JobID = "" 101486 } else { 101487 x.JobID = (string)(r.DecodeString()) 101488 } 101489 yyj40++ 101490 if yyhl40 { 101491 yyb40 = yyj40 > l 101492 } else { 101493 yyb40 = r.CheckBreak() 101494 } 101495 if yyb40 { 101496 r.ReadArrayEnd() 101497 return 101498 } 101499 r.ReadArrayElem() 101500 if r.TryDecodeAsNil() { 101501 if true && x.Job != nil { 101502 x.Job = nil 101503 } 101504 } else { 101505 if x.Job == nil { 101506 x.Job = new(Job) 101507 } 101508 101509 x.Job.CodecDecodeSelf(d) 101510 } 101511 yyj40++ 101512 if yyhl40 { 101513 yyb40 = yyj40 > l 101514 } else { 101515 yyb40 = r.CheckBreak() 101516 } 101517 if yyb40 { 101518 r.ReadArrayEnd() 101519 return 101520 } 101521 r.ReadArrayElem() 101522 if r.TryDecodeAsNil() { 101523 x.TaskGroup = "" 101524 } else { 101525 x.TaskGroup = (string)(r.DecodeString()) 101526 } 101527 yyj40++ 101528 if yyhl40 { 101529 yyb40 = yyj40 > l 101530 } else { 101531 yyb40 = r.CheckBreak() 101532 } 101533 if yyb40 { 101534 r.ReadArrayEnd() 101535 return 101536 } 101537 r.ReadArrayElem() 101538 if r.TryDecodeAsNil() { 101539 if true && x.Resources != nil { 101540 x.Resources = nil 101541 } 101542 } else { 101543 if x.Resources == nil { 101544 x.Resources = new(Resources) 101545 } 101546 101547 x.Resources.CodecDecodeSelf(d) 101548 } 101549 yyj40++ 101550 if yyhl40 { 101551 yyb40 = yyj40 > l 101552 } else { 101553 yyb40 = r.CheckBreak() 101554 } 101555 if yyb40 { 101556 r.ReadArrayEnd() 101557 return 101558 } 101559 r.ReadArrayElem() 101560 if r.TryDecodeAsNil() { 101561 if true && x.SharedResources != nil { 101562 x.SharedResources = nil 101563 } 101564 } else { 101565 if x.SharedResources == nil { 101566 x.SharedResources = new(Resources) 101567 } 101568 101569 x.SharedResources.CodecDecodeSelf(d) 101570 } 101571 yyj40++ 101572 if yyhl40 { 101573 yyb40 = yyj40 > l 101574 } else { 101575 yyb40 = r.CheckBreak() 101576 } 101577 if yyb40 { 101578 r.ReadArrayEnd() 101579 return 101580 } 101581 r.ReadArrayElem() 101582 if r.TryDecodeAsNil() { 101583 x.TaskResources = nil 101584 } else { 101585 if false { 101586 } else { 101587 h.decMapstringPtrtoResources((*map[string]*Resources)(&x.TaskResources), d) 101588 } 101589 } 101590 yyj40++ 101591 if yyhl40 { 101592 yyb40 = yyj40 > l 101593 } else { 101594 yyb40 = r.CheckBreak() 101595 } 101596 if yyb40 { 101597 r.ReadArrayEnd() 101598 return 101599 } 101600 r.ReadArrayElem() 101601 if r.TryDecodeAsNil() { 101602 if true && x.AllocatedResources != nil { 101603 x.AllocatedResources = nil 101604 } 101605 } else { 101606 if x.AllocatedResources == nil { 101607 x.AllocatedResources = new(AllocatedResources) 101608 } 101609 101610 x.AllocatedResources.CodecDecodeSelf(d) 101611 } 101612 yyj40++ 101613 if yyhl40 { 101614 yyb40 = yyj40 > l 101615 } else { 101616 yyb40 = r.CheckBreak() 101617 } 101618 if yyb40 { 101619 r.ReadArrayEnd() 101620 return 101621 } 101622 r.ReadArrayElem() 101623 if r.TryDecodeAsNil() { 101624 if true && x.Metrics != nil { 101625 x.Metrics = nil 101626 } 101627 } else { 101628 if x.Metrics == nil { 101629 x.Metrics = new(AllocMetric) 101630 } 101631 101632 x.Metrics.CodecDecodeSelf(d) 101633 } 101634 yyj40++ 101635 if yyhl40 { 101636 yyb40 = yyj40 > l 101637 } else { 101638 yyb40 = r.CheckBreak() 101639 } 101640 if yyb40 { 101641 r.ReadArrayEnd() 101642 return 101643 } 101644 r.ReadArrayElem() 101645 if r.TryDecodeAsNil() { 101646 x.DesiredStatus = "" 101647 } else { 101648 x.DesiredStatus = (string)(r.DecodeString()) 101649 } 101650 yyj40++ 101651 if yyhl40 { 101652 yyb40 = yyj40 > l 101653 } else { 101654 yyb40 = r.CheckBreak() 101655 } 101656 if yyb40 { 101657 r.ReadArrayEnd() 101658 return 101659 } 101660 r.ReadArrayElem() 101661 if r.TryDecodeAsNil() { 101662 x.DesiredDescription = "" 101663 } else { 101664 x.DesiredDescription = (string)(r.DecodeString()) 101665 } 101666 yyj40++ 101667 if yyhl40 { 101668 yyb40 = yyj40 > l 101669 } else { 101670 yyb40 = r.CheckBreak() 101671 } 101672 if yyb40 { 101673 r.ReadArrayEnd() 101674 return 101675 } 101676 r.ReadArrayElem() 101677 if r.TryDecodeAsNil() { 101678 x.DesiredTransition = DesiredTransition{} 101679 } else { 101680 x.DesiredTransition.CodecDecodeSelf(d) 101681 } 101682 yyj40++ 101683 if yyhl40 { 101684 yyb40 = yyj40 > l 101685 } else { 101686 yyb40 = r.CheckBreak() 101687 } 101688 if yyb40 { 101689 r.ReadArrayEnd() 101690 return 101691 } 101692 r.ReadArrayElem() 101693 if r.TryDecodeAsNil() { 101694 x.ClientStatus = "" 101695 } else { 101696 x.ClientStatus = (string)(r.DecodeString()) 101697 } 101698 yyj40++ 101699 if yyhl40 { 101700 yyb40 = yyj40 > l 101701 } else { 101702 yyb40 = r.CheckBreak() 101703 } 101704 if yyb40 { 101705 r.ReadArrayEnd() 101706 return 101707 } 101708 r.ReadArrayElem() 101709 if r.TryDecodeAsNil() { 101710 x.ClientDescription = "" 101711 } else { 101712 x.ClientDescription = (string)(r.DecodeString()) 101713 } 101714 yyj40++ 101715 if yyhl40 { 101716 yyb40 = yyj40 > l 101717 } else { 101718 yyb40 = r.CheckBreak() 101719 } 101720 if yyb40 { 101721 r.ReadArrayEnd() 101722 return 101723 } 101724 r.ReadArrayElem() 101725 if r.TryDecodeAsNil() { 101726 x.TaskStates = nil 101727 } else { 101728 if false { 101729 } else { 101730 h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) 101731 } 101732 } 101733 yyj40++ 101734 if yyhl40 { 101735 yyb40 = yyj40 > l 101736 } else { 101737 yyb40 = r.CheckBreak() 101738 } 101739 if yyb40 { 101740 r.ReadArrayEnd() 101741 return 101742 } 101743 r.ReadArrayElem() 101744 if r.TryDecodeAsNil() { 101745 x.PreviousAllocation = "" 101746 } else { 101747 x.PreviousAllocation = (string)(r.DecodeString()) 101748 } 101749 yyj40++ 101750 if yyhl40 { 101751 yyb40 = yyj40 > l 101752 } else { 101753 yyb40 = r.CheckBreak() 101754 } 101755 if yyb40 { 101756 r.ReadArrayEnd() 101757 return 101758 } 101759 r.ReadArrayElem() 101760 if r.TryDecodeAsNil() { 101761 x.NextAllocation = "" 101762 } else { 101763 x.NextAllocation = (string)(r.DecodeString()) 101764 } 101765 yyj40++ 101766 if yyhl40 { 101767 yyb40 = yyj40 > l 101768 } else { 101769 yyb40 = r.CheckBreak() 101770 } 101771 if yyb40 { 101772 r.ReadArrayEnd() 101773 return 101774 } 101775 r.ReadArrayElem() 101776 if r.TryDecodeAsNil() { 101777 x.DeploymentID = "" 101778 } else { 101779 x.DeploymentID = (string)(r.DecodeString()) 101780 } 101781 yyj40++ 101782 if yyhl40 { 101783 yyb40 = yyj40 > l 101784 } else { 101785 yyb40 = r.CheckBreak() 101786 } 101787 if yyb40 { 101788 r.ReadArrayEnd() 101789 return 101790 } 101791 r.ReadArrayElem() 101792 if r.TryDecodeAsNil() { 101793 if true && x.DeploymentStatus != nil { 101794 x.DeploymentStatus = nil 101795 } 101796 } else { 101797 if x.DeploymentStatus == nil { 101798 x.DeploymentStatus = new(AllocDeploymentStatus) 101799 } 101800 101801 x.DeploymentStatus.CodecDecodeSelf(d) 101802 } 101803 yyj40++ 101804 if yyhl40 { 101805 yyb40 = yyj40 > l 101806 } else { 101807 yyb40 = r.CheckBreak() 101808 } 101809 if yyb40 { 101810 r.ReadArrayEnd() 101811 return 101812 } 101813 r.ReadArrayElem() 101814 if r.TryDecodeAsNil() { 101815 if true && x.RescheduleTracker != nil { 101816 x.RescheduleTracker = nil 101817 } 101818 } else { 101819 if x.RescheduleTracker == nil { 101820 x.RescheduleTracker = new(RescheduleTracker) 101821 } 101822 101823 x.RescheduleTracker.CodecDecodeSelf(d) 101824 } 101825 yyj40++ 101826 if yyhl40 { 101827 yyb40 = yyj40 > l 101828 } else { 101829 yyb40 = r.CheckBreak() 101830 } 101831 if yyb40 { 101832 r.ReadArrayEnd() 101833 return 101834 } 101835 r.ReadArrayElem() 101836 if r.TryDecodeAsNil() { 101837 x.FollowupEvalID = "" 101838 } else { 101839 x.FollowupEvalID = (string)(r.DecodeString()) 101840 } 101841 yyj40++ 101842 if yyhl40 { 101843 yyb40 = yyj40 > l 101844 } else { 101845 yyb40 = r.CheckBreak() 101846 } 101847 if yyb40 { 101848 r.ReadArrayEnd() 101849 return 101850 } 101851 r.ReadArrayElem() 101852 if r.TryDecodeAsNil() { 101853 x.PreemptedAllocations = nil 101854 } else { 101855 if false { 101856 } else { 101857 z.F.DecSliceStringX(&x.PreemptedAllocations, d) 101858 } 101859 } 101860 yyj40++ 101861 if yyhl40 { 101862 yyb40 = yyj40 > l 101863 } else { 101864 yyb40 = r.CheckBreak() 101865 } 101866 if yyb40 { 101867 r.ReadArrayEnd() 101868 return 101869 } 101870 r.ReadArrayElem() 101871 if r.TryDecodeAsNil() { 101872 x.PreemptedByAllocation = "" 101873 } else { 101874 x.PreemptedByAllocation = (string)(r.DecodeString()) 101875 } 101876 yyj40++ 101877 if yyhl40 { 101878 yyb40 = yyj40 > l 101879 } else { 101880 yyb40 = r.CheckBreak() 101881 } 101882 if yyb40 { 101883 r.ReadArrayEnd() 101884 return 101885 } 101886 r.ReadArrayElem() 101887 if r.TryDecodeAsNil() { 101888 x.CreateIndex = 0 101889 } else { 101890 x.CreateIndex = (uint64)(r.DecodeUint64()) 101891 } 101892 yyj40++ 101893 if yyhl40 { 101894 yyb40 = yyj40 > l 101895 } else { 101896 yyb40 = r.CheckBreak() 101897 } 101898 if yyb40 { 101899 r.ReadArrayEnd() 101900 return 101901 } 101902 r.ReadArrayElem() 101903 if r.TryDecodeAsNil() { 101904 x.ModifyIndex = 0 101905 } else { 101906 x.ModifyIndex = (uint64)(r.DecodeUint64()) 101907 } 101908 yyj40++ 101909 if yyhl40 { 101910 yyb40 = yyj40 > l 101911 } else { 101912 yyb40 = r.CheckBreak() 101913 } 101914 if yyb40 { 101915 r.ReadArrayEnd() 101916 return 101917 } 101918 r.ReadArrayElem() 101919 if r.TryDecodeAsNil() { 101920 x.AllocModifyIndex = 0 101921 } else { 101922 x.AllocModifyIndex = (uint64)(r.DecodeUint64()) 101923 } 101924 yyj40++ 101925 if yyhl40 { 101926 yyb40 = yyj40 > l 101927 } else { 101928 yyb40 = r.CheckBreak() 101929 } 101930 if yyb40 { 101931 r.ReadArrayEnd() 101932 return 101933 } 101934 r.ReadArrayElem() 101935 if r.TryDecodeAsNil() { 101936 x.CreateTime = 0 101937 } else { 101938 x.CreateTime = (int64)(r.DecodeInt64()) 101939 } 101940 yyj40++ 101941 if yyhl40 { 101942 yyb40 = yyj40 > l 101943 } else { 101944 yyb40 = r.CheckBreak() 101945 } 101946 if yyb40 { 101947 r.ReadArrayEnd() 101948 return 101949 } 101950 r.ReadArrayElem() 101951 if r.TryDecodeAsNil() { 101952 x.ModifyTime = 0 101953 } else { 101954 x.ModifyTime = (int64)(r.DecodeInt64()) 101955 } 101956 for { 101957 yyj40++ 101958 if yyhl40 { 101959 yyb40 = yyj40 > l 101960 } else { 101961 yyb40 = r.CheckBreak() 101962 } 101963 if yyb40 { 101964 break 101965 } 101966 r.ReadArrayElem() 101967 z.DecStructFieldNotFound(yyj40-1, "") 101968 } 101969 r.ReadArrayEnd() 101970 } 101971 101972 func (x *AllocListStub) CodecEncodeSelf(e *codec1978.Encoder) { 101973 var h codecSelfer100 101974 z, r := codec1978.GenHelperEncoder(e) 101975 _, _, _ = h, z, r 101976 if x == nil { 101977 r.EncodeNil() 101978 } else { 101979 if false { 101980 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 101981 z.EncExtension(x, yyxt1) 101982 } else { 101983 yysep2 := !z.EncBinary() 101984 yy2arr2 := z.EncBasicHandle().StructToArray 101985 _, _ = yysep2, yy2arr2 101986 const yyr2 bool = false // struct tag has 'toArray' 101987 if yyr2 || yy2arr2 { 101988 r.WriteArrayStart(25) 101989 } else { 101990 r.WriteMapStart(25) 101991 } 101992 if yyr2 || yy2arr2 { 101993 r.WriteArrayElem() 101994 if false { 101995 } else { 101996 if z.EncBasicHandle().StringToRaw { 101997 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 101998 } else { 101999 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 102000 } 102001 } 102002 } else { 102003 r.WriteMapElemKey() 102004 if z.IsJSONHandle() { 102005 z.WriteStr("\"ID\"") 102006 } else { 102007 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 102008 } 102009 r.WriteMapElemValue() 102010 if false { 102011 } else { 102012 if z.EncBasicHandle().StringToRaw { 102013 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 102014 } else { 102015 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 102016 } 102017 } 102018 } 102019 if yyr2 || yy2arr2 { 102020 r.WriteArrayElem() 102021 if false { 102022 } else { 102023 if z.EncBasicHandle().StringToRaw { 102024 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 102025 } else { 102026 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 102027 } 102028 } 102029 } else { 102030 r.WriteMapElemKey() 102031 if z.IsJSONHandle() { 102032 z.WriteStr("\"EvalID\"") 102033 } else { 102034 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 102035 } 102036 r.WriteMapElemValue() 102037 if false { 102038 } else { 102039 if z.EncBasicHandle().StringToRaw { 102040 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 102041 } else { 102042 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 102043 } 102044 } 102045 } 102046 if yyr2 || yy2arr2 { 102047 r.WriteArrayElem() 102048 if false { 102049 } else { 102050 if z.EncBasicHandle().StringToRaw { 102051 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 102052 } else { 102053 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 102054 } 102055 } 102056 } else { 102057 r.WriteMapElemKey() 102058 if z.IsJSONHandle() { 102059 z.WriteStr("\"Name\"") 102060 } else { 102061 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 102062 } 102063 r.WriteMapElemValue() 102064 if false { 102065 } else { 102066 if z.EncBasicHandle().StringToRaw { 102067 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 102068 } else { 102069 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 102070 } 102071 } 102072 } 102073 if yyr2 || yy2arr2 { 102074 r.WriteArrayElem() 102075 if false { 102076 } else { 102077 if z.EncBasicHandle().StringToRaw { 102078 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 102079 } else { 102080 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 102081 } 102082 } 102083 } else { 102084 r.WriteMapElemKey() 102085 if z.IsJSONHandle() { 102086 z.WriteStr("\"Namespace\"") 102087 } else { 102088 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 102089 } 102090 r.WriteMapElemValue() 102091 if false { 102092 } else { 102093 if z.EncBasicHandle().StringToRaw { 102094 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 102095 } else { 102096 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 102097 } 102098 } 102099 } 102100 if yyr2 || yy2arr2 { 102101 r.WriteArrayElem() 102102 if false { 102103 } else { 102104 if z.EncBasicHandle().StringToRaw { 102105 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 102106 } else { 102107 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 102108 } 102109 } 102110 } else { 102111 r.WriteMapElemKey() 102112 if z.IsJSONHandle() { 102113 z.WriteStr("\"NodeID\"") 102114 } else { 102115 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 102116 } 102117 r.WriteMapElemValue() 102118 if false { 102119 } else { 102120 if z.EncBasicHandle().StringToRaw { 102121 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 102122 } else { 102123 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 102124 } 102125 } 102126 } 102127 if yyr2 || yy2arr2 { 102128 r.WriteArrayElem() 102129 if false { 102130 } else { 102131 if z.EncBasicHandle().StringToRaw { 102132 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) 102133 } else { 102134 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) 102135 } 102136 } 102137 } else { 102138 r.WriteMapElemKey() 102139 if z.IsJSONHandle() { 102140 z.WriteStr("\"NodeName\"") 102141 } else { 102142 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeName`) 102143 } 102144 r.WriteMapElemValue() 102145 if false { 102146 } else { 102147 if z.EncBasicHandle().StringToRaw { 102148 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) 102149 } else { 102150 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) 102151 } 102152 } 102153 } 102154 if yyr2 || yy2arr2 { 102155 r.WriteArrayElem() 102156 if false { 102157 } else { 102158 if z.EncBasicHandle().StringToRaw { 102159 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 102160 } else { 102161 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 102162 } 102163 } 102164 } else { 102165 r.WriteMapElemKey() 102166 if z.IsJSONHandle() { 102167 z.WriteStr("\"JobID\"") 102168 } else { 102169 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 102170 } 102171 r.WriteMapElemValue() 102172 if false { 102173 } else { 102174 if z.EncBasicHandle().StringToRaw { 102175 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 102176 } else { 102177 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 102178 } 102179 } 102180 } 102181 if yyr2 || yy2arr2 { 102182 r.WriteArrayElem() 102183 if false { 102184 } else { 102185 if z.EncBasicHandle().StringToRaw { 102186 r.EncodeStringBytesRaw(z.BytesView(string(x.JobType))) 102187 } else { 102188 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobType)) 102189 } 102190 } 102191 } else { 102192 r.WriteMapElemKey() 102193 if z.IsJSONHandle() { 102194 z.WriteStr("\"JobType\"") 102195 } else { 102196 r.EncodeStringEnc(codecSelferCcUTF8100, `JobType`) 102197 } 102198 r.WriteMapElemValue() 102199 if false { 102200 } else { 102201 if z.EncBasicHandle().StringToRaw { 102202 r.EncodeStringBytesRaw(z.BytesView(string(x.JobType))) 102203 } else { 102204 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobType)) 102205 } 102206 } 102207 } 102208 if yyr2 || yy2arr2 { 102209 r.WriteArrayElem() 102210 if false { 102211 } else { 102212 r.EncodeUint(uint64(x.JobVersion)) 102213 } 102214 } else { 102215 r.WriteMapElemKey() 102216 if z.IsJSONHandle() { 102217 z.WriteStr("\"JobVersion\"") 102218 } else { 102219 r.EncodeStringEnc(codecSelferCcUTF8100, `JobVersion`) 102220 } 102221 r.WriteMapElemValue() 102222 if false { 102223 } else { 102224 r.EncodeUint(uint64(x.JobVersion)) 102225 } 102226 } 102227 if yyr2 || yy2arr2 { 102228 r.WriteArrayElem() 102229 if false { 102230 } else { 102231 if z.EncBasicHandle().StringToRaw { 102232 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) 102233 } else { 102234 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) 102235 } 102236 } 102237 } else { 102238 r.WriteMapElemKey() 102239 if z.IsJSONHandle() { 102240 z.WriteStr("\"TaskGroup\"") 102241 } else { 102242 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroup`) 102243 } 102244 r.WriteMapElemValue() 102245 if false { 102246 } else { 102247 if z.EncBasicHandle().StringToRaw { 102248 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) 102249 } else { 102250 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) 102251 } 102252 } 102253 } 102254 if yyr2 || yy2arr2 { 102255 r.WriteArrayElem() 102256 if false { 102257 } else { 102258 if z.EncBasicHandle().StringToRaw { 102259 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) 102260 } else { 102261 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) 102262 } 102263 } 102264 } else { 102265 r.WriteMapElemKey() 102266 if z.IsJSONHandle() { 102267 z.WriteStr("\"DesiredStatus\"") 102268 } else { 102269 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredStatus`) 102270 } 102271 r.WriteMapElemValue() 102272 if false { 102273 } else { 102274 if z.EncBasicHandle().StringToRaw { 102275 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) 102276 } else { 102277 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) 102278 } 102279 } 102280 } 102281 if yyr2 || yy2arr2 { 102282 r.WriteArrayElem() 102283 if false { 102284 } else { 102285 if z.EncBasicHandle().StringToRaw { 102286 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) 102287 } else { 102288 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) 102289 } 102290 } 102291 } else { 102292 r.WriteMapElemKey() 102293 if z.IsJSONHandle() { 102294 z.WriteStr("\"DesiredDescription\"") 102295 } else { 102296 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredDescription`) 102297 } 102298 r.WriteMapElemValue() 102299 if false { 102300 } else { 102301 if z.EncBasicHandle().StringToRaw { 102302 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) 102303 } else { 102304 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) 102305 } 102306 } 102307 } 102308 if yyr2 || yy2arr2 { 102309 r.WriteArrayElem() 102310 if false { 102311 } else { 102312 if z.EncBasicHandle().StringToRaw { 102313 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) 102314 } else { 102315 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) 102316 } 102317 } 102318 } else { 102319 r.WriteMapElemKey() 102320 if z.IsJSONHandle() { 102321 z.WriteStr("\"ClientStatus\"") 102322 } else { 102323 r.EncodeStringEnc(codecSelferCcUTF8100, `ClientStatus`) 102324 } 102325 r.WriteMapElemValue() 102326 if false { 102327 } else { 102328 if z.EncBasicHandle().StringToRaw { 102329 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) 102330 } else { 102331 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) 102332 } 102333 } 102334 } 102335 if yyr2 || yy2arr2 { 102336 r.WriteArrayElem() 102337 if false { 102338 } else { 102339 if z.EncBasicHandle().StringToRaw { 102340 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) 102341 } else { 102342 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) 102343 } 102344 } 102345 } else { 102346 r.WriteMapElemKey() 102347 if z.IsJSONHandle() { 102348 z.WriteStr("\"ClientDescription\"") 102349 } else { 102350 r.EncodeStringEnc(codecSelferCcUTF8100, `ClientDescription`) 102351 } 102352 r.WriteMapElemValue() 102353 if false { 102354 } else { 102355 if z.EncBasicHandle().StringToRaw { 102356 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) 102357 } else { 102358 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) 102359 } 102360 } 102361 } 102362 if yyr2 || yy2arr2 { 102363 r.WriteArrayElem() 102364 yy46 := &x.DesiredTransition 102365 yy46.CodecEncodeSelf(e) 102366 } else { 102367 r.WriteMapElemKey() 102368 if z.IsJSONHandle() { 102369 z.WriteStr("\"DesiredTransition\"") 102370 } else { 102371 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTransition`) 102372 } 102373 r.WriteMapElemValue() 102374 yy48 := &x.DesiredTransition 102375 yy48.CodecEncodeSelf(e) 102376 } 102377 if yyr2 || yy2arr2 { 102378 r.WriteArrayElem() 102379 if x.TaskStates == nil { 102380 r.EncodeNil() 102381 } else { 102382 if false { 102383 } else { 102384 h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) 102385 } 102386 } 102387 } else { 102388 r.WriteMapElemKey() 102389 if z.IsJSONHandle() { 102390 z.WriteStr("\"TaskStates\"") 102391 } else { 102392 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskStates`) 102393 } 102394 r.WriteMapElemValue() 102395 if x.TaskStates == nil { 102396 r.EncodeNil() 102397 } else { 102398 if false { 102399 } else { 102400 h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) 102401 } 102402 } 102403 } 102404 var yyn53 bool 102405 if x.DeploymentStatus == nil { 102406 yyn53 = true 102407 goto LABEL53 102408 } 102409 LABEL53: 102410 if yyr2 || yy2arr2 { 102411 if yyn53 { 102412 r.WriteArrayElem() 102413 r.EncodeNil() 102414 } else { 102415 r.WriteArrayElem() 102416 if x.DeploymentStatus == nil { 102417 r.EncodeNil() 102418 } else { 102419 x.DeploymentStatus.CodecEncodeSelf(e) 102420 } 102421 } 102422 } else { 102423 r.WriteMapElemKey() 102424 if z.IsJSONHandle() { 102425 z.WriteStr("\"DeploymentStatus\"") 102426 } else { 102427 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentStatus`) 102428 } 102429 r.WriteMapElemValue() 102430 if yyn53 { 102431 r.EncodeNil() 102432 } else { 102433 if x.DeploymentStatus == nil { 102434 r.EncodeNil() 102435 } else { 102436 x.DeploymentStatus.CodecEncodeSelf(e) 102437 } 102438 } 102439 } 102440 if yyr2 || yy2arr2 { 102441 r.WriteArrayElem() 102442 if false { 102443 } else { 102444 if z.EncBasicHandle().StringToRaw { 102445 r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) 102446 } else { 102447 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) 102448 } 102449 } 102450 } else { 102451 r.WriteMapElemKey() 102452 if z.IsJSONHandle() { 102453 z.WriteStr("\"FollowupEvalID\"") 102454 } else { 102455 r.EncodeStringEnc(codecSelferCcUTF8100, `FollowupEvalID`) 102456 } 102457 r.WriteMapElemValue() 102458 if false { 102459 } else { 102460 if z.EncBasicHandle().StringToRaw { 102461 r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) 102462 } else { 102463 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) 102464 } 102465 } 102466 } 102467 var yyn59 bool 102468 if x.RescheduleTracker == nil { 102469 yyn59 = true 102470 goto LABEL59 102471 } 102472 LABEL59: 102473 if yyr2 || yy2arr2 { 102474 if yyn59 { 102475 r.WriteArrayElem() 102476 r.EncodeNil() 102477 } else { 102478 r.WriteArrayElem() 102479 if x.RescheduleTracker == nil { 102480 r.EncodeNil() 102481 } else { 102482 x.RescheduleTracker.CodecEncodeSelf(e) 102483 } 102484 } 102485 } else { 102486 r.WriteMapElemKey() 102487 if z.IsJSONHandle() { 102488 z.WriteStr("\"RescheduleTracker\"") 102489 } else { 102490 r.EncodeStringEnc(codecSelferCcUTF8100, `RescheduleTracker`) 102491 } 102492 r.WriteMapElemValue() 102493 if yyn59 { 102494 r.EncodeNil() 102495 } else { 102496 if x.RescheduleTracker == nil { 102497 r.EncodeNil() 102498 } else { 102499 x.RescheduleTracker.CodecEncodeSelf(e) 102500 } 102501 } 102502 } 102503 if yyr2 || yy2arr2 { 102504 r.WriteArrayElem() 102505 if x.PreemptedAllocations == nil { 102506 r.EncodeNil() 102507 } else { 102508 if false { 102509 } else { 102510 z.F.EncSliceStringV(x.PreemptedAllocations, e) 102511 } 102512 } 102513 } else { 102514 r.WriteMapElemKey() 102515 if z.IsJSONHandle() { 102516 z.WriteStr("\"PreemptedAllocations\"") 102517 } else { 102518 r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedAllocations`) 102519 } 102520 r.WriteMapElemValue() 102521 if x.PreemptedAllocations == nil { 102522 r.EncodeNil() 102523 } else { 102524 if false { 102525 } else { 102526 z.F.EncSliceStringV(x.PreemptedAllocations, e) 102527 } 102528 } 102529 } 102530 if yyr2 || yy2arr2 { 102531 r.WriteArrayElem() 102532 if false { 102533 } else { 102534 if z.EncBasicHandle().StringToRaw { 102535 r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) 102536 } else { 102537 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) 102538 } 102539 } 102540 } else { 102541 r.WriteMapElemKey() 102542 if z.IsJSONHandle() { 102543 z.WriteStr("\"PreemptedByAllocation\"") 102544 } else { 102545 r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedByAllocation`) 102546 } 102547 r.WriteMapElemValue() 102548 if false { 102549 } else { 102550 if z.EncBasicHandle().StringToRaw { 102551 r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) 102552 } else { 102553 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) 102554 } 102555 } 102556 } 102557 if yyr2 || yy2arr2 { 102558 r.WriteArrayElem() 102559 if false { 102560 } else { 102561 r.EncodeUint(uint64(x.CreateIndex)) 102562 } 102563 } else { 102564 r.WriteMapElemKey() 102565 if z.IsJSONHandle() { 102566 z.WriteStr("\"CreateIndex\"") 102567 } else { 102568 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 102569 } 102570 r.WriteMapElemValue() 102571 if false { 102572 } else { 102573 r.EncodeUint(uint64(x.CreateIndex)) 102574 } 102575 } 102576 if yyr2 || yy2arr2 { 102577 r.WriteArrayElem() 102578 if false { 102579 } else { 102580 r.EncodeUint(uint64(x.ModifyIndex)) 102581 } 102582 } else { 102583 r.WriteMapElemKey() 102584 if z.IsJSONHandle() { 102585 z.WriteStr("\"ModifyIndex\"") 102586 } else { 102587 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 102588 } 102589 r.WriteMapElemValue() 102590 if false { 102591 } else { 102592 r.EncodeUint(uint64(x.ModifyIndex)) 102593 } 102594 } 102595 if yyr2 || yy2arr2 { 102596 r.WriteArrayElem() 102597 if false { 102598 } else { 102599 r.EncodeInt(int64(x.CreateTime)) 102600 } 102601 } else { 102602 r.WriteMapElemKey() 102603 if z.IsJSONHandle() { 102604 z.WriteStr("\"CreateTime\"") 102605 } else { 102606 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) 102607 } 102608 r.WriteMapElemValue() 102609 if false { 102610 } else { 102611 r.EncodeInt(int64(x.CreateTime)) 102612 } 102613 } 102614 if yyr2 || yy2arr2 { 102615 r.WriteArrayElem() 102616 if false { 102617 } else { 102618 r.EncodeInt(int64(x.ModifyTime)) 102619 } 102620 } else { 102621 r.WriteMapElemKey() 102622 if z.IsJSONHandle() { 102623 z.WriteStr("\"ModifyTime\"") 102624 } else { 102625 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) 102626 } 102627 r.WriteMapElemValue() 102628 if false { 102629 } else { 102630 r.EncodeInt(int64(x.ModifyTime)) 102631 } 102632 } 102633 if yyr2 || yy2arr2 { 102634 r.WriteArrayEnd() 102635 } else { 102636 r.WriteMapEnd() 102637 } 102638 } 102639 } 102640 } 102641 102642 func (x *AllocListStub) CodecDecodeSelf(d *codec1978.Decoder) { 102643 var h codecSelfer100 102644 z, r := codec1978.GenHelperDecoder(d) 102645 _, _, _ = h, z, r 102646 if false { 102647 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 102648 z.DecExtension(x, yyxt1) 102649 } else { 102650 yyct2 := r.ContainerType() 102651 if yyct2 == codecSelferValueTypeMap100 { 102652 yyl2 := r.ReadMapStart() 102653 if yyl2 == 0 { 102654 r.ReadMapEnd() 102655 } else { 102656 x.codecDecodeSelfFromMap(yyl2, d) 102657 } 102658 } else if yyct2 == codecSelferValueTypeArray100 { 102659 yyl2 := r.ReadArrayStart() 102660 if yyl2 == 0 { 102661 r.ReadArrayEnd() 102662 } else { 102663 x.codecDecodeSelfFromArray(yyl2, d) 102664 } 102665 } else { 102666 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 102667 } 102668 } 102669 } 102670 102671 func (x *AllocListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 102672 var h codecSelfer100 102673 z, r := codec1978.GenHelperDecoder(d) 102674 _, _, _ = h, z, r 102675 var yyhl3 bool = l >= 0 102676 for yyj3 := 0; ; yyj3++ { 102677 if yyhl3 { 102678 if yyj3 >= l { 102679 break 102680 } 102681 } else { 102682 if r.CheckBreak() { 102683 break 102684 } 102685 } 102686 r.ReadMapElemKey() 102687 yys3 := z.StringView(r.DecodeStringAsBytes()) 102688 r.ReadMapElemValue() 102689 switch yys3 { 102690 case "ID": 102691 if r.TryDecodeAsNil() { 102692 x.ID = "" 102693 } else { 102694 x.ID = (string)(r.DecodeString()) 102695 } 102696 case "EvalID": 102697 if r.TryDecodeAsNil() { 102698 x.EvalID = "" 102699 } else { 102700 x.EvalID = (string)(r.DecodeString()) 102701 } 102702 case "Name": 102703 if r.TryDecodeAsNil() { 102704 x.Name = "" 102705 } else { 102706 x.Name = (string)(r.DecodeString()) 102707 } 102708 case "Namespace": 102709 if r.TryDecodeAsNil() { 102710 x.Namespace = "" 102711 } else { 102712 x.Namespace = (string)(r.DecodeString()) 102713 } 102714 case "NodeID": 102715 if r.TryDecodeAsNil() { 102716 x.NodeID = "" 102717 } else { 102718 x.NodeID = (string)(r.DecodeString()) 102719 } 102720 case "NodeName": 102721 if r.TryDecodeAsNil() { 102722 x.NodeName = "" 102723 } else { 102724 x.NodeName = (string)(r.DecodeString()) 102725 } 102726 case "JobID": 102727 if r.TryDecodeAsNil() { 102728 x.JobID = "" 102729 } else { 102730 x.JobID = (string)(r.DecodeString()) 102731 } 102732 case "JobType": 102733 if r.TryDecodeAsNil() { 102734 x.JobType = "" 102735 } else { 102736 x.JobType = (string)(r.DecodeString()) 102737 } 102738 case "JobVersion": 102739 if r.TryDecodeAsNil() { 102740 x.JobVersion = 0 102741 } else { 102742 x.JobVersion = (uint64)(r.DecodeUint64()) 102743 } 102744 case "TaskGroup": 102745 if r.TryDecodeAsNil() { 102746 x.TaskGroup = "" 102747 } else { 102748 x.TaskGroup = (string)(r.DecodeString()) 102749 } 102750 case "DesiredStatus": 102751 if r.TryDecodeAsNil() { 102752 x.DesiredStatus = "" 102753 } else { 102754 x.DesiredStatus = (string)(r.DecodeString()) 102755 } 102756 case "DesiredDescription": 102757 if r.TryDecodeAsNil() { 102758 x.DesiredDescription = "" 102759 } else { 102760 x.DesiredDescription = (string)(r.DecodeString()) 102761 } 102762 case "ClientStatus": 102763 if r.TryDecodeAsNil() { 102764 x.ClientStatus = "" 102765 } else { 102766 x.ClientStatus = (string)(r.DecodeString()) 102767 } 102768 case "ClientDescription": 102769 if r.TryDecodeAsNil() { 102770 x.ClientDescription = "" 102771 } else { 102772 x.ClientDescription = (string)(r.DecodeString()) 102773 } 102774 case "DesiredTransition": 102775 if r.TryDecodeAsNil() { 102776 x.DesiredTransition = DesiredTransition{} 102777 } else { 102778 x.DesiredTransition.CodecDecodeSelf(d) 102779 } 102780 case "TaskStates": 102781 if r.TryDecodeAsNil() { 102782 x.TaskStates = nil 102783 } else { 102784 if false { 102785 } else { 102786 h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) 102787 } 102788 } 102789 case "DeploymentStatus": 102790 if r.TryDecodeAsNil() { 102791 if true && x.DeploymentStatus != nil { 102792 x.DeploymentStatus = nil 102793 } 102794 } else { 102795 if x.DeploymentStatus == nil { 102796 x.DeploymentStatus = new(AllocDeploymentStatus) 102797 } 102798 102799 x.DeploymentStatus.CodecDecodeSelf(d) 102800 } 102801 case "FollowupEvalID": 102802 if r.TryDecodeAsNil() { 102803 x.FollowupEvalID = "" 102804 } else { 102805 x.FollowupEvalID = (string)(r.DecodeString()) 102806 } 102807 case "RescheduleTracker": 102808 if r.TryDecodeAsNil() { 102809 if true && x.RescheduleTracker != nil { 102810 x.RescheduleTracker = nil 102811 } 102812 } else { 102813 if x.RescheduleTracker == nil { 102814 x.RescheduleTracker = new(RescheduleTracker) 102815 } 102816 102817 x.RescheduleTracker.CodecDecodeSelf(d) 102818 } 102819 case "PreemptedAllocations": 102820 if r.TryDecodeAsNil() { 102821 x.PreemptedAllocations = nil 102822 } else { 102823 if false { 102824 } else { 102825 z.F.DecSliceStringX(&x.PreemptedAllocations, d) 102826 } 102827 } 102828 case "PreemptedByAllocation": 102829 if r.TryDecodeAsNil() { 102830 x.PreemptedByAllocation = "" 102831 } else { 102832 x.PreemptedByAllocation = (string)(r.DecodeString()) 102833 } 102834 case "CreateIndex": 102835 if r.TryDecodeAsNil() { 102836 x.CreateIndex = 0 102837 } else { 102838 x.CreateIndex = (uint64)(r.DecodeUint64()) 102839 } 102840 case "ModifyIndex": 102841 if r.TryDecodeAsNil() { 102842 x.ModifyIndex = 0 102843 } else { 102844 x.ModifyIndex = (uint64)(r.DecodeUint64()) 102845 } 102846 case "CreateTime": 102847 if r.TryDecodeAsNil() { 102848 x.CreateTime = 0 102849 } else { 102850 x.CreateTime = (int64)(r.DecodeInt64()) 102851 } 102852 case "ModifyTime": 102853 if r.TryDecodeAsNil() { 102854 x.ModifyTime = 0 102855 } else { 102856 x.ModifyTime = (int64)(r.DecodeInt64()) 102857 } 102858 default: 102859 z.DecStructFieldNotFound(-1, yys3) 102860 } // end switch yys3 102861 } // end for yyj3 102862 r.ReadMapEnd() 102863 } 102864 102865 func (x *AllocListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 102866 var h codecSelfer100 102867 z, r := codec1978.GenHelperDecoder(d) 102868 _, _, _ = h, z, r 102869 var yyj31 int 102870 var yyb31 bool 102871 var yyhl31 bool = l >= 0 102872 yyj31++ 102873 if yyhl31 { 102874 yyb31 = yyj31 > l 102875 } else { 102876 yyb31 = r.CheckBreak() 102877 } 102878 if yyb31 { 102879 r.ReadArrayEnd() 102880 return 102881 } 102882 r.ReadArrayElem() 102883 if r.TryDecodeAsNil() { 102884 x.ID = "" 102885 } else { 102886 x.ID = (string)(r.DecodeString()) 102887 } 102888 yyj31++ 102889 if yyhl31 { 102890 yyb31 = yyj31 > l 102891 } else { 102892 yyb31 = r.CheckBreak() 102893 } 102894 if yyb31 { 102895 r.ReadArrayEnd() 102896 return 102897 } 102898 r.ReadArrayElem() 102899 if r.TryDecodeAsNil() { 102900 x.EvalID = "" 102901 } else { 102902 x.EvalID = (string)(r.DecodeString()) 102903 } 102904 yyj31++ 102905 if yyhl31 { 102906 yyb31 = yyj31 > l 102907 } else { 102908 yyb31 = r.CheckBreak() 102909 } 102910 if yyb31 { 102911 r.ReadArrayEnd() 102912 return 102913 } 102914 r.ReadArrayElem() 102915 if r.TryDecodeAsNil() { 102916 x.Name = "" 102917 } else { 102918 x.Name = (string)(r.DecodeString()) 102919 } 102920 yyj31++ 102921 if yyhl31 { 102922 yyb31 = yyj31 > l 102923 } else { 102924 yyb31 = r.CheckBreak() 102925 } 102926 if yyb31 { 102927 r.ReadArrayEnd() 102928 return 102929 } 102930 r.ReadArrayElem() 102931 if r.TryDecodeAsNil() { 102932 x.Namespace = "" 102933 } else { 102934 x.Namespace = (string)(r.DecodeString()) 102935 } 102936 yyj31++ 102937 if yyhl31 { 102938 yyb31 = yyj31 > l 102939 } else { 102940 yyb31 = r.CheckBreak() 102941 } 102942 if yyb31 { 102943 r.ReadArrayEnd() 102944 return 102945 } 102946 r.ReadArrayElem() 102947 if r.TryDecodeAsNil() { 102948 x.NodeID = "" 102949 } else { 102950 x.NodeID = (string)(r.DecodeString()) 102951 } 102952 yyj31++ 102953 if yyhl31 { 102954 yyb31 = yyj31 > l 102955 } else { 102956 yyb31 = r.CheckBreak() 102957 } 102958 if yyb31 { 102959 r.ReadArrayEnd() 102960 return 102961 } 102962 r.ReadArrayElem() 102963 if r.TryDecodeAsNil() { 102964 x.NodeName = "" 102965 } else { 102966 x.NodeName = (string)(r.DecodeString()) 102967 } 102968 yyj31++ 102969 if yyhl31 { 102970 yyb31 = yyj31 > l 102971 } else { 102972 yyb31 = r.CheckBreak() 102973 } 102974 if yyb31 { 102975 r.ReadArrayEnd() 102976 return 102977 } 102978 r.ReadArrayElem() 102979 if r.TryDecodeAsNil() { 102980 x.JobID = "" 102981 } else { 102982 x.JobID = (string)(r.DecodeString()) 102983 } 102984 yyj31++ 102985 if yyhl31 { 102986 yyb31 = yyj31 > l 102987 } else { 102988 yyb31 = r.CheckBreak() 102989 } 102990 if yyb31 { 102991 r.ReadArrayEnd() 102992 return 102993 } 102994 r.ReadArrayElem() 102995 if r.TryDecodeAsNil() { 102996 x.JobType = "" 102997 } else { 102998 x.JobType = (string)(r.DecodeString()) 102999 } 103000 yyj31++ 103001 if yyhl31 { 103002 yyb31 = yyj31 > l 103003 } else { 103004 yyb31 = r.CheckBreak() 103005 } 103006 if yyb31 { 103007 r.ReadArrayEnd() 103008 return 103009 } 103010 r.ReadArrayElem() 103011 if r.TryDecodeAsNil() { 103012 x.JobVersion = 0 103013 } else { 103014 x.JobVersion = (uint64)(r.DecodeUint64()) 103015 } 103016 yyj31++ 103017 if yyhl31 { 103018 yyb31 = yyj31 > l 103019 } else { 103020 yyb31 = r.CheckBreak() 103021 } 103022 if yyb31 { 103023 r.ReadArrayEnd() 103024 return 103025 } 103026 r.ReadArrayElem() 103027 if r.TryDecodeAsNil() { 103028 x.TaskGroup = "" 103029 } else { 103030 x.TaskGroup = (string)(r.DecodeString()) 103031 } 103032 yyj31++ 103033 if yyhl31 { 103034 yyb31 = yyj31 > l 103035 } else { 103036 yyb31 = r.CheckBreak() 103037 } 103038 if yyb31 { 103039 r.ReadArrayEnd() 103040 return 103041 } 103042 r.ReadArrayElem() 103043 if r.TryDecodeAsNil() { 103044 x.DesiredStatus = "" 103045 } else { 103046 x.DesiredStatus = (string)(r.DecodeString()) 103047 } 103048 yyj31++ 103049 if yyhl31 { 103050 yyb31 = yyj31 > l 103051 } else { 103052 yyb31 = r.CheckBreak() 103053 } 103054 if yyb31 { 103055 r.ReadArrayEnd() 103056 return 103057 } 103058 r.ReadArrayElem() 103059 if r.TryDecodeAsNil() { 103060 x.DesiredDescription = "" 103061 } else { 103062 x.DesiredDescription = (string)(r.DecodeString()) 103063 } 103064 yyj31++ 103065 if yyhl31 { 103066 yyb31 = yyj31 > l 103067 } else { 103068 yyb31 = r.CheckBreak() 103069 } 103070 if yyb31 { 103071 r.ReadArrayEnd() 103072 return 103073 } 103074 r.ReadArrayElem() 103075 if r.TryDecodeAsNil() { 103076 x.ClientStatus = "" 103077 } else { 103078 x.ClientStatus = (string)(r.DecodeString()) 103079 } 103080 yyj31++ 103081 if yyhl31 { 103082 yyb31 = yyj31 > l 103083 } else { 103084 yyb31 = r.CheckBreak() 103085 } 103086 if yyb31 { 103087 r.ReadArrayEnd() 103088 return 103089 } 103090 r.ReadArrayElem() 103091 if r.TryDecodeAsNil() { 103092 x.ClientDescription = "" 103093 } else { 103094 x.ClientDescription = (string)(r.DecodeString()) 103095 } 103096 yyj31++ 103097 if yyhl31 { 103098 yyb31 = yyj31 > l 103099 } else { 103100 yyb31 = r.CheckBreak() 103101 } 103102 if yyb31 { 103103 r.ReadArrayEnd() 103104 return 103105 } 103106 r.ReadArrayElem() 103107 if r.TryDecodeAsNil() { 103108 x.DesiredTransition = DesiredTransition{} 103109 } else { 103110 x.DesiredTransition.CodecDecodeSelf(d) 103111 } 103112 yyj31++ 103113 if yyhl31 { 103114 yyb31 = yyj31 > l 103115 } else { 103116 yyb31 = r.CheckBreak() 103117 } 103118 if yyb31 { 103119 r.ReadArrayEnd() 103120 return 103121 } 103122 r.ReadArrayElem() 103123 if r.TryDecodeAsNil() { 103124 x.TaskStates = nil 103125 } else { 103126 if false { 103127 } else { 103128 h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) 103129 } 103130 } 103131 yyj31++ 103132 if yyhl31 { 103133 yyb31 = yyj31 > l 103134 } else { 103135 yyb31 = r.CheckBreak() 103136 } 103137 if yyb31 { 103138 r.ReadArrayEnd() 103139 return 103140 } 103141 r.ReadArrayElem() 103142 if r.TryDecodeAsNil() { 103143 if true && x.DeploymentStatus != nil { 103144 x.DeploymentStatus = nil 103145 } 103146 } else { 103147 if x.DeploymentStatus == nil { 103148 x.DeploymentStatus = new(AllocDeploymentStatus) 103149 } 103150 103151 x.DeploymentStatus.CodecDecodeSelf(d) 103152 } 103153 yyj31++ 103154 if yyhl31 { 103155 yyb31 = yyj31 > l 103156 } else { 103157 yyb31 = r.CheckBreak() 103158 } 103159 if yyb31 { 103160 r.ReadArrayEnd() 103161 return 103162 } 103163 r.ReadArrayElem() 103164 if r.TryDecodeAsNil() { 103165 x.FollowupEvalID = "" 103166 } else { 103167 x.FollowupEvalID = (string)(r.DecodeString()) 103168 } 103169 yyj31++ 103170 if yyhl31 { 103171 yyb31 = yyj31 > l 103172 } else { 103173 yyb31 = r.CheckBreak() 103174 } 103175 if yyb31 { 103176 r.ReadArrayEnd() 103177 return 103178 } 103179 r.ReadArrayElem() 103180 if r.TryDecodeAsNil() { 103181 if true && x.RescheduleTracker != nil { 103182 x.RescheduleTracker = nil 103183 } 103184 } else { 103185 if x.RescheduleTracker == nil { 103186 x.RescheduleTracker = new(RescheduleTracker) 103187 } 103188 103189 x.RescheduleTracker.CodecDecodeSelf(d) 103190 } 103191 yyj31++ 103192 if yyhl31 { 103193 yyb31 = yyj31 > l 103194 } else { 103195 yyb31 = r.CheckBreak() 103196 } 103197 if yyb31 { 103198 r.ReadArrayEnd() 103199 return 103200 } 103201 r.ReadArrayElem() 103202 if r.TryDecodeAsNil() { 103203 x.PreemptedAllocations = nil 103204 } else { 103205 if false { 103206 } else { 103207 z.F.DecSliceStringX(&x.PreemptedAllocations, d) 103208 } 103209 } 103210 yyj31++ 103211 if yyhl31 { 103212 yyb31 = yyj31 > l 103213 } else { 103214 yyb31 = r.CheckBreak() 103215 } 103216 if yyb31 { 103217 r.ReadArrayEnd() 103218 return 103219 } 103220 r.ReadArrayElem() 103221 if r.TryDecodeAsNil() { 103222 x.PreemptedByAllocation = "" 103223 } else { 103224 x.PreemptedByAllocation = (string)(r.DecodeString()) 103225 } 103226 yyj31++ 103227 if yyhl31 { 103228 yyb31 = yyj31 > l 103229 } else { 103230 yyb31 = r.CheckBreak() 103231 } 103232 if yyb31 { 103233 r.ReadArrayEnd() 103234 return 103235 } 103236 r.ReadArrayElem() 103237 if r.TryDecodeAsNil() { 103238 x.CreateIndex = 0 103239 } else { 103240 x.CreateIndex = (uint64)(r.DecodeUint64()) 103241 } 103242 yyj31++ 103243 if yyhl31 { 103244 yyb31 = yyj31 > l 103245 } else { 103246 yyb31 = r.CheckBreak() 103247 } 103248 if yyb31 { 103249 r.ReadArrayEnd() 103250 return 103251 } 103252 r.ReadArrayElem() 103253 if r.TryDecodeAsNil() { 103254 x.ModifyIndex = 0 103255 } else { 103256 x.ModifyIndex = (uint64)(r.DecodeUint64()) 103257 } 103258 yyj31++ 103259 if yyhl31 { 103260 yyb31 = yyj31 > l 103261 } else { 103262 yyb31 = r.CheckBreak() 103263 } 103264 if yyb31 { 103265 r.ReadArrayEnd() 103266 return 103267 } 103268 r.ReadArrayElem() 103269 if r.TryDecodeAsNil() { 103270 x.CreateTime = 0 103271 } else { 103272 x.CreateTime = (int64)(r.DecodeInt64()) 103273 } 103274 yyj31++ 103275 if yyhl31 { 103276 yyb31 = yyj31 > l 103277 } else { 103278 yyb31 = r.CheckBreak() 103279 } 103280 if yyb31 { 103281 r.ReadArrayEnd() 103282 return 103283 } 103284 r.ReadArrayElem() 103285 if r.TryDecodeAsNil() { 103286 x.ModifyTime = 0 103287 } else { 103288 x.ModifyTime = (int64)(r.DecodeInt64()) 103289 } 103290 for { 103291 yyj31++ 103292 if yyhl31 { 103293 yyb31 = yyj31 > l 103294 } else { 103295 yyb31 = r.CheckBreak() 103296 } 103297 if yyb31 { 103298 break 103299 } 103300 r.ReadArrayElem() 103301 z.DecStructFieldNotFound(yyj31-1, "") 103302 } 103303 r.ReadArrayEnd() 103304 } 103305 103306 func (x *AllocMetric) CodecEncodeSelf(e *codec1978.Encoder) { 103307 var h codecSelfer100 103308 z, r := codec1978.GenHelperEncoder(e) 103309 _, _, _ = h, z, r 103310 if x == nil { 103311 r.EncodeNil() 103312 } else { 103313 if false { 103314 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 103315 z.EncExtension(x, yyxt1) 103316 } else { 103317 yysep2 := !z.EncBinary() 103318 yy2arr2 := z.EncBasicHandle().StructToArray 103319 _, _ = yysep2, yy2arr2 103320 const yyr2 bool = false // struct tag has 'toArray' 103321 if yyr2 || yy2arr2 { 103322 r.WriteArrayStart(13) 103323 } else { 103324 r.WriteMapStart(13) 103325 } 103326 if yyr2 || yy2arr2 { 103327 r.WriteArrayElem() 103328 if false { 103329 } else { 103330 r.EncodeInt(int64(x.NodesEvaluated)) 103331 } 103332 } else { 103333 r.WriteMapElemKey() 103334 if z.IsJSONHandle() { 103335 z.WriteStr("\"NodesEvaluated\"") 103336 } else { 103337 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesEvaluated`) 103338 } 103339 r.WriteMapElemValue() 103340 if false { 103341 } else { 103342 r.EncodeInt(int64(x.NodesEvaluated)) 103343 } 103344 } 103345 if yyr2 || yy2arr2 { 103346 r.WriteArrayElem() 103347 if false { 103348 } else { 103349 r.EncodeInt(int64(x.NodesFiltered)) 103350 } 103351 } else { 103352 r.WriteMapElemKey() 103353 if z.IsJSONHandle() { 103354 z.WriteStr("\"NodesFiltered\"") 103355 } else { 103356 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesFiltered`) 103357 } 103358 r.WriteMapElemValue() 103359 if false { 103360 } else { 103361 r.EncodeInt(int64(x.NodesFiltered)) 103362 } 103363 } 103364 if yyr2 || yy2arr2 { 103365 r.WriteArrayElem() 103366 if x.NodesAvailable == nil { 103367 r.EncodeNil() 103368 } else { 103369 if false { 103370 } else { 103371 z.F.EncMapStringIntV(x.NodesAvailable, e) 103372 } 103373 } 103374 } else { 103375 r.WriteMapElemKey() 103376 if z.IsJSONHandle() { 103377 z.WriteStr("\"NodesAvailable\"") 103378 } else { 103379 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesAvailable`) 103380 } 103381 r.WriteMapElemValue() 103382 if x.NodesAvailable == nil { 103383 r.EncodeNil() 103384 } else { 103385 if false { 103386 } else { 103387 z.F.EncMapStringIntV(x.NodesAvailable, e) 103388 } 103389 } 103390 } 103391 if yyr2 || yy2arr2 { 103392 r.WriteArrayElem() 103393 if x.ClassFiltered == nil { 103394 r.EncodeNil() 103395 } else { 103396 if false { 103397 } else { 103398 z.F.EncMapStringIntV(x.ClassFiltered, e) 103399 } 103400 } 103401 } else { 103402 r.WriteMapElemKey() 103403 if z.IsJSONHandle() { 103404 z.WriteStr("\"ClassFiltered\"") 103405 } else { 103406 r.EncodeStringEnc(codecSelferCcUTF8100, `ClassFiltered`) 103407 } 103408 r.WriteMapElemValue() 103409 if x.ClassFiltered == nil { 103410 r.EncodeNil() 103411 } else { 103412 if false { 103413 } else { 103414 z.F.EncMapStringIntV(x.ClassFiltered, e) 103415 } 103416 } 103417 } 103418 if yyr2 || yy2arr2 { 103419 r.WriteArrayElem() 103420 if x.ConstraintFiltered == nil { 103421 r.EncodeNil() 103422 } else { 103423 if false { 103424 } else { 103425 z.F.EncMapStringIntV(x.ConstraintFiltered, e) 103426 } 103427 } 103428 } else { 103429 r.WriteMapElemKey() 103430 if z.IsJSONHandle() { 103431 z.WriteStr("\"ConstraintFiltered\"") 103432 } else { 103433 r.EncodeStringEnc(codecSelferCcUTF8100, `ConstraintFiltered`) 103434 } 103435 r.WriteMapElemValue() 103436 if x.ConstraintFiltered == nil { 103437 r.EncodeNil() 103438 } else { 103439 if false { 103440 } else { 103441 z.F.EncMapStringIntV(x.ConstraintFiltered, e) 103442 } 103443 } 103444 } 103445 if yyr2 || yy2arr2 { 103446 r.WriteArrayElem() 103447 if false { 103448 } else { 103449 r.EncodeInt(int64(x.NodesExhausted)) 103450 } 103451 } else { 103452 r.WriteMapElemKey() 103453 if z.IsJSONHandle() { 103454 z.WriteStr("\"NodesExhausted\"") 103455 } else { 103456 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesExhausted`) 103457 } 103458 r.WriteMapElemValue() 103459 if false { 103460 } else { 103461 r.EncodeInt(int64(x.NodesExhausted)) 103462 } 103463 } 103464 if yyr2 || yy2arr2 { 103465 r.WriteArrayElem() 103466 if x.ClassExhausted == nil { 103467 r.EncodeNil() 103468 } else { 103469 if false { 103470 } else { 103471 z.F.EncMapStringIntV(x.ClassExhausted, e) 103472 } 103473 } 103474 } else { 103475 r.WriteMapElemKey() 103476 if z.IsJSONHandle() { 103477 z.WriteStr("\"ClassExhausted\"") 103478 } else { 103479 r.EncodeStringEnc(codecSelferCcUTF8100, `ClassExhausted`) 103480 } 103481 r.WriteMapElemValue() 103482 if x.ClassExhausted == nil { 103483 r.EncodeNil() 103484 } else { 103485 if false { 103486 } else { 103487 z.F.EncMapStringIntV(x.ClassExhausted, e) 103488 } 103489 } 103490 } 103491 if yyr2 || yy2arr2 { 103492 r.WriteArrayElem() 103493 if x.DimensionExhausted == nil { 103494 r.EncodeNil() 103495 } else { 103496 if false { 103497 } else { 103498 z.F.EncMapStringIntV(x.DimensionExhausted, e) 103499 } 103500 } 103501 } else { 103502 r.WriteMapElemKey() 103503 if z.IsJSONHandle() { 103504 z.WriteStr("\"DimensionExhausted\"") 103505 } else { 103506 r.EncodeStringEnc(codecSelferCcUTF8100, `DimensionExhausted`) 103507 } 103508 r.WriteMapElemValue() 103509 if x.DimensionExhausted == nil { 103510 r.EncodeNil() 103511 } else { 103512 if false { 103513 } else { 103514 z.F.EncMapStringIntV(x.DimensionExhausted, e) 103515 } 103516 } 103517 } 103518 if yyr2 || yy2arr2 { 103519 r.WriteArrayElem() 103520 if x.QuotaExhausted == nil { 103521 r.EncodeNil() 103522 } else { 103523 if false { 103524 } else { 103525 z.F.EncSliceStringV(x.QuotaExhausted, e) 103526 } 103527 } 103528 } else { 103529 r.WriteMapElemKey() 103530 if z.IsJSONHandle() { 103531 z.WriteStr("\"QuotaExhausted\"") 103532 } else { 103533 r.EncodeStringEnc(codecSelferCcUTF8100, `QuotaExhausted`) 103534 } 103535 r.WriteMapElemValue() 103536 if x.QuotaExhausted == nil { 103537 r.EncodeNil() 103538 } else { 103539 if false { 103540 } else { 103541 z.F.EncSliceStringV(x.QuotaExhausted, e) 103542 } 103543 } 103544 } 103545 if yyr2 || yy2arr2 { 103546 r.WriteArrayElem() 103547 if x.Scores == nil { 103548 r.EncodeNil() 103549 } else { 103550 if false { 103551 } else { 103552 z.F.EncMapStringFloat64V(x.Scores, e) 103553 } 103554 } 103555 } else { 103556 r.WriteMapElemKey() 103557 if z.IsJSONHandle() { 103558 z.WriteStr("\"Scores\"") 103559 } else { 103560 r.EncodeStringEnc(codecSelferCcUTF8100, `Scores`) 103561 } 103562 r.WriteMapElemValue() 103563 if x.Scores == nil { 103564 r.EncodeNil() 103565 } else { 103566 if false { 103567 } else { 103568 z.F.EncMapStringFloat64V(x.Scores, e) 103569 } 103570 } 103571 } 103572 if yyr2 || yy2arr2 { 103573 r.WriteArrayElem() 103574 if x.ScoreMetaData == nil { 103575 r.EncodeNil() 103576 } else { 103577 if false { 103578 } else { 103579 h.encSlicePtrtoNodeScoreMeta(([]*NodeScoreMeta)(x.ScoreMetaData), e) 103580 } 103581 } 103582 } else { 103583 r.WriteMapElemKey() 103584 if z.IsJSONHandle() { 103585 z.WriteStr("\"ScoreMetaData\"") 103586 } else { 103587 r.EncodeStringEnc(codecSelferCcUTF8100, `ScoreMetaData`) 103588 } 103589 r.WriteMapElemValue() 103590 if x.ScoreMetaData == nil { 103591 r.EncodeNil() 103592 } else { 103593 if false { 103594 } else { 103595 h.encSlicePtrtoNodeScoreMeta(([]*NodeScoreMeta)(x.ScoreMetaData), e) 103596 } 103597 } 103598 } 103599 if yyr2 || yy2arr2 { 103600 r.WriteArrayElem() 103601 if false { 103602 } else if yyxt37 := z.Extension(z.I2Rtid(x.AllocationTime)); yyxt37 != nil { 103603 z.EncExtension(x.AllocationTime, yyxt37) 103604 } else { 103605 r.EncodeInt(int64(x.AllocationTime)) 103606 } 103607 } else { 103608 r.WriteMapElemKey() 103609 if z.IsJSONHandle() { 103610 z.WriteStr("\"AllocationTime\"") 103611 } else { 103612 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocationTime`) 103613 } 103614 r.WriteMapElemValue() 103615 if false { 103616 } else if yyxt38 := z.Extension(z.I2Rtid(x.AllocationTime)); yyxt38 != nil { 103617 z.EncExtension(x.AllocationTime, yyxt38) 103618 } else { 103619 r.EncodeInt(int64(x.AllocationTime)) 103620 } 103621 } 103622 if yyr2 || yy2arr2 { 103623 r.WriteArrayElem() 103624 if false { 103625 } else { 103626 r.EncodeInt(int64(x.CoalescedFailures)) 103627 } 103628 } else { 103629 r.WriteMapElemKey() 103630 if z.IsJSONHandle() { 103631 z.WriteStr("\"CoalescedFailures\"") 103632 } else { 103633 r.EncodeStringEnc(codecSelferCcUTF8100, `CoalescedFailures`) 103634 } 103635 r.WriteMapElemValue() 103636 if false { 103637 } else { 103638 r.EncodeInt(int64(x.CoalescedFailures)) 103639 } 103640 } 103641 if yyr2 || yy2arr2 { 103642 r.WriteArrayEnd() 103643 } else { 103644 r.WriteMapEnd() 103645 } 103646 } 103647 } 103648 } 103649 103650 func (x *AllocMetric) CodecDecodeSelf(d *codec1978.Decoder) { 103651 var h codecSelfer100 103652 z, r := codec1978.GenHelperDecoder(d) 103653 _, _, _ = h, z, r 103654 if false { 103655 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 103656 z.DecExtension(x, yyxt1) 103657 } else { 103658 yyct2 := r.ContainerType() 103659 if yyct2 == codecSelferValueTypeMap100 { 103660 yyl2 := r.ReadMapStart() 103661 if yyl2 == 0 { 103662 r.ReadMapEnd() 103663 } else { 103664 x.codecDecodeSelfFromMap(yyl2, d) 103665 } 103666 } else if yyct2 == codecSelferValueTypeArray100 { 103667 yyl2 := r.ReadArrayStart() 103668 if yyl2 == 0 { 103669 r.ReadArrayEnd() 103670 } else { 103671 x.codecDecodeSelfFromArray(yyl2, d) 103672 } 103673 } else { 103674 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 103675 } 103676 } 103677 } 103678 103679 func (x *AllocMetric) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 103680 var h codecSelfer100 103681 z, r := codec1978.GenHelperDecoder(d) 103682 _, _, _ = h, z, r 103683 var yyhl3 bool = l >= 0 103684 for yyj3 := 0; ; yyj3++ { 103685 if yyhl3 { 103686 if yyj3 >= l { 103687 break 103688 } 103689 } else { 103690 if r.CheckBreak() { 103691 break 103692 } 103693 } 103694 r.ReadMapElemKey() 103695 yys3 := z.StringView(r.DecodeStringAsBytes()) 103696 r.ReadMapElemValue() 103697 switch yys3 { 103698 case "NodesEvaluated": 103699 if r.TryDecodeAsNil() { 103700 x.NodesEvaluated = 0 103701 } else { 103702 x.NodesEvaluated = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 103703 } 103704 case "NodesFiltered": 103705 if r.TryDecodeAsNil() { 103706 x.NodesFiltered = 0 103707 } else { 103708 x.NodesFiltered = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 103709 } 103710 case "NodesAvailable": 103711 if r.TryDecodeAsNil() { 103712 x.NodesAvailable = nil 103713 } else { 103714 if false { 103715 } else { 103716 z.F.DecMapStringIntX(&x.NodesAvailable, d) 103717 } 103718 } 103719 case "ClassFiltered": 103720 if r.TryDecodeAsNil() { 103721 x.ClassFiltered = nil 103722 } else { 103723 if false { 103724 } else { 103725 z.F.DecMapStringIntX(&x.ClassFiltered, d) 103726 } 103727 } 103728 case "ConstraintFiltered": 103729 if r.TryDecodeAsNil() { 103730 x.ConstraintFiltered = nil 103731 } else { 103732 if false { 103733 } else { 103734 z.F.DecMapStringIntX(&x.ConstraintFiltered, d) 103735 } 103736 } 103737 case "NodesExhausted": 103738 if r.TryDecodeAsNil() { 103739 x.NodesExhausted = 0 103740 } else { 103741 x.NodesExhausted = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 103742 } 103743 case "ClassExhausted": 103744 if r.TryDecodeAsNil() { 103745 x.ClassExhausted = nil 103746 } else { 103747 if false { 103748 } else { 103749 z.F.DecMapStringIntX(&x.ClassExhausted, d) 103750 } 103751 } 103752 case "DimensionExhausted": 103753 if r.TryDecodeAsNil() { 103754 x.DimensionExhausted = nil 103755 } else { 103756 if false { 103757 } else { 103758 z.F.DecMapStringIntX(&x.DimensionExhausted, d) 103759 } 103760 } 103761 case "QuotaExhausted": 103762 if r.TryDecodeAsNil() { 103763 x.QuotaExhausted = nil 103764 } else { 103765 if false { 103766 } else { 103767 z.F.DecSliceStringX(&x.QuotaExhausted, d) 103768 } 103769 } 103770 case "Scores": 103771 if r.TryDecodeAsNil() { 103772 x.Scores = nil 103773 } else { 103774 if false { 103775 } else { 103776 z.F.DecMapStringFloat64X(&x.Scores, d) 103777 } 103778 } 103779 case "ScoreMetaData": 103780 if r.TryDecodeAsNil() { 103781 x.ScoreMetaData = nil 103782 } else { 103783 if false { 103784 } else { 103785 h.decSlicePtrtoNodeScoreMeta((*[]*NodeScoreMeta)(&x.ScoreMetaData), d) 103786 } 103787 } 103788 case "AllocationTime": 103789 if r.TryDecodeAsNil() { 103790 x.AllocationTime = 0 103791 } else { 103792 if false { 103793 } else if yyxt24 := z.Extension(z.I2Rtid(x.AllocationTime)); yyxt24 != nil { 103794 z.DecExtension(x.AllocationTime, yyxt24) 103795 } else { 103796 x.AllocationTime = (time.Duration)(r.DecodeInt64()) 103797 } 103798 } 103799 case "CoalescedFailures": 103800 if r.TryDecodeAsNil() { 103801 x.CoalescedFailures = 0 103802 } else { 103803 x.CoalescedFailures = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 103804 } 103805 default: 103806 z.DecStructFieldNotFound(-1, yys3) 103807 } // end switch yys3 103808 } // end for yyj3 103809 r.ReadMapEnd() 103810 } 103811 103812 func (x *AllocMetric) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 103813 var h codecSelfer100 103814 z, r := codec1978.GenHelperDecoder(d) 103815 _, _, _ = h, z, r 103816 var yyj26 int 103817 var yyb26 bool 103818 var yyhl26 bool = l >= 0 103819 yyj26++ 103820 if yyhl26 { 103821 yyb26 = yyj26 > l 103822 } else { 103823 yyb26 = r.CheckBreak() 103824 } 103825 if yyb26 { 103826 r.ReadArrayEnd() 103827 return 103828 } 103829 r.ReadArrayElem() 103830 if r.TryDecodeAsNil() { 103831 x.NodesEvaluated = 0 103832 } else { 103833 x.NodesEvaluated = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 103834 } 103835 yyj26++ 103836 if yyhl26 { 103837 yyb26 = yyj26 > l 103838 } else { 103839 yyb26 = r.CheckBreak() 103840 } 103841 if yyb26 { 103842 r.ReadArrayEnd() 103843 return 103844 } 103845 r.ReadArrayElem() 103846 if r.TryDecodeAsNil() { 103847 x.NodesFiltered = 0 103848 } else { 103849 x.NodesFiltered = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 103850 } 103851 yyj26++ 103852 if yyhl26 { 103853 yyb26 = yyj26 > l 103854 } else { 103855 yyb26 = r.CheckBreak() 103856 } 103857 if yyb26 { 103858 r.ReadArrayEnd() 103859 return 103860 } 103861 r.ReadArrayElem() 103862 if r.TryDecodeAsNil() { 103863 x.NodesAvailable = nil 103864 } else { 103865 if false { 103866 } else { 103867 z.F.DecMapStringIntX(&x.NodesAvailable, d) 103868 } 103869 } 103870 yyj26++ 103871 if yyhl26 { 103872 yyb26 = yyj26 > l 103873 } else { 103874 yyb26 = r.CheckBreak() 103875 } 103876 if yyb26 { 103877 r.ReadArrayEnd() 103878 return 103879 } 103880 r.ReadArrayElem() 103881 if r.TryDecodeAsNil() { 103882 x.ClassFiltered = nil 103883 } else { 103884 if false { 103885 } else { 103886 z.F.DecMapStringIntX(&x.ClassFiltered, d) 103887 } 103888 } 103889 yyj26++ 103890 if yyhl26 { 103891 yyb26 = yyj26 > l 103892 } else { 103893 yyb26 = r.CheckBreak() 103894 } 103895 if yyb26 { 103896 r.ReadArrayEnd() 103897 return 103898 } 103899 r.ReadArrayElem() 103900 if r.TryDecodeAsNil() { 103901 x.ConstraintFiltered = nil 103902 } else { 103903 if false { 103904 } else { 103905 z.F.DecMapStringIntX(&x.ConstraintFiltered, d) 103906 } 103907 } 103908 yyj26++ 103909 if yyhl26 { 103910 yyb26 = yyj26 > l 103911 } else { 103912 yyb26 = r.CheckBreak() 103913 } 103914 if yyb26 { 103915 r.ReadArrayEnd() 103916 return 103917 } 103918 r.ReadArrayElem() 103919 if r.TryDecodeAsNil() { 103920 x.NodesExhausted = 0 103921 } else { 103922 x.NodesExhausted = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 103923 } 103924 yyj26++ 103925 if yyhl26 { 103926 yyb26 = yyj26 > l 103927 } else { 103928 yyb26 = r.CheckBreak() 103929 } 103930 if yyb26 { 103931 r.ReadArrayEnd() 103932 return 103933 } 103934 r.ReadArrayElem() 103935 if r.TryDecodeAsNil() { 103936 x.ClassExhausted = nil 103937 } else { 103938 if false { 103939 } else { 103940 z.F.DecMapStringIntX(&x.ClassExhausted, d) 103941 } 103942 } 103943 yyj26++ 103944 if yyhl26 { 103945 yyb26 = yyj26 > l 103946 } else { 103947 yyb26 = r.CheckBreak() 103948 } 103949 if yyb26 { 103950 r.ReadArrayEnd() 103951 return 103952 } 103953 r.ReadArrayElem() 103954 if r.TryDecodeAsNil() { 103955 x.DimensionExhausted = nil 103956 } else { 103957 if false { 103958 } else { 103959 z.F.DecMapStringIntX(&x.DimensionExhausted, d) 103960 } 103961 } 103962 yyj26++ 103963 if yyhl26 { 103964 yyb26 = yyj26 > l 103965 } else { 103966 yyb26 = r.CheckBreak() 103967 } 103968 if yyb26 { 103969 r.ReadArrayEnd() 103970 return 103971 } 103972 r.ReadArrayElem() 103973 if r.TryDecodeAsNil() { 103974 x.QuotaExhausted = nil 103975 } else { 103976 if false { 103977 } else { 103978 z.F.DecSliceStringX(&x.QuotaExhausted, d) 103979 } 103980 } 103981 yyj26++ 103982 if yyhl26 { 103983 yyb26 = yyj26 > l 103984 } else { 103985 yyb26 = r.CheckBreak() 103986 } 103987 if yyb26 { 103988 r.ReadArrayEnd() 103989 return 103990 } 103991 r.ReadArrayElem() 103992 if r.TryDecodeAsNil() { 103993 x.Scores = nil 103994 } else { 103995 if false { 103996 } else { 103997 z.F.DecMapStringFloat64X(&x.Scores, d) 103998 } 103999 } 104000 yyj26++ 104001 if yyhl26 { 104002 yyb26 = yyj26 > l 104003 } else { 104004 yyb26 = r.CheckBreak() 104005 } 104006 if yyb26 { 104007 r.ReadArrayEnd() 104008 return 104009 } 104010 r.ReadArrayElem() 104011 if r.TryDecodeAsNil() { 104012 x.ScoreMetaData = nil 104013 } else { 104014 if false { 104015 } else { 104016 h.decSlicePtrtoNodeScoreMeta((*[]*NodeScoreMeta)(&x.ScoreMetaData), d) 104017 } 104018 } 104019 yyj26++ 104020 if yyhl26 { 104021 yyb26 = yyj26 > l 104022 } else { 104023 yyb26 = r.CheckBreak() 104024 } 104025 if yyb26 { 104026 r.ReadArrayEnd() 104027 return 104028 } 104029 r.ReadArrayElem() 104030 if r.TryDecodeAsNil() { 104031 x.AllocationTime = 0 104032 } else { 104033 if false { 104034 } else if yyxt47 := z.Extension(z.I2Rtid(x.AllocationTime)); yyxt47 != nil { 104035 z.DecExtension(x.AllocationTime, yyxt47) 104036 } else { 104037 x.AllocationTime = (time.Duration)(r.DecodeInt64()) 104038 } 104039 } 104040 yyj26++ 104041 if yyhl26 { 104042 yyb26 = yyj26 > l 104043 } else { 104044 yyb26 = r.CheckBreak() 104045 } 104046 if yyb26 { 104047 r.ReadArrayEnd() 104048 return 104049 } 104050 r.ReadArrayElem() 104051 if r.TryDecodeAsNil() { 104052 x.CoalescedFailures = 0 104053 } else { 104054 x.CoalescedFailures = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 104055 } 104056 for { 104057 yyj26++ 104058 if yyhl26 { 104059 yyb26 = yyj26 > l 104060 } else { 104061 yyb26 = r.CheckBreak() 104062 } 104063 if yyb26 { 104064 break 104065 } 104066 r.ReadArrayElem() 104067 z.DecStructFieldNotFound(yyj26-1, "") 104068 } 104069 r.ReadArrayEnd() 104070 } 104071 104072 func (x *NodeScoreMeta) CodecEncodeSelf(e *codec1978.Encoder) { 104073 var h codecSelfer100 104074 z, r := codec1978.GenHelperEncoder(e) 104075 _, _, _ = h, z, r 104076 if x == nil { 104077 r.EncodeNil() 104078 } else { 104079 if false { 104080 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 104081 z.EncExtension(x, yyxt1) 104082 } else { 104083 yysep2 := !z.EncBinary() 104084 yy2arr2 := z.EncBasicHandle().StructToArray 104085 _, _ = yysep2, yy2arr2 104086 const yyr2 bool = false // struct tag has 'toArray' 104087 if yyr2 || yy2arr2 { 104088 r.WriteArrayStart(3) 104089 } else { 104090 r.WriteMapStart(3) 104091 } 104092 if yyr2 || yy2arr2 { 104093 r.WriteArrayElem() 104094 if false { 104095 } else { 104096 if z.EncBasicHandle().StringToRaw { 104097 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 104098 } else { 104099 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 104100 } 104101 } 104102 } else { 104103 r.WriteMapElemKey() 104104 if z.IsJSONHandle() { 104105 z.WriteStr("\"NodeID\"") 104106 } else { 104107 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 104108 } 104109 r.WriteMapElemValue() 104110 if false { 104111 } else { 104112 if z.EncBasicHandle().StringToRaw { 104113 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 104114 } else { 104115 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 104116 } 104117 } 104118 } 104119 if yyr2 || yy2arr2 { 104120 r.WriteArrayElem() 104121 if x.Scores == nil { 104122 r.EncodeNil() 104123 } else { 104124 if false { 104125 } else { 104126 z.F.EncMapStringFloat64V(x.Scores, e) 104127 } 104128 } 104129 } else { 104130 r.WriteMapElemKey() 104131 if z.IsJSONHandle() { 104132 z.WriteStr("\"Scores\"") 104133 } else { 104134 r.EncodeStringEnc(codecSelferCcUTF8100, `Scores`) 104135 } 104136 r.WriteMapElemValue() 104137 if x.Scores == nil { 104138 r.EncodeNil() 104139 } else { 104140 if false { 104141 } else { 104142 z.F.EncMapStringFloat64V(x.Scores, e) 104143 } 104144 } 104145 } 104146 if yyr2 || yy2arr2 { 104147 r.WriteArrayElem() 104148 if false { 104149 } else { 104150 r.EncodeFloat64(float64(x.NormScore)) 104151 } 104152 } else { 104153 r.WriteMapElemKey() 104154 if z.IsJSONHandle() { 104155 z.WriteStr("\"NormScore\"") 104156 } else { 104157 r.EncodeStringEnc(codecSelferCcUTF8100, `NormScore`) 104158 } 104159 r.WriteMapElemValue() 104160 if false { 104161 } else { 104162 r.EncodeFloat64(float64(x.NormScore)) 104163 } 104164 } 104165 if yyr2 || yy2arr2 { 104166 r.WriteArrayEnd() 104167 } else { 104168 r.WriteMapEnd() 104169 } 104170 } 104171 } 104172 } 104173 104174 func (x *NodeScoreMeta) CodecDecodeSelf(d *codec1978.Decoder) { 104175 var h codecSelfer100 104176 z, r := codec1978.GenHelperDecoder(d) 104177 _, _, _ = h, z, r 104178 if false { 104179 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 104180 z.DecExtension(x, yyxt1) 104181 } else { 104182 yyct2 := r.ContainerType() 104183 if yyct2 == codecSelferValueTypeMap100 { 104184 yyl2 := r.ReadMapStart() 104185 if yyl2 == 0 { 104186 r.ReadMapEnd() 104187 } else { 104188 x.codecDecodeSelfFromMap(yyl2, d) 104189 } 104190 } else if yyct2 == codecSelferValueTypeArray100 { 104191 yyl2 := r.ReadArrayStart() 104192 if yyl2 == 0 { 104193 r.ReadArrayEnd() 104194 } else { 104195 x.codecDecodeSelfFromArray(yyl2, d) 104196 } 104197 } else { 104198 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 104199 } 104200 } 104201 } 104202 104203 func (x *NodeScoreMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 104204 var h codecSelfer100 104205 z, r := codec1978.GenHelperDecoder(d) 104206 _, _, _ = h, z, r 104207 var yyhl3 bool = l >= 0 104208 for yyj3 := 0; ; yyj3++ { 104209 if yyhl3 { 104210 if yyj3 >= l { 104211 break 104212 } 104213 } else { 104214 if r.CheckBreak() { 104215 break 104216 } 104217 } 104218 r.ReadMapElemKey() 104219 yys3 := z.StringView(r.DecodeStringAsBytes()) 104220 r.ReadMapElemValue() 104221 switch yys3 { 104222 case "NodeID": 104223 if r.TryDecodeAsNil() { 104224 x.NodeID = "" 104225 } else { 104226 x.NodeID = (string)(r.DecodeString()) 104227 } 104228 case "Scores": 104229 if r.TryDecodeAsNil() { 104230 x.Scores = nil 104231 } else { 104232 if false { 104233 } else { 104234 z.F.DecMapStringFloat64X(&x.Scores, d) 104235 } 104236 } 104237 case "NormScore": 104238 if r.TryDecodeAsNil() { 104239 x.NormScore = 0 104240 } else { 104241 x.NormScore = (float64)(r.DecodeFloat64()) 104242 } 104243 default: 104244 z.DecStructFieldNotFound(-1, yys3) 104245 } // end switch yys3 104246 } // end for yyj3 104247 r.ReadMapEnd() 104248 } 104249 104250 func (x *NodeScoreMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 104251 var h codecSelfer100 104252 z, r := codec1978.GenHelperDecoder(d) 104253 _, _, _ = h, z, r 104254 var yyj8 int 104255 var yyb8 bool 104256 var yyhl8 bool = l >= 0 104257 yyj8++ 104258 if yyhl8 { 104259 yyb8 = yyj8 > l 104260 } else { 104261 yyb8 = r.CheckBreak() 104262 } 104263 if yyb8 { 104264 r.ReadArrayEnd() 104265 return 104266 } 104267 r.ReadArrayElem() 104268 if r.TryDecodeAsNil() { 104269 x.NodeID = "" 104270 } else { 104271 x.NodeID = (string)(r.DecodeString()) 104272 } 104273 yyj8++ 104274 if yyhl8 { 104275 yyb8 = yyj8 > l 104276 } else { 104277 yyb8 = r.CheckBreak() 104278 } 104279 if yyb8 { 104280 r.ReadArrayEnd() 104281 return 104282 } 104283 r.ReadArrayElem() 104284 if r.TryDecodeAsNil() { 104285 x.Scores = nil 104286 } else { 104287 if false { 104288 } else { 104289 z.F.DecMapStringFloat64X(&x.Scores, d) 104290 } 104291 } 104292 yyj8++ 104293 if yyhl8 { 104294 yyb8 = yyj8 > l 104295 } else { 104296 yyb8 = r.CheckBreak() 104297 } 104298 if yyb8 { 104299 r.ReadArrayEnd() 104300 return 104301 } 104302 r.ReadArrayElem() 104303 if r.TryDecodeAsNil() { 104304 x.NormScore = 0 104305 } else { 104306 x.NormScore = (float64)(r.DecodeFloat64()) 104307 } 104308 for { 104309 yyj8++ 104310 if yyhl8 { 104311 yyb8 = yyj8 > l 104312 } else { 104313 yyb8 = r.CheckBreak() 104314 } 104315 if yyb8 { 104316 break 104317 } 104318 r.ReadArrayElem() 104319 z.DecStructFieldNotFound(yyj8-1, "") 104320 } 104321 r.ReadArrayEnd() 104322 } 104323 104324 func (x *AllocDeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { 104325 var h codecSelfer100 104326 z, r := codec1978.GenHelperEncoder(e) 104327 _, _, _ = h, z, r 104328 if x == nil { 104329 r.EncodeNil() 104330 } else { 104331 if false { 104332 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 104333 z.EncExtension(x, yyxt1) 104334 } else { 104335 yysep2 := !z.EncBinary() 104336 yy2arr2 := z.EncBasicHandle().StructToArray 104337 _, _ = yysep2, yy2arr2 104338 const yyr2 bool = false // struct tag has 'toArray' 104339 if yyr2 || yy2arr2 { 104340 r.WriteArrayStart(4) 104341 } else { 104342 r.WriteMapStart(4) 104343 } 104344 var yyn3 bool 104345 if x.Healthy == nil { 104346 yyn3 = true 104347 goto LABEL3 104348 } 104349 LABEL3: 104350 if yyr2 || yy2arr2 { 104351 if yyn3 { 104352 r.WriteArrayElem() 104353 r.EncodeNil() 104354 } else { 104355 r.WriteArrayElem() 104356 if x.Healthy == nil { 104357 r.EncodeNil() 104358 } else { 104359 yy4 := *x.Healthy 104360 if false { 104361 } else { 104362 r.EncodeBool(bool(yy4)) 104363 } 104364 } 104365 } 104366 } else { 104367 r.WriteMapElemKey() 104368 if z.IsJSONHandle() { 104369 z.WriteStr("\"Healthy\"") 104370 } else { 104371 r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) 104372 } 104373 r.WriteMapElemValue() 104374 if yyn3 { 104375 r.EncodeNil() 104376 } else { 104377 if x.Healthy == nil { 104378 r.EncodeNil() 104379 } else { 104380 yy6 := *x.Healthy 104381 if false { 104382 } else { 104383 r.EncodeBool(bool(yy6)) 104384 } 104385 } 104386 } 104387 } 104388 if yyr2 || yy2arr2 { 104389 r.WriteArrayElem() 104390 if false { 104391 } else if !z.EncBasicHandle().TimeNotBuiltin { 104392 r.EncodeTime(x.Timestamp) 104393 } else if yyxt9 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt9 != nil { 104394 z.EncExtension(x.Timestamp, yyxt9) 104395 } else if z.EncBinary() { 104396 z.EncBinaryMarshal(x.Timestamp) 104397 } else if !z.EncBinary() && z.IsJSONHandle() { 104398 z.EncJSONMarshal(x.Timestamp) 104399 } else { 104400 z.EncFallback(x.Timestamp) 104401 } 104402 } else { 104403 r.WriteMapElemKey() 104404 if z.IsJSONHandle() { 104405 z.WriteStr("\"Timestamp\"") 104406 } else { 104407 r.EncodeStringEnc(codecSelferCcUTF8100, `Timestamp`) 104408 } 104409 r.WriteMapElemValue() 104410 if false { 104411 } else if !z.EncBasicHandle().TimeNotBuiltin { 104412 r.EncodeTime(x.Timestamp) 104413 } else if yyxt10 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt10 != nil { 104414 z.EncExtension(x.Timestamp, yyxt10) 104415 } else if z.EncBinary() { 104416 z.EncBinaryMarshal(x.Timestamp) 104417 } else if !z.EncBinary() && z.IsJSONHandle() { 104418 z.EncJSONMarshal(x.Timestamp) 104419 } else { 104420 z.EncFallback(x.Timestamp) 104421 } 104422 } 104423 if yyr2 || yy2arr2 { 104424 r.WriteArrayElem() 104425 if false { 104426 } else { 104427 r.EncodeBool(bool(x.Canary)) 104428 } 104429 } else { 104430 r.WriteMapElemKey() 104431 if z.IsJSONHandle() { 104432 z.WriteStr("\"Canary\"") 104433 } else { 104434 r.EncodeStringEnc(codecSelferCcUTF8100, `Canary`) 104435 } 104436 r.WriteMapElemValue() 104437 if false { 104438 } else { 104439 r.EncodeBool(bool(x.Canary)) 104440 } 104441 } 104442 if yyr2 || yy2arr2 { 104443 r.WriteArrayElem() 104444 if false { 104445 } else { 104446 r.EncodeUint(uint64(x.ModifyIndex)) 104447 } 104448 } else { 104449 r.WriteMapElemKey() 104450 if z.IsJSONHandle() { 104451 z.WriteStr("\"ModifyIndex\"") 104452 } else { 104453 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 104454 } 104455 r.WriteMapElemValue() 104456 if false { 104457 } else { 104458 r.EncodeUint(uint64(x.ModifyIndex)) 104459 } 104460 } 104461 if yyr2 || yy2arr2 { 104462 r.WriteArrayEnd() 104463 } else { 104464 r.WriteMapEnd() 104465 } 104466 } 104467 } 104468 } 104469 104470 func (x *AllocDeploymentStatus) CodecDecodeSelf(d *codec1978.Decoder) { 104471 var h codecSelfer100 104472 z, r := codec1978.GenHelperDecoder(d) 104473 _, _, _ = h, z, r 104474 if false { 104475 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 104476 z.DecExtension(x, yyxt1) 104477 } else { 104478 yyct2 := r.ContainerType() 104479 if yyct2 == codecSelferValueTypeMap100 { 104480 yyl2 := r.ReadMapStart() 104481 if yyl2 == 0 { 104482 r.ReadMapEnd() 104483 } else { 104484 x.codecDecodeSelfFromMap(yyl2, d) 104485 } 104486 } else if yyct2 == codecSelferValueTypeArray100 { 104487 yyl2 := r.ReadArrayStart() 104488 if yyl2 == 0 { 104489 r.ReadArrayEnd() 104490 } else { 104491 x.codecDecodeSelfFromArray(yyl2, d) 104492 } 104493 } else { 104494 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 104495 } 104496 } 104497 } 104498 104499 func (x *AllocDeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 104500 var h codecSelfer100 104501 z, r := codec1978.GenHelperDecoder(d) 104502 _, _, _ = h, z, r 104503 var yyhl3 bool = l >= 0 104504 for yyj3 := 0; ; yyj3++ { 104505 if yyhl3 { 104506 if yyj3 >= l { 104507 break 104508 } 104509 } else { 104510 if r.CheckBreak() { 104511 break 104512 } 104513 } 104514 r.ReadMapElemKey() 104515 yys3 := z.StringView(r.DecodeStringAsBytes()) 104516 r.ReadMapElemValue() 104517 switch yys3 { 104518 case "Healthy": 104519 if r.TryDecodeAsNil() { 104520 if true && x.Healthy != nil { 104521 x.Healthy = nil 104522 } 104523 } else { 104524 if x.Healthy == nil { 104525 x.Healthy = new(bool) 104526 } 104527 104528 if false { 104529 } else { 104530 *x.Healthy = (bool)(r.DecodeBool()) 104531 } 104532 } 104533 case "Timestamp": 104534 if r.TryDecodeAsNil() { 104535 x.Timestamp = time.Time{} 104536 } else { 104537 if false { 104538 } else if !z.DecBasicHandle().TimeNotBuiltin { 104539 x.Timestamp = r.DecodeTime() 104540 } else if yyxt7 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt7 != nil { 104541 z.DecExtension(x.Timestamp, yyxt7) 104542 } else if z.DecBinary() { 104543 z.DecBinaryUnmarshal(&x.Timestamp) 104544 } else if !z.DecBinary() && z.IsJSONHandle() { 104545 z.DecJSONUnmarshal(&x.Timestamp) 104546 } else { 104547 z.DecFallback(&x.Timestamp, false) 104548 } 104549 } 104550 case "Canary": 104551 if r.TryDecodeAsNil() { 104552 x.Canary = false 104553 } else { 104554 x.Canary = (bool)(r.DecodeBool()) 104555 } 104556 case "ModifyIndex": 104557 if r.TryDecodeAsNil() { 104558 x.ModifyIndex = 0 104559 } else { 104560 x.ModifyIndex = (uint64)(r.DecodeUint64()) 104561 } 104562 default: 104563 z.DecStructFieldNotFound(-1, yys3) 104564 } // end switch yys3 104565 } // end for yyj3 104566 r.ReadMapEnd() 104567 } 104568 104569 func (x *AllocDeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 104570 var h codecSelfer100 104571 z, r := codec1978.GenHelperDecoder(d) 104572 _, _, _ = h, z, r 104573 var yyj10 int 104574 var yyb10 bool 104575 var yyhl10 bool = l >= 0 104576 yyj10++ 104577 if yyhl10 { 104578 yyb10 = yyj10 > l 104579 } else { 104580 yyb10 = r.CheckBreak() 104581 } 104582 if yyb10 { 104583 r.ReadArrayEnd() 104584 return 104585 } 104586 r.ReadArrayElem() 104587 if r.TryDecodeAsNil() { 104588 if true && x.Healthy != nil { 104589 x.Healthy = nil 104590 } 104591 } else { 104592 if x.Healthy == nil { 104593 x.Healthy = new(bool) 104594 } 104595 104596 if false { 104597 } else { 104598 *x.Healthy = (bool)(r.DecodeBool()) 104599 } 104600 } 104601 yyj10++ 104602 if yyhl10 { 104603 yyb10 = yyj10 > l 104604 } else { 104605 yyb10 = r.CheckBreak() 104606 } 104607 if yyb10 { 104608 r.ReadArrayEnd() 104609 return 104610 } 104611 r.ReadArrayElem() 104612 if r.TryDecodeAsNil() { 104613 x.Timestamp = time.Time{} 104614 } else { 104615 if false { 104616 } else if !z.DecBasicHandle().TimeNotBuiltin { 104617 x.Timestamp = r.DecodeTime() 104618 } else if yyxt14 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt14 != nil { 104619 z.DecExtension(x.Timestamp, yyxt14) 104620 } else if z.DecBinary() { 104621 z.DecBinaryUnmarshal(&x.Timestamp) 104622 } else if !z.DecBinary() && z.IsJSONHandle() { 104623 z.DecJSONUnmarshal(&x.Timestamp) 104624 } else { 104625 z.DecFallback(&x.Timestamp, false) 104626 } 104627 } 104628 yyj10++ 104629 if yyhl10 { 104630 yyb10 = yyj10 > l 104631 } else { 104632 yyb10 = r.CheckBreak() 104633 } 104634 if yyb10 { 104635 r.ReadArrayEnd() 104636 return 104637 } 104638 r.ReadArrayElem() 104639 if r.TryDecodeAsNil() { 104640 x.Canary = false 104641 } else { 104642 x.Canary = (bool)(r.DecodeBool()) 104643 } 104644 yyj10++ 104645 if yyhl10 { 104646 yyb10 = yyj10 > l 104647 } else { 104648 yyb10 = r.CheckBreak() 104649 } 104650 if yyb10 { 104651 r.ReadArrayEnd() 104652 return 104653 } 104654 r.ReadArrayElem() 104655 if r.TryDecodeAsNil() { 104656 x.ModifyIndex = 0 104657 } else { 104658 x.ModifyIndex = (uint64)(r.DecodeUint64()) 104659 } 104660 for { 104661 yyj10++ 104662 if yyhl10 { 104663 yyb10 = yyj10 > l 104664 } else { 104665 yyb10 = r.CheckBreak() 104666 } 104667 if yyb10 { 104668 break 104669 } 104670 r.ReadArrayElem() 104671 z.DecStructFieldNotFound(yyj10-1, "") 104672 } 104673 r.ReadArrayEnd() 104674 } 104675 104676 func (x *Evaluation) CodecEncodeSelf(e *codec1978.Encoder) { 104677 var h codecSelfer100 104678 z, r := codec1978.GenHelperEncoder(e) 104679 _, _, _ = h, z, r 104680 if x == nil { 104681 r.EncodeNil() 104682 } else { 104683 if false { 104684 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 104685 z.EncExtension(x, yyxt1) 104686 } else { 104687 yysep2 := !z.EncBinary() 104688 yy2arr2 := z.EncBasicHandle().StructToArray 104689 _, _ = yysep2, yy2arr2 104690 const yyr2 bool = false // struct tag has 'toArray' 104691 var yyq2 = [29]bool{ // should field at this index be written? 104692 x.ID != "", // ID 104693 x.Namespace != "", // Namespace 104694 x.Priority != 0, // Priority 104695 x.Type != "", // Type 104696 x.TriggeredBy != "", // TriggeredBy 104697 x.JobID != "", // JobID 104698 x.JobModifyIndex != 0, // JobModifyIndex 104699 x.NodeID != "", // NodeID 104700 x.NodeModifyIndex != 0, // NodeModifyIndex 104701 x.DeploymentID != "", // DeploymentID 104702 x.Status != "", // Status 104703 x.StatusDescription != "", // StatusDescription 104704 x.Wait != 0, // Wait 104705 !(x.WaitUntil.IsZero()), // WaitUntil 104706 x.NextEval != "", // NextEval 104707 x.PreviousEval != "", // PreviousEval 104708 x.BlockedEval != "", // BlockedEval 104709 len(x.FailedTGAllocs) != 0, // FailedTGAllocs 104710 len(x.ClassEligibility) != 0, // ClassEligibility 104711 x.QuotaLimitReached != "", // QuotaLimitReached 104712 x.EscapedComputedClass, // EscapedComputedClass 104713 x.AnnotatePlan, // AnnotatePlan 104714 len(x.QueuedAllocations) != 0, // QueuedAllocations 104715 x.LeaderACL != "", // LeaderACL 104716 x.SnapshotIndex != 0, // SnapshotIndex 104717 x.CreateIndex != 0, // CreateIndex 104718 x.ModifyIndex != 0, // ModifyIndex 104719 x.CreateTime != 0, // CreateTime 104720 x.ModifyTime != 0, // ModifyTime 104721 } 104722 _ = yyq2 104723 if yyr2 || yy2arr2 { 104724 r.WriteArrayStart(29) 104725 } else { 104726 var yynn2 int 104727 for _, b := range yyq2 { 104728 if b { 104729 yynn2++ 104730 } 104731 } 104732 r.WriteMapStart(yynn2) 104733 yynn2 = 0 104734 } 104735 if yyr2 || yy2arr2 { 104736 r.WriteArrayElem() 104737 if yyq2[0] { 104738 if false { 104739 } else { 104740 if z.EncBasicHandle().StringToRaw { 104741 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 104742 } else { 104743 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 104744 } 104745 } 104746 } else { 104747 if z.EncBasicHandle().StringToRaw { 104748 r.EncodeStringBytesRaw([]byte{}) 104749 } else { 104750 r.EncodeStringEnc(codecSelferCcUTF8100, "") 104751 } 104752 } 104753 } else { 104754 if yyq2[0] { 104755 r.WriteMapElemKey() 104756 if z.IsJSONHandle() { 104757 z.WriteStr("\"ID\"") 104758 } else { 104759 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 104760 } 104761 r.WriteMapElemValue() 104762 if false { 104763 } else { 104764 if z.EncBasicHandle().StringToRaw { 104765 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 104766 } else { 104767 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 104768 } 104769 } 104770 } 104771 } 104772 if yyr2 || yy2arr2 { 104773 r.WriteArrayElem() 104774 if yyq2[1] { 104775 if false { 104776 } else { 104777 if z.EncBasicHandle().StringToRaw { 104778 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 104779 } else { 104780 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 104781 } 104782 } 104783 } else { 104784 if z.EncBasicHandle().StringToRaw { 104785 r.EncodeStringBytesRaw([]byte{}) 104786 } else { 104787 r.EncodeStringEnc(codecSelferCcUTF8100, "") 104788 } 104789 } 104790 } else { 104791 if yyq2[1] { 104792 r.WriteMapElemKey() 104793 if z.IsJSONHandle() { 104794 z.WriteStr("\"Namespace\"") 104795 } else { 104796 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 104797 } 104798 r.WriteMapElemValue() 104799 if false { 104800 } else { 104801 if z.EncBasicHandle().StringToRaw { 104802 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 104803 } else { 104804 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 104805 } 104806 } 104807 } 104808 } 104809 if yyr2 || yy2arr2 { 104810 r.WriteArrayElem() 104811 if yyq2[2] { 104812 if false { 104813 } else { 104814 r.EncodeInt(int64(x.Priority)) 104815 } 104816 } else { 104817 r.EncodeInt(0) 104818 } 104819 } else { 104820 if yyq2[2] { 104821 r.WriteMapElemKey() 104822 if z.IsJSONHandle() { 104823 z.WriteStr("\"Priority\"") 104824 } else { 104825 r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) 104826 } 104827 r.WriteMapElemValue() 104828 if false { 104829 } else { 104830 r.EncodeInt(int64(x.Priority)) 104831 } 104832 } 104833 } 104834 if yyr2 || yy2arr2 { 104835 r.WriteArrayElem() 104836 if yyq2[3] { 104837 if false { 104838 } else { 104839 if z.EncBasicHandle().StringToRaw { 104840 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 104841 } else { 104842 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 104843 } 104844 } 104845 } else { 104846 if z.EncBasicHandle().StringToRaw { 104847 r.EncodeStringBytesRaw([]byte{}) 104848 } else { 104849 r.EncodeStringEnc(codecSelferCcUTF8100, "") 104850 } 104851 } 104852 } else { 104853 if yyq2[3] { 104854 r.WriteMapElemKey() 104855 if z.IsJSONHandle() { 104856 z.WriteStr("\"Type\"") 104857 } else { 104858 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 104859 } 104860 r.WriteMapElemValue() 104861 if false { 104862 } else { 104863 if z.EncBasicHandle().StringToRaw { 104864 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 104865 } else { 104866 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 104867 } 104868 } 104869 } 104870 } 104871 if yyr2 || yy2arr2 { 104872 r.WriteArrayElem() 104873 if yyq2[4] { 104874 if false { 104875 } else { 104876 if z.EncBasicHandle().StringToRaw { 104877 r.EncodeStringBytesRaw(z.BytesView(string(x.TriggeredBy))) 104878 } else { 104879 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TriggeredBy)) 104880 } 104881 } 104882 } else { 104883 if z.EncBasicHandle().StringToRaw { 104884 r.EncodeStringBytesRaw([]byte{}) 104885 } else { 104886 r.EncodeStringEnc(codecSelferCcUTF8100, "") 104887 } 104888 } 104889 } else { 104890 if yyq2[4] { 104891 r.WriteMapElemKey() 104892 if z.IsJSONHandle() { 104893 z.WriteStr("\"TriggeredBy\"") 104894 } else { 104895 r.EncodeStringEnc(codecSelferCcUTF8100, `TriggeredBy`) 104896 } 104897 r.WriteMapElemValue() 104898 if false { 104899 } else { 104900 if z.EncBasicHandle().StringToRaw { 104901 r.EncodeStringBytesRaw(z.BytesView(string(x.TriggeredBy))) 104902 } else { 104903 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TriggeredBy)) 104904 } 104905 } 104906 } 104907 } 104908 if yyr2 || yy2arr2 { 104909 r.WriteArrayElem() 104910 if yyq2[5] { 104911 if false { 104912 } else { 104913 if z.EncBasicHandle().StringToRaw { 104914 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 104915 } else { 104916 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 104917 } 104918 } 104919 } else { 104920 if z.EncBasicHandle().StringToRaw { 104921 r.EncodeStringBytesRaw([]byte{}) 104922 } else { 104923 r.EncodeStringEnc(codecSelferCcUTF8100, "") 104924 } 104925 } 104926 } else { 104927 if yyq2[5] { 104928 r.WriteMapElemKey() 104929 if z.IsJSONHandle() { 104930 z.WriteStr("\"JobID\"") 104931 } else { 104932 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 104933 } 104934 r.WriteMapElemValue() 104935 if false { 104936 } else { 104937 if z.EncBasicHandle().StringToRaw { 104938 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 104939 } else { 104940 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 104941 } 104942 } 104943 } 104944 } 104945 if yyr2 || yy2arr2 { 104946 r.WriteArrayElem() 104947 if yyq2[6] { 104948 if false { 104949 } else { 104950 r.EncodeUint(uint64(x.JobModifyIndex)) 104951 } 104952 } else { 104953 r.EncodeUint(0) 104954 } 104955 } else { 104956 if yyq2[6] { 104957 r.WriteMapElemKey() 104958 if z.IsJSONHandle() { 104959 z.WriteStr("\"JobModifyIndex\"") 104960 } else { 104961 r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) 104962 } 104963 r.WriteMapElemValue() 104964 if false { 104965 } else { 104966 r.EncodeUint(uint64(x.JobModifyIndex)) 104967 } 104968 } 104969 } 104970 if yyr2 || yy2arr2 { 104971 r.WriteArrayElem() 104972 if yyq2[7] { 104973 if false { 104974 } else { 104975 if z.EncBasicHandle().StringToRaw { 104976 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 104977 } else { 104978 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 104979 } 104980 } 104981 } else { 104982 if z.EncBasicHandle().StringToRaw { 104983 r.EncodeStringBytesRaw([]byte{}) 104984 } else { 104985 r.EncodeStringEnc(codecSelferCcUTF8100, "") 104986 } 104987 } 104988 } else { 104989 if yyq2[7] { 104990 r.WriteMapElemKey() 104991 if z.IsJSONHandle() { 104992 z.WriteStr("\"NodeID\"") 104993 } else { 104994 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 104995 } 104996 r.WriteMapElemValue() 104997 if false { 104998 } else { 104999 if z.EncBasicHandle().StringToRaw { 105000 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 105001 } else { 105002 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 105003 } 105004 } 105005 } 105006 } 105007 if yyr2 || yy2arr2 { 105008 r.WriteArrayElem() 105009 if yyq2[8] { 105010 if false { 105011 } else { 105012 r.EncodeUint(uint64(x.NodeModifyIndex)) 105013 } 105014 } else { 105015 r.EncodeUint(0) 105016 } 105017 } else { 105018 if yyq2[8] { 105019 r.WriteMapElemKey() 105020 if z.IsJSONHandle() { 105021 z.WriteStr("\"NodeModifyIndex\"") 105022 } else { 105023 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeModifyIndex`) 105024 } 105025 r.WriteMapElemValue() 105026 if false { 105027 } else { 105028 r.EncodeUint(uint64(x.NodeModifyIndex)) 105029 } 105030 } 105031 } 105032 if yyr2 || yy2arr2 { 105033 r.WriteArrayElem() 105034 if yyq2[9] { 105035 if false { 105036 } else { 105037 if z.EncBasicHandle().StringToRaw { 105038 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 105039 } else { 105040 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 105041 } 105042 } 105043 } else { 105044 if z.EncBasicHandle().StringToRaw { 105045 r.EncodeStringBytesRaw([]byte{}) 105046 } else { 105047 r.EncodeStringEnc(codecSelferCcUTF8100, "") 105048 } 105049 } 105050 } else { 105051 if yyq2[9] { 105052 r.WriteMapElemKey() 105053 if z.IsJSONHandle() { 105054 z.WriteStr("\"DeploymentID\"") 105055 } else { 105056 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 105057 } 105058 r.WriteMapElemValue() 105059 if false { 105060 } else { 105061 if z.EncBasicHandle().StringToRaw { 105062 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 105063 } else { 105064 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 105065 } 105066 } 105067 } 105068 } 105069 if yyr2 || yy2arr2 { 105070 r.WriteArrayElem() 105071 if yyq2[10] { 105072 if false { 105073 } else { 105074 if z.EncBasicHandle().StringToRaw { 105075 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 105076 } else { 105077 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 105078 } 105079 } 105080 } else { 105081 if z.EncBasicHandle().StringToRaw { 105082 r.EncodeStringBytesRaw([]byte{}) 105083 } else { 105084 r.EncodeStringEnc(codecSelferCcUTF8100, "") 105085 } 105086 } 105087 } else { 105088 if yyq2[10] { 105089 r.WriteMapElemKey() 105090 if z.IsJSONHandle() { 105091 z.WriteStr("\"Status\"") 105092 } else { 105093 r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) 105094 } 105095 r.WriteMapElemValue() 105096 if false { 105097 } else { 105098 if z.EncBasicHandle().StringToRaw { 105099 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 105100 } else { 105101 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 105102 } 105103 } 105104 } 105105 } 105106 if yyr2 || yy2arr2 { 105107 r.WriteArrayElem() 105108 if yyq2[11] { 105109 if false { 105110 } else { 105111 if z.EncBasicHandle().StringToRaw { 105112 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 105113 } else { 105114 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 105115 } 105116 } 105117 } else { 105118 if z.EncBasicHandle().StringToRaw { 105119 r.EncodeStringBytesRaw([]byte{}) 105120 } else { 105121 r.EncodeStringEnc(codecSelferCcUTF8100, "") 105122 } 105123 } 105124 } else { 105125 if yyq2[11] { 105126 r.WriteMapElemKey() 105127 if z.IsJSONHandle() { 105128 z.WriteStr("\"StatusDescription\"") 105129 } else { 105130 r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) 105131 } 105132 r.WriteMapElemValue() 105133 if false { 105134 } else { 105135 if z.EncBasicHandle().StringToRaw { 105136 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 105137 } else { 105138 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 105139 } 105140 } 105141 } 105142 } 105143 if yyr2 || yy2arr2 { 105144 r.WriteArrayElem() 105145 if yyq2[12] { 105146 if false { 105147 } else if yyxt40 := z.Extension(z.I2Rtid(x.Wait)); yyxt40 != nil { 105148 z.EncExtension(x.Wait, yyxt40) 105149 } else { 105150 r.EncodeInt(int64(x.Wait)) 105151 } 105152 } else { 105153 r.EncodeInt(0) 105154 } 105155 } else { 105156 if yyq2[12] { 105157 r.WriteMapElemKey() 105158 if z.IsJSONHandle() { 105159 z.WriteStr("\"Wait\"") 105160 } else { 105161 r.EncodeStringEnc(codecSelferCcUTF8100, `Wait`) 105162 } 105163 r.WriteMapElemValue() 105164 if false { 105165 } else if yyxt41 := z.Extension(z.I2Rtid(x.Wait)); yyxt41 != nil { 105166 z.EncExtension(x.Wait, yyxt41) 105167 } else { 105168 r.EncodeInt(int64(x.Wait)) 105169 } 105170 } 105171 } 105172 if yyr2 || yy2arr2 { 105173 r.WriteArrayElem() 105174 if yyq2[13] { 105175 if false { 105176 } else if !z.EncBasicHandle().TimeNotBuiltin { 105177 r.EncodeTime(x.WaitUntil) 105178 } else if yyxt43 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt43 != nil { 105179 z.EncExtension(x.WaitUntil, yyxt43) 105180 } else if z.EncBinary() { 105181 z.EncBinaryMarshal(x.WaitUntil) 105182 } else if !z.EncBinary() && z.IsJSONHandle() { 105183 z.EncJSONMarshal(x.WaitUntil) 105184 } else { 105185 z.EncFallback(x.WaitUntil) 105186 } 105187 } else { 105188 r.EncodeNil() 105189 } 105190 } else { 105191 if yyq2[13] { 105192 r.WriteMapElemKey() 105193 if z.IsJSONHandle() { 105194 z.WriteStr("\"WaitUntil\"") 105195 } else { 105196 r.EncodeStringEnc(codecSelferCcUTF8100, `WaitUntil`) 105197 } 105198 r.WriteMapElemValue() 105199 if false { 105200 } else if !z.EncBasicHandle().TimeNotBuiltin { 105201 r.EncodeTime(x.WaitUntil) 105202 } else if yyxt44 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt44 != nil { 105203 z.EncExtension(x.WaitUntil, yyxt44) 105204 } else if z.EncBinary() { 105205 z.EncBinaryMarshal(x.WaitUntil) 105206 } else if !z.EncBinary() && z.IsJSONHandle() { 105207 z.EncJSONMarshal(x.WaitUntil) 105208 } else { 105209 z.EncFallback(x.WaitUntil) 105210 } 105211 } 105212 } 105213 if yyr2 || yy2arr2 { 105214 r.WriteArrayElem() 105215 if yyq2[14] { 105216 if false { 105217 } else { 105218 if z.EncBasicHandle().StringToRaw { 105219 r.EncodeStringBytesRaw(z.BytesView(string(x.NextEval))) 105220 } else { 105221 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextEval)) 105222 } 105223 } 105224 } else { 105225 if z.EncBasicHandle().StringToRaw { 105226 r.EncodeStringBytesRaw([]byte{}) 105227 } else { 105228 r.EncodeStringEnc(codecSelferCcUTF8100, "") 105229 } 105230 } 105231 } else { 105232 if yyq2[14] { 105233 r.WriteMapElemKey() 105234 if z.IsJSONHandle() { 105235 z.WriteStr("\"NextEval\"") 105236 } else { 105237 r.EncodeStringEnc(codecSelferCcUTF8100, `NextEval`) 105238 } 105239 r.WriteMapElemValue() 105240 if false { 105241 } else { 105242 if z.EncBasicHandle().StringToRaw { 105243 r.EncodeStringBytesRaw(z.BytesView(string(x.NextEval))) 105244 } else { 105245 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextEval)) 105246 } 105247 } 105248 } 105249 } 105250 if yyr2 || yy2arr2 { 105251 r.WriteArrayElem() 105252 if yyq2[15] { 105253 if false { 105254 } else { 105255 if z.EncBasicHandle().StringToRaw { 105256 r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousEval))) 105257 } else { 105258 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousEval)) 105259 } 105260 } 105261 } else { 105262 if z.EncBasicHandle().StringToRaw { 105263 r.EncodeStringBytesRaw([]byte{}) 105264 } else { 105265 r.EncodeStringEnc(codecSelferCcUTF8100, "") 105266 } 105267 } 105268 } else { 105269 if yyq2[15] { 105270 r.WriteMapElemKey() 105271 if z.IsJSONHandle() { 105272 z.WriteStr("\"PreviousEval\"") 105273 } else { 105274 r.EncodeStringEnc(codecSelferCcUTF8100, `PreviousEval`) 105275 } 105276 r.WriteMapElemValue() 105277 if false { 105278 } else { 105279 if z.EncBasicHandle().StringToRaw { 105280 r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousEval))) 105281 } else { 105282 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousEval)) 105283 } 105284 } 105285 } 105286 } 105287 if yyr2 || yy2arr2 { 105288 r.WriteArrayElem() 105289 if yyq2[16] { 105290 if false { 105291 } else { 105292 if z.EncBasicHandle().StringToRaw { 105293 r.EncodeStringBytesRaw(z.BytesView(string(x.BlockedEval))) 105294 } else { 105295 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.BlockedEval)) 105296 } 105297 } 105298 } else { 105299 if z.EncBasicHandle().StringToRaw { 105300 r.EncodeStringBytesRaw([]byte{}) 105301 } else { 105302 r.EncodeStringEnc(codecSelferCcUTF8100, "") 105303 } 105304 } 105305 } else { 105306 if yyq2[16] { 105307 r.WriteMapElemKey() 105308 if z.IsJSONHandle() { 105309 z.WriteStr("\"BlockedEval\"") 105310 } else { 105311 r.EncodeStringEnc(codecSelferCcUTF8100, `BlockedEval`) 105312 } 105313 r.WriteMapElemValue() 105314 if false { 105315 } else { 105316 if z.EncBasicHandle().StringToRaw { 105317 r.EncodeStringBytesRaw(z.BytesView(string(x.BlockedEval))) 105318 } else { 105319 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.BlockedEval)) 105320 } 105321 } 105322 } 105323 } 105324 if yyr2 || yy2arr2 { 105325 r.WriteArrayElem() 105326 if yyq2[17] { 105327 if x.FailedTGAllocs == nil { 105328 r.EncodeNil() 105329 } else { 105330 if false { 105331 } else { 105332 h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) 105333 } 105334 } 105335 } else { 105336 r.EncodeNil() 105337 } 105338 } else { 105339 if yyq2[17] { 105340 r.WriteMapElemKey() 105341 if z.IsJSONHandle() { 105342 z.WriteStr("\"FailedTGAllocs\"") 105343 } else { 105344 r.EncodeStringEnc(codecSelferCcUTF8100, `FailedTGAllocs`) 105345 } 105346 r.WriteMapElemValue() 105347 if x.FailedTGAllocs == nil { 105348 r.EncodeNil() 105349 } else { 105350 if false { 105351 } else { 105352 h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) 105353 } 105354 } 105355 } 105356 } 105357 if yyr2 || yy2arr2 { 105358 r.WriteArrayElem() 105359 if yyq2[18] { 105360 if x.ClassEligibility == nil { 105361 r.EncodeNil() 105362 } else { 105363 if false { 105364 } else { 105365 z.F.EncMapStringBoolV(x.ClassEligibility, e) 105366 } 105367 } 105368 } else { 105369 r.EncodeNil() 105370 } 105371 } else { 105372 if yyq2[18] { 105373 r.WriteMapElemKey() 105374 if z.IsJSONHandle() { 105375 z.WriteStr("\"ClassEligibility\"") 105376 } else { 105377 r.EncodeStringEnc(codecSelferCcUTF8100, `ClassEligibility`) 105378 } 105379 r.WriteMapElemValue() 105380 if x.ClassEligibility == nil { 105381 r.EncodeNil() 105382 } else { 105383 if false { 105384 } else { 105385 z.F.EncMapStringBoolV(x.ClassEligibility, e) 105386 } 105387 } 105388 } 105389 } 105390 if yyr2 || yy2arr2 { 105391 r.WriteArrayElem() 105392 if yyq2[19] { 105393 if false { 105394 } else { 105395 if z.EncBasicHandle().StringToRaw { 105396 r.EncodeStringBytesRaw(z.BytesView(string(x.QuotaLimitReached))) 105397 } else { 105398 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.QuotaLimitReached)) 105399 } 105400 } 105401 } else { 105402 if z.EncBasicHandle().StringToRaw { 105403 r.EncodeStringBytesRaw([]byte{}) 105404 } else { 105405 r.EncodeStringEnc(codecSelferCcUTF8100, "") 105406 } 105407 } 105408 } else { 105409 if yyq2[19] { 105410 r.WriteMapElemKey() 105411 if z.IsJSONHandle() { 105412 z.WriteStr("\"QuotaLimitReached\"") 105413 } else { 105414 r.EncodeStringEnc(codecSelferCcUTF8100, `QuotaLimitReached`) 105415 } 105416 r.WriteMapElemValue() 105417 if false { 105418 } else { 105419 if z.EncBasicHandle().StringToRaw { 105420 r.EncodeStringBytesRaw(z.BytesView(string(x.QuotaLimitReached))) 105421 } else { 105422 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.QuotaLimitReached)) 105423 } 105424 } 105425 } 105426 } 105427 if yyr2 || yy2arr2 { 105428 r.WriteArrayElem() 105429 if yyq2[20] { 105430 if false { 105431 } else { 105432 r.EncodeBool(bool(x.EscapedComputedClass)) 105433 } 105434 } else { 105435 r.EncodeBool(false) 105436 } 105437 } else { 105438 if yyq2[20] { 105439 r.WriteMapElemKey() 105440 if z.IsJSONHandle() { 105441 z.WriteStr("\"EscapedComputedClass\"") 105442 } else { 105443 r.EncodeStringEnc(codecSelferCcUTF8100, `EscapedComputedClass`) 105444 } 105445 r.WriteMapElemValue() 105446 if false { 105447 } else { 105448 r.EncodeBool(bool(x.EscapedComputedClass)) 105449 } 105450 } 105451 } 105452 if yyr2 || yy2arr2 { 105453 r.WriteArrayElem() 105454 if yyq2[21] { 105455 if false { 105456 } else { 105457 r.EncodeBool(bool(x.AnnotatePlan)) 105458 } 105459 } else { 105460 r.EncodeBool(false) 105461 } 105462 } else { 105463 if yyq2[21] { 105464 r.WriteMapElemKey() 105465 if z.IsJSONHandle() { 105466 z.WriteStr("\"AnnotatePlan\"") 105467 } else { 105468 r.EncodeStringEnc(codecSelferCcUTF8100, `AnnotatePlan`) 105469 } 105470 r.WriteMapElemValue() 105471 if false { 105472 } else { 105473 r.EncodeBool(bool(x.AnnotatePlan)) 105474 } 105475 } 105476 } 105477 if yyr2 || yy2arr2 { 105478 r.WriteArrayElem() 105479 if yyq2[22] { 105480 if x.QueuedAllocations == nil { 105481 r.EncodeNil() 105482 } else { 105483 if false { 105484 } else { 105485 z.F.EncMapStringIntV(x.QueuedAllocations, e) 105486 } 105487 } 105488 } else { 105489 r.EncodeNil() 105490 } 105491 } else { 105492 if yyq2[22] { 105493 r.WriteMapElemKey() 105494 if z.IsJSONHandle() { 105495 z.WriteStr("\"QueuedAllocations\"") 105496 } else { 105497 r.EncodeStringEnc(codecSelferCcUTF8100, `QueuedAllocations`) 105498 } 105499 r.WriteMapElemValue() 105500 if x.QueuedAllocations == nil { 105501 r.EncodeNil() 105502 } else { 105503 if false { 105504 } else { 105505 z.F.EncMapStringIntV(x.QueuedAllocations, e) 105506 } 105507 } 105508 } 105509 } 105510 if yyr2 || yy2arr2 { 105511 r.WriteArrayElem() 105512 if yyq2[23] { 105513 if false { 105514 } else { 105515 if z.EncBasicHandle().StringToRaw { 105516 r.EncodeStringBytesRaw(z.BytesView(string(x.LeaderACL))) 105517 } else { 105518 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeaderACL)) 105519 } 105520 } 105521 } else { 105522 if z.EncBasicHandle().StringToRaw { 105523 r.EncodeStringBytesRaw([]byte{}) 105524 } else { 105525 r.EncodeStringEnc(codecSelferCcUTF8100, "") 105526 } 105527 } 105528 } else { 105529 if yyq2[23] { 105530 r.WriteMapElemKey() 105531 if z.IsJSONHandle() { 105532 z.WriteStr("\"LeaderACL\"") 105533 } else { 105534 r.EncodeStringEnc(codecSelferCcUTF8100, `LeaderACL`) 105535 } 105536 r.WriteMapElemValue() 105537 if false { 105538 } else { 105539 if z.EncBasicHandle().StringToRaw { 105540 r.EncodeStringBytesRaw(z.BytesView(string(x.LeaderACL))) 105541 } else { 105542 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeaderACL)) 105543 } 105544 } 105545 } 105546 } 105547 if yyr2 || yy2arr2 { 105548 r.WriteArrayElem() 105549 if yyq2[24] { 105550 if false { 105551 } else { 105552 r.EncodeUint(uint64(x.SnapshotIndex)) 105553 } 105554 } else { 105555 r.EncodeUint(0) 105556 } 105557 } else { 105558 if yyq2[24] { 105559 r.WriteMapElemKey() 105560 if z.IsJSONHandle() { 105561 z.WriteStr("\"SnapshotIndex\"") 105562 } else { 105563 r.EncodeStringEnc(codecSelferCcUTF8100, `SnapshotIndex`) 105564 } 105565 r.WriteMapElemValue() 105566 if false { 105567 } else { 105568 r.EncodeUint(uint64(x.SnapshotIndex)) 105569 } 105570 } 105571 } 105572 if yyr2 || yy2arr2 { 105573 r.WriteArrayElem() 105574 if yyq2[25] { 105575 if false { 105576 } else { 105577 r.EncodeUint(uint64(x.CreateIndex)) 105578 } 105579 } else { 105580 r.EncodeUint(0) 105581 } 105582 } else { 105583 if yyq2[25] { 105584 r.WriteMapElemKey() 105585 if z.IsJSONHandle() { 105586 z.WriteStr("\"CreateIndex\"") 105587 } else { 105588 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 105589 } 105590 r.WriteMapElemValue() 105591 if false { 105592 } else { 105593 r.EncodeUint(uint64(x.CreateIndex)) 105594 } 105595 } 105596 } 105597 if yyr2 || yy2arr2 { 105598 r.WriteArrayElem() 105599 if yyq2[26] { 105600 if false { 105601 } else { 105602 r.EncodeUint(uint64(x.ModifyIndex)) 105603 } 105604 } else { 105605 r.EncodeUint(0) 105606 } 105607 } else { 105608 if yyq2[26] { 105609 r.WriteMapElemKey() 105610 if z.IsJSONHandle() { 105611 z.WriteStr("\"ModifyIndex\"") 105612 } else { 105613 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 105614 } 105615 r.WriteMapElemValue() 105616 if false { 105617 } else { 105618 r.EncodeUint(uint64(x.ModifyIndex)) 105619 } 105620 } 105621 } 105622 if yyr2 || yy2arr2 { 105623 r.WriteArrayElem() 105624 if yyq2[27] { 105625 if false { 105626 } else { 105627 r.EncodeInt(int64(x.CreateTime)) 105628 } 105629 } else { 105630 r.EncodeInt(0) 105631 } 105632 } else { 105633 if yyq2[27] { 105634 r.WriteMapElemKey() 105635 if z.IsJSONHandle() { 105636 z.WriteStr("\"CreateTime\"") 105637 } else { 105638 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) 105639 } 105640 r.WriteMapElemValue() 105641 if false { 105642 } else { 105643 r.EncodeInt(int64(x.CreateTime)) 105644 } 105645 } 105646 } 105647 if yyr2 || yy2arr2 { 105648 r.WriteArrayElem() 105649 if yyq2[28] { 105650 if false { 105651 } else { 105652 r.EncodeInt(int64(x.ModifyTime)) 105653 } 105654 } else { 105655 r.EncodeInt(0) 105656 } 105657 } else { 105658 if yyq2[28] { 105659 r.WriteMapElemKey() 105660 if z.IsJSONHandle() { 105661 z.WriteStr("\"ModifyTime\"") 105662 } else { 105663 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) 105664 } 105665 r.WriteMapElemValue() 105666 if false { 105667 } else { 105668 r.EncodeInt(int64(x.ModifyTime)) 105669 } 105670 } 105671 } 105672 if yyr2 || yy2arr2 { 105673 r.WriteArrayEnd() 105674 } else { 105675 r.WriteMapEnd() 105676 } 105677 } 105678 } 105679 } 105680 105681 func (x *Evaluation) CodecDecodeSelf(d *codec1978.Decoder) { 105682 var h codecSelfer100 105683 z, r := codec1978.GenHelperDecoder(d) 105684 _, _, _ = h, z, r 105685 if false { 105686 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 105687 z.DecExtension(x, yyxt1) 105688 } else { 105689 yyct2 := r.ContainerType() 105690 if yyct2 == codecSelferValueTypeMap100 { 105691 yyl2 := r.ReadMapStart() 105692 if yyl2 == 0 { 105693 r.ReadMapEnd() 105694 } else { 105695 x.codecDecodeSelfFromMap(yyl2, d) 105696 } 105697 } else if yyct2 == codecSelferValueTypeArray100 { 105698 yyl2 := r.ReadArrayStart() 105699 if yyl2 == 0 { 105700 r.ReadArrayEnd() 105701 } else { 105702 x.codecDecodeSelfFromArray(yyl2, d) 105703 } 105704 } else { 105705 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 105706 } 105707 } 105708 } 105709 105710 func (x *Evaluation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 105711 var h codecSelfer100 105712 z, r := codec1978.GenHelperDecoder(d) 105713 _, _, _ = h, z, r 105714 var yyhl3 bool = l >= 0 105715 for yyj3 := 0; ; yyj3++ { 105716 if yyhl3 { 105717 if yyj3 >= l { 105718 break 105719 } 105720 } else { 105721 if r.CheckBreak() { 105722 break 105723 } 105724 } 105725 r.ReadMapElemKey() 105726 yys3 := z.StringView(r.DecodeStringAsBytes()) 105727 r.ReadMapElemValue() 105728 switch yys3 { 105729 case "ID": 105730 if r.TryDecodeAsNil() { 105731 x.ID = "" 105732 } else { 105733 x.ID = (string)(r.DecodeString()) 105734 } 105735 case "Namespace": 105736 if r.TryDecodeAsNil() { 105737 x.Namespace = "" 105738 } else { 105739 x.Namespace = (string)(r.DecodeString()) 105740 } 105741 case "Priority": 105742 if r.TryDecodeAsNil() { 105743 x.Priority = 0 105744 } else { 105745 x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 105746 } 105747 case "Type": 105748 if r.TryDecodeAsNil() { 105749 x.Type = "" 105750 } else { 105751 x.Type = (string)(r.DecodeString()) 105752 } 105753 case "TriggeredBy": 105754 if r.TryDecodeAsNil() { 105755 x.TriggeredBy = "" 105756 } else { 105757 x.TriggeredBy = (string)(r.DecodeString()) 105758 } 105759 case "JobID": 105760 if r.TryDecodeAsNil() { 105761 x.JobID = "" 105762 } else { 105763 x.JobID = (string)(r.DecodeString()) 105764 } 105765 case "JobModifyIndex": 105766 if r.TryDecodeAsNil() { 105767 x.JobModifyIndex = 0 105768 } else { 105769 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 105770 } 105771 case "NodeID": 105772 if r.TryDecodeAsNil() { 105773 x.NodeID = "" 105774 } else { 105775 x.NodeID = (string)(r.DecodeString()) 105776 } 105777 case "NodeModifyIndex": 105778 if r.TryDecodeAsNil() { 105779 x.NodeModifyIndex = 0 105780 } else { 105781 x.NodeModifyIndex = (uint64)(r.DecodeUint64()) 105782 } 105783 case "DeploymentID": 105784 if r.TryDecodeAsNil() { 105785 x.DeploymentID = "" 105786 } else { 105787 x.DeploymentID = (string)(r.DecodeString()) 105788 } 105789 case "Status": 105790 if r.TryDecodeAsNil() { 105791 x.Status = "" 105792 } else { 105793 x.Status = (string)(r.DecodeString()) 105794 } 105795 case "StatusDescription": 105796 if r.TryDecodeAsNil() { 105797 x.StatusDescription = "" 105798 } else { 105799 x.StatusDescription = (string)(r.DecodeString()) 105800 } 105801 case "Wait": 105802 if r.TryDecodeAsNil() { 105803 x.Wait = 0 105804 } else { 105805 if false { 105806 } else if yyxt17 := z.Extension(z.I2Rtid(x.Wait)); yyxt17 != nil { 105807 z.DecExtension(x.Wait, yyxt17) 105808 } else { 105809 x.Wait = (time.Duration)(r.DecodeInt64()) 105810 } 105811 } 105812 case "WaitUntil": 105813 if r.TryDecodeAsNil() { 105814 x.WaitUntil = time.Time{} 105815 } else { 105816 if false { 105817 } else if !z.DecBasicHandle().TimeNotBuiltin { 105818 x.WaitUntil = r.DecodeTime() 105819 } else if yyxt19 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt19 != nil { 105820 z.DecExtension(x.WaitUntil, yyxt19) 105821 } else if z.DecBinary() { 105822 z.DecBinaryUnmarshal(&x.WaitUntil) 105823 } else if !z.DecBinary() && z.IsJSONHandle() { 105824 z.DecJSONUnmarshal(&x.WaitUntil) 105825 } else { 105826 z.DecFallback(&x.WaitUntil, false) 105827 } 105828 } 105829 case "NextEval": 105830 if r.TryDecodeAsNil() { 105831 x.NextEval = "" 105832 } else { 105833 x.NextEval = (string)(r.DecodeString()) 105834 } 105835 case "PreviousEval": 105836 if r.TryDecodeAsNil() { 105837 x.PreviousEval = "" 105838 } else { 105839 x.PreviousEval = (string)(r.DecodeString()) 105840 } 105841 case "BlockedEval": 105842 if r.TryDecodeAsNil() { 105843 x.BlockedEval = "" 105844 } else { 105845 x.BlockedEval = (string)(r.DecodeString()) 105846 } 105847 case "FailedTGAllocs": 105848 if r.TryDecodeAsNil() { 105849 x.FailedTGAllocs = nil 105850 } else { 105851 if false { 105852 } else { 105853 h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(&x.FailedTGAllocs), d) 105854 } 105855 } 105856 case "ClassEligibility": 105857 if r.TryDecodeAsNil() { 105858 x.ClassEligibility = nil 105859 } else { 105860 if false { 105861 } else { 105862 z.F.DecMapStringBoolX(&x.ClassEligibility, d) 105863 } 105864 } 105865 case "QuotaLimitReached": 105866 if r.TryDecodeAsNil() { 105867 x.QuotaLimitReached = "" 105868 } else { 105869 x.QuotaLimitReached = (string)(r.DecodeString()) 105870 } 105871 case "EscapedComputedClass": 105872 if r.TryDecodeAsNil() { 105873 x.EscapedComputedClass = false 105874 } else { 105875 x.EscapedComputedClass = (bool)(r.DecodeBool()) 105876 } 105877 case "AnnotatePlan": 105878 if r.TryDecodeAsNil() { 105879 x.AnnotatePlan = false 105880 } else { 105881 x.AnnotatePlan = (bool)(r.DecodeBool()) 105882 } 105883 case "QueuedAllocations": 105884 if r.TryDecodeAsNil() { 105885 x.QueuedAllocations = nil 105886 } else { 105887 if false { 105888 } else { 105889 z.F.DecMapStringIntX(&x.QueuedAllocations, d) 105890 } 105891 } 105892 case "LeaderACL": 105893 if r.TryDecodeAsNil() { 105894 x.LeaderACL = "" 105895 } else { 105896 x.LeaderACL = (string)(r.DecodeString()) 105897 } 105898 case "SnapshotIndex": 105899 if r.TryDecodeAsNil() { 105900 x.SnapshotIndex = 0 105901 } else { 105902 x.SnapshotIndex = (uint64)(r.DecodeUint64()) 105903 } 105904 case "CreateIndex": 105905 if r.TryDecodeAsNil() { 105906 x.CreateIndex = 0 105907 } else { 105908 x.CreateIndex = (uint64)(r.DecodeUint64()) 105909 } 105910 case "ModifyIndex": 105911 if r.TryDecodeAsNil() { 105912 x.ModifyIndex = 0 105913 } else { 105914 x.ModifyIndex = (uint64)(r.DecodeUint64()) 105915 } 105916 case "CreateTime": 105917 if r.TryDecodeAsNil() { 105918 x.CreateTime = 0 105919 } else { 105920 x.CreateTime = (int64)(r.DecodeInt64()) 105921 } 105922 case "ModifyTime": 105923 if r.TryDecodeAsNil() { 105924 x.ModifyTime = 0 105925 } else { 105926 x.ModifyTime = (int64)(r.DecodeInt64()) 105927 } 105928 default: 105929 z.DecStructFieldNotFound(-1, yys3) 105930 } // end switch yys3 105931 } // end for yyj3 105932 r.ReadMapEnd() 105933 } 105934 105935 func (x *Evaluation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 105936 var h codecSelfer100 105937 z, r := codec1978.GenHelperDecoder(d) 105938 _, _, _ = h, z, r 105939 var yyj38 int 105940 var yyb38 bool 105941 var yyhl38 bool = l >= 0 105942 yyj38++ 105943 if yyhl38 { 105944 yyb38 = yyj38 > l 105945 } else { 105946 yyb38 = r.CheckBreak() 105947 } 105948 if yyb38 { 105949 r.ReadArrayEnd() 105950 return 105951 } 105952 r.ReadArrayElem() 105953 if r.TryDecodeAsNil() { 105954 x.ID = "" 105955 } else { 105956 x.ID = (string)(r.DecodeString()) 105957 } 105958 yyj38++ 105959 if yyhl38 { 105960 yyb38 = yyj38 > l 105961 } else { 105962 yyb38 = r.CheckBreak() 105963 } 105964 if yyb38 { 105965 r.ReadArrayEnd() 105966 return 105967 } 105968 r.ReadArrayElem() 105969 if r.TryDecodeAsNil() { 105970 x.Namespace = "" 105971 } else { 105972 x.Namespace = (string)(r.DecodeString()) 105973 } 105974 yyj38++ 105975 if yyhl38 { 105976 yyb38 = yyj38 > l 105977 } else { 105978 yyb38 = r.CheckBreak() 105979 } 105980 if yyb38 { 105981 r.ReadArrayEnd() 105982 return 105983 } 105984 r.ReadArrayElem() 105985 if r.TryDecodeAsNil() { 105986 x.Priority = 0 105987 } else { 105988 x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 105989 } 105990 yyj38++ 105991 if yyhl38 { 105992 yyb38 = yyj38 > l 105993 } else { 105994 yyb38 = r.CheckBreak() 105995 } 105996 if yyb38 { 105997 r.ReadArrayEnd() 105998 return 105999 } 106000 r.ReadArrayElem() 106001 if r.TryDecodeAsNil() { 106002 x.Type = "" 106003 } else { 106004 x.Type = (string)(r.DecodeString()) 106005 } 106006 yyj38++ 106007 if yyhl38 { 106008 yyb38 = yyj38 > l 106009 } else { 106010 yyb38 = r.CheckBreak() 106011 } 106012 if yyb38 { 106013 r.ReadArrayEnd() 106014 return 106015 } 106016 r.ReadArrayElem() 106017 if r.TryDecodeAsNil() { 106018 x.TriggeredBy = "" 106019 } else { 106020 x.TriggeredBy = (string)(r.DecodeString()) 106021 } 106022 yyj38++ 106023 if yyhl38 { 106024 yyb38 = yyj38 > l 106025 } else { 106026 yyb38 = r.CheckBreak() 106027 } 106028 if yyb38 { 106029 r.ReadArrayEnd() 106030 return 106031 } 106032 r.ReadArrayElem() 106033 if r.TryDecodeAsNil() { 106034 x.JobID = "" 106035 } else { 106036 x.JobID = (string)(r.DecodeString()) 106037 } 106038 yyj38++ 106039 if yyhl38 { 106040 yyb38 = yyj38 > l 106041 } else { 106042 yyb38 = r.CheckBreak() 106043 } 106044 if yyb38 { 106045 r.ReadArrayEnd() 106046 return 106047 } 106048 r.ReadArrayElem() 106049 if r.TryDecodeAsNil() { 106050 x.JobModifyIndex = 0 106051 } else { 106052 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 106053 } 106054 yyj38++ 106055 if yyhl38 { 106056 yyb38 = yyj38 > l 106057 } else { 106058 yyb38 = r.CheckBreak() 106059 } 106060 if yyb38 { 106061 r.ReadArrayEnd() 106062 return 106063 } 106064 r.ReadArrayElem() 106065 if r.TryDecodeAsNil() { 106066 x.NodeID = "" 106067 } else { 106068 x.NodeID = (string)(r.DecodeString()) 106069 } 106070 yyj38++ 106071 if yyhl38 { 106072 yyb38 = yyj38 > l 106073 } else { 106074 yyb38 = r.CheckBreak() 106075 } 106076 if yyb38 { 106077 r.ReadArrayEnd() 106078 return 106079 } 106080 r.ReadArrayElem() 106081 if r.TryDecodeAsNil() { 106082 x.NodeModifyIndex = 0 106083 } else { 106084 x.NodeModifyIndex = (uint64)(r.DecodeUint64()) 106085 } 106086 yyj38++ 106087 if yyhl38 { 106088 yyb38 = yyj38 > l 106089 } else { 106090 yyb38 = r.CheckBreak() 106091 } 106092 if yyb38 { 106093 r.ReadArrayEnd() 106094 return 106095 } 106096 r.ReadArrayElem() 106097 if r.TryDecodeAsNil() { 106098 x.DeploymentID = "" 106099 } else { 106100 x.DeploymentID = (string)(r.DecodeString()) 106101 } 106102 yyj38++ 106103 if yyhl38 { 106104 yyb38 = yyj38 > l 106105 } else { 106106 yyb38 = r.CheckBreak() 106107 } 106108 if yyb38 { 106109 r.ReadArrayEnd() 106110 return 106111 } 106112 r.ReadArrayElem() 106113 if r.TryDecodeAsNil() { 106114 x.Status = "" 106115 } else { 106116 x.Status = (string)(r.DecodeString()) 106117 } 106118 yyj38++ 106119 if yyhl38 { 106120 yyb38 = yyj38 > l 106121 } else { 106122 yyb38 = r.CheckBreak() 106123 } 106124 if yyb38 { 106125 r.ReadArrayEnd() 106126 return 106127 } 106128 r.ReadArrayElem() 106129 if r.TryDecodeAsNil() { 106130 x.StatusDescription = "" 106131 } else { 106132 x.StatusDescription = (string)(r.DecodeString()) 106133 } 106134 yyj38++ 106135 if yyhl38 { 106136 yyb38 = yyj38 > l 106137 } else { 106138 yyb38 = r.CheckBreak() 106139 } 106140 if yyb38 { 106141 r.ReadArrayEnd() 106142 return 106143 } 106144 r.ReadArrayElem() 106145 if r.TryDecodeAsNil() { 106146 x.Wait = 0 106147 } else { 106148 if false { 106149 } else if yyxt52 := z.Extension(z.I2Rtid(x.Wait)); yyxt52 != nil { 106150 z.DecExtension(x.Wait, yyxt52) 106151 } else { 106152 x.Wait = (time.Duration)(r.DecodeInt64()) 106153 } 106154 } 106155 yyj38++ 106156 if yyhl38 { 106157 yyb38 = yyj38 > l 106158 } else { 106159 yyb38 = r.CheckBreak() 106160 } 106161 if yyb38 { 106162 r.ReadArrayEnd() 106163 return 106164 } 106165 r.ReadArrayElem() 106166 if r.TryDecodeAsNil() { 106167 x.WaitUntil = time.Time{} 106168 } else { 106169 if false { 106170 } else if !z.DecBasicHandle().TimeNotBuiltin { 106171 x.WaitUntil = r.DecodeTime() 106172 } else if yyxt54 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt54 != nil { 106173 z.DecExtension(x.WaitUntil, yyxt54) 106174 } else if z.DecBinary() { 106175 z.DecBinaryUnmarshal(&x.WaitUntil) 106176 } else if !z.DecBinary() && z.IsJSONHandle() { 106177 z.DecJSONUnmarshal(&x.WaitUntil) 106178 } else { 106179 z.DecFallback(&x.WaitUntil, false) 106180 } 106181 } 106182 yyj38++ 106183 if yyhl38 { 106184 yyb38 = yyj38 > l 106185 } else { 106186 yyb38 = r.CheckBreak() 106187 } 106188 if yyb38 { 106189 r.ReadArrayEnd() 106190 return 106191 } 106192 r.ReadArrayElem() 106193 if r.TryDecodeAsNil() { 106194 x.NextEval = "" 106195 } else { 106196 x.NextEval = (string)(r.DecodeString()) 106197 } 106198 yyj38++ 106199 if yyhl38 { 106200 yyb38 = yyj38 > l 106201 } else { 106202 yyb38 = r.CheckBreak() 106203 } 106204 if yyb38 { 106205 r.ReadArrayEnd() 106206 return 106207 } 106208 r.ReadArrayElem() 106209 if r.TryDecodeAsNil() { 106210 x.PreviousEval = "" 106211 } else { 106212 x.PreviousEval = (string)(r.DecodeString()) 106213 } 106214 yyj38++ 106215 if yyhl38 { 106216 yyb38 = yyj38 > l 106217 } else { 106218 yyb38 = r.CheckBreak() 106219 } 106220 if yyb38 { 106221 r.ReadArrayEnd() 106222 return 106223 } 106224 r.ReadArrayElem() 106225 if r.TryDecodeAsNil() { 106226 x.BlockedEval = "" 106227 } else { 106228 x.BlockedEval = (string)(r.DecodeString()) 106229 } 106230 yyj38++ 106231 if yyhl38 { 106232 yyb38 = yyj38 > l 106233 } else { 106234 yyb38 = r.CheckBreak() 106235 } 106236 if yyb38 { 106237 r.ReadArrayEnd() 106238 return 106239 } 106240 r.ReadArrayElem() 106241 if r.TryDecodeAsNil() { 106242 x.FailedTGAllocs = nil 106243 } else { 106244 if false { 106245 } else { 106246 h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(&x.FailedTGAllocs), d) 106247 } 106248 } 106249 yyj38++ 106250 if yyhl38 { 106251 yyb38 = yyj38 > l 106252 } else { 106253 yyb38 = r.CheckBreak() 106254 } 106255 if yyb38 { 106256 r.ReadArrayEnd() 106257 return 106258 } 106259 r.ReadArrayElem() 106260 if r.TryDecodeAsNil() { 106261 x.ClassEligibility = nil 106262 } else { 106263 if false { 106264 } else { 106265 z.F.DecMapStringBoolX(&x.ClassEligibility, d) 106266 } 106267 } 106268 yyj38++ 106269 if yyhl38 { 106270 yyb38 = yyj38 > l 106271 } else { 106272 yyb38 = r.CheckBreak() 106273 } 106274 if yyb38 { 106275 r.ReadArrayEnd() 106276 return 106277 } 106278 r.ReadArrayElem() 106279 if r.TryDecodeAsNil() { 106280 x.QuotaLimitReached = "" 106281 } else { 106282 x.QuotaLimitReached = (string)(r.DecodeString()) 106283 } 106284 yyj38++ 106285 if yyhl38 { 106286 yyb38 = yyj38 > l 106287 } else { 106288 yyb38 = r.CheckBreak() 106289 } 106290 if yyb38 { 106291 r.ReadArrayEnd() 106292 return 106293 } 106294 r.ReadArrayElem() 106295 if r.TryDecodeAsNil() { 106296 x.EscapedComputedClass = false 106297 } else { 106298 x.EscapedComputedClass = (bool)(r.DecodeBool()) 106299 } 106300 yyj38++ 106301 if yyhl38 { 106302 yyb38 = yyj38 > l 106303 } else { 106304 yyb38 = r.CheckBreak() 106305 } 106306 if yyb38 { 106307 r.ReadArrayEnd() 106308 return 106309 } 106310 r.ReadArrayElem() 106311 if r.TryDecodeAsNil() { 106312 x.AnnotatePlan = false 106313 } else { 106314 x.AnnotatePlan = (bool)(r.DecodeBool()) 106315 } 106316 yyj38++ 106317 if yyhl38 { 106318 yyb38 = yyj38 > l 106319 } else { 106320 yyb38 = r.CheckBreak() 106321 } 106322 if yyb38 { 106323 r.ReadArrayEnd() 106324 return 106325 } 106326 r.ReadArrayElem() 106327 if r.TryDecodeAsNil() { 106328 x.QueuedAllocations = nil 106329 } else { 106330 if false { 106331 } else { 106332 z.F.DecMapStringIntX(&x.QueuedAllocations, d) 106333 } 106334 } 106335 yyj38++ 106336 if yyhl38 { 106337 yyb38 = yyj38 > l 106338 } else { 106339 yyb38 = r.CheckBreak() 106340 } 106341 if yyb38 { 106342 r.ReadArrayEnd() 106343 return 106344 } 106345 r.ReadArrayElem() 106346 if r.TryDecodeAsNil() { 106347 x.LeaderACL = "" 106348 } else { 106349 x.LeaderACL = (string)(r.DecodeString()) 106350 } 106351 yyj38++ 106352 if yyhl38 { 106353 yyb38 = yyj38 > l 106354 } else { 106355 yyb38 = r.CheckBreak() 106356 } 106357 if yyb38 { 106358 r.ReadArrayEnd() 106359 return 106360 } 106361 r.ReadArrayElem() 106362 if r.TryDecodeAsNil() { 106363 x.SnapshotIndex = 0 106364 } else { 106365 x.SnapshotIndex = (uint64)(r.DecodeUint64()) 106366 } 106367 yyj38++ 106368 if yyhl38 { 106369 yyb38 = yyj38 > l 106370 } else { 106371 yyb38 = r.CheckBreak() 106372 } 106373 if yyb38 { 106374 r.ReadArrayEnd() 106375 return 106376 } 106377 r.ReadArrayElem() 106378 if r.TryDecodeAsNil() { 106379 x.CreateIndex = 0 106380 } else { 106381 x.CreateIndex = (uint64)(r.DecodeUint64()) 106382 } 106383 yyj38++ 106384 if yyhl38 { 106385 yyb38 = yyj38 > l 106386 } else { 106387 yyb38 = r.CheckBreak() 106388 } 106389 if yyb38 { 106390 r.ReadArrayEnd() 106391 return 106392 } 106393 r.ReadArrayElem() 106394 if r.TryDecodeAsNil() { 106395 x.ModifyIndex = 0 106396 } else { 106397 x.ModifyIndex = (uint64)(r.DecodeUint64()) 106398 } 106399 yyj38++ 106400 if yyhl38 { 106401 yyb38 = yyj38 > l 106402 } else { 106403 yyb38 = r.CheckBreak() 106404 } 106405 if yyb38 { 106406 r.ReadArrayEnd() 106407 return 106408 } 106409 r.ReadArrayElem() 106410 if r.TryDecodeAsNil() { 106411 x.CreateTime = 0 106412 } else { 106413 x.CreateTime = (int64)(r.DecodeInt64()) 106414 } 106415 yyj38++ 106416 if yyhl38 { 106417 yyb38 = yyj38 > l 106418 } else { 106419 yyb38 = r.CheckBreak() 106420 } 106421 if yyb38 { 106422 r.ReadArrayEnd() 106423 return 106424 } 106425 r.ReadArrayElem() 106426 if r.TryDecodeAsNil() { 106427 x.ModifyTime = 0 106428 } else { 106429 x.ModifyTime = (int64)(r.DecodeInt64()) 106430 } 106431 for { 106432 yyj38++ 106433 if yyhl38 { 106434 yyb38 = yyj38 > l 106435 } else { 106436 yyb38 = r.CheckBreak() 106437 } 106438 if yyb38 { 106439 break 106440 } 106441 r.ReadArrayElem() 106442 z.DecStructFieldNotFound(yyj38-1, "") 106443 } 106444 r.ReadArrayEnd() 106445 } 106446 106447 func (x *Plan) CodecEncodeSelf(e *codec1978.Encoder) { 106448 var h codecSelfer100 106449 z, r := codec1978.GenHelperEncoder(e) 106450 _, _, _ = h, z, r 106451 if x == nil { 106452 r.EncodeNil() 106453 } else { 106454 if false { 106455 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 106456 z.EncExtension(x, yyxt1) 106457 } else { 106458 yysep2 := !z.EncBinary() 106459 yy2arr2 := z.EncBasicHandle().StructToArray 106460 _, _ = yysep2, yy2arr2 106461 const yyr2 bool = false // struct tag has 'toArray' 106462 var yyq2 = [12]bool{ // should field at this index be written? 106463 x.EvalID != "", // EvalID 106464 x.EvalToken != "", // EvalToken 106465 x.Priority != 0, // Priority 106466 x.AllAtOnce, // AllAtOnce 106467 x.Job != nil, // Job 106468 len(x.NodeUpdate) != 0, // NodeUpdate 106469 len(x.NodeAllocation) != 0, // NodeAllocation 106470 x.Annotations != nil, // Annotations 106471 x.Deployment != nil, // Deployment 106472 len(x.DeploymentUpdates) != 0, // DeploymentUpdates 106473 len(x.NodePreemptions) != 0, // NodePreemptions 106474 x.SnapshotIndex != 0, // SnapshotIndex 106475 } 106476 _ = yyq2 106477 if yyr2 || yy2arr2 { 106478 r.WriteArrayStart(12) 106479 } else { 106480 var yynn2 int 106481 for _, b := range yyq2 { 106482 if b { 106483 yynn2++ 106484 } 106485 } 106486 r.WriteMapStart(yynn2) 106487 yynn2 = 0 106488 } 106489 if yyr2 || yy2arr2 { 106490 r.WriteArrayElem() 106491 if yyq2[0] { 106492 if false { 106493 } else { 106494 if z.EncBasicHandle().StringToRaw { 106495 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 106496 } else { 106497 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 106498 } 106499 } 106500 } else { 106501 if z.EncBasicHandle().StringToRaw { 106502 r.EncodeStringBytesRaw([]byte{}) 106503 } else { 106504 r.EncodeStringEnc(codecSelferCcUTF8100, "") 106505 } 106506 } 106507 } else { 106508 if yyq2[0] { 106509 r.WriteMapElemKey() 106510 if z.IsJSONHandle() { 106511 z.WriteStr("\"EvalID\"") 106512 } else { 106513 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 106514 } 106515 r.WriteMapElemValue() 106516 if false { 106517 } else { 106518 if z.EncBasicHandle().StringToRaw { 106519 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 106520 } else { 106521 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 106522 } 106523 } 106524 } 106525 } 106526 if yyr2 || yy2arr2 { 106527 r.WriteArrayElem() 106528 if yyq2[1] { 106529 if false { 106530 } else { 106531 if z.EncBasicHandle().StringToRaw { 106532 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalToken))) 106533 } else { 106534 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalToken)) 106535 } 106536 } 106537 } else { 106538 if z.EncBasicHandle().StringToRaw { 106539 r.EncodeStringBytesRaw([]byte{}) 106540 } else { 106541 r.EncodeStringEnc(codecSelferCcUTF8100, "") 106542 } 106543 } 106544 } else { 106545 if yyq2[1] { 106546 r.WriteMapElemKey() 106547 if z.IsJSONHandle() { 106548 z.WriteStr("\"EvalToken\"") 106549 } else { 106550 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalToken`) 106551 } 106552 r.WriteMapElemValue() 106553 if false { 106554 } else { 106555 if z.EncBasicHandle().StringToRaw { 106556 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalToken))) 106557 } else { 106558 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalToken)) 106559 } 106560 } 106561 } 106562 } 106563 if yyr2 || yy2arr2 { 106564 r.WriteArrayElem() 106565 if yyq2[2] { 106566 if false { 106567 } else { 106568 r.EncodeInt(int64(x.Priority)) 106569 } 106570 } else { 106571 r.EncodeInt(0) 106572 } 106573 } else { 106574 if yyq2[2] { 106575 r.WriteMapElemKey() 106576 if z.IsJSONHandle() { 106577 z.WriteStr("\"Priority\"") 106578 } else { 106579 r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) 106580 } 106581 r.WriteMapElemValue() 106582 if false { 106583 } else { 106584 r.EncodeInt(int64(x.Priority)) 106585 } 106586 } 106587 } 106588 if yyr2 || yy2arr2 { 106589 r.WriteArrayElem() 106590 if yyq2[3] { 106591 if false { 106592 } else { 106593 r.EncodeBool(bool(x.AllAtOnce)) 106594 } 106595 } else { 106596 r.EncodeBool(false) 106597 } 106598 } else { 106599 if yyq2[3] { 106600 r.WriteMapElemKey() 106601 if z.IsJSONHandle() { 106602 z.WriteStr("\"AllAtOnce\"") 106603 } else { 106604 r.EncodeStringEnc(codecSelferCcUTF8100, `AllAtOnce`) 106605 } 106606 r.WriteMapElemValue() 106607 if false { 106608 } else { 106609 r.EncodeBool(bool(x.AllAtOnce)) 106610 } 106611 } 106612 } 106613 var yyn15 bool 106614 if x.Job == nil { 106615 yyn15 = true 106616 goto LABEL15 106617 } 106618 LABEL15: 106619 if yyr2 || yy2arr2 { 106620 if yyn15 { 106621 r.WriteArrayElem() 106622 r.EncodeNil() 106623 } else { 106624 r.WriteArrayElem() 106625 if yyq2[4] { 106626 if x.Job == nil { 106627 r.EncodeNil() 106628 } else { 106629 x.Job.CodecEncodeSelf(e) 106630 } 106631 } else { 106632 r.EncodeNil() 106633 } 106634 } 106635 } else { 106636 if yyq2[4] { 106637 r.WriteMapElemKey() 106638 if z.IsJSONHandle() { 106639 z.WriteStr("\"Job\"") 106640 } else { 106641 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 106642 } 106643 r.WriteMapElemValue() 106644 if yyn15 { 106645 r.EncodeNil() 106646 } else { 106647 if x.Job == nil { 106648 r.EncodeNil() 106649 } else { 106650 x.Job.CodecEncodeSelf(e) 106651 } 106652 } 106653 } 106654 } 106655 if yyr2 || yy2arr2 { 106656 r.WriteArrayElem() 106657 if yyq2[5] { 106658 if x.NodeUpdate == nil { 106659 r.EncodeNil() 106660 } else { 106661 if false { 106662 } else { 106663 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) 106664 } 106665 } 106666 } else { 106667 r.EncodeNil() 106668 } 106669 } else { 106670 if yyq2[5] { 106671 r.WriteMapElemKey() 106672 if z.IsJSONHandle() { 106673 z.WriteStr("\"NodeUpdate\"") 106674 } else { 106675 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeUpdate`) 106676 } 106677 r.WriteMapElemValue() 106678 if x.NodeUpdate == nil { 106679 r.EncodeNil() 106680 } else { 106681 if false { 106682 } else { 106683 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) 106684 } 106685 } 106686 } 106687 } 106688 if yyr2 || yy2arr2 { 106689 r.WriteArrayElem() 106690 if yyq2[6] { 106691 if x.NodeAllocation == nil { 106692 r.EncodeNil() 106693 } else { 106694 if false { 106695 } else { 106696 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) 106697 } 106698 } 106699 } else { 106700 r.EncodeNil() 106701 } 106702 } else { 106703 if yyq2[6] { 106704 r.WriteMapElemKey() 106705 if z.IsJSONHandle() { 106706 z.WriteStr("\"NodeAllocation\"") 106707 } else { 106708 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeAllocation`) 106709 } 106710 r.WriteMapElemValue() 106711 if x.NodeAllocation == nil { 106712 r.EncodeNil() 106713 } else { 106714 if false { 106715 } else { 106716 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) 106717 } 106718 } 106719 } 106720 } 106721 var yyn24 bool 106722 if x.Annotations == nil { 106723 yyn24 = true 106724 goto LABEL24 106725 } 106726 LABEL24: 106727 if yyr2 || yy2arr2 { 106728 if yyn24 { 106729 r.WriteArrayElem() 106730 r.EncodeNil() 106731 } else { 106732 r.WriteArrayElem() 106733 if yyq2[7] { 106734 if x.Annotations == nil { 106735 r.EncodeNil() 106736 } else { 106737 x.Annotations.CodecEncodeSelf(e) 106738 } 106739 } else { 106740 r.EncodeNil() 106741 } 106742 } 106743 } else { 106744 if yyq2[7] { 106745 r.WriteMapElemKey() 106746 if z.IsJSONHandle() { 106747 z.WriteStr("\"Annotations\"") 106748 } else { 106749 r.EncodeStringEnc(codecSelferCcUTF8100, `Annotations`) 106750 } 106751 r.WriteMapElemValue() 106752 if yyn24 { 106753 r.EncodeNil() 106754 } else { 106755 if x.Annotations == nil { 106756 r.EncodeNil() 106757 } else { 106758 x.Annotations.CodecEncodeSelf(e) 106759 } 106760 } 106761 } 106762 } 106763 var yyn27 bool 106764 if x.Deployment == nil { 106765 yyn27 = true 106766 goto LABEL27 106767 } 106768 LABEL27: 106769 if yyr2 || yy2arr2 { 106770 if yyn27 { 106771 r.WriteArrayElem() 106772 r.EncodeNil() 106773 } else { 106774 r.WriteArrayElem() 106775 if yyq2[8] { 106776 if x.Deployment == nil { 106777 r.EncodeNil() 106778 } else { 106779 x.Deployment.CodecEncodeSelf(e) 106780 } 106781 } else { 106782 r.EncodeNil() 106783 } 106784 } 106785 } else { 106786 if yyq2[8] { 106787 r.WriteMapElemKey() 106788 if z.IsJSONHandle() { 106789 z.WriteStr("\"Deployment\"") 106790 } else { 106791 r.EncodeStringEnc(codecSelferCcUTF8100, `Deployment`) 106792 } 106793 r.WriteMapElemValue() 106794 if yyn27 { 106795 r.EncodeNil() 106796 } else { 106797 if x.Deployment == nil { 106798 r.EncodeNil() 106799 } else { 106800 x.Deployment.CodecEncodeSelf(e) 106801 } 106802 } 106803 } 106804 } 106805 if yyr2 || yy2arr2 { 106806 r.WriteArrayElem() 106807 if yyq2[9] { 106808 if x.DeploymentUpdates == nil { 106809 r.EncodeNil() 106810 } else { 106811 if false { 106812 } else { 106813 h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) 106814 } 106815 } 106816 } else { 106817 r.EncodeNil() 106818 } 106819 } else { 106820 if yyq2[9] { 106821 r.WriteMapElemKey() 106822 if z.IsJSONHandle() { 106823 z.WriteStr("\"DeploymentUpdates\"") 106824 } else { 106825 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdates`) 106826 } 106827 r.WriteMapElemValue() 106828 if x.DeploymentUpdates == nil { 106829 r.EncodeNil() 106830 } else { 106831 if false { 106832 } else { 106833 h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) 106834 } 106835 } 106836 } 106837 } 106838 if yyr2 || yy2arr2 { 106839 r.WriteArrayElem() 106840 if yyq2[10] { 106841 if x.NodePreemptions == nil { 106842 r.EncodeNil() 106843 } else { 106844 if false { 106845 } else { 106846 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodePreemptions), e) 106847 } 106848 } 106849 } else { 106850 r.EncodeNil() 106851 } 106852 } else { 106853 if yyq2[10] { 106854 r.WriteMapElemKey() 106855 if z.IsJSONHandle() { 106856 z.WriteStr("\"NodePreemptions\"") 106857 } else { 106858 r.EncodeStringEnc(codecSelferCcUTF8100, `NodePreemptions`) 106859 } 106860 r.WriteMapElemValue() 106861 if x.NodePreemptions == nil { 106862 r.EncodeNil() 106863 } else { 106864 if false { 106865 } else { 106866 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodePreemptions), e) 106867 } 106868 } 106869 } 106870 } 106871 if yyr2 || yy2arr2 { 106872 r.WriteArrayElem() 106873 if yyq2[11] { 106874 if false { 106875 } else { 106876 r.EncodeUint(uint64(x.SnapshotIndex)) 106877 } 106878 } else { 106879 r.EncodeUint(0) 106880 } 106881 } else { 106882 if yyq2[11] { 106883 r.WriteMapElemKey() 106884 if z.IsJSONHandle() { 106885 z.WriteStr("\"SnapshotIndex\"") 106886 } else { 106887 r.EncodeStringEnc(codecSelferCcUTF8100, `SnapshotIndex`) 106888 } 106889 r.WriteMapElemValue() 106890 if false { 106891 } else { 106892 r.EncodeUint(uint64(x.SnapshotIndex)) 106893 } 106894 } 106895 } 106896 if yyr2 || yy2arr2 { 106897 r.WriteArrayEnd() 106898 } else { 106899 r.WriteMapEnd() 106900 } 106901 } 106902 } 106903 } 106904 106905 func (x *Plan) CodecDecodeSelf(d *codec1978.Decoder) { 106906 var h codecSelfer100 106907 z, r := codec1978.GenHelperDecoder(d) 106908 _, _, _ = h, z, r 106909 if false { 106910 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 106911 z.DecExtension(x, yyxt1) 106912 } else { 106913 yyct2 := r.ContainerType() 106914 if yyct2 == codecSelferValueTypeMap100 { 106915 yyl2 := r.ReadMapStart() 106916 if yyl2 == 0 { 106917 r.ReadMapEnd() 106918 } else { 106919 x.codecDecodeSelfFromMap(yyl2, d) 106920 } 106921 } else if yyct2 == codecSelferValueTypeArray100 { 106922 yyl2 := r.ReadArrayStart() 106923 if yyl2 == 0 { 106924 r.ReadArrayEnd() 106925 } else { 106926 x.codecDecodeSelfFromArray(yyl2, d) 106927 } 106928 } else { 106929 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 106930 } 106931 } 106932 } 106933 106934 func (x *Plan) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 106935 var h codecSelfer100 106936 z, r := codec1978.GenHelperDecoder(d) 106937 _, _, _ = h, z, r 106938 var yyhl3 bool = l >= 0 106939 for yyj3 := 0; ; yyj3++ { 106940 if yyhl3 { 106941 if yyj3 >= l { 106942 break 106943 } 106944 } else { 106945 if r.CheckBreak() { 106946 break 106947 } 106948 } 106949 r.ReadMapElemKey() 106950 yys3 := z.StringView(r.DecodeStringAsBytes()) 106951 r.ReadMapElemValue() 106952 switch yys3 { 106953 case "EvalID": 106954 if r.TryDecodeAsNil() { 106955 x.EvalID = "" 106956 } else { 106957 x.EvalID = (string)(r.DecodeString()) 106958 } 106959 case "EvalToken": 106960 if r.TryDecodeAsNil() { 106961 x.EvalToken = "" 106962 } else { 106963 x.EvalToken = (string)(r.DecodeString()) 106964 } 106965 case "Priority": 106966 if r.TryDecodeAsNil() { 106967 x.Priority = 0 106968 } else { 106969 x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 106970 } 106971 case "AllAtOnce": 106972 if r.TryDecodeAsNil() { 106973 x.AllAtOnce = false 106974 } else { 106975 x.AllAtOnce = (bool)(r.DecodeBool()) 106976 } 106977 case "Job": 106978 if r.TryDecodeAsNil() { 106979 if true && x.Job != nil { 106980 x.Job = nil 106981 } 106982 } else { 106983 if x.Job == nil { 106984 x.Job = new(Job) 106985 } 106986 106987 x.Job.CodecDecodeSelf(d) 106988 } 106989 case "NodeUpdate": 106990 if r.TryDecodeAsNil() { 106991 x.NodeUpdate = nil 106992 } else { 106993 if false { 106994 } else { 106995 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeUpdate), d) 106996 } 106997 } 106998 case "NodeAllocation": 106999 if r.TryDecodeAsNil() { 107000 x.NodeAllocation = nil 107001 } else { 107002 if false { 107003 } else { 107004 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeAllocation), d) 107005 } 107006 } 107007 case "Annotations": 107008 if r.TryDecodeAsNil() { 107009 if true && x.Annotations != nil { 107010 x.Annotations = nil 107011 } 107012 } else { 107013 if x.Annotations == nil { 107014 x.Annotations = new(PlanAnnotations) 107015 } 107016 107017 x.Annotations.CodecDecodeSelf(d) 107018 } 107019 case "Deployment": 107020 if r.TryDecodeAsNil() { 107021 if true && x.Deployment != nil { 107022 x.Deployment = nil 107023 } 107024 } else { 107025 if x.Deployment == nil { 107026 x.Deployment = new(Deployment) 107027 } 107028 107029 x.Deployment.CodecDecodeSelf(d) 107030 } 107031 case "DeploymentUpdates": 107032 if r.TryDecodeAsNil() { 107033 x.DeploymentUpdates = nil 107034 } else { 107035 if false { 107036 } else { 107037 h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) 107038 } 107039 } 107040 case "NodePreemptions": 107041 if r.TryDecodeAsNil() { 107042 x.NodePreemptions = nil 107043 } else { 107044 if false { 107045 } else { 107046 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodePreemptions), d) 107047 } 107048 } 107049 case "SnapshotIndex": 107050 if r.TryDecodeAsNil() { 107051 x.SnapshotIndex = 0 107052 } else { 107053 x.SnapshotIndex = (uint64)(r.DecodeUint64()) 107054 } 107055 default: 107056 z.DecStructFieldNotFound(-1, yys3) 107057 } // end switch yys3 107058 } // end for yyj3 107059 r.ReadMapEnd() 107060 } 107061 107062 func (x *Plan) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 107063 var h codecSelfer100 107064 z, r := codec1978.GenHelperDecoder(d) 107065 _, _, _ = h, z, r 107066 var yyj20 int 107067 var yyb20 bool 107068 var yyhl20 bool = l >= 0 107069 yyj20++ 107070 if yyhl20 { 107071 yyb20 = yyj20 > l 107072 } else { 107073 yyb20 = r.CheckBreak() 107074 } 107075 if yyb20 { 107076 r.ReadArrayEnd() 107077 return 107078 } 107079 r.ReadArrayElem() 107080 if r.TryDecodeAsNil() { 107081 x.EvalID = "" 107082 } else { 107083 x.EvalID = (string)(r.DecodeString()) 107084 } 107085 yyj20++ 107086 if yyhl20 { 107087 yyb20 = yyj20 > l 107088 } else { 107089 yyb20 = r.CheckBreak() 107090 } 107091 if yyb20 { 107092 r.ReadArrayEnd() 107093 return 107094 } 107095 r.ReadArrayElem() 107096 if r.TryDecodeAsNil() { 107097 x.EvalToken = "" 107098 } else { 107099 x.EvalToken = (string)(r.DecodeString()) 107100 } 107101 yyj20++ 107102 if yyhl20 { 107103 yyb20 = yyj20 > l 107104 } else { 107105 yyb20 = r.CheckBreak() 107106 } 107107 if yyb20 { 107108 r.ReadArrayEnd() 107109 return 107110 } 107111 r.ReadArrayElem() 107112 if r.TryDecodeAsNil() { 107113 x.Priority = 0 107114 } else { 107115 x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 107116 } 107117 yyj20++ 107118 if yyhl20 { 107119 yyb20 = yyj20 > l 107120 } else { 107121 yyb20 = r.CheckBreak() 107122 } 107123 if yyb20 { 107124 r.ReadArrayEnd() 107125 return 107126 } 107127 r.ReadArrayElem() 107128 if r.TryDecodeAsNil() { 107129 x.AllAtOnce = false 107130 } else { 107131 x.AllAtOnce = (bool)(r.DecodeBool()) 107132 } 107133 yyj20++ 107134 if yyhl20 { 107135 yyb20 = yyj20 > l 107136 } else { 107137 yyb20 = r.CheckBreak() 107138 } 107139 if yyb20 { 107140 r.ReadArrayEnd() 107141 return 107142 } 107143 r.ReadArrayElem() 107144 if r.TryDecodeAsNil() { 107145 if true && x.Job != nil { 107146 x.Job = nil 107147 } 107148 } else { 107149 if x.Job == nil { 107150 x.Job = new(Job) 107151 } 107152 107153 x.Job.CodecDecodeSelf(d) 107154 } 107155 yyj20++ 107156 if yyhl20 { 107157 yyb20 = yyj20 > l 107158 } else { 107159 yyb20 = r.CheckBreak() 107160 } 107161 if yyb20 { 107162 r.ReadArrayEnd() 107163 return 107164 } 107165 r.ReadArrayElem() 107166 if r.TryDecodeAsNil() { 107167 x.NodeUpdate = nil 107168 } else { 107169 if false { 107170 } else { 107171 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeUpdate), d) 107172 } 107173 } 107174 yyj20++ 107175 if yyhl20 { 107176 yyb20 = yyj20 > l 107177 } else { 107178 yyb20 = r.CheckBreak() 107179 } 107180 if yyb20 { 107181 r.ReadArrayEnd() 107182 return 107183 } 107184 r.ReadArrayElem() 107185 if r.TryDecodeAsNil() { 107186 x.NodeAllocation = nil 107187 } else { 107188 if false { 107189 } else { 107190 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeAllocation), d) 107191 } 107192 } 107193 yyj20++ 107194 if yyhl20 { 107195 yyb20 = yyj20 > l 107196 } else { 107197 yyb20 = r.CheckBreak() 107198 } 107199 if yyb20 { 107200 r.ReadArrayEnd() 107201 return 107202 } 107203 r.ReadArrayElem() 107204 if r.TryDecodeAsNil() { 107205 if true && x.Annotations != nil { 107206 x.Annotations = nil 107207 } 107208 } else { 107209 if x.Annotations == nil { 107210 x.Annotations = new(PlanAnnotations) 107211 } 107212 107213 x.Annotations.CodecDecodeSelf(d) 107214 } 107215 yyj20++ 107216 if yyhl20 { 107217 yyb20 = yyj20 > l 107218 } else { 107219 yyb20 = r.CheckBreak() 107220 } 107221 if yyb20 { 107222 r.ReadArrayEnd() 107223 return 107224 } 107225 r.ReadArrayElem() 107226 if r.TryDecodeAsNil() { 107227 if true && x.Deployment != nil { 107228 x.Deployment = nil 107229 } 107230 } else { 107231 if x.Deployment == nil { 107232 x.Deployment = new(Deployment) 107233 } 107234 107235 x.Deployment.CodecDecodeSelf(d) 107236 } 107237 yyj20++ 107238 if yyhl20 { 107239 yyb20 = yyj20 > l 107240 } else { 107241 yyb20 = r.CheckBreak() 107242 } 107243 if yyb20 { 107244 r.ReadArrayEnd() 107245 return 107246 } 107247 r.ReadArrayElem() 107248 if r.TryDecodeAsNil() { 107249 x.DeploymentUpdates = nil 107250 } else { 107251 if false { 107252 } else { 107253 h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) 107254 } 107255 } 107256 yyj20++ 107257 if yyhl20 { 107258 yyb20 = yyj20 > l 107259 } else { 107260 yyb20 = r.CheckBreak() 107261 } 107262 if yyb20 { 107263 r.ReadArrayEnd() 107264 return 107265 } 107266 r.ReadArrayElem() 107267 if r.TryDecodeAsNil() { 107268 x.NodePreemptions = nil 107269 } else { 107270 if false { 107271 } else { 107272 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodePreemptions), d) 107273 } 107274 } 107275 yyj20++ 107276 if yyhl20 { 107277 yyb20 = yyj20 > l 107278 } else { 107279 yyb20 = r.CheckBreak() 107280 } 107281 if yyb20 { 107282 r.ReadArrayEnd() 107283 return 107284 } 107285 r.ReadArrayElem() 107286 if r.TryDecodeAsNil() { 107287 x.SnapshotIndex = 0 107288 } else { 107289 x.SnapshotIndex = (uint64)(r.DecodeUint64()) 107290 } 107291 for { 107292 yyj20++ 107293 if yyhl20 { 107294 yyb20 = yyj20 > l 107295 } else { 107296 yyb20 = r.CheckBreak() 107297 } 107298 if yyb20 { 107299 break 107300 } 107301 r.ReadArrayElem() 107302 z.DecStructFieldNotFound(yyj20-1, "") 107303 } 107304 r.ReadArrayEnd() 107305 } 107306 107307 func (x *PlanResult) CodecEncodeSelf(e *codec1978.Encoder) { 107308 var h codecSelfer100 107309 z, r := codec1978.GenHelperEncoder(e) 107310 _, _, _ = h, z, r 107311 if x == nil { 107312 r.EncodeNil() 107313 } else { 107314 if false { 107315 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 107316 z.EncExtension(x, yyxt1) 107317 } else { 107318 yysep2 := !z.EncBinary() 107319 yy2arr2 := z.EncBasicHandle().StructToArray 107320 _, _ = yysep2, yy2arr2 107321 const yyr2 bool = false // struct tag has 'toArray' 107322 if yyr2 || yy2arr2 { 107323 r.WriteArrayStart(7) 107324 } else { 107325 r.WriteMapStart(7) 107326 } 107327 if yyr2 || yy2arr2 { 107328 r.WriteArrayElem() 107329 if x.NodeUpdate == nil { 107330 r.EncodeNil() 107331 } else { 107332 if false { 107333 } else { 107334 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) 107335 } 107336 } 107337 } else { 107338 r.WriteMapElemKey() 107339 if z.IsJSONHandle() { 107340 z.WriteStr("\"NodeUpdate\"") 107341 } else { 107342 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeUpdate`) 107343 } 107344 r.WriteMapElemValue() 107345 if x.NodeUpdate == nil { 107346 r.EncodeNil() 107347 } else { 107348 if false { 107349 } else { 107350 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) 107351 } 107352 } 107353 } 107354 if yyr2 || yy2arr2 { 107355 r.WriteArrayElem() 107356 if x.NodeAllocation == nil { 107357 r.EncodeNil() 107358 } else { 107359 if false { 107360 } else { 107361 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) 107362 } 107363 } 107364 } else { 107365 r.WriteMapElemKey() 107366 if z.IsJSONHandle() { 107367 z.WriteStr("\"NodeAllocation\"") 107368 } else { 107369 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeAllocation`) 107370 } 107371 r.WriteMapElemValue() 107372 if x.NodeAllocation == nil { 107373 r.EncodeNil() 107374 } else { 107375 if false { 107376 } else { 107377 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) 107378 } 107379 } 107380 } 107381 var yyn9 bool 107382 if x.Deployment == nil { 107383 yyn9 = true 107384 goto LABEL9 107385 } 107386 LABEL9: 107387 if yyr2 || yy2arr2 { 107388 if yyn9 { 107389 r.WriteArrayElem() 107390 r.EncodeNil() 107391 } else { 107392 r.WriteArrayElem() 107393 if x.Deployment == nil { 107394 r.EncodeNil() 107395 } else { 107396 x.Deployment.CodecEncodeSelf(e) 107397 } 107398 } 107399 } else { 107400 r.WriteMapElemKey() 107401 if z.IsJSONHandle() { 107402 z.WriteStr("\"Deployment\"") 107403 } else { 107404 r.EncodeStringEnc(codecSelferCcUTF8100, `Deployment`) 107405 } 107406 r.WriteMapElemValue() 107407 if yyn9 { 107408 r.EncodeNil() 107409 } else { 107410 if x.Deployment == nil { 107411 r.EncodeNil() 107412 } else { 107413 x.Deployment.CodecEncodeSelf(e) 107414 } 107415 } 107416 } 107417 if yyr2 || yy2arr2 { 107418 r.WriteArrayElem() 107419 if x.DeploymentUpdates == nil { 107420 r.EncodeNil() 107421 } else { 107422 if false { 107423 } else { 107424 h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) 107425 } 107426 } 107427 } else { 107428 r.WriteMapElemKey() 107429 if z.IsJSONHandle() { 107430 z.WriteStr("\"DeploymentUpdates\"") 107431 } else { 107432 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdates`) 107433 } 107434 r.WriteMapElemValue() 107435 if x.DeploymentUpdates == nil { 107436 r.EncodeNil() 107437 } else { 107438 if false { 107439 } else { 107440 h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) 107441 } 107442 } 107443 } 107444 if yyr2 || yy2arr2 { 107445 r.WriteArrayElem() 107446 if x.NodePreemptions == nil { 107447 r.EncodeNil() 107448 } else { 107449 if false { 107450 } else { 107451 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodePreemptions), e) 107452 } 107453 } 107454 } else { 107455 r.WriteMapElemKey() 107456 if z.IsJSONHandle() { 107457 z.WriteStr("\"NodePreemptions\"") 107458 } else { 107459 r.EncodeStringEnc(codecSelferCcUTF8100, `NodePreemptions`) 107460 } 107461 r.WriteMapElemValue() 107462 if x.NodePreemptions == nil { 107463 r.EncodeNil() 107464 } else { 107465 if false { 107466 } else { 107467 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodePreemptions), e) 107468 } 107469 } 107470 } 107471 if yyr2 || yy2arr2 { 107472 r.WriteArrayElem() 107473 if false { 107474 } else { 107475 r.EncodeUint(uint64(x.RefreshIndex)) 107476 } 107477 } else { 107478 r.WriteMapElemKey() 107479 if z.IsJSONHandle() { 107480 z.WriteStr("\"RefreshIndex\"") 107481 } else { 107482 r.EncodeStringEnc(codecSelferCcUTF8100, `RefreshIndex`) 107483 } 107484 r.WriteMapElemValue() 107485 if false { 107486 } else { 107487 r.EncodeUint(uint64(x.RefreshIndex)) 107488 } 107489 } 107490 if yyr2 || yy2arr2 { 107491 r.WriteArrayElem() 107492 if false { 107493 } else { 107494 r.EncodeUint(uint64(x.AllocIndex)) 107495 } 107496 } else { 107497 r.WriteMapElemKey() 107498 if z.IsJSONHandle() { 107499 z.WriteStr("\"AllocIndex\"") 107500 } else { 107501 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocIndex`) 107502 } 107503 r.WriteMapElemValue() 107504 if false { 107505 } else { 107506 r.EncodeUint(uint64(x.AllocIndex)) 107507 } 107508 } 107509 if yyr2 || yy2arr2 { 107510 r.WriteArrayEnd() 107511 } else { 107512 r.WriteMapEnd() 107513 } 107514 } 107515 } 107516 } 107517 107518 func (x *PlanResult) CodecDecodeSelf(d *codec1978.Decoder) { 107519 var h codecSelfer100 107520 z, r := codec1978.GenHelperDecoder(d) 107521 _, _, _ = h, z, r 107522 if false { 107523 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 107524 z.DecExtension(x, yyxt1) 107525 } else { 107526 yyct2 := r.ContainerType() 107527 if yyct2 == codecSelferValueTypeMap100 { 107528 yyl2 := r.ReadMapStart() 107529 if yyl2 == 0 { 107530 r.ReadMapEnd() 107531 } else { 107532 x.codecDecodeSelfFromMap(yyl2, d) 107533 } 107534 } else if yyct2 == codecSelferValueTypeArray100 { 107535 yyl2 := r.ReadArrayStart() 107536 if yyl2 == 0 { 107537 r.ReadArrayEnd() 107538 } else { 107539 x.codecDecodeSelfFromArray(yyl2, d) 107540 } 107541 } else { 107542 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 107543 } 107544 } 107545 } 107546 107547 func (x *PlanResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 107548 var h codecSelfer100 107549 z, r := codec1978.GenHelperDecoder(d) 107550 _, _, _ = h, z, r 107551 var yyhl3 bool = l >= 0 107552 for yyj3 := 0; ; yyj3++ { 107553 if yyhl3 { 107554 if yyj3 >= l { 107555 break 107556 } 107557 } else { 107558 if r.CheckBreak() { 107559 break 107560 } 107561 } 107562 r.ReadMapElemKey() 107563 yys3 := z.StringView(r.DecodeStringAsBytes()) 107564 r.ReadMapElemValue() 107565 switch yys3 { 107566 case "NodeUpdate": 107567 if r.TryDecodeAsNil() { 107568 x.NodeUpdate = nil 107569 } else { 107570 if false { 107571 } else { 107572 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeUpdate), d) 107573 } 107574 } 107575 case "NodeAllocation": 107576 if r.TryDecodeAsNil() { 107577 x.NodeAllocation = nil 107578 } else { 107579 if false { 107580 } else { 107581 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeAllocation), d) 107582 } 107583 } 107584 case "Deployment": 107585 if r.TryDecodeAsNil() { 107586 if true && x.Deployment != nil { 107587 x.Deployment = nil 107588 } 107589 } else { 107590 if x.Deployment == nil { 107591 x.Deployment = new(Deployment) 107592 } 107593 107594 x.Deployment.CodecDecodeSelf(d) 107595 } 107596 case "DeploymentUpdates": 107597 if r.TryDecodeAsNil() { 107598 x.DeploymentUpdates = nil 107599 } else { 107600 if false { 107601 } else { 107602 h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) 107603 } 107604 } 107605 case "NodePreemptions": 107606 if r.TryDecodeAsNil() { 107607 x.NodePreemptions = nil 107608 } else { 107609 if false { 107610 } else { 107611 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodePreemptions), d) 107612 } 107613 } 107614 case "RefreshIndex": 107615 if r.TryDecodeAsNil() { 107616 x.RefreshIndex = 0 107617 } else { 107618 x.RefreshIndex = (uint64)(r.DecodeUint64()) 107619 } 107620 case "AllocIndex": 107621 if r.TryDecodeAsNil() { 107622 x.AllocIndex = 0 107623 } else { 107624 x.AllocIndex = (uint64)(r.DecodeUint64()) 107625 } 107626 default: 107627 z.DecStructFieldNotFound(-1, yys3) 107628 } // end switch yys3 107629 } // end for yyj3 107630 r.ReadMapEnd() 107631 } 107632 107633 func (x *PlanResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 107634 var h codecSelfer100 107635 z, r := codec1978.GenHelperDecoder(d) 107636 _, _, _ = h, z, r 107637 var yyj15 int 107638 var yyb15 bool 107639 var yyhl15 bool = l >= 0 107640 yyj15++ 107641 if yyhl15 { 107642 yyb15 = yyj15 > l 107643 } else { 107644 yyb15 = r.CheckBreak() 107645 } 107646 if yyb15 { 107647 r.ReadArrayEnd() 107648 return 107649 } 107650 r.ReadArrayElem() 107651 if r.TryDecodeAsNil() { 107652 x.NodeUpdate = nil 107653 } else { 107654 if false { 107655 } else { 107656 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeUpdate), d) 107657 } 107658 } 107659 yyj15++ 107660 if yyhl15 { 107661 yyb15 = yyj15 > l 107662 } else { 107663 yyb15 = r.CheckBreak() 107664 } 107665 if yyb15 { 107666 r.ReadArrayEnd() 107667 return 107668 } 107669 r.ReadArrayElem() 107670 if r.TryDecodeAsNil() { 107671 x.NodeAllocation = nil 107672 } else { 107673 if false { 107674 } else { 107675 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeAllocation), d) 107676 } 107677 } 107678 yyj15++ 107679 if yyhl15 { 107680 yyb15 = yyj15 > l 107681 } else { 107682 yyb15 = r.CheckBreak() 107683 } 107684 if yyb15 { 107685 r.ReadArrayEnd() 107686 return 107687 } 107688 r.ReadArrayElem() 107689 if r.TryDecodeAsNil() { 107690 if true && x.Deployment != nil { 107691 x.Deployment = nil 107692 } 107693 } else { 107694 if x.Deployment == nil { 107695 x.Deployment = new(Deployment) 107696 } 107697 107698 x.Deployment.CodecDecodeSelf(d) 107699 } 107700 yyj15++ 107701 if yyhl15 { 107702 yyb15 = yyj15 > l 107703 } else { 107704 yyb15 = r.CheckBreak() 107705 } 107706 if yyb15 { 107707 r.ReadArrayEnd() 107708 return 107709 } 107710 r.ReadArrayElem() 107711 if r.TryDecodeAsNil() { 107712 x.DeploymentUpdates = nil 107713 } else { 107714 if false { 107715 } else { 107716 h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) 107717 } 107718 } 107719 yyj15++ 107720 if yyhl15 { 107721 yyb15 = yyj15 > l 107722 } else { 107723 yyb15 = r.CheckBreak() 107724 } 107725 if yyb15 { 107726 r.ReadArrayEnd() 107727 return 107728 } 107729 r.ReadArrayElem() 107730 if r.TryDecodeAsNil() { 107731 x.NodePreemptions = nil 107732 } else { 107733 if false { 107734 } else { 107735 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodePreemptions), d) 107736 } 107737 } 107738 yyj15++ 107739 if yyhl15 { 107740 yyb15 = yyj15 > l 107741 } else { 107742 yyb15 = r.CheckBreak() 107743 } 107744 if yyb15 { 107745 r.ReadArrayEnd() 107746 return 107747 } 107748 r.ReadArrayElem() 107749 if r.TryDecodeAsNil() { 107750 x.RefreshIndex = 0 107751 } else { 107752 x.RefreshIndex = (uint64)(r.DecodeUint64()) 107753 } 107754 yyj15++ 107755 if yyhl15 { 107756 yyb15 = yyj15 > l 107757 } else { 107758 yyb15 = r.CheckBreak() 107759 } 107760 if yyb15 { 107761 r.ReadArrayEnd() 107762 return 107763 } 107764 r.ReadArrayElem() 107765 if r.TryDecodeAsNil() { 107766 x.AllocIndex = 0 107767 } else { 107768 x.AllocIndex = (uint64)(r.DecodeUint64()) 107769 } 107770 for { 107771 yyj15++ 107772 if yyhl15 { 107773 yyb15 = yyj15 > l 107774 } else { 107775 yyb15 = r.CheckBreak() 107776 } 107777 if yyb15 { 107778 break 107779 } 107780 r.ReadArrayElem() 107781 z.DecStructFieldNotFound(yyj15-1, "") 107782 } 107783 r.ReadArrayEnd() 107784 } 107785 107786 func (x *PlanAnnotations) CodecEncodeSelf(e *codec1978.Encoder) { 107787 var h codecSelfer100 107788 z, r := codec1978.GenHelperEncoder(e) 107789 _, _, _ = h, z, r 107790 if x == nil { 107791 r.EncodeNil() 107792 } else { 107793 if false { 107794 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 107795 z.EncExtension(x, yyxt1) 107796 } else { 107797 yysep2 := !z.EncBinary() 107798 yy2arr2 := z.EncBasicHandle().StructToArray 107799 _, _ = yysep2, yy2arr2 107800 const yyr2 bool = false // struct tag has 'toArray' 107801 if yyr2 || yy2arr2 { 107802 r.WriteArrayStart(2) 107803 } else { 107804 r.WriteMapStart(2) 107805 } 107806 if yyr2 || yy2arr2 { 107807 r.WriteArrayElem() 107808 if x.DesiredTGUpdates == nil { 107809 r.EncodeNil() 107810 } else { 107811 if false { 107812 } else { 107813 h.encMapstringPtrtoDesiredUpdates((map[string]*DesiredUpdates)(x.DesiredTGUpdates), e) 107814 } 107815 } 107816 } else { 107817 r.WriteMapElemKey() 107818 if z.IsJSONHandle() { 107819 z.WriteStr("\"DesiredTGUpdates\"") 107820 } else { 107821 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTGUpdates`) 107822 } 107823 r.WriteMapElemValue() 107824 if x.DesiredTGUpdates == nil { 107825 r.EncodeNil() 107826 } else { 107827 if false { 107828 } else { 107829 h.encMapstringPtrtoDesiredUpdates((map[string]*DesiredUpdates)(x.DesiredTGUpdates), e) 107830 } 107831 } 107832 } 107833 if yyr2 || yy2arr2 { 107834 r.WriteArrayElem() 107835 if x.PreemptedAllocs == nil { 107836 r.EncodeNil() 107837 } else { 107838 if false { 107839 } else { 107840 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.PreemptedAllocs), e) 107841 } 107842 } 107843 } else { 107844 r.WriteMapElemKey() 107845 if z.IsJSONHandle() { 107846 z.WriteStr("\"PreemptedAllocs\"") 107847 } else { 107848 r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedAllocs`) 107849 } 107850 r.WriteMapElemValue() 107851 if x.PreemptedAllocs == nil { 107852 r.EncodeNil() 107853 } else { 107854 if false { 107855 } else { 107856 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.PreemptedAllocs), e) 107857 } 107858 } 107859 } 107860 if yyr2 || yy2arr2 { 107861 r.WriteArrayEnd() 107862 } else { 107863 r.WriteMapEnd() 107864 } 107865 } 107866 } 107867 } 107868 107869 func (x *PlanAnnotations) CodecDecodeSelf(d *codec1978.Decoder) { 107870 var h codecSelfer100 107871 z, r := codec1978.GenHelperDecoder(d) 107872 _, _, _ = h, z, r 107873 if false { 107874 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 107875 z.DecExtension(x, yyxt1) 107876 } else { 107877 yyct2 := r.ContainerType() 107878 if yyct2 == codecSelferValueTypeMap100 { 107879 yyl2 := r.ReadMapStart() 107880 if yyl2 == 0 { 107881 r.ReadMapEnd() 107882 } else { 107883 x.codecDecodeSelfFromMap(yyl2, d) 107884 } 107885 } else if yyct2 == codecSelferValueTypeArray100 { 107886 yyl2 := r.ReadArrayStart() 107887 if yyl2 == 0 { 107888 r.ReadArrayEnd() 107889 } else { 107890 x.codecDecodeSelfFromArray(yyl2, d) 107891 } 107892 } else { 107893 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 107894 } 107895 } 107896 } 107897 107898 func (x *PlanAnnotations) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 107899 var h codecSelfer100 107900 z, r := codec1978.GenHelperDecoder(d) 107901 _, _, _ = h, z, r 107902 var yyhl3 bool = l >= 0 107903 for yyj3 := 0; ; yyj3++ { 107904 if yyhl3 { 107905 if yyj3 >= l { 107906 break 107907 } 107908 } else { 107909 if r.CheckBreak() { 107910 break 107911 } 107912 } 107913 r.ReadMapElemKey() 107914 yys3 := z.StringView(r.DecodeStringAsBytes()) 107915 r.ReadMapElemValue() 107916 switch yys3 { 107917 case "DesiredTGUpdates": 107918 if r.TryDecodeAsNil() { 107919 x.DesiredTGUpdates = nil 107920 } else { 107921 if false { 107922 } else { 107923 h.decMapstringPtrtoDesiredUpdates((*map[string]*DesiredUpdates)(&x.DesiredTGUpdates), d) 107924 } 107925 } 107926 case "PreemptedAllocs": 107927 if r.TryDecodeAsNil() { 107928 x.PreemptedAllocs = nil 107929 } else { 107930 if false { 107931 } else { 107932 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.PreemptedAllocs), d) 107933 } 107934 } 107935 default: 107936 z.DecStructFieldNotFound(-1, yys3) 107937 } // end switch yys3 107938 } // end for yyj3 107939 r.ReadMapEnd() 107940 } 107941 107942 func (x *PlanAnnotations) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 107943 var h codecSelfer100 107944 z, r := codec1978.GenHelperDecoder(d) 107945 _, _, _ = h, z, r 107946 var yyj8 int 107947 var yyb8 bool 107948 var yyhl8 bool = l >= 0 107949 yyj8++ 107950 if yyhl8 { 107951 yyb8 = yyj8 > l 107952 } else { 107953 yyb8 = r.CheckBreak() 107954 } 107955 if yyb8 { 107956 r.ReadArrayEnd() 107957 return 107958 } 107959 r.ReadArrayElem() 107960 if r.TryDecodeAsNil() { 107961 x.DesiredTGUpdates = nil 107962 } else { 107963 if false { 107964 } else { 107965 h.decMapstringPtrtoDesiredUpdates((*map[string]*DesiredUpdates)(&x.DesiredTGUpdates), d) 107966 } 107967 } 107968 yyj8++ 107969 if yyhl8 { 107970 yyb8 = yyj8 > l 107971 } else { 107972 yyb8 = r.CheckBreak() 107973 } 107974 if yyb8 { 107975 r.ReadArrayEnd() 107976 return 107977 } 107978 r.ReadArrayElem() 107979 if r.TryDecodeAsNil() { 107980 x.PreemptedAllocs = nil 107981 } else { 107982 if false { 107983 } else { 107984 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.PreemptedAllocs), d) 107985 } 107986 } 107987 for { 107988 yyj8++ 107989 if yyhl8 { 107990 yyb8 = yyj8 > l 107991 } else { 107992 yyb8 = r.CheckBreak() 107993 } 107994 if yyb8 { 107995 break 107996 } 107997 r.ReadArrayElem() 107998 z.DecStructFieldNotFound(yyj8-1, "") 107999 } 108000 r.ReadArrayEnd() 108001 } 108002 108003 func (x *DesiredUpdates) CodecEncodeSelf(e *codec1978.Encoder) { 108004 var h codecSelfer100 108005 z, r := codec1978.GenHelperEncoder(e) 108006 _, _, _ = h, z, r 108007 if x == nil { 108008 r.EncodeNil() 108009 } else { 108010 if false { 108011 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 108012 z.EncExtension(x, yyxt1) 108013 } else { 108014 yysep2 := !z.EncBinary() 108015 yy2arr2 := z.EncBasicHandle().StructToArray 108016 _, _ = yysep2, yy2arr2 108017 const yyr2 bool = false // struct tag has 'toArray' 108018 if yyr2 || yy2arr2 { 108019 r.WriteArrayStart(8) 108020 } else { 108021 r.WriteMapStart(8) 108022 } 108023 if yyr2 || yy2arr2 { 108024 r.WriteArrayElem() 108025 if false { 108026 } else { 108027 r.EncodeUint(uint64(x.Ignore)) 108028 } 108029 } else { 108030 r.WriteMapElemKey() 108031 if z.IsJSONHandle() { 108032 z.WriteStr("\"Ignore\"") 108033 } else { 108034 r.EncodeStringEnc(codecSelferCcUTF8100, `Ignore`) 108035 } 108036 r.WriteMapElemValue() 108037 if false { 108038 } else { 108039 r.EncodeUint(uint64(x.Ignore)) 108040 } 108041 } 108042 if yyr2 || yy2arr2 { 108043 r.WriteArrayElem() 108044 if false { 108045 } else { 108046 r.EncodeUint(uint64(x.Place)) 108047 } 108048 } else { 108049 r.WriteMapElemKey() 108050 if z.IsJSONHandle() { 108051 z.WriteStr("\"Place\"") 108052 } else { 108053 r.EncodeStringEnc(codecSelferCcUTF8100, `Place`) 108054 } 108055 r.WriteMapElemValue() 108056 if false { 108057 } else { 108058 r.EncodeUint(uint64(x.Place)) 108059 } 108060 } 108061 if yyr2 || yy2arr2 { 108062 r.WriteArrayElem() 108063 if false { 108064 } else { 108065 r.EncodeUint(uint64(x.Migrate)) 108066 } 108067 } else { 108068 r.WriteMapElemKey() 108069 if z.IsJSONHandle() { 108070 z.WriteStr("\"Migrate\"") 108071 } else { 108072 r.EncodeStringEnc(codecSelferCcUTF8100, `Migrate`) 108073 } 108074 r.WriteMapElemValue() 108075 if false { 108076 } else { 108077 r.EncodeUint(uint64(x.Migrate)) 108078 } 108079 } 108080 if yyr2 || yy2arr2 { 108081 r.WriteArrayElem() 108082 if false { 108083 } else { 108084 r.EncodeUint(uint64(x.Stop)) 108085 } 108086 } else { 108087 r.WriteMapElemKey() 108088 if z.IsJSONHandle() { 108089 z.WriteStr("\"Stop\"") 108090 } else { 108091 r.EncodeStringEnc(codecSelferCcUTF8100, `Stop`) 108092 } 108093 r.WriteMapElemValue() 108094 if false { 108095 } else { 108096 r.EncodeUint(uint64(x.Stop)) 108097 } 108098 } 108099 if yyr2 || yy2arr2 { 108100 r.WriteArrayElem() 108101 if false { 108102 } else { 108103 r.EncodeUint(uint64(x.InPlaceUpdate)) 108104 } 108105 } else { 108106 r.WriteMapElemKey() 108107 if z.IsJSONHandle() { 108108 z.WriteStr("\"InPlaceUpdate\"") 108109 } else { 108110 r.EncodeStringEnc(codecSelferCcUTF8100, `InPlaceUpdate`) 108111 } 108112 r.WriteMapElemValue() 108113 if false { 108114 } else { 108115 r.EncodeUint(uint64(x.InPlaceUpdate)) 108116 } 108117 } 108118 if yyr2 || yy2arr2 { 108119 r.WriteArrayElem() 108120 if false { 108121 } else { 108122 r.EncodeUint(uint64(x.DestructiveUpdate)) 108123 } 108124 } else { 108125 r.WriteMapElemKey() 108126 if z.IsJSONHandle() { 108127 z.WriteStr("\"DestructiveUpdate\"") 108128 } else { 108129 r.EncodeStringEnc(codecSelferCcUTF8100, `DestructiveUpdate`) 108130 } 108131 r.WriteMapElemValue() 108132 if false { 108133 } else { 108134 r.EncodeUint(uint64(x.DestructiveUpdate)) 108135 } 108136 } 108137 if yyr2 || yy2arr2 { 108138 r.WriteArrayElem() 108139 if false { 108140 } else { 108141 r.EncodeUint(uint64(x.Canary)) 108142 } 108143 } else { 108144 r.WriteMapElemKey() 108145 if z.IsJSONHandle() { 108146 z.WriteStr("\"Canary\"") 108147 } else { 108148 r.EncodeStringEnc(codecSelferCcUTF8100, `Canary`) 108149 } 108150 r.WriteMapElemValue() 108151 if false { 108152 } else { 108153 r.EncodeUint(uint64(x.Canary)) 108154 } 108155 } 108156 if yyr2 || yy2arr2 { 108157 r.WriteArrayElem() 108158 if false { 108159 } else { 108160 r.EncodeUint(uint64(x.Preemptions)) 108161 } 108162 } else { 108163 r.WriteMapElemKey() 108164 if z.IsJSONHandle() { 108165 z.WriteStr("\"Preemptions\"") 108166 } else { 108167 r.EncodeStringEnc(codecSelferCcUTF8100, `Preemptions`) 108168 } 108169 r.WriteMapElemValue() 108170 if false { 108171 } else { 108172 r.EncodeUint(uint64(x.Preemptions)) 108173 } 108174 } 108175 if yyr2 || yy2arr2 { 108176 r.WriteArrayEnd() 108177 } else { 108178 r.WriteMapEnd() 108179 } 108180 } 108181 } 108182 } 108183 108184 func (x *DesiredUpdates) CodecDecodeSelf(d *codec1978.Decoder) { 108185 var h codecSelfer100 108186 z, r := codec1978.GenHelperDecoder(d) 108187 _, _, _ = h, z, r 108188 if false { 108189 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 108190 z.DecExtension(x, yyxt1) 108191 } else { 108192 yyct2 := r.ContainerType() 108193 if yyct2 == codecSelferValueTypeMap100 { 108194 yyl2 := r.ReadMapStart() 108195 if yyl2 == 0 { 108196 r.ReadMapEnd() 108197 } else { 108198 x.codecDecodeSelfFromMap(yyl2, d) 108199 } 108200 } else if yyct2 == codecSelferValueTypeArray100 { 108201 yyl2 := r.ReadArrayStart() 108202 if yyl2 == 0 { 108203 r.ReadArrayEnd() 108204 } else { 108205 x.codecDecodeSelfFromArray(yyl2, d) 108206 } 108207 } else { 108208 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 108209 } 108210 } 108211 } 108212 108213 func (x *DesiredUpdates) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 108214 var h codecSelfer100 108215 z, r := codec1978.GenHelperDecoder(d) 108216 _, _, _ = h, z, r 108217 var yyhl3 bool = l >= 0 108218 for yyj3 := 0; ; yyj3++ { 108219 if yyhl3 { 108220 if yyj3 >= l { 108221 break 108222 } 108223 } else { 108224 if r.CheckBreak() { 108225 break 108226 } 108227 } 108228 r.ReadMapElemKey() 108229 yys3 := z.StringView(r.DecodeStringAsBytes()) 108230 r.ReadMapElemValue() 108231 switch yys3 { 108232 case "Ignore": 108233 if r.TryDecodeAsNil() { 108234 x.Ignore = 0 108235 } else { 108236 x.Ignore = (uint64)(r.DecodeUint64()) 108237 } 108238 case "Place": 108239 if r.TryDecodeAsNil() { 108240 x.Place = 0 108241 } else { 108242 x.Place = (uint64)(r.DecodeUint64()) 108243 } 108244 case "Migrate": 108245 if r.TryDecodeAsNil() { 108246 x.Migrate = 0 108247 } else { 108248 x.Migrate = (uint64)(r.DecodeUint64()) 108249 } 108250 case "Stop": 108251 if r.TryDecodeAsNil() { 108252 x.Stop = 0 108253 } else { 108254 x.Stop = (uint64)(r.DecodeUint64()) 108255 } 108256 case "InPlaceUpdate": 108257 if r.TryDecodeAsNil() { 108258 x.InPlaceUpdate = 0 108259 } else { 108260 x.InPlaceUpdate = (uint64)(r.DecodeUint64()) 108261 } 108262 case "DestructiveUpdate": 108263 if r.TryDecodeAsNil() { 108264 x.DestructiveUpdate = 0 108265 } else { 108266 x.DestructiveUpdate = (uint64)(r.DecodeUint64()) 108267 } 108268 case "Canary": 108269 if r.TryDecodeAsNil() { 108270 x.Canary = 0 108271 } else { 108272 x.Canary = (uint64)(r.DecodeUint64()) 108273 } 108274 case "Preemptions": 108275 if r.TryDecodeAsNil() { 108276 x.Preemptions = 0 108277 } else { 108278 x.Preemptions = (uint64)(r.DecodeUint64()) 108279 } 108280 default: 108281 z.DecStructFieldNotFound(-1, yys3) 108282 } // end switch yys3 108283 } // end for yyj3 108284 r.ReadMapEnd() 108285 } 108286 108287 func (x *DesiredUpdates) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 108288 var h codecSelfer100 108289 z, r := codec1978.GenHelperDecoder(d) 108290 _, _, _ = h, z, r 108291 var yyj12 int 108292 var yyb12 bool 108293 var yyhl12 bool = l >= 0 108294 yyj12++ 108295 if yyhl12 { 108296 yyb12 = yyj12 > l 108297 } else { 108298 yyb12 = r.CheckBreak() 108299 } 108300 if yyb12 { 108301 r.ReadArrayEnd() 108302 return 108303 } 108304 r.ReadArrayElem() 108305 if r.TryDecodeAsNil() { 108306 x.Ignore = 0 108307 } else { 108308 x.Ignore = (uint64)(r.DecodeUint64()) 108309 } 108310 yyj12++ 108311 if yyhl12 { 108312 yyb12 = yyj12 > l 108313 } else { 108314 yyb12 = r.CheckBreak() 108315 } 108316 if yyb12 { 108317 r.ReadArrayEnd() 108318 return 108319 } 108320 r.ReadArrayElem() 108321 if r.TryDecodeAsNil() { 108322 x.Place = 0 108323 } else { 108324 x.Place = (uint64)(r.DecodeUint64()) 108325 } 108326 yyj12++ 108327 if yyhl12 { 108328 yyb12 = yyj12 > l 108329 } else { 108330 yyb12 = r.CheckBreak() 108331 } 108332 if yyb12 { 108333 r.ReadArrayEnd() 108334 return 108335 } 108336 r.ReadArrayElem() 108337 if r.TryDecodeAsNil() { 108338 x.Migrate = 0 108339 } else { 108340 x.Migrate = (uint64)(r.DecodeUint64()) 108341 } 108342 yyj12++ 108343 if yyhl12 { 108344 yyb12 = yyj12 > l 108345 } else { 108346 yyb12 = r.CheckBreak() 108347 } 108348 if yyb12 { 108349 r.ReadArrayEnd() 108350 return 108351 } 108352 r.ReadArrayElem() 108353 if r.TryDecodeAsNil() { 108354 x.Stop = 0 108355 } else { 108356 x.Stop = (uint64)(r.DecodeUint64()) 108357 } 108358 yyj12++ 108359 if yyhl12 { 108360 yyb12 = yyj12 > l 108361 } else { 108362 yyb12 = r.CheckBreak() 108363 } 108364 if yyb12 { 108365 r.ReadArrayEnd() 108366 return 108367 } 108368 r.ReadArrayElem() 108369 if r.TryDecodeAsNil() { 108370 x.InPlaceUpdate = 0 108371 } else { 108372 x.InPlaceUpdate = (uint64)(r.DecodeUint64()) 108373 } 108374 yyj12++ 108375 if yyhl12 { 108376 yyb12 = yyj12 > l 108377 } else { 108378 yyb12 = r.CheckBreak() 108379 } 108380 if yyb12 { 108381 r.ReadArrayEnd() 108382 return 108383 } 108384 r.ReadArrayElem() 108385 if r.TryDecodeAsNil() { 108386 x.DestructiveUpdate = 0 108387 } else { 108388 x.DestructiveUpdate = (uint64)(r.DecodeUint64()) 108389 } 108390 yyj12++ 108391 if yyhl12 { 108392 yyb12 = yyj12 > l 108393 } else { 108394 yyb12 = r.CheckBreak() 108395 } 108396 if yyb12 { 108397 r.ReadArrayEnd() 108398 return 108399 } 108400 r.ReadArrayElem() 108401 if r.TryDecodeAsNil() { 108402 x.Canary = 0 108403 } else { 108404 x.Canary = (uint64)(r.DecodeUint64()) 108405 } 108406 yyj12++ 108407 if yyhl12 { 108408 yyb12 = yyj12 > l 108409 } else { 108410 yyb12 = r.CheckBreak() 108411 } 108412 if yyb12 { 108413 r.ReadArrayEnd() 108414 return 108415 } 108416 r.ReadArrayElem() 108417 if r.TryDecodeAsNil() { 108418 x.Preemptions = 0 108419 } else { 108420 x.Preemptions = (uint64)(r.DecodeUint64()) 108421 } 108422 for { 108423 yyj12++ 108424 if yyhl12 { 108425 yyb12 = yyj12 > l 108426 } else { 108427 yyb12 = r.CheckBreak() 108428 } 108429 if yyb12 { 108430 break 108431 } 108432 r.ReadArrayElem() 108433 z.DecStructFieldNotFound(yyj12-1, "") 108434 } 108435 r.ReadArrayEnd() 108436 } 108437 108438 func (x *KeyringResponse) CodecEncodeSelf(e *codec1978.Encoder) { 108439 var h codecSelfer100 108440 z, r := codec1978.GenHelperEncoder(e) 108441 _, _, _ = h, z, r 108442 if x == nil { 108443 r.EncodeNil() 108444 } else { 108445 if false { 108446 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 108447 z.EncExtension(x, yyxt1) 108448 } else { 108449 yysep2 := !z.EncBinary() 108450 yy2arr2 := z.EncBasicHandle().StructToArray 108451 _, _ = yysep2, yy2arr2 108452 const yyr2 bool = false // struct tag has 'toArray' 108453 if yyr2 || yy2arr2 { 108454 r.WriteArrayStart(3) 108455 } else { 108456 r.WriteMapStart(3) 108457 } 108458 if yyr2 || yy2arr2 { 108459 r.WriteArrayElem() 108460 if x.Messages == nil { 108461 r.EncodeNil() 108462 } else { 108463 if false { 108464 } else { 108465 z.F.EncMapStringStringV(x.Messages, e) 108466 } 108467 } 108468 } else { 108469 r.WriteMapElemKey() 108470 if z.IsJSONHandle() { 108471 z.WriteStr("\"Messages\"") 108472 } else { 108473 r.EncodeStringEnc(codecSelferCcUTF8100, `Messages`) 108474 } 108475 r.WriteMapElemValue() 108476 if x.Messages == nil { 108477 r.EncodeNil() 108478 } else { 108479 if false { 108480 } else { 108481 z.F.EncMapStringStringV(x.Messages, e) 108482 } 108483 } 108484 } 108485 if yyr2 || yy2arr2 { 108486 r.WriteArrayElem() 108487 if x.Keys == nil { 108488 r.EncodeNil() 108489 } else { 108490 if false { 108491 } else { 108492 z.F.EncMapStringIntV(x.Keys, e) 108493 } 108494 } 108495 } else { 108496 r.WriteMapElemKey() 108497 if z.IsJSONHandle() { 108498 z.WriteStr("\"Keys\"") 108499 } else { 108500 r.EncodeStringEnc(codecSelferCcUTF8100, `Keys`) 108501 } 108502 r.WriteMapElemValue() 108503 if x.Keys == nil { 108504 r.EncodeNil() 108505 } else { 108506 if false { 108507 } else { 108508 z.F.EncMapStringIntV(x.Keys, e) 108509 } 108510 } 108511 } 108512 if yyr2 || yy2arr2 { 108513 r.WriteArrayElem() 108514 if false { 108515 } else { 108516 r.EncodeInt(int64(x.NumNodes)) 108517 } 108518 } else { 108519 r.WriteMapElemKey() 108520 if z.IsJSONHandle() { 108521 z.WriteStr("\"NumNodes\"") 108522 } else { 108523 r.EncodeStringEnc(codecSelferCcUTF8100, `NumNodes`) 108524 } 108525 r.WriteMapElemValue() 108526 if false { 108527 } else { 108528 r.EncodeInt(int64(x.NumNodes)) 108529 } 108530 } 108531 if yyr2 || yy2arr2 { 108532 r.WriteArrayEnd() 108533 } else { 108534 r.WriteMapEnd() 108535 } 108536 } 108537 } 108538 } 108539 108540 func (x *KeyringResponse) CodecDecodeSelf(d *codec1978.Decoder) { 108541 var h codecSelfer100 108542 z, r := codec1978.GenHelperDecoder(d) 108543 _, _, _ = h, z, r 108544 if false { 108545 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 108546 z.DecExtension(x, yyxt1) 108547 } else { 108548 yyct2 := r.ContainerType() 108549 if yyct2 == codecSelferValueTypeMap100 { 108550 yyl2 := r.ReadMapStart() 108551 if yyl2 == 0 { 108552 r.ReadMapEnd() 108553 } else { 108554 x.codecDecodeSelfFromMap(yyl2, d) 108555 } 108556 } else if yyct2 == codecSelferValueTypeArray100 { 108557 yyl2 := r.ReadArrayStart() 108558 if yyl2 == 0 { 108559 r.ReadArrayEnd() 108560 } else { 108561 x.codecDecodeSelfFromArray(yyl2, d) 108562 } 108563 } else { 108564 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 108565 } 108566 } 108567 } 108568 108569 func (x *KeyringResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 108570 var h codecSelfer100 108571 z, r := codec1978.GenHelperDecoder(d) 108572 _, _, _ = h, z, r 108573 var yyhl3 bool = l >= 0 108574 for yyj3 := 0; ; yyj3++ { 108575 if yyhl3 { 108576 if yyj3 >= l { 108577 break 108578 } 108579 } else { 108580 if r.CheckBreak() { 108581 break 108582 } 108583 } 108584 r.ReadMapElemKey() 108585 yys3 := z.StringView(r.DecodeStringAsBytes()) 108586 r.ReadMapElemValue() 108587 switch yys3 { 108588 case "Messages": 108589 if r.TryDecodeAsNil() { 108590 x.Messages = nil 108591 } else { 108592 if false { 108593 } else { 108594 z.F.DecMapStringStringX(&x.Messages, d) 108595 } 108596 } 108597 case "Keys": 108598 if r.TryDecodeAsNil() { 108599 x.Keys = nil 108600 } else { 108601 if false { 108602 } else { 108603 z.F.DecMapStringIntX(&x.Keys, d) 108604 } 108605 } 108606 case "NumNodes": 108607 if r.TryDecodeAsNil() { 108608 x.NumNodes = 0 108609 } else { 108610 x.NumNodes = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 108611 } 108612 default: 108613 z.DecStructFieldNotFound(-1, yys3) 108614 } // end switch yys3 108615 } // end for yyj3 108616 r.ReadMapEnd() 108617 } 108618 108619 func (x *KeyringResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 108620 var h codecSelfer100 108621 z, r := codec1978.GenHelperDecoder(d) 108622 _, _, _ = h, z, r 108623 var yyj9 int 108624 var yyb9 bool 108625 var yyhl9 bool = l >= 0 108626 yyj9++ 108627 if yyhl9 { 108628 yyb9 = yyj9 > l 108629 } else { 108630 yyb9 = r.CheckBreak() 108631 } 108632 if yyb9 { 108633 r.ReadArrayEnd() 108634 return 108635 } 108636 r.ReadArrayElem() 108637 if r.TryDecodeAsNil() { 108638 x.Messages = nil 108639 } else { 108640 if false { 108641 } else { 108642 z.F.DecMapStringStringX(&x.Messages, d) 108643 } 108644 } 108645 yyj9++ 108646 if yyhl9 { 108647 yyb9 = yyj9 > l 108648 } else { 108649 yyb9 = r.CheckBreak() 108650 } 108651 if yyb9 { 108652 r.ReadArrayEnd() 108653 return 108654 } 108655 r.ReadArrayElem() 108656 if r.TryDecodeAsNil() { 108657 x.Keys = nil 108658 } else { 108659 if false { 108660 } else { 108661 z.F.DecMapStringIntX(&x.Keys, d) 108662 } 108663 } 108664 yyj9++ 108665 if yyhl9 { 108666 yyb9 = yyj9 > l 108667 } else { 108668 yyb9 = r.CheckBreak() 108669 } 108670 if yyb9 { 108671 r.ReadArrayEnd() 108672 return 108673 } 108674 r.ReadArrayElem() 108675 if r.TryDecodeAsNil() { 108676 x.NumNodes = 0 108677 } else { 108678 x.NumNodes = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 108679 } 108680 for { 108681 yyj9++ 108682 if yyhl9 { 108683 yyb9 = yyj9 > l 108684 } else { 108685 yyb9 = r.CheckBreak() 108686 } 108687 if yyb9 { 108688 break 108689 } 108690 r.ReadArrayElem() 108691 z.DecStructFieldNotFound(yyj9-1, "") 108692 } 108693 r.ReadArrayEnd() 108694 } 108695 108696 func (x *KeyringRequest) CodecEncodeSelf(e *codec1978.Encoder) { 108697 var h codecSelfer100 108698 z, r := codec1978.GenHelperEncoder(e) 108699 _, _, _ = h, z, r 108700 if x == nil { 108701 r.EncodeNil() 108702 } else { 108703 if false { 108704 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 108705 z.EncExtension(x, yyxt1) 108706 } else { 108707 yysep2 := !z.EncBinary() 108708 yy2arr2 := z.EncBasicHandle().StructToArray 108709 _, _ = yysep2, yy2arr2 108710 const yyr2 bool = false // struct tag has 'toArray' 108711 if yyr2 || yy2arr2 { 108712 r.WriteArrayStart(1) 108713 } else { 108714 r.WriteMapStart(1) 108715 } 108716 if yyr2 || yy2arr2 { 108717 r.WriteArrayElem() 108718 if false { 108719 } else { 108720 if z.EncBasicHandle().StringToRaw { 108721 r.EncodeStringBytesRaw(z.BytesView(string(x.Key))) 108722 } else { 108723 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Key)) 108724 } 108725 } 108726 } else { 108727 r.WriteMapElemKey() 108728 if z.IsJSONHandle() { 108729 z.WriteStr("\"Key\"") 108730 } else { 108731 r.EncodeStringEnc(codecSelferCcUTF8100, `Key`) 108732 } 108733 r.WriteMapElemValue() 108734 if false { 108735 } else { 108736 if z.EncBasicHandle().StringToRaw { 108737 r.EncodeStringBytesRaw(z.BytesView(string(x.Key))) 108738 } else { 108739 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Key)) 108740 } 108741 } 108742 } 108743 if yyr2 || yy2arr2 { 108744 r.WriteArrayEnd() 108745 } else { 108746 r.WriteMapEnd() 108747 } 108748 } 108749 } 108750 } 108751 108752 func (x *KeyringRequest) CodecDecodeSelf(d *codec1978.Decoder) { 108753 var h codecSelfer100 108754 z, r := codec1978.GenHelperDecoder(d) 108755 _, _, _ = h, z, r 108756 if false { 108757 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 108758 z.DecExtension(x, yyxt1) 108759 } else { 108760 yyct2 := r.ContainerType() 108761 if yyct2 == codecSelferValueTypeMap100 { 108762 yyl2 := r.ReadMapStart() 108763 if yyl2 == 0 { 108764 r.ReadMapEnd() 108765 } else { 108766 x.codecDecodeSelfFromMap(yyl2, d) 108767 } 108768 } else if yyct2 == codecSelferValueTypeArray100 { 108769 yyl2 := r.ReadArrayStart() 108770 if yyl2 == 0 { 108771 r.ReadArrayEnd() 108772 } else { 108773 x.codecDecodeSelfFromArray(yyl2, d) 108774 } 108775 } else { 108776 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 108777 } 108778 } 108779 } 108780 108781 func (x *KeyringRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 108782 var h codecSelfer100 108783 z, r := codec1978.GenHelperDecoder(d) 108784 _, _, _ = h, z, r 108785 var yyhl3 bool = l >= 0 108786 for yyj3 := 0; ; yyj3++ { 108787 if yyhl3 { 108788 if yyj3 >= l { 108789 break 108790 } 108791 } else { 108792 if r.CheckBreak() { 108793 break 108794 } 108795 } 108796 r.ReadMapElemKey() 108797 yys3 := z.StringView(r.DecodeStringAsBytes()) 108798 r.ReadMapElemValue() 108799 switch yys3 { 108800 case "Key": 108801 if r.TryDecodeAsNil() { 108802 x.Key = "" 108803 } else { 108804 x.Key = (string)(r.DecodeString()) 108805 } 108806 default: 108807 z.DecStructFieldNotFound(-1, yys3) 108808 } // end switch yys3 108809 } // end for yyj3 108810 r.ReadMapEnd() 108811 } 108812 108813 func (x *KeyringRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 108814 var h codecSelfer100 108815 z, r := codec1978.GenHelperDecoder(d) 108816 _, _, _ = h, z, r 108817 var yyj5 int 108818 var yyb5 bool 108819 var yyhl5 bool = l >= 0 108820 yyj5++ 108821 if yyhl5 { 108822 yyb5 = yyj5 > l 108823 } else { 108824 yyb5 = r.CheckBreak() 108825 } 108826 if yyb5 { 108827 r.ReadArrayEnd() 108828 return 108829 } 108830 r.ReadArrayElem() 108831 if r.TryDecodeAsNil() { 108832 x.Key = "" 108833 } else { 108834 x.Key = (string)(r.DecodeString()) 108835 } 108836 for { 108837 yyj5++ 108838 if yyhl5 { 108839 yyb5 = yyj5 > l 108840 } else { 108841 yyb5 = r.CheckBreak() 108842 } 108843 if yyb5 { 108844 break 108845 } 108846 r.ReadArrayElem() 108847 z.DecStructFieldNotFound(yyj5-1, "") 108848 } 108849 r.ReadArrayEnd() 108850 } 108851 108852 func (x *RecoverableError) CodecEncodeSelf(e *codec1978.Encoder) { 108853 var h codecSelfer100 108854 z, r := codec1978.GenHelperEncoder(e) 108855 _, _, _ = h, z, r 108856 if x == nil { 108857 r.EncodeNil() 108858 } else { 108859 if false { 108860 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 108861 z.EncExtension(x, yyxt1) 108862 } else { 108863 yysep2 := !z.EncBinary() 108864 yy2arr2 := z.EncBasicHandle().StructToArray 108865 _, _ = yysep2, yy2arr2 108866 const yyr2 bool = false // struct tag has 'toArray' 108867 if yyr2 || yy2arr2 { 108868 r.WriteArrayStart(2) 108869 } else { 108870 r.WriteMapStart(2) 108871 } 108872 if yyr2 || yy2arr2 { 108873 r.WriteArrayElem() 108874 if false { 108875 } else { 108876 if z.EncBasicHandle().StringToRaw { 108877 r.EncodeStringBytesRaw(z.BytesView(string(x.Err))) 108878 } else { 108879 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Err)) 108880 } 108881 } 108882 } else { 108883 r.WriteMapElemKey() 108884 if z.IsJSONHandle() { 108885 z.WriteStr("\"Err\"") 108886 } else { 108887 r.EncodeStringEnc(codecSelferCcUTF8100, `Err`) 108888 } 108889 r.WriteMapElemValue() 108890 if false { 108891 } else { 108892 if z.EncBasicHandle().StringToRaw { 108893 r.EncodeStringBytesRaw(z.BytesView(string(x.Err))) 108894 } else { 108895 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Err)) 108896 } 108897 } 108898 } 108899 if yyr2 || yy2arr2 { 108900 r.WriteArrayElem() 108901 if false { 108902 } else { 108903 r.EncodeBool(bool(x.Recoverable)) 108904 } 108905 } else { 108906 r.WriteMapElemKey() 108907 if z.IsJSONHandle() { 108908 z.WriteStr("\"Recoverable\"") 108909 } else { 108910 r.EncodeStringEnc(codecSelferCcUTF8100, `Recoverable`) 108911 } 108912 r.WriteMapElemValue() 108913 if false { 108914 } else { 108915 r.EncodeBool(bool(x.Recoverable)) 108916 } 108917 } 108918 if yyr2 || yy2arr2 { 108919 r.WriteArrayEnd() 108920 } else { 108921 r.WriteMapEnd() 108922 } 108923 } 108924 } 108925 } 108926 108927 func (x *RecoverableError) CodecDecodeSelf(d *codec1978.Decoder) { 108928 var h codecSelfer100 108929 z, r := codec1978.GenHelperDecoder(d) 108930 _, _, _ = h, z, r 108931 if false { 108932 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 108933 z.DecExtension(x, yyxt1) 108934 } else { 108935 yyct2 := r.ContainerType() 108936 if yyct2 == codecSelferValueTypeMap100 { 108937 yyl2 := r.ReadMapStart() 108938 if yyl2 == 0 { 108939 r.ReadMapEnd() 108940 } else { 108941 x.codecDecodeSelfFromMap(yyl2, d) 108942 } 108943 } else if yyct2 == codecSelferValueTypeArray100 { 108944 yyl2 := r.ReadArrayStart() 108945 if yyl2 == 0 { 108946 r.ReadArrayEnd() 108947 } else { 108948 x.codecDecodeSelfFromArray(yyl2, d) 108949 } 108950 } else { 108951 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 108952 } 108953 } 108954 } 108955 108956 func (x *RecoverableError) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 108957 var h codecSelfer100 108958 z, r := codec1978.GenHelperDecoder(d) 108959 _, _, _ = h, z, r 108960 var yyhl3 bool = l >= 0 108961 for yyj3 := 0; ; yyj3++ { 108962 if yyhl3 { 108963 if yyj3 >= l { 108964 break 108965 } 108966 } else { 108967 if r.CheckBreak() { 108968 break 108969 } 108970 } 108971 r.ReadMapElemKey() 108972 yys3 := z.StringView(r.DecodeStringAsBytes()) 108973 r.ReadMapElemValue() 108974 switch yys3 { 108975 case "Err": 108976 if r.TryDecodeAsNil() { 108977 x.Err = "" 108978 } else { 108979 x.Err = (string)(r.DecodeString()) 108980 } 108981 case "Recoverable": 108982 if r.TryDecodeAsNil() { 108983 x.Recoverable = false 108984 } else { 108985 x.Recoverable = (bool)(r.DecodeBool()) 108986 } 108987 default: 108988 z.DecStructFieldNotFound(-1, yys3) 108989 } // end switch yys3 108990 } // end for yyj3 108991 r.ReadMapEnd() 108992 } 108993 108994 func (x *RecoverableError) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 108995 var h codecSelfer100 108996 z, r := codec1978.GenHelperDecoder(d) 108997 _, _, _ = h, z, r 108998 var yyj6 int 108999 var yyb6 bool 109000 var yyhl6 bool = l >= 0 109001 yyj6++ 109002 if yyhl6 { 109003 yyb6 = yyj6 > l 109004 } else { 109005 yyb6 = r.CheckBreak() 109006 } 109007 if yyb6 { 109008 r.ReadArrayEnd() 109009 return 109010 } 109011 r.ReadArrayElem() 109012 if r.TryDecodeAsNil() { 109013 x.Err = "" 109014 } else { 109015 x.Err = (string)(r.DecodeString()) 109016 } 109017 yyj6++ 109018 if yyhl6 { 109019 yyb6 = yyj6 > l 109020 } else { 109021 yyb6 = r.CheckBreak() 109022 } 109023 if yyb6 { 109024 r.ReadArrayEnd() 109025 return 109026 } 109027 r.ReadArrayElem() 109028 if r.TryDecodeAsNil() { 109029 x.Recoverable = false 109030 } else { 109031 x.Recoverable = (bool)(r.DecodeBool()) 109032 } 109033 for { 109034 yyj6++ 109035 if yyhl6 { 109036 yyb6 = yyj6 > l 109037 } else { 109038 yyb6 = r.CheckBreak() 109039 } 109040 if yyb6 { 109041 break 109042 } 109043 r.ReadArrayElem() 109044 z.DecStructFieldNotFound(yyj6-1, "") 109045 } 109046 r.ReadArrayEnd() 109047 } 109048 109049 func (x *WrappedServerError) CodecEncodeSelf(e *codec1978.Encoder) { 109050 var h codecSelfer100 109051 z, r := codec1978.GenHelperEncoder(e) 109052 _, _, _ = h, z, r 109053 if x == nil { 109054 r.EncodeNil() 109055 } else { 109056 if false { 109057 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 109058 z.EncExtension(x, yyxt1) 109059 } else { 109060 yysep2 := !z.EncBinary() 109061 yy2arr2 := z.EncBasicHandle().StructToArray 109062 _, _ = yysep2, yy2arr2 109063 const yyr2 bool = false // struct tag has 'toArray' 109064 if yyr2 || yy2arr2 { 109065 r.WriteArrayStart(1) 109066 } else { 109067 r.WriteMapStart(1) 109068 } 109069 if yyr2 || yy2arr2 { 109070 r.WriteArrayElem() 109071 if x.Err == nil { 109072 r.EncodeNil() 109073 } else { 109074 if false { 109075 } else { 109076 z.EncFallback(x.Err) 109077 } 109078 } 109079 } else { 109080 r.WriteMapElemKey() 109081 if z.IsJSONHandle() { 109082 z.WriteStr("\"Err\"") 109083 } else { 109084 r.EncodeStringEnc(codecSelferCcUTF8100, `Err`) 109085 } 109086 r.WriteMapElemValue() 109087 if x.Err == nil { 109088 r.EncodeNil() 109089 } else { 109090 if false { 109091 } else { 109092 z.EncFallback(x.Err) 109093 } 109094 } 109095 } 109096 if yyr2 || yy2arr2 { 109097 r.WriteArrayEnd() 109098 } else { 109099 r.WriteMapEnd() 109100 } 109101 } 109102 } 109103 } 109104 109105 func (x *WrappedServerError) CodecDecodeSelf(d *codec1978.Decoder) { 109106 var h codecSelfer100 109107 z, r := codec1978.GenHelperDecoder(d) 109108 _, _, _ = h, z, r 109109 if false { 109110 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 109111 z.DecExtension(x, yyxt1) 109112 } else { 109113 yyct2 := r.ContainerType() 109114 if yyct2 == codecSelferValueTypeMap100 { 109115 yyl2 := r.ReadMapStart() 109116 if yyl2 == 0 { 109117 r.ReadMapEnd() 109118 } else { 109119 x.codecDecodeSelfFromMap(yyl2, d) 109120 } 109121 } else if yyct2 == codecSelferValueTypeArray100 { 109122 yyl2 := r.ReadArrayStart() 109123 if yyl2 == 0 { 109124 r.ReadArrayEnd() 109125 } else { 109126 x.codecDecodeSelfFromArray(yyl2, d) 109127 } 109128 } else { 109129 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 109130 } 109131 } 109132 } 109133 109134 func (x *WrappedServerError) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 109135 var h codecSelfer100 109136 z, r := codec1978.GenHelperDecoder(d) 109137 _, _, _ = h, z, r 109138 var yyhl3 bool = l >= 0 109139 for yyj3 := 0; ; yyj3++ { 109140 if yyhl3 { 109141 if yyj3 >= l { 109142 break 109143 } 109144 } else { 109145 if r.CheckBreak() { 109146 break 109147 } 109148 } 109149 r.ReadMapElemKey() 109150 yys3 := z.StringView(r.DecodeStringAsBytes()) 109151 r.ReadMapElemValue() 109152 switch yys3 { 109153 case "Err": 109154 if r.TryDecodeAsNil() { 109155 x.Err = nil 109156 } else { 109157 if false { 109158 } else { 109159 z.DecFallback(&x.Err, true) 109160 } 109161 } 109162 default: 109163 z.DecStructFieldNotFound(-1, yys3) 109164 } // end switch yys3 109165 } // end for yyj3 109166 r.ReadMapEnd() 109167 } 109168 109169 func (x *WrappedServerError) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 109170 var h codecSelfer100 109171 z, r := codec1978.GenHelperDecoder(d) 109172 _, _, _ = h, z, r 109173 var yyj6 int 109174 var yyb6 bool 109175 var yyhl6 bool = l >= 0 109176 yyj6++ 109177 if yyhl6 { 109178 yyb6 = yyj6 > l 109179 } else { 109180 yyb6 = r.CheckBreak() 109181 } 109182 if yyb6 { 109183 r.ReadArrayEnd() 109184 return 109185 } 109186 r.ReadArrayElem() 109187 if r.TryDecodeAsNil() { 109188 x.Err = nil 109189 } else { 109190 if false { 109191 } else { 109192 z.DecFallback(&x.Err, true) 109193 } 109194 } 109195 for { 109196 yyj6++ 109197 if yyhl6 { 109198 yyb6 = yyj6 > l 109199 } else { 109200 yyb6 = r.CheckBreak() 109201 } 109202 if yyb6 { 109203 break 109204 } 109205 r.ReadArrayElem() 109206 z.DecStructFieldNotFound(yyj6-1, "") 109207 } 109208 r.ReadArrayEnd() 109209 } 109210 109211 func (x *ACLPolicy) CodecEncodeSelf(e *codec1978.Encoder) { 109212 var h codecSelfer100 109213 z, r := codec1978.GenHelperEncoder(e) 109214 _, _, _ = h, z, r 109215 if x == nil { 109216 r.EncodeNil() 109217 } else { 109218 if false { 109219 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 109220 z.EncExtension(x, yyxt1) 109221 } else { 109222 yysep2 := !z.EncBinary() 109223 yy2arr2 := z.EncBasicHandle().StructToArray 109224 _, _ = yysep2, yy2arr2 109225 const yyr2 bool = false // struct tag has 'toArray' 109226 if yyr2 || yy2arr2 { 109227 r.WriteArrayStart(7) 109228 } else { 109229 r.WriteMapStart(7) 109230 } 109231 if yyr2 || yy2arr2 { 109232 r.WriteArrayElem() 109233 if false { 109234 } else { 109235 if z.EncBasicHandle().StringToRaw { 109236 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 109237 } else { 109238 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 109239 } 109240 } 109241 } else { 109242 r.WriteMapElemKey() 109243 if z.IsJSONHandle() { 109244 z.WriteStr("\"Name\"") 109245 } else { 109246 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 109247 } 109248 r.WriteMapElemValue() 109249 if false { 109250 } else { 109251 if z.EncBasicHandle().StringToRaw { 109252 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 109253 } else { 109254 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 109255 } 109256 } 109257 } 109258 if yyr2 || yy2arr2 { 109259 r.WriteArrayElem() 109260 if false { 109261 } else { 109262 if z.EncBasicHandle().StringToRaw { 109263 r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) 109264 } else { 109265 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) 109266 } 109267 } 109268 } else { 109269 r.WriteMapElemKey() 109270 if z.IsJSONHandle() { 109271 z.WriteStr("\"Description\"") 109272 } else { 109273 r.EncodeStringEnc(codecSelferCcUTF8100, `Description`) 109274 } 109275 r.WriteMapElemValue() 109276 if false { 109277 } else { 109278 if z.EncBasicHandle().StringToRaw { 109279 r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) 109280 } else { 109281 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) 109282 } 109283 } 109284 } 109285 if yyr2 || yy2arr2 { 109286 r.WriteArrayElem() 109287 if false { 109288 } else { 109289 if z.EncBasicHandle().StringToRaw { 109290 r.EncodeStringBytesRaw(z.BytesView(string(x.Rules))) 109291 } else { 109292 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Rules)) 109293 } 109294 } 109295 } else { 109296 r.WriteMapElemKey() 109297 if z.IsJSONHandle() { 109298 z.WriteStr("\"Rules\"") 109299 } else { 109300 r.EncodeStringEnc(codecSelferCcUTF8100, `Rules`) 109301 } 109302 r.WriteMapElemValue() 109303 if false { 109304 } else { 109305 if z.EncBasicHandle().StringToRaw { 109306 r.EncodeStringBytesRaw(z.BytesView(string(x.Rules))) 109307 } else { 109308 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Rules)) 109309 } 109310 } 109311 } 109312 var yyn12 bool 109313 if x.RulesJSON == nil { 109314 yyn12 = true 109315 goto LABEL12 109316 } 109317 LABEL12: 109318 if yyr2 || yy2arr2 { 109319 if yyn12 { 109320 r.WriteArrayElem() 109321 r.EncodeNil() 109322 } else { 109323 r.WriteArrayElem() 109324 if x.RulesJSON == nil { 109325 r.EncodeNil() 109326 } else { 109327 if false { 109328 } else if yyxt13 := z.Extension(z.I2Rtid(x.RulesJSON)); yyxt13 != nil { 109329 z.EncExtension(x.RulesJSON, yyxt13) 109330 } else { 109331 z.EncFallback(x.RulesJSON) 109332 } 109333 } 109334 } 109335 } else { 109336 r.WriteMapElemKey() 109337 if z.IsJSONHandle() { 109338 z.WriteStr("\"RulesJSON\"") 109339 } else { 109340 r.EncodeStringEnc(codecSelferCcUTF8100, `RulesJSON`) 109341 } 109342 r.WriteMapElemValue() 109343 if yyn12 { 109344 r.EncodeNil() 109345 } else { 109346 if x.RulesJSON == nil { 109347 r.EncodeNil() 109348 } else { 109349 if false { 109350 } else if yyxt14 := z.Extension(z.I2Rtid(x.RulesJSON)); yyxt14 != nil { 109351 z.EncExtension(x.RulesJSON, yyxt14) 109352 } else { 109353 z.EncFallback(x.RulesJSON) 109354 } 109355 } 109356 } 109357 } 109358 if yyr2 || yy2arr2 { 109359 r.WriteArrayElem() 109360 if x.Hash == nil { 109361 r.EncodeNil() 109362 } else { 109363 if false { 109364 } else { 109365 r.EncodeStringBytesRaw([]byte(x.Hash)) 109366 } 109367 } 109368 } else { 109369 r.WriteMapElemKey() 109370 if z.IsJSONHandle() { 109371 z.WriteStr("\"Hash\"") 109372 } else { 109373 r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) 109374 } 109375 r.WriteMapElemValue() 109376 if x.Hash == nil { 109377 r.EncodeNil() 109378 } else { 109379 if false { 109380 } else { 109381 r.EncodeStringBytesRaw([]byte(x.Hash)) 109382 } 109383 } 109384 } 109385 if yyr2 || yy2arr2 { 109386 r.WriteArrayElem() 109387 if false { 109388 } else { 109389 r.EncodeUint(uint64(x.CreateIndex)) 109390 } 109391 } else { 109392 r.WriteMapElemKey() 109393 if z.IsJSONHandle() { 109394 z.WriteStr("\"CreateIndex\"") 109395 } else { 109396 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 109397 } 109398 r.WriteMapElemValue() 109399 if false { 109400 } else { 109401 r.EncodeUint(uint64(x.CreateIndex)) 109402 } 109403 } 109404 if yyr2 || yy2arr2 { 109405 r.WriteArrayElem() 109406 if false { 109407 } else { 109408 r.EncodeUint(uint64(x.ModifyIndex)) 109409 } 109410 } else { 109411 r.WriteMapElemKey() 109412 if z.IsJSONHandle() { 109413 z.WriteStr("\"ModifyIndex\"") 109414 } else { 109415 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 109416 } 109417 r.WriteMapElemValue() 109418 if false { 109419 } else { 109420 r.EncodeUint(uint64(x.ModifyIndex)) 109421 } 109422 } 109423 if yyr2 || yy2arr2 { 109424 r.WriteArrayEnd() 109425 } else { 109426 r.WriteMapEnd() 109427 } 109428 } 109429 } 109430 } 109431 109432 func (x *ACLPolicy) CodecDecodeSelf(d *codec1978.Decoder) { 109433 var h codecSelfer100 109434 z, r := codec1978.GenHelperDecoder(d) 109435 _, _, _ = h, z, r 109436 if false { 109437 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 109438 z.DecExtension(x, yyxt1) 109439 } else { 109440 yyct2 := r.ContainerType() 109441 if yyct2 == codecSelferValueTypeMap100 { 109442 yyl2 := r.ReadMapStart() 109443 if yyl2 == 0 { 109444 r.ReadMapEnd() 109445 } else { 109446 x.codecDecodeSelfFromMap(yyl2, d) 109447 } 109448 } else if yyct2 == codecSelferValueTypeArray100 { 109449 yyl2 := r.ReadArrayStart() 109450 if yyl2 == 0 { 109451 r.ReadArrayEnd() 109452 } else { 109453 x.codecDecodeSelfFromArray(yyl2, d) 109454 } 109455 } else { 109456 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 109457 } 109458 } 109459 } 109460 109461 func (x *ACLPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 109462 var h codecSelfer100 109463 z, r := codec1978.GenHelperDecoder(d) 109464 _, _, _ = h, z, r 109465 var yyhl3 bool = l >= 0 109466 for yyj3 := 0; ; yyj3++ { 109467 if yyhl3 { 109468 if yyj3 >= l { 109469 break 109470 } 109471 } else { 109472 if r.CheckBreak() { 109473 break 109474 } 109475 } 109476 r.ReadMapElemKey() 109477 yys3 := z.StringView(r.DecodeStringAsBytes()) 109478 r.ReadMapElemValue() 109479 switch yys3 { 109480 case "Name": 109481 if r.TryDecodeAsNil() { 109482 x.Name = "" 109483 } else { 109484 x.Name = (string)(r.DecodeString()) 109485 } 109486 case "Description": 109487 if r.TryDecodeAsNil() { 109488 x.Description = "" 109489 } else { 109490 x.Description = (string)(r.DecodeString()) 109491 } 109492 case "Rules": 109493 if r.TryDecodeAsNil() { 109494 x.Rules = "" 109495 } else { 109496 x.Rules = (string)(r.DecodeString()) 109497 } 109498 case "RulesJSON": 109499 if r.TryDecodeAsNil() { 109500 if true && x.RulesJSON != nil { 109501 x.RulesJSON = nil 109502 } 109503 } else { 109504 if x.RulesJSON == nil { 109505 x.RulesJSON = new(pkg4_acl.Policy) 109506 } 109507 109508 if false { 109509 } else if yyxt8 := z.Extension(z.I2Rtid(x.RulesJSON)); yyxt8 != nil { 109510 z.DecExtension(x.RulesJSON, yyxt8) 109511 } else { 109512 z.DecFallback(x.RulesJSON, false) 109513 } 109514 } 109515 case "Hash": 109516 if r.TryDecodeAsNil() { 109517 x.Hash = nil 109518 } else { 109519 if false { 109520 } else { 109521 x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) 109522 } 109523 } 109524 case "CreateIndex": 109525 if r.TryDecodeAsNil() { 109526 x.CreateIndex = 0 109527 } else { 109528 x.CreateIndex = (uint64)(r.DecodeUint64()) 109529 } 109530 case "ModifyIndex": 109531 if r.TryDecodeAsNil() { 109532 x.ModifyIndex = 0 109533 } else { 109534 x.ModifyIndex = (uint64)(r.DecodeUint64()) 109535 } 109536 default: 109537 z.DecStructFieldNotFound(-1, yys3) 109538 } // end switch yys3 109539 } // end for yyj3 109540 r.ReadMapEnd() 109541 } 109542 109543 func (x *ACLPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 109544 var h codecSelfer100 109545 z, r := codec1978.GenHelperDecoder(d) 109546 _, _, _ = h, z, r 109547 var yyj13 int 109548 var yyb13 bool 109549 var yyhl13 bool = l >= 0 109550 yyj13++ 109551 if yyhl13 { 109552 yyb13 = yyj13 > l 109553 } else { 109554 yyb13 = r.CheckBreak() 109555 } 109556 if yyb13 { 109557 r.ReadArrayEnd() 109558 return 109559 } 109560 r.ReadArrayElem() 109561 if r.TryDecodeAsNil() { 109562 x.Name = "" 109563 } else { 109564 x.Name = (string)(r.DecodeString()) 109565 } 109566 yyj13++ 109567 if yyhl13 { 109568 yyb13 = yyj13 > l 109569 } else { 109570 yyb13 = r.CheckBreak() 109571 } 109572 if yyb13 { 109573 r.ReadArrayEnd() 109574 return 109575 } 109576 r.ReadArrayElem() 109577 if r.TryDecodeAsNil() { 109578 x.Description = "" 109579 } else { 109580 x.Description = (string)(r.DecodeString()) 109581 } 109582 yyj13++ 109583 if yyhl13 { 109584 yyb13 = yyj13 > l 109585 } else { 109586 yyb13 = r.CheckBreak() 109587 } 109588 if yyb13 { 109589 r.ReadArrayEnd() 109590 return 109591 } 109592 r.ReadArrayElem() 109593 if r.TryDecodeAsNil() { 109594 x.Rules = "" 109595 } else { 109596 x.Rules = (string)(r.DecodeString()) 109597 } 109598 yyj13++ 109599 if yyhl13 { 109600 yyb13 = yyj13 > l 109601 } else { 109602 yyb13 = r.CheckBreak() 109603 } 109604 if yyb13 { 109605 r.ReadArrayEnd() 109606 return 109607 } 109608 r.ReadArrayElem() 109609 if r.TryDecodeAsNil() { 109610 if true && x.RulesJSON != nil { 109611 x.RulesJSON = nil 109612 } 109613 } else { 109614 if x.RulesJSON == nil { 109615 x.RulesJSON = new(pkg4_acl.Policy) 109616 } 109617 109618 if false { 109619 } else if yyxt18 := z.Extension(z.I2Rtid(x.RulesJSON)); yyxt18 != nil { 109620 z.DecExtension(x.RulesJSON, yyxt18) 109621 } else { 109622 z.DecFallback(x.RulesJSON, false) 109623 } 109624 } 109625 yyj13++ 109626 if yyhl13 { 109627 yyb13 = yyj13 > l 109628 } else { 109629 yyb13 = r.CheckBreak() 109630 } 109631 if yyb13 { 109632 r.ReadArrayEnd() 109633 return 109634 } 109635 r.ReadArrayElem() 109636 if r.TryDecodeAsNil() { 109637 x.Hash = nil 109638 } else { 109639 if false { 109640 } else { 109641 x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) 109642 } 109643 } 109644 yyj13++ 109645 if yyhl13 { 109646 yyb13 = yyj13 > l 109647 } else { 109648 yyb13 = r.CheckBreak() 109649 } 109650 if yyb13 { 109651 r.ReadArrayEnd() 109652 return 109653 } 109654 r.ReadArrayElem() 109655 if r.TryDecodeAsNil() { 109656 x.CreateIndex = 0 109657 } else { 109658 x.CreateIndex = (uint64)(r.DecodeUint64()) 109659 } 109660 yyj13++ 109661 if yyhl13 { 109662 yyb13 = yyj13 > l 109663 } else { 109664 yyb13 = r.CheckBreak() 109665 } 109666 if yyb13 { 109667 r.ReadArrayEnd() 109668 return 109669 } 109670 r.ReadArrayElem() 109671 if r.TryDecodeAsNil() { 109672 x.ModifyIndex = 0 109673 } else { 109674 x.ModifyIndex = (uint64)(r.DecodeUint64()) 109675 } 109676 for { 109677 yyj13++ 109678 if yyhl13 { 109679 yyb13 = yyj13 > l 109680 } else { 109681 yyb13 = r.CheckBreak() 109682 } 109683 if yyb13 { 109684 break 109685 } 109686 r.ReadArrayElem() 109687 z.DecStructFieldNotFound(yyj13-1, "") 109688 } 109689 r.ReadArrayEnd() 109690 } 109691 109692 func (x *ACLPolicyListStub) CodecEncodeSelf(e *codec1978.Encoder) { 109693 var h codecSelfer100 109694 z, r := codec1978.GenHelperEncoder(e) 109695 _, _, _ = h, z, r 109696 if x == nil { 109697 r.EncodeNil() 109698 } else { 109699 if false { 109700 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 109701 z.EncExtension(x, yyxt1) 109702 } else { 109703 yysep2 := !z.EncBinary() 109704 yy2arr2 := z.EncBasicHandle().StructToArray 109705 _, _ = yysep2, yy2arr2 109706 const yyr2 bool = false // struct tag has 'toArray' 109707 if yyr2 || yy2arr2 { 109708 r.WriteArrayStart(5) 109709 } else { 109710 r.WriteMapStart(5) 109711 } 109712 if yyr2 || yy2arr2 { 109713 r.WriteArrayElem() 109714 if false { 109715 } else { 109716 if z.EncBasicHandle().StringToRaw { 109717 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 109718 } else { 109719 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 109720 } 109721 } 109722 } else { 109723 r.WriteMapElemKey() 109724 if z.IsJSONHandle() { 109725 z.WriteStr("\"Name\"") 109726 } else { 109727 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 109728 } 109729 r.WriteMapElemValue() 109730 if false { 109731 } else { 109732 if z.EncBasicHandle().StringToRaw { 109733 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 109734 } else { 109735 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 109736 } 109737 } 109738 } 109739 if yyr2 || yy2arr2 { 109740 r.WriteArrayElem() 109741 if false { 109742 } else { 109743 if z.EncBasicHandle().StringToRaw { 109744 r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) 109745 } else { 109746 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) 109747 } 109748 } 109749 } else { 109750 r.WriteMapElemKey() 109751 if z.IsJSONHandle() { 109752 z.WriteStr("\"Description\"") 109753 } else { 109754 r.EncodeStringEnc(codecSelferCcUTF8100, `Description`) 109755 } 109756 r.WriteMapElemValue() 109757 if false { 109758 } else { 109759 if z.EncBasicHandle().StringToRaw { 109760 r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) 109761 } else { 109762 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) 109763 } 109764 } 109765 } 109766 if yyr2 || yy2arr2 { 109767 r.WriteArrayElem() 109768 if x.Hash == nil { 109769 r.EncodeNil() 109770 } else { 109771 if false { 109772 } else { 109773 r.EncodeStringBytesRaw([]byte(x.Hash)) 109774 } 109775 } 109776 } else { 109777 r.WriteMapElemKey() 109778 if z.IsJSONHandle() { 109779 z.WriteStr("\"Hash\"") 109780 } else { 109781 r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) 109782 } 109783 r.WriteMapElemValue() 109784 if x.Hash == nil { 109785 r.EncodeNil() 109786 } else { 109787 if false { 109788 } else { 109789 r.EncodeStringBytesRaw([]byte(x.Hash)) 109790 } 109791 } 109792 } 109793 if yyr2 || yy2arr2 { 109794 r.WriteArrayElem() 109795 if false { 109796 } else { 109797 r.EncodeUint(uint64(x.CreateIndex)) 109798 } 109799 } else { 109800 r.WriteMapElemKey() 109801 if z.IsJSONHandle() { 109802 z.WriteStr("\"CreateIndex\"") 109803 } else { 109804 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 109805 } 109806 r.WriteMapElemValue() 109807 if false { 109808 } else { 109809 r.EncodeUint(uint64(x.CreateIndex)) 109810 } 109811 } 109812 if yyr2 || yy2arr2 { 109813 r.WriteArrayElem() 109814 if false { 109815 } else { 109816 r.EncodeUint(uint64(x.ModifyIndex)) 109817 } 109818 } else { 109819 r.WriteMapElemKey() 109820 if z.IsJSONHandle() { 109821 z.WriteStr("\"ModifyIndex\"") 109822 } else { 109823 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 109824 } 109825 r.WriteMapElemValue() 109826 if false { 109827 } else { 109828 r.EncodeUint(uint64(x.ModifyIndex)) 109829 } 109830 } 109831 if yyr2 || yy2arr2 { 109832 r.WriteArrayEnd() 109833 } else { 109834 r.WriteMapEnd() 109835 } 109836 } 109837 } 109838 } 109839 109840 func (x *ACLPolicyListStub) CodecDecodeSelf(d *codec1978.Decoder) { 109841 var h codecSelfer100 109842 z, r := codec1978.GenHelperDecoder(d) 109843 _, _, _ = h, z, r 109844 if false { 109845 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 109846 z.DecExtension(x, yyxt1) 109847 } else { 109848 yyct2 := r.ContainerType() 109849 if yyct2 == codecSelferValueTypeMap100 { 109850 yyl2 := r.ReadMapStart() 109851 if yyl2 == 0 { 109852 r.ReadMapEnd() 109853 } else { 109854 x.codecDecodeSelfFromMap(yyl2, d) 109855 } 109856 } else if yyct2 == codecSelferValueTypeArray100 { 109857 yyl2 := r.ReadArrayStart() 109858 if yyl2 == 0 { 109859 r.ReadArrayEnd() 109860 } else { 109861 x.codecDecodeSelfFromArray(yyl2, d) 109862 } 109863 } else { 109864 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 109865 } 109866 } 109867 } 109868 109869 func (x *ACLPolicyListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 109870 var h codecSelfer100 109871 z, r := codec1978.GenHelperDecoder(d) 109872 _, _, _ = h, z, r 109873 var yyhl3 bool = l >= 0 109874 for yyj3 := 0; ; yyj3++ { 109875 if yyhl3 { 109876 if yyj3 >= l { 109877 break 109878 } 109879 } else { 109880 if r.CheckBreak() { 109881 break 109882 } 109883 } 109884 r.ReadMapElemKey() 109885 yys3 := z.StringView(r.DecodeStringAsBytes()) 109886 r.ReadMapElemValue() 109887 switch yys3 { 109888 case "Name": 109889 if r.TryDecodeAsNil() { 109890 x.Name = "" 109891 } else { 109892 x.Name = (string)(r.DecodeString()) 109893 } 109894 case "Description": 109895 if r.TryDecodeAsNil() { 109896 x.Description = "" 109897 } else { 109898 x.Description = (string)(r.DecodeString()) 109899 } 109900 case "Hash": 109901 if r.TryDecodeAsNil() { 109902 x.Hash = nil 109903 } else { 109904 if false { 109905 } else { 109906 x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) 109907 } 109908 } 109909 case "CreateIndex": 109910 if r.TryDecodeAsNil() { 109911 x.CreateIndex = 0 109912 } else { 109913 x.CreateIndex = (uint64)(r.DecodeUint64()) 109914 } 109915 case "ModifyIndex": 109916 if r.TryDecodeAsNil() { 109917 x.ModifyIndex = 0 109918 } else { 109919 x.ModifyIndex = (uint64)(r.DecodeUint64()) 109920 } 109921 default: 109922 z.DecStructFieldNotFound(-1, yys3) 109923 } // end switch yys3 109924 } // end for yyj3 109925 r.ReadMapEnd() 109926 } 109927 109928 func (x *ACLPolicyListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 109929 var h codecSelfer100 109930 z, r := codec1978.GenHelperDecoder(d) 109931 _, _, _ = h, z, r 109932 var yyj10 int 109933 var yyb10 bool 109934 var yyhl10 bool = l >= 0 109935 yyj10++ 109936 if yyhl10 { 109937 yyb10 = yyj10 > l 109938 } else { 109939 yyb10 = r.CheckBreak() 109940 } 109941 if yyb10 { 109942 r.ReadArrayEnd() 109943 return 109944 } 109945 r.ReadArrayElem() 109946 if r.TryDecodeAsNil() { 109947 x.Name = "" 109948 } else { 109949 x.Name = (string)(r.DecodeString()) 109950 } 109951 yyj10++ 109952 if yyhl10 { 109953 yyb10 = yyj10 > l 109954 } else { 109955 yyb10 = r.CheckBreak() 109956 } 109957 if yyb10 { 109958 r.ReadArrayEnd() 109959 return 109960 } 109961 r.ReadArrayElem() 109962 if r.TryDecodeAsNil() { 109963 x.Description = "" 109964 } else { 109965 x.Description = (string)(r.DecodeString()) 109966 } 109967 yyj10++ 109968 if yyhl10 { 109969 yyb10 = yyj10 > l 109970 } else { 109971 yyb10 = r.CheckBreak() 109972 } 109973 if yyb10 { 109974 r.ReadArrayEnd() 109975 return 109976 } 109977 r.ReadArrayElem() 109978 if r.TryDecodeAsNil() { 109979 x.Hash = nil 109980 } else { 109981 if false { 109982 } else { 109983 x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) 109984 } 109985 } 109986 yyj10++ 109987 if yyhl10 { 109988 yyb10 = yyj10 > l 109989 } else { 109990 yyb10 = r.CheckBreak() 109991 } 109992 if yyb10 { 109993 r.ReadArrayEnd() 109994 return 109995 } 109996 r.ReadArrayElem() 109997 if r.TryDecodeAsNil() { 109998 x.CreateIndex = 0 109999 } else { 110000 x.CreateIndex = (uint64)(r.DecodeUint64()) 110001 } 110002 yyj10++ 110003 if yyhl10 { 110004 yyb10 = yyj10 > l 110005 } else { 110006 yyb10 = r.CheckBreak() 110007 } 110008 if yyb10 { 110009 r.ReadArrayEnd() 110010 return 110011 } 110012 r.ReadArrayElem() 110013 if r.TryDecodeAsNil() { 110014 x.ModifyIndex = 0 110015 } else { 110016 x.ModifyIndex = (uint64)(r.DecodeUint64()) 110017 } 110018 for { 110019 yyj10++ 110020 if yyhl10 { 110021 yyb10 = yyj10 > l 110022 } else { 110023 yyb10 = r.CheckBreak() 110024 } 110025 if yyb10 { 110026 break 110027 } 110028 r.ReadArrayElem() 110029 z.DecStructFieldNotFound(yyj10-1, "") 110030 } 110031 r.ReadArrayEnd() 110032 } 110033 110034 func (x *ACLPolicyListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 110035 var h codecSelfer100 110036 z, r := codec1978.GenHelperEncoder(e) 110037 _, _, _ = h, z, r 110038 if x == nil { 110039 r.EncodeNil() 110040 } else { 110041 if false { 110042 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 110043 z.EncExtension(x, yyxt1) 110044 } else { 110045 yysep2 := !z.EncBinary() 110046 yy2arr2 := z.EncBasicHandle().StructToArray 110047 _, _ = yysep2, yy2arr2 110048 const yyr2 bool = false // struct tag has 'toArray' 110049 if yyr2 || yy2arr2 { 110050 r.WriteArrayStart(8) 110051 } else { 110052 r.WriteMapStart(8) 110053 } 110054 if yyr2 || yy2arr2 { 110055 r.WriteArrayElem() 110056 if false { 110057 } else { 110058 if z.EncBasicHandle().StringToRaw { 110059 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 110060 } else { 110061 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 110062 } 110063 } 110064 } else { 110065 r.WriteMapElemKey() 110066 if z.IsJSONHandle() { 110067 z.WriteStr("\"Region\"") 110068 } else { 110069 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 110070 } 110071 r.WriteMapElemValue() 110072 if false { 110073 } else { 110074 if z.EncBasicHandle().StringToRaw { 110075 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 110076 } else { 110077 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 110078 } 110079 } 110080 } 110081 if yyr2 || yy2arr2 { 110082 r.WriteArrayElem() 110083 if false { 110084 } else { 110085 if z.EncBasicHandle().StringToRaw { 110086 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 110087 } else { 110088 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 110089 } 110090 } 110091 } else { 110092 r.WriteMapElemKey() 110093 if z.IsJSONHandle() { 110094 z.WriteStr("\"Namespace\"") 110095 } else { 110096 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 110097 } 110098 r.WriteMapElemValue() 110099 if false { 110100 } else { 110101 if z.EncBasicHandle().StringToRaw { 110102 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 110103 } else { 110104 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 110105 } 110106 } 110107 } 110108 if yyr2 || yy2arr2 { 110109 r.WriteArrayElem() 110110 if false { 110111 } else { 110112 r.EncodeUint(uint64(x.MinQueryIndex)) 110113 } 110114 } else { 110115 r.WriteMapElemKey() 110116 if z.IsJSONHandle() { 110117 z.WriteStr("\"MinQueryIndex\"") 110118 } else { 110119 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 110120 } 110121 r.WriteMapElemValue() 110122 if false { 110123 } else { 110124 r.EncodeUint(uint64(x.MinQueryIndex)) 110125 } 110126 } 110127 if yyr2 || yy2arr2 { 110128 r.WriteArrayElem() 110129 if false { 110130 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 110131 z.EncExtension(x.MaxQueryTime, yyxt13) 110132 } else { 110133 r.EncodeInt(int64(x.MaxQueryTime)) 110134 } 110135 } else { 110136 r.WriteMapElemKey() 110137 if z.IsJSONHandle() { 110138 z.WriteStr("\"MaxQueryTime\"") 110139 } else { 110140 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 110141 } 110142 r.WriteMapElemValue() 110143 if false { 110144 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 110145 z.EncExtension(x.MaxQueryTime, yyxt14) 110146 } else { 110147 r.EncodeInt(int64(x.MaxQueryTime)) 110148 } 110149 } 110150 if yyr2 || yy2arr2 { 110151 r.WriteArrayElem() 110152 if false { 110153 } else { 110154 r.EncodeBool(bool(x.AllowStale)) 110155 } 110156 } else { 110157 r.WriteMapElemKey() 110158 if z.IsJSONHandle() { 110159 z.WriteStr("\"AllowStale\"") 110160 } else { 110161 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 110162 } 110163 r.WriteMapElemValue() 110164 if false { 110165 } else { 110166 r.EncodeBool(bool(x.AllowStale)) 110167 } 110168 } 110169 if yyr2 || yy2arr2 { 110170 r.WriteArrayElem() 110171 if false { 110172 } else { 110173 if z.EncBasicHandle().StringToRaw { 110174 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 110175 } else { 110176 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 110177 } 110178 } 110179 } else { 110180 r.WriteMapElemKey() 110181 if z.IsJSONHandle() { 110182 z.WriteStr("\"Prefix\"") 110183 } else { 110184 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 110185 } 110186 r.WriteMapElemValue() 110187 if false { 110188 } else { 110189 if z.EncBasicHandle().StringToRaw { 110190 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 110191 } else { 110192 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 110193 } 110194 } 110195 } 110196 if yyr2 || yy2arr2 { 110197 r.WriteArrayElem() 110198 if false { 110199 } else { 110200 if z.EncBasicHandle().StringToRaw { 110201 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 110202 } else { 110203 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 110204 } 110205 } 110206 } else { 110207 r.WriteMapElemKey() 110208 if z.IsJSONHandle() { 110209 z.WriteStr("\"AuthToken\"") 110210 } else { 110211 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 110212 } 110213 r.WriteMapElemValue() 110214 if false { 110215 } else { 110216 if z.EncBasicHandle().StringToRaw { 110217 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 110218 } else { 110219 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 110220 } 110221 } 110222 } 110223 if yyr2 || yy2arr2 { 110224 r.WriteArrayElem() 110225 if false { 110226 } else { 110227 r.EncodeBool(bool(x.Forwarded)) 110228 } 110229 } else { 110230 r.WriteMapElemKey() 110231 if z.IsJSONHandle() { 110232 z.WriteStr("\"Forwarded\"") 110233 } else { 110234 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 110235 } 110236 r.WriteMapElemValue() 110237 if false { 110238 } else { 110239 r.EncodeBool(bool(x.Forwarded)) 110240 } 110241 } 110242 if yyr2 || yy2arr2 { 110243 r.WriteArrayEnd() 110244 } else { 110245 r.WriteMapEnd() 110246 } 110247 } 110248 } 110249 } 110250 110251 func (x *ACLPolicyListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 110252 var h codecSelfer100 110253 z, r := codec1978.GenHelperDecoder(d) 110254 _, _, _ = h, z, r 110255 if false { 110256 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 110257 z.DecExtension(x, yyxt1) 110258 } else { 110259 yyct2 := r.ContainerType() 110260 if yyct2 == codecSelferValueTypeMap100 { 110261 yyl2 := r.ReadMapStart() 110262 if yyl2 == 0 { 110263 r.ReadMapEnd() 110264 } else { 110265 x.codecDecodeSelfFromMap(yyl2, d) 110266 } 110267 } else if yyct2 == codecSelferValueTypeArray100 { 110268 yyl2 := r.ReadArrayStart() 110269 if yyl2 == 0 { 110270 r.ReadArrayEnd() 110271 } else { 110272 x.codecDecodeSelfFromArray(yyl2, d) 110273 } 110274 } else { 110275 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 110276 } 110277 } 110278 } 110279 110280 func (x *ACLPolicyListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 110281 var h codecSelfer100 110282 z, r := codec1978.GenHelperDecoder(d) 110283 _, _, _ = h, z, r 110284 var yyhl3 bool = l >= 0 110285 for yyj3 := 0; ; yyj3++ { 110286 if yyhl3 { 110287 if yyj3 >= l { 110288 break 110289 } 110290 } else { 110291 if r.CheckBreak() { 110292 break 110293 } 110294 } 110295 r.ReadMapElemKey() 110296 yys3 := z.StringView(r.DecodeStringAsBytes()) 110297 r.ReadMapElemValue() 110298 switch yys3 { 110299 case "Region": 110300 if r.TryDecodeAsNil() { 110301 x.QueryOptions.Region = "" 110302 } else { 110303 x.Region = (string)(r.DecodeString()) 110304 } 110305 case "Namespace": 110306 if r.TryDecodeAsNil() { 110307 x.QueryOptions.Namespace = "" 110308 } else { 110309 x.Namespace = (string)(r.DecodeString()) 110310 } 110311 case "MinQueryIndex": 110312 if r.TryDecodeAsNil() { 110313 x.QueryOptions.MinQueryIndex = 0 110314 } else { 110315 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 110316 } 110317 case "MaxQueryTime": 110318 if r.TryDecodeAsNil() { 110319 x.QueryOptions.MaxQueryTime = 0 110320 } else { 110321 if false { 110322 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 110323 z.DecExtension(x.MaxQueryTime, yyxt8) 110324 } else { 110325 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 110326 } 110327 } 110328 case "AllowStale": 110329 if r.TryDecodeAsNil() { 110330 x.QueryOptions.AllowStale = false 110331 } else { 110332 x.AllowStale = (bool)(r.DecodeBool()) 110333 } 110334 case "Prefix": 110335 if r.TryDecodeAsNil() { 110336 x.QueryOptions.Prefix = "" 110337 } else { 110338 x.Prefix = (string)(r.DecodeString()) 110339 } 110340 case "AuthToken": 110341 if r.TryDecodeAsNil() { 110342 x.QueryOptions.AuthToken = "" 110343 } else { 110344 x.AuthToken = (string)(r.DecodeString()) 110345 } 110346 case "Forwarded": 110347 if r.TryDecodeAsNil() { 110348 x.QueryOptions.InternalRpcInfo.Forwarded = false 110349 } else { 110350 x.Forwarded = (bool)(r.DecodeBool()) 110351 } 110352 default: 110353 z.DecStructFieldNotFound(-1, yys3) 110354 } // end switch yys3 110355 } // end for yyj3 110356 r.ReadMapEnd() 110357 } 110358 110359 func (x *ACLPolicyListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 110360 var h codecSelfer100 110361 z, r := codec1978.GenHelperDecoder(d) 110362 _, _, _ = h, z, r 110363 var yyj13 int 110364 var yyb13 bool 110365 var yyhl13 bool = l >= 0 110366 yyj13++ 110367 if yyhl13 { 110368 yyb13 = yyj13 > l 110369 } else { 110370 yyb13 = r.CheckBreak() 110371 } 110372 if yyb13 { 110373 r.ReadArrayEnd() 110374 return 110375 } 110376 r.ReadArrayElem() 110377 if r.TryDecodeAsNil() { 110378 x.QueryOptions.Region = "" 110379 } else { 110380 x.Region = (string)(r.DecodeString()) 110381 } 110382 yyj13++ 110383 if yyhl13 { 110384 yyb13 = yyj13 > l 110385 } else { 110386 yyb13 = r.CheckBreak() 110387 } 110388 if yyb13 { 110389 r.ReadArrayEnd() 110390 return 110391 } 110392 r.ReadArrayElem() 110393 if r.TryDecodeAsNil() { 110394 x.QueryOptions.Namespace = "" 110395 } else { 110396 x.Namespace = (string)(r.DecodeString()) 110397 } 110398 yyj13++ 110399 if yyhl13 { 110400 yyb13 = yyj13 > l 110401 } else { 110402 yyb13 = r.CheckBreak() 110403 } 110404 if yyb13 { 110405 r.ReadArrayEnd() 110406 return 110407 } 110408 r.ReadArrayElem() 110409 if r.TryDecodeAsNil() { 110410 x.QueryOptions.MinQueryIndex = 0 110411 } else { 110412 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 110413 } 110414 yyj13++ 110415 if yyhl13 { 110416 yyb13 = yyj13 > l 110417 } else { 110418 yyb13 = r.CheckBreak() 110419 } 110420 if yyb13 { 110421 r.ReadArrayEnd() 110422 return 110423 } 110424 r.ReadArrayElem() 110425 if r.TryDecodeAsNil() { 110426 x.QueryOptions.MaxQueryTime = 0 110427 } else { 110428 if false { 110429 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 110430 z.DecExtension(x.MaxQueryTime, yyxt18) 110431 } else { 110432 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 110433 } 110434 } 110435 yyj13++ 110436 if yyhl13 { 110437 yyb13 = yyj13 > l 110438 } else { 110439 yyb13 = r.CheckBreak() 110440 } 110441 if yyb13 { 110442 r.ReadArrayEnd() 110443 return 110444 } 110445 r.ReadArrayElem() 110446 if r.TryDecodeAsNil() { 110447 x.QueryOptions.AllowStale = false 110448 } else { 110449 x.AllowStale = (bool)(r.DecodeBool()) 110450 } 110451 yyj13++ 110452 if yyhl13 { 110453 yyb13 = yyj13 > l 110454 } else { 110455 yyb13 = r.CheckBreak() 110456 } 110457 if yyb13 { 110458 r.ReadArrayEnd() 110459 return 110460 } 110461 r.ReadArrayElem() 110462 if r.TryDecodeAsNil() { 110463 x.QueryOptions.Prefix = "" 110464 } else { 110465 x.Prefix = (string)(r.DecodeString()) 110466 } 110467 yyj13++ 110468 if yyhl13 { 110469 yyb13 = yyj13 > l 110470 } else { 110471 yyb13 = r.CheckBreak() 110472 } 110473 if yyb13 { 110474 r.ReadArrayEnd() 110475 return 110476 } 110477 r.ReadArrayElem() 110478 if r.TryDecodeAsNil() { 110479 x.QueryOptions.AuthToken = "" 110480 } else { 110481 x.AuthToken = (string)(r.DecodeString()) 110482 } 110483 yyj13++ 110484 if yyhl13 { 110485 yyb13 = yyj13 > l 110486 } else { 110487 yyb13 = r.CheckBreak() 110488 } 110489 if yyb13 { 110490 r.ReadArrayEnd() 110491 return 110492 } 110493 r.ReadArrayElem() 110494 if r.TryDecodeAsNil() { 110495 x.QueryOptions.InternalRpcInfo.Forwarded = false 110496 } else { 110497 x.Forwarded = (bool)(r.DecodeBool()) 110498 } 110499 for { 110500 yyj13++ 110501 if yyhl13 { 110502 yyb13 = yyj13 > l 110503 } else { 110504 yyb13 = r.CheckBreak() 110505 } 110506 if yyb13 { 110507 break 110508 } 110509 r.ReadArrayElem() 110510 z.DecStructFieldNotFound(yyj13-1, "") 110511 } 110512 r.ReadArrayEnd() 110513 } 110514 110515 func (x *ACLPolicySpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { 110516 var h codecSelfer100 110517 z, r := codec1978.GenHelperEncoder(e) 110518 _, _, _ = h, z, r 110519 if x == nil { 110520 r.EncodeNil() 110521 } else { 110522 if false { 110523 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 110524 z.EncExtension(x, yyxt1) 110525 } else { 110526 yysep2 := !z.EncBinary() 110527 yy2arr2 := z.EncBasicHandle().StructToArray 110528 _, _ = yysep2, yy2arr2 110529 const yyr2 bool = false // struct tag has 'toArray' 110530 if yyr2 || yy2arr2 { 110531 r.WriteArrayStart(9) 110532 } else { 110533 r.WriteMapStart(9) 110534 } 110535 if yyr2 || yy2arr2 { 110536 r.WriteArrayElem() 110537 if false { 110538 } else { 110539 if z.EncBasicHandle().StringToRaw { 110540 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 110541 } else { 110542 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 110543 } 110544 } 110545 } else { 110546 r.WriteMapElemKey() 110547 if z.IsJSONHandle() { 110548 z.WriteStr("\"Name\"") 110549 } else { 110550 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 110551 } 110552 r.WriteMapElemValue() 110553 if false { 110554 } else { 110555 if z.EncBasicHandle().StringToRaw { 110556 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 110557 } else { 110558 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 110559 } 110560 } 110561 } 110562 if yyr2 || yy2arr2 { 110563 r.WriteArrayElem() 110564 if false { 110565 } else { 110566 if z.EncBasicHandle().StringToRaw { 110567 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 110568 } else { 110569 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 110570 } 110571 } 110572 } else { 110573 r.WriteMapElemKey() 110574 if z.IsJSONHandle() { 110575 z.WriteStr("\"Region\"") 110576 } else { 110577 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 110578 } 110579 r.WriteMapElemValue() 110580 if false { 110581 } else { 110582 if z.EncBasicHandle().StringToRaw { 110583 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 110584 } else { 110585 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 110586 } 110587 } 110588 } 110589 if yyr2 || yy2arr2 { 110590 r.WriteArrayElem() 110591 if false { 110592 } else { 110593 if z.EncBasicHandle().StringToRaw { 110594 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 110595 } else { 110596 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 110597 } 110598 } 110599 } else { 110600 r.WriteMapElemKey() 110601 if z.IsJSONHandle() { 110602 z.WriteStr("\"Namespace\"") 110603 } else { 110604 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 110605 } 110606 r.WriteMapElemValue() 110607 if false { 110608 } else { 110609 if z.EncBasicHandle().StringToRaw { 110610 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 110611 } else { 110612 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 110613 } 110614 } 110615 } 110616 if yyr2 || yy2arr2 { 110617 r.WriteArrayElem() 110618 if false { 110619 } else { 110620 r.EncodeUint(uint64(x.MinQueryIndex)) 110621 } 110622 } else { 110623 r.WriteMapElemKey() 110624 if z.IsJSONHandle() { 110625 z.WriteStr("\"MinQueryIndex\"") 110626 } else { 110627 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 110628 } 110629 r.WriteMapElemValue() 110630 if false { 110631 } else { 110632 r.EncodeUint(uint64(x.MinQueryIndex)) 110633 } 110634 } 110635 if yyr2 || yy2arr2 { 110636 r.WriteArrayElem() 110637 if false { 110638 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 110639 z.EncExtension(x.MaxQueryTime, yyxt16) 110640 } else { 110641 r.EncodeInt(int64(x.MaxQueryTime)) 110642 } 110643 } else { 110644 r.WriteMapElemKey() 110645 if z.IsJSONHandle() { 110646 z.WriteStr("\"MaxQueryTime\"") 110647 } else { 110648 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 110649 } 110650 r.WriteMapElemValue() 110651 if false { 110652 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 110653 z.EncExtension(x.MaxQueryTime, yyxt17) 110654 } else { 110655 r.EncodeInt(int64(x.MaxQueryTime)) 110656 } 110657 } 110658 if yyr2 || yy2arr2 { 110659 r.WriteArrayElem() 110660 if false { 110661 } else { 110662 r.EncodeBool(bool(x.AllowStale)) 110663 } 110664 } else { 110665 r.WriteMapElemKey() 110666 if z.IsJSONHandle() { 110667 z.WriteStr("\"AllowStale\"") 110668 } else { 110669 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 110670 } 110671 r.WriteMapElemValue() 110672 if false { 110673 } else { 110674 r.EncodeBool(bool(x.AllowStale)) 110675 } 110676 } 110677 if yyr2 || yy2arr2 { 110678 r.WriteArrayElem() 110679 if false { 110680 } else { 110681 if z.EncBasicHandle().StringToRaw { 110682 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 110683 } else { 110684 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 110685 } 110686 } 110687 } else { 110688 r.WriteMapElemKey() 110689 if z.IsJSONHandle() { 110690 z.WriteStr("\"Prefix\"") 110691 } else { 110692 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 110693 } 110694 r.WriteMapElemValue() 110695 if false { 110696 } else { 110697 if z.EncBasicHandle().StringToRaw { 110698 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 110699 } else { 110700 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 110701 } 110702 } 110703 } 110704 if yyr2 || yy2arr2 { 110705 r.WriteArrayElem() 110706 if false { 110707 } else { 110708 if z.EncBasicHandle().StringToRaw { 110709 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 110710 } else { 110711 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 110712 } 110713 } 110714 } else { 110715 r.WriteMapElemKey() 110716 if z.IsJSONHandle() { 110717 z.WriteStr("\"AuthToken\"") 110718 } else { 110719 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 110720 } 110721 r.WriteMapElemValue() 110722 if false { 110723 } else { 110724 if z.EncBasicHandle().StringToRaw { 110725 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 110726 } else { 110727 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 110728 } 110729 } 110730 } 110731 if yyr2 || yy2arr2 { 110732 r.WriteArrayElem() 110733 if false { 110734 } else { 110735 r.EncodeBool(bool(x.Forwarded)) 110736 } 110737 } else { 110738 r.WriteMapElemKey() 110739 if z.IsJSONHandle() { 110740 z.WriteStr("\"Forwarded\"") 110741 } else { 110742 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 110743 } 110744 r.WriteMapElemValue() 110745 if false { 110746 } else { 110747 r.EncodeBool(bool(x.Forwarded)) 110748 } 110749 } 110750 if yyr2 || yy2arr2 { 110751 r.WriteArrayEnd() 110752 } else { 110753 r.WriteMapEnd() 110754 } 110755 } 110756 } 110757 } 110758 110759 func (x *ACLPolicySpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { 110760 var h codecSelfer100 110761 z, r := codec1978.GenHelperDecoder(d) 110762 _, _, _ = h, z, r 110763 if false { 110764 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 110765 z.DecExtension(x, yyxt1) 110766 } else { 110767 yyct2 := r.ContainerType() 110768 if yyct2 == codecSelferValueTypeMap100 { 110769 yyl2 := r.ReadMapStart() 110770 if yyl2 == 0 { 110771 r.ReadMapEnd() 110772 } else { 110773 x.codecDecodeSelfFromMap(yyl2, d) 110774 } 110775 } else if yyct2 == codecSelferValueTypeArray100 { 110776 yyl2 := r.ReadArrayStart() 110777 if yyl2 == 0 { 110778 r.ReadArrayEnd() 110779 } else { 110780 x.codecDecodeSelfFromArray(yyl2, d) 110781 } 110782 } else { 110783 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 110784 } 110785 } 110786 } 110787 110788 func (x *ACLPolicySpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 110789 var h codecSelfer100 110790 z, r := codec1978.GenHelperDecoder(d) 110791 _, _, _ = h, z, r 110792 var yyhl3 bool = l >= 0 110793 for yyj3 := 0; ; yyj3++ { 110794 if yyhl3 { 110795 if yyj3 >= l { 110796 break 110797 } 110798 } else { 110799 if r.CheckBreak() { 110800 break 110801 } 110802 } 110803 r.ReadMapElemKey() 110804 yys3 := z.StringView(r.DecodeStringAsBytes()) 110805 r.ReadMapElemValue() 110806 switch yys3 { 110807 case "Name": 110808 if r.TryDecodeAsNil() { 110809 x.Name = "" 110810 } else { 110811 x.Name = (string)(r.DecodeString()) 110812 } 110813 case "Region": 110814 if r.TryDecodeAsNil() { 110815 x.QueryOptions.Region = "" 110816 } else { 110817 x.Region = (string)(r.DecodeString()) 110818 } 110819 case "Namespace": 110820 if r.TryDecodeAsNil() { 110821 x.QueryOptions.Namespace = "" 110822 } else { 110823 x.Namespace = (string)(r.DecodeString()) 110824 } 110825 case "MinQueryIndex": 110826 if r.TryDecodeAsNil() { 110827 x.QueryOptions.MinQueryIndex = 0 110828 } else { 110829 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 110830 } 110831 case "MaxQueryTime": 110832 if r.TryDecodeAsNil() { 110833 x.QueryOptions.MaxQueryTime = 0 110834 } else { 110835 if false { 110836 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 110837 z.DecExtension(x.MaxQueryTime, yyxt9) 110838 } else { 110839 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 110840 } 110841 } 110842 case "AllowStale": 110843 if r.TryDecodeAsNil() { 110844 x.QueryOptions.AllowStale = false 110845 } else { 110846 x.AllowStale = (bool)(r.DecodeBool()) 110847 } 110848 case "Prefix": 110849 if r.TryDecodeAsNil() { 110850 x.QueryOptions.Prefix = "" 110851 } else { 110852 x.Prefix = (string)(r.DecodeString()) 110853 } 110854 case "AuthToken": 110855 if r.TryDecodeAsNil() { 110856 x.QueryOptions.AuthToken = "" 110857 } else { 110858 x.AuthToken = (string)(r.DecodeString()) 110859 } 110860 case "Forwarded": 110861 if r.TryDecodeAsNil() { 110862 x.QueryOptions.InternalRpcInfo.Forwarded = false 110863 } else { 110864 x.Forwarded = (bool)(r.DecodeBool()) 110865 } 110866 default: 110867 z.DecStructFieldNotFound(-1, yys3) 110868 } // end switch yys3 110869 } // end for yyj3 110870 r.ReadMapEnd() 110871 } 110872 110873 func (x *ACLPolicySpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 110874 var h codecSelfer100 110875 z, r := codec1978.GenHelperDecoder(d) 110876 _, _, _ = h, z, r 110877 var yyj14 int 110878 var yyb14 bool 110879 var yyhl14 bool = l >= 0 110880 yyj14++ 110881 if yyhl14 { 110882 yyb14 = yyj14 > l 110883 } else { 110884 yyb14 = r.CheckBreak() 110885 } 110886 if yyb14 { 110887 r.ReadArrayEnd() 110888 return 110889 } 110890 r.ReadArrayElem() 110891 if r.TryDecodeAsNil() { 110892 x.Name = "" 110893 } else { 110894 x.Name = (string)(r.DecodeString()) 110895 } 110896 yyj14++ 110897 if yyhl14 { 110898 yyb14 = yyj14 > l 110899 } else { 110900 yyb14 = r.CheckBreak() 110901 } 110902 if yyb14 { 110903 r.ReadArrayEnd() 110904 return 110905 } 110906 r.ReadArrayElem() 110907 if r.TryDecodeAsNil() { 110908 x.QueryOptions.Region = "" 110909 } else { 110910 x.Region = (string)(r.DecodeString()) 110911 } 110912 yyj14++ 110913 if yyhl14 { 110914 yyb14 = yyj14 > l 110915 } else { 110916 yyb14 = r.CheckBreak() 110917 } 110918 if yyb14 { 110919 r.ReadArrayEnd() 110920 return 110921 } 110922 r.ReadArrayElem() 110923 if r.TryDecodeAsNil() { 110924 x.QueryOptions.Namespace = "" 110925 } else { 110926 x.Namespace = (string)(r.DecodeString()) 110927 } 110928 yyj14++ 110929 if yyhl14 { 110930 yyb14 = yyj14 > l 110931 } else { 110932 yyb14 = r.CheckBreak() 110933 } 110934 if yyb14 { 110935 r.ReadArrayEnd() 110936 return 110937 } 110938 r.ReadArrayElem() 110939 if r.TryDecodeAsNil() { 110940 x.QueryOptions.MinQueryIndex = 0 110941 } else { 110942 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 110943 } 110944 yyj14++ 110945 if yyhl14 { 110946 yyb14 = yyj14 > l 110947 } else { 110948 yyb14 = r.CheckBreak() 110949 } 110950 if yyb14 { 110951 r.ReadArrayEnd() 110952 return 110953 } 110954 r.ReadArrayElem() 110955 if r.TryDecodeAsNil() { 110956 x.QueryOptions.MaxQueryTime = 0 110957 } else { 110958 if false { 110959 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 110960 z.DecExtension(x.MaxQueryTime, yyxt20) 110961 } else { 110962 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 110963 } 110964 } 110965 yyj14++ 110966 if yyhl14 { 110967 yyb14 = yyj14 > l 110968 } else { 110969 yyb14 = r.CheckBreak() 110970 } 110971 if yyb14 { 110972 r.ReadArrayEnd() 110973 return 110974 } 110975 r.ReadArrayElem() 110976 if r.TryDecodeAsNil() { 110977 x.QueryOptions.AllowStale = false 110978 } else { 110979 x.AllowStale = (bool)(r.DecodeBool()) 110980 } 110981 yyj14++ 110982 if yyhl14 { 110983 yyb14 = yyj14 > l 110984 } else { 110985 yyb14 = r.CheckBreak() 110986 } 110987 if yyb14 { 110988 r.ReadArrayEnd() 110989 return 110990 } 110991 r.ReadArrayElem() 110992 if r.TryDecodeAsNil() { 110993 x.QueryOptions.Prefix = "" 110994 } else { 110995 x.Prefix = (string)(r.DecodeString()) 110996 } 110997 yyj14++ 110998 if yyhl14 { 110999 yyb14 = yyj14 > l 111000 } else { 111001 yyb14 = r.CheckBreak() 111002 } 111003 if yyb14 { 111004 r.ReadArrayEnd() 111005 return 111006 } 111007 r.ReadArrayElem() 111008 if r.TryDecodeAsNil() { 111009 x.QueryOptions.AuthToken = "" 111010 } else { 111011 x.AuthToken = (string)(r.DecodeString()) 111012 } 111013 yyj14++ 111014 if yyhl14 { 111015 yyb14 = yyj14 > l 111016 } else { 111017 yyb14 = r.CheckBreak() 111018 } 111019 if yyb14 { 111020 r.ReadArrayEnd() 111021 return 111022 } 111023 r.ReadArrayElem() 111024 if r.TryDecodeAsNil() { 111025 x.QueryOptions.InternalRpcInfo.Forwarded = false 111026 } else { 111027 x.Forwarded = (bool)(r.DecodeBool()) 111028 } 111029 for { 111030 yyj14++ 111031 if yyhl14 { 111032 yyb14 = yyj14 > l 111033 } else { 111034 yyb14 = r.CheckBreak() 111035 } 111036 if yyb14 { 111037 break 111038 } 111039 r.ReadArrayElem() 111040 z.DecStructFieldNotFound(yyj14-1, "") 111041 } 111042 r.ReadArrayEnd() 111043 } 111044 111045 func (x *ACLPolicySetRequest) CodecEncodeSelf(e *codec1978.Encoder) { 111046 var h codecSelfer100 111047 z, r := codec1978.GenHelperEncoder(e) 111048 _, _, _ = h, z, r 111049 if x == nil { 111050 r.EncodeNil() 111051 } else { 111052 if false { 111053 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 111054 z.EncExtension(x, yyxt1) 111055 } else { 111056 yysep2 := !z.EncBinary() 111057 yy2arr2 := z.EncBasicHandle().StructToArray 111058 _, _ = yysep2, yy2arr2 111059 const yyr2 bool = false // struct tag has 'toArray' 111060 if yyr2 || yy2arr2 { 111061 r.WriteArrayStart(9) 111062 } else { 111063 r.WriteMapStart(9) 111064 } 111065 if yyr2 || yy2arr2 { 111066 r.WriteArrayElem() 111067 if x.Names == nil { 111068 r.EncodeNil() 111069 } else { 111070 if false { 111071 } else { 111072 z.F.EncSliceStringV(x.Names, e) 111073 } 111074 } 111075 } else { 111076 r.WriteMapElemKey() 111077 if z.IsJSONHandle() { 111078 z.WriteStr("\"Names\"") 111079 } else { 111080 r.EncodeStringEnc(codecSelferCcUTF8100, `Names`) 111081 } 111082 r.WriteMapElemValue() 111083 if x.Names == nil { 111084 r.EncodeNil() 111085 } else { 111086 if false { 111087 } else { 111088 z.F.EncSliceStringV(x.Names, e) 111089 } 111090 } 111091 } 111092 if yyr2 || yy2arr2 { 111093 r.WriteArrayElem() 111094 if false { 111095 } else { 111096 if z.EncBasicHandle().StringToRaw { 111097 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 111098 } else { 111099 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 111100 } 111101 } 111102 } else { 111103 r.WriteMapElemKey() 111104 if z.IsJSONHandle() { 111105 z.WriteStr("\"Region\"") 111106 } else { 111107 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 111108 } 111109 r.WriteMapElemValue() 111110 if false { 111111 } else { 111112 if z.EncBasicHandle().StringToRaw { 111113 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 111114 } else { 111115 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 111116 } 111117 } 111118 } 111119 if yyr2 || yy2arr2 { 111120 r.WriteArrayElem() 111121 if false { 111122 } else { 111123 if z.EncBasicHandle().StringToRaw { 111124 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 111125 } else { 111126 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 111127 } 111128 } 111129 } else { 111130 r.WriteMapElemKey() 111131 if z.IsJSONHandle() { 111132 z.WriteStr("\"Namespace\"") 111133 } else { 111134 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 111135 } 111136 r.WriteMapElemValue() 111137 if false { 111138 } else { 111139 if z.EncBasicHandle().StringToRaw { 111140 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 111141 } else { 111142 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 111143 } 111144 } 111145 } 111146 if yyr2 || yy2arr2 { 111147 r.WriteArrayElem() 111148 if false { 111149 } else { 111150 r.EncodeUint(uint64(x.MinQueryIndex)) 111151 } 111152 } else { 111153 r.WriteMapElemKey() 111154 if z.IsJSONHandle() { 111155 z.WriteStr("\"MinQueryIndex\"") 111156 } else { 111157 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 111158 } 111159 r.WriteMapElemValue() 111160 if false { 111161 } else { 111162 r.EncodeUint(uint64(x.MinQueryIndex)) 111163 } 111164 } 111165 if yyr2 || yy2arr2 { 111166 r.WriteArrayElem() 111167 if false { 111168 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 111169 z.EncExtension(x.MaxQueryTime, yyxt16) 111170 } else { 111171 r.EncodeInt(int64(x.MaxQueryTime)) 111172 } 111173 } else { 111174 r.WriteMapElemKey() 111175 if z.IsJSONHandle() { 111176 z.WriteStr("\"MaxQueryTime\"") 111177 } else { 111178 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 111179 } 111180 r.WriteMapElemValue() 111181 if false { 111182 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 111183 z.EncExtension(x.MaxQueryTime, yyxt17) 111184 } else { 111185 r.EncodeInt(int64(x.MaxQueryTime)) 111186 } 111187 } 111188 if yyr2 || yy2arr2 { 111189 r.WriteArrayElem() 111190 if false { 111191 } else { 111192 r.EncodeBool(bool(x.AllowStale)) 111193 } 111194 } else { 111195 r.WriteMapElemKey() 111196 if z.IsJSONHandle() { 111197 z.WriteStr("\"AllowStale\"") 111198 } else { 111199 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 111200 } 111201 r.WriteMapElemValue() 111202 if false { 111203 } else { 111204 r.EncodeBool(bool(x.AllowStale)) 111205 } 111206 } 111207 if yyr2 || yy2arr2 { 111208 r.WriteArrayElem() 111209 if false { 111210 } else { 111211 if z.EncBasicHandle().StringToRaw { 111212 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 111213 } else { 111214 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 111215 } 111216 } 111217 } else { 111218 r.WriteMapElemKey() 111219 if z.IsJSONHandle() { 111220 z.WriteStr("\"Prefix\"") 111221 } else { 111222 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 111223 } 111224 r.WriteMapElemValue() 111225 if false { 111226 } else { 111227 if z.EncBasicHandle().StringToRaw { 111228 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 111229 } else { 111230 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 111231 } 111232 } 111233 } 111234 if yyr2 || yy2arr2 { 111235 r.WriteArrayElem() 111236 if false { 111237 } else { 111238 if z.EncBasicHandle().StringToRaw { 111239 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 111240 } else { 111241 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 111242 } 111243 } 111244 } else { 111245 r.WriteMapElemKey() 111246 if z.IsJSONHandle() { 111247 z.WriteStr("\"AuthToken\"") 111248 } else { 111249 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 111250 } 111251 r.WriteMapElemValue() 111252 if false { 111253 } else { 111254 if z.EncBasicHandle().StringToRaw { 111255 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 111256 } else { 111257 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 111258 } 111259 } 111260 } 111261 if yyr2 || yy2arr2 { 111262 r.WriteArrayElem() 111263 if false { 111264 } else { 111265 r.EncodeBool(bool(x.Forwarded)) 111266 } 111267 } else { 111268 r.WriteMapElemKey() 111269 if z.IsJSONHandle() { 111270 z.WriteStr("\"Forwarded\"") 111271 } else { 111272 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 111273 } 111274 r.WriteMapElemValue() 111275 if false { 111276 } else { 111277 r.EncodeBool(bool(x.Forwarded)) 111278 } 111279 } 111280 if yyr2 || yy2arr2 { 111281 r.WriteArrayEnd() 111282 } else { 111283 r.WriteMapEnd() 111284 } 111285 } 111286 } 111287 } 111288 111289 func (x *ACLPolicySetRequest) CodecDecodeSelf(d *codec1978.Decoder) { 111290 var h codecSelfer100 111291 z, r := codec1978.GenHelperDecoder(d) 111292 _, _, _ = h, z, r 111293 if false { 111294 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 111295 z.DecExtension(x, yyxt1) 111296 } else { 111297 yyct2 := r.ContainerType() 111298 if yyct2 == codecSelferValueTypeMap100 { 111299 yyl2 := r.ReadMapStart() 111300 if yyl2 == 0 { 111301 r.ReadMapEnd() 111302 } else { 111303 x.codecDecodeSelfFromMap(yyl2, d) 111304 } 111305 } else if yyct2 == codecSelferValueTypeArray100 { 111306 yyl2 := r.ReadArrayStart() 111307 if yyl2 == 0 { 111308 r.ReadArrayEnd() 111309 } else { 111310 x.codecDecodeSelfFromArray(yyl2, d) 111311 } 111312 } else { 111313 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 111314 } 111315 } 111316 } 111317 111318 func (x *ACLPolicySetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 111319 var h codecSelfer100 111320 z, r := codec1978.GenHelperDecoder(d) 111321 _, _, _ = h, z, r 111322 var yyhl3 bool = l >= 0 111323 for yyj3 := 0; ; yyj3++ { 111324 if yyhl3 { 111325 if yyj3 >= l { 111326 break 111327 } 111328 } else { 111329 if r.CheckBreak() { 111330 break 111331 } 111332 } 111333 r.ReadMapElemKey() 111334 yys3 := z.StringView(r.DecodeStringAsBytes()) 111335 r.ReadMapElemValue() 111336 switch yys3 { 111337 case "Names": 111338 if r.TryDecodeAsNil() { 111339 x.Names = nil 111340 } else { 111341 if false { 111342 } else { 111343 z.F.DecSliceStringX(&x.Names, d) 111344 } 111345 } 111346 case "Region": 111347 if r.TryDecodeAsNil() { 111348 x.QueryOptions.Region = "" 111349 } else { 111350 x.Region = (string)(r.DecodeString()) 111351 } 111352 case "Namespace": 111353 if r.TryDecodeAsNil() { 111354 x.QueryOptions.Namespace = "" 111355 } else { 111356 x.Namespace = (string)(r.DecodeString()) 111357 } 111358 case "MinQueryIndex": 111359 if r.TryDecodeAsNil() { 111360 x.QueryOptions.MinQueryIndex = 0 111361 } else { 111362 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 111363 } 111364 case "MaxQueryTime": 111365 if r.TryDecodeAsNil() { 111366 x.QueryOptions.MaxQueryTime = 0 111367 } else { 111368 if false { 111369 } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { 111370 z.DecExtension(x.MaxQueryTime, yyxt10) 111371 } else { 111372 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 111373 } 111374 } 111375 case "AllowStale": 111376 if r.TryDecodeAsNil() { 111377 x.QueryOptions.AllowStale = false 111378 } else { 111379 x.AllowStale = (bool)(r.DecodeBool()) 111380 } 111381 case "Prefix": 111382 if r.TryDecodeAsNil() { 111383 x.QueryOptions.Prefix = "" 111384 } else { 111385 x.Prefix = (string)(r.DecodeString()) 111386 } 111387 case "AuthToken": 111388 if r.TryDecodeAsNil() { 111389 x.QueryOptions.AuthToken = "" 111390 } else { 111391 x.AuthToken = (string)(r.DecodeString()) 111392 } 111393 case "Forwarded": 111394 if r.TryDecodeAsNil() { 111395 x.QueryOptions.InternalRpcInfo.Forwarded = false 111396 } else { 111397 x.Forwarded = (bool)(r.DecodeBool()) 111398 } 111399 default: 111400 z.DecStructFieldNotFound(-1, yys3) 111401 } // end switch yys3 111402 } // end for yyj3 111403 r.ReadMapEnd() 111404 } 111405 111406 func (x *ACLPolicySetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 111407 var h codecSelfer100 111408 z, r := codec1978.GenHelperDecoder(d) 111409 _, _, _ = h, z, r 111410 var yyj15 int 111411 var yyb15 bool 111412 var yyhl15 bool = l >= 0 111413 yyj15++ 111414 if yyhl15 { 111415 yyb15 = yyj15 > l 111416 } else { 111417 yyb15 = r.CheckBreak() 111418 } 111419 if yyb15 { 111420 r.ReadArrayEnd() 111421 return 111422 } 111423 r.ReadArrayElem() 111424 if r.TryDecodeAsNil() { 111425 x.Names = nil 111426 } else { 111427 if false { 111428 } else { 111429 z.F.DecSliceStringX(&x.Names, d) 111430 } 111431 } 111432 yyj15++ 111433 if yyhl15 { 111434 yyb15 = yyj15 > l 111435 } else { 111436 yyb15 = r.CheckBreak() 111437 } 111438 if yyb15 { 111439 r.ReadArrayEnd() 111440 return 111441 } 111442 r.ReadArrayElem() 111443 if r.TryDecodeAsNil() { 111444 x.QueryOptions.Region = "" 111445 } else { 111446 x.Region = (string)(r.DecodeString()) 111447 } 111448 yyj15++ 111449 if yyhl15 { 111450 yyb15 = yyj15 > l 111451 } else { 111452 yyb15 = r.CheckBreak() 111453 } 111454 if yyb15 { 111455 r.ReadArrayEnd() 111456 return 111457 } 111458 r.ReadArrayElem() 111459 if r.TryDecodeAsNil() { 111460 x.QueryOptions.Namespace = "" 111461 } else { 111462 x.Namespace = (string)(r.DecodeString()) 111463 } 111464 yyj15++ 111465 if yyhl15 { 111466 yyb15 = yyj15 > l 111467 } else { 111468 yyb15 = r.CheckBreak() 111469 } 111470 if yyb15 { 111471 r.ReadArrayEnd() 111472 return 111473 } 111474 r.ReadArrayElem() 111475 if r.TryDecodeAsNil() { 111476 x.QueryOptions.MinQueryIndex = 0 111477 } else { 111478 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 111479 } 111480 yyj15++ 111481 if yyhl15 { 111482 yyb15 = yyj15 > l 111483 } else { 111484 yyb15 = r.CheckBreak() 111485 } 111486 if yyb15 { 111487 r.ReadArrayEnd() 111488 return 111489 } 111490 r.ReadArrayElem() 111491 if r.TryDecodeAsNil() { 111492 x.QueryOptions.MaxQueryTime = 0 111493 } else { 111494 if false { 111495 } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { 111496 z.DecExtension(x.MaxQueryTime, yyxt22) 111497 } else { 111498 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 111499 } 111500 } 111501 yyj15++ 111502 if yyhl15 { 111503 yyb15 = yyj15 > l 111504 } else { 111505 yyb15 = r.CheckBreak() 111506 } 111507 if yyb15 { 111508 r.ReadArrayEnd() 111509 return 111510 } 111511 r.ReadArrayElem() 111512 if r.TryDecodeAsNil() { 111513 x.QueryOptions.AllowStale = false 111514 } else { 111515 x.AllowStale = (bool)(r.DecodeBool()) 111516 } 111517 yyj15++ 111518 if yyhl15 { 111519 yyb15 = yyj15 > l 111520 } else { 111521 yyb15 = r.CheckBreak() 111522 } 111523 if yyb15 { 111524 r.ReadArrayEnd() 111525 return 111526 } 111527 r.ReadArrayElem() 111528 if r.TryDecodeAsNil() { 111529 x.QueryOptions.Prefix = "" 111530 } else { 111531 x.Prefix = (string)(r.DecodeString()) 111532 } 111533 yyj15++ 111534 if yyhl15 { 111535 yyb15 = yyj15 > l 111536 } else { 111537 yyb15 = r.CheckBreak() 111538 } 111539 if yyb15 { 111540 r.ReadArrayEnd() 111541 return 111542 } 111543 r.ReadArrayElem() 111544 if r.TryDecodeAsNil() { 111545 x.QueryOptions.AuthToken = "" 111546 } else { 111547 x.AuthToken = (string)(r.DecodeString()) 111548 } 111549 yyj15++ 111550 if yyhl15 { 111551 yyb15 = yyj15 > l 111552 } else { 111553 yyb15 = r.CheckBreak() 111554 } 111555 if yyb15 { 111556 r.ReadArrayEnd() 111557 return 111558 } 111559 r.ReadArrayElem() 111560 if r.TryDecodeAsNil() { 111561 x.QueryOptions.InternalRpcInfo.Forwarded = false 111562 } else { 111563 x.Forwarded = (bool)(r.DecodeBool()) 111564 } 111565 for { 111566 yyj15++ 111567 if yyhl15 { 111568 yyb15 = yyj15 > l 111569 } else { 111570 yyb15 = r.CheckBreak() 111571 } 111572 if yyb15 { 111573 break 111574 } 111575 r.ReadArrayElem() 111576 z.DecStructFieldNotFound(yyj15-1, "") 111577 } 111578 r.ReadArrayEnd() 111579 } 111580 111581 func (x *ACLPolicyListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 111582 var h codecSelfer100 111583 z, r := codec1978.GenHelperEncoder(e) 111584 _, _, _ = h, z, r 111585 if x == nil { 111586 r.EncodeNil() 111587 } else { 111588 if false { 111589 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 111590 z.EncExtension(x, yyxt1) 111591 } else { 111592 yysep2 := !z.EncBinary() 111593 yy2arr2 := z.EncBasicHandle().StructToArray 111594 _, _ = yysep2, yy2arr2 111595 const yyr2 bool = false // struct tag has 'toArray' 111596 if yyr2 || yy2arr2 { 111597 r.WriteArrayStart(4) 111598 } else { 111599 r.WriteMapStart(4) 111600 } 111601 if yyr2 || yy2arr2 { 111602 r.WriteArrayElem() 111603 if x.Policies == nil { 111604 r.EncodeNil() 111605 } else { 111606 if false { 111607 } else { 111608 h.encSlicePtrtoACLPolicyListStub(([]*ACLPolicyListStub)(x.Policies), e) 111609 } 111610 } 111611 } else { 111612 r.WriteMapElemKey() 111613 if z.IsJSONHandle() { 111614 z.WriteStr("\"Policies\"") 111615 } else { 111616 r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) 111617 } 111618 r.WriteMapElemValue() 111619 if x.Policies == nil { 111620 r.EncodeNil() 111621 } else { 111622 if false { 111623 } else { 111624 h.encSlicePtrtoACLPolicyListStub(([]*ACLPolicyListStub)(x.Policies), e) 111625 } 111626 } 111627 } 111628 if yyr2 || yy2arr2 { 111629 r.WriteArrayElem() 111630 if false { 111631 } else { 111632 r.EncodeUint(uint64(x.Index)) 111633 } 111634 } else { 111635 r.WriteMapElemKey() 111636 if z.IsJSONHandle() { 111637 z.WriteStr("\"Index\"") 111638 } else { 111639 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 111640 } 111641 r.WriteMapElemValue() 111642 if false { 111643 } else { 111644 r.EncodeUint(uint64(x.Index)) 111645 } 111646 } 111647 if yyr2 || yy2arr2 { 111648 r.WriteArrayElem() 111649 if false { 111650 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 111651 z.EncExtension(x.LastContact, yyxt10) 111652 } else { 111653 r.EncodeInt(int64(x.LastContact)) 111654 } 111655 } else { 111656 r.WriteMapElemKey() 111657 if z.IsJSONHandle() { 111658 z.WriteStr("\"LastContact\"") 111659 } else { 111660 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 111661 } 111662 r.WriteMapElemValue() 111663 if false { 111664 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 111665 z.EncExtension(x.LastContact, yyxt11) 111666 } else { 111667 r.EncodeInt(int64(x.LastContact)) 111668 } 111669 } 111670 if yyr2 || yy2arr2 { 111671 r.WriteArrayElem() 111672 if false { 111673 } else { 111674 r.EncodeBool(bool(x.KnownLeader)) 111675 } 111676 } else { 111677 r.WriteMapElemKey() 111678 if z.IsJSONHandle() { 111679 z.WriteStr("\"KnownLeader\"") 111680 } else { 111681 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 111682 } 111683 r.WriteMapElemValue() 111684 if false { 111685 } else { 111686 r.EncodeBool(bool(x.KnownLeader)) 111687 } 111688 } 111689 if yyr2 || yy2arr2 { 111690 r.WriteArrayEnd() 111691 } else { 111692 r.WriteMapEnd() 111693 } 111694 } 111695 } 111696 } 111697 111698 func (x *ACLPolicyListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 111699 var h codecSelfer100 111700 z, r := codec1978.GenHelperDecoder(d) 111701 _, _, _ = h, z, r 111702 if false { 111703 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 111704 z.DecExtension(x, yyxt1) 111705 } else { 111706 yyct2 := r.ContainerType() 111707 if yyct2 == codecSelferValueTypeMap100 { 111708 yyl2 := r.ReadMapStart() 111709 if yyl2 == 0 { 111710 r.ReadMapEnd() 111711 } else { 111712 x.codecDecodeSelfFromMap(yyl2, d) 111713 } 111714 } else if yyct2 == codecSelferValueTypeArray100 { 111715 yyl2 := r.ReadArrayStart() 111716 if yyl2 == 0 { 111717 r.ReadArrayEnd() 111718 } else { 111719 x.codecDecodeSelfFromArray(yyl2, d) 111720 } 111721 } else { 111722 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 111723 } 111724 } 111725 } 111726 111727 func (x *ACLPolicyListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 111728 var h codecSelfer100 111729 z, r := codec1978.GenHelperDecoder(d) 111730 _, _, _ = h, z, r 111731 var yyhl3 bool = l >= 0 111732 for yyj3 := 0; ; yyj3++ { 111733 if yyhl3 { 111734 if yyj3 >= l { 111735 break 111736 } 111737 } else { 111738 if r.CheckBreak() { 111739 break 111740 } 111741 } 111742 r.ReadMapElemKey() 111743 yys3 := z.StringView(r.DecodeStringAsBytes()) 111744 r.ReadMapElemValue() 111745 switch yys3 { 111746 case "Policies": 111747 if r.TryDecodeAsNil() { 111748 x.Policies = nil 111749 } else { 111750 if false { 111751 } else { 111752 h.decSlicePtrtoACLPolicyListStub((*[]*ACLPolicyListStub)(&x.Policies), d) 111753 } 111754 } 111755 case "Index": 111756 if r.TryDecodeAsNil() { 111757 x.QueryMeta.Index = 0 111758 } else { 111759 x.Index = (uint64)(r.DecodeUint64()) 111760 } 111761 case "LastContact": 111762 if r.TryDecodeAsNil() { 111763 x.QueryMeta.LastContact = 0 111764 } else { 111765 if false { 111766 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 111767 z.DecExtension(x.LastContact, yyxt8) 111768 } else { 111769 x.LastContact = (time.Duration)(r.DecodeInt64()) 111770 } 111771 } 111772 case "KnownLeader": 111773 if r.TryDecodeAsNil() { 111774 x.QueryMeta.KnownLeader = false 111775 } else { 111776 x.KnownLeader = (bool)(r.DecodeBool()) 111777 } 111778 default: 111779 z.DecStructFieldNotFound(-1, yys3) 111780 } // end switch yys3 111781 } // end for yyj3 111782 r.ReadMapEnd() 111783 } 111784 111785 func (x *ACLPolicyListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 111786 var h codecSelfer100 111787 z, r := codec1978.GenHelperDecoder(d) 111788 _, _, _ = h, z, r 111789 var yyj10 int 111790 var yyb10 bool 111791 var yyhl10 bool = l >= 0 111792 yyj10++ 111793 if yyhl10 { 111794 yyb10 = yyj10 > l 111795 } else { 111796 yyb10 = r.CheckBreak() 111797 } 111798 if yyb10 { 111799 r.ReadArrayEnd() 111800 return 111801 } 111802 r.ReadArrayElem() 111803 if r.TryDecodeAsNil() { 111804 x.Policies = nil 111805 } else { 111806 if false { 111807 } else { 111808 h.decSlicePtrtoACLPolicyListStub((*[]*ACLPolicyListStub)(&x.Policies), d) 111809 } 111810 } 111811 yyj10++ 111812 if yyhl10 { 111813 yyb10 = yyj10 > l 111814 } else { 111815 yyb10 = r.CheckBreak() 111816 } 111817 if yyb10 { 111818 r.ReadArrayEnd() 111819 return 111820 } 111821 r.ReadArrayElem() 111822 if r.TryDecodeAsNil() { 111823 x.QueryMeta.Index = 0 111824 } else { 111825 x.Index = (uint64)(r.DecodeUint64()) 111826 } 111827 yyj10++ 111828 if yyhl10 { 111829 yyb10 = yyj10 > l 111830 } else { 111831 yyb10 = r.CheckBreak() 111832 } 111833 if yyb10 { 111834 r.ReadArrayEnd() 111835 return 111836 } 111837 r.ReadArrayElem() 111838 if r.TryDecodeAsNil() { 111839 x.QueryMeta.LastContact = 0 111840 } else { 111841 if false { 111842 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 111843 z.DecExtension(x.LastContact, yyxt15) 111844 } else { 111845 x.LastContact = (time.Duration)(r.DecodeInt64()) 111846 } 111847 } 111848 yyj10++ 111849 if yyhl10 { 111850 yyb10 = yyj10 > l 111851 } else { 111852 yyb10 = r.CheckBreak() 111853 } 111854 if yyb10 { 111855 r.ReadArrayEnd() 111856 return 111857 } 111858 r.ReadArrayElem() 111859 if r.TryDecodeAsNil() { 111860 x.QueryMeta.KnownLeader = false 111861 } else { 111862 x.KnownLeader = (bool)(r.DecodeBool()) 111863 } 111864 for { 111865 yyj10++ 111866 if yyhl10 { 111867 yyb10 = yyj10 > l 111868 } else { 111869 yyb10 = r.CheckBreak() 111870 } 111871 if yyb10 { 111872 break 111873 } 111874 r.ReadArrayElem() 111875 z.DecStructFieldNotFound(yyj10-1, "") 111876 } 111877 r.ReadArrayEnd() 111878 } 111879 111880 func (x *SingleACLPolicyResponse) CodecEncodeSelf(e *codec1978.Encoder) { 111881 var h codecSelfer100 111882 z, r := codec1978.GenHelperEncoder(e) 111883 _, _, _ = h, z, r 111884 if x == nil { 111885 r.EncodeNil() 111886 } else { 111887 if false { 111888 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 111889 z.EncExtension(x, yyxt1) 111890 } else { 111891 yysep2 := !z.EncBinary() 111892 yy2arr2 := z.EncBasicHandle().StructToArray 111893 _, _ = yysep2, yy2arr2 111894 const yyr2 bool = false // struct tag has 'toArray' 111895 if yyr2 || yy2arr2 { 111896 r.WriteArrayStart(4) 111897 } else { 111898 r.WriteMapStart(4) 111899 } 111900 var yyn3 bool 111901 if x.Policy == nil { 111902 yyn3 = true 111903 goto LABEL3 111904 } 111905 LABEL3: 111906 if yyr2 || yy2arr2 { 111907 if yyn3 { 111908 r.WriteArrayElem() 111909 r.EncodeNil() 111910 } else { 111911 r.WriteArrayElem() 111912 if x.Policy == nil { 111913 r.EncodeNil() 111914 } else { 111915 x.Policy.CodecEncodeSelf(e) 111916 } 111917 } 111918 } else { 111919 r.WriteMapElemKey() 111920 if z.IsJSONHandle() { 111921 z.WriteStr("\"Policy\"") 111922 } else { 111923 r.EncodeStringEnc(codecSelferCcUTF8100, `Policy`) 111924 } 111925 r.WriteMapElemValue() 111926 if yyn3 { 111927 r.EncodeNil() 111928 } else { 111929 if x.Policy == nil { 111930 r.EncodeNil() 111931 } else { 111932 x.Policy.CodecEncodeSelf(e) 111933 } 111934 } 111935 } 111936 if yyr2 || yy2arr2 { 111937 r.WriteArrayElem() 111938 if false { 111939 } else { 111940 r.EncodeUint(uint64(x.Index)) 111941 } 111942 } else { 111943 r.WriteMapElemKey() 111944 if z.IsJSONHandle() { 111945 z.WriteStr("\"Index\"") 111946 } else { 111947 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 111948 } 111949 r.WriteMapElemValue() 111950 if false { 111951 } else { 111952 r.EncodeUint(uint64(x.Index)) 111953 } 111954 } 111955 if yyr2 || yy2arr2 { 111956 r.WriteArrayElem() 111957 if false { 111958 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 111959 z.EncExtension(x.LastContact, yyxt10) 111960 } else { 111961 r.EncodeInt(int64(x.LastContact)) 111962 } 111963 } else { 111964 r.WriteMapElemKey() 111965 if z.IsJSONHandle() { 111966 z.WriteStr("\"LastContact\"") 111967 } else { 111968 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 111969 } 111970 r.WriteMapElemValue() 111971 if false { 111972 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 111973 z.EncExtension(x.LastContact, yyxt11) 111974 } else { 111975 r.EncodeInt(int64(x.LastContact)) 111976 } 111977 } 111978 if yyr2 || yy2arr2 { 111979 r.WriteArrayElem() 111980 if false { 111981 } else { 111982 r.EncodeBool(bool(x.KnownLeader)) 111983 } 111984 } else { 111985 r.WriteMapElemKey() 111986 if z.IsJSONHandle() { 111987 z.WriteStr("\"KnownLeader\"") 111988 } else { 111989 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 111990 } 111991 r.WriteMapElemValue() 111992 if false { 111993 } else { 111994 r.EncodeBool(bool(x.KnownLeader)) 111995 } 111996 } 111997 if yyr2 || yy2arr2 { 111998 r.WriteArrayEnd() 111999 } else { 112000 r.WriteMapEnd() 112001 } 112002 } 112003 } 112004 } 112005 112006 func (x *SingleACLPolicyResponse) CodecDecodeSelf(d *codec1978.Decoder) { 112007 var h codecSelfer100 112008 z, r := codec1978.GenHelperDecoder(d) 112009 _, _, _ = h, z, r 112010 if false { 112011 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 112012 z.DecExtension(x, yyxt1) 112013 } else { 112014 yyct2 := r.ContainerType() 112015 if yyct2 == codecSelferValueTypeMap100 { 112016 yyl2 := r.ReadMapStart() 112017 if yyl2 == 0 { 112018 r.ReadMapEnd() 112019 } else { 112020 x.codecDecodeSelfFromMap(yyl2, d) 112021 } 112022 } else if yyct2 == codecSelferValueTypeArray100 { 112023 yyl2 := r.ReadArrayStart() 112024 if yyl2 == 0 { 112025 r.ReadArrayEnd() 112026 } else { 112027 x.codecDecodeSelfFromArray(yyl2, d) 112028 } 112029 } else { 112030 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 112031 } 112032 } 112033 } 112034 112035 func (x *SingleACLPolicyResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 112036 var h codecSelfer100 112037 z, r := codec1978.GenHelperDecoder(d) 112038 _, _, _ = h, z, r 112039 var yyhl3 bool = l >= 0 112040 for yyj3 := 0; ; yyj3++ { 112041 if yyhl3 { 112042 if yyj3 >= l { 112043 break 112044 } 112045 } else { 112046 if r.CheckBreak() { 112047 break 112048 } 112049 } 112050 r.ReadMapElemKey() 112051 yys3 := z.StringView(r.DecodeStringAsBytes()) 112052 r.ReadMapElemValue() 112053 switch yys3 { 112054 case "Policy": 112055 if r.TryDecodeAsNil() { 112056 if true && x.Policy != nil { 112057 x.Policy = nil 112058 } 112059 } else { 112060 if x.Policy == nil { 112061 x.Policy = new(ACLPolicy) 112062 } 112063 112064 x.Policy.CodecDecodeSelf(d) 112065 } 112066 case "Index": 112067 if r.TryDecodeAsNil() { 112068 x.QueryMeta.Index = 0 112069 } else { 112070 x.Index = (uint64)(r.DecodeUint64()) 112071 } 112072 case "LastContact": 112073 if r.TryDecodeAsNil() { 112074 x.QueryMeta.LastContact = 0 112075 } else { 112076 if false { 112077 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 112078 z.DecExtension(x.LastContact, yyxt7) 112079 } else { 112080 x.LastContact = (time.Duration)(r.DecodeInt64()) 112081 } 112082 } 112083 case "KnownLeader": 112084 if r.TryDecodeAsNil() { 112085 x.QueryMeta.KnownLeader = false 112086 } else { 112087 x.KnownLeader = (bool)(r.DecodeBool()) 112088 } 112089 default: 112090 z.DecStructFieldNotFound(-1, yys3) 112091 } // end switch yys3 112092 } // end for yyj3 112093 r.ReadMapEnd() 112094 } 112095 112096 func (x *SingleACLPolicyResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 112097 var h codecSelfer100 112098 z, r := codec1978.GenHelperDecoder(d) 112099 _, _, _ = h, z, r 112100 var yyj9 int 112101 var yyb9 bool 112102 var yyhl9 bool = l >= 0 112103 yyj9++ 112104 if yyhl9 { 112105 yyb9 = yyj9 > l 112106 } else { 112107 yyb9 = r.CheckBreak() 112108 } 112109 if yyb9 { 112110 r.ReadArrayEnd() 112111 return 112112 } 112113 r.ReadArrayElem() 112114 if r.TryDecodeAsNil() { 112115 if true && x.Policy != nil { 112116 x.Policy = nil 112117 } 112118 } else { 112119 if x.Policy == nil { 112120 x.Policy = new(ACLPolicy) 112121 } 112122 112123 x.Policy.CodecDecodeSelf(d) 112124 } 112125 yyj9++ 112126 if yyhl9 { 112127 yyb9 = yyj9 > l 112128 } else { 112129 yyb9 = r.CheckBreak() 112130 } 112131 if yyb9 { 112132 r.ReadArrayEnd() 112133 return 112134 } 112135 r.ReadArrayElem() 112136 if r.TryDecodeAsNil() { 112137 x.QueryMeta.Index = 0 112138 } else { 112139 x.Index = (uint64)(r.DecodeUint64()) 112140 } 112141 yyj9++ 112142 if yyhl9 { 112143 yyb9 = yyj9 > l 112144 } else { 112145 yyb9 = r.CheckBreak() 112146 } 112147 if yyb9 { 112148 r.ReadArrayEnd() 112149 return 112150 } 112151 r.ReadArrayElem() 112152 if r.TryDecodeAsNil() { 112153 x.QueryMeta.LastContact = 0 112154 } else { 112155 if false { 112156 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 112157 z.DecExtension(x.LastContact, yyxt13) 112158 } else { 112159 x.LastContact = (time.Duration)(r.DecodeInt64()) 112160 } 112161 } 112162 yyj9++ 112163 if yyhl9 { 112164 yyb9 = yyj9 > l 112165 } else { 112166 yyb9 = r.CheckBreak() 112167 } 112168 if yyb9 { 112169 r.ReadArrayEnd() 112170 return 112171 } 112172 r.ReadArrayElem() 112173 if r.TryDecodeAsNil() { 112174 x.QueryMeta.KnownLeader = false 112175 } else { 112176 x.KnownLeader = (bool)(r.DecodeBool()) 112177 } 112178 for { 112179 yyj9++ 112180 if yyhl9 { 112181 yyb9 = yyj9 > l 112182 } else { 112183 yyb9 = r.CheckBreak() 112184 } 112185 if yyb9 { 112186 break 112187 } 112188 r.ReadArrayElem() 112189 z.DecStructFieldNotFound(yyj9-1, "") 112190 } 112191 r.ReadArrayEnd() 112192 } 112193 112194 func (x *ACLPolicySetResponse) CodecEncodeSelf(e *codec1978.Encoder) { 112195 var h codecSelfer100 112196 z, r := codec1978.GenHelperEncoder(e) 112197 _, _, _ = h, z, r 112198 if x == nil { 112199 r.EncodeNil() 112200 } else { 112201 if false { 112202 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 112203 z.EncExtension(x, yyxt1) 112204 } else { 112205 yysep2 := !z.EncBinary() 112206 yy2arr2 := z.EncBasicHandle().StructToArray 112207 _, _ = yysep2, yy2arr2 112208 const yyr2 bool = false // struct tag has 'toArray' 112209 if yyr2 || yy2arr2 { 112210 r.WriteArrayStart(4) 112211 } else { 112212 r.WriteMapStart(4) 112213 } 112214 if yyr2 || yy2arr2 { 112215 r.WriteArrayElem() 112216 if x.Policies == nil { 112217 r.EncodeNil() 112218 } else { 112219 if false { 112220 } else { 112221 h.encMapstringPtrtoACLPolicy((map[string]*ACLPolicy)(x.Policies), e) 112222 } 112223 } 112224 } else { 112225 r.WriteMapElemKey() 112226 if z.IsJSONHandle() { 112227 z.WriteStr("\"Policies\"") 112228 } else { 112229 r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) 112230 } 112231 r.WriteMapElemValue() 112232 if x.Policies == nil { 112233 r.EncodeNil() 112234 } else { 112235 if false { 112236 } else { 112237 h.encMapstringPtrtoACLPolicy((map[string]*ACLPolicy)(x.Policies), e) 112238 } 112239 } 112240 } 112241 if yyr2 || yy2arr2 { 112242 r.WriteArrayElem() 112243 if false { 112244 } else { 112245 r.EncodeUint(uint64(x.Index)) 112246 } 112247 } else { 112248 r.WriteMapElemKey() 112249 if z.IsJSONHandle() { 112250 z.WriteStr("\"Index\"") 112251 } else { 112252 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 112253 } 112254 r.WriteMapElemValue() 112255 if false { 112256 } else { 112257 r.EncodeUint(uint64(x.Index)) 112258 } 112259 } 112260 if yyr2 || yy2arr2 { 112261 r.WriteArrayElem() 112262 if false { 112263 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 112264 z.EncExtension(x.LastContact, yyxt10) 112265 } else { 112266 r.EncodeInt(int64(x.LastContact)) 112267 } 112268 } else { 112269 r.WriteMapElemKey() 112270 if z.IsJSONHandle() { 112271 z.WriteStr("\"LastContact\"") 112272 } else { 112273 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 112274 } 112275 r.WriteMapElemValue() 112276 if false { 112277 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 112278 z.EncExtension(x.LastContact, yyxt11) 112279 } else { 112280 r.EncodeInt(int64(x.LastContact)) 112281 } 112282 } 112283 if yyr2 || yy2arr2 { 112284 r.WriteArrayElem() 112285 if false { 112286 } else { 112287 r.EncodeBool(bool(x.KnownLeader)) 112288 } 112289 } else { 112290 r.WriteMapElemKey() 112291 if z.IsJSONHandle() { 112292 z.WriteStr("\"KnownLeader\"") 112293 } else { 112294 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 112295 } 112296 r.WriteMapElemValue() 112297 if false { 112298 } else { 112299 r.EncodeBool(bool(x.KnownLeader)) 112300 } 112301 } 112302 if yyr2 || yy2arr2 { 112303 r.WriteArrayEnd() 112304 } else { 112305 r.WriteMapEnd() 112306 } 112307 } 112308 } 112309 } 112310 112311 func (x *ACLPolicySetResponse) CodecDecodeSelf(d *codec1978.Decoder) { 112312 var h codecSelfer100 112313 z, r := codec1978.GenHelperDecoder(d) 112314 _, _, _ = h, z, r 112315 if false { 112316 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 112317 z.DecExtension(x, yyxt1) 112318 } else { 112319 yyct2 := r.ContainerType() 112320 if yyct2 == codecSelferValueTypeMap100 { 112321 yyl2 := r.ReadMapStart() 112322 if yyl2 == 0 { 112323 r.ReadMapEnd() 112324 } else { 112325 x.codecDecodeSelfFromMap(yyl2, d) 112326 } 112327 } else if yyct2 == codecSelferValueTypeArray100 { 112328 yyl2 := r.ReadArrayStart() 112329 if yyl2 == 0 { 112330 r.ReadArrayEnd() 112331 } else { 112332 x.codecDecodeSelfFromArray(yyl2, d) 112333 } 112334 } else { 112335 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 112336 } 112337 } 112338 } 112339 112340 func (x *ACLPolicySetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 112341 var h codecSelfer100 112342 z, r := codec1978.GenHelperDecoder(d) 112343 _, _, _ = h, z, r 112344 var yyhl3 bool = l >= 0 112345 for yyj3 := 0; ; yyj3++ { 112346 if yyhl3 { 112347 if yyj3 >= l { 112348 break 112349 } 112350 } else { 112351 if r.CheckBreak() { 112352 break 112353 } 112354 } 112355 r.ReadMapElemKey() 112356 yys3 := z.StringView(r.DecodeStringAsBytes()) 112357 r.ReadMapElemValue() 112358 switch yys3 { 112359 case "Policies": 112360 if r.TryDecodeAsNil() { 112361 x.Policies = nil 112362 } else { 112363 if false { 112364 } else { 112365 h.decMapstringPtrtoACLPolicy((*map[string]*ACLPolicy)(&x.Policies), d) 112366 } 112367 } 112368 case "Index": 112369 if r.TryDecodeAsNil() { 112370 x.QueryMeta.Index = 0 112371 } else { 112372 x.Index = (uint64)(r.DecodeUint64()) 112373 } 112374 case "LastContact": 112375 if r.TryDecodeAsNil() { 112376 x.QueryMeta.LastContact = 0 112377 } else { 112378 if false { 112379 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 112380 z.DecExtension(x.LastContact, yyxt8) 112381 } else { 112382 x.LastContact = (time.Duration)(r.DecodeInt64()) 112383 } 112384 } 112385 case "KnownLeader": 112386 if r.TryDecodeAsNil() { 112387 x.QueryMeta.KnownLeader = false 112388 } else { 112389 x.KnownLeader = (bool)(r.DecodeBool()) 112390 } 112391 default: 112392 z.DecStructFieldNotFound(-1, yys3) 112393 } // end switch yys3 112394 } // end for yyj3 112395 r.ReadMapEnd() 112396 } 112397 112398 func (x *ACLPolicySetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 112399 var h codecSelfer100 112400 z, r := codec1978.GenHelperDecoder(d) 112401 _, _, _ = h, z, r 112402 var yyj10 int 112403 var yyb10 bool 112404 var yyhl10 bool = l >= 0 112405 yyj10++ 112406 if yyhl10 { 112407 yyb10 = yyj10 > l 112408 } else { 112409 yyb10 = r.CheckBreak() 112410 } 112411 if yyb10 { 112412 r.ReadArrayEnd() 112413 return 112414 } 112415 r.ReadArrayElem() 112416 if r.TryDecodeAsNil() { 112417 x.Policies = nil 112418 } else { 112419 if false { 112420 } else { 112421 h.decMapstringPtrtoACLPolicy((*map[string]*ACLPolicy)(&x.Policies), d) 112422 } 112423 } 112424 yyj10++ 112425 if yyhl10 { 112426 yyb10 = yyj10 > l 112427 } else { 112428 yyb10 = r.CheckBreak() 112429 } 112430 if yyb10 { 112431 r.ReadArrayEnd() 112432 return 112433 } 112434 r.ReadArrayElem() 112435 if r.TryDecodeAsNil() { 112436 x.QueryMeta.Index = 0 112437 } else { 112438 x.Index = (uint64)(r.DecodeUint64()) 112439 } 112440 yyj10++ 112441 if yyhl10 { 112442 yyb10 = yyj10 > l 112443 } else { 112444 yyb10 = r.CheckBreak() 112445 } 112446 if yyb10 { 112447 r.ReadArrayEnd() 112448 return 112449 } 112450 r.ReadArrayElem() 112451 if r.TryDecodeAsNil() { 112452 x.QueryMeta.LastContact = 0 112453 } else { 112454 if false { 112455 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 112456 z.DecExtension(x.LastContact, yyxt15) 112457 } else { 112458 x.LastContact = (time.Duration)(r.DecodeInt64()) 112459 } 112460 } 112461 yyj10++ 112462 if yyhl10 { 112463 yyb10 = yyj10 > l 112464 } else { 112465 yyb10 = r.CheckBreak() 112466 } 112467 if yyb10 { 112468 r.ReadArrayEnd() 112469 return 112470 } 112471 r.ReadArrayElem() 112472 if r.TryDecodeAsNil() { 112473 x.QueryMeta.KnownLeader = false 112474 } else { 112475 x.KnownLeader = (bool)(r.DecodeBool()) 112476 } 112477 for { 112478 yyj10++ 112479 if yyhl10 { 112480 yyb10 = yyj10 > l 112481 } else { 112482 yyb10 = r.CheckBreak() 112483 } 112484 if yyb10 { 112485 break 112486 } 112487 r.ReadArrayElem() 112488 z.DecStructFieldNotFound(yyj10-1, "") 112489 } 112490 r.ReadArrayEnd() 112491 } 112492 112493 func (x *ACLPolicyDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { 112494 var h codecSelfer100 112495 z, r := codec1978.GenHelperEncoder(e) 112496 _, _, _ = h, z, r 112497 if x == nil { 112498 r.EncodeNil() 112499 } else { 112500 if false { 112501 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 112502 z.EncExtension(x, yyxt1) 112503 } else { 112504 yysep2 := !z.EncBinary() 112505 yy2arr2 := z.EncBasicHandle().StructToArray 112506 _, _ = yysep2, yy2arr2 112507 const yyr2 bool = false // struct tag has 'toArray' 112508 if yyr2 || yy2arr2 { 112509 r.WriteArrayStart(5) 112510 } else { 112511 r.WriteMapStart(5) 112512 } 112513 if yyr2 || yy2arr2 { 112514 r.WriteArrayElem() 112515 if x.Names == nil { 112516 r.EncodeNil() 112517 } else { 112518 if false { 112519 } else { 112520 z.F.EncSliceStringV(x.Names, e) 112521 } 112522 } 112523 } else { 112524 r.WriteMapElemKey() 112525 if z.IsJSONHandle() { 112526 z.WriteStr("\"Names\"") 112527 } else { 112528 r.EncodeStringEnc(codecSelferCcUTF8100, `Names`) 112529 } 112530 r.WriteMapElemValue() 112531 if x.Names == nil { 112532 r.EncodeNil() 112533 } else { 112534 if false { 112535 } else { 112536 z.F.EncSliceStringV(x.Names, e) 112537 } 112538 } 112539 } 112540 if yyr2 || yy2arr2 { 112541 r.WriteArrayElem() 112542 if false { 112543 } else { 112544 if z.EncBasicHandle().StringToRaw { 112545 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 112546 } else { 112547 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 112548 } 112549 } 112550 } else { 112551 r.WriteMapElemKey() 112552 if z.IsJSONHandle() { 112553 z.WriteStr("\"Region\"") 112554 } else { 112555 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 112556 } 112557 r.WriteMapElemValue() 112558 if false { 112559 } else { 112560 if z.EncBasicHandle().StringToRaw { 112561 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 112562 } else { 112563 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 112564 } 112565 } 112566 } 112567 if yyr2 || yy2arr2 { 112568 r.WriteArrayElem() 112569 if false { 112570 } else { 112571 if z.EncBasicHandle().StringToRaw { 112572 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 112573 } else { 112574 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 112575 } 112576 } 112577 } else { 112578 r.WriteMapElemKey() 112579 if z.IsJSONHandle() { 112580 z.WriteStr("\"Namespace\"") 112581 } else { 112582 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 112583 } 112584 r.WriteMapElemValue() 112585 if false { 112586 } else { 112587 if z.EncBasicHandle().StringToRaw { 112588 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 112589 } else { 112590 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 112591 } 112592 } 112593 } 112594 if yyr2 || yy2arr2 { 112595 r.WriteArrayElem() 112596 if false { 112597 } else { 112598 if z.EncBasicHandle().StringToRaw { 112599 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 112600 } else { 112601 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 112602 } 112603 } 112604 } else { 112605 r.WriteMapElemKey() 112606 if z.IsJSONHandle() { 112607 z.WriteStr("\"AuthToken\"") 112608 } else { 112609 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 112610 } 112611 r.WriteMapElemValue() 112612 if false { 112613 } else { 112614 if z.EncBasicHandle().StringToRaw { 112615 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 112616 } else { 112617 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 112618 } 112619 } 112620 } 112621 if yyr2 || yy2arr2 { 112622 r.WriteArrayElem() 112623 if false { 112624 } else { 112625 r.EncodeBool(bool(x.Forwarded)) 112626 } 112627 } else { 112628 r.WriteMapElemKey() 112629 if z.IsJSONHandle() { 112630 z.WriteStr("\"Forwarded\"") 112631 } else { 112632 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 112633 } 112634 r.WriteMapElemValue() 112635 if false { 112636 } else { 112637 r.EncodeBool(bool(x.Forwarded)) 112638 } 112639 } 112640 if yyr2 || yy2arr2 { 112641 r.WriteArrayEnd() 112642 } else { 112643 r.WriteMapEnd() 112644 } 112645 } 112646 } 112647 } 112648 112649 func (x *ACLPolicyDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { 112650 var h codecSelfer100 112651 z, r := codec1978.GenHelperDecoder(d) 112652 _, _, _ = h, z, r 112653 if false { 112654 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 112655 z.DecExtension(x, yyxt1) 112656 } else { 112657 yyct2 := r.ContainerType() 112658 if yyct2 == codecSelferValueTypeMap100 { 112659 yyl2 := r.ReadMapStart() 112660 if yyl2 == 0 { 112661 r.ReadMapEnd() 112662 } else { 112663 x.codecDecodeSelfFromMap(yyl2, d) 112664 } 112665 } else if yyct2 == codecSelferValueTypeArray100 { 112666 yyl2 := r.ReadArrayStart() 112667 if yyl2 == 0 { 112668 r.ReadArrayEnd() 112669 } else { 112670 x.codecDecodeSelfFromArray(yyl2, d) 112671 } 112672 } else { 112673 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 112674 } 112675 } 112676 } 112677 112678 func (x *ACLPolicyDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 112679 var h codecSelfer100 112680 z, r := codec1978.GenHelperDecoder(d) 112681 _, _, _ = h, z, r 112682 var yyhl3 bool = l >= 0 112683 for yyj3 := 0; ; yyj3++ { 112684 if yyhl3 { 112685 if yyj3 >= l { 112686 break 112687 } 112688 } else { 112689 if r.CheckBreak() { 112690 break 112691 } 112692 } 112693 r.ReadMapElemKey() 112694 yys3 := z.StringView(r.DecodeStringAsBytes()) 112695 r.ReadMapElemValue() 112696 switch yys3 { 112697 case "Names": 112698 if r.TryDecodeAsNil() { 112699 x.Names = nil 112700 } else { 112701 if false { 112702 } else { 112703 z.F.DecSliceStringX(&x.Names, d) 112704 } 112705 } 112706 case "Region": 112707 if r.TryDecodeAsNil() { 112708 x.WriteRequest.Region = "" 112709 } else { 112710 x.Region = (string)(r.DecodeString()) 112711 } 112712 case "Namespace": 112713 if r.TryDecodeAsNil() { 112714 x.WriteRequest.Namespace = "" 112715 } else { 112716 x.Namespace = (string)(r.DecodeString()) 112717 } 112718 case "AuthToken": 112719 if r.TryDecodeAsNil() { 112720 x.WriteRequest.AuthToken = "" 112721 } else { 112722 x.AuthToken = (string)(r.DecodeString()) 112723 } 112724 case "Forwarded": 112725 if r.TryDecodeAsNil() { 112726 x.WriteRequest.InternalRpcInfo.Forwarded = false 112727 } else { 112728 x.Forwarded = (bool)(r.DecodeBool()) 112729 } 112730 default: 112731 z.DecStructFieldNotFound(-1, yys3) 112732 } // end switch yys3 112733 } // end for yyj3 112734 r.ReadMapEnd() 112735 } 112736 112737 func (x *ACLPolicyDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 112738 var h codecSelfer100 112739 z, r := codec1978.GenHelperDecoder(d) 112740 _, _, _ = h, z, r 112741 var yyj10 int 112742 var yyb10 bool 112743 var yyhl10 bool = l >= 0 112744 yyj10++ 112745 if yyhl10 { 112746 yyb10 = yyj10 > l 112747 } else { 112748 yyb10 = r.CheckBreak() 112749 } 112750 if yyb10 { 112751 r.ReadArrayEnd() 112752 return 112753 } 112754 r.ReadArrayElem() 112755 if r.TryDecodeAsNil() { 112756 x.Names = nil 112757 } else { 112758 if false { 112759 } else { 112760 z.F.DecSliceStringX(&x.Names, d) 112761 } 112762 } 112763 yyj10++ 112764 if yyhl10 { 112765 yyb10 = yyj10 > l 112766 } else { 112767 yyb10 = r.CheckBreak() 112768 } 112769 if yyb10 { 112770 r.ReadArrayEnd() 112771 return 112772 } 112773 r.ReadArrayElem() 112774 if r.TryDecodeAsNil() { 112775 x.WriteRequest.Region = "" 112776 } else { 112777 x.Region = (string)(r.DecodeString()) 112778 } 112779 yyj10++ 112780 if yyhl10 { 112781 yyb10 = yyj10 > l 112782 } else { 112783 yyb10 = r.CheckBreak() 112784 } 112785 if yyb10 { 112786 r.ReadArrayEnd() 112787 return 112788 } 112789 r.ReadArrayElem() 112790 if r.TryDecodeAsNil() { 112791 x.WriteRequest.Namespace = "" 112792 } else { 112793 x.Namespace = (string)(r.DecodeString()) 112794 } 112795 yyj10++ 112796 if yyhl10 { 112797 yyb10 = yyj10 > l 112798 } else { 112799 yyb10 = r.CheckBreak() 112800 } 112801 if yyb10 { 112802 r.ReadArrayEnd() 112803 return 112804 } 112805 r.ReadArrayElem() 112806 if r.TryDecodeAsNil() { 112807 x.WriteRequest.AuthToken = "" 112808 } else { 112809 x.AuthToken = (string)(r.DecodeString()) 112810 } 112811 yyj10++ 112812 if yyhl10 { 112813 yyb10 = yyj10 > l 112814 } else { 112815 yyb10 = r.CheckBreak() 112816 } 112817 if yyb10 { 112818 r.ReadArrayEnd() 112819 return 112820 } 112821 r.ReadArrayElem() 112822 if r.TryDecodeAsNil() { 112823 x.WriteRequest.InternalRpcInfo.Forwarded = false 112824 } else { 112825 x.Forwarded = (bool)(r.DecodeBool()) 112826 } 112827 for { 112828 yyj10++ 112829 if yyhl10 { 112830 yyb10 = yyj10 > l 112831 } else { 112832 yyb10 = r.CheckBreak() 112833 } 112834 if yyb10 { 112835 break 112836 } 112837 r.ReadArrayElem() 112838 z.DecStructFieldNotFound(yyj10-1, "") 112839 } 112840 r.ReadArrayEnd() 112841 } 112842 112843 func (x *ACLPolicyUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { 112844 var h codecSelfer100 112845 z, r := codec1978.GenHelperEncoder(e) 112846 _, _, _ = h, z, r 112847 if x == nil { 112848 r.EncodeNil() 112849 } else { 112850 if false { 112851 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 112852 z.EncExtension(x, yyxt1) 112853 } else { 112854 yysep2 := !z.EncBinary() 112855 yy2arr2 := z.EncBasicHandle().StructToArray 112856 _, _ = yysep2, yy2arr2 112857 const yyr2 bool = false // struct tag has 'toArray' 112858 if yyr2 || yy2arr2 { 112859 r.WriteArrayStart(5) 112860 } else { 112861 r.WriteMapStart(5) 112862 } 112863 if yyr2 || yy2arr2 { 112864 r.WriteArrayElem() 112865 if x.Policies == nil { 112866 r.EncodeNil() 112867 } else { 112868 if false { 112869 } else { 112870 h.encSlicePtrtoACLPolicy(([]*ACLPolicy)(x.Policies), e) 112871 } 112872 } 112873 } else { 112874 r.WriteMapElemKey() 112875 if z.IsJSONHandle() { 112876 z.WriteStr("\"Policies\"") 112877 } else { 112878 r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) 112879 } 112880 r.WriteMapElemValue() 112881 if x.Policies == nil { 112882 r.EncodeNil() 112883 } else { 112884 if false { 112885 } else { 112886 h.encSlicePtrtoACLPolicy(([]*ACLPolicy)(x.Policies), e) 112887 } 112888 } 112889 } 112890 if yyr2 || yy2arr2 { 112891 r.WriteArrayElem() 112892 if false { 112893 } else { 112894 if z.EncBasicHandle().StringToRaw { 112895 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 112896 } else { 112897 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 112898 } 112899 } 112900 } else { 112901 r.WriteMapElemKey() 112902 if z.IsJSONHandle() { 112903 z.WriteStr("\"Region\"") 112904 } else { 112905 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 112906 } 112907 r.WriteMapElemValue() 112908 if false { 112909 } else { 112910 if z.EncBasicHandle().StringToRaw { 112911 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 112912 } else { 112913 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 112914 } 112915 } 112916 } 112917 if yyr2 || yy2arr2 { 112918 r.WriteArrayElem() 112919 if false { 112920 } else { 112921 if z.EncBasicHandle().StringToRaw { 112922 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 112923 } else { 112924 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 112925 } 112926 } 112927 } else { 112928 r.WriteMapElemKey() 112929 if z.IsJSONHandle() { 112930 z.WriteStr("\"Namespace\"") 112931 } else { 112932 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 112933 } 112934 r.WriteMapElemValue() 112935 if false { 112936 } else { 112937 if z.EncBasicHandle().StringToRaw { 112938 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 112939 } else { 112940 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 112941 } 112942 } 112943 } 112944 if yyr2 || yy2arr2 { 112945 r.WriteArrayElem() 112946 if false { 112947 } else { 112948 if z.EncBasicHandle().StringToRaw { 112949 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 112950 } else { 112951 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 112952 } 112953 } 112954 } else { 112955 r.WriteMapElemKey() 112956 if z.IsJSONHandle() { 112957 z.WriteStr("\"AuthToken\"") 112958 } else { 112959 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 112960 } 112961 r.WriteMapElemValue() 112962 if false { 112963 } else { 112964 if z.EncBasicHandle().StringToRaw { 112965 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 112966 } else { 112967 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 112968 } 112969 } 112970 } 112971 if yyr2 || yy2arr2 { 112972 r.WriteArrayElem() 112973 if false { 112974 } else { 112975 r.EncodeBool(bool(x.Forwarded)) 112976 } 112977 } else { 112978 r.WriteMapElemKey() 112979 if z.IsJSONHandle() { 112980 z.WriteStr("\"Forwarded\"") 112981 } else { 112982 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 112983 } 112984 r.WriteMapElemValue() 112985 if false { 112986 } else { 112987 r.EncodeBool(bool(x.Forwarded)) 112988 } 112989 } 112990 if yyr2 || yy2arr2 { 112991 r.WriteArrayEnd() 112992 } else { 112993 r.WriteMapEnd() 112994 } 112995 } 112996 } 112997 } 112998 112999 func (x *ACLPolicyUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { 113000 var h codecSelfer100 113001 z, r := codec1978.GenHelperDecoder(d) 113002 _, _, _ = h, z, r 113003 if false { 113004 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 113005 z.DecExtension(x, yyxt1) 113006 } else { 113007 yyct2 := r.ContainerType() 113008 if yyct2 == codecSelferValueTypeMap100 { 113009 yyl2 := r.ReadMapStart() 113010 if yyl2 == 0 { 113011 r.ReadMapEnd() 113012 } else { 113013 x.codecDecodeSelfFromMap(yyl2, d) 113014 } 113015 } else if yyct2 == codecSelferValueTypeArray100 { 113016 yyl2 := r.ReadArrayStart() 113017 if yyl2 == 0 { 113018 r.ReadArrayEnd() 113019 } else { 113020 x.codecDecodeSelfFromArray(yyl2, d) 113021 } 113022 } else { 113023 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 113024 } 113025 } 113026 } 113027 113028 func (x *ACLPolicyUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 113029 var h codecSelfer100 113030 z, r := codec1978.GenHelperDecoder(d) 113031 _, _, _ = h, z, r 113032 var yyhl3 bool = l >= 0 113033 for yyj3 := 0; ; yyj3++ { 113034 if yyhl3 { 113035 if yyj3 >= l { 113036 break 113037 } 113038 } else { 113039 if r.CheckBreak() { 113040 break 113041 } 113042 } 113043 r.ReadMapElemKey() 113044 yys3 := z.StringView(r.DecodeStringAsBytes()) 113045 r.ReadMapElemValue() 113046 switch yys3 { 113047 case "Policies": 113048 if r.TryDecodeAsNil() { 113049 x.Policies = nil 113050 } else { 113051 if false { 113052 } else { 113053 h.decSlicePtrtoACLPolicy((*[]*ACLPolicy)(&x.Policies), d) 113054 } 113055 } 113056 case "Region": 113057 if r.TryDecodeAsNil() { 113058 x.WriteRequest.Region = "" 113059 } else { 113060 x.Region = (string)(r.DecodeString()) 113061 } 113062 case "Namespace": 113063 if r.TryDecodeAsNil() { 113064 x.WriteRequest.Namespace = "" 113065 } else { 113066 x.Namespace = (string)(r.DecodeString()) 113067 } 113068 case "AuthToken": 113069 if r.TryDecodeAsNil() { 113070 x.WriteRequest.AuthToken = "" 113071 } else { 113072 x.AuthToken = (string)(r.DecodeString()) 113073 } 113074 case "Forwarded": 113075 if r.TryDecodeAsNil() { 113076 x.WriteRequest.InternalRpcInfo.Forwarded = false 113077 } else { 113078 x.Forwarded = (bool)(r.DecodeBool()) 113079 } 113080 default: 113081 z.DecStructFieldNotFound(-1, yys3) 113082 } // end switch yys3 113083 } // end for yyj3 113084 r.ReadMapEnd() 113085 } 113086 113087 func (x *ACLPolicyUpsertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 113088 var h codecSelfer100 113089 z, r := codec1978.GenHelperDecoder(d) 113090 _, _, _ = h, z, r 113091 var yyj10 int 113092 var yyb10 bool 113093 var yyhl10 bool = l >= 0 113094 yyj10++ 113095 if yyhl10 { 113096 yyb10 = yyj10 > l 113097 } else { 113098 yyb10 = r.CheckBreak() 113099 } 113100 if yyb10 { 113101 r.ReadArrayEnd() 113102 return 113103 } 113104 r.ReadArrayElem() 113105 if r.TryDecodeAsNil() { 113106 x.Policies = nil 113107 } else { 113108 if false { 113109 } else { 113110 h.decSlicePtrtoACLPolicy((*[]*ACLPolicy)(&x.Policies), d) 113111 } 113112 } 113113 yyj10++ 113114 if yyhl10 { 113115 yyb10 = yyj10 > l 113116 } else { 113117 yyb10 = r.CheckBreak() 113118 } 113119 if yyb10 { 113120 r.ReadArrayEnd() 113121 return 113122 } 113123 r.ReadArrayElem() 113124 if r.TryDecodeAsNil() { 113125 x.WriteRequest.Region = "" 113126 } else { 113127 x.Region = (string)(r.DecodeString()) 113128 } 113129 yyj10++ 113130 if yyhl10 { 113131 yyb10 = yyj10 > l 113132 } else { 113133 yyb10 = r.CheckBreak() 113134 } 113135 if yyb10 { 113136 r.ReadArrayEnd() 113137 return 113138 } 113139 r.ReadArrayElem() 113140 if r.TryDecodeAsNil() { 113141 x.WriteRequest.Namespace = "" 113142 } else { 113143 x.Namespace = (string)(r.DecodeString()) 113144 } 113145 yyj10++ 113146 if yyhl10 { 113147 yyb10 = yyj10 > l 113148 } else { 113149 yyb10 = r.CheckBreak() 113150 } 113151 if yyb10 { 113152 r.ReadArrayEnd() 113153 return 113154 } 113155 r.ReadArrayElem() 113156 if r.TryDecodeAsNil() { 113157 x.WriteRequest.AuthToken = "" 113158 } else { 113159 x.AuthToken = (string)(r.DecodeString()) 113160 } 113161 yyj10++ 113162 if yyhl10 { 113163 yyb10 = yyj10 > l 113164 } else { 113165 yyb10 = r.CheckBreak() 113166 } 113167 if yyb10 { 113168 r.ReadArrayEnd() 113169 return 113170 } 113171 r.ReadArrayElem() 113172 if r.TryDecodeAsNil() { 113173 x.WriteRequest.InternalRpcInfo.Forwarded = false 113174 } else { 113175 x.Forwarded = (bool)(r.DecodeBool()) 113176 } 113177 for { 113178 yyj10++ 113179 if yyhl10 { 113180 yyb10 = yyj10 > l 113181 } else { 113182 yyb10 = r.CheckBreak() 113183 } 113184 if yyb10 { 113185 break 113186 } 113187 r.ReadArrayElem() 113188 z.DecStructFieldNotFound(yyj10-1, "") 113189 } 113190 r.ReadArrayEnd() 113191 } 113192 113193 func (x *ACLToken) CodecEncodeSelf(e *codec1978.Encoder) { 113194 var h codecSelfer100 113195 z, r := codec1978.GenHelperEncoder(e) 113196 _, _, _ = h, z, r 113197 if x == nil { 113198 r.EncodeNil() 113199 } else { 113200 if false { 113201 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 113202 z.EncExtension(x, yyxt1) 113203 } else { 113204 yysep2 := !z.EncBinary() 113205 yy2arr2 := z.EncBasicHandle().StructToArray 113206 _, _ = yysep2, yy2arr2 113207 const yyr2 bool = false // struct tag has 'toArray' 113208 if yyr2 || yy2arr2 { 113209 r.WriteArrayStart(10) 113210 } else { 113211 r.WriteMapStart(10) 113212 } 113213 if yyr2 || yy2arr2 { 113214 r.WriteArrayElem() 113215 if false { 113216 } else { 113217 if z.EncBasicHandle().StringToRaw { 113218 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 113219 } else { 113220 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 113221 } 113222 } 113223 } else { 113224 r.WriteMapElemKey() 113225 if z.IsJSONHandle() { 113226 z.WriteStr("\"AccessorID\"") 113227 } else { 113228 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) 113229 } 113230 r.WriteMapElemValue() 113231 if false { 113232 } else { 113233 if z.EncBasicHandle().StringToRaw { 113234 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 113235 } else { 113236 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 113237 } 113238 } 113239 } 113240 if yyr2 || yy2arr2 { 113241 r.WriteArrayElem() 113242 if false { 113243 } else { 113244 if z.EncBasicHandle().StringToRaw { 113245 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 113246 } else { 113247 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 113248 } 113249 } 113250 } else { 113251 r.WriteMapElemKey() 113252 if z.IsJSONHandle() { 113253 z.WriteStr("\"SecretID\"") 113254 } else { 113255 r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) 113256 } 113257 r.WriteMapElemValue() 113258 if false { 113259 } else { 113260 if z.EncBasicHandle().StringToRaw { 113261 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 113262 } else { 113263 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 113264 } 113265 } 113266 } 113267 if yyr2 || yy2arr2 { 113268 r.WriteArrayElem() 113269 if false { 113270 } else { 113271 if z.EncBasicHandle().StringToRaw { 113272 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 113273 } else { 113274 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 113275 } 113276 } 113277 } else { 113278 r.WriteMapElemKey() 113279 if z.IsJSONHandle() { 113280 z.WriteStr("\"Name\"") 113281 } else { 113282 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 113283 } 113284 r.WriteMapElemValue() 113285 if false { 113286 } else { 113287 if z.EncBasicHandle().StringToRaw { 113288 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 113289 } else { 113290 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 113291 } 113292 } 113293 } 113294 if yyr2 || yy2arr2 { 113295 r.WriteArrayElem() 113296 if false { 113297 } else { 113298 if z.EncBasicHandle().StringToRaw { 113299 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 113300 } else { 113301 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 113302 } 113303 } 113304 } else { 113305 r.WriteMapElemKey() 113306 if z.IsJSONHandle() { 113307 z.WriteStr("\"Type\"") 113308 } else { 113309 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 113310 } 113311 r.WriteMapElemValue() 113312 if false { 113313 } else { 113314 if z.EncBasicHandle().StringToRaw { 113315 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 113316 } else { 113317 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 113318 } 113319 } 113320 } 113321 if yyr2 || yy2arr2 { 113322 r.WriteArrayElem() 113323 if x.Policies == nil { 113324 r.EncodeNil() 113325 } else { 113326 if false { 113327 } else { 113328 z.F.EncSliceStringV(x.Policies, e) 113329 } 113330 } 113331 } else { 113332 r.WriteMapElemKey() 113333 if z.IsJSONHandle() { 113334 z.WriteStr("\"Policies\"") 113335 } else { 113336 r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) 113337 } 113338 r.WriteMapElemValue() 113339 if x.Policies == nil { 113340 r.EncodeNil() 113341 } else { 113342 if false { 113343 } else { 113344 z.F.EncSliceStringV(x.Policies, e) 113345 } 113346 } 113347 } 113348 if yyr2 || yy2arr2 { 113349 r.WriteArrayElem() 113350 if false { 113351 } else { 113352 r.EncodeBool(bool(x.Global)) 113353 } 113354 } else { 113355 r.WriteMapElemKey() 113356 if z.IsJSONHandle() { 113357 z.WriteStr("\"Global\"") 113358 } else { 113359 r.EncodeStringEnc(codecSelferCcUTF8100, `Global`) 113360 } 113361 r.WriteMapElemValue() 113362 if false { 113363 } else { 113364 r.EncodeBool(bool(x.Global)) 113365 } 113366 } 113367 if yyr2 || yy2arr2 { 113368 r.WriteArrayElem() 113369 if x.Hash == nil { 113370 r.EncodeNil() 113371 } else { 113372 if false { 113373 } else { 113374 r.EncodeStringBytesRaw([]byte(x.Hash)) 113375 } 113376 } 113377 } else { 113378 r.WriteMapElemKey() 113379 if z.IsJSONHandle() { 113380 z.WriteStr("\"Hash\"") 113381 } else { 113382 r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) 113383 } 113384 r.WriteMapElemValue() 113385 if x.Hash == nil { 113386 r.EncodeNil() 113387 } else { 113388 if false { 113389 } else { 113390 r.EncodeStringBytesRaw([]byte(x.Hash)) 113391 } 113392 } 113393 } 113394 if yyr2 || yy2arr2 { 113395 r.WriteArrayElem() 113396 if false { 113397 } else if !z.EncBasicHandle().TimeNotBuiltin { 113398 r.EncodeTime(x.CreateTime) 113399 } else if yyxt25 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt25 != nil { 113400 z.EncExtension(x.CreateTime, yyxt25) 113401 } else if z.EncBinary() { 113402 z.EncBinaryMarshal(x.CreateTime) 113403 } else if !z.EncBinary() && z.IsJSONHandle() { 113404 z.EncJSONMarshal(x.CreateTime) 113405 } else { 113406 z.EncFallback(x.CreateTime) 113407 } 113408 } else { 113409 r.WriteMapElemKey() 113410 if z.IsJSONHandle() { 113411 z.WriteStr("\"CreateTime\"") 113412 } else { 113413 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) 113414 } 113415 r.WriteMapElemValue() 113416 if false { 113417 } else if !z.EncBasicHandle().TimeNotBuiltin { 113418 r.EncodeTime(x.CreateTime) 113419 } else if yyxt26 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt26 != nil { 113420 z.EncExtension(x.CreateTime, yyxt26) 113421 } else if z.EncBinary() { 113422 z.EncBinaryMarshal(x.CreateTime) 113423 } else if !z.EncBinary() && z.IsJSONHandle() { 113424 z.EncJSONMarshal(x.CreateTime) 113425 } else { 113426 z.EncFallback(x.CreateTime) 113427 } 113428 } 113429 if yyr2 || yy2arr2 { 113430 r.WriteArrayElem() 113431 if false { 113432 } else { 113433 r.EncodeUint(uint64(x.CreateIndex)) 113434 } 113435 } else { 113436 r.WriteMapElemKey() 113437 if z.IsJSONHandle() { 113438 z.WriteStr("\"CreateIndex\"") 113439 } else { 113440 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 113441 } 113442 r.WriteMapElemValue() 113443 if false { 113444 } else { 113445 r.EncodeUint(uint64(x.CreateIndex)) 113446 } 113447 } 113448 if yyr2 || yy2arr2 { 113449 r.WriteArrayElem() 113450 if false { 113451 } else { 113452 r.EncodeUint(uint64(x.ModifyIndex)) 113453 } 113454 } else { 113455 r.WriteMapElemKey() 113456 if z.IsJSONHandle() { 113457 z.WriteStr("\"ModifyIndex\"") 113458 } else { 113459 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 113460 } 113461 r.WriteMapElemValue() 113462 if false { 113463 } else { 113464 r.EncodeUint(uint64(x.ModifyIndex)) 113465 } 113466 } 113467 if yyr2 || yy2arr2 { 113468 r.WriteArrayEnd() 113469 } else { 113470 r.WriteMapEnd() 113471 } 113472 } 113473 } 113474 } 113475 113476 func (x *ACLToken) CodecDecodeSelf(d *codec1978.Decoder) { 113477 var h codecSelfer100 113478 z, r := codec1978.GenHelperDecoder(d) 113479 _, _, _ = h, z, r 113480 if false { 113481 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 113482 z.DecExtension(x, yyxt1) 113483 } else { 113484 yyct2 := r.ContainerType() 113485 if yyct2 == codecSelferValueTypeMap100 { 113486 yyl2 := r.ReadMapStart() 113487 if yyl2 == 0 { 113488 r.ReadMapEnd() 113489 } else { 113490 x.codecDecodeSelfFromMap(yyl2, d) 113491 } 113492 } else if yyct2 == codecSelferValueTypeArray100 { 113493 yyl2 := r.ReadArrayStart() 113494 if yyl2 == 0 { 113495 r.ReadArrayEnd() 113496 } else { 113497 x.codecDecodeSelfFromArray(yyl2, d) 113498 } 113499 } else { 113500 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 113501 } 113502 } 113503 } 113504 113505 func (x *ACLToken) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 113506 var h codecSelfer100 113507 z, r := codec1978.GenHelperDecoder(d) 113508 _, _, _ = h, z, r 113509 var yyhl3 bool = l >= 0 113510 for yyj3 := 0; ; yyj3++ { 113511 if yyhl3 { 113512 if yyj3 >= l { 113513 break 113514 } 113515 } else { 113516 if r.CheckBreak() { 113517 break 113518 } 113519 } 113520 r.ReadMapElemKey() 113521 yys3 := z.StringView(r.DecodeStringAsBytes()) 113522 r.ReadMapElemValue() 113523 switch yys3 { 113524 case "AccessorID": 113525 if r.TryDecodeAsNil() { 113526 x.AccessorID = "" 113527 } else { 113528 x.AccessorID = (string)(r.DecodeString()) 113529 } 113530 case "SecretID": 113531 if r.TryDecodeAsNil() { 113532 x.SecretID = "" 113533 } else { 113534 x.SecretID = (string)(r.DecodeString()) 113535 } 113536 case "Name": 113537 if r.TryDecodeAsNil() { 113538 x.Name = "" 113539 } else { 113540 x.Name = (string)(r.DecodeString()) 113541 } 113542 case "Type": 113543 if r.TryDecodeAsNil() { 113544 x.Type = "" 113545 } else { 113546 x.Type = (string)(r.DecodeString()) 113547 } 113548 case "Policies": 113549 if r.TryDecodeAsNil() { 113550 x.Policies = nil 113551 } else { 113552 if false { 113553 } else { 113554 z.F.DecSliceStringX(&x.Policies, d) 113555 } 113556 } 113557 case "Global": 113558 if r.TryDecodeAsNil() { 113559 x.Global = false 113560 } else { 113561 x.Global = (bool)(r.DecodeBool()) 113562 } 113563 case "Hash": 113564 if r.TryDecodeAsNil() { 113565 x.Hash = nil 113566 } else { 113567 if false { 113568 } else { 113569 x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) 113570 } 113571 } 113572 case "CreateTime": 113573 if r.TryDecodeAsNil() { 113574 x.CreateTime = time.Time{} 113575 } else { 113576 if false { 113577 } else if !z.DecBasicHandle().TimeNotBuiltin { 113578 x.CreateTime = r.DecodeTime() 113579 } else if yyxt14 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt14 != nil { 113580 z.DecExtension(x.CreateTime, yyxt14) 113581 } else if z.DecBinary() { 113582 z.DecBinaryUnmarshal(&x.CreateTime) 113583 } else if !z.DecBinary() && z.IsJSONHandle() { 113584 z.DecJSONUnmarshal(&x.CreateTime) 113585 } else { 113586 z.DecFallback(&x.CreateTime, false) 113587 } 113588 } 113589 case "CreateIndex": 113590 if r.TryDecodeAsNil() { 113591 x.CreateIndex = 0 113592 } else { 113593 x.CreateIndex = (uint64)(r.DecodeUint64()) 113594 } 113595 case "ModifyIndex": 113596 if r.TryDecodeAsNil() { 113597 x.ModifyIndex = 0 113598 } else { 113599 x.ModifyIndex = (uint64)(r.DecodeUint64()) 113600 } 113601 default: 113602 z.DecStructFieldNotFound(-1, yys3) 113603 } // end switch yys3 113604 } // end for yyj3 113605 r.ReadMapEnd() 113606 } 113607 113608 func (x *ACLToken) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 113609 var h codecSelfer100 113610 z, r := codec1978.GenHelperDecoder(d) 113611 _, _, _ = h, z, r 113612 var yyj17 int 113613 var yyb17 bool 113614 var yyhl17 bool = l >= 0 113615 yyj17++ 113616 if yyhl17 { 113617 yyb17 = yyj17 > l 113618 } else { 113619 yyb17 = r.CheckBreak() 113620 } 113621 if yyb17 { 113622 r.ReadArrayEnd() 113623 return 113624 } 113625 r.ReadArrayElem() 113626 if r.TryDecodeAsNil() { 113627 x.AccessorID = "" 113628 } else { 113629 x.AccessorID = (string)(r.DecodeString()) 113630 } 113631 yyj17++ 113632 if yyhl17 { 113633 yyb17 = yyj17 > l 113634 } else { 113635 yyb17 = r.CheckBreak() 113636 } 113637 if yyb17 { 113638 r.ReadArrayEnd() 113639 return 113640 } 113641 r.ReadArrayElem() 113642 if r.TryDecodeAsNil() { 113643 x.SecretID = "" 113644 } else { 113645 x.SecretID = (string)(r.DecodeString()) 113646 } 113647 yyj17++ 113648 if yyhl17 { 113649 yyb17 = yyj17 > l 113650 } else { 113651 yyb17 = r.CheckBreak() 113652 } 113653 if yyb17 { 113654 r.ReadArrayEnd() 113655 return 113656 } 113657 r.ReadArrayElem() 113658 if r.TryDecodeAsNil() { 113659 x.Name = "" 113660 } else { 113661 x.Name = (string)(r.DecodeString()) 113662 } 113663 yyj17++ 113664 if yyhl17 { 113665 yyb17 = yyj17 > l 113666 } else { 113667 yyb17 = r.CheckBreak() 113668 } 113669 if yyb17 { 113670 r.ReadArrayEnd() 113671 return 113672 } 113673 r.ReadArrayElem() 113674 if r.TryDecodeAsNil() { 113675 x.Type = "" 113676 } else { 113677 x.Type = (string)(r.DecodeString()) 113678 } 113679 yyj17++ 113680 if yyhl17 { 113681 yyb17 = yyj17 > l 113682 } else { 113683 yyb17 = r.CheckBreak() 113684 } 113685 if yyb17 { 113686 r.ReadArrayEnd() 113687 return 113688 } 113689 r.ReadArrayElem() 113690 if r.TryDecodeAsNil() { 113691 x.Policies = nil 113692 } else { 113693 if false { 113694 } else { 113695 z.F.DecSliceStringX(&x.Policies, d) 113696 } 113697 } 113698 yyj17++ 113699 if yyhl17 { 113700 yyb17 = yyj17 > l 113701 } else { 113702 yyb17 = r.CheckBreak() 113703 } 113704 if yyb17 { 113705 r.ReadArrayEnd() 113706 return 113707 } 113708 r.ReadArrayElem() 113709 if r.TryDecodeAsNil() { 113710 x.Global = false 113711 } else { 113712 x.Global = (bool)(r.DecodeBool()) 113713 } 113714 yyj17++ 113715 if yyhl17 { 113716 yyb17 = yyj17 > l 113717 } else { 113718 yyb17 = r.CheckBreak() 113719 } 113720 if yyb17 { 113721 r.ReadArrayEnd() 113722 return 113723 } 113724 r.ReadArrayElem() 113725 if r.TryDecodeAsNil() { 113726 x.Hash = nil 113727 } else { 113728 if false { 113729 } else { 113730 x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) 113731 } 113732 } 113733 yyj17++ 113734 if yyhl17 { 113735 yyb17 = yyj17 > l 113736 } else { 113737 yyb17 = r.CheckBreak() 113738 } 113739 if yyb17 { 113740 r.ReadArrayEnd() 113741 return 113742 } 113743 r.ReadArrayElem() 113744 if r.TryDecodeAsNil() { 113745 x.CreateTime = time.Time{} 113746 } else { 113747 if false { 113748 } else if !z.DecBasicHandle().TimeNotBuiltin { 113749 x.CreateTime = r.DecodeTime() 113750 } else if yyxt28 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt28 != nil { 113751 z.DecExtension(x.CreateTime, yyxt28) 113752 } else if z.DecBinary() { 113753 z.DecBinaryUnmarshal(&x.CreateTime) 113754 } else if !z.DecBinary() && z.IsJSONHandle() { 113755 z.DecJSONUnmarshal(&x.CreateTime) 113756 } else { 113757 z.DecFallback(&x.CreateTime, false) 113758 } 113759 } 113760 yyj17++ 113761 if yyhl17 { 113762 yyb17 = yyj17 > l 113763 } else { 113764 yyb17 = r.CheckBreak() 113765 } 113766 if yyb17 { 113767 r.ReadArrayEnd() 113768 return 113769 } 113770 r.ReadArrayElem() 113771 if r.TryDecodeAsNil() { 113772 x.CreateIndex = 0 113773 } else { 113774 x.CreateIndex = (uint64)(r.DecodeUint64()) 113775 } 113776 yyj17++ 113777 if yyhl17 { 113778 yyb17 = yyj17 > l 113779 } else { 113780 yyb17 = r.CheckBreak() 113781 } 113782 if yyb17 { 113783 r.ReadArrayEnd() 113784 return 113785 } 113786 r.ReadArrayElem() 113787 if r.TryDecodeAsNil() { 113788 x.ModifyIndex = 0 113789 } else { 113790 x.ModifyIndex = (uint64)(r.DecodeUint64()) 113791 } 113792 for { 113793 yyj17++ 113794 if yyhl17 { 113795 yyb17 = yyj17 > l 113796 } else { 113797 yyb17 = r.CheckBreak() 113798 } 113799 if yyb17 { 113800 break 113801 } 113802 r.ReadArrayElem() 113803 z.DecStructFieldNotFound(yyj17-1, "") 113804 } 113805 r.ReadArrayEnd() 113806 } 113807 113808 func (x *ACLTokenListStub) CodecEncodeSelf(e *codec1978.Encoder) { 113809 var h codecSelfer100 113810 z, r := codec1978.GenHelperEncoder(e) 113811 _, _, _ = h, z, r 113812 if x == nil { 113813 r.EncodeNil() 113814 } else { 113815 if false { 113816 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 113817 z.EncExtension(x, yyxt1) 113818 } else { 113819 yysep2 := !z.EncBinary() 113820 yy2arr2 := z.EncBasicHandle().StructToArray 113821 _, _ = yysep2, yy2arr2 113822 const yyr2 bool = false // struct tag has 'toArray' 113823 if yyr2 || yy2arr2 { 113824 r.WriteArrayStart(9) 113825 } else { 113826 r.WriteMapStart(9) 113827 } 113828 if yyr2 || yy2arr2 { 113829 r.WriteArrayElem() 113830 if false { 113831 } else { 113832 if z.EncBasicHandle().StringToRaw { 113833 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 113834 } else { 113835 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 113836 } 113837 } 113838 } else { 113839 r.WriteMapElemKey() 113840 if z.IsJSONHandle() { 113841 z.WriteStr("\"AccessorID\"") 113842 } else { 113843 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) 113844 } 113845 r.WriteMapElemValue() 113846 if false { 113847 } else { 113848 if z.EncBasicHandle().StringToRaw { 113849 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 113850 } else { 113851 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 113852 } 113853 } 113854 } 113855 if yyr2 || yy2arr2 { 113856 r.WriteArrayElem() 113857 if false { 113858 } else { 113859 if z.EncBasicHandle().StringToRaw { 113860 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 113861 } else { 113862 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 113863 } 113864 } 113865 } else { 113866 r.WriteMapElemKey() 113867 if z.IsJSONHandle() { 113868 z.WriteStr("\"Name\"") 113869 } else { 113870 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 113871 } 113872 r.WriteMapElemValue() 113873 if false { 113874 } else { 113875 if z.EncBasicHandle().StringToRaw { 113876 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 113877 } else { 113878 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 113879 } 113880 } 113881 } 113882 if yyr2 || yy2arr2 { 113883 r.WriteArrayElem() 113884 if false { 113885 } else { 113886 if z.EncBasicHandle().StringToRaw { 113887 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 113888 } else { 113889 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 113890 } 113891 } 113892 } else { 113893 r.WriteMapElemKey() 113894 if z.IsJSONHandle() { 113895 z.WriteStr("\"Type\"") 113896 } else { 113897 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 113898 } 113899 r.WriteMapElemValue() 113900 if false { 113901 } else { 113902 if z.EncBasicHandle().StringToRaw { 113903 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 113904 } else { 113905 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 113906 } 113907 } 113908 } 113909 if yyr2 || yy2arr2 { 113910 r.WriteArrayElem() 113911 if x.Policies == nil { 113912 r.EncodeNil() 113913 } else { 113914 if false { 113915 } else { 113916 z.F.EncSliceStringV(x.Policies, e) 113917 } 113918 } 113919 } else { 113920 r.WriteMapElemKey() 113921 if z.IsJSONHandle() { 113922 z.WriteStr("\"Policies\"") 113923 } else { 113924 r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) 113925 } 113926 r.WriteMapElemValue() 113927 if x.Policies == nil { 113928 r.EncodeNil() 113929 } else { 113930 if false { 113931 } else { 113932 z.F.EncSliceStringV(x.Policies, e) 113933 } 113934 } 113935 } 113936 if yyr2 || yy2arr2 { 113937 r.WriteArrayElem() 113938 if false { 113939 } else { 113940 r.EncodeBool(bool(x.Global)) 113941 } 113942 } else { 113943 r.WriteMapElemKey() 113944 if z.IsJSONHandle() { 113945 z.WriteStr("\"Global\"") 113946 } else { 113947 r.EncodeStringEnc(codecSelferCcUTF8100, `Global`) 113948 } 113949 r.WriteMapElemValue() 113950 if false { 113951 } else { 113952 r.EncodeBool(bool(x.Global)) 113953 } 113954 } 113955 if yyr2 || yy2arr2 { 113956 r.WriteArrayElem() 113957 if x.Hash == nil { 113958 r.EncodeNil() 113959 } else { 113960 if false { 113961 } else { 113962 r.EncodeStringBytesRaw([]byte(x.Hash)) 113963 } 113964 } 113965 } else { 113966 r.WriteMapElemKey() 113967 if z.IsJSONHandle() { 113968 z.WriteStr("\"Hash\"") 113969 } else { 113970 r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) 113971 } 113972 r.WriteMapElemValue() 113973 if x.Hash == nil { 113974 r.EncodeNil() 113975 } else { 113976 if false { 113977 } else { 113978 r.EncodeStringBytesRaw([]byte(x.Hash)) 113979 } 113980 } 113981 } 113982 if yyr2 || yy2arr2 { 113983 r.WriteArrayElem() 113984 if false { 113985 } else if !z.EncBasicHandle().TimeNotBuiltin { 113986 r.EncodeTime(x.CreateTime) 113987 } else if yyxt22 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt22 != nil { 113988 z.EncExtension(x.CreateTime, yyxt22) 113989 } else if z.EncBinary() { 113990 z.EncBinaryMarshal(x.CreateTime) 113991 } else if !z.EncBinary() && z.IsJSONHandle() { 113992 z.EncJSONMarshal(x.CreateTime) 113993 } else { 113994 z.EncFallback(x.CreateTime) 113995 } 113996 } else { 113997 r.WriteMapElemKey() 113998 if z.IsJSONHandle() { 113999 z.WriteStr("\"CreateTime\"") 114000 } else { 114001 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) 114002 } 114003 r.WriteMapElemValue() 114004 if false { 114005 } else if !z.EncBasicHandle().TimeNotBuiltin { 114006 r.EncodeTime(x.CreateTime) 114007 } else if yyxt23 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt23 != nil { 114008 z.EncExtension(x.CreateTime, yyxt23) 114009 } else if z.EncBinary() { 114010 z.EncBinaryMarshal(x.CreateTime) 114011 } else if !z.EncBinary() && z.IsJSONHandle() { 114012 z.EncJSONMarshal(x.CreateTime) 114013 } else { 114014 z.EncFallback(x.CreateTime) 114015 } 114016 } 114017 if yyr2 || yy2arr2 { 114018 r.WriteArrayElem() 114019 if false { 114020 } else { 114021 r.EncodeUint(uint64(x.CreateIndex)) 114022 } 114023 } else { 114024 r.WriteMapElemKey() 114025 if z.IsJSONHandle() { 114026 z.WriteStr("\"CreateIndex\"") 114027 } else { 114028 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 114029 } 114030 r.WriteMapElemValue() 114031 if false { 114032 } else { 114033 r.EncodeUint(uint64(x.CreateIndex)) 114034 } 114035 } 114036 if yyr2 || yy2arr2 { 114037 r.WriteArrayElem() 114038 if false { 114039 } else { 114040 r.EncodeUint(uint64(x.ModifyIndex)) 114041 } 114042 } else { 114043 r.WriteMapElemKey() 114044 if z.IsJSONHandle() { 114045 z.WriteStr("\"ModifyIndex\"") 114046 } else { 114047 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 114048 } 114049 r.WriteMapElemValue() 114050 if false { 114051 } else { 114052 r.EncodeUint(uint64(x.ModifyIndex)) 114053 } 114054 } 114055 if yyr2 || yy2arr2 { 114056 r.WriteArrayEnd() 114057 } else { 114058 r.WriteMapEnd() 114059 } 114060 } 114061 } 114062 } 114063 114064 func (x *ACLTokenListStub) CodecDecodeSelf(d *codec1978.Decoder) { 114065 var h codecSelfer100 114066 z, r := codec1978.GenHelperDecoder(d) 114067 _, _, _ = h, z, r 114068 if false { 114069 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 114070 z.DecExtension(x, yyxt1) 114071 } else { 114072 yyct2 := r.ContainerType() 114073 if yyct2 == codecSelferValueTypeMap100 { 114074 yyl2 := r.ReadMapStart() 114075 if yyl2 == 0 { 114076 r.ReadMapEnd() 114077 } else { 114078 x.codecDecodeSelfFromMap(yyl2, d) 114079 } 114080 } else if yyct2 == codecSelferValueTypeArray100 { 114081 yyl2 := r.ReadArrayStart() 114082 if yyl2 == 0 { 114083 r.ReadArrayEnd() 114084 } else { 114085 x.codecDecodeSelfFromArray(yyl2, d) 114086 } 114087 } else { 114088 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 114089 } 114090 } 114091 } 114092 114093 func (x *ACLTokenListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 114094 var h codecSelfer100 114095 z, r := codec1978.GenHelperDecoder(d) 114096 _, _, _ = h, z, r 114097 var yyhl3 bool = l >= 0 114098 for yyj3 := 0; ; yyj3++ { 114099 if yyhl3 { 114100 if yyj3 >= l { 114101 break 114102 } 114103 } else { 114104 if r.CheckBreak() { 114105 break 114106 } 114107 } 114108 r.ReadMapElemKey() 114109 yys3 := z.StringView(r.DecodeStringAsBytes()) 114110 r.ReadMapElemValue() 114111 switch yys3 { 114112 case "AccessorID": 114113 if r.TryDecodeAsNil() { 114114 x.AccessorID = "" 114115 } else { 114116 x.AccessorID = (string)(r.DecodeString()) 114117 } 114118 case "Name": 114119 if r.TryDecodeAsNil() { 114120 x.Name = "" 114121 } else { 114122 x.Name = (string)(r.DecodeString()) 114123 } 114124 case "Type": 114125 if r.TryDecodeAsNil() { 114126 x.Type = "" 114127 } else { 114128 x.Type = (string)(r.DecodeString()) 114129 } 114130 case "Policies": 114131 if r.TryDecodeAsNil() { 114132 x.Policies = nil 114133 } else { 114134 if false { 114135 } else { 114136 z.F.DecSliceStringX(&x.Policies, d) 114137 } 114138 } 114139 case "Global": 114140 if r.TryDecodeAsNil() { 114141 x.Global = false 114142 } else { 114143 x.Global = (bool)(r.DecodeBool()) 114144 } 114145 case "Hash": 114146 if r.TryDecodeAsNil() { 114147 x.Hash = nil 114148 } else { 114149 if false { 114150 } else { 114151 x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) 114152 } 114153 } 114154 case "CreateTime": 114155 if r.TryDecodeAsNil() { 114156 x.CreateTime = time.Time{} 114157 } else { 114158 if false { 114159 } else if !z.DecBasicHandle().TimeNotBuiltin { 114160 x.CreateTime = r.DecodeTime() 114161 } else if yyxt13 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt13 != nil { 114162 z.DecExtension(x.CreateTime, yyxt13) 114163 } else if z.DecBinary() { 114164 z.DecBinaryUnmarshal(&x.CreateTime) 114165 } else if !z.DecBinary() && z.IsJSONHandle() { 114166 z.DecJSONUnmarshal(&x.CreateTime) 114167 } else { 114168 z.DecFallback(&x.CreateTime, false) 114169 } 114170 } 114171 case "CreateIndex": 114172 if r.TryDecodeAsNil() { 114173 x.CreateIndex = 0 114174 } else { 114175 x.CreateIndex = (uint64)(r.DecodeUint64()) 114176 } 114177 case "ModifyIndex": 114178 if r.TryDecodeAsNil() { 114179 x.ModifyIndex = 0 114180 } else { 114181 x.ModifyIndex = (uint64)(r.DecodeUint64()) 114182 } 114183 default: 114184 z.DecStructFieldNotFound(-1, yys3) 114185 } // end switch yys3 114186 } // end for yyj3 114187 r.ReadMapEnd() 114188 } 114189 114190 func (x *ACLTokenListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 114191 var h codecSelfer100 114192 z, r := codec1978.GenHelperDecoder(d) 114193 _, _, _ = h, z, r 114194 var yyj16 int 114195 var yyb16 bool 114196 var yyhl16 bool = l >= 0 114197 yyj16++ 114198 if yyhl16 { 114199 yyb16 = yyj16 > l 114200 } else { 114201 yyb16 = r.CheckBreak() 114202 } 114203 if yyb16 { 114204 r.ReadArrayEnd() 114205 return 114206 } 114207 r.ReadArrayElem() 114208 if r.TryDecodeAsNil() { 114209 x.AccessorID = "" 114210 } else { 114211 x.AccessorID = (string)(r.DecodeString()) 114212 } 114213 yyj16++ 114214 if yyhl16 { 114215 yyb16 = yyj16 > l 114216 } else { 114217 yyb16 = r.CheckBreak() 114218 } 114219 if yyb16 { 114220 r.ReadArrayEnd() 114221 return 114222 } 114223 r.ReadArrayElem() 114224 if r.TryDecodeAsNil() { 114225 x.Name = "" 114226 } else { 114227 x.Name = (string)(r.DecodeString()) 114228 } 114229 yyj16++ 114230 if yyhl16 { 114231 yyb16 = yyj16 > l 114232 } else { 114233 yyb16 = r.CheckBreak() 114234 } 114235 if yyb16 { 114236 r.ReadArrayEnd() 114237 return 114238 } 114239 r.ReadArrayElem() 114240 if r.TryDecodeAsNil() { 114241 x.Type = "" 114242 } else { 114243 x.Type = (string)(r.DecodeString()) 114244 } 114245 yyj16++ 114246 if yyhl16 { 114247 yyb16 = yyj16 > l 114248 } else { 114249 yyb16 = r.CheckBreak() 114250 } 114251 if yyb16 { 114252 r.ReadArrayEnd() 114253 return 114254 } 114255 r.ReadArrayElem() 114256 if r.TryDecodeAsNil() { 114257 x.Policies = nil 114258 } else { 114259 if false { 114260 } else { 114261 z.F.DecSliceStringX(&x.Policies, d) 114262 } 114263 } 114264 yyj16++ 114265 if yyhl16 { 114266 yyb16 = yyj16 > l 114267 } else { 114268 yyb16 = r.CheckBreak() 114269 } 114270 if yyb16 { 114271 r.ReadArrayEnd() 114272 return 114273 } 114274 r.ReadArrayElem() 114275 if r.TryDecodeAsNil() { 114276 x.Global = false 114277 } else { 114278 x.Global = (bool)(r.DecodeBool()) 114279 } 114280 yyj16++ 114281 if yyhl16 { 114282 yyb16 = yyj16 > l 114283 } else { 114284 yyb16 = r.CheckBreak() 114285 } 114286 if yyb16 { 114287 r.ReadArrayEnd() 114288 return 114289 } 114290 r.ReadArrayElem() 114291 if r.TryDecodeAsNil() { 114292 x.Hash = nil 114293 } else { 114294 if false { 114295 } else { 114296 x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) 114297 } 114298 } 114299 yyj16++ 114300 if yyhl16 { 114301 yyb16 = yyj16 > l 114302 } else { 114303 yyb16 = r.CheckBreak() 114304 } 114305 if yyb16 { 114306 r.ReadArrayEnd() 114307 return 114308 } 114309 r.ReadArrayElem() 114310 if r.TryDecodeAsNil() { 114311 x.CreateTime = time.Time{} 114312 } else { 114313 if false { 114314 } else if !z.DecBasicHandle().TimeNotBuiltin { 114315 x.CreateTime = r.DecodeTime() 114316 } else if yyxt26 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt26 != nil { 114317 z.DecExtension(x.CreateTime, yyxt26) 114318 } else if z.DecBinary() { 114319 z.DecBinaryUnmarshal(&x.CreateTime) 114320 } else if !z.DecBinary() && z.IsJSONHandle() { 114321 z.DecJSONUnmarshal(&x.CreateTime) 114322 } else { 114323 z.DecFallback(&x.CreateTime, false) 114324 } 114325 } 114326 yyj16++ 114327 if yyhl16 { 114328 yyb16 = yyj16 > l 114329 } else { 114330 yyb16 = r.CheckBreak() 114331 } 114332 if yyb16 { 114333 r.ReadArrayEnd() 114334 return 114335 } 114336 r.ReadArrayElem() 114337 if r.TryDecodeAsNil() { 114338 x.CreateIndex = 0 114339 } else { 114340 x.CreateIndex = (uint64)(r.DecodeUint64()) 114341 } 114342 yyj16++ 114343 if yyhl16 { 114344 yyb16 = yyj16 > l 114345 } else { 114346 yyb16 = r.CheckBreak() 114347 } 114348 if yyb16 { 114349 r.ReadArrayEnd() 114350 return 114351 } 114352 r.ReadArrayElem() 114353 if r.TryDecodeAsNil() { 114354 x.ModifyIndex = 0 114355 } else { 114356 x.ModifyIndex = (uint64)(r.DecodeUint64()) 114357 } 114358 for { 114359 yyj16++ 114360 if yyhl16 { 114361 yyb16 = yyj16 > l 114362 } else { 114363 yyb16 = r.CheckBreak() 114364 } 114365 if yyb16 { 114366 break 114367 } 114368 r.ReadArrayElem() 114369 z.DecStructFieldNotFound(yyj16-1, "") 114370 } 114371 r.ReadArrayEnd() 114372 } 114373 114374 func (x *ACLTokenListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 114375 var h codecSelfer100 114376 z, r := codec1978.GenHelperEncoder(e) 114377 _, _, _ = h, z, r 114378 if x == nil { 114379 r.EncodeNil() 114380 } else { 114381 if false { 114382 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 114383 z.EncExtension(x, yyxt1) 114384 } else { 114385 yysep2 := !z.EncBinary() 114386 yy2arr2 := z.EncBasicHandle().StructToArray 114387 _, _ = yysep2, yy2arr2 114388 const yyr2 bool = false // struct tag has 'toArray' 114389 if yyr2 || yy2arr2 { 114390 r.WriteArrayStart(9) 114391 } else { 114392 r.WriteMapStart(9) 114393 } 114394 if yyr2 || yy2arr2 { 114395 r.WriteArrayElem() 114396 if false { 114397 } else { 114398 r.EncodeBool(bool(x.GlobalOnly)) 114399 } 114400 } else { 114401 r.WriteMapElemKey() 114402 if z.IsJSONHandle() { 114403 z.WriteStr("\"GlobalOnly\"") 114404 } else { 114405 r.EncodeStringEnc(codecSelferCcUTF8100, `GlobalOnly`) 114406 } 114407 r.WriteMapElemValue() 114408 if false { 114409 } else { 114410 r.EncodeBool(bool(x.GlobalOnly)) 114411 } 114412 } 114413 if yyr2 || yy2arr2 { 114414 r.WriteArrayElem() 114415 if false { 114416 } else { 114417 if z.EncBasicHandle().StringToRaw { 114418 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 114419 } else { 114420 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 114421 } 114422 } 114423 } else { 114424 r.WriteMapElemKey() 114425 if z.IsJSONHandle() { 114426 z.WriteStr("\"Region\"") 114427 } else { 114428 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 114429 } 114430 r.WriteMapElemValue() 114431 if false { 114432 } else { 114433 if z.EncBasicHandle().StringToRaw { 114434 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 114435 } else { 114436 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 114437 } 114438 } 114439 } 114440 if yyr2 || yy2arr2 { 114441 r.WriteArrayElem() 114442 if false { 114443 } else { 114444 if z.EncBasicHandle().StringToRaw { 114445 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 114446 } else { 114447 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 114448 } 114449 } 114450 } else { 114451 r.WriteMapElemKey() 114452 if z.IsJSONHandle() { 114453 z.WriteStr("\"Namespace\"") 114454 } else { 114455 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 114456 } 114457 r.WriteMapElemValue() 114458 if false { 114459 } else { 114460 if z.EncBasicHandle().StringToRaw { 114461 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 114462 } else { 114463 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 114464 } 114465 } 114466 } 114467 if yyr2 || yy2arr2 { 114468 r.WriteArrayElem() 114469 if false { 114470 } else { 114471 r.EncodeUint(uint64(x.MinQueryIndex)) 114472 } 114473 } else { 114474 r.WriteMapElemKey() 114475 if z.IsJSONHandle() { 114476 z.WriteStr("\"MinQueryIndex\"") 114477 } else { 114478 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 114479 } 114480 r.WriteMapElemValue() 114481 if false { 114482 } else { 114483 r.EncodeUint(uint64(x.MinQueryIndex)) 114484 } 114485 } 114486 if yyr2 || yy2arr2 { 114487 r.WriteArrayElem() 114488 if false { 114489 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 114490 z.EncExtension(x.MaxQueryTime, yyxt16) 114491 } else { 114492 r.EncodeInt(int64(x.MaxQueryTime)) 114493 } 114494 } else { 114495 r.WriteMapElemKey() 114496 if z.IsJSONHandle() { 114497 z.WriteStr("\"MaxQueryTime\"") 114498 } else { 114499 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 114500 } 114501 r.WriteMapElemValue() 114502 if false { 114503 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 114504 z.EncExtension(x.MaxQueryTime, yyxt17) 114505 } else { 114506 r.EncodeInt(int64(x.MaxQueryTime)) 114507 } 114508 } 114509 if yyr2 || yy2arr2 { 114510 r.WriteArrayElem() 114511 if false { 114512 } else { 114513 r.EncodeBool(bool(x.AllowStale)) 114514 } 114515 } else { 114516 r.WriteMapElemKey() 114517 if z.IsJSONHandle() { 114518 z.WriteStr("\"AllowStale\"") 114519 } else { 114520 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 114521 } 114522 r.WriteMapElemValue() 114523 if false { 114524 } else { 114525 r.EncodeBool(bool(x.AllowStale)) 114526 } 114527 } 114528 if yyr2 || yy2arr2 { 114529 r.WriteArrayElem() 114530 if false { 114531 } else { 114532 if z.EncBasicHandle().StringToRaw { 114533 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 114534 } else { 114535 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 114536 } 114537 } 114538 } else { 114539 r.WriteMapElemKey() 114540 if z.IsJSONHandle() { 114541 z.WriteStr("\"Prefix\"") 114542 } else { 114543 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 114544 } 114545 r.WriteMapElemValue() 114546 if false { 114547 } else { 114548 if z.EncBasicHandle().StringToRaw { 114549 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 114550 } else { 114551 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 114552 } 114553 } 114554 } 114555 if yyr2 || yy2arr2 { 114556 r.WriteArrayElem() 114557 if false { 114558 } else { 114559 if z.EncBasicHandle().StringToRaw { 114560 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 114561 } else { 114562 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 114563 } 114564 } 114565 } else { 114566 r.WriteMapElemKey() 114567 if z.IsJSONHandle() { 114568 z.WriteStr("\"AuthToken\"") 114569 } else { 114570 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 114571 } 114572 r.WriteMapElemValue() 114573 if false { 114574 } else { 114575 if z.EncBasicHandle().StringToRaw { 114576 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 114577 } else { 114578 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 114579 } 114580 } 114581 } 114582 if yyr2 || yy2arr2 { 114583 r.WriteArrayElem() 114584 if false { 114585 } else { 114586 r.EncodeBool(bool(x.Forwarded)) 114587 } 114588 } else { 114589 r.WriteMapElemKey() 114590 if z.IsJSONHandle() { 114591 z.WriteStr("\"Forwarded\"") 114592 } else { 114593 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 114594 } 114595 r.WriteMapElemValue() 114596 if false { 114597 } else { 114598 r.EncodeBool(bool(x.Forwarded)) 114599 } 114600 } 114601 if yyr2 || yy2arr2 { 114602 r.WriteArrayEnd() 114603 } else { 114604 r.WriteMapEnd() 114605 } 114606 } 114607 } 114608 } 114609 114610 func (x *ACLTokenListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 114611 var h codecSelfer100 114612 z, r := codec1978.GenHelperDecoder(d) 114613 _, _, _ = h, z, r 114614 if false { 114615 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 114616 z.DecExtension(x, yyxt1) 114617 } else { 114618 yyct2 := r.ContainerType() 114619 if yyct2 == codecSelferValueTypeMap100 { 114620 yyl2 := r.ReadMapStart() 114621 if yyl2 == 0 { 114622 r.ReadMapEnd() 114623 } else { 114624 x.codecDecodeSelfFromMap(yyl2, d) 114625 } 114626 } else if yyct2 == codecSelferValueTypeArray100 { 114627 yyl2 := r.ReadArrayStart() 114628 if yyl2 == 0 { 114629 r.ReadArrayEnd() 114630 } else { 114631 x.codecDecodeSelfFromArray(yyl2, d) 114632 } 114633 } else { 114634 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 114635 } 114636 } 114637 } 114638 114639 func (x *ACLTokenListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 114640 var h codecSelfer100 114641 z, r := codec1978.GenHelperDecoder(d) 114642 _, _, _ = h, z, r 114643 var yyhl3 bool = l >= 0 114644 for yyj3 := 0; ; yyj3++ { 114645 if yyhl3 { 114646 if yyj3 >= l { 114647 break 114648 } 114649 } else { 114650 if r.CheckBreak() { 114651 break 114652 } 114653 } 114654 r.ReadMapElemKey() 114655 yys3 := z.StringView(r.DecodeStringAsBytes()) 114656 r.ReadMapElemValue() 114657 switch yys3 { 114658 case "GlobalOnly": 114659 if r.TryDecodeAsNil() { 114660 x.GlobalOnly = false 114661 } else { 114662 x.GlobalOnly = (bool)(r.DecodeBool()) 114663 } 114664 case "Region": 114665 if r.TryDecodeAsNil() { 114666 x.QueryOptions.Region = "" 114667 } else { 114668 x.Region = (string)(r.DecodeString()) 114669 } 114670 case "Namespace": 114671 if r.TryDecodeAsNil() { 114672 x.QueryOptions.Namespace = "" 114673 } else { 114674 x.Namespace = (string)(r.DecodeString()) 114675 } 114676 case "MinQueryIndex": 114677 if r.TryDecodeAsNil() { 114678 x.QueryOptions.MinQueryIndex = 0 114679 } else { 114680 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 114681 } 114682 case "MaxQueryTime": 114683 if r.TryDecodeAsNil() { 114684 x.QueryOptions.MaxQueryTime = 0 114685 } else { 114686 if false { 114687 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 114688 z.DecExtension(x.MaxQueryTime, yyxt9) 114689 } else { 114690 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 114691 } 114692 } 114693 case "AllowStale": 114694 if r.TryDecodeAsNil() { 114695 x.QueryOptions.AllowStale = false 114696 } else { 114697 x.AllowStale = (bool)(r.DecodeBool()) 114698 } 114699 case "Prefix": 114700 if r.TryDecodeAsNil() { 114701 x.QueryOptions.Prefix = "" 114702 } else { 114703 x.Prefix = (string)(r.DecodeString()) 114704 } 114705 case "AuthToken": 114706 if r.TryDecodeAsNil() { 114707 x.QueryOptions.AuthToken = "" 114708 } else { 114709 x.AuthToken = (string)(r.DecodeString()) 114710 } 114711 case "Forwarded": 114712 if r.TryDecodeAsNil() { 114713 x.QueryOptions.InternalRpcInfo.Forwarded = false 114714 } else { 114715 x.Forwarded = (bool)(r.DecodeBool()) 114716 } 114717 default: 114718 z.DecStructFieldNotFound(-1, yys3) 114719 } // end switch yys3 114720 } // end for yyj3 114721 r.ReadMapEnd() 114722 } 114723 114724 func (x *ACLTokenListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 114725 var h codecSelfer100 114726 z, r := codec1978.GenHelperDecoder(d) 114727 _, _, _ = h, z, r 114728 var yyj14 int 114729 var yyb14 bool 114730 var yyhl14 bool = l >= 0 114731 yyj14++ 114732 if yyhl14 { 114733 yyb14 = yyj14 > l 114734 } else { 114735 yyb14 = r.CheckBreak() 114736 } 114737 if yyb14 { 114738 r.ReadArrayEnd() 114739 return 114740 } 114741 r.ReadArrayElem() 114742 if r.TryDecodeAsNil() { 114743 x.GlobalOnly = false 114744 } else { 114745 x.GlobalOnly = (bool)(r.DecodeBool()) 114746 } 114747 yyj14++ 114748 if yyhl14 { 114749 yyb14 = yyj14 > l 114750 } else { 114751 yyb14 = r.CheckBreak() 114752 } 114753 if yyb14 { 114754 r.ReadArrayEnd() 114755 return 114756 } 114757 r.ReadArrayElem() 114758 if r.TryDecodeAsNil() { 114759 x.QueryOptions.Region = "" 114760 } else { 114761 x.Region = (string)(r.DecodeString()) 114762 } 114763 yyj14++ 114764 if yyhl14 { 114765 yyb14 = yyj14 > l 114766 } else { 114767 yyb14 = r.CheckBreak() 114768 } 114769 if yyb14 { 114770 r.ReadArrayEnd() 114771 return 114772 } 114773 r.ReadArrayElem() 114774 if r.TryDecodeAsNil() { 114775 x.QueryOptions.Namespace = "" 114776 } else { 114777 x.Namespace = (string)(r.DecodeString()) 114778 } 114779 yyj14++ 114780 if yyhl14 { 114781 yyb14 = yyj14 > l 114782 } else { 114783 yyb14 = r.CheckBreak() 114784 } 114785 if yyb14 { 114786 r.ReadArrayEnd() 114787 return 114788 } 114789 r.ReadArrayElem() 114790 if r.TryDecodeAsNil() { 114791 x.QueryOptions.MinQueryIndex = 0 114792 } else { 114793 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 114794 } 114795 yyj14++ 114796 if yyhl14 { 114797 yyb14 = yyj14 > l 114798 } else { 114799 yyb14 = r.CheckBreak() 114800 } 114801 if yyb14 { 114802 r.ReadArrayEnd() 114803 return 114804 } 114805 r.ReadArrayElem() 114806 if r.TryDecodeAsNil() { 114807 x.QueryOptions.MaxQueryTime = 0 114808 } else { 114809 if false { 114810 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 114811 z.DecExtension(x.MaxQueryTime, yyxt20) 114812 } else { 114813 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 114814 } 114815 } 114816 yyj14++ 114817 if yyhl14 { 114818 yyb14 = yyj14 > l 114819 } else { 114820 yyb14 = r.CheckBreak() 114821 } 114822 if yyb14 { 114823 r.ReadArrayEnd() 114824 return 114825 } 114826 r.ReadArrayElem() 114827 if r.TryDecodeAsNil() { 114828 x.QueryOptions.AllowStale = false 114829 } else { 114830 x.AllowStale = (bool)(r.DecodeBool()) 114831 } 114832 yyj14++ 114833 if yyhl14 { 114834 yyb14 = yyj14 > l 114835 } else { 114836 yyb14 = r.CheckBreak() 114837 } 114838 if yyb14 { 114839 r.ReadArrayEnd() 114840 return 114841 } 114842 r.ReadArrayElem() 114843 if r.TryDecodeAsNil() { 114844 x.QueryOptions.Prefix = "" 114845 } else { 114846 x.Prefix = (string)(r.DecodeString()) 114847 } 114848 yyj14++ 114849 if yyhl14 { 114850 yyb14 = yyj14 > l 114851 } else { 114852 yyb14 = r.CheckBreak() 114853 } 114854 if yyb14 { 114855 r.ReadArrayEnd() 114856 return 114857 } 114858 r.ReadArrayElem() 114859 if r.TryDecodeAsNil() { 114860 x.QueryOptions.AuthToken = "" 114861 } else { 114862 x.AuthToken = (string)(r.DecodeString()) 114863 } 114864 yyj14++ 114865 if yyhl14 { 114866 yyb14 = yyj14 > l 114867 } else { 114868 yyb14 = r.CheckBreak() 114869 } 114870 if yyb14 { 114871 r.ReadArrayEnd() 114872 return 114873 } 114874 r.ReadArrayElem() 114875 if r.TryDecodeAsNil() { 114876 x.QueryOptions.InternalRpcInfo.Forwarded = false 114877 } else { 114878 x.Forwarded = (bool)(r.DecodeBool()) 114879 } 114880 for { 114881 yyj14++ 114882 if yyhl14 { 114883 yyb14 = yyj14 > l 114884 } else { 114885 yyb14 = r.CheckBreak() 114886 } 114887 if yyb14 { 114888 break 114889 } 114890 r.ReadArrayElem() 114891 z.DecStructFieldNotFound(yyj14-1, "") 114892 } 114893 r.ReadArrayEnd() 114894 } 114895 114896 func (x *ACLTokenSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { 114897 var h codecSelfer100 114898 z, r := codec1978.GenHelperEncoder(e) 114899 _, _, _ = h, z, r 114900 if x == nil { 114901 r.EncodeNil() 114902 } else { 114903 if false { 114904 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 114905 z.EncExtension(x, yyxt1) 114906 } else { 114907 yysep2 := !z.EncBinary() 114908 yy2arr2 := z.EncBasicHandle().StructToArray 114909 _, _ = yysep2, yy2arr2 114910 const yyr2 bool = false // struct tag has 'toArray' 114911 if yyr2 || yy2arr2 { 114912 r.WriteArrayStart(9) 114913 } else { 114914 r.WriteMapStart(9) 114915 } 114916 if yyr2 || yy2arr2 { 114917 r.WriteArrayElem() 114918 if false { 114919 } else { 114920 if z.EncBasicHandle().StringToRaw { 114921 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 114922 } else { 114923 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 114924 } 114925 } 114926 } else { 114927 r.WriteMapElemKey() 114928 if z.IsJSONHandle() { 114929 z.WriteStr("\"AccessorID\"") 114930 } else { 114931 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) 114932 } 114933 r.WriteMapElemValue() 114934 if false { 114935 } else { 114936 if z.EncBasicHandle().StringToRaw { 114937 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 114938 } else { 114939 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 114940 } 114941 } 114942 } 114943 if yyr2 || yy2arr2 { 114944 r.WriteArrayElem() 114945 if false { 114946 } else { 114947 if z.EncBasicHandle().StringToRaw { 114948 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 114949 } else { 114950 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 114951 } 114952 } 114953 } else { 114954 r.WriteMapElemKey() 114955 if z.IsJSONHandle() { 114956 z.WriteStr("\"Region\"") 114957 } else { 114958 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 114959 } 114960 r.WriteMapElemValue() 114961 if false { 114962 } else { 114963 if z.EncBasicHandle().StringToRaw { 114964 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 114965 } else { 114966 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 114967 } 114968 } 114969 } 114970 if yyr2 || yy2arr2 { 114971 r.WriteArrayElem() 114972 if false { 114973 } else { 114974 if z.EncBasicHandle().StringToRaw { 114975 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 114976 } else { 114977 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 114978 } 114979 } 114980 } else { 114981 r.WriteMapElemKey() 114982 if z.IsJSONHandle() { 114983 z.WriteStr("\"Namespace\"") 114984 } else { 114985 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 114986 } 114987 r.WriteMapElemValue() 114988 if false { 114989 } else { 114990 if z.EncBasicHandle().StringToRaw { 114991 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 114992 } else { 114993 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 114994 } 114995 } 114996 } 114997 if yyr2 || yy2arr2 { 114998 r.WriteArrayElem() 114999 if false { 115000 } else { 115001 r.EncodeUint(uint64(x.MinQueryIndex)) 115002 } 115003 } else { 115004 r.WriteMapElemKey() 115005 if z.IsJSONHandle() { 115006 z.WriteStr("\"MinQueryIndex\"") 115007 } else { 115008 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 115009 } 115010 r.WriteMapElemValue() 115011 if false { 115012 } else { 115013 r.EncodeUint(uint64(x.MinQueryIndex)) 115014 } 115015 } 115016 if yyr2 || yy2arr2 { 115017 r.WriteArrayElem() 115018 if false { 115019 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 115020 z.EncExtension(x.MaxQueryTime, yyxt16) 115021 } else { 115022 r.EncodeInt(int64(x.MaxQueryTime)) 115023 } 115024 } else { 115025 r.WriteMapElemKey() 115026 if z.IsJSONHandle() { 115027 z.WriteStr("\"MaxQueryTime\"") 115028 } else { 115029 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 115030 } 115031 r.WriteMapElemValue() 115032 if false { 115033 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 115034 z.EncExtension(x.MaxQueryTime, yyxt17) 115035 } else { 115036 r.EncodeInt(int64(x.MaxQueryTime)) 115037 } 115038 } 115039 if yyr2 || yy2arr2 { 115040 r.WriteArrayElem() 115041 if false { 115042 } else { 115043 r.EncodeBool(bool(x.AllowStale)) 115044 } 115045 } else { 115046 r.WriteMapElemKey() 115047 if z.IsJSONHandle() { 115048 z.WriteStr("\"AllowStale\"") 115049 } else { 115050 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 115051 } 115052 r.WriteMapElemValue() 115053 if false { 115054 } else { 115055 r.EncodeBool(bool(x.AllowStale)) 115056 } 115057 } 115058 if yyr2 || yy2arr2 { 115059 r.WriteArrayElem() 115060 if false { 115061 } else { 115062 if z.EncBasicHandle().StringToRaw { 115063 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 115064 } else { 115065 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 115066 } 115067 } 115068 } else { 115069 r.WriteMapElemKey() 115070 if z.IsJSONHandle() { 115071 z.WriteStr("\"Prefix\"") 115072 } else { 115073 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 115074 } 115075 r.WriteMapElemValue() 115076 if false { 115077 } else { 115078 if z.EncBasicHandle().StringToRaw { 115079 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 115080 } else { 115081 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 115082 } 115083 } 115084 } 115085 if yyr2 || yy2arr2 { 115086 r.WriteArrayElem() 115087 if false { 115088 } else { 115089 if z.EncBasicHandle().StringToRaw { 115090 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 115091 } else { 115092 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 115093 } 115094 } 115095 } else { 115096 r.WriteMapElemKey() 115097 if z.IsJSONHandle() { 115098 z.WriteStr("\"AuthToken\"") 115099 } else { 115100 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 115101 } 115102 r.WriteMapElemValue() 115103 if false { 115104 } else { 115105 if z.EncBasicHandle().StringToRaw { 115106 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 115107 } else { 115108 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 115109 } 115110 } 115111 } 115112 if yyr2 || yy2arr2 { 115113 r.WriteArrayElem() 115114 if false { 115115 } else { 115116 r.EncodeBool(bool(x.Forwarded)) 115117 } 115118 } else { 115119 r.WriteMapElemKey() 115120 if z.IsJSONHandle() { 115121 z.WriteStr("\"Forwarded\"") 115122 } else { 115123 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 115124 } 115125 r.WriteMapElemValue() 115126 if false { 115127 } else { 115128 r.EncodeBool(bool(x.Forwarded)) 115129 } 115130 } 115131 if yyr2 || yy2arr2 { 115132 r.WriteArrayEnd() 115133 } else { 115134 r.WriteMapEnd() 115135 } 115136 } 115137 } 115138 } 115139 115140 func (x *ACLTokenSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { 115141 var h codecSelfer100 115142 z, r := codec1978.GenHelperDecoder(d) 115143 _, _, _ = h, z, r 115144 if false { 115145 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 115146 z.DecExtension(x, yyxt1) 115147 } else { 115148 yyct2 := r.ContainerType() 115149 if yyct2 == codecSelferValueTypeMap100 { 115150 yyl2 := r.ReadMapStart() 115151 if yyl2 == 0 { 115152 r.ReadMapEnd() 115153 } else { 115154 x.codecDecodeSelfFromMap(yyl2, d) 115155 } 115156 } else if yyct2 == codecSelferValueTypeArray100 { 115157 yyl2 := r.ReadArrayStart() 115158 if yyl2 == 0 { 115159 r.ReadArrayEnd() 115160 } else { 115161 x.codecDecodeSelfFromArray(yyl2, d) 115162 } 115163 } else { 115164 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 115165 } 115166 } 115167 } 115168 115169 func (x *ACLTokenSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 115170 var h codecSelfer100 115171 z, r := codec1978.GenHelperDecoder(d) 115172 _, _, _ = h, z, r 115173 var yyhl3 bool = l >= 0 115174 for yyj3 := 0; ; yyj3++ { 115175 if yyhl3 { 115176 if yyj3 >= l { 115177 break 115178 } 115179 } else { 115180 if r.CheckBreak() { 115181 break 115182 } 115183 } 115184 r.ReadMapElemKey() 115185 yys3 := z.StringView(r.DecodeStringAsBytes()) 115186 r.ReadMapElemValue() 115187 switch yys3 { 115188 case "AccessorID": 115189 if r.TryDecodeAsNil() { 115190 x.AccessorID = "" 115191 } else { 115192 x.AccessorID = (string)(r.DecodeString()) 115193 } 115194 case "Region": 115195 if r.TryDecodeAsNil() { 115196 x.QueryOptions.Region = "" 115197 } else { 115198 x.Region = (string)(r.DecodeString()) 115199 } 115200 case "Namespace": 115201 if r.TryDecodeAsNil() { 115202 x.QueryOptions.Namespace = "" 115203 } else { 115204 x.Namespace = (string)(r.DecodeString()) 115205 } 115206 case "MinQueryIndex": 115207 if r.TryDecodeAsNil() { 115208 x.QueryOptions.MinQueryIndex = 0 115209 } else { 115210 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 115211 } 115212 case "MaxQueryTime": 115213 if r.TryDecodeAsNil() { 115214 x.QueryOptions.MaxQueryTime = 0 115215 } else { 115216 if false { 115217 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 115218 z.DecExtension(x.MaxQueryTime, yyxt9) 115219 } else { 115220 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 115221 } 115222 } 115223 case "AllowStale": 115224 if r.TryDecodeAsNil() { 115225 x.QueryOptions.AllowStale = false 115226 } else { 115227 x.AllowStale = (bool)(r.DecodeBool()) 115228 } 115229 case "Prefix": 115230 if r.TryDecodeAsNil() { 115231 x.QueryOptions.Prefix = "" 115232 } else { 115233 x.Prefix = (string)(r.DecodeString()) 115234 } 115235 case "AuthToken": 115236 if r.TryDecodeAsNil() { 115237 x.QueryOptions.AuthToken = "" 115238 } else { 115239 x.AuthToken = (string)(r.DecodeString()) 115240 } 115241 case "Forwarded": 115242 if r.TryDecodeAsNil() { 115243 x.QueryOptions.InternalRpcInfo.Forwarded = false 115244 } else { 115245 x.Forwarded = (bool)(r.DecodeBool()) 115246 } 115247 default: 115248 z.DecStructFieldNotFound(-1, yys3) 115249 } // end switch yys3 115250 } // end for yyj3 115251 r.ReadMapEnd() 115252 } 115253 115254 func (x *ACLTokenSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 115255 var h codecSelfer100 115256 z, r := codec1978.GenHelperDecoder(d) 115257 _, _, _ = h, z, r 115258 var yyj14 int 115259 var yyb14 bool 115260 var yyhl14 bool = l >= 0 115261 yyj14++ 115262 if yyhl14 { 115263 yyb14 = yyj14 > l 115264 } else { 115265 yyb14 = r.CheckBreak() 115266 } 115267 if yyb14 { 115268 r.ReadArrayEnd() 115269 return 115270 } 115271 r.ReadArrayElem() 115272 if r.TryDecodeAsNil() { 115273 x.AccessorID = "" 115274 } else { 115275 x.AccessorID = (string)(r.DecodeString()) 115276 } 115277 yyj14++ 115278 if yyhl14 { 115279 yyb14 = yyj14 > l 115280 } else { 115281 yyb14 = r.CheckBreak() 115282 } 115283 if yyb14 { 115284 r.ReadArrayEnd() 115285 return 115286 } 115287 r.ReadArrayElem() 115288 if r.TryDecodeAsNil() { 115289 x.QueryOptions.Region = "" 115290 } else { 115291 x.Region = (string)(r.DecodeString()) 115292 } 115293 yyj14++ 115294 if yyhl14 { 115295 yyb14 = yyj14 > l 115296 } else { 115297 yyb14 = r.CheckBreak() 115298 } 115299 if yyb14 { 115300 r.ReadArrayEnd() 115301 return 115302 } 115303 r.ReadArrayElem() 115304 if r.TryDecodeAsNil() { 115305 x.QueryOptions.Namespace = "" 115306 } else { 115307 x.Namespace = (string)(r.DecodeString()) 115308 } 115309 yyj14++ 115310 if yyhl14 { 115311 yyb14 = yyj14 > l 115312 } else { 115313 yyb14 = r.CheckBreak() 115314 } 115315 if yyb14 { 115316 r.ReadArrayEnd() 115317 return 115318 } 115319 r.ReadArrayElem() 115320 if r.TryDecodeAsNil() { 115321 x.QueryOptions.MinQueryIndex = 0 115322 } else { 115323 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 115324 } 115325 yyj14++ 115326 if yyhl14 { 115327 yyb14 = yyj14 > l 115328 } else { 115329 yyb14 = r.CheckBreak() 115330 } 115331 if yyb14 { 115332 r.ReadArrayEnd() 115333 return 115334 } 115335 r.ReadArrayElem() 115336 if r.TryDecodeAsNil() { 115337 x.QueryOptions.MaxQueryTime = 0 115338 } else { 115339 if false { 115340 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 115341 z.DecExtension(x.MaxQueryTime, yyxt20) 115342 } else { 115343 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 115344 } 115345 } 115346 yyj14++ 115347 if yyhl14 { 115348 yyb14 = yyj14 > l 115349 } else { 115350 yyb14 = r.CheckBreak() 115351 } 115352 if yyb14 { 115353 r.ReadArrayEnd() 115354 return 115355 } 115356 r.ReadArrayElem() 115357 if r.TryDecodeAsNil() { 115358 x.QueryOptions.AllowStale = false 115359 } else { 115360 x.AllowStale = (bool)(r.DecodeBool()) 115361 } 115362 yyj14++ 115363 if yyhl14 { 115364 yyb14 = yyj14 > l 115365 } else { 115366 yyb14 = r.CheckBreak() 115367 } 115368 if yyb14 { 115369 r.ReadArrayEnd() 115370 return 115371 } 115372 r.ReadArrayElem() 115373 if r.TryDecodeAsNil() { 115374 x.QueryOptions.Prefix = "" 115375 } else { 115376 x.Prefix = (string)(r.DecodeString()) 115377 } 115378 yyj14++ 115379 if yyhl14 { 115380 yyb14 = yyj14 > l 115381 } else { 115382 yyb14 = r.CheckBreak() 115383 } 115384 if yyb14 { 115385 r.ReadArrayEnd() 115386 return 115387 } 115388 r.ReadArrayElem() 115389 if r.TryDecodeAsNil() { 115390 x.QueryOptions.AuthToken = "" 115391 } else { 115392 x.AuthToken = (string)(r.DecodeString()) 115393 } 115394 yyj14++ 115395 if yyhl14 { 115396 yyb14 = yyj14 > l 115397 } else { 115398 yyb14 = r.CheckBreak() 115399 } 115400 if yyb14 { 115401 r.ReadArrayEnd() 115402 return 115403 } 115404 r.ReadArrayElem() 115405 if r.TryDecodeAsNil() { 115406 x.QueryOptions.InternalRpcInfo.Forwarded = false 115407 } else { 115408 x.Forwarded = (bool)(r.DecodeBool()) 115409 } 115410 for { 115411 yyj14++ 115412 if yyhl14 { 115413 yyb14 = yyj14 > l 115414 } else { 115415 yyb14 = r.CheckBreak() 115416 } 115417 if yyb14 { 115418 break 115419 } 115420 r.ReadArrayElem() 115421 z.DecStructFieldNotFound(yyj14-1, "") 115422 } 115423 r.ReadArrayEnd() 115424 } 115425 115426 func (x *ACLTokenSetRequest) CodecEncodeSelf(e *codec1978.Encoder) { 115427 var h codecSelfer100 115428 z, r := codec1978.GenHelperEncoder(e) 115429 _, _, _ = h, z, r 115430 if x == nil { 115431 r.EncodeNil() 115432 } else { 115433 if false { 115434 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 115435 z.EncExtension(x, yyxt1) 115436 } else { 115437 yysep2 := !z.EncBinary() 115438 yy2arr2 := z.EncBasicHandle().StructToArray 115439 _, _ = yysep2, yy2arr2 115440 const yyr2 bool = false // struct tag has 'toArray' 115441 if yyr2 || yy2arr2 { 115442 r.WriteArrayStart(9) 115443 } else { 115444 r.WriteMapStart(9) 115445 } 115446 if yyr2 || yy2arr2 { 115447 r.WriteArrayElem() 115448 if x.AccessorIDS == nil { 115449 r.EncodeNil() 115450 } else { 115451 if false { 115452 } else { 115453 z.F.EncSliceStringV(x.AccessorIDS, e) 115454 } 115455 } 115456 } else { 115457 r.WriteMapElemKey() 115458 if z.IsJSONHandle() { 115459 z.WriteStr("\"AccessorIDS\"") 115460 } else { 115461 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorIDS`) 115462 } 115463 r.WriteMapElemValue() 115464 if x.AccessorIDS == nil { 115465 r.EncodeNil() 115466 } else { 115467 if false { 115468 } else { 115469 z.F.EncSliceStringV(x.AccessorIDS, e) 115470 } 115471 } 115472 } 115473 if yyr2 || yy2arr2 { 115474 r.WriteArrayElem() 115475 if false { 115476 } else { 115477 if z.EncBasicHandle().StringToRaw { 115478 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 115479 } else { 115480 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 115481 } 115482 } 115483 } else { 115484 r.WriteMapElemKey() 115485 if z.IsJSONHandle() { 115486 z.WriteStr("\"Region\"") 115487 } else { 115488 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 115489 } 115490 r.WriteMapElemValue() 115491 if false { 115492 } else { 115493 if z.EncBasicHandle().StringToRaw { 115494 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 115495 } else { 115496 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 115497 } 115498 } 115499 } 115500 if yyr2 || yy2arr2 { 115501 r.WriteArrayElem() 115502 if false { 115503 } else { 115504 if z.EncBasicHandle().StringToRaw { 115505 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 115506 } else { 115507 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 115508 } 115509 } 115510 } else { 115511 r.WriteMapElemKey() 115512 if z.IsJSONHandle() { 115513 z.WriteStr("\"Namespace\"") 115514 } else { 115515 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 115516 } 115517 r.WriteMapElemValue() 115518 if false { 115519 } else { 115520 if z.EncBasicHandle().StringToRaw { 115521 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 115522 } else { 115523 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 115524 } 115525 } 115526 } 115527 if yyr2 || yy2arr2 { 115528 r.WriteArrayElem() 115529 if false { 115530 } else { 115531 r.EncodeUint(uint64(x.MinQueryIndex)) 115532 } 115533 } else { 115534 r.WriteMapElemKey() 115535 if z.IsJSONHandle() { 115536 z.WriteStr("\"MinQueryIndex\"") 115537 } else { 115538 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 115539 } 115540 r.WriteMapElemValue() 115541 if false { 115542 } else { 115543 r.EncodeUint(uint64(x.MinQueryIndex)) 115544 } 115545 } 115546 if yyr2 || yy2arr2 { 115547 r.WriteArrayElem() 115548 if false { 115549 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 115550 z.EncExtension(x.MaxQueryTime, yyxt16) 115551 } else { 115552 r.EncodeInt(int64(x.MaxQueryTime)) 115553 } 115554 } else { 115555 r.WriteMapElemKey() 115556 if z.IsJSONHandle() { 115557 z.WriteStr("\"MaxQueryTime\"") 115558 } else { 115559 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 115560 } 115561 r.WriteMapElemValue() 115562 if false { 115563 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 115564 z.EncExtension(x.MaxQueryTime, yyxt17) 115565 } else { 115566 r.EncodeInt(int64(x.MaxQueryTime)) 115567 } 115568 } 115569 if yyr2 || yy2arr2 { 115570 r.WriteArrayElem() 115571 if false { 115572 } else { 115573 r.EncodeBool(bool(x.AllowStale)) 115574 } 115575 } else { 115576 r.WriteMapElemKey() 115577 if z.IsJSONHandle() { 115578 z.WriteStr("\"AllowStale\"") 115579 } else { 115580 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 115581 } 115582 r.WriteMapElemValue() 115583 if false { 115584 } else { 115585 r.EncodeBool(bool(x.AllowStale)) 115586 } 115587 } 115588 if yyr2 || yy2arr2 { 115589 r.WriteArrayElem() 115590 if false { 115591 } else { 115592 if z.EncBasicHandle().StringToRaw { 115593 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 115594 } else { 115595 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 115596 } 115597 } 115598 } else { 115599 r.WriteMapElemKey() 115600 if z.IsJSONHandle() { 115601 z.WriteStr("\"Prefix\"") 115602 } else { 115603 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 115604 } 115605 r.WriteMapElemValue() 115606 if false { 115607 } else { 115608 if z.EncBasicHandle().StringToRaw { 115609 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 115610 } else { 115611 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 115612 } 115613 } 115614 } 115615 if yyr2 || yy2arr2 { 115616 r.WriteArrayElem() 115617 if false { 115618 } else { 115619 if z.EncBasicHandle().StringToRaw { 115620 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 115621 } else { 115622 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 115623 } 115624 } 115625 } else { 115626 r.WriteMapElemKey() 115627 if z.IsJSONHandle() { 115628 z.WriteStr("\"AuthToken\"") 115629 } else { 115630 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 115631 } 115632 r.WriteMapElemValue() 115633 if false { 115634 } else { 115635 if z.EncBasicHandle().StringToRaw { 115636 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 115637 } else { 115638 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 115639 } 115640 } 115641 } 115642 if yyr2 || yy2arr2 { 115643 r.WriteArrayElem() 115644 if false { 115645 } else { 115646 r.EncodeBool(bool(x.Forwarded)) 115647 } 115648 } else { 115649 r.WriteMapElemKey() 115650 if z.IsJSONHandle() { 115651 z.WriteStr("\"Forwarded\"") 115652 } else { 115653 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 115654 } 115655 r.WriteMapElemValue() 115656 if false { 115657 } else { 115658 r.EncodeBool(bool(x.Forwarded)) 115659 } 115660 } 115661 if yyr2 || yy2arr2 { 115662 r.WriteArrayEnd() 115663 } else { 115664 r.WriteMapEnd() 115665 } 115666 } 115667 } 115668 } 115669 115670 func (x *ACLTokenSetRequest) CodecDecodeSelf(d *codec1978.Decoder) { 115671 var h codecSelfer100 115672 z, r := codec1978.GenHelperDecoder(d) 115673 _, _, _ = h, z, r 115674 if false { 115675 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 115676 z.DecExtension(x, yyxt1) 115677 } else { 115678 yyct2 := r.ContainerType() 115679 if yyct2 == codecSelferValueTypeMap100 { 115680 yyl2 := r.ReadMapStart() 115681 if yyl2 == 0 { 115682 r.ReadMapEnd() 115683 } else { 115684 x.codecDecodeSelfFromMap(yyl2, d) 115685 } 115686 } else if yyct2 == codecSelferValueTypeArray100 { 115687 yyl2 := r.ReadArrayStart() 115688 if yyl2 == 0 { 115689 r.ReadArrayEnd() 115690 } else { 115691 x.codecDecodeSelfFromArray(yyl2, d) 115692 } 115693 } else { 115694 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 115695 } 115696 } 115697 } 115698 115699 func (x *ACLTokenSetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 115700 var h codecSelfer100 115701 z, r := codec1978.GenHelperDecoder(d) 115702 _, _, _ = h, z, r 115703 var yyhl3 bool = l >= 0 115704 for yyj3 := 0; ; yyj3++ { 115705 if yyhl3 { 115706 if yyj3 >= l { 115707 break 115708 } 115709 } else { 115710 if r.CheckBreak() { 115711 break 115712 } 115713 } 115714 r.ReadMapElemKey() 115715 yys3 := z.StringView(r.DecodeStringAsBytes()) 115716 r.ReadMapElemValue() 115717 switch yys3 { 115718 case "AccessorIDS": 115719 if r.TryDecodeAsNil() { 115720 x.AccessorIDS = nil 115721 } else { 115722 if false { 115723 } else { 115724 z.F.DecSliceStringX(&x.AccessorIDS, d) 115725 } 115726 } 115727 case "Region": 115728 if r.TryDecodeAsNil() { 115729 x.QueryOptions.Region = "" 115730 } else { 115731 x.Region = (string)(r.DecodeString()) 115732 } 115733 case "Namespace": 115734 if r.TryDecodeAsNil() { 115735 x.QueryOptions.Namespace = "" 115736 } else { 115737 x.Namespace = (string)(r.DecodeString()) 115738 } 115739 case "MinQueryIndex": 115740 if r.TryDecodeAsNil() { 115741 x.QueryOptions.MinQueryIndex = 0 115742 } else { 115743 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 115744 } 115745 case "MaxQueryTime": 115746 if r.TryDecodeAsNil() { 115747 x.QueryOptions.MaxQueryTime = 0 115748 } else { 115749 if false { 115750 } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { 115751 z.DecExtension(x.MaxQueryTime, yyxt10) 115752 } else { 115753 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 115754 } 115755 } 115756 case "AllowStale": 115757 if r.TryDecodeAsNil() { 115758 x.QueryOptions.AllowStale = false 115759 } else { 115760 x.AllowStale = (bool)(r.DecodeBool()) 115761 } 115762 case "Prefix": 115763 if r.TryDecodeAsNil() { 115764 x.QueryOptions.Prefix = "" 115765 } else { 115766 x.Prefix = (string)(r.DecodeString()) 115767 } 115768 case "AuthToken": 115769 if r.TryDecodeAsNil() { 115770 x.QueryOptions.AuthToken = "" 115771 } else { 115772 x.AuthToken = (string)(r.DecodeString()) 115773 } 115774 case "Forwarded": 115775 if r.TryDecodeAsNil() { 115776 x.QueryOptions.InternalRpcInfo.Forwarded = false 115777 } else { 115778 x.Forwarded = (bool)(r.DecodeBool()) 115779 } 115780 default: 115781 z.DecStructFieldNotFound(-1, yys3) 115782 } // end switch yys3 115783 } // end for yyj3 115784 r.ReadMapEnd() 115785 } 115786 115787 func (x *ACLTokenSetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 115788 var h codecSelfer100 115789 z, r := codec1978.GenHelperDecoder(d) 115790 _, _, _ = h, z, r 115791 var yyj15 int 115792 var yyb15 bool 115793 var yyhl15 bool = l >= 0 115794 yyj15++ 115795 if yyhl15 { 115796 yyb15 = yyj15 > l 115797 } else { 115798 yyb15 = r.CheckBreak() 115799 } 115800 if yyb15 { 115801 r.ReadArrayEnd() 115802 return 115803 } 115804 r.ReadArrayElem() 115805 if r.TryDecodeAsNil() { 115806 x.AccessorIDS = nil 115807 } else { 115808 if false { 115809 } else { 115810 z.F.DecSliceStringX(&x.AccessorIDS, d) 115811 } 115812 } 115813 yyj15++ 115814 if yyhl15 { 115815 yyb15 = yyj15 > l 115816 } else { 115817 yyb15 = r.CheckBreak() 115818 } 115819 if yyb15 { 115820 r.ReadArrayEnd() 115821 return 115822 } 115823 r.ReadArrayElem() 115824 if r.TryDecodeAsNil() { 115825 x.QueryOptions.Region = "" 115826 } else { 115827 x.Region = (string)(r.DecodeString()) 115828 } 115829 yyj15++ 115830 if yyhl15 { 115831 yyb15 = yyj15 > l 115832 } else { 115833 yyb15 = r.CheckBreak() 115834 } 115835 if yyb15 { 115836 r.ReadArrayEnd() 115837 return 115838 } 115839 r.ReadArrayElem() 115840 if r.TryDecodeAsNil() { 115841 x.QueryOptions.Namespace = "" 115842 } else { 115843 x.Namespace = (string)(r.DecodeString()) 115844 } 115845 yyj15++ 115846 if yyhl15 { 115847 yyb15 = yyj15 > l 115848 } else { 115849 yyb15 = r.CheckBreak() 115850 } 115851 if yyb15 { 115852 r.ReadArrayEnd() 115853 return 115854 } 115855 r.ReadArrayElem() 115856 if r.TryDecodeAsNil() { 115857 x.QueryOptions.MinQueryIndex = 0 115858 } else { 115859 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 115860 } 115861 yyj15++ 115862 if yyhl15 { 115863 yyb15 = yyj15 > l 115864 } else { 115865 yyb15 = r.CheckBreak() 115866 } 115867 if yyb15 { 115868 r.ReadArrayEnd() 115869 return 115870 } 115871 r.ReadArrayElem() 115872 if r.TryDecodeAsNil() { 115873 x.QueryOptions.MaxQueryTime = 0 115874 } else { 115875 if false { 115876 } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { 115877 z.DecExtension(x.MaxQueryTime, yyxt22) 115878 } else { 115879 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 115880 } 115881 } 115882 yyj15++ 115883 if yyhl15 { 115884 yyb15 = yyj15 > l 115885 } else { 115886 yyb15 = r.CheckBreak() 115887 } 115888 if yyb15 { 115889 r.ReadArrayEnd() 115890 return 115891 } 115892 r.ReadArrayElem() 115893 if r.TryDecodeAsNil() { 115894 x.QueryOptions.AllowStale = false 115895 } else { 115896 x.AllowStale = (bool)(r.DecodeBool()) 115897 } 115898 yyj15++ 115899 if yyhl15 { 115900 yyb15 = yyj15 > l 115901 } else { 115902 yyb15 = r.CheckBreak() 115903 } 115904 if yyb15 { 115905 r.ReadArrayEnd() 115906 return 115907 } 115908 r.ReadArrayElem() 115909 if r.TryDecodeAsNil() { 115910 x.QueryOptions.Prefix = "" 115911 } else { 115912 x.Prefix = (string)(r.DecodeString()) 115913 } 115914 yyj15++ 115915 if yyhl15 { 115916 yyb15 = yyj15 > l 115917 } else { 115918 yyb15 = r.CheckBreak() 115919 } 115920 if yyb15 { 115921 r.ReadArrayEnd() 115922 return 115923 } 115924 r.ReadArrayElem() 115925 if r.TryDecodeAsNil() { 115926 x.QueryOptions.AuthToken = "" 115927 } else { 115928 x.AuthToken = (string)(r.DecodeString()) 115929 } 115930 yyj15++ 115931 if yyhl15 { 115932 yyb15 = yyj15 > l 115933 } else { 115934 yyb15 = r.CheckBreak() 115935 } 115936 if yyb15 { 115937 r.ReadArrayEnd() 115938 return 115939 } 115940 r.ReadArrayElem() 115941 if r.TryDecodeAsNil() { 115942 x.QueryOptions.InternalRpcInfo.Forwarded = false 115943 } else { 115944 x.Forwarded = (bool)(r.DecodeBool()) 115945 } 115946 for { 115947 yyj15++ 115948 if yyhl15 { 115949 yyb15 = yyj15 > l 115950 } else { 115951 yyb15 = r.CheckBreak() 115952 } 115953 if yyb15 { 115954 break 115955 } 115956 r.ReadArrayElem() 115957 z.DecStructFieldNotFound(yyj15-1, "") 115958 } 115959 r.ReadArrayEnd() 115960 } 115961 115962 func (x *ACLTokenListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 115963 var h codecSelfer100 115964 z, r := codec1978.GenHelperEncoder(e) 115965 _, _, _ = h, z, r 115966 if x == nil { 115967 r.EncodeNil() 115968 } else { 115969 if false { 115970 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 115971 z.EncExtension(x, yyxt1) 115972 } else { 115973 yysep2 := !z.EncBinary() 115974 yy2arr2 := z.EncBasicHandle().StructToArray 115975 _, _ = yysep2, yy2arr2 115976 const yyr2 bool = false // struct tag has 'toArray' 115977 if yyr2 || yy2arr2 { 115978 r.WriteArrayStart(4) 115979 } else { 115980 r.WriteMapStart(4) 115981 } 115982 if yyr2 || yy2arr2 { 115983 r.WriteArrayElem() 115984 if x.Tokens == nil { 115985 r.EncodeNil() 115986 } else { 115987 if false { 115988 } else { 115989 h.encSlicePtrtoACLTokenListStub(([]*ACLTokenListStub)(x.Tokens), e) 115990 } 115991 } 115992 } else { 115993 r.WriteMapElemKey() 115994 if z.IsJSONHandle() { 115995 z.WriteStr("\"Tokens\"") 115996 } else { 115997 r.EncodeStringEnc(codecSelferCcUTF8100, `Tokens`) 115998 } 115999 r.WriteMapElemValue() 116000 if x.Tokens == nil { 116001 r.EncodeNil() 116002 } else { 116003 if false { 116004 } else { 116005 h.encSlicePtrtoACLTokenListStub(([]*ACLTokenListStub)(x.Tokens), e) 116006 } 116007 } 116008 } 116009 if yyr2 || yy2arr2 { 116010 r.WriteArrayElem() 116011 if false { 116012 } else { 116013 r.EncodeUint(uint64(x.Index)) 116014 } 116015 } else { 116016 r.WriteMapElemKey() 116017 if z.IsJSONHandle() { 116018 z.WriteStr("\"Index\"") 116019 } else { 116020 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 116021 } 116022 r.WriteMapElemValue() 116023 if false { 116024 } else { 116025 r.EncodeUint(uint64(x.Index)) 116026 } 116027 } 116028 if yyr2 || yy2arr2 { 116029 r.WriteArrayElem() 116030 if false { 116031 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 116032 z.EncExtension(x.LastContact, yyxt10) 116033 } else { 116034 r.EncodeInt(int64(x.LastContact)) 116035 } 116036 } else { 116037 r.WriteMapElemKey() 116038 if z.IsJSONHandle() { 116039 z.WriteStr("\"LastContact\"") 116040 } else { 116041 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 116042 } 116043 r.WriteMapElemValue() 116044 if false { 116045 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 116046 z.EncExtension(x.LastContact, yyxt11) 116047 } else { 116048 r.EncodeInt(int64(x.LastContact)) 116049 } 116050 } 116051 if yyr2 || yy2arr2 { 116052 r.WriteArrayElem() 116053 if false { 116054 } else { 116055 r.EncodeBool(bool(x.KnownLeader)) 116056 } 116057 } else { 116058 r.WriteMapElemKey() 116059 if z.IsJSONHandle() { 116060 z.WriteStr("\"KnownLeader\"") 116061 } else { 116062 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 116063 } 116064 r.WriteMapElemValue() 116065 if false { 116066 } else { 116067 r.EncodeBool(bool(x.KnownLeader)) 116068 } 116069 } 116070 if yyr2 || yy2arr2 { 116071 r.WriteArrayEnd() 116072 } else { 116073 r.WriteMapEnd() 116074 } 116075 } 116076 } 116077 } 116078 116079 func (x *ACLTokenListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 116080 var h codecSelfer100 116081 z, r := codec1978.GenHelperDecoder(d) 116082 _, _, _ = h, z, r 116083 if false { 116084 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 116085 z.DecExtension(x, yyxt1) 116086 } else { 116087 yyct2 := r.ContainerType() 116088 if yyct2 == codecSelferValueTypeMap100 { 116089 yyl2 := r.ReadMapStart() 116090 if yyl2 == 0 { 116091 r.ReadMapEnd() 116092 } else { 116093 x.codecDecodeSelfFromMap(yyl2, d) 116094 } 116095 } else if yyct2 == codecSelferValueTypeArray100 { 116096 yyl2 := r.ReadArrayStart() 116097 if yyl2 == 0 { 116098 r.ReadArrayEnd() 116099 } else { 116100 x.codecDecodeSelfFromArray(yyl2, d) 116101 } 116102 } else { 116103 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 116104 } 116105 } 116106 } 116107 116108 func (x *ACLTokenListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 116109 var h codecSelfer100 116110 z, r := codec1978.GenHelperDecoder(d) 116111 _, _, _ = h, z, r 116112 var yyhl3 bool = l >= 0 116113 for yyj3 := 0; ; yyj3++ { 116114 if yyhl3 { 116115 if yyj3 >= l { 116116 break 116117 } 116118 } else { 116119 if r.CheckBreak() { 116120 break 116121 } 116122 } 116123 r.ReadMapElemKey() 116124 yys3 := z.StringView(r.DecodeStringAsBytes()) 116125 r.ReadMapElemValue() 116126 switch yys3 { 116127 case "Tokens": 116128 if r.TryDecodeAsNil() { 116129 x.Tokens = nil 116130 } else { 116131 if false { 116132 } else { 116133 h.decSlicePtrtoACLTokenListStub((*[]*ACLTokenListStub)(&x.Tokens), d) 116134 } 116135 } 116136 case "Index": 116137 if r.TryDecodeAsNil() { 116138 x.QueryMeta.Index = 0 116139 } else { 116140 x.Index = (uint64)(r.DecodeUint64()) 116141 } 116142 case "LastContact": 116143 if r.TryDecodeAsNil() { 116144 x.QueryMeta.LastContact = 0 116145 } else { 116146 if false { 116147 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 116148 z.DecExtension(x.LastContact, yyxt8) 116149 } else { 116150 x.LastContact = (time.Duration)(r.DecodeInt64()) 116151 } 116152 } 116153 case "KnownLeader": 116154 if r.TryDecodeAsNil() { 116155 x.QueryMeta.KnownLeader = false 116156 } else { 116157 x.KnownLeader = (bool)(r.DecodeBool()) 116158 } 116159 default: 116160 z.DecStructFieldNotFound(-1, yys3) 116161 } // end switch yys3 116162 } // end for yyj3 116163 r.ReadMapEnd() 116164 } 116165 116166 func (x *ACLTokenListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 116167 var h codecSelfer100 116168 z, r := codec1978.GenHelperDecoder(d) 116169 _, _, _ = h, z, r 116170 var yyj10 int 116171 var yyb10 bool 116172 var yyhl10 bool = l >= 0 116173 yyj10++ 116174 if yyhl10 { 116175 yyb10 = yyj10 > l 116176 } else { 116177 yyb10 = r.CheckBreak() 116178 } 116179 if yyb10 { 116180 r.ReadArrayEnd() 116181 return 116182 } 116183 r.ReadArrayElem() 116184 if r.TryDecodeAsNil() { 116185 x.Tokens = nil 116186 } else { 116187 if false { 116188 } else { 116189 h.decSlicePtrtoACLTokenListStub((*[]*ACLTokenListStub)(&x.Tokens), d) 116190 } 116191 } 116192 yyj10++ 116193 if yyhl10 { 116194 yyb10 = yyj10 > l 116195 } else { 116196 yyb10 = r.CheckBreak() 116197 } 116198 if yyb10 { 116199 r.ReadArrayEnd() 116200 return 116201 } 116202 r.ReadArrayElem() 116203 if r.TryDecodeAsNil() { 116204 x.QueryMeta.Index = 0 116205 } else { 116206 x.Index = (uint64)(r.DecodeUint64()) 116207 } 116208 yyj10++ 116209 if yyhl10 { 116210 yyb10 = yyj10 > l 116211 } else { 116212 yyb10 = r.CheckBreak() 116213 } 116214 if yyb10 { 116215 r.ReadArrayEnd() 116216 return 116217 } 116218 r.ReadArrayElem() 116219 if r.TryDecodeAsNil() { 116220 x.QueryMeta.LastContact = 0 116221 } else { 116222 if false { 116223 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 116224 z.DecExtension(x.LastContact, yyxt15) 116225 } else { 116226 x.LastContact = (time.Duration)(r.DecodeInt64()) 116227 } 116228 } 116229 yyj10++ 116230 if yyhl10 { 116231 yyb10 = yyj10 > l 116232 } else { 116233 yyb10 = r.CheckBreak() 116234 } 116235 if yyb10 { 116236 r.ReadArrayEnd() 116237 return 116238 } 116239 r.ReadArrayElem() 116240 if r.TryDecodeAsNil() { 116241 x.QueryMeta.KnownLeader = false 116242 } else { 116243 x.KnownLeader = (bool)(r.DecodeBool()) 116244 } 116245 for { 116246 yyj10++ 116247 if yyhl10 { 116248 yyb10 = yyj10 > l 116249 } else { 116250 yyb10 = r.CheckBreak() 116251 } 116252 if yyb10 { 116253 break 116254 } 116255 r.ReadArrayElem() 116256 z.DecStructFieldNotFound(yyj10-1, "") 116257 } 116258 r.ReadArrayEnd() 116259 } 116260 116261 func (x *SingleACLTokenResponse) CodecEncodeSelf(e *codec1978.Encoder) { 116262 var h codecSelfer100 116263 z, r := codec1978.GenHelperEncoder(e) 116264 _, _, _ = h, z, r 116265 if x == nil { 116266 r.EncodeNil() 116267 } else { 116268 if false { 116269 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 116270 z.EncExtension(x, yyxt1) 116271 } else { 116272 yysep2 := !z.EncBinary() 116273 yy2arr2 := z.EncBasicHandle().StructToArray 116274 _, _ = yysep2, yy2arr2 116275 const yyr2 bool = false // struct tag has 'toArray' 116276 if yyr2 || yy2arr2 { 116277 r.WriteArrayStart(4) 116278 } else { 116279 r.WriteMapStart(4) 116280 } 116281 var yyn3 bool 116282 if x.Token == nil { 116283 yyn3 = true 116284 goto LABEL3 116285 } 116286 LABEL3: 116287 if yyr2 || yy2arr2 { 116288 if yyn3 { 116289 r.WriteArrayElem() 116290 r.EncodeNil() 116291 } else { 116292 r.WriteArrayElem() 116293 if x.Token == nil { 116294 r.EncodeNil() 116295 } else { 116296 x.Token.CodecEncodeSelf(e) 116297 } 116298 } 116299 } else { 116300 r.WriteMapElemKey() 116301 if z.IsJSONHandle() { 116302 z.WriteStr("\"Token\"") 116303 } else { 116304 r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) 116305 } 116306 r.WriteMapElemValue() 116307 if yyn3 { 116308 r.EncodeNil() 116309 } else { 116310 if x.Token == nil { 116311 r.EncodeNil() 116312 } else { 116313 x.Token.CodecEncodeSelf(e) 116314 } 116315 } 116316 } 116317 if yyr2 || yy2arr2 { 116318 r.WriteArrayElem() 116319 if false { 116320 } else { 116321 r.EncodeUint(uint64(x.Index)) 116322 } 116323 } else { 116324 r.WriteMapElemKey() 116325 if z.IsJSONHandle() { 116326 z.WriteStr("\"Index\"") 116327 } else { 116328 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 116329 } 116330 r.WriteMapElemValue() 116331 if false { 116332 } else { 116333 r.EncodeUint(uint64(x.Index)) 116334 } 116335 } 116336 if yyr2 || yy2arr2 { 116337 r.WriteArrayElem() 116338 if false { 116339 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 116340 z.EncExtension(x.LastContact, yyxt10) 116341 } else { 116342 r.EncodeInt(int64(x.LastContact)) 116343 } 116344 } else { 116345 r.WriteMapElemKey() 116346 if z.IsJSONHandle() { 116347 z.WriteStr("\"LastContact\"") 116348 } else { 116349 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 116350 } 116351 r.WriteMapElemValue() 116352 if false { 116353 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 116354 z.EncExtension(x.LastContact, yyxt11) 116355 } else { 116356 r.EncodeInt(int64(x.LastContact)) 116357 } 116358 } 116359 if yyr2 || yy2arr2 { 116360 r.WriteArrayElem() 116361 if false { 116362 } else { 116363 r.EncodeBool(bool(x.KnownLeader)) 116364 } 116365 } else { 116366 r.WriteMapElemKey() 116367 if z.IsJSONHandle() { 116368 z.WriteStr("\"KnownLeader\"") 116369 } else { 116370 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 116371 } 116372 r.WriteMapElemValue() 116373 if false { 116374 } else { 116375 r.EncodeBool(bool(x.KnownLeader)) 116376 } 116377 } 116378 if yyr2 || yy2arr2 { 116379 r.WriteArrayEnd() 116380 } else { 116381 r.WriteMapEnd() 116382 } 116383 } 116384 } 116385 } 116386 116387 func (x *SingleACLTokenResponse) CodecDecodeSelf(d *codec1978.Decoder) { 116388 var h codecSelfer100 116389 z, r := codec1978.GenHelperDecoder(d) 116390 _, _, _ = h, z, r 116391 if false { 116392 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 116393 z.DecExtension(x, yyxt1) 116394 } else { 116395 yyct2 := r.ContainerType() 116396 if yyct2 == codecSelferValueTypeMap100 { 116397 yyl2 := r.ReadMapStart() 116398 if yyl2 == 0 { 116399 r.ReadMapEnd() 116400 } else { 116401 x.codecDecodeSelfFromMap(yyl2, d) 116402 } 116403 } else if yyct2 == codecSelferValueTypeArray100 { 116404 yyl2 := r.ReadArrayStart() 116405 if yyl2 == 0 { 116406 r.ReadArrayEnd() 116407 } else { 116408 x.codecDecodeSelfFromArray(yyl2, d) 116409 } 116410 } else { 116411 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 116412 } 116413 } 116414 } 116415 116416 func (x *SingleACLTokenResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 116417 var h codecSelfer100 116418 z, r := codec1978.GenHelperDecoder(d) 116419 _, _, _ = h, z, r 116420 var yyhl3 bool = l >= 0 116421 for yyj3 := 0; ; yyj3++ { 116422 if yyhl3 { 116423 if yyj3 >= l { 116424 break 116425 } 116426 } else { 116427 if r.CheckBreak() { 116428 break 116429 } 116430 } 116431 r.ReadMapElemKey() 116432 yys3 := z.StringView(r.DecodeStringAsBytes()) 116433 r.ReadMapElemValue() 116434 switch yys3 { 116435 case "Token": 116436 if r.TryDecodeAsNil() { 116437 if true && x.Token != nil { 116438 x.Token = nil 116439 } 116440 } else { 116441 if x.Token == nil { 116442 x.Token = new(ACLToken) 116443 } 116444 116445 x.Token.CodecDecodeSelf(d) 116446 } 116447 case "Index": 116448 if r.TryDecodeAsNil() { 116449 x.QueryMeta.Index = 0 116450 } else { 116451 x.Index = (uint64)(r.DecodeUint64()) 116452 } 116453 case "LastContact": 116454 if r.TryDecodeAsNil() { 116455 x.QueryMeta.LastContact = 0 116456 } else { 116457 if false { 116458 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 116459 z.DecExtension(x.LastContact, yyxt7) 116460 } else { 116461 x.LastContact = (time.Duration)(r.DecodeInt64()) 116462 } 116463 } 116464 case "KnownLeader": 116465 if r.TryDecodeAsNil() { 116466 x.QueryMeta.KnownLeader = false 116467 } else { 116468 x.KnownLeader = (bool)(r.DecodeBool()) 116469 } 116470 default: 116471 z.DecStructFieldNotFound(-1, yys3) 116472 } // end switch yys3 116473 } // end for yyj3 116474 r.ReadMapEnd() 116475 } 116476 116477 func (x *SingleACLTokenResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 116478 var h codecSelfer100 116479 z, r := codec1978.GenHelperDecoder(d) 116480 _, _, _ = h, z, r 116481 var yyj9 int 116482 var yyb9 bool 116483 var yyhl9 bool = l >= 0 116484 yyj9++ 116485 if yyhl9 { 116486 yyb9 = yyj9 > l 116487 } else { 116488 yyb9 = r.CheckBreak() 116489 } 116490 if yyb9 { 116491 r.ReadArrayEnd() 116492 return 116493 } 116494 r.ReadArrayElem() 116495 if r.TryDecodeAsNil() { 116496 if true && x.Token != nil { 116497 x.Token = nil 116498 } 116499 } else { 116500 if x.Token == nil { 116501 x.Token = new(ACLToken) 116502 } 116503 116504 x.Token.CodecDecodeSelf(d) 116505 } 116506 yyj9++ 116507 if yyhl9 { 116508 yyb9 = yyj9 > l 116509 } else { 116510 yyb9 = r.CheckBreak() 116511 } 116512 if yyb9 { 116513 r.ReadArrayEnd() 116514 return 116515 } 116516 r.ReadArrayElem() 116517 if r.TryDecodeAsNil() { 116518 x.QueryMeta.Index = 0 116519 } else { 116520 x.Index = (uint64)(r.DecodeUint64()) 116521 } 116522 yyj9++ 116523 if yyhl9 { 116524 yyb9 = yyj9 > l 116525 } else { 116526 yyb9 = r.CheckBreak() 116527 } 116528 if yyb9 { 116529 r.ReadArrayEnd() 116530 return 116531 } 116532 r.ReadArrayElem() 116533 if r.TryDecodeAsNil() { 116534 x.QueryMeta.LastContact = 0 116535 } else { 116536 if false { 116537 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 116538 z.DecExtension(x.LastContact, yyxt13) 116539 } else { 116540 x.LastContact = (time.Duration)(r.DecodeInt64()) 116541 } 116542 } 116543 yyj9++ 116544 if yyhl9 { 116545 yyb9 = yyj9 > l 116546 } else { 116547 yyb9 = r.CheckBreak() 116548 } 116549 if yyb9 { 116550 r.ReadArrayEnd() 116551 return 116552 } 116553 r.ReadArrayElem() 116554 if r.TryDecodeAsNil() { 116555 x.QueryMeta.KnownLeader = false 116556 } else { 116557 x.KnownLeader = (bool)(r.DecodeBool()) 116558 } 116559 for { 116560 yyj9++ 116561 if yyhl9 { 116562 yyb9 = yyj9 > l 116563 } else { 116564 yyb9 = r.CheckBreak() 116565 } 116566 if yyb9 { 116567 break 116568 } 116569 r.ReadArrayElem() 116570 z.DecStructFieldNotFound(yyj9-1, "") 116571 } 116572 r.ReadArrayEnd() 116573 } 116574 116575 func (x *ACLTokenSetResponse) CodecEncodeSelf(e *codec1978.Encoder) { 116576 var h codecSelfer100 116577 z, r := codec1978.GenHelperEncoder(e) 116578 _, _, _ = h, z, r 116579 if x == nil { 116580 r.EncodeNil() 116581 } else { 116582 if false { 116583 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 116584 z.EncExtension(x, yyxt1) 116585 } else { 116586 yysep2 := !z.EncBinary() 116587 yy2arr2 := z.EncBasicHandle().StructToArray 116588 _, _ = yysep2, yy2arr2 116589 const yyr2 bool = false // struct tag has 'toArray' 116590 if yyr2 || yy2arr2 { 116591 r.WriteArrayStart(4) 116592 } else { 116593 r.WriteMapStart(4) 116594 } 116595 if yyr2 || yy2arr2 { 116596 r.WriteArrayElem() 116597 if x.Tokens == nil { 116598 r.EncodeNil() 116599 } else { 116600 if false { 116601 } else { 116602 h.encMapstringPtrtoACLToken((map[string]*ACLToken)(x.Tokens), e) 116603 } 116604 } 116605 } else { 116606 r.WriteMapElemKey() 116607 if z.IsJSONHandle() { 116608 z.WriteStr("\"Tokens\"") 116609 } else { 116610 r.EncodeStringEnc(codecSelferCcUTF8100, `Tokens`) 116611 } 116612 r.WriteMapElemValue() 116613 if x.Tokens == nil { 116614 r.EncodeNil() 116615 } else { 116616 if false { 116617 } else { 116618 h.encMapstringPtrtoACLToken((map[string]*ACLToken)(x.Tokens), e) 116619 } 116620 } 116621 } 116622 if yyr2 || yy2arr2 { 116623 r.WriteArrayElem() 116624 if false { 116625 } else { 116626 r.EncodeUint(uint64(x.Index)) 116627 } 116628 } else { 116629 r.WriteMapElemKey() 116630 if z.IsJSONHandle() { 116631 z.WriteStr("\"Index\"") 116632 } else { 116633 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 116634 } 116635 r.WriteMapElemValue() 116636 if false { 116637 } else { 116638 r.EncodeUint(uint64(x.Index)) 116639 } 116640 } 116641 if yyr2 || yy2arr2 { 116642 r.WriteArrayElem() 116643 if false { 116644 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 116645 z.EncExtension(x.LastContact, yyxt10) 116646 } else { 116647 r.EncodeInt(int64(x.LastContact)) 116648 } 116649 } else { 116650 r.WriteMapElemKey() 116651 if z.IsJSONHandle() { 116652 z.WriteStr("\"LastContact\"") 116653 } else { 116654 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 116655 } 116656 r.WriteMapElemValue() 116657 if false { 116658 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 116659 z.EncExtension(x.LastContact, yyxt11) 116660 } else { 116661 r.EncodeInt(int64(x.LastContact)) 116662 } 116663 } 116664 if yyr2 || yy2arr2 { 116665 r.WriteArrayElem() 116666 if false { 116667 } else { 116668 r.EncodeBool(bool(x.KnownLeader)) 116669 } 116670 } else { 116671 r.WriteMapElemKey() 116672 if z.IsJSONHandle() { 116673 z.WriteStr("\"KnownLeader\"") 116674 } else { 116675 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 116676 } 116677 r.WriteMapElemValue() 116678 if false { 116679 } else { 116680 r.EncodeBool(bool(x.KnownLeader)) 116681 } 116682 } 116683 if yyr2 || yy2arr2 { 116684 r.WriteArrayEnd() 116685 } else { 116686 r.WriteMapEnd() 116687 } 116688 } 116689 } 116690 } 116691 116692 func (x *ACLTokenSetResponse) CodecDecodeSelf(d *codec1978.Decoder) { 116693 var h codecSelfer100 116694 z, r := codec1978.GenHelperDecoder(d) 116695 _, _, _ = h, z, r 116696 if false { 116697 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 116698 z.DecExtension(x, yyxt1) 116699 } else { 116700 yyct2 := r.ContainerType() 116701 if yyct2 == codecSelferValueTypeMap100 { 116702 yyl2 := r.ReadMapStart() 116703 if yyl2 == 0 { 116704 r.ReadMapEnd() 116705 } else { 116706 x.codecDecodeSelfFromMap(yyl2, d) 116707 } 116708 } else if yyct2 == codecSelferValueTypeArray100 { 116709 yyl2 := r.ReadArrayStart() 116710 if yyl2 == 0 { 116711 r.ReadArrayEnd() 116712 } else { 116713 x.codecDecodeSelfFromArray(yyl2, d) 116714 } 116715 } else { 116716 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 116717 } 116718 } 116719 } 116720 116721 func (x *ACLTokenSetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 116722 var h codecSelfer100 116723 z, r := codec1978.GenHelperDecoder(d) 116724 _, _, _ = h, z, r 116725 var yyhl3 bool = l >= 0 116726 for yyj3 := 0; ; yyj3++ { 116727 if yyhl3 { 116728 if yyj3 >= l { 116729 break 116730 } 116731 } else { 116732 if r.CheckBreak() { 116733 break 116734 } 116735 } 116736 r.ReadMapElemKey() 116737 yys3 := z.StringView(r.DecodeStringAsBytes()) 116738 r.ReadMapElemValue() 116739 switch yys3 { 116740 case "Tokens": 116741 if r.TryDecodeAsNil() { 116742 x.Tokens = nil 116743 } else { 116744 if false { 116745 } else { 116746 h.decMapstringPtrtoACLToken((*map[string]*ACLToken)(&x.Tokens), d) 116747 } 116748 } 116749 case "Index": 116750 if r.TryDecodeAsNil() { 116751 x.QueryMeta.Index = 0 116752 } else { 116753 x.Index = (uint64)(r.DecodeUint64()) 116754 } 116755 case "LastContact": 116756 if r.TryDecodeAsNil() { 116757 x.QueryMeta.LastContact = 0 116758 } else { 116759 if false { 116760 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 116761 z.DecExtension(x.LastContact, yyxt8) 116762 } else { 116763 x.LastContact = (time.Duration)(r.DecodeInt64()) 116764 } 116765 } 116766 case "KnownLeader": 116767 if r.TryDecodeAsNil() { 116768 x.QueryMeta.KnownLeader = false 116769 } else { 116770 x.KnownLeader = (bool)(r.DecodeBool()) 116771 } 116772 default: 116773 z.DecStructFieldNotFound(-1, yys3) 116774 } // end switch yys3 116775 } // end for yyj3 116776 r.ReadMapEnd() 116777 } 116778 116779 func (x *ACLTokenSetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 116780 var h codecSelfer100 116781 z, r := codec1978.GenHelperDecoder(d) 116782 _, _, _ = h, z, r 116783 var yyj10 int 116784 var yyb10 bool 116785 var yyhl10 bool = l >= 0 116786 yyj10++ 116787 if yyhl10 { 116788 yyb10 = yyj10 > l 116789 } else { 116790 yyb10 = r.CheckBreak() 116791 } 116792 if yyb10 { 116793 r.ReadArrayEnd() 116794 return 116795 } 116796 r.ReadArrayElem() 116797 if r.TryDecodeAsNil() { 116798 x.Tokens = nil 116799 } else { 116800 if false { 116801 } else { 116802 h.decMapstringPtrtoACLToken((*map[string]*ACLToken)(&x.Tokens), d) 116803 } 116804 } 116805 yyj10++ 116806 if yyhl10 { 116807 yyb10 = yyj10 > l 116808 } else { 116809 yyb10 = r.CheckBreak() 116810 } 116811 if yyb10 { 116812 r.ReadArrayEnd() 116813 return 116814 } 116815 r.ReadArrayElem() 116816 if r.TryDecodeAsNil() { 116817 x.QueryMeta.Index = 0 116818 } else { 116819 x.Index = (uint64)(r.DecodeUint64()) 116820 } 116821 yyj10++ 116822 if yyhl10 { 116823 yyb10 = yyj10 > l 116824 } else { 116825 yyb10 = r.CheckBreak() 116826 } 116827 if yyb10 { 116828 r.ReadArrayEnd() 116829 return 116830 } 116831 r.ReadArrayElem() 116832 if r.TryDecodeAsNil() { 116833 x.QueryMeta.LastContact = 0 116834 } else { 116835 if false { 116836 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 116837 z.DecExtension(x.LastContact, yyxt15) 116838 } else { 116839 x.LastContact = (time.Duration)(r.DecodeInt64()) 116840 } 116841 } 116842 yyj10++ 116843 if yyhl10 { 116844 yyb10 = yyj10 > l 116845 } else { 116846 yyb10 = r.CheckBreak() 116847 } 116848 if yyb10 { 116849 r.ReadArrayEnd() 116850 return 116851 } 116852 r.ReadArrayElem() 116853 if r.TryDecodeAsNil() { 116854 x.QueryMeta.KnownLeader = false 116855 } else { 116856 x.KnownLeader = (bool)(r.DecodeBool()) 116857 } 116858 for { 116859 yyj10++ 116860 if yyhl10 { 116861 yyb10 = yyj10 > l 116862 } else { 116863 yyb10 = r.CheckBreak() 116864 } 116865 if yyb10 { 116866 break 116867 } 116868 r.ReadArrayElem() 116869 z.DecStructFieldNotFound(yyj10-1, "") 116870 } 116871 r.ReadArrayEnd() 116872 } 116873 116874 func (x *ResolveACLTokenRequest) CodecEncodeSelf(e *codec1978.Encoder) { 116875 var h codecSelfer100 116876 z, r := codec1978.GenHelperEncoder(e) 116877 _, _, _ = h, z, r 116878 if x == nil { 116879 r.EncodeNil() 116880 } else { 116881 if false { 116882 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 116883 z.EncExtension(x, yyxt1) 116884 } else { 116885 yysep2 := !z.EncBinary() 116886 yy2arr2 := z.EncBasicHandle().StructToArray 116887 _, _ = yysep2, yy2arr2 116888 const yyr2 bool = false // struct tag has 'toArray' 116889 if yyr2 || yy2arr2 { 116890 r.WriteArrayStart(9) 116891 } else { 116892 r.WriteMapStart(9) 116893 } 116894 if yyr2 || yy2arr2 { 116895 r.WriteArrayElem() 116896 if false { 116897 } else { 116898 if z.EncBasicHandle().StringToRaw { 116899 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 116900 } else { 116901 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 116902 } 116903 } 116904 } else { 116905 r.WriteMapElemKey() 116906 if z.IsJSONHandle() { 116907 z.WriteStr("\"SecretID\"") 116908 } else { 116909 r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) 116910 } 116911 r.WriteMapElemValue() 116912 if false { 116913 } else { 116914 if z.EncBasicHandle().StringToRaw { 116915 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 116916 } else { 116917 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 116918 } 116919 } 116920 } 116921 if yyr2 || yy2arr2 { 116922 r.WriteArrayElem() 116923 if false { 116924 } else { 116925 if z.EncBasicHandle().StringToRaw { 116926 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 116927 } else { 116928 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 116929 } 116930 } 116931 } else { 116932 r.WriteMapElemKey() 116933 if z.IsJSONHandle() { 116934 z.WriteStr("\"Region\"") 116935 } else { 116936 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 116937 } 116938 r.WriteMapElemValue() 116939 if false { 116940 } else { 116941 if z.EncBasicHandle().StringToRaw { 116942 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 116943 } else { 116944 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 116945 } 116946 } 116947 } 116948 if yyr2 || yy2arr2 { 116949 r.WriteArrayElem() 116950 if false { 116951 } else { 116952 if z.EncBasicHandle().StringToRaw { 116953 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 116954 } else { 116955 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 116956 } 116957 } 116958 } else { 116959 r.WriteMapElemKey() 116960 if z.IsJSONHandle() { 116961 z.WriteStr("\"Namespace\"") 116962 } else { 116963 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 116964 } 116965 r.WriteMapElemValue() 116966 if false { 116967 } else { 116968 if z.EncBasicHandle().StringToRaw { 116969 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 116970 } else { 116971 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 116972 } 116973 } 116974 } 116975 if yyr2 || yy2arr2 { 116976 r.WriteArrayElem() 116977 if false { 116978 } else { 116979 r.EncodeUint(uint64(x.MinQueryIndex)) 116980 } 116981 } else { 116982 r.WriteMapElemKey() 116983 if z.IsJSONHandle() { 116984 z.WriteStr("\"MinQueryIndex\"") 116985 } else { 116986 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 116987 } 116988 r.WriteMapElemValue() 116989 if false { 116990 } else { 116991 r.EncodeUint(uint64(x.MinQueryIndex)) 116992 } 116993 } 116994 if yyr2 || yy2arr2 { 116995 r.WriteArrayElem() 116996 if false { 116997 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 116998 z.EncExtension(x.MaxQueryTime, yyxt16) 116999 } else { 117000 r.EncodeInt(int64(x.MaxQueryTime)) 117001 } 117002 } else { 117003 r.WriteMapElemKey() 117004 if z.IsJSONHandle() { 117005 z.WriteStr("\"MaxQueryTime\"") 117006 } else { 117007 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 117008 } 117009 r.WriteMapElemValue() 117010 if false { 117011 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 117012 z.EncExtension(x.MaxQueryTime, yyxt17) 117013 } else { 117014 r.EncodeInt(int64(x.MaxQueryTime)) 117015 } 117016 } 117017 if yyr2 || yy2arr2 { 117018 r.WriteArrayElem() 117019 if false { 117020 } else { 117021 r.EncodeBool(bool(x.AllowStale)) 117022 } 117023 } else { 117024 r.WriteMapElemKey() 117025 if z.IsJSONHandle() { 117026 z.WriteStr("\"AllowStale\"") 117027 } else { 117028 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 117029 } 117030 r.WriteMapElemValue() 117031 if false { 117032 } else { 117033 r.EncodeBool(bool(x.AllowStale)) 117034 } 117035 } 117036 if yyr2 || yy2arr2 { 117037 r.WriteArrayElem() 117038 if false { 117039 } else { 117040 if z.EncBasicHandle().StringToRaw { 117041 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 117042 } else { 117043 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 117044 } 117045 } 117046 } else { 117047 r.WriteMapElemKey() 117048 if z.IsJSONHandle() { 117049 z.WriteStr("\"Prefix\"") 117050 } else { 117051 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 117052 } 117053 r.WriteMapElemValue() 117054 if false { 117055 } else { 117056 if z.EncBasicHandle().StringToRaw { 117057 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 117058 } else { 117059 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 117060 } 117061 } 117062 } 117063 if yyr2 || yy2arr2 { 117064 r.WriteArrayElem() 117065 if false { 117066 } else { 117067 if z.EncBasicHandle().StringToRaw { 117068 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 117069 } else { 117070 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 117071 } 117072 } 117073 } else { 117074 r.WriteMapElemKey() 117075 if z.IsJSONHandle() { 117076 z.WriteStr("\"AuthToken\"") 117077 } else { 117078 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 117079 } 117080 r.WriteMapElemValue() 117081 if false { 117082 } else { 117083 if z.EncBasicHandle().StringToRaw { 117084 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 117085 } else { 117086 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 117087 } 117088 } 117089 } 117090 if yyr2 || yy2arr2 { 117091 r.WriteArrayElem() 117092 if false { 117093 } else { 117094 r.EncodeBool(bool(x.Forwarded)) 117095 } 117096 } else { 117097 r.WriteMapElemKey() 117098 if z.IsJSONHandle() { 117099 z.WriteStr("\"Forwarded\"") 117100 } else { 117101 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 117102 } 117103 r.WriteMapElemValue() 117104 if false { 117105 } else { 117106 r.EncodeBool(bool(x.Forwarded)) 117107 } 117108 } 117109 if yyr2 || yy2arr2 { 117110 r.WriteArrayEnd() 117111 } else { 117112 r.WriteMapEnd() 117113 } 117114 } 117115 } 117116 } 117117 117118 func (x *ResolveACLTokenRequest) CodecDecodeSelf(d *codec1978.Decoder) { 117119 var h codecSelfer100 117120 z, r := codec1978.GenHelperDecoder(d) 117121 _, _, _ = h, z, r 117122 if false { 117123 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 117124 z.DecExtension(x, yyxt1) 117125 } else { 117126 yyct2 := r.ContainerType() 117127 if yyct2 == codecSelferValueTypeMap100 { 117128 yyl2 := r.ReadMapStart() 117129 if yyl2 == 0 { 117130 r.ReadMapEnd() 117131 } else { 117132 x.codecDecodeSelfFromMap(yyl2, d) 117133 } 117134 } else if yyct2 == codecSelferValueTypeArray100 { 117135 yyl2 := r.ReadArrayStart() 117136 if yyl2 == 0 { 117137 r.ReadArrayEnd() 117138 } else { 117139 x.codecDecodeSelfFromArray(yyl2, d) 117140 } 117141 } else { 117142 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 117143 } 117144 } 117145 } 117146 117147 func (x *ResolveACLTokenRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 117148 var h codecSelfer100 117149 z, r := codec1978.GenHelperDecoder(d) 117150 _, _, _ = h, z, r 117151 var yyhl3 bool = l >= 0 117152 for yyj3 := 0; ; yyj3++ { 117153 if yyhl3 { 117154 if yyj3 >= l { 117155 break 117156 } 117157 } else { 117158 if r.CheckBreak() { 117159 break 117160 } 117161 } 117162 r.ReadMapElemKey() 117163 yys3 := z.StringView(r.DecodeStringAsBytes()) 117164 r.ReadMapElemValue() 117165 switch yys3 { 117166 case "SecretID": 117167 if r.TryDecodeAsNil() { 117168 x.SecretID = "" 117169 } else { 117170 x.SecretID = (string)(r.DecodeString()) 117171 } 117172 case "Region": 117173 if r.TryDecodeAsNil() { 117174 x.QueryOptions.Region = "" 117175 } else { 117176 x.Region = (string)(r.DecodeString()) 117177 } 117178 case "Namespace": 117179 if r.TryDecodeAsNil() { 117180 x.QueryOptions.Namespace = "" 117181 } else { 117182 x.Namespace = (string)(r.DecodeString()) 117183 } 117184 case "MinQueryIndex": 117185 if r.TryDecodeAsNil() { 117186 x.QueryOptions.MinQueryIndex = 0 117187 } else { 117188 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 117189 } 117190 case "MaxQueryTime": 117191 if r.TryDecodeAsNil() { 117192 x.QueryOptions.MaxQueryTime = 0 117193 } else { 117194 if false { 117195 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 117196 z.DecExtension(x.MaxQueryTime, yyxt9) 117197 } else { 117198 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 117199 } 117200 } 117201 case "AllowStale": 117202 if r.TryDecodeAsNil() { 117203 x.QueryOptions.AllowStale = false 117204 } else { 117205 x.AllowStale = (bool)(r.DecodeBool()) 117206 } 117207 case "Prefix": 117208 if r.TryDecodeAsNil() { 117209 x.QueryOptions.Prefix = "" 117210 } else { 117211 x.Prefix = (string)(r.DecodeString()) 117212 } 117213 case "AuthToken": 117214 if r.TryDecodeAsNil() { 117215 x.QueryOptions.AuthToken = "" 117216 } else { 117217 x.AuthToken = (string)(r.DecodeString()) 117218 } 117219 case "Forwarded": 117220 if r.TryDecodeAsNil() { 117221 x.QueryOptions.InternalRpcInfo.Forwarded = false 117222 } else { 117223 x.Forwarded = (bool)(r.DecodeBool()) 117224 } 117225 default: 117226 z.DecStructFieldNotFound(-1, yys3) 117227 } // end switch yys3 117228 } // end for yyj3 117229 r.ReadMapEnd() 117230 } 117231 117232 func (x *ResolveACLTokenRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 117233 var h codecSelfer100 117234 z, r := codec1978.GenHelperDecoder(d) 117235 _, _, _ = h, z, r 117236 var yyj14 int 117237 var yyb14 bool 117238 var yyhl14 bool = l >= 0 117239 yyj14++ 117240 if yyhl14 { 117241 yyb14 = yyj14 > l 117242 } else { 117243 yyb14 = r.CheckBreak() 117244 } 117245 if yyb14 { 117246 r.ReadArrayEnd() 117247 return 117248 } 117249 r.ReadArrayElem() 117250 if r.TryDecodeAsNil() { 117251 x.SecretID = "" 117252 } else { 117253 x.SecretID = (string)(r.DecodeString()) 117254 } 117255 yyj14++ 117256 if yyhl14 { 117257 yyb14 = yyj14 > l 117258 } else { 117259 yyb14 = r.CheckBreak() 117260 } 117261 if yyb14 { 117262 r.ReadArrayEnd() 117263 return 117264 } 117265 r.ReadArrayElem() 117266 if r.TryDecodeAsNil() { 117267 x.QueryOptions.Region = "" 117268 } else { 117269 x.Region = (string)(r.DecodeString()) 117270 } 117271 yyj14++ 117272 if yyhl14 { 117273 yyb14 = yyj14 > l 117274 } else { 117275 yyb14 = r.CheckBreak() 117276 } 117277 if yyb14 { 117278 r.ReadArrayEnd() 117279 return 117280 } 117281 r.ReadArrayElem() 117282 if r.TryDecodeAsNil() { 117283 x.QueryOptions.Namespace = "" 117284 } else { 117285 x.Namespace = (string)(r.DecodeString()) 117286 } 117287 yyj14++ 117288 if yyhl14 { 117289 yyb14 = yyj14 > l 117290 } else { 117291 yyb14 = r.CheckBreak() 117292 } 117293 if yyb14 { 117294 r.ReadArrayEnd() 117295 return 117296 } 117297 r.ReadArrayElem() 117298 if r.TryDecodeAsNil() { 117299 x.QueryOptions.MinQueryIndex = 0 117300 } else { 117301 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 117302 } 117303 yyj14++ 117304 if yyhl14 { 117305 yyb14 = yyj14 > l 117306 } else { 117307 yyb14 = r.CheckBreak() 117308 } 117309 if yyb14 { 117310 r.ReadArrayEnd() 117311 return 117312 } 117313 r.ReadArrayElem() 117314 if r.TryDecodeAsNil() { 117315 x.QueryOptions.MaxQueryTime = 0 117316 } else { 117317 if false { 117318 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 117319 z.DecExtension(x.MaxQueryTime, yyxt20) 117320 } else { 117321 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 117322 } 117323 } 117324 yyj14++ 117325 if yyhl14 { 117326 yyb14 = yyj14 > l 117327 } else { 117328 yyb14 = r.CheckBreak() 117329 } 117330 if yyb14 { 117331 r.ReadArrayEnd() 117332 return 117333 } 117334 r.ReadArrayElem() 117335 if r.TryDecodeAsNil() { 117336 x.QueryOptions.AllowStale = false 117337 } else { 117338 x.AllowStale = (bool)(r.DecodeBool()) 117339 } 117340 yyj14++ 117341 if yyhl14 { 117342 yyb14 = yyj14 > l 117343 } else { 117344 yyb14 = r.CheckBreak() 117345 } 117346 if yyb14 { 117347 r.ReadArrayEnd() 117348 return 117349 } 117350 r.ReadArrayElem() 117351 if r.TryDecodeAsNil() { 117352 x.QueryOptions.Prefix = "" 117353 } else { 117354 x.Prefix = (string)(r.DecodeString()) 117355 } 117356 yyj14++ 117357 if yyhl14 { 117358 yyb14 = yyj14 > l 117359 } else { 117360 yyb14 = r.CheckBreak() 117361 } 117362 if yyb14 { 117363 r.ReadArrayEnd() 117364 return 117365 } 117366 r.ReadArrayElem() 117367 if r.TryDecodeAsNil() { 117368 x.QueryOptions.AuthToken = "" 117369 } else { 117370 x.AuthToken = (string)(r.DecodeString()) 117371 } 117372 yyj14++ 117373 if yyhl14 { 117374 yyb14 = yyj14 > l 117375 } else { 117376 yyb14 = r.CheckBreak() 117377 } 117378 if yyb14 { 117379 r.ReadArrayEnd() 117380 return 117381 } 117382 r.ReadArrayElem() 117383 if r.TryDecodeAsNil() { 117384 x.QueryOptions.InternalRpcInfo.Forwarded = false 117385 } else { 117386 x.Forwarded = (bool)(r.DecodeBool()) 117387 } 117388 for { 117389 yyj14++ 117390 if yyhl14 { 117391 yyb14 = yyj14 > l 117392 } else { 117393 yyb14 = r.CheckBreak() 117394 } 117395 if yyb14 { 117396 break 117397 } 117398 r.ReadArrayElem() 117399 z.DecStructFieldNotFound(yyj14-1, "") 117400 } 117401 r.ReadArrayEnd() 117402 } 117403 117404 func (x *ResolveACLTokenResponse) CodecEncodeSelf(e *codec1978.Encoder) { 117405 var h codecSelfer100 117406 z, r := codec1978.GenHelperEncoder(e) 117407 _, _, _ = h, z, r 117408 if x == nil { 117409 r.EncodeNil() 117410 } else { 117411 if false { 117412 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 117413 z.EncExtension(x, yyxt1) 117414 } else { 117415 yysep2 := !z.EncBinary() 117416 yy2arr2 := z.EncBasicHandle().StructToArray 117417 _, _ = yysep2, yy2arr2 117418 const yyr2 bool = false // struct tag has 'toArray' 117419 if yyr2 || yy2arr2 { 117420 r.WriteArrayStart(4) 117421 } else { 117422 r.WriteMapStart(4) 117423 } 117424 var yyn3 bool 117425 if x.Token == nil { 117426 yyn3 = true 117427 goto LABEL3 117428 } 117429 LABEL3: 117430 if yyr2 || yy2arr2 { 117431 if yyn3 { 117432 r.WriteArrayElem() 117433 r.EncodeNil() 117434 } else { 117435 r.WriteArrayElem() 117436 if x.Token == nil { 117437 r.EncodeNil() 117438 } else { 117439 x.Token.CodecEncodeSelf(e) 117440 } 117441 } 117442 } else { 117443 r.WriteMapElemKey() 117444 if z.IsJSONHandle() { 117445 z.WriteStr("\"Token\"") 117446 } else { 117447 r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) 117448 } 117449 r.WriteMapElemValue() 117450 if yyn3 { 117451 r.EncodeNil() 117452 } else { 117453 if x.Token == nil { 117454 r.EncodeNil() 117455 } else { 117456 x.Token.CodecEncodeSelf(e) 117457 } 117458 } 117459 } 117460 if yyr2 || yy2arr2 { 117461 r.WriteArrayElem() 117462 if false { 117463 } else { 117464 r.EncodeUint(uint64(x.Index)) 117465 } 117466 } else { 117467 r.WriteMapElemKey() 117468 if z.IsJSONHandle() { 117469 z.WriteStr("\"Index\"") 117470 } else { 117471 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 117472 } 117473 r.WriteMapElemValue() 117474 if false { 117475 } else { 117476 r.EncodeUint(uint64(x.Index)) 117477 } 117478 } 117479 if yyr2 || yy2arr2 { 117480 r.WriteArrayElem() 117481 if false { 117482 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 117483 z.EncExtension(x.LastContact, yyxt10) 117484 } else { 117485 r.EncodeInt(int64(x.LastContact)) 117486 } 117487 } else { 117488 r.WriteMapElemKey() 117489 if z.IsJSONHandle() { 117490 z.WriteStr("\"LastContact\"") 117491 } else { 117492 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 117493 } 117494 r.WriteMapElemValue() 117495 if false { 117496 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 117497 z.EncExtension(x.LastContact, yyxt11) 117498 } else { 117499 r.EncodeInt(int64(x.LastContact)) 117500 } 117501 } 117502 if yyr2 || yy2arr2 { 117503 r.WriteArrayElem() 117504 if false { 117505 } else { 117506 r.EncodeBool(bool(x.KnownLeader)) 117507 } 117508 } else { 117509 r.WriteMapElemKey() 117510 if z.IsJSONHandle() { 117511 z.WriteStr("\"KnownLeader\"") 117512 } else { 117513 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 117514 } 117515 r.WriteMapElemValue() 117516 if false { 117517 } else { 117518 r.EncodeBool(bool(x.KnownLeader)) 117519 } 117520 } 117521 if yyr2 || yy2arr2 { 117522 r.WriteArrayEnd() 117523 } else { 117524 r.WriteMapEnd() 117525 } 117526 } 117527 } 117528 } 117529 117530 func (x *ResolveACLTokenResponse) CodecDecodeSelf(d *codec1978.Decoder) { 117531 var h codecSelfer100 117532 z, r := codec1978.GenHelperDecoder(d) 117533 _, _, _ = h, z, r 117534 if false { 117535 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 117536 z.DecExtension(x, yyxt1) 117537 } else { 117538 yyct2 := r.ContainerType() 117539 if yyct2 == codecSelferValueTypeMap100 { 117540 yyl2 := r.ReadMapStart() 117541 if yyl2 == 0 { 117542 r.ReadMapEnd() 117543 } else { 117544 x.codecDecodeSelfFromMap(yyl2, d) 117545 } 117546 } else if yyct2 == codecSelferValueTypeArray100 { 117547 yyl2 := r.ReadArrayStart() 117548 if yyl2 == 0 { 117549 r.ReadArrayEnd() 117550 } else { 117551 x.codecDecodeSelfFromArray(yyl2, d) 117552 } 117553 } else { 117554 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 117555 } 117556 } 117557 } 117558 117559 func (x *ResolveACLTokenResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 117560 var h codecSelfer100 117561 z, r := codec1978.GenHelperDecoder(d) 117562 _, _, _ = h, z, r 117563 var yyhl3 bool = l >= 0 117564 for yyj3 := 0; ; yyj3++ { 117565 if yyhl3 { 117566 if yyj3 >= l { 117567 break 117568 } 117569 } else { 117570 if r.CheckBreak() { 117571 break 117572 } 117573 } 117574 r.ReadMapElemKey() 117575 yys3 := z.StringView(r.DecodeStringAsBytes()) 117576 r.ReadMapElemValue() 117577 switch yys3 { 117578 case "Token": 117579 if r.TryDecodeAsNil() { 117580 if true && x.Token != nil { 117581 x.Token = nil 117582 } 117583 } else { 117584 if x.Token == nil { 117585 x.Token = new(ACLToken) 117586 } 117587 117588 x.Token.CodecDecodeSelf(d) 117589 } 117590 case "Index": 117591 if r.TryDecodeAsNil() { 117592 x.QueryMeta.Index = 0 117593 } else { 117594 x.Index = (uint64)(r.DecodeUint64()) 117595 } 117596 case "LastContact": 117597 if r.TryDecodeAsNil() { 117598 x.QueryMeta.LastContact = 0 117599 } else { 117600 if false { 117601 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 117602 z.DecExtension(x.LastContact, yyxt7) 117603 } else { 117604 x.LastContact = (time.Duration)(r.DecodeInt64()) 117605 } 117606 } 117607 case "KnownLeader": 117608 if r.TryDecodeAsNil() { 117609 x.QueryMeta.KnownLeader = false 117610 } else { 117611 x.KnownLeader = (bool)(r.DecodeBool()) 117612 } 117613 default: 117614 z.DecStructFieldNotFound(-1, yys3) 117615 } // end switch yys3 117616 } // end for yyj3 117617 r.ReadMapEnd() 117618 } 117619 117620 func (x *ResolveACLTokenResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 117621 var h codecSelfer100 117622 z, r := codec1978.GenHelperDecoder(d) 117623 _, _, _ = h, z, r 117624 var yyj9 int 117625 var yyb9 bool 117626 var yyhl9 bool = l >= 0 117627 yyj9++ 117628 if yyhl9 { 117629 yyb9 = yyj9 > l 117630 } else { 117631 yyb9 = r.CheckBreak() 117632 } 117633 if yyb9 { 117634 r.ReadArrayEnd() 117635 return 117636 } 117637 r.ReadArrayElem() 117638 if r.TryDecodeAsNil() { 117639 if true && x.Token != nil { 117640 x.Token = nil 117641 } 117642 } else { 117643 if x.Token == nil { 117644 x.Token = new(ACLToken) 117645 } 117646 117647 x.Token.CodecDecodeSelf(d) 117648 } 117649 yyj9++ 117650 if yyhl9 { 117651 yyb9 = yyj9 > l 117652 } else { 117653 yyb9 = r.CheckBreak() 117654 } 117655 if yyb9 { 117656 r.ReadArrayEnd() 117657 return 117658 } 117659 r.ReadArrayElem() 117660 if r.TryDecodeAsNil() { 117661 x.QueryMeta.Index = 0 117662 } else { 117663 x.Index = (uint64)(r.DecodeUint64()) 117664 } 117665 yyj9++ 117666 if yyhl9 { 117667 yyb9 = yyj9 > l 117668 } else { 117669 yyb9 = r.CheckBreak() 117670 } 117671 if yyb9 { 117672 r.ReadArrayEnd() 117673 return 117674 } 117675 r.ReadArrayElem() 117676 if r.TryDecodeAsNil() { 117677 x.QueryMeta.LastContact = 0 117678 } else { 117679 if false { 117680 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 117681 z.DecExtension(x.LastContact, yyxt13) 117682 } else { 117683 x.LastContact = (time.Duration)(r.DecodeInt64()) 117684 } 117685 } 117686 yyj9++ 117687 if yyhl9 { 117688 yyb9 = yyj9 > l 117689 } else { 117690 yyb9 = r.CheckBreak() 117691 } 117692 if yyb9 { 117693 r.ReadArrayEnd() 117694 return 117695 } 117696 r.ReadArrayElem() 117697 if r.TryDecodeAsNil() { 117698 x.QueryMeta.KnownLeader = false 117699 } else { 117700 x.KnownLeader = (bool)(r.DecodeBool()) 117701 } 117702 for { 117703 yyj9++ 117704 if yyhl9 { 117705 yyb9 = yyj9 > l 117706 } else { 117707 yyb9 = r.CheckBreak() 117708 } 117709 if yyb9 { 117710 break 117711 } 117712 r.ReadArrayElem() 117713 z.DecStructFieldNotFound(yyj9-1, "") 117714 } 117715 r.ReadArrayEnd() 117716 } 117717 117718 func (x *ACLTokenDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { 117719 var h codecSelfer100 117720 z, r := codec1978.GenHelperEncoder(e) 117721 _, _, _ = h, z, r 117722 if x == nil { 117723 r.EncodeNil() 117724 } else { 117725 if false { 117726 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 117727 z.EncExtension(x, yyxt1) 117728 } else { 117729 yysep2 := !z.EncBinary() 117730 yy2arr2 := z.EncBasicHandle().StructToArray 117731 _, _ = yysep2, yy2arr2 117732 const yyr2 bool = false // struct tag has 'toArray' 117733 if yyr2 || yy2arr2 { 117734 r.WriteArrayStart(5) 117735 } else { 117736 r.WriteMapStart(5) 117737 } 117738 if yyr2 || yy2arr2 { 117739 r.WriteArrayElem() 117740 if x.AccessorIDs == nil { 117741 r.EncodeNil() 117742 } else { 117743 if false { 117744 } else { 117745 z.F.EncSliceStringV(x.AccessorIDs, e) 117746 } 117747 } 117748 } else { 117749 r.WriteMapElemKey() 117750 if z.IsJSONHandle() { 117751 z.WriteStr("\"AccessorIDs\"") 117752 } else { 117753 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorIDs`) 117754 } 117755 r.WriteMapElemValue() 117756 if x.AccessorIDs == nil { 117757 r.EncodeNil() 117758 } else { 117759 if false { 117760 } else { 117761 z.F.EncSliceStringV(x.AccessorIDs, e) 117762 } 117763 } 117764 } 117765 if yyr2 || yy2arr2 { 117766 r.WriteArrayElem() 117767 if false { 117768 } else { 117769 if z.EncBasicHandle().StringToRaw { 117770 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 117771 } else { 117772 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 117773 } 117774 } 117775 } else { 117776 r.WriteMapElemKey() 117777 if z.IsJSONHandle() { 117778 z.WriteStr("\"Region\"") 117779 } else { 117780 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 117781 } 117782 r.WriteMapElemValue() 117783 if false { 117784 } else { 117785 if z.EncBasicHandle().StringToRaw { 117786 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 117787 } else { 117788 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 117789 } 117790 } 117791 } 117792 if yyr2 || yy2arr2 { 117793 r.WriteArrayElem() 117794 if false { 117795 } else { 117796 if z.EncBasicHandle().StringToRaw { 117797 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 117798 } else { 117799 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 117800 } 117801 } 117802 } else { 117803 r.WriteMapElemKey() 117804 if z.IsJSONHandle() { 117805 z.WriteStr("\"Namespace\"") 117806 } else { 117807 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 117808 } 117809 r.WriteMapElemValue() 117810 if false { 117811 } else { 117812 if z.EncBasicHandle().StringToRaw { 117813 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 117814 } else { 117815 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 117816 } 117817 } 117818 } 117819 if yyr2 || yy2arr2 { 117820 r.WriteArrayElem() 117821 if false { 117822 } else { 117823 if z.EncBasicHandle().StringToRaw { 117824 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 117825 } else { 117826 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 117827 } 117828 } 117829 } else { 117830 r.WriteMapElemKey() 117831 if z.IsJSONHandle() { 117832 z.WriteStr("\"AuthToken\"") 117833 } else { 117834 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 117835 } 117836 r.WriteMapElemValue() 117837 if false { 117838 } else { 117839 if z.EncBasicHandle().StringToRaw { 117840 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 117841 } else { 117842 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 117843 } 117844 } 117845 } 117846 if yyr2 || yy2arr2 { 117847 r.WriteArrayElem() 117848 if false { 117849 } else { 117850 r.EncodeBool(bool(x.Forwarded)) 117851 } 117852 } else { 117853 r.WriteMapElemKey() 117854 if z.IsJSONHandle() { 117855 z.WriteStr("\"Forwarded\"") 117856 } else { 117857 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 117858 } 117859 r.WriteMapElemValue() 117860 if false { 117861 } else { 117862 r.EncodeBool(bool(x.Forwarded)) 117863 } 117864 } 117865 if yyr2 || yy2arr2 { 117866 r.WriteArrayEnd() 117867 } else { 117868 r.WriteMapEnd() 117869 } 117870 } 117871 } 117872 } 117873 117874 func (x *ACLTokenDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { 117875 var h codecSelfer100 117876 z, r := codec1978.GenHelperDecoder(d) 117877 _, _, _ = h, z, r 117878 if false { 117879 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 117880 z.DecExtension(x, yyxt1) 117881 } else { 117882 yyct2 := r.ContainerType() 117883 if yyct2 == codecSelferValueTypeMap100 { 117884 yyl2 := r.ReadMapStart() 117885 if yyl2 == 0 { 117886 r.ReadMapEnd() 117887 } else { 117888 x.codecDecodeSelfFromMap(yyl2, d) 117889 } 117890 } else if yyct2 == codecSelferValueTypeArray100 { 117891 yyl2 := r.ReadArrayStart() 117892 if yyl2 == 0 { 117893 r.ReadArrayEnd() 117894 } else { 117895 x.codecDecodeSelfFromArray(yyl2, d) 117896 } 117897 } else { 117898 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 117899 } 117900 } 117901 } 117902 117903 func (x *ACLTokenDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 117904 var h codecSelfer100 117905 z, r := codec1978.GenHelperDecoder(d) 117906 _, _, _ = h, z, r 117907 var yyhl3 bool = l >= 0 117908 for yyj3 := 0; ; yyj3++ { 117909 if yyhl3 { 117910 if yyj3 >= l { 117911 break 117912 } 117913 } else { 117914 if r.CheckBreak() { 117915 break 117916 } 117917 } 117918 r.ReadMapElemKey() 117919 yys3 := z.StringView(r.DecodeStringAsBytes()) 117920 r.ReadMapElemValue() 117921 switch yys3 { 117922 case "AccessorIDs": 117923 if r.TryDecodeAsNil() { 117924 x.AccessorIDs = nil 117925 } else { 117926 if false { 117927 } else { 117928 z.F.DecSliceStringX(&x.AccessorIDs, d) 117929 } 117930 } 117931 case "Region": 117932 if r.TryDecodeAsNil() { 117933 x.WriteRequest.Region = "" 117934 } else { 117935 x.Region = (string)(r.DecodeString()) 117936 } 117937 case "Namespace": 117938 if r.TryDecodeAsNil() { 117939 x.WriteRequest.Namespace = "" 117940 } else { 117941 x.Namespace = (string)(r.DecodeString()) 117942 } 117943 case "AuthToken": 117944 if r.TryDecodeAsNil() { 117945 x.WriteRequest.AuthToken = "" 117946 } else { 117947 x.AuthToken = (string)(r.DecodeString()) 117948 } 117949 case "Forwarded": 117950 if r.TryDecodeAsNil() { 117951 x.WriteRequest.InternalRpcInfo.Forwarded = false 117952 } else { 117953 x.Forwarded = (bool)(r.DecodeBool()) 117954 } 117955 default: 117956 z.DecStructFieldNotFound(-1, yys3) 117957 } // end switch yys3 117958 } // end for yyj3 117959 r.ReadMapEnd() 117960 } 117961 117962 func (x *ACLTokenDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 117963 var h codecSelfer100 117964 z, r := codec1978.GenHelperDecoder(d) 117965 _, _, _ = h, z, r 117966 var yyj10 int 117967 var yyb10 bool 117968 var yyhl10 bool = l >= 0 117969 yyj10++ 117970 if yyhl10 { 117971 yyb10 = yyj10 > l 117972 } else { 117973 yyb10 = r.CheckBreak() 117974 } 117975 if yyb10 { 117976 r.ReadArrayEnd() 117977 return 117978 } 117979 r.ReadArrayElem() 117980 if r.TryDecodeAsNil() { 117981 x.AccessorIDs = nil 117982 } else { 117983 if false { 117984 } else { 117985 z.F.DecSliceStringX(&x.AccessorIDs, d) 117986 } 117987 } 117988 yyj10++ 117989 if yyhl10 { 117990 yyb10 = yyj10 > l 117991 } else { 117992 yyb10 = r.CheckBreak() 117993 } 117994 if yyb10 { 117995 r.ReadArrayEnd() 117996 return 117997 } 117998 r.ReadArrayElem() 117999 if r.TryDecodeAsNil() { 118000 x.WriteRequest.Region = "" 118001 } else { 118002 x.Region = (string)(r.DecodeString()) 118003 } 118004 yyj10++ 118005 if yyhl10 { 118006 yyb10 = yyj10 > l 118007 } else { 118008 yyb10 = r.CheckBreak() 118009 } 118010 if yyb10 { 118011 r.ReadArrayEnd() 118012 return 118013 } 118014 r.ReadArrayElem() 118015 if r.TryDecodeAsNil() { 118016 x.WriteRequest.Namespace = "" 118017 } else { 118018 x.Namespace = (string)(r.DecodeString()) 118019 } 118020 yyj10++ 118021 if yyhl10 { 118022 yyb10 = yyj10 > l 118023 } else { 118024 yyb10 = r.CheckBreak() 118025 } 118026 if yyb10 { 118027 r.ReadArrayEnd() 118028 return 118029 } 118030 r.ReadArrayElem() 118031 if r.TryDecodeAsNil() { 118032 x.WriteRequest.AuthToken = "" 118033 } else { 118034 x.AuthToken = (string)(r.DecodeString()) 118035 } 118036 yyj10++ 118037 if yyhl10 { 118038 yyb10 = yyj10 > l 118039 } else { 118040 yyb10 = r.CheckBreak() 118041 } 118042 if yyb10 { 118043 r.ReadArrayEnd() 118044 return 118045 } 118046 r.ReadArrayElem() 118047 if r.TryDecodeAsNil() { 118048 x.WriteRequest.InternalRpcInfo.Forwarded = false 118049 } else { 118050 x.Forwarded = (bool)(r.DecodeBool()) 118051 } 118052 for { 118053 yyj10++ 118054 if yyhl10 { 118055 yyb10 = yyj10 > l 118056 } else { 118057 yyb10 = r.CheckBreak() 118058 } 118059 if yyb10 { 118060 break 118061 } 118062 r.ReadArrayElem() 118063 z.DecStructFieldNotFound(yyj10-1, "") 118064 } 118065 r.ReadArrayEnd() 118066 } 118067 118068 func (x *ACLTokenBootstrapRequest) CodecEncodeSelf(e *codec1978.Encoder) { 118069 var h codecSelfer100 118070 z, r := codec1978.GenHelperEncoder(e) 118071 _, _, _ = h, z, r 118072 if x == nil { 118073 r.EncodeNil() 118074 } else { 118075 if false { 118076 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 118077 z.EncExtension(x, yyxt1) 118078 } else { 118079 yysep2 := !z.EncBinary() 118080 yy2arr2 := z.EncBasicHandle().StructToArray 118081 _, _ = yysep2, yy2arr2 118082 const yyr2 bool = false // struct tag has 'toArray' 118083 if yyr2 || yy2arr2 { 118084 r.WriteArrayStart(6) 118085 } else { 118086 r.WriteMapStart(6) 118087 } 118088 var yyn3 bool 118089 if x.Token == nil { 118090 yyn3 = true 118091 goto LABEL3 118092 } 118093 LABEL3: 118094 if yyr2 || yy2arr2 { 118095 if yyn3 { 118096 r.WriteArrayElem() 118097 r.EncodeNil() 118098 } else { 118099 r.WriteArrayElem() 118100 if x.Token == nil { 118101 r.EncodeNil() 118102 } else { 118103 x.Token.CodecEncodeSelf(e) 118104 } 118105 } 118106 } else { 118107 r.WriteMapElemKey() 118108 if z.IsJSONHandle() { 118109 z.WriteStr("\"Token\"") 118110 } else { 118111 r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) 118112 } 118113 r.WriteMapElemValue() 118114 if yyn3 { 118115 r.EncodeNil() 118116 } else { 118117 if x.Token == nil { 118118 r.EncodeNil() 118119 } else { 118120 x.Token.CodecEncodeSelf(e) 118121 } 118122 } 118123 } 118124 if yyr2 || yy2arr2 { 118125 r.WriteArrayElem() 118126 if false { 118127 } else { 118128 r.EncodeUint(uint64(x.ResetIndex)) 118129 } 118130 } else { 118131 r.WriteMapElemKey() 118132 if z.IsJSONHandle() { 118133 z.WriteStr("\"ResetIndex\"") 118134 } else { 118135 r.EncodeStringEnc(codecSelferCcUTF8100, `ResetIndex`) 118136 } 118137 r.WriteMapElemValue() 118138 if false { 118139 } else { 118140 r.EncodeUint(uint64(x.ResetIndex)) 118141 } 118142 } 118143 if yyr2 || yy2arr2 { 118144 r.WriteArrayElem() 118145 if false { 118146 } else { 118147 if z.EncBasicHandle().StringToRaw { 118148 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 118149 } else { 118150 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 118151 } 118152 } 118153 } else { 118154 r.WriteMapElemKey() 118155 if z.IsJSONHandle() { 118156 z.WriteStr("\"Region\"") 118157 } else { 118158 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 118159 } 118160 r.WriteMapElemValue() 118161 if false { 118162 } else { 118163 if z.EncBasicHandle().StringToRaw { 118164 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 118165 } else { 118166 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 118167 } 118168 } 118169 } 118170 if yyr2 || yy2arr2 { 118171 r.WriteArrayElem() 118172 if false { 118173 } else { 118174 if z.EncBasicHandle().StringToRaw { 118175 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 118176 } else { 118177 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 118178 } 118179 } 118180 } else { 118181 r.WriteMapElemKey() 118182 if z.IsJSONHandle() { 118183 z.WriteStr("\"Namespace\"") 118184 } else { 118185 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 118186 } 118187 r.WriteMapElemValue() 118188 if false { 118189 } else { 118190 if z.EncBasicHandle().StringToRaw { 118191 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 118192 } else { 118193 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 118194 } 118195 } 118196 } 118197 if yyr2 || yy2arr2 { 118198 r.WriteArrayElem() 118199 if false { 118200 } else { 118201 if z.EncBasicHandle().StringToRaw { 118202 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 118203 } else { 118204 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 118205 } 118206 } 118207 } else { 118208 r.WriteMapElemKey() 118209 if z.IsJSONHandle() { 118210 z.WriteStr("\"AuthToken\"") 118211 } else { 118212 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 118213 } 118214 r.WriteMapElemValue() 118215 if false { 118216 } else { 118217 if z.EncBasicHandle().StringToRaw { 118218 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 118219 } else { 118220 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 118221 } 118222 } 118223 } 118224 if yyr2 || yy2arr2 { 118225 r.WriteArrayElem() 118226 if false { 118227 } else { 118228 r.EncodeBool(bool(x.Forwarded)) 118229 } 118230 } else { 118231 r.WriteMapElemKey() 118232 if z.IsJSONHandle() { 118233 z.WriteStr("\"Forwarded\"") 118234 } else { 118235 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 118236 } 118237 r.WriteMapElemValue() 118238 if false { 118239 } else { 118240 r.EncodeBool(bool(x.Forwarded)) 118241 } 118242 } 118243 if yyr2 || yy2arr2 { 118244 r.WriteArrayEnd() 118245 } else { 118246 r.WriteMapEnd() 118247 } 118248 } 118249 } 118250 } 118251 118252 func (x *ACLTokenBootstrapRequest) CodecDecodeSelf(d *codec1978.Decoder) { 118253 var h codecSelfer100 118254 z, r := codec1978.GenHelperDecoder(d) 118255 _, _, _ = h, z, r 118256 if false { 118257 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 118258 z.DecExtension(x, yyxt1) 118259 } else { 118260 yyct2 := r.ContainerType() 118261 if yyct2 == codecSelferValueTypeMap100 { 118262 yyl2 := r.ReadMapStart() 118263 if yyl2 == 0 { 118264 r.ReadMapEnd() 118265 } else { 118266 x.codecDecodeSelfFromMap(yyl2, d) 118267 } 118268 } else if yyct2 == codecSelferValueTypeArray100 { 118269 yyl2 := r.ReadArrayStart() 118270 if yyl2 == 0 { 118271 r.ReadArrayEnd() 118272 } else { 118273 x.codecDecodeSelfFromArray(yyl2, d) 118274 } 118275 } else { 118276 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 118277 } 118278 } 118279 } 118280 118281 func (x *ACLTokenBootstrapRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 118282 var h codecSelfer100 118283 z, r := codec1978.GenHelperDecoder(d) 118284 _, _, _ = h, z, r 118285 var yyhl3 bool = l >= 0 118286 for yyj3 := 0; ; yyj3++ { 118287 if yyhl3 { 118288 if yyj3 >= l { 118289 break 118290 } 118291 } else { 118292 if r.CheckBreak() { 118293 break 118294 } 118295 } 118296 r.ReadMapElemKey() 118297 yys3 := z.StringView(r.DecodeStringAsBytes()) 118298 r.ReadMapElemValue() 118299 switch yys3 { 118300 case "Token": 118301 if r.TryDecodeAsNil() { 118302 if true && x.Token != nil { 118303 x.Token = nil 118304 } 118305 } else { 118306 if x.Token == nil { 118307 x.Token = new(ACLToken) 118308 } 118309 118310 x.Token.CodecDecodeSelf(d) 118311 } 118312 case "ResetIndex": 118313 if r.TryDecodeAsNil() { 118314 x.ResetIndex = 0 118315 } else { 118316 x.ResetIndex = (uint64)(r.DecodeUint64()) 118317 } 118318 case "Region": 118319 if r.TryDecodeAsNil() { 118320 x.WriteRequest.Region = "" 118321 } else { 118322 x.Region = (string)(r.DecodeString()) 118323 } 118324 case "Namespace": 118325 if r.TryDecodeAsNil() { 118326 x.WriteRequest.Namespace = "" 118327 } else { 118328 x.Namespace = (string)(r.DecodeString()) 118329 } 118330 case "AuthToken": 118331 if r.TryDecodeAsNil() { 118332 x.WriteRequest.AuthToken = "" 118333 } else { 118334 x.AuthToken = (string)(r.DecodeString()) 118335 } 118336 case "Forwarded": 118337 if r.TryDecodeAsNil() { 118338 x.WriteRequest.InternalRpcInfo.Forwarded = false 118339 } else { 118340 x.Forwarded = (bool)(r.DecodeBool()) 118341 } 118342 default: 118343 z.DecStructFieldNotFound(-1, yys3) 118344 } // end switch yys3 118345 } // end for yyj3 118346 r.ReadMapEnd() 118347 } 118348 118349 func (x *ACLTokenBootstrapRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 118350 var h codecSelfer100 118351 z, r := codec1978.GenHelperDecoder(d) 118352 _, _, _ = h, z, r 118353 var yyj10 int 118354 var yyb10 bool 118355 var yyhl10 bool = l >= 0 118356 yyj10++ 118357 if yyhl10 { 118358 yyb10 = yyj10 > l 118359 } else { 118360 yyb10 = r.CheckBreak() 118361 } 118362 if yyb10 { 118363 r.ReadArrayEnd() 118364 return 118365 } 118366 r.ReadArrayElem() 118367 if r.TryDecodeAsNil() { 118368 if true && x.Token != nil { 118369 x.Token = nil 118370 } 118371 } else { 118372 if x.Token == nil { 118373 x.Token = new(ACLToken) 118374 } 118375 118376 x.Token.CodecDecodeSelf(d) 118377 } 118378 yyj10++ 118379 if yyhl10 { 118380 yyb10 = yyj10 > l 118381 } else { 118382 yyb10 = r.CheckBreak() 118383 } 118384 if yyb10 { 118385 r.ReadArrayEnd() 118386 return 118387 } 118388 r.ReadArrayElem() 118389 if r.TryDecodeAsNil() { 118390 x.ResetIndex = 0 118391 } else { 118392 x.ResetIndex = (uint64)(r.DecodeUint64()) 118393 } 118394 yyj10++ 118395 if yyhl10 { 118396 yyb10 = yyj10 > l 118397 } else { 118398 yyb10 = r.CheckBreak() 118399 } 118400 if yyb10 { 118401 r.ReadArrayEnd() 118402 return 118403 } 118404 r.ReadArrayElem() 118405 if r.TryDecodeAsNil() { 118406 x.WriteRequest.Region = "" 118407 } else { 118408 x.Region = (string)(r.DecodeString()) 118409 } 118410 yyj10++ 118411 if yyhl10 { 118412 yyb10 = yyj10 > l 118413 } else { 118414 yyb10 = r.CheckBreak() 118415 } 118416 if yyb10 { 118417 r.ReadArrayEnd() 118418 return 118419 } 118420 r.ReadArrayElem() 118421 if r.TryDecodeAsNil() { 118422 x.WriteRequest.Namespace = "" 118423 } else { 118424 x.Namespace = (string)(r.DecodeString()) 118425 } 118426 yyj10++ 118427 if yyhl10 { 118428 yyb10 = yyj10 > l 118429 } else { 118430 yyb10 = r.CheckBreak() 118431 } 118432 if yyb10 { 118433 r.ReadArrayEnd() 118434 return 118435 } 118436 r.ReadArrayElem() 118437 if r.TryDecodeAsNil() { 118438 x.WriteRequest.AuthToken = "" 118439 } else { 118440 x.AuthToken = (string)(r.DecodeString()) 118441 } 118442 yyj10++ 118443 if yyhl10 { 118444 yyb10 = yyj10 > l 118445 } else { 118446 yyb10 = r.CheckBreak() 118447 } 118448 if yyb10 { 118449 r.ReadArrayEnd() 118450 return 118451 } 118452 r.ReadArrayElem() 118453 if r.TryDecodeAsNil() { 118454 x.WriteRequest.InternalRpcInfo.Forwarded = false 118455 } else { 118456 x.Forwarded = (bool)(r.DecodeBool()) 118457 } 118458 for { 118459 yyj10++ 118460 if yyhl10 { 118461 yyb10 = yyj10 > l 118462 } else { 118463 yyb10 = r.CheckBreak() 118464 } 118465 if yyb10 { 118466 break 118467 } 118468 r.ReadArrayElem() 118469 z.DecStructFieldNotFound(yyj10-1, "") 118470 } 118471 r.ReadArrayEnd() 118472 } 118473 118474 func (x *ACLTokenUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { 118475 var h codecSelfer100 118476 z, r := codec1978.GenHelperEncoder(e) 118477 _, _, _ = h, z, r 118478 if x == nil { 118479 r.EncodeNil() 118480 } else { 118481 if false { 118482 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 118483 z.EncExtension(x, yyxt1) 118484 } else { 118485 yysep2 := !z.EncBinary() 118486 yy2arr2 := z.EncBasicHandle().StructToArray 118487 _, _ = yysep2, yy2arr2 118488 const yyr2 bool = false // struct tag has 'toArray' 118489 if yyr2 || yy2arr2 { 118490 r.WriteArrayStart(5) 118491 } else { 118492 r.WriteMapStart(5) 118493 } 118494 if yyr2 || yy2arr2 { 118495 r.WriteArrayElem() 118496 if x.Tokens == nil { 118497 r.EncodeNil() 118498 } else { 118499 if false { 118500 } else { 118501 h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) 118502 } 118503 } 118504 } else { 118505 r.WriteMapElemKey() 118506 if z.IsJSONHandle() { 118507 z.WriteStr("\"Tokens\"") 118508 } else { 118509 r.EncodeStringEnc(codecSelferCcUTF8100, `Tokens`) 118510 } 118511 r.WriteMapElemValue() 118512 if x.Tokens == nil { 118513 r.EncodeNil() 118514 } else { 118515 if false { 118516 } else { 118517 h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) 118518 } 118519 } 118520 } 118521 if yyr2 || yy2arr2 { 118522 r.WriteArrayElem() 118523 if false { 118524 } else { 118525 if z.EncBasicHandle().StringToRaw { 118526 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 118527 } else { 118528 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 118529 } 118530 } 118531 } else { 118532 r.WriteMapElemKey() 118533 if z.IsJSONHandle() { 118534 z.WriteStr("\"Region\"") 118535 } else { 118536 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 118537 } 118538 r.WriteMapElemValue() 118539 if false { 118540 } else { 118541 if z.EncBasicHandle().StringToRaw { 118542 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 118543 } else { 118544 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 118545 } 118546 } 118547 } 118548 if yyr2 || yy2arr2 { 118549 r.WriteArrayElem() 118550 if false { 118551 } else { 118552 if z.EncBasicHandle().StringToRaw { 118553 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 118554 } else { 118555 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 118556 } 118557 } 118558 } else { 118559 r.WriteMapElemKey() 118560 if z.IsJSONHandle() { 118561 z.WriteStr("\"Namespace\"") 118562 } else { 118563 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 118564 } 118565 r.WriteMapElemValue() 118566 if false { 118567 } else { 118568 if z.EncBasicHandle().StringToRaw { 118569 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 118570 } else { 118571 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 118572 } 118573 } 118574 } 118575 if yyr2 || yy2arr2 { 118576 r.WriteArrayElem() 118577 if false { 118578 } else { 118579 if z.EncBasicHandle().StringToRaw { 118580 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 118581 } else { 118582 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 118583 } 118584 } 118585 } else { 118586 r.WriteMapElemKey() 118587 if z.IsJSONHandle() { 118588 z.WriteStr("\"AuthToken\"") 118589 } else { 118590 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 118591 } 118592 r.WriteMapElemValue() 118593 if false { 118594 } else { 118595 if z.EncBasicHandle().StringToRaw { 118596 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 118597 } else { 118598 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 118599 } 118600 } 118601 } 118602 if yyr2 || yy2arr2 { 118603 r.WriteArrayElem() 118604 if false { 118605 } else { 118606 r.EncodeBool(bool(x.Forwarded)) 118607 } 118608 } else { 118609 r.WriteMapElemKey() 118610 if z.IsJSONHandle() { 118611 z.WriteStr("\"Forwarded\"") 118612 } else { 118613 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 118614 } 118615 r.WriteMapElemValue() 118616 if false { 118617 } else { 118618 r.EncodeBool(bool(x.Forwarded)) 118619 } 118620 } 118621 if yyr2 || yy2arr2 { 118622 r.WriteArrayEnd() 118623 } else { 118624 r.WriteMapEnd() 118625 } 118626 } 118627 } 118628 } 118629 118630 func (x *ACLTokenUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { 118631 var h codecSelfer100 118632 z, r := codec1978.GenHelperDecoder(d) 118633 _, _, _ = h, z, r 118634 if false { 118635 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 118636 z.DecExtension(x, yyxt1) 118637 } else { 118638 yyct2 := r.ContainerType() 118639 if yyct2 == codecSelferValueTypeMap100 { 118640 yyl2 := r.ReadMapStart() 118641 if yyl2 == 0 { 118642 r.ReadMapEnd() 118643 } else { 118644 x.codecDecodeSelfFromMap(yyl2, d) 118645 } 118646 } else if yyct2 == codecSelferValueTypeArray100 { 118647 yyl2 := r.ReadArrayStart() 118648 if yyl2 == 0 { 118649 r.ReadArrayEnd() 118650 } else { 118651 x.codecDecodeSelfFromArray(yyl2, d) 118652 } 118653 } else { 118654 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 118655 } 118656 } 118657 } 118658 118659 func (x *ACLTokenUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 118660 var h codecSelfer100 118661 z, r := codec1978.GenHelperDecoder(d) 118662 _, _, _ = h, z, r 118663 var yyhl3 bool = l >= 0 118664 for yyj3 := 0; ; yyj3++ { 118665 if yyhl3 { 118666 if yyj3 >= l { 118667 break 118668 } 118669 } else { 118670 if r.CheckBreak() { 118671 break 118672 } 118673 } 118674 r.ReadMapElemKey() 118675 yys3 := z.StringView(r.DecodeStringAsBytes()) 118676 r.ReadMapElemValue() 118677 switch yys3 { 118678 case "Tokens": 118679 if r.TryDecodeAsNil() { 118680 x.Tokens = nil 118681 } else { 118682 if false { 118683 } else { 118684 h.decSlicePtrtoACLToken((*[]*ACLToken)(&x.Tokens), d) 118685 } 118686 } 118687 case "Region": 118688 if r.TryDecodeAsNil() { 118689 x.WriteRequest.Region = "" 118690 } else { 118691 x.Region = (string)(r.DecodeString()) 118692 } 118693 case "Namespace": 118694 if r.TryDecodeAsNil() { 118695 x.WriteRequest.Namespace = "" 118696 } else { 118697 x.Namespace = (string)(r.DecodeString()) 118698 } 118699 case "AuthToken": 118700 if r.TryDecodeAsNil() { 118701 x.WriteRequest.AuthToken = "" 118702 } else { 118703 x.AuthToken = (string)(r.DecodeString()) 118704 } 118705 case "Forwarded": 118706 if r.TryDecodeAsNil() { 118707 x.WriteRequest.InternalRpcInfo.Forwarded = false 118708 } else { 118709 x.Forwarded = (bool)(r.DecodeBool()) 118710 } 118711 default: 118712 z.DecStructFieldNotFound(-1, yys3) 118713 } // end switch yys3 118714 } // end for yyj3 118715 r.ReadMapEnd() 118716 } 118717 118718 func (x *ACLTokenUpsertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 118719 var h codecSelfer100 118720 z, r := codec1978.GenHelperDecoder(d) 118721 _, _, _ = h, z, r 118722 var yyj10 int 118723 var yyb10 bool 118724 var yyhl10 bool = l >= 0 118725 yyj10++ 118726 if yyhl10 { 118727 yyb10 = yyj10 > l 118728 } else { 118729 yyb10 = r.CheckBreak() 118730 } 118731 if yyb10 { 118732 r.ReadArrayEnd() 118733 return 118734 } 118735 r.ReadArrayElem() 118736 if r.TryDecodeAsNil() { 118737 x.Tokens = nil 118738 } else { 118739 if false { 118740 } else { 118741 h.decSlicePtrtoACLToken((*[]*ACLToken)(&x.Tokens), d) 118742 } 118743 } 118744 yyj10++ 118745 if yyhl10 { 118746 yyb10 = yyj10 > l 118747 } else { 118748 yyb10 = r.CheckBreak() 118749 } 118750 if yyb10 { 118751 r.ReadArrayEnd() 118752 return 118753 } 118754 r.ReadArrayElem() 118755 if r.TryDecodeAsNil() { 118756 x.WriteRequest.Region = "" 118757 } else { 118758 x.Region = (string)(r.DecodeString()) 118759 } 118760 yyj10++ 118761 if yyhl10 { 118762 yyb10 = yyj10 > l 118763 } else { 118764 yyb10 = r.CheckBreak() 118765 } 118766 if yyb10 { 118767 r.ReadArrayEnd() 118768 return 118769 } 118770 r.ReadArrayElem() 118771 if r.TryDecodeAsNil() { 118772 x.WriteRequest.Namespace = "" 118773 } else { 118774 x.Namespace = (string)(r.DecodeString()) 118775 } 118776 yyj10++ 118777 if yyhl10 { 118778 yyb10 = yyj10 > l 118779 } else { 118780 yyb10 = r.CheckBreak() 118781 } 118782 if yyb10 { 118783 r.ReadArrayEnd() 118784 return 118785 } 118786 r.ReadArrayElem() 118787 if r.TryDecodeAsNil() { 118788 x.WriteRequest.AuthToken = "" 118789 } else { 118790 x.AuthToken = (string)(r.DecodeString()) 118791 } 118792 yyj10++ 118793 if yyhl10 { 118794 yyb10 = yyj10 > l 118795 } else { 118796 yyb10 = r.CheckBreak() 118797 } 118798 if yyb10 { 118799 r.ReadArrayEnd() 118800 return 118801 } 118802 r.ReadArrayElem() 118803 if r.TryDecodeAsNil() { 118804 x.WriteRequest.InternalRpcInfo.Forwarded = false 118805 } else { 118806 x.Forwarded = (bool)(r.DecodeBool()) 118807 } 118808 for { 118809 yyj10++ 118810 if yyhl10 { 118811 yyb10 = yyj10 > l 118812 } else { 118813 yyb10 = r.CheckBreak() 118814 } 118815 if yyb10 { 118816 break 118817 } 118818 r.ReadArrayElem() 118819 z.DecStructFieldNotFound(yyj10-1, "") 118820 } 118821 r.ReadArrayEnd() 118822 } 118823 118824 func (x *ACLTokenUpsertResponse) CodecEncodeSelf(e *codec1978.Encoder) { 118825 var h codecSelfer100 118826 z, r := codec1978.GenHelperEncoder(e) 118827 _, _, _ = h, z, r 118828 if x == nil { 118829 r.EncodeNil() 118830 } else { 118831 if false { 118832 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 118833 z.EncExtension(x, yyxt1) 118834 } else { 118835 yysep2 := !z.EncBinary() 118836 yy2arr2 := z.EncBasicHandle().StructToArray 118837 _, _ = yysep2, yy2arr2 118838 const yyr2 bool = false // struct tag has 'toArray' 118839 if yyr2 || yy2arr2 { 118840 r.WriteArrayStart(2) 118841 } else { 118842 r.WriteMapStart(2) 118843 } 118844 if yyr2 || yy2arr2 { 118845 r.WriteArrayElem() 118846 if x.Tokens == nil { 118847 r.EncodeNil() 118848 } else { 118849 if false { 118850 } else { 118851 h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) 118852 } 118853 } 118854 } else { 118855 r.WriteMapElemKey() 118856 if z.IsJSONHandle() { 118857 z.WriteStr("\"Tokens\"") 118858 } else { 118859 r.EncodeStringEnc(codecSelferCcUTF8100, `Tokens`) 118860 } 118861 r.WriteMapElemValue() 118862 if x.Tokens == nil { 118863 r.EncodeNil() 118864 } else { 118865 if false { 118866 } else { 118867 h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) 118868 } 118869 } 118870 } 118871 if yyr2 || yy2arr2 { 118872 r.WriteArrayElem() 118873 if false { 118874 } else { 118875 r.EncodeUint(uint64(x.Index)) 118876 } 118877 } else { 118878 r.WriteMapElemKey() 118879 if z.IsJSONHandle() { 118880 z.WriteStr("\"Index\"") 118881 } else { 118882 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 118883 } 118884 r.WriteMapElemValue() 118885 if false { 118886 } else { 118887 r.EncodeUint(uint64(x.Index)) 118888 } 118889 } 118890 if yyr2 || yy2arr2 { 118891 r.WriteArrayEnd() 118892 } else { 118893 r.WriteMapEnd() 118894 } 118895 } 118896 } 118897 } 118898 118899 func (x *ACLTokenUpsertResponse) CodecDecodeSelf(d *codec1978.Decoder) { 118900 var h codecSelfer100 118901 z, r := codec1978.GenHelperDecoder(d) 118902 _, _, _ = h, z, r 118903 if false { 118904 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 118905 z.DecExtension(x, yyxt1) 118906 } else { 118907 yyct2 := r.ContainerType() 118908 if yyct2 == codecSelferValueTypeMap100 { 118909 yyl2 := r.ReadMapStart() 118910 if yyl2 == 0 { 118911 r.ReadMapEnd() 118912 } else { 118913 x.codecDecodeSelfFromMap(yyl2, d) 118914 } 118915 } else if yyct2 == codecSelferValueTypeArray100 { 118916 yyl2 := r.ReadArrayStart() 118917 if yyl2 == 0 { 118918 r.ReadArrayEnd() 118919 } else { 118920 x.codecDecodeSelfFromArray(yyl2, d) 118921 } 118922 } else { 118923 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 118924 } 118925 } 118926 } 118927 118928 func (x *ACLTokenUpsertResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 118929 var h codecSelfer100 118930 z, r := codec1978.GenHelperDecoder(d) 118931 _, _, _ = h, z, r 118932 var yyhl3 bool = l >= 0 118933 for yyj3 := 0; ; yyj3++ { 118934 if yyhl3 { 118935 if yyj3 >= l { 118936 break 118937 } 118938 } else { 118939 if r.CheckBreak() { 118940 break 118941 } 118942 } 118943 r.ReadMapElemKey() 118944 yys3 := z.StringView(r.DecodeStringAsBytes()) 118945 r.ReadMapElemValue() 118946 switch yys3 { 118947 case "Tokens": 118948 if r.TryDecodeAsNil() { 118949 x.Tokens = nil 118950 } else { 118951 if false { 118952 } else { 118953 h.decSlicePtrtoACLToken((*[]*ACLToken)(&x.Tokens), d) 118954 } 118955 } 118956 case "Index": 118957 if r.TryDecodeAsNil() { 118958 x.WriteMeta.Index = 0 118959 } else { 118960 x.Index = (uint64)(r.DecodeUint64()) 118961 } 118962 default: 118963 z.DecStructFieldNotFound(-1, yys3) 118964 } // end switch yys3 118965 } // end for yyj3 118966 r.ReadMapEnd() 118967 } 118968 118969 func (x *ACLTokenUpsertResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 118970 var h codecSelfer100 118971 z, r := codec1978.GenHelperDecoder(d) 118972 _, _, _ = h, z, r 118973 var yyj7 int 118974 var yyb7 bool 118975 var yyhl7 bool = l >= 0 118976 yyj7++ 118977 if yyhl7 { 118978 yyb7 = yyj7 > l 118979 } else { 118980 yyb7 = r.CheckBreak() 118981 } 118982 if yyb7 { 118983 r.ReadArrayEnd() 118984 return 118985 } 118986 r.ReadArrayElem() 118987 if r.TryDecodeAsNil() { 118988 x.Tokens = nil 118989 } else { 118990 if false { 118991 } else { 118992 h.decSlicePtrtoACLToken((*[]*ACLToken)(&x.Tokens), d) 118993 } 118994 } 118995 yyj7++ 118996 if yyhl7 { 118997 yyb7 = yyj7 > l 118998 } else { 118999 yyb7 = r.CheckBreak() 119000 } 119001 if yyb7 { 119002 r.ReadArrayEnd() 119003 return 119004 } 119005 r.ReadArrayElem() 119006 if r.TryDecodeAsNil() { 119007 x.WriteMeta.Index = 0 119008 } else { 119009 x.Index = (uint64)(r.DecodeUint64()) 119010 } 119011 for { 119012 yyj7++ 119013 if yyhl7 { 119014 yyb7 = yyj7 > l 119015 } else { 119016 yyb7 = r.CheckBreak() 119017 } 119018 if yyb7 { 119019 break 119020 } 119021 r.ReadArrayElem() 119022 z.DecStructFieldNotFound(yyj7-1, "") 119023 } 119024 r.ReadArrayEnd() 119025 } 119026 119027 func (x *ClientHostVolumeConfig) CodecEncodeSelf(e *codec1978.Encoder) { 119028 var h codecSelfer100 119029 z, r := codec1978.GenHelperEncoder(e) 119030 _, _, _ = h, z, r 119031 if x == nil { 119032 r.EncodeNil() 119033 } else { 119034 if false { 119035 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 119036 z.EncExtension(x, yyxt1) 119037 } else { 119038 yysep2 := !z.EncBinary() 119039 yy2arr2 := z.EncBasicHandle().StructToArray 119040 _, _ = yysep2, yy2arr2 119041 const yyr2 bool = false // struct tag has 'toArray' 119042 if yyr2 || yy2arr2 { 119043 r.WriteArrayStart(3) 119044 } else { 119045 r.WriteMapStart(3) 119046 } 119047 if yyr2 || yy2arr2 { 119048 r.WriteArrayElem() 119049 if false { 119050 } else { 119051 if z.EncBasicHandle().StringToRaw { 119052 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 119053 } else { 119054 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 119055 } 119056 } 119057 } else { 119058 r.WriteMapElemKey() 119059 if z.IsJSONHandle() { 119060 z.WriteStr("\"Name\"") 119061 } else { 119062 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 119063 } 119064 r.WriteMapElemValue() 119065 if false { 119066 } else { 119067 if z.EncBasicHandle().StringToRaw { 119068 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 119069 } else { 119070 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 119071 } 119072 } 119073 } 119074 if yyr2 || yy2arr2 { 119075 r.WriteArrayElem() 119076 if false { 119077 } else { 119078 if z.EncBasicHandle().StringToRaw { 119079 r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) 119080 } else { 119081 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) 119082 } 119083 } 119084 } else { 119085 r.WriteMapElemKey() 119086 if z.IsJSONHandle() { 119087 z.WriteStr("\"Path\"") 119088 } else { 119089 r.EncodeStringEnc(codecSelferCcUTF8100, `Path`) 119090 } 119091 r.WriteMapElemValue() 119092 if false { 119093 } else { 119094 if z.EncBasicHandle().StringToRaw { 119095 r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) 119096 } else { 119097 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) 119098 } 119099 } 119100 } 119101 if yyr2 || yy2arr2 { 119102 r.WriteArrayElem() 119103 if false { 119104 } else { 119105 r.EncodeBool(bool(x.ReadOnly)) 119106 } 119107 } else { 119108 r.WriteMapElemKey() 119109 if z.IsJSONHandle() { 119110 z.WriteStr("\"ReadOnly\"") 119111 } else { 119112 r.EncodeStringEnc(codecSelferCcUTF8100, `ReadOnly`) 119113 } 119114 r.WriteMapElemValue() 119115 if false { 119116 } else { 119117 r.EncodeBool(bool(x.ReadOnly)) 119118 } 119119 } 119120 if yyr2 || yy2arr2 { 119121 r.WriteArrayEnd() 119122 } else { 119123 r.WriteMapEnd() 119124 } 119125 } 119126 } 119127 } 119128 119129 func (x *ClientHostVolumeConfig) CodecDecodeSelf(d *codec1978.Decoder) { 119130 var h codecSelfer100 119131 z, r := codec1978.GenHelperDecoder(d) 119132 _, _, _ = h, z, r 119133 if false { 119134 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 119135 z.DecExtension(x, yyxt1) 119136 } else { 119137 yyct2 := r.ContainerType() 119138 if yyct2 == codecSelferValueTypeMap100 { 119139 yyl2 := r.ReadMapStart() 119140 if yyl2 == 0 { 119141 r.ReadMapEnd() 119142 } else { 119143 x.codecDecodeSelfFromMap(yyl2, d) 119144 } 119145 } else if yyct2 == codecSelferValueTypeArray100 { 119146 yyl2 := r.ReadArrayStart() 119147 if yyl2 == 0 { 119148 r.ReadArrayEnd() 119149 } else { 119150 x.codecDecodeSelfFromArray(yyl2, d) 119151 } 119152 } else { 119153 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 119154 } 119155 } 119156 } 119157 119158 func (x *ClientHostVolumeConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 119159 var h codecSelfer100 119160 z, r := codec1978.GenHelperDecoder(d) 119161 _, _, _ = h, z, r 119162 var yyhl3 bool = l >= 0 119163 for yyj3 := 0; ; yyj3++ { 119164 if yyhl3 { 119165 if yyj3 >= l { 119166 break 119167 } 119168 } else { 119169 if r.CheckBreak() { 119170 break 119171 } 119172 } 119173 r.ReadMapElemKey() 119174 yys3 := z.StringView(r.DecodeStringAsBytes()) 119175 r.ReadMapElemValue() 119176 switch yys3 { 119177 case "Name": 119178 if r.TryDecodeAsNil() { 119179 x.Name = "" 119180 } else { 119181 x.Name = (string)(r.DecodeString()) 119182 } 119183 case "Path": 119184 if r.TryDecodeAsNil() { 119185 x.Path = "" 119186 } else { 119187 x.Path = (string)(r.DecodeString()) 119188 } 119189 case "ReadOnly": 119190 if r.TryDecodeAsNil() { 119191 x.ReadOnly = false 119192 } else { 119193 x.ReadOnly = (bool)(r.DecodeBool()) 119194 } 119195 default: 119196 z.DecStructFieldNotFound(-1, yys3) 119197 } // end switch yys3 119198 } // end for yyj3 119199 r.ReadMapEnd() 119200 } 119201 119202 func (x *ClientHostVolumeConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 119203 var h codecSelfer100 119204 z, r := codec1978.GenHelperDecoder(d) 119205 _, _, _ = h, z, r 119206 var yyj7 int 119207 var yyb7 bool 119208 var yyhl7 bool = l >= 0 119209 yyj7++ 119210 if yyhl7 { 119211 yyb7 = yyj7 > l 119212 } else { 119213 yyb7 = r.CheckBreak() 119214 } 119215 if yyb7 { 119216 r.ReadArrayEnd() 119217 return 119218 } 119219 r.ReadArrayElem() 119220 if r.TryDecodeAsNil() { 119221 x.Name = "" 119222 } else { 119223 x.Name = (string)(r.DecodeString()) 119224 } 119225 yyj7++ 119226 if yyhl7 { 119227 yyb7 = yyj7 > l 119228 } else { 119229 yyb7 = r.CheckBreak() 119230 } 119231 if yyb7 { 119232 r.ReadArrayEnd() 119233 return 119234 } 119235 r.ReadArrayElem() 119236 if r.TryDecodeAsNil() { 119237 x.Path = "" 119238 } else { 119239 x.Path = (string)(r.DecodeString()) 119240 } 119241 yyj7++ 119242 if yyhl7 { 119243 yyb7 = yyj7 > l 119244 } else { 119245 yyb7 = r.CheckBreak() 119246 } 119247 if yyb7 { 119248 r.ReadArrayEnd() 119249 return 119250 } 119251 r.ReadArrayElem() 119252 if r.TryDecodeAsNil() { 119253 x.ReadOnly = false 119254 } else { 119255 x.ReadOnly = (bool)(r.DecodeBool()) 119256 } 119257 for { 119258 yyj7++ 119259 if yyhl7 { 119260 yyb7 = yyj7 > l 119261 } else { 119262 yyb7 = r.CheckBreak() 119263 } 119264 if yyb7 { 119265 break 119266 } 119267 r.ReadArrayElem() 119268 z.DecStructFieldNotFound(yyj7-1, "") 119269 } 119270 r.ReadArrayEnd() 119271 } 119272 119273 func (x *VolumeRequest) CodecEncodeSelf(e *codec1978.Encoder) { 119274 var h codecSelfer100 119275 z, r := codec1978.GenHelperEncoder(e) 119276 _, _, _ = h, z, r 119277 if x == nil { 119278 r.EncodeNil() 119279 } else { 119280 if false { 119281 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 119282 z.EncExtension(x, yyxt1) 119283 } else { 119284 yysep2 := !z.EncBinary() 119285 yy2arr2 := z.EncBasicHandle().StructToArray 119286 _, _ = yysep2, yy2arr2 119287 const yyr2 bool = false // struct tag has 'toArray' 119288 if yyr2 || yy2arr2 { 119289 r.WriteArrayStart(5) 119290 } else { 119291 r.WriteMapStart(5) 119292 } 119293 if yyr2 || yy2arr2 { 119294 r.WriteArrayElem() 119295 if false { 119296 } else { 119297 if z.EncBasicHandle().StringToRaw { 119298 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 119299 } else { 119300 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 119301 } 119302 } 119303 } else { 119304 r.WriteMapElemKey() 119305 if z.IsJSONHandle() { 119306 z.WriteStr("\"Name\"") 119307 } else { 119308 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 119309 } 119310 r.WriteMapElemValue() 119311 if false { 119312 } else { 119313 if z.EncBasicHandle().StringToRaw { 119314 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 119315 } else { 119316 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 119317 } 119318 } 119319 } 119320 if yyr2 || yy2arr2 { 119321 r.WriteArrayElem() 119322 if false { 119323 } else { 119324 if z.EncBasicHandle().StringToRaw { 119325 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 119326 } else { 119327 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 119328 } 119329 } 119330 } else { 119331 r.WriteMapElemKey() 119332 if z.IsJSONHandle() { 119333 z.WriteStr("\"Type\"") 119334 } else { 119335 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 119336 } 119337 r.WriteMapElemValue() 119338 if false { 119339 } else { 119340 if z.EncBasicHandle().StringToRaw { 119341 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 119342 } else { 119343 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 119344 } 119345 } 119346 } 119347 if yyr2 || yy2arr2 { 119348 r.WriteArrayElem() 119349 if false { 119350 } else { 119351 if z.EncBasicHandle().StringToRaw { 119352 r.EncodeStringBytesRaw(z.BytesView(string(x.Source))) 119353 } else { 119354 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Source)) 119355 } 119356 } 119357 } else { 119358 r.WriteMapElemKey() 119359 if z.IsJSONHandle() { 119360 z.WriteStr("\"Source\"") 119361 } else { 119362 r.EncodeStringEnc(codecSelferCcUTF8100, `Source`) 119363 } 119364 r.WriteMapElemValue() 119365 if false { 119366 } else { 119367 if z.EncBasicHandle().StringToRaw { 119368 r.EncodeStringBytesRaw(z.BytesView(string(x.Source))) 119369 } else { 119370 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Source)) 119371 } 119372 } 119373 } 119374 if yyr2 || yy2arr2 { 119375 r.WriteArrayElem() 119376 if false { 119377 } else { 119378 r.EncodeBool(bool(x.ReadOnly)) 119379 } 119380 } else { 119381 r.WriteMapElemKey() 119382 if z.IsJSONHandle() { 119383 z.WriteStr("\"ReadOnly\"") 119384 } else { 119385 r.EncodeStringEnc(codecSelferCcUTF8100, `ReadOnly`) 119386 } 119387 r.WriteMapElemValue() 119388 if false { 119389 } else { 119390 r.EncodeBool(bool(x.ReadOnly)) 119391 } 119392 } 119393 var yyn15 bool 119394 if x.MountOptions == nil { 119395 yyn15 = true 119396 goto LABEL15 119397 } 119398 LABEL15: 119399 if yyr2 || yy2arr2 { 119400 if yyn15 { 119401 r.WriteArrayElem() 119402 r.EncodeNil() 119403 } else { 119404 r.WriteArrayElem() 119405 if x.MountOptions == nil { 119406 r.EncodeNil() 119407 } else { 119408 x.MountOptions.CodecEncodeSelf(e) 119409 } 119410 } 119411 } else { 119412 r.WriteMapElemKey() 119413 if z.IsJSONHandle() { 119414 z.WriteStr("\"MountOptions\"") 119415 } else { 119416 r.EncodeStringEnc(codecSelferCcUTF8100, `MountOptions`) 119417 } 119418 r.WriteMapElemValue() 119419 if yyn15 { 119420 r.EncodeNil() 119421 } else { 119422 if x.MountOptions == nil { 119423 r.EncodeNil() 119424 } else { 119425 x.MountOptions.CodecEncodeSelf(e) 119426 } 119427 } 119428 } 119429 if yyr2 || yy2arr2 { 119430 r.WriteArrayEnd() 119431 } else { 119432 r.WriteMapEnd() 119433 } 119434 } 119435 } 119436 } 119437 119438 func (x *VolumeRequest) CodecDecodeSelf(d *codec1978.Decoder) { 119439 var h codecSelfer100 119440 z, r := codec1978.GenHelperDecoder(d) 119441 _, _, _ = h, z, r 119442 if false { 119443 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 119444 z.DecExtension(x, yyxt1) 119445 } else { 119446 yyct2 := r.ContainerType() 119447 if yyct2 == codecSelferValueTypeMap100 { 119448 yyl2 := r.ReadMapStart() 119449 if yyl2 == 0 { 119450 r.ReadMapEnd() 119451 } else { 119452 x.codecDecodeSelfFromMap(yyl2, d) 119453 } 119454 } else if yyct2 == codecSelferValueTypeArray100 { 119455 yyl2 := r.ReadArrayStart() 119456 if yyl2 == 0 { 119457 r.ReadArrayEnd() 119458 } else { 119459 x.codecDecodeSelfFromArray(yyl2, d) 119460 } 119461 } else { 119462 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 119463 } 119464 } 119465 } 119466 119467 func (x *VolumeRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 119468 var h codecSelfer100 119469 z, r := codec1978.GenHelperDecoder(d) 119470 _, _, _ = h, z, r 119471 var yyhl3 bool = l >= 0 119472 for yyj3 := 0; ; yyj3++ { 119473 if yyhl3 { 119474 if yyj3 >= l { 119475 break 119476 } 119477 } else { 119478 if r.CheckBreak() { 119479 break 119480 } 119481 } 119482 r.ReadMapElemKey() 119483 yys3 := z.StringView(r.DecodeStringAsBytes()) 119484 r.ReadMapElemValue() 119485 switch yys3 { 119486 case "Name": 119487 if r.TryDecodeAsNil() { 119488 x.Name = "" 119489 } else { 119490 x.Name = (string)(r.DecodeString()) 119491 } 119492 case "Type": 119493 if r.TryDecodeAsNil() { 119494 x.Type = "" 119495 } else { 119496 x.Type = (string)(r.DecodeString()) 119497 } 119498 case "Source": 119499 if r.TryDecodeAsNil() { 119500 x.Source = "" 119501 } else { 119502 x.Source = (string)(r.DecodeString()) 119503 } 119504 case "ReadOnly": 119505 if r.TryDecodeAsNil() { 119506 x.ReadOnly = false 119507 } else { 119508 x.ReadOnly = (bool)(r.DecodeBool()) 119509 } 119510 case "MountOptions": 119511 if r.TryDecodeAsNil() { 119512 if true && x.MountOptions != nil { 119513 x.MountOptions = nil 119514 } 119515 } else { 119516 if x.MountOptions == nil { 119517 x.MountOptions = new(CSIMountOptions) 119518 } 119519 119520 x.MountOptions.CodecDecodeSelf(d) 119521 } 119522 default: 119523 z.DecStructFieldNotFound(-1, yys3) 119524 } // end switch yys3 119525 } // end for yyj3 119526 r.ReadMapEnd() 119527 } 119528 119529 func (x *VolumeRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 119530 var h codecSelfer100 119531 z, r := codec1978.GenHelperDecoder(d) 119532 _, _, _ = h, z, r 119533 var yyj9 int 119534 var yyb9 bool 119535 var yyhl9 bool = l >= 0 119536 yyj9++ 119537 if yyhl9 { 119538 yyb9 = yyj9 > l 119539 } else { 119540 yyb9 = r.CheckBreak() 119541 } 119542 if yyb9 { 119543 r.ReadArrayEnd() 119544 return 119545 } 119546 r.ReadArrayElem() 119547 if r.TryDecodeAsNil() { 119548 x.Name = "" 119549 } else { 119550 x.Name = (string)(r.DecodeString()) 119551 } 119552 yyj9++ 119553 if yyhl9 { 119554 yyb9 = yyj9 > l 119555 } else { 119556 yyb9 = r.CheckBreak() 119557 } 119558 if yyb9 { 119559 r.ReadArrayEnd() 119560 return 119561 } 119562 r.ReadArrayElem() 119563 if r.TryDecodeAsNil() { 119564 x.Type = "" 119565 } else { 119566 x.Type = (string)(r.DecodeString()) 119567 } 119568 yyj9++ 119569 if yyhl9 { 119570 yyb9 = yyj9 > l 119571 } else { 119572 yyb9 = r.CheckBreak() 119573 } 119574 if yyb9 { 119575 r.ReadArrayEnd() 119576 return 119577 } 119578 r.ReadArrayElem() 119579 if r.TryDecodeAsNil() { 119580 x.Source = "" 119581 } else { 119582 x.Source = (string)(r.DecodeString()) 119583 } 119584 yyj9++ 119585 if yyhl9 { 119586 yyb9 = yyj9 > l 119587 } else { 119588 yyb9 = r.CheckBreak() 119589 } 119590 if yyb9 { 119591 r.ReadArrayEnd() 119592 return 119593 } 119594 r.ReadArrayElem() 119595 if r.TryDecodeAsNil() { 119596 x.ReadOnly = false 119597 } else { 119598 x.ReadOnly = (bool)(r.DecodeBool()) 119599 } 119600 yyj9++ 119601 if yyhl9 { 119602 yyb9 = yyj9 > l 119603 } else { 119604 yyb9 = r.CheckBreak() 119605 } 119606 if yyb9 { 119607 r.ReadArrayEnd() 119608 return 119609 } 119610 r.ReadArrayElem() 119611 if r.TryDecodeAsNil() { 119612 if true && x.MountOptions != nil { 119613 x.MountOptions = nil 119614 } 119615 } else { 119616 if x.MountOptions == nil { 119617 x.MountOptions = new(CSIMountOptions) 119618 } 119619 119620 x.MountOptions.CodecDecodeSelf(d) 119621 } 119622 for { 119623 yyj9++ 119624 if yyhl9 { 119625 yyb9 = yyj9 > l 119626 } else { 119627 yyb9 = r.CheckBreak() 119628 } 119629 if yyb9 { 119630 break 119631 } 119632 r.ReadArrayElem() 119633 z.DecStructFieldNotFound(yyj9-1, "") 119634 } 119635 r.ReadArrayEnd() 119636 } 119637 119638 func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { 119639 var h codecSelfer100 119640 z, r := codec1978.GenHelperEncoder(e) 119641 _, _, _ = h, z, r 119642 if x == nil { 119643 r.EncodeNil() 119644 } else { 119645 if false { 119646 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 119647 z.EncExtension(x, yyxt1) 119648 } else { 119649 yysep2 := !z.EncBinary() 119650 yy2arr2 := z.EncBasicHandle().StructToArray 119651 _, _ = yysep2, yy2arr2 119652 const yyr2 bool = false // struct tag has 'toArray' 119653 if yyr2 || yy2arr2 { 119654 r.WriteArrayStart(4) 119655 } else { 119656 r.WriteMapStart(4) 119657 } 119658 if yyr2 || yy2arr2 { 119659 r.WriteArrayElem() 119660 if false { 119661 } else { 119662 if z.EncBasicHandle().StringToRaw { 119663 r.EncodeStringBytesRaw(z.BytesView(string(x.Volume))) 119664 } else { 119665 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Volume)) 119666 } 119667 } 119668 } else { 119669 r.WriteMapElemKey() 119670 if z.IsJSONHandle() { 119671 z.WriteStr("\"Volume\"") 119672 } else { 119673 r.EncodeStringEnc(codecSelferCcUTF8100, `Volume`) 119674 } 119675 r.WriteMapElemValue() 119676 if false { 119677 } else { 119678 if z.EncBasicHandle().StringToRaw { 119679 r.EncodeStringBytesRaw(z.BytesView(string(x.Volume))) 119680 } else { 119681 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Volume)) 119682 } 119683 } 119684 } 119685 if yyr2 || yy2arr2 { 119686 r.WriteArrayElem() 119687 if false { 119688 } else { 119689 if z.EncBasicHandle().StringToRaw { 119690 r.EncodeStringBytesRaw(z.BytesView(string(x.Destination))) 119691 } else { 119692 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Destination)) 119693 } 119694 } 119695 } else { 119696 r.WriteMapElemKey() 119697 if z.IsJSONHandle() { 119698 z.WriteStr("\"Destination\"") 119699 } else { 119700 r.EncodeStringEnc(codecSelferCcUTF8100, `Destination`) 119701 } 119702 r.WriteMapElemValue() 119703 if false { 119704 } else { 119705 if z.EncBasicHandle().StringToRaw { 119706 r.EncodeStringBytesRaw(z.BytesView(string(x.Destination))) 119707 } else { 119708 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Destination)) 119709 } 119710 } 119711 } 119712 if yyr2 || yy2arr2 { 119713 r.WriteArrayElem() 119714 if false { 119715 } else { 119716 r.EncodeBool(bool(x.ReadOnly)) 119717 } 119718 } else { 119719 r.WriteMapElemKey() 119720 if z.IsJSONHandle() { 119721 z.WriteStr("\"ReadOnly\"") 119722 } else { 119723 r.EncodeStringEnc(codecSelferCcUTF8100, `ReadOnly`) 119724 } 119725 r.WriteMapElemValue() 119726 if false { 119727 } else { 119728 r.EncodeBool(bool(x.ReadOnly)) 119729 } 119730 } 119731 if yyr2 || yy2arr2 { 119732 r.WriteArrayElem() 119733 if false { 119734 } else { 119735 if z.EncBasicHandle().StringToRaw { 119736 r.EncodeStringBytesRaw(z.BytesView(string(x.PropagationMode))) 119737 } else { 119738 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PropagationMode)) 119739 } 119740 } 119741 } else { 119742 r.WriteMapElemKey() 119743 if z.IsJSONHandle() { 119744 z.WriteStr("\"PropagationMode\"") 119745 } else { 119746 r.EncodeStringEnc(codecSelferCcUTF8100, `PropagationMode`) 119747 } 119748 r.WriteMapElemValue() 119749 if false { 119750 } else { 119751 if z.EncBasicHandle().StringToRaw { 119752 r.EncodeStringBytesRaw(z.BytesView(string(x.PropagationMode))) 119753 } else { 119754 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PropagationMode)) 119755 } 119756 } 119757 } 119758 if yyr2 || yy2arr2 { 119759 r.WriteArrayEnd() 119760 } else { 119761 r.WriteMapEnd() 119762 } 119763 } 119764 } 119765 } 119766 119767 func (x *VolumeMount) CodecDecodeSelf(d *codec1978.Decoder) { 119768 var h codecSelfer100 119769 z, r := codec1978.GenHelperDecoder(d) 119770 _, _, _ = h, z, r 119771 if false { 119772 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 119773 z.DecExtension(x, yyxt1) 119774 } else { 119775 yyct2 := r.ContainerType() 119776 if yyct2 == codecSelferValueTypeMap100 { 119777 yyl2 := r.ReadMapStart() 119778 if yyl2 == 0 { 119779 r.ReadMapEnd() 119780 } else { 119781 x.codecDecodeSelfFromMap(yyl2, d) 119782 } 119783 } else if yyct2 == codecSelferValueTypeArray100 { 119784 yyl2 := r.ReadArrayStart() 119785 if yyl2 == 0 { 119786 r.ReadArrayEnd() 119787 } else { 119788 x.codecDecodeSelfFromArray(yyl2, d) 119789 } 119790 } else { 119791 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 119792 } 119793 } 119794 } 119795 119796 func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 119797 var h codecSelfer100 119798 z, r := codec1978.GenHelperDecoder(d) 119799 _, _, _ = h, z, r 119800 var yyhl3 bool = l >= 0 119801 for yyj3 := 0; ; yyj3++ { 119802 if yyhl3 { 119803 if yyj3 >= l { 119804 break 119805 } 119806 } else { 119807 if r.CheckBreak() { 119808 break 119809 } 119810 } 119811 r.ReadMapElemKey() 119812 yys3 := z.StringView(r.DecodeStringAsBytes()) 119813 r.ReadMapElemValue() 119814 switch yys3 { 119815 case "Volume": 119816 if r.TryDecodeAsNil() { 119817 x.Volume = "" 119818 } else { 119819 x.Volume = (string)(r.DecodeString()) 119820 } 119821 case "Destination": 119822 if r.TryDecodeAsNil() { 119823 x.Destination = "" 119824 } else { 119825 x.Destination = (string)(r.DecodeString()) 119826 } 119827 case "ReadOnly": 119828 if r.TryDecodeAsNil() { 119829 x.ReadOnly = false 119830 } else { 119831 x.ReadOnly = (bool)(r.DecodeBool()) 119832 } 119833 case "PropagationMode": 119834 if r.TryDecodeAsNil() { 119835 x.PropagationMode = "" 119836 } else { 119837 x.PropagationMode = (string)(r.DecodeString()) 119838 } 119839 default: 119840 z.DecStructFieldNotFound(-1, yys3) 119841 } // end switch yys3 119842 } // end for yyj3 119843 r.ReadMapEnd() 119844 } 119845 119846 func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 119847 var h codecSelfer100 119848 z, r := codec1978.GenHelperDecoder(d) 119849 _, _, _ = h, z, r 119850 var yyj8 int 119851 var yyb8 bool 119852 var yyhl8 bool = l >= 0 119853 yyj8++ 119854 if yyhl8 { 119855 yyb8 = yyj8 > l 119856 } else { 119857 yyb8 = r.CheckBreak() 119858 } 119859 if yyb8 { 119860 r.ReadArrayEnd() 119861 return 119862 } 119863 r.ReadArrayElem() 119864 if r.TryDecodeAsNil() { 119865 x.Volume = "" 119866 } else { 119867 x.Volume = (string)(r.DecodeString()) 119868 } 119869 yyj8++ 119870 if yyhl8 { 119871 yyb8 = yyj8 > l 119872 } else { 119873 yyb8 = r.CheckBreak() 119874 } 119875 if yyb8 { 119876 r.ReadArrayEnd() 119877 return 119878 } 119879 r.ReadArrayElem() 119880 if r.TryDecodeAsNil() { 119881 x.Destination = "" 119882 } else { 119883 x.Destination = (string)(r.DecodeString()) 119884 } 119885 yyj8++ 119886 if yyhl8 { 119887 yyb8 = yyj8 > l 119888 } else { 119889 yyb8 = r.CheckBreak() 119890 } 119891 if yyb8 { 119892 r.ReadArrayEnd() 119893 return 119894 } 119895 r.ReadArrayElem() 119896 if r.TryDecodeAsNil() { 119897 x.ReadOnly = false 119898 } else { 119899 x.ReadOnly = (bool)(r.DecodeBool()) 119900 } 119901 yyj8++ 119902 if yyhl8 { 119903 yyb8 = yyj8 > l 119904 } else { 119905 yyb8 = r.CheckBreak() 119906 } 119907 if yyb8 { 119908 r.ReadArrayEnd() 119909 return 119910 } 119911 r.ReadArrayElem() 119912 if r.TryDecodeAsNil() { 119913 x.PropagationMode = "" 119914 } else { 119915 x.PropagationMode = (string)(r.DecodeString()) 119916 } 119917 for { 119918 yyj8++ 119919 if yyhl8 { 119920 yyb8 = yyj8 > l 119921 } else { 119922 yyb8 = r.CheckBreak() 119923 } 119924 if yyb8 { 119925 break 119926 } 119927 r.ReadArrayElem() 119928 z.DecStructFieldNotFound(yyj8-1, "") 119929 } 119930 r.ReadArrayEnd() 119931 } 119932 119933 func (x codecSelfer100) encBitmap(v Bitmap, e *codec1978.Encoder) { 119934 var h codecSelfer100 119935 z, r := codec1978.GenHelperEncoder(e) 119936 _, _, _ = h, z, r 119937 r.EncodeStringBytesRaw([]byte(v)) 119938 } 119939 119940 func (x codecSelfer100) decBitmap(v *Bitmap, d *codec1978.Decoder) { 119941 var h codecSelfer100 119942 z, r := codec1978.GenHelperDecoder(d) 119943 _, _, _ = h, z, r 119944 *v = r.DecodeBytes(*((*[]byte)(v)), false) 119945 } 119946 119947 func (x codecSelfer100) encSlicePtrtoCSITopology(v []*CSITopology, e *codec1978.Encoder) { 119948 var h codecSelfer100 119949 z, r := codec1978.GenHelperEncoder(e) 119950 _, _, _ = h, z, r 119951 r.WriteArrayStart(len(v)) 119952 for _, yyv1 := range v { 119953 r.WriteArrayElem() 119954 if yyv1 == nil { 119955 r.EncodeNil() 119956 } else { 119957 yyv1.CodecEncodeSelf(e) 119958 } 119959 } 119960 r.WriteArrayEnd() 119961 } 119962 119963 func (x codecSelfer100) decSlicePtrtoCSITopology(v *[]*CSITopology, d *codec1978.Decoder) { 119964 var h codecSelfer100 119965 z, r := codec1978.GenHelperDecoder(d) 119966 _, _, _ = h, z, r 119967 119968 yyv1 := *v 119969 yyh1, yyl1 := z.DecSliceHelperStart() 119970 var yyc1 bool 119971 _ = yyc1 119972 if yyl1 == 0 { 119973 if yyv1 == nil { 119974 yyv1 = []*CSITopology{} 119975 yyc1 = true 119976 } else if len(yyv1) != 0 { 119977 yyv1 = yyv1[:0] 119978 yyc1 = true 119979 } 119980 } else { 119981 yyhl1 := yyl1 > 0 119982 var yyrl1 int 119983 _ = yyrl1 119984 if yyhl1 { 119985 if yyl1 > cap(yyv1) { 119986 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 119987 if yyrl1 <= cap(yyv1) { 119988 yyv1 = yyv1[:yyrl1] 119989 } else { 119990 yyv1 = make([]*CSITopology, yyrl1) 119991 } 119992 yyc1 = true 119993 } else if yyl1 != len(yyv1) { 119994 yyv1 = yyv1[:yyl1] 119995 yyc1 = true 119996 } 119997 } 119998 var yyj1 int 119999 // var yydn1 bool 120000 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 120001 if yyj1 == 0 && yyv1 == nil { 120002 if yyhl1 { 120003 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 120004 } else { 120005 yyrl1 = 8 120006 } 120007 yyv1 = make([]*CSITopology, yyrl1) 120008 yyc1 = true 120009 } 120010 yyh1.ElemContainerState(yyj1) 120011 120012 var yydb1 bool 120013 if yyj1 >= len(yyv1) { 120014 yyv1 = append(yyv1, nil) 120015 yyc1 = true 120016 120017 } 120018 if yydb1 { 120019 z.DecSwallow() 120020 } else { 120021 if r.TryDecodeAsNil() { 120022 yyv1[yyj1] = nil 120023 } else { 120024 if yyv1[yyj1] == nil { 120025 yyv1[yyj1] = new(CSITopology) 120026 } 120027 yyv1[yyj1].CodecDecodeSelf(d) 120028 } 120029 120030 } 120031 120032 } 120033 if yyj1 < len(yyv1) { 120034 yyv1 = yyv1[:yyj1] 120035 yyc1 = true 120036 } else if yyj1 == 0 && yyv1 == nil { 120037 yyv1 = make([]*CSITopology, 0) 120038 yyc1 = true 120039 } 120040 } 120041 yyh1.End() 120042 if yyc1 { 120043 *v = yyv1 120044 } 120045 } 120046 120047 func (x codecSelfer100) encMapstringPtrtoAllocation(v map[string]*Allocation, e *codec1978.Encoder) { 120048 var h codecSelfer100 120049 z, r := codec1978.GenHelperEncoder(e) 120050 _, _, _ = h, z, r 120051 r.WriteMapStart(len(v)) 120052 for yyk1, yyv1 := range v { 120053 r.WriteMapElemKey() 120054 if false { 120055 } else { 120056 if z.EncBasicHandle().StringToRaw { 120057 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 120058 } else { 120059 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 120060 } 120061 } 120062 r.WriteMapElemValue() 120063 if yyv1 == nil { 120064 r.EncodeNil() 120065 } else { 120066 yyv1.CodecEncodeSelf(e) 120067 } 120068 } 120069 r.WriteMapEnd() 120070 } 120071 120072 func (x codecSelfer100) decMapstringPtrtoAllocation(v *map[string]*Allocation, d *codec1978.Decoder) { 120073 var h codecSelfer100 120074 z, r := codec1978.GenHelperDecoder(d) 120075 _, _, _ = h, z, r 120076 120077 yyv1 := *v 120078 yyl1 := r.ReadMapStart() 120079 yybh1 := z.DecBasicHandle() 120080 if yyv1 == nil { 120081 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 120082 yyv1 = make(map[string]*Allocation, yyrl1) 120083 *v = yyv1 120084 } 120085 var yymk1 string 120086 var yymv1 *Allocation 120087 var yymg1, yymdn1, yyms1, yymok1 bool 120088 if yybh1.MapValueReset { 120089 yymg1 = true 120090 } 120091 if yyl1 != 0 { 120092 yyhl1 := yyl1 > 0 120093 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 120094 r.ReadMapElemKey() 120095 if r.TryDecodeAsNil() { 120096 yymk1 = "" 120097 } else { 120098 yymk1 = (string)(r.DecodeString()) 120099 } 120100 120101 yyms1 = true 120102 if yymg1 { 120103 yymv1, yymok1 = yyv1[yymk1] 120104 if yymok1 { 120105 yyms1 = false 120106 } 120107 } else { 120108 yymv1 = nil 120109 } 120110 r.ReadMapElemValue() 120111 yymdn1 = false 120112 if r.TryDecodeAsNil() { 120113 yymdn1 = true 120114 } else { 120115 if yymv1 == nil { 120116 yymv1 = new(Allocation) 120117 } 120118 yymv1.CodecDecodeSelf(d) 120119 } 120120 120121 if yymdn1 { 120122 if yybh1.DeleteOnNilMapValue { 120123 delete(yyv1, yymk1) 120124 } else { 120125 yyv1[yymk1] = nil 120126 } 120127 } else if yyms1 && yyv1 != nil { 120128 yyv1[yymk1] = yymv1 120129 } 120130 } 120131 } // else len==0: TODO: Should we clear map entries? 120132 r.ReadMapEnd() 120133 } 120134 120135 func (x codecSelfer100) encSlicePtrtoCSIVolume(v []*CSIVolume, e *codec1978.Encoder) { 120136 var h codecSelfer100 120137 z, r := codec1978.GenHelperEncoder(e) 120138 _, _, _ = h, z, r 120139 r.WriteArrayStart(len(v)) 120140 for _, yyv1 := range v { 120141 r.WriteArrayElem() 120142 if yyv1 == nil { 120143 r.EncodeNil() 120144 } else { 120145 yyv1.CodecEncodeSelf(e) 120146 } 120147 } 120148 r.WriteArrayEnd() 120149 } 120150 120151 func (x codecSelfer100) decSlicePtrtoCSIVolume(v *[]*CSIVolume, d *codec1978.Decoder) { 120152 var h codecSelfer100 120153 z, r := codec1978.GenHelperDecoder(d) 120154 _, _, _ = h, z, r 120155 120156 yyv1 := *v 120157 yyh1, yyl1 := z.DecSliceHelperStart() 120158 var yyc1 bool 120159 _ = yyc1 120160 if yyl1 == 0 { 120161 if yyv1 == nil { 120162 yyv1 = []*CSIVolume{} 120163 yyc1 = true 120164 } else if len(yyv1) != 0 { 120165 yyv1 = yyv1[:0] 120166 yyc1 = true 120167 } 120168 } else { 120169 yyhl1 := yyl1 > 0 120170 var yyrl1 int 120171 _ = yyrl1 120172 if yyhl1 { 120173 if yyl1 > cap(yyv1) { 120174 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 120175 if yyrl1 <= cap(yyv1) { 120176 yyv1 = yyv1[:yyrl1] 120177 } else { 120178 yyv1 = make([]*CSIVolume, yyrl1) 120179 } 120180 yyc1 = true 120181 } else if yyl1 != len(yyv1) { 120182 yyv1 = yyv1[:yyl1] 120183 yyc1 = true 120184 } 120185 } 120186 var yyj1 int 120187 // var yydn1 bool 120188 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 120189 if yyj1 == 0 && yyv1 == nil { 120190 if yyhl1 { 120191 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 120192 } else { 120193 yyrl1 = 8 120194 } 120195 yyv1 = make([]*CSIVolume, yyrl1) 120196 yyc1 = true 120197 } 120198 yyh1.ElemContainerState(yyj1) 120199 120200 var yydb1 bool 120201 if yyj1 >= len(yyv1) { 120202 yyv1 = append(yyv1, nil) 120203 yyc1 = true 120204 120205 } 120206 if yydb1 { 120207 z.DecSwallow() 120208 } else { 120209 if r.TryDecodeAsNil() { 120210 yyv1[yyj1] = nil 120211 } else { 120212 if yyv1[yyj1] == nil { 120213 yyv1[yyj1] = new(CSIVolume) 120214 } 120215 yyv1[yyj1].CodecDecodeSelf(d) 120216 } 120217 120218 } 120219 120220 } 120221 if yyj1 < len(yyv1) { 120222 yyv1 = yyv1[:yyj1] 120223 yyc1 = true 120224 } else if yyj1 == 0 && yyv1 == nil { 120225 yyv1 = make([]*CSIVolume, 0) 120226 yyc1 = true 120227 } 120228 } 120229 yyh1.End() 120230 if yyc1 { 120231 *v = yyv1 120232 } 120233 } 120234 120235 func (x codecSelfer100) encSlicePtrtoCSIVolListStub(v []*CSIVolListStub, e *codec1978.Encoder) { 120236 var h codecSelfer100 120237 z, r := codec1978.GenHelperEncoder(e) 120238 _, _, _ = h, z, r 120239 r.WriteArrayStart(len(v)) 120240 for _, yyv1 := range v { 120241 r.WriteArrayElem() 120242 if yyv1 == nil { 120243 r.EncodeNil() 120244 } else { 120245 yyv1.CodecEncodeSelf(e) 120246 } 120247 } 120248 r.WriteArrayEnd() 120249 } 120250 120251 func (x codecSelfer100) decSlicePtrtoCSIVolListStub(v *[]*CSIVolListStub, d *codec1978.Decoder) { 120252 var h codecSelfer100 120253 z, r := codec1978.GenHelperDecoder(d) 120254 _, _, _ = h, z, r 120255 120256 yyv1 := *v 120257 yyh1, yyl1 := z.DecSliceHelperStart() 120258 var yyc1 bool 120259 _ = yyc1 120260 if yyl1 == 0 { 120261 if yyv1 == nil { 120262 yyv1 = []*CSIVolListStub{} 120263 yyc1 = true 120264 } else if len(yyv1) != 0 { 120265 yyv1 = yyv1[:0] 120266 yyc1 = true 120267 } 120268 } else { 120269 yyhl1 := yyl1 > 0 120270 var yyrl1 int 120271 _ = yyrl1 120272 if yyhl1 { 120273 if yyl1 > cap(yyv1) { 120274 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 120275 if yyrl1 <= cap(yyv1) { 120276 yyv1 = yyv1[:yyrl1] 120277 } else { 120278 yyv1 = make([]*CSIVolListStub, yyrl1) 120279 } 120280 yyc1 = true 120281 } else if yyl1 != len(yyv1) { 120282 yyv1 = yyv1[:yyl1] 120283 yyc1 = true 120284 } 120285 } 120286 var yyj1 int 120287 // var yydn1 bool 120288 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 120289 if yyj1 == 0 && yyv1 == nil { 120290 if yyhl1 { 120291 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 120292 } else { 120293 yyrl1 = 8 120294 } 120295 yyv1 = make([]*CSIVolListStub, yyrl1) 120296 yyc1 = true 120297 } 120298 yyh1.ElemContainerState(yyj1) 120299 120300 var yydb1 bool 120301 if yyj1 >= len(yyv1) { 120302 yyv1 = append(yyv1, nil) 120303 yyc1 = true 120304 120305 } 120306 if yydb1 { 120307 z.DecSwallow() 120308 } else { 120309 if r.TryDecodeAsNil() { 120310 yyv1[yyj1] = nil 120311 } else { 120312 if yyv1[yyj1] == nil { 120313 yyv1[yyj1] = new(CSIVolListStub) 120314 } 120315 yyv1[yyj1].CodecDecodeSelf(d) 120316 } 120317 120318 } 120319 120320 } 120321 if yyj1 < len(yyv1) { 120322 yyv1 = yyv1[:yyj1] 120323 yyc1 = true 120324 } else if yyj1 == 0 && yyv1 == nil { 120325 yyv1 = make([]*CSIVolListStub, 0) 120326 yyc1 = true 120327 } 120328 } 120329 yyh1.End() 120330 if yyc1 { 120331 *v = yyv1 120332 } 120333 } 120334 120335 func (x codecSelfer100) encMapstringPtrtoCSIInfo(v map[string]*CSIInfo, e *codec1978.Encoder) { 120336 var h codecSelfer100 120337 z, r := codec1978.GenHelperEncoder(e) 120338 _, _, _ = h, z, r 120339 r.WriteMapStart(len(v)) 120340 for yyk1, yyv1 := range v { 120341 r.WriteMapElemKey() 120342 if false { 120343 } else { 120344 if z.EncBasicHandle().StringToRaw { 120345 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 120346 } else { 120347 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 120348 } 120349 } 120350 r.WriteMapElemValue() 120351 if yyv1 == nil { 120352 r.EncodeNil() 120353 } else { 120354 yyv1.CodecEncodeSelf(e) 120355 } 120356 } 120357 r.WriteMapEnd() 120358 } 120359 120360 func (x codecSelfer100) decMapstringPtrtoCSIInfo(v *map[string]*CSIInfo, d *codec1978.Decoder) { 120361 var h codecSelfer100 120362 z, r := codec1978.GenHelperDecoder(d) 120363 _, _, _ = h, z, r 120364 120365 yyv1 := *v 120366 yyl1 := r.ReadMapStart() 120367 yybh1 := z.DecBasicHandle() 120368 if yyv1 == nil { 120369 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 120370 yyv1 = make(map[string]*CSIInfo, yyrl1) 120371 *v = yyv1 120372 } 120373 var yymk1 string 120374 var yymv1 *CSIInfo 120375 var yymg1, yymdn1, yyms1, yymok1 bool 120376 if yybh1.MapValueReset { 120377 yymg1 = true 120378 } 120379 if yyl1 != 0 { 120380 yyhl1 := yyl1 > 0 120381 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 120382 r.ReadMapElemKey() 120383 if r.TryDecodeAsNil() { 120384 yymk1 = "" 120385 } else { 120386 yymk1 = (string)(r.DecodeString()) 120387 } 120388 120389 yyms1 = true 120390 if yymg1 { 120391 yymv1, yymok1 = yyv1[yymk1] 120392 if yymok1 { 120393 yyms1 = false 120394 } 120395 } else { 120396 yymv1 = nil 120397 } 120398 r.ReadMapElemValue() 120399 yymdn1 = false 120400 if r.TryDecodeAsNil() { 120401 yymdn1 = true 120402 } else { 120403 if yymv1 == nil { 120404 yymv1 = new(CSIInfo) 120405 } 120406 yymv1.CodecDecodeSelf(d) 120407 } 120408 120409 if yymdn1 { 120410 if yybh1.DeleteOnNilMapValue { 120411 delete(yyv1, yymk1) 120412 } else { 120413 yyv1[yymk1] = nil 120414 } 120415 } else if yyms1 && yyv1 != nil { 120416 yyv1[yymk1] = yymv1 120417 } 120418 } 120419 } // else len==0: TODO: Should we clear map entries? 120420 r.ReadMapEnd() 120421 } 120422 120423 func (x codecSelfer100) encSlicePtrtoAllocListStub(v []*AllocListStub, e *codec1978.Encoder) { 120424 var h codecSelfer100 120425 z, r := codec1978.GenHelperEncoder(e) 120426 _, _, _ = h, z, r 120427 r.WriteArrayStart(len(v)) 120428 for _, yyv1 := range v { 120429 r.WriteArrayElem() 120430 if yyv1 == nil { 120431 r.EncodeNil() 120432 } else { 120433 yyv1.CodecEncodeSelf(e) 120434 } 120435 } 120436 r.WriteArrayEnd() 120437 } 120438 120439 func (x codecSelfer100) decSlicePtrtoAllocListStub(v *[]*AllocListStub, d *codec1978.Decoder) { 120440 var h codecSelfer100 120441 z, r := codec1978.GenHelperDecoder(d) 120442 _, _, _ = h, z, r 120443 120444 yyv1 := *v 120445 yyh1, yyl1 := z.DecSliceHelperStart() 120446 var yyc1 bool 120447 _ = yyc1 120448 if yyl1 == 0 { 120449 if yyv1 == nil { 120450 yyv1 = []*AllocListStub{} 120451 yyc1 = true 120452 } else if len(yyv1) != 0 { 120453 yyv1 = yyv1[:0] 120454 yyc1 = true 120455 } 120456 } else { 120457 yyhl1 := yyl1 > 0 120458 var yyrl1 int 120459 _ = yyrl1 120460 if yyhl1 { 120461 if yyl1 > cap(yyv1) { 120462 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 120463 if yyrl1 <= cap(yyv1) { 120464 yyv1 = yyv1[:yyrl1] 120465 } else { 120466 yyv1 = make([]*AllocListStub, yyrl1) 120467 } 120468 yyc1 = true 120469 } else if yyl1 != len(yyv1) { 120470 yyv1 = yyv1[:yyl1] 120471 yyc1 = true 120472 } 120473 } 120474 var yyj1 int 120475 // var yydn1 bool 120476 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 120477 if yyj1 == 0 && yyv1 == nil { 120478 if yyhl1 { 120479 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 120480 } else { 120481 yyrl1 = 8 120482 } 120483 yyv1 = make([]*AllocListStub, yyrl1) 120484 yyc1 = true 120485 } 120486 yyh1.ElemContainerState(yyj1) 120487 120488 var yydb1 bool 120489 if yyj1 >= len(yyv1) { 120490 yyv1 = append(yyv1, nil) 120491 yyc1 = true 120492 120493 } 120494 if yydb1 { 120495 z.DecSwallow() 120496 } else { 120497 if r.TryDecodeAsNil() { 120498 yyv1[yyj1] = nil 120499 } else { 120500 if yyv1[yyj1] == nil { 120501 yyv1[yyj1] = new(AllocListStub) 120502 } 120503 yyv1[yyj1].CodecDecodeSelf(d) 120504 } 120505 120506 } 120507 120508 } 120509 if yyj1 < len(yyv1) { 120510 yyv1 = yyv1[:yyj1] 120511 yyc1 = true 120512 } else if yyj1 == 0 && yyv1 == nil { 120513 yyv1 = make([]*AllocListStub, 0) 120514 yyc1 = true 120515 } 120516 } 120517 yyh1.End() 120518 if yyc1 { 120519 *v = yyv1 120520 } 120521 } 120522 120523 func (x codecSelfer100) encSlicePtrtoCSIPluginListStub(v []*CSIPluginListStub, e *codec1978.Encoder) { 120524 var h codecSelfer100 120525 z, r := codec1978.GenHelperEncoder(e) 120526 _, _, _ = h, z, r 120527 r.WriteArrayStart(len(v)) 120528 for _, yyv1 := range v { 120529 r.WriteArrayElem() 120530 if yyv1 == nil { 120531 r.EncodeNil() 120532 } else { 120533 yyv1.CodecEncodeSelf(e) 120534 } 120535 } 120536 r.WriteArrayEnd() 120537 } 120538 120539 func (x codecSelfer100) decSlicePtrtoCSIPluginListStub(v *[]*CSIPluginListStub, d *codec1978.Decoder) { 120540 var h codecSelfer100 120541 z, r := codec1978.GenHelperDecoder(d) 120542 _, _, _ = h, z, r 120543 120544 yyv1 := *v 120545 yyh1, yyl1 := z.DecSliceHelperStart() 120546 var yyc1 bool 120547 _ = yyc1 120548 if yyl1 == 0 { 120549 if yyv1 == nil { 120550 yyv1 = []*CSIPluginListStub{} 120551 yyc1 = true 120552 } else if len(yyv1) != 0 { 120553 yyv1 = yyv1[:0] 120554 yyc1 = true 120555 } 120556 } else { 120557 yyhl1 := yyl1 > 0 120558 var yyrl1 int 120559 _ = yyrl1 120560 if yyhl1 { 120561 if yyl1 > cap(yyv1) { 120562 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 120563 if yyrl1 <= cap(yyv1) { 120564 yyv1 = yyv1[:yyrl1] 120565 } else { 120566 yyv1 = make([]*CSIPluginListStub, yyrl1) 120567 } 120568 yyc1 = true 120569 } else if yyl1 != len(yyv1) { 120570 yyv1 = yyv1[:yyl1] 120571 yyc1 = true 120572 } 120573 } 120574 var yyj1 int 120575 // var yydn1 bool 120576 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 120577 if yyj1 == 0 && yyv1 == nil { 120578 if yyhl1 { 120579 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 120580 } else { 120581 yyrl1 = 8 120582 } 120583 yyv1 = make([]*CSIPluginListStub, yyrl1) 120584 yyc1 = true 120585 } 120586 yyh1.ElemContainerState(yyj1) 120587 120588 var yydb1 bool 120589 if yyj1 >= len(yyv1) { 120590 yyv1 = append(yyv1, nil) 120591 yyc1 = true 120592 120593 } 120594 if yydb1 { 120595 z.DecSwallow() 120596 } else { 120597 if r.TryDecodeAsNil() { 120598 yyv1[yyj1] = nil 120599 } else { 120600 if yyv1[yyj1] == nil { 120601 yyv1[yyj1] = new(CSIPluginListStub) 120602 } 120603 yyv1[yyj1].CodecDecodeSelf(d) 120604 } 120605 120606 } 120607 120608 } 120609 if yyj1 < len(yyv1) { 120610 yyv1 = yyv1[:yyj1] 120611 yyc1 = true 120612 } else if yyj1 == 0 && yyv1 == nil { 120613 yyv1 = make([]*CSIPluginListStub, 0) 120614 yyc1 = true 120615 } 120616 } 120617 yyh1.End() 120618 if yyc1 { 120619 *v = yyv1 120620 } 120621 } 120622 120623 func (x codecSelfer100) encMapDeviceIdTuplePtrtoDeviceAccounterInstance(v map[DeviceIdTuple]*DeviceAccounterInstance, e *codec1978.Encoder) { 120624 var h codecSelfer100 120625 z, r := codec1978.GenHelperEncoder(e) 120626 _, _, _ = h, z, r 120627 r.WriteMapStart(len(v)) 120628 for yyk1, yyv1 := range v { 120629 r.WriteMapElemKey() 120630 yy2 := &yyk1 120631 yy2.CodecEncodeSelf(e) 120632 r.WriteMapElemValue() 120633 if yyv1 == nil { 120634 r.EncodeNil() 120635 } else { 120636 yyv1.CodecEncodeSelf(e) 120637 } 120638 } 120639 r.WriteMapEnd() 120640 } 120641 120642 func (x codecSelfer100) decMapDeviceIdTuplePtrtoDeviceAccounterInstance(v *map[DeviceIdTuple]*DeviceAccounterInstance, d *codec1978.Decoder) { 120643 var h codecSelfer100 120644 z, r := codec1978.GenHelperDecoder(d) 120645 _, _, _ = h, z, r 120646 120647 yyv1 := *v 120648 yyl1 := r.ReadMapStart() 120649 yybh1 := z.DecBasicHandle() 120650 if yyv1 == nil { 120651 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 56) 120652 yyv1 = make(map[DeviceIdTuple]*DeviceAccounterInstance, yyrl1) 120653 *v = yyv1 120654 } 120655 var yymk1 DeviceIdTuple 120656 var yymv1 *DeviceAccounterInstance 120657 var yymg1, yymdn1, yyms1, yymok1 bool 120658 if yybh1.MapValueReset { 120659 yymg1 = true 120660 } 120661 if yyl1 != 0 { 120662 yyhl1 := yyl1 > 0 120663 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 120664 r.ReadMapElemKey() 120665 if r.TryDecodeAsNil() { 120666 yymk1 = DeviceIdTuple{} 120667 } else { 120668 yymk1.CodecDecodeSelf(d) 120669 } 120670 120671 yyms1 = true 120672 if yymg1 { 120673 yymv1, yymok1 = yyv1[yymk1] 120674 if yymok1 { 120675 yyms1 = false 120676 } 120677 } else { 120678 yymv1 = nil 120679 } 120680 r.ReadMapElemValue() 120681 yymdn1 = false 120682 if r.TryDecodeAsNil() { 120683 yymdn1 = true 120684 } else { 120685 if yymv1 == nil { 120686 yymv1 = new(DeviceAccounterInstance) 120687 } 120688 yymv1.CodecDecodeSelf(d) 120689 } 120690 120691 if yymdn1 { 120692 if yybh1.DeleteOnNilMapValue { 120693 delete(yyv1, yymk1) 120694 } else { 120695 yyv1[yymk1] = nil 120696 } 120697 } else if yyms1 && yyv1 != nil { 120698 yyv1[yymk1] = yymv1 120699 } 120700 } 120701 } // else len==0: TODO: Should we clear map entries? 120702 r.ReadMapEnd() 120703 } 120704 120705 func (x codecSelfer100) encSlicePtrtoFieldDiff(v []*FieldDiff, e *codec1978.Encoder) { 120706 var h codecSelfer100 120707 z, r := codec1978.GenHelperEncoder(e) 120708 _, _, _ = h, z, r 120709 r.WriteArrayStart(len(v)) 120710 for _, yyv1 := range v { 120711 r.WriteArrayElem() 120712 if yyv1 == nil { 120713 r.EncodeNil() 120714 } else { 120715 yyv1.CodecEncodeSelf(e) 120716 } 120717 } 120718 r.WriteArrayEnd() 120719 } 120720 120721 func (x codecSelfer100) decSlicePtrtoFieldDiff(v *[]*FieldDiff, d *codec1978.Decoder) { 120722 var h codecSelfer100 120723 z, r := codec1978.GenHelperDecoder(d) 120724 _, _, _ = h, z, r 120725 120726 yyv1 := *v 120727 yyh1, yyl1 := z.DecSliceHelperStart() 120728 var yyc1 bool 120729 _ = yyc1 120730 if yyl1 == 0 { 120731 if yyv1 == nil { 120732 yyv1 = []*FieldDiff{} 120733 yyc1 = true 120734 } else if len(yyv1) != 0 { 120735 yyv1 = yyv1[:0] 120736 yyc1 = true 120737 } 120738 } else { 120739 yyhl1 := yyl1 > 0 120740 var yyrl1 int 120741 _ = yyrl1 120742 if yyhl1 { 120743 if yyl1 > cap(yyv1) { 120744 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 120745 if yyrl1 <= cap(yyv1) { 120746 yyv1 = yyv1[:yyrl1] 120747 } else { 120748 yyv1 = make([]*FieldDiff, yyrl1) 120749 } 120750 yyc1 = true 120751 } else if yyl1 != len(yyv1) { 120752 yyv1 = yyv1[:yyl1] 120753 yyc1 = true 120754 } 120755 } 120756 var yyj1 int 120757 // var yydn1 bool 120758 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 120759 if yyj1 == 0 && yyv1 == nil { 120760 if yyhl1 { 120761 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 120762 } else { 120763 yyrl1 = 8 120764 } 120765 yyv1 = make([]*FieldDiff, yyrl1) 120766 yyc1 = true 120767 } 120768 yyh1.ElemContainerState(yyj1) 120769 120770 var yydb1 bool 120771 if yyj1 >= len(yyv1) { 120772 yyv1 = append(yyv1, nil) 120773 yyc1 = true 120774 120775 } 120776 if yydb1 { 120777 z.DecSwallow() 120778 } else { 120779 if r.TryDecodeAsNil() { 120780 yyv1[yyj1] = nil 120781 } else { 120782 if yyv1[yyj1] == nil { 120783 yyv1[yyj1] = new(FieldDiff) 120784 } 120785 yyv1[yyj1].CodecDecodeSelf(d) 120786 } 120787 120788 } 120789 120790 } 120791 if yyj1 < len(yyv1) { 120792 yyv1 = yyv1[:yyj1] 120793 yyc1 = true 120794 } else if yyj1 == 0 && yyv1 == nil { 120795 yyv1 = make([]*FieldDiff, 0) 120796 yyc1 = true 120797 } 120798 } 120799 yyh1.End() 120800 if yyc1 { 120801 *v = yyv1 120802 } 120803 } 120804 120805 func (x codecSelfer100) encSlicePtrtoObjectDiff(v []*ObjectDiff, e *codec1978.Encoder) { 120806 var h codecSelfer100 120807 z, r := codec1978.GenHelperEncoder(e) 120808 _, _, _ = h, z, r 120809 r.WriteArrayStart(len(v)) 120810 for _, yyv1 := range v { 120811 r.WriteArrayElem() 120812 if yyv1 == nil { 120813 r.EncodeNil() 120814 } else { 120815 yyv1.CodecEncodeSelf(e) 120816 } 120817 } 120818 r.WriteArrayEnd() 120819 } 120820 120821 func (x codecSelfer100) decSlicePtrtoObjectDiff(v *[]*ObjectDiff, d *codec1978.Decoder) { 120822 var h codecSelfer100 120823 z, r := codec1978.GenHelperDecoder(d) 120824 _, _, _ = h, z, r 120825 120826 yyv1 := *v 120827 yyh1, yyl1 := z.DecSliceHelperStart() 120828 var yyc1 bool 120829 _ = yyc1 120830 if yyl1 == 0 { 120831 if yyv1 == nil { 120832 yyv1 = []*ObjectDiff{} 120833 yyc1 = true 120834 } else if len(yyv1) != 0 { 120835 yyv1 = yyv1[:0] 120836 yyc1 = true 120837 } 120838 } else { 120839 yyhl1 := yyl1 > 0 120840 var yyrl1 int 120841 _ = yyrl1 120842 if yyhl1 { 120843 if yyl1 > cap(yyv1) { 120844 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 120845 if yyrl1 <= cap(yyv1) { 120846 yyv1 = yyv1[:yyrl1] 120847 } else { 120848 yyv1 = make([]*ObjectDiff, yyrl1) 120849 } 120850 yyc1 = true 120851 } else if yyl1 != len(yyv1) { 120852 yyv1 = yyv1[:yyl1] 120853 yyc1 = true 120854 } 120855 } 120856 var yyj1 int 120857 // var yydn1 bool 120858 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 120859 if yyj1 == 0 && yyv1 == nil { 120860 if yyhl1 { 120861 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 120862 } else { 120863 yyrl1 = 8 120864 } 120865 yyv1 = make([]*ObjectDiff, yyrl1) 120866 yyc1 = true 120867 } 120868 yyh1.ElemContainerState(yyj1) 120869 120870 var yydb1 bool 120871 if yyj1 >= len(yyv1) { 120872 yyv1 = append(yyv1, nil) 120873 yyc1 = true 120874 120875 } 120876 if yydb1 { 120877 z.DecSwallow() 120878 } else { 120879 if r.TryDecodeAsNil() { 120880 yyv1[yyj1] = nil 120881 } else { 120882 if yyv1[yyj1] == nil { 120883 yyv1[yyj1] = new(ObjectDiff) 120884 } 120885 yyv1[yyj1].CodecDecodeSelf(d) 120886 } 120887 120888 } 120889 120890 } 120891 if yyj1 < len(yyv1) { 120892 yyv1 = yyv1[:yyj1] 120893 yyc1 = true 120894 } else if yyj1 == 0 && yyv1 == nil { 120895 yyv1 = make([]*ObjectDiff, 0) 120896 yyc1 = true 120897 } 120898 } 120899 yyh1.End() 120900 if yyc1 { 120901 *v = yyv1 120902 } 120903 } 120904 120905 func (x codecSelfer100) encSlicePtrtoTaskGroupDiff(v []*TaskGroupDiff, e *codec1978.Encoder) { 120906 var h codecSelfer100 120907 z, r := codec1978.GenHelperEncoder(e) 120908 _, _, _ = h, z, r 120909 r.WriteArrayStart(len(v)) 120910 for _, yyv1 := range v { 120911 r.WriteArrayElem() 120912 if yyv1 == nil { 120913 r.EncodeNil() 120914 } else { 120915 yyv1.CodecEncodeSelf(e) 120916 } 120917 } 120918 r.WriteArrayEnd() 120919 } 120920 120921 func (x codecSelfer100) decSlicePtrtoTaskGroupDiff(v *[]*TaskGroupDiff, d *codec1978.Decoder) { 120922 var h codecSelfer100 120923 z, r := codec1978.GenHelperDecoder(d) 120924 _, _, _ = h, z, r 120925 120926 yyv1 := *v 120927 yyh1, yyl1 := z.DecSliceHelperStart() 120928 var yyc1 bool 120929 _ = yyc1 120930 if yyl1 == 0 { 120931 if yyv1 == nil { 120932 yyv1 = []*TaskGroupDiff{} 120933 yyc1 = true 120934 } else if len(yyv1) != 0 { 120935 yyv1 = yyv1[:0] 120936 yyc1 = true 120937 } 120938 } else { 120939 yyhl1 := yyl1 > 0 120940 var yyrl1 int 120941 _ = yyrl1 120942 if yyhl1 { 120943 if yyl1 > cap(yyv1) { 120944 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 120945 if yyrl1 <= cap(yyv1) { 120946 yyv1 = yyv1[:yyrl1] 120947 } else { 120948 yyv1 = make([]*TaskGroupDiff, yyrl1) 120949 } 120950 yyc1 = true 120951 } else if yyl1 != len(yyv1) { 120952 yyv1 = yyv1[:yyl1] 120953 yyc1 = true 120954 } 120955 } 120956 var yyj1 int 120957 // var yydn1 bool 120958 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 120959 if yyj1 == 0 && yyv1 == nil { 120960 if yyhl1 { 120961 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 120962 } else { 120963 yyrl1 = 8 120964 } 120965 yyv1 = make([]*TaskGroupDiff, yyrl1) 120966 yyc1 = true 120967 } 120968 yyh1.ElemContainerState(yyj1) 120969 120970 var yydb1 bool 120971 if yyj1 >= len(yyv1) { 120972 yyv1 = append(yyv1, nil) 120973 yyc1 = true 120974 120975 } 120976 if yydb1 { 120977 z.DecSwallow() 120978 } else { 120979 if r.TryDecodeAsNil() { 120980 yyv1[yyj1] = nil 120981 } else { 120982 if yyv1[yyj1] == nil { 120983 yyv1[yyj1] = new(TaskGroupDiff) 120984 } 120985 yyv1[yyj1].CodecDecodeSelf(d) 120986 } 120987 120988 } 120989 120990 } 120991 if yyj1 < len(yyv1) { 120992 yyv1 = yyv1[:yyj1] 120993 yyc1 = true 120994 } else if yyj1 == 0 && yyv1 == nil { 120995 yyv1 = make([]*TaskGroupDiff, 0) 120996 yyc1 = true 120997 } 120998 } 120999 yyh1.End() 121000 if yyc1 { 121001 *v = yyv1 121002 } 121003 } 121004 121005 func (x codecSelfer100) encSlicePtrtoTaskDiff(v []*TaskDiff, e *codec1978.Encoder) { 121006 var h codecSelfer100 121007 z, r := codec1978.GenHelperEncoder(e) 121008 _, _, _ = h, z, r 121009 r.WriteArrayStart(len(v)) 121010 for _, yyv1 := range v { 121011 r.WriteArrayElem() 121012 if yyv1 == nil { 121013 r.EncodeNil() 121014 } else { 121015 yyv1.CodecEncodeSelf(e) 121016 } 121017 } 121018 r.WriteArrayEnd() 121019 } 121020 121021 func (x codecSelfer100) decSlicePtrtoTaskDiff(v *[]*TaskDiff, d *codec1978.Decoder) { 121022 var h codecSelfer100 121023 z, r := codec1978.GenHelperDecoder(d) 121024 _, _, _ = h, z, r 121025 121026 yyv1 := *v 121027 yyh1, yyl1 := z.DecSliceHelperStart() 121028 var yyc1 bool 121029 _ = yyc1 121030 if yyl1 == 0 { 121031 if yyv1 == nil { 121032 yyv1 = []*TaskDiff{} 121033 yyc1 = true 121034 } else if len(yyv1) != 0 { 121035 yyv1 = yyv1[:0] 121036 yyc1 = true 121037 } 121038 } else { 121039 yyhl1 := yyl1 > 0 121040 var yyrl1 int 121041 _ = yyrl1 121042 if yyhl1 { 121043 if yyl1 > cap(yyv1) { 121044 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 121045 if yyrl1 <= cap(yyv1) { 121046 yyv1 = yyv1[:yyrl1] 121047 } else { 121048 yyv1 = make([]*TaskDiff, yyrl1) 121049 } 121050 yyc1 = true 121051 } else if yyl1 != len(yyv1) { 121052 yyv1 = yyv1[:yyl1] 121053 yyc1 = true 121054 } 121055 } 121056 var yyj1 int 121057 // var yydn1 bool 121058 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 121059 if yyj1 == 0 && yyv1 == nil { 121060 if yyhl1 { 121061 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 121062 } else { 121063 yyrl1 = 8 121064 } 121065 yyv1 = make([]*TaskDiff, yyrl1) 121066 yyc1 = true 121067 } 121068 yyh1.ElemContainerState(yyj1) 121069 121070 var yydb1 bool 121071 if yyj1 >= len(yyv1) { 121072 yyv1 = append(yyv1, nil) 121073 yyc1 = true 121074 121075 } 121076 if yydb1 { 121077 z.DecSwallow() 121078 } else { 121079 if r.TryDecodeAsNil() { 121080 yyv1[yyj1] = nil 121081 } else { 121082 if yyv1[yyj1] == nil { 121083 yyv1[yyj1] = new(TaskDiff) 121084 } 121085 yyv1[yyj1].CodecDecodeSelf(d) 121086 } 121087 121088 } 121089 121090 } 121091 if yyj1 < len(yyv1) { 121092 yyv1 = yyv1[:yyj1] 121093 yyc1 = true 121094 } else if yyj1 == 0 && yyv1 == nil { 121095 yyv1 = make([]*TaskDiff, 0) 121096 yyc1 = true 121097 } 121098 } 121099 yyh1.End() 121100 if yyc1 { 121101 *v = yyv1 121102 } 121103 } 121104 121105 func (x codecSelfer100) encTaskGroupDiffs(v TaskGroupDiffs, e *codec1978.Encoder) { 121106 var h codecSelfer100 121107 z, r := codec1978.GenHelperEncoder(e) 121108 _, _, _ = h, z, r 121109 r.WriteArrayStart(len(v)) 121110 for _, yyv1 := range v { 121111 r.WriteArrayElem() 121112 if yyv1 == nil { 121113 r.EncodeNil() 121114 } else { 121115 yyv1.CodecEncodeSelf(e) 121116 } 121117 } 121118 r.WriteArrayEnd() 121119 } 121120 121121 func (x codecSelfer100) decTaskGroupDiffs(v *TaskGroupDiffs, d *codec1978.Decoder) { 121122 var h codecSelfer100 121123 z, r := codec1978.GenHelperDecoder(d) 121124 _, _, _ = h, z, r 121125 121126 yyv1 := *v 121127 yyh1, yyl1 := z.DecSliceHelperStart() 121128 var yyc1 bool 121129 _ = yyc1 121130 if yyl1 == 0 { 121131 if yyv1 == nil { 121132 yyv1 = []*TaskGroupDiff{} 121133 yyc1 = true 121134 } else if len(yyv1) != 0 { 121135 yyv1 = yyv1[:0] 121136 yyc1 = true 121137 } 121138 } else { 121139 yyhl1 := yyl1 > 0 121140 var yyrl1 int 121141 _ = yyrl1 121142 if yyhl1 { 121143 if yyl1 > cap(yyv1) { 121144 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 121145 if yyrl1 <= cap(yyv1) { 121146 yyv1 = yyv1[:yyrl1] 121147 } else { 121148 yyv1 = make([]*TaskGroupDiff, yyrl1) 121149 } 121150 yyc1 = true 121151 } else if yyl1 != len(yyv1) { 121152 yyv1 = yyv1[:yyl1] 121153 yyc1 = true 121154 } 121155 } 121156 var yyj1 int 121157 // var yydn1 bool 121158 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 121159 if yyj1 == 0 && yyv1 == nil { 121160 if yyhl1 { 121161 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 121162 } else { 121163 yyrl1 = 8 121164 } 121165 yyv1 = make([]*TaskGroupDiff, yyrl1) 121166 yyc1 = true 121167 } 121168 yyh1.ElemContainerState(yyj1) 121169 121170 var yydb1 bool 121171 if yyj1 >= len(yyv1) { 121172 yyv1 = append(yyv1, nil) 121173 yyc1 = true 121174 121175 } 121176 if yydb1 { 121177 z.DecSwallow() 121178 } else { 121179 if r.TryDecodeAsNil() { 121180 yyv1[yyj1] = nil 121181 } else { 121182 if yyv1[yyj1] == nil { 121183 yyv1[yyj1] = new(TaskGroupDiff) 121184 } 121185 yyv1[yyj1].CodecDecodeSelf(d) 121186 } 121187 121188 } 121189 121190 } 121191 if yyj1 < len(yyv1) { 121192 yyv1 = yyv1[:yyj1] 121193 yyc1 = true 121194 } else if yyj1 == 0 && yyv1 == nil { 121195 yyv1 = make([]*TaskGroupDiff, 0) 121196 yyc1 = true 121197 } 121198 } 121199 yyh1.End() 121200 if yyc1 { 121201 *v = yyv1 121202 } 121203 } 121204 121205 func (x codecSelfer100) encTaskDiffs(v TaskDiffs, e *codec1978.Encoder) { 121206 var h codecSelfer100 121207 z, r := codec1978.GenHelperEncoder(e) 121208 _, _, _ = h, z, r 121209 r.WriteArrayStart(len(v)) 121210 for _, yyv1 := range v { 121211 r.WriteArrayElem() 121212 if yyv1 == nil { 121213 r.EncodeNil() 121214 } else { 121215 yyv1.CodecEncodeSelf(e) 121216 } 121217 } 121218 r.WriteArrayEnd() 121219 } 121220 121221 func (x codecSelfer100) decTaskDiffs(v *TaskDiffs, d *codec1978.Decoder) { 121222 var h codecSelfer100 121223 z, r := codec1978.GenHelperDecoder(d) 121224 _, _, _ = h, z, r 121225 121226 yyv1 := *v 121227 yyh1, yyl1 := z.DecSliceHelperStart() 121228 var yyc1 bool 121229 _ = yyc1 121230 if yyl1 == 0 { 121231 if yyv1 == nil { 121232 yyv1 = []*TaskDiff{} 121233 yyc1 = true 121234 } else if len(yyv1) != 0 { 121235 yyv1 = yyv1[:0] 121236 yyc1 = true 121237 } 121238 } else { 121239 yyhl1 := yyl1 > 0 121240 var yyrl1 int 121241 _ = yyrl1 121242 if yyhl1 { 121243 if yyl1 > cap(yyv1) { 121244 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 121245 if yyrl1 <= cap(yyv1) { 121246 yyv1 = yyv1[:yyrl1] 121247 } else { 121248 yyv1 = make([]*TaskDiff, yyrl1) 121249 } 121250 yyc1 = true 121251 } else if yyl1 != len(yyv1) { 121252 yyv1 = yyv1[:yyl1] 121253 yyc1 = true 121254 } 121255 } 121256 var yyj1 int 121257 // var yydn1 bool 121258 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 121259 if yyj1 == 0 && yyv1 == nil { 121260 if yyhl1 { 121261 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 121262 } else { 121263 yyrl1 = 8 121264 } 121265 yyv1 = make([]*TaskDiff, yyrl1) 121266 yyc1 = true 121267 } 121268 yyh1.ElemContainerState(yyj1) 121269 121270 var yydb1 bool 121271 if yyj1 >= len(yyv1) { 121272 yyv1 = append(yyv1, nil) 121273 yyc1 = true 121274 121275 } 121276 if yydb1 { 121277 z.DecSwallow() 121278 } else { 121279 if r.TryDecodeAsNil() { 121280 yyv1[yyj1] = nil 121281 } else { 121282 if yyv1[yyj1] == nil { 121283 yyv1[yyj1] = new(TaskDiff) 121284 } 121285 yyv1[yyj1].CodecDecodeSelf(d) 121286 } 121287 121288 } 121289 121290 } 121291 if yyj1 < len(yyv1) { 121292 yyv1 = yyv1[:yyj1] 121293 yyc1 = true 121294 } else if yyj1 == 0 && yyv1 == nil { 121295 yyv1 = make([]*TaskDiff, 0) 121296 yyc1 = true 121297 } 121298 } 121299 yyh1.End() 121300 if yyc1 { 121301 *v = yyv1 121302 } 121303 } 121304 121305 func (x codecSelfer100) encObjectDiffs(v ObjectDiffs, e *codec1978.Encoder) { 121306 var h codecSelfer100 121307 z, r := codec1978.GenHelperEncoder(e) 121308 _, _, _ = h, z, r 121309 r.WriteArrayStart(len(v)) 121310 for _, yyv1 := range v { 121311 r.WriteArrayElem() 121312 if yyv1 == nil { 121313 r.EncodeNil() 121314 } else { 121315 yyv1.CodecEncodeSelf(e) 121316 } 121317 } 121318 r.WriteArrayEnd() 121319 } 121320 121321 func (x codecSelfer100) decObjectDiffs(v *ObjectDiffs, d *codec1978.Decoder) { 121322 var h codecSelfer100 121323 z, r := codec1978.GenHelperDecoder(d) 121324 _, _, _ = h, z, r 121325 121326 yyv1 := *v 121327 yyh1, yyl1 := z.DecSliceHelperStart() 121328 var yyc1 bool 121329 _ = yyc1 121330 if yyl1 == 0 { 121331 if yyv1 == nil { 121332 yyv1 = []*ObjectDiff{} 121333 yyc1 = true 121334 } else if len(yyv1) != 0 { 121335 yyv1 = yyv1[:0] 121336 yyc1 = true 121337 } 121338 } else { 121339 yyhl1 := yyl1 > 0 121340 var yyrl1 int 121341 _ = yyrl1 121342 if yyhl1 { 121343 if yyl1 > cap(yyv1) { 121344 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 121345 if yyrl1 <= cap(yyv1) { 121346 yyv1 = yyv1[:yyrl1] 121347 } else { 121348 yyv1 = make([]*ObjectDiff, yyrl1) 121349 } 121350 yyc1 = true 121351 } else if yyl1 != len(yyv1) { 121352 yyv1 = yyv1[:yyl1] 121353 yyc1 = true 121354 } 121355 } 121356 var yyj1 int 121357 // var yydn1 bool 121358 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 121359 if yyj1 == 0 && yyv1 == nil { 121360 if yyhl1 { 121361 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 121362 } else { 121363 yyrl1 = 8 121364 } 121365 yyv1 = make([]*ObjectDiff, yyrl1) 121366 yyc1 = true 121367 } 121368 yyh1.ElemContainerState(yyj1) 121369 121370 var yydb1 bool 121371 if yyj1 >= len(yyv1) { 121372 yyv1 = append(yyv1, nil) 121373 yyc1 = true 121374 121375 } 121376 if yydb1 { 121377 z.DecSwallow() 121378 } else { 121379 if r.TryDecodeAsNil() { 121380 yyv1[yyj1] = nil 121381 } else { 121382 if yyv1[yyj1] == nil { 121383 yyv1[yyj1] = new(ObjectDiff) 121384 } 121385 yyv1[yyj1].CodecDecodeSelf(d) 121386 } 121387 121388 } 121389 121390 } 121391 if yyj1 < len(yyv1) { 121392 yyv1 = yyv1[:yyj1] 121393 yyc1 = true 121394 } else if yyj1 == 0 && yyv1 == nil { 121395 yyv1 = make([]*ObjectDiff, 0) 121396 yyc1 = true 121397 } 121398 } 121399 yyh1.End() 121400 if yyc1 { 121401 *v = yyv1 121402 } 121403 } 121404 121405 func (x codecSelfer100) encFieldDiffs(v FieldDiffs, e *codec1978.Encoder) { 121406 var h codecSelfer100 121407 z, r := codec1978.GenHelperEncoder(e) 121408 _, _, _ = h, z, r 121409 r.WriteArrayStart(len(v)) 121410 for _, yyv1 := range v { 121411 r.WriteArrayElem() 121412 if yyv1 == nil { 121413 r.EncodeNil() 121414 } else { 121415 yyv1.CodecEncodeSelf(e) 121416 } 121417 } 121418 r.WriteArrayEnd() 121419 } 121420 121421 func (x codecSelfer100) decFieldDiffs(v *FieldDiffs, d *codec1978.Decoder) { 121422 var h codecSelfer100 121423 z, r := codec1978.GenHelperDecoder(d) 121424 _, _, _ = h, z, r 121425 121426 yyv1 := *v 121427 yyh1, yyl1 := z.DecSliceHelperStart() 121428 var yyc1 bool 121429 _ = yyc1 121430 if yyl1 == 0 { 121431 if yyv1 == nil { 121432 yyv1 = []*FieldDiff{} 121433 yyc1 = true 121434 } else if len(yyv1) != 0 { 121435 yyv1 = yyv1[:0] 121436 yyc1 = true 121437 } 121438 } else { 121439 yyhl1 := yyl1 > 0 121440 var yyrl1 int 121441 _ = yyrl1 121442 if yyhl1 { 121443 if yyl1 > cap(yyv1) { 121444 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 121445 if yyrl1 <= cap(yyv1) { 121446 yyv1 = yyv1[:yyrl1] 121447 } else { 121448 yyv1 = make([]*FieldDiff, yyrl1) 121449 } 121450 yyc1 = true 121451 } else if yyl1 != len(yyv1) { 121452 yyv1 = yyv1[:yyl1] 121453 yyc1 = true 121454 } 121455 } 121456 var yyj1 int 121457 // var yydn1 bool 121458 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 121459 if yyj1 == 0 && yyv1 == nil { 121460 if yyhl1 { 121461 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 121462 } else { 121463 yyrl1 = 8 121464 } 121465 yyv1 = make([]*FieldDiff, yyrl1) 121466 yyc1 = true 121467 } 121468 yyh1.ElemContainerState(yyj1) 121469 121470 var yydb1 bool 121471 if yyj1 >= len(yyv1) { 121472 yyv1 = append(yyv1, nil) 121473 yyc1 = true 121474 121475 } 121476 if yydb1 { 121477 z.DecSwallow() 121478 } else { 121479 if r.TryDecodeAsNil() { 121480 yyv1[yyj1] = nil 121481 } else { 121482 if yyv1[yyj1] == nil { 121483 yyv1[yyj1] = new(FieldDiff) 121484 } 121485 yyv1[yyj1].CodecDecodeSelf(d) 121486 } 121487 121488 } 121489 121490 } 121491 if yyj1 < len(yyv1) { 121492 yyv1 = yyv1[:yyj1] 121493 yyc1 = true 121494 } else if yyj1 == 0 && yyv1 == nil { 121495 yyv1 = make([]*FieldDiff, 0) 121496 yyc1 = true 121497 } 121498 } 121499 yyh1.End() 121500 if yyc1 { 121501 *v = yyv1 121502 } 121503 } 121504 121505 func (x codecSelfer100) encSlicePtrtoNetworkResource(v []*NetworkResource, e *codec1978.Encoder) { 121506 var h codecSelfer100 121507 z, r := codec1978.GenHelperEncoder(e) 121508 _, _, _ = h, z, r 121509 r.WriteArrayStart(len(v)) 121510 for _, yyv1 := range v { 121511 r.WriteArrayElem() 121512 if yyv1 == nil { 121513 r.EncodeNil() 121514 } else { 121515 yyv1.CodecEncodeSelf(e) 121516 } 121517 } 121518 r.WriteArrayEnd() 121519 } 121520 121521 func (x codecSelfer100) decSlicePtrtoNetworkResource(v *[]*NetworkResource, d *codec1978.Decoder) { 121522 var h codecSelfer100 121523 z, r := codec1978.GenHelperDecoder(d) 121524 _, _, _ = h, z, r 121525 121526 yyv1 := *v 121527 yyh1, yyl1 := z.DecSliceHelperStart() 121528 var yyc1 bool 121529 _ = yyc1 121530 if yyl1 == 0 { 121531 if yyv1 == nil { 121532 yyv1 = []*NetworkResource{} 121533 yyc1 = true 121534 } else if len(yyv1) != 0 { 121535 yyv1 = yyv1[:0] 121536 yyc1 = true 121537 } 121538 } else { 121539 yyhl1 := yyl1 > 0 121540 var yyrl1 int 121541 _ = yyrl1 121542 if yyhl1 { 121543 if yyl1 > cap(yyv1) { 121544 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 121545 if yyrl1 <= cap(yyv1) { 121546 yyv1 = yyv1[:yyrl1] 121547 } else { 121548 yyv1 = make([]*NetworkResource, yyrl1) 121549 } 121550 yyc1 = true 121551 } else if yyl1 != len(yyv1) { 121552 yyv1 = yyv1[:yyl1] 121553 yyc1 = true 121554 } 121555 } 121556 var yyj1 int 121557 // var yydn1 bool 121558 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 121559 if yyj1 == 0 && yyv1 == nil { 121560 if yyhl1 { 121561 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 121562 } else { 121563 yyrl1 = 8 121564 } 121565 yyv1 = make([]*NetworkResource, yyrl1) 121566 yyc1 = true 121567 } 121568 yyh1.ElemContainerState(yyj1) 121569 121570 var yydb1 bool 121571 if yyj1 >= len(yyv1) { 121572 yyv1 = append(yyv1, nil) 121573 yyc1 = true 121574 121575 } 121576 if yydb1 { 121577 z.DecSwallow() 121578 } else { 121579 if r.TryDecodeAsNil() { 121580 yyv1[yyj1] = nil 121581 } else { 121582 if yyv1[yyj1] == nil { 121583 yyv1[yyj1] = new(NetworkResource) 121584 } 121585 yyv1[yyj1].CodecDecodeSelf(d) 121586 } 121587 121588 } 121589 121590 } 121591 if yyj1 < len(yyv1) { 121592 yyv1 = yyv1[:yyj1] 121593 yyc1 = true 121594 } else if yyj1 == 0 && yyv1 == nil { 121595 yyv1 = make([]*NetworkResource, 0) 121596 yyc1 = true 121597 } 121598 } 121599 yyh1.End() 121600 if yyc1 { 121601 *v = yyv1 121602 } 121603 } 121604 121605 func (x codecSelfer100) encMapstringBitmap(v map[string]Bitmap, e *codec1978.Encoder) { 121606 var h codecSelfer100 121607 z, r := codec1978.GenHelperEncoder(e) 121608 _, _, _ = h, z, r 121609 r.WriteMapStart(len(v)) 121610 for yyk1, yyv1 := range v { 121611 r.WriteMapElemKey() 121612 if false { 121613 } else { 121614 if z.EncBasicHandle().StringToRaw { 121615 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 121616 } else { 121617 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 121618 } 121619 } 121620 r.WriteMapElemValue() 121621 if yyv1 == nil { 121622 r.EncodeNil() 121623 } else { 121624 yyv1.CodecEncodeSelf(e) 121625 } 121626 } 121627 r.WriteMapEnd() 121628 } 121629 121630 func (x codecSelfer100) decMapstringBitmap(v *map[string]Bitmap, d *codec1978.Decoder) { 121631 var h codecSelfer100 121632 z, r := codec1978.GenHelperDecoder(d) 121633 _, _, _ = h, z, r 121634 121635 yyv1 := *v 121636 yyl1 := r.ReadMapStart() 121637 yybh1 := z.DecBasicHandle() 121638 if yyv1 == nil { 121639 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) 121640 yyv1 = make(map[string]Bitmap, yyrl1) 121641 *v = yyv1 121642 } 121643 var yymk1 string 121644 var yymv1 Bitmap 121645 var yymg1, yymdn1 bool 121646 if yybh1.MapValueReset { 121647 yymg1 = true 121648 } 121649 if yyl1 != 0 { 121650 yyhl1 := yyl1 > 0 121651 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 121652 r.ReadMapElemKey() 121653 if r.TryDecodeAsNil() { 121654 yymk1 = "" 121655 } else { 121656 yymk1 = (string)(r.DecodeString()) 121657 } 121658 121659 if yymg1 { 121660 yymv1 = yyv1[yymk1] 121661 } else { 121662 yymv1 = nil 121663 } 121664 r.ReadMapElemValue() 121665 yymdn1 = false 121666 if r.TryDecodeAsNil() { 121667 yymdn1 = true 121668 } else { 121669 yymv1.CodecDecodeSelf(d) 121670 } 121671 121672 if yymdn1 { 121673 if yybh1.DeleteOnNilMapValue { 121674 delete(yyv1, yymk1) 121675 } else { 121676 yyv1[yymk1] = nil 121677 } 121678 } else if yyv1 != nil { 121679 yyv1[yymk1] = yymv1 121680 } 121681 } 121682 } // else len==0: TODO: Should we clear map entries? 121683 r.ReadMapEnd() 121684 } 121685 121686 func (x codecSelfer100) encSlicePtrtoRaftServer(v []*RaftServer, e *codec1978.Encoder) { 121687 var h codecSelfer100 121688 z, r := codec1978.GenHelperEncoder(e) 121689 _, _, _ = h, z, r 121690 r.WriteArrayStart(len(v)) 121691 for _, yyv1 := range v { 121692 r.WriteArrayElem() 121693 if yyv1 == nil { 121694 r.EncodeNil() 121695 } else { 121696 yyv1.CodecEncodeSelf(e) 121697 } 121698 } 121699 r.WriteArrayEnd() 121700 } 121701 121702 func (x codecSelfer100) decSlicePtrtoRaftServer(v *[]*RaftServer, d *codec1978.Decoder) { 121703 var h codecSelfer100 121704 z, r := codec1978.GenHelperDecoder(d) 121705 _, _, _ = h, z, r 121706 121707 yyv1 := *v 121708 yyh1, yyl1 := z.DecSliceHelperStart() 121709 var yyc1 bool 121710 _ = yyc1 121711 if yyl1 == 0 { 121712 if yyv1 == nil { 121713 yyv1 = []*RaftServer{} 121714 yyc1 = true 121715 } else if len(yyv1) != 0 { 121716 yyv1 = yyv1[:0] 121717 yyc1 = true 121718 } 121719 } else { 121720 yyhl1 := yyl1 > 0 121721 var yyrl1 int 121722 _ = yyrl1 121723 if yyhl1 { 121724 if yyl1 > cap(yyv1) { 121725 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 121726 if yyrl1 <= cap(yyv1) { 121727 yyv1 = yyv1[:yyrl1] 121728 } else { 121729 yyv1 = make([]*RaftServer, yyrl1) 121730 } 121731 yyc1 = true 121732 } else if yyl1 != len(yyv1) { 121733 yyv1 = yyv1[:yyl1] 121734 yyc1 = true 121735 } 121736 } 121737 var yyj1 int 121738 // var yydn1 bool 121739 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 121740 if yyj1 == 0 && yyv1 == nil { 121741 if yyhl1 { 121742 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 121743 } else { 121744 yyrl1 = 8 121745 } 121746 yyv1 = make([]*RaftServer, yyrl1) 121747 yyc1 = true 121748 } 121749 yyh1.ElemContainerState(yyj1) 121750 121751 var yydb1 bool 121752 if yyj1 >= len(yyv1) { 121753 yyv1 = append(yyv1, nil) 121754 yyc1 = true 121755 121756 } 121757 if yydb1 { 121758 z.DecSwallow() 121759 } else { 121760 if r.TryDecodeAsNil() { 121761 yyv1[yyj1] = nil 121762 } else { 121763 if yyv1[yyj1] == nil { 121764 yyv1[yyj1] = new(RaftServer) 121765 } 121766 yyv1[yyj1].CodecDecodeSelf(d) 121767 } 121768 121769 } 121770 121771 } 121772 if yyj1 < len(yyv1) { 121773 yyv1 = yyv1[:yyj1] 121774 yyc1 = true 121775 } else if yyj1 == 0 && yyv1 == nil { 121776 yyv1 = make([]*RaftServer, 0) 121777 yyc1 = true 121778 } 121779 } 121780 yyh1.End() 121781 if yyc1 { 121782 *v = yyv1 121783 } 121784 } 121785 121786 func (x codecSelfer100) encSlicePtrtoSITokenAccessor(v []*SITokenAccessor, e *codec1978.Encoder) { 121787 var h codecSelfer100 121788 z, r := codec1978.GenHelperEncoder(e) 121789 _, _, _ = h, z, r 121790 r.WriteArrayStart(len(v)) 121791 for _, yyv1 := range v { 121792 r.WriteArrayElem() 121793 if yyv1 == nil { 121794 r.EncodeNil() 121795 } else { 121796 yyv1.CodecEncodeSelf(e) 121797 } 121798 } 121799 r.WriteArrayEnd() 121800 } 121801 121802 func (x codecSelfer100) decSlicePtrtoSITokenAccessor(v *[]*SITokenAccessor, d *codec1978.Decoder) { 121803 var h codecSelfer100 121804 z, r := codec1978.GenHelperDecoder(d) 121805 _, _, _ = h, z, r 121806 121807 yyv1 := *v 121808 yyh1, yyl1 := z.DecSliceHelperStart() 121809 var yyc1 bool 121810 _ = yyc1 121811 if yyl1 == 0 { 121812 if yyv1 == nil { 121813 yyv1 = []*SITokenAccessor{} 121814 yyc1 = true 121815 } else if len(yyv1) != 0 { 121816 yyv1 = yyv1[:0] 121817 yyc1 = true 121818 } 121819 } else { 121820 yyhl1 := yyl1 > 0 121821 var yyrl1 int 121822 _ = yyrl1 121823 if yyhl1 { 121824 if yyl1 > cap(yyv1) { 121825 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 121826 if yyrl1 <= cap(yyv1) { 121827 yyv1 = yyv1[:yyrl1] 121828 } else { 121829 yyv1 = make([]*SITokenAccessor, yyrl1) 121830 } 121831 yyc1 = true 121832 } else if yyl1 != len(yyv1) { 121833 yyv1 = yyv1[:yyl1] 121834 yyc1 = true 121835 } 121836 } 121837 var yyj1 int 121838 // var yydn1 bool 121839 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 121840 if yyj1 == 0 && yyv1 == nil { 121841 if yyhl1 { 121842 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 121843 } else { 121844 yyrl1 = 8 121845 } 121846 yyv1 = make([]*SITokenAccessor, yyrl1) 121847 yyc1 = true 121848 } 121849 yyh1.ElemContainerState(yyj1) 121850 121851 var yydb1 bool 121852 if yyj1 >= len(yyv1) { 121853 yyv1 = append(yyv1, nil) 121854 yyc1 = true 121855 121856 } 121857 if yydb1 { 121858 z.DecSwallow() 121859 } else { 121860 if r.TryDecodeAsNil() { 121861 yyv1[yyj1] = nil 121862 } else { 121863 if yyv1[yyj1] == nil { 121864 yyv1[yyj1] = new(SITokenAccessor) 121865 } 121866 yyv1[yyj1].CodecDecodeSelf(d) 121867 } 121868 121869 } 121870 121871 } 121872 if yyj1 < len(yyv1) { 121873 yyv1 = yyv1[:yyj1] 121874 yyc1 = true 121875 } else if yyj1 == 0 && yyv1 == nil { 121876 yyv1 = make([]*SITokenAccessor, 0) 121877 yyc1 = true 121878 } 121879 } 121880 yyh1.End() 121881 if yyc1 { 121882 *v = yyv1 121883 } 121884 } 121885 121886 func (x codecSelfer100) encMapstringSlicestring(v map[string][]string, e *codec1978.Encoder) { 121887 var h codecSelfer100 121888 z, r := codec1978.GenHelperEncoder(e) 121889 _, _, _ = h, z, r 121890 r.WriteMapStart(len(v)) 121891 for yyk1, yyv1 := range v { 121892 r.WriteMapElemKey() 121893 if false { 121894 } else { 121895 if z.EncBasicHandle().StringToRaw { 121896 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 121897 } else { 121898 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 121899 } 121900 } 121901 r.WriteMapElemValue() 121902 if yyv1 == nil { 121903 r.EncodeNil() 121904 } else { 121905 if false { 121906 } else { 121907 z.F.EncSliceStringV(yyv1, e) 121908 } 121909 } 121910 } 121911 r.WriteMapEnd() 121912 } 121913 121914 func (x codecSelfer100) decMapstringSlicestring(v *map[string][]string, d *codec1978.Decoder) { 121915 var h codecSelfer100 121916 z, r := codec1978.GenHelperDecoder(d) 121917 _, _, _ = h, z, r 121918 121919 yyv1 := *v 121920 yyl1 := r.ReadMapStart() 121921 yybh1 := z.DecBasicHandle() 121922 if yyv1 == nil { 121923 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) 121924 yyv1 = make(map[string][]string, yyrl1) 121925 *v = yyv1 121926 } 121927 var yymk1 string 121928 var yymv1 []string 121929 var yymg1, yymdn1 bool 121930 if yybh1.MapValueReset { 121931 yymg1 = true 121932 } 121933 if yyl1 != 0 { 121934 yyhl1 := yyl1 > 0 121935 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 121936 r.ReadMapElemKey() 121937 if r.TryDecodeAsNil() { 121938 yymk1 = "" 121939 } else { 121940 yymk1 = (string)(r.DecodeString()) 121941 } 121942 121943 if yymg1 { 121944 yymv1 = yyv1[yymk1] 121945 } else { 121946 yymv1 = nil 121947 } 121948 r.ReadMapElemValue() 121949 yymdn1 = false 121950 if r.TryDecodeAsNil() { 121951 yymdn1 = true 121952 } else { 121953 if false { 121954 } else { 121955 z.F.DecSliceStringX(&yymv1, d) 121956 } 121957 } 121958 121959 if yymdn1 { 121960 if yybh1.DeleteOnNilMapValue { 121961 delete(yyv1, yymk1) 121962 } else { 121963 yyv1[yymk1] = nil 121964 } 121965 } else if yyv1 != nil { 121966 yyv1[yymk1] = yymv1 121967 } 121968 } 121969 } // else len==0: TODO: Should we clear map entries? 121970 r.ReadMapEnd() 121971 } 121972 121973 func (x codecSelfer100) encSlicestring(v []string, e *codec1978.Encoder) { 121974 var h codecSelfer100 121975 z, r := codec1978.GenHelperEncoder(e) 121976 _, _, _ = h, z, r 121977 r.WriteArrayStart(len(v)) 121978 for _, yyv1 := range v { 121979 r.WriteArrayElem() 121980 if false { 121981 } else { 121982 if z.EncBasicHandle().StringToRaw { 121983 r.EncodeStringBytesRaw(z.BytesView(string(yyv1))) 121984 } else { 121985 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyv1)) 121986 } 121987 } 121988 } 121989 r.WriteArrayEnd() 121990 } 121991 121992 func (x codecSelfer100) decSlicestring(v *[]string, d *codec1978.Decoder) { 121993 var h codecSelfer100 121994 z, r := codec1978.GenHelperDecoder(d) 121995 _, _, _ = h, z, r 121996 121997 yyv1 := *v 121998 yyh1, yyl1 := z.DecSliceHelperStart() 121999 var yyc1 bool 122000 _ = yyc1 122001 if yyl1 == 0 { 122002 if yyv1 == nil { 122003 yyv1 = []string{} 122004 yyc1 = true 122005 } else if len(yyv1) != 0 { 122006 yyv1 = yyv1[:0] 122007 yyc1 = true 122008 } 122009 } else { 122010 yyhl1 := yyl1 > 0 122011 var yyrl1 int 122012 _ = yyrl1 122013 if yyhl1 { 122014 if yyl1 > cap(yyv1) { 122015 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) 122016 if yyrl1 <= cap(yyv1) { 122017 yyv1 = yyv1[:yyrl1] 122018 } else { 122019 yyv1 = make([]string, yyrl1) 122020 } 122021 yyc1 = true 122022 } else if yyl1 != len(yyv1) { 122023 yyv1 = yyv1[:yyl1] 122024 yyc1 = true 122025 } 122026 } 122027 var yyj1 int 122028 // var yydn1 bool 122029 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 122030 if yyj1 == 0 && yyv1 == nil { 122031 if yyhl1 { 122032 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) 122033 } else { 122034 yyrl1 = 8 122035 } 122036 yyv1 = make([]string, yyrl1) 122037 yyc1 = true 122038 } 122039 yyh1.ElemContainerState(yyj1) 122040 122041 var yydb1 bool 122042 if yyj1 >= len(yyv1) { 122043 yyv1 = append(yyv1, "") 122044 yyc1 = true 122045 122046 } 122047 if yydb1 { 122048 z.DecSwallow() 122049 } else { 122050 if r.TryDecodeAsNil() { 122051 yyv1[yyj1] = "" 122052 } else { 122053 yyv1[yyj1] = (string)(r.DecodeString()) 122054 } 122055 122056 } 122057 122058 } 122059 if yyj1 < len(yyv1) { 122060 yyv1 = yyv1[:yyj1] 122061 yyc1 = true 122062 } else if yyj1 == 0 && yyv1 == nil { 122063 yyv1 = make([]string, 0) 122064 yyc1 = true 122065 } 122066 } 122067 yyh1.End() 122068 if yyc1 { 122069 *v = yyv1 122070 } 122071 } 122072 122073 func (x codecSelfer100) encSlicePtrtoServiceCheck(v []*ServiceCheck, e *codec1978.Encoder) { 122074 var h codecSelfer100 122075 z, r := codec1978.GenHelperEncoder(e) 122076 _, _, _ = h, z, r 122077 r.WriteArrayStart(len(v)) 122078 for _, yyv1 := range v { 122079 r.WriteArrayElem() 122080 if yyv1 == nil { 122081 r.EncodeNil() 122082 } else { 122083 yyv1.CodecEncodeSelf(e) 122084 } 122085 } 122086 r.WriteArrayEnd() 122087 } 122088 122089 func (x codecSelfer100) decSlicePtrtoServiceCheck(v *[]*ServiceCheck, d *codec1978.Decoder) { 122090 var h codecSelfer100 122091 z, r := codec1978.GenHelperDecoder(d) 122092 _, _, _ = h, z, r 122093 122094 yyv1 := *v 122095 yyh1, yyl1 := z.DecSliceHelperStart() 122096 var yyc1 bool 122097 _ = yyc1 122098 if yyl1 == 0 { 122099 if yyv1 == nil { 122100 yyv1 = []*ServiceCheck{} 122101 yyc1 = true 122102 } else if len(yyv1) != 0 { 122103 yyv1 = yyv1[:0] 122104 yyc1 = true 122105 } 122106 } else { 122107 yyhl1 := yyl1 > 0 122108 var yyrl1 int 122109 _ = yyrl1 122110 if yyhl1 { 122111 if yyl1 > cap(yyv1) { 122112 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 122113 if yyrl1 <= cap(yyv1) { 122114 yyv1 = yyv1[:yyrl1] 122115 } else { 122116 yyv1 = make([]*ServiceCheck, yyrl1) 122117 } 122118 yyc1 = true 122119 } else if yyl1 != len(yyv1) { 122120 yyv1 = yyv1[:yyl1] 122121 yyc1 = true 122122 } 122123 } 122124 var yyj1 int 122125 // var yydn1 bool 122126 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 122127 if yyj1 == 0 && yyv1 == nil { 122128 if yyhl1 { 122129 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 122130 } else { 122131 yyrl1 = 8 122132 } 122133 yyv1 = make([]*ServiceCheck, yyrl1) 122134 yyc1 = true 122135 } 122136 yyh1.ElemContainerState(yyj1) 122137 122138 var yydb1 bool 122139 if yyj1 >= len(yyv1) { 122140 yyv1 = append(yyv1, nil) 122141 yyc1 = true 122142 122143 } 122144 if yydb1 { 122145 z.DecSwallow() 122146 } else { 122147 if r.TryDecodeAsNil() { 122148 yyv1[yyj1] = nil 122149 } else { 122150 if yyv1[yyj1] == nil { 122151 yyv1[yyj1] = new(ServiceCheck) 122152 } 122153 yyv1[yyj1].CodecDecodeSelf(d) 122154 } 122155 122156 } 122157 122158 } 122159 if yyj1 < len(yyv1) { 122160 yyv1 = yyv1[:yyj1] 122161 yyc1 = true 122162 } else if yyj1 == 0 && yyv1 == nil { 122163 yyv1 = make([]*ServiceCheck, 0) 122164 yyc1 = true 122165 } 122166 } 122167 yyh1.End() 122168 if yyc1 { 122169 *v = yyv1 122170 } 122171 } 122172 122173 func (x codecSelfer100) encSliceConsulUpstream(v []ConsulUpstream, e *codec1978.Encoder) { 122174 var h codecSelfer100 122175 z, r := codec1978.GenHelperEncoder(e) 122176 _, _, _ = h, z, r 122177 r.WriteArrayStart(len(v)) 122178 for _, yyv1 := range v { 122179 r.WriteArrayElem() 122180 yy2 := &yyv1 122181 yy2.CodecEncodeSelf(e) 122182 } 122183 r.WriteArrayEnd() 122184 } 122185 122186 func (x codecSelfer100) decSliceConsulUpstream(v *[]ConsulUpstream, d *codec1978.Decoder) { 122187 var h codecSelfer100 122188 z, r := codec1978.GenHelperDecoder(d) 122189 _, _, _ = h, z, r 122190 122191 yyv1 := *v 122192 yyh1, yyl1 := z.DecSliceHelperStart() 122193 var yyc1 bool 122194 _ = yyc1 122195 if yyl1 == 0 { 122196 if yyv1 == nil { 122197 yyv1 = []ConsulUpstream{} 122198 yyc1 = true 122199 } else if len(yyv1) != 0 { 122200 yyv1 = yyv1[:0] 122201 yyc1 = true 122202 } 122203 } else { 122204 yyhl1 := yyl1 > 0 122205 var yyrl1 int 122206 _ = yyrl1 122207 if yyhl1 { 122208 if yyl1 > cap(yyv1) { 122209 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24) 122210 if yyrl1 <= cap(yyv1) { 122211 yyv1 = yyv1[:yyrl1] 122212 } else { 122213 yyv1 = make([]ConsulUpstream, yyrl1) 122214 } 122215 yyc1 = true 122216 } else if yyl1 != len(yyv1) { 122217 yyv1 = yyv1[:yyl1] 122218 yyc1 = true 122219 } 122220 } 122221 var yyj1 int 122222 // var yydn1 bool 122223 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 122224 if yyj1 == 0 && yyv1 == nil { 122225 if yyhl1 { 122226 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24) 122227 } else { 122228 yyrl1 = 8 122229 } 122230 yyv1 = make([]ConsulUpstream, yyrl1) 122231 yyc1 = true 122232 } 122233 yyh1.ElemContainerState(yyj1) 122234 122235 var yydb1 bool 122236 if yyj1 >= len(yyv1) { 122237 yyv1 = append(yyv1, ConsulUpstream{}) 122238 yyc1 = true 122239 122240 } 122241 if yydb1 { 122242 z.DecSwallow() 122243 } else { 122244 if r.TryDecodeAsNil() { 122245 yyv1[yyj1] = ConsulUpstream{} 122246 } else { 122247 yyv1[yyj1].CodecDecodeSelf(d) 122248 } 122249 122250 } 122251 122252 } 122253 if yyj1 < len(yyv1) { 122254 yyv1 = yyv1[:yyj1] 122255 yyc1 = true 122256 } else if yyj1 == 0 && yyv1 == nil { 122257 yyv1 = make([]ConsulUpstream, 0) 122258 yyc1 = true 122259 } 122260 } 122261 yyh1.End() 122262 if yyc1 { 122263 *v = yyv1 122264 } 122265 } 122266 122267 func (x codecSelfer100) encSliceConsulExposePath(v []ConsulExposePath, e *codec1978.Encoder) { 122268 var h codecSelfer100 122269 z, r := codec1978.GenHelperEncoder(e) 122270 _, _, _ = h, z, r 122271 r.WriteArrayStart(len(v)) 122272 for _, yyv1 := range v { 122273 r.WriteArrayElem() 122274 yy2 := &yyv1 122275 yy2.CodecEncodeSelf(e) 122276 } 122277 r.WriteArrayEnd() 122278 } 122279 122280 func (x codecSelfer100) decSliceConsulExposePath(v *[]ConsulExposePath, d *codec1978.Decoder) { 122281 var h codecSelfer100 122282 z, r := codec1978.GenHelperDecoder(d) 122283 _, _, _ = h, z, r 122284 122285 yyv1 := *v 122286 yyh1, yyl1 := z.DecSliceHelperStart() 122287 var yyc1 bool 122288 _ = yyc1 122289 if yyl1 == 0 { 122290 if yyv1 == nil { 122291 yyv1 = []ConsulExposePath{} 122292 yyc1 = true 122293 } else if len(yyv1) != 0 { 122294 yyv1 = yyv1[:0] 122295 yyc1 = true 122296 } 122297 } else { 122298 yyhl1 := yyl1 > 0 122299 var yyrl1 int 122300 _ = yyrl1 122301 if yyhl1 { 122302 if yyl1 > cap(yyv1) { 122303 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) 122304 if yyrl1 <= cap(yyv1) { 122305 yyv1 = yyv1[:yyrl1] 122306 } else { 122307 yyv1 = make([]ConsulExposePath, yyrl1) 122308 } 122309 yyc1 = true 122310 } else if yyl1 != len(yyv1) { 122311 yyv1 = yyv1[:yyl1] 122312 yyc1 = true 122313 } 122314 } 122315 var yyj1 int 122316 // var yydn1 bool 122317 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 122318 if yyj1 == 0 && yyv1 == nil { 122319 if yyhl1 { 122320 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) 122321 } else { 122322 yyrl1 = 8 122323 } 122324 yyv1 = make([]ConsulExposePath, yyrl1) 122325 yyc1 = true 122326 } 122327 yyh1.ElemContainerState(yyj1) 122328 122329 var yydb1 bool 122330 if yyj1 >= len(yyv1) { 122331 yyv1 = append(yyv1, ConsulExposePath{}) 122332 yyc1 = true 122333 122334 } 122335 if yydb1 { 122336 z.DecSwallow() 122337 } else { 122338 if r.TryDecodeAsNil() { 122339 yyv1[yyj1] = ConsulExposePath{} 122340 } else { 122341 yyv1[yyj1].CodecDecodeSelf(d) 122342 } 122343 122344 } 122345 122346 } 122347 if yyj1 < len(yyv1) { 122348 yyv1 = yyv1[:yyj1] 122349 yyc1 = true 122350 } else if yyj1 == 0 && yyv1 == nil { 122351 yyv1 = make([]ConsulExposePath, 0) 122352 yyc1 = true 122353 } 122354 } 122355 yyh1.End() 122356 if yyc1 { 122357 *v = yyv1 122358 } 122359 } 122360 122361 func (x codecSelfer100) encMapstringPtrtoDrainUpdate(v map[string]*DrainUpdate, e *codec1978.Encoder) { 122362 var h codecSelfer100 122363 z, r := codec1978.GenHelperEncoder(e) 122364 _, _, _ = h, z, r 122365 r.WriteMapStart(len(v)) 122366 for yyk1, yyv1 := range v { 122367 r.WriteMapElemKey() 122368 if false { 122369 } else { 122370 if z.EncBasicHandle().StringToRaw { 122371 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 122372 } else { 122373 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 122374 } 122375 } 122376 r.WriteMapElemValue() 122377 if yyv1 == nil { 122378 r.EncodeNil() 122379 } else { 122380 yyv1.CodecEncodeSelf(e) 122381 } 122382 } 122383 r.WriteMapEnd() 122384 } 122385 122386 func (x codecSelfer100) decMapstringPtrtoDrainUpdate(v *map[string]*DrainUpdate, d *codec1978.Decoder) { 122387 var h codecSelfer100 122388 z, r := codec1978.GenHelperDecoder(d) 122389 _, _, _ = h, z, r 122390 122391 yyv1 := *v 122392 yyl1 := r.ReadMapStart() 122393 yybh1 := z.DecBasicHandle() 122394 if yyv1 == nil { 122395 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 122396 yyv1 = make(map[string]*DrainUpdate, yyrl1) 122397 *v = yyv1 122398 } 122399 var yymk1 string 122400 var yymv1 *DrainUpdate 122401 var yymg1, yymdn1, yyms1, yymok1 bool 122402 if yybh1.MapValueReset { 122403 yymg1 = true 122404 } 122405 if yyl1 != 0 { 122406 yyhl1 := yyl1 > 0 122407 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 122408 r.ReadMapElemKey() 122409 if r.TryDecodeAsNil() { 122410 yymk1 = "" 122411 } else { 122412 yymk1 = (string)(r.DecodeString()) 122413 } 122414 122415 yyms1 = true 122416 if yymg1 { 122417 yymv1, yymok1 = yyv1[yymk1] 122418 if yymok1 { 122419 yyms1 = false 122420 } 122421 } else { 122422 yymv1 = nil 122423 } 122424 r.ReadMapElemValue() 122425 yymdn1 = false 122426 if r.TryDecodeAsNil() { 122427 yymdn1 = true 122428 } else { 122429 if yymv1 == nil { 122430 yymv1 = new(DrainUpdate) 122431 } 122432 yymv1.CodecDecodeSelf(d) 122433 } 122434 122435 if yymdn1 { 122436 if yybh1.DeleteOnNilMapValue { 122437 delete(yyv1, yymk1) 122438 } else { 122439 yyv1[yymk1] = nil 122440 } 122441 } else if yyms1 && yyv1 != nil { 122442 yyv1[yymk1] = yymv1 122443 } 122444 } 122445 } // else len==0: TODO: Should we clear map entries? 122446 r.ReadMapEnd() 122447 } 122448 122449 func (x codecSelfer100) encMapstringPtrtoNodeEvent(v map[string]*NodeEvent, e *codec1978.Encoder) { 122450 var h codecSelfer100 122451 z, r := codec1978.GenHelperEncoder(e) 122452 _, _, _ = h, z, r 122453 r.WriteMapStart(len(v)) 122454 for yyk1, yyv1 := range v { 122455 r.WriteMapElemKey() 122456 if false { 122457 } else { 122458 if z.EncBasicHandle().StringToRaw { 122459 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 122460 } else { 122461 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 122462 } 122463 } 122464 r.WriteMapElemValue() 122465 if yyv1 == nil { 122466 r.EncodeNil() 122467 } else { 122468 yyv1.CodecEncodeSelf(e) 122469 } 122470 } 122471 r.WriteMapEnd() 122472 } 122473 122474 func (x codecSelfer100) decMapstringPtrtoNodeEvent(v *map[string]*NodeEvent, d *codec1978.Decoder) { 122475 var h codecSelfer100 122476 z, r := codec1978.GenHelperDecoder(d) 122477 _, _, _ = h, z, r 122478 122479 yyv1 := *v 122480 yyl1 := r.ReadMapStart() 122481 yybh1 := z.DecBasicHandle() 122482 if yyv1 == nil { 122483 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 122484 yyv1 = make(map[string]*NodeEvent, yyrl1) 122485 *v = yyv1 122486 } 122487 var yymk1 string 122488 var yymv1 *NodeEvent 122489 var yymg1, yymdn1, yyms1, yymok1 bool 122490 if yybh1.MapValueReset { 122491 yymg1 = true 122492 } 122493 if yyl1 != 0 { 122494 yyhl1 := yyl1 > 0 122495 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 122496 r.ReadMapElemKey() 122497 if r.TryDecodeAsNil() { 122498 yymk1 = "" 122499 } else { 122500 yymk1 = (string)(r.DecodeString()) 122501 } 122502 122503 yyms1 = true 122504 if yymg1 { 122505 yymv1, yymok1 = yyv1[yymk1] 122506 if yymok1 { 122507 yyms1 = false 122508 } 122509 } else { 122510 yymv1 = nil 122511 } 122512 r.ReadMapElemValue() 122513 yymdn1 = false 122514 if r.TryDecodeAsNil() { 122515 yymdn1 = true 122516 } else { 122517 if yymv1 == nil { 122518 yymv1 = new(NodeEvent) 122519 } 122520 yymv1.CodecDecodeSelf(d) 122521 } 122522 122523 if yymdn1 { 122524 if yybh1.DeleteOnNilMapValue { 122525 delete(yyv1, yymk1) 122526 } else { 122527 yyv1[yymk1] = nil 122528 } 122529 } else if yyms1 && yyv1 != nil { 122530 yyv1[yymk1] = yymv1 122531 } 122532 } 122533 } // else len==0: TODO: Should we clear map entries? 122534 r.ReadMapEnd() 122535 } 122536 122537 func (x codecSelfer100) encMapContextSlicestring(v map[Context][]string, e *codec1978.Encoder) { 122538 var h codecSelfer100 122539 z, r := codec1978.GenHelperEncoder(e) 122540 _, _, _ = h, z, r 122541 r.WriteMapStart(len(v)) 122542 for yyk1, yyv1 := range v { 122543 r.WriteMapElemKey() 122544 yyk1.CodecEncodeSelf(e) 122545 r.WriteMapElemValue() 122546 if yyv1 == nil { 122547 r.EncodeNil() 122548 } else { 122549 if false { 122550 } else { 122551 z.F.EncSliceStringV(yyv1, e) 122552 } 122553 } 122554 } 122555 r.WriteMapEnd() 122556 } 122557 122558 func (x codecSelfer100) decMapContextSlicestring(v *map[Context][]string, d *codec1978.Decoder) { 122559 var h codecSelfer100 122560 z, r := codec1978.GenHelperDecoder(d) 122561 _, _, _ = h, z, r 122562 122563 yyv1 := *v 122564 yyl1 := r.ReadMapStart() 122565 yybh1 := z.DecBasicHandle() 122566 if yyv1 == nil { 122567 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) 122568 yyv1 = make(map[Context][]string, yyrl1) 122569 *v = yyv1 122570 } 122571 var yymk1 Context 122572 var yymv1 []string 122573 var yymg1, yymdn1 bool 122574 if yybh1.MapValueReset { 122575 yymg1 = true 122576 } 122577 if yyl1 != 0 { 122578 yyhl1 := yyl1 > 0 122579 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 122580 r.ReadMapElemKey() 122581 if r.TryDecodeAsNil() { 122582 yymk1 = "" 122583 } else { 122584 yymk1.CodecDecodeSelf(d) 122585 } 122586 122587 if yymg1 { 122588 yymv1 = yyv1[yymk1] 122589 } else { 122590 yymv1 = nil 122591 } 122592 r.ReadMapElemValue() 122593 yymdn1 = false 122594 if r.TryDecodeAsNil() { 122595 yymdn1 = true 122596 } else { 122597 if false { 122598 } else { 122599 z.F.DecSliceStringX(&yymv1, d) 122600 } 122601 } 122602 122603 if yymdn1 { 122604 if yybh1.DeleteOnNilMapValue { 122605 delete(yyv1, yymk1) 122606 } else { 122607 yyv1[yymk1] = nil 122608 } 122609 } else if yyv1 != nil { 122610 yyv1[yymk1] = yymv1 122611 } 122612 } 122613 } // else len==0: TODO: Should we clear map entries? 122614 r.ReadMapEnd() 122615 } 122616 122617 func (x codecSelfer100) encMapContextbool(v map[Context]bool, e *codec1978.Encoder) { 122618 var h codecSelfer100 122619 z, r := codec1978.GenHelperEncoder(e) 122620 _, _, _ = h, z, r 122621 r.WriteMapStart(len(v)) 122622 for yyk1, yyv1 := range v { 122623 r.WriteMapElemKey() 122624 yyk1.CodecEncodeSelf(e) 122625 r.WriteMapElemValue() 122626 if false { 122627 } else { 122628 r.EncodeBool(bool(yyv1)) 122629 } 122630 } 122631 r.WriteMapEnd() 122632 } 122633 122634 func (x codecSelfer100) decMapContextbool(v *map[Context]bool, d *codec1978.Decoder) { 122635 var h codecSelfer100 122636 z, r := codec1978.GenHelperDecoder(d) 122637 _, _, _ = h, z, r 122638 122639 yyv1 := *v 122640 yyl1 := r.ReadMapStart() 122641 yybh1 := z.DecBasicHandle() 122642 if yyv1 == nil { 122643 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 17) 122644 yyv1 = make(map[Context]bool, yyrl1) 122645 *v = yyv1 122646 } 122647 var yymk1 Context 122648 var yymv1 bool 122649 var yymg1, yymdn1 bool 122650 if yybh1.MapValueReset { 122651 } 122652 if yyl1 != 0 { 122653 yyhl1 := yyl1 > 0 122654 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 122655 r.ReadMapElemKey() 122656 if r.TryDecodeAsNil() { 122657 yymk1 = "" 122658 } else { 122659 yymk1.CodecDecodeSelf(d) 122660 } 122661 122662 if yymg1 { 122663 yymv1 = yyv1[yymk1] 122664 } 122665 r.ReadMapElemValue() 122666 yymdn1 = false 122667 if r.TryDecodeAsNil() { 122668 yymdn1 = true 122669 } else { 122670 yymv1 = (bool)(r.DecodeBool()) 122671 } 122672 122673 if yymdn1 { 122674 if yybh1.DeleteOnNilMapValue { 122675 delete(yyv1, yymk1) 122676 } else { 122677 yyv1[yymk1] = false 122678 } 122679 } else if yyv1 != nil { 122680 yyv1[yymk1] = yymv1 122681 } 122682 } 122683 } // else len==0: TODO: Should we clear map entries? 122684 r.ReadMapEnd() 122685 } 122686 122687 func (x codecSelfer100) encMapNamespacedIDPtrtoJobDeregisterOptions(v map[NamespacedID]*JobDeregisterOptions, e *codec1978.Encoder) { 122688 var h codecSelfer100 122689 z, r := codec1978.GenHelperEncoder(e) 122690 _, _, _ = h, z, r 122691 r.WriteMapStart(len(v)) 122692 for yyk1, yyv1 := range v { 122693 r.WriteMapElemKey() 122694 yy2 := &yyk1 122695 yy2.CodecEncodeSelf(e) 122696 r.WriteMapElemValue() 122697 if yyv1 == nil { 122698 r.EncodeNil() 122699 } else { 122700 yyv1.CodecEncodeSelf(e) 122701 } 122702 } 122703 r.WriteMapEnd() 122704 } 122705 122706 func (x codecSelfer100) decMapNamespacedIDPtrtoJobDeregisterOptions(v *map[NamespacedID]*JobDeregisterOptions, d *codec1978.Decoder) { 122707 var h codecSelfer100 122708 z, r := codec1978.GenHelperDecoder(d) 122709 _, _, _ = h, z, r 122710 122711 yyv1 := *v 122712 yyl1 := r.ReadMapStart() 122713 yybh1 := z.DecBasicHandle() 122714 if yyv1 == nil { 122715 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) 122716 yyv1 = make(map[NamespacedID]*JobDeregisterOptions, yyrl1) 122717 *v = yyv1 122718 } 122719 var yymk1 NamespacedID 122720 var yymv1 *JobDeregisterOptions 122721 var yymg1, yymdn1, yyms1, yymok1 bool 122722 if yybh1.MapValueReset { 122723 yymg1 = true 122724 } 122725 if yyl1 != 0 { 122726 yyhl1 := yyl1 > 0 122727 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 122728 r.ReadMapElemKey() 122729 if r.TryDecodeAsNil() { 122730 yymk1 = NamespacedID{} 122731 } else { 122732 yymk1.CodecDecodeSelf(d) 122733 } 122734 122735 yyms1 = true 122736 if yymg1 { 122737 yymv1, yymok1 = yyv1[yymk1] 122738 if yymok1 { 122739 yyms1 = false 122740 } 122741 } else { 122742 yymv1 = nil 122743 } 122744 r.ReadMapElemValue() 122745 yymdn1 = false 122746 if r.TryDecodeAsNil() { 122747 yymdn1 = true 122748 } else { 122749 if yymv1 == nil { 122750 yymv1 = new(JobDeregisterOptions) 122751 } 122752 yymv1.CodecDecodeSelf(d) 122753 } 122754 122755 if yymdn1 { 122756 if yybh1.DeleteOnNilMapValue { 122757 delete(yyv1, yymk1) 122758 } else { 122759 yyv1[yymk1] = nil 122760 } 122761 } else if yyms1 && yyv1 != nil { 122762 yyv1[yymk1] = yymv1 122763 } 122764 } 122765 } // else len==0: TODO: Should we clear map entries? 122766 r.ReadMapEnd() 122767 } 122768 122769 func (x codecSelfer100) encSlicePtrtoEvaluation(v []*Evaluation, e *codec1978.Encoder) { 122770 var h codecSelfer100 122771 z, r := codec1978.GenHelperEncoder(e) 122772 _, _, _ = h, z, r 122773 r.WriteArrayStart(len(v)) 122774 for _, yyv1 := range v { 122775 r.WriteArrayElem() 122776 if yyv1 == nil { 122777 r.EncodeNil() 122778 } else { 122779 yyv1.CodecEncodeSelf(e) 122780 } 122781 } 122782 r.WriteArrayEnd() 122783 } 122784 122785 func (x codecSelfer100) decSlicePtrtoEvaluation(v *[]*Evaluation, d *codec1978.Decoder) { 122786 var h codecSelfer100 122787 z, r := codec1978.GenHelperDecoder(d) 122788 _, _, _ = h, z, r 122789 122790 yyv1 := *v 122791 yyh1, yyl1 := z.DecSliceHelperStart() 122792 var yyc1 bool 122793 _ = yyc1 122794 if yyl1 == 0 { 122795 if yyv1 == nil { 122796 yyv1 = []*Evaluation{} 122797 yyc1 = true 122798 } else if len(yyv1) != 0 { 122799 yyv1 = yyv1[:0] 122800 yyc1 = true 122801 } 122802 } else { 122803 yyhl1 := yyl1 > 0 122804 var yyrl1 int 122805 _ = yyrl1 122806 if yyhl1 { 122807 if yyl1 > cap(yyv1) { 122808 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 122809 if yyrl1 <= cap(yyv1) { 122810 yyv1 = yyv1[:yyrl1] 122811 } else { 122812 yyv1 = make([]*Evaluation, yyrl1) 122813 } 122814 yyc1 = true 122815 } else if yyl1 != len(yyv1) { 122816 yyv1 = yyv1[:yyl1] 122817 yyc1 = true 122818 } 122819 } 122820 var yyj1 int 122821 // var yydn1 bool 122822 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 122823 if yyj1 == 0 && yyv1 == nil { 122824 if yyhl1 { 122825 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 122826 } else { 122827 yyrl1 = 8 122828 } 122829 yyv1 = make([]*Evaluation, yyrl1) 122830 yyc1 = true 122831 } 122832 yyh1.ElemContainerState(yyj1) 122833 122834 var yydb1 bool 122835 if yyj1 >= len(yyv1) { 122836 yyv1 = append(yyv1, nil) 122837 yyc1 = true 122838 122839 } 122840 if yydb1 { 122841 z.DecSwallow() 122842 } else { 122843 if r.TryDecodeAsNil() { 122844 yyv1[yyj1] = nil 122845 } else { 122846 if yyv1[yyj1] == nil { 122847 yyv1[yyj1] = new(Evaluation) 122848 } 122849 yyv1[yyj1].CodecDecodeSelf(d) 122850 } 122851 122852 } 122853 122854 } 122855 if yyj1 < len(yyv1) { 122856 yyv1 = yyv1[:yyj1] 122857 yyc1 = true 122858 } else if yyj1 == 0 && yyv1 == nil { 122859 yyv1 = make([]*Evaluation, 0) 122860 yyc1 = true 122861 } 122862 } 122863 yyh1.End() 122864 if yyc1 { 122865 *v = yyv1 122866 } 122867 } 122868 122869 func (x codecSelfer100) encSlicePtrtoAllocation(v []*Allocation, e *codec1978.Encoder) { 122870 var h codecSelfer100 122871 z, r := codec1978.GenHelperEncoder(e) 122872 _, _, _ = h, z, r 122873 r.WriteArrayStart(len(v)) 122874 for _, yyv1 := range v { 122875 r.WriteArrayElem() 122876 if yyv1 == nil { 122877 r.EncodeNil() 122878 } else { 122879 yyv1.CodecEncodeSelf(e) 122880 } 122881 } 122882 r.WriteArrayEnd() 122883 } 122884 122885 func (x codecSelfer100) decSlicePtrtoAllocation(v *[]*Allocation, d *codec1978.Decoder) { 122886 var h codecSelfer100 122887 z, r := codec1978.GenHelperDecoder(d) 122888 _, _, _ = h, z, r 122889 122890 yyv1 := *v 122891 yyh1, yyl1 := z.DecSliceHelperStart() 122892 var yyc1 bool 122893 _ = yyc1 122894 if yyl1 == 0 { 122895 if yyv1 == nil { 122896 yyv1 = []*Allocation{} 122897 yyc1 = true 122898 } else if len(yyv1) != 0 { 122899 yyv1 = yyv1[:0] 122900 yyc1 = true 122901 } 122902 } else { 122903 yyhl1 := yyl1 > 0 122904 var yyrl1 int 122905 _ = yyrl1 122906 if yyhl1 { 122907 if yyl1 > cap(yyv1) { 122908 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 122909 if yyrl1 <= cap(yyv1) { 122910 yyv1 = yyv1[:yyrl1] 122911 } else { 122912 yyv1 = make([]*Allocation, yyrl1) 122913 } 122914 yyc1 = true 122915 } else if yyl1 != len(yyv1) { 122916 yyv1 = yyv1[:yyl1] 122917 yyc1 = true 122918 } 122919 } 122920 var yyj1 int 122921 // var yydn1 bool 122922 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 122923 if yyj1 == 0 && yyv1 == nil { 122924 if yyhl1 { 122925 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 122926 } else { 122927 yyrl1 = 8 122928 } 122929 yyv1 = make([]*Allocation, yyrl1) 122930 yyc1 = true 122931 } 122932 yyh1.ElemContainerState(yyj1) 122933 122934 var yydb1 bool 122935 if yyj1 >= len(yyv1) { 122936 yyv1 = append(yyv1, nil) 122937 yyc1 = true 122938 122939 } 122940 if yydb1 { 122941 z.DecSwallow() 122942 } else { 122943 if r.TryDecodeAsNil() { 122944 yyv1[yyj1] = nil 122945 } else { 122946 if yyv1[yyj1] == nil { 122947 yyv1[yyj1] = new(Allocation) 122948 } 122949 yyv1[yyj1].CodecDecodeSelf(d) 122950 } 122951 122952 } 122953 122954 } 122955 if yyj1 < len(yyv1) { 122956 yyv1 = yyv1[:yyj1] 122957 yyc1 = true 122958 } else if yyj1 == 0 && yyv1 == nil { 122959 yyv1 = make([]*Allocation, 0) 122960 yyc1 = true 122961 } 122962 } 122963 yyh1.End() 122964 if yyc1 { 122965 *v = yyv1 122966 } 122967 } 122968 122969 func (x codecSelfer100) encSlicePtrtoAllocationDiff(v []*AllocationDiff, e *codec1978.Encoder) { 122970 var h codecSelfer100 122971 z, r := codec1978.GenHelperEncoder(e) 122972 _, _, _ = h, z, r 122973 r.WriteArrayStart(len(v)) 122974 for _, yyv1 := range v { 122975 r.WriteArrayElem() 122976 if yyv1 == nil { 122977 r.EncodeNil() 122978 } else { 122979 yyv1.CodecEncodeSelf(e) 122980 } 122981 } 122982 r.WriteArrayEnd() 122983 } 122984 122985 func (x codecSelfer100) decSlicePtrtoAllocationDiff(v *[]*AllocationDiff, d *codec1978.Decoder) { 122986 var h codecSelfer100 122987 z, r := codec1978.GenHelperDecoder(d) 122988 _, _, _ = h, z, r 122989 122990 yyv1 := *v 122991 yyh1, yyl1 := z.DecSliceHelperStart() 122992 var yyc1 bool 122993 _ = yyc1 122994 if yyl1 == 0 { 122995 if yyv1 == nil { 122996 yyv1 = []*AllocationDiff{} 122997 yyc1 = true 122998 } else if len(yyv1) != 0 { 122999 yyv1 = yyv1[:0] 123000 yyc1 = true 123001 } 123002 } else { 123003 yyhl1 := yyl1 > 0 123004 var yyrl1 int 123005 _ = yyrl1 123006 if yyhl1 { 123007 if yyl1 > cap(yyv1) { 123008 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123009 if yyrl1 <= cap(yyv1) { 123010 yyv1 = yyv1[:yyrl1] 123011 } else { 123012 yyv1 = make([]*AllocationDiff, yyrl1) 123013 } 123014 yyc1 = true 123015 } else if yyl1 != len(yyv1) { 123016 yyv1 = yyv1[:yyl1] 123017 yyc1 = true 123018 } 123019 } 123020 var yyj1 int 123021 // var yydn1 bool 123022 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 123023 if yyj1 == 0 && yyv1 == nil { 123024 if yyhl1 { 123025 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123026 } else { 123027 yyrl1 = 8 123028 } 123029 yyv1 = make([]*AllocationDiff, yyrl1) 123030 yyc1 = true 123031 } 123032 yyh1.ElemContainerState(yyj1) 123033 123034 var yydb1 bool 123035 if yyj1 >= len(yyv1) { 123036 yyv1 = append(yyv1, nil) 123037 yyc1 = true 123038 123039 } 123040 if yydb1 { 123041 z.DecSwallow() 123042 } else { 123043 if r.TryDecodeAsNil() { 123044 yyv1[yyj1] = nil 123045 } else { 123046 if yyv1[yyj1] == nil { 123047 yyv1[yyj1] = new(AllocationDiff) 123048 } 123049 yyv1[yyj1].CodecDecodeSelf(d) 123050 } 123051 123052 } 123053 123054 } 123055 if yyj1 < len(yyv1) { 123056 yyv1 = yyv1[:yyj1] 123057 yyc1 = true 123058 } else if yyj1 == 0 && yyv1 == nil { 123059 yyv1 = make([]*AllocationDiff, 0) 123060 yyc1 = true 123061 } 123062 } 123063 yyh1.End() 123064 if yyc1 { 123065 *v = yyv1 123066 } 123067 } 123068 123069 func (x codecSelfer100) encSlicePtrtoDeploymentStatusUpdate(v []*DeploymentStatusUpdate, e *codec1978.Encoder) { 123070 var h codecSelfer100 123071 z, r := codec1978.GenHelperEncoder(e) 123072 _, _, _ = h, z, r 123073 r.WriteArrayStart(len(v)) 123074 for _, yyv1 := range v { 123075 r.WriteArrayElem() 123076 if yyv1 == nil { 123077 r.EncodeNil() 123078 } else { 123079 yyv1.CodecEncodeSelf(e) 123080 } 123081 } 123082 r.WriteArrayEnd() 123083 } 123084 123085 func (x codecSelfer100) decSlicePtrtoDeploymentStatusUpdate(v *[]*DeploymentStatusUpdate, d *codec1978.Decoder) { 123086 var h codecSelfer100 123087 z, r := codec1978.GenHelperDecoder(d) 123088 _, _, _ = h, z, r 123089 123090 yyv1 := *v 123091 yyh1, yyl1 := z.DecSliceHelperStart() 123092 var yyc1 bool 123093 _ = yyc1 123094 if yyl1 == 0 { 123095 if yyv1 == nil { 123096 yyv1 = []*DeploymentStatusUpdate{} 123097 yyc1 = true 123098 } else if len(yyv1) != 0 { 123099 yyv1 = yyv1[:0] 123100 yyc1 = true 123101 } 123102 } else { 123103 yyhl1 := yyl1 > 0 123104 var yyrl1 int 123105 _ = yyrl1 123106 if yyhl1 { 123107 if yyl1 > cap(yyv1) { 123108 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123109 if yyrl1 <= cap(yyv1) { 123110 yyv1 = yyv1[:yyrl1] 123111 } else { 123112 yyv1 = make([]*DeploymentStatusUpdate, yyrl1) 123113 } 123114 yyc1 = true 123115 } else if yyl1 != len(yyv1) { 123116 yyv1 = yyv1[:yyl1] 123117 yyc1 = true 123118 } 123119 } 123120 var yyj1 int 123121 // var yydn1 bool 123122 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 123123 if yyj1 == 0 && yyv1 == nil { 123124 if yyhl1 { 123125 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123126 } else { 123127 yyrl1 = 8 123128 } 123129 yyv1 = make([]*DeploymentStatusUpdate, yyrl1) 123130 yyc1 = true 123131 } 123132 yyh1.ElemContainerState(yyj1) 123133 123134 var yydb1 bool 123135 if yyj1 >= len(yyv1) { 123136 yyv1 = append(yyv1, nil) 123137 yyc1 = true 123138 123139 } 123140 if yydb1 { 123141 z.DecSwallow() 123142 } else { 123143 if r.TryDecodeAsNil() { 123144 yyv1[yyj1] = nil 123145 } else { 123146 if yyv1[yyj1] == nil { 123147 yyv1[yyj1] = new(DeploymentStatusUpdate) 123148 } 123149 yyv1[yyj1].CodecDecodeSelf(d) 123150 } 123151 123152 } 123153 123154 } 123155 if yyj1 < len(yyv1) { 123156 yyv1 = yyv1[:yyj1] 123157 yyc1 = true 123158 } else if yyj1 == 0 && yyv1 == nil { 123159 yyv1 = make([]*DeploymentStatusUpdate, 0) 123160 yyc1 = true 123161 } 123162 } 123163 yyh1.End() 123164 if yyc1 { 123165 *v = yyv1 123166 } 123167 } 123168 123169 func (x codecSelfer100) encMapstringPtrtoDesiredTransition(v map[string]*DesiredTransition, e *codec1978.Encoder) { 123170 var h codecSelfer100 123171 z, r := codec1978.GenHelperEncoder(e) 123172 _, _, _ = h, z, r 123173 r.WriteMapStart(len(v)) 123174 for yyk1, yyv1 := range v { 123175 r.WriteMapElemKey() 123176 if false { 123177 } else { 123178 if z.EncBasicHandle().StringToRaw { 123179 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 123180 } else { 123181 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 123182 } 123183 } 123184 r.WriteMapElemValue() 123185 if yyv1 == nil { 123186 r.EncodeNil() 123187 } else { 123188 yyv1.CodecEncodeSelf(e) 123189 } 123190 } 123191 r.WriteMapEnd() 123192 } 123193 123194 func (x codecSelfer100) decMapstringPtrtoDesiredTransition(v *map[string]*DesiredTransition, d *codec1978.Decoder) { 123195 var h codecSelfer100 123196 z, r := codec1978.GenHelperDecoder(d) 123197 _, _, _ = h, z, r 123198 123199 yyv1 := *v 123200 yyl1 := r.ReadMapStart() 123201 yybh1 := z.DecBasicHandle() 123202 if yyv1 == nil { 123203 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 123204 yyv1 = make(map[string]*DesiredTransition, yyrl1) 123205 *v = yyv1 123206 } 123207 var yymk1 string 123208 var yymv1 *DesiredTransition 123209 var yymg1, yymdn1, yyms1, yymok1 bool 123210 if yybh1.MapValueReset { 123211 yymg1 = true 123212 } 123213 if yyl1 != 0 { 123214 yyhl1 := yyl1 > 0 123215 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 123216 r.ReadMapElemKey() 123217 if r.TryDecodeAsNil() { 123218 yymk1 = "" 123219 } else { 123220 yymk1 = (string)(r.DecodeString()) 123221 } 123222 123223 yyms1 = true 123224 if yymg1 { 123225 yymv1, yymok1 = yyv1[yymk1] 123226 if yymok1 { 123227 yyms1 = false 123228 } 123229 } else { 123230 yymv1 = nil 123231 } 123232 r.ReadMapElemValue() 123233 yymdn1 = false 123234 if r.TryDecodeAsNil() { 123235 yymdn1 = true 123236 } else { 123237 if yymv1 == nil { 123238 yymv1 = new(DesiredTransition) 123239 } 123240 yymv1.CodecDecodeSelf(d) 123241 } 123242 123243 if yymdn1 { 123244 if yybh1.DeleteOnNilMapValue { 123245 delete(yyv1, yymk1) 123246 } else { 123247 yyv1[yymk1] = nil 123248 } 123249 } else if yyms1 && yyv1 != nil { 123250 yyv1[yymk1] = yymv1 123251 } 123252 } 123253 } // else len==0: TODO: Should we clear map entries? 123254 r.ReadMapEnd() 123255 } 123256 123257 func (x codecSelfer100) encSlicePtrtoServerMember(v []*ServerMember, e *codec1978.Encoder) { 123258 var h codecSelfer100 123259 z, r := codec1978.GenHelperEncoder(e) 123260 _, _, _ = h, z, r 123261 r.WriteArrayStart(len(v)) 123262 for _, yyv1 := range v { 123263 r.WriteArrayElem() 123264 if yyv1 == nil { 123265 r.EncodeNil() 123266 } else { 123267 yyv1.CodecEncodeSelf(e) 123268 } 123269 } 123270 r.WriteArrayEnd() 123271 } 123272 123273 func (x codecSelfer100) decSlicePtrtoServerMember(v *[]*ServerMember, d *codec1978.Decoder) { 123274 var h codecSelfer100 123275 z, r := codec1978.GenHelperDecoder(d) 123276 _, _, _ = h, z, r 123277 123278 yyv1 := *v 123279 yyh1, yyl1 := z.DecSliceHelperStart() 123280 var yyc1 bool 123281 _ = yyc1 123282 if yyl1 == 0 { 123283 if yyv1 == nil { 123284 yyv1 = []*ServerMember{} 123285 yyc1 = true 123286 } else if len(yyv1) != 0 { 123287 yyv1 = yyv1[:0] 123288 yyc1 = true 123289 } 123290 } else { 123291 yyhl1 := yyl1 > 0 123292 var yyrl1 int 123293 _ = yyrl1 123294 if yyhl1 { 123295 if yyl1 > cap(yyv1) { 123296 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123297 if yyrl1 <= cap(yyv1) { 123298 yyv1 = yyv1[:yyrl1] 123299 } else { 123300 yyv1 = make([]*ServerMember, yyrl1) 123301 } 123302 yyc1 = true 123303 } else if yyl1 != len(yyv1) { 123304 yyv1 = yyv1[:yyl1] 123305 yyc1 = true 123306 } 123307 } 123308 var yyj1 int 123309 // var yydn1 bool 123310 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 123311 if yyj1 == 0 && yyv1 == nil { 123312 if yyhl1 { 123313 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123314 } else { 123315 yyrl1 = 8 123316 } 123317 yyv1 = make([]*ServerMember, yyrl1) 123318 yyc1 = true 123319 } 123320 yyh1.ElemContainerState(yyj1) 123321 123322 var yydb1 bool 123323 if yyj1 >= len(yyv1) { 123324 yyv1 = append(yyv1, nil) 123325 yyc1 = true 123326 123327 } 123328 if yydb1 { 123329 z.DecSwallow() 123330 } else { 123331 if r.TryDecodeAsNil() { 123332 yyv1[yyj1] = nil 123333 } else { 123334 if yyv1[yyj1] == nil { 123335 yyv1[yyj1] = new(ServerMember) 123336 } 123337 yyv1[yyj1].CodecDecodeSelf(d) 123338 } 123339 123340 } 123341 123342 } 123343 if yyj1 < len(yyv1) { 123344 yyv1 = yyv1[:yyj1] 123345 yyc1 = true 123346 } else if yyj1 == 0 && yyv1 == nil { 123347 yyv1 = make([]*ServerMember, 0) 123348 yyc1 = true 123349 } 123350 } 123351 yyh1.End() 123352 if yyc1 { 123353 *v = yyv1 123354 } 123355 } 123356 123357 func (x codecSelfer100) encnet_IP(v net.IP, e *codec1978.Encoder) { 123358 var h codecSelfer100 123359 z, r := codec1978.GenHelperEncoder(e) 123360 _, _, _ = h, z, r 123361 r.EncodeStringBytesRaw([]byte(v)) 123362 } 123363 123364 func (x codecSelfer100) decnet_IP(v *net.IP, d *codec1978.Decoder) { 123365 var h codecSelfer100 123366 z, r := codec1978.GenHelperDecoder(d) 123367 _, _, _ = h, z, r 123368 *v = r.DecodeBytes(*((*[]byte)(v)), false) 123369 } 123370 123371 func (x codecSelfer100) encSlicePtrtoVaultAccessor(v []*VaultAccessor, e *codec1978.Encoder) { 123372 var h codecSelfer100 123373 z, r := codec1978.GenHelperEncoder(e) 123374 _, _, _ = h, z, r 123375 r.WriteArrayStart(len(v)) 123376 for _, yyv1 := range v { 123377 r.WriteArrayElem() 123378 if yyv1 == nil { 123379 r.EncodeNil() 123380 } else { 123381 yyv1.CodecEncodeSelf(e) 123382 } 123383 } 123384 r.WriteArrayEnd() 123385 } 123386 123387 func (x codecSelfer100) decSlicePtrtoVaultAccessor(v *[]*VaultAccessor, d *codec1978.Decoder) { 123388 var h codecSelfer100 123389 z, r := codec1978.GenHelperDecoder(d) 123390 _, _, _ = h, z, r 123391 123392 yyv1 := *v 123393 yyh1, yyl1 := z.DecSliceHelperStart() 123394 var yyc1 bool 123395 _ = yyc1 123396 if yyl1 == 0 { 123397 if yyv1 == nil { 123398 yyv1 = []*VaultAccessor{} 123399 yyc1 = true 123400 } else if len(yyv1) != 0 { 123401 yyv1 = yyv1[:0] 123402 yyc1 = true 123403 } 123404 } else { 123405 yyhl1 := yyl1 > 0 123406 var yyrl1 int 123407 _ = yyrl1 123408 if yyhl1 { 123409 if yyl1 > cap(yyv1) { 123410 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123411 if yyrl1 <= cap(yyv1) { 123412 yyv1 = yyv1[:yyrl1] 123413 } else { 123414 yyv1 = make([]*VaultAccessor, yyrl1) 123415 } 123416 yyc1 = true 123417 } else if yyl1 != len(yyv1) { 123418 yyv1 = yyv1[:yyl1] 123419 yyc1 = true 123420 } 123421 } 123422 var yyj1 int 123423 // var yydn1 bool 123424 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 123425 if yyj1 == 0 && yyv1 == nil { 123426 if yyhl1 { 123427 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123428 } else { 123429 yyrl1 = 8 123430 } 123431 yyv1 = make([]*VaultAccessor, yyrl1) 123432 yyc1 = true 123433 } 123434 yyh1.ElemContainerState(yyj1) 123435 123436 var yydb1 bool 123437 if yyj1 >= len(yyv1) { 123438 yyv1 = append(yyv1, nil) 123439 yyc1 = true 123440 123441 } 123442 if yydb1 { 123443 z.DecSwallow() 123444 } else { 123445 if r.TryDecodeAsNil() { 123446 yyv1[yyj1] = nil 123447 } else { 123448 if yyv1[yyj1] == nil { 123449 yyv1[yyj1] = new(VaultAccessor) 123450 } 123451 yyv1[yyj1].CodecDecodeSelf(d) 123452 } 123453 123454 } 123455 123456 } 123457 if yyj1 < len(yyv1) { 123458 yyv1 = yyv1[:yyj1] 123459 yyc1 = true 123460 } else if yyj1 == 0 && yyv1 == nil { 123461 yyv1 = make([]*VaultAccessor, 0) 123462 yyc1 = true 123463 } 123464 } 123465 yyh1.End() 123466 if yyc1 { 123467 *v = yyv1 123468 } 123469 } 123470 123471 func (x codecSelfer100) encSlicePtrtoScalingPolicyListStub(v []*ScalingPolicyListStub, e *codec1978.Encoder) { 123472 var h codecSelfer100 123473 z, r := codec1978.GenHelperEncoder(e) 123474 _, _, _ = h, z, r 123475 r.WriteArrayStart(len(v)) 123476 for _, yyv1 := range v { 123477 r.WriteArrayElem() 123478 if yyv1 == nil { 123479 r.EncodeNil() 123480 } else { 123481 yyv1.CodecEncodeSelf(e) 123482 } 123483 } 123484 r.WriteArrayEnd() 123485 } 123486 123487 func (x codecSelfer100) decSlicePtrtoScalingPolicyListStub(v *[]*ScalingPolicyListStub, d *codec1978.Decoder) { 123488 var h codecSelfer100 123489 z, r := codec1978.GenHelperDecoder(d) 123490 _, _, _ = h, z, r 123491 123492 yyv1 := *v 123493 yyh1, yyl1 := z.DecSliceHelperStart() 123494 var yyc1 bool 123495 _ = yyc1 123496 if yyl1 == 0 { 123497 if yyv1 == nil { 123498 yyv1 = []*ScalingPolicyListStub{} 123499 yyc1 = true 123500 } else if len(yyv1) != 0 { 123501 yyv1 = yyv1[:0] 123502 yyc1 = true 123503 } 123504 } else { 123505 yyhl1 := yyl1 > 0 123506 var yyrl1 int 123507 _ = yyrl1 123508 if yyhl1 { 123509 if yyl1 > cap(yyv1) { 123510 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123511 if yyrl1 <= cap(yyv1) { 123512 yyv1 = yyv1[:yyrl1] 123513 } else { 123514 yyv1 = make([]*ScalingPolicyListStub, yyrl1) 123515 } 123516 yyc1 = true 123517 } else if yyl1 != len(yyv1) { 123518 yyv1 = yyv1[:yyl1] 123519 yyc1 = true 123520 } 123521 } 123522 var yyj1 int 123523 // var yydn1 bool 123524 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 123525 if yyj1 == 0 && yyv1 == nil { 123526 if yyhl1 { 123527 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123528 } else { 123529 yyrl1 = 8 123530 } 123531 yyv1 = make([]*ScalingPolicyListStub, yyrl1) 123532 yyc1 = true 123533 } 123534 yyh1.ElemContainerState(yyj1) 123535 123536 var yydb1 bool 123537 if yyj1 >= len(yyv1) { 123538 yyv1 = append(yyv1, nil) 123539 yyc1 = true 123540 123541 } 123542 if yydb1 { 123543 z.DecSwallow() 123544 } else { 123545 if r.TryDecodeAsNil() { 123546 yyv1[yyj1] = nil 123547 } else { 123548 if yyv1[yyj1] == nil { 123549 yyv1[yyj1] = new(ScalingPolicyListStub) 123550 } 123551 yyv1[yyj1].CodecDecodeSelf(d) 123552 } 123553 123554 } 123555 123556 } 123557 if yyj1 < len(yyv1) { 123558 yyv1 = yyv1[:yyj1] 123559 yyc1 = true 123560 } else if yyj1 == 0 && yyv1 == nil { 123561 yyv1 = make([]*ScalingPolicyListStub, 0) 123562 yyc1 = true 123563 } 123564 } 123565 yyh1.End() 123566 if yyc1 { 123567 *v = yyv1 123568 } 123569 } 123570 123571 func (x codecSelfer100) encMapNamespacedIDstring(v map[NamespacedID]string, e *codec1978.Encoder) { 123572 var h codecSelfer100 123573 z, r := codec1978.GenHelperEncoder(e) 123574 _, _, _ = h, z, r 123575 r.WriteMapStart(len(v)) 123576 for yyk1, yyv1 := range v { 123577 r.WriteMapElemKey() 123578 yy2 := &yyk1 123579 yy2.CodecEncodeSelf(e) 123580 r.WriteMapElemValue() 123581 if false { 123582 } else { 123583 if z.EncBasicHandle().StringToRaw { 123584 r.EncodeStringBytesRaw(z.BytesView(string(yyv1))) 123585 } else { 123586 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyv1)) 123587 } 123588 } 123589 } 123590 r.WriteMapEnd() 123591 } 123592 123593 func (x codecSelfer100) decMapNamespacedIDstring(v *map[NamespacedID]string, d *codec1978.Decoder) { 123594 var h codecSelfer100 123595 z, r := codec1978.GenHelperDecoder(d) 123596 _, _, _ = h, z, r 123597 123598 yyv1 := *v 123599 yyl1 := r.ReadMapStart() 123600 yybh1 := z.DecBasicHandle() 123601 if yyv1 == nil { 123602 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 48) 123603 yyv1 = make(map[NamespacedID]string, yyrl1) 123604 *v = yyv1 123605 } 123606 var yymk1 NamespacedID 123607 var yymv1 string 123608 var yymg1, yymdn1 bool 123609 if yybh1.MapValueReset { 123610 } 123611 if yyl1 != 0 { 123612 yyhl1 := yyl1 > 0 123613 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 123614 r.ReadMapElemKey() 123615 if r.TryDecodeAsNil() { 123616 yymk1 = NamespacedID{} 123617 } else { 123618 yymk1.CodecDecodeSelf(d) 123619 } 123620 123621 if yymg1 { 123622 yymv1 = yyv1[yymk1] 123623 } 123624 r.ReadMapElemValue() 123625 yymdn1 = false 123626 if r.TryDecodeAsNil() { 123627 yymdn1 = true 123628 } else { 123629 yymv1 = (string)(r.DecodeString()) 123630 } 123631 123632 if yymdn1 { 123633 if yybh1.DeleteOnNilMapValue { 123634 delete(yyv1, yymk1) 123635 } else { 123636 yyv1[yymk1] = "" 123637 } 123638 } else if yyv1 != nil { 123639 yyv1[yymk1] = yymv1 123640 } 123641 } 123642 } // else len==0: TODO: Should we clear map entries? 123643 r.ReadMapEnd() 123644 } 123645 123646 func (x codecSelfer100) encSlicePtrtoNodeServerInfo(v []*NodeServerInfo, e *codec1978.Encoder) { 123647 var h codecSelfer100 123648 z, r := codec1978.GenHelperEncoder(e) 123649 _, _, _ = h, z, r 123650 r.WriteArrayStart(len(v)) 123651 for _, yyv1 := range v { 123652 r.WriteArrayElem() 123653 if yyv1 == nil { 123654 r.EncodeNil() 123655 } else { 123656 yyv1.CodecEncodeSelf(e) 123657 } 123658 } 123659 r.WriteArrayEnd() 123660 } 123661 123662 func (x codecSelfer100) decSlicePtrtoNodeServerInfo(v *[]*NodeServerInfo, d *codec1978.Decoder) { 123663 var h codecSelfer100 123664 z, r := codec1978.GenHelperDecoder(d) 123665 _, _, _ = h, z, r 123666 123667 yyv1 := *v 123668 yyh1, yyl1 := z.DecSliceHelperStart() 123669 var yyc1 bool 123670 _ = yyc1 123671 if yyl1 == 0 { 123672 if yyv1 == nil { 123673 yyv1 = []*NodeServerInfo{} 123674 yyc1 = true 123675 } else if len(yyv1) != 0 { 123676 yyv1 = yyv1[:0] 123677 yyc1 = true 123678 } 123679 } else { 123680 yyhl1 := yyl1 > 0 123681 var yyrl1 int 123682 _ = yyrl1 123683 if yyhl1 { 123684 if yyl1 > cap(yyv1) { 123685 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123686 if yyrl1 <= cap(yyv1) { 123687 yyv1 = yyv1[:yyrl1] 123688 } else { 123689 yyv1 = make([]*NodeServerInfo, yyrl1) 123690 } 123691 yyc1 = true 123692 } else if yyl1 != len(yyv1) { 123693 yyv1 = yyv1[:yyl1] 123694 yyc1 = true 123695 } 123696 } 123697 var yyj1 int 123698 // var yydn1 bool 123699 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 123700 if yyj1 == 0 && yyv1 == nil { 123701 if yyhl1 { 123702 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123703 } else { 123704 yyrl1 = 8 123705 } 123706 yyv1 = make([]*NodeServerInfo, yyrl1) 123707 yyc1 = true 123708 } 123709 yyh1.ElemContainerState(yyj1) 123710 123711 var yydb1 bool 123712 if yyj1 >= len(yyv1) { 123713 yyv1 = append(yyv1, nil) 123714 yyc1 = true 123715 123716 } 123717 if yydb1 { 123718 z.DecSwallow() 123719 } else { 123720 if r.TryDecodeAsNil() { 123721 yyv1[yyj1] = nil 123722 } else { 123723 if yyv1[yyj1] == nil { 123724 yyv1[yyj1] = new(NodeServerInfo) 123725 } 123726 yyv1[yyj1].CodecDecodeSelf(d) 123727 } 123728 123729 } 123730 123731 } 123732 if yyj1 < len(yyv1) { 123733 yyv1 = yyv1[:yyj1] 123734 yyc1 = true 123735 } else if yyj1 == 0 && yyv1 == nil { 123736 yyv1 = make([]*NodeServerInfo, 0) 123737 yyc1 = true 123738 } 123739 } 123740 yyh1.End() 123741 if yyc1 { 123742 *v = yyv1 123743 } 123744 } 123745 123746 func (x codecSelfer100) encSlicePtrtoNodeListStub(v []*NodeListStub, e *codec1978.Encoder) { 123747 var h codecSelfer100 123748 z, r := codec1978.GenHelperEncoder(e) 123749 _, _, _ = h, z, r 123750 r.WriteArrayStart(len(v)) 123751 for _, yyv1 := range v { 123752 r.WriteArrayElem() 123753 if yyv1 == nil { 123754 r.EncodeNil() 123755 } else { 123756 yyv1.CodecEncodeSelf(e) 123757 } 123758 } 123759 r.WriteArrayEnd() 123760 } 123761 123762 func (x codecSelfer100) decSlicePtrtoNodeListStub(v *[]*NodeListStub, d *codec1978.Decoder) { 123763 var h codecSelfer100 123764 z, r := codec1978.GenHelperDecoder(d) 123765 _, _, _ = h, z, r 123766 123767 yyv1 := *v 123768 yyh1, yyl1 := z.DecSliceHelperStart() 123769 var yyc1 bool 123770 _ = yyc1 123771 if yyl1 == 0 { 123772 if yyv1 == nil { 123773 yyv1 = []*NodeListStub{} 123774 yyc1 = true 123775 } else if len(yyv1) != 0 { 123776 yyv1 = yyv1[:0] 123777 yyc1 = true 123778 } 123779 } else { 123780 yyhl1 := yyl1 > 0 123781 var yyrl1 int 123782 _ = yyrl1 123783 if yyhl1 { 123784 if yyl1 > cap(yyv1) { 123785 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123786 if yyrl1 <= cap(yyv1) { 123787 yyv1 = yyv1[:yyrl1] 123788 } else { 123789 yyv1 = make([]*NodeListStub, yyrl1) 123790 } 123791 yyc1 = true 123792 } else if yyl1 != len(yyv1) { 123793 yyv1 = yyv1[:yyl1] 123794 yyc1 = true 123795 } 123796 } 123797 var yyj1 int 123798 // var yydn1 bool 123799 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 123800 if yyj1 == 0 && yyv1 == nil { 123801 if yyhl1 { 123802 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123803 } else { 123804 yyrl1 = 8 123805 } 123806 yyv1 = make([]*NodeListStub, yyrl1) 123807 yyc1 = true 123808 } 123809 yyh1.ElemContainerState(yyj1) 123810 123811 var yydb1 bool 123812 if yyj1 >= len(yyv1) { 123813 yyv1 = append(yyv1, nil) 123814 yyc1 = true 123815 123816 } 123817 if yydb1 { 123818 z.DecSwallow() 123819 } else { 123820 if r.TryDecodeAsNil() { 123821 yyv1[yyj1] = nil 123822 } else { 123823 if yyv1[yyj1] == nil { 123824 yyv1[yyj1] = new(NodeListStub) 123825 } 123826 yyv1[yyj1].CodecDecodeSelf(d) 123827 } 123828 123829 } 123830 123831 } 123832 if yyj1 < len(yyv1) { 123833 yyv1 = yyv1[:yyj1] 123834 yyc1 = true 123835 } else if yyj1 == 0 && yyv1 == nil { 123836 yyv1 = make([]*NodeListStub, 0) 123837 yyc1 = true 123838 } 123839 } 123840 yyh1.End() 123841 if yyc1 { 123842 *v = yyv1 123843 } 123844 } 123845 123846 func (x codecSelfer100) encMapstringPtrtoTaskGroupScaleStatus(v map[string]*TaskGroupScaleStatus, e *codec1978.Encoder) { 123847 var h codecSelfer100 123848 z, r := codec1978.GenHelperEncoder(e) 123849 _, _, _ = h, z, r 123850 r.WriteMapStart(len(v)) 123851 for yyk1, yyv1 := range v { 123852 r.WriteMapElemKey() 123853 if false { 123854 } else { 123855 if z.EncBasicHandle().StringToRaw { 123856 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 123857 } else { 123858 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 123859 } 123860 } 123861 r.WriteMapElemValue() 123862 if yyv1 == nil { 123863 r.EncodeNil() 123864 } else { 123865 yyv1.CodecEncodeSelf(e) 123866 } 123867 } 123868 r.WriteMapEnd() 123869 } 123870 123871 func (x codecSelfer100) decMapstringPtrtoTaskGroupScaleStatus(v *map[string]*TaskGroupScaleStatus, d *codec1978.Decoder) { 123872 var h codecSelfer100 123873 z, r := codec1978.GenHelperDecoder(d) 123874 _, _, _ = h, z, r 123875 123876 yyv1 := *v 123877 yyl1 := r.ReadMapStart() 123878 yybh1 := z.DecBasicHandle() 123879 if yyv1 == nil { 123880 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 123881 yyv1 = make(map[string]*TaskGroupScaleStatus, yyrl1) 123882 *v = yyv1 123883 } 123884 var yymk1 string 123885 var yymv1 *TaskGroupScaleStatus 123886 var yymg1, yymdn1, yyms1, yymok1 bool 123887 if yybh1.MapValueReset { 123888 yymg1 = true 123889 } 123890 if yyl1 != 0 { 123891 yyhl1 := yyl1 > 0 123892 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 123893 r.ReadMapElemKey() 123894 if r.TryDecodeAsNil() { 123895 yymk1 = "" 123896 } else { 123897 yymk1 = (string)(r.DecodeString()) 123898 } 123899 123900 yyms1 = true 123901 if yymg1 { 123902 yymv1, yymok1 = yyv1[yymk1] 123903 if yymok1 { 123904 yyms1 = false 123905 } 123906 } else { 123907 yymv1 = nil 123908 } 123909 r.ReadMapElemValue() 123910 yymdn1 = false 123911 if r.TryDecodeAsNil() { 123912 yymdn1 = true 123913 } else { 123914 if yymv1 == nil { 123915 yymv1 = new(TaskGroupScaleStatus) 123916 } 123917 yymv1.CodecDecodeSelf(d) 123918 } 123919 123920 if yymdn1 { 123921 if yybh1.DeleteOnNilMapValue { 123922 delete(yyv1, yymk1) 123923 } else { 123924 yyv1[yymk1] = nil 123925 } 123926 } else if yyms1 && yyv1 != nil { 123927 yyv1[yymk1] = yymv1 123928 } 123929 } 123930 } // else len==0: TODO: Should we clear map entries? 123931 r.ReadMapEnd() 123932 } 123933 123934 func (x codecSelfer100) encSlicePtrtoScalingEvent(v []*ScalingEvent, e *codec1978.Encoder) { 123935 var h codecSelfer100 123936 z, r := codec1978.GenHelperEncoder(e) 123937 _, _, _ = h, z, r 123938 r.WriteArrayStart(len(v)) 123939 for _, yyv1 := range v { 123940 r.WriteArrayElem() 123941 if yyv1 == nil { 123942 r.EncodeNil() 123943 } else { 123944 yyv1.CodecEncodeSelf(e) 123945 } 123946 } 123947 r.WriteArrayEnd() 123948 } 123949 123950 func (x codecSelfer100) decSlicePtrtoScalingEvent(v *[]*ScalingEvent, d *codec1978.Decoder) { 123951 var h codecSelfer100 123952 z, r := codec1978.GenHelperDecoder(d) 123953 _, _, _ = h, z, r 123954 123955 yyv1 := *v 123956 yyh1, yyl1 := z.DecSliceHelperStart() 123957 var yyc1 bool 123958 _ = yyc1 123959 if yyl1 == 0 { 123960 if yyv1 == nil { 123961 yyv1 = []*ScalingEvent{} 123962 yyc1 = true 123963 } else if len(yyv1) != 0 { 123964 yyv1 = yyv1[:0] 123965 yyc1 = true 123966 } 123967 } else { 123968 yyhl1 := yyl1 > 0 123969 var yyrl1 int 123970 _ = yyrl1 123971 if yyhl1 { 123972 if yyl1 > cap(yyv1) { 123973 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123974 if yyrl1 <= cap(yyv1) { 123975 yyv1 = yyv1[:yyrl1] 123976 } else { 123977 yyv1 = make([]*ScalingEvent, yyrl1) 123978 } 123979 yyc1 = true 123980 } else if yyl1 != len(yyv1) { 123981 yyv1 = yyv1[:yyl1] 123982 yyc1 = true 123983 } 123984 } 123985 var yyj1 int 123986 // var yydn1 bool 123987 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 123988 if yyj1 == 0 && yyv1 == nil { 123989 if yyhl1 { 123990 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123991 } else { 123992 yyrl1 = 8 123993 } 123994 yyv1 = make([]*ScalingEvent, yyrl1) 123995 yyc1 = true 123996 } 123997 yyh1.ElemContainerState(yyj1) 123998 123999 var yydb1 bool 124000 if yyj1 >= len(yyv1) { 124001 yyv1 = append(yyv1, nil) 124002 yyc1 = true 124003 124004 } 124005 if yydb1 { 124006 z.DecSwallow() 124007 } else { 124008 if r.TryDecodeAsNil() { 124009 yyv1[yyj1] = nil 124010 } else { 124011 if yyv1[yyj1] == nil { 124012 yyv1[yyj1] = new(ScalingEvent) 124013 } 124014 yyv1[yyj1].CodecDecodeSelf(d) 124015 } 124016 124017 } 124018 124019 } 124020 if yyj1 < len(yyv1) { 124021 yyv1 = yyv1[:yyj1] 124022 yyc1 = true 124023 } else if yyj1 == 0 && yyv1 == nil { 124024 yyv1 = make([]*ScalingEvent, 0) 124025 yyc1 = true 124026 } 124027 } 124028 yyh1.End() 124029 if yyc1 { 124030 *v = yyv1 124031 } 124032 } 124033 124034 func (x codecSelfer100) encSlicePtrtoJobListStub(v []*JobListStub, e *codec1978.Encoder) { 124035 var h codecSelfer100 124036 z, r := codec1978.GenHelperEncoder(e) 124037 _, _, _ = h, z, r 124038 r.WriteArrayStart(len(v)) 124039 for _, yyv1 := range v { 124040 r.WriteArrayElem() 124041 if yyv1 == nil { 124042 r.EncodeNil() 124043 } else { 124044 yyv1.CodecEncodeSelf(e) 124045 } 124046 } 124047 r.WriteArrayEnd() 124048 } 124049 124050 func (x codecSelfer100) decSlicePtrtoJobListStub(v *[]*JobListStub, d *codec1978.Decoder) { 124051 var h codecSelfer100 124052 z, r := codec1978.GenHelperDecoder(d) 124053 _, _, _ = h, z, r 124054 124055 yyv1 := *v 124056 yyh1, yyl1 := z.DecSliceHelperStart() 124057 var yyc1 bool 124058 _ = yyc1 124059 if yyl1 == 0 { 124060 if yyv1 == nil { 124061 yyv1 = []*JobListStub{} 124062 yyc1 = true 124063 } else if len(yyv1) != 0 { 124064 yyv1 = yyv1[:0] 124065 yyc1 = true 124066 } 124067 } else { 124068 yyhl1 := yyl1 > 0 124069 var yyrl1 int 124070 _ = yyrl1 124071 if yyhl1 { 124072 if yyl1 > cap(yyv1) { 124073 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 124074 if yyrl1 <= cap(yyv1) { 124075 yyv1 = yyv1[:yyrl1] 124076 } else { 124077 yyv1 = make([]*JobListStub, yyrl1) 124078 } 124079 yyc1 = true 124080 } else if yyl1 != len(yyv1) { 124081 yyv1 = yyv1[:yyl1] 124082 yyc1 = true 124083 } 124084 } 124085 var yyj1 int 124086 // var yydn1 bool 124087 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 124088 if yyj1 == 0 && yyv1 == nil { 124089 if yyhl1 { 124090 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 124091 } else { 124092 yyrl1 = 8 124093 } 124094 yyv1 = make([]*JobListStub, yyrl1) 124095 yyc1 = true 124096 } 124097 yyh1.ElemContainerState(yyj1) 124098 124099 var yydb1 bool 124100 if yyj1 >= len(yyv1) { 124101 yyv1 = append(yyv1, nil) 124102 yyc1 = true 124103 124104 } 124105 if yydb1 { 124106 z.DecSwallow() 124107 } else { 124108 if r.TryDecodeAsNil() { 124109 yyv1[yyj1] = nil 124110 } else { 124111 if yyv1[yyj1] == nil { 124112 yyv1[yyj1] = new(JobListStub) 124113 } 124114 yyv1[yyj1].CodecDecodeSelf(d) 124115 } 124116 124117 } 124118 124119 } 124120 if yyj1 < len(yyv1) { 124121 yyv1 = yyv1[:yyj1] 124122 yyc1 = true 124123 } else if yyj1 == 0 && yyv1 == nil { 124124 yyv1 = make([]*JobListStub, 0) 124125 yyc1 = true 124126 } 124127 } 124128 yyh1.End() 124129 if yyc1 { 124130 *v = yyv1 124131 } 124132 } 124133 124134 func (x codecSelfer100) encSlicePtrtoJob(v []*Job, e *codec1978.Encoder) { 124135 var h codecSelfer100 124136 z, r := codec1978.GenHelperEncoder(e) 124137 _, _, _ = h, z, r 124138 r.WriteArrayStart(len(v)) 124139 for _, yyv1 := range v { 124140 r.WriteArrayElem() 124141 if yyv1 == nil { 124142 r.EncodeNil() 124143 } else { 124144 yyv1.CodecEncodeSelf(e) 124145 } 124146 } 124147 r.WriteArrayEnd() 124148 } 124149 124150 func (x codecSelfer100) decSlicePtrtoJob(v *[]*Job, d *codec1978.Decoder) { 124151 var h codecSelfer100 124152 z, r := codec1978.GenHelperDecoder(d) 124153 _, _, _ = h, z, r 124154 124155 yyv1 := *v 124156 yyh1, yyl1 := z.DecSliceHelperStart() 124157 var yyc1 bool 124158 _ = yyc1 124159 if yyl1 == 0 { 124160 if yyv1 == nil { 124161 yyv1 = []*Job{} 124162 yyc1 = true 124163 } else if len(yyv1) != 0 { 124164 yyv1 = yyv1[:0] 124165 yyc1 = true 124166 } 124167 } else { 124168 yyhl1 := yyl1 > 0 124169 var yyrl1 int 124170 _ = yyrl1 124171 if yyhl1 { 124172 if yyl1 > cap(yyv1) { 124173 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 124174 if yyrl1 <= cap(yyv1) { 124175 yyv1 = yyv1[:yyrl1] 124176 } else { 124177 yyv1 = make([]*Job, yyrl1) 124178 } 124179 yyc1 = true 124180 } else if yyl1 != len(yyv1) { 124181 yyv1 = yyv1[:yyl1] 124182 yyc1 = true 124183 } 124184 } 124185 var yyj1 int 124186 // var yydn1 bool 124187 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 124188 if yyj1 == 0 && yyv1 == nil { 124189 if yyhl1 { 124190 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 124191 } else { 124192 yyrl1 = 8 124193 } 124194 yyv1 = make([]*Job, yyrl1) 124195 yyc1 = true 124196 } 124197 yyh1.ElemContainerState(yyj1) 124198 124199 var yydb1 bool 124200 if yyj1 >= len(yyv1) { 124201 yyv1 = append(yyv1, nil) 124202 yyc1 = true 124203 124204 } 124205 if yydb1 { 124206 z.DecSwallow() 124207 } else { 124208 if r.TryDecodeAsNil() { 124209 yyv1[yyj1] = nil 124210 } else { 124211 if yyv1[yyj1] == nil { 124212 yyv1[yyj1] = new(Job) 124213 } 124214 yyv1[yyj1].CodecDecodeSelf(d) 124215 } 124216 124217 } 124218 124219 } 124220 if yyj1 < len(yyv1) { 124221 yyv1 = yyv1[:yyj1] 124222 yyc1 = true 124223 } else if yyj1 == 0 && yyv1 == nil { 124224 yyv1 = make([]*Job, 0) 124225 yyc1 = true 124226 } 124227 } 124228 yyh1.End() 124229 if yyc1 { 124230 *v = yyv1 124231 } 124232 } 124233 124234 func (x codecSelfer100) encSlicePtrtoJobDiff(v []*JobDiff, e *codec1978.Encoder) { 124235 var h codecSelfer100 124236 z, r := codec1978.GenHelperEncoder(e) 124237 _, _, _ = h, z, r 124238 r.WriteArrayStart(len(v)) 124239 for _, yyv1 := range v { 124240 r.WriteArrayElem() 124241 if yyv1 == nil { 124242 r.EncodeNil() 124243 } else { 124244 yyv1.CodecEncodeSelf(e) 124245 } 124246 } 124247 r.WriteArrayEnd() 124248 } 124249 124250 func (x codecSelfer100) decSlicePtrtoJobDiff(v *[]*JobDiff, d *codec1978.Decoder) { 124251 var h codecSelfer100 124252 z, r := codec1978.GenHelperDecoder(d) 124253 _, _, _ = h, z, r 124254 124255 yyv1 := *v 124256 yyh1, yyl1 := z.DecSliceHelperStart() 124257 var yyc1 bool 124258 _ = yyc1 124259 if yyl1 == 0 { 124260 if yyv1 == nil { 124261 yyv1 = []*JobDiff{} 124262 yyc1 = true 124263 } else if len(yyv1) != 0 { 124264 yyv1 = yyv1[:0] 124265 yyc1 = true 124266 } 124267 } else { 124268 yyhl1 := yyl1 > 0 124269 var yyrl1 int 124270 _ = yyrl1 124271 if yyhl1 { 124272 if yyl1 > cap(yyv1) { 124273 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 124274 if yyrl1 <= cap(yyv1) { 124275 yyv1 = yyv1[:yyrl1] 124276 } else { 124277 yyv1 = make([]*JobDiff, yyrl1) 124278 } 124279 yyc1 = true 124280 } else if yyl1 != len(yyv1) { 124281 yyv1 = yyv1[:yyl1] 124282 yyc1 = true 124283 } 124284 } 124285 var yyj1 int 124286 // var yydn1 bool 124287 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 124288 if yyj1 == 0 && yyv1 == nil { 124289 if yyhl1 { 124290 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 124291 } else { 124292 yyrl1 = 8 124293 } 124294 yyv1 = make([]*JobDiff, yyrl1) 124295 yyc1 = true 124296 } 124297 yyh1.ElemContainerState(yyj1) 124298 124299 var yydb1 bool 124300 if yyj1 >= len(yyv1) { 124301 yyv1 = append(yyv1, nil) 124302 yyc1 = true 124303 124304 } 124305 if yydb1 { 124306 z.DecSwallow() 124307 } else { 124308 if r.TryDecodeAsNil() { 124309 yyv1[yyj1] = nil 124310 } else { 124311 if yyv1[yyj1] == nil { 124312 yyv1[yyj1] = new(JobDiff) 124313 } 124314 yyv1[yyj1].CodecDecodeSelf(d) 124315 } 124316 124317 } 124318 124319 } 124320 if yyj1 < len(yyv1) { 124321 yyv1 = yyv1[:yyj1] 124322 yyc1 = true 124323 } else if yyj1 == 0 && yyv1 == nil { 124324 yyv1 = make([]*JobDiff, 0) 124325 yyc1 = true 124326 } 124327 } 124328 yyh1.End() 124329 if yyc1 { 124330 *v = yyv1 124331 } 124332 } 124333 124334 func (x codecSelfer100) encMapstringPtrtoAllocMetric(v map[string]*AllocMetric, e *codec1978.Encoder) { 124335 var h codecSelfer100 124336 z, r := codec1978.GenHelperEncoder(e) 124337 _, _, _ = h, z, r 124338 r.WriteMapStart(len(v)) 124339 for yyk1, yyv1 := range v { 124340 r.WriteMapElemKey() 124341 if false { 124342 } else { 124343 if z.EncBasicHandle().StringToRaw { 124344 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 124345 } else { 124346 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 124347 } 124348 } 124349 r.WriteMapElemValue() 124350 if yyv1 == nil { 124351 r.EncodeNil() 124352 } else { 124353 yyv1.CodecEncodeSelf(e) 124354 } 124355 } 124356 r.WriteMapEnd() 124357 } 124358 124359 func (x codecSelfer100) decMapstringPtrtoAllocMetric(v *map[string]*AllocMetric, d *codec1978.Decoder) { 124360 var h codecSelfer100 124361 z, r := codec1978.GenHelperDecoder(d) 124362 _, _, _ = h, z, r 124363 124364 yyv1 := *v 124365 yyl1 := r.ReadMapStart() 124366 yybh1 := z.DecBasicHandle() 124367 if yyv1 == nil { 124368 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 124369 yyv1 = make(map[string]*AllocMetric, yyrl1) 124370 *v = yyv1 124371 } 124372 var yymk1 string 124373 var yymv1 *AllocMetric 124374 var yymg1, yymdn1, yyms1, yymok1 bool 124375 if yybh1.MapValueReset { 124376 yymg1 = true 124377 } 124378 if yyl1 != 0 { 124379 yyhl1 := yyl1 > 0 124380 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 124381 r.ReadMapElemKey() 124382 if r.TryDecodeAsNil() { 124383 yymk1 = "" 124384 } else { 124385 yymk1 = (string)(r.DecodeString()) 124386 } 124387 124388 yyms1 = true 124389 if yymg1 { 124390 yymv1, yymok1 = yyv1[yymk1] 124391 if yymok1 { 124392 yyms1 = false 124393 } 124394 } else { 124395 yymv1 = nil 124396 } 124397 r.ReadMapElemValue() 124398 yymdn1 = false 124399 if r.TryDecodeAsNil() { 124400 yymdn1 = true 124401 } else { 124402 if yymv1 == nil { 124403 yymv1 = new(AllocMetric) 124404 } 124405 yymv1.CodecDecodeSelf(d) 124406 } 124407 124408 if yymdn1 { 124409 if yybh1.DeleteOnNilMapValue { 124410 delete(yyv1, yymk1) 124411 } else { 124412 yyv1[yymk1] = nil 124413 } 124414 } else if yyms1 && yyv1 != nil { 124415 yyv1[yymk1] = yymv1 124416 } 124417 } 124418 } // else len==0: TODO: Should we clear map entries? 124419 r.ReadMapEnd() 124420 } 124421 124422 func (x codecSelfer100) encSlicePtrtoDeployment(v []*Deployment, e *codec1978.Encoder) { 124423 var h codecSelfer100 124424 z, r := codec1978.GenHelperEncoder(e) 124425 _, _, _ = h, z, r 124426 r.WriteArrayStart(len(v)) 124427 for _, yyv1 := range v { 124428 r.WriteArrayElem() 124429 if yyv1 == nil { 124430 r.EncodeNil() 124431 } else { 124432 yyv1.CodecEncodeSelf(e) 124433 } 124434 } 124435 r.WriteArrayEnd() 124436 } 124437 124438 func (x codecSelfer100) decSlicePtrtoDeployment(v *[]*Deployment, d *codec1978.Decoder) { 124439 var h codecSelfer100 124440 z, r := codec1978.GenHelperDecoder(d) 124441 _, _, _ = h, z, r 124442 124443 yyv1 := *v 124444 yyh1, yyl1 := z.DecSliceHelperStart() 124445 var yyc1 bool 124446 _ = yyc1 124447 if yyl1 == 0 { 124448 if yyv1 == nil { 124449 yyv1 = []*Deployment{} 124450 yyc1 = true 124451 } else if len(yyv1) != 0 { 124452 yyv1 = yyv1[:0] 124453 yyc1 = true 124454 } 124455 } else { 124456 yyhl1 := yyl1 > 0 124457 var yyrl1 int 124458 _ = yyrl1 124459 if yyhl1 { 124460 if yyl1 > cap(yyv1) { 124461 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 124462 if yyrl1 <= cap(yyv1) { 124463 yyv1 = yyv1[:yyrl1] 124464 } else { 124465 yyv1 = make([]*Deployment, yyrl1) 124466 } 124467 yyc1 = true 124468 } else if yyl1 != len(yyv1) { 124469 yyv1 = yyv1[:yyl1] 124470 yyc1 = true 124471 } 124472 } 124473 var yyj1 int 124474 // var yydn1 bool 124475 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 124476 if yyj1 == 0 && yyv1 == nil { 124477 if yyhl1 { 124478 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 124479 } else { 124480 yyrl1 = 8 124481 } 124482 yyv1 = make([]*Deployment, yyrl1) 124483 yyc1 = true 124484 } 124485 yyh1.ElemContainerState(yyj1) 124486 124487 var yydb1 bool 124488 if yyj1 >= len(yyv1) { 124489 yyv1 = append(yyv1, nil) 124490 yyc1 = true 124491 124492 } 124493 if yydb1 { 124494 z.DecSwallow() 124495 } else { 124496 if r.TryDecodeAsNil() { 124497 yyv1[yyj1] = nil 124498 } else { 124499 if yyv1[yyj1] == nil { 124500 yyv1[yyj1] = new(Deployment) 124501 } 124502 yyv1[yyj1].CodecDecodeSelf(d) 124503 } 124504 124505 } 124506 124507 } 124508 if yyj1 < len(yyv1) { 124509 yyv1 = yyv1[:yyj1] 124510 yyc1 = true 124511 } else if yyj1 == 0 && yyv1 == nil { 124512 yyv1 = make([]*Deployment, 0) 124513 yyc1 = true 124514 } 124515 } 124516 yyh1.End() 124517 if yyc1 { 124518 *v = yyv1 124519 } 124520 } 124521 124522 func (x codecSelfer100) encMapstringSlicePtrtoNodeEvent(v map[string][]*NodeEvent, e *codec1978.Encoder) { 124523 var h codecSelfer100 124524 z, r := codec1978.GenHelperEncoder(e) 124525 _, _, _ = h, z, r 124526 r.WriteMapStart(len(v)) 124527 for yyk1, yyv1 := range v { 124528 r.WriteMapElemKey() 124529 if false { 124530 } else { 124531 if z.EncBasicHandle().StringToRaw { 124532 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 124533 } else { 124534 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 124535 } 124536 } 124537 r.WriteMapElemValue() 124538 if yyv1 == nil { 124539 r.EncodeNil() 124540 } else { 124541 if false { 124542 } else { 124543 h.encSlicePtrtoNodeEvent(([]*NodeEvent)(yyv1), e) 124544 } 124545 } 124546 } 124547 r.WriteMapEnd() 124548 } 124549 124550 func (x codecSelfer100) decMapstringSlicePtrtoNodeEvent(v *map[string][]*NodeEvent, d *codec1978.Decoder) { 124551 var h codecSelfer100 124552 z, r := codec1978.GenHelperDecoder(d) 124553 _, _, _ = h, z, r 124554 124555 yyv1 := *v 124556 yyl1 := r.ReadMapStart() 124557 yybh1 := z.DecBasicHandle() 124558 if yyv1 == nil { 124559 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) 124560 yyv1 = make(map[string][]*NodeEvent, yyrl1) 124561 *v = yyv1 124562 } 124563 var yymk1 string 124564 var yymv1 []*NodeEvent 124565 var yymg1, yymdn1 bool 124566 if yybh1.MapValueReset { 124567 yymg1 = true 124568 } 124569 if yyl1 != 0 { 124570 yyhl1 := yyl1 > 0 124571 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 124572 r.ReadMapElemKey() 124573 if r.TryDecodeAsNil() { 124574 yymk1 = "" 124575 } else { 124576 yymk1 = (string)(r.DecodeString()) 124577 } 124578 124579 if yymg1 { 124580 yymv1 = yyv1[yymk1] 124581 } else { 124582 yymv1 = nil 124583 } 124584 r.ReadMapElemValue() 124585 yymdn1 = false 124586 if r.TryDecodeAsNil() { 124587 yymdn1 = true 124588 } else { 124589 if false { 124590 } else { 124591 h.decSlicePtrtoNodeEvent((*[]*NodeEvent)(&yymv1), d) 124592 } 124593 } 124594 124595 if yymdn1 { 124596 if yybh1.DeleteOnNilMapValue { 124597 delete(yyv1, yymk1) 124598 } else { 124599 yyv1[yymk1] = nil 124600 } 124601 } else if yyv1 != nil { 124602 yyv1[yymk1] = yymv1 124603 } 124604 } 124605 } // else len==0: TODO: Should we clear map entries? 124606 r.ReadMapEnd() 124607 } 124608 124609 func (x codecSelfer100) encSlicePtrtoNodeEvent(v []*NodeEvent, e *codec1978.Encoder) { 124610 var h codecSelfer100 124611 z, r := codec1978.GenHelperEncoder(e) 124612 _, _, _ = h, z, r 124613 r.WriteArrayStart(len(v)) 124614 for _, yyv1 := range v { 124615 r.WriteArrayElem() 124616 if yyv1 == nil { 124617 r.EncodeNil() 124618 } else { 124619 yyv1.CodecEncodeSelf(e) 124620 } 124621 } 124622 r.WriteArrayEnd() 124623 } 124624 124625 func (x codecSelfer100) decSlicePtrtoNodeEvent(v *[]*NodeEvent, d *codec1978.Decoder) { 124626 var h codecSelfer100 124627 z, r := codec1978.GenHelperDecoder(d) 124628 _, _, _ = h, z, r 124629 124630 yyv1 := *v 124631 yyh1, yyl1 := z.DecSliceHelperStart() 124632 var yyc1 bool 124633 _ = yyc1 124634 if yyl1 == 0 { 124635 if yyv1 == nil { 124636 yyv1 = []*NodeEvent{} 124637 yyc1 = true 124638 } else if len(yyv1) != 0 { 124639 yyv1 = yyv1[:0] 124640 yyc1 = true 124641 } 124642 } else { 124643 yyhl1 := yyl1 > 0 124644 var yyrl1 int 124645 _ = yyrl1 124646 if yyhl1 { 124647 if yyl1 > cap(yyv1) { 124648 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 124649 if yyrl1 <= cap(yyv1) { 124650 yyv1 = yyv1[:yyrl1] 124651 } else { 124652 yyv1 = make([]*NodeEvent, yyrl1) 124653 } 124654 yyc1 = true 124655 } else if yyl1 != len(yyv1) { 124656 yyv1 = yyv1[:yyl1] 124657 yyc1 = true 124658 } 124659 } 124660 var yyj1 int 124661 // var yydn1 bool 124662 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 124663 if yyj1 == 0 && yyv1 == nil { 124664 if yyhl1 { 124665 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 124666 } else { 124667 yyrl1 = 8 124668 } 124669 yyv1 = make([]*NodeEvent, yyrl1) 124670 yyc1 = true 124671 } 124672 yyh1.ElemContainerState(yyj1) 124673 124674 var yydb1 bool 124675 if yyj1 >= len(yyv1) { 124676 yyv1 = append(yyv1, nil) 124677 yyc1 = true 124678 124679 } 124680 if yydb1 { 124681 z.DecSwallow() 124682 } else { 124683 if r.TryDecodeAsNil() { 124684 yyv1[yyj1] = nil 124685 } else { 124686 if yyv1[yyj1] == nil { 124687 yyv1[yyj1] = new(NodeEvent) 124688 } 124689 yyv1[yyj1].CodecDecodeSelf(d) 124690 } 124691 124692 } 124693 124694 } 124695 if yyj1 < len(yyv1) { 124696 yyv1 = yyv1[:yyj1] 124697 yyc1 = true 124698 } else if yyj1 == 0 && yyv1 == nil { 124699 yyv1 = make([]*NodeEvent, 0) 124700 yyc1 = true 124701 } 124702 } 124703 yyh1.End() 124704 if yyc1 { 124705 *v = yyv1 124706 } 124707 } 124708 124709 func (x codecSelfer100) encMapstringPtrtoDriverInfo(v map[string]*DriverInfo, e *codec1978.Encoder) { 124710 var h codecSelfer100 124711 z, r := codec1978.GenHelperEncoder(e) 124712 _, _, _ = h, z, r 124713 r.WriteMapStart(len(v)) 124714 for yyk1, yyv1 := range v { 124715 r.WriteMapElemKey() 124716 if false { 124717 } else { 124718 if z.EncBasicHandle().StringToRaw { 124719 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 124720 } else { 124721 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 124722 } 124723 } 124724 r.WriteMapElemValue() 124725 if yyv1 == nil { 124726 r.EncodeNil() 124727 } else { 124728 yyv1.CodecEncodeSelf(e) 124729 } 124730 } 124731 r.WriteMapEnd() 124732 } 124733 124734 func (x codecSelfer100) decMapstringPtrtoDriverInfo(v *map[string]*DriverInfo, d *codec1978.Decoder) { 124735 var h codecSelfer100 124736 z, r := codec1978.GenHelperDecoder(d) 124737 _, _, _ = h, z, r 124738 124739 yyv1 := *v 124740 yyl1 := r.ReadMapStart() 124741 yybh1 := z.DecBasicHandle() 124742 if yyv1 == nil { 124743 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 124744 yyv1 = make(map[string]*DriverInfo, yyrl1) 124745 *v = yyv1 124746 } 124747 var yymk1 string 124748 var yymv1 *DriverInfo 124749 var yymg1, yymdn1, yyms1, yymok1 bool 124750 if yybh1.MapValueReset { 124751 yymg1 = true 124752 } 124753 if yyl1 != 0 { 124754 yyhl1 := yyl1 > 0 124755 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 124756 r.ReadMapElemKey() 124757 if r.TryDecodeAsNil() { 124758 yymk1 = "" 124759 } else { 124760 yymk1 = (string)(r.DecodeString()) 124761 } 124762 124763 yyms1 = true 124764 if yymg1 { 124765 yymv1, yymok1 = yyv1[yymk1] 124766 if yymok1 { 124767 yyms1 = false 124768 } 124769 } else { 124770 yymv1 = nil 124771 } 124772 r.ReadMapElemValue() 124773 yymdn1 = false 124774 if r.TryDecodeAsNil() { 124775 yymdn1 = true 124776 } else { 124777 if yymv1 == nil { 124778 yymv1 = new(DriverInfo) 124779 } 124780 yymv1.CodecDecodeSelf(d) 124781 } 124782 124783 if yymdn1 { 124784 if yybh1.DeleteOnNilMapValue { 124785 delete(yyv1, yymk1) 124786 } else { 124787 yyv1[yymk1] = nil 124788 } 124789 } else if yyms1 && yyv1 != nil { 124790 yyv1[yymk1] = yymv1 124791 } 124792 } 124793 } // else len==0: TODO: Should we clear map entries? 124794 r.ReadMapEnd() 124795 } 124796 124797 func (x codecSelfer100) encMapstringPtrtoClientHostVolumeConfig(v map[string]*ClientHostVolumeConfig, e *codec1978.Encoder) { 124798 var h codecSelfer100 124799 z, r := codec1978.GenHelperEncoder(e) 124800 _, _, _ = h, z, r 124801 r.WriteMapStart(len(v)) 124802 for yyk1, yyv1 := range v { 124803 r.WriteMapElemKey() 124804 if false { 124805 } else { 124806 if z.EncBasicHandle().StringToRaw { 124807 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 124808 } else { 124809 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 124810 } 124811 } 124812 r.WriteMapElemValue() 124813 if yyv1 == nil { 124814 r.EncodeNil() 124815 } else { 124816 yyv1.CodecEncodeSelf(e) 124817 } 124818 } 124819 r.WriteMapEnd() 124820 } 124821 124822 func (x codecSelfer100) decMapstringPtrtoClientHostVolumeConfig(v *map[string]*ClientHostVolumeConfig, d *codec1978.Decoder) { 124823 var h codecSelfer100 124824 z, r := codec1978.GenHelperDecoder(d) 124825 _, _, _ = h, z, r 124826 124827 yyv1 := *v 124828 yyl1 := r.ReadMapStart() 124829 yybh1 := z.DecBasicHandle() 124830 if yyv1 == nil { 124831 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 124832 yyv1 = make(map[string]*ClientHostVolumeConfig, yyrl1) 124833 *v = yyv1 124834 } 124835 var yymk1 string 124836 var yymv1 *ClientHostVolumeConfig 124837 var yymg1, yymdn1, yyms1, yymok1 bool 124838 if yybh1.MapValueReset { 124839 yymg1 = true 124840 } 124841 if yyl1 != 0 { 124842 yyhl1 := yyl1 > 0 124843 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 124844 r.ReadMapElemKey() 124845 if r.TryDecodeAsNil() { 124846 yymk1 = "" 124847 } else { 124848 yymk1 = (string)(r.DecodeString()) 124849 } 124850 124851 yyms1 = true 124852 if yymg1 { 124853 yymv1, yymok1 = yyv1[yymk1] 124854 if yymok1 { 124855 yyms1 = false 124856 } 124857 } else { 124858 yymv1 = nil 124859 } 124860 r.ReadMapElemValue() 124861 yymdn1 = false 124862 if r.TryDecodeAsNil() { 124863 yymdn1 = true 124864 } else { 124865 if yymv1 == nil { 124866 yymv1 = new(ClientHostVolumeConfig) 124867 } 124868 yymv1.CodecDecodeSelf(d) 124869 } 124870 124871 if yymdn1 { 124872 if yybh1.DeleteOnNilMapValue { 124873 delete(yyv1, yymk1) 124874 } else { 124875 yyv1[yymk1] = nil 124876 } 124877 } else if yyms1 && yyv1 != nil { 124878 yyv1[yymk1] = yymv1 124879 } 124880 } 124881 } // else len==0: TODO: Should we clear map entries? 124882 r.ReadMapEnd() 124883 } 124884 124885 func (x codecSelfer100) encResourceDevices(v ResourceDevices, e *codec1978.Encoder) { 124886 var h codecSelfer100 124887 z, r := codec1978.GenHelperEncoder(e) 124888 _, _, _ = h, z, r 124889 r.WriteArrayStart(len(v)) 124890 for _, yyv1 := range v { 124891 r.WriteArrayElem() 124892 if yyv1 == nil { 124893 r.EncodeNil() 124894 } else { 124895 yyv1.CodecEncodeSelf(e) 124896 } 124897 } 124898 r.WriteArrayEnd() 124899 } 124900 124901 func (x codecSelfer100) decResourceDevices(v *ResourceDevices, d *codec1978.Decoder) { 124902 var h codecSelfer100 124903 z, r := codec1978.GenHelperDecoder(d) 124904 _, _, _ = h, z, r 124905 124906 yyv1 := *v 124907 yyh1, yyl1 := z.DecSliceHelperStart() 124908 var yyc1 bool 124909 _ = yyc1 124910 if yyl1 == 0 { 124911 if yyv1 == nil { 124912 yyv1 = []*RequestedDevice{} 124913 yyc1 = true 124914 } else if len(yyv1) != 0 { 124915 yyv1 = yyv1[:0] 124916 yyc1 = true 124917 } 124918 } else { 124919 yyhl1 := yyl1 > 0 124920 var yyrl1 int 124921 _ = yyrl1 124922 if yyhl1 { 124923 if yyl1 > cap(yyv1) { 124924 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 124925 if yyrl1 <= cap(yyv1) { 124926 yyv1 = yyv1[:yyrl1] 124927 } else { 124928 yyv1 = make([]*RequestedDevice, yyrl1) 124929 } 124930 yyc1 = true 124931 } else if yyl1 != len(yyv1) { 124932 yyv1 = yyv1[:yyl1] 124933 yyc1 = true 124934 } 124935 } 124936 var yyj1 int 124937 // var yydn1 bool 124938 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 124939 if yyj1 == 0 && yyv1 == nil { 124940 if yyhl1 { 124941 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 124942 } else { 124943 yyrl1 = 8 124944 } 124945 yyv1 = make([]*RequestedDevice, yyrl1) 124946 yyc1 = true 124947 } 124948 yyh1.ElemContainerState(yyj1) 124949 124950 var yydb1 bool 124951 if yyj1 >= len(yyv1) { 124952 yyv1 = append(yyv1, nil) 124953 yyc1 = true 124954 124955 } 124956 if yydb1 { 124957 z.DecSwallow() 124958 } else { 124959 if r.TryDecodeAsNil() { 124960 yyv1[yyj1] = nil 124961 } else { 124962 if yyv1[yyj1] == nil { 124963 yyv1[yyj1] = new(RequestedDevice) 124964 } 124965 yyv1[yyj1].CodecDecodeSelf(d) 124966 } 124967 124968 } 124969 124970 } 124971 if yyj1 < len(yyv1) { 124972 yyv1 = yyv1[:yyj1] 124973 yyc1 = true 124974 } else if yyj1 == 0 && yyv1 == nil { 124975 yyv1 = make([]*RequestedDevice, 0) 124976 yyc1 = true 124977 } 124978 } 124979 yyh1.End() 124980 if yyc1 { 124981 *v = yyv1 124982 } 124983 } 124984 124985 func (x codecSelfer100) encSlicePort(v []Port, e *codec1978.Encoder) { 124986 var h codecSelfer100 124987 z, r := codec1978.GenHelperEncoder(e) 124988 _, _, _ = h, z, r 124989 r.WriteArrayStart(len(v)) 124990 for _, yyv1 := range v { 124991 r.WriteArrayElem() 124992 yy2 := &yyv1 124993 yy2.CodecEncodeSelf(e) 124994 } 124995 r.WriteArrayEnd() 124996 } 124997 124998 func (x codecSelfer100) decSlicePort(v *[]Port, d *codec1978.Decoder) { 124999 var h codecSelfer100 125000 z, r := codec1978.GenHelperDecoder(d) 125001 _, _, _ = h, z, r 125002 125003 yyv1 := *v 125004 yyh1, yyl1 := z.DecSliceHelperStart() 125005 var yyc1 bool 125006 _ = yyc1 125007 if yyl1 == 0 { 125008 if yyv1 == nil { 125009 yyv1 = []Port{} 125010 yyc1 = true 125011 } else if len(yyv1) != 0 { 125012 yyv1 = yyv1[:0] 125013 yyc1 = true 125014 } 125015 } else { 125016 yyhl1 := yyl1 > 0 125017 var yyrl1 int 125018 _ = yyrl1 125019 if yyhl1 { 125020 if yyl1 > cap(yyv1) { 125021 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) 125022 if yyrl1 <= cap(yyv1) { 125023 yyv1 = yyv1[:yyrl1] 125024 } else { 125025 yyv1 = make([]Port, yyrl1) 125026 } 125027 yyc1 = true 125028 } else if yyl1 != len(yyv1) { 125029 yyv1 = yyv1[:yyl1] 125030 yyc1 = true 125031 } 125032 } 125033 var yyj1 int 125034 // var yydn1 bool 125035 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 125036 if yyj1 == 0 && yyv1 == nil { 125037 if yyhl1 { 125038 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) 125039 } else { 125040 yyrl1 = 8 125041 } 125042 yyv1 = make([]Port, yyrl1) 125043 yyc1 = true 125044 } 125045 yyh1.ElemContainerState(yyj1) 125046 125047 var yydb1 bool 125048 if yyj1 >= len(yyv1) { 125049 yyv1 = append(yyv1, Port{}) 125050 yyc1 = true 125051 125052 } 125053 if yydb1 { 125054 z.DecSwallow() 125055 } else { 125056 if r.TryDecodeAsNil() { 125057 yyv1[yyj1] = Port{} 125058 } else { 125059 yyv1[yyj1].CodecDecodeSelf(d) 125060 } 125061 125062 } 125063 125064 } 125065 if yyj1 < len(yyv1) { 125066 yyv1 = yyv1[:yyj1] 125067 yyc1 = true 125068 } else if yyj1 == 0 && yyv1 == nil { 125069 yyv1 = make([]Port, 0) 125070 yyc1 = true 125071 } 125072 } 125073 yyh1.End() 125074 if yyc1 { 125075 *v = yyv1 125076 } 125077 } 125078 125079 func (x codecSelfer100) encNetworks(v Networks, e *codec1978.Encoder) { 125080 var h codecSelfer100 125081 z, r := codec1978.GenHelperEncoder(e) 125082 _, _, _ = h, z, r 125083 r.WriteArrayStart(len(v)) 125084 for _, yyv1 := range v { 125085 r.WriteArrayElem() 125086 if yyv1 == nil { 125087 r.EncodeNil() 125088 } else { 125089 yyv1.CodecEncodeSelf(e) 125090 } 125091 } 125092 r.WriteArrayEnd() 125093 } 125094 125095 func (x codecSelfer100) decNetworks(v *Networks, d *codec1978.Decoder) { 125096 var h codecSelfer100 125097 z, r := codec1978.GenHelperDecoder(d) 125098 _, _, _ = h, z, r 125099 125100 yyv1 := *v 125101 yyh1, yyl1 := z.DecSliceHelperStart() 125102 var yyc1 bool 125103 _ = yyc1 125104 if yyl1 == 0 { 125105 if yyv1 == nil { 125106 yyv1 = []*NetworkResource{} 125107 yyc1 = true 125108 } else if len(yyv1) != 0 { 125109 yyv1 = yyv1[:0] 125110 yyc1 = true 125111 } 125112 } else { 125113 yyhl1 := yyl1 > 0 125114 var yyrl1 int 125115 _ = yyrl1 125116 if yyhl1 { 125117 if yyl1 > cap(yyv1) { 125118 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125119 if yyrl1 <= cap(yyv1) { 125120 yyv1 = yyv1[:yyrl1] 125121 } else { 125122 yyv1 = make([]*NetworkResource, yyrl1) 125123 } 125124 yyc1 = true 125125 } else if yyl1 != len(yyv1) { 125126 yyv1 = yyv1[:yyl1] 125127 yyc1 = true 125128 } 125129 } 125130 var yyj1 int 125131 // var yydn1 bool 125132 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 125133 if yyj1 == 0 && yyv1 == nil { 125134 if yyhl1 { 125135 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125136 } else { 125137 yyrl1 = 8 125138 } 125139 yyv1 = make([]*NetworkResource, yyrl1) 125140 yyc1 = true 125141 } 125142 yyh1.ElemContainerState(yyj1) 125143 125144 var yydb1 bool 125145 if yyj1 >= len(yyv1) { 125146 yyv1 = append(yyv1, nil) 125147 yyc1 = true 125148 125149 } 125150 if yydb1 { 125151 z.DecSwallow() 125152 } else { 125153 if r.TryDecodeAsNil() { 125154 yyv1[yyj1] = nil 125155 } else { 125156 if yyv1[yyj1] == nil { 125157 yyv1[yyj1] = new(NetworkResource) 125158 } 125159 yyv1[yyj1].CodecDecodeSelf(d) 125160 } 125161 125162 } 125163 125164 } 125165 if yyj1 < len(yyv1) { 125166 yyv1 = yyv1[:yyj1] 125167 yyc1 = true 125168 } else if yyj1 == 0 && yyv1 == nil { 125169 yyv1 = make([]*NetworkResource, 0) 125170 yyc1 = true 125171 } 125172 } 125173 yyh1.End() 125174 if yyc1 { 125175 *v = yyv1 125176 } 125177 } 125178 125179 func (x codecSelfer100) encSlicePtrtoNodeDeviceResource(v []*NodeDeviceResource, e *codec1978.Encoder) { 125180 var h codecSelfer100 125181 z, r := codec1978.GenHelperEncoder(e) 125182 _, _, _ = h, z, r 125183 r.WriteArrayStart(len(v)) 125184 for _, yyv1 := range v { 125185 r.WriteArrayElem() 125186 if yyv1 == nil { 125187 r.EncodeNil() 125188 } else { 125189 yyv1.CodecEncodeSelf(e) 125190 } 125191 } 125192 r.WriteArrayEnd() 125193 } 125194 125195 func (x codecSelfer100) decSlicePtrtoNodeDeviceResource(v *[]*NodeDeviceResource, d *codec1978.Decoder) { 125196 var h codecSelfer100 125197 z, r := codec1978.GenHelperDecoder(d) 125198 _, _, _ = h, z, r 125199 125200 yyv1 := *v 125201 yyh1, yyl1 := z.DecSliceHelperStart() 125202 var yyc1 bool 125203 _ = yyc1 125204 if yyl1 == 0 { 125205 if yyv1 == nil { 125206 yyv1 = []*NodeDeviceResource{} 125207 yyc1 = true 125208 } else if len(yyv1) != 0 { 125209 yyv1 = yyv1[:0] 125210 yyc1 = true 125211 } 125212 } else { 125213 yyhl1 := yyl1 > 0 125214 var yyrl1 int 125215 _ = yyrl1 125216 if yyhl1 { 125217 if yyl1 > cap(yyv1) { 125218 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125219 if yyrl1 <= cap(yyv1) { 125220 yyv1 = yyv1[:yyrl1] 125221 } else { 125222 yyv1 = make([]*NodeDeviceResource, yyrl1) 125223 } 125224 yyc1 = true 125225 } else if yyl1 != len(yyv1) { 125226 yyv1 = yyv1[:yyl1] 125227 yyc1 = true 125228 } 125229 } 125230 var yyj1 int 125231 // var yydn1 bool 125232 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 125233 if yyj1 == 0 && yyv1 == nil { 125234 if yyhl1 { 125235 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125236 } else { 125237 yyrl1 = 8 125238 } 125239 yyv1 = make([]*NodeDeviceResource, yyrl1) 125240 yyc1 = true 125241 } 125242 yyh1.ElemContainerState(yyj1) 125243 125244 var yydb1 bool 125245 if yyj1 >= len(yyv1) { 125246 yyv1 = append(yyv1, nil) 125247 yyc1 = true 125248 125249 } 125250 if yydb1 { 125251 z.DecSwallow() 125252 } else { 125253 if r.TryDecodeAsNil() { 125254 yyv1[yyj1] = nil 125255 } else { 125256 if yyv1[yyj1] == nil { 125257 yyv1[yyj1] = new(NodeDeviceResource) 125258 } 125259 yyv1[yyj1].CodecDecodeSelf(d) 125260 } 125261 125262 } 125263 125264 } 125265 if yyj1 < len(yyv1) { 125266 yyv1 = yyv1[:yyj1] 125267 yyc1 = true 125268 } else if yyj1 == 0 && yyv1 == nil { 125269 yyv1 = make([]*NodeDeviceResource, 0) 125270 yyc1 = true 125271 } 125272 } 125273 yyh1.End() 125274 if yyc1 { 125275 *v = yyv1 125276 } 125277 } 125278 125279 func (x codecSelfer100) encSlicePtrtoNodeDevice(v []*NodeDevice, e *codec1978.Encoder) { 125280 var h codecSelfer100 125281 z, r := codec1978.GenHelperEncoder(e) 125282 _, _, _ = h, z, r 125283 r.WriteArrayStart(len(v)) 125284 for _, yyv1 := range v { 125285 r.WriteArrayElem() 125286 if yyv1 == nil { 125287 r.EncodeNil() 125288 } else { 125289 yyv1.CodecEncodeSelf(e) 125290 } 125291 } 125292 r.WriteArrayEnd() 125293 } 125294 125295 func (x codecSelfer100) decSlicePtrtoNodeDevice(v *[]*NodeDevice, d *codec1978.Decoder) { 125296 var h codecSelfer100 125297 z, r := codec1978.GenHelperDecoder(d) 125298 _, _, _ = h, z, r 125299 125300 yyv1 := *v 125301 yyh1, yyl1 := z.DecSliceHelperStart() 125302 var yyc1 bool 125303 _ = yyc1 125304 if yyl1 == 0 { 125305 if yyv1 == nil { 125306 yyv1 = []*NodeDevice{} 125307 yyc1 = true 125308 } else if len(yyv1) != 0 { 125309 yyv1 = yyv1[:0] 125310 yyc1 = true 125311 } 125312 } else { 125313 yyhl1 := yyl1 > 0 125314 var yyrl1 int 125315 _ = yyrl1 125316 if yyhl1 { 125317 if yyl1 > cap(yyv1) { 125318 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125319 if yyrl1 <= cap(yyv1) { 125320 yyv1 = yyv1[:yyrl1] 125321 } else { 125322 yyv1 = make([]*NodeDevice, yyrl1) 125323 } 125324 yyc1 = true 125325 } else if yyl1 != len(yyv1) { 125326 yyv1 = yyv1[:yyl1] 125327 yyc1 = true 125328 } 125329 } 125330 var yyj1 int 125331 // var yydn1 bool 125332 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 125333 if yyj1 == 0 && yyv1 == nil { 125334 if yyhl1 { 125335 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125336 } else { 125337 yyrl1 = 8 125338 } 125339 yyv1 = make([]*NodeDevice, yyrl1) 125340 yyc1 = true 125341 } 125342 yyh1.ElemContainerState(yyj1) 125343 125344 var yydb1 bool 125345 if yyj1 >= len(yyv1) { 125346 yyv1 = append(yyv1, nil) 125347 yyc1 = true 125348 125349 } 125350 if yydb1 { 125351 z.DecSwallow() 125352 } else { 125353 if r.TryDecodeAsNil() { 125354 yyv1[yyj1] = nil 125355 } else { 125356 if yyv1[yyj1] == nil { 125357 yyv1[yyj1] = new(NodeDevice) 125358 } 125359 yyv1[yyj1].CodecDecodeSelf(d) 125360 } 125361 125362 } 125363 125364 } 125365 if yyj1 < len(yyv1) { 125366 yyv1 = yyv1[:yyj1] 125367 yyc1 = true 125368 } else if yyj1 == 0 && yyv1 == nil { 125369 yyv1 = make([]*NodeDevice, 0) 125370 yyc1 = true 125371 } 125372 } 125373 yyh1.End() 125374 if yyc1 { 125375 *v = yyv1 125376 } 125377 } 125378 125379 func (x codecSelfer100) encMapstringPtrtostructs_Attribute(v map[string]*pkg1_structs.Attribute, e *codec1978.Encoder) { 125380 var h codecSelfer100 125381 z, r := codec1978.GenHelperEncoder(e) 125382 _, _, _ = h, z, r 125383 r.WriteMapStart(len(v)) 125384 for yyk1, yyv1 := range v { 125385 r.WriteMapElemKey() 125386 if false { 125387 } else { 125388 if z.EncBasicHandle().StringToRaw { 125389 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 125390 } else { 125391 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 125392 } 125393 } 125394 r.WriteMapElemValue() 125395 if yyv1 == nil { 125396 r.EncodeNil() 125397 } else { 125398 if false { 125399 } else if yyxt3 := z.Extension(z.I2Rtid(yyv1)); yyxt3 != nil { 125400 z.EncExtension(yyv1, yyxt3) 125401 } else { 125402 z.EncFallback(yyv1) 125403 } 125404 } 125405 } 125406 r.WriteMapEnd() 125407 } 125408 125409 func (x codecSelfer100) decMapstringPtrtostructs_Attribute(v *map[string]*pkg1_structs.Attribute, d *codec1978.Decoder) { 125410 var h codecSelfer100 125411 z, r := codec1978.GenHelperDecoder(d) 125412 _, _, _ = h, z, r 125413 125414 yyv1 := *v 125415 yyl1 := r.ReadMapStart() 125416 yybh1 := z.DecBasicHandle() 125417 if yyv1 == nil { 125418 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 125419 yyv1 = make(map[string]*pkg1_structs.Attribute, yyrl1) 125420 *v = yyv1 125421 } 125422 var yymk1 string 125423 var yymv1 *pkg1_structs.Attribute 125424 var yymg1, yymdn1, yyms1, yymok1 bool 125425 if yybh1.MapValueReset { 125426 yymg1 = true 125427 } 125428 if yyl1 != 0 { 125429 yyhl1 := yyl1 > 0 125430 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 125431 r.ReadMapElemKey() 125432 if r.TryDecodeAsNil() { 125433 yymk1 = "" 125434 } else { 125435 yymk1 = (string)(r.DecodeString()) 125436 } 125437 125438 yyms1 = true 125439 if yymg1 { 125440 yymv1, yymok1 = yyv1[yymk1] 125441 if yymok1 { 125442 yyms1 = false 125443 } 125444 } else { 125445 yymv1 = nil 125446 } 125447 r.ReadMapElemValue() 125448 yymdn1 = false 125449 if r.TryDecodeAsNil() { 125450 yymdn1 = true 125451 } else { 125452 if yymv1 == nil { 125453 yymv1 = new(pkg1_structs.Attribute) 125454 } 125455 if false { 125456 } else if yyxt4 := z.Extension(z.I2Rtid(yymv1)); yyxt4 != nil { 125457 z.DecExtension(yymv1, yyxt4) 125458 } else { 125459 z.DecFallback(yymv1, false) 125460 } 125461 } 125462 125463 if yymdn1 { 125464 if yybh1.DeleteOnNilMapValue { 125465 delete(yyv1, yymk1) 125466 } else { 125467 yyv1[yymk1] = nil 125468 } 125469 } else if yyms1 && yyv1 != nil { 125470 yyv1[yymk1] = yymv1 125471 } 125472 } 125473 } // else len==0: TODO: Should we clear map entries? 125474 r.ReadMapEnd() 125475 } 125476 125477 func (x codecSelfer100) encMapstringPtrtoAllocatedTaskResources(v map[string]*AllocatedTaskResources, e *codec1978.Encoder) { 125478 var h codecSelfer100 125479 z, r := codec1978.GenHelperEncoder(e) 125480 _, _, _ = h, z, r 125481 r.WriteMapStart(len(v)) 125482 for yyk1, yyv1 := range v { 125483 r.WriteMapElemKey() 125484 if false { 125485 } else { 125486 if z.EncBasicHandle().StringToRaw { 125487 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 125488 } else { 125489 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 125490 } 125491 } 125492 r.WriteMapElemValue() 125493 if yyv1 == nil { 125494 r.EncodeNil() 125495 } else { 125496 yyv1.CodecEncodeSelf(e) 125497 } 125498 } 125499 r.WriteMapEnd() 125500 } 125501 125502 func (x codecSelfer100) decMapstringPtrtoAllocatedTaskResources(v *map[string]*AllocatedTaskResources, d *codec1978.Decoder) { 125503 var h codecSelfer100 125504 z, r := codec1978.GenHelperDecoder(d) 125505 _, _, _ = h, z, r 125506 125507 yyv1 := *v 125508 yyl1 := r.ReadMapStart() 125509 yybh1 := z.DecBasicHandle() 125510 if yyv1 == nil { 125511 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 125512 yyv1 = make(map[string]*AllocatedTaskResources, yyrl1) 125513 *v = yyv1 125514 } 125515 var yymk1 string 125516 var yymv1 *AllocatedTaskResources 125517 var yymg1, yymdn1, yyms1, yymok1 bool 125518 if yybh1.MapValueReset { 125519 yymg1 = true 125520 } 125521 if yyl1 != 0 { 125522 yyhl1 := yyl1 > 0 125523 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 125524 r.ReadMapElemKey() 125525 if r.TryDecodeAsNil() { 125526 yymk1 = "" 125527 } else { 125528 yymk1 = (string)(r.DecodeString()) 125529 } 125530 125531 yyms1 = true 125532 if yymg1 { 125533 yymv1, yymok1 = yyv1[yymk1] 125534 if yymok1 { 125535 yyms1 = false 125536 } 125537 } else { 125538 yymv1 = nil 125539 } 125540 r.ReadMapElemValue() 125541 yymdn1 = false 125542 if r.TryDecodeAsNil() { 125543 yymdn1 = true 125544 } else { 125545 if yymv1 == nil { 125546 yymv1 = new(AllocatedTaskResources) 125547 } 125548 yymv1.CodecDecodeSelf(d) 125549 } 125550 125551 if yymdn1 { 125552 if yybh1.DeleteOnNilMapValue { 125553 delete(yyv1, yymk1) 125554 } else { 125555 yyv1[yymk1] = nil 125556 } 125557 } else if yyms1 && yyv1 != nil { 125558 yyv1[yymk1] = yymv1 125559 } 125560 } 125561 } // else len==0: TODO: Should we clear map entries? 125562 r.ReadMapEnd() 125563 } 125564 125565 func (x codecSelfer100) encMapstringPtrtoTaskLifecycleConfig(v map[string]*TaskLifecycleConfig, e *codec1978.Encoder) { 125566 var h codecSelfer100 125567 z, r := codec1978.GenHelperEncoder(e) 125568 _, _, _ = h, z, r 125569 r.WriteMapStart(len(v)) 125570 for yyk1, yyv1 := range v { 125571 r.WriteMapElemKey() 125572 if false { 125573 } else { 125574 if z.EncBasicHandle().StringToRaw { 125575 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 125576 } else { 125577 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 125578 } 125579 } 125580 r.WriteMapElemValue() 125581 if yyv1 == nil { 125582 r.EncodeNil() 125583 } else { 125584 yyv1.CodecEncodeSelf(e) 125585 } 125586 } 125587 r.WriteMapEnd() 125588 } 125589 125590 func (x codecSelfer100) decMapstringPtrtoTaskLifecycleConfig(v *map[string]*TaskLifecycleConfig, d *codec1978.Decoder) { 125591 var h codecSelfer100 125592 z, r := codec1978.GenHelperDecoder(d) 125593 _, _, _ = h, z, r 125594 125595 yyv1 := *v 125596 yyl1 := r.ReadMapStart() 125597 yybh1 := z.DecBasicHandle() 125598 if yyv1 == nil { 125599 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 125600 yyv1 = make(map[string]*TaskLifecycleConfig, yyrl1) 125601 *v = yyv1 125602 } 125603 var yymk1 string 125604 var yymv1 *TaskLifecycleConfig 125605 var yymg1, yymdn1, yyms1, yymok1 bool 125606 if yybh1.MapValueReset { 125607 yymg1 = true 125608 } 125609 if yyl1 != 0 { 125610 yyhl1 := yyl1 > 0 125611 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 125612 r.ReadMapElemKey() 125613 if r.TryDecodeAsNil() { 125614 yymk1 = "" 125615 } else { 125616 yymk1 = (string)(r.DecodeString()) 125617 } 125618 125619 yyms1 = true 125620 if yymg1 { 125621 yymv1, yymok1 = yyv1[yymk1] 125622 if yymok1 { 125623 yyms1 = false 125624 } 125625 } else { 125626 yymv1 = nil 125627 } 125628 r.ReadMapElemValue() 125629 yymdn1 = false 125630 if r.TryDecodeAsNil() { 125631 yymdn1 = true 125632 } else { 125633 if yymv1 == nil { 125634 yymv1 = new(TaskLifecycleConfig) 125635 } 125636 yymv1.CodecDecodeSelf(d) 125637 } 125638 125639 if yymdn1 { 125640 if yybh1.DeleteOnNilMapValue { 125641 delete(yyv1, yymk1) 125642 } else { 125643 yyv1[yymk1] = nil 125644 } 125645 } else if yyms1 && yyv1 != nil { 125646 yyv1[yymk1] = yymv1 125647 } 125648 } 125649 } // else len==0: TODO: Should we clear map entries? 125650 r.ReadMapEnd() 125651 } 125652 125653 func (x codecSelfer100) encSlicePtrtoAllocatedDeviceResource(v []*AllocatedDeviceResource, e *codec1978.Encoder) { 125654 var h codecSelfer100 125655 z, r := codec1978.GenHelperEncoder(e) 125656 _, _, _ = h, z, r 125657 r.WriteArrayStart(len(v)) 125658 for _, yyv1 := range v { 125659 r.WriteArrayElem() 125660 if yyv1 == nil { 125661 r.EncodeNil() 125662 } else { 125663 yyv1.CodecEncodeSelf(e) 125664 } 125665 } 125666 r.WriteArrayEnd() 125667 } 125668 125669 func (x codecSelfer100) decSlicePtrtoAllocatedDeviceResource(v *[]*AllocatedDeviceResource, d *codec1978.Decoder) { 125670 var h codecSelfer100 125671 z, r := codec1978.GenHelperDecoder(d) 125672 _, _, _ = h, z, r 125673 125674 yyv1 := *v 125675 yyh1, yyl1 := z.DecSliceHelperStart() 125676 var yyc1 bool 125677 _ = yyc1 125678 if yyl1 == 0 { 125679 if yyv1 == nil { 125680 yyv1 = []*AllocatedDeviceResource{} 125681 yyc1 = true 125682 } else if len(yyv1) != 0 { 125683 yyv1 = yyv1[:0] 125684 yyc1 = true 125685 } 125686 } else { 125687 yyhl1 := yyl1 > 0 125688 var yyrl1 int 125689 _ = yyrl1 125690 if yyhl1 { 125691 if yyl1 > cap(yyv1) { 125692 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125693 if yyrl1 <= cap(yyv1) { 125694 yyv1 = yyv1[:yyrl1] 125695 } else { 125696 yyv1 = make([]*AllocatedDeviceResource, yyrl1) 125697 } 125698 yyc1 = true 125699 } else if yyl1 != len(yyv1) { 125700 yyv1 = yyv1[:yyl1] 125701 yyc1 = true 125702 } 125703 } 125704 var yyj1 int 125705 // var yydn1 bool 125706 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 125707 if yyj1 == 0 && yyv1 == nil { 125708 if yyhl1 { 125709 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125710 } else { 125711 yyrl1 = 8 125712 } 125713 yyv1 = make([]*AllocatedDeviceResource, yyrl1) 125714 yyc1 = true 125715 } 125716 yyh1.ElemContainerState(yyj1) 125717 125718 var yydb1 bool 125719 if yyj1 >= len(yyv1) { 125720 yyv1 = append(yyv1, nil) 125721 yyc1 = true 125722 125723 } 125724 if yydb1 { 125725 z.DecSwallow() 125726 } else { 125727 if r.TryDecodeAsNil() { 125728 yyv1[yyj1] = nil 125729 } else { 125730 if yyv1[yyj1] == nil { 125731 yyv1[yyj1] = new(AllocatedDeviceResource) 125732 } 125733 yyv1[yyj1].CodecDecodeSelf(d) 125734 } 125735 125736 } 125737 125738 } 125739 if yyj1 < len(yyv1) { 125740 yyv1 = yyv1[:yyj1] 125741 yyc1 = true 125742 } else if yyj1 == 0 && yyv1 == nil { 125743 yyv1 = make([]*AllocatedDeviceResource, 0) 125744 yyc1 = true 125745 } 125746 } 125747 yyh1.End() 125748 if yyc1 { 125749 *v = yyv1 125750 } 125751 } 125752 125753 func (x codecSelfer100) encAllocatedDevices(v AllocatedDevices, e *codec1978.Encoder) { 125754 var h codecSelfer100 125755 z, r := codec1978.GenHelperEncoder(e) 125756 _, _, _ = h, z, r 125757 r.WriteArrayStart(len(v)) 125758 for _, yyv1 := range v { 125759 r.WriteArrayElem() 125760 if yyv1 == nil { 125761 r.EncodeNil() 125762 } else { 125763 yyv1.CodecEncodeSelf(e) 125764 } 125765 } 125766 r.WriteArrayEnd() 125767 } 125768 125769 func (x codecSelfer100) decAllocatedDevices(v *AllocatedDevices, d *codec1978.Decoder) { 125770 var h codecSelfer100 125771 z, r := codec1978.GenHelperDecoder(d) 125772 _, _, _ = h, z, r 125773 125774 yyv1 := *v 125775 yyh1, yyl1 := z.DecSliceHelperStart() 125776 var yyc1 bool 125777 _ = yyc1 125778 if yyl1 == 0 { 125779 if yyv1 == nil { 125780 yyv1 = []*AllocatedDeviceResource{} 125781 yyc1 = true 125782 } else if len(yyv1) != 0 { 125783 yyv1 = yyv1[:0] 125784 yyc1 = true 125785 } 125786 } else { 125787 yyhl1 := yyl1 > 0 125788 var yyrl1 int 125789 _ = yyrl1 125790 if yyhl1 { 125791 if yyl1 > cap(yyv1) { 125792 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125793 if yyrl1 <= cap(yyv1) { 125794 yyv1 = yyv1[:yyrl1] 125795 } else { 125796 yyv1 = make([]*AllocatedDeviceResource, yyrl1) 125797 } 125798 yyc1 = true 125799 } else if yyl1 != len(yyv1) { 125800 yyv1 = yyv1[:yyl1] 125801 yyc1 = true 125802 } 125803 } 125804 var yyj1 int 125805 // var yydn1 bool 125806 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 125807 if yyj1 == 0 && yyv1 == nil { 125808 if yyhl1 { 125809 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125810 } else { 125811 yyrl1 = 8 125812 } 125813 yyv1 = make([]*AllocatedDeviceResource, yyrl1) 125814 yyc1 = true 125815 } 125816 yyh1.ElemContainerState(yyj1) 125817 125818 var yydb1 bool 125819 if yyj1 >= len(yyv1) { 125820 yyv1 = append(yyv1, nil) 125821 yyc1 = true 125822 125823 } 125824 if yydb1 { 125825 z.DecSwallow() 125826 } else { 125827 if r.TryDecodeAsNil() { 125828 yyv1[yyj1] = nil 125829 } else { 125830 if yyv1[yyj1] == nil { 125831 yyv1[yyj1] = new(AllocatedDeviceResource) 125832 } 125833 yyv1[yyj1].CodecDecodeSelf(d) 125834 } 125835 125836 } 125837 125838 } 125839 if yyj1 < len(yyv1) { 125840 yyv1 = yyv1[:yyj1] 125841 yyc1 = true 125842 } else if yyj1 == 0 && yyv1 == nil { 125843 yyv1 = make([]*AllocatedDeviceResource, 0) 125844 yyc1 = true 125845 } 125846 } 125847 yyh1.End() 125848 if yyc1 { 125849 *v = yyv1 125850 } 125851 } 125852 125853 func (x codecSelfer100) encSlicePtrtoConstraint(v []*Constraint, e *codec1978.Encoder) { 125854 var h codecSelfer100 125855 z, r := codec1978.GenHelperEncoder(e) 125856 _, _, _ = h, z, r 125857 r.WriteArrayStart(len(v)) 125858 for _, yyv1 := range v { 125859 r.WriteArrayElem() 125860 if yyv1 == nil { 125861 r.EncodeNil() 125862 } else { 125863 yyv1.CodecEncodeSelf(e) 125864 } 125865 } 125866 r.WriteArrayEnd() 125867 } 125868 125869 func (x codecSelfer100) decSlicePtrtoConstraint(v *[]*Constraint, d *codec1978.Decoder) { 125870 var h codecSelfer100 125871 z, r := codec1978.GenHelperDecoder(d) 125872 _, _, _ = h, z, r 125873 125874 yyv1 := *v 125875 yyh1, yyl1 := z.DecSliceHelperStart() 125876 var yyc1 bool 125877 _ = yyc1 125878 if yyl1 == 0 { 125879 if yyv1 == nil { 125880 yyv1 = []*Constraint{} 125881 yyc1 = true 125882 } else if len(yyv1) != 0 { 125883 yyv1 = yyv1[:0] 125884 yyc1 = true 125885 } 125886 } else { 125887 yyhl1 := yyl1 > 0 125888 var yyrl1 int 125889 _ = yyrl1 125890 if yyhl1 { 125891 if yyl1 > cap(yyv1) { 125892 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125893 if yyrl1 <= cap(yyv1) { 125894 yyv1 = yyv1[:yyrl1] 125895 } else { 125896 yyv1 = make([]*Constraint, yyrl1) 125897 } 125898 yyc1 = true 125899 } else if yyl1 != len(yyv1) { 125900 yyv1 = yyv1[:yyl1] 125901 yyc1 = true 125902 } 125903 } 125904 var yyj1 int 125905 // var yydn1 bool 125906 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 125907 if yyj1 == 0 && yyv1 == nil { 125908 if yyhl1 { 125909 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125910 } else { 125911 yyrl1 = 8 125912 } 125913 yyv1 = make([]*Constraint, yyrl1) 125914 yyc1 = true 125915 } 125916 yyh1.ElemContainerState(yyj1) 125917 125918 var yydb1 bool 125919 if yyj1 >= len(yyv1) { 125920 yyv1 = append(yyv1, nil) 125921 yyc1 = true 125922 125923 } 125924 if yydb1 { 125925 z.DecSwallow() 125926 } else { 125927 if r.TryDecodeAsNil() { 125928 yyv1[yyj1] = nil 125929 } else { 125930 if yyv1[yyj1] == nil { 125931 yyv1[yyj1] = new(Constraint) 125932 } 125933 yyv1[yyj1].CodecDecodeSelf(d) 125934 } 125935 125936 } 125937 125938 } 125939 if yyj1 < len(yyv1) { 125940 yyv1 = yyv1[:yyj1] 125941 yyc1 = true 125942 } else if yyj1 == 0 && yyv1 == nil { 125943 yyv1 = make([]*Constraint, 0) 125944 yyc1 = true 125945 } 125946 } 125947 yyh1.End() 125948 if yyc1 { 125949 *v = yyv1 125950 } 125951 } 125952 125953 func (x codecSelfer100) encSlicePtrtoAffinity(v []*Affinity, e *codec1978.Encoder) { 125954 var h codecSelfer100 125955 z, r := codec1978.GenHelperEncoder(e) 125956 _, _, _ = h, z, r 125957 r.WriteArrayStart(len(v)) 125958 for _, yyv1 := range v { 125959 r.WriteArrayElem() 125960 if yyv1 == nil { 125961 r.EncodeNil() 125962 } else { 125963 yyv1.CodecEncodeSelf(e) 125964 } 125965 } 125966 r.WriteArrayEnd() 125967 } 125968 125969 func (x codecSelfer100) decSlicePtrtoAffinity(v *[]*Affinity, d *codec1978.Decoder) { 125970 var h codecSelfer100 125971 z, r := codec1978.GenHelperDecoder(d) 125972 _, _, _ = h, z, r 125973 125974 yyv1 := *v 125975 yyh1, yyl1 := z.DecSliceHelperStart() 125976 var yyc1 bool 125977 _ = yyc1 125978 if yyl1 == 0 { 125979 if yyv1 == nil { 125980 yyv1 = []*Affinity{} 125981 yyc1 = true 125982 } else if len(yyv1) != 0 { 125983 yyv1 = yyv1[:0] 125984 yyc1 = true 125985 } 125986 } else { 125987 yyhl1 := yyl1 > 0 125988 var yyrl1 int 125989 _ = yyrl1 125990 if yyhl1 { 125991 if yyl1 > cap(yyv1) { 125992 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125993 if yyrl1 <= cap(yyv1) { 125994 yyv1 = yyv1[:yyrl1] 125995 } else { 125996 yyv1 = make([]*Affinity, yyrl1) 125997 } 125998 yyc1 = true 125999 } else if yyl1 != len(yyv1) { 126000 yyv1 = yyv1[:yyl1] 126001 yyc1 = true 126002 } 126003 } 126004 var yyj1 int 126005 // var yydn1 bool 126006 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 126007 if yyj1 == 0 && yyv1 == nil { 126008 if yyhl1 { 126009 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126010 } else { 126011 yyrl1 = 8 126012 } 126013 yyv1 = make([]*Affinity, yyrl1) 126014 yyc1 = true 126015 } 126016 yyh1.ElemContainerState(yyj1) 126017 126018 var yydb1 bool 126019 if yyj1 >= len(yyv1) { 126020 yyv1 = append(yyv1, nil) 126021 yyc1 = true 126022 126023 } 126024 if yydb1 { 126025 z.DecSwallow() 126026 } else { 126027 if r.TryDecodeAsNil() { 126028 yyv1[yyj1] = nil 126029 } else { 126030 if yyv1[yyj1] == nil { 126031 yyv1[yyj1] = new(Affinity) 126032 } 126033 yyv1[yyj1].CodecDecodeSelf(d) 126034 } 126035 126036 } 126037 126038 } 126039 if yyj1 < len(yyv1) { 126040 yyv1 = yyv1[:yyj1] 126041 yyc1 = true 126042 } else if yyj1 == 0 && yyv1 == nil { 126043 yyv1 = make([]*Affinity, 0) 126044 yyc1 = true 126045 } 126046 } 126047 yyh1.End() 126048 if yyc1 { 126049 *v = yyv1 126050 } 126051 } 126052 126053 func (x codecSelfer100) encSlicePtrtoSpread(v []*Spread, e *codec1978.Encoder) { 126054 var h codecSelfer100 126055 z, r := codec1978.GenHelperEncoder(e) 126056 _, _, _ = h, z, r 126057 r.WriteArrayStart(len(v)) 126058 for _, yyv1 := range v { 126059 r.WriteArrayElem() 126060 if yyv1 == nil { 126061 r.EncodeNil() 126062 } else { 126063 yyv1.CodecEncodeSelf(e) 126064 } 126065 } 126066 r.WriteArrayEnd() 126067 } 126068 126069 func (x codecSelfer100) decSlicePtrtoSpread(v *[]*Spread, d *codec1978.Decoder) { 126070 var h codecSelfer100 126071 z, r := codec1978.GenHelperDecoder(d) 126072 _, _, _ = h, z, r 126073 126074 yyv1 := *v 126075 yyh1, yyl1 := z.DecSliceHelperStart() 126076 var yyc1 bool 126077 _ = yyc1 126078 if yyl1 == 0 { 126079 if yyv1 == nil { 126080 yyv1 = []*Spread{} 126081 yyc1 = true 126082 } else if len(yyv1) != 0 { 126083 yyv1 = yyv1[:0] 126084 yyc1 = true 126085 } 126086 } else { 126087 yyhl1 := yyl1 > 0 126088 var yyrl1 int 126089 _ = yyrl1 126090 if yyhl1 { 126091 if yyl1 > cap(yyv1) { 126092 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126093 if yyrl1 <= cap(yyv1) { 126094 yyv1 = yyv1[:yyrl1] 126095 } else { 126096 yyv1 = make([]*Spread, yyrl1) 126097 } 126098 yyc1 = true 126099 } else if yyl1 != len(yyv1) { 126100 yyv1 = yyv1[:yyl1] 126101 yyc1 = true 126102 } 126103 } 126104 var yyj1 int 126105 // var yydn1 bool 126106 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 126107 if yyj1 == 0 && yyv1 == nil { 126108 if yyhl1 { 126109 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126110 } else { 126111 yyrl1 = 8 126112 } 126113 yyv1 = make([]*Spread, yyrl1) 126114 yyc1 = true 126115 } 126116 yyh1.ElemContainerState(yyj1) 126117 126118 var yydb1 bool 126119 if yyj1 >= len(yyv1) { 126120 yyv1 = append(yyv1, nil) 126121 yyc1 = true 126122 126123 } 126124 if yydb1 { 126125 z.DecSwallow() 126126 } else { 126127 if r.TryDecodeAsNil() { 126128 yyv1[yyj1] = nil 126129 } else { 126130 if yyv1[yyj1] == nil { 126131 yyv1[yyj1] = new(Spread) 126132 } 126133 yyv1[yyj1].CodecDecodeSelf(d) 126134 } 126135 126136 } 126137 126138 } 126139 if yyj1 < len(yyv1) { 126140 yyv1 = yyv1[:yyj1] 126141 yyc1 = true 126142 } else if yyj1 == 0 && yyv1 == nil { 126143 yyv1 = make([]*Spread, 0) 126144 yyc1 = true 126145 } 126146 } 126147 yyh1.End() 126148 if yyc1 { 126149 *v = yyv1 126150 } 126151 } 126152 126153 func (x codecSelfer100) encSlicePtrtoTaskGroup(v []*TaskGroup, e *codec1978.Encoder) { 126154 var h codecSelfer100 126155 z, r := codec1978.GenHelperEncoder(e) 126156 _, _, _ = h, z, r 126157 r.WriteArrayStart(len(v)) 126158 for _, yyv1 := range v { 126159 r.WriteArrayElem() 126160 if yyv1 == nil { 126161 r.EncodeNil() 126162 } else { 126163 yyv1.CodecEncodeSelf(e) 126164 } 126165 } 126166 r.WriteArrayEnd() 126167 } 126168 126169 func (x codecSelfer100) decSlicePtrtoTaskGroup(v *[]*TaskGroup, d *codec1978.Decoder) { 126170 var h codecSelfer100 126171 z, r := codec1978.GenHelperDecoder(d) 126172 _, _, _ = h, z, r 126173 126174 yyv1 := *v 126175 yyh1, yyl1 := z.DecSliceHelperStart() 126176 var yyc1 bool 126177 _ = yyc1 126178 if yyl1 == 0 { 126179 if yyv1 == nil { 126180 yyv1 = []*TaskGroup{} 126181 yyc1 = true 126182 } else if len(yyv1) != 0 { 126183 yyv1 = yyv1[:0] 126184 yyc1 = true 126185 } 126186 } else { 126187 yyhl1 := yyl1 > 0 126188 var yyrl1 int 126189 _ = yyrl1 126190 if yyhl1 { 126191 if yyl1 > cap(yyv1) { 126192 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126193 if yyrl1 <= cap(yyv1) { 126194 yyv1 = yyv1[:yyrl1] 126195 } else { 126196 yyv1 = make([]*TaskGroup, yyrl1) 126197 } 126198 yyc1 = true 126199 } else if yyl1 != len(yyv1) { 126200 yyv1 = yyv1[:yyl1] 126201 yyc1 = true 126202 } 126203 } 126204 var yyj1 int 126205 // var yydn1 bool 126206 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 126207 if yyj1 == 0 && yyv1 == nil { 126208 if yyhl1 { 126209 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126210 } else { 126211 yyrl1 = 8 126212 } 126213 yyv1 = make([]*TaskGroup, yyrl1) 126214 yyc1 = true 126215 } 126216 yyh1.ElemContainerState(yyj1) 126217 126218 var yydb1 bool 126219 if yyj1 >= len(yyv1) { 126220 yyv1 = append(yyv1, nil) 126221 yyc1 = true 126222 126223 } 126224 if yydb1 { 126225 z.DecSwallow() 126226 } else { 126227 if r.TryDecodeAsNil() { 126228 yyv1[yyj1] = nil 126229 } else { 126230 if yyv1[yyj1] == nil { 126231 yyv1[yyj1] = new(TaskGroup) 126232 } 126233 yyv1[yyj1].CodecDecodeSelf(d) 126234 } 126235 126236 } 126237 126238 } 126239 if yyj1 < len(yyv1) { 126240 yyv1 = yyv1[:yyj1] 126241 yyc1 = true 126242 } else if yyj1 == 0 && yyv1 == nil { 126243 yyv1 = make([]*TaskGroup, 0) 126244 yyc1 = true 126245 } 126246 } 126247 yyh1.End() 126248 if yyc1 { 126249 *v = yyv1 126250 } 126251 } 126252 126253 func (x codecSelfer100) encMapstringTaskGroupSummary(v map[string]TaskGroupSummary, e *codec1978.Encoder) { 126254 var h codecSelfer100 126255 z, r := codec1978.GenHelperEncoder(e) 126256 _, _, _ = h, z, r 126257 r.WriteMapStart(len(v)) 126258 for yyk1, yyv1 := range v { 126259 r.WriteMapElemKey() 126260 if false { 126261 } else { 126262 if z.EncBasicHandle().StringToRaw { 126263 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 126264 } else { 126265 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 126266 } 126267 } 126268 r.WriteMapElemValue() 126269 yy3 := &yyv1 126270 yy3.CodecEncodeSelf(e) 126271 } 126272 r.WriteMapEnd() 126273 } 126274 126275 func (x codecSelfer100) decMapstringTaskGroupSummary(v *map[string]TaskGroupSummary, d *codec1978.Decoder) { 126276 var h codecSelfer100 126277 z, r := codec1978.GenHelperDecoder(d) 126278 _, _, _ = h, z, r 126279 126280 yyv1 := *v 126281 yyl1 := r.ReadMapStart() 126282 yybh1 := z.DecBasicHandle() 126283 if yyv1 == nil { 126284 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 64) 126285 yyv1 = make(map[string]TaskGroupSummary, yyrl1) 126286 *v = yyv1 126287 } 126288 var yymk1 string 126289 var yymv1 TaskGroupSummary 126290 var yymg1, yymdn1 bool 126291 if yybh1.MapValueReset { 126292 yymg1 = true 126293 } 126294 if yyl1 != 0 { 126295 yyhl1 := yyl1 > 0 126296 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 126297 r.ReadMapElemKey() 126298 if r.TryDecodeAsNil() { 126299 yymk1 = "" 126300 } else { 126301 yymk1 = (string)(r.DecodeString()) 126302 } 126303 126304 if yymg1 { 126305 yymv1 = yyv1[yymk1] 126306 } else { 126307 yymv1 = TaskGroupSummary{} 126308 } 126309 r.ReadMapElemValue() 126310 yymdn1 = false 126311 if r.TryDecodeAsNil() { 126312 yymdn1 = true 126313 } else { 126314 yymv1.CodecDecodeSelf(d) 126315 } 126316 126317 if yymdn1 { 126318 if yybh1.DeleteOnNilMapValue { 126319 delete(yyv1, yymk1) 126320 } else { 126321 yyv1[yymk1] = TaskGroupSummary{} 126322 } 126323 } else if yyv1 != nil { 126324 yyv1[yymk1] = yymv1 126325 } 126326 } 126327 } // else len==0: TODO: Should we clear map entries? 126328 r.ReadMapEnd() 126329 } 126330 126331 func (x codecSelfer100) encMapstringSlicePtrtoScalingEvent(v map[string][]*ScalingEvent, e *codec1978.Encoder) { 126332 var h codecSelfer100 126333 z, r := codec1978.GenHelperEncoder(e) 126334 _, _, _ = h, z, r 126335 r.WriteMapStart(len(v)) 126336 for yyk1, yyv1 := range v { 126337 r.WriteMapElemKey() 126338 if false { 126339 } else { 126340 if z.EncBasicHandle().StringToRaw { 126341 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 126342 } else { 126343 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 126344 } 126345 } 126346 r.WriteMapElemValue() 126347 if yyv1 == nil { 126348 r.EncodeNil() 126349 } else { 126350 if false { 126351 } else { 126352 h.encSlicePtrtoScalingEvent(([]*ScalingEvent)(yyv1), e) 126353 } 126354 } 126355 } 126356 r.WriteMapEnd() 126357 } 126358 126359 func (x codecSelfer100) decMapstringSlicePtrtoScalingEvent(v *map[string][]*ScalingEvent, d *codec1978.Decoder) { 126360 var h codecSelfer100 126361 z, r := codec1978.GenHelperDecoder(d) 126362 _, _, _ = h, z, r 126363 126364 yyv1 := *v 126365 yyl1 := r.ReadMapStart() 126366 yybh1 := z.DecBasicHandle() 126367 if yyv1 == nil { 126368 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) 126369 yyv1 = make(map[string][]*ScalingEvent, yyrl1) 126370 *v = yyv1 126371 } 126372 var yymk1 string 126373 var yymv1 []*ScalingEvent 126374 var yymg1, yymdn1 bool 126375 if yybh1.MapValueReset { 126376 yymg1 = true 126377 } 126378 if yyl1 != 0 { 126379 yyhl1 := yyl1 > 0 126380 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 126381 r.ReadMapElemKey() 126382 if r.TryDecodeAsNil() { 126383 yymk1 = "" 126384 } else { 126385 yymk1 = (string)(r.DecodeString()) 126386 } 126387 126388 if yymg1 { 126389 yymv1 = yyv1[yymk1] 126390 } else { 126391 yymv1 = nil 126392 } 126393 r.ReadMapElemValue() 126394 yymdn1 = false 126395 if r.TryDecodeAsNil() { 126396 yymdn1 = true 126397 } else { 126398 if false { 126399 } else { 126400 h.decSlicePtrtoScalingEvent((*[]*ScalingEvent)(&yymv1), d) 126401 } 126402 } 126403 126404 if yymdn1 { 126405 if yybh1.DeleteOnNilMapValue { 126406 delete(yyv1, yymk1) 126407 } else { 126408 yyv1[yymk1] = nil 126409 } 126410 } else if yyv1 != nil { 126411 yyv1[yymk1] = yymv1 126412 } 126413 } 126414 } // else len==0: TODO: Should we clear map entries? 126415 r.ReadMapEnd() 126416 } 126417 126418 func (x codecSelfer100) encSlicePtrtoTask(v []*Task, e *codec1978.Encoder) { 126419 var h codecSelfer100 126420 z, r := codec1978.GenHelperEncoder(e) 126421 _, _, _ = h, z, r 126422 r.WriteArrayStart(len(v)) 126423 for _, yyv1 := range v { 126424 r.WriteArrayElem() 126425 if yyv1 == nil { 126426 r.EncodeNil() 126427 } else { 126428 yyv1.CodecEncodeSelf(e) 126429 } 126430 } 126431 r.WriteArrayEnd() 126432 } 126433 126434 func (x codecSelfer100) decSlicePtrtoTask(v *[]*Task, d *codec1978.Decoder) { 126435 var h codecSelfer100 126436 z, r := codec1978.GenHelperDecoder(d) 126437 _, _, _ = h, z, r 126438 126439 yyv1 := *v 126440 yyh1, yyl1 := z.DecSliceHelperStart() 126441 var yyc1 bool 126442 _ = yyc1 126443 if yyl1 == 0 { 126444 if yyv1 == nil { 126445 yyv1 = []*Task{} 126446 yyc1 = true 126447 } else if len(yyv1) != 0 { 126448 yyv1 = yyv1[:0] 126449 yyc1 = true 126450 } 126451 } else { 126452 yyhl1 := yyl1 > 0 126453 var yyrl1 int 126454 _ = yyrl1 126455 if yyhl1 { 126456 if yyl1 > cap(yyv1) { 126457 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126458 if yyrl1 <= cap(yyv1) { 126459 yyv1 = yyv1[:yyrl1] 126460 } else { 126461 yyv1 = make([]*Task, yyrl1) 126462 } 126463 yyc1 = true 126464 } else if yyl1 != len(yyv1) { 126465 yyv1 = yyv1[:yyl1] 126466 yyc1 = true 126467 } 126468 } 126469 var yyj1 int 126470 // var yydn1 bool 126471 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 126472 if yyj1 == 0 && yyv1 == nil { 126473 if yyhl1 { 126474 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126475 } else { 126476 yyrl1 = 8 126477 } 126478 yyv1 = make([]*Task, yyrl1) 126479 yyc1 = true 126480 } 126481 yyh1.ElemContainerState(yyj1) 126482 126483 var yydb1 bool 126484 if yyj1 >= len(yyv1) { 126485 yyv1 = append(yyv1, nil) 126486 yyc1 = true 126487 126488 } 126489 if yydb1 { 126490 z.DecSwallow() 126491 } else { 126492 if r.TryDecodeAsNil() { 126493 yyv1[yyj1] = nil 126494 } else { 126495 if yyv1[yyj1] == nil { 126496 yyv1[yyj1] = new(Task) 126497 } 126498 yyv1[yyj1].CodecDecodeSelf(d) 126499 } 126500 126501 } 126502 126503 } 126504 if yyj1 < len(yyv1) { 126505 yyv1 = yyv1[:yyj1] 126506 yyc1 = true 126507 } else if yyj1 == 0 && yyv1 == nil { 126508 yyv1 = make([]*Task, 0) 126509 yyc1 = true 126510 } 126511 } 126512 yyh1.End() 126513 if yyc1 { 126514 *v = yyv1 126515 } 126516 } 126517 126518 func (x codecSelfer100) encSlicePtrtoService(v []*Service, e *codec1978.Encoder) { 126519 var h codecSelfer100 126520 z, r := codec1978.GenHelperEncoder(e) 126521 _, _, _ = h, z, r 126522 r.WriteArrayStart(len(v)) 126523 for _, yyv1 := range v { 126524 r.WriteArrayElem() 126525 if yyv1 == nil { 126526 r.EncodeNil() 126527 } else { 126528 yyv1.CodecEncodeSelf(e) 126529 } 126530 } 126531 r.WriteArrayEnd() 126532 } 126533 126534 func (x codecSelfer100) decSlicePtrtoService(v *[]*Service, d *codec1978.Decoder) { 126535 var h codecSelfer100 126536 z, r := codec1978.GenHelperDecoder(d) 126537 _, _, _ = h, z, r 126538 126539 yyv1 := *v 126540 yyh1, yyl1 := z.DecSliceHelperStart() 126541 var yyc1 bool 126542 _ = yyc1 126543 if yyl1 == 0 { 126544 if yyv1 == nil { 126545 yyv1 = []*Service{} 126546 yyc1 = true 126547 } else if len(yyv1) != 0 { 126548 yyv1 = yyv1[:0] 126549 yyc1 = true 126550 } 126551 } else { 126552 yyhl1 := yyl1 > 0 126553 var yyrl1 int 126554 _ = yyrl1 126555 if yyhl1 { 126556 if yyl1 > cap(yyv1) { 126557 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126558 if yyrl1 <= cap(yyv1) { 126559 yyv1 = yyv1[:yyrl1] 126560 } else { 126561 yyv1 = make([]*Service, yyrl1) 126562 } 126563 yyc1 = true 126564 } else if yyl1 != len(yyv1) { 126565 yyv1 = yyv1[:yyl1] 126566 yyc1 = true 126567 } 126568 } 126569 var yyj1 int 126570 // var yydn1 bool 126571 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 126572 if yyj1 == 0 && yyv1 == nil { 126573 if yyhl1 { 126574 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126575 } else { 126576 yyrl1 = 8 126577 } 126578 yyv1 = make([]*Service, yyrl1) 126579 yyc1 = true 126580 } 126581 yyh1.ElemContainerState(yyj1) 126582 126583 var yydb1 bool 126584 if yyj1 >= len(yyv1) { 126585 yyv1 = append(yyv1, nil) 126586 yyc1 = true 126587 126588 } 126589 if yydb1 { 126590 z.DecSwallow() 126591 } else { 126592 if r.TryDecodeAsNil() { 126593 yyv1[yyj1] = nil 126594 } else { 126595 if yyv1[yyj1] == nil { 126596 yyv1[yyj1] = new(Service) 126597 } 126598 yyv1[yyj1].CodecDecodeSelf(d) 126599 } 126600 126601 } 126602 126603 } 126604 if yyj1 < len(yyv1) { 126605 yyv1 = yyv1[:yyj1] 126606 yyc1 = true 126607 } else if yyj1 == 0 && yyv1 == nil { 126608 yyv1 = make([]*Service, 0) 126609 yyc1 = true 126610 } 126611 } 126612 yyh1.End() 126613 if yyc1 { 126614 *v = yyv1 126615 } 126616 } 126617 126618 func (x codecSelfer100) encMapstringPtrtoVolumeRequest(v map[string]*VolumeRequest, e *codec1978.Encoder) { 126619 var h codecSelfer100 126620 z, r := codec1978.GenHelperEncoder(e) 126621 _, _, _ = h, z, r 126622 r.WriteMapStart(len(v)) 126623 for yyk1, yyv1 := range v { 126624 r.WriteMapElemKey() 126625 if false { 126626 } else { 126627 if z.EncBasicHandle().StringToRaw { 126628 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 126629 } else { 126630 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 126631 } 126632 } 126633 r.WriteMapElemValue() 126634 if yyv1 == nil { 126635 r.EncodeNil() 126636 } else { 126637 yyv1.CodecEncodeSelf(e) 126638 } 126639 } 126640 r.WriteMapEnd() 126641 } 126642 126643 func (x codecSelfer100) decMapstringPtrtoVolumeRequest(v *map[string]*VolumeRequest, d *codec1978.Decoder) { 126644 var h codecSelfer100 126645 z, r := codec1978.GenHelperDecoder(d) 126646 _, _, _ = h, z, r 126647 126648 yyv1 := *v 126649 yyl1 := r.ReadMapStart() 126650 yybh1 := z.DecBasicHandle() 126651 if yyv1 == nil { 126652 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 126653 yyv1 = make(map[string]*VolumeRequest, yyrl1) 126654 *v = yyv1 126655 } 126656 var yymk1 string 126657 var yymv1 *VolumeRequest 126658 var yymg1, yymdn1, yyms1, yymok1 bool 126659 if yybh1.MapValueReset { 126660 yymg1 = true 126661 } 126662 if yyl1 != 0 { 126663 yyhl1 := yyl1 > 0 126664 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 126665 r.ReadMapElemKey() 126666 if r.TryDecodeAsNil() { 126667 yymk1 = "" 126668 } else { 126669 yymk1 = (string)(r.DecodeString()) 126670 } 126671 126672 yyms1 = true 126673 if yymg1 { 126674 yymv1, yymok1 = yyv1[yymk1] 126675 if yymok1 { 126676 yyms1 = false 126677 } 126678 } else { 126679 yymv1 = nil 126680 } 126681 r.ReadMapElemValue() 126682 yymdn1 = false 126683 if r.TryDecodeAsNil() { 126684 yymdn1 = true 126685 } else { 126686 if yymv1 == nil { 126687 yymv1 = new(VolumeRequest) 126688 } 126689 yymv1.CodecDecodeSelf(d) 126690 } 126691 126692 if yymdn1 { 126693 if yybh1.DeleteOnNilMapValue { 126694 delete(yyv1, yymk1) 126695 } else { 126696 yyv1[yymk1] = nil 126697 } 126698 } else if yyms1 && yyv1 != nil { 126699 yyv1[yymk1] = yymv1 126700 } 126701 } 126702 } // else len==0: TODO: Should we clear map entries? 126703 r.ReadMapEnd() 126704 } 126705 126706 func (x codecSelfer100) encSlicePtrtoTemplate(v []*Template, e *codec1978.Encoder) { 126707 var h codecSelfer100 126708 z, r := codec1978.GenHelperEncoder(e) 126709 _, _, _ = h, z, r 126710 r.WriteArrayStart(len(v)) 126711 for _, yyv1 := range v { 126712 r.WriteArrayElem() 126713 if yyv1 == nil { 126714 r.EncodeNil() 126715 } else { 126716 yyv1.CodecEncodeSelf(e) 126717 } 126718 } 126719 r.WriteArrayEnd() 126720 } 126721 126722 func (x codecSelfer100) decSlicePtrtoTemplate(v *[]*Template, d *codec1978.Decoder) { 126723 var h codecSelfer100 126724 z, r := codec1978.GenHelperDecoder(d) 126725 _, _, _ = h, z, r 126726 126727 yyv1 := *v 126728 yyh1, yyl1 := z.DecSliceHelperStart() 126729 var yyc1 bool 126730 _ = yyc1 126731 if yyl1 == 0 { 126732 if yyv1 == nil { 126733 yyv1 = []*Template{} 126734 yyc1 = true 126735 } else if len(yyv1) != 0 { 126736 yyv1 = yyv1[:0] 126737 yyc1 = true 126738 } 126739 } else { 126740 yyhl1 := yyl1 > 0 126741 var yyrl1 int 126742 _ = yyrl1 126743 if yyhl1 { 126744 if yyl1 > cap(yyv1) { 126745 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126746 if yyrl1 <= cap(yyv1) { 126747 yyv1 = yyv1[:yyrl1] 126748 } else { 126749 yyv1 = make([]*Template, yyrl1) 126750 } 126751 yyc1 = true 126752 } else if yyl1 != len(yyv1) { 126753 yyv1 = yyv1[:yyl1] 126754 yyc1 = true 126755 } 126756 } 126757 var yyj1 int 126758 // var yydn1 bool 126759 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 126760 if yyj1 == 0 && yyv1 == nil { 126761 if yyhl1 { 126762 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126763 } else { 126764 yyrl1 = 8 126765 } 126766 yyv1 = make([]*Template, yyrl1) 126767 yyc1 = true 126768 } 126769 yyh1.ElemContainerState(yyj1) 126770 126771 var yydb1 bool 126772 if yyj1 >= len(yyv1) { 126773 yyv1 = append(yyv1, nil) 126774 yyc1 = true 126775 126776 } 126777 if yydb1 { 126778 z.DecSwallow() 126779 } else { 126780 if r.TryDecodeAsNil() { 126781 yyv1[yyj1] = nil 126782 } else { 126783 if yyv1[yyj1] == nil { 126784 yyv1[yyj1] = new(Template) 126785 } 126786 yyv1[yyj1].CodecDecodeSelf(d) 126787 } 126788 126789 } 126790 126791 } 126792 if yyj1 < len(yyv1) { 126793 yyv1 = yyv1[:yyj1] 126794 yyc1 = true 126795 } else if yyj1 == 0 && yyv1 == nil { 126796 yyv1 = make([]*Template, 0) 126797 yyc1 = true 126798 } 126799 } 126800 yyh1.End() 126801 if yyc1 { 126802 *v = yyv1 126803 } 126804 } 126805 126806 func (x codecSelfer100) encSlicePtrtoTaskArtifact(v []*TaskArtifact, e *codec1978.Encoder) { 126807 var h codecSelfer100 126808 z, r := codec1978.GenHelperEncoder(e) 126809 _, _, _ = h, z, r 126810 r.WriteArrayStart(len(v)) 126811 for _, yyv1 := range v { 126812 r.WriteArrayElem() 126813 if yyv1 == nil { 126814 r.EncodeNil() 126815 } else { 126816 yyv1.CodecEncodeSelf(e) 126817 } 126818 } 126819 r.WriteArrayEnd() 126820 } 126821 126822 func (x codecSelfer100) decSlicePtrtoTaskArtifact(v *[]*TaskArtifact, d *codec1978.Decoder) { 126823 var h codecSelfer100 126824 z, r := codec1978.GenHelperDecoder(d) 126825 _, _, _ = h, z, r 126826 126827 yyv1 := *v 126828 yyh1, yyl1 := z.DecSliceHelperStart() 126829 var yyc1 bool 126830 _ = yyc1 126831 if yyl1 == 0 { 126832 if yyv1 == nil { 126833 yyv1 = []*TaskArtifact{} 126834 yyc1 = true 126835 } else if len(yyv1) != 0 { 126836 yyv1 = yyv1[:0] 126837 yyc1 = true 126838 } 126839 } else { 126840 yyhl1 := yyl1 > 0 126841 var yyrl1 int 126842 _ = yyrl1 126843 if yyhl1 { 126844 if yyl1 > cap(yyv1) { 126845 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126846 if yyrl1 <= cap(yyv1) { 126847 yyv1 = yyv1[:yyrl1] 126848 } else { 126849 yyv1 = make([]*TaskArtifact, yyrl1) 126850 } 126851 yyc1 = true 126852 } else if yyl1 != len(yyv1) { 126853 yyv1 = yyv1[:yyl1] 126854 yyc1 = true 126855 } 126856 } 126857 var yyj1 int 126858 // var yydn1 bool 126859 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 126860 if yyj1 == 0 && yyv1 == nil { 126861 if yyhl1 { 126862 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126863 } else { 126864 yyrl1 = 8 126865 } 126866 yyv1 = make([]*TaskArtifact, yyrl1) 126867 yyc1 = true 126868 } 126869 yyh1.ElemContainerState(yyj1) 126870 126871 var yydb1 bool 126872 if yyj1 >= len(yyv1) { 126873 yyv1 = append(yyv1, nil) 126874 yyc1 = true 126875 126876 } 126877 if yydb1 { 126878 z.DecSwallow() 126879 } else { 126880 if r.TryDecodeAsNil() { 126881 yyv1[yyj1] = nil 126882 } else { 126883 if yyv1[yyj1] == nil { 126884 yyv1[yyj1] = new(TaskArtifact) 126885 } 126886 yyv1[yyj1].CodecDecodeSelf(d) 126887 } 126888 126889 } 126890 126891 } 126892 if yyj1 < len(yyv1) { 126893 yyv1 = yyv1[:yyj1] 126894 yyc1 = true 126895 } else if yyj1 == 0 && yyv1 == nil { 126896 yyv1 = make([]*TaskArtifact, 0) 126897 yyc1 = true 126898 } 126899 } 126900 yyh1.End() 126901 if yyc1 { 126902 *v = yyv1 126903 } 126904 } 126905 126906 func (x codecSelfer100) encSlicePtrtoVolumeMount(v []*VolumeMount, e *codec1978.Encoder) { 126907 var h codecSelfer100 126908 z, r := codec1978.GenHelperEncoder(e) 126909 _, _, _ = h, z, r 126910 r.WriteArrayStart(len(v)) 126911 for _, yyv1 := range v { 126912 r.WriteArrayElem() 126913 if yyv1 == nil { 126914 r.EncodeNil() 126915 } else { 126916 yyv1.CodecEncodeSelf(e) 126917 } 126918 } 126919 r.WriteArrayEnd() 126920 } 126921 126922 func (x codecSelfer100) decSlicePtrtoVolumeMount(v *[]*VolumeMount, d *codec1978.Decoder) { 126923 var h codecSelfer100 126924 z, r := codec1978.GenHelperDecoder(d) 126925 _, _, _ = h, z, r 126926 126927 yyv1 := *v 126928 yyh1, yyl1 := z.DecSliceHelperStart() 126929 var yyc1 bool 126930 _ = yyc1 126931 if yyl1 == 0 { 126932 if yyv1 == nil { 126933 yyv1 = []*VolumeMount{} 126934 yyc1 = true 126935 } else if len(yyv1) != 0 { 126936 yyv1 = yyv1[:0] 126937 yyc1 = true 126938 } 126939 } else { 126940 yyhl1 := yyl1 > 0 126941 var yyrl1 int 126942 _ = yyrl1 126943 if yyhl1 { 126944 if yyl1 > cap(yyv1) { 126945 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126946 if yyrl1 <= cap(yyv1) { 126947 yyv1 = yyv1[:yyrl1] 126948 } else { 126949 yyv1 = make([]*VolumeMount, yyrl1) 126950 } 126951 yyc1 = true 126952 } else if yyl1 != len(yyv1) { 126953 yyv1 = yyv1[:yyl1] 126954 yyc1 = true 126955 } 126956 } 126957 var yyj1 int 126958 // var yydn1 bool 126959 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 126960 if yyj1 == 0 && yyv1 == nil { 126961 if yyhl1 { 126962 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126963 } else { 126964 yyrl1 = 8 126965 } 126966 yyv1 = make([]*VolumeMount, yyrl1) 126967 yyc1 = true 126968 } 126969 yyh1.ElemContainerState(yyj1) 126970 126971 var yydb1 bool 126972 if yyj1 >= len(yyv1) { 126973 yyv1 = append(yyv1, nil) 126974 yyc1 = true 126975 126976 } 126977 if yydb1 { 126978 z.DecSwallow() 126979 } else { 126980 if r.TryDecodeAsNil() { 126981 yyv1[yyj1] = nil 126982 } else { 126983 if yyv1[yyj1] == nil { 126984 yyv1[yyj1] = new(VolumeMount) 126985 } 126986 yyv1[yyj1].CodecDecodeSelf(d) 126987 } 126988 126989 } 126990 126991 } 126992 if yyj1 < len(yyv1) { 126993 yyv1 = yyv1[:yyj1] 126994 yyc1 = true 126995 } else if yyj1 == 0 && yyv1 == nil { 126996 yyv1 = make([]*VolumeMount, 0) 126997 yyc1 = true 126998 } 126999 } 127000 yyh1.End() 127001 if yyc1 { 127002 *v = yyv1 127003 } 127004 } 127005 127006 func (x codecSelfer100) encSlicePtrtoTaskEvent(v []*TaskEvent, e *codec1978.Encoder) { 127007 var h codecSelfer100 127008 z, r := codec1978.GenHelperEncoder(e) 127009 _, _, _ = h, z, r 127010 r.WriteArrayStart(len(v)) 127011 for _, yyv1 := range v { 127012 r.WriteArrayElem() 127013 if yyv1 == nil { 127014 r.EncodeNil() 127015 } else { 127016 yyv1.CodecEncodeSelf(e) 127017 } 127018 } 127019 r.WriteArrayEnd() 127020 } 127021 127022 func (x codecSelfer100) decSlicePtrtoTaskEvent(v *[]*TaskEvent, d *codec1978.Decoder) { 127023 var h codecSelfer100 127024 z, r := codec1978.GenHelperDecoder(d) 127025 _, _, _ = h, z, r 127026 127027 yyv1 := *v 127028 yyh1, yyl1 := z.DecSliceHelperStart() 127029 var yyc1 bool 127030 _ = yyc1 127031 if yyl1 == 0 { 127032 if yyv1 == nil { 127033 yyv1 = []*TaskEvent{} 127034 yyc1 = true 127035 } else if len(yyv1) != 0 { 127036 yyv1 = yyv1[:0] 127037 yyc1 = true 127038 } 127039 } else { 127040 yyhl1 := yyl1 > 0 127041 var yyrl1 int 127042 _ = yyrl1 127043 if yyhl1 { 127044 if yyl1 > cap(yyv1) { 127045 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127046 if yyrl1 <= cap(yyv1) { 127047 yyv1 = yyv1[:yyrl1] 127048 } else { 127049 yyv1 = make([]*TaskEvent, yyrl1) 127050 } 127051 yyc1 = true 127052 } else if yyl1 != len(yyv1) { 127053 yyv1 = yyv1[:yyl1] 127054 yyc1 = true 127055 } 127056 } 127057 var yyj1 int 127058 // var yydn1 bool 127059 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 127060 if yyj1 == 0 && yyv1 == nil { 127061 if yyhl1 { 127062 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127063 } else { 127064 yyrl1 = 8 127065 } 127066 yyv1 = make([]*TaskEvent, yyrl1) 127067 yyc1 = true 127068 } 127069 yyh1.ElemContainerState(yyj1) 127070 127071 var yydb1 bool 127072 if yyj1 >= len(yyv1) { 127073 yyv1 = append(yyv1, nil) 127074 yyc1 = true 127075 127076 } 127077 if yydb1 { 127078 z.DecSwallow() 127079 } else { 127080 if r.TryDecodeAsNil() { 127081 yyv1[yyj1] = nil 127082 } else { 127083 if yyv1[yyj1] == nil { 127084 yyv1[yyj1] = new(TaskEvent) 127085 } 127086 yyv1[yyj1].CodecDecodeSelf(d) 127087 } 127088 127089 } 127090 127091 } 127092 if yyj1 < len(yyv1) { 127093 yyv1 = yyv1[:yyj1] 127094 yyc1 = true 127095 } else if yyj1 == 0 && yyv1 == nil { 127096 yyv1 = make([]*TaskEvent, 0) 127097 yyc1 = true 127098 } 127099 } 127100 yyh1.End() 127101 if yyc1 { 127102 *v = yyv1 127103 } 127104 } 127105 127106 func (x codecSelfer100) encConstraints(v Constraints, e *codec1978.Encoder) { 127107 var h codecSelfer100 127108 z, r := codec1978.GenHelperEncoder(e) 127109 _, _, _ = h, z, r 127110 r.WriteArrayStart(len(v)) 127111 for _, yyv1 := range v { 127112 r.WriteArrayElem() 127113 if yyv1 == nil { 127114 r.EncodeNil() 127115 } else { 127116 yyv1.CodecEncodeSelf(e) 127117 } 127118 } 127119 r.WriteArrayEnd() 127120 } 127121 127122 func (x codecSelfer100) decConstraints(v *Constraints, d *codec1978.Decoder) { 127123 var h codecSelfer100 127124 z, r := codec1978.GenHelperDecoder(d) 127125 _, _, _ = h, z, r 127126 127127 yyv1 := *v 127128 yyh1, yyl1 := z.DecSliceHelperStart() 127129 var yyc1 bool 127130 _ = yyc1 127131 if yyl1 == 0 { 127132 if yyv1 == nil { 127133 yyv1 = []*Constraint{} 127134 yyc1 = true 127135 } else if len(yyv1) != 0 { 127136 yyv1 = yyv1[:0] 127137 yyc1 = true 127138 } 127139 } else { 127140 yyhl1 := yyl1 > 0 127141 var yyrl1 int 127142 _ = yyrl1 127143 if yyhl1 { 127144 if yyl1 > cap(yyv1) { 127145 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127146 if yyrl1 <= cap(yyv1) { 127147 yyv1 = yyv1[:yyrl1] 127148 } else { 127149 yyv1 = make([]*Constraint, yyrl1) 127150 } 127151 yyc1 = true 127152 } else if yyl1 != len(yyv1) { 127153 yyv1 = yyv1[:yyl1] 127154 yyc1 = true 127155 } 127156 } 127157 var yyj1 int 127158 // var yydn1 bool 127159 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 127160 if yyj1 == 0 && yyv1 == nil { 127161 if yyhl1 { 127162 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127163 } else { 127164 yyrl1 = 8 127165 } 127166 yyv1 = make([]*Constraint, yyrl1) 127167 yyc1 = true 127168 } 127169 yyh1.ElemContainerState(yyj1) 127170 127171 var yydb1 bool 127172 if yyj1 >= len(yyv1) { 127173 yyv1 = append(yyv1, nil) 127174 yyc1 = true 127175 127176 } 127177 if yydb1 { 127178 z.DecSwallow() 127179 } else { 127180 if r.TryDecodeAsNil() { 127181 yyv1[yyj1] = nil 127182 } else { 127183 if yyv1[yyj1] == nil { 127184 yyv1[yyj1] = new(Constraint) 127185 } 127186 yyv1[yyj1].CodecDecodeSelf(d) 127187 } 127188 127189 } 127190 127191 } 127192 if yyj1 < len(yyv1) { 127193 yyv1 = yyv1[:yyj1] 127194 yyc1 = true 127195 } else if yyj1 == 0 && yyv1 == nil { 127196 yyv1 = make([]*Constraint, 0) 127197 yyc1 = true 127198 } 127199 } 127200 yyh1.End() 127201 if yyc1 { 127202 *v = yyv1 127203 } 127204 } 127205 127206 func (x codecSelfer100) encSlicePtrtoSpreadTarget(v []*SpreadTarget, e *codec1978.Encoder) { 127207 var h codecSelfer100 127208 z, r := codec1978.GenHelperEncoder(e) 127209 _, _, _ = h, z, r 127210 r.WriteArrayStart(len(v)) 127211 for _, yyv1 := range v { 127212 r.WriteArrayElem() 127213 if yyv1 == nil { 127214 r.EncodeNil() 127215 } else { 127216 yyv1.CodecEncodeSelf(e) 127217 } 127218 } 127219 r.WriteArrayEnd() 127220 } 127221 127222 func (x codecSelfer100) decSlicePtrtoSpreadTarget(v *[]*SpreadTarget, d *codec1978.Decoder) { 127223 var h codecSelfer100 127224 z, r := codec1978.GenHelperDecoder(d) 127225 _, _, _ = h, z, r 127226 127227 yyv1 := *v 127228 yyh1, yyl1 := z.DecSliceHelperStart() 127229 var yyc1 bool 127230 _ = yyc1 127231 if yyl1 == 0 { 127232 if yyv1 == nil { 127233 yyv1 = []*SpreadTarget{} 127234 yyc1 = true 127235 } else if len(yyv1) != 0 { 127236 yyv1 = yyv1[:0] 127237 yyc1 = true 127238 } 127239 } else { 127240 yyhl1 := yyl1 > 0 127241 var yyrl1 int 127242 _ = yyrl1 127243 if yyhl1 { 127244 if yyl1 > cap(yyv1) { 127245 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127246 if yyrl1 <= cap(yyv1) { 127247 yyv1 = yyv1[:yyrl1] 127248 } else { 127249 yyv1 = make([]*SpreadTarget, yyrl1) 127250 } 127251 yyc1 = true 127252 } else if yyl1 != len(yyv1) { 127253 yyv1 = yyv1[:yyl1] 127254 yyc1 = true 127255 } 127256 } 127257 var yyj1 int 127258 // var yydn1 bool 127259 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 127260 if yyj1 == 0 && yyv1 == nil { 127261 if yyhl1 { 127262 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127263 } else { 127264 yyrl1 = 8 127265 } 127266 yyv1 = make([]*SpreadTarget, yyrl1) 127267 yyc1 = true 127268 } 127269 yyh1.ElemContainerState(yyj1) 127270 127271 var yydb1 bool 127272 if yyj1 >= len(yyv1) { 127273 yyv1 = append(yyv1, nil) 127274 yyc1 = true 127275 127276 } 127277 if yydb1 { 127278 z.DecSwallow() 127279 } else { 127280 if r.TryDecodeAsNil() { 127281 yyv1[yyj1] = nil 127282 } else { 127283 if yyv1[yyj1] == nil { 127284 yyv1[yyj1] = new(SpreadTarget) 127285 } 127286 yyv1[yyj1].CodecDecodeSelf(d) 127287 } 127288 127289 } 127290 127291 } 127292 if yyj1 < len(yyv1) { 127293 yyv1 = yyv1[:yyj1] 127294 yyc1 = true 127295 } else if yyj1 == 0 && yyv1 == nil { 127296 yyv1 = make([]*SpreadTarget, 0) 127297 yyc1 = true 127298 } 127299 } 127300 yyh1.End() 127301 if yyc1 { 127302 *v = yyv1 127303 } 127304 } 127305 127306 func (x codecSelfer100) encAffinities(v Affinities, e *codec1978.Encoder) { 127307 var h codecSelfer100 127308 z, r := codec1978.GenHelperEncoder(e) 127309 _, _, _ = h, z, r 127310 r.WriteArrayStart(len(v)) 127311 for _, yyv1 := range v { 127312 r.WriteArrayElem() 127313 if yyv1 == nil { 127314 r.EncodeNil() 127315 } else { 127316 yyv1.CodecEncodeSelf(e) 127317 } 127318 } 127319 r.WriteArrayEnd() 127320 } 127321 127322 func (x codecSelfer100) decAffinities(v *Affinities, d *codec1978.Decoder) { 127323 var h codecSelfer100 127324 z, r := codec1978.GenHelperDecoder(d) 127325 _, _, _ = h, z, r 127326 127327 yyv1 := *v 127328 yyh1, yyl1 := z.DecSliceHelperStart() 127329 var yyc1 bool 127330 _ = yyc1 127331 if yyl1 == 0 { 127332 if yyv1 == nil { 127333 yyv1 = []*Affinity{} 127334 yyc1 = true 127335 } else if len(yyv1) != 0 { 127336 yyv1 = yyv1[:0] 127337 yyc1 = true 127338 } 127339 } else { 127340 yyhl1 := yyl1 > 0 127341 var yyrl1 int 127342 _ = yyrl1 127343 if yyhl1 { 127344 if yyl1 > cap(yyv1) { 127345 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127346 if yyrl1 <= cap(yyv1) { 127347 yyv1 = yyv1[:yyrl1] 127348 } else { 127349 yyv1 = make([]*Affinity, yyrl1) 127350 } 127351 yyc1 = true 127352 } else if yyl1 != len(yyv1) { 127353 yyv1 = yyv1[:yyl1] 127354 yyc1 = true 127355 } 127356 } 127357 var yyj1 int 127358 // var yydn1 bool 127359 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 127360 if yyj1 == 0 && yyv1 == nil { 127361 if yyhl1 { 127362 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127363 } else { 127364 yyrl1 = 8 127365 } 127366 yyv1 = make([]*Affinity, yyrl1) 127367 yyc1 = true 127368 } 127369 yyh1.ElemContainerState(yyj1) 127370 127371 var yydb1 bool 127372 if yyj1 >= len(yyv1) { 127373 yyv1 = append(yyv1, nil) 127374 yyc1 = true 127375 127376 } 127377 if yydb1 { 127378 z.DecSwallow() 127379 } else { 127380 if r.TryDecodeAsNil() { 127381 yyv1[yyj1] = nil 127382 } else { 127383 if yyv1[yyj1] == nil { 127384 yyv1[yyj1] = new(Affinity) 127385 } 127386 yyv1[yyj1].CodecDecodeSelf(d) 127387 } 127388 127389 } 127390 127391 } 127392 if yyj1 < len(yyv1) { 127393 yyv1 = yyv1[:yyj1] 127394 yyc1 = true 127395 } else if yyj1 == 0 && yyv1 == nil { 127396 yyv1 = make([]*Affinity, 0) 127397 yyc1 = true 127398 } 127399 } 127400 yyh1.End() 127401 if yyc1 { 127402 *v = yyv1 127403 } 127404 } 127405 127406 func (x codecSelfer100) encMapstringPtrtoDeploymentState(v map[string]*DeploymentState, e *codec1978.Encoder) { 127407 var h codecSelfer100 127408 z, r := codec1978.GenHelperEncoder(e) 127409 _, _, _ = h, z, r 127410 r.WriteMapStart(len(v)) 127411 for yyk1, yyv1 := range v { 127412 r.WriteMapElemKey() 127413 if false { 127414 } else { 127415 if z.EncBasicHandle().StringToRaw { 127416 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 127417 } else { 127418 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 127419 } 127420 } 127421 r.WriteMapElemValue() 127422 if yyv1 == nil { 127423 r.EncodeNil() 127424 } else { 127425 yyv1.CodecEncodeSelf(e) 127426 } 127427 } 127428 r.WriteMapEnd() 127429 } 127430 127431 func (x codecSelfer100) decMapstringPtrtoDeploymentState(v *map[string]*DeploymentState, d *codec1978.Decoder) { 127432 var h codecSelfer100 127433 z, r := codec1978.GenHelperDecoder(d) 127434 _, _, _ = h, z, r 127435 127436 yyv1 := *v 127437 yyl1 := r.ReadMapStart() 127438 yybh1 := z.DecBasicHandle() 127439 if yyv1 == nil { 127440 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 127441 yyv1 = make(map[string]*DeploymentState, yyrl1) 127442 *v = yyv1 127443 } 127444 var yymk1 string 127445 var yymv1 *DeploymentState 127446 var yymg1, yymdn1, yyms1, yymok1 bool 127447 if yybh1.MapValueReset { 127448 yymg1 = true 127449 } 127450 if yyl1 != 0 { 127451 yyhl1 := yyl1 > 0 127452 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 127453 r.ReadMapElemKey() 127454 if r.TryDecodeAsNil() { 127455 yymk1 = "" 127456 } else { 127457 yymk1 = (string)(r.DecodeString()) 127458 } 127459 127460 yyms1 = true 127461 if yymg1 { 127462 yymv1, yymok1 = yyv1[yymk1] 127463 if yymok1 { 127464 yyms1 = false 127465 } 127466 } else { 127467 yymv1 = nil 127468 } 127469 r.ReadMapElemValue() 127470 yymdn1 = false 127471 if r.TryDecodeAsNil() { 127472 yymdn1 = true 127473 } else { 127474 if yymv1 == nil { 127475 yymv1 = new(DeploymentState) 127476 } 127477 yymv1.CodecDecodeSelf(d) 127478 } 127479 127480 if yymdn1 { 127481 if yybh1.DeleteOnNilMapValue { 127482 delete(yyv1, yymk1) 127483 } else { 127484 yyv1[yymk1] = nil 127485 } 127486 } else if yyms1 && yyv1 != nil { 127487 yyv1[yymk1] = yymv1 127488 } 127489 } 127490 } // else len==0: TODO: Should we clear map entries? 127491 r.ReadMapEnd() 127492 } 127493 127494 func (x codecSelfer100) encSlicePtrtoRescheduleEvent(v []*RescheduleEvent, e *codec1978.Encoder) { 127495 var h codecSelfer100 127496 z, r := codec1978.GenHelperEncoder(e) 127497 _, _, _ = h, z, r 127498 r.WriteArrayStart(len(v)) 127499 for _, yyv1 := range v { 127500 r.WriteArrayElem() 127501 if yyv1 == nil { 127502 r.EncodeNil() 127503 } else { 127504 yyv1.CodecEncodeSelf(e) 127505 } 127506 } 127507 r.WriteArrayEnd() 127508 } 127509 127510 func (x codecSelfer100) decSlicePtrtoRescheduleEvent(v *[]*RescheduleEvent, d *codec1978.Decoder) { 127511 var h codecSelfer100 127512 z, r := codec1978.GenHelperDecoder(d) 127513 _, _, _ = h, z, r 127514 127515 yyv1 := *v 127516 yyh1, yyl1 := z.DecSliceHelperStart() 127517 var yyc1 bool 127518 _ = yyc1 127519 if yyl1 == 0 { 127520 if yyv1 == nil { 127521 yyv1 = []*RescheduleEvent{} 127522 yyc1 = true 127523 } else if len(yyv1) != 0 { 127524 yyv1 = yyv1[:0] 127525 yyc1 = true 127526 } 127527 } else { 127528 yyhl1 := yyl1 > 0 127529 var yyrl1 int 127530 _ = yyrl1 127531 if yyhl1 { 127532 if yyl1 > cap(yyv1) { 127533 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127534 if yyrl1 <= cap(yyv1) { 127535 yyv1 = yyv1[:yyrl1] 127536 } else { 127537 yyv1 = make([]*RescheduleEvent, yyrl1) 127538 } 127539 yyc1 = true 127540 } else if yyl1 != len(yyv1) { 127541 yyv1 = yyv1[:yyl1] 127542 yyc1 = true 127543 } 127544 } 127545 var yyj1 int 127546 // var yydn1 bool 127547 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 127548 if yyj1 == 0 && yyv1 == nil { 127549 if yyhl1 { 127550 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127551 } else { 127552 yyrl1 = 8 127553 } 127554 yyv1 = make([]*RescheduleEvent, yyrl1) 127555 yyc1 = true 127556 } 127557 yyh1.ElemContainerState(yyj1) 127558 127559 var yydb1 bool 127560 if yyj1 >= len(yyv1) { 127561 yyv1 = append(yyv1, nil) 127562 yyc1 = true 127563 127564 } 127565 if yydb1 { 127566 z.DecSwallow() 127567 } else { 127568 if r.TryDecodeAsNil() { 127569 yyv1[yyj1] = nil 127570 } else { 127571 if yyv1[yyj1] == nil { 127572 yyv1[yyj1] = new(RescheduleEvent) 127573 } 127574 yyv1[yyj1].CodecDecodeSelf(d) 127575 } 127576 127577 } 127578 127579 } 127580 if yyj1 < len(yyv1) { 127581 yyv1 = yyv1[:yyj1] 127582 yyc1 = true 127583 } else if yyj1 == 0 && yyv1 == nil { 127584 yyv1 = make([]*RescheduleEvent, 0) 127585 yyc1 = true 127586 } 127587 } 127588 yyh1.End() 127589 if yyc1 { 127590 *v = yyv1 127591 } 127592 } 127593 127594 func (x codecSelfer100) encMapstringPtrtoResources(v map[string]*Resources, e *codec1978.Encoder) { 127595 var h codecSelfer100 127596 z, r := codec1978.GenHelperEncoder(e) 127597 _, _, _ = h, z, r 127598 r.WriteMapStart(len(v)) 127599 for yyk1, yyv1 := range v { 127600 r.WriteMapElemKey() 127601 if false { 127602 } else { 127603 if z.EncBasicHandle().StringToRaw { 127604 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 127605 } else { 127606 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 127607 } 127608 } 127609 r.WriteMapElemValue() 127610 if yyv1 == nil { 127611 r.EncodeNil() 127612 } else { 127613 yyv1.CodecEncodeSelf(e) 127614 } 127615 } 127616 r.WriteMapEnd() 127617 } 127618 127619 func (x codecSelfer100) decMapstringPtrtoResources(v *map[string]*Resources, d *codec1978.Decoder) { 127620 var h codecSelfer100 127621 z, r := codec1978.GenHelperDecoder(d) 127622 _, _, _ = h, z, r 127623 127624 yyv1 := *v 127625 yyl1 := r.ReadMapStart() 127626 yybh1 := z.DecBasicHandle() 127627 if yyv1 == nil { 127628 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 127629 yyv1 = make(map[string]*Resources, yyrl1) 127630 *v = yyv1 127631 } 127632 var yymk1 string 127633 var yymv1 *Resources 127634 var yymg1, yymdn1, yyms1, yymok1 bool 127635 if yybh1.MapValueReset { 127636 yymg1 = true 127637 } 127638 if yyl1 != 0 { 127639 yyhl1 := yyl1 > 0 127640 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 127641 r.ReadMapElemKey() 127642 if r.TryDecodeAsNil() { 127643 yymk1 = "" 127644 } else { 127645 yymk1 = (string)(r.DecodeString()) 127646 } 127647 127648 yyms1 = true 127649 if yymg1 { 127650 yymv1, yymok1 = yyv1[yymk1] 127651 if yymok1 { 127652 yyms1 = false 127653 } 127654 } else { 127655 yymv1 = nil 127656 } 127657 r.ReadMapElemValue() 127658 yymdn1 = false 127659 if r.TryDecodeAsNil() { 127660 yymdn1 = true 127661 } else { 127662 if yymv1 == nil { 127663 yymv1 = new(Resources) 127664 } 127665 yymv1.CodecDecodeSelf(d) 127666 } 127667 127668 if yymdn1 { 127669 if yybh1.DeleteOnNilMapValue { 127670 delete(yyv1, yymk1) 127671 } else { 127672 yyv1[yymk1] = nil 127673 } 127674 } else if yyms1 && yyv1 != nil { 127675 yyv1[yymk1] = yymv1 127676 } 127677 } 127678 } // else len==0: TODO: Should we clear map entries? 127679 r.ReadMapEnd() 127680 } 127681 127682 func (x codecSelfer100) encMapstringPtrtoTaskState(v map[string]*TaskState, e *codec1978.Encoder) { 127683 var h codecSelfer100 127684 z, r := codec1978.GenHelperEncoder(e) 127685 _, _, _ = h, z, r 127686 r.WriteMapStart(len(v)) 127687 for yyk1, yyv1 := range v { 127688 r.WriteMapElemKey() 127689 if false { 127690 } else { 127691 if z.EncBasicHandle().StringToRaw { 127692 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 127693 } else { 127694 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 127695 } 127696 } 127697 r.WriteMapElemValue() 127698 if yyv1 == nil { 127699 r.EncodeNil() 127700 } else { 127701 yyv1.CodecEncodeSelf(e) 127702 } 127703 } 127704 r.WriteMapEnd() 127705 } 127706 127707 func (x codecSelfer100) decMapstringPtrtoTaskState(v *map[string]*TaskState, d *codec1978.Decoder) { 127708 var h codecSelfer100 127709 z, r := codec1978.GenHelperDecoder(d) 127710 _, _, _ = h, z, r 127711 127712 yyv1 := *v 127713 yyl1 := r.ReadMapStart() 127714 yybh1 := z.DecBasicHandle() 127715 if yyv1 == nil { 127716 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 127717 yyv1 = make(map[string]*TaskState, yyrl1) 127718 *v = yyv1 127719 } 127720 var yymk1 string 127721 var yymv1 *TaskState 127722 var yymg1, yymdn1, yyms1, yymok1 bool 127723 if yybh1.MapValueReset { 127724 yymg1 = true 127725 } 127726 if yyl1 != 0 { 127727 yyhl1 := yyl1 > 0 127728 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 127729 r.ReadMapElemKey() 127730 if r.TryDecodeAsNil() { 127731 yymk1 = "" 127732 } else { 127733 yymk1 = (string)(r.DecodeString()) 127734 } 127735 127736 yyms1 = true 127737 if yymg1 { 127738 yymv1, yymok1 = yyv1[yymk1] 127739 if yymok1 { 127740 yyms1 = false 127741 } 127742 } else { 127743 yymv1 = nil 127744 } 127745 r.ReadMapElemValue() 127746 yymdn1 = false 127747 if r.TryDecodeAsNil() { 127748 yymdn1 = true 127749 } else { 127750 if yymv1 == nil { 127751 yymv1 = new(TaskState) 127752 } 127753 yymv1.CodecDecodeSelf(d) 127754 } 127755 127756 if yymdn1 { 127757 if yybh1.DeleteOnNilMapValue { 127758 delete(yyv1, yymk1) 127759 } else { 127760 yyv1[yymk1] = nil 127761 } 127762 } else if yyms1 && yyv1 != nil { 127763 yyv1[yymk1] = yymv1 127764 } 127765 } 127766 } // else len==0: TODO: Should we clear map entries? 127767 r.ReadMapEnd() 127768 } 127769 127770 func (x codecSelfer100) encSlicePtrtoNodeScoreMeta(v []*NodeScoreMeta, e *codec1978.Encoder) { 127771 var h codecSelfer100 127772 z, r := codec1978.GenHelperEncoder(e) 127773 _, _, _ = h, z, r 127774 r.WriteArrayStart(len(v)) 127775 for _, yyv1 := range v { 127776 r.WriteArrayElem() 127777 if yyv1 == nil { 127778 r.EncodeNil() 127779 } else { 127780 yyv1.CodecEncodeSelf(e) 127781 } 127782 } 127783 r.WriteArrayEnd() 127784 } 127785 127786 func (x codecSelfer100) decSlicePtrtoNodeScoreMeta(v *[]*NodeScoreMeta, d *codec1978.Decoder) { 127787 var h codecSelfer100 127788 z, r := codec1978.GenHelperDecoder(d) 127789 _, _, _ = h, z, r 127790 127791 yyv1 := *v 127792 yyh1, yyl1 := z.DecSliceHelperStart() 127793 var yyc1 bool 127794 _ = yyc1 127795 if yyl1 == 0 { 127796 if yyv1 == nil { 127797 yyv1 = []*NodeScoreMeta{} 127798 yyc1 = true 127799 } else if len(yyv1) != 0 { 127800 yyv1 = yyv1[:0] 127801 yyc1 = true 127802 } 127803 } else { 127804 yyhl1 := yyl1 > 0 127805 var yyrl1 int 127806 _ = yyrl1 127807 if yyhl1 { 127808 if yyl1 > cap(yyv1) { 127809 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127810 if yyrl1 <= cap(yyv1) { 127811 yyv1 = yyv1[:yyrl1] 127812 } else { 127813 yyv1 = make([]*NodeScoreMeta, yyrl1) 127814 } 127815 yyc1 = true 127816 } else if yyl1 != len(yyv1) { 127817 yyv1 = yyv1[:yyl1] 127818 yyc1 = true 127819 } 127820 } 127821 var yyj1 int 127822 // var yydn1 bool 127823 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 127824 if yyj1 == 0 && yyv1 == nil { 127825 if yyhl1 { 127826 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127827 } else { 127828 yyrl1 = 8 127829 } 127830 yyv1 = make([]*NodeScoreMeta, yyrl1) 127831 yyc1 = true 127832 } 127833 yyh1.ElemContainerState(yyj1) 127834 127835 var yydb1 bool 127836 if yyj1 >= len(yyv1) { 127837 yyv1 = append(yyv1, nil) 127838 yyc1 = true 127839 127840 } 127841 if yydb1 { 127842 z.DecSwallow() 127843 } else { 127844 if r.TryDecodeAsNil() { 127845 yyv1[yyj1] = nil 127846 } else { 127847 if yyv1[yyj1] == nil { 127848 yyv1[yyj1] = new(NodeScoreMeta) 127849 } 127850 yyv1[yyj1].CodecDecodeSelf(d) 127851 } 127852 127853 } 127854 127855 } 127856 if yyj1 < len(yyv1) { 127857 yyv1 = yyv1[:yyj1] 127858 yyc1 = true 127859 } else if yyj1 == 0 && yyv1 == nil { 127860 yyv1 = make([]*NodeScoreMeta, 0) 127861 yyc1 = true 127862 } 127863 } 127864 yyh1.End() 127865 if yyc1 { 127866 *v = yyv1 127867 } 127868 } 127869 127870 func (x codecSelfer100) encMapstringSlicePtrtoAllocation(v map[string][]*Allocation, e *codec1978.Encoder) { 127871 var h codecSelfer100 127872 z, r := codec1978.GenHelperEncoder(e) 127873 _, _, _ = h, z, r 127874 r.WriteMapStart(len(v)) 127875 for yyk1, yyv1 := range v { 127876 r.WriteMapElemKey() 127877 if false { 127878 } else { 127879 if z.EncBasicHandle().StringToRaw { 127880 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 127881 } else { 127882 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 127883 } 127884 } 127885 r.WriteMapElemValue() 127886 if yyv1 == nil { 127887 r.EncodeNil() 127888 } else { 127889 if false { 127890 } else { 127891 h.encSlicePtrtoAllocation(([]*Allocation)(yyv1), e) 127892 } 127893 } 127894 } 127895 r.WriteMapEnd() 127896 } 127897 127898 func (x codecSelfer100) decMapstringSlicePtrtoAllocation(v *map[string][]*Allocation, d *codec1978.Decoder) { 127899 var h codecSelfer100 127900 z, r := codec1978.GenHelperDecoder(d) 127901 _, _, _ = h, z, r 127902 127903 yyv1 := *v 127904 yyl1 := r.ReadMapStart() 127905 yybh1 := z.DecBasicHandle() 127906 if yyv1 == nil { 127907 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) 127908 yyv1 = make(map[string][]*Allocation, yyrl1) 127909 *v = yyv1 127910 } 127911 var yymk1 string 127912 var yymv1 []*Allocation 127913 var yymg1, yymdn1 bool 127914 if yybh1.MapValueReset { 127915 yymg1 = true 127916 } 127917 if yyl1 != 0 { 127918 yyhl1 := yyl1 > 0 127919 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 127920 r.ReadMapElemKey() 127921 if r.TryDecodeAsNil() { 127922 yymk1 = "" 127923 } else { 127924 yymk1 = (string)(r.DecodeString()) 127925 } 127926 127927 if yymg1 { 127928 yymv1 = yyv1[yymk1] 127929 } else { 127930 yymv1 = nil 127931 } 127932 r.ReadMapElemValue() 127933 yymdn1 = false 127934 if r.TryDecodeAsNil() { 127935 yymdn1 = true 127936 } else { 127937 if false { 127938 } else { 127939 h.decSlicePtrtoAllocation((*[]*Allocation)(&yymv1), d) 127940 } 127941 } 127942 127943 if yymdn1 { 127944 if yybh1.DeleteOnNilMapValue { 127945 delete(yyv1, yymk1) 127946 } else { 127947 yyv1[yymk1] = nil 127948 } 127949 } else if yyv1 != nil { 127950 yyv1[yymk1] = yymv1 127951 } 127952 } 127953 } // else len==0: TODO: Should we clear map entries? 127954 r.ReadMapEnd() 127955 } 127956 127957 func (x codecSelfer100) encMapstringPtrtoDesiredUpdates(v map[string]*DesiredUpdates, e *codec1978.Encoder) { 127958 var h codecSelfer100 127959 z, r := codec1978.GenHelperEncoder(e) 127960 _, _, _ = h, z, r 127961 r.WriteMapStart(len(v)) 127962 for yyk1, yyv1 := range v { 127963 r.WriteMapElemKey() 127964 if false { 127965 } else { 127966 if z.EncBasicHandle().StringToRaw { 127967 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 127968 } else { 127969 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 127970 } 127971 } 127972 r.WriteMapElemValue() 127973 if yyv1 == nil { 127974 r.EncodeNil() 127975 } else { 127976 yyv1.CodecEncodeSelf(e) 127977 } 127978 } 127979 r.WriteMapEnd() 127980 } 127981 127982 func (x codecSelfer100) decMapstringPtrtoDesiredUpdates(v *map[string]*DesiredUpdates, d *codec1978.Decoder) { 127983 var h codecSelfer100 127984 z, r := codec1978.GenHelperDecoder(d) 127985 _, _, _ = h, z, r 127986 127987 yyv1 := *v 127988 yyl1 := r.ReadMapStart() 127989 yybh1 := z.DecBasicHandle() 127990 if yyv1 == nil { 127991 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 127992 yyv1 = make(map[string]*DesiredUpdates, yyrl1) 127993 *v = yyv1 127994 } 127995 var yymk1 string 127996 var yymv1 *DesiredUpdates 127997 var yymg1, yymdn1, yyms1, yymok1 bool 127998 if yybh1.MapValueReset { 127999 yymg1 = true 128000 } 128001 if yyl1 != 0 { 128002 yyhl1 := yyl1 > 0 128003 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 128004 r.ReadMapElemKey() 128005 if r.TryDecodeAsNil() { 128006 yymk1 = "" 128007 } else { 128008 yymk1 = (string)(r.DecodeString()) 128009 } 128010 128011 yyms1 = true 128012 if yymg1 { 128013 yymv1, yymok1 = yyv1[yymk1] 128014 if yymok1 { 128015 yyms1 = false 128016 } 128017 } else { 128018 yymv1 = nil 128019 } 128020 r.ReadMapElemValue() 128021 yymdn1 = false 128022 if r.TryDecodeAsNil() { 128023 yymdn1 = true 128024 } else { 128025 if yymv1 == nil { 128026 yymv1 = new(DesiredUpdates) 128027 } 128028 yymv1.CodecDecodeSelf(d) 128029 } 128030 128031 if yymdn1 { 128032 if yybh1.DeleteOnNilMapValue { 128033 delete(yyv1, yymk1) 128034 } else { 128035 yyv1[yymk1] = nil 128036 } 128037 } else if yyms1 && yyv1 != nil { 128038 yyv1[yymk1] = yymv1 128039 } 128040 } 128041 } // else len==0: TODO: Should we clear map entries? 128042 r.ReadMapEnd() 128043 } 128044 128045 func (x codecSelfer100) encSlicePtrtoACLPolicyListStub(v []*ACLPolicyListStub, e *codec1978.Encoder) { 128046 var h codecSelfer100 128047 z, r := codec1978.GenHelperEncoder(e) 128048 _, _, _ = h, z, r 128049 r.WriteArrayStart(len(v)) 128050 for _, yyv1 := range v { 128051 r.WriteArrayElem() 128052 if yyv1 == nil { 128053 r.EncodeNil() 128054 } else { 128055 yyv1.CodecEncodeSelf(e) 128056 } 128057 } 128058 r.WriteArrayEnd() 128059 } 128060 128061 func (x codecSelfer100) decSlicePtrtoACLPolicyListStub(v *[]*ACLPolicyListStub, d *codec1978.Decoder) { 128062 var h codecSelfer100 128063 z, r := codec1978.GenHelperDecoder(d) 128064 _, _, _ = h, z, r 128065 128066 yyv1 := *v 128067 yyh1, yyl1 := z.DecSliceHelperStart() 128068 var yyc1 bool 128069 _ = yyc1 128070 if yyl1 == 0 { 128071 if yyv1 == nil { 128072 yyv1 = []*ACLPolicyListStub{} 128073 yyc1 = true 128074 } else if len(yyv1) != 0 { 128075 yyv1 = yyv1[:0] 128076 yyc1 = true 128077 } 128078 } else { 128079 yyhl1 := yyl1 > 0 128080 var yyrl1 int 128081 _ = yyrl1 128082 if yyhl1 { 128083 if yyl1 > cap(yyv1) { 128084 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128085 if yyrl1 <= cap(yyv1) { 128086 yyv1 = yyv1[:yyrl1] 128087 } else { 128088 yyv1 = make([]*ACLPolicyListStub, yyrl1) 128089 } 128090 yyc1 = true 128091 } else if yyl1 != len(yyv1) { 128092 yyv1 = yyv1[:yyl1] 128093 yyc1 = true 128094 } 128095 } 128096 var yyj1 int 128097 // var yydn1 bool 128098 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 128099 if yyj1 == 0 && yyv1 == nil { 128100 if yyhl1 { 128101 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128102 } else { 128103 yyrl1 = 8 128104 } 128105 yyv1 = make([]*ACLPolicyListStub, yyrl1) 128106 yyc1 = true 128107 } 128108 yyh1.ElemContainerState(yyj1) 128109 128110 var yydb1 bool 128111 if yyj1 >= len(yyv1) { 128112 yyv1 = append(yyv1, nil) 128113 yyc1 = true 128114 128115 } 128116 if yydb1 { 128117 z.DecSwallow() 128118 } else { 128119 if r.TryDecodeAsNil() { 128120 yyv1[yyj1] = nil 128121 } else { 128122 if yyv1[yyj1] == nil { 128123 yyv1[yyj1] = new(ACLPolicyListStub) 128124 } 128125 yyv1[yyj1].CodecDecodeSelf(d) 128126 } 128127 128128 } 128129 128130 } 128131 if yyj1 < len(yyv1) { 128132 yyv1 = yyv1[:yyj1] 128133 yyc1 = true 128134 } else if yyj1 == 0 && yyv1 == nil { 128135 yyv1 = make([]*ACLPolicyListStub, 0) 128136 yyc1 = true 128137 } 128138 } 128139 yyh1.End() 128140 if yyc1 { 128141 *v = yyv1 128142 } 128143 } 128144 128145 func (x codecSelfer100) encMapstringPtrtoACLPolicy(v map[string]*ACLPolicy, e *codec1978.Encoder) { 128146 var h codecSelfer100 128147 z, r := codec1978.GenHelperEncoder(e) 128148 _, _, _ = h, z, r 128149 r.WriteMapStart(len(v)) 128150 for yyk1, yyv1 := range v { 128151 r.WriteMapElemKey() 128152 if false { 128153 } else { 128154 if z.EncBasicHandle().StringToRaw { 128155 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 128156 } else { 128157 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 128158 } 128159 } 128160 r.WriteMapElemValue() 128161 if yyv1 == nil { 128162 r.EncodeNil() 128163 } else { 128164 yyv1.CodecEncodeSelf(e) 128165 } 128166 } 128167 r.WriteMapEnd() 128168 } 128169 128170 func (x codecSelfer100) decMapstringPtrtoACLPolicy(v *map[string]*ACLPolicy, d *codec1978.Decoder) { 128171 var h codecSelfer100 128172 z, r := codec1978.GenHelperDecoder(d) 128173 _, _, _ = h, z, r 128174 128175 yyv1 := *v 128176 yyl1 := r.ReadMapStart() 128177 yybh1 := z.DecBasicHandle() 128178 if yyv1 == nil { 128179 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 128180 yyv1 = make(map[string]*ACLPolicy, yyrl1) 128181 *v = yyv1 128182 } 128183 var yymk1 string 128184 var yymv1 *ACLPolicy 128185 var yymg1, yymdn1, yyms1, yymok1 bool 128186 if yybh1.MapValueReset { 128187 yymg1 = true 128188 } 128189 if yyl1 != 0 { 128190 yyhl1 := yyl1 > 0 128191 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 128192 r.ReadMapElemKey() 128193 if r.TryDecodeAsNil() { 128194 yymk1 = "" 128195 } else { 128196 yymk1 = (string)(r.DecodeString()) 128197 } 128198 128199 yyms1 = true 128200 if yymg1 { 128201 yymv1, yymok1 = yyv1[yymk1] 128202 if yymok1 { 128203 yyms1 = false 128204 } 128205 } else { 128206 yymv1 = nil 128207 } 128208 r.ReadMapElemValue() 128209 yymdn1 = false 128210 if r.TryDecodeAsNil() { 128211 yymdn1 = true 128212 } else { 128213 if yymv1 == nil { 128214 yymv1 = new(ACLPolicy) 128215 } 128216 yymv1.CodecDecodeSelf(d) 128217 } 128218 128219 if yymdn1 { 128220 if yybh1.DeleteOnNilMapValue { 128221 delete(yyv1, yymk1) 128222 } else { 128223 yyv1[yymk1] = nil 128224 } 128225 } else if yyms1 && yyv1 != nil { 128226 yyv1[yymk1] = yymv1 128227 } 128228 } 128229 } // else len==0: TODO: Should we clear map entries? 128230 r.ReadMapEnd() 128231 } 128232 128233 func (x codecSelfer100) encSlicePtrtoACLPolicy(v []*ACLPolicy, e *codec1978.Encoder) { 128234 var h codecSelfer100 128235 z, r := codec1978.GenHelperEncoder(e) 128236 _, _, _ = h, z, r 128237 r.WriteArrayStart(len(v)) 128238 for _, yyv1 := range v { 128239 r.WriteArrayElem() 128240 if yyv1 == nil { 128241 r.EncodeNil() 128242 } else { 128243 yyv1.CodecEncodeSelf(e) 128244 } 128245 } 128246 r.WriteArrayEnd() 128247 } 128248 128249 func (x codecSelfer100) decSlicePtrtoACLPolicy(v *[]*ACLPolicy, d *codec1978.Decoder) { 128250 var h codecSelfer100 128251 z, r := codec1978.GenHelperDecoder(d) 128252 _, _, _ = h, z, r 128253 128254 yyv1 := *v 128255 yyh1, yyl1 := z.DecSliceHelperStart() 128256 var yyc1 bool 128257 _ = yyc1 128258 if yyl1 == 0 { 128259 if yyv1 == nil { 128260 yyv1 = []*ACLPolicy{} 128261 yyc1 = true 128262 } else if len(yyv1) != 0 { 128263 yyv1 = yyv1[:0] 128264 yyc1 = true 128265 } 128266 } else { 128267 yyhl1 := yyl1 > 0 128268 var yyrl1 int 128269 _ = yyrl1 128270 if yyhl1 { 128271 if yyl1 > cap(yyv1) { 128272 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128273 if yyrl1 <= cap(yyv1) { 128274 yyv1 = yyv1[:yyrl1] 128275 } else { 128276 yyv1 = make([]*ACLPolicy, yyrl1) 128277 } 128278 yyc1 = true 128279 } else if yyl1 != len(yyv1) { 128280 yyv1 = yyv1[:yyl1] 128281 yyc1 = true 128282 } 128283 } 128284 var yyj1 int 128285 // var yydn1 bool 128286 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 128287 if yyj1 == 0 && yyv1 == nil { 128288 if yyhl1 { 128289 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128290 } else { 128291 yyrl1 = 8 128292 } 128293 yyv1 = make([]*ACLPolicy, yyrl1) 128294 yyc1 = true 128295 } 128296 yyh1.ElemContainerState(yyj1) 128297 128298 var yydb1 bool 128299 if yyj1 >= len(yyv1) { 128300 yyv1 = append(yyv1, nil) 128301 yyc1 = true 128302 128303 } 128304 if yydb1 { 128305 z.DecSwallow() 128306 } else { 128307 if r.TryDecodeAsNil() { 128308 yyv1[yyj1] = nil 128309 } else { 128310 if yyv1[yyj1] == nil { 128311 yyv1[yyj1] = new(ACLPolicy) 128312 } 128313 yyv1[yyj1].CodecDecodeSelf(d) 128314 } 128315 128316 } 128317 128318 } 128319 if yyj1 < len(yyv1) { 128320 yyv1 = yyv1[:yyj1] 128321 yyc1 = true 128322 } else if yyj1 == 0 && yyv1 == nil { 128323 yyv1 = make([]*ACLPolicy, 0) 128324 yyc1 = true 128325 } 128326 } 128327 yyh1.End() 128328 if yyc1 { 128329 *v = yyv1 128330 } 128331 } 128332 128333 func (x codecSelfer100) encSlicePtrtoACLTokenListStub(v []*ACLTokenListStub, e *codec1978.Encoder) { 128334 var h codecSelfer100 128335 z, r := codec1978.GenHelperEncoder(e) 128336 _, _, _ = h, z, r 128337 r.WriteArrayStart(len(v)) 128338 for _, yyv1 := range v { 128339 r.WriteArrayElem() 128340 if yyv1 == nil { 128341 r.EncodeNil() 128342 } else { 128343 yyv1.CodecEncodeSelf(e) 128344 } 128345 } 128346 r.WriteArrayEnd() 128347 } 128348 128349 func (x codecSelfer100) decSlicePtrtoACLTokenListStub(v *[]*ACLTokenListStub, d *codec1978.Decoder) { 128350 var h codecSelfer100 128351 z, r := codec1978.GenHelperDecoder(d) 128352 _, _, _ = h, z, r 128353 128354 yyv1 := *v 128355 yyh1, yyl1 := z.DecSliceHelperStart() 128356 var yyc1 bool 128357 _ = yyc1 128358 if yyl1 == 0 { 128359 if yyv1 == nil { 128360 yyv1 = []*ACLTokenListStub{} 128361 yyc1 = true 128362 } else if len(yyv1) != 0 { 128363 yyv1 = yyv1[:0] 128364 yyc1 = true 128365 } 128366 } else { 128367 yyhl1 := yyl1 > 0 128368 var yyrl1 int 128369 _ = yyrl1 128370 if yyhl1 { 128371 if yyl1 > cap(yyv1) { 128372 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128373 if yyrl1 <= cap(yyv1) { 128374 yyv1 = yyv1[:yyrl1] 128375 } else { 128376 yyv1 = make([]*ACLTokenListStub, yyrl1) 128377 } 128378 yyc1 = true 128379 } else if yyl1 != len(yyv1) { 128380 yyv1 = yyv1[:yyl1] 128381 yyc1 = true 128382 } 128383 } 128384 var yyj1 int 128385 // var yydn1 bool 128386 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 128387 if yyj1 == 0 && yyv1 == nil { 128388 if yyhl1 { 128389 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128390 } else { 128391 yyrl1 = 8 128392 } 128393 yyv1 = make([]*ACLTokenListStub, yyrl1) 128394 yyc1 = true 128395 } 128396 yyh1.ElemContainerState(yyj1) 128397 128398 var yydb1 bool 128399 if yyj1 >= len(yyv1) { 128400 yyv1 = append(yyv1, nil) 128401 yyc1 = true 128402 128403 } 128404 if yydb1 { 128405 z.DecSwallow() 128406 } else { 128407 if r.TryDecodeAsNil() { 128408 yyv1[yyj1] = nil 128409 } else { 128410 if yyv1[yyj1] == nil { 128411 yyv1[yyj1] = new(ACLTokenListStub) 128412 } 128413 yyv1[yyj1].CodecDecodeSelf(d) 128414 } 128415 128416 } 128417 128418 } 128419 if yyj1 < len(yyv1) { 128420 yyv1 = yyv1[:yyj1] 128421 yyc1 = true 128422 } else if yyj1 == 0 && yyv1 == nil { 128423 yyv1 = make([]*ACLTokenListStub, 0) 128424 yyc1 = true 128425 } 128426 } 128427 yyh1.End() 128428 if yyc1 { 128429 *v = yyv1 128430 } 128431 } 128432 128433 func (x codecSelfer100) encMapstringPtrtoACLToken(v map[string]*ACLToken, e *codec1978.Encoder) { 128434 var h codecSelfer100 128435 z, r := codec1978.GenHelperEncoder(e) 128436 _, _, _ = h, z, r 128437 r.WriteMapStart(len(v)) 128438 for yyk1, yyv1 := range v { 128439 r.WriteMapElemKey() 128440 if false { 128441 } else { 128442 if z.EncBasicHandle().StringToRaw { 128443 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 128444 } else { 128445 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 128446 } 128447 } 128448 r.WriteMapElemValue() 128449 if yyv1 == nil { 128450 r.EncodeNil() 128451 } else { 128452 yyv1.CodecEncodeSelf(e) 128453 } 128454 } 128455 r.WriteMapEnd() 128456 } 128457 128458 func (x codecSelfer100) decMapstringPtrtoACLToken(v *map[string]*ACLToken, d *codec1978.Decoder) { 128459 var h codecSelfer100 128460 z, r := codec1978.GenHelperDecoder(d) 128461 _, _, _ = h, z, r 128462 128463 yyv1 := *v 128464 yyl1 := r.ReadMapStart() 128465 yybh1 := z.DecBasicHandle() 128466 if yyv1 == nil { 128467 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 128468 yyv1 = make(map[string]*ACLToken, yyrl1) 128469 *v = yyv1 128470 } 128471 var yymk1 string 128472 var yymv1 *ACLToken 128473 var yymg1, yymdn1, yyms1, yymok1 bool 128474 if yybh1.MapValueReset { 128475 yymg1 = true 128476 } 128477 if yyl1 != 0 { 128478 yyhl1 := yyl1 > 0 128479 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 128480 r.ReadMapElemKey() 128481 if r.TryDecodeAsNil() { 128482 yymk1 = "" 128483 } else { 128484 yymk1 = (string)(r.DecodeString()) 128485 } 128486 128487 yyms1 = true 128488 if yymg1 { 128489 yymv1, yymok1 = yyv1[yymk1] 128490 if yymok1 { 128491 yyms1 = false 128492 } 128493 } else { 128494 yymv1 = nil 128495 } 128496 r.ReadMapElemValue() 128497 yymdn1 = false 128498 if r.TryDecodeAsNil() { 128499 yymdn1 = true 128500 } else { 128501 if yymv1 == nil { 128502 yymv1 = new(ACLToken) 128503 } 128504 yymv1.CodecDecodeSelf(d) 128505 } 128506 128507 if yymdn1 { 128508 if yybh1.DeleteOnNilMapValue { 128509 delete(yyv1, yymk1) 128510 } else { 128511 yyv1[yymk1] = nil 128512 } 128513 } else if yyms1 && yyv1 != nil { 128514 yyv1[yymk1] = yymv1 128515 } 128516 } 128517 } // else len==0: TODO: Should we clear map entries? 128518 r.ReadMapEnd() 128519 } 128520 128521 func (x codecSelfer100) encSlicePtrtoACLToken(v []*ACLToken, e *codec1978.Encoder) { 128522 var h codecSelfer100 128523 z, r := codec1978.GenHelperEncoder(e) 128524 _, _, _ = h, z, r 128525 r.WriteArrayStart(len(v)) 128526 for _, yyv1 := range v { 128527 r.WriteArrayElem() 128528 if yyv1 == nil { 128529 r.EncodeNil() 128530 } else { 128531 yyv1.CodecEncodeSelf(e) 128532 } 128533 } 128534 r.WriteArrayEnd() 128535 } 128536 128537 func (x codecSelfer100) decSlicePtrtoACLToken(v *[]*ACLToken, d *codec1978.Decoder) { 128538 var h codecSelfer100 128539 z, r := codec1978.GenHelperDecoder(d) 128540 _, _, _ = h, z, r 128541 128542 yyv1 := *v 128543 yyh1, yyl1 := z.DecSliceHelperStart() 128544 var yyc1 bool 128545 _ = yyc1 128546 if yyl1 == 0 { 128547 if yyv1 == nil { 128548 yyv1 = []*ACLToken{} 128549 yyc1 = true 128550 } else if len(yyv1) != 0 { 128551 yyv1 = yyv1[:0] 128552 yyc1 = true 128553 } 128554 } else { 128555 yyhl1 := yyl1 > 0 128556 var yyrl1 int 128557 _ = yyrl1 128558 if yyhl1 { 128559 if yyl1 > cap(yyv1) { 128560 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128561 if yyrl1 <= cap(yyv1) { 128562 yyv1 = yyv1[:yyrl1] 128563 } else { 128564 yyv1 = make([]*ACLToken, yyrl1) 128565 } 128566 yyc1 = true 128567 } else if yyl1 != len(yyv1) { 128568 yyv1 = yyv1[:yyl1] 128569 yyc1 = true 128570 } 128571 } 128572 var yyj1 int 128573 // var yydn1 bool 128574 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 128575 if yyj1 == 0 && yyv1 == nil { 128576 if yyhl1 { 128577 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128578 } else { 128579 yyrl1 = 8 128580 } 128581 yyv1 = make([]*ACLToken, yyrl1) 128582 yyc1 = true 128583 } 128584 yyh1.ElemContainerState(yyj1) 128585 128586 var yydb1 bool 128587 if yyj1 >= len(yyv1) { 128588 yyv1 = append(yyv1, nil) 128589 yyc1 = true 128590 128591 } 128592 if yydb1 { 128593 z.DecSwallow() 128594 } else { 128595 if r.TryDecodeAsNil() { 128596 yyv1[yyj1] = nil 128597 } else { 128598 if yyv1[yyj1] == nil { 128599 yyv1[yyj1] = new(ACLToken) 128600 } 128601 yyv1[yyj1].CodecDecodeSelf(d) 128602 } 128603 128604 } 128605 128606 } 128607 if yyj1 < len(yyv1) { 128608 yyv1 = yyv1[:yyj1] 128609 yyc1 = true 128610 } else if yyj1 == 0 && yyv1 == nil { 128611 yyv1 = make([]*ACLToken, 0) 128612 yyc1 = true 128613 } 128614 } 128615 yyh1.End() 128616 if yyc1 { 128617 *v = yyv1 128618 } 128619 }