1/*
2Copyright 2016 The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8    http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17// ************************************************************
18// DO NOT EDIT.
19// THIS FILE IS AUTO-GENERATED BY codecgen.
20// ************************************************************
21
22package v1
23
24import (
25	"errors"
26	"fmt"
27	codec1978 "github.com/ugorji/go/codec"
28	pkg3_resource "k8s.io/apimachinery/pkg/api/resource"
29	pkg2_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
30	pkg5_runtime "k8s.io/apimachinery/pkg/runtime"
31	pkg1_types "k8s.io/apimachinery/pkg/types"
32	pkg4_intstr "k8s.io/apimachinery/pkg/util/intstr"
33	"reflect"
34	"runtime"
35	time "time"
36)
37
38const (
39	// ----- content types ----
40	codecSelferC_UTF81234 = 1
41	codecSelferC_RAW1234  = 0
42	// ----- value types used ----
43	codecSelferValueTypeArray1234 = 10
44	codecSelferValueTypeMap1234   = 9
45	// ----- containerStateValues ----
46	codecSelfer_containerMapKey1234    = 2
47	codecSelfer_containerMapValue1234  = 3
48	codecSelfer_containerMapEnd1234    = 4
49	codecSelfer_containerArrayElem1234 = 6
50	codecSelfer_containerArrayEnd1234  = 7
51)
52
53var (
54	codecSelferBitsize1234                         = uint8(reflect.TypeOf(uint(0)).Bits())
55	codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`)
56)
57
58type codecSelfer1234 struct{}
59
60func init() {
61	if codec1978.GenVersion != 5 {
62		_, file, _, _ := runtime.Caller(0)
63		err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v",
64			5, codec1978.GenVersion, file)
65		panic(err)
66	}
67	if false { // reference the types, but skip this branch at build/run time
68		var v0 pkg3_resource.Quantity
69		var v1 pkg2_v1.Time
70		var v2 pkg5_runtime.RawExtension
71		var v3 pkg1_types.UID
72		var v4 pkg4_intstr.IntOrString
73		var v5 time.Time
74		_, _, _, _, _, _ = v0, v1, v2, v3, v4, v5
75	}
76}
77
78func (x *ObjectMeta) CodecEncodeSelf(e *codec1978.Encoder) {
79	var h codecSelfer1234
80	z, r := codec1978.GenHelperEncoder(e)
81	_, _, _ = h, z, r
82	if x == nil {
83		r.EncodeNil()
84	} else {
85		yym1 := z.EncBinary()
86		_ = yym1
87		if false {
88		} else if z.HasExtensions() && z.EncExt(x) {
89		} else {
90			yysep2 := !z.EncBinary()
91			yy2arr2 := z.EncBasicHandle().StructToArray
92			var yyq2 [15]bool
93			_, _, _ = yysep2, yyq2, yy2arr2
94			const yyr2 bool = false
95			yyq2[0] = x.Name != ""
96			yyq2[1] = x.GenerateName != ""
97			yyq2[2] = x.Namespace != ""
98			yyq2[3] = x.SelfLink != ""
99			yyq2[4] = x.UID != ""
100			yyq2[5] = x.ResourceVersion != ""
101			yyq2[6] = x.Generation != 0
102			yyq2[7] = true
103			yyq2[8] = x.DeletionTimestamp != nil
104			yyq2[9] = x.DeletionGracePeriodSeconds != nil
105			yyq2[10] = len(x.Labels) != 0
106			yyq2[11] = len(x.Annotations) != 0
107			yyq2[12] = len(x.OwnerReferences) != 0
108			yyq2[13] = len(x.Finalizers) != 0
109			yyq2[14] = x.ClusterName != ""
110			var yynn2 int
111			if yyr2 || yy2arr2 {
112				r.EncodeArrayStart(15)
113			} else {
114				yynn2 = 0
115				for _, b := range yyq2 {
116					if b {
117						yynn2++
118					}
119				}
120				r.EncodeMapStart(yynn2)
121				yynn2 = 0
122			}
123			if yyr2 || yy2arr2 {
124				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
125				if yyq2[0] {
126					yym4 := z.EncBinary()
127					_ = yym4
128					if false {
129					} else {
130						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
131					}
132				} else {
133					r.EncodeString(codecSelferC_UTF81234, "")
134				}
135			} else {
136				if yyq2[0] {
137					z.EncSendContainerState(codecSelfer_containerMapKey1234)
138					r.EncodeString(codecSelferC_UTF81234, string("name"))
139					z.EncSendContainerState(codecSelfer_containerMapValue1234)
140					yym5 := z.EncBinary()
141					_ = yym5
142					if false {
143					} else {
144						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
145					}
146				}
147			}
148			if yyr2 || yy2arr2 {
149				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
150				if yyq2[1] {
151					yym7 := z.EncBinary()
152					_ = yym7
153					if false {
154					} else {
155						r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName))
156					}
157				} else {
158					r.EncodeString(codecSelferC_UTF81234, "")
159				}
160			} else {
161				if yyq2[1] {
162					z.EncSendContainerState(codecSelfer_containerMapKey1234)
163					r.EncodeString(codecSelferC_UTF81234, string("generateName"))
164					z.EncSendContainerState(codecSelfer_containerMapValue1234)
165					yym8 := z.EncBinary()
166					_ = yym8
167					if false {
168					} else {
169						r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName))
170					}
171				}
172			}
173			if yyr2 || yy2arr2 {
174				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
175				if yyq2[2] {
176					yym10 := z.EncBinary()
177					_ = yym10
178					if false {
179					} else {
180						r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
181					}
182				} else {
183					r.EncodeString(codecSelferC_UTF81234, "")
184				}
185			} else {
186				if yyq2[2] {
187					z.EncSendContainerState(codecSelfer_containerMapKey1234)
188					r.EncodeString(codecSelferC_UTF81234, string("namespace"))
189					z.EncSendContainerState(codecSelfer_containerMapValue1234)
190					yym11 := z.EncBinary()
191					_ = yym11
192					if false {
193					} else {
194						r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
195					}
196				}
197			}
198			if yyr2 || yy2arr2 {
199				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
200				if yyq2[3] {
201					yym13 := z.EncBinary()
202					_ = yym13
203					if false {
204					} else {
205						r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink))
206					}
207				} else {
208					r.EncodeString(codecSelferC_UTF81234, "")
209				}
210			} else {
211				if yyq2[3] {
212					z.EncSendContainerState(codecSelfer_containerMapKey1234)
213					r.EncodeString(codecSelferC_UTF81234, string("selfLink"))
214					z.EncSendContainerState(codecSelfer_containerMapValue1234)
215					yym14 := z.EncBinary()
216					_ = yym14
217					if false {
218					} else {
219						r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink))
220					}
221				}
222			}
223			if yyr2 || yy2arr2 {
224				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
225				if yyq2[4] {
226					yym16 := z.EncBinary()
227					_ = yym16
228					if false {
229					} else if z.HasExtensions() && z.EncExt(x.UID) {
230					} else {
231						r.EncodeString(codecSelferC_UTF81234, string(x.UID))
232					}
233				} else {
234					r.EncodeString(codecSelferC_UTF81234, "")
235				}
236			} else {
237				if yyq2[4] {
238					z.EncSendContainerState(codecSelfer_containerMapKey1234)
239					r.EncodeString(codecSelferC_UTF81234, string("uid"))
240					z.EncSendContainerState(codecSelfer_containerMapValue1234)
241					yym17 := z.EncBinary()
242					_ = yym17
243					if false {
244					} else if z.HasExtensions() && z.EncExt(x.UID) {
245					} else {
246						r.EncodeString(codecSelferC_UTF81234, string(x.UID))
247					}
248				}
249			}
250			if yyr2 || yy2arr2 {
251				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
252				if yyq2[5] {
253					yym19 := z.EncBinary()
254					_ = yym19
255					if false {
256					} else {
257						r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
258					}
259				} else {
260					r.EncodeString(codecSelferC_UTF81234, "")
261				}
262			} else {
263				if yyq2[5] {
264					z.EncSendContainerState(codecSelfer_containerMapKey1234)
265					r.EncodeString(codecSelferC_UTF81234, string("resourceVersion"))
266					z.EncSendContainerState(codecSelfer_containerMapValue1234)
267					yym20 := z.EncBinary()
268					_ = yym20
269					if false {
270					} else {
271						r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
272					}
273				}
274			}
275			if yyr2 || yy2arr2 {
276				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
277				if yyq2[6] {
278					yym22 := z.EncBinary()
279					_ = yym22
280					if false {
281					} else {
282						r.EncodeInt(int64(x.Generation))
283					}
284				} else {
285					r.EncodeInt(0)
286				}
287			} else {
288				if yyq2[6] {
289					z.EncSendContainerState(codecSelfer_containerMapKey1234)
290					r.EncodeString(codecSelferC_UTF81234, string("generation"))
291					z.EncSendContainerState(codecSelfer_containerMapValue1234)
292					yym23 := z.EncBinary()
293					_ = yym23
294					if false {
295					} else {
296						r.EncodeInt(int64(x.Generation))
297					}
298				}
299			}
300			if yyr2 || yy2arr2 {
301				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
302				if yyq2[7] {
303					yy25 := &x.CreationTimestamp
304					yym26 := z.EncBinary()
305					_ = yym26
306					if false {
307					} else if z.HasExtensions() && z.EncExt(yy25) {
308					} else if yym26 {
309						z.EncBinaryMarshal(yy25)
310					} else if !yym26 && z.IsJSONHandle() {
311						z.EncJSONMarshal(yy25)
312					} else {
313						z.EncFallback(yy25)
314					}
315				} else {
316					r.EncodeNil()
317				}
318			} else {
319				if yyq2[7] {
320					z.EncSendContainerState(codecSelfer_containerMapKey1234)
321					r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp"))
322					z.EncSendContainerState(codecSelfer_containerMapValue1234)
323					yy27 := &x.CreationTimestamp
324					yym28 := z.EncBinary()
325					_ = yym28
326					if false {
327					} else if z.HasExtensions() && z.EncExt(yy27) {
328					} else if yym28 {
329						z.EncBinaryMarshal(yy27)
330					} else if !yym28 && z.IsJSONHandle() {
331						z.EncJSONMarshal(yy27)
332					} else {
333						z.EncFallback(yy27)
334					}
335				}
336			}
337			if yyr2 || yy2arr2 {
338				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
339				if yyq2[8] {
340					if x.DeletionTimestamp == nil {
341						r.EncodeNil()
342					} else {
343						yym30 := z.EncBinary()
344						_ = yym30
345						if false {
346						} else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) {
347						} else if yym30 {
348							z.EncBinaryMarshal(x.DeletionTimestamp)
349						} else if !yym30 && z.IsJSONHandle() {
350							z.EncJSONMarshal(x.DeletionTimestamp)
351						} else {
352							z.EncFallback(x.DeletionTimestamp)
353						}
354					}
355				} else {
356					r.EncodeNil()
357				}
358			} else {
359				if yyq2[8] {
360					z.EncSendContainerState(codecSelfer_containerMapKey1234)
361					r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp"))
362					z.EncSendContainerState(codecSelfer_containerMapValue1234)
363					if x.DeletionTimestamp == nil {
364						r.EncodeNil()
365					} else {
366						yym31 := z.EncBinary()
367						_ = yym31
368						if false {
369						} else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) {
370						} else if yym31 {
371							z.EncBinaryMarshal(x.DeletionTimestamp)
372						} else if !yym31 && z.IsJSONHandle() {
373							z.EncJSONMarshal(x.DeletionTimestamp)
374						} else {
375							z.EncFallback(x.DeletionTimestamp)
376						}
377					}
378				}
379			}
380			if yyr2 || yy2arr2 {
381				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
382				if yyq2[9] {
383					if x.DeletionGracePeriodSeconds == nil {
384						r.EncodeNil()
385					} else {
386						yy33 := *x.DeletionGracePeriodSeconds
387						yym34 := z.EncBinary()
388						_ = yym34
389						if false {
390						} else {
391							r.EncodeInt(int64(yy33))
392						}
393					}
394				} else {
395					r.EncodeNil()
396				}
397			} else {
398				if yyq2[9] {
399					z.EncSendContainerState(codecSelfer_containerMapKey1234)
400					r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds"))
401					z.EncSendContainerState(codecSelfer_containerMapValue1234)
402					if x.DeletionGracePeriodSeconds == nil {
403						r.EncodeNil()
404					} else {
405						yy35 := *x.DeletionGracePeriodSeconds
406						yym36 := z.EncBinary()
407						_ = yym36
408						if false {
409						} else {
410							r.EncodeInt(int64(yy35))
411						}
412					}
413				}
414			}
415			if yyr2 || yy2arr2 {
416				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
417				if yyq2[10] {
418					if x.Labels == nil {
419						r.EncodeNil()
420					} else {
421						yym38 := z.EncBinary()
422						_ = yym38
423						if false {
424						} else {
425							z.F.EncMapStringStringV(x.Labels, false, e)
426						}
427					}
428				} else {
429					r.EncodeNil()
430				}
431			} else {
432				if yyq2[10] {
433					z.EncSendContainerState(codecSelfer_containerMapKey1234)
434					r.EncodeString(codecSelferC_UTF81234, string("labels"))
435					z.EncSendContainerState(codecSelfer_containerMapValue1234)
436					if x.Labels == nil {
437						r.EncodeNil()
438					} else {
439						yym39 := z.EncBinary()
440						_ = yym39
441						if false {
442						} else {
443							z.F.EncMapStringStringV(x.Labels, false, e)
444						}
445					}
446				}
447			}
448			if yyr2 || yy2arr2 {
449				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
450				if yyq2[11] {
451					if x.Annotations == nil {
452						r.EncodeNil()
453					} else {
454						yym41 := z.EncBinary()
455						_ = yym41
456						if false {
457						} else {
458							z.F.EncMapStringStringV(x.Annotations, false, e)
459						}
460					}
461				} else {
462					r.EncodeNil()
463				}
464			} else {
465				if yyq2[11] {
466					z.EncSendContainerState(codecSelfer_containerMapKey1234)
467					r.EncodeString(codecSelferC_UTF81234, string("annotations"))
468					z.EncSendContainerState(codecSelfer_containerMapValue1234)
469					if x.Annotations == nil {
470						r.EncodeNil()
471					} else {
472						yym42 := z.EncBinary()
473						_ = yym42
474						if false {
475						} else {
476							z.F.EncMapStringStringV(x.Annotations, false, e)
477						}
478					}
479				}
480			}
481			if yyr2 || yy2arr2 {
482				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
483				if yyq2[12] {
484					if x.OwnerReferences == nil {
485						r.EncodeNil()
486					} else {
487						yym44 := z.EncBinary()
488						_ = yym44
489						if false {
490						} else {
491							h.encSlicev1_OwnerReference(([]pkg2_v1.OwnerReference)(x.OwnerReferences), e)
492						}
493					}
494				} else {
495					r.EncodeNil()
496				}
497			} else {
498				if yyq2[12] {
499					z.EncSendContainerState(codecSelfer_containerMapKey1234)
500					r.EncodeString(codecSelferC_UTF81234, string("ownerReferences"))
501					z.EncSendContainerState(codecSelfer_containerMapValue1234)
502					if x.OwnerReferences == nil {
503						r.EncodeNil()
504					} else {
505						yym45 := z.EncBinary()
506						_ = yym45
507						if false {
508						} else {
509							h.encSlicev1_OwnerReference(([]pkg2_v1.OwnerReference)(x.OwnerReferences), e)
510						}
511					}
512				}
513			}
514			if yyr2 || yy2arr2 {
515				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
516				if yyq2[13] {
517					if x.Finalizers == nil {
518						r.EncodeNil()
519					} else {
520						yym47 := z.EncBinary()
521						_ = yym47
522						if false {
523						} else {
524							z.F.EncSliceStringV(x.Finalizers, false, e)
525						}
526					}
527				} else {
528					r.EncodeNil()
529				}
530			} else {
531				if yyq2[13] {
532					z.EncSendContainerState(codecSelfer_containerMapKey1234)
533					r.EncodeString(codecSelferC_UTF81234, string("finalizers"))
534					z.EncSendContainerState(codecSelfer_containerMapValue1234)
535					if x.Finalizers == nil {
536						r.EncodeNil()
537					} else {
538						yym48 := z.EncBinary()
539						_ = yym48
540						if false {
541						} else {
542							z.F.EncSliceStringV(x.Finalizers, false, e)
543						}
544					}
545				}
546			}
547			if yyr2 || yy2arr2 {
548				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
549				if yyq2[14] {
550					yym50 := z.EncBinary()
551					_ = yym50
552					if false {
553					} else {
554						r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName))
555					}
556				} else {
557					r.EncodeString(codecSelferC_UTF81234, "")
558				}
559			} else {
560				if yyq2[14] {
561					z.EncSendContainerState(codecSelfer_containerMapKey1234)
562					r.EncodeString(codecSelferC_UTF81234, string("clusterName"))
563					z.EncSendContainerState(codecSelfer_containerMapValue1234)
564					yym51 := z.EncBinary()
565					_ = yym51
566					if false {
567					} else {
568						r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName))
569					}
570				}
571			}
572			if yyr2 || yy2arr2 {
573				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
574			} else {
575				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
576			}
577		}
578	}
579}
580
581func (x *ObjectMeta) CodecDecodeSelf(d *codec1978.Decoder) {
582	var h codecSelfer1234
583	z, r := codec1978.GenHelperDecoder(d)
584	_, _, _ = h, z, r
585	yym1 := z.DecBinary()
586	_ = yym1
587	if false {
588	} else if z.HasExtensions() && z.DecExt(x) {
589	} else {
590		yyct2 := r.ContainerType()
591		if yyct2 == codecSelferValueTypeMap1234 {
592			yyl2 := r.ReadMapStart()
593			if yyl2 == 0 {
594				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
595			} else {
596				x.codecDecodeSelfFromMap(yyl2, d)
597			}
598		} else if yyct2 == codecSelferValueTypeArray1234 {
599			yyl2 := r.ReadArrayStart()
600			if yyl2 == 0 {
601				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
602			} else {
603				x.codecDecodeSelfFromArray(yyl2, d)
604			}
605		} else {
606			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
607		}
608	}
609}
610
611func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
612	var h codecSelfer1234
613	z, r := codec1978.GenHelperDecoder(d)
614	_, _, _ = h, z, r
615	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
616	_ = yys3Slc
617	var yyhl3 bool = l >= 0
618	for yyj3 := 0; ; yyj3++ {
619		if yyhl3 {
620			if yyj3 >= l {
621				break
622			}
623		} else {
624			if r.CheckBreak() {
625				break
626			}
627		}
628		z.DecSendContainerState(codecSelfer_containerMapKey1234)
629		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
630		yys3 := string(yys3Slc)
631		z.DecSendContainerState(codecSelfer_containerMapValue1234)
632		switch yys3 {
633		case "name":
634			if r.TryDecodeAsNil() {
635				x.Name = ""
636			} else {
637				yyv4 := &x.Name
638				yym5 := z.DecBinary()
639				_ = yym5
640				if false {
641				} else {
642					*((*string)(yyv4)) = r.DecodeString()
643				}
644			}
645		case "generateName":
646			if r.TryDecodeAsNil() {
647				x.GenerateName = ""
648			} else {
649				yyv6 := &x.GenerateName
650				yym7 := z.DecBinary()
651				_ = yym7
652				if false {
653				} else {
654					*((*string)(yyv6)) = r.DecodeString()
655				}
656			}
657		case "namespace":
658			if r.TryDecodeAsNil() {
659				x.Namespace = ""
660			} else {
661				yyv8 := &x.Namespace
662				yym9 := z.DecBinary()
663				_ = yym9
664				if false {
665				} else {
666					*((*string)(yyv8)) = r.DecodeString()
667				}
668			}
669		case "selfLink":
670			if r.TryDecodeAsNil() {
671				x.SelfLink = ""
672			} else {
673				yyv10 := &x.SelfLink
674				yym11 := z.DecBinary()
675				_ = yym11
676				if false {
677				} else {
678					*((*string)(yyv10)) = r.DecodeString()
679				}
680			}
681		case "uid":
682			if r.TryDecodeAsNil() {
683				x.UID = ""
684			} else {
685				yyv12 := &x.UID
686				yym13 := z.DecBinary()
687				_ = yym13
688				if false {
689				} else if z.HasExtensions() && z.DecExt(yyv12) {
690				} else {
691					*((*string)(yyv12)) = r.DecodeString()
692				}
693			}
694		case "resourceVersion":
695			if r.TryDecodeAsNil() {
696				x.ResourceVersion = ""
697			} else {
698				yyv14 := &x.ResourceVersion
699				yym15 := z.DecBinary()
700				_ = yym15
701				if false {
702				} else {
703					*((*string)(yyv14)) = r.DecodeString()
704				}
705			}
706		case "generation":
707			if r.TryDecodeAsNil() {
708				x.Generation = 0
709			} else {
710				yyv16 := &x.Generation
711				yym17 := z.DecBinary()
712				_ = yym17
713				if false {
714				} else {
715					*((*int64)(yyv16)) = int64(r.DecodeInt(64))
716				}
717			}
718		case "creationTimestamp":
719			if r.TryDecodeAsNil() {
720				x.CreationTimestamp = pkg2_v1.Time{}
721			} else {
722				yyv18 := &x.CreationTimestamp
723				yym19 := z.DecBinary()
724				_ = yym19
725				if false {
726				} else if z.HasExtensions() && z.DecExt(yyv18) {
727				} else if yym19 {
728					z.DecBinaryUnmarshal(yyv18)
729				} else if !yym19 && z.IsJSONHandle() {
730					z.DecJSONUnmarshal(yyv18)
731				} else {
732					z.DecFallback(yyv18, false)
733				}
734			}
735		case "deletionTimestamp":
736			if r.TryDecodeAsNil() {
737				if x.DeletionTimestamp != nil {
738					x.DeletionTimestamp = nil
739				}
740			} else {
741				if x.DeletionTimestamp == nil {
742					x.DeletionTimestamp = new(pkg2_v1.Time)
743				}
744				yym21 := z.DecBinary()
745				_ = yym21
746				if false {
747				} else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) {
748				} else if yym21 {
749					z.DecBinaryUnmarshal(x.DeletionTimestamp)
750				} else if !yym21 && z.IsJSONHandle() {
751					z.DecJSONUnmarshal(x.DeletionTimestamp)
752				} else {
753					z.DecFallback(x.DeletionTimestamp, false)
754				}
755			}
756		case "deletionGracePeriodSeconds":
757			if r.TryDecodeAsNil() {
758				if x.DeletionGracePeriodSeconds != nil {
759					x.DeletionGracePeriodSeconds = nil
760				}
761			} else {
762				if x.DeletionGracePeriodSeconds == nil {
763					x.DeletionGracePeriodSeconds = new(int64)
764				}
765				yym23 := z.DecBinary()
766				_ = yym23
767				if false {
768				} else {
769					*((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64))
770				}
771			}
772		case "labels":
773			if r.TryDecodeAsNil() {
774				x.Labels = nil
775			} else {
776				yyv24 := &x.Labels
777				yym25 := z.DecBinary()
778				_ = yym25
779				if false {
780				} else {
781					z.F.DecMapStringStringX(yyv24, false, d)
782				}
783			}
784		case "annotations":
785			if r.TryDecodeAsNil() {
786				x.Annotations = nil
787			} else {
788				yyv26 := &x.Annotations
789				yym27 := z.DecBinary()
790				_ = yym27
791				if false {
792				} else {
793					z.F.DecMapStringStringX(yyv26, false, d)
794				}
795			}
796		case "ownerReferences":
797			if r.TryDecodeAsNil() {
798				x.OwnerReferences = nil
799			} else {
800				yyv28 := &x.OwnerReferences
801				yym29 := z.DecBinary()
802				_ = yym29
803				if false {
804				} else {
805					h.decSlicev1_OwnerReference((*[]pkg2_v1.OwnerReference)(yyv28), d)
806				}
807			}
808		case "finalizers":
809			if r.TryDecodeAsNil() {
810				x.Finalizers = nil
811			} else {
812				yyv30 := &x.Finalizers
813				yym31 := z.DecBinary()
814				_ = yym31
815				if false {
816				} else {
817					z.F.DecSliceStringX(yyv30, false, d)
818				}
819			}
820		case "clusterName":
821			if r.TryDecodeAsNil() {
822				x.ClusterName = ""
823			} else {
824				yyv32 := &x.ClusterName
825				yym33 := z.DecBinary()
826				_ = yym33
827				if false {
828				} else {
829					*((*string)(yyv32)) = r.DecodeString()
830				}
831			}
832		default:
833			z.DecStructFieldNotFound(-1, yys3)
834		} // end switch yys3
835	} // end for yyj3
836	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
837}
838
839func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
840	var h codecSelfer1234
841	z, r := codec1978.GenHelperDecoder(d)
842	_, _, _ = h, z, r
843	var yyj34 int
844	var yyb34 bool
845	var yyhl34 bool = l >= 0
846	yyj34++
847	if yyhl34 {
848		yyb34 = yyj34 > l
849	} else {
850		yyb34 = r.CheckBreak()
851	}
852	if yyb34 {
853		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
854		return
855	}
856	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
857	if r.TryDecodeAsNil() {
858		x.Name = ""
859	} else {
860		yyv35 := &x.Name
861		yym36 := z.DecBinary()
862		_ = yym36
863		if false {
864		} else {
865			*((*string)(yyv35)) = r.DecodeString()
866		}
867	}
868	yyj34++
869	if yyhl34 {
870		yyb34 = yyj34 > l
871	} else {
872		yyb34 = r.CheckBreak()
873	}
874	if yyb34 {
875		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
876		return
877	}
878	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
879	if r.TryDecodeAsNil() {
880		x.GenerateName = ""
881	} else {
882		yyv37 := &x.GenerateName
883		yym38 := z.DecBinary()
884		_ = yym38
885		if false {
886		} else {
887			*((*string)(yyv37)) = r.DecodeString()
888		}
889	}
890	yyj34++
891	if yyhl34 {
892		yyb34 = yyj34 > l
893	} else {
894		yyb34 = r.CheckBreak()
895	}
896	if yyb34 {
897		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
898		return
899	}
900	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
901	if r.TryDecodeAsNil() {
902		x.Namespace = ""
903	} else {
904		yyv39 := &x.Namespace
905		yym40 := z.DecBinary()
906		_ = yym40
907		if false {
908		} else {
909			*((*string)(yyv39)) = r.DecodeString()
910		}
911	}
912	yyj34++
913	if yyhl34 {
914		yyb34 = yyj34 > l
915	} else {
916		yyb34 = r.CheckBreak()
917	}
918	if yyb34 {
919		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
920		return
921	}
922	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
923	if r.TryDecodeAsNil() {
924		x.SelfLink = ""
925	} else {
926		yyv41 := &x.SelfLink
927		yym42 := z.DecBinary()
928		_ = yym42
929		if false {
930		} else {
931			*((*string)(yyv41)) = r.DecodeString()
932		}
933	}
934	yyj34++
935	if yyhl34 {
936		yyb34 = yyj34 > l
937	} else {
938		yyb34 = r.CheckBreak()
939	}
940	if yyb34 {
941		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
942		return
943	}
944	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
945	if r.TryDecodeAsNil() {
946		x.UID = ""
947	} else {
948		yyv43 := &x.UID
949		yym44 := z.DecBinary()
950		_ = yym44
951		if false {
952		} else if z.HasExtensions() && z.DecExt(yyv43) {
953		} else {
954			*((*string)(yyv43)) = r.DecodeString()
955		}
956	}
957	yyj34++
958	if yyhl34 {
959		yyb34 = yyj34 > l
960	} else {
961		yyb34 = r.CheckBreak()
962	}
963	if yyb34 {
964		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
965		return
966	}
967	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
968	if r.TryDecodeAsNil() {
969		x.ResourceVersion = ""
970	} else {
971		yyv45 := &x.ResourceVersion
972		yym46 := z.DecBinary()
973		_ = yym46
974		if false {
975		} else {
976			*((*string)(yyv45)) = r.DecodeString()
977		}
978	}
979	yyj34++
980	if yyhl34 {
981		yyb34 = yyj34 > l
982	} else {
983		yyb34 = r.CheckBreak()
984	}
985	if yyb34 {
986		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
987		return
988	}
989	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
990	if r.TryDecodeAsNil() {
991		x.Generation = 0
992	} else {
993		yyv47 := &x.Generation
994		yym48 := z.DecBinary()
995		_ = yym48
996		if false {
997		} else {
998			*((*int64)(yyv47)) = int64(r.DecodeInt(64))
999		}
1000	}
1001	yyj34++
1002	if yyhl34 {
1003		yyb34 = yyj34 > l
1004	} else {
1005		yyb34 = r.CheckBreak()
1006	}
1007	if yyb34 {
1008		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
1009		return
1010	}
1011	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
1012	if r.TryDecodeAsNil() {
1013		x.CreationTimestamp = pkg2_v1.Time{}
1014	} else {
1015		yyv49 := &x.CreationTimestamp
1016		yym50 := z.DecBinary()
1017		_ = yym50
1018		if false {
1019		} else if z.HasExtensions() && z.DecExt(yyv49) {
1020		} else if yym50 {
1021			z.DecBinaryUnmarshal(yyv49)
1022		} else if !yym50 && z.IsJSONHandle() {
1023			z.DecJSONUnmarshal(yyv49)
1024		} else {
1025			z.DecFallback(yyv49, false)
1026		}
1027	}
1028	yyj34++
1029	if yyhl34 {
1030		yyb34 = yyj34 > l
1031	} else {
1032		yyb34 = r.CheckBreak()
1033	}
1034	if yyb34 {
1035		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
1036		return
1037	}
1038	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
1039	if r.TryDecodeAsNil() {
1040		if x.DeletionTimestamp != nil {
1041			x.DeletionTimestamp = nil
1042		}
1043	} else {
1044		if x.DeletionTimestamp == nil {
1045			x.DeletionTimestamp = new(pkg2_v1.Time)
1046		}
1047		yym52 := z.DecBinary()
1048		_ = yym52
1049		if false {
1050		} else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) {
1051		} else if yym52 {
1052			z.DecBinaryUnmarshal(x.DeletionTimestamp)
1053		} else if !yym52 && z.IsJSONHandle() {
1054			z.DecJSONUnmarshal(x.DeletionTimestamp)
1055		} else {
1056			z.DecFallback(x.DeletionTimestamp, false)
1057		}
1058	}
1059	yyj34++
1060	if yyhl34 {
1061		yyb34 = yyj34 > l
1062	} else {
1063		yyb34 = r.CheckBreak()
1064	}
1065	if yyb34 {
1066		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
1067		return
1068	}
1069	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
1070	if r.TryDecodeAsNil() {
1071		if x.DeletionGracePeriodSeconds != nil {
1072			x.DeletionGracePeriodSeconds = nil
1073		}
1074	} else {
1075		if x.DeletionGracePeriodSeconds == nil {
1076			x.DeletionGracePeriodSeconds = new(int64)
1077		}
1078		yym54 := z.DecBinary()
1079		_ = yym54
1080		if false {
1081		} else {
1082			*((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64))
1083		}
1084	}
1085	yyj34++
1086	if yyhl34 {
1087		yyb34 = yyj34 > l
1088	} else {
1089		yyb34 = r.CheckBreak()
1090	}
1091	if yyb34 {
1092		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
1093		return
1094	}
1095	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
1096	if r.TryDecodeAsNil() {
1097		x.Labels = nil
1098	} else {
1099		yyv55 := &x.Labels
1100		yym56 := z.DecBinary()
1101		_ = yym56
1102		if false {
1103		} else {
1104			z.F.DecMapStringStringX(yyv55, false, d)
1105		}
1106	}
1107	yyj34++
1108	if yyhl34 {
1109		yyb34 = yyj34 > l
1110	} else {
1111		yyb34 = r.CheckBreak()
1112	}
1113	if yyb34 {
1114		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
1115		return
1116	}
1117	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
1118	if r.TryDecodeAsNil() {
1119		x.Annotations = nil
1120	} else {
1121		yyv57 := &x.Annotations
1122		yym58 := z.DecBinary()
1123		_ = yym58
1124		if false {
1125		} else {
1126			z.F.DecMapStringStringX(yyv57, false, d)
1127		}
1128	}
1129	yyj34++
1130	if yyhl34 {
1131		yyb34 = yyj34 > l
1132	} else {
1133		yyb34 = r.CheckBreak()
1134	}
1135	if yyb34 {
1136		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
1137		return
1138	}
1139	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
1140	if r.TryDecodeAsNil() {
1141		x.OwnerReferences = nil
1142	} else {
1143		yyv59 := &x.OwnerReferences
1144		yym60 := z.DecBinary()
1145		_ = yym60
1146		if false {
1147		} else {
1148			h.decSlicev1_OwnerReference((*[]pkg2_v1.OwnerReference)(yyv59), d)
1149		}
1150	}
1151	yyj34++
1152	if yyhl34 {
1153		yyb34 = yyj34 > l
1154	} else {
1155		yyb34 = r.CheckBreak()
1156	}
1157	if yyb34 {
1158		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
1159		return
1160	}
1161	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
1162	if r.TryDecodeAsNil() {
1163		x.Finalizers = nil
1164	} else {
1165		yyv61 := &x.Finalizers
1166		yym62 := z.DecBinary()
1167		_ = yym62
1168		if false {
1169		} else {
1170			z.F.DecSliceStringX(yyv61, false, d)
1171		}
1172	}
1173	yyj34++
1174	if yyhl34 {
1175		yyb34 = yyj34 > l
1176	} else {
1177		yyb34 = r.CheckBreak()
1178	}
1179	if yyb34 {
1180		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
1181		return
1182	}
1183	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
1184	if r.TryDecodeAsNil() {
1185		x.ClusterName = ""
1186	} else {
1187		yyv63 := &x.ClusterName
1188		yym64 := z.DecBinary()
1189		_ = yym64
1190		if false {
1191		} else {
1192			*((*string)(yyv63)) = r.DecodeString()
1193		}
1194	}
1195	for {
1196		yyj34++
1197		if yyhl34 {
1198			yyb34 = yyj34 > l
1199		} else {
1200			yyb34 = r.CheckBreak()
1201		}
1202		if yyb34 {
1203			break
1204		}
1205		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
1206		z.DecStructFieldNotFound(yyj34-1, "")
1207	}
1208	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
1209}
1210
1211func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) {
1212	var h codecSelfer1234
1213	z, r := codec1978.GenHelperEncoder(e)
1214	_, _, _ = h, z, r
1215	if x == nil {
1216		r.EncodeNil()
1217	} else {
1218		yym1 := z.EncBinary()
1219		_ = yym1
1220		if false {
1221		} else if z.HasExtensions() && z.EncExt(x) {
1222		} else {
1223			yysep2 := !z.EncBinary()
1224			yy2arr2 := z.EncBasicHandle().StructToArray
1225			var yyq2 [27]bool
1226			_, _, _ = yysep2, yyq2, yy2arr2
1227			const yyr2 bool = false
1228			yyq2[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil
1229			yyq2[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil
1230			yyq2[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil
1231			yyq2[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil
1232			yyq2[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil
1233			yyq2[6] = x.VolumeSource.Secret != nil && x.Secret != nil
1234			yyq2[7] = x.VolumeSource.NFS != nil && x.NFS != nil
1235			yyq2[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil
1236			yyq2[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil
1237			yyq2[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil
1238			yyq2[11] = x.VolumeSource.RBD != nil && x.RBD != nil
1239			yyq2[12] = x.VolumeSource.FlexVolume != nil && x.FlexVolume != nil
1240			yyq2[13] = x.VolumeSource.Cinder != nil && x.Cinder != nil
1241			yyq2[14] = x.VolumeSource.CephFS != nil && x.CephFS != nil
1242			yyq2[15] = x.VolumeSource.Flocker != nil && x.Flocker != nil
1243			yyq2[16] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil
1244			yyq2[17] = x.VolumeSource.FC != nil && x.FC != nil
1245			yyq2[18] = x.VolumeSource.AzureFile != nil && x.AzureFile != nil
1246			yyq2[19] = x.VolumeSource.ConfigMap != nil && x.ConfigMap != nil
1247			yyq2[20] = x.VolumeSource.VsphereVolume != nil && x.VsphereVolume != nil
1248			yyq2[21] = x.VolumeSource.Quobyte != nil && x.Quobyte != nil
1249			yyq2[22] = x.VolumeSource.AzureDisk != nil && x.AzureDisk != nil
1250			yyq2[23] = x.VolumeSource.PhotonPersistentDisk != nil && x.PhotonPersistentDisk != nil
1251			yyq2[24] = x.VolumeSource.Projected != nil && x.Projected != nil
1252			yyq2[25] = x.VolumeSource.PortworxVolume != nil && x.PortworxVolume != nil
1253			yyq2[26] = x.VolumeSource.ScaleIO != nil && x.ScaleIO != nil
1254			var yynn2 int
1255			if yyr2 || yy2arr2 {
1256				r.EncodeArrayStart(27)
1257			} else {
1258				yynn2 = 1
1259				for _, b := range yyq2 {
1260					if b {
1261						yynn2++
1262					}
1263				}
1264				r.EncodeMapStart(yynn2)
1265				yynn2 = 0
1266			}
1267			if yyr2 || yy2arr2 {
1268				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1269				yym4 := z.EncBinary()
1270				_ = yym4
1271				if false {
1272				} else {
1273					r.EncodeString(codecSelferC_UTF81234, string(x.Name))
1274				}
1275			} else {
1276				z.EncSendContainerState(codecSelfer_containerMapKey1234)
1277				r.EncodeString(codecSelferC_UTF81234, string("name"))
1278				z.EncSendContainerState(codecSelfer_containerMapValue1234)
1279				yym5 := z.EncBinary()
1280				_ = yym5
1281				if false {
1282				} else {
1283					r.EncodeString(codecSelferC_UTF81234, string(x.Name))
1284				}
1285			}
1286			var yyn6 bool
1287			if x.VolumeSource.HostPath == nil {
1288				yyn6 = true
1289				goto LABEL6
1290			}
1291		LABEL6:
1292			if yyr2 || yy2arr2 {
1293				if yyn6 {
1294					r.EncodeNil()
1295				} else {
1296					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1297					if yyq2[1] {
1298						if x.HostPath == nil {
1299							r.EncodeNil()
1300						} else {
1301							x.HostPath.CodecEncodeSelf(e)
1302						}
1303					} else {
1304						r.EncodeNil()
1305					}
1306				}
1307			} else {
1308				if yyq2[1] {
1309					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1310					r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
1311					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1312					if yyn6 {
1313						r.EncodeNil()
1314					} else {
1315						if x.HostPath == nil {
1316							r.EncodeNil()
1317						} else {
1318							x.HostPath.CodecEncodeSelf(e)
1319						}
1320					}
1321				}
1322			}
1323			var yyn9 bool
1324			if x.VolumeSource.EmptyDir == nil {
1325				yyn9 = true
1326				goto LABEL9
1327			}
1328		LABEL9:
1329			if yyr2 || yy2arr2 {
1330				if yyn9 {
1331					r.EncodeNil()
1332				} else {
1333					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1334					if yyq2[2] {
1335						if x.EmptyDir == nil {
1336							r.EncodeNil()
1337						} else {
1338							x.EmptyDir.CodecEncodeSelf(e)
1339						}
1340					} else {
1341						r.EncodeNil()
1342					}
1343				}
1344			} else {
1345				if yyq2[2] {
1346					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1347					r.EncodeString(codecSelferC_UTF81234, string("emptyDir"))
1348					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1349					if yyn9 {
1350						r.EncodeNil()
1351					} else {
1352						if x.EmptyDir == nil {
1353							r.EncodeNil()
1354						} else {
1355							x.EmptyDir.CodecEncodeSelf(e)
1356						}
1357					}
1358				}
1359			}
1360			var yyn12 bool
1361			if x.VolumeSource.GCEPersistentDisk == nil {
1362				yyn12 = true
1363				goto LABEL12
1364			}
1365		LABEL12:
1366			if yyr2 || yy2arr2 {
1367				if yyn12 {
1368					r.EncodeNil()
1369				} else {
1370					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1371					if yyq2[3] {
1372						if x.GCEPersistentDisk == nil {
1373							r.EncodeNil()
1374						} else {
1375							x.GCEPersistentDisk.CodecEncodeSelf(e)
1376						}
1377					} else {
1378						r.EncodeNil()
1379					}
1380				}
1381			} else {
1382				if yyq2[3] {
1383					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1384					r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
1385					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1386					if yyn12 {
1387						r.EncodeNil()
1388					} else {
1389						if x.GCEPersistentDisk == nil {
1390							r.EncodeNil()
1391						} else {
1392							x.GCEPersistentDisk.CodecEncodeSelf(e)
1393						}
1394					}
1395				}
1396			}
1397			var yyn15 bool
1398			if x.VolumeSource.AWSElasticBlockStore == nil {
1399				yyn15 = true
1400				goto LABEL15
1401			}
1402		LABEL15:
1403			if yyr2 || yy2arr2 {
1404				if yyn15 {
1405					r.EncodeNil()
1406				} else {
1407					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1408					if yyq2[4] {
1409						if x.AWSElasticBlockStore == nil {
1410							r.EncodeNil()
1411						} else {
1412							x.AWSElasticBlockStore.CodecEncodeSelf(e)
1413						}
1414					} else {
1415						r.EncodeNil()
1416					}
1417				}
1418			} else {
1419				if yyq2[4] {
1420					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1421					r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
1422					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1423					if yyn15 {
1424						r.EncodeNil()
1425					} else {
1426						if x.AWSElasticBlockStore == nil {
1427							r.EncodeNil()
1428						} else {
1429							x.AWSElasticBlockStore.CodecEncodeSelf(e)
1430						}
1431					}
1432				}
1433			}
1434			var yyn18 bool
1435			if x.VolumeSource.GitRepo == nil {
1436				yyn18 = true
1437				goto LABEL18
1438			}
1439		LABEL18:
1440			if yyr2 || yy2arr2 {
1441				if yyn18 {
1442					r.EncodeNil()
1443				} else {
1444					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1445					if yyq2[5] {
1446						if x.GitRepo == nil {
1447							r.EncodeNil()
1448						} else {
1449							x.GitRepo.CodecEncodeSelf(e)
1450						}
1451					} else {
1452						r.EncodeNil()
1453					}
1454				}
1455			} else {
1456				if yyq2[5] {
1457					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1458					r.EncodeString(codecSelferC_UTF81234, string("gitRepo"))
1459					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1460					if yyn18 {
1461						r.EncodeNil()
1462					} else {
1463						if x.GitRepo == nil {
1464							r.EncodeNil()
1465						} else {
1466							x.GitRepo.CodecEncodeSelf(e)
1467						}
1468					}
1469				}
1470			}
1471			var yyn21 bool
1472			if x.VolumeSource.Secret == nil {
1473				yyn21 = true
1474				goto LABEL21
1475			}
1476		LABEL21:
1477			if yyr2 || yy2arr2 {
1478				if yyn21 {
1479					r.EncodeNil()
1480				} else {
1481					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1482					if yyq2[6] {
1483						if x.Secret == nil {
1484							r.EncodeNil()
1485						} else {
1486							x.Secret.CodecEncodeSelf(e)
1487						}
1488					} else {
1489						r.EncodeNil()
1490					}
1491				}
1492			} else {
1493				if yyq2[6] {
1494					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1495					r.EncodeString(codecSelferC_UTF81234, string("secret"))
1496					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1497					if yyn21 {
1498						r.EncodeNil()
1499					} else {
1500						if x.Secret == nil {
1501							r.EncodeNil()
1502						} else {
1503							x.Secret.CodecEncodeSelf(e)
1504						}
1505					}
1506				}
1507			}
1508			var yyn24 bool
1509			if x.VolumeSource.NFS == nil {
1510				yyn24 = true
1511				goto LABEL24
1512			}
1513		LABEL24:
1514			if yyr2 || yy2arr2 {
1515				if yyn24 {
1516					r.EncodeNil()
1517				} else {
1518					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1519					if yyq2[7] {
1520						if x.NFS == nil {
1521							r.EncodeNil()
1522						} else {
1523							x.NFS.CodecEncodeSelf(e)
1524						}
1525					} else {
1526						r.EncodeNil()
1527					}
1528				}
1529			} else {
1530				if yyq2[7] {
1531					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1532					r.EncodeString(codecSelferC_UTF81234, string("nfs"))
1533					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1534					if yyn24 {
1535						r.EncodeNil()
1536					} else {
1537						if x.NFS == nil {
1538							r.EncodeNil()
1539						} else {
1540							x.NFS.CodecEncodeSelf(e)
1541						}
1542					}
1543				}
1544			}
1545			var yyn27 bool
1546			if x.VolumeSource.ISCSI == nil {
1547				yyn27 = true
1548				goto LABEL27
1549			}
1550		LABEL27:
1551			if yyr2 || yy2arr2 {
1552				if yyn27 {
1553					r.EncodeNil()
1554				} else {
1555					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1556					if yyq2[8] {
1557						if x.ISCSI == nil {
1558							r.EncodeNil()
1559						} else {
1560							x.ISCSI.CodecEncodeSelf(e)
1561						}
1562					} else {
1563						r.EncodeNil()
1564					}
1565				}
1566			} else {
1567				if yyq2[8] {
1568					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1569					r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
1570					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1571					if yyn27 {
1572						r.EncodeNil()
1573					} else {
1574						if x.ISCSI == nil {
1575							r.EncodeNil()
1576						} else {
1577							x.ISCSI.CodecEncodeSelf(e)
1578						}
1579					}
1580				}
1581			}
1582			var yyn30 bool
1583			if x.VolumeSource.Glusterfs == nil {
1584				yyn30 = true
1585				goto LABEL30
1586			}
1587		LABEL30:
1588			if yyr2 || yy2arr2 {
1589				if yyn30 {
1590					r.EncodeNil()
1591				} else {
1592					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1593					if yyq2[9] {
1594						if x.Glusterfs == nil {
1595							r.EncodeNil()
1596						} else {
1597							x.Glusterfs.CodecEncodeSelf(e)
1598						}
1599					} else {
1600						r.EncodeNil()
1601					}
1602				}
1603			} else {
1604				if yyq2[9] {
1605					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1606					r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
1607					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1608					if yyn30 {
1609						r.EncodeNil()
1610					} else {
1611						if x.Glusterfs == nil {
1612							r.EncodeNil()
1613						} else {
1614							x.Glusterfs.CodecEncodeSelf(e)
1615						}
1616					}
1617				}
1618			}
1619			var yyn33 bool
1620			if x.VolumeSource.PersistentVolumeClaim == nil {
1621				yyn33 = true
1622				goto LABEL33
1623			}
1624		LABEL33:
1625			if yyr2 || yy2arr2 {
1626				if yyn33 {
1627					r.EncodeNil()
1628				} else {
1629					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1630					if yyq2[10] {
1631						if x.PersistentVolumeClaim == nil {
1632							r.EncodeNil()
1633						} else {
1634							x.PersistentVolumeClaim.CodecEncodeSelf(e)
1635						}
1636					} else {
1637						r.EncodeNil()
1638					}
1639				}
1640			} else {
1641				if yyq2[10] {
1642					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1643					r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim"))
1644					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1645					if yyn33 {
1646						r.EncodeNil()
1647					} else {
1648						if x.PersistentVolumeClaim == nil {
1649							r.EncodeNil()
1650						} else {
1651							x.PersistentVolumeClaim.CodecEncodeSelf(e)
1652						}
1653					}
1654				}
1655			}
1656			var yyn36 bool
1657			if x.VolumeSource.RBD == nil {
1658				yyn36 = true
1659				goto LABEL36
1660			}
1661		LABEL36:
1662			if yyr2 || yy2arr2 {
1663				if yyn36 {
1664					r.EncodeNil()
1665				} else {
1666					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1667					if yyq2[11] {
1668						if x.RBD == nil {
1669							r.EncodeNil()
1670						} else {
1671							x.RBD.CodecEncodeSelf(e)
1672						}
1673					} else {
1674						r.EncodeNil()
1675					}
1676				}
1677			} else {
1678				if yyq2[11] {
1679					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1680					r.EncodeString(codecSelferC_UTF81234, string("rbd"))
1681					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1682					if yyn36 {
1683						r.EncodeNil()
1684					} else {
1685						if x.RBD == nil {
1686							r.EncodeNil()
1687						} else {
1688							x.RBD.CodecEncodeSelf(e)
1689						}
1690					}
1691				}
1692			}
1693			var yyn39 bool
1694			if x.VolumeSource.FlexVolume == nil {
1695				yyn39 = true
1696				goto LABEL39
1697			}
1698		LABEL39:
1699			if yyr2 || yy2arr2 {
1700				if yyn39 {
1701					r.EncodeNil()
1702				} else {
1703					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1704					if yyq2[12] {
1705						if x.FlexVolume == nil {
1706							r.EncodeNil()
1707						} else {
1708							x.FlexVolume.CodecEncodeSelf(e)
1709						}
1710					} else {
1711						r.EncodeNil()
1712					}
1713				}
1714			} else {
1715				if yyq2[12] {
1716					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1717					r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
1718					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1719					if yyn39 {
1720						r.EncodeNil()
1721					} else {
1722						if x.FlexVolume == nil {
1723							r.EncodeNil()
1724						} else {
1725							x.FlexVolume.CodecEncodeSelf(e)
1726						}
1727					}
1728				}
1729			}
1730			var yyn42 bool
1731			if x.VolumeSource.Cinder == nil {
1732				yyn42 = true
1733				goto LABEL42
1734			}
1735		LABEL42:
1736			if yyr2 || yy2arr2 {
1737				if yyn42 {
1738					r.EncodeNil()
1739				} else {
1740					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1741					if yyq2[13] {
1742						if x.Cinder == nil {
1743							r.EncodeNil()
1744						} else {
1745							x.Cinder.CodecEncodeSelf(e)
1746						}
1747					} else {
1748						r.EncodeNil()
1749					}
1750				}
1751			} else {
1752				if yyq2[13] {
1753					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1754					r.EncodeString(codecSelferC_UTF81234, string("cinder"))
1755					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1756					if yyn42 {
1757						r.EncodeNil()
1758					} else {
1759						if x.Cinder == nil {
1760							r.EncodeNil()
1761						} else {
1762							x.Cinder.CodecEncodeSelf(e)
1763						}
1764					}
1765				}
1766			}
1767			var yyn45 bool
1768			if x.VolumeSource.CephFS == nil {
1769				yyn45 = true
1770				goto LABEL45
1771			}
1772		LABEL45:
1773			if yyr2 || yy2arr2 {
1774				if yyn45 {
1775					r.EncodeNil()
1776				} else {
1777					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1778					if yyq2[14] {
1779						if x.CephFS == nil {
1780							r.EncodeNil()
1781						} else {
1782							x.CephFS.CodecEncodeSelf(e)
1783						}
1784					} else {
1785						r.EncodeNil()
1786					}
1787				}
1788			} else {
1789				if yyq2[14] {
1790					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1791					r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
1792					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1793					if yyn45 {
1794						r.EncodeNil()
1795					} else {
1796						if x.CephFS == nil {
1797							r.EncodeNil()
1798						} else {
1799							x.CephFS.CodecEncodeSelf(e)
1800						}
1801					}
1802				}
1803			}
1804			var yyn48 bool
1805			if x.VolumeSource.Flocker == nil {
1806				yyn48 = true
1807				goto LABEL48
1808			}
1809		LABEL48:
1810			if yyr2 || yy2arr2 {
1811				if yyn48 {
1812					r.EncodeNil()
1813				} else {
1814					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1815					if yyq2[15] {
1816						if x.Flocker == nil {
1817							r.EncodeNil()
1818						} else {
1819							x.Flocker.CodecEncodeSelf(e)
1820						}
1821					} else {
1822						r.EncodeNil()
1823					}
1824				}
1825			} else {
1826				if yyq2[15] {
1827					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1828					r.EncodeString(codecSelferC_UTF81234, string("flocker"))
1829					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1830					if yyn48 {
1831						r.EncodeNil()
1832					} else {
1833						if x.Flocker == nil {
1834							r.EncodeNil()
1835						} else {
1836							x.Flocker.CodecEncodeSelf(e)
1837						}
1838					}
1839				}
1840			}
1841			var yyn51 bool
1842			if x.VolumeSource.DownwardAPI == nil {
1843				yyn51 = true
1844				goto LABEL51
1845			}
1846		LABEL51:
1847			if yyr2 || yy2arr2 {
1848				if yyn51 {
1849					r.EncodeNil()
1850				} else {
1851					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1852					if yyq2[16] {
1853						if x.DownwardAPI == nil {
1854							r.EncodeNil()
1855						} else {
1856							x.DownwardAPI.CodecEncodeSelf(e)
1857						}
1858					} else {
1859						r.EncodeNil()
1860					}
1861				}
1862			} else {
1863				if yyq2[16] {
1864					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1865					r.EncodeString(codecSelferC_UTF81234, string("downwardAPI"))
1866					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1867					if yyn51 {
1868						r.EncodeNil()
1869					} else {
1870						if x.DownwardAPI == nil {
1871							r.EncodeNil()
1872						} else {
1873							x.DownwardAPI.CodecEncodeSelf(e)
1874						}
1875					}
1876				}
1877			}
1878			var yyn54 bool
1879			if x.VolumeSource.FC == nil {
1880				yyn54 = true
1881				goto LABEL54
1882			}
1883		LABEL54:
1884			if yyr2 || yy2arr2 {
1885				if yyn54 {
1886					r.EncodeNil()
1887				} else {
1888					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1889					if yyq2[17] {
1890						if x.FC == nil {
1891							r.EncodeNil()
1892						} else {
1893							x.FC.CodecEncodeSelf(e)
1894						}
1895					} else {
1896						r.EncodeNil()
1897					}
1898				}
1899			} else {
1900				if yyq2[17] {
1901					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1902					r.EncodeString(codecSelferC_UTF81234, string("fc"))
1903					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1904					if yyn54 {
1905						r.EncodeNil()
1906					} else {
1907						if x.FC == nil {
1908							r.EncodeNil()
1909						} else {
1910							x.FC.CodecEncodeSelf(e)
1911						}
1912					}
1913				}
1914			}
1915			var yyn57 bool
1916			if x.VolumeSource.AzureFile == nil {
1917				yyn57 = true
1918				goto LABEL57
1919			}
1920		LABEL57:
1921			if yyr2 || yy2arr2 {
1922				if yyn57 {
1923					r.EncodeNil()
1924				} else {
1925					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1926					if yyq2[18] {
1927						if x.AzureFile == nil {
1928							r.EncodeNil()
1929						} else {
1930							x.AzureFile.CodecEncodeSelf(e)
1931						}
1932					} else {
1933						r.EncodeNil()
1934					}
1935				}
1936			} else {
1937				if yyq2[18] {
1938					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1939					r.EncodeString(codecSelferC_UTF81234, string("azureFile"))
1940					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1941					if yyn57 {
1942						r.EncodeNil()
1943					} else {
1944						if x.AzureFile == nil {
1945							r.EncodeNil()
1946						} else {
1947							x.AzureFile.CodecEncodeSelf(e)
1948						}
1949					}
1950				}
1951			}
1952			var yyn60 bool
1953			if x.VolumeSource.ConfigMap == nil {
1954				yyn60 = true
1955				goto LABEL60
1956			}
1957		LABEL60:
1958			if yyr2 || yy2arr2 {
1959				if yyn60 {
1960					r.EncodeNil()
1961				} else {
1962					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
1963					if yyq2[19] {
1964						if x.ConfigMap == nil {
1965							r.EncodeNil()
1966						} else {
1967							x.ConfigMap.CodecEncodeSelf(e)
1968						}
1969					} else {
1970						r.EncodeNil()
1971					}
1972				}
1973			} else {
1974				if yyq2[19] {
1975					z.EncSendContainerState(codecSelfer_containerMapKey1234)
1976					r.EncodeString(codecSelferC_UTF81234, string("configMap"))
1977					z.EncSendContainerState(codecSelfer_containerMapValue1234)
1978					if yyn60 {
1979						r.EncodeNil()
1980					} else {
1981						if x.ConfigMap == nil {
1982							r.EncodeNil()
1983						} else {
1984							x.ConfigMap.CodecEncodeSelf(e)
1985						}
1986					}
1987				}
1988			}
1989			var yyn63 bool
1990			if x.VolumeSource.VsphereVolume == nil {
1991				yyn63 = true
1992				goto LABEL63
1993			}
1994		LABEL63:
1995			if yyr2 || yy2arr2 {
1996				if yyn63 {
1997					r.EncodeNil()
1998				} else {
1999					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2000					if yyq2[20] {
2001						if x.VsphereVolume == nil {
2002							r.EncodeNil()
2003						} else {
2004							x.VsphereVolume.CodecEncodeSelf(e)
2005						}
2006					} else {
2007						r.EncodeNil()
2008					}
2009				}
2010			} else {
2011				if yyq2[20] {
2012					z.EncSendContainerState(codecSelfer_containerMapKey1234)
2013					r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume"))
2014					z.EncSendContainerState(codecSelfer_containerMapValue1234)
2015					if yyn63 {
2016						r.EncodeNil()
2017					} else {
2018						if x.VsphereVolume == nil {
2019							r.EncodeNil()
2020						} else {
2021							x.VsphereVolume.CodecEncodeSelf(e)
2022						}
2023					}
2024				}
2025			}
2026			var yyn66 bool
2027			if x.VolumeSource.Quobyte == nil {
2028				yyn66 = true
2029				goto LABEL66
2030			}
2031		LABEL66:
2032			if yyr2 || yy2arr2 {
2033				if yyn66 {
2034					r.EncodeNil()
2035				} else {
2036					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2037					if yyq2[21] {
2038						if x.Quobyte == nil {
2039							r.EncodeNil()
2040						} else {
2041							x.Quobyte.CodecEncodeSelf(e)
2042						}
2043					} else {
2044						r.EncodeNil()
2045					}
2046				}
2047			} else {
2048				if yyq2[21] {
2049					z.EncSendContainerState(codecSelfer_containerMapKey1234)
2050					r.EncodeString(codecSelferC_UTF81234, string("quobyte"))
2051					z.EncSendContainerState(codecSelfer_containerMapValue1234)
2052					if yyn66 {
2053						r.EncodeNil()
2054					} else {
2055						if x.Quobyte == nil {
2056							r.EncodeNil()
2057						} else {
2058							x.Quobyte.CodecEncodeSelf(e)
2059						}
2060					}
2061				}
2062			}
2063			var yyn69 bool
2064			if x.VolumeSource.AzureDisk == nil {
2065				yyn69 = true
2066				goto LABEL69
2067			}
2068		LABEL69:
2069			if yyr2 || yy2arr2 {
2070				if yyn69 {
2071					r.EncodeNil()
2072				} else {
2073					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2074					if yyq2[22] {
2075						if x.AzureDisk == nil {
2076							r.EncodeNil()
2077						} else {
2078							x.AzureDisk.CodecEncodeSelf(e)
2079						}
2080					} else {
2081						r.EncodeNil()
2082					}
2083				}
2084			} else {
2085				if yyq2[22] {
2086					z.EncSendContainerState(codecSelfer_containerMapKey1234)
2087					r.EncodeString(codecSelferC_UTF81234, string("azureDisk"))
2088					z.EncSendContainerState(codecSelfer_containerMapValue1234)
2089					if yyn69 {
2090						r.EncodeNil()
2091					} else {
2092						if x.AzureDisk == nil {
2093							r.EncodeNil()
2094						} else {
2095							x.AzureDisk.CodecEncodeSelf(e)
2096						}
2097					}
2098				}
2099			}
2100			var yyn72 bool
2101			if x.VolumeSource.PhotonPersistentDisk == nil {
2102				yyn72 = true
2103				goto LABEL72
2104			}
2105		LABEL72:
2106			if yyr2 || yy2arr2 {
2107				if yyn72 {
2108					r.EncodeNil()
2109				} else {
2110					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2111					if yyq2[23] {
2112						if x.PhotonPersistentDisk == nil {
2113							r.EncodeNil()
2114						} else {
2115							x.PhotonPersistentDisk.CodecEncodeSelf(e)
2116						}
2117					} else {
2118						r.EncodeNil()
2119					}
2120				}
2121			} else {
2122				if yyq2[23] {
2123					z.EncSendContainerState(codecSelfer_containerMapKey1234)
2124					r.EncodeString(codecSelferC_UTF81234, string("photonPersistentDisk"))
2125					z.EncSendContainerState(codecSelfer_containerMapValue1234)
2126					if yyn72 {
2127						r.EncodeNil()
2128					} else {
2129						if x.PhotonPersistentDisk == nil {
2130							r.EncodeNil()
2131						} else {
2132							x.PhotonPersistentDisk.CodecEncodeSelf(e)
2133						}
2134					}
2135				}
2136			}
2137			var yyn75 bool
2138			if x.VolumeSource.Projected == nil {
2139				yyn75 = true
2140				goto LABEL75
2141			}
2142		LABEL75:
2143			if yyr2 || yy2arr2 {
2144				if yyn75 {
2145					r.EncodeNil()
2146				} else {
2147					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2148					if yyq2[24] {
2149						if x.Projected == nil {
2150							r.EncodeNil()
2151						} else {
2152							x.Projected.CodecEncodeSelf(e)
2153						}
2154					} else {
2155						r.EncodeNil()
2156					}
2157				}
2158			} else {
2159				if yyq2[24] {
2160					z.EncSendContainerState(codecSelfer_containerMapKey1234)
2161					r.EncodeString(codecSelferC_UTF81234, string("projected"))
2162					z.EncSendContainerState(codecSelfer_containerMapValue1234)
2163					if yyn75 {
2164						r.EncodeNil()
2165					} else {
2166						if x.Projected == nil {
2167							r.EncodeNil()
2168						} else {
2169							x.Projected.CodecEncodeSelf(e)
2170						}
2171					}
2172				}
2173			}
2174			var yyn78 bool
2175			if x.VolumeSource.PortworxVolume == nil {
2176				yyn78 = true
2177				goto LABEL78
2178			}
2179		LABEL78:
2180			if yyr2 || yy2arr2 {
2181				if yyn78 {
2182					r.EncodeNil()
2183				} else {
2184					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2185					if yyq2[25] {
2186						if x.PortworxVolume == nil {
2187							r.EncodeNil()
2188						} else {
2189							x.PortworxVolume.CodecEncodeSelf(e)
2190						}
2191					} else {
2192						r.EncodeNil()
2193					}
2194				}
2195			} else {
2196				if yyq2[25] {
2197					z.EncSendContainerState(codecSelfer_containerMapKey1234)
2198					r.EncodeString(codecSelferC_UTF81234, string("portworxVolume"))
2199					z.EncSendContainerState(codecSelfer_containerMapValue1234)
2200					if yyn78 {
2201						r.EncodeNil()
2202					} else {
2203						if x.PortworxVolume == nil {
2204							r.EncodeNil()
2205						} else {
2206							x.PortworxVolume.CodecEncodeSelf(e)
2207						}
2208					}
2209				}
2210			}
2211			var yyn81 bool
2212			if x.VolumeSource.ScaleIO == nil {
2213				yyn81 = true
2214				goto LABEL81
2215			}
2216		LABEL81:
2217			if yyr2 || yy2arr2 {
2218				if yyn81 {
2219					r.EncodeNil()
2220				} else {
2221					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2222					if yyq2[26] {
2223						if x.ScaleIO == nil {
2224							r.EncodeNil()
2225						} else {
2226							x.ScaleIO.CodecEncodeSelf(e)
2227						}
2228					} else {
2229						r.EncodeNil()
2230					}
2231				}
2232			} else {
2233				if yyq2[26] {
2234					z.EncSendContainerState(codecSelfer_containerMapKey1234)
2235					r.EncodeString(codecSelferC_UTF81234, string("scaleIO"))
2236					z.EncSendContainerState(codecSelfer_containerMapValue1234)
2237					if yyn81 {
2238						r.EncodeNil()
2239					} else {
2240						if x.ScaleIO == nil {
2241							r.EncodeNil()
2242						} else {
2243							x.ScaleIO.CodecEncodeSelf(e)
2244						}
2245					}
2246				}
2247			}
2248			if yyr2 || yy2arr2 {
2249				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
2250			} else {
2251				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
2252			}
2253		}
2254	}
2255}
2256
2257func (x *Volume) CodecDecodeSelf(d *codec1978.Decoder) {
2258	var h codecSelfer1234
2259	z, r := codec1978.GenHelperDecoder(d)
2260	_, _, _ = h, z, r
2261	yym1 := z.DecBinary()
2262	_ = yym1
2263	if false {
2264	} else if z.HasExtensions() && z.DecExt(x) {
2265	} else {
2266		yyct2 := r.ContainerType()
2267		if yyct2 == codecSelferValueTypeMap1234 {
2268			yyl2 := r.ReadMapStart()
2269			if yyl2 == 0 {
2270				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
2271			} else {
2272				x.codecDecodeSelfFromMap(yyl2, d)
2273			}
2274		} else if yyct2 == codecSelferValueTypeArray1234 {
2275			yyl2 := r.ReadArrayStart()
2276			if yyl2 == 0 {
2277				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
2278			} else {
2279				x.codecDecodeSelfFromArray(yyl2, d)
2280			}
2281		} else {
2282			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
2283		}
2284	}
2285}
2286
2287func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
2288	var h codecSelfer1234
2289	z, r := codec1978.GenHelperDecoder(d)
2290	_, _, _ = h, z, r
2291	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
2292	_ = yys3Slc
2293	var yyhl3 bool = l >= 0
2294	for yyj3 := 0; ; yyj3++ {
2295		if yyhl3 {
2296			if yyj3 >= l {
2297				break
2298			}
2299		} else {
2300			if r.CheckBreak() {
2301				break
2302			}
2303		}
2304		z.DecSendContainerState(codecSelfer_containerMapKey1234)
2305		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
2306		yys3 := string(yys3Slc)
2307		z.DecSendContainerState(codecSelfer_containerMapValue1234)
2308		switch yys3 {
2309		case "name":
2310			if r.TryDecodeAsNil() {
2311				x.Name = ""
2312			} else {
2313				yyv4 := &x.Name
2314				yym5 := z.DecBinary()
2315				_ = yym5
2316				if false {
2317				} else {
2318					*((*string)(yyv4)) = r.DecodeString()
2319				}
2320			}
2321		case "hostPath":
2322			if x.VolumeSource.HostPath == nil {
2323				x.VolumeSource.HostPath = new(HostPathVolumeSource)
2324			}
2325			if r.TryDecodeAsNil() {
2326				if x.HostPath != nil {
2327					x.HostPath = nil
2328				}
2329			} else {
2330				if x.HostPath == nil {
2331					x.HostPath = new(HostPathVolumeSource)
2332				}
2333				x.HostPath.CodecDecodeSelf(d)
2334			}
2335		case "emptyDir":
2336			if x.VolumeSource.EmptyDir == nil {
2337				x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource)
2338			}
2339			if r.TryDecodeAsNil() {
2340				if x.EmptyDir != nil {
2341					x.EmptyDir = nil
2342				}
2343			} else {
2344				if x.EmptyDir == nil {
2345					x.EmptyDir = new(EmptyDirVolumeSource)
2346				}
2347				x.EmptyDir.CodecDecodeSelf(d)
2348			}
2349		case "gcePersistentDisk":
2350			if x.VolumeSource.GCEPersistentDisk == nil {
2351				x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
2352			}
2353			if r.TryDecodeAsNil() {
2354				if x.GCEPersistentDisk != nil {
2355					x.GCEPersistentDisk = nil
2356				}
2357			} else {
2358				if x.GCEPersistentDisk == nil {
2359					x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
2360				}
2361				x.GCEPersistentDisk.CodecDecodeSelf(d)
2362			}
2363		case "awsElasticBlockStore":
2364			if x.VolumeSource.AWSElasticBlockStore == nil {
2365				x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
2366			}
2367			if r.TryDecodeAsNil() {
2368				if x.AWSElasticBlockStore != nil {
2369					x.AWSElasticBlockStore = nil
2370				}
2371			} else {
2372				if x.AWSElasticBlockStore == nil {
2373					x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
2374				}
2375				x.AWSElasticBlockStore.CodecDecodeSelf(d)
2376			}
2377		case "gitRepo":
2378			if x.VolumeSource.GitRepo == nil {
2379				x.VolumeSource.GitRepo = new(GitRepoVolumeSource)
2380			}
2381			if r.TryDecodeAsNil() {
2382				if x.GitRepo != nil {
2383					x.GitRepo = nil
2384				}
2385			} else {
2386				if x.GitRepo == nil {
2387					x.GitRepo = new(GitRepoVolumeSource)
2388				}
2389				x.GitRepo.CodecDecodeSelf(d)
2390			}
2391		case "secret":
2392			if x.VolumeSource.Secret == nil {
2393				x.VolumeSource.Secret = new(SecretVolumeSource)
2394			}
2395			if r.TryDecodeAsNil() {
2396				if x.Secret != nil {
2397					x.Secret = nil
2398				}
2399			} else {
2400				if x.Secret == nil {
2401					x.Secret = new(SecretVolumeSource)
2402				}
2403				x.Secret.CodecDecodeSelf(d)
2404			}
2405		case "nfs":
2406			if x.VolumeSource.NFS == nil {
2407				x.VolumeSource.NFS = new(NFSVolumeSource)
2408			}
2409			if r.TryDecodeAsNil() {
2410				if x.NFS != nil {
2411					x.NFS = nil
2412				}
2413			} else {
2414				if x.NFS == nil {
2415					x.NFS = new(NFSVolumeSource)
2416				}
2417				x.NFS.CodecDecodeSelf(d)
2418			}
2419		case "iscsi":
2420			if x.VolumeSource.ISCSI == nil {
2421				x.VolumeSource.ISCSI = new(ISCSIVolumeSource)
2422			}
2423			if r.TryDecodeAsNil() {
2424				if x.ISCSI != nil {
2425					x.ISCSI = nil
2426				}
2427			} else {
2428				if x.ISCSI == nil {
2429					x.ISCSI = new(ISCSIVolumeSource)
2430				}
2431				x.ISCSI.CodecDecodeSelf(d)
2432			}
2433		case "glusterfs":
2434			if x.VolumeSource.Glusterfs == nil {
2435				x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource)
2436			}
2437			if r.TryDecodeAsNil() {
2438				if x.Glusterfs != nil {
2439					x.Glusterfs = nil
2440				}
2441			} else {
2442				if x.Glusterfs == nil {
2443					x.Glusterfs = new(GlusterfsVolumeSource)
2444				}
2445				x.Glusterfs.CodecDecodeSelf(d)
2446			}
2447		case "persistentVolumeClaim":
2448			if x.VolumeSource.PersistentVolumeClaim == nil {
2449				x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
2450			}
2451			if r.TryDecodeAsNil() {
2452				if x.PersistentVolumeClaim != nil {
2453					x.PersistentVolumeClaim = nil
2454				}
2455			} else {
2456				if x.PersistentVolumeClaim == nil {
2457					x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
2458				}
2459				x.PersistentVolumeClaim.CodecDecodeSelf(d)
2460			}
2461		case "rbd":
2462			if x.VolumeSource.RBD == nil {
2463				x.VolumeSource.RBD = new(RBDVolumeSource)
2464			}
2465			if r.TryDecodeAsNil() {
2466				if x.RBD != nil {
2467					x.RBD = nil
2468				}
2469			} else {
2470				if x.RBD == nil {
2471					x.RBD = new(RBDVolumeSource)
2472				}
2473				x.RBD.CodecDecodeSelf(d)
2474			}
2475		case "flexVolume":
2476			if x.VolumeSource.FlexVolume == nil {
2477				x.VolumeSource.FlexVolume = new(FlexVolumeSource)
2478			}
2479			if r.TryDecodeAsNil() {
2480				if x.FlexVolume != nil {
2481					x.FlexVolume = nil
2482				}
2483			} else {
2484				if x.FlexVolume == nil {
2485					x.FlexVolume = new(FlexVolumeSource)
2486				}
2487				x.FlexVolume.CodecDecodeSelf(d)
2488			}
2489		case "cinder":
2490			if x.VolumeSource.Cinder == nil {
2491				x.VolumeSource.Cinder = new(CinderVolumeSource)
2492			}
2493			if r.TryDecodeAsNil() {
2494				if x.Cinder != nil {
2495					x.Cinder = nil
2496				}
2497			} else {
2498				if x.Cinder == nil {
2499					x.Cinder = new(CinderVolumeSource)
2500				}
2501				x.Cinder.CodecDecodeSelf(d)
2502			}
2503		case "cephfs":
2504			if x.VolumeSource.CephFS == nil {
2505				x.VolumeSource.CephFS = new(CephFSVolumeSource)
2506			}
2507			if r.TryDecodeAsNil() {
2508				if x.CephFS != nil {
2509					x.CephFS = nil
2510				}
2511			} else {
2512				if x.CephFS == nil {
2513					x.CephFS = new(CephFSVolumeSource)
2514				}
2515				x.CephFS.CodecDecodeSelf(d)
2516			}
2517		case "flocker":
2518			if x.VolumeSource.Flocker == nil {
2519				x.VolumeSource.Flocker = new(FlockerVolumeSource)
2520			}
2521			if r.TryDecodeAsNil() {
2522				if x.Flocker != nil {
2523					x.Flocker = nil
2524				}
2525			} else {
2526				if x.Flocker == nil {
2527					x.Flocker = new(FlockerVolumeSource)
2528				}
2529				x.Flocker.CodecDecodeSelf(d)
2530			}
2531		case "downwardAPI":
2532			if x.VolumeSource.DownwardAPI == nil {
2533				x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource)
2534			}
2535			if r.TryDecodeAsNil() {
2536				if x.DownwardAPI != nil {
2537					x.DownwardAPI = nil
2538				}
2539			} else {
2540				if x.DownwardAPI == nil {
2541					x.DownwardAPI = new(DownwardAPIVolumeSource)
2542				}
2543				x.DownwardAPI.CodecDecodeSelf(d)
2544			}
2545		case "fc":
2546			if x.VolumeSource.FC == nil {
2547				x.VolumeSource.FC = new(FCVolumeSource)
2548			}
2549			if r.TryDecodeAsNil() {
2550				if x.FC != nil {
2551					x.FC = nil
2552				}
2553			} else {
2554				if x.FC == nil {
2555					x.FC = new(FCVolumeSource)
2556				}
2557				x.FC.CodecDecodeSelf(d)
2558			}
2559		case "azureFile":
2560			if x.VolumeSource.AzureFile == nil {
2561				x.VolumeSource.AzureFile = new(AzureFileVolumeSource)
2562			}
2563			if r.TryDecodeAsNil() {
2564				if x.AzureFile != nil {
2565					x.AzureFile = nil
2566				}
2567			} else {
2568				if x.AzureFile == nil {
2569					x.AzureFile = new(AzureFileVolumeSource)
2570				}
2571				x.AzureFile.CodecDecodeSelf(d)
2572			}
2573		case "configMap":
2574			if x.VolumeSource.ConfigMap == nil {
2575				x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource)
2576			}
2577			if r.TryDecodeAsNil() {
2578				if x.ConfigMap != nil {
2579					x.ConfigMap = nil
2580				}
2581			} else {
2582				if x.ConfigMap == nil {
2583					x.ConfigMap = new(ConfigMapVolumeSource)
2584				}
2585				x.ConfigMap.CodecDecodeSelf(d)
2586			}
2587		case "vsphereVolume":
2588			if x.VolumeSource.VsphereVolume == nil {
2589				x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
2590			}
2591			if r.TryDecodeAsNil() {
2592				if x.VsphereVolume != nil {
2593					x.VsphereVolume = nil
2594				}
2595			} else {
2596				if x.VsphereVolume == nil {
2597					x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
2598				}
2599				x.VsphereVolume.CodecDecodeSelf(d)
2600			}
2601		case "quobyte":
2602			if x.VolumeSource.Quobyte == nil {
2603				x.VolumeSource.Quobyte = new(QuobyteVolumeSource)
2604			}
2605			if r.TryDecodeAsNil() {
2606				if x.Quobyte != nil {
2607					x.Quobyte = nil
2608				}
2609			} else {
2610				if x.Quobyte == nil {
2611					x.Quobyte = new(QuobyteVolumeSource)
2612				}
2613				x.Quobyte.CodecDecodeSelf(d)
2614			}
2615		case "azureDisk":
2616			if x.VolumeSource.AzureDisk == nil {
2617				x.VolumeSource.AzureDisk = new(AzureDiskVolumeSource)
2618			}
2619			if r.TryDecodeAsNil() {
2620				if x.AzureDisk != nil {
2621					x.AzureDisk = nil
2622				}
2623			} else {
2624				if x.AzureDisk == nil {
2625					x.AzureDisk = new(AzureDiskVolumeSource)
2626				}
2627				x.AzureDisk.CodecDecodeSelf(d)
2628			}
2629		case "photonPersistentDisk":
2630			if x.VolumeSource.PhotonPersistentDisk == nil {
2631				x.VolumeSource.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource)
2632			}
2633			if r.TryDecodeAsNil() {
2634				if x.PhotonPersistentDisk != nil {
2635					x.PhotonPersistentDisk = nil
2636				}
2637			} else {
2638				if x.PhotonPersistentDisk == nil {
2639					x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource)
2640				}
2641				x.PhotonPersistentDisk.CodecDecodeSelf(d)
2642			}
2643		case "projected":
2644			if x.VolumeSource.Projected == nil {
2645				x.VolumeSource.Projected = new(ProjectedVolumeSource)
2646			}
2647			if r.TryDecodeAsNil() {
2648				if x.Projected != nil {
2649					x.Projected = nil
2650				}
2651			} else {
2652				if x.Projected == nil {
2653					x.Projected = new(ProjectedVolumeSource)
2654				}
2655				x.Projected.CodecDecodeSelf(d)
2656			}
2657		case "portworxVolume":
2658			if x.VolumeSource.PortworxVolume == nil {
2659				x.VolumeSource.PortworxVolume = new(PortworxVolumeSource)
2660			}
2661			if r.TryDecodeAsNil() {
2662				if x.PortworxVolume != nil {
2663					x.PortworxVolume = nil
2664				}
2665			} else {
2666				if x.PortworxVolume == nil {
2667					x.PortworxVolume = new(PortworxVolumeSource)
2668				}
2669				x.PortworxVolume.CodecDecodeSelf(d)
2670			}
2671		case "scaleIO":
2672			if x.VolumeSource.ScaleIO == nil {
2673				x.VolumeSource.ScaleIO = new(ScaleIOVolumeSource)
2674			}
2675			if r.TryDecodeAsNil() {
2676				if x.ScaleIO != nil {
2677					x.ScaleIO = nil
2678				}
2679			} else {
2680				if x.ScaleIO == nil {
2681					x.ScaleIO = new(ScaleIOVolumeSource)
2682				}
2683				x.ScaleIO.CodecDecodeSelf(d)
2684			}
2685		default:
2686			z.DecStructFieldNotFound(-1, yys3)
2687		} // end switch yys3
2688	} // end for yyj3
2689	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
2690}
2691
2692func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
2693	var h codecSelfer1234
2694	z, r := codec1978.GenHelperDecoder(d)
2695	_, _, _ = h, z, r
2696	var yyj32 int
2697	var yyb32 bool
2698	var yyhl32 bool = l >= 0
2699	yyj32++
2700	if yyhl32 {
2701		yyb32 = yyj32 > l
2702	} else {
2703		yyb32 = r.CheckBreak()
2704	}
2705	if yyb32 {
2706		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
2707		return
2708	}
2709	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2710	if r.TryDecodeAsNil() {
2711		x.Name = ""
2712	} else {
2713		yyv33 := &x.Name
2714		yym34 := z.DecBinary()
2715		_ = yym34
2716		if false {
2717		} else {
2718			*((*string)(yyv33)) = r.DecodeString()
2719		}
2720	}
2721	if x.VolumeSource.HostPath == nil {
2722		x.VolumeSource.HostPath = new(HostPathVolumeSource)
2723	}
2724	yyj32++
2725	if yyhl32 {
2726		yyb32 = yyj32 > l
2727	} else {
2728		yyb32 = r.CheckBreak()
2729	}
2730	if yyb32 {
2731		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
2732		return
2733	}
2734	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2735	if r.TryDecodeAsNil() {
2736		if x.HostPath != nil {
2737			x.HostPath = nil
2738		}
2739	} else {
2740		if x.HostPath == nil {
2741			x.HostPath = new(HostPathVolumeSource)
2742		}
2743		x.HostPath.CodecDecodeSelf(d)
2744	}
2745	if x.VolumeSource.EmptyDir == nil {
2746		x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource)
2747	}
2748	yyj32++
2749	if yyhl32 {
2750		yyb32 = yyj32 > l
2751	} else {
2752		yyb32 = r.CheckBreak()
2753	}
2754	if yyb32 {
2755		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
2756		return
2757	}
2758	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2759	if r.TryDecodeAsNil() {
2760		if x.EmptyDir != nil {
2761			x.EmptyDir = nil
2762		}
2763	} else {
2764		if x.EmptyDir == nil {
2765			x.EmptyDir = new(EmptyDirVolumeSource)
2766		}
2767		x.EmptyDir.CodecDecodeSelf(d)
2768	}
2769	if x.VolumeSource.GCEPersistentDisk == nil {
2770		x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
2771	}
2772	yyj32++
2773	if yyhl32 {
2774		yyb32 = yyj32 > l
2775	} else {
2776		yyb32 = r.CheckBreak()
2777	}
2778	if yyb32 {
2779		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
2780		return
2781	}
2782	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2783	if r.TryDecodeAsNil() {
2784		if x.GCEPersistentDisk != nil {
2785			x.GCEPersistentDisk = nil
2786		}
2787	} else {
2788		if x.GCEPersistentDisk == nil {
2789			x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
2790		}
2791		x.GCEPersistentDisk.CodecDecodeSelf(d)
2792	}
2793	if x.VolumeSource.AWSElasticBlockStore == nil {
2794		x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
2795	}
2796	yyj32++
2797	if yyhl32 {
2798		yyb32 = yyj32 > l
2799	} else {
2800		yyb32 = r.CheckBreak()
2801	}
2802	if yyb32 {
2803		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
2804		return
2805	}
2806	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2807	if r.TryDecodeAsNil() {
2808		if x.AWSElasticBlockStore != nil {
2809			x.AWSElasticBlockStore = nil
2810		}
2811	} else {
2812		if x.AWSElasticBlockStore == nil {
2813			x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
2814		}
2815		x.AWSElasticBlockStore.CodecDecodeSelf(d)
2816	}
2817	if x.VolumeSource.GitRepo == nil {
2818		x.VolumeSource.GitRepo = new(GitRepoVolumeSource)
2819	}
2820	yyj32++
2821	if yyhl32 {
2822		yyb32 = yyj32 > l
2823	} else {
2824		yyb32 = r.CheckBreak()
2825	}
2826	if yyb32 {
2827		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
2828		return
2829	}
2830	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2831	if r.TryDecodeAsNil() {
2832		if x.GitRepo != nil {
2833			x.GitRepo = nil
2834		}
2835	} else {
2836		if x.GitRepo == nil {
2837			x.GitRepo = new(GitRepoVolumeSource)
2838		}
2839		x.GitRepo.CodecDecodeSelf(d)
2840	}
2841	if x.VolumeSource.Secret == nil {
2842		x.VolumeSource.Secret = new(SecretVolumeSource)
2843	}
2844	yyj32++
2845	if yyhl32 {
2846		yyb32 = yyj32 > l
2847	} else {
2848		yyb32 = r.CheckBreak()
2849	}
2850	if yyb32 {
2851		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
2852		return
2853	}
2854	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2855	if r.TryDecodeAsNil() {
2856		if x.Secret != nil {
2857			x.Secret = nil
2858		}
2859	} else {
2860		if x.Secret == nil {
2861			x.Secret = new(SecretVolumeSource)
2862		}
2863		x.Secret.CodecDecodeSelf(d)
2864	}
2865	if x.VolumeSource.NFS == nil {
2866		x.VolumeSource.NFS = new(NFSVolumeSource)
2867	}
2868	yyj32++
2869	if yyhl32 {
2870		yyb32 = yyj32 > l
2871	} else {
2872		yyb32 = r.CheckBreak()
2873	}
2874	if yyb32 {
2875		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
2876		return
2877	}
2878	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2879	if r.TryDecodeAsNil() {
2880		if x.NFS != nil {
2881			x.NFS = nil
2882		}
2883	} else {
2884		if x.NFS == nil {
2885			x.NFS = new(NFSVolumeSource)
2886		}
2887		x.NFS.CodecDecodeSelf(d)
2888	}
2889	if x.VolumeSource.ISCSI == nil {
2890		x.VolumeSource.ISCSI = new(ISCSIVolumeSource)
2891	}
2892	yyj32++
2893	if yyhl32 {
2894		yyb32 = yyj32 > l
2895	} else {
2896		yyb32 = r.CheckBreak()
2897	}
2898	if yyb32 {
2899		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
2900		return
2901	}
2902	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2903	if r.TryDecodeAsNil() {
2904		if x.ISCSI != nil {
2905			x.ISCSI = nil
2906		}
2907	} else {
2908		if x.ISCSI == nil {
2909			x.ISCSI = new(ISCSIVolumeSource)
2910		}
2911		x.ISCSI.CodecDecodeSelf(d)
2912	}
2913	if x.VolumeSource.Glusterfs == nil {
2914		x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource)
2915	}
2916	yyj32++
2917	if yyhl32 {
2918		yyb32 = yyj32 > l
2919	} else {
2920		yyb32 = r.CheckBreak()
2921	}
2922	if yyb32 {
2923		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
2924		return
2925	}
2926	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2927	if r.TryDecodeAsNil() {
2928		if x.Glusterfs != nil {
2929			x.Glusterfs = nil
2930		}
2931	} else {
2932		if x.Glusterfs == nil {
2933			x.Glusterfs = new(GlusterfsVolumeSource)
2934		}
2935		x.Glusterfs.CodecDecodeSelf(d)
2936	}
2937	if x.VolumeSource.PersistentVolumeClaim == nil {
2938		x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
2939	}
2940	yyj32++
2941	if yyhl32 {
2942		yyb32 = yyj32 > l
2943	} else {
2944		yyb32 = r.CheckBreak()
2945	}
2946	if yyb32 {
2947		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
2948		return
2949	}
2950	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2951	if r.TryDecodeAsNil() {
2952		if x.PersistentVolumeClaim != nil {
2953			x.PersistentVolumeClaim = nil
2954		}
2955	} else {
2956		if x.PersistentVolumeClaim == nil {
2957			x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
2958		}
2959		x.PersistentVolumeClaim.CodecDecodeSelf(d)
2960	}
2961	if x.VolumeSource.RBD == nil {
2962		x.VolumeSource.RBD = new(RBDVolumeSource)
2963	}
2964	yyj32++
2965	if yyhl32 {
2966		yyb32 = yyj32 > l
2967	} else {
2968		yyb32 = r.CheckBreak()
2969	}
2970	if yyb32 {
2971		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
2972		return
2973	}
2974	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2975	if r.TryDecodeAsNil() {
2976		if x.RBD != nil {
2977			x.RBD = nil
2978		}
2979	} else {
2980		if x.RBD == nil {
2981			x.RBD = new(RBDVolumeSource)
2982		}
2983		x.RBD.CodecDecodeSelf(d)
2984	}
2985	if x.VolumeSource.FlexVolume == nil {
2986		x.VolumeSource.FlexVolume = new(FlexVolumeSource)
2987	}
2988	yyj32++
2989	if yyhl32 {
2990		yyb32 = yyj32 > l
2991	} else {
2992		yyb32 = r.CheckBreak()
2993	}
2994	if yyb32 {
2995		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
2996		return
2997	}
2998	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2999	if r.TryDecodeAsNil() {
3000		if x.FlexVolume != nil {
3001			x.FlexVolume = nil
3002		}
3003	} else {
3004		if x.FlexVolume == nil {
3005			x.FlexVolume = new(FlexVolumeSource)
3006		}
3007		x.FlexVolume.CodecDecodeSelf(d)
3008	}
3009	if x.VolumeSource.Cinder == nil {
3010		x.VolumeSource.Cinder = new(CinderVolumeSource)
3011	}
3012	yyj32++
3013	if yyhl32 {
3014		yyb32 = yyj32 > l
3015	} else {
3016		yyb32 = r.CheckBreak()
3017	}
3018	if yyb32 {
3019		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
3020		return
3021	}
3022	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
3023	if r.TryDecodeAsNil() {
3024		if x.Cinder != nil {
3025			x.Cinder = nil
3026		}
3027	} else {
3028		if x.Cinder == nil {
3029			x.Cinder = new(CinderVolumeSource)
3030		}
3031		x.Cinder.CodecDecodeSelf(d)
3032	}
3033	if x.VolumeSource.CephFS == nil {
3034		x.VolumeSource.CephFS = new(CephFSVolumeSource)
3035	}
3036	yyj32++
3037	if yyhl32 {
3038		yyb32 = yyj32 > l
3039	} else {
3040		yyb32 = r.CheckBreak()
3041	}
3042	if yyb32 {
3043		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
3044		return
3045	}
3046	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
3047	if r.TryDecodeAsNil() {
3048		if x.CephFS != nil {
3049			x.CephFS = nil
3050		}
3051	} else {
3052		if x.CephFS == nil {
3053			x.CephFS = new(CephFSVolumeSource)
3054		}
3055		x.CephFS.CodecDecodeSelf(d)
3056	}
3057	if x.VolumeSource.Flocker == nil {
3058		x.VolumeSource.Flocker = new(FlockerVolumeSource)
3059	}
3060	yyj32++
3061	if yyhl32 {
3062		yyb32 = yyj32 > l
3063	} else {
3064		yyb32 = r.CheckBreak()
3065	}
3066	if yyb32 {
3067		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
3068		return
3069	}
3070	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
3071	if r.TryDecodeAsNil() {
3072		if x.Flocker != nil {
3073			x.Flocker = nil
3074		}
3075	} else {
3076		if x.Flocker == nil {
3077			x.Flocker = new(FlockerVolumeSource)
3078		}
3079		x.Flocker.CodecDecodeSelf(d)
3080	}
3081	if x.VolumeSource.DownwardAPI == nil {
3082		x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource)
3083	}
3084	yyj32++
3085	if yyhl32 {
3086		yyb32 = yyj32 > l
3087	} else {
3088		yyb32 = r.CheckBreak()
3089	}
3090	if yyb32 {
3091		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
3092		return
3093	}
3094	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
3095	if r.TryDecodeAsNil() {
3096		if x.DownwardAPI != nil {
3097			x.DownwardAPI = nil
3098		}
3099	} else {
3100		if x.DownwardAPI == nil {
3101			x.DownwardAPI = new(DownwardAPIVolumeSource)
3102		}
3103		x.DownwardAPI.CodecDecodeSelf(d)
3104	}
3105	if x.VolumeSource.FC == nil {
3106		x.VolumeSource.FC = new(FCVolumeSource)
3107	}
3108	yyj32++
3109	if yyhl32 {
3110		yyb32 = yyj32 > l
3111	} else {
3112		yyb32 = r.CheckBreak()
3113	}
3114	if yyb32 {
3115		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
3116		return
3117	}
3118	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
3119	if r.TryDecodeAsNil() {
3120		if x.FC != nil {
3121			x.FC = nil
3122		}
3123	} else {
3124		if x.FC == nil {
3125			x.FC = new(FCVolumeSource)
3126		}
3127		x.FC.CodecDecodeSelf(d)
3128	}
3129	if x.VolumeSource.AzureFile == nil {
3130		x.VolumeSource.AzureFile = new(AzureFileVolumeSource)
3131	}
3132	yyj32++
3133	if yyhl32 {
3134		yyb32 = yyj32 > l
3135	} else {
3136		yyb32 = r.CheckBreak()
3137	}
3138	if yyb32 {
3139		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
3140		return
3141	}
3142	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
3143	if r.TryDecodeAsNil() {
3144		if x.AzureFile != nil {
3145			x.AzureFile = nil
3146		}
3147	} else {
3148		if x.AzureFile == nil {
3149			x.AzureFile = new(AzureFileVolumeSource)
3150		}
3151		x.AzureFile.CodecDecodeSelf(d)
3152	}
3153	if x.VolumeSource.ConfigMap == nil {
3154		x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource)
3155	}
3156	yyj32++
3157	if yyhl32 {
3158		yyb32 = yyj32 > l
3159	} else {
3160		yyb32 = r.CheckBreak()
3161	}
3162	if yyb32 {
3163		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
3164		return
3165	}
3166	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
3167	if r.TryDecodeAsNil() {
3168		if x.ConfigMap != nil {
3169			x.ConfigMap = nil
3170		}
3171	} else {
3172		if x.ConfigMap == nil {
3173			x.ConfigMap = new(ConfigMapVolumeSource)
3174		}
3175		x.ConfigMap.CodecDecodeSelf(d)
3176	}
3177	if x.VolumeSource.VsphereVolume == nil {
3178		x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
3179	}
3180	yyj32++
3181	if yyhl32 {
3182		yyb32 = yyj32 > l
3183	} else {
3184		yyb32 = r.CheckBreak()
3185	}
3186	if yyb32 {
3187		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
3188		return
3189	}
3190	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
3191	if r.TryDecodeAsNil() {
3192		if x.VsphereVolume != nil {
3193			x.VsphereVolume = nil
3194		}
3195	} else {
3196		if x.VsphereVolume == nil {
3197			x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
3198		}
3199		x.VsphereVolume.CodecDecodeSelf(d)
3200	}
3201	if x.VolumeSource.Quobyte == nil {
3202		x.VolumeSource.Quobyte = new(QuobyteVolumeSource)
3203	}
3204	yyj32++
3205	if yyhl32 {
3206		yyb32 = yyj32 > l
3207	} else {
3208		yyb32 = r.CheckBreak()
3209	}
3210	if yyb32 {
3211		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
3212		return
3213	}
3214	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
3215	if r.TryDecodeAsNil() {
3216		if x.Quobyte != nil {
3217			x.Quobyte = nil
3218		}
3219	} else {
3220		if x.Quobyte == nil {
3221			x.Quobyte = new(QuobyteVolumeSource)
3222		}
3223		x.Quobyte.CodecDecodeSelf(d)
3224	}
3225	if x.VolumeSource.AzureDisk == nil {
3226		x.VolumeSource.AzureDisk = new(AzureDiskVolumeSource)
3227	}
3228	yyj32++
3229	if yyhl32 {
3230		yyb32 = yyj32 > l
3231	} else {
3232		yyb32 = r.CheckBreak()
3233	}
3234	if yyb32 {
3235		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
3236		return
3237	}
3238	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
3239	if r.TryDecodeAsNil() {
3240		if x.AzureDisk != nil {
3241			x.AzureDisk = nil
3242		}
3243	} else {
3244		if x.AzureDisk == nil {
3245			x.AzureDisk = new(AzureDiskVolumeSource)
3246		}
3247		x.AzureDisk.CodecDecodeSelf(d)
3248	}
3249	if x.VolumeSource.PhotonPersistentDisk == nil {
3250		x.VolumeSource.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource)
3251	}
3252	yyj32++
3253	if yyhl32 {
3254		yyb32 = yyj32 > l
3255	} else {
3256		yyb32 = r.CheckBreak()
3257	}
3258	if yyb32 {
3259		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
3260		return
3261	}
3262	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
3263	if r.TryDecodeAsNil() {
3264		if x.PhotonPersistentDisk != nil {
3265			x.PhotonPersistentDisk = nil
3266		}
3267	} else {
3268		if x.PhotonPersistentDisk == nil {
3269			x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource)
3270		}
3271		x.PhotonPersistentDisk.CodecDecodeSelf(d)
3272	}
3273	if x.VolumeSource.Projected == nil {
3274		x.VolumeSource.Projected = new(ProjectedVolumeSource)
3275	}
3276	yyj32++
3277	if yyhl32 {
3278		yyb32 = yyj32 > l
3279	} else {
3280		yyb32 = r.CheckBreak()
3281	}
3282	if yyb32 {
3283		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
3284		return
3285	}
3286	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
3287	if r.TryDecodeAsNil() {
3288		if x.Projected != nil {
3289			x.Projected = nil
3290		}
3291	} else {
3292		if x.Projected == nil {
3293			x.Projected = new(ProjectedVolumeSource)
3294		}
3295		x.Projected.CodecDecodeSelf(d)
3296	}
3297	if x.VolumeSource.PortworxVolume == nil {
3298		x.VolumeSource.PortworxVolume = new(PortworxVolumeSource)
3299	}
3300	yyj32++
3301	if yyhl32 {
3302		yyb32 = yyj32 > l
3303	} else {
3304		yyb32 = r.CheckBreak()
3305	}
3306	if yyb32 {
3307		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
3308		return
3309	}
3310	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
3311	if r.TryDecodeAsNil() {
3312		if x.PortworxVolume != nil {
3313			x.PortworxVolume = nil
3314		}
3315	} else {
3316		if x.PortworxVolume == nil {
3317			x.PortworxVolume = new(PortworxVolumeSource)
3318		}
3319		x.PortworxVolume.CodecDecodeSelf(d)
3320	}
3321	if x.VolumeSource.ScaleIO == nil {
3322		x.VolumeSource.ScaleIO = new(ScaleIOVolumeSource)
3323	}
3324	yyj32++
3325	if yyhl32 {
3326		yyb32 = yyj32 > l
3327	} else {
3328		yyb32 = r.CheckBreak()
3329	}
3330	if yyb32 {
3331		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
3332		return
3333	}
3334	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
3335	if r.TryDecodeAsNil() {
3336		if x.ScaleIO != nil {
3337			x.ScaleIO = nil
3338		}
3339	} else {
3340		if x.ScaleIO == nil {
3341			x.ScaleIO = new(ScaleIOVolumeSource)
3342		}
3343		x.ScaleIO.CodecDecodeSelf(d)
3344	}
3345	for {
3346		yyj32++
3347		if yyhl32 {
3348			yyb32 = yyj32 > l
3349		} else {
3350			yyb32 = r.CheckBreak()
3351		}
3352		if yyb32 {
3353			break
3354		}
3355		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
3356		z.DecStructFieldNotFound(yyj32-1, "")
3357	}
3358	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
3359}
3360
3361func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
3362	var h codecSelfer1234
3363	z, r := codec1978.GenHelperEncoder(e)
3364	_, _, _ = h, z, r
3365	if x == nil {
3366		r.EncodeNil()
3367	} else {
3368		yym1 := z.EncBinary()
3369		_ = yym1
3370		if false {
3371		} else if z.HasExtensions() && z.EncExt(x) {
3372		} else {
3373			yysep2 := !z.EncBinary()
3374			yy2arr2 := z.EncBasicHandle().StructToArray
3375			var yyq2 [26]bool
3376			_, _, _ = yysep2, yyq2, yy2arr2
3377			const yyr2 bool = false
3378			yyq2[0] = x.HostPath != nil
3379			yyq2[1] = x.EmptyDir != nil
3380			yyq2[2] = x.GCEPersistentDisk != nil
3381			yyq2[3] = x.AWSElasticBlockStore != nil
3382			yyq2[4] = x.GitRepo != nil
3383			yyq2[5] = x.Secret != nil
3384			yyq2[6] = x.NFS != nil
3385			yyq2[7] = x.ISCSI != nil
3386			yyq2[8] = x.Glusterfs != nil
3387			yyq2[9] = x.PersistentVolumeClaim != nil
3388			yyq2[10] = x.RBD != nil
3389			yyq2[11] = x.FlexVolume != nil
3390			yyq2[12] = x.Cinder != nil
3391			yyq2[13] = x.CephFS != nil
3392			yyq2[14] = x.Flocker != nil
3393			yyq2[15] = x.DownwardAPI != nil
3394			yyq2[16] = x.FC != nil
3395			yyq2[17] = x.AzureFile != nil
3396			yyq2[18] = x.ConfigMap != nil
3397			yyq2[19] = x.VsphereVolume != nil
3398			yyq2[20] = x.Quobyte != nil
3399			yyq2[21] = x.AzureDisk != nil
3400			yyq2[22] = x.PhotonPersistentDisk != nil
3401			yyq2[23] = x.Projected != nil
3402			yyq2[24] = x.PortworxVolume != nil
3403			yyq2[25] = x.ScaleIO != nil
3404			var yynn2 int
3405			if yyr2 || yy2arr2 {
3406				r.EncodeArrayStart(26)
3407			} else {
3408				yynn2 = 0
3409				for _, b := range yyq2 {
3410					if b {
3411						yynn2++
3412					}
3413				}
3414				r.EncodeMapStart(yynn2)
3415				yynn2 = 0
3416			}
3417			if yyr2 || yy2arr2 {
3418				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3419				if yyq2[0] {
3420					if x.HostPath == nil {
3421						r.EncodeNil()
3422					} else {
3423						x.HostPath.CodecEncodeSelf(e)
3424					}
3425				} else {
3426					r.EncodeNil()
3427				}
3428			} else {
3429				if yyq2[0] {
3430					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3431					r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
3432					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3433					if x.HostPath == nil {
3434						r.EncodeNil()
3435					} else {
3436						x.HostPath.CodecEncodeSelf(e)
3437					}
3438				}
3439			}
3440			if yyr2 || yy2arr2 {
3441				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3442				if yyq2[1] {
3443					if x.EmptyDir == nil {
3444						r.EncodeNil()
3445					} else {
3446						x.EmptyDir.CodecEncodeSelf(e)
3447					}
3448				} else {
3449					r.EncodeNil()
3450				}
3451			} else {
3452				if yyq2[1] {
3453					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3454					r.EncodeString(codecSelferC_UTF81234, string("emptyDir"))
3455					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3456					if x.EmptyDir == nil {
3457						r.EncodeNil()
3458					} else {
3459						x.EmptyDir.CodecEncodeSelf(e)
3460					}
3461				}
3462			}
3463			if yyr2 || yy2arr2 {
3464				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3465				if yyq2[2] {
3466					if x.GCEPersistentDisk == nil {
3467						r.EncodeNil()
3468					} else {
3469						x.GCEPersistentDisk.CodecEncodeSelf(e)
3470					}
3471				} else {
3472					r.EncodeNil()
3473				}
3474			} else {
3475				if yyq2[2] {
3476					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3477					r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
3478					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3479					if x.GCEPersistentDisk == nil {
3480						r.EncodeNil()
3481					} else {
3482						x.GCEPersistentDisk.CodecEncodeSelf(e)
3483					}
3484				}
3485			}
3486			if yyr2 || yy2arr2 {
3487				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3488				if yyq2[3] {
3489					if x.AWSElasticBlockStore == nil {
3490						r.EncodeNil()
3491					} else {
3492						x.AWSElasticBlockStore.CodecEncodeSelf(e)
3493					}
3494				} else {
3495					r.EncodeNil()
3496				}
3497			} else {
3498				if yyq2[3] {
3499					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3500					r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
3501					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3502					if x.AWSElasticBlockStore == nil {
3503						r.EncodeNil()
3504					} else {
3505						x.AWSElasticBlockStore.CodecEncodeSelf(e)
3506					}
3507				}
3508			}
3509			if yyr2 || yy2arr2 {
3510				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3511				if yyq2[4] {
3512					if x.GitRepo == nil {
3513						r.EncodeNil()
3514					} else {
3515						x.GitRepo.CodecEncodeSelf(e)
3516					}
3517				} else {
3518					r.EncodeNil()
3519				}
3520			} else {
3521				if yyq2[4] {
3522					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3523					r.EncodeString(codecSelferC_UTF81234, string("gitRepo"))
3524					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3525					if x.GitRepo == nil {
3526						r.EncodeNil()
3527					} else {
3528						x.GitRepo.CodecEncodeSelf(e)
3529					}
3530				}
3531			}
3532			if yyr2 || yy2arr2 {
3533				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3534				if yyq2[5] {
3535					if x.Secret == nil {
3536						r.EncodeNil()
3537					} else {
3538						x.Secret.CodecEncodeSelf(e)
3539					}
3540				} else {
3541					r.EncodeNil()
3542				}
3543			} else {
3544				if yyq2[5] {
3545					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3546					r.EncodeString(codecSelferC_UTF81234, string("secret"))
3547					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3548					if x.Secret == nil {
3549						r.EncodeNil()
3550					} else {
3551						x.Secret.CodecEncodeSelf(e)
3552					}
3553				}
3554			}
3555			if yyr2 || yy2arr2 {
3556				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3557				if yyq2[6] {
3558					if x.NFS == nil {
3559						r.EncodeNil()
3560					} else {
3561						x.NFS.CodecEncodeSelf(e)
3562					}
3563				} else {
3564					r.EncodeNil()
3565				}
3566			} else {
3567				if yyq2[6] {
3568					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3569					r.EncodeString(codecSelferC_UTF81234, string("nfs"))
3570					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3571					if x.NFS == nil {
3572						r.EncodeNil()
3573					} else {
3574						x.NFS.CodecEncodeSelf(e)
3575					}
3576				}
3577			}
3578			if yyr2 || yy2arr2 {
3579				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3580				if yyq2[7] {
3581					if x.ISCSI == nil {
3582						r.EncodeNil()
3583					} else {
3584						x.ISCSI.CodecEncodeSelf(e)
3585					}
3586				} else {
3587					r.EncodeNil()
3588				}
3589			} else {
3590				if yyq2[7] {
3591					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3592					r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
3593					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3594					if x.ISCSI == nil {
3595						r.EncodeNil()
3596					} else {
3597						x.ISCSI.CodecEncodeSelf(e)
3598					}
3599				}
3600			}
3601			if yyr2 || yy2arr2 {
3602				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3603				if yyq2[8] {
3604					if x.Glusterfs == nil {
3605						r.EncodeNil()
3606					} else {
3607						x.Glusterfs.CodecEncodeSelf(e)
3608					}
3609				} else {
3610					r.EncodeNil()
3611				}
3612			} else {
3613				if yyq2[8] {
3614					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3615					r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
3616					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3617					if x.Glusterfs == nil {
3618						r.EncodeNil()
3619					} else {
3620						x.Glusterfs.CodecEncodeSelf(e)
3621					}
3622				}
3623			}
3624			if yyr2 || yy2arr2 {
3625				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3626				if yyq2[9] {
3627					if x.PersistentVolumeClaim == nil {
3628						r.EncodeNil()
3629					} else {
3630						x.PersistentVolumeClaim.CodecEncodeSelf(e)
3631					}
3632				} else {
3633					r.EncodeNil()
3634				}
3635			} else {
3636				if yyq2[9] {
3637					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3638					r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim"))
3639					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3640					if x.PersistentVolumeClaim == nil {
3641						r.EncodeNil()
3642					} else {
3643						x.PersistentVolumeClaim.CodecEncodeSelf(e)
3644					}
3645				}
3646			}
3647			if yyr2 || yy2arr2 {
3648				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3649				if yyq2[10] {
3650					if x.RBD == nil {
3651						r.EncodeNil()
3652					} else {
3653						x.RBD.CodecEncodeSelf(e)
3654					}
3655				} else {
3656					r.EncodeNil()
3657				}
3658			} else {
3659				if yyq2[10] {
3660					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3661					r.EncodeString(codecSelferC_UTF81234, string("rbd"))
3662					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3663					if x.RBD == nil {
3664						r.EncodeNil()
3665					} else {
3666						x.RBD.CodecEncodeSelf(e)
3667					}
3668				}
3669			}
3670			if yyr2 || yy2arr2 {
3671				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3672				if yyq2[11] {
3673					if x.FlexVolume == nil {
3674						r.EncodeNil()
3675					} else {
3676						x.FlexVolume.CodecEncodeSelf(e)
3677					}
3678				} else {
3679					r.EncodeNil()
3680				}
3681			} else {
3682				if yyq2[11] {
3683					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3684					r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
3685					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3686					if x.FlexVolume == nil {
3687						r.EncodeNil()
3688					} else {
3689						x.FlexVolume.CodecEncodeSelf(e)
3690					}
3691				}
3692			}
3693			if yyr2 || yy2arr2 {
3694				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3695				if yyq2[12] {
3696					if x.Cinder == nil {
3697						r.EncodeNil()
3698					} else {
3699						x.Cinder.CodecEncodeSelf(e)
3700					}
3701				} else {
3702					r.EncodeNil()
3703				}
3704			} else {
3705				if yyq2[12] {
3706					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3707					r.EncodeString(codecSelferC_UTF81234, string("cinder"))
3708					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3709					if x.Cinder == nil {
3710						r.EncodeNil()
3711					} else {
3712						x.Cinder.CodecEncodeSelf(e)
3713					}
3714				}
3715			}
3716			if yyr2 || yy2arr2 {
3717				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3718				if yyq2[13] {
3719					if x.CephFS == nil {
3720						r.EncodeNil()
3721					} else {
3722						x.CephFS.CodecEncodeSelf(e)
3723					}
3724				} else {
3725					r.EncodeNil()
3726				}
3727			} else {
3728				if yyq2[13] {
3729					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3730					r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
3731					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3732					if x.CephFS == nil {
3733						r.EncodeNil()
3734					} else {
3735						x.CephFS.CodecEncodeSelf(e)
3736					}
3737				}
3738			}
3739			if yyr2 || yy2arr2 {
3740				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3741				if yyq2[14] {
3742					if x.Flocker == nil {
3743						r.EncodeNil()
3744					} else {
3745						x.Flocker.CodecEncodeSelf(e)
3746					}
3747				} else {
3748					r.EncodeNil()
3749				}
3750			} else {
3751				if yyq2[14] {
3752					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3753					r.EncodeString(codecSelferC_UTF81234, string("flocker"))
3754					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3755					if x.Flocker == nil {
3756						r.EncodeNil()
3757					} else {
3758						x.Flocker.CodecEncodeSelf(e)
3759					}
3760				}
3761			}
3762			if yyr2 || yy2arr2 {
3763				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3764				if yyq2[15] {
3765					if x.DownwardAPI == nil {
3766						r.EncodeNil()
3767					} else {
3768						x.DownwardAPI.CodecEncodeSelf(e)
3769					}
3770				} else {
3771					r.EncodeNil()
3772				}
3773			} else {
3774				if yyq2[15] {
3775					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3776					r.EncodeString(codecSelferC_UTF81234, string("downwardAPI"))
3777					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3778					if x.DownwardAPI == nil {
3779						r.EncodeNil()
3780					} else {
3781						x.DownwardAPI.CodecEncodeSelf(e)
3782					}
3783				}
3784			}
3785			if yyr2 || yy2arr2 {
3786				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3787				if yyq2[16] {
3788					if x.FC == nil {
3789						r.EncodeNil()
3790					} else {
3791						x.FC.CodecEncodeSelf(e)
3792					}
3793				} else {
3794					r.EncodeNil()
3795				}
3796			} else {
3797				if yyq2[16] {
3798					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3799					r.EncodeString(codecSelferC_UTF81234, string("fc"))
3800					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3801					if x.FC == nil {
3802						r.EncodeNil()
3803					} else {
3804						x.FC.CodecEncodeSelf(e)
3805					}
3806				}
3807			}
3808			if yyr2 || yy2arr2 {
3809				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3810				if yyq2[17] {
3811					if x.AzureFile == nil {
3812						r.EncodeNil()
3813					} else {
3814						x.AzureFile.CodecEncodeSelf(e)
3815					}
3816				} else {
3817					r.EncodeNil()
3818				}
3819			} else {
3820				if yyq2[17] {
3821					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3822					r.EncodeString(codecSelferC_UTF81234, string("azureFile"))
3823					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3824					if x.AzureFile == nil {
3825						r.EncodeNil()
3826					} else {
3827						x.AzureFile.CodecEncodeSelf(e)
3828					}
3829				}
3830			}
3831			if yyr2 || yy2arr2 {
3832				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3833				if yyq2[18] {
3834					if x.ConfigMap == nil {
3835						r.EncodeNil()
3836					} else {
3837						x.ConfigMap.CodecEncodeSelf(e)
3838					}
3839				} else {
3840					r.EncodeNil()
3841				}
3842			} else {
3843				if yyq2[18] {
3844					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3845					r.EncodeString(codecSelferC_UTF81234, string("configMap"))
3846					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3847					if x.ConfigMap == nil {
3848						r.EncodeNil()
3849					} else {
3850						x.ConfigMap.CodecEncodeSelf(e)
3851					}
3852				}
3853			}
3854			if yyr2 || yy2arr2 {
3855				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3856				if yyq2[19] {
3857					if x.VsphereVolume == nil {
3858						r.EncodeNil()
3859					} else {
3860						x.VsphereVolume.CodecEncodeSelf(e)
3861					}
3862				} else {
3863					r.EncodeNil()
3864				}
3865			} else {
3866				if yyq2[19] {
3867					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3868					r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume"))
3869					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3870					if x.VsphereVolume == nil {
3871						r.EncodeNil()
3872					} else {
3873						x.VsphereVolume.CodecEncodeSelf(e)
3874					}
3875				}
3876			}
3877			if yyr2 || yy2arr2 {
3878				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3879				if yyq2[20] {
3880					if x.Quobyte == nil {
3881						r.EncodeNil()
3882					} else {
3883						x.Quobyte.CodecEncodeSelf(e)
3884					}
3885				} else {
3886					r.EncodeNil()
3887				}
3888			} else {
3889				if yyq2[20] {
3890					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3891					r.EncodeString(codecSelferC_UTF81234, string("quobyte"))
3892					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3893					if x.Quobyte == nil {
3894						r.EncodeNil()
3895					} else {
3896						x.Quobyte.CodecEncodeSelf(e)
3897					}
3898				}
3899			}
3900			if yyr2 || yy2arr2 {
3901				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3902				if yyq2[21] {
3903					if x.AzureDisk == nil {
3904						r.EncodeNil()
3905					} else {
3906						x.AzureDisk.CodecEncodeSelf(e)
3907					}
3908				} else {
3909					r.EncodeNil()
3910				}
3911			} else {
3912				if yyq2[21] {
3913					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3914					r.EncodeString(codecSelferC_UTF81234, string("azureDisk"))
3915					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3916					if x.AzureDisk == nil {
3917						r.EncodeNil()
3918					} else {
3919						x.AzureDisk.CodecEncodeSelf(e)
3920					}
3921				}
3922			}
3923			if yyr2 || yy2arr2 {
3924				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3925				if yyq2[22] {
3926					if x.PhotonPersistentDisk == nil {
3927						r.EncodeNil()
3928					} else {
3929						x.PhotonPersistentDisk.CodecEncodeSelf(e)
3930					}
3931				} else {
3932					r.EncodeNil()
3933				}
3934			} else {
3935				if yyq2[22] {
3936					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3937					r.EncodeString(codecSelferC_UTF81234, string("photonPersistentDisk"))
3938					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3939					if x.PhotonPersistentDisk == nil {
3940						r.EncodeNil()
3941					} else {
3942						x.PhotonPersistentDisk.CodecEncodeSelf(e)
3943					}
3944				}
3945			}
3946			if yyr2 || yy2arr2 {
3947				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3948				if yyq2[23] {
3949					if x.Projected == nil {
3950						r.EncodeNil()
3951					} else {
3952						x.Projected.CodecEncodeSelf(e)
3953					}
3954				} else {
3955					r.EncodeNil()
3956				}
3957			} else {
3958				if yyq2[23] {
3959					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3960					r.EncodeString(codecSelferC_UTF81234, string("projected"))
3961					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3962					if x.Projected == nil {
3963						r.EncodeNil()
3964					} else {
3965						x.Projected.CodecEncodeSelf(e)
3966					}
3967				}
3968			}
3969			if yyr2 || yy2arr2 {
3970				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3971				if yyq2[24] {
3972					if x.PortworxVolume == nil {
3973						r.EncodeNil()
3974					} else {
3975						x.PortworxVolume.CodecEncodeSelf(e)
3976					}
3977				} else {
3978					r.EncodeNil()
3979				}
3980			} else {
3981				if yyq2[24] {
3982					z.EncSendContainerState(codecSelfer_containerMapKey1234)
3983					r.EncodeString(codecSelferC_UTF81234, string("portworxVolume"))
3984					z.EncSendContainerState(codecSelfer_containerMapValue1234)
3985					if x.PortworxVolume == nil {
3986						r.EncodeNil()
3987					} else {
3988						x.PortworxVolume.CodecEncodeSelf(e)
3989					}
3990				}
3991			}
3992			if yyr2 || yy2arr2 {
3993				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
3994				if yyq2[25] {
3995					if x.ScaleIO == nil {
3996						r.EncodeNil()
3997					} else {
3998						x.ScaleIO.CodecEncodeSelf(e)
3999					}
4000				} else {
4001					r.EncodeNil()
4002				}
4003			} else {
4004				if yyq2[25] {
4005					z.EncSendContainerState(codecSelfer_containerMapKey1234)
4006					r.EncodeString(codecSelferC_UTF81234, string("scaleIO"))
4007					z.EncSendContainerState(codecSelfer_containerMapValue1234)
4008					if x.ScaleIO == nil {
4009						r.EncodeNil()
4010					} else {
4011						x.ScaleIO.CodecEncodeSelf(e)
4012					}
4013				}
4014			}
4015			if yyr2 || yy2arr2 {
4016				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
4017			} else {
4018				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
4019			}
4020		}
4021	}
4022}
4023
4024func (x *VolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
4025	var h codecSelfer1234
4026	z, r := codec1978.GenHelperDecoder(d)
4027	_, _, _ = h, z, r
4028	yym1 := z.DecBinary()
4029	_ = yym1
4030	if false {
4031	} else if z.HasExtensions() && z.DecExt(x) {
4032	} else {
4033		yyct2 := r.ContainerType()
4034		if yyct2 == codecSelferValueTypeMap1234 {
4035			yyl2 := r.ReadMapStart()
4036			if yyl2 == 0 {
4037				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
4038			} else {
4039				x.codecDecodeSelfFromMap(yyl2, d)
4040			}
4041		} else if yyct2 == codecSelferValueTypeArray1234 {
4042			yyl2 := r.ReadArrayStart()
4043			if yyl2 == 0 {
4044				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4045			} else {
4046				x.codecDecodeSelfFromArray(yyl2, d)
4047			}
4048		} else {
4049			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
4050		}
4051	}
4052}
4053
4054func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
4055	var h codecSelfer1234
4056	z, r := codec1978.GenHelperDecoder(d)
4057	_, _, _ = h, z, r
4058	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
4059	_ = yys3Slc
4060	var yyhl3 bool = l >= 0
4061	for yyj3 := 0; ; yyj3++ {
4062		if yyhl3 {
4063			if yyj3 >= l {
4064				break
4065			}
4066		} else {
4067			if r.CheckBreak() {
4068				break
4069			}
4070		}
4071		z.DecSendContainerState(codecSelfer_containerMapKey1234)
4072		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
4073		yys3 := string(yys3Slc)
4074		z.DecSendContainerState(codecSelfer_containerMapValue1234)
4075		switch yys3 {
4076		case "hostPath":
4077			if r.TryDecodeAsNil() {
4078				if x.HostPath != nil {
4079					x.HostPath = nil
4080				}
4081			} else {
4082				if x.HostPath == nil {
4083					x.HostPath = new(HostPathVolumeSource)
4084				}
4085				x.HostPath.CodecDecodeSelf(d)
4086			}
4087		case "emptyDir":
4088			if r.TryDecodeAsNil() {
4089				if x.EmptyDir != nil {
4090					x.EmptyDir = nil
4091				}
4092			} else {
4093				if x.EmptyDir == nil {
4094					x.EmptyDir = new(EmptyDirVolumeSource)
4095				}
4096				x.EmptyDir.CodecDecodeSelf(d)
4097			}
4098		case "gcePersistentDisk":
4099			if r.TryDecodeAsNil() {
4100				if x.GCEPersistentDisk != nil {
4101					x.GCEPersistentDisk = nil
4102				}
4103			} else {
4104				if x.GCEPersistentDisk == nil {
4105					x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
4106				}
4107				x.GCEPersistentDisk.CodecDecodeSelf(d)
4108			}
4109		case "awsElasticBlockStore":
4110			if r.TryDecodeAsNil() {
4111				if x.AWSElasticBlockStore != nil {
4112					x.AWSElasticBlockStore = nil
4113				}
4114			} else {
4115				if x.AWSElasticBlockStore == nil {
4116					x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
4117				}
4118				x.AWSElasticBlockStore.CodecDecodeSelf(d)
4119			}
4120		case "gitRepo":
4121			if r.TryDecodeAsNil() {
4122				if x.GitRepo != nil {
4123					x.GitRepo = nil
4124				}
4125			} else {
4126				if x.GitRepo == nil {
4127					x.GitRepo = new(GitRepoVolumeSource)
4128				}
4129				x.GitRepo.CodecDecodeSelf(d)
4130			}
4131		case "secret":
4132			if r.TryDecodeAsNil() {
4133				if x.Secret != nil {
4134					x.Secret = nil
4135				}
4136			} else {
4137				if x.Secret == nil {
4138					x.Secret = new(SecretVolumeSource)
4139				}
4140				x.Secret.CodecDecodeSelf(d)
4141			}
4142		case "nfs":
4143			if r.TryDecodeAsNil() {
4144				if x.NFS != nil {
4145					x.NFS = nil
4146				}
4147			} else {
4148				if x.NFS == nil {
4149					x.NFS = new(NFSVolumeSource)
4150				}
4151				x.NFS.CodecDecodeSelf(d)
4152			}
4153		case "iscsi":
4154			if r.TryDecodeAsNil() {
4155				if x.ISCSI != nil {
4156					x.ISCSI = nil
4157				}
4158			} else {
4159				if x.ISCSI == nil {
4160					x.ISCSI = new(ISCSIVolumeSource)
4161				}
4162				x.ISCSI.CodecDecodeSelf(d)
4163			}
4164		case "glusterfs":
4165			if r.TryDecodeAsNil() {
4166				if x.Glusterfs != nil {
4167					x.Glusterfs = nil
4168				}
4169			} else {
4170				if x.Glusterfs == nil {
4171					x.Glusterfs = new(GlusterfsVolumeSource)
4172				}
4173				x.Glusterfs.CodecDecodeSelf(d)
4174			}
4175		case "persistentVolumeClaim":
4176			if r.TryDecodeAsNil() {
4177				if x.PersistentVolumeClaim != nil {
4178					x.PersistentVolumeClaim = nil
4179				}
4180			} else {
4181				if x.PersistentVolumeClaim == nil {
4182					x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
4183				}
4184				x.PersistentVolumeClaim.CodecDecodeSelf(d)
4185			}
4186		case "rbd":
4187			if r.TryDecodeAsNil() {
4188				if x.RBD != nil {
4189					x.RBD = nil
4190				}
4191			} else {
4192				if x.RBD == nil {
4193					x.RBD = new(RBDVolumeSource)
4194				}
4195				x.RBD.CodecDecodeSelf(d)
4196			}
4197		case "flexVolume":
4198			if r.TryDecodeAsNil() {
4199				if x.FlexVolume != nil {
4200					x.FlexVolume = nil
4201				}
4202			} else {
4203				if x.FlexVolume == nil {
4204					x.FlexVolume = new(FlexVolumeSource)
4205				}
4206				x.FlexVolume.CodecDecodeSelf(d)
4207			}
4208		case "cinder":
4209			if r.TryDecodeAsNil() {
4210				if x.Cinder != nil {
4211					x.Cinder = nil
4212				}
4213			} else {
4214				if x.Cinder == nil {
4215					x.Cinder = new(CinderVolumeSource)
4216				}
4217				x.Cinder.CodecDecodeSelf(d)
4218			}
4219		case "cephfs":
4220			if r.TryDecodeAsNil() {
4221				if x.CephFS != nil {
4222					x.CephFS = nil
4223				}
4224			} else {
4225				if x.CephFS == nil {
4226					x.CephFS = new(CephFSVolumeSource)
4227				}
4228				x.CephFS.CodecDecodeSelf(d)
4229			}
4230		case "flocker":
4231			if r.TryDecodeAsNil() {
4232				if x.Flocker != nil {
4233					x.Flocker = nil
4234				}
4235			} else {
4236				if x.Flocker == nil {
4237					x.Flocker = new(FlockerVolumeSource)
4238				}
4239				x.Flocker.CodecDecodeSelf(d)
4240			}
4241		case "downwardAPI":
4242			if r.TryDecodeAsNil() {
4243				if x.DownwardAPI != nil {
4244					x.DownwardAPI = nil
4245				}
4246			} else {
4247				if x.DownwardAPI == nil {
4248					x.DownwardAPI = new(DownwardAPIVolumeSource)
4249				}
4250				x.DownwardAPI.CodecDecodeSelf(d)
4251			}
4252		case "fc":
4253			if r.TryDecodeAsNil() {
4254				if x.FC != nil {
4255					x.FC = nil
4256				}
4257			} else {
4258				if x.FC == nil {
4259					x.FC = new(FCVolumeSource)
4260				}
4261				x.FC.CodecDecodeSelf(d)
4262			}
4263		case "azureFile":
4264			if r.TryDecodeAsNil() {
4265				if x.AzureFile != nil {
4266					x.AzureFile = nil
4267				}
4268			} else {
4269				if x.AzureFile == nil {
4270					x.AzureFile = new(AzureFileVolumeSource)
4271				}
4272				x.AzureFile.CodecDecodeSelf(d)
4273			}
4274		case "configMap":
4275			if r.TryDecodeAsNil() {
4276				if x.ConfigMap != nil {
4277					x.ConfigMap = nil
4278				}
4279			} else {
4280				if x.ConfigMap == nil {
4281					x.ConfigMap = new(ConfigMapVolumeSource)
4282				}
4283				x.ConfigMap.CodecDecodeSelf(d)
4284			}
4285		case "vsphereVolume":
4286			if r.TryDecodeAsNil() {
4287				if x.VsphereVolume != nil {
4288					x.VsphereVolume = nil
4289				}
4290			} else {
4291				if x.VsphereVolume == nil {
4292					x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
4293				}
4294				x.VsphereVolume.CodecDecodeSelf(d)
4295			}
4296		case "quobyte":
4297			if r.TryDecodeAsNil() {
4298				if x.Quobyte != nil {
4299					x.Quobyte = nil
4300				}
4301			} else {
4302				if x.Quobyte == nil {
4303					x.Quobyte = new(QuobyteVolumeSource)
4304				}
4305				x.Quobyte.CodecDecodeSelf(d)
4306			}
4307		case "azureDisk":
4308			if r.TryDecodeAsNil() {
4309				if x.AzureDisk != nil {
4310					x.AzureDisk = nil
4311				}
4312			} else {
4313				if x.AzureDisk == nil {
4314					x.AzureDisk = new(AzureDiskVolumeSource)
4315				}
4316				x.AzureDisk.CodecDecodeSelf(d)
4317			}
4318		case "photonPersistentDisk":
4319			if r.TryDecodeAsNil() {
4320				if x.PhotonPersistentDisk != nil {
4321					x.PhotonPersistentDisk = nil
4322				}
4323			} else {
4324				if x.PhotonPersistentDisk == nil {
4325					x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource)
4326				}
4327				x.PhotonPersistentDisk.CodecDecodeSelf(d)
4328			}
4329		case "projected":
4330			if r.TryDecodeAsNil() {
4331				if x.Projected != nil {
4332					x.Projected = nil
4333				}
4334			} else {
4335				if x.Projected == nil {
4336					x.Projected = new(ProjectedVolumeSource)
4337				}
4338				x.Projected.CodecDecodeSelf(d)
4339			}
4340		case "portworxVolume":
4341			if r.TryDecodeAsNil() {
4342				if x.PortworxVolume != nil {
4343					x.PortworxVolume = nil
4344				}
4345			} else {
4346				if x.PortworxVolume == nil {
4347					x.PortworxVolume = new(PortworxVolumeSource)
4348				}
4349				x.PortworxVolume.CodecDecodeSelf(d)
4350			}
4351		case "scaleIO":
4352			if r.TryDecodeAsNil() {
4353				if x.ScaleIO != nil {
4354					x.ScaleIO = nil
4355				}
4356			} else {
4357				if x.ScaleIO == nil {
4358					x.ScaleIO = new(ScaleIOVolumeSource)
4359				}
4360				x.ScaleIO.CodecDecodeSelf(d)
4361			}
4362		default:
4363			z.DecStructFieldNotFound(-1, yys3)
4364		} // end switch yys3
4365	} // end for yyj3
4366	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
4367}
4368
4369func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
4370	var h codecSelfer1234
4371	z, r := codec1978.GenHelperDecoder(d)
4372	_, _, _ = h, z, r
4373	var yyj30 int
4374	var yyb30 bool
4375	var yyhl30 bool = l >= 0
4376	yyj30++
4377	if yyhl30 {
4378		yyb30 = yyj30 > l
4379	} else {
4380		yyb30 = r.CheckBreak()
4381	}
4382	if yyb30 {
4383		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4384		return
4385	}
4386	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4387	if r.TryDecodeAsNil() {
4388		if x.HostPath != nil {
4389			x.HostPath = nil
4390		}
4391	} else {
4392		if x.HostPath == nil {
4393			x.HostPath = new(HostPathVolumeSource)
4394		}
4395		x.HostPath.CodecDecodeSelf(d)
4396	}
4397	yyj30++
4398	if yyhl30 {
4399		yyb30 = yyj30 > l
4400	} else {
4401		yyb30 = r.CheckBreak()
4402	}
4403	if yyb30 {
4404		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4405		return
4406	}
4407	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4408	if r.TryDecodeAsNil() {
4409		if x.EmptyDir != nil {
4410			x.EmptyDir = nil
4411		}
4412	} else {
4413		if x.EmptyDir == nil {
4414			x.EmptyDir = new(EmptyDirVolumeSource)
4415		}
4416		x.EmptyDir.CodecDecodeSelf(d)
4417	}
4418	yyj30++
4419	if yyhl30 {
4420		yyb30 = yyj30 > l
4421	} else {
4422		yyb30 = r.CheckBreak()
4423	}
4424	if yyb30 {
4425		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4426		return
4427	}
4428	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4429	if r.TryDecodeAsNil() {
4430		if x.GCEPersistentDisk != nil {
4431			x.GCEPersistentDisk = nil
4432		}
4433	} else {
4434		if x.GCEPersistentDisk == nil {
4435			x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
4436		}
4437		x.GCEPersistentDisk.CodecDecodeSelf(d)
4438	}
4439	yyj30++
4440	if yyhl30 {
4441		yyb30 = yyj30 > l
4442	} else {
4443		yyb30 = r.CheckBreak()
4444	}
4445	if yyb30 {
4446		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4447		return
4448	}
4449	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4450	if r.TryDecodeAsNil() {
4451		if x.AWSElasticBlockStore != nil {
4452			x.AWSElasticBlockStore = nil
4453		}
4454	} else {
4455		if x.AWSElasticBlockStore == nil {
4456			x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
4457		}
4458		x.AWSElasticBlockStore.CodecDecodeSelf(d)
4459	}
4460	yyj30++
4461	if yyhl30 {
4462		yyb30 = yyj30 > l
4463	} else {
4464		yyb30 = r.CheckBreak()
4465	}
4466	if yyb30 {
4467		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4468		return
4469	}
4470	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4471	if r.TryDecodeAsNil() {
4472		if x.GitRepo != nil {
4473			x.GitRepo = nil
4474		}
4475	} else {
4476		if x.GitRepo == nil {
4477			x.GitRepo = new(GitRepoVolumeSource)
4478		}
4479		x.GitRepo.CodecDecodeSelf(d)
4480	}
4481	yyj30++
4482	if yyhl30 {
4483		yyb30 = yyj30 > l
4484	} else {
4485		yyb30 = r.CheckBreak()
4486	}
4487	if yyb30 {
4488		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4489		return
4490	}
4491	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4492	if r.TryDecodeAsNil() {
4493		if x.Secret != nil {
4494			x.Secret = nil
4495		}
4496	} else {
4497		if x.Secret == nil {
4498			x.Secret = new(SecretVolumeSource)
4499		}
4500		x.Secret.CodecDecodeSelf(d)
4501	}
4502	yyj30++
4503	if yyhl30 {
4504		yyb30 = yyj30 > l
4505	} else {
4506		yyb30 = r.CheckBreak()
4507	}
4508	if yyb30 {
4509		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4510		return
4511	}
4512	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4513	if r.TryDecodeAsNil() {
4514		if x.NFS != nil {
4515			x.NFS = nil
4516		}
4517	} else {
4518		if x.NFS == nil {
4519			x.NFS = new(NFSVolumeSource)
4520		}
4521		x.NFS.CodecDecodeSelf(d)
4522	}
4523	yyj30++
4524	if yyhl30 {
4525		yyb30 = yyj30 > l
4526	} else {
4527		yyb30 = r.CheckBreak()
4528	}
4529	if yyb30 {
4530		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4531		return
4532	}
4533	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4534	if r.TryDecodeAsNil() {
4535		if x.ISCSI != nil {
4536			x.ISCSI = nil
4537		}
4538	} else {
4539		if x.ISCSI == nil {
4540			x.ISCSI = new(ISCSIVolumeSource)
4541		}
4542		x.ISCSI.CodecDecodeSelf(d)
4543	}
4544	yyj30++
4545	if yyhl30 {
4546		yyb30 = yyj30 > l
4547	} else {
4548		yyb30 = r.CheckBreak()
4549	}
4550	if yyb30 {
4551		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4552		return
4553	}
4554	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4555	if r.TryDecodeAsNil() {
4556		if x.Glusterfs != nil {
4557			x.Glusterfs = nil
4558		}
4559	} else {
4560		if x.Glusterfs == nil {
4561			x.Glusterfs = new(GlusterfsVolumeSource)
4562		}
4563		x.Glusterfs.CodecDecodeSelf(d)
4564	}
4565	yyj30++
4566	if yyhl30 {
4567		yyb30 = yyj30 > l
4568	} else {
4569		yyb30 = r.CheckBreak()
4570	}
4571	if yyb30 {
4572		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4573		return
4574	}
4575	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4576	if r.TryDecodeAsNil() {
4577		if x.PersistentVolumeClaim != nil {
4578			x.PersistentVolumeClaim = nil
4579		}
4580	} else {
4581		if x.PersistentVolumeClaim == nil {
4582			x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
4583		}
4584		x.PersistentVolumeClaim.CodecDecodeSelf(d)
4585	}
4586	yyj30++
4587	if yyhl30 {
4588		yyb30 = yyj30 > l
4589	} else {
4590		yyb30 = r.CheckBreak()
4591	}
4592	if yyb30 {
4593		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4594		return
4595	}
4596	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4597	if r.TryDecodeAsNil() {
4598		if x.RBD != nil {
4599			x.RBD = nil
4600		}
4601	} else {
4602		if x.RBD == nil {
4603			x.RBD = new(RBDVolumeSource)
4604		}
4605		x.RBD.CodecDecodeSelf(d)
4606	}
4607	yyj30++
4608	if yyhl30 {
4609		yyb30 = yyj30 > l
4610	} else {
4611		yyb30 = r.CheckBreak()
4612	}
4613	if yyb30 {
4614		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4615		return
4616	}
4617	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4618	if r.TryDecodeAsNil() {
4619		if x.FlexVolume != nil {
4620			x.FlexVolume = nil
4621		}
4622	} else {
4623		if x.FlexVolume == nil {
4624			x.FlexVolume = new(FlexVolumeSource)
4625		}
4626		x.FlexVolume.CodecDecodeSelf(d)
4627	}
4628	yyj30++
4629	if yyhl30 {
4630		yyb30 = yyj30 > l
4631	} else {
4632		yyb30 = r.CheckBreak()
4633	}
4634	if yyb30 {
4635		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4636		return
4637	}
4638	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4639	if r.TryDecodeAsNil() {
4640		if x.Cinder != nil {
4641			x.Cinder = nil
4642		}
4643	} else {
4644		if x.Cinder == nil {
4645			x.Cinder = new(CinderVolumeSource)
4646		}
4647		x.Cinder.CodecDecodeSelf(d)
4648	}
4649	yyj30++
4650	if yyhl30 {
4651		yyb30 = yyj30 > l
4652	} else {
4653		yyb30 = r.CheckBreak()
4654	}
4655	if yyb30 {
4656		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4657		return
4658	}
4659	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4660	if r.TryDecodeAsNil() {
4661		if x.CephFS != nil {
4662			x.CephFS = nil
4663		}
4664	} else {
4665		if x.CephFS == nil {
4666			x.CephFS = new(CephFSVolumeSource)
4667		}
4668		x.CephFS.CodecDecodeSelf(d)
4669	}
4670	yyj30++
4671	if yyhl30 {
4672		yyb30 = yyj30 > l
4673	} else {
4674		yyb30 = r.CheckBreak()
4675	}
4676	if yyb30 {
4677		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4678		return
4679	}
4680	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4681	if r.TryDecodeAsNil() {
4682		if x.Flocker != nil {
4683			x.Flocker = nil
4684		}
4685	} else {
4686		if x.Flocker == nil {
4687			x.Flocker = new(FlockerVolumeSource)
4688		}
4689		x.Flocker.CodecDecodeSelf(d)
4690	}
4691	yyj30++
4692	if yyhl30 {
4693		yyb30 = yyj30 > l
4694	} else {
4695		yyb30 = r.CheckBreak()
4696	}
4697	if yyb30 {
4698		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4699		return
4700	}
4701	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4702	if r.TryDecodeAsNil() {
4703		if x.DownwardAPI != nil {
4704			x.DownwardAPI = nil
4705		}
4706	} else {
4707		if x.DownwardAPI == nil {
4708			x.DownwardAPI = new(DownwardAPIVolumeSource)
4709		}
4710		x.DownwardAPI.CodecDecodeSelf(d)
4711	}
4712	yyj30++
4713	if yyhl30 {
4714		yyb30 = yyj30 > l
4715	} else {
4716		yyb30 = r.CheckBreak()
4717	}
4718	if yyb30 {
4719		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4720		return
4721	}
4722	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4723	if r.TryDecodeAsNil() {
4724		if x.FC != nil {
4725			x.FC = nil
4726		}
4727	} else {
4728		if x.FC == nil {
4729			x.FC = new(FCVolumeSource)
4730		}
4731		x.FC.CodecDecodeSelf(d)
4732	}
4733	yyj30++
4734	if yyhl30 {
4735		yyb30 = yyj30 > l
4736	} else {
4737		yyb30 = r.CheckBreak()
4738	}
4739	if yyb30 {
4740		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4741		return
4742	}
4743	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4744	if r.TryDecodeAsNil() {
4745		if x.AzureFile != nil {
4746			x.AzureFile = nil
4747		}
4748	} else {
4749		if x.AzureFile == nil {
4750			x.AzureFile = new(AzureFileVolumeSource)
4751		}
4752		x.AzureFile.CodecDecodeSelf(d)
4753	}
4754	yyj30++
4755	if yyhl30 {
4756		yyb30 = yyj30 > l
4757	} else {
4758		yyb30 = r.CheckBreak()
4759	}
4760	if yyb30 {
4761		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4762		return
4763	}
4764	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4765	if r.TryDecodeAsNil() {
4766		if x.ConfigMap != nil {
4767			x.ConfigMap = nil
4768		}
4769	} else {
4770		if x.ConfigMap == nil {
4771			x.ConfigMap = new(ConfigMapVolumeSource)
4772		}
4773		x.ConfigMap.CodecDecodeSelf(d)
4774	}
4775	yyj30++
4776	if yyhl30 {
4777		yyb30 = yyj30 > l
4778	} else {
4779		yyb30 = r.CheckBreak()
4780	}
4781	if yyb30 {
4782		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4783		return
4784	}
4785	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4786	if r.TryDecodeAsNil() {
4787		if x.VsphereVolume != nil {
4788			x.VsphereVolume = nil
4789		}
4790	} else {
4791		if x.VsphereVolume == nil {
4792			x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
4793		}
4794		x.VsphereVolume.CodecDecodeSelf(d)
4795	}
4796	yyj30++
4797	if yyhl30 {
4798		yyb30 = yyj30 > l
4799	} else {
4800		yyb30 = r.CheckBreak()
4801	}
4802	if yyb30 {
4803		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4804		return
4805	}
4806	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4807	if r.TryDecodeAsNil() {
4808		if x.Quobyte != nil {
4809			x.Quobyte = nil
4810		}
4811	} else {
4812		if x.Quobyte == nil {
4813			x.Quobyte = new(QuobyteVolumeSource)
4814		}
4815		x.Quobyte.CodecDecodeSelf(d)
4816	}
4817	yyj30++
4818	if yyhl30 {
4819		yyb30 = yyj30 > l
4820	} else {
4821		yyb30 = r.CheckBreak()
4822	}
4823	if yyb30 {
4824		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4825		return
4826	}
4827	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4828	if r.TryDecodeAsNil() {
4829		if x.AzureDisk != nil {
4830			x.AzureDisk = nil
4831		}
4832	} else {
4833		if x.AzureDisk == nil {
4834			x.AzureDisk = new(AzureDiskVolumeSource)
4835		}
4836		x.AzureDisk.CodecDecodeSelf(d)
4837	}
4838	yyj30++
4839	if yyhl30 {
4840		yyb30 = yyj30 > l
4841	} else {
4842		yyb30 = r.CheckBreak()
4843	}
4844	if yyb30 {
4845		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4846		return
4847	}
4848	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4849	if r.TryDecodeAsNil() {
4850		if x.PhotonPersistentDisk != nil {
4851			x.PhotonPersistentDisk = nil
4852		}
4853	} else {
4854		if x.PhotonPersistentDisk == nil {
4855			x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource)
4856		}
4857		x.PhotonPersistentDisk.CodecDecodeSelf(d)
4858	}
4859	yyj30++
4860	if yyhl30 {
4861		yyb30 = yyj30 > l
4862	} else {
4863		yyb30 = r.CheckBreak()
4864	}
4865	if yyb30 {
4866		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4867		return
4868	}
4869	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4870	if r.TryDecodeAsNil() {
4871		if x.Projected != nil {
4872			x.Projected = nil
4873		}
4874	} else {
4875		if x.Projected == nil {
4876			x.Projected = new(ProjectedVolumeSource)
4877		}
4878		x.Projected.CodecDecodeSelf(d)
4879	}
4880	yyj30++
4881	if yyhl30 {
4882		yyb30 = yyj30 > l
4883	} else {
4884		yyb30 = r.CheckBreak()
4885	}
4886	if yyb30 {
4887		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4888		return
4889	}
4890	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4891	if r.TryDecodeAsNil() {
4892		if x.PortworxVolume != nil {
4893			x.PortworxVolume = nil
4894		}
4895	} else {
4896		if x.PortworxVolume == nil {
4897			x.PortworxVolume = new(PortworxVolumeSource)
4898		}
4899		x.PortworxVolume.CodecDecodeSelf(d)
4900	}
4901	yyj30++
4902	if yyhl30 {
4903		yyb30 = yyj30 > l
4904	} else {
4905		yyb30 = r.CheckBreak()
4906	}
4907	if yyb30 {
4908		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4909		return
4910	}
4911	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4912	if r.TryDecodeAsNil() {
4913		if x.ScaleIO != nil {
4914			x.ScaleIO = nil
4915		}
4916	} else {
4917		if x.ScaleIO == nil {
4918			x.ScaleIO = new(ScaleIOVolumeSource)
4919		}
4920		x.ScaleIO.CodecDecodeSelf(d)
4921	}
4922	for {
4923		yyj30++
4924		if yyhl30 {
4925			yyb30 = yyj30 > l
4926		} else {
4927			yyb30 = r.CheckBreak()
4928		}
4929		if yyb30 {
4930			break
4931		}
4932		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
4933		z.DecStructFieldNotFound(yyj30-1, "")
4934	}
4935	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
4936}
4937
4938func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
4939	var h codecSelfer1234
4940	z, r := codec1978.GenHelperEncoder(e)
4941	_, _, _ = h, z, r
4942	if x == nil {
4943		r.EncodeNil()
4944	} else {
4945		yym1 := z.EncBinary()
4946		_ = yym1
4947		if false {
4948		} else if z.HasExtensions() && z.EncExt(x) {
4949		} else {
4950			yysep2 := !z.EncBinary()
4951			yy2arr2 := z.EncBasicHandle().StructToArray
4952			var yyq2 [2]bool
4953			_, _, _ = yysep2, yyq2, yy2arr2
4954			const yyr2 bool = false
4955			yyq2[1] = x.ReadOnly != false
4956			var yynn2 int
4957			if yyr2 || yy2arr2 {
4958				r.EncodeArrayStart(2)
4959			} else {
4960				yynn2 = 1
4961				for _, b := range yyq2 {
4962					if b {
4963						yynn2++
4964					}
4965				}
4966				r.EncodeMapStart(yynn2)
4967				yynn2 = 0
4968			}
4969			if yyr2 || yy2arr2 {
4970				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
4971				yym4 := z.EncBinary()
4972				_ = yym4
4973				if false {
4974				} else {
4975					r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName))
4976				}
4977			} else {
4978				z.EncSendContainerState(codecSelfer_containerMapKey1234)
4979				r.EncodeString(codecSelferC_UTF81234, string("claimName"))
4980				z.EncSendContainerState(codecSelfer_containerMapValue1234)
4981				yym5 := z.EncBinary()
4982				_ = yym5
4983				if false {
4984				} else {
4985					r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName))
4986				}
4987			}
4988			if yyr2 || yy2arr2 {
4989				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
4990				if yyq2[1] {
4991					yym7 := z.EncBinary()
4992					_ = yym7
4993					if false {
4994					} else {
4995						r.EncodeBool(bool(x.ReadOnly))
4996					}
4997				} else {
4998					r.EncodeBool(false)
4999				}
5000			} else {
5001				if yyq2[1] {
5002					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5003					r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
5004					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5005					yym8 := z.EncBinary()
5006					_ = yym8
5007					if false {
5008					} else {
5009						r.EncodeBool(bool(x.ReadOnly))
5010					}
5011				}
5012			}
5013			if yyr2 || yy2arr2 {
5014				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
5015			} else {
5016				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
5017			}
5018		}
5019	}
5020}
5021
5022func (x *PersistentVolumeClaimVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
5023	var h codecSelfer1234
5024	z, r := codec1978.GenHelperDecoder(d)
5025	_, _, _ = h, z, r
5026	yym1 := z.DecBinary()
5027	_ = yym1
5028	if false {
5029	} else if z.HasExtensions() && z.DecExt(x) {
5030	} else {
5031		yyct2 := r.ContainerType()
5032		if yyct2 == codecSelferValueTypeMap1234 {
5033			yyl2 := r.ReadMapStart()
5034			if yyl2 == 0 {
5035				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
5036			} else {
5037				x.codecDecodeSelfFromMap(yyl2, d)
5038			}
5039		} else if yyct2 == codecSelferValueTypeArray1234 {
5040			yyl2 := r.ReadArrayStart()
5041			if yyl2 == 0 {
5042				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
5043			} else {
5044				x.codecDecodeSelfFromArray(yyl2, d)
5045			}
5046		} else {
5047			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
5048		}
5049	}
5050}
5051
5052func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
5053	var h codecSelfer1234
5054	z, r := codec1978.GenHelperDecoder(d)
5055	_, _, _ = h, z, r
5056	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
5057	_ = yys3Slc
5058	var yyhl3 bool = l >= 0
5059	for yyj3 := 0; ; yyj3++ {
5060		if yyhl3 {
5061			if yyj3 >= l {
5062				break
5063			}
5064		} else {
5065			if r.CheckBreak() {
5066				break
5067			}
5068		}
5069		z.DecSendContainerState(codecSelfer_containerMapKey1234)
5070		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
5071		yys3 := string(yys3Slc)
5072		z.DecSendContainerState(codecSelfer_containerMapValue1234)
5073		switch yys3 {
5074		case "claimName":
5075			if r.TryDecodeAsNil() {
5076				x.ClaimName = ""
5077			} else {
5078				yyv4 := &x.ClaimName
5079				yym5 := z.DecBinary()
5080				_ = yym5
5081				if false {
5082				} else {
5083					*((*string)(yyv4)) = r.DecodeString()
5084				}
5085			}
5086		case "readOnly":
5087			if r.TryDecodeAsNil() {
5088				x.ReadOnly = false
5089			} else {
5090				yyv6 := &x.ReadOnly
5091				yym7 := z.DecBinary()
5092				_ = yym7
5093				if false {
5094				} else {
5095					*((*bool)(yyv6)) = r.DecodeBool()
5096				}
5097			}
5098		default:
5099			z.DecStructFieldNotFound(-1, yys3)
5100		} // end switch yys3
5101	} // end for yyj3
5102	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
5103}
5104
5105func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
5106	var h codecSelfer1234
5107	z, r := codec1978.GenHelperDecoder(d)
5108	_, _, _ = h, z, r
5109	var yyj8 int
5110	var yyb8 bool
5111	var yyhl8 bool = l >= 0
5112	yyj8++
5113	if yyhl8 {
5114		yyb8 = yyj8 > l
5115	} else {
5116		yyb8 = r.CheckBreak()
5117	}
5118	if yyb8 {
5119		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
5120		return
5121	}
5122	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
5123	if r.TryDecodeAsNil() {
5124		x.ClaimName = ""
5125	} else {
5126		yyv9 := &x.ClaimName
5127		yym10 := z.DecBinary()
5128		_ = yym10
5129		if false {
5130		} else {
5131			*((*string)(yyv9)) = r.DecodeString()
5132		}
5133	}
5134	yyj8++
5135	if yyhl8 {
5136		yyb8 = yyj8 > l
5137	} else {
5138		yyb8 = r.CheckBreak()
5139	}
5140	if yyb8 {
5141		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
5142		return
5143	}
5144	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
5145	if r.TryDecodeAsNil() {
5146		x.ReadOnly = false
5147	} else {
5148		yyv11 := &x.ReadOnly
5149		yym12 := z.DecBinary()
5150		_ = yym12
5151		if false {
5152		} else {
5153			*((*bool)(yyv11)) = r.DecodeBool()
5154		}
5155	}
5156	for {
5157		yyj8++
5158		if yyhl8 {
5159			yyb8 = yyj8 > l
5160		} else {
5161			yyb8 = r.CheckBreak()
5162		}
5163		if yyb8 {
5164			break
5165		}
5166		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
5167		z.DecStructFieldNotFound(yyj8-1, "")
5168	}
5169	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
5170}
5171
5172func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
5173	var h codecSelfer1234
5174	z, r := codec1978.GenHelperEncoder(e)
5175	_, _, _ = h, z, r
5176	if x == nil {
5177		r.EncodeNil()
5178	} else {
5179		yym1 := z.EncBinary()
5180		_ = yym1
5181		if false {
5182		} else if z.HasExtensions() && z.EncExt(x) {
5183		} else {
5184			yysep2 := !z.EncBinary()
5185			yy2arr2 := z.EncBasicHandle().StructToArray
5186			var yyq2 [19]bool
5187			_, _, _ = yysep2, yyq2, yy2arr2
5188			const yyr2 bool = false
5189			yyq2[0] = x.GCEPersistentDisk != nil
5190			yyq2[1] = x.AWSElasticBlockStore != nil
5191			yyq2[2] = x.HostPath != nil
5192			yyq2[3] = x.Glusterfs != nil
5193			yyq2[4] = x.NFS != nil
5194			yyq2[5] = x.RBD != nil
5195			yyq2[6] = x.ISCSI != nil
5196			yyq2[7] = x.Cinder != nil
5197			yyq2[8] = x.CephFS != nil
5198			yyq2[9] = x.FC != nil
5199			yyq2[10] = x.Flocker != nil
5200			yyq2[11] = x.FlexVolume != nil
5201			yyq2[12] = x.AzureFile != nil
5202			yyq2[13] = x.VsphereVolume != nil
5203			yyq2[14] = x.Quobyte != nil
5204			yyq2[15] = x.AzureDisk != nil
5205			yyq2[16] = x.PhotonPersistentDisk != nil
5206			yyq2[17] = x.PortworxVolume != nil
5207			yyq2[18] = x.ScaleIO != nil
5208			var yynn2 int
5209			if yyr2 || yy2arr2 {
5210				r.EncodeArrayStart(19)
5211			} else {
5212				yynn2 = 0
5213				for _, b := range yyq2 {
5214					if b {
5215						yynn2++
5216					}
5217				}
5218				r.EncodeMapStart(yynn2)
5219				yynn2 = 0
5220			}
5221			if yyr2 || yy2arr2 {
5222				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5223				if yyq2[0] {
5224					if x.GCEPersistentDisk == nil {
5225						r.EncodeNil()
5226					} else {
5227						x.GCEPersistentDisk.CodecEncodeSelf(e)
5228					}
5229				} else {
5230					r.EncodeNil()
5231				}
5232			} else {
5233				if yyq2[0] {
5234					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5235					r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
5236					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5237					if x.GCEPersistentDisk == nil {
5238						r.EncodeNil()
5239					} else {
5240						x.GCEPersistentDisk.CodecEncodeSelf(e)
5241					}
5242				}
5243			}
5244			if yyr2 || yy2arr2 {
5245				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5246				if yyq2[1] {
5247					if x.AWSElasticBlockStore == nil {
5248						r.EncodeNil()
5249					} else {
5250						x.AWSElasticBlockStore.CodecEncodeSelf(e)
5251					}
5252				} else {
5253					r.EncodeNil()
5254				}
5255			} else {
5256				if yyq2[1] {
5257					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5258					r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
5259					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5260					if x.AWSElasticBlockStore == nil {
5261						r.EncodeNil()
5262					} else {
5263						x.AWSElasticBlockStore.CodecEncodeSelf(e)
5264					}
5265				}
5266			}
5267			if yyr2 || yy2arr2 {
5268				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5269				if yyq2[2] {
5270					if x.HostPath == nil {
5271						r.EncodeNil()
5272					} else {
5273						x.HostPath.CodecEncodeSelf(e)
5274					}
5275				} else {
5276					r.EncodeNil()
5277				}
5278			} else {
5279				if yyq2[2] {
5280					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5281					r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
5282					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5283					if x.HostPath == nil {
5284						r.EncodeNil()
5285					} else {
5286						x.HostPath.CodecEncodeSelf(e)
5287					}
5288				}
5289			}
5290			if yyr2 || yy2arr2 {
5291				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5292				if yyq2[3] {
5293					if x.Glusterfs == nil {
5294						r.EncodeNil()
5295					} else {
5296						x.Glusterfs.CodecEncodeSelf(e)
5297					}
5298				} else {
5299					r.EncodeNil()
5300				}
5301			} else {
5302				if yyq2[3] {
5303					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5304					r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
5305					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5306					if x.Glusterfs == nil {
5307						r.EncodeNil()
5308					} else {
5309						x.Glusterfs.CodecEncodeSelf(e)
5310					}
5311				}
5312			}
5313			if yyr2 || yy2arr2 {
5314				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5315				if yyq2[4] {
5316					if x.NFS == nil {
5317						r.EncodeNil()
5318					} else {
5319						x.NFS.CodecEncodeSelf(e)
5320					}
5321				} else {
5322					r.EncodeNil()
5323				}
5324			} else {
5325				if yyq2[4] {
5326					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5327					r.EncodeString(codecSelferC_UTF81234, string("nfs"))
5328					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5329					if x.NFS == nil {
5330						r.EncodeNil()
5331					} else {
5332						x.NFS.CodecEncodeSelf(e)
5333					}
5334				}
5335			}
5336			if yyr2 || yy2arr2 {
5337				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5338				if yyq2[5] {
5339					if x.RBD == nil {
5340						r.EncodeNil()
5341					} else {
5342						x.RBD.CodecEncodeSelf(e)
5343					}
5344				} else {
5345					r.EncodeNil()
5346				}
5347			} else {
5348				if yyq2[5] {
5349					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5350					r.EncodeString(codecSelferC_UTF81234, string("rbd"))
5351					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5352					if x.RBD == nil {
5353						r.EncodeNil()
5354					} else {
5355						x.RBD.CodecEncodeSelf(e)
5356					}
5357				}
5358			}
5359			if yyr2 || yy2arr2 {
5360				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5361				if yyq2[6] {
5362					if x.ISCSI == nil {
5363						r.EncodeNil()
5364					} else {
5365						x.ISCSI.CodecEncodeSelf(e)
5366					}
5367				} else {
5368					r.EncodeNil()
5369				}
5370			} else {
5371				if yyq2[6] {
5372					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5373					r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
5374					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5375					if x.ISCSI == nil {
5376						r.EncodeNil()
5377					} else {
5378						x.ISCSI.CodecEncodeSelf(e)
5379					}
5380				}
5381			}
5382			if yyr2 || yy2arr2 {
5383				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5384				if yyq2[7] {
5385					if x.Cinder == nil {
5386						r.EncodeNil()
5387					} else {
5388						x.Cinder.CodecEncodeSelf(e)
5389					}
5390				} else {
5391					r.EncodeNil()
5392				}
5393			} else {
5394				if yyq2[7] {
5395					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5396					r.EncodeString(codecSelferC_UTF81234, string("cinder"))
5397					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5398					if x.Cinder == nil {
5399						r.EncodeNil()
5400					} else {
5401						x.Cinder.CodecEncodeSelf(e)
5402					}
5403				}
5404			}
5405			if yyr2 || yy2arr2 {
5406				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5407				if yyq2[8] {
5408					if x.CephFS == nil {
5409						r.EncodeNil()
5410					} else {
5411						x.CephFS.CodecEncodeSelf(e)
5412					}
5413				} else {
5414					r.EncodeNil()
5415				}
5416			} else {
5417				if yyq2[8] {
5418					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5419					r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
5420					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5421					if x.CephFS == nil {
5422						r.EncodeNil()
5423					} else {
5424						x.CephFS.CodecEncodeSelf(e)
5425					}
5426				}
5427			}
5428			if yyr2 || yy2arr2 {
5429				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5430				if yyq2[9] {
5431					if x.FC == nil {
5432						r.EncodeNil()
5433					} else {
5434						x.FC.CodecEncodeSelf(e)
5435					}
5436				} else {
5437					r.EncodeNil()
5438				}
5439			} else {
5440				if yyq2[9] {
5441					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5442					r.EncodeString(codecSelferC_UTF81234, string("fc"))
5443					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5444					if x.FC == nil {
5445						r.EncodeNil()
5446					} else {
5447						x.FC.CodecEncodeSelf(e)
5448					}
5449				}
5450			}
5451			if yyr2 || yy2arr2 {
5452				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5453				if yyq2[10] {
5454					if x.Flocker == nil {
5455						r.EncodeNil()
5456					} else {
5457						x.Flocker.CodecEncodeSelf(e)
5458					}
5459				} else {
5460					r.EncodeNil()
5461				}
5462			} else {
5463				if yyq2[10] {
5464					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5465					r.EncodeString(codecSelferC_UTF81234, string("flocker"))
5466					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5467					if x.Flocker == nil {
5468						r.EncodeNil()
5469					} else {
5470						x.Flocker.CodecEncodeSelf(e)
5471					}
5472				}
5473			}
5474			if yyr2 || yy2arr2 {
5475				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5476				if yyq2[11] {
5477					if x.FlexVolume == nil {
5478						r.EncodeNil()
5479					} else {
5480						x.FlexVolume.CodecEncodeSelf(e)
5481					}
5482				} else {
5483					r.EncodeNil()
5484				}
5485			} else {
5486				if yyq2[11] {
5487					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5488					r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
5489					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5490					if x.FlexVolume == nil {
5491						r.EncodeNil()
5492					} else {
5493						x.FlexVolume.CodecEncodeSelf(e)
5494					}
5495				}
5496			}
5497			if yyr2 || yy2arr2 {
5498				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5499				if yyq2[12] {
5500					if x.AzureFile == nil {
5501						r.EncodeNil()
5502					} else {
5503						x.AzureFile.CodecEncodeSelf(e)
5504					}
5505				} else {
5506					r.EncodeNil()
5507				}
5508			} else {
5509				if yyq2[12] {
5510					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5511					r.EncodeString(codecSelferC_UTF81234, string("azureFile"))
5512					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5513					if x.AzureFile == nil {
5514						r.EncodeNil()
5515					} else {
5516						x.AzureFile.CodecEncodeSelf(e)
5517					}
5518				}
5519			}
5520			if yyr2 || yy2arr2 {
5521				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5522				if yyq2[13] {
5523					if x.VsphereVolume == nil {
5524						r.EncodeNil()
5525					} else {
5526						x.VsphereVolume.CodecEncodeSelf(e)
5527					}
5528				} else {
5529					r.EncodeNil()
5530				}
5531			} else {
5532				if yyq2[13] {
5533					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5534					r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume"))
5535					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5536					if x.VsphereVolume == nil {
5537						r.EncodeNil()
5538					} else {
5539						x.VsphereVolume.CodecEncodeSelf(e)
5540					}
5541				}
5542			}
5543			if yyr2 || yy2arr2 {
5544				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5545				if yyq2[14] {
5546					if x.Quobyte == nil {
5547						r.EncodeNil()
5548					} else {
5549						x.Quobyte.CodecEncodeSelf(e)
5550					}
5551				} else {
5552					r.EncodeNil()
5553				}
5554			} else {
5555				if yyq2[14] {
5556					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5557					r.EncodeString(codecSelferC_UTF81234, string("quobyte"))
5558					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5559					if x.Quobyte == nil {
5560						r.EncodeNil()
5561					} else {
5562						x.Quobyte.CodecEncodeSelf(e)
5563					}
5564				}
5565			}
5566			if yyr2 || yy2arr2 {
5567				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5568				if yyq2[15] {
5569					if x.AzureDisk == nil {
5570						r.EncodeNil()
5571					} else {
5572						x.AzureDisk.CodecEncodeSelf(e)
5573					}
5574				} else {
5575					r.EncodeNil()
5576				}
5577			} else {
5578				if yyq2[15] {
5579					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5580					r.EncodeString(codecSelferC_UTF81234, string("azureDisk"))
5581					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5582					if x.AzureDisk == nil {
5583						r.EncodeNil()
5584					} else {
5585						x.AzureDisk.CodecEncodeSelf(e)
5586					}
5587				}
5588			}
5589			if yyr2 || yy2arr2 {
5590				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5591				if yyq2[16] {
5592					if x.PhotonPersistentDisk == nil {
5593						r.EncodeNil()
5594					} else {
5595						x.PhotonPersistentDisk.CodecEncodeSelf(e)
5596					}
5597				} else {
5598					r.EncodeNil()
5599				}
5600			} else {
5601				if yyq2[16] {
5602					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5603					r.EncodeString(codecSelferC_UTF81234, string("photonPersistentDisk"))
5604					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5605					if x.PhotonPersistentDisk == nil {
5606						r.EncodeNil()
5607					} else {
5608						x.PhotonPersistentDisk.CodecEncodeSelf(e)
5609					}
5610				}
5611			}
5612			if yyr2 || yy2arr2 {
5613				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5614				if yyq2[17] {
5615					if x.PortworxVolume == nil {
5616						r.EncodeNil()
5617					} else {
5618						x.PortworxVolume.CodecEncodeSelf(e)
5619					}
5620				} else {
5621					r.EncodeNil()
5622				}
5623			} else {
5624				if yyq2[17] {
5625					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5626					r.EncodeString(codecSelferC_UTF81234, string("portworxVolume"))
5627					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5628					if x.PortworxVolume == nil {
5629						r.EncodeNil()
5630					} else {
5631						x.PortworxVolume.CodecEncodeSelf(e)
5632					}
5633				}
5634			}
5635			if yyr2 || yy2arr2 {
5636				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5637				if yyq2[18] {
5638					if x.ScaleIO == nil {
5639						r.EncodeNil()
5640					} else {
5641						x.ScaleIO.CodecEncodeSelf(e)
5642					}
5643				} else {
5644					r.EncodeNil()
5645				}
5646			} else {
5647				if yyq2[18] {
5648					z.EncSendContainerState(codecSelfer_containerMapKey1234)
5649					r.EncodeString(codecSelferC_UTF81234, string("scaleIO"))
5650					z.EncSendContainerState(codecSelfer_containerMapValue1234)
5651					if x.ScaleIO == nil {
5652						r.EncodeNil()
5653					} else {
5654						x.ScaleIO.CodecEncodeSelf(e)
5655					}
5656				}
5657			}
5658			if yyr2 || yy2arr2 {
5659				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
5660			} else {
5661				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
5662			}
5663		}
5664	}
5665}
5666
5667func (x *PersistentVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
5668	var h codecSelfer1234
5669	z, r := codec1978.GenHelperDecoder(d)
5670	_, _, _ = h, z, r
5671	yym1 := z.DecBinary()
5672	_ = yym1
5673	if false {
5674	} else if z.HasExtensions() && z.DecExt(x) {
5675	} else {
5676		yyct2 := r.ContainerType()
5677		if yyct2 == codecSelferValueTypeMap1234 {
5678			yyl2 := r.ReadMapStart()
5679			if yyl2 == 0 {
5680				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
5681			} else {
5682				x.codecDecodeSelfFromMap(yyl2, d)
5683			}
5684		} else if yyct2 == codecSelferValueTypeArray1234 {
5685			yyl2 := r.ReadArrayStart()
5686			if yyl2 == 0 {
5687				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
5688			} else {
5689				x.codecDecodeSelfFromArray(yyl2, d)
5690			}
5691		} else {
5692			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
5693		}
5694	}
5695}
5696
5697func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
5698	var h codecSelfer1234
5699	z, r := codec1978.GenHelperDecoder(d)
5700	_, _, _ = h, z, r
5701	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
5702	_ = yys3Slc
5703	var yyhl3 bool = l >= 0
5704	for yyj3 := 0; ; yyj3++ {
5705		if yyhl3 {
5706			if yyj3 >= l {
5707				break
5708			}
5709		} else {
5710			if r.CheckBreak() {
5711				break
5712			}
5713		}
5714		z.DecSendContainerState(codecSelfer_containerMapKey1234)
5715		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
5716		yys3 := string(yys3Slc)
5717		z.DecSendContainerState(codecSelfer_containerMapValue1234)
5718		switch yys3 {
5719		case "gcePersistentDisk":
5720			if r.TryDecodeAsNil() {
5721				if x.GCEPersistentDisk != nil {
5722					x.GCEPersistentDisk = nil
5723				}
5724			} else {
5725				if x.GCEPersistentDisk == nil {
5726					x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
5727				}
5728				x.GCEPersistentDisk.CodecDecodeSelf(d)
5729			}
5730		case "awsElasticBlockStore":
5731			if r.TryDecodeAsNil() {
5732				if x.AWSElasticBlockStore != nil {
5733					x.AWSElasticBlockStore = nil
5734				}
5735			} else {
5736				if x.AWSElasticBlockStore == nil {
5737					x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
5738				}
5739				x.AWSElasticBlockStore.CodecDecodeSelf(d)
5740			}
5741		case "hostPath":
5742			if r.TryDecodeAsNil() {
5743				if x.HostPath != nil {
5744					x.HostPath = nil
5745				}
5746			} else {
5747				if x.HostPath == nil {
5748					x.HostPath = new(HostPathVolumeSource)
5749				}
5750				x.HostPath.CodecDecodeSelf(d)
5751			}
5752		case "glusterfs":
5753			if r.TryDecodeAsNil() {
5754				if x.Glusterfs != nil {
5755					x.Glusterfs = nil
5756				}
5757			} else {
5758				if x.Glusterfs == nil {
5759					x.Glusterfs = new(GlusterfsVolumeSource)
5760				}
5761				x.Glusterfs.CodecDecodeSelf(d)
5762			}
5763		case "nfs":
5764			if r.TryDecodeAsNil() {
5765				if x.NFS != nil {
5766					x.NFS = nil
5767				}
5768			} else {
5769				if x.NFS == nil {
5770					x.NFS = new(NFSVolumeSource)
5771				}
5772				x.NFS.CodecDecodeSelf(d)
5773			}
5774		case "rbd":
5775			if r.TryDecodeAsNil() {
5776				if x.RBD != nil {
5777					x.RBD = nil
5778				}
5779			} else {
5780				if x.RBD == nil {
5781					x.RBD = new(RBDVolumeSource)
5782				}
5783				x.RBD.CodecDecodeSelf(d)
5784			}
5785		case "iscsi":
5786			if r.TryDecodeAsNil() {
5787				if x.ISCSI != nil {
5788					x.ISCSI = nil
5789				}
5790			} else {
5791				if x.ISCSI == nil {
5792					x.ISCSI = new(ISCSIVolumeSource)
5793				}
5794				x.ISCSI.CodecDecodeSelf(d)
5795			}
5796		case "cinder":
5797			if r.TryDecodeAsNil() {
5798				if x.Cinder != nil {
5799					x.Cinder = nil
5800				}
5801			} else {
5802				if x.Cinder == nil {
5803					x.Cinder = new(CinderVolumeSource)
5804				}
5805				x.Cinder.CodecDecodeSelf(d)
5806			}
5807		case "cephfs":
5808			if r.TryDecodeAsNil() {
5809				if x.CephFS != nil {
5810					x.CephFS = nil
5811				}
5812			} else {
5813				if x.CephFS == nil {
5814					x.CephFS = new(CephFSVolumeSource)
5815				}
5816				x.CephFS.CodecDecodeSelf(d)
5817			}
5818		case "fc":
5819			if r.TryDecodeAsNil() {
5820				if x.FC != nil {
5821					x.FC = nil
5822				}
5823			} else {
5824				if x.FC == nil {
5825					x.FC = new(FCVolumeSource)
5826				}
5827				x.FC.CodecDecodeSelf(d)
5828			}
5829		case "flocker":
5830			if r.TryDecodeAsNil() {
5831				if x.Flocker != nil {
5832					x.Flocker = nil
5833				}
5834			} else {
5835				if x.Flocker == nil {
5836					x.Flocker = new(FlockerVolumeSource)
5837				}
5838				x.Flocker.CodecDecodeSelf(d)
5839			}
5840		case "flexVolume":
5841			if r.TryDecodeAsNil() {
5842				if x.FlexVolume != nil {
5843					x.FlexVolume = nil
5844				}
5845			} else {
5846				if x.FlexVolume == nil {
5847					x.FlexVolume = new(FlexVolumeSource)
5848				}
5849				x.FlexVolume.CodecDecodeSelf(d)
5850			}
5851		case "azureFile":
5852			if r.TryDecodeAsNil() {
5853				if x.AzureFile != nil {
5854					x.AzureFile = nil
5855				}
5856			} else {
5857				if x.AzureFile == nil {
5858					x.AzureFile = new(AzureFileVolumeSource)
5859				}
5860				x.AzureFile.CodecDecodeSelf(d)
5861			}
5862		case "vsphereVolume":
5863			if r.TryDecodeAsNil() {
5864				if x.VsphereVolume != nil {
5865					x.VsphereVolume = nil
5866				}
5867			} else {
5868				if x.VsphereVolume == nil {
5869					x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
5870				}
5871				x.VsphereVolume.CodecDecodeSelf(d)
5872			}
5873		case "quobyte":
5874			if r.TryDecodeAsNil() {
5875				if x.Quobyte != nil {
5876					x.Quobyte = nil
5877				}
5878			} else {
5879				if x.Quobyte == nil {
5880					x.Quobyte = new(QuobyteVolumeSource)
5881				}
5882				x.Quobyte.CodecDecodeSelf(d)
5883			}
5884		case "azureDisk":
5885			if r.TryDecodeAsNil() {
5886				if x.AzureDisk != nil {
5887					x.AzureDisk = nil
5888				}
5889			} else {
5890				if x.AzureDisk == nil {
5891					x.AzureDisk = new(AzureDiskVolumeSource)
5892				}
5893				x.AzureDisk.CodecDecodeSelf(d)
5894			}
5895		case "photonPersistentDisk":
5896			if r.TryDecodeAsNil() {
5897				if x.PhotonPersistentDisk != nil {
5898					x.PhotonPersistentDisk = nil
5899				}
5900			} else {
5901				if x.PhotonPersistentDisk == nil {
5902					x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource)
5903				}
5904				x.PhotonPersistentDisk.CodecDecodeSelf(d)
5905			}
5906		case "portworxVolume":
5907			if r.TryDecodeAsNil() {
5908				if x.PortworxVolume != nil {
5909					x.PortworxVolume = nil
5910				}
5911			} else {
5912				if x.PortworxVolume == nil {
5913					x.PortworxVolume = new(PortworxVolumeSource)
5914				}
5915				x.PortworxVolume.CodecDecodeSelf(d)
5916			}
5917		case "scaleIO":
5918			if r.TryDecodeAsNil() {
5919				if x.ScaleIO != nil {
5920					x.ScaleIO = nil
5921				}
5922			} else {
5923				if x.ScaleIO == nil {
5924					x.ScaleIO = new(ScaleIOVolumeSource)
5925				}
5926				x.ScaleIO.CodecDecodeSelf(d)
5927			}
5928		default:
5929			z.DecStructFieldNotFound(-1, yys3)
5930		} // end switch yys3
5931	} // end for yyj3
5932	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
5933}
5934
5935func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
5936	var h codecSelfer1234
5937	z, r := codec1978.GenHelperDecoder(d)
5938	_, _, _ = h, z, r
5939	var yyj23 int
5940	var yyb23 bool
5941	var yyhl23 bool = l >= 0
5942	yyj23++
5943	if yyhl23 {
5944		yyb23 = yyj23 > l
5945	} else {
5946		yyb23 = r.CheckBreak()
5947	}
5948	if yyb23 {
5949		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
5950		return
5951	}
5952	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
5953	if r.TryDecodeAsNil() {
5954		if x.GCEPersistentDisk != nil {
5955			x.GCEPersistentDisk = nil
5956		}
5957	} else {
5958		if x.GCEPersistentDisk == nil {
5959			x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
5960		}
5961		x.GCEPersistentDisk.CodecDecodeSelf(d)
5962	}
5963	yyj23++
5964	if yyhl23 {
5965		yyb23 = yyj23 > l
5966	} else {
5967		yyb23 = r.CheckBreak()
5968	}
5969	if yyb23 {
5970		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
5971		return
5972	}
5973	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
5974	if r.TryDecodeAsNil() {
5975		if x.AWSElasticBlockStore != nil {
5976			x.AWSElasticBlockStore = nil
5977		}
5978	} else {
5979		if x.AWSElasticBlockStore == nil {
5980			x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
5981		}
5982		x.AWSElasticBlockStore.CodecDecodeSelf(d)
5983	}
5984	yyj23++
5985	if yyhl23 {
5986		yyb23 = yyj23 > l
5987	} else {
5988		yyb23 = r.CheckBreak()
5989	}
5990	if yyb23 {
5991		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
5992		return
5993	}
5994	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
5995	if r.TryDecodeAsNil() {
5996		if x.HostPath != nil {
5997			x.HostPath = nil
5998		}
5999	} else {
6000		if x.HostPath == nil {
6001			x.HostPath = new(HostPathVolumeSource)
6002		}
6003		x.HostPath.CodecDecodeSelf(d)
6004	}
6005	yyj23++
6006	if yyhl23 {
6007		yyb23 = yyj23 > l
6008	} else {
6009		yyb23 = r.CheckBreak()
6010	}
6011	if yyb23 {
6012		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6013		return
6014	}
6015	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6016	if r.TryDecodeAsNil() {
6017		if x.Glusterfs != nil {
6018			x.Glusterfs = nil
6019		}
6020	} else {
6021		if x.Glusterfs == nil {
6022			x.Glusterfs = new(GlusterfsVolumeSource)
6023		}
6024		x.Glusterfs.CodecDecodeSelf(d)
6025	}
6026	yyj23++
6027	if yyhl23 {
6028		yyb23 = yyj23 > l
6029	} else {
6030		yyb23 = r.CheckBreak()
6031	}
6032	if yyb23 {
6033		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6034		return
6035	}
6036	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6037	if r.TryDecodeAsNil() {
6038		if x.NFS != nil {
6039			x.NFS = nil
6040		}
6041	} else {
6042		if x.NFS == nil {
6043			x.NFS = new(NFSVolumeSource)
6044		}
6045		x.NFS.CodecDecodeSelf(d)
6046	}
6047	yyj23++
6048	if yyhl23 {
6049		yyb23 = yyj23 > l
6050	} else {
6051		yyb23 = r.CheckBreak()
6052	}
6053	if yyb23 {
6054		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6055		return
6056	}
6057	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6058	if r.TryDecodeAsNil() {
6059		if x.RBD != nil {
6060			x.RBD = nil
6061		}
6062	} else {
6063		if x.RBD == nil {
6064			x.RBD = new(RBDVolumeSource)
6065		}
6066		x.RBD.CodecDecodeSelf(d)
6067	}
6068	yyj23++
6069	if yyhl23 {
6070		yyb23 = yyj23 > l
6071	} else {
6072		yyb23 = r.CheckBreak()
6073	}
6074	if yyb23 {
6075		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6076		return
6077	}
6078	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6079	if r.TryDecodeAsNil() {
6080		if x.ISCSI != nil {
6081			x.ISCSI = nil
6082		}
6083	} else {
6084		if x.ISCSI == nil {
6085			x.ISCSI = new(ISCSIVolumeSource)
6086		}
6087		x.ISCSI.CodecDecodeSelf(d)
6088	}
6089	yyj23++
6090	if yyhl23 {
6091		yyb23 = yyj23 > l
6092	} else {
6093		yyb23 = r.CheckBreak()
6094	}
6095	if yyb23 {
6096		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6097		return
6098	}
6099	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6100	if r.TryDecodeAsNil() {
6101		if x.Cinder != nil {
6102			x.Cinder = nil
6103		}
6104	} else {
6105		if x.Cinder == nil {
6106			x.Cinder = new(CinderVolumeSource)
6107		}
6108		x.Cinder.CodecDecodeSelf(d)
6109	}
6110	yyj23++
6111	if yyhl23 {
6112		yyb23 = yyj23 > l
6113	} else {
6114		yyb23 = r.CheckBreak()
6115	}
6116	if yyb23 {
6117		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6118		return
6119	}
6120	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6121	if r.TryDecodeAsNil() {
6122		if x.CephFS != nil {
6123			x.CephFS = nil
6124		}
6125	} else {
6126		if x.CephFS == nil {
6127			x.CephFS = new(CephFSVolumeSource)
6128		}
6129		x.CephFS.CodecDecodeSelf(d)
6130	}
6131	yyj23++
6132	if yyhl23 {
6133		yyb23 = yyj23 > l
6134	} else {
6135		yyb23 = r.CheckBreak()
6136	}
6137	if yyb23 {
6138		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6139		return
6140	}
6141	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6142	if r.TryDecodeAsNil() {
6143		if x.FC != nil {
6144			x.FC = nil
6145		}
6146	} else {
6147		if x.FC == nil {
6148			x.FC = new(FCVolumeSource)
6149		}
6150		x.FC.CodecDecodeSelf(d)
6151	}
6152	yyj23++
6153	if yyhl23 {
6154		yyb23 = yyj23 > l
6155	} else {
6156		yyb23 = r.CheckBreak()
6157	}
6158	if yyb23 {
6159		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6160		return
6161	}
6162	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6163	if r.TryDecodeAsNil() {
6164		if x.Flocker != nil {
6165			x.Flocker = nil
6166		}
6167	} else {
6168		if x.Flocker == nil {
6169			x.Flocker = new(FlockerVolumeSource)
6170		}
6171		x.Flocker.CodecDecodeSelf(d)
6172	}
6173	yyj23++
6174	if yyhl23 {
6175		yyb23 = yyj23 > l
6176	} else {
6177		yyb23 = r.CheckBreak()
6178	}
6179	if yyb23 {
6180		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6181		return
6182	}
6183	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6184	if r.TryDecodeAsNil() {
6185		if x.FlexVolume != nil {
6186			x.FlexVolume = nil
6187		}
6188	} else {
6189		if x.FlexVolume == nil {
6190			x.FlexVolume = new(FlexVolumeSource)
6191		}
6192		x.FlexVolume.CodecDecodeSelf(d)
6193	}
6194	yyj23++
6195	if yyhl23 {
6196		yyb23 = yyj23 > l
6197	} else {
6198		yyb23 = r.CheckBreak()
6199	}
6200	if yyb23 {
6201		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6202		return
6203	}
6204	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6205	if r.TryDecodeAsNil() {
6206		if x.AzureFile != nil {
6207			x.AzureFile = nil
6208		}
6209	} else {
6210		if x.AzureFile == nil {
6211			x.AzureFile = new(AzureFileVolumeSource)
6212		}
6213		x.AzureFile.CodecDecodeSelf(d)
6214	}
6215	yyj23++
6216	if yyhl23 {
6217		yyb23 = yyj23 > l
6218	} else {
6219		yyb23 = r.CheckBreak()
6220	}
6221	if yyb23 {
6222		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6223		return
6224	}
6225	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6226	if r.TryDecodeAsNil() {
6227		if x.VsphereVolume != nil {
6228			x.VsphereVolume = nil
6229		}
6230	} else {
6231		if x.VsphereVolume == nil {
6232			x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
6233		}
6234		x.VsphereVolume.CodecDecodeSelf(d)
6235	}
6236	yyj23++
6237	if yyhl23 {
6238		yyb23 = yyj23 > l
6239	} else {
6240		yyb23 = r.CheckBreak()
6241	}
6242	if yyb23 {
6243		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6244		return
6245	}
6246	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6247	if r.TryDecodeAsNil() {
6248		if x.Quobyte != nil {
6249			x.Quobyte = nil
6250		}
6251	} else {
6252		if x.Quobyte == nil {
6253			x.Quobyte = new(QuobyteVolumeSource)
6254		}
6255		x.Quobyte.CodecDecodeSelf(d)
6256	}
6257	yyj23++
6258	if yyhl23 {
6259		yyb23 = yyj23 > l
6260	} else {
6261		yyb23 = r.CheckBreak()
6262	}
6263	if yyb23 {
6264		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6265		return
6266	}
6267	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6268	if r.TryDecodeAsNil() {
6269		if x.AzureDisk != nil {
6270			x.AzureDisk = nil
6271		}
6272	} else {
6273		if x.AzureDisk == nil {
6274			x.AzureDisk = new(AzureDiskVolumeSource)
6275		}
6276		x.AzureDisk.CodecDecodeSelf(d)
6277	}
6278	yyj23++
6279	if yyhl23 {
6280		yyb23 = yyj23 > l
6281	} else {
6282		yyb23 = r.CheckBreak()
6283	}
6284	if yyb23 {
6285		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6286		return
6287	}
6288	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6289	if r.TryDecodeAsNil() {
6290		if x.PhotonPersistentDisk != nil {
6291			x.PhotonPersistentDisk = nil
6292		}
6293	} else {
6294		if x.PhotonPersistentDisk == nil {
6295			x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource)
6296		}
6297		x.PhotonPersistentDisk.CodecDecodeSelf(d)
6298	}
6299	yyj23++
6300	if yyhl23 {
6301		yyb23 = yyj23 > l
6302	} else {
6303		yyb23 = r.CheckBreak()
6304	}
6305	if yyb23 {
6306		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6307		return
6308	}
6309	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6310	if r.TryDecodeAsNil() {
6311		if x.PortworxVolume != nil {
6312			x.PortworxVolume = nil
6313		}
6314	} else {
6315		if x.PortworxVolume == nil {
6316			x.PortworxVolume = new(PortworxVolumeSource)
6317		}
6318		x.PortworxVolume.CodecDecodeSelf(d)
6319	}
6320	yyj23++
6321	if yyhl23 {
6322		yyb23 = yyj23 > l
6323	} else {
6324		yyb23 = r.CheckBreak()
6325	}
6326	if yyb23 {
6327		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6328		return
6329	}
6330	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6331	if r.TryDecodeAsNil() {
6332		if x.ScaleIO != nil {
6333			x.ScaleIO = nil
6334		}
6335	} else {
6336		if x.ScaleIO == nil {
6337			x.ScaleIO = new(ScaleIOVolumeSource)
6338		}
6339		x.ScaleIO.CodecDecodeSelf(d)
6340	}
6341	for {
6342		yyj23++
6343		if yyhl23 {
6344			yyb23 = yyj23 > l
6345		} else {
6346			yyb23 = r.CheckBreak()
6347		}
6348		if yyb23 {
6349			break
6350		}
6351		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6352		z.DecStructFieldNotFound(yyj23-1, "")
6353	}
6354	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6355}
6356
6357func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) {
6358	var h codecSelfer1234
6359	z, r := codec1978.GenHelperEncoder(e)
6360	_, _, _ = h, z, r
6361	if x == nil {
6362		r.EncodeNil()
6363	} else {
6364		yym1 := z.EncBinary()
6365		_ = yym1
6366		if false {
6367		} else if z.HasExtensions() && z.EncExt(x) {
6368		} else {
6369			yysep2 := !z.EncBinary()
6370			yy2arr2 := z.EncBasicHandle().StructToArray
6371			var yyq2 [5]bool
6372			_, _, _ = yysep2, yyq2, yy2arr2
6373			const yyr2 bool = false
6374			yyq2[0] = x.Kind != ""
6375			yyq2[1] = x.APIVersion != ""
6376			yyq2[2] = true
6377			yyq2[3] = true
6378			yyq2[4] = true
6379			var yynn2 int
6380			if yyr2 || yy2arr2 {
6381				r.EncodeArrayStart(5)
6382			} else {
6383				yynn2 = 0
6384				for _, b := range yyq2 {
6385					if b {
6386						yynn2++
6387					}
6388				}
6389				r.EncodeMapStart(yynn2)
6390				yynn2 = 0
6391			}
6392			if yyr2 || yy2arr2 {
6393				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
6394				if yyq2[0] {
6395					yym4 := z.EncBinary()
6396					_ = yym4
6397					if false {
6398					} else {
6399						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
6400					}
6401				} else {
6402					r.EncodeString(codecSelferC_UTF81234, "")
6403				}
6404			} else {
6405				if yyq2[0] {
6406					z.EncSendContainerState(codecSelfer_containerMapKey1234)
6407					r.EncodeString(codecSelferC_UTF81234, string("kind"))
6408					z.EncSendContainerState(codecSelfer_containerMapValue1234)
6409					yym5 := z.EncBinary()
6410					_ = yym5
6411					if false {
6412					} else {
6413						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
6414					}
6415				}
6416			}
6417			if yyr2 || yy2arr2 {
6418				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
6419				if yyq2[1] {
6420					yym7 := z.EncBinary()
6421					_ = yym7
6422					if false {
6423					} else {
6424						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
6425					}
6426				} else {
6427					r.EncodeString(codecSelferC_UTF81234, "")
6428				}
6429			} else {
6430				if yyq2[1] {
6431					z.EncSendContainerState(codecSelfer_containerMapKey1234)
6432					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
6433					z.EncSendContainerState(codecSelfer_containerMapValue1234)
6434					yym8 := z.EncBinary()
6435					_ = yym8
6436					if false {
6437					} else {
6438						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
6439					}
6440				}
6441			}
6442			if yyr2 || yy2arr2 {
6443				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
6444				if yyq2[2] {
6445					yy10 := &x.ObjectMeta
6446					yym11 := z.EncBinary()
6447					_ = yym11
6448					if false {
6449					} else if z.HasExtensions() && z.EncExt(yy10) {
6450					} else {
6451						z.EncFallback(yy10)
6452					}
6453				} else {
6454					r.EncodeNil()
6455				}
6456			} else {
6457				if yyq2[2] {
6458					z.EncSendContainerState(codecSelfer_containerMapKey1234)
6459					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
6460					z.EncSendContainerState(codecSelfer_containerMapValue1234)
6461					yy12 := &x.ObjectMeta
6462					yym13 := z.EncBinary()
6463					_ = yym13
6464					if false {
6465					} else if z.HasExtensions() && z.EncExt(yy12) {
6466					} else {
6467						z.EncFallback(yy12)
6468					}
6469				}
6470			}
6471			if yyr2 || yy2arr2 {
6472				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
6473				if yyq2[3] {
6474					yy15 := &x.Spec
6475					yy15.CodecEncodeSelf(e)
6476				} else {
6477					r.EncodeNil()
6478				}
6479			} else {
6480				if yyq2[3] {
6481					z.EncSendContainerState(codecSelfer_containerMapKey1234)
6482					r.EncodeString(codecSelferC_UTF81234, string("spec"))
6483					z.EncSendContainerState(codecSelfer_containerMapValue1234)
6484					yy17 := &x.Spec
6485					yy17.CodecEncodeSelf(e)
6486				}
6487			}
6488			if yyr2 || yy2arr2 {
6489				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
6490				if yyq2[4] {
6491					yy20 := &x.Status
6492					yy20.CodecEncodeSelf(e)
6493				} else {
6494					r.EncodeNil()
6495				}
6496			} else {
6497				if yyq2[4] {
6498					z.EncSendContainerState(codecSelfer_containerMapKey1234)
6499					r.EncodeString(codecSelferC_UTF81234, string("status"))
6500					z.EncSendContainerState(codecSelfer_containerMapValue1234)
6501					yy22 := &x.Status
6502					yy22.CodecEncodeSelf(e)
6503				}
6504			}
6505			if yyr2 || yy2arr2 {
6506				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
6507			} else {
6508				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
6509			}
6510		}
6511	}
6512}
6513
6514func (x *PersistentVolume) CodecDecodeSelf(d *codec1978.Decoder) {
6515	var h codecSelfer1234
6516	z, r := codec1978.GenHelperDecoder(d)
6517	_, _, _ = h, z, r
6518	yym1 := z.DecBinary()
6519	_ = yym1
6520	if false {
6521	} else if z.HasExtensions() && z.DecExt(x) {
6522	} else {
6523		yyct2 := r.ContainerType()
6524		if yyct2 == codecSelferValueTypeMap1234 {
6525			yyl2 := r.ReadMapStart()
6526			if yyl2 == 0 {
6527				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
6528			} else {
6529				x.codecDecodeSelfFromMap(yyl2, d)
6530			}
6531		} else if yyct2 == codecSelferValueTypeArray1234 {
6532			yyl2 := r.ReadArrayStart()
6533			if yyl2 == 0 {
6534				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6535			} else {
6536				x.codecDecodeSelfFromArray(yyl2, d)
6537			}
6538		} else {
6539			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
6540		}
6541	}
6542}
6543
6544func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
6545	var h codecSelfer1234
6546	z, r := codec1978.GenHelperDecoder(d)
6547	_, _, _ = h, z, r
6548	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
6549	_ = yys3Slc
6550	var yyhl3 bool = l >= 0
6551	for yyj3 := 0; ; yyj3++ {
6552		if yyhl3 {
6553			if yyj3 >= l {
6554				break
6555			}
6556		} else {
6557			if r.CheckBreak() {
6558				break
6559			}
6560		}
6561		z.DecSendContainerState(codecSelfer_containerMapKey1234)
6562		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
6563		yys3 := string(yys3Slc)
6564		z.DecSendContainerState(codecSelfer_containerMapValue1234)
6565		switch yys3 {
6566		case "kind":
6567			if r.TryDecodeAsNil() {
6568				x.Kind = ""
6569			} else {
6570				yyv4 := &x.Kind
6571				yym5 := z.DecBinary()
6572				_ = yym5
6573				if false {
6574				} else {
6575					*((*string)(yyv4)) = r.DecodeString()
6576				}
6577			}
6578		case "apiVersion":
6579			if r.TryDecodeAsNil() {
6580				x.APIVersion = ""
6581			} else {
6582				yyv6 := &x.APIVersion
6583				yym7 := z.DecBinary()
6584				_ = yym7
6585				if false {
6586				} else {
6587					*((*string)(yyv6)) = r.DecodeString()
6588				}
6589			}
6590		case "metadata":
6591			if r.TryDecodeAsNil() {
6592				x.ObjectMeta = pkg2_v1.ObjectMeta{}
6593			} else {
6594				yyv8 := &x.ObjectMeta
6595				yym9 := z.DecBinary()
6596				_ = yym9
6597				if false {
6598				} else if z.HasExtensions() && z.DecExt(yyv8) {
6599				} else {
6600					z.DecFallback(yyv8, false)
6601				}
6602			}
6603		case "spec":
6604			if r.TryDecodeAsNil() {
6605				x.Spec = PersistentVolumeSpec{}
6606			} else {
6607				yyv10 := &x.Spec
6608				yyv10.CodecDecodeSelf(d)
6609			}
6610		case "status":
6611			if r.TryDecodeAsNil() {
6612				x.Status = PersistentVolumeStatus{}
6613			} else {
6614				yyv11 := &x.Status
6615				yyv11.CodecDecodeSelf(d)
6616			}
6617		default:
6618			z.DecStructFieldNotFound(-1, yys3)
6619		} // end switch yys3
6620	} // end for yyj3
6621	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
6622}
6623
6624func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
6625	var h codecSelfer1234
6626	z, r := codec1978.GenHelperDecoder(d)
6627	_, _, _ = h, z, r
6628	var yyj12 int
6629	var yyb12 bool
6630	var yyhl12 bool = l >= 0
6631	yyj12++
6632	if yyhl12 {
6633		yyb12 = yyj12 > l
6634	} else {
6635		yyb12 = r.CheckBreak()
6636	}
6637	if yyb12 {
6638		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6639		return
6640	}
6641	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6642	if r.TryDecodeAsNil() {
6643		x.Kind = ""
6644	} else {
6645		yyv13 := &x.Kind
6646		yym14 := z.DecBinary()
6647		_ = yym14
6648		if false {
6649		} else {
6650			*((*string)(yyv13)) = r.DecodeString()
6651		}
6652	}
6653	yyj12++
6654	if yyhl12 {
6655		yyb12 = yyj12 > l
6656	} else {
6657		yyb12 = r.CheckBreak()
6658	}
6659	if yyb12 {
6660		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6661		return
6662	}
6663	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6664	if r.TryDecodeAsNil() {
6665		x.APIVersion = ""
6666	} else {
6667		yyv15 := &x.APIVersion
6668		yym16 := z.DecBinary()
6669		_ = yym16
6670		if false {
6671		} else {
6672			*((*string)(yyv15)) = r.DecodeString()
6673		}
6674	}
6675	yyj12++
6676	if yyhl12 {
6677		yyb12 = yyj12 > l
6678	} else {
6679		yyb12 = r.CheckBreak()
6680	}
6681	if yyb12 {
6682		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6683		return
6684	}
6685	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6686	if r.TryDecodeAsNil() {
6687		x.ObjectMeta = pkg2_v1.ObjectMeta{}
6688	} else {
6689		yyv17 := &x.ObjectMeta
6690		yym18 := z.DecBinary()
6691		_ = yym18
6692		if false {
6693		} else if z.HasExtensions() && z.DecExt(yyv17) {
6694		} else {
6695			z.DecFallback(yyv17, false)
6696		}
6697	}
6698	yyj12++
6699	if yyhl12 {
6700		yyb12 = yyj12 > l
6701	} else {
6702		yyb12 = r.CheckBreak()
6703	}
6704	if yyb12 {
6705		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6706		return
6707	}
6708	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6709	if r.TryDecodeAsNil() {
6710		x.Spec = PersistentVolumeSpec{}
6711	} else {
6712		yyv19 := &x.Spec
6713		yyv19.CodecDecodeSelf(d)
6714	}
6715	yyj12++
6716	if yyhl12 {
6717		yyb12 = yyj12 > l
6718	} else {
6719		yyb12 = r.CheckBreak()
6720	}
6721	if yyb12 {
6722		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6723		return
6724	}
6725	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6726	if r.TryDecodeAsNil() {
6727		x.Status = PersistentVolumeStatus{}
6728	} else {
6729		yyv20 := &x.Status
6730		yyv20.CodecDecodeSelf(d)
6731	}
6732	for {
6733		yyj12++
6734		if yyhl12 {
6735			yyb12 = yyj12 > l
6736		} else {
6737			yyb12 = r.CheckBreak()
6738		}
6739		if yyb12 {
6740			break
6741		}
6742		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
6743		z.DecStructFieldNotFound(yyj12-1, "")
6744	}
6745	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
6746}
6747
6748func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) {
6749	var h codecSelfer1234
6750	z, r := codec1978.GenHelperEncoder(e)
6751	_, _, _ = h, z, r
6752	if x == nil {
6753		r.EncodeNil()
6754	} else {
6755		yym1 := z.EncBinary()
6756		_ = yym1
6757		if false {
6758		} else if z.HasExtensions() && z.EncExt(x) {
6759		} else {
6760			yysep2 := !z.EncBinary()
6761			yy2arr2 := z.EncBasicHandle().StructToArray
6762			var yyq2 [24]bool
6763			_, _, _ = yysep2, yyq2, yy2arr2
6764			const yyr2 bool = false
6765			yyq2[0] = len(x.Capacity) != 0
6766			yyq2[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil
6767			yyq2[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil
6768			yyq2[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil
6769			yyq2[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil
6770			yyq2[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil
6771			yyq2[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil
6772			yyq2[7] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil
6773			yyq2[8] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil
6774			yyq2[9] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil
6775			yyq2[10] = x.PersistentVolumeSource.FC != nil && x.FC != nil
6776			yyq2[11] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil
6777			yyq2[12] = x.PersistentVolumeSource.FlexVolume != nil && x.FlexVolume != nil
6778			yyq2[13] = x.PersistentVolumeSource.AzureFile != nil && x.AzureFile != nil
6779			yyq2[14] = x.PersistentVolumeSource.VsphereVolume != nil && x.VsphereVolume != nil
6780			yyq2[15] = x.PersistentVolumeSource.Quobyte != nil && x.Quobyte != nil
6781			yyq2[16] = x.PersistentVolumeSource.AzureDisk != nil && x.AzureDisk != nil
6782			yyq2[17] = x.PersistentVolumeSource.PhotonPersistentDisk != nil && x.PhotonPersistentDisk != nil
6783			yyq2[18] = x.PersistentVolumeSource.PortworxVolume != nil && x.PortworxVolume != nil
6784			yyq2[19] = x.PersistentVolumeSource.ScaleIO != nil && x.ScaleIO != nil
6785			yyq2[20] = len(x.AccessModes) != 0
6786			yyq2[21] = x.ClaimRef != nil
6787			yyq2[22] = x.PersistentVolumeReclaimPolicy != ""
6788			yyq2[23] = x.StorageClassName != ""
6789			var yynn2 int
6790			if yyr2 || yy2arr2 {
6791				r.EncodeArrayStart(24)
6792			} else {
6793				yynn2 = 0
6794				for _, b := range yyq2 {
6795					if b {
6796						yynn2++
6797					}
6798				}
6799				r.EncodeMapStart(yynn2)
6800				yynn2 = 0
6801			}
6802			if yyr2 || yy2arr2 {
6803				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
6804				if yyq2[0] {
6805					if x.Capacity == nil {
6806						r.EncodeNil()
6807					} else {
6808						x.Capacity.CodecEncodeSelf(e)
6809					}
6810				} else {
6811					r.EncodeNil()
6812				}
6813			} else {
6814				if yyq2[0] {
6815					z.EncSendContainerState(codecSelfer_containerMapKey1234)
6816					r.EncodeString(codecSelferC_UTF81234, string("capacity"))
6817					z.EncSendContainerState(codecSelfer_containerMapValue1234)
6818					if x.Capacity == nil {
6819						r.EncodeNil()
6820					} else {
6821						x.Capacity.CodecEncodeSelf(e)
6822					}
6823				}
6824			}
6825			var yyn6 bool
6826			if x.PersistentVolumeSource.GCEPersistentDisk == nil {
6827				yyn6 = true
6828				goto LABEL6
6829			}
6830		LABEL6:
6831			if yyr2 || yy2arr2 {
6832				if yyn6 {
6833					r.EncodeNil()
6834				} else {
6835					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
6836					if yyq2[1] {
6837						if x.GCEPersistentDisk == nil {
6838							r.EncodeNil()
6839						} else {
6840							x.GCEPersistentDisk.CodecEncodeSelf(e)
6841						}
6842					} else {
6843						r.EncodeNil()
6844					}
6845				}
6846			} else {
6847				if yyq2[1] {
6848					z.EncSendContainerState(codecSelfer_containerMapKey1234)
6849					r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
6850					z.EncSendContainerState(codecSelfer_containerMapValue1234)
6851					if yyn6 {
6852						r.EncodeNil()
6853					} else {
6854						if x.GCEPersistentDisk == nil {
6855							r.EncodeNil()
6856						} else {
6857							x.GCEPersistentDisk.CodecEncodeSelf(e)
6858						}
6859					}
6860				}
6861			}
6862			var yyn9 bool
6863			if x.PersistentVolumeSource.AWSElasticBlockStore == nil {
6864				yyn9 = true
6865				goto LABEL9
6866			}
6867		LABEL9:
6868			if yyr2 || yy2arr2 {
6869				if yyn9 {
6870					r.EncodeNil()
6871				} else {
6872					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
6873					if yyq2[2] {
6874						if x.AWSElasticBlockStore == nil {
6875							r.EncodeNil()
6876						} else {
6877							x.AWSElasticBlockStore.CodecEncodeSelf(e)
6878						}
6879					} else {
6880						r.EncodeNil()
6881					}
6882				}
6883			} else {
6884				if yyq2[2] {
6885					z.EncSendContainerState(codecSelfer_containerMapKey1234)
6886					r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
6887					z.EncSendContainerState(codecSelfer_containerMapValue1234)
6888					if yyn9 {
6889						r.EncodeNil()
6890					} else {
6891						if x.AWSElasticBlockStore == nil {
6892							r.EncodeNil()
6893						} else {
6894							x.AWSElasticBlockStore.CodecEncodeSelf(e)
6895						}
6896					}
6897				}
6898			}
6899			var yyn12 bool
6900			if x.PersistentVolumeSource.HostPath == nil {
6901				yyn12 = true
6902				goto LABEL12
6903			}
6904		LABEL12:
6905			if yyr2 || yy2arr2 {
6906				if yyn12 {
6907					r.EncodeNil()
6908				} else {
6909					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
6910					if yyq2[3] {
6911						if x.HostPath == nil {
6912							r.EncodeNil()
6913						} else {
6914							x.HostPath.CodecEncodeSelf(e)
6915						}
6916					} else {
6917						r.EncodeNil()
6918					}
6919				}
6920			} else {
6921				if yyq2[3] {
6922					z.EncSendContainerState(codecSelfer_containerMapKey1234)
6923					r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
6924					z.EncSendContainerState(codecSelfer_containerMapValue1234)
6925					if yyn12 {
6926						r.EncodeNil()
6927					} else {
6928						if x.HostPath == nil {
6929							r.EncodeNil()
6930						} else {
6931							x.HostPath.CodecEncodeSelf(e)
6932						}
6933					}
6934				}
6935			}
6936			var yyn15 bool
6937			if x.PersistentVolumeSource.Glusterfs == nil {
6938				yyn15 = true
6939				goto LABEL15
6940			}
6941		LABEL15:
6942			if yyr2 || yy2arr2 {
6943				if yyn15 {
6944					r.EncodeNil()
6945				} else {
6946					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
6947					if yyq2[4] {
6948						if x.Glusterfs == nil {
6949							r.EncodeNil()
6950						} else {
6951							x.Glusterfs.CodecEncodeSelf(e)
6952						}
6953					} else {
6954						r.EncodeNil()
6955					}
6956				}
6957			} else {
6958				if yyq2[4] {
6959					z.EncSendContainerState(codecSelfer_containerMapKey1234)
6960					r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
6961					z.EncSendContainerState(codecSelfer_containerMapValue1234)
6962					if yyn15 {
6963						r.EncodeNil()
6964					} else {
6965						if x.Glusterfs == nil {
6966							r.EncodeNil()
6967						} else {
6968							x.Glusterfs.CodecEncodeSelf(e)
6969						}
6970					}
6971				}
6972			}
6973			var yyn18 bool
6974			if x.PersistentVolumeSource.NFS == nil {
6975				yyn18 = true
6976				goto LABEL18
6977			}
6978		LABEL18:
6979			if yyr2 || yy2arr2 {
6980				if yyn18 {
6981					r.EncodeNil()
6982				} else {
6983					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
6984					if yyq2[5] {
6985						if x.NFS == nil {
6986							r.EncodeNil()
6987						} else {
6988							x.NFS.CodecEncodeSelf(e)
6989						}
6990					} else {
6991						r.EncodeNil()
6992					}
6993				}
6994			} else {
6995				if yyq2[5] {
6996					z.EncSendContainerState(codecSelfer_containerMapKey1234)
6997					r.EncodeString(codecSelferC_UTF81234, string("nfs"))
6998					z.EncSendContainerState(codecSelfer_containerMapValue1234)
6999					if yyn18 {
7000						r.EncodeNil()
7001					} else {
7002						if x.NFS == nil {
7003							r.EncodeNil()
7004						} else {
7005							x.NFS.CodecEncodeSelf(e)
7006						}
7007					}
7008				}
7009			}
7010			var yyn21 bool
7011			if x.PersistentVolumeSource.RBD == nil {
7012				yyn21 = true
7013				goto LABEL21
7014			}
7015		LABEL21:
7016			if yyr2 || yy2arr2 {
7017				if yyn21 {
7018					r.EncodeNil()
7019				} else {
7020					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
7021					if yyq2[6] {
7022						if x.RBD == nil {
7023							r.EncodeNil()
7024						} else {
7025							x.RBD.CodecEncodeSelf(e)
7026						}
7027					} else {
7028						r.EncodeNil()
7029					}
7030				}
7031			} else {
7032				if yyq2[6] {
7033					z.EncSendContainerState(codecSelfer_containerMapKey1234)
7034					r.EncodeString(codecSelferC_UTF81234, string("rbd"))
7035					z.EncSendContainerState(codecSelfer_containerMapValue1234)
7036					if yyn21 {
7037						r.EncodeNil()
7038					} else {
7039						if x.RBD == nil {
7040							r.EncodeNil()
7041						} else {
7042							x.RBD.CodecEncodeSelf(e)
7043						}
7044					}
7045				}
7046			}
7047			var yyn24 bool
7048			if x.PersistentVolumeSource.ISCSI == nil {
7049				yyn24 = true
7050				goto LABEL24
7051			}
7052		LABEL24:
7053			if yyr2 || yy2arr2 {
7054				if yyn24 {
7055					r.EncodeNil()
7056				} else {
7057					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
7058					if yyq2[7] {
7059						if x.ISCSI == nil {
7060							r.EncodeNil()
7061						} else {
7062							x.ISCSI.CodecEncodeSelf(e)
7063						}
7064					} else {
7065						r.EncodeNil()
7066					}
7067				}
7068			} else {
7069				if yyq2[7] {
7070					z.EncSendContainerState(codecSelfer_containerMapKey1234)
7071					r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
7072					z.EncSendContainerState(codecSelfer_containerMapValue1234)
7073					if yyn24 {
7074						r.EncodeNil()
7075					} else {
7076						if x.ISCSI == nil {
7077							r.EncodeNil()
7078						} else {
7079							x.ISCSI.CodecEncodeSelf(e)
7080						}
7081					}
7082				}
7083			}
7084			var yyn27 bool
7085			if x.PersistentVolumeSource.Cinder == nil {
7086				yyn27 = true
7087				goto LABEL27
7088			}
7089		LABEL27:
7090			if yyr2 || yy2arr2 {
7091				if yyn27 {
7092					r.EncodeNil()
7093				} else {
7094					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
7095					if yyq2[8] {
7096						if x.Cinder == nil {
7097							r.EncodeNil()
7098						} else {
7099							x.Cinder.CodecEncodeSelf(e)
7100						}
7101					} else {
7102						r.EncodeNil()
7103					}
7104				}
7105			} else {
7106				if yyq2[8] {
7107					z.EncSendContainerState(codecSelfer_containerMapKey1234)
7108					r.EncodeString(codecSelferC_UTF81234, string("cinder"))
7109					z.EncSendContainerState(codecSelfer_containerMapValue1234)
7110					if yyn27 {
7111						r.EncodeNil()
7112					} else {
7113						if x.Cinder == nil {
7114							r.EncodeNil()
7115						} else {
7116							x.Cinder.CodecEncodeSelf(e)
7117						}
7118					}
7119				}
7120			}
7121			var yyn30 bool
7122			if x.PersistentVolumeSource.CephFS == nil {
7123				yyn30 = true
7124				goto LABEL30
7125			}
7126		LABEL30:
7127			if yyr2 || yy2arr2 {
7128				if yyn30 {
7129					r.EncodeNil()
7130				} else {
7131					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
7132					if yyq2[9] {
7133						if x.CephFS == nil {
7134							r.EncodeNil()
7135						} else {
7136							x.CephFS.CodecEncodeSelf(e)
7137						}
7138					} else {
7139						r.EncodeNil()
7140					}
7141				}
7142			} else {
7143				if yyq2[9] {
7144					z.EncSendContainerState(codecSelfer_containerMapKey1234)
7145					r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
7146					z.EncSendContainerState(codecSelfer_containerMapValue1234)
7147					if yyn30 {
7148						r.EncodeNil()
7149					} else {
7150						if x.CephFS == nil {
7151							r.EncodeNil()
7152						} else {
7153							x.CephFS.CodecEncodeSelf(e)
7154						}
7155					}
7156				}
7157			}
7158			var yyn33 bool
7159			if x.PersistentVolumeSource.FC == nil {
7160				yyn33 = true
7161				goto LABEL33
7162			}
7163		LABEL33:
7164			if yyr2 || yy2arr2 {
7165				if yyn33 {
7166					r.EncodeNil()
7167				} else {
7168					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
7169					if yyq2[10] {
7170						if x.FC == nil {
7171							r.EncodeNil()
7172						} else {
7173							x.FC.CodecEncodeSelf(e)
7174						}
7175					} else {
7176						r.EncodeNil()
7177					}
7178				}
7179			} else {
7180				if yyq2[10] {
7181					z.EncSendContainerState(codecSelfer_containerMapKey1234)
7182					r.EncodeString(codecSelferC_UTF81234, string("fc"))
7183					z.EncSendContainerState(codecSelfer_containerMapValue1234)
7184					if yyn33 {
7185						r.EncodeNil()
7186					} else {
7187						if x.FC == nil {
7188							r.EncodeNil()
7189						} else {
7190							x.FC.CodecEncodeSelf(e)
7191						}
7192					}
7193				}
7194			}
7195			var yyn36 bool
7196			if x.PersistentVolumeSource.Flocker == nil {
7197				yyn36 = true
7198				goto LABEL36
7199			}
7200		LABEL36:
7201			if yyr2 || yy2arr2 {
7202				if yyn36 {
7203					r.EncodeNil()
7204				} else {
7205					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
7206					if yyq2[11] {
7207						if x.Flocker == nil {
7208							r.EncodeNil()
7209						} else {
7210							x.Flocker.CodecEncodeSelf(e)
7211						}
7212					} else {
7213						r.EncodeNil()
7214					}
7215				}
7216			} else {
7217				if yyq2[11] {
7218					z.EncSendContainerState(codecSelfer_containerMapKey1234)
7219					r.EncodeString(codecSelferC_UTF81234, string("flocker"))
7220					z.EncSendContainerState(codecSelfer_containerMapValue1234)
7221					if yyn36 {
7222						r.EncodeNil()
7223					} else {
7224						if x.Flocker == nil {
7225							r.EncodeNil()
7226						} else {
7227							x.Flocker.CodecEncodeSelf(e)
7228						}
7229					}
7230				}
7231			}
7232			var yyn39 bool
7233			if x.PersistentVolumeSource.FlexVolume == nil {
7234				yyn39 = true
7235				goto LABEL39
7236			}
7237		LABEL39:
7238			if yyr2 || yy2arr2 {
7239				if yyn39 {
7240					r.EncodeNil()
7241				} else {
7242					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
7243					if yyq2[12] {
7244						if x.FlexVolume == nil {
7245							r.EncodeNil()
7246						} else {
7247							x.FlexVolume.CodecEncodeSelf(e)
7248						}
7249					} else {
7250						r.EncodeNil()
7251					}
7252				}
7253			} else {
7254				if yyq2[12] {
7255					z.EncSendContainerState(codecSelfer_containerMapKey1234)
7256					r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
7257					z.EncSendContainerState(codecSelfer_containerMapValue1234)
7258					if yyn39 {
7259						r.EncodeNil()
7260					} else {
7261						if x.FlexVolume == nil {
7262							r.EncodeNil()
7263						} else {
7264							x.FlexVolume.CodecEncodeSelf(e)
7265						}
7266					}
7267				}
7268			}
7269			var yyn42 bool
7270			if x.PersistentVolumeSource.AzureFile == nil {
7271				yyn42 = true
7272				goto LABEL42
7273			}
7274		LABEL42:
7275			if yyr2 || yy2arr2 {
7276				if yyn42 {
7277					r.EncodeNil()
7278				} else {
7279					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
7280					if yyq2[13] {
7281						if x.AzureFile == nil {
7282							r.EncodeNil()
7283						} else {
7284							x.AzureFile.CodecEncodeSelf(e)
7285						}
7286					} else {
7287						r.EncodeNil()
7288					}
7289				}
7290			} else {
7291				if yyq2[13] {
7292					z.EncSendContainerState(codecSelfer_containerMapKey1234)
7293					r.EncodeString(codecSelferC_UTF81234, string("azureFile"))
7294					z.EncSendContainerState(codecSelfer_containerMapValue1234)
7295					if yyn42 {
7296						r.EncodeNil()
7297					} else {
7298						if x.AzureFile == nil {
7299							r.EncodeNil()
7300						} else {
7301							x.AzureFile.CodecEncodeSelf(e)
7302						}
7303					}
7304				}
7305			}
7306			var yyn45 bool
7307			if x.PersistentVolumeSource.VsphereVolume == nil {
7308				yyn45 = true
7309				goto LABEL45
7310			}
7311		LABEL45:
7312			if yyr2 || yy2arr2 {
7313				if yyn45 {
7314					r.EncodeNil()
7315				} else {
7316					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
7317					if yyq2[14] {
7318						if x.VsphereVolume == nil {
7319							r.EncodeNil()
7320						} else {
7321							x.VsphereVolume.CodecEncodeSelf(e)
7322						}
7323					} else {
7324						r.EncodeNil()
7325					}
7326				}
7327			} else {
7328				if yyq2[14] {
7329					z.EncSendContainerState(codecSelfer_containerMapKey1234)
7330					r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume"))
7331					z.EncSendContainerState(codecSelfer_containerMapValue1234)
7332					if yyn45 {
7333						r.EncodeNil()
7334					} else {
7335						if x.VsphereVolume == nil {
7336							r.EncodeNil()
7337						} else {
7338							x.VsphereVolume.CodecEncodeSelf(e)
7339						}
7340					}
7341				}
7342			}
7343			var yyn48 bool
7344			if x.PersistentVolumeSource.Quobyte == nil {
7345				yyn48 = true
7346				goto LABEL48
7347			}
7348		LABEL48:
7349			if yyr2 || yy2arr2 {
7350				if yyn48 {
7351					r.EncodeNil()
7352				} else {
7353					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
7354					if yyq2[15] {
7355						if x.Quobyte == nil {
7356							r.EncodeNil()
7357						} else {
7358							x.Quobyte.CodecEncodeSelf(e)
7359						}
7360					} else {
7361						r.EncodeNil()
7362					}
7363				}
7364			} else {
7365				if yyq2[15] {
7366					z.EncSendContainerState(codecSelfer_containerMapKey1234)
7367					r.EncodeString(codecSelferC_UTF81234, string("quobyte"))
7368					z.EncSendContainerState(codecSelfer_containerMapValue1234)
7369					if yyn48 {
7370						r.EncodeNil()
7371					} else {
7372						if x.Quobyte == nil {
7373							r.EncodeNil()
7374						} else {
7375							x.Quobyte.CodecEncodeSelf(e)
7376						}
7377					}
7378				}
7379			}
7380			var yyn51 bool
7381			if x.PersistentVolumeSource.AzureDisk == nil {
7382				yyn51 = true
7383				goto LABEL51
7384			}
7385		LABEL51:
7386			if yyr2 || yy2arr2 {
7387				if yyn51 {
7388					r.EncodeNil()
7389				} else {
7390					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
7391					if yyq2[16] {
7392						if x.AzureDisk == nil {
7393							r.EncodeNil()
7394						} else {
7395							x.AzureDisk.CodecEncodeSelf(e)
7396						}
7397					} else {
7398						r.EncodeNil()
7399					}
7400				}
7401			} else {
7402				if yyq2[16] {
7403					z.EncSendContainerState(codecSelfer_containerMapKey1234)
7404					r.EncodeString(codecSelferC_UTF81234, string("azureDisk"))
7405					z.EncSendContainerState(codecSelfer_containerMapValue1234)
7406					if yyn51 {
7407						r.EncodeNil()
7408					} else {
7409						if x.AzureDisk == nil {
7410							r.EncodeNil()
7411						} else {
7412							x.AzureDisk.CodecEncodeSelf(e)
7413						}
7414					}
7415				}
7416			}
7417			var yyn54 bool
7418			if x.PersistentVolumeSource.PhotonPersistentDisk == nil {
7419				yyn54 = true
7420				goto LABEL54
7421			}
7422		LABEL54:
7423			if yyr2 || yy2arr2 {
7424				if yyn54 {
7425					r.EncodeNil()
7426				} else {
7427					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
7428					if yyq2[17] {
7429						if x.PhotonPersistentDisk == nil {
7430							r.EncodeNil()
7431						} else {
7432							x.PhotonPersistentDisk.CodecEncodeSelf(e)
7433						}
7434					} else {
7435						r.EncodeNil()
7436					}
7437				}
7438			} else {
7439				if yyq2[17] {
7440					z.EncSendContainerState(codecSelfer_containerMapKey1234)
7441					r.EncodeString(codecSelferC_UTF81234, string("photonPersistentDisk"))
7442					z.EncSendContainerState(codecSelfer_containerMapValue1234)
7443					if yyn54 {
7444						r.EncodeNil()
7445					} else {
7446						if x.PhotonPersistentDisk == nil {
7447							r.EncodeNil()
7448						} else {
7449							x.PhotonPersistentDisk.CodecEncodeSelf(e)
7450						}
7451					}
7452				}
7453			}
7454			var yyn57 bool
7455			if x.PersistentVolumeSource.PortworxVolume == nil {
7456				yyn57 = true
7457				goto LABEL57
7458			}
7459		LABEL57:
7460			if yyr2 || yy2arr2 {
7461				if yyn57 {
7462					r.EncodeNil()
7463				} else {
7464					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
7465					if yyq2[18] {
7466						if x.PortworxVolume == nil {
7467							r.EncodeNil()
7468						} else {
7469							x.PortworxVolume.CodecEncodeSelf(e)
7470						}
7471					} else {
7472						r.EncodeNil()
7473					}
7474				}
7475			} else {
7476				if yyq2[18] {
7477					z.EncSendContainerState(codecSelfer_containerMapKey1234)
7478					r.EncodeString(codecSelferC_UTF81234, string("portworxVolume"))
7479					z.EncSendContainerState(codecSelfer_containerMapValue1234)
7480					if yyn57 {
7481						r.EncodeNil()
7482					} else {
7483						if x.PortworxVolume == nil {
7484							r.EncodeNil()
7485						} else {
7486							x.PortworxVolume.CodecEncodeSelf(e)
7487						}
7488					}
7489				}
7490			}
7491			var yyn60 bool
7492			if x.PersistentVolumeSource.ScaleIO == nil {
7493				yyn60 = true
7494				goto LABEL60
7495			}
7496		LABEL60:
7497			if yyr2 || yy2arr2 {
7498				if yyn60 {
7499					r.EncodeNil()
7500				} else {
7501					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
7502					if yyq2[19] {
7503						if x.ScaleIO == nil {
7504							r.EncodeNil()
7505						} else {
7506							x.ScaleIO.CodecEncodeSelf(e)
7507						}
7508					} else {
7509						r.EncodeNil()
7510					}
7511				}
7512			} else {
7513				if yyq2[19] {
7514					z.EncSendContainerState(codecSelfer_containerMapKey1234)
7515					r.EncodeString(codecSelferC_UTF81234, string("scaleIO"))
7516					z.EncSendContainerState(codecSelfer_containerMapValue1234)
7517					if yyn60 {
7518						r.EncodeNil()
7519					} else {
7520						if x.ScaleIO == nil {
7521							r.EncodeNil()
7522						} else {
7523							x.ScaleIO.CodecEncodeSelf(e)
7524						}
7525					}
7526				}
7527			}
7528			if yyr2 || yy2arr2 {
7529				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
7530				if yyq2[20] {
7531					if x.AccessModes == nil {
7532						r.EncodeNil()
7533					} else {
7534						yym64 := z.EncBinary()
7535						_ = yym64
7536						if false {
7537						} else {
7538							h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
7539						}
7540					}
7541				} else {
7542					r.EncodeNil()
7543				}
7544			} else {
7545				if yyq2[20] {
7546					z.EncSendContainerState(codecSelfer_containerMapKey1234)
7547					r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
7548					z.EncSendContainerState(codecSelfer_containerMapValue1234)
7549					if x.AccessModes == nil {
7550						r.EncodeNil()
7551					} else {
7552						yym65 := z.EncBinary()
7553						_ = yym65
7554						if false {
7555						} else {
7556							h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
7557						}
7558					}
7559				}
7560			}
7561			if yyr2 || yy2arr2 {
7562				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
7563				if yyq2[21] {
7564					if x.ClaimRef == nil {
7565						r.EncodeNil()
7566					} else {
7567						x.ClaimRef.CodecEncodeSelf(e)
7568					}
7569				} else {
7570					r.EncodeNil()
7571				}
7572			} else {
7573				if yyq2[21] {
7574					z.EncSendContainerState(codecSelfer_containerMapKey1234)
7575					r.EncodeString(codecSelferC_UTF81234, string("claimRef"))
7576					z.EncSendContainerState(codecSelfer_containerMapValue1234)
7577					if x.ClaimRef == nil {
7578						r.EncodeNil()
7579					} else {
7580						x.ClaimRef.CodecEncodeSelf(e)
7581					}
7582				}
7583			}
7584			if yyr2 || yy2arr2 {
7585				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
7586				if yyq2[22] {
7587					x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e)
7588				} else {
7589					r.EncodeString(codecSelferC_UTF81234, "")
7590				}
7591			} else {
7592				if yyq2[22] {
7593					z.EncSendContainerState(codecSelfer_containerMapKey1234)
7594					r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy"))
7595					z.EncSendContainerState(codecSelfer_containerMapValue1234)
7596					x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e)
7597				}
7598			}
7599			if yyr2 || yy2arr2 {
7600				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
7601				if yyq2[23] {
7602					yym73 := z.EncBinary()
7603					_ = yym73
7604					if false {
7605					} else {
7606						r.EncodeString(codecSelferC_UTF81234, string(x.StorageClassName))
7607					}
7608				} else {
7609					r.EncodeString(codecSelferC_UTF81234, "")
7610				}
7611			} else {
7612				if yyq2[23] {
7613					z.EncSendContainerState(codecSelfer_containerMapKey1234)
7614					r.EncodeString(codecSelferC_UTF81234, string("storageClassName"))
7615					z.EncSendContainerState(codecSelfer_containerMapValue1234)
7616					yym74 := z.EncBinary()
7617					_ = yym74
7618					if false {
7619					} else {
7620						r.EncodeString(codecSelferC_UTF81234, string(x.StorageClassName))
7621					}
7622				}
7623			}
7624			if yyr2 || yy2arr2 {
7625				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
7626			} else {
7627				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
7628			}
7629		}
7630	}
7631}
7632
7633func (x *PersistentVolumeSpec) CodecDecodeSelf(d *codec1978.Decoder) {
7634	var h codecSelfer1234
7635	z, r := codec1978.GenHelperDecoder(d)
7636	_, _, _ = h, z, r
7637	yym1 := z.DecBinary()
7638	_ = yym1
7639	if false {
7640	} else if z.HasExtensions() && z.DecExt(x) {
7641	} else {
7642		yyct2 := r.ContainerType()
7643		if yyct2 == codecSelferValueTypeMap1234 {
7644			yyl2 := r.ReadMapStart()
7645			if yyl2 == 0 {
7646				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
7647			} else {
7648				x.codecDecodeSelfFromMap(yyl2, d)
7649			}
7650		} else if yyct2 == codecSelferValueTypeArray1234 {
7651			yyl2 := r.ReadArrayStart()
7652			if yyl2 == 0 {
7653				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
7654			} else {
7655				x.codecDecodeSelfFromArray(yyl2, d)
7656			}
7657		} else {
7658			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
7659		}
7660	}
7661}
7662
7663func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
7664	var h codecSelfer1234
7665	z, r := codec1978.GenHelperDecoder(d)
7666	_, _, _ = h, z, r
7667	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
7668	_ = yys3Slc
7669	var yyhl3 bool = l >= 0
7670	for yyj3 := 0; ; yyj3++ {
7671		if yyhl3 {
7672			if yyj3 >= l {
7673				break
7674			}
7675		} else {
7676			if r.CheckBreak() {
7677				break
7678			}
7679		}
7680		z.DecSendContainerState(codecSelfer_containerMapKey1234)
7681		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
7682		yys3 := string(yys3Slc)
7683		z.DecSendContainerState(codecSelfer_containerMapValue1234)
7684		switch yys3 {
7685		case "capacity":
7686			if r.TryDecodeAsNil() {
7687				x.Capacity = nil
7688			} else {
7689				yyv4 := &x.Capacity
7690				yyv4.CodecDecodeSelf(d)
7691			}
7692		case "gcePersistentDisk":
7693			if x.PersistentVolumeSource.GCEPersistentDisk == nil {
7694				x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
7695			}
7696			if r.TryDecodeAsNil() {
7697				if x.GCEPersistentDisk != nil {
7698					x.GCEPersistentDisk = nil
7699				}
7700			} else {
7701				if x.GCEPersistentDisk == nil {
7702					x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
7703				}
7704				x.GCEPersistentDisk.CodecDecodeSelf(d)
7705			}
7706		case "awsElasticBlockStore":
7707			if x.PersistentVolumeSource.AWSElasticBlockStore == nil {
7708				x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
7709			}
7710			if r.TryDecodeAsNil() {
7711				if x.AWSElasticBlockStore != nil {
7712					x.AWSElasticBlockStore = nil
7713				}
7714			} else {
7715				if x.AWSElasticBlockStore == nil {
7716					x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
7717				}
7718				x.AWSElasticBlockStore.CodecDecodeSelf(d)
7719			}
7720		case "hostPath":
7721			if x.PersistentVolumeSource.HostPath == nil {
7722				x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource)
7723			}
7724			if r.TryDecodeAsNil() {
7725				if x.HostPath != nil {
7726					x.HostPath = nil
7727				}
7728			} else {
7729				if x.HostPath == nil {
7730					x.HostPath = new(HostPathVolumeSource)
7731				}
7732				x.HostPath.CodecDecodeSelf(d)
7733			}
7734		case "glusterfs":
7735			if x.PersistentVolumeSource.Glusterfs == nil {
7736				x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource)
7737			}
7738			if r.TryDecodeAsNil() {
7739				if x.Glusterfs != nil {
7740					x.Glusterfs = nil
7741				}
7742			} else {
7743				if x.Glusterfs == nil {
7744					x.Glusterfs = new(GlusterfsVolumeSource)
7745				}
7746				x.Glusterfs.CodecDecodeSelf(d)
7747			}
7748		case "nfs":
7749			if x.PersistentVolumeSource.NFS == nil {
7750				x.PersistentVolumeSource.NFS = new(NFSVolumeSource)
7751			}
7752			if r.TryDecodeAsNil() {
7753				if x.NFS != nil {
7754					x.NFS = nil
7755				}
7756			} else {
7757				if x.NFS == nil {
7758					x.NFS = new(NFSVolumeSource)
7759				}
7760				x.NFS.CodecDecodeSelf(d)
7761			}
7762		case "rbd":
7763			if x.PersistentVolumeSource.RBD == nil {
7764				x.PersistentVolumeSource.RBD = new(RBDVolumeSource)
7765			}
7766			if r.TryDecodeAsNil() {
7767				if x.RBD != nil {
7768					x.RBD = nil
7769				}
7770			} else {
7771				if x.RBD == nil {
7772					x.RBD = new(RBDVolumeSource)
7773				}
7774				x.RBD.CodecDecodeSelf(d)
7775			}
7776		case "iscsi":
7777			if x.PersistentVolumeSource.ISCSI == nil {
7778				x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource)
7779			}
7780			if r.TryDecodeAsNil() {
7781				if x.ISCSI != nil {
7782					x.ISCSI = nil
7783				}
7784			} else {
7785				if x.ISCSI == nil {
7786					x.ISCSI = new(ISCSIVolumeSource)
7787				}
7788				x.ISCSI.CodecDecodeSelf(d)
7789			}
7790		case "cinder":
7791			if x.PersistentVolumeSource.Cinder == nil {
7792				x.PersistentVolumeSource.Cinder = new(CinderVolumeSource)
7793			}
7794			if r.TryDecodeAsNil() {
7795				if x.Cinder != nil {
7796					x.Cinder = nil
7797				}
7798			} else {
7799				if x.Cinder == nil {
7800					x.Cinder = new(CinderVolumeSource)
7801				}
7802				x.Cinder.CodecDecodeSelf(d)
7803			}
7804		case "cephfs":
7805			if x.PersistentVolumeSource.CephFS == nil {
7806				x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource)
7807			}
7808			if r.TryDecodeAsNil() {
7809				if x.CephFS != nil {
7810					x.CephFS = nil
7811				}
7812			} else {
7813				if x.CephFS == nil {
7814					x.CephFS = new(CephFSVolumeSource)
7815				}
7816				x.CephFS.CodecDecodeSelf(d)
7817			}
7818		case "fc":
7819			if x.PersistentVolumeSource.FC == nil {
7820				x.PersistentVolumeSource.FC = new(FCVolumeSource)
7821			}
7822			if r.TryDecodeAsNil() {
7823				if x.FC != nil {
7824					x.FC = nil
7825				}
7826			} else {
7827				if x.FC == nil {
7828					x.FC = new(FCVolumeSource)
7829				}
7830				x.FC.CodecDecodeSelf(d)
7831			}
7832		case "flocker":
7833			if x.PersistentVolumeSource.Flocker == nil {
7834				x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource)
7835			}
7836			if r.TryDecodeAsNil() {
7837				if x.Flocker != nil {
7838					x.Flocker = nil
7839				}
7840			} else {
7841				if x.Flocker == nil {
7842					x.Flocker = new(FlockerVolumeSource)
7843				}
7844				x.Flocker.CodecDecodeSelf(d)
7845			}
7846		case "flexVolume":
7847			if x.PersistentVolumeSource.FlexVolume == nil {
7848				x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource)
7849			}
7850			if r.TryDecodeAsNil() {
7851				if x.FlexVolume != nil {
7852					x.FlexVolume = nil
7853				}
7854			} else {
7855				if x.FlexVolume == nil {
7856					x.FlexVolume = new(FlexVolumeSource)
7857				}
7858				x.FlexVolume.CodecDecodeSelf(d)
7859			}
7860		case "azureFile":
7861			if x.PersistentVolumeSource.AzureFile == nil {
7862				x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource)
7863			}
7864			if r.TryDecodeAsNil() {
7865				if x.AzureFile != nil {
7866					x.AzureFile = nil
7867				}
7868			} else {
7869				if x.AzureFile == nil {
7870					x.AzureFile = new(AzureFileVolumeSource)
7871				}
7872				x.AzureFile.CodecDecodeSelf(d)
7873			}
7874		case "vsphereVolume":
7875			if x.PersistentVolumeSource.VsphereVolume == nil {
7876				x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
7877			}
7878			if r.TryDecodeAsNil() {
7879				if x.VsphereVolume != nil {
7880					x.VsphereVolume = nil
7881				}
7882			} else {
7883				if x.VsphereVolume == nil {
7884					x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
7885				}
7886				x.VsphereVolume.CodecDecodeSelf(d)
7887			}
7888		case "quobyte":
7889			if x.PersistentVolumeSource.Quobyte == nil {
7890				x.PersistentVolumeSource.Quobyte = new(QuobyteVolumeSource)
7891			}
7892			if r.TryDecodeAsNil() {
7893				if x.Quobyte != nil {
7894					x.Quobyte = nil
7895				}
7896			} else {
7897				if x.Quobyte == nil {
7898					x.Quobyte = new(QuobyteVolumeSource)
7899				}
7900				x.Quobyte.CodecDecodeSelf(d)
7901			}
7902		case "azureDisk":
7903			if x.PersistentVolumeSource.AzureDisk == nil {
7904				x.PersistentVolumeSource.AzureDisk = new(AzureDiskVolumeSource)
7905			}
7906			if r.TryDecodeAsNil() {
7907				if x.AzureDisk != nil {
7908					x.AzureDisk = nil
7909				}
7910			} else {
7911				if x.AzureDisk == nil {
7912					x.AzureDisk = new(AzureDiskVolumeSource)
7913				}
7914				x.AzureDisk.CodecDecodeSelf(d)
7915			}
7916		case "photonPersistentDisk":
7917			if x.PersistentVolumeSource.PhotonPersistentDisk == nil {
7918				x.PersistentVolumeSource.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource)
7919			}
7920			if r.TryDecodeAsNil() {
7921				if x.PhotonPersistentDisk != nil {
7922					x.PhotonPersistentDisk = nil
7923				}
7924			} else {
7925				if x.PhotonPersistentDisk == nil {
7926					x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource)
7927				}
7928				x.PhotonPersistentDisk.CodecDecodeSelf(d)
7929			}
7930		case "portworxVolume":
7931			if x.PersistentVolumeSource.PortworxVolume == nil {
7932				x.PersistentVolumeSource.PortworxVolume = new(PortworxVolumeSource)
7933			}
7934			if r.TryDecodeAsNil() {
7935				if x.PortworxVolume != nil {
7936					x.PortworxVolume = nil
7937				}
7938			} else {
7939				if x.PortworxVolume == nil {
7940					x.PortworxVolume = new(PortworxVolumeSource)
7941				}
7942				x.PortworxVolume.CodecDecodeSelf(d)
7943			}
7944		case "scaleIO":
7945			if x.PersistentVolumeSource.ScaleIO == nil {
7946				x.PersistentVolumeSource.ScaleIO = new(ScaleIOVolumeSource)
7947			}
7948			if r.TryDecodeAsNil() {
7949				if x.ScaleIO != nil {
7950					x.ScaleIO = nil
7951				}
7952			} else {
7953				if x.ScaleIO == nil {
7954					x.ScaleIO = new(ScaleIOVolumeSource)
7955				}
7956				x.ScaleIO.CodecDecodeSelf(d)
7957			}
7958		case "accessModes":
7959			if r.TryDecodeAsNil() {
7960				x.AccessModes = nil
7961			} else {
7962				yyv24 := &x.AccessModes
7963				yym25 := z.DecBinary()
7964				_ = yym25
7965				if false {
7966				} else {
7967					h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv24), d)
7968				}
7969			}
7970		case "claimRef":
7971			if r.TryDecodeAsNil() {
7972				if x.ClaimRef != nil {
7973					x.ClaimRef = nil
7974				}
7975			} else {
7976				if x.ClaimRef == nil {
7977					x.ClaimRef = new(ObjectReference)
7978				}
7979				x.ClaimRef.CodecDecodeSelf(d)
7980			}
7981		case "persistentVolumeReclaimPolicy":
7982			if r.TryDecodeAsNil() {
7983				x.PersistentVolumeReclaimPolicy = ""
7984			} else {
7985				yyv27 := &x.PersistentVolumeReclaimPolicy
7986				yyv27.CodecDecodeSelf(d)
7987			}
7988		case "storageClassName":
7989			if r.TryDecodeAsNil() {
7990				x.StorageClassName = ""
7991			} else {
7992				yyv28 := &x.StorageClassName
7993				yym29 := z.DecBinary()
7994				_ = yym29
7995				if false {
7996				} else {
7997					*((*string)(yyv28)) = r.DecodeString()
7998				}
7999			}
8000		default:
8001			z.DecStructFieldNotFound(-1, yys3)
8002		} // end switch yys3
8003	} // end for yyj3
8004	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
8005}
8006
8007func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
8008	var h codecSelfer1234
8009	z, r := codec1978.GenHelperDecoder(d)
8010	_, _, _ = h, z, r
8011	var yyj30 int
8012	var yyb30 bool
8013	var yyhl30 bool = l >= 0
8014	yyj30++
8015	if yyhl30 {
8016		yyb30 = yyj30 > l
8017	} else {
8018		yyb30 = r.CheckBreak()
8019	}
8020	if yyb30 {
8021		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8022		return
8023	}
8024	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8025	if r.TryDecodeAsNil() {
8026		x.Capacity = nil
8027	} else {
8028		yyv31 := &x.Capacity
8029		yyv31.CodecDecodeSelf(d)
8030	}
8031	if x.PersistentVolumeSource.GCEPersistentDisk == nil {
8032		x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
8033	}
8034	yyj30++
8035	if yyhl30 {
8036		yyb30 = yyj30 > l
8037	} else {
8038		yyb30 = r.CheckBreak()
8039	}
8040	if yyb30 {
8041		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8042		return
8043	}
8044	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8045	if r.TryDecodeAsNil() {
8046		if x.GCEPersistentDisk != nil {
8047			x.GCEPersistentDisk = nil
8048		}
8049	} else {
8050		if x.GCEPersistentDisk == nil {
8051			x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
8052		}
8053		x.GCEPersistentDisk.CodecDecodeSelf(d)
8054	}
8055	if x.PersistentVolumeSource.AWSElasticBlockStore == nil {
8056		x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
8057	}
8058	yyj30++
8059	if yyhl30 {
8060		yyb30 = yyj30 > l
8061	} else {
8062		yyb30 = r.CheckBreak()
8063	}
8064	if yyb30 {
8065		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8066		return
8067	}
8068	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8069	if r.TryDecodeAsNil() {
8070		if x.AWSElasticBlockStore != nil {
8071			x.AWSElasticBlockStore = nil
8072		}
8073	} else {
8074		if x.AWSElasticBlockStore == nil {
8075			x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
8076		}
8077		x.AWSElasticBlockStore.CodecDecodeSelf(d)
8078	}
8079	if x.PersistentVolumeSource.HostPath == nil {
8080		x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource)
8081	}
8082	yyj30++
8083	if yyhl30 {
8084		yyb30 = yyj30 > l
8085	} else {
8086		yyb30 = r.CheckBreak()
8087	}
8088	if yyb30 {
8089		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8090		return
8091	}
8092	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8093	if r.TryDecodeAsNil() {
8094		if x.HostPath != nil {
8095			x.HostPath = nil
8096		}
8097	} else {
8098		if x.HostPath == nil {
8099			x.HostPath = new(HostPathVolumeSource)
8100		}
8101		x.HostPath.CodecDecodeSelf(d)
8102	}
8103	if x.PersistentVolumeSource.Glusterfs == nil {
8104		x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource)
8105	}
8106	yyj30++
8107	if yyhl30 {
8108		yyb30 = yyj30 > l
8109	} else {
8110		yyb30 = r.CheckBreak()
8111	}
8112	if yyb30 {
8113		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8114		return
8115	}
8116	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8117	if r.TryDecodeAsNil() {
8118		if x.Glusterfs != nil {
8119			x.Glusterfs = nil
8120		}
8121	} else {
8122		if x.Glusterfs == nil {
8123			x.Glusterfs = new(GlusterfsVolumeSource)
8124		}
8125		x.Glusterfs.CodecDecodeSelf(d)
8126	}
8127	if x.PersistentVolumeSource.NFS == nil {
8128		x.PersistentVolumeSource.NFS = new(NFSVolumeSource)
8129	}
8130	yyj30++
8131	if yyhl30 {
8132		yyb30 = yyj30 > l
8133	} else {
8134		yyb30 = r.CheckBreak()
8135	}
8136	if yyb30 {
8137		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8138		return
8139	}
8140	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8141	if r.TryDecodeAsNil() {
8142		if x.NFS != nil {
8143			x.NFS = nil
8144		}
8145	} else {
8146		if x.NFS == nil {
8147			x.NFS = new(NFSVolumeSource)
8148		}
8149		x.NFS.CodecDecodeSelf(d)
8150	}
8151	if x.PersistentVolumeSource.RBD == nil {
8152		x.PersistentVolumeSource.RBD = new(RBDVolumeSource)
8153	}
8154	yyj30++
8155	if yyhl30 {
8156		yyb30 = yyj30 > l
8157	} else {
8158		yyb30 = r.CheckBreak()
8159	}
8160	if yyb30 {
8161		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8162		return
8163	}
8164	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8165	if r.TryDecodeAsNil() {
8166		if x.RBD != nil {
8167			x.RBD = nil
8168		}
8169	} else {
8170		if x.RBD == nil {
8171			x.RBD = new(RBDVolumeSource)
8172		}
8173		x.RBD.CodecDecodeSelf(d)
8174	}
8175	if x.PersistentVolumeSource.ISCSI == nil {
8176		x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource)
8177	}
8178	yyj30++
8179	if yyhl30 {
8180		yyb30 = yyj30 > l
8181	} else {
8182		yyb30 = r.CheckBreak()
8183	}
8184	if yyb30 {
8185		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8186		return
8187	}
8188	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8189	if r.TryDecodeAsNil() {
8190		if x.ISCSI != nil {
8191			x.ISCSI = nil
8192		}
8193	} else {
8194		if x.ISCSI == nil {
8195			x.ISCSI = new(ISCSIVolumeSource)
8196		}
8197		x.ISCSI.CodecDecodeSelf(d)
8198	}
8199	if x.PersistentVolumeSource.Cinder == nil {
8200		x.PersistentVolumeSource.Cinder = new(CinderVolumeSource)
8201	}
8202	yyj30++
8203	if yyhl30 {
8204		yyb30 = yyj30 > l
8205	} else {
8206		yyb30 = r.CheckBreak()
8207	}
8208	if yyb30 {
8209		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8210		return
8211	}
8212	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8213	if r.TryDecodeAsNil() {
8214		if x.Cinder != nil {
8215			x.Cinder = nil
8216		}
8217	} else {
8218		if x.Cinder == nil {
8219			x.Cinder = new(CinderVolumeSource)
8220		}
8221		x.Cinder.CodecDecodeSelf(d)
8222	}
8223	if x.PersistentVolumeSource.CephFS == nil {
8224		x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource)
8225	}
8226	yyj30++
8227	if yyhl30 {
8228		yyb30 = yyj30 > l
8229	} else {
8230		yyb30 = r.CheckBreak()
8231	}
8232	if yyb30 {
8233		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8234		return
8235	}
8236	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8237	if r.TryDecodeAsNil() {
8238		if x.CephFS != nil {
8239			x.CephFS = nil
8240		}
8241	} else {
8242		if x.CephFS == nil {
8243			x.CephFS = new(CephFSVolumeSource)
8244		}
8245		x.CephFS.CodecDecodeSelf(d)
8246	}
8247	if x.PersistentVolumeSource.FC == nil {
8248		x.PersistentVolumeSource.FC = new(FCVolumeSource)
8249	}
8250	yyj30++
8251	if yyhl30 {
8252		yyb30 = yyj30 > l
8253	} else {
8254		yyb30 = r.CheckBreak()
8255	}
8256	if yyb30 {
8257		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8258		return
8259	}
8260	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8261	if r.TryDecodeAsNil() {
8262		if x.FC != nil {
8263			x.FC = nil
8264		}
8265	} else {
8266		if x.FC == nil {
8267			x.FC = new(FCVolumeSource)
8268		}
8269		x.FC.CodecDecodeSelf(d)
8270	}
8271	if x.PersistentVolumeSource.Flocker == nil {
8272		x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource)
8273	}
8274	yyj30++
8275	if yyhl30 {
8276		yyb30 = yyj30 > l
8277	} else {
8278		yyb30 = r.CheckBreak()
8279	}
8280	if yyb30 {
8281		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8282		return
8283	}
8284	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8285	if r.TryDecodeAsNil() {
8286		if x.Flocker != nil {
8287			x.Flocker = nil
8288		}
8289	} else {
8290		if x.Flocker == nil {
8291			x.Flocker = new(FlockerVolumeSource)
8292		}
8293		x.Flocker.CodecDecodeSelf(d)
8294	}
8295	if x.PersistentVolumeSource.FlexVolume == nil {
8296		x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource)
8297	}
8298	yyj30++
8299	if yyhl30 {
8300		yyb30 = yyj30 > l
8301	} else {
8302		yyb30 = r.CheckBreak()
8303	}
8304	if yyb30 {
8305		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8306		return
8307	}
8308	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8309	if r.TryDecodeAsNil() {
8310		if x.FlexVolume != nil {
8311			x.FlexVolume = nil
8312		}
8313	} else {
8314		if x.FlexVolume == nil {
8315			x.FlexVolume = new(FlexVolumeSource)
8316		}
8317		x.FlexVolume.CodecDecodeSelf(d)
8318	}
8319	if x.PersistentVolumeSource.AzureFile == nil {
8320		x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource)
8321	}
8322	yyj30++
8323	if yyhl30 {
8324		yyb30 = yyj30 > l
8325	} else {
8326		yyb30 = r.CheckBreak()
8327	}
8328	if yyb30 {
8329		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8330		return
8331	}
8332	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8333	if r.TryDecodeAsNil() {
8334		if x.AzureFile != nil {
8335			x.AzureFile = nil
8336		}
8337	} else {
8338		if x.AzureFile == nil {
8339			x.AzureFile = new(AzureFileVolumeSource)
8340		}
8341		x.AzureFile.CodecDecodeSelf(d)
8342	}
8343	if x.PersistentVolumeSource.VsphereVolume == nil {
8344		x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
8345	}
8346	yyj30++
8347	if yyhl30 {
8348		yyb30 = yyj30 > l
8349	} else {
8350		yyb30 = r.CheckBreak()
8351	}
8352	if yyb30 {
8353		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8354		return
8355	}
8356	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8357	if r.TryDecodeAsNil() {
8358		if x.VsphereVolume != nil {
8359			x.VsphereVolume = nil
8360		}
8361	} else {
8362		if x.VsphereVolume == nil {
8363			x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
8364		}
8365		x.VsphereVolume.CodecDecodeSelf(d)
8366	}
8367	if x.PersistentVolumeSource.Quobyte == nil {
8368		x.PersistentVolumeSource.Quobyte = new(QuobyteVolumeSource)
8369	}
8370	yyj30++
8371	if yyhl30 {
8372		yyb30 = yyj30 > l
8373	} else {
8374		yyb30 = r.CheckBreak()
8375	}
8376	if yyb30 {
8377		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8378		return
8379	}
8380	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8381	if r.TryDecodeAsNil() {
8382		if x.Quobyte != nil {
8383			x.Quobyte = nil
8384		}
8385	} else {
8386		if x.Quobyte == nil {
8387			x.Quobyte = new(QuobyteVolumeSource)
8388		}
8389		x.Quobyte.CodecDecodeSelf(d)
8390	}
8391	if x.PersistentVolumeSource.AzureDisk == nil {
8392		x.PersistentVolumeSource.AzureDisk = new(AzureDiskVolumeSource)
8393	}
8394	yyj30++
8395	if yyhl30 {
8396		yyb30 = yyj30 > l
8397	} else {
8398		yyb30 = r.CheckBreak()
8399	}
8400	if yyb30 {
8401		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8402		return
8403	}
8404	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8405	if r.TryDecodeAsNil() {
8406		if x.AzureDisk != nil {
8407			x.AzureDisk = nil
8408		}
8409	} else {
8410		if x.AzureDisk == nil {
8411			x.AzureDisk = new(AzureDiskVolumeSource)
8412		}
8413		x.AzureDisk.CodecDecodeSelf(d)
8414	}
8415	if x.PersistentVolumeSource.PhotonPersistentDisk == nil {
8416		x.PersistentVolumeSource.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource)
8417	}
8418	yyj30++
8419	if yyhl30 {
8420		yyb30 = yyj30 > l
8421	} else {
8422		yyb30 = r.CheckBreak()
8423	}
8424	if yyb30 {
8425		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8426		return
8427	}
8428	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8429	if r.TryDecodeAsNil() {
8430		if x.PhotonPersistentDisk != nil {
8431			x.PhotonPersistentDisk = nil
8432		}
8433	} else {
8434		if x.PhotonPersistentDisk == nil {
8435			x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource)
8436		}
8437		x.PhotonPersistentDisk.CodecDecodeSelf(d)
8438	}
8439	if x.PersistentVolumeSource.PortworxVolume == nil {
8440		x.PersistentVolumeSource.PortworxVolume = new(PortworxVolumeSource)
8441	}
8442	yyj30++
8443	if yyhl30 {
8444		yyb30 = yyj30 > l
8445	} else {
8446		yyb30 = r.CheckBreak()
8447	}
8448	if yyb30 {
8449		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8450		return
8451	}
8452	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8453	if r.TryDecodeAsNil() {
8454		if x.PortworxVolume != nil {
8455			x.PortworxVolume = nil
8456		}
8457	} else {
8458		if x.PortworxVolume == nil {
8459			x.PortworxVolume = new(PortworxVolumeSource)
8460		}
8461		x.PortworxVolume.CodecDecodeSelf(d)
8462	}
8463	if x.PersistentVolumeSource.ScaleIO == nil {
8464		x.PersistentVolumeSource.ScaleIO = new(ScaleIOVolumeSource)
8465	}
8466	yyj30++
8467	if yyhl30 {
8468		yyb30 = yyj30 > l
8469	} else {
8470		yyb30 = r.CheckBreak()
8471	}
8472	if yyb30 {
8473		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8474		return
8475	}
8476	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8477	if r.TryDecodeAsNil() {
8478		if x.ScaleIO != nil {
8479			x.ScaleIO = nil
8480		}
8481	} else {
8482		if x.ScaleIO == nil {
8483			x.ScaleIO = new(ScaleIOVolumeSource)
8484		}
8485		x.ScaleIO.CodecDecodeSelf(d)
8486	}
8487	yyj30++
8488	if yyhl30 {
8489		yyb30 = yyj30 > l
8490	} else {
8491		yyb30 = r.CheckBreak()
8492	}
8493	if yyb30 {
8494		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8495		return
8496	}
8497	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8498	if r.TryDecodeAsNil() {
8499		x.AccessModes = nil
8500	} else {
8501		yyv51 := &x.AccessModes
8502		yym52 := z.DecBinary()
8503		_ = yym52
8504		if false {
8505		} else {
8506			h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv51), d)
8507		}
8508	}
8509	yyj30++
8510	if yyhl30 {
8511		yyb30 = yyj30 > l
8512	} else {
8513		yyb30 = r.CheckBreak()
8514	}
8515	if yyb30 {
8516		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8517		return
8518	}
8519	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8520	if r.TryDecodeAsNil() {
8521		if x.ClaimRef != nil {
8522			x.ClaimRef = nil
8523		}
8524	} else {
8525		if x.ClaimRef == nil {
8526			x.ClaimRef = new(ObjectReference)
8527		}
8528		x.ClaimRef.CodecDecodeSelf(d)
8529	}
8530	yyj30++
8531	if yyhl30 {
8532		yyb30 = yyj30 > l
8533	} else {
8534		yyb30 = r.CheckBreak()
8535	}
8536	if yyb30 {
8537		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8538		return
8539	}
8540	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8541	if r.TryDecodeAsNil() {
8542		x.PersistentVolumeReclaimPolicy = ""
8543	} else {
8544		yyv54 := &x.PersistentVolumeReclaimPolicy
8545		yyv54.CodecDecodeSelf(d)
8546	}
8547	yyj30++
8548	if yyhl30 {
8549		yyb30 = yyj30 > l
8550	} else {
8551		yyb30 = r.CheckBreak()
8552	}
8553	if yyb30 {
8554		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8555		return
8556	}
8557	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8558	if r.TryDecodeAsNil() {
8559		x.StorageClassName = ""
8560	} else {
8561		yyv55 := &x.StorageClassName
8562		yym56 := z.DecBinary()
8563		_ = yym56
8564		if false {
8565		} else {
8566			*((*string)(yyv55)) = r.DecodeString()
8567		}
8568	}
8569	for {
8570		yyj30++
8571		if yyhl30 {
8572			yyb30 = yyj30 > l
8573		} else {
8574			yyb30 = r.CheckBreak()
8575		}
8576		if yyb30 {
8577			break
8578		}
8579		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8580		z.DecStructFieldNotFound(yyj30-1, "")
8581	}
8582	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8583}
8584
8585func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
8586	var h codecSelfer1234
8587	z, r := codec1978.GenHelperEncoder(e)
8588	_, _, _ = h, z, r
8589	yym1 := z.EncBinary()
8590	_ = yym1
8591	if false {
8592	} else if z.HasExtensions() && z.EncExt(x) {
8593	} else {
8594		r.EncodeString(codecSelferC_UTF81234, string(x))
8595	}
8596}
8597
8598func (x *PersistentVolumeReclaimPolicy) CodecDecodeSelf(d *codec1978.Decoder) {
8599	var h codecSelfer1234
8600	z, r := codec1978.GenHelperDecoder(d)
8601	_, _, _ = h, z, r
8602	yym1 := z.DecBinary()
8603	_ = yym1
8604	if false {
8605	} else if z.HasExtensions() && z.DecExt(x) {
8606	} else {
8607		*((*string)(x)) = r.DecodeString()
8608	}
8609}
8610
8611func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) {
8612	var h codecSelfer1234
8613	z, r := codec1978.GenHelperEncoder(e)
8614	_, _, _ = h, z, r
8615	if x == nil {
8616		r.EncodeNil()
8617	} else {
8618		yym1 := z.EncBinary()
8619		_ = yym1
8620		if false {
8621		} else if z.HasExtensions() && z.EncExt(x) {
8622		} else {
8623			yysep2 := !z.EncBinary()
8624			yy2arr2 := z.EncBasicHandle().StructToArray
8625			var yyq2 [3]bool
8626			_, _, _ = yysep2, yyq2, yy2arr2
8627			const yyr2 bool = false
8628			yyq2[0] = x.Phase != ""
8629			yyq2[1] = x.Message != ""
8630			yyq2[2] = x.Reason != ""
8631			var yynn2 int
8632			if yyr2 || yy2arr2 {
8633				r.EncodeArrayStart(3)
8634			} else {
8635				yynn2 = 0
8636				for _, b := range yyq2 {
8637					if b {
8638						yynn2++
8639					}
8640				}
8641				r.EncodeMapStart(yynn2)
8642				yynn2 = 0
8643			}
8644			if yyr2 || yy2arr2 {
8645				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
8646				if yyq2[0] {
8647					x.Phase.CodecEncodeSelf(e)
8648				} else {
8649					r.EncodeString(codecSelferC_UTF81234, "")
8650				}
8651			} else {
8652				if yyq2[0] {
8653					z.EncSendContainerState(codecSelfer_containerMapKey1234)
8654					r.EncodeString(codecSelferC_UTF81234, string("phase"))
8655					z.EncSendContainerState(codecSelfer_containerMapValue1234)
8656					x.Phase.CodecEncodeSelf(e)
8657				}
8658			}
8659			if yyr2 || yy2arr2 {
8660				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
8661				if yyq2[1] {
8662					yym7 := z.EncBinary()
8663					_ = yym7
8664					if false {
8665					} else {
8666						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
8667					}
8668				} else {
8669					r.EncodeString(codecSelferC_UTF81234, "")
8670				}
8671			} else {
8672				if yyq2[1] {
8673					z.EncSendContainerState(codecSelfer_containerMapKey1234)
8674					r.EncodeString(codecSelferC_UTF81234, string("message"))
8675					z.EncSendContainerState(codecSelfer_containerMapValue1234)
8676					yym8 := z.EncBinary()
8677					_ = yym8
8678					if false {
8679					} else {
8680						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
8681					}
8682				}
8683			}
8684			if yyr2 || yy2arr2 {
8685				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
8686				if yyq2[2] {
8687					yym10 := z.EncBinary()
8688					_ = yym10
8689					if false {
8690					} else {
8691						r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
8692					}
8693				} else {
8694					r.EncodeString(codecSelferC_UTF81234, "")
8695				}
8696			} else {
8697				if yyq2[2] {
8698					z.EncSendContainerState(codecSelfer_containerMapKey1234)
8699					r.EncodeString(codecSelferC_UTF81234, string("reason"))
8700					z.EncSendContainerState(codecSelfer_containerMapValue1234)
8701					yym11 := z.EncBinary()
8702					_ = yym11
8703					if false {
8704					} else {
8705						r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
8706					}
8707				}
8708			}
8709			if yyr2 || yy2arr2 {
8710				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
8711			} else {
8712				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
8713			}
8714		}
8715	}
8716}
8717
8718func (x *PersistentVolumeStatus) CodecDecodeSelf(d *codec1978.Decoder) {
8719	var h codecSelfer1234
8720	z, r := codec1978.GenHelperDecoder(d)
8721	_, _, _ = h, z, r
8722	yym1 := z.DecBinary()
8723	_ = yym1
8724	if false {
8725	} else if z.HasExtensions() && z.DecExt(x) {
8726	} else {
8727		yyct2 := r.ContainerType()
8728		if yyct2 == codecSelferValueTypeMap1234 {
8729			yyl2 := r.ReadMapStart()
8730			if yyl2 == 0 {
8731				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
8732			} else {
8733				x.codecDecodeSelfFromMap(yyl2, d)
8734			}
8735		} else if yyct2 == codecSelferValueTypeArray1234 {
8736			yyl2 := r.ReadArrayStart()
8737			if yyl2 == 0 {
8738				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8739			} else {
8740				x.codecDecodeSelfFromArray(yyl2, d)
8741			}
8742		} else {
8743			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
8744		}
8745	}
8746}
8747
8748func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
8749	var h codecSelfer1234
8750	z, r := codec1978.GenHelperDecoder(d)
8751	_, _, _ = h, z, r
8752	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
8753	_ = yys3Slc
8754	var yyhl3 bool = l >= 0
8755	for yyj3 := 0; ; yyj3++ {
8756		if yyhl3 {
8757			if yyj3 >= l {
8758				break
8759			}
8760		} else {
8761			if r.CheckBreak() {
8762				break
8763			}
8764		}
8765		z.DecSendContainerState(codecSelfer_containerMapKey1234)
8766		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
8767		yys3 := string(yys3Slc)
8768		z.DecSendContainerState(codecSelfer_containerMapValue1234)
8769		switch yys3 {
8770		case "phase":
8771			if r.TryDecodeAsNil() {
8772				x.Phase = ""
8773			} else {
8774				yyv4 := &x.Phase
8775				yyv4.CodecDecodeSelf(d)
8776			}
8777		case "message":
8778			if r.TryDecodeAsNil() {
8779				x.Message = ""
8780			} else {
8781				yyv5 := &x.Message
8782				yym6 := z.DecBinary()
8783				_ = yym6
8784				if false {
8785				} else {
8786					*((*string)(yyv5)) = r.DecodeString()
8787				}
8788			}
8789		case "reason":
8790			if r.TryDecodeAsNil() {
8791				x.Reason = ""
8792			} else {
8793				yyv7 := &x.Reason
8794				yym8 := z.DecBinary()
8795				_ = yym8
8796				if false {
8797				} else {
8798					*((*string)(yyv7)) = r.DecodeString()
8799				}
8800			}
8801		default:
8802			z.DecStructFieldNotFound(-1, yys3)
8803		} // end switch yys3
8804	} // end for yyj3
8805	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
8806}
8807
8808func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
8809	var h codecSelfer1234
8810	z, r := codec1978.GenHelperDecoder(d)
8811	_, _, _ = h, z, r
8812	var yyj9 int
8813	var yyb9 bool
8814	var yyhl9 bool = l >= 0
8815	yyj9++
8816	if yyhl9 {
8817		yyb9 = yyj9 > l
8818	} else {
8819		yyb9 = r.CheckBreak()
8820	}
8821	if yyb9 {
8822		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8823		return
8824	}
8825	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8826	if r.TryDecodeAsNil() {
8827		x.Phase = ""
8828	} else {
8829		yyv10 := &x.Phase
8830		yyv10.CodecDecodeSelf(d)
8831	}
8832	yyj9++
8833	if yyhl9 {
8834		yyb9 = yyj9 > l
8835	} else {
8836		yyb9 = r.CheckBreak()
8837	}
8838	if yyb9 {
8839		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8840		return
8841	}
8842	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8843	if r.TryDecodeAsNil() {
8844		x.Message = ""
8845	} else {
8846		yyv11 := &x.Message
8847		yym12 := z.DecBinary()
8848		_ = yym12
8849		if false {
8850		} else {
8851			*((*string)(yyv11)) = r.DecodeString()
8852		}
8853	}
8854	yyj9++
8855	if yyhl9 {
8856		yyb9 = yyj9 > l
8857	} else {
8858		yyb9 = r.CheckBreak()
8859	}
8860	if yyb9 {
8861		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8862		return
8863	}
8864	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8865	if r.TryDecodeAsNil() {
8866		x.Reason = ""
8867	} else {
8868		yyv13 := &x.Reason
8869		yym14 := z.DecBinary()
8870		_ = yym14
8871		if false {
8872		} else {
8873			*((*string)(yyv13)) = r.DecodeString()
8874		}
8875	}
8876	for {
8877		yyj9++
8878		if yyhl9 {
8879			yyb9 = yyj9 > l
8880		} else {
8881			yyb9 = r.CheckBreak()
8882		}
8883		if yyb9 {
8884			break
8885		}
8886		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
8887		z.DecStructFieldNotFound(yyj9-1, "")
8888	}
8889	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
8890}
8891
8892func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) {
8893	var h codecSelfer1234
8894	z, r := codec1978.GenHelperEncoder(e)
8895	_, _, _ = h, z, r
8896	if x == nil {
8897		r.EncodeNil()
8898	} else {
8899		yym1 := z.EncBinary()
8900		_ = yym1
8901		if false {
8902		} else if z.HasExtensions() && z.EncExt(x) {
8903		} else {
8904			yysep2 := !z.EncBinary()
8905			yy2arr2 := z.EncBasicHandle().StructToArray
8906			var yyq2 [4]bool
8907			_, _, _ = yysep2, yyq2, yy2arr2
8908			const yyr2 bool = false
8909			yyq2[0] = x.Kind != ""
8910			yyq2[1] = x.APIVersion != ""
8911			yyq2[2] = true
8912			var yynn2 int
8913			if yyr2 || yy2arr2 {
8914				r.EncodeArrayStart(4)
8915			} else {
8916				yynn2 = 1
8917				for _, b := range yyq2 {
8918					if b {
8919						yynn2++
8920					}
8921				}
8922				r.EncodeMapStart(yynn2)
8923				yynn2 = 0
8924			}
8925			if yyr2 || yy2arr2 {
8926				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
8927				if yyq2[0] {
8928					yym4 := z.EncBinary()
8929					_ = yym4
8930					if false {
8931					} else {
8932						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
8933					}
8934				} else {
8935					r.EncodeString(codecSelferC_UTF81234, "")
8936				}
8937			} else {
8938				if yyq2[0] {
8939					z.EncSendContainerState(codecSelfer_containerMapKey1234)
8940					r.EncodeString(codecSelferC_UTF81234, string("kind"))
8941					z.EncSendContainerState(codecSelfer_containerMapValue1234)
8942					yym5 := z.EncBinary()
8943					_ = yym5
8944					if false {
8945					} else {
8946						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
8947					}
8948				}
8949			}
8950			if yyr2 || yy2arr2 {
8951				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
8952				if yyq2[1] {
8953					yym7 := z.EncBinary()
8954					_ = yym7
8955					if false {
8956					} else {
8957						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
8958					}
8959				} else {
8960					r.EncodeString(codecSelferC_UTF81234, "")
8961				}
8962			} else {
8963				if yyq2[1] {
8964					z.EncSendContainerState(codecSelfer_containerMapKey1234)
8965					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
8966					z.EncSendContainerState(codecSelfer_containerMapValue1234)
8967					yym8 := z.EncBinary()
8968					_ = yym8
8969					if false {
8970					} else {
8971						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
8972					}
8973				}
8974			}
8975			if yyr2 || yy2arr2 {
8976				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
8977				if yyq2[2] {
8978					yy10 := &x.ListMeta
8979					yym11 := z.EncBinary()
8980					_ = yym11
8981					if false {
8982					} else if z.HasExtensions() && z.EncExt(yy10) {
8983					} else {
8984						z.EncFallback(yy10)
8985					}
8986				} else {
8987					r.EncodeNil()
8988				}
8989			} else {
8990				if yyq2[2] {
8991					z.EncSendContainerState(codecSelfer_containerMapKey1234)
8992					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
8993					z.EncSendContainerState(codecSelfer_containerMapValue1234)
8994					yy12 := &x.ListMeta
8995					yym13 := z.EncBinary()
8996					_ = yym13
8997					if false {
8998					} else if z.HasExtensions() && z.EncExt(yy12) {
8999					} else {
9000						z.EncFallback(yy12)
9001					}
9002				}
9003			}
9004			if yyr2 || yy2arr2 {
9005				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
9006				if x.Items == nil {
9007					r.EncodeNil()
9008				} else {
9009					yym15 := z.EncBinary()
9010					_ = yym15
9011					if false {
9012					} else {
9013						h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e)
9014					}
9015				}
9016			} else {
9017				z.EncSendContainerState(codecSelfer_containerMapKey1234)
9018				r.EncodeString(codecSelferC_UTF81234, string("items"))
9019				z.EncSendContainerState(codecSelfer_containerMapValue1234)
9020				if x.Items == nil {
9021					r.EncodeNil()
9022				} else {
9023					yym16 := z.EncBinary()
9024					_ = yym16
9025					if false {
9026					} else {
9027						h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e)
9028					}
9029				}
9030			}
9031			if yyr2 || yy2arr2 {
9032				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
9033			} else {
9034				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
9035			}
9036		}
9037	}
9038}
9039
9040func (x *PersistentVolumeList) CodecDecodeSelf(d *codec1978.Decoder) {
9041	var h codecSelfer1234
9042	z, r := codec1978.GenHelperDecoder(d)
9043	_, _, _ = h, z, r
9044	yym1 := z.DecBinary()
9045	_ = yym1
9046	if false {
9047	} else if z.HasExtensions() && z.DecExt(x) {
9048	} else {
9049		yyct2 := r.ContainerType()
9050		if yyct2 == codecSelferValueTypeMap1234 {
9051			yyl2 := r.ReadMapStart()
9052			if yyl2 == 0 {
9053				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
9054			} else {
9055				x.codecDecodeSelfFromMap(yyl2, d)
9056			}
9057		} else if yyct2 == codecSelferValueTypeArray1234 {
9058			yyl2 := r.ReadArrayStart()
9059			if yyl2 == 0 {
9060				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
9061			} else {
9062				x.codecDecodeSelfFromArray(yyl2, d)
9063			}
9064		} else {
9065			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
9066		}
9067	}
9068}
9069
9070func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
9071	var h codecSelfer1234
9072	z, r := codec1978.GenHelperDecoder(d)
9073	_, _, _ = h, z, r
9074	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
9075	_ = yys3Slc
9076	var yyhl3 bool = l >= 0
9077	for yyj3 := 0; ; yyj3++ {
9078		if yyhl3 {
9079			if yyj3 >= l {
9080				break
9081			}
9082		} else {
9083			if r.CheckBreak() {
9084				break
9085			}
9086		}
9087		z.DecSendContainerState(codecSelfer_containerMapKey1234)
9088		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
9089		yys3 := string(yys3Slc)
9090		z.DecSendContainerState(codecSelfer_containerMapValue1234)
9091		switch yys3 {
9092		case "kind":
9093			if r.TryDecodeAsNil() {
9094				x.Kind = ""
9095			} else {
9096				yyv4 := &x.Kind
9097				yym5 := z.DecBinary()
9098				_ = yym5
9099				if false {
9100				} else {
9101					*((*string)(yyv4)) = r.DecodeString()
9102				}
9103			}
9104		case "apiVersion":
9105			if r.TryDecodeAsNil() {
9106				x.APIVersion = ""
9107			} else {
9108				yyv6 := &x.APIVersion
9109				yym7 := z.DecBinary()
9110				_ = yym7
9111				if false {
9112				} else {
9113					*((*string)(yyv6)) = r.DecodeString()
9114				}
9115			}
9116		case "metadata":
9117			if r.TryDecodeAsNil() {
9118				x.ListMeta = pkg2_v1.ListMeta{}
9119			} else {
9120				yyv8 := &x.ListMeta
9121				yym9 := z.DecBinary()
9122				_ = yym9
9123				if false {
9124				} else if z.HasExtensions() && z.DecExt(yyv8) {
9125				} else {
9126					z.DecFallback(yyv8, false)
9127				}
9128			}
9129		case "items":
9130			if r.TryDecodeAsNil() {
9131				x.Items = nil
9132			} else {
9133				yyv10 := &x.Items
9134				yym11 := z.DecBinary()
9135				_ = yym11
9136				if false {
9137				} else {
9138					h.decSlicePersistentVolume((*[]PersistentVolume)(yyv10), d)
9139				}
9140			}
9141		default:
9142			z.DecStructFieldNotFound(-1, yys3)
9143		} // end switch yys3
9144	} // end for yyj3
9145	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
9146}
9147
9148func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
9149	var h codecSelfer1234
9150	z, r := codec1978.GenHelperDecoder(d)
9151	_, _, _ = h, z, r
9152	var yyj12 int
9153	var yyb12 bool
9154	var yyhl12 bool = l >= 0
9155	yyj12++
9156	if yyhl12 {
9157		yyb12 = yyj12 > l
9158	} else {
9159		yyb12 = r.CheckBreak()
9160	}
9161	if yyb12 {
9162		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
9163		return
9164	}
9165	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
9166	if r.TryDecodeAsNil() {
9167		x.Kind = ""
9168	} else {
9169		yyv13 := &x.Kind
9170		yym14 := z.DecBinary()
9171		_ = yym14
9172		if false {
9173		} else {
9174			*((*string)(yyv13)) = r.DecodeString()
9175		}
9176	}
9177	yyj12++
9178	if yyhl12 {
9179		yyb12 = yyj12 > l
9180	} else {
9181		yyb12 = r.CheckBreak()
9182	}
9183	if yyb12 {
9184		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
9185		return
9186	}
9187	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
9188	if r.TryDecodeAsNil() {
9189		x.APIVersion = ""
9190	} else {
9191		yyv15 := &x.APIVersion
9192		yym16 := z.DecBinary()
9193		_ = yym16
9194		if false {
9195		} else {
9196			*((*string)(yyv15)) = r.DecodeString()
9197		}
9198	}
9199	yyj12++
9200	if yyhl12 {
9201		yyb12 = yyj12 > l
9202	} else {
9203		yyb12 = r.CheckBreak()
9204	}
9205	if yyb12 {
9206		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
9207		return
9208	}
9209	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
9210	if r.TryDecodeAsNil() {
9211		x.ListMeta = pkg2_v1.ListMeta{}
9212	} else {
9213		yyv17 := &x.ListMeta
9214		yym18 := z.DecBinary()
9215		_ = yym18
9216		if false {
9217		} else if z.HasExtensions() && z.DecExt(yyv17) {
9218		} else {
9219			z.DecFallback(yyv17, false)
9220		}
9221	}
9222	yyj12++
9223	if yyhl12 {
9224		yyb12 = yyj12 > l
9225	} else {
9226		yyb12 = r.CheckBreak()
9227	}
9228	if yyb12 {
9229		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
9230		return
9231	}
9232	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
9233	if r.TryDecodeAsNil() {
9234		x.Items = nil
9235	} else {
9236		yyv19 := &x.Items
9237		yym20 := z.DecBinary()
9238		_ = yym20
9239		if false {
9240		} else {
9241			h.decSlicePersistentVolume((*[]PersistentVolume)(yyv19), d)
9242		}
9243	}
9244	for {
9245		yyj12++
9246		if yyhl12 {
9247			yyb12 = yyj12 > l
9248		} else {
9249			yyb12 = r.CheckBreak()
9250		}
9251		if yyb12 {
9252			break
9253		}
9254		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
9255		z.DecStructFieldNotFound(yyj12-1, "")
9256	}
9257	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
9258}
9259
9260func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) {
9261	var h codecSelfer1234
9262	z, r := codec1978.GenHelperEncoder(e)
9263	_, _, _ = h, z, r
9264	if x == nil {
9265		r.EncodeNil()
9266	} else {
9267		yym1 := z.EncBinary()
9268		_ = yym1
9269		if false {
9270		} else if z.HasExtensions() && z.EncExt(x) {
9271		} else {
9272			yysep2 := !z.EncBinary()
9273			yy2arr2 := z.EncBasicHandle().StructToArray
9274			var yyq2 [5]bool
9275			_, _, _ = yysep2, yyq2, yy2arr2
9276			const yyr2 bool = false
9277			yyq2[0] = x.Kind != ""
9278			yyq2[1] = x.APIVersion != ""
9279			yyq2[2] = true
9280			yyq2[3] = true
9281			yyq2[4] = true
9282			var yynn2 int
9283			if yyr2 || yy2arr2 {
9284				r.EncodeArrayStart(5)
9285			} else {
9286				yynn2 = 0
9287				for _, b := range yyq2 {
9288					if b {
9289						yynn2++
9290					}
9291				}
9292				r.EncodeMapStart(yynn2)
9293				yynn2 = 0
9294			}
9295			if yyr2 || yy2arr2 {
9296				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
9297				if yyq2[0] {
9298					yym4 := z.EncBinary()
9299					_ = yym4
9300					if false {
9301					} else {
9302						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
9303					}
9304				} else {
9305					r.EncodeString(codecSelferC_UTF81234, "")
9306				}
9307			} else {
9308				if yyq2[0] {
9309					z.EncSendContainerState(codecSelfer_containerMapKey1234)
9310					r.EncodeString(codecSelferC_UTF81234, string("kind"))
9311					z.EncSendContainerState(codecSelfer_containerMapValue1234)
9312					yym5 := z.EncBinary()
9313					_ = yym5
9314					if false {
9315					} else {
9316						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
9317					}
9318				}
9319			}
9320			if yyr2 || yy2arr2 {
9321				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
9322				if yyq2[1] {
9323					yym7 := z.EncBinary()
9324					_ = yym7
9325					if false {
9326					} else {
9327						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
9328					}
9329				} else {
9330					r.EncodeString(codecSelferC_UTF81234, "")
9331				}
9332			} else {
9333				if yyq2[1] {
9334					z.EncSendContainerState(codecSelfer_containerMapKey1234)
9335					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
9336					z.EncSendContainerState(codecSelfer_containerMapValue1234)
9337					yym8 := z.EncBinary()
9338					_ = yym8
9339					if false {
9340					} else {
9341						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
9342					}
9343				}
9344			}
9345			if yyr2 || yy2arr2 {
9346				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
9347				if yyq2[2] {
9348					yy10 := &x.ObjectMeta
9349					yym11 := z.EncBinary()
9350					_ = yym11
9351					if false {
9352					} else if z.HasExtensions() && z.EncExt(yy10) {
9353					} else {
9354						z.EncFallback(yy10)
9355					}
9356				} else {
9357					r.EncodeNil()
9358				}
9359			} else {
9360				if yyq2[2] {
9361					z.EncSendContainerState(codecSelfer_containerMapKey1234)
9362					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
9363					z.EncSendContainerState(codecSelfer_containerMapValue1234)
9364					yy12 := &x.ObjectMeta
9365					yym13 := z.EncBinary()
9366					_ = yym13
9367					if false {
9368					} else if z.HasExtensions() && z.EncExt(yy12) {
9369					} else {
9370						z.EncFallback(yy12)
9371					}
9372				}
9373			}
9374			if yyr2 || yy2arr2 {
9375				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
9376				if yyq2[3] {
9377					yy15 := &x.Spec
9378					yy15.CodecEncodeSelf(e)
9379				} else {
9380					r.EncodeNil()
9381				}
9382			} else {
9383				if yyq2[3] {
9384					z.EncSendContainerState(codecSelfer_containerMapKey1234)
9385					r.EncodeString(codecSelferC_UTF81234, string("spec"))
9386					z.EncSendContainerState(codecSelfer_containerMapValue1234)
9387					yy17 := &x.Spec
9388					yy17.CodecEncodeSelf(e)
9389				}
9390			}
9391			if yyr2 || yy2arr2 {
9392				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
9393				if yyq2[4] {
9394					yy20 := &x.Status
9395					yy20.CodecEncodeSelf(e)
9396				} else {
9397					r.EncodeNil()
9398				}
9399			} else {
9400				if yyq2[4] {
9401					z.EncSendContainerState(codecSelfer_containerMapKey1234)
9402					r.EncodeString(codecSelferC_UTF81234, string("status"))
9403					z.EncSendContainerState(codecSelfer_containerMapValue1234)
9404					yy22 := &x.Status
9405					yy22.CodecEncodeSelf(e)
9406				}
9407			}
9408			if yyr2 || yy2arr2 {
9409				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
9410			} else {
9411				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
9412			}
9413		}
9414	}
9415}
9416
9417func (x *PersistentVolumeClaim) CodecDecodeSelf(d *codec1978.Decoder) {
9418	var h codecSelfer1234
9419	z, r := codec1978.GenHelperDecoder(d)
9420	_, _, _ = h, z, r
9421	yym1 := z.DecBinary()
9422	_ = yym1
9423	if false {
9424	} else if z.HasExtensions() && z.DecExt(x) {
9425	} else {
9426		yyct2 := r.ContainerType()
9427		if yyct2 == codecSelferValueTypeMap1234 {
9428			yyl2 := r.ReadMapStart()
9429			if yyl2 == 0 {
9430				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
9431			} else {
9432				x.codecDecodeSelfFromMap(yyl2, d)
9433			}
9434		} else if yyct2 == codecSelferValueTypeArray1234 {
9435			yyl2 := r.ReadArrayStart()
9436			if yyl2 == 0 {
9437				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
9438			} else {
9439				x.codecDecodeSelfFromArray(yyl2, d)
9440			}
9441		} else {
9442			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
9443		}
9444	}
9445}
9446
9447func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
9448	var h codecSelfer1234
9449	z, r := codec1978.GenHelperDecoder(d)
9450	_, _, _ = h, z, r
9451	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
9452	_ = yys3Slc
9453	var yyhl3 bool = l >= 0
9454	for yyj3 := 0; ; yyj3++ {
9455		if yyhl3 {
9456			if yyj3 >= l {
9457				break
9458			}
9459		} else {
9460			if r.CheckBreak() {
9461				break
9462			}
9463		}
9464		z.DecSendContainerState(codecSelfer_containerMapKey1234)
9465		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
9466		yys3 := string(yys3Slc)
9467		z.DecSendContainerState(codecSelfer_containerMapValue1234)
9468		switch yys3 {
9469		case "kind":
9470			if r.TryDecodeAsNil() {
9471				x.Kind = ""
9472			} else {
9473				yyv4 := &x.Kind
9474				yym5 := z.DecBinary()
9475				_ = yym5
9476				if false {
9477				} else {
9478					*((*string)(yyv4)) = r.DecodeString()
9479				}
9480			}
9481		case "apiVersion":
9482			if r.TryDecodeAsNil() {
9483				x.APIVersion = ""
9484			} else {
9485				yyv6 := &x.APIVersion
9486				yym7 := z.DecBinary()
9487				_ = yym7
9488				if false {
9489				} else {
9490					*((*string)(yyv6)) = r.DecodeString()
9491				}
9492			}
9493		case "metadata":
9494			if r.TryDecodeAsNil() {
9495				x.ObjectMeta = pkg2_v1.ObjectMeta{}
9496			} else {
9497				yyv8 := &x.ObjectMeta
9498				yym9 := z.DecBinary()
9499				_ = yym9
9500				if false {
9501				} else if z.HasExtensions() && z.DecExt(yyv8) {
9502				} else {
9503					z.DecFallback(yyv8, false)
9504				}
9505			}
9506		case "spec":
9507			if r.TryDecodeAsNil() {
9508				x.Spec = PersistentVolumeClaimSpec{}
9509			} else {
9510				yyv10 := &x.Spec
9511				yyv10.CodecDecodeSelf(d)
9512			}
9513		case "status":
9514			if r.TryDecodeAsNil() {
9515				x.Status = PersistentVolumeClaimStatus{}
9516			} else {
9517				yyv11 := &x.Status
9518				yyv11.CodecDecodeSelf(d)
9519			}
9520		default:
9521			z.DecStructFieldNotFound(-1, yys3)
9522		} // end switch yys3
9523	} // end for yyj3
9524	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
9525}
9526
9527func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
9528	var h codecSelfer1234
9529	z, r := codec1978.GenHelperDecoder(d)
9530	_, _, _ = h, z, r
9531	var yyj12 int
9532	var yyb12 bool
9533	var yyhl12 bool = l >= 0
9534	yyj12++
9535	if yyhl12 {
9536		yyb12 = yyj12 > l
9537	} else {
9538		yyb12 = r.CheckBreak()
9539	}
9540	if yyb12 {
9541		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
9542		return
9543	}
9544	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
9545	if r.TryDecodeAsNil() {
9546		x.Kind = ""
9547	} else {
9548		yyv13 := &x.Kind
9549		yym14 := z.DecBinary()
9550		_ = yym14
9551		if false {
9552		} else {
9553			*((*string)(yyv13)) = r.DecodeString()
9554		}
9555	}
9556	yyj12++
9557	if yyhl12 {
9558		yyb12 = yyj12 > l
9559	} else {
9560		yyb12 = r.CheckBreak()
9561	}
9562	if yyb12 {
9563		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
9564		return
9565	}
9566	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
9567	if r.TryDecodeAsNil() {
9568		x.APIVersion = ""
9569	} else {
9570		yyv15 := &x.APIVersion
9571		yym16 := z.DecBinary()
9572		_ = yym16
9573		if false {
9574		} else {
9575			*((*string)(yyv15)) = r.DecodeString()
9576		}
9577	}
9578	yyj12++
9579	if yyhl12 {
9580		yyb12 = yyj12 > l
9581	} else {
9582		yyb12 = r.CheckBreak()
9583	}
9584	if yyb12 {
9585		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
9586		return
9587	}
9588	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
9589	if r.TryDecodeAsNil() {
9590		x.ObjectMeta = pkg2_v1.ObjectMeta{}
9591	} else {
9592		yyv17 := &x.ObjectMeta
9593		yym18 := z.DecBinary()
9594		_ = yym18
9595		if false {
9596		} else if z.HasExtensions() && z.DecExt(yyv17) {
9597		} else {
9598			z.DecFallback(yyv17, false)
9599		}
9600	}
9601	yyj12++
9602	if yyhl12 {
9603		yyb12 = yyj12 > l
9604	} else {
9605		yyb12 = r.CheckBreak()
9606	}
9607	if yyb12 {
9608		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
9609		return
9610	}
9611	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
9612	if r.TryDecodeAsNil() {
9613		x.Spec = PersistentVolumeClaimSpec{}
9614	} else {
9615		yyv19 := &x.Spec
9616		yyv19.CodecDecodeSelf(d)
9617	}
9618	yyj12++
9619	if yyhl12 {
9620		yyb12 = yyj12 > l
9621	} else {
9622		yyb12 = r.CheckBreak()
9623	}
9624	if yyb12 {
9625		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
9626		return
9627	}
9628	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
9629	if r.TryDecodeAsNil() {
9630		x.Status = PersistentVolumeClaimStatus{}
9631	} else {
9632		yyv20 := &x.Status
9633		yyv20.CodecDecodeSelf(d)
9634	}
9635	for {
9636		yyj12++
9637		if yyhl12 {
9638			yyb12 = yyj12 > l
9639		} else {
9640			yyb12 = r.CheckBreak()
9641		}
9642		if yyb12 {
9643			break
9644		}
9645		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
9646		z.DecStructFieldNotFound(yyj12-1, "")
9647	}
9648	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
9649}
9650
9651func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) {
9652	var h codecSelfer1234
9653	z, r := codec1978.GenHelperEncoder(e)
9654	_, _, _ = h, z, r
9655	if x == nil {
9656		r.EncodeNil()
9657	} else {
9658		yym1 := z.EncBinary()
9659		_ = yym1
9660		if false {
9661		} else if z.HasExtensions() && z.EncExt(x) {
9662		} else {
9663			yysep2 := !z.EncBinary()
9664			yy2arr2 := z.EncBasicHandle().StructToArray
9665			var yyq2 [4]bool
9666			_, _, _ = yysep2, yyq2, yy2arr2
9667			const yyr2 bool = false
9668			yyq2[0] = x.Kind != ""
9669			yyq2[1] = x.APIVersion != ""
9670			yyq2[2] = true
9671			var yynn2 int
9672			if yyr2 || yy2arr2 {
9673				r.EncodeArrayStart(4)
9674			} else {
9675				yynn2 = 1
9676				for _, b := range yyq2 {
9677					if b {
9678						yynn2++
9679					}
9680				}
9681				r.EncodeMapStart(yynn2)
9682				yynn2 = 0
9683			}
9684			if yyr2 || yy2arr2 {
9685				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
9686				if yyq2[0] {
9687					yym4 := z.EncBinary()
9688					_ = yym4
9689					if false {
9690					} else {
9691						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
9692					}
9693				} else {
9694					r.EncodeString(codecSelferC_UTF81234, "")
9695				}
9696			} else {
9697				if yyq2[0] {
9698					z.EncSendContainerState(codecSelfer_containerMapKey1234)
9699					r.EncodeString(codecSelferC_UTF81234, string("kind"))
9700					z.EncSendContainerState(codecSelfer_containerMapValue1234)
9701					yym5 := z.EncBinary()
9702					_ = yym5
9703					if false {
9704					} else {
9705						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
9706					}
9707				}
9708			}
9709			if yyr2 || yy2arr2 {
9710				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
9711				if yyq2[1] {
9712					yym7 := z.EncBinary()
9713					_ = yym7
9714					if false {
9715					} else {
9716						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
9717					}
9718				} else {
9719					r.EncodeString(codecSelferC_UTF81234, "")
9720				}
9721			} else {
9722				if yyq2[1] {
9723					z.EncSendContainerState(codecSelfer_containerMapKey1234)
9724					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
9725					z.EncSendContainerState(codecSelfer_containerMapValue1234)
9726					yym8 := z.EncBinary()
9727					_ = yym8
9728					if false {
9729					} else {
9730						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
9731					}
9732				}
9733			}
9734			if yyr2 || yy2arr2 {
9735				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
9736				if yyq2[2] {
9737					yy10 := &x.ListMeta
9738					yym11 := z.EncBinary()
9739					_ = yym11
9740					if false {
9741					} else if z.HasExtensions() && z.EncExt(yy10) {
9742					} else {
9743						z.EncFallback(yy10)
9744					}
9745				} else {
9746					r.EncodeNil()
9747				}
9748			} else {
9749				if yyq2[2] {
9750					z.EncSendContainerState(codecSelfer_containerMapKey1234)
9751					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
9752					z.EncSendContainerState(codecSelfer_containerMapValue1234)
9753					yy12 := &x.ListMeta
9754					yym13 := z.EncBinary()
9755					_ = yym13
9756					if false {
9757					} else if z.HasExtensions() && z.EncExt(yy12) {
9758					} else {
9759						z.EncFallback(yy12)
9760					}
9761				}
9762			}
9763			if yyr2 || yy2arr2 {
9764				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
9765				if x.Items == nil {
9766					r.EncodeNil()
9767				} else {
9768					yym15 := z.EncBinary()
9769					_ = yym15
9770					if false {
9771					} else {
9772						h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e)
9773					}
9774				}
9775			} else {
9776				z.EncSendContainerState(codecSelfer_containerMapKey1234)
9777				r.EncodeString(codecSelferC_UTF81234, string("items"))
9778				z.EncSendContainerState(codecSelfer_containerMapValue1234)
9779				if x.Items == nil {
9780					r.EncodeNil()
9781				} else {
9782					yym16 := z.EncBinary()
9783					_ = yym16
9784					if false {
9785					} else {
9786						h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e)
9787					}
9788				}
9789			}
9790			if yyr2 || yy2arr2 {
9791				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
9792			} else {
9793				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
9794			}
9795		}
9796	}
9797}
9798
9799func (x *PersistentVolumeClaimList) CodecDecodeSelf(d *codec1978.Decoder) {
9800	var h codecSelfer1234
9801	z, r := codec1978.GenHelperDecoder(d)
9802	_, _, _ = h, z, r
9803	yym1 := z.DecBinary()
9804	_ = yym1
9805	if false {
9806	} else if z.HasExtensions() && z.DecExt(x) {
9807	} else {
9808		yyct2 := r.ContainerType()
9809		if yyct2 == codecSelferValueTypeMap1234 {
9810			yyl2 := r.ReadMapStart()
9811			if yyl2 == 0 {
9812				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
9813			} else {
9814				x.codecDecodeSelfFromMap(yyl2, d)
9815			}
9816		} else if yyct2 == codecSelferValueTypeArray1234 {
9817			yyl2 := r.ReadArrayStart()
9818			if yyl2 == 0 {
9819				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
9820			} else {
9821				x.codecDecodeSelfFromArray(yyl2, d)
9822			}
9823		} else {
9824			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
9825		}
9826	}
9827}
9828
9829func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
9830	var h codecSelfer1234
9831	z, r := codec1978.GenHelperDecoder(d)
9832	_, _, _ = h, z, r
9833	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
9834	_ = yys3Slc
9835	var yyhl3 bool = l >= 0
9836	for yyj3 := 0; ; yyj3++ {
9837		if yyhl3 {
9838			if yyj3 >= l {
9839				break
9840			}
9841		} else {
9842			if r.CheckBreak() {
9843				break
9844			}
9845		}
9846		z.DecSendContainerState(codecSelfer_containerMapKey1234)
9847		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
9848		yys3 := string(yys3Slc)
9849		z.DecSendContainerState(codecSelfer_containerMapValue1234)
9850		switch yys3 {
9851		case "kind":
9852			if r.TryDecodeAsNil() {
9853				x.Kind = ""
9854			} else {
9855				yyv4 := &x.Kind
9856				yym5 := z.DecBinary()
9857				_ = yym5
9858				if false {
9859				} else {
9860					*((*string)(yyv4)) = r.DecodeString()
9861				}
9862			}
9863		case "apiVersion":
9864			if r.TryDecodeAsNil() {
9865				x.APIVersion = ""
9866			} else {
9867				yyv6 := &x.APIVersion
9868				yym7 := z.DecBinary()
9869				_ = yym7
9870				if false {
9871				} else {
9872					*((*string)(yyv6)) = r.DecodeString()
9873				}
9874			}
9875		case "metadata":
9876			if r.TryDecodeAsNil() {
9877				x.ListMeta = pkg2_v1.ListMeta{}
9878			} else {
9879				yyv8 := &x.ListMeta
9880				yym9 := z.DecBinary()
9881				_ = yym9
9882				if false {
9883				} else if z.HasExtensions() && z.DecExt(yyv8) {
9884				} else {
9885					z.DecFallback(yyv8, false)
9886				}
9887			}
9888		case "items":
9889			if r.TryDecodeAsNil() {
9890				x.Items = nil
9891			} else {
9892				yyv10 := &x.Items
9893				yym11 := z.DecBinary()
9894				_ = yym11
9895				if false {
9896				} else {
9897					h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv10), d)
9898				}
9899			}
9900		default:
9901			z.DecStructFieldNotFound(-1, yys3)
9902		} // end switch yys3
9903	} // end for yyj3
9904	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
9905}
9906
9907func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
9908	var h codecSelfer1234
9909	z, r := codec1978.GenHelperDecoder(d)
9910	_, _, _ = h, z, r
9911	var yyj12 int
9912	var yyb12 bool
9913	var yyhl12 bool = l >= 0
9914	yyj12++
9915	if yyhl12 {
9916		yyb12 = yyj12 > l
9917	} else {
9918		yyb12 = r.CheckBreak()
9919	}
9920	if yyb12 {
9921		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
9922		return
9923	}
9924	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
9925	if r.TryDecodeAsNil() {
9926		x.Kind = ""
9927	} else {
9928		yyv13 := &x.Kind
9929		yym14 := z.DecBinary()
9930		_ = yym14
9931		if false {
9932		} else {
9933			*((*string)(yyv13)) = r.DecodeString()
9934		}
9935	}
9936	yyj12++
9937	if yyhl12 {
9938		yyb12 = yyj12 > l
9939	} else {
9940		yyb12 = r.CheckBreak()
9941	}
9942	if yyb12 {
9943		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
9944		return
9945	}
9946	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
9947	if r.TryDecodeAsNil() {
9948		x.APIVersion = ""
9949	} else {
9950		yyv15 := &x.APIVersion
9951		yym16 := z.DecBinary()
9952		_ = yym16
9953		if false {
9954		} else {
9955			*((*string)(yyv15)) = r.DecodeString()
9956		}
9957	}
9958	yyj12++
9959	if yyhl12 {
9960		yyb12 = yyj12 > l
9961	} else {
9962		yyb12 = r.CheckBreak()
9963	}
9964	if yyb12 {
9965		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
9966		return
9967	}
9968	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
9969	if r.TryDecodeAsNil() {
9970		x.ListMeta = pkg2_v1.ListMeta{}
9971	} else {
9972		yyv17 := &x.ListMeta
9973		yym18 := z.DecBinary()
9974		_ = yym18
9975		if false {
9976		} else if z.HasExtensions() && z.DecExt(yyv17) {
9977		} else {
9978			z.DecFallback(yyv17, false)
9979		}
9980	}
9981	yyj12++
9982	if yyhl12 {
9983		yyb12 = yyj12 > l
9984	} else {
9985		yyb12 = r.CheckBreak()
9986	}
9987	if yyb12 {
9988		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
9989		return
9990	}
9991	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
9992	if r.TryDecodeAsNil() {
9993		x.Items = nil
9994	} else {
9995		yyv19 := &x.Items
9996		yym20 := z.DecBinary()
9997		_ = yym20
9998		if false {
9999		} else {
10000			h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv19), d)
10001		}
10002	}
10003	for {
10004		yyj12++
10005		if yyhl12 {
10006			yyb12 = yyj12 > l
10007		} else {
10008			yyb12 = r.CheckBreak()
10009		}
10010		if yyb12 {
10011			break
10012		}
10013		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
10014		z.DecStructFieldNotFound(yyj12-1, "")
10015	}
10016	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
10017}
10018
10019func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) {
10020	var h codecSelfer1234
10021	z, r := codec1978.GenHelperEncoder(e)
10022	_, _, _ = h, z, r
10023	if x == nil {
10024		r.EncodeNil()
10025	} else {
10026		yym1 := z.EncBinary()
10027		_ = yym1
10028		if false {
10029		} else if z.HasExtensions() && z.EncExt(x) {
10030		} else {
10031			yysep2 := !z.EncBinary()
10032			yy2arr2 := z.EncBasicHandle().StructToArray
10033			var yyq2 [5]bool
10034			_, _, _ = yysep2, yyq2, yy2arr2
10035			const yyr2 bool = false
10036			yyq2[0] = len(x.AccessModes) != 0
10037			yyq2[1] = x.Selector != nil
10038			yyq2[2] = true
10039			yyq2[3] = x.VolumeName != ""
10040			yyq2[4] = x.StorageClassName != nil
10041			var yynn2 int
10042			if yyr2 || yy2arr2 {
10043				r.EncodeArrayStart(5)
10044			} else {
10045				yynn2 = 0
10046				for _, b := range yyq2 {
10047					if b {
10048						yynn2++
10049					}
10050				}
10051				r.EncodeMapStart(yynn2)
10052				yynn2 = 0
10053			}
10054			if yyr2 || yy2arr2 {
10055				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
10056				if yyq2[0] {
10057					if x.AccessModes == nil {
10058						r.EncodeNil()
10059					} else {
10060						yym4 := z.EncBinary()
10061						_ = yym4
10062						if false {
10063						} else {
10064							h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
10065						}
10066					}
10067				} else {
10068					r.EncodeNil()
10069				}
10070			} else {
10071				if yyq2[0] {
10072					z.EncSendContainerState(codecSelfer_containerMapKey1234)
10073					r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
10074					z.EncSendContainerState(codecSelfer_containerMapValue1234)
10075					if x.AccessModes == nil {
10076						r.EncodeNil()
10077					} else {
10078						yym5 := z.EncBinary()
10079						_ = yym5
10080						if false {
10081						} else {
10082							h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
10083						}
10084					}
10085				}
10086			}
10087			if yyr2 || yy2arr2 {
10088				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
10089				if yyq2[1] {
10090					if x.Selector == nil {
10091						r.EncodeNil()
10092					} else {
10093						yym7 := z.EncBinary()
10094						_ = yym7
10095						if false {
10096						} else if z.HasExtensions() && z.EncExt(x.Selector) {
10097						} else {
10098							z.EncFallback(x.Selector)
10099						}
10100					}
10101				} else {
10102					r.EncodeNil()
10103				}
10104			} else {
10105				if yyq2[1] {
10106					z.EncSendContainerState(codecSelfer_containerMapKey1234)
10107					r.EncodeString(codecSelferC_UTF81234, string("selector"))
10108					z.EncSendContainerState(codecSelfer_containerMapValue1234)
10109					if x.Selector == nil {
10110						r.EncodeNil()
10111					} else {
10112						yym8 := z.EncBinary()
10113						_ = yym8
10114						if false {
10115						} else if z.HasExtensions() && z.EncExt(x.Selector) {
10116						} else {
10117							z.EncFallback(x.Selector)
10118						}
10119					}
10120				}
10121			}
10122			if yyr2 || yy2arr2 {
10123				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
10124				if yyq2[2] {
10125					yy10 := &x.Resources
10126					yy10.CodecEncodeSelf(e)
10127				} else {
10128					r.EncodeNil()
10129				}
10130			} else {
10131				if yyq2[2] {
10132					z.EncSendContainerState(codecSelfer_containerMapKey1234)
10133					r.EncodeString(codecSelferC_UTF81234, string("resources"))
10134					z.EncSendContainerState(codecSelfer_containerMapValue1234)
10135					yy12 := &x.Resources
10136					yy12.CodecEncodeSelf(e)
10137				}
10138			}
10139			if yyr2 || yy2arr2 {
10140				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
10141				if yyq2[3] {
10142					yym15 := z.EncBinary()
10143					_ = yym15
10144					if false {
10145					} else {
10146						r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
10147					}
10148				} else {
10149					r.EncodeString(codecSelferC_UTF81234, "")
10150				}
10151			} else {
10152				if yyq2[3] {
10153					z.EncSendContainerState(codecSelfer_containerMapKey1234)
10154					r.EncodeString(codecSelferC_UTF81234, string("volumeName"))
10155					z.EncSendContainerState(codecSelfer_containerMapValue1234)
10156					yym16 := z.EncBinary()
10157					_ = yym16
10158					if false {
10159					} else {
10160						r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
10161					}
10162				}
10163			}
10164			if yyr2 || yy2arr2 {
10165				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
10166				if yyq2[4] {
10167					if x.StorageClassName == nil {
10168						r.EncodeNil()
10169					} else {
10170						yy18 := *x.StorageClassName
10171						yym19 := z.EncBinary()
10172						_ = yym19
10173						if false {
10174						} else {
10175							r.EncodeString(codecSelferC_UTF81234, string(yy18))
10176						}
10177					}
10178				} else {
10179					r.EncodeNil()
10180				}
10181			} else {
10182				if yyq2[4] {
10183					z.EncSendContainerState(codecSelfer_containerMapKey1234)
10184					r.EncodeString(codecSelferC_UTF81234, string("storageClassName"))
10185					z.EncSendContainerState(codecSelfer_containerMapValue1234)
10186					if x.StorageClassName == nil {
10187						r.EncodeNil()
10188					} else {
10189						yy20 := *x.StorageClassName
10190						yym21 := z.EncBinary()
10191						_ = yym21
10192						if false {
10193						} else {
10194							r.EncodeString(codecSelferC_UTF81234, string(yy20))
10195						}
10196					}
10197				}
10198			}
10199			if yyr2 || yy2arr2 {
10200				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
10201			} else {
10202				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
10203			}
10204		}
10205	}
10206}
10207
10208func (x *PersistentVolumeClaimSpec) CodecDecodeSelf(d *codec1978.Decoder) {
10209	var h codecSelfer1234
10210	z, r := codec1978.GenHelperDecoder(d)
10211	_, _, _ = h, z, r
10212	yym1 := z.DecBinary()
10213	_ = yym1
10214	if false {
10215	} else if z.HasExtensions() && z.DecExt(x) {
10216	} else {
10217		yyct2 := r.ContainerType()
10218		if yyct2 == codecSelferValueTypeMap1234 {
10219			yyl2 := r.ReadMapStart()
10220			if yyl2 == 0 {
10221				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
10222			} else {
10223				x.codecDecodeSelfFromMap(yyl2, d)
10224			}
10225		} else if yyct2 == codecSelferValueTypeArray1234 {
10226			yyl2 := r.ReadArrayStart()
10227			if yyl2 == 0 {
10228				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
10229			} else {
10230				x.codecDecodeSelfFromArray(yyl2, d)
10231			}
10232		} else {
10233			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
10234		}
10235	}
10236}
10237
10238func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
10239	var h codecSelfer1234
10240	z, r := codec1978.GenHelperDecoder(d)
10241	_, _, _ = h, z, r
10242	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
10243	_ = yys3Slc
10244	var yyhl3 bool = l >= 0
10245	for yyj3 := 0; ; yyj3++ {
10246		if yyhl3 {
10247			if yyj3 >= l {
10248				break
10249			}
10250		} else {
10251			if r.CheckBreak() {
10252				break
10253			}
10254		}
10255		z.DecSendContainerState(codecSelfer_containerMapKey1234)
10256		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
10257		yys3 := string(yys3Slc)
10258		z.DecSendContainerState(codecSelfer_containerMapValue1234)
10259		switch yys3 {
10260		case "accessModes":
10261			if r.TryDecodeAsNil() {
10262				x.AccessModes = nil
10263			} else {
10264				yyv4 := &x.AccessModes
10265				yym5 := z.DecBinary()
10266				_ = yym5
10267				if false {
10268				} else {
10269					h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv4), d)
10270				}
10271			}
10272		case "selector":
10273			if r.TryDecodeAsNil() {
10274				if x.Selector != nil {
10275					x.Selector = nil
10276				}
10277			} else {
10278				if x.Selector == nil {
10279					x.Selector = new(pkg2_v1.LabelSelector)
10280				}
10281				yym7 := z.DecBinary()
10282				_ = yym7
10283				if false {
10284				} else if z.HasExtensions() && z.DecExt(x.Selector) {
10285				} else {
10286					z.DecFallback(x.Selector, false)
10287				}
10288			}
10289		case "resources":
10290			if r.TryDecodeAsNil() {
10291				x.Resources = ResourceRequirements{}
10292			} else {
10293				yyv8 := &x.Resources
10294				yyv8.CodecDecodeSelf(d)
10295			}
10296		case "volumeName":
10297			if r.TryDecodeAsNil() {
10298				x.VolumeName = ""
10299			} else {
10300				yyv9 := &x.VolumeName
10301				yym10 := z.DecBinary()
10302				_ = yym10
10303				if false {
10304				} else {
10305					*((*string)(yyv9)) = r.DecodeString()
10306				}
10307			}
10308		case "storageClassName":
10309			if r.TryDecodeAsNil() {
10310				if x.StorageClassName != nil {
10311					x.StorageClassName = nil
10312				}
10313			} else {
10314				if x.StorageClassName == nil {
10315					x.StorageClassName = new(string)
10316				}
10317				yym12 := z.DecBinary()
10318				_ = yym12
10319				if false {
10320				} else {
10321					*((*string)(x.StorageClassName)) = r.DecodeString()
10322				}
10323			}
10324		default:
10325			z.DecStructFieldNotFound(-1, yys3)
10326		} // end switch yys3
10327	} // end for yyj3
10328	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
10329}
10330
10331func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
10332	var h codecSelfer1234
10333	z, r := codec1978.GenHelperDecoder(d)
10334	_, _, _ = h, z, r
10335	var yyj13 int
10336	var yyb13 bool
10337	var yyhl13 bool = l >= 0
10338	yyj13++
10339	if yyhl13 {
10340		yyb13 = yyj13 > l
10341	} else {
10342		yyb13 = r.CheckBreak()
10343	}
10344	if yyb13 {
10345		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
10346		return
10347	}
10348	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
10349	if r.TryDecodeAsNil() {
10350		x.AccessModes = nil
10351	} else {
10352		yyv14 := &x.AccessModes
10353		yym15 := z.DecBinary()
10354		_ = yym15
10355		if false {
10356		} else {
10357			h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv14), d)
10358		}
10359	}
10360	yyj13++
10361	if yyhl13 {
10362		yyb13 = yyj13 > l
10363	} else {
10364		yyb13 = r.CheckBreak()
10365	}
10366	if yyb13 {
10367		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
10368		return
10369	}
10370	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
10371	if r.TryDecodeAsNil() {
10372		if x.Selector != nil {
10373			x.Selector = nil
10374		}
10375	} else {
10376		if x.Selector == nil {
10377			x.Selector = new(pkg2_v1.LabelSelector)
10378		}
10379		yym17 := z.DecBinary()
10380		_ = yym17
10381		if false {
10382		} else if z.HasExtensions() && z.DecExt(x.Selector) {
10383		} else {
10384			z.DecFallback(x.Selector, false)
10385		}
10386	}
10387	yyj13++
10388	if yyhl13 {
10389		yyb13 = yyj13 > l
10390	} else {
10391		yyb13 = r.CheckBreak()
10392	}
10393	if yyb13 {
10394		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
10395		return
10396	}
10397	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
10398	if r.TryDecodeAsNil() {
10399		x.Resources = ResourceRequirements{}
10400	} else {
10401		yyv18 := &x.Resources
10402		yyv18.CodecDecodeSelf(d)
10403	}
10404	yyj13++
10405	if yyhl13 {
10406		yyb13 = yyj13 > l
10407	} else {
10408		yyb13 = r.CheckBreak()
10409	}
10410	if yyb13 {
10411		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
10412		return
10413	}
10414	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
10415	if r.TryDecodeAsNil() {
10416		x.VolumeName = ""
10417	} else {
10418		yyv19 := &x.VolumeName
10419		yym20 := z.DecBinary()
10420		_ = yym20
10421		if false {
10422		} else {
10423			*((*string)(yyv19)) = r.DecodeString()
10424		}
10425	}
10426	yyj13++
10427	if yyhl13 {
10428		yyb13 = yyj13 > l
10429	} else {
10430		yyb13 = r.CheckBreak()
10431	}
10432	if yyb13 {
10433		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
10434		return
10435	}
10436	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
10437	if r.TryDecodeAsNil() {
10438		if x.StorageClassName != nil {
10439			x.StorageClassName = nil
10440		}
10441	} else {
10442		if x.StorageClassName == nil {
10443			x.StorageClassName = new(string)
10444		}
10445		yym22 := z.DecBinary()
10446		_ = yym22
10447		if false {
10448		} else {
10449			*((*string)(x.StorageClassName)) = r.DecodeString()
10450		}
10451	}
10452	for {
10453		yyj13++
10454		if yyhl13 {
10455			yyb13 = yyj13 > l
10456		} else {
10457			yyb13 = r.CheckBreak()
10458		}
10459		if yyb13 {
10460			break
10461		}
10462		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
10463		z.DecStructFieldNotFound(yyj13-1, "")
10464	}
10465	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
10466}
10467
10468func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) {
10469	var h codecSelfer1234
10470	z, r := codec1978.GenHelperEncoder(e)
10471	_, _, _ = h, z, r
10472	if x == nil {
10473		r.EncodeNil()
10474	} else {
10475		yym1 := z.EncBinary()
10476		_ = yym1
10477		if false {
10478		} else if z.HasExtensions() && z.EncExt(x) {
10479		} else {
10480			yysep2 := !z.EncBinary()
10481			yy2arr2 := z.EncBasicHandle().StructToArray
10482			var yyq2 [3]bool
10483			_, _, _ = yysep2, yyq2, yy2arr2
10484			const yyr2 bool = false
10485			yyq2[0] = x.Phase != ""
10486			yyq2[1] = len(x.AccessModes) != 0
10487			yyq2[2] = len(x.Capacity) != 0
10488			var yynn2 int
10489			if yyr2 || yy2arr2 {
10490				r.EncodeArrayStart(3)
10491			} else {
10492				yynn2 = 0
10493				for _, b := range yyq2 {
10494					if b {
10495						yynn2++
10496					}
10497				}
10498				r.EncodeMapStart(yynn2)
10499				yynn2 = 0
10500			}
10501			if yyr2 || yy2arr2 {
10502				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
10503				if yyq2[0] {
10504					x.Phase.CodecEncodeSelf(e)
10505				} else {
10506					r.EncodeString(codecSelferC_UTF81234, "")
10507				}
10508			} else {
10509				if yyq2[0] {
10510					z.EncSendContainerState(codecSelfer_containerMapKey1234)
10511					r.EncodeString(codecSelferC_UTF81234, string("phase"))
10512					z.EncSendContainerState(codecSelfer_containerMapValue1234)
10513					x.Phase.CodecEncodeSelf(e)
10514				}
10515			}
10516			if yyr2 || yy2arr2 {
10517				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
10518				if yyq2[1] {
10519					if x.AccessModes == nil {
10520						r.EncodeNil()
10521					} else {
10522						yym7 := z.EncBinary()
10523						_ = yym7
10524						if false {
10525						} else {
10526							h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
10527						}
10528					}
10529				} else {
10530					r.EncodeNil()
10531				}
10532			} else {
10533				if yyq2[1] {
10534					z.EncSendContainerState(codecSelfer_containerMapKey1234)
10535					r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
10536					z.EncSendContainerState(codecSelfer_containerMapValue1234)
10537					if x.AccessModes == nil {
10538						r.EncodeNil()
10539					} else {
10540						yym8 := z.EncBinary()
10541						_ = yym8
10542						if false {
10543						} else {
10544							h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
10545						}
10546					}
10547				}
10548			}
10549			if yyr2 || yy2arr2 {
10550				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
10551				if yyq2[2] {
10552					if x.Capacity == nil {
10553						r.EncodeNil()
10554					} else {
10555						x.Capacity.CodecEncodeSelf(e)
10556					}
10557				} else {
10558					r.EncodeNil()
10559				}
10560			} else {
10561				if yyq2[2] {
10562					z.EncSendContainerState(codecSelfer_containerMapKey1234)
10563					r.EncodeString(codecSelferC_UTF81234, string("capacity"))
10564					z.EncSendContainerState(codecSelfer_containerMapValue1234)
10565					if x.Capacity == nil {
10566						r.EncodeNil()
10567					} else {
10568						x.Capacity.CodecEncodeSelf(e)
10569					}
10570				}
10571			}
10572			if yyr2 || yy2arr2 {
10573				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
10574			} else {
10575				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
10576			}
10577		}
10578	}
10579}
10580
10581func (x *PersistentVolumeClaimStatus) CodecDecodeSelf(d *codec1978.Decoder) {
10582	var h codecSelfer1234
10583	z, r := codec1978.GenHelperDecoder(d)
10584	_, _, _ = h, z, r
10585	yym1 := z.DecBinary()
10586	_ = yym1
10587	if false {
10588	} else if z.HasExtensions() && z.DecExt(x) {
10589	} else {
10590		yyct2 := r.ContainerType()
10591		if yyct2 == codecSelferValueTypeMap1234 {
10592			yyl2 := r.ReadMapStart()
10593			if yyl2 == 0 {
10594				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
10595			} else {
10596				x.codecDecodeSelfFromMap(yyl2, d)
10597			}
10598		} else if yyct2 == codecSelferValueTypeArray1234 {
10599			yyl2 := r.ReadArrayStart()
10600			if yyl2 == 0 {
10601				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
10602			} else {
10603				x.codecDecodeSelfFromArray(yyl2, d)
10604			}
10605		} else {
10606			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
10607		}
10608	}
10609}
10610
10611func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
10612	var h codecSelfer1234
10613	z, r := codec1978.GenHelperDecoder(d)
10614	_, _, _ = h, z, r
10615	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
10616	_ = yys3Slc
10617	var yyhl3 bool = l >= 0
10618	for yyj3 := 0; ; yyj3++ {
10619		if yyhl3 {
10620			if yyj3 >= l {
10621				break
10622			}
10623		} else {
10624			if r.CheckBreak() {
10625				break
10626			}
10627		}
10628		z.DecSendContainerState(codecSelfer_containerMapKey1234)
10629		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
10630		yys3 := string(yys3Slc)
10631		z.DecSendContainerState(codecSelfer_containerMapValue1234)
10632		switch yys3 {
10633		case "phase":
10634			if r.TryDecodeAsNil() {
10635				x.Phase = ""
10636			} else {
10637				yyv4 := &x.Phase
10638				yyv4.CodecDecodeSelf(d)
10639			}
10640		case "accessModes":
10641			if r.TryDecodeAsNil() {
10642				x.AccessModes = nil
10643			} else {
10644				yyv5 := &x.AccessModes
10645				yym6 := z.DecBinary()
10646				_ = yym6
10647				if false {
10648				} else {
10649					h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv5), d)
10650				}
10651			}
10652		case "capacity":
10653			if r.TryDecodeAsNil() {
10654				x.Capacity = nil
10655			} else {
10656				yyv7 := &x.Capacity
10657				yyv7.CodecDecodeSelf(d)
10658			}
10659		default:
10660			z.DecStructFieldNotFound(-1, yys3)
10661		} // end switch yys3
10662	} // end for yyj3
10663	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
10664}
10665
10666func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
10667	var h codecSelfer1234
10668	z, r := codec1978.GenHelperDecoder(d)
10669	_, _, _ = h, z, r
10670	var yyj8 int
10671	var yyb8 bool
10672	var yyhl8 bool = l >= 0
10673	yyj8++
10674	if yyhl8 {
10675		yyb8 = yyj8 > l
10676	} else {
10677		yyb8 = r.CheckBreak()
10678	}
10679	if yyb8 {
10680		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
10681		return
10682	}
10683	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
10684	if r.TryDecodeAsNil() {
10685		x.Phase = ""
10686	} else {
10687		yyv9 := &x.Phase
10688		yyv9.CodecDecodeSelf(d)
10689	}
10690	yyj8++
10691	if yyhl8 {
10692		yyb8 = yyj8 > l
10693	} else {
10694		yyb8 = r.CheckBreak()
10695	}
10696	if yyb8 {
10697		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
10698		return
10699	}
10700	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
10701	if r.TryDecodeAsNil() {
10702		x.AccessModes = nil
10703	} else {
10704		yyv10 := &x.AccessModes
10705		yym11 := z.DecBinary()
10706		_ = yym11
10707		if false {
10708		} else {
10709			h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv10), d)
10710		}
10711	}
10712	yyj8++
10713	if yyhl8 {
10714		yyb8 = yyj8 > l
10715	} else {
10716		yyb8 = r.CheckBreak()
10717	}
10718	if yyb8 {
10719		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
10720		return
10721	}
10722	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
10723	if r.TryDecodeAsNil() {
10724		x.Capacity = nil
10725	} else {
10726		yyv12 := &x.Capacity
10727		yyv12.CodecDecodeSelf(d)
10728	}
10729	for {
10730		yyj8++
10731		if yyhl8 {
10732			yyb8 = yyj8 > l
10733		} else {
10734			yyb8 = r.CheckBreak()
10735		}
10736		if yyb8 {
10737			break
10738		}
10739		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
10740		z.DecStructFieldNotFound(yyj8-1, "")
10741	}
10742	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
10743}
10744
10745func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) {
10746	var h codecSelfer1234
10747	z, r := codec1978.GenHelperEncoder(e)
10748	_, _, _ = h, z, r
10749	yym1 := z.EncBinary()
10750	_ = yym1
10751	if false {
10752	} else if z.HasExtensions() && z.EncExt(x) {
10753	} else {
10754		r.EncodeString(codecSelferC_UTF81234, string(x))
10755	}
10756}
10757
10758func (x *PersistentVolumeAccessMode) CodecDecodeSelf(d *codec1978.Decoder) {
10759	var h codecSelfer1234
10760	z, r := codec1978.GenHelperDecoder(d)
10761	_, _, _ = h, z, r
10762	yym1 := z.DecBinary()
10763	_ = yym1
10764	if false {
10765	} else if z.HasExtensions() && z.DecExt(x) {
10766	} else {
10767		*((*string)(x)) = r.DecodeString()
10768	}
10769}
10770
10771func (x PersistentVolumePhase) CodecEncodeSelf(e *codec1978.Encoder) {
10772	var h codecSelfer1234
10773	z, r := codec1978.GenHelperEncoder(e)
10774	_, _, _ = h, z, r
10775	yym1 := z.EncBinary()
10776	_ = yym1
10777	if false {
10778	} else if z.HasExtensions() && z.EncExt(x) {
10779	} else {
10780		r.EncodeString(codecSelferC_UTF81234, string(x))
10781	}
10782}
10783
10784func (x *PersistentVolumePhase) CodecDecodeSelf(d *codec1978.Decoder) {
10785	var h codecSelfer1234
10786	z, r := codec1978.GenHelperDecoder(d)
10787	_, _, _ = h, z, r
10788	yym1 := z.DecBinary()
10789	_ = yym1
10790	if false {
10791	} else if z.HasExtensions() && z.DecExt(x) {
10792	} else {
10793		*((*string)(x)) = r.DecodeString()
10794	}
10795}
10796
10797func (x PersistentVolumeClaimPhase) CodecEncodeSelf(e *codec1978.Encoder) {
10798	var h codecSelfer1234
10799	z, r := codec1978.GenHelperEncoder(e)
10800	_, _, _ = h, z, r
10801	yym1 := z.EncBinary()
10802	_ = yym1
10803	if false {
10804	} else if z.HasExtensions() && z.EncExt(x) {
10805	} else {
10806		r.EncodeString(codecSelferC_UTF81234, string(x))
10807	}
10808}
10809
10810func (x *PersistentVolumeClaimPhase) CodecDecodeSelf(d *codec1978.Decoder) {
10811	var h codecSelfer1234
10812	z, r := codec1978.GenHelperDecoder(d)
10813	_, _, _ = h, z, r
10814	yym1 := z.DecBinary()
10815	_ = yym1
10816	if false {
10817	} else if z.HasExtensions() && z.DecExt(x) {
10818	} else {
10819		*((*string)(x)) = r.DecodeString()
10820	}
10821}
10822
10823func (x *HostPathVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
10824	var h codecSelfer1234
10825	z, r := codec1978.GenHelperEncoder(e)
10826	_, _, _ = h, z, r
10827	if x == nil {
10828		r.EncodeNil()
10829	} else {
10830		yym1 := z.EncBinary()
10831		_ = yym1
10832		if false {
10833		} else if z.HasExtensions() && z.EncExt(x) {
10834		} else {
10835			yysep2 := !z.EncBinary()
10836			yy2arr2 := z.EncBasicHandle().StructToArray
10837			var yyq2 [1]bool
10838			_, _, _ = yysep2, yyq2, yy2arr2
10839			const yyr2 bool = false
10840			var yynn2 int
10841			if yyr2 || yy2arr2 {
10842				r.EncodeArrayStart(1)
10843			} else {
10844				yynn2 = 1
10845				for _, b := range yyq2 {
10846					if b {
10847						yynn2++
10848					}
10849				}
10850				r.EncodeMapStart(yynn2)
10851				yynn2 = 0
10852			}
10853			if yyr2 || yy2arr2 {
10854				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
10855				yym4 := z.EncBinary()
10856				_ = yym4
10857				if false {
10858				} else {
10859					r.EncodeString(codecSelferC_UTF81234, string(x.Path))
10860				}
10861			} else {
10862				z.EncSendContainerState(codecSelfer_containerMapKey1234)
10863				r.EncodeString(codecSelferC_UTF81234, string("path"))
10864				z.EncSendContainerState(codecSelfer_containerMapValue1234)
10865				yym5 := z.EncBinary()
10866				_ = yym5
10867				if false {
10868				} else {
10869					r.EncodeString(codecSelferC_UTF81234, string(x.Path))
10870				}
10871			}
10872			if yyr2 || yy2arr2 {
10873				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
10874			} else {
10875				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
10876			}
10877		}
10878	}
10879}
10880
10881func (x *HostPathVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
10882	var h codecSelfer1234
10883	z, r := codec1978.GenHelperDecoder(d)
10884	_, _, _ = h, z, r
10885	yym1 := z.DecBinary()
10886	_ = yym1
10887	if false {
10888	} else if z.HasExtensions() && z.DecExt(x) {
10889	} else {
10890		yyct2 := r.ContainerType()
10891		if yyct2 == codecSelferValueTypeMap1234 {
10892			yyl2 := r.ReadMapStart()
10893			if yyl2 == 0 {
10894				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
10895			} else {
10896				x.codecDecodeSelfFromMap(yyl2, d)
10897			}
10898		} else if yyct2 == codecSelferValueTypeArray1234 {
10899			yyl2 := r.ReadArrayStart()
10900			if yyl2 == 0 {
10901				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
10902			} else {
10903				x.codecDecodeSelfFromArray(yyl2, d)
10904			}
10905		} else {
10906			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
10907		}
10908	}
10909}
10910
10911func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
10912	var h codecSelfer1234
10913	z, r := codec1978.GenHelperDecoder(d)
10914	_, _, _ = h, z, r
10915	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
10916	_ = yys3Slc
10917	var yyhl3 bool = l >= 0
10918	for yyj3 := 0; ; yyj3++ {
10919		if yyhl3 {
10920			if yyj3 >= l {
10921				break
10922			}
10923		} else {
10924			if r.CheckBreak() {
10925				break
10926			}
10927		}
10928		z.DecSendContainerState(codecSelfer_containerMapKey1234)
10929		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
10930		yys3 := string(yys3Slc)
10931		z.DecSendContainerState(codecSelfer_containerMapValue1234)
10932		switch yys3 {
10933		case "path":
10934			if r.TryDecodeAsNil() {
10935				x.Path = ""
10936			} else {
10937				yyv4 := &x.Path
10938				yym5 := z.DecBinary()
10939				_ = yym5
10940				if false {
10941				} else {
10942					*((*string)(yyv4)) = r.DecodeString()
10943				}
10944			}
10945		default:
10946			z.DecStructFieldNotFound(-1, yys3)
10947		} // end switch yys3
10948	} // end for yyj3
10949	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
10950}
10951
10952func (x *HostPathVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
10953	var h codecSelfer1234
10954	z, r := codec1978.GenHelperDecoder(d)
10955	_, _, _ = h, z, r
10956	var yyj6 int
10957	var yyb6 bool
10958	var yyhl6 bool = l >= 0
10959	yyj6++
10960	if yyhl6 {
10961		yyb6 = yyj6 > l
10962	} else {
10963		yyb6 = r.CheckBreak()
10964	}
10965	if yyb6 {
10966		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
10967		return
10968	}
10969	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
10970	if r.TryDecodeAsNil() {
10971		x.Path = ""
10972	} else {
10973		yyv7 := &x.Path
10974		yym8 := z.DecBinary()
10975		_ = yym8
10976		if false {
10977		} else {
10978			*((*string)(yyv7)) = r.DecodeString()
10979		}
10980	}
10981	for {
10982		yyj6++
10983		if yyhl6 {
10984			yyb6 = yyj6 > l
10985		} else {
10986			yyb6 = r.CheckBreak()
10987		}
10988		if yyb6 {
10989			break
10990		}
10991		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
10992		z.DecStructFieldNotFound(yyj6-1, "")
10993	}
10994	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
10995}
10996
10997func (x *EmptyDirVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
10998	var h codecSelfer1234
10999	z, r := codec1978.GenHelperEncoder(e)
11000	_, _, _ = h, z, r
11001	if x == nil {
11002		r.EncodeNil()
11003	} else {
11004		yym1 := z.EncBinary()
11005		_ = yym1
11006		if false {
11007		} else if z.HasExtensions() && z.EncExt(x) {
11008		} else {
11009			yysep2 := !z.EncBinary()
11010			yy2arr2 := z.EncBasicHandle().StructToArray
11011			var yyq2 [1]bool
11012			_, _, _ = yysep2, yyq2, yy2arr2
11013			const yyr2 bool = false
11014			yyq2[0] = x.Medium != ""
11015			var yynn2 int
11016			if yyr2 || yy2arr2 {
11017				r.EncodeArrayStart(1)
11018			} else {
11019				yynn2 = 0
11020				for _, b := range yyq2 {
11021					if b {
11022						yynn2++
11023					}
11024				}
11025				r.EncodeMapStart(yynn2)
11026				yynn2 = 0
11027			}
11028			if yyr2 || yy2arr2 {
11029				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
11030				if yyq2[0] {
11031					x.Medium.CodecEncodeSelf(e)
11032				} else {
11033					r.EncodeString(codecSelferC_UTF81234, "")
11034				}
11035			} else {
11036				if yyq2[0] {
11037					z.EncSendContainerState(codecSelfer_containerMapKey1234)
11038					r.EncodeString(codecSelferC_UTF81234, string("medium"))
11039					z.EncSendContainerState(codecSelfer_containerMapValue1234)
11040					x.Medium.CodecEncodeSelf(e)
11041				}
11042			}
11043			if yyr2 || yy2arr2 {
11044				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
11045			} else {
11046				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
11047			}
11048		}
11049	}
11050}
11051
11052func (x *EmptyDirVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
11053	var h codecSelfer1234
11054	z, r := codec1978.GenHelperDecoder(d)
11055	_, _, _ = h, z, r
11056	yym1 := z.DecBinary()
11057	_ = yym1
11058	if false {
11059	} else if z.HasExtensions() && z.DecExt(x) {
11060	} else {
11061		yyct2 := r.ContainerType()
11062		if yyct2 == codecSelferValueTypeMap1234 {
11063			yyl2 := r.ReadMapStart()
11064			if yyl2 == 0 {
11065				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
11066			} else {
11067				x.codecDecodeSelfFromMap(yyl2, d)
11068			}
11069		} else if yyct2 == codecSelferValueTypeArray1234 {
11070			yyl2 := r.ReadArrayStart()
11071			if yyl2 == 0 {
11072				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
11073			} else {
11074				x.codecDecodeSelfFromArray(yyl2, d)
11075			}
11076		} else {
11077			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
11078		}
11079	}
11080}
11081
11082func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
11083	var h codecSelfer1234
11084	z, r := codec1978.GenHelperDecoder(d)
11085	_, _, _ = h, z, r
11086	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
11087	_ = yys3Slc
11088	var yyhl3 bool = l >= 0
11089	for yyj3 := 0; ; yyj3++ {
11090		if yyhl3 {
11091			if yyj3 >= l {
11092				break
11093			}
11094		} else {
11095			if r.CheckBreak() {
11096				break
11097			}
11098		}
11099		z.DecSendContainerState(codecSelfer_containerMapKey1234)
11100		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
11101		yys3 := string(yys3Slc)
11102		z.DecSendContainerState(codecSelfer_containerMapValue1234)
11103		switch yys3 {
11104		case "medium":
11105			if r.TryDecodeAsNil() {
11106				x.Medium = ""
11107			} else {
11108				yyv4 := &x.Medium
11109				yyv4.CodecDecodeSelf(d)
11110			}
11111		default:
11112			z.DecStructFieldNotFound(-1, yys3)
11113		} // end switch yys3
11114	} // end for yyj3
11115	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
11116}
11117
11118func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
11119	var h codecSelfer1234
11120	z, r := codec1978.GenHelperDecoder(d)
11121	_, _, _ = h, z, r
11122	var yyj5 int
11123	var yyb5 bool
11124	var yyhl5 bool = l >= 0
11125	yyj5++
11126	if yyhl5 {
11127		yyb5 = yyj5 > l
11128	} else {
11129		yyb5 = r.CheckBreak()
11130	}
11131	if yyb5 {
11132		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
11133		return
11134	}
11135	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
11136	if r.TryDecodeAsNil() {
11137		x.Medium = ""
11138	} else {
11139		yyv6 := &x.Medium
11140		yyv6.CodecDecodeSelf(d)
11141	}
11142	for {
11143		yyj5++
11144		if yyhl5 {
11145			yyb5 = yyj5 > l
11146		} else {
11147			yyb5 = r.CheckBreak()
11148		}
11149		if yyb5 {
11150			break
11151		}
11152		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
11153		z.DecStructFieldNotFound(yyj5-1, "")
11154	}
11155	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
11156}
11157
11158func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
11159	var h codecSelfer1234
11160	z, r := codec1978.GenHelperEncoder(e)
11161	_, _, _ = h, z, r
11162	if x == nil {
11163		r.EncodeNil()
11164	} else {
11165		yym1 := z.EncBinary()
11166		_ = yym1
11167		if false {
11168		} else if z.HasExtensions() && z.EncExt(x) {
11169		} else {
11170			yysep2 := !z.EncBinary()
11171			yy2arr2 := z.EncBasicHandle().StructToArray
11172			var yyq2 [3]bool
11173			_, _, _ = yysep2, yyq2, yy2arr2
11174			const yyr2 bool = false
11175			yyq2[2] = x.ReadOnly != false
11176			var yynn2 int
11177			if yyr2 || yy2arr2 {
11178				r.EncodeArrayStart(3)
11179			} else {
11180				yynn2 = 2
11181				for _, b := range yyq2 {
11182					if b {
11183						yynn2++
11184					}
11185				}
11186				r.EncodeMapStart(yynn2)
11187				yynn2 = 0
11188			}
11189			if yyr2 || yy2arr2 {
11190				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
11191				yym4 := z.EncBinary()
11192				_ = yym4
11193				if false {
11194				} else {
11195					r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName))
11196				}
11197			} else {
11198				z.EncSendContainerState(codecSelfer_containerMapKey1234)
11199				r.EncodeString(codecSelferC_UTF81234, string("endpoints"))
11200				z.EncSendContainerState(codecSelfer_containerMapValue1234)
11201				yym5 := z.EncBinary()
11202				_ = yym5
11203				if false {
11204				} else {
11205					r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName))
11206				}
11207			}
11208			if yyr2 || yy2arr2 {
11209				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
11210				yym7 := z.EncBinary()
11211				_ = yym7
11212				if false {
11213				} else {
11214					r.EncodeString(codecSelferC_UTF81234, string(x.Path))
11215				}
11216			} else {
11217				z.EncSendContainerState(codecSelfer_containerMapKey1234)
11218				r.EncodeString(codecSelferC_UTF81234, string("path"))
11219				z.EncSendContainerState(codecSelfer_containerMapValue1234)
11220				yym8 := z.EncBinary()
11221				_ = yym8
11222				if false {
11223				} else {
11224					r.EncodeString(codecSelferC_UTF81234, string(x.Path))
11225				}
11226			}
11227			if yyr2 || yy2arr2 {
11228				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
11229				if yyq2[2] {
11230					yym10 := z.EncBinary()
11231					_ = yym10
11232					if false {
11233					} else {
11234						r.EncodeBool(bool(x.ReadOnly))
11235					}
11236				} else {
11237					r.EncodeBool(false)
11238				}
11239			} else {
11240				if yyq2[2] {
11241					z.EncSendContainerState(codecSelfer_containerMapKey1234)
11242					r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
11243					z.EncSendContainerState(codecSelfer_containerMapValue1234)
11244					yym11 := z.EncBinary()
11245					_ = yym11
11246					if false {
11247					} else {
11248						r.EncodeBool(bool(x.ReadOnly))
11249					}
11250				}
11251			}
11252			if yyr2 || yy2arr2 {
11253				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
11254			} else {
11255				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
11256			}
11257		}
11258	}
11259}
11260
11261func (x *GlusterfsVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
11262	var h codecSelfer1234
11263	z, r := codec1978.GenHelperDecoder(d)
11264	_, _, _ = h, z, r
11265	yym1 := z.DecBinary()
11266	_ = yym1
11267	if false {
11268	} else if z.HasExtensions() && z.DecExt(x) {
11269	} else {
11270		yyct2 := r.ContainerType()
11271		if yyct2 == codecSelferValueTypeMap1234 {
11272			yyl2 := r.ReadMapStart()
11273			if yyl2 == 0 {
11274				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
11275			} else {
11276				x.codecDecodeSelfFromMap(yyl2, d)
11277			}
11278		} else if yyct2 == codecSelferValueTypeArray1234 {
11279			yyl2 := r.ReadArrayStart()
11280			if yyl2 == 0 {
11281				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
11282			} else {
11283				x.codecDecodeSelfFromArray(yyl2, d)
11284			}
11285		} else {
11286			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
11287		}
11288	}
11289}
11290
11291func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
11292	var h codecSelfer1234
11293	z, r := codec1978.GenHelperDecoder(d)
11294	_, _, _ = h, z, r
11295	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
11296	_ = yys3Slc
11297	var yyhl3 bool = l >= 0
11298	for yyj3 := 0; ; yyj3++ {
11299		if yyhl3 {
11300			if yyj3 >= l {
11301				break
11302			}
11303		} else {
11304			if r.CheckBreak() {
11305				break
11306			}
11307		}
11308		z.DecSendContainerState(codecSelfer_containerMapKey1234)
11309		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
11310		yys3 := string(yys3Slc)
11311		z.DecSendContainerState(codecSelfer_containerMapValue1234)
11312		switch yys3 {
11313		case "endpoints":
11314			if r.TryDecodeAsNil() {
11315				x.EndpointsName = ""
11316			} else {
11317				yyv4 := &x.EndpointsName
11318				yym5 := z.DecBinary()
11319				_ = yym5
11320				if false {
11321				} else {
11322					*((*string)(yyv4)) = r.DecodeString()
11323				}
11324			}
11325		case "path":
11326			if r.TryDecodeAsNil() {
11327				x.Path = ""
11328			} else {
11329				yyv6 := &x.Path
11330				yym7 := z.DecBinary()
11331				_ = yym7
11332				if false {
11333				} else {
11334					*((*string)(yyv6)) = r.DecodeString()
11335				}
11336			}
11337		case "readOnly":
11338			if r.TryDecodeAsNil() {
11339				x.ReadOnly = false
11340			} else {
11341				yyv8 := &x.ReadOnly
11342				yym9 := z.DecBinary()
11343				_ = yym9
11344				if false {
11345				} else {
11346					*((*bool)(yyv8)) = r.DecodeBool()
11347				}
11348			}
11349		default:
11350			z.DecStructFieldNotFound(-1, yys3)
11351		} // end switch yys3
11352	} // end for yyj3
11353	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
11354}
11355
11356func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
11357	var h codecSelfer1234
11358	z, r := codec1978.GenHelperDecoder(d)
11359	_, _, _ = h, z, r
11360	var yyj10 int
11361	var yyb10 bool
11362	var yyhl10 bool = l >= 0
11363	yyj10++
11364	if yyhl10 {
11365		yyb10 = yyj10 > l
11366	} else {
11367		yyb10 = r.CheckBreak()
11368	}
11369	if yyb10 {
11370		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
11371		return
11372	}
11373	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
11374	if r.TryDecodeAsNil() {
11375		x.EndpointsName = ""
11376	} else {
11377		yyv11 := &x.EndpointsName
11378		yym12 := z.DecBinary()
11379		_ = yym12
11380		if false {
11381		} else {
11382			*((*string)(yyv11)) = r.DecodeString()
11383		}
11384	}
11385	yyj10++
11386	if yyhl10 {
11387		yyb10 = yyj10 > l
11388	} else {
11389		yyb10 = r.CheckBreak()
11390	}
11391	if yyb10 {
11392		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
11393		return
11394	}
11395	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
11396	if r.TryDecodeAsNil() {
11397		x.Path = ""
11398	} else {
11399		yyv13 := &x.Path
11400		yym14 := z.DecBinary()
11401		_ = yym14
11402		if false {
11403		} else {
11404			*((*string)(yyv13)) = r.DecodeString()
11405		}
11406	}
11407	yyj10++
11408	if yyhl10 {
11409		yyb10 = yyj10 > l
11410	} else {
11411		yyb10 = r.CheckBreak()
11412	}
11413	if yyb10 {
11414		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
11415		return
11416	}
11417	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
11418	if r.TryDecodeAsNil() {
11419		x.ReadOnly = false
11420	} else {
11421		yyv15 := &x.ReadOnly
11422		yym16 := z.DecBinary()
11423		_ = yym16
11424		if false {
11425		} else {
11426			*((*bool)(yyv15)) = r.DecodeBool()
11427		}
11428	}
11429	for {
11430		yyj10++
11431		if yyhl10 {
11432			yyb10 = yyj10 > l
11433		} else {
11434			yyb10 = r.CheckBreak()
11435		}
11436		if yyb10 {
11437			break
11438		}
11439		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
11440		z.DecStructFieldNotFound(yyj10-1, "")
11441	}
11442	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
11443}
11444
11445func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
11446	var h codecSelfer1234
11447	z, r := codec1978.GenHelperEncoder(e)
11448	_, _, _ = h, z, r
11449	if x == nil {
11450		r.EncodeNil()
11451	} else {
11452		yym1 := z.EncBinary()
11453		_ = yym1
11454		if false {
11455		} else if z.HasExtensions() && z.EncExt(x) {
11456		} else {
11457			yysep2 := !z.EncBinary()
11458			yy2arr2 := z.EncBasicHandle().StructToArray
11459			var yyq2 [8]bool
11460			_, _, _ = yysep2, yyq2, yy2arr2
11461			const yyr2 bool = false
11462			yyq2[2] = x.FSType != ""
11463			yyq2[3] = x.RBDPool != ""
11464			yyq2[4] = x.RadosUser != ""
11465			yyq2[5] = x.Keyring != ""
11466			yyq2[6] = x.SecretRef != nil
11467			yyq2[7] = x.ReadOnly != false
11468			var yynn2 int
11469			if yyr2 || yy2arr2 {
11470				r.EncodeArrayStart(8)
11471			} else {
11472				yynn2 = 2
11473				for _, b := range yyq2 {
11474					if b {
11475						yynn2++
11476					}
11477				}
11478				r.EncodeMapStart(yynn2)
11479				yynn2 = 0
11480			}
11481			if yyr2 || yy2arr2 {
11482				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
11483				if x.CephMonitors == nil {
11484					r.EncodeNil()
11485				} else {
11486					yym4 := z.EncBinary()
11487					_ = yym4
11488					if false {
11489					} else {
11490						z.F.EncSliceStringV(x.CephMonitors, false, e)
11491					}
11492				}
11493			} else {
11494				z.EncSendContainerState(codecSelfer_containerMapKey1234)
11495				r.EncodeString(codecSelferC_UTF81234, string("monitors"))
11496				z.EncSendContainerState(codecSelfer_containerMapValue1234)
11497				if x.CephMonitors == nil {
11498					r.EncodeNil()
11499				} else {
11500					yym5 := z.EncBinary()
11501					_ = yym5
11502					if false {
11503					} else {
11504						z.F.EncSliceStringV(x.CephMonitors, false, e)
11505					}
11506				}
11507			}
11508			if yyr2 || yy2arr2 {
11509				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
11510				yym7 := z.EncBinary()
11511				_ = yym7
11512				if false {
11513				} else {
11514					r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage))
11515				}
11516			} else {
11517				z.EncSendContainerState(codecSelfer_containerMapKey1234)
11518				r.EncodeString(codecSelferC_UTF81234, string("image"))
11519				z.EncSendContainerState(codecSelfer_containerMapValue1234)
11520				yym8 := z.EncBinary()
11521				_ = yym8
11522				if false {
11523				} else {
11524					r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage))
11525				}
11526			}
11527			if yyr2 || yy2arr2 {
11528				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
11529				if yyq2[2] {
11530					yym10 := z.EncBinary()
11531					_ = yym10
11532					if false {
11533					} else {
11534						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
11535					}
11536				} else {
11537					r.EncodeString(codecSelferC_UTF81234, "")
11538				}
11539			} else {
11540				if yyq2[2] {
11541					z.EncSendContainerState(codecSelfer_containerMapKey1234)
11542					r.EncodeString(codecSelferC_UTF81234, string("fsType"))
11543					z.EncSendContainerState(codecSelfer_containerMapValue1234)
11544					yym11 := z.EncBinary()
11545					_ = yym11
11546					if false {
11547					} else {
11548						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
11549					}
11550				}
11551			}
11552			if yyr2 || yy2arr2 {
11553				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
11554				if yyq2[3] {
11555					yym13 := z.EncBinary()
11556					_ = yym13
11557					if false {
11558					} else {
11559						r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool))
11560					}
11561				} else {
11562					r.EncodeString(codecSelferC_UTF81234, "")
11563				}
11564			} else {
11565				if yyq2[3] {
11566					z.EncSendContainerState(codecSelfer_containerMapKey1234)
11567					r.EncodeString(codecSelferC_UTF81234, string("pool"))
11568					z.EncSendContainerState(codecSelfer_containerMapValue1234)
11569					yym14 := z.EncBinary()
11570					_ = yym14
11571					if false {
11572					} else {
11573						r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool))
11574					}
11575				}
11576			}
11577			if yyr2 || yy2arr2 {
11578				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
11579				if yyq2[4] {
11580					yym16 := z.EncBinary()
11581					_ = yym16
11582					if false {
11583					} else {
11584						r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser))
11585					}
11586				} else {
11587					r.EncodeString(codecSelferC_UTF81234, "")
11588				}
11589			} else {
11590				if yyq2[4] {
11591					z.EncSendContainerState(codecSelfer_containerMapKey1234)
11592					r.EncodeString(codecSelferC_UTF81234, string("user"))
11593					z.EncSendContainerState(codecSelfer_containerMapValue1234)
11594					yym17 := z.EncBinary()
11595					_ = yym17
11596					if false {
11597					} else {
11598						r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser))
11599					}
11600				}
11601			}
11602			if yyr2 || yy2arr2 {
11603				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
11604				if yyq2[5] {
11605					yym19 := z.EncBinary()
11606					_ = yym19
11607					if false {
11608					} else {
11609						r.EncodeString(codecSelferC_UTF81234, string(x.Keyring))
11610					}
11611				} else {
11612					r.EncodeString(codecSelferC_UTF81234, "")
11613				}
11614			} else {
11615				if yyq2[5] {
11616					z.EncSendContainerState(codecSelfer_containerMapKey1234)
11617					r.EncodeString(codecSelferC_UTF81234, string("keyring"))
11618					z.EncSendContainerState(codecSelfer_containerMapValue1234)
11619					yym20 := z.EncBinary()
11620					_ = yym20
11621					if false {
11622					} else {
11623						r.EncodeString(codecSelferC_UTF81234, string(x.Keyring))
11624					}
11625				}
11626			}
11627			if yyr2 || yy2arr2 {
11628				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
11629				if yyq2[6] {
11630					if x.SecretRef == nil {
11631						r.EncodeNil()
11632					} else {
11633						x.SecretRef.CodecEncodeSelf(e)
11634					}
11635				} else {
11636					r.EncodeNil()
11637				}
11638			} else {
11639				if yyq2[6] {
11640					z.EncSendContainerState(codecSelfer_containerMapKey1234)
11641					r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
11642					z.EncSendContainerState(codecSelfer_containerMapValue1234)
11643					if x.SecretRef == nil {
11644						r.EncodeNil()
11645					} else {
11646						x.SecretRef.CodecEncodeSelf(e)
11647					}
11648				}
11649			}
11650			if yyr2 || yy2arr2 {
11651				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
11652				if yyq2[7] {
11653					yym25 := z.EncBinary()
11654					_ = yym25
11655					if false {
11656					} else {
11657						r.EncodeBool(bool(x.ReadOnly))
11658					}
11659				} else {
11660					r.EncodeBool(false)
11661				}
11662			} else {
11663				if yyq2[7] {
11664					z.EncSendContainerState(codecSelfer_containerMapKey1234)
11665					r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
11666					z.EncSendContainerState(codecSelfer_containerMapValue1234)
11667					yym26 := z.EncBinary()
11668					_ = yym26
11669					if false {
11670					} else {
11671						r.EncodeBool(bool(x.ReadOnly))
11672					}
11673				}
11674			}
11675			if yyr2 || yy2arr2 {
11676				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
11677			} else {
11678				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
11679			}
11680		}
11681	}
11682}
11683
11684func (x *RBDVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
11685	var h codecSelfer1234
11686	z, r := codec1978.GenHelperDecoder(d)
11687	_, _, _ = h, z, r
11688	yym1 := z.DecBinary()
11689	_ = yym1
11690	if false {
11691	} else if z.HasExtensions() && z.DecExt(x) {
11692	} else {
11693		yyct2 := r.ContainerType()
11694		if yyct2 == codecSelferValueTypeMap1234 {
11695			yyl2 := r.ReadMapStart()
11696			if yyl2 == 0 {
11697				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
11698			} else {
11699				x.codecDecodeSelfFromMap(yyl2, d)
11700			}
11701		} else if yyct2 == codecSelferValueTypeArray1234 {
11702			yyl2 := r.ReadArrayStart()
11703			if yyl2 == 0 {
11704				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
11705			} else {
11706				x.codecDecodeSelfFromArray(yyl2, d)
11707			}
11708		} else {
11709			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
11710		}
11711	}
11712}
11713
11714func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
11715	var h codecSelfer1234
11716	z, r := codec1978.GenHelperDecoder(d)
11717	_, _, _ = h, z, r
11718	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
11719	_ = yys3Slc
11720	var yyhl3 bool = l >= 0
11721	for yyj3 := 0; ; yyj3++ {
11722		if yyhl3 {
11723			if yyj3 >= l {
11724				break
11725			}
11726		} else {
11727			if r.CheckBreak() {
11728				break
11729			}
11730		}
11731		z.DecSendContainerState(codecSelfer_containerMapKey1234)
11732		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
11733		yys3 := string(yys3Slc)
11734		z.DecSendContainerState(codecSelfer_containerMapValue1234)
11735		switch yys3 {
11736		case "monitors":
11737			if r.TryDecodeAsNil() {
11738				x.CephMonitors = nil
11739			} else {
11740				yyv4 := &x.CephMonitors
11741				yym5 := z.DecBinary()
11742				_ = yym5
11743				if false {
11744				} else {
11745					z.F.DecSliceStringX(yyv4, false, d)
11746				}
11747			}
11748		case "image":
11749			if r.TryDecodeAsNil() {
11750				x.RBDImage = ""
11751			} else {
11752				yyv6 := &x.RBDImage
11753				yym7 := z.DecBinary()
11754				_ = yym7
11755				if false {
11756				} else {
11757					*((*string)(yyv6)) = r.DecodeString()
11758				}
11759			}
11760		case "fsType":
11761			if r.TryDecodeAsNil() {
11762				x.FSType = ""
11763			} else {
11764				yyv8 := &x.FSType
11765				yym9 := z.DecBinary()
11766				_ = yym9
11767				if false {
11768				} else {
11769					*((*string)(yyv8)) = r.DecodeString()
11770				}
11771			}
11772		case "pool":
11773			if r.TryDecodeAsNil() {
11774				x.RBDPool = ""
11775			} else {
11776				yyv10 := &x.RBDPool
11777				yym11 := z.DecBinary()
11778				_ = yym11
11779				if false {
11780				} else {
11781					*((*string)(yyv10)) = r.DecodeString()
11782				}
11783			}
11784		case "user":
11785			if r.TryDecodeAsNil() {
11786				x.RadosUser = ""
11787			} else {
11788				yyv12 := &x.RadosUser
11789				yym13 := z.DecBinary()
11790				_ = yym13
11791				if false {
11792				} else {
11793					*((*string)(yyv12)) = r.DecodeString()
11794				}
11795			}
11796		case "keyring":
11797			if r.TryDecodeAsNil() {
11798				x.Keyring = ""
11799			} else {
11800				yyv14 := &x.Keyring
11801				yym15 := z.DecBinary()
11802				_ = yym15
11803				if false {
11804				} else {
11805					*((*string)(yyv14)) = r.DecodeString()
11806				}
11807			}
11808		case "secretRef":
11809			if r.TryDecodeAsNil() {
11810				if x.SecretRef != nil {
11811					x.SecretRef = nil
11812				}
11813			} else {
11814				if x.SecretRef == nil {
11815					x.SecretRef = new(LocalObjectReference)
11816				}
11817				x.SecretRef.CodecDecodeSelf(d)
11818			}
11819		case "readOnly":
11820			if r.TryDecodeAsNil() {
11821				x.ReadOnly = false
11822			} else {
11823				yyv17 := &x.ReadOnly
11824				yym18 := z.DecBinary()
11825				_ = yym18
11826				if false {
11827				} else {
11828					*((*bool)(yyv17)) = r.DecodeBool()
11829				}
11830			}
11831		default:
11832			z.DecStructFieldNotFound(-1, yys3)
11833		} // end switch yys3
11834	} // end for yyj3
11835	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
11836}
11837
11838func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
11839	var h codecSelfer1234
11840	z, r := codec1978.GenHelperDecoder(d)
11841	_, _, _ = h, z, r
11842	var yyj19 int
11843	var yyb19 bool
11844	var yyhl19 bool = l >= 0
11845	yyj19++
11846	if yyhl19 {
11847		yyb19 = yyj19 > l
11848	} else {
11849		yyb19 = r.CheckBreak()
11850	}
11851	if yyb19 {
11852		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
11853		return
11854	}
11855	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
11856	if r.TryDecodeAsNil() {
11857		x.CephMonitors = nil
11858	} else {
11859		yyv20 := &x.CephMonitors
11860		yym21 := z.DecBinary()
11861		_ = yym21
11862		if false {
11863		} else {
11864			z.F.DecSliceStringX(yyv20, false, d)
11865		}
11866	}
11867	yyj19++
11868	if yyhl19 {
11869		yyb19 = yyj19 > l
11870	} else {
11871		yyb19 = r.CheckBreak()
11872	}
11873	if yyb19 {
11874		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
11875		return
11876	}
11877	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
11878	if r.TryDecodeAsNil() {
11879		x.RBDImage = ""
11880	} else {
11881		yyv22 := &x.RBDImage
11882		yym23 := z.DecBinary()
11883		_ = yym23
11884		if false {
11885		} else {
11886			*((*string)(yyv22)) = r.DecodeString()
11887		}
11888	}
11889	yyj19++
11890	if yyhl19 {
11891		yyb19 = yyj19 > l
11892	} else {
11893		yyb19 = r.CheckBreak()
11894	}
11895	if yyb19 {
11896		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
11897		return
11898	}
11899	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
11900	if r.TryDecodeAsNil() {
11901		x.FSType = ""
11902	} else {
11903		yyv24 := &x.FSType
11904		yym25 := z.DecBinary()
11905		_ = yym25
11906		if false {
11907		} else {
11908			*((*string)(yyv24)) = r.DecodeString()
11909		}
11910	}
11911	yyj19++
11912	if yyhl19 {
11913		yyb19 = yyj19 > l
11914	} else {
11915		yyb19 = r.CheckBreak()
11916	}
11917	if yyb19 {
11918		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
11919		return
11920	}
11921	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
11922	if r.TryDecodeAsNil() {
11923		x.RBDPool = ""
11924	} else {
11925		yyv26 := &x.RBDPool
11926		yym27 := z.DecBinary()
11927		_ = yym27
11928		if false {
11929		} else {
11930			*((*string)(yyv26)) = r.DecodeString()
11931		}
11932	}
11933	yyj19++
11934	if yyhl19 {
11935		yyb19 = yyj19 > l
11936	} else {
11937		yyb19 = r.CheckBreak()
11938	}
11939	if yyb19 {
11940		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
11941		return
11942	}
11943	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
11944	if r.TryDecodeAsNil() {
11945		x.RadosUser = ""
11946	} else {
11947		yyv28 := &x.RadosUser
11948		yym29 := z.DecBinary()
11949		_ = yym29
11950		if false {
11951		} else {
11952			*((*string)(yyv28)) = r.DecodeString()
11953		}
11954	}
11955	yyj19++
11956	if yyhl19 {
11957		yyb19 = yyj19 > l
11958	} else {
11959		yyb19 = r.CheckBreak()
11960	}
11961	if yyb19 {
11962		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
11963		return
11964	}
11965	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
11966	if r.TryDecodeAsNil() {
11967		x.Keyring = ""
11968	} else {
11969		yyv30 := &x.Keyring
11970		yym31 := z.DecBinary()
11971		_ = yym31
11972		if false {
11973		} else {
11974			*((*string)(yyv30)) = r.DecodeString()
11975		}
11976	}
11977	yyj19++
11978	if yyhl19 {
11979		yyb19 = yyj19 > l
11980	} else {
11981		yyb19 = r.CheckBreak()
11982	}
11983	if yyb19 {
11984		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
11985		return
11986	}
11987	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
11988	if r.TryDecodeAsNil() {
11989		if x.SecretRef != nil {
11990			x.SecretRef = nil
11991		}
11992	} else {
11993		if x.SecretRef == nil {
11994			x.SecretRef = new(LocalObjectReference)
11995		}
11996		x.SecretRef.CodecDecodeSelf(d)
11997	}
11998	yyj19++
11999	if yyhl19 {
12000		yyb19 = yyj19 > l
12001	} else {
12002		yyb19 = r.CheckBreak()
12003	}
12004	if yyb19 {
12005		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
12006		return
12007	}
12008	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
12009	if r.TryDecodeAsNil() {
12010		x.ReadOnly = false
12011	} else {
12012		yyv33 := &x.ReadOnly
12013		yym34 := z.DecBinary()
12014		_ = yym34
12015		if false {
12016		} else {
12017			*((*bool)(yyv33)) = r.DecodeBool()
12018		}
12019	}
12020	for {
12021		yyj19++
12022		if yyhl19 {
12023			yyb19 = yyj19 > l
12024		} else {
12025			yyb19 = r.CheckBreak()
12026		}
12027		if yyb19 {
12028			break
12029		}
12030		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
12031		z.DecStructFieldNotFound(yyj19-1, "")
12032	}
12033	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
12034}
12035
12036func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
12037	var h codecSelfer1234
12038	z, r := codec1978.GenHelperEncoder(e)
12039	_, _, _ = h, z, r
12040	if x == nil {
12041		r.EncodeNil()
12042	} else {
12043		yym1 := z.EncBinary()
12044		_ = yym1
12045		if false {
12046		} else if z.HasExtensions() && z.EncExt(x) {
12047		} else {
12048			yysep2 := !z.EncBinary()
12049			yy2arr2 := z.EncBasicHandle().StructToArray
12050			var yyq2 [3]bool
12051			_, _, _ = yysep2, yyq2, yy2arr2
12052			const yyr2 bool = false
12053			yyq2[1] = x.FSType != ""
12054			yyq2[2] = x.ReadOnly != false
12055			var yynn2 int
12056			if yyr2 || yy2arr2 {
12057				r.EncodeArrayStart(3)
12058			} else {
12059				yynn2 = 1
12060				for _, b := range yyq2 {
12061					if b {
12062						yynn2++
12063					}
12064				}
12065				r.EncodeMapStart(yynn2)
12066				yynn2 = 0
12067			}
12068			if yyr2 || yy2arr2 {
12069				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
12070				yym4 := z.EncBinary()
12071				_ = yym4
12072				if false {
12073				} else {
12074					r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
12075				}
12076			} else {
12077				z.EncSendContainerState(codecSelfer_containerMapKey1234)
12078				r.EncodeString(codecSelferC_UTF81234, string("volumeID"))
12079				z.EncSendContainerState(codecSelfer_containerMapValue1234)
12080				yym5 := z.EncBinary()
12081				_ = yym5
12082				if false {
12083				} else {
12084					r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
12085				}
12086			}
12087			if yyr2 || yy2arr2 {
12088				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
12089				if yyq2[1] {
12090					yym7 := z.EncBinary()
12091					_ = yym7
12092					if false {
12093					} else {
12094						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
12095					}
12096				} else {
12097					r.EncodeString(codecSelferC_UTF81234, "")
12098				}
12099			} else {
12100				if yyq2[1] {
12101					z.EncSendContainerState(codecSelfer_containerMapKey1234)
12102					r.EncodeString(codecSelferC_UTF81234, string("fsType"))
12103					z.EncSendContainerState(codecSelfer_containerMapValue1234)
12104					yym8 := z.EncBinary()
12105					_ = yym8
12106					if false {
12107					} else {
12108						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
12109					}
12110				}
12111			}
12112			if yyr2 || yy2arr2 {
12113				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
12114				if yyq2[2] {
12115					yym10 := z.EncBinary()
12116					_ = yym10
12117					if false {
12118					} else {
12119						r.EncodeBool(bool(x.ReadOnly))
12120					}
12121				} else {
12122					r.EncodeBool(false)
12123				}
12124			} else {
12125				if yyq2[2] {
12126					z.EncSendContainerState(codecSelfer_containerMapKey1234)
12127					r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
12128					z.EncSendContainerState(codecSelfer_containerMapValue1234)
12129					yym11 := z.EncBinary()
12130					_ = yym11
12131					if false {
12132					} else {
12133						r.EncodeBool(bool(x.ReadOnly))
12134					}
12135				}
12136			}
12137			if yyr2 || yy2arr2 {
12138				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
12139			} else {
12140				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
12141			}
12142		}
12143	}
12144}
12145
12146func (x *CinderVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
12147	var h codecSelfer1234
12148	z, r := codec1978.GenHelperDecoder(d)
12149	_, _, _ = h, z, r
12150	yym1 := z.DecBinary()
12151	_ = yym1
12152	if false {
12153	} else if z.HasExtensions() && z.DecExt(x) {
12154	} else {
12155		yyct2 := r.ContainerType()
12156		if yyct2 == codecSelferValueTypeMap1234 {
12157			yyl2 := r.ReadMapStart()
12158			if yyl2 == 0 {
12159				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
12160			} else {
12161				x.codecDecodeSelfFromMap(yyl2, d)
12162			}
12163		} else if yyct2 == codecSelferValueTypeArray1234 {
12164			yyl2 := r.ReadArrayStart()
12165			if yyl2 == 0 {
12166				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
12167			} else {
12168				x.codecDecodeSelfFromArray(yyl2, d)
12169			}
12170		} else {
12171			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
12172		}
12173	}
12174}
12175
12176func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
12177	var h codecSelfer1234
12178	z, r := codec1978.GenHelperDecoder(d)
12179	_, _, _ = h, z, r
12180	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
12181	_ = yys3Slc
12182	var yyhl3 bool = l >= 0
12183	for yyj3 := 0; ; yyj3++ {
12184		if yyhl3 {
12185			if yyj3 >= l {
12186				break
12187			}
12188		} else {
12189			if r.CheckBreak() {
12190				break
12191			}
12192		}
12193		z.DecSendContainerState(codecSelfer_containerMapKey1234)
12194		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
12195		yys3 := string(yys3Slc)
12196		z.DecSendContainerState(codecSelfer_containerMapValue1234)
12197		switch yys3 {
12198		case "volumeID":
12199			if r.TryDecodeAsNil() {
12200				x.VolumeID = ""
12201			} else {
12202				yyv4 := &x.VolumeID
12203				yym5 := z.DecBinary()
12204				_ = yym5
12205				if false {
12206				} else {
12207					*((*string)(yyv4)) = r.DecodeString()
12208				}
12209			}
12210		case "fsType":
12211			if r.TryDecodeAsNil() {
12212				x.FSType = ""
12213			} else {
12214				yyv6 := &x.FSType
12215				yym7 := z.DecBinary()
12216				_ = yym7
12217				if false {
12218				} else {
12219					*((*string)(yyv6)) = r.DecodeString()
12220				}
12221			}
12222		case "readOnly":
12223			if r.TryDecodeAsNil() {
12224				x.ReadOnly = false
12225			} else {
12226				yyv8 := &x.ReadOnly
12227				yym9 := z.DecBinary()
12228				_ = yym9
12229				if false {
12230				} else {
12231					*((*bool)(yyv8)) = r.DecodeBool()
12232				}
12233			}
12234		default:
12235			z.DecStructFieldNotFound(-1, yys3)
12236		} // end switch yys3
12237	} // end for yyj3
12238	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
12239}
12240
12241func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
12242	var h codecSelfer1234
12243	z, r := codec1978.GenHelperDecoder(d)
12244	_, _, _ = h, z, r
12245	var yyj10 int
12246	var yyb10 bool
12247	var yyhl10 bool = l >= 0
12248	yyj10++
12249	if yyhl10 {
12250		yyb10 = yyj10 > l
12251	} else {
12252		yyb10 = r.CheckBreak()
12253	}
12254	if yyb10 {
12255		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
12256		return
12257	}
12258	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
12259	if r.TryDecodeAsNil() {
12260		x.VolumeID = ""
12261	} else {
12262		yyv11 := &x.VolumeID
12263		yym12 := z.DecBinary()
12264		_ = yym12
12265		if false {
12266		} else {
12267			*((*string)(yyv11)) = r.DecodeString()
12268		}
12269	}
12270	yyj10++
12271	if yyhl10 {
12272		yyb10 = yyj10 > l
12273	} else {
12274		yyb10 = r.CheckBreak()
12275	}
12276	if yyb10 {
12277		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
12278		return
12279	}
12280	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
12281	if r.TryDecodeAsNil() {
12282		x.FSType = ""
12283	} else {
12284		yyv13 := &x.FSType
12285		yym14 := z.DecBinary()
12286		_ = yym14
12287		if false {
12288		} else {
12289			*((*string)(yyv13)) = r.DecodeString()
12290		}
12291	}
12292	yyj10++
12293	if yyhl10 {
12294		yyb10 = yyj10 > l
12295	} else {
12296		yyb10 = r.CheckBreak()
12297	}
12298	if yyb10 {
12299		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
12300		return
12301	}
12302	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
12303	if r.TryDecodeAsNil() {
12304		x.ReadOnly = false
12305	} else {
12306		yyv15 := &x.ReadOnly
12307		yym16 := z.DecBinary()
12308		_ = yym16
12309		if false {
12310		} else {
12311			*((*bool)(yyv15)) = r.DecodeBool()
12312		}
12313	}
12314	for {
12315		yyj10++
12316		if yyhl10 {
12317			yyb10 = yyj10 > l
12318		} else {
12319			yyb10 = r.CheckBreak()
12320		}
12321		if yyb10 {
12322			break
12323		}
12324		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
12325		z.DecStructFieldNotFound(yyj10-1, "")
12326	}
12327	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
12328}
12329
12330func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
12331	var h codecSelfer1234
12332	z, r := codec1978.GenHelperEncoder(e)
12333	_, _, _ = h, z, r
12334	if x == nil {
12335		r.EncodeNil()
12336	} else {
12337		yym1 := z.EncBinary()
12338		_ = yym1
12339		if false {
12340		} else if z.HasExtensions() && z.EncExt(x) {
12341		} else {
12342			yysep2 := !z.EncBinary()
12343			yy2arr2 := z.EncBasicHandle().StructToArray
12344			var yyq2 [6]bool
12345			_, _, _ = yysep2, yyq2, yy2arr2
12346			const yyr2 bool = false
12347			yyq2[1] = x.Path != ""
12348			yyq2[2] = x.User != ""
12349			yyq2[3] = x.SecretFile != ""
12350			yyq2[4] = x.SecretRef != nil
12351			yyq2[5] = x.ReadOnly != false
12352			var yynn2 int
12353			if yyr2 || yy2arr2 {
12354				r.EncodeArrayStart(6)
12355			} else {
12356				yynn2 = 1
12357				for _, b := range yyq2 {
12358					if b {
12359						yynn2++
12360					}
12361				}
12362				r.EncodeMapStart(yynn2)
12363				yynn2 = 0
12364			}
12365			if yyr2 || yy2arr2 {
12366				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
12367				if x.Monitors == nil {
12368					r.EncodeNil()
12369				} else {
12370					yym4 := z.EncBinary()
12371					_ = yym4
12372					if false {
12373					} else {
12374						z.F.EncSliceStringV(x.Monitors, false, e)
12375					}
12376				}
12377			} else {
12378				z.EncSendContainerState(codecSelfer_containerMapKey1234)
12379				r.EncodeString(codecSelferC_UTF81234, string("monitors"))
12380				z.EncSendContainerState(codecSelfer_containerMapValue1234)
12381				if x.Monitors == nil {
12382					r.EncodeNil()
12383				} else {
12384					yym5 := z.EncBinary()
12385					_ = yym5
12386					if false {
12387					} else {
12388						z.F.EncSliceStringV(x.Monitors, false, e)
12389					}
12390				}
12391			}
12392			if yyr2 || yy2arr2 {
12393				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
12394				if yyq2[1] {
12395					yym7 := z.EncBinary()
12396					_ = yym7
12397					if false {
12398					} else {
12399						r.EncodeString(codecSelferC_UTF81234, string(x.Path))
12400					}
12401				} else {
12402					r.EncodeString(codecSelferC_UTF81234, "")
12403				}
12404			} else {
12405				if yyq2[1] {
12406					z.EncSendContainerState(codecSelfer_containerMapKey1234)
12407					r.EncodeString(codecSelferC_UTF81234, string("path"))
12408					z.EncSendContainerState(codecSelfer_containerMapValue1234)
12409					yym8 := z.EncBinary()
12410					_ = yym8
12411					if false {
12412					} else {
12413						r.EncodeString(codecSelferC_UTF81234, string(x.Path))
12414					}
12415				}
12416			}
12417			if yyr2 || yy2arr2 {
12418				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
12419				if yyq2[2] {
12420					yym10 := z.EncBinary()
12421					_ = yym10
12422					if false {
12423					} else {
12424						r.EncodeString(codecSelferC_UTF81234, string(x.User))
12425					}
12426				} else {
12427					r.EncodeString(codecSelferC_UTF81234, "")
12428				}
12429			} else {
12430				if yyq2[2] {
12431					z.EncSendContainerState(codecSelfer_containerMapKey1234)
12432					r.EncodeString(codecSelferC_UTF81234, string("user"))
12433					z.EncSendContainerState(codecSelfer_containerMapValue1234)
12434					yym11 := z.EncBinary()
12435					_ = yym11
12436					if false {
12437					} else {
12438						r.EncodeString(codecSelferC_UTF81234, string(x.User))
12439					}
12440				}
12441			}
12442			if yyr2 || yy2arr2 {
12443				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
12444				if yyq2[3] {
12445					yym13 := z.EncBinary()
12446					_ = yym13
12447					if false {
12448					} else {
12449						r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile))
12450					}
12451				} else {
12452					r.EncodeString(codecSelferC_UTF81234, "")
12453				}
12454			} else {
12455				if yyq2[3] {
12456					z.EncSendContainerState(codecSelfer_containerMapKey1234)
12457					r.EncodeString(codecSelferC_UTF81234, string("secretFile"))
12458					z.EncSendContainerState(codecSelfer_containerMapValue1234)
12459					yym14 := z.EncBinary()
12460					_ = yym14
12461					if false {
12462					} else {
12463						r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile))
12464					}
12465				}
12466			}
12467			if yyr2 || yy2arr2 {
12468				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
12469				if yyq2[4] {
12470					if x.SecretRef == nil {
12471						r.EncodeNil()
12472					} else {
12473						x.SecretRef.CodecEncodeSelf(e)
12474					}
12475				} else {
12476					r.EncodeNil()
12477				}
12478			} else {
12479				if yyq2[4] {
12480					z.EncSendContainerState(codecSelfer_containerMapKey1234)
12481					r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
12482					z.EncSendContainerState(codecSelfer_containerMapValue1234)
12483					if x.SecretRef == nil {
12484						r.EncodeNil()
12485					} else {
12486						x.SecretRef.CodecEncodeSelf(e)
12487					}
12488				}
12489			}
12490			if yyr2 || yy2arr2 {
12491				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
12492				if yyq2[5] {
12493					yym19 := z.EncBinary()
12494					_ = yym19
12495					if false {
12496					} else {
12497						r.EncodeBool(bool(x.ReadOnly))
12498					}
12499				} else {
12500					r.EncodeBool(false)
12501				}
12502			} else {
12503				if yyq2[5] {
12504					z.EncSendContainerState(codecSelfer_containerMapKey1234)
12505					r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
12506					z.EncSendContainerState(codecSelfer_containerMapValue1234)
12507					yym20 := z.EncBinary()
12508					_ = yym20
12509					if false {
12510					} else {
12511						r.EncodeBool(bool(x.ReadOnly))
12512					}
12513				}
12514			}
12515			if yyr2 || yy2arr2 {
12516				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
12517			} else {
12518				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
12519			}
12520		}
12521	}
12522}
12523
12524func (x *CephFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
12525	var h codecSelfer1234
12526	z, r := codec1978.GenHelperDecoder(d)
12527	_, _, _ = h, z, r
12528	yym1 := z.DecBinary()
12529	_ = yym1
12530	if false {
12531	} else if z.HasExtensions() && z.DecExt(x) {
12532	} else {
12533		yyct2 := r.ContainerType()
12534		if yyct2 == codecSelferValueTypeMap1234 {
12535			yyl2 := r.ReadMapStart()
12536			if yyl2 == 0 {
12537				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
12538			} else {
12539				x.codecDecodeSelfFromMap(yyl2, d)
12540			}
12541		} else if yyct2 == codecSelferValueTypeArray1234 {
12542			yyl2 := r.ReadArrayStart()
12543			if yyl2 == 0 {
12544				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
12545			} else {
12546				x.codecDecodeSelfFromArray(yyl2, d)
12547			}
12548		} else {
12549			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
12550		}
12551	}
12552}
12553
12554func (x *CephFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
12555	var h codecSelfer1234
12556	z, r := codec1978.GenHelperDecoder(d)
12557	_, _, _ = h, z, r
12558	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
12559	_ = yys3Slc
12560	var yyhl3 bool = l >= 0
12561	for yyj3 := 0; ; yyj3++ {
12562		if yyhl3 {
12563			if yyj3 >= l {
12564				break
12565			}
12566		} else {
12567			if r.CheckBreak() {
12568				break
12569			}
12570		}
12571		z.DecSendContainerState(codecSelfer_containerMapKey1234)
12572		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
12573		yys3 := string(yys3Slc)
12574		z.DecSendContainerState(codecSelfer_containerMapValue1234)
12575		switch yys3 {
12576		case "monitors":
12577			if r.TryDecodeAsNil() {
12578				x.Monitors = nil
12579			} else {
12580				yyv4 := &x.Monitors
12581				yym5 := z.DecBinary()
12582				_ = yym5
12583				if false {
12584				} else {
12585					z.F.DecSliceStringX(yyv4, false, d)
12586				}
12587			}
12588		case "path":
12589			if r.TryDecodeAsNil() {
12590				x.Path = ""
12591			} else {
12592				yyv6 := &x.Path
12593				yym7 := z.DecBinary()
12594				_ = yym7
12595				if false {
12596				} else {
12597					*((*string)(yyv6)) = r.DecodeString()
12598				}
12599			}
12600		case "user":
12601			if r.TryDecodeAsNil() {
12602				x.User = ""
12603			} else {
12604				yyv8 := &x.User
12605				yym9 := z.DecBinary()
12606				_ = yym9
12607				if false {
12608				} else {
12609					*((*string)(yyv8)) = r.DecodeString()
12610				}
12611			}
12612		case "secretFile":
12613			if r.TryDecodeAsNil() {
12614				x.SecretFile = ""
12615			} else {
12616				yyv10 := &x.SecretFile
12617				yym11 := z.DecBinary()
12618				_ = yym11
12619				if false {
12620				} else {
12621					*((*string)(yyv10)) = r.DecodeString()
12622				}
12623			}
12624		case "secretRef":
12625			if r.TryDecodeAsNil() {
12626				if x.SecretRef != nil {
12627					x.SecretRef = nil
12628				}
12629			} else {
12630				if x.SecretRef == nil {
12631					x.SecretRef = new(LocalObjectReference)
12632				}
12633				x.SecretRef.CodecDecodeSelf(d)
12634			}
12635		case "readOnly":
12636			if r.TryDecodeAsNil() {
12637				x.ReadOnly = false
12638			} else {
12639				yyv13 := &x.ReadOnly
12640				yym14 := z.DecBinary()
12641				_ = yym14
12642				if false {
12643				} else {
12644					*((*bool)(yyv13)) = r.DecodeBool()
12645				}
12646			}
12647		default:
12648			z.DecStructFieldNotFound(-1, yys3)
12649		} // end switch yys3
12650	} // end for yyj3
12651	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
12652}
12653
12654func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
12655	var h codecSelfer1234
12656	z, r := codec1978.GenHelperDecoder(d)
12657	_, _, _ = h, z, r
12658	var yyj15 int
12659	var yyb15 bool
12660	var yyhl15 bool = l >= 0
12661	yyj15++
12662	if yyhl15 {
12663		yyb15 = yyj15 > l
12664	} else {
12665		yyb15 = r.CheckBreak()
12666	}
12667	if yyb15 {
12668		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
12669		return
12670	}
12671	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
12672	if r.TryDecodeAsNil() {
12673		x.Monitors = nil
12674	} else {
12675		yyv16 := &x.Monitors
12676		yym17 := z.DecBinary()
12677		_ = yym17
12678		if false {
12679		} else {
12680			z.F.DecSliceStringX(yyv16, false, d)
12681		}
12682	}
12683	yyj15++
12684	if yyhl15 {
12685		yyb15 = yyj15 > l
12686	} else {
12687		yyb15 = r.CheckBreak()
12688	}
12689	if yyb15 {
12690		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
12691		return
12692	}
12693	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
12694	if r.TryDecodeAsNil() {
12695		x.Path = ""
12696	} else {
12697		yyv18 := &x.Path
12698		yym19 := z.DecBinary()
12699		_ = yym19
12700		if false {
12701		} else {
12702			*((*string)(yyv18)) = r.DecodeString()
12703		}
12704	}
12705	yyj15++
12706	if yyhl15 {
12707		yyb15 = yyj15 > l
12708	} else {
12709		yyb15 = r.CheckBreak()
12710	}
12711	if yyb15 {
12712		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
12713		return
12714	}
12715	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
12716	if r.TryDecodeAsNil() {
12717		x.User = ""
12718	} else {
12719		yyv20 := &x.User
12720		yym21 := z.DecBinary()
12721		_ = yym21
12722		if false {
12723		} else {
12724			*((*string)(yyv20)) = r.DecodeString()
12725		}
12726	}
12727	yyj15++
12728	if yyhl15 {
12729		yyb15 = yyj15 > l
12730	} else {
12731		yyb15 = r.CheckBreak()
12732	}
12733	if yyb15 {
12734		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
12735		return
12736	}
12737	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
12738	if r.TryDecodeAsNil() {
12739		x.SecretFile = ""
12740	} else {
12741		yyv22 := &x.SecretFile
12742		yym23 := z.DecBinary()
12743		_ = yym23
12744		if false {
12745		} else {
12746			*((*string)(yyv22)) = r.DecodeString()
12747		}
12748	}
12749	yyj15++
12750	if yyhl15 {
12751		yyb15 = yyj15 > l
12752	} else {
12753		yyb15 = r.CheckBreak()
12754	}
12755	if yyb15 {
12756		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
12757		return
12758	}
12759	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
12760	if r.TryDecodeAsNil() {
12761		if x.SecretRef != nil {
12762			x.SecretRef = nil
12763		}
12764	} else {
12765		if x.SecretRef == nil {
12766			x.SecretRef = new(LocalObjectReference)
12767		}
12768		x.SecretRef.CodecDecodeSelf(d)
12769	}
12770	yyj15++
12771	if yyhl15 {
12772		yyb15 = yyj15 > l
12773	} else {
12774		yyb15 = r.CheckBreak()
12775	}
12776	if yyb15 {
12777		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
12778		return
12779	}
12780	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
12781	if r.TryDecodeAsNil() {
12782		x.ReadOnly = false
12783	} else {
12784		yyv25 := &x.ReadOnly
12785		yym26 := z.DecBinary()
12786		_ = yym26
12787		if false {
12788		} else {
12789			*((*bool)(yyv25)) = r.DecodeBool()
12790		}
12791	}
12792	for {
12793		yyj15++
12794		if yyhl15 {
12795			yyb15 = yyj15 > l
12796		} else {
12797			yyb15 = r.CheckBreak()
12798		}
12799		if yyb15 {
12800			break
12801		}
12802		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
12803		z.DecStructFieldNotFound(yyj15-1, "")
12804	}
12805	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
12806}
12807
12808func (x *FlockerVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
12809	var h codecSelfer1234
12810	z, r := codec1978.GenHelperEncoder(e)
12811	_, _, _ = h, z, r
12812	if x == nil {
12813		r.EncodeNil()
12814	} else {
12815		yym1 := z.EncBinary()
12816		_ = yym1
12817		if false {
12818		} else if z.HasExtensions() && z.EncExt(x) {
12819		} else {
12820			yysep2 := !z.EncBinary()
12821			yy2arr2 := z.EncBasicHandle().StructToArray
12822			var yyq2 [2]bool
12823			_, _, _ = yysep2, yyq2, yy2arr2
12824			const yyr2 bool = false
12825			yyq2[0] = x.DatasetName != ""
12826			yyq2[1] = x.DatasetUUID != ""
12827			var yynn2 int
12828			if yyr2 || yy2arr2 {
12829				r.EncodeArrayStart(2)
12830			} else {
12831				yynn2 = 0
12832				for _, b := range yyq2 {
12833					if b {
12834						yynn2++
12835					}
12836				}
12837				r.EncodeMapStart(yynn2)
12838				yynn2 = 0
12839			}
12840			if yyr2 || yy2arr2 {
12841				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
12842				if yyq2[0] {
12843					yym4 := z.EncBinary()
12844					_ = yym4
12845					if false {
12846					} else {
12847						r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName))
12848					}
12849				} else {
12850					r.EncodeString(codecSelferC_UTF81234, "")
12851				}
12852			} else {
12853				if yyq2[0] {
12854					z.EncSendContainerState(codecSelfer_containerMapKey1234)
12855					r.EncodeString(codecSelferC_UTF81234, string("datasetName"))
12856					z.EncSendContainerState(codecSelfer_containerMapValue1234)
12857					yym5 := z.EncBinary()
12858					_ = yym5
12859					if false {
12860					} else {
12861						r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName))
12862					}
12863				}
12864			}
12865			if yyr2 || yy2arr2 {
12866				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
12867				if yyq2[1] {
12868					yym7 := z.EncBinary()
12869					_ = yym7
12870					if false {
12871					} else {
12872						r.EncodeString(codecSelferC_UTF81234, string(x.DatasetUUID))
12873					}
12874				} else {
12875					r.EncodeString(codecSelferC_UTF81234, "")
12876				}
12877			} else {
12878				if yyq2[1] {
12879					z.EncSendContainerState(codecSelfer_containerMapKey1234)
12880					r.EncodeString(codecSelferC_UTF81234, string("datasetUUID"))
12881					z.EncSendContainerState(codecSelfer_containerMapValue1234)
12882					yym8 := z.EncBinary()
12883					_ = yym8
12884					if false {
12885					} else {
12886						r.EncodeString(codecSelferC_UTF81234, string(x.DatasetUUID))
12887					}
12888				}
12889			}
12890			if yyr2 || yy2arr2 {
12891				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
12892			} else {
12893				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
12894			}
12895		}
12896	}
12897}
12898
12899func (x *FlockerVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
12900	var h codecSelfer1234
12901	z, r := codec1978.GenHelperDecoder(d)
12902	_, _, _ = h, z, r
12903	yym1 := z.DecBinary()
12904	_ = yym1
12905	if false {
12906	} else if z.HasExtensions() && z.DecExt(x) {
12907	} else {
12908		yyct2 := r.ContainerType()
12909		if yyct2 == codecSelferValueTypeMap1234 {
12910			yyl2 := r.ReadMapStart()
12911			if yyl2 == 0 {
12912				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
12913			} else {
12914				x.codecDecodeSelfFromMap(yyl2, d)
12915			}
12916		} else if yyct2 == codecSelferValueTypeArray1234 {
12917			yyl2 := r.ReadArrayStart()
12918			if yyl2 == 0 {
12919				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
12920			} else {
12921				x.codecDecodeSelfFromArray(yyl2, d)
12922			}
12923		} else {
12924			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
12925		}
12926	}
12927}
12928
12929func (x *FlockerVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
12930	var h codecSelfer1234
12931	z, r := codec1978.GenHelperDecoder(d)
12932	_, _, _ = h, z, r
12933	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
12934	_ = yys3Slc
12935	var yyhl3 bool = l >= 0
12936	for yyj3 := 0; ; yyj3++ {
12937		if yyhl3 {
12938			if yyj3 >= l {
12939				break
12940			}
12941		} else {
12942			if r.CheckBreak() {
12943				break
12944			}
12945		}
12946		z.DecSendContainerState(codecSelfer_containerMapKey1234)
12947		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
12948		yys3 := string(yys3Slc)
12949		z.DecSendContainerState(codecSelfer_containerMapValue1234)
12950		switch yys3 {
12951		case "datasetName":
12952			if r.TryDecodeAsNil() {
12953				x.DatasetName = ""
12954			} else {
12955				yyv4 := &x.DatasetName
12956				yym5 := z.DecBinary()
12957				_ = yym5
12958				if false {
12959				} else {
12960					*((*string)(yyv4)) = r.DecodeString()
12961				}
12962			}
12963		case "datasetUUID":
12964			if r.TryDecodeAsNil() {
12965				x.DatasetUUID = ""
12966			} else {
12967				yyv6 := &x.DatasetUUID
12968				yym7 := z.DecBinary()
12969				_ = yym7
12970				if false {
12971				} else {
12972					*((*string)(yyv6)) = r.DecodeString()
12973				}
12974			}
12975		default:
12976			z.DecStructFieldNotFound(-1, yys3)
12977		} // end switch yys3
12978	} // end for yyj3
12979	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
12980}
12981
12982func (x *FlockerVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
12983	var h codecSelfer1234
12984	z, r := codec1978.GenHelperDecoder(d)
12985	_, _, _ = h, z, r
12986	var yyj8 int
12987	var yyb8 bool
12988	var yyhl8 bool = l >= 0
12989	yyj8++
12990	if yyhl8 {
12991		yyb8 = yyj8 > l
12992	} else {
12993		yyb8 = r.CheckBreak()
12994	}
12995	if yyb8 {
12996		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
12997		return
12998	}
12999	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
13000	if r.TryDecodeAsNil() {
13001		x.DatasetName = ""
13002	} else {
13003		yyv9 := &x.DatasetName
13004		yym10 := z.DecBinary()
13005		_ = yym10
13006		if false {
13007		} else {
13008			*((*string)(yyv9)) = r.DecodeString()
13009		}
13010	}
13011	yyj8++
13012	if yyhl8 {
13013		yyb8 = yyj8 > l
13014	} else {
13015		yyb8 = r.CheckBreak()
13016	}
13017	if yyb8 {
13018		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
13019		return
13020	}
13021	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
13022	if r.TryDecodeAsNil() {
13023		x.DatasetUUID = ""
13024	} else {
13025		yyv11 := &x.DatasetUUID
13026		yym12 := z.DecBinary()
13027		_ = yym12
13028		if false {
13029		} else {
13030			*((*string)(yyv11)) = r.DecodeString()
13031		}
13032	}
13033	for {
13034		yyj8++
13035		if yyhl8 {
13036			yyb8 = yyj8 > l
13037		} else {
13038			yyb8 = r.CheckBreak()
13039		}
13040		if yyb8 {
13041			break
13042		}
13043		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
13044		z.DecStructFieldNotFound(yyj8-1, "")
13045	}
13046	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
13047}
13048
13049func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) {
13050	var h codecSelfer1234
13051	z, r := codec1978.GenHelperEncoder(e)
13052	_, _, _ = h, z, r
13053	yym1 := z.EncBinary()
13054	_ = yym1
13055	if false {
13056	} else if z.HasExtensions() && z.EncExt(x) {
13057	} else {
13058		r.EncodeString(codecSelferC_UTF81234, string(x))
13059	}
13060}
13061
13062func (x *StorageMedium) CodecDecodeSelf(d *codec1978.Decoder) {
13063	var h codecSelfer1234
13064	z, r := codec1978.GenHelperDecoder(d)
13065	_, _, _ = h, z, r
13066	yym1 := z.DecBinary()
13067	_ = yym1
13068	if false {
13069	} else if z.HasExtensions() && z.DecExt(x) {
13070	} else {
13071		*((*string)(x)) = r.DecodeString()
13072	}
13073}
13074
13075func (x Protocol) CodecEncodeSelf(e *codec1978.Encoder) {
13076	var h codecSelfer1234
13077	z, r := codec1978.GenHelperEncoder(e)
13078	_, _, _ = h, z, r
13079	yym1 := z.EncBinary()
13080	_ = yym1
13081	if false {
13082	} else if z.HasExtensions() && z.EncExt(x) {
13083	} else {
13084		r.EncodeString(codecSelferC_UTF81234, string(x))
13085	}
13086}
13087
13088func (x *Protocol) CodecDecodeSelf(d *codec1978.Decoder) {
13089	var h codecSelfer1234
13090	z, r := codec1978.GenHelperDecoder(d)
13091	_, _, _ = h, z, r
13092	yym1 := z.DecBinary()
13093	_ = yym1
13094	if false {
13095	} else if z.HasExtensions() && z.DecExt(x) {
13096	} else {
13097		*((*string)(x)) = r.DecodeString()
13098	}
13099}
13100
13101func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
13102	var h codecSelfer1234
13103	z, r := codec1978.GenHelperEncoder(e)
13104	_, _, _ = h, z, r
13105	if x == nil {
13106		r.EncodeNil()
13107	} else {
13108		yym1 := z.EncBinary()
13109		_ = yym1
13110		if false {
13111		} else if z.HasExtensions() && z.EncExt(x) {
13112		} else {
13113			yysep2 := !z.EncBinary()
13114			yy2arr2 := z.EncBasicHandle().StructToArray
13115			var yyq2 [4]bool
13116			_, _, _ = yysep2, yyq2, yy2arr2
13117			const yyr2 bool = false
13118			yyq2[1] = x.FSType != ""
13119			yyq2[2] = x.Partition != 0
13120			yyq2[3] = x.ReadOnly != false
13121			var yynn2 int
13122			if yyr2 || yy2arr2 {
13123				r.EncodeArrayStart(4)
13124			} else {
13125				yynn2 = 1
13126				for _, b := range yyq2 {
13127					if b {
13128						yynn2++
13129					}
13130				}
13131				r.EncodeMapStart(yynn2)
13132				yynn2 = 0
13133			}
13134			if yyr2 || yy2arr2 {
13135				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
13136				yym4 := z.EncBinary()
13137				_ = yym4
13138				if false {
13139				} else {
13140					r.EncodeString(codecSelferC_UTF81234, string(x.PDName))
13141				}
13142			} else {
13143				z.EncSendContainerState(codecSelfer_containerMapKey1234)
13144				r.EncodeString(codecSelferC_UTF81234, string("pdName"))
13145				z.EncSendContainerState(codecSelfer_containerMapValue1234)
13146				yym5 := z.EncBinary()
13147				_ = yym5
13148				if false {
13149				} else {
13150					r.EncodeString(codecSelferC_UTF81234, string(x.PDName))
13151				}
13152			}
13153			if yyr2 || yy2arr2 {
13154				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
13155				if yyq2[1] {
13156					yym7 := z.EncBinary()
13157					_ = yym7
13158					if false {
13159					} else {
13160						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
13161					}
13162				} else {
13163					r.EncodeString(codecSelferC_UTF81234, "")
13164				}
13165			} else {
13166				if yyq2[1] {
13167					z.EncSendContainerState(codecSelfer_containerMapKey1234)
13168					r.EncodeString(codecSelferC_UTF81234, string("fsType"))
13169					z.EncSendContainerState(codecSelfer_containerMapValue1234)
13170					yym8 := z.EncBinary()
13171					_ = yym8
13172					if false {
13173					} else {
13174						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
13175					}
13176				}
13177			}
13178			if yyr2 || yy2arr2 {
13179				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
13180				if yyq2[2] {
13181					yym10 := z.EncBinary()
13182					_ = yym10
13183					if false {
13184					} else {
13185						r.EncodeInt(int64(x.Partition))
13186					}
13187				} else {
13188					r.EncodeInt(0)
13189				}
13190			} else {
13191				if yyq2[2] {
13192					z.EncSendContainerState(codecSelfer_containerMapKey1234)
13193					r.EncodeString(codecSelferC_UTF81234, string("partition"))
13194					z.EncSendContainerState(codecSelfer_containerMapValue1234)
13195					yym11 := z.EncBinary()
13196					_ = yym11
13197					if false {
13198					} else {
13199						r.EncodeInt(int64(x.Partition))
13200					}
13201				}
13202			}
13203			if yyr2 || yy2arr2 {
13204				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
13205				if yyq2[3] {
13206					yym13 := z.EncBinary()
13207					_ = yym13
13208					if false {
13209					} else {
13210						r.EncodeBool(bool(x.ReadOnly))
13211					}
13212				} else {
13213					r.EncodeBool(false)
13214				}
13215			} else {
13216				if yyq2[3] {
13217					z.EncSendContainerState(codecSelfer_containerMapKey1234)
13218					r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
13219					z.EncSendContainerState(codecSelfer_containerMapValue1234)
13220					yym14 := z.EncBinary()
13221					_ = yym14
13222					if false {
13223					} else {
13224						r.EncodeBool(bool(x.ReadOnly))
13225					}
13226				}
13227			}
13228			if yyr2 || yy2arr2 {
13229				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
13230			} else {
13231				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
13232			}
13233		}
13234	}
13235}
13236
13237func (x *GCEPersistentDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
13238	var h codecSelfer1234
13239	z, r := codec1978.GenHelperDecoder(d)
13240	_, _, _ = h, z, r
13241	yym1 := z.DecBinary()
13242	_ = yym1
13243	if false {
13244	} else if z.HasExtensions() && z.DecExt(x) {
13245	} else {
13246		yyct2 := r.ContainerType()
13247		if yyct2 == codecSelferValueTypeMap1234 {
13248			yyl2 := r.ReadMapStart()
13249			if yyl2 == 0 {
13250				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
13251			} else {
13252				x.codecDecodeSelfFromMap(yyl2, d)
13253			}
13254		} else if yyct2 == codecSelferValueTypeArray1234 {
13255			yyl2 := r.ReadArrayStart()
13256			if yyl2 == 0 {
13257				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
13258			} else {
13259				x.codecDecodeSelfFromArray(yyl2, d)
13260			}
13261		} else {
13262			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
13263		}
13264	}
13265}
13266
13267func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
13268	var h codecSelfer1234
13269	z, r := codec1978.GenHelperDecoder(d)
13270	_, _, _ = h, z, r
13271	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
13272	_ = yys3Slc
13273	var yyhl3 bool = l >= 0
13274	for yyj3 := 0; ; yyj3++ {
13275		if yyhl3 {
13276			if yyj3 >= l {
13277				break
13278			}
13279		} else {
13280			if r.CheckBreak() {
13281				break
13282			}
13283		}
13284		z.DecSendContainerState(codecSelfer_containerMapKey1234)
13285		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
13286		yys3 := string(yys3Slc)
13287		z.DecSendContainerState(codecSelfer_containerMapValue1234)
13288		switch yys3 {
13289		case "pdName":
13290			if r.TryDecodeAsNil() {
13291				x.PDName = ""
13292			} else {
13293				yyv4 := &x.PDName
13294				yym5 := z.DecBinary()
13295				_ = yym5
13296				if false {
13297				} else {
13298					*((*string)(yyv4)) = r.DecodeString()
13299				}
13300			}
13301		case "fsType":
13302			if r.TryDecodeAsNil() {
13303				x.FSType = ""
13304			} else {
13305				yyv6 := &x.FSType
13306				yym7 := z.DecBinary()
13307				_ = yym7
13308				if false {
13309				} else {
13310					*((*string)(yyv6)) = r.DecodeString()
13311				}
13312			}
13313		case "partition":
13314			if r.TryDecodeAsNil() {
13315				x.Partition = 0
13316			} else {
13317				yyv8 := &x.Partition
13318				yym9 := z.DecBinary()
13319				_ = yym9
13320				if false {
13321				} else {
13322					*((*int32)(yyv8)) = int32(r.DecodeInt(32))
13323				}
13324			}
13325		case "readOnly":
13326			if r.TryDecodeAsNil() {
13327				x.ReadOnly = false
13328			} else {
13329				yyv10 := &x.ReadOnly
13330				yym11 := z.DecBinary()
13331				_ = yym11
13332				if false {
13333				} else {
13334					*((*bool)(yyv10)) = r.DecodeBool()
13335				}
13336			}
13337		default:
13338			z.DecStructFieldNotFound(-1, yys3)
13339		} // end switch yys3
13340	} // end for yyj3
13341	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
13342}
13343
13344func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
13345	var h codecSelfer1234
13346	z, r := codec1978.GenHelperDecoder(d)
13347	_, _, _ = h, z, r
13348	var yyj12 int
13349	var yyb12 bool
13350	var yyhl12 bool = l >= 0
13351	yyj12++
13352	if yyhl12 {
13353		yyb12 = yyj12 > l
13354	} else {
13355		yyb12 = r.CheckBreak()
13356	}
13357	if yyb12 {
13358		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
13359		return
13360	}
13361	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
13362	if r.TryDecodeAsNil() {
13363		x.PDName = ""
13364	} else {
13365		yyv13 := &x.PDName
13366		yym14 := z.DecBinary()
13367		_ = yym14
13368		if false {
13369		} else {
13370			*((*string)(yyv13)) = r.DecodeString()
13371		}
13372	}
13373	yyj12++
13374	if yyhl12 {
13375		yyb12 = yyj12 > l
13376	} else {
13377		yyb12 = r.CheckBreak()
13378	}
13379	if yyb12 {
13380		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
13381		return
13382	}
13383	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
13384	if r.TryDecodeAsNil() {
13385		x.FSType = ""
13386	} else {
13387		yyv15 := &x.FSType
13388		yym16 := z.DecBinary()
13389		_ = yym16
13390		if false {
13391		} else {
13392			*((*string)(yyv15)) = r.DecodeString()
13393		}
13394	}
13395	yyj12++
13396	if yyhl12 {
13397		yyb12 = yyj12 > l
13398	} else {
13399		yyb12 = r.CheckBreak()
13400	}
13401	if yyb12 {
13402		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
13403		return
13404	}
13405	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
13406	if r.TryDecodeAsNil() {
13407		x.Partition = 0
13408	} else {
13409		yyv17 := &x.Partition
13410		yym18 := z.DecBinary()
13411		_ = yym18
13412		if false {
13413		} else {
13414			*((*int32)(yyv17)) = int32(r.DecodeInt(32))
13415		}
13416	}
13417	yyj12++
13418	if yyhl12 {
13419		yyb12 = yyj12 > l
13420	} else {
13421		yyb12 = r.CheckBreak()
13422	}
13423	if yyb12 {
13424		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
13425		return
13426	}
13427	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
13428	if r.TryDecodeAsNil() {
13429		x.ReadOnly = false
13430	} else {
13431		yyv19 := &x.ReadOnly
13432		yym20 := z.DecBinary()
13433		_ = yym20
13434		if false {
13435		} else {
13436			*((*bool)(yyv19)) = r.DecodeBool()
13437		}
13438	}
13439	for {
13440		yyj12++
13441		if yyhl12 {
13442			yyb12 = yyj12 > l
13443		} else {
13444			yyb12 = r.CheckBreak()
13445		}
13446		if yyb12 {
13447			break
13448		}
13449		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
13450		z.DecStructFieldNotFound(yyj12-1, "")
13451	}
13452	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
13453}
13454
13455func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
13456	var h codecSelfer1234
13457	z, r := codec1978.GenHelperEncoder(e)
13458	_, _, _ = h, z, r
13459	if x == nil {
13460		r.EncodeNil()
13461	} else {
13462		yym1 := z.EncBinary()
13463		_ = yym1
13464		if false {
13465		} else if z.HasExtensions() && z.EncExt(x) {
13466		} else {
13467			yysep2 := !z.EncBinary()
13468			yy2arr2 := z.EncBasicHandle().StructToArray
13469			var yyq2 [5]bool
13470			_, _, _ = yysep2, yyq2, yy2arr2
13471			const yyr2 bool = false
13472			yyq2[2] = x.ReadOnly != false
13473			yyq2[3] = x.User != ""
13474			yyq2[4] = x.Group != ""
13475			var yynn2 int
13476			if yyr2 || yy2arr2 {
13477				r.EncodeArrayStart(5)
13478			} else {
13479				yynn2 = 2
13480				for _, b := range yyq2 {
13481					if b {
13482						yynn2++
13483					}
13484				}
13485				r.EncodeMapStart(yynn2)
13486				yynn2 = 0
13487			}
13488			if yyr2 || yy2arr2 {
13489				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
13490				yym4 := z.EncBinary()
13491				_ = yym4
13492				if false {
13493				} else {
13494					r.EncodeString(codecSelferC_UTF81234, string(x.Registry))
13495				}
13496			} else {
13497				z.EncSendContainerState(codecSelfer_containerMapKey1234)
13498				r.EncodeString(codecSelferC_UTF81234, string("registry"))
13499				z.EncSendContainerState(codecSelfer_containerMapValue1234)
13500				yym5 := z.EncBinary()
13501				_ = yym5
13502				if false {
13503				} else {
13504					r.EncodeString(codecSelferC_UTF81234, string(x.Registry))
13505				}
13506			}
13507			if yyr2 || yy2arr2 {
13508				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
13509				yym7 := z.EncBinary()
13510				_ = yym7
13511				if false {
13512				} else {
13513					r.EncodeString(codecSelferC_UTF81234, string(x.Volume))
13514				}
13515			} else {
13516				z.EncSendContainerState(codecSelfer_containerMapKey1234)
13517				r.EncodeString(codecSelferC_UTF81234, string("volume"))
13518				z.EncSendContainerState(codecSelfer_containerMapValue1234)
13519				yym8 := z.EncBinary()
13520				_ = yym8
13521				if false {
13522				} else {
13523					r.EncodeString(codecSelferC_UTF81234, string(x.Volume))
13524				}
13525			}
13526			if yyr2 || yy2arr2 {
13527				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
13528				if yyq2[2] {
13529					yym10 := z.EncBinary()
13530					_ = yym10
13531					if false {
13532					} else {
13533						r.EncodeBool(bool(x.ReadOnly))
13534					}
13535				} else {
13536					r.EncodeBool(false)
13537				}
13538			} else {
13539				if yyq2[2] {
13540					z.EncSendContainerState(codecSelfer_containerMapKey1234)
13541					r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
13542					z.EncSendContainerState(codecSelfer_containerMapValue1234)
13543					yym11 := z.EncBinary()
13544					_ = yym11
13545					if false {
13546					} else {
13547						r.EncodeBool(bool(x.ReadOnly))
13548					}
13549				}
13550			}
13551			if yyr2 || yy2arr2 {
13552				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
13553				if yyq2[3] {
13554					yym13 := z.EncBinary()
13555					_ = yym13
13556					if false {
13557					} else {
13558						r.EncodeString(codecSelferC_UTF81234, string(x.User))
13559					}
13560				} else {
13561					r.EncodeString(codecSelferC_UTF81234, "")
13562				}
13563			} else {
13564				if yyq2[3] {
13565					z.EncSendContainerState(codecSelfer_containerMapKey1234)
13566					r.EncodeString(codecSelferC_UTF81234, string("user"))
13567					z.EncSendContainerState(codecSelfer_containerMapValue1234)
13568					yym14 := z.EncBinary()
13569					_ = yym14
13570					if false {
13571					} else {
13572						r.EncodeString(codecSelferC_UTF81234, string(x.User))
13573					}
13574				}
13575			}
13576			if yyr2 || yy2arr2 {
13577				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
13578				if yyq2[4] {
13579					yym16 := z.EncBinary()
13580					_ = yym16
13581					if false {
13582					} else {
13583						r.EncodeString(codecSelferC_UTF81234, string(x.Group))
13584					}
13585				} else {
13586					r.EncodeString(codecSelferC_UTF81234, "")
13587				}
13588			} else {
13589				if yyq2[4] {
13590					z.EncSendContainerState(codecSelfer_containerMapKey1234)
13591					r.EncodeString(codecSelferC_UTF81234, string("group"))
13592					z.EncSendContainerState(codecSelfer_containerMapValue1234)
13593					yym17 := z.EncBinary()
13594					_ = yym17
13595					if false {
13596					} else {
13597						r.EncodeString(codecSelferC_UTF81234, string(x.Group))
13598					}
13599				}
13600			}
13601			if yyr2 || yy2arr2 {
13602				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
13603			} else {
13604				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
13605			}
13606		}
13607	}
13608}
13609
13610func (x *QuobyteVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
13611	var h codecSelfer1234
13612	z, r := codec1978.GenHelperDecoder(d)
13613	_, _, _ = h, z, r
13614	yym1 := z.DecBinary()
13615	_ = yym1
13616	if false {
13617	} else if z.HasExtensions() && z.DecExt(x) {
13618	} else {
13619		yyct2 := r.ContainerType()
13620		if yyct2 == codecSelferValueTypeMap1234 {
13621			yyl2 := r.ReadMapStart()
13622			if yyl2 == 0 {
13623				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
13624			} else {
13625				x.codecDecodeSelfFromMap(yyl2, d)
13626			}
13627		} else if yyct2 == codecSelferValueTypeArray1234 {
13628			yyl2 := r.ReadArrayStart()
13629			if yyl2 == 0 {
13630				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
13631			} else {
13632				x.codecDecodeSelfFromArray(yyl2, d)
13633			}
13634		} else {
13635			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
13636		}
13637	}
13638}
13639
13640func (x *QuobyteVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
13641	var h codecSelfer1234
13642	z, r := codec1978.GenHelperDecoder(d)
13643	_, _, _ = h, z, r
13644	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
13645	_ = yys3Slc
13646	var yyhl3 bool = l >= 0
13647	for yyj3 := 0; ; yyj3++ {
13648		if yyhl3 {
13649			if yyj3 >= l {
13650				break
13651			}
13652		} else {
13653			if r.CheckBreak() {
13654				break
13655			}
13656		}
13657		z.DecSendContainerState(codecSelfer_containerMapKey1234)
13658		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
13659		yys3 := string(yys3Slc)
13660		z.DecSendContainerState(codecSelfer_containerMapValue1234)
13661		switch yys3 {
13662		case "registry":
13663			if r.TryDecodeAsNil() {
13664				x.Registry = ""
13665			} else {
13666				yyv4 := &x.Registry
13667				yym5 := z.DecBinary()
13668				_ = yym5
13669				if false {
13670				} else {
13671					*((*string)(yyv4)) = r.DecodeString()
13672				}
13673			}
13674		case "volume":
13675			if r.TryDecodeAsNil() {
13676				x.Volume = ""
13677			} else {
13678				yyv6 := &x.Volume
13679				yym7 := z.DecBinary()
13680				_ = yym7
13681				if false {
13682				} else {
13683					*((*string)(yyv6)) = r.DecodeString()
13684				}
13685			}
13686		case "readOnly":
13687			if r.TryDecodeAsNil() {
13688				x.ReadOnly = false
13689			} else {
13690				yyv8 := &x.ReadOnly
13691				yym9 := z.DecBinary()
13692				_ = yym9
13693				if false {
13694				} else {
13695					*((*bool)(yyv8)) = r.DecodeBool()
13696				}
13697			}
13698		case "user":
13699			if r.TryDecodeAsNil() {
13700				x.User = ""
13701			} else {
13702				yyv10 := &x.User
13703				yym11 := z.DecBinary()
13704				_ = yym11
13705				if false {
13706				} else {
13707					*((*string)(yyv10)) = r.DecodeString()
13708				}
13709			}
13710		case "group":
13711			if r.TryDecodeAsNil() {
13712				x.Group = ""
13713			} else {
13714				yyv12 := &x.Group
13715				yym13 := z.DecBinary()
13716				_ = yym13
13717				if false {
13718				} else {
13719					*((*string)(yyv12)) = r.DecodeString()
13720				}
13721			}
13722		default:
13723			z.DecStructFieldNotFound(-1, yys3)
13724		} // end switch yys3
13725	} // end for yyj3
13726	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
13727}
13728
13729func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
13730	var h codecSelfer1234
13731	z, r := codec1978.GenHelperDecoder(d)
13732	_, _, _ = h, z, r
13733	var yyj14 int
13734	var yyb14 bool
13735	var yyhl14 bool = l >= 0
13736	yyj14++
13737	if yyhl14 {
13738		yyb14 = yyj14 > l
13739	} else {
13740		yyb14 = r.CheckBreak()
13741	}
13742	if yyb14 {
13743		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
13744		return
13745	}
13746	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
13747	if r.TryDecodeAsNil() {
13748		x.Registry = ""
13749	} else {
13750		yyv15 := &x.Registry
13751		yym16 := z.DecBinary()
13752		_ = yym16
13753		if false {
13754		} else {
13755			*((*string)(yyv15)) = r.DecodeString()
13756		}
13757	}
13758	yyj14++
13759	if yyhl14 {
13760		yyb14 = yyj14 > l
13761	} else {
13762		yyb14 = r.CheckBreak()
13763	}
13764	if yyb14 {
13765		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
13766		return
13767	}
13768	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
13769	if r.TryDecodeAsNil() {
13770		x.Volume = ""
13771	} else {
13772		yyv17 := &x.Volume
13773		yym18 := z.DecBinary()
13774		_ = yym18
13775		if false {
13776		} else {
13777			*((*string)(yyv17)) = r.DecodeString()
13778		}
13779	}
13780	yyj14++
13781	if yyhl14 {
13782		yyb14 = yyj14 > l
13783	} else {
13784		yyb14 = r.CheckBreak()
13785	}
13786	if yyb14 {
13787		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
13788		return
13789	}
13790	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
13791	if r.TryDecodeAsNil() {
13792		x.ReadOnly = false
13793	} else {
13794		yyv19 := &x.ReadOnly
13795		yym20 := z.DecBinary()
13796		_ = yym20
13797		if false {
13798		} else {
13799			*((*bool)(yyv19)) = r.DecodeBool()
13800		}
13801	}
13802	yyj14++
13803	if yyhl14 {
13804		yyb14 = yyj14 > l
13805	} else {
13806		yyb14 = r.CheckBreak()
13807	}
13808	if yyb14 {
13809		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
13810		return
13811	}
13812	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
13813	if r.TryDecodeAsNil() {
13814		x.User = ""
13815	} else {
13816		yyv21 := &x.User
13817		yym22 := z.DecBinary()
13818		_ = yym22
13819		if false {
13820		} else {
13821			*((*string)(yyv21)) = r.DecodeString()
13822		}
13823	}
13824	yyj14++
13825	if yyhl14 {
13826		yyb14 = yyj14 > l
13827	} else {
13828		yyb14 = r.CheckBreak()
13829	}
13830	if yyb14 {
13831		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
13832		return
13833	}
13834	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
13835	if r.TryDecodeAsNil() {
13836		x.Group = ""
13837	} else {
13838		yyv23 := &x.Group
13839		yym24 := z.DecBinary()
13840		_ = yym24
13841		if false {
13842		} else {
13843			*((*string)(yyv23)) = r.DecodeString()
13844		}
13845	}
13846	for {
13847		yyj14++
13848		if yyhl14 {
13849			yyb14 = yyj14 > l
13850		} else {
13851			yyb14 = r.CheckBreak()
13852		}
13853		if yyb14 {
13854			break
13855		}
13856		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
13857		z.DecStructFieldNotFound(yyj14-1, "")
13858	}
13859	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
13860}
13861
13862func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
13863	var h codecSelfer1234
13864	z, r := codec1978.GenHelperEncoder(e)
13865	_, _, _ = h, z, r
13866	if x == nil {
13867		r.EncodeNil()
13868	} else {
13869		yym1 := z.EncBinary()
13870		_ = yym1
13871		if false {
13872		} else if z.HasExtensions() && z.EncExt(x) {
13873		} else {
13874			yysep2 := !z.EncBinary()
13875			yy2arr2 := z.EncBasicHandle().StructToArray
13876			var yyq2 [5]bool
13877			_, _, _ = yysep2, yyq2, yy2arr2
13878			const yyr2 bool = false
13879			yyq2[1] = x.FSType != ""
13880			yyq2[2] = x.SecretRef != nil
13881			yyq2[3] = x.ReadOnly != false
13882			yyq2[4] = len(x.Options) != 0
13883			var yynn2 int
13884			if yyr2 || yy2arr2 {
13885				r.EncodeArrayStart(5)
13886			} else {
13887				yynn2 = 1
13888				for _, b := range yyq2 {
13889					if b {
13890						yynn2++
13891					}
13892				}
13893				r.EncodeMapStart(yynn2)
13894				yynn2 = 0
13895			}
13896			if yyr2 || yy2arr2 {
13897				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
13898				yym4 := z.EncBinary()
13899				_ = yym4
13900				if false {
13901				} else {
13902					r.EncodeString(codecSelferC_UTF81234, string(x.Driver))
13903				}
13904			} else {
13905				z.EncSendContainerState(codecSelfer_containerMapKey1234)
13906				r.EncodeString(codecSelferC_UTF81234, string("driver"))
13907				z.EncSendContainerState(codecSelfer_containerMapValue1234)
13908				yym5 := z.EncBinary()
13909				_ = yym5
13910				if false {
13911				} else {
13912					r.EncodeString(codecSelferC_UTF81234, string(x.Driver))
13913				}
13914			}
13915			if yyr2 || yy2arr2 {
13916				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
13917				if yyq2[1] {
13918					yym7 := z.EncBinary()
13919					_ = yym7
13920					if false {
13921					} else {
13922						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
13923					}
13924				} else {
13925					r.EncodeString(codecSelferC_UTF81234, "")
13926				}
13927			} else {
13928				if yyq2[1] {
13929					z.EncSendContainerState(codecSelfer_containerMapKey1234)
13930					r.EncodeString(codecSelferC_UTF81234, string("fsType"))
13931					z.EncSendContainerState(codecSelfer_containerMapValue1234)
13932					yym8 := z.EncBinary()
13933					_ = yym8
13934					if false {
13935					} else {
13936						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
13937					}
13938				}
13939			}
13940			if yyr2 || yy2arr2 {
13941				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
13942				if yyq2[2] {
13943					if x.SecretRef == nil {
13944						r.EncodeNil()
13945					} else {
13946						x.SecretRef.CodecEncodeSelf(e)
13947					}
13948				} else {
13949					r.EncodeNil()
13950				}
13951			} else {
13952				if yyq2[2] {
13953					z.EncSendContainerState(codecSelfer_containerMapKey1234)
13954					r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
13955					z.EncSendContainerState(codecSelfer_containerMapValue1234)
13956					if x.SecretRef == nil {
13957						r.EncodeNil()
13958					} else {
13959						x.SecretRef.CodecEncodeSelf(e)
13960					}
13961				}
13962			}
13963			if yyr2 || yy2arr2 {
13964				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
13965				if yyq2[3] {
13966					yym13 := z.EncBinary()
13967					_ = yym13
13968					if false {
13969					} else {
13970						r.EncodeBool(bool(x.ReadOnly))
13971					}
13972				} else {
13973					r.EncodeBool(false)
13974				}
13975			} else {
13976				if yyq2[3] {
13977					z.EncSendContainerState(codecSelfer_containerMapKey1234)
13978					r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
13979					z.EncSendContainerState(codecSelfer_containerMapValue1234)
13980					yym14 := z.EncBinary()
13981					_ = yym14
13982					if false {
13983					} else {
13984						r.EncodeBool(bool(x.ReadOnly))
13985					}
13986				}
13987			}
13988			if yyr2 || yy2arr2 {
13989				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
13990				if yyq2[4] {
13991					if x.Options == nil {
13992						r.EncodeNil()
13993					} else {
13994						yym16 := z.EncBinary()
13995						_ = yym16
13996						if false {
13997						} else {
13998							z.F.EncMapStringStringV(x.Options, false, e)
13999						}
14000					}
14001				} else {
14002					r.EncodeNil()
14003				}
14004			} else {
14005				if yyq2[4] {
14006					z.EncSendContainerState(codecSelfer_containerMapKey1234)
14007					r.EncodeString(codecSelferC_UTF81234, string("options"))
14008					z.EncSendContainerState(codecSelfer_containerMapValue1234)
14009					if x.Options == nil {
14010						r.EncodeNil()
14011					} else {
14012						yym17 := z.EncBinary()
14013						_ = yym17
14014						if false {
14015						} else {
14016							z.F.EncMapStringStringV(x.Options, false, e)
14017						}
14018					}
14019				}
14020			}
14021			if yyr2 || yy2arr2 {
14022				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
14023			} else {
14024				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
14025			}
14026		}
14027	}
14028}
14029
14030func (x *FlexVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
14031	var h codecSelfer1234
14032	z, r := codec1978.GenHelperDecoder(d)
14033	_, _, _ = h, z, r
14034	yym1 := z.DecBinary()
14035	_ = yym1
14036	if false {
14037	} else if z.HasExtensions() && z.DecExt(x) {
14038	} else {
14039		yyct2 := r.ContainerType()
14040		if yyct2 == codecSelferValueTypeMap1234 {
14041			yyl2 := r.ReadMapStart()
14042			if yyl2 == 0 {
14043				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
14044			} else {
14045				x.codecDecodeSelfFromMap(yyl2, d)
14046			}
14047		} else if yyct2 == codecSelferValueTypeArray1234 {
14048			yyl2 := r.ReadArrayStart()
14049			if yyl2 == 0 {
14050				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
14051			} else {
14052				x.codecDecodeSelfFromArray(yyl2, d)
14053			}
14054		} else {
14055			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
14056		}
14057	}
14058}
14059
14060func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
14061	var h codecSelfer1234
14062	z, r := codec1978.GenHelperDecoder(d)
14063	_, _, _ = h, z, r
14064	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
14065	_ = yys3Slc
14066	var yyhl3 bool = l >= 0
14067	for yyj3 := 0; ; yyj3++ {
14068		if yyhl3 {
14069			if yyj3 >= l {
14070				break
14071			}
14072		} else {
14073			if r.CheckBreak() {
14074				break
14075			}
14076		}
14077		z.DecSendContainerState(codecSelfer_containerMapKey1234)
14078		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
14079		yys3 := string(yys3Slc)
14080		z.DecSendContainerState(codecSelfer_containerMapValue1234)
14081		switch yys3 {
14082		case "driver":
14083			if r.TryDecodeAsNil() {
14084				x.Driver = ""
14085			} else {
14086				yyv4 := &x.Driver
14087				yym5 := z.DecBinary()
14088				_ = yym5
14089				if false {
14090				} else {
14091					*((*string)(yyv4)) = r.DecodeString()
14092				}
14093			}
14094		case "fsType":
14095			if r.TryDecodeAsNil() {
14096				x.FSType = ""
14097			} else {
14098				yyv6 := &x.FSType
14099				yym7 := z.DecBinary()
14100				_ = yym7
14101				if false {
14102				} else {
14103					*((*string)(yyv6)) = r.DecodeString()
14104				}
14105			}
14106		case "secretRef":
14107			if r.TryDecodeAsNil() {
14108				if x.SecretRef != nil {
14109					x.SecretRef = nil
14110				}
14111			} else {
14112				if x.SecretRef == nil {
14113					x.SecretRef = new(LocalObjectReference)
14114				}
14115				x.SecretRef.CodecDecodeSelf(d)
14116			}
14117		case "readOnly":
14118			if r.TryDecodeAsNil() {
14119				x.ReadOnly = false
14120			} else {
14121				yyv9 := &x.ReadOnly
14122				yym10 := z.DecBinary()
14123				_ = yym10
14124				if false {
14125				} else {
14126					*((*bool)(yyv9)) = r.DecodeBool()
14127				}
14128			}
14129		case "options":
14130			if r.TryDecodeAsNil() {
14131				x.Options = nil
14132			} else {
14133				yyv11 := &x.Options
14134				yym12 := z.DecBinary()
14135				_ = yym12
14136				if false {
14137				} else {
14138					z.F.DecMapStringStringX(yyv11, false, d)
14139				}
14140			}
14141		default:
14142			z.DecStructFieldNotFound(-1, yys3)
14143		} // end switch yys3
14144	} // end for yyj3
14145	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
14146}
14147
14148func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
14149	var h codecSelfer1234
14150	z, r := codec1978.GenHelperDecoder(d)
14151	_, _, _ = h, z, r
14152	var yyj13 int
14153	var yyb13 bool
14154	var yyhl13 bool = l >= 0
14155	yyj13++
14156	if yyhl13 {
14157		yyb13 = yyj13 > l
14158	} else {
14159		yyb13 = r.CheckBreak()
14160	}
14161	if yyb13 {
14162		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
14163		return
14164	}
14165	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
14166	if r.TryDecodeAsNil() {
14167		x.Driver = ""
14168	} else {
14169		yyv14 := &x.Driver
14170		yym15 := z.DecBinary()
14171		_ = yym15
14172		if false {
14173		} else {
14174			*((*string)(yyv14)) = r.DecodeString()
14175		}
14176	}
14177	yyj13++
14178	if yyhl13 {
14179		yyb13 = yyj13 > l
14180	} else {
14181		yyb13 = r.CheckBreak()
14182	}
14183	if yyb13 {
14184		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
14185		return
14186	}
14187	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
14188	if r.TryDecodeAsNil() {
14189		x.FSType = ""
14190	} else {
14191		yyv16 := &x.FSType
14192		yym17 := z.DecBinary()
14193		_ = yym17
14194		if false {
14195		} else {
14196			*((*string)(yyv16)) = r.DecodeString()
14197		}
14198	}
14199	yyj13++
14200	if yyhl13 {
14201		yyb13 = yyj13 > l
14202	} else {
14203		yyb13 = r.CheckBreak()
14204	}
14205	if yyb13 {
14206		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
14207		return
14208	}
14209	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
14210	if r.TryDecodeAsNil() {
14211		if x.SecretRef != nil {
14212			x.SecretRef = nil
14213		}
14214	} else {
14215		if x.SecretRef == nil {
14216			x.SecretRef = new(LocalObjectReference)
14217		}
14218		x.SecretRef.CodecDecodeSelf(d)
14219	}
14220	yyj13++
14221	if yyhl13 {
14222		yyb13 = yyj13 > l
14223	} else {
14224		yyb13 = r.CheckBreak()
14225	}
14226	if yyb13 {
14227		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
14228		return
14229	}
14230	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
14231	if r.TryDecodeAsNil() {
14232		x.ReadOnly = false
14233	} else {
14234		yyv19 := &x.ReadOnly
14235		yym20 := z.DecBinary()
14236		_ = yym20
14237		if false {
14238		} else {
14239			*((*bool)(yyv19)) = r.DecodeBool()
14240		}
14241	}
14242	yyj13++
14243	if yyhl13 {
14244		yyb13 = yyj13 > l
14245	} else {
14246		yyb13 = r.CheckBreak()
14247	}
14248	if yyb13 {
14249		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
14250		return
14251	}
14252	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
14253	if r.TryDecodeAsNil() {
14254		x.Options = nil
14255	} else {
14256		yyv21 := &x.Options
14257		yym22 := z.DecBinary()
14258		_ = yym22
14259		if false {
14260		} else {
14261			z.F.DecMapStringStringX(yyv21, false, d)
14262		}
14263	}
14264	for {
14265		yyj13++
14266		if yyhl13 {
14267			yyb13 = yyj13 > l
14268		} else {
14269			yyb13 = r.CheckBreak()
14270		}
14271		if yyb13 {
14272			break
14273		}
14274		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
14275		z.DecStructFieldNotFound(yyj13-1, "")
14276	}
14277	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
14278}
14279
14280func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
14281	var h codecSelfer1234
14282	z, r := codec1978.GenHelperEncoder(e)
14283	_, _, _ = h, z, r
14284	if x == nil {
14285		r.EncodeNil()
14286	} else {
14287		yym1 := z.EncBinary()
14288		_ = yym1
14289		if false {
14290		} else if z.HasExtensions() && z.EncExt(x) {
14291		} else {
14292			yysep2 := !z.EncBinary()
14293			yy2arr2 := z.EncBasicHandle().StructToArray
14294			var yyq2 [4]bool
14295			_, _, _ = yysep2, yyq2, yy2arr2
14296			const yyr2 bool = false
14297			yyq2[1] = x.FSType != ""
14298			yyq2[2] = x.Partition != 0
14299			yyq2[3] = x.ReadOnly != false
14300			var yynn2 int
14301			if yyr2 || yy2arr2 {
14302				r.EncodeArrayStart(4)
14303			} else {
14304				yynn2 = 1
14305				for _, b := range yyq2 {
14306					if b {
14307						yynn2++
14308					}
14309				}
14310				r.EncodeMapStart(yynn2)
14311				yynn2 = 0
14312			}
14313			if yyr2 || yy2arr2 {
14314				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
14315				yym4 := z.EncBinary()
14316				_ = yym4
14317				if false {
14318				} else {
14319					r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
14320				}
14321			} else {
14322				z.EncSendContainerState(codecSelfer_containerMapKey1234)
14323				r.EncodeString(codecSelferC_UTF81234, string("volumeID"))
14324				z.EncSendContainerState(codecSelfer_containerMapValue1234)
14325				yym5 := z.EncBinary()
14326				_ = yym5
14327				if false {
14328				} else {
14329					r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
14330				}
14331			}
14332			if yyr2 || yy2arr2 {
14333				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
14334				if yyq2[1] {
14335					yym7 := z.EncBinary()
14336					_ = yym7
14337					if false {
14338					} else {
14339						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
14340					}
14341				} else {
14342					r.EncodeString(codecSelferC_UTF81234, "")
14343				}
14344			} else {
14345				if yyq2[1] {
14346					z.EncSendContainerState(codecSelfer_containerMapKey1234)
14347					r.EncodeString(codecSelferC_UTF81234, string("fsType"))
14348					z.EncSendContainerState(codecSelfer_containerMapValue1234)
14349					yym8 := z.EncBinary()
14350					_ = yym8
14351					if false {
14352					} else {
14353						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
14354					}
14355				}
14356			}
14357			if yyr2 || yy2arr2 {
14358				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
14359				if yyq2[2] {
14360					yym10 := z.EncBinary()
14361					_ = yym10
14362					if false {
14363					} else {
14364						r.EncodeInt(int64(x.Partition))
14365					}
14366				} else {
14367					r.EncodeInt(0)
14368				}
14369			} else {
14370				if yyq2[2] {
14371					z.EncSendContainerState(codecSelfer_containerMapKey1234)
14372					r.EncodeString(codecSelferC_UTF81234, string("partition"))
14373					z.EncSendContainerState(codecSelfer_containerMapValue1234)
14374					yym11 := z.EncBinary()
14375					_ = yym11
14376					if false {
14377					} else {
14378						r.EncodeInt(int64(x.Partition))
14379					}
14380				}
14381			}
14382			if yyr2 || yy2arr2 {
14383				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
14384				if yyq2[3] {
14385					yym13 := z.EncBinary()
14386					_ = yym13
14387					if false {
14388					} else {
14389						r.EncodeBool(bool(x.ReadOnly))
14390					}
14391				} else {
14392					r.EncodeBool(false)
14393				}
14394			} else {
14395				if yyq2[3] {
14396					z.EncSendContainerState(codecSelfer_containerMapKey1234)
14397					r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
14398					z.EncSendContainerState(codecSelfer_containerMapValue1234)
14399					yym14 := z.EncBinary()
14400					_ = yym14
14401					if false {
14402					} else {
14403						r.EncodeBool(bool(x.ReadOnly))
14404					}
14405				}
14406			}
14407			if yyr2 || yy2arr2 {
14408				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
14409			} else {
14410				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
14411			}
14412		}
14413	}
14414}
14415
14416func (x *AWSElasticBlockStoreVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
14417	var h codecSelfer1234
14418	z, r := codec1978.GenHelperDecoder(d)
14419	_, _, _ = h, z, r
14420	yym1 := z.DecBinary()
14421	_ = yym1
14422	if false {
14423	} else if z.HasExtensions() && z.DecExt(x) {
14424	} else {
14425		yyct2 := r.ContainerType()
14426		if yyct2 == codecSelferValueTypeMap1234 {
14427			yyl2 := r.ReadMapStart()
14428			if yyl2 == 0 {
14429				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
14430			} else {
14431				x.codecDecodeSelfFromMap(yyl2, d)
14432			}
14433		} else if yyct2 == codecSelferValueTypeArray1234 {
14434			yyl2 := r.ReadArrayStart()
14435			if yyl2 == 0 {
14436				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
14437			} else {
14438				x.codecDecodeSelfFromArray(yyl2, d)
14439			}
14440		} else {
14441			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
14442		}
14443	}
14444}
14445
14446func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
14447	var h codecSelfer1234
14448	z, r := codec1978.GenHelperDecoder(d)
14449	_, _, _ = h, z, r
14450	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
14451	_ = yys3Slc
14452	var yyhl3 bool = l >= 0
14453	for yyj3 := 0; ; yyj3++ {
14454		if yyhl3 {
14455			if yyj3 >= l {
14456				break
14457			}
14458		} else {
14459			if r.CheckBreak() {
14460				break
14461			}
14462		}
14463		z.DecSendContainerState(codecSelfer_containerMapKey1234)
14464		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
14465		yys3 := string(yys3Slc)
14466		z.DecSendContainerState(codecSelfer_containerMapValue1234)
14467		switch yys3 {
14468		case "volumeID":
14469			if r.TryDecodeAsNil() {
14470				x.VolumeID = ""
14471			} else {
14472				yyv4 := &x.VolumeID
14473				yym5 := z.DecBinary()
14474				_ = yym5
14475				if false {
14476				} else {
14477					*((*string)(yyv4)) = r.DecodeString()
14478				}
14479			}
14480		case "fsType":
14481			if r.TryDecodeAsNil() {
14482				x.FSType = ""
14483			} else {
14484				yyv6 := &x.FSType
14485				yym7 := z.DecBinary()
14486				_ = yym7
14487				if false {
14488				} else {
14489					*((*string)(yyv6)) = r.DecodeString()
14490				}
14491			}
14492		case "partition":
14493			if r.TryDecodeAsNil() {
14494				x.Partition = 0
14495			} else {
14496				yyv8 := &x.Partition
14497				yym9 := z.DecBinary()
14498				_ = yym9
14499				if false {
14500				} else {
14501					*((*int32)(yyv8)) = int32(r.DecodeInt(32))
14502				}
14503			}
14504		case "readOnly":
14505			if r.TryDecodeAsNil() {
14506				x.ReadOnly = false
14507			} else {
14508				yyv10 := &x.ReadOnly
14509				yym11 := z.DecBinary()
14510				_ = yym11
14511				if false {
14512				} else {
14513					*((*bool)(yyv10)) = r.DecodeBool()
14514				}
14515			}
14516		default:
14517			z.DecStructFieldNotFound(-1, yys3)
14518		} // end switch yys3
14519	} // end for yyj3
14520	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
14521}
14522
14523func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
14524	var h codecSelfer1234
14525	z, r := codec1978.GenHelperDecoder(d)
14526	_, _, _ = h, z, r
14527	var yyj12 int
14528	var yyb12 bool
14529	var yyhl12 bool = l >= 0
14530	yyj12++
14531	if yyhl12 {
14532		yyb12 = yyj12 > l
14533	} else {
14534		yyb12 = r.CheckBreak()
14535	}
14536	if yyb12 {
14537		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
14538		return
14539	}
14540	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
14541	if r.TryDecodeAsNil() {
14542		x.VolumeID = ""
14543	} else {
14544		yyv13 := &x.VolumeID
14545		yym14 := z.DecBinary()
14546		_ = yym14
14547		if false {
14548		} else {
14549			*((*string)(yyv13)) = r.DecodeString()
14550		}
14551	}
14552	yyj12++
14553	if yyhl12 {
14554		yyb12 = yyj12 > l
14555	} else {
14556		yyb12 = r.CheckBreak()
14557	}
14558	if yyb12 {
14559		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
14560		return
14561	}
14562	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
14563	if r.TryDecodeAsNil() {
14564		x.FSType = ""
14565	} else {
14566		yyv15 := &x.FSType
14567		yym16 := z.DecBinary()
14568		_ = yym16
14569		if false {
14570		} else {
14571			*((*string)(yyv15)) = r.DecodeString()
14572		}
14573	}
14574	yyj12++
14575	if yyhl12 {
14576		yyb12 = yyj12 > l
14577	} else {
14578		yyb12 = r.CheckBreak()
14579	}
14580	if yyb12 {
14581		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
14582		return
14583	}
14584	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
14585	if r.TryDecodeAsNil() {
14586		x.Partition = 0
14587	} else {
14588		yyv17 := &x.Partition
14589		yym18 := z.DecBinary()
14590		_ = yym18
14591		if false {
14592		} else {
14593			*((*int32)(yyv17)) = int32(r.DecodeInt(32))
14594		}
14595	}
14596	yyj12++
14597	if yyhl12 {
14598		yyb12 = yyj12 > l
14599	} else {
14600		yyb12 = r.CheckBreak()
14601	}
14602	if yyb12 {
14603		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
14604		return
14605	}
14606	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
14607	if r.TryDecodeAsNil() {
14608		x.ReadOnly = false
14609	} else {
14610		yyv19 := &x.ReadOnly
14611		yym20 := z.DecBinary()
14612		_ = yym20
14613		if false {
14614		} else {
14615			*((*bool)(yyv19)) = r.DecodeBool()
14616		}
14617	}
14618	for {
14619		yyj12++
14620		if yyhl12 {
14621			yyb12 = yyj12 > l
14622		} else {
14623			yyb12 = r.CheckBreak()
14624		}
14625		if yyb12 {
14626			break
14627		}
14628		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
14629		z.DecStructFieldNotFound(yyj12-1, "")
14630	}
14631	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
14632}
14633
14634func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
14635	var h codecSelfer1234
14636	z, r := codec1978.GenHelperEncoder(e)
14637	_, _, _ = h, z, r
14638	if x == nil {
14639		r.EncodeNil()
14640	} else {
14641		yym1 := z.EncBinary()
14642		_ = yym1
14643		if false {
14644		} else if z.HasExtensions() && z.EncExt(x) {
14645		} else {
14646			yysep2 := !z.EncBinary()
14647			yy2arr2 := z.EncBasicHandle().StructToArray
14648			var yyq2 [3]bool
14649			_, _, _ = yysep2, yyq2, yy2arr2
14650			const yyr2 bool = false
14651			yyq2[1] = x.Revision != ""
14652			yyq2[2] = x.Directory != ""
14653			var yynn2 int
14654			if yyr2 || yy2arr2 {
14655				r.EncodeArrayStart(3)
14656			} else {
14657				yynn2 = 1
14658				for _, b := range yyq2 {
14659					if b {
14660						yynn2++
14661					}
14662				}
14663				r.EncodeMapStart(yynn2)
14664				yynn2 = 0
14665			}
14666			if yyr2 || yy2arr2 {
14667				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
14668				yym4 := z.EncBinary()
14669				_ = yym4
14670				if false {
14671				} else {
14672					r.EncodeString(codecSelferC_UTF81234, string(x.Repository))
14673				}
14674			} else {
14675				z.EncSendContainerState(codecSelfer_containerMapKey1234)
14676				r.EncodeString(codecSelferC_UTF81234, string("repository"))
14677				z.EncSendContainerState(codecSelfer_containerMapValue1234)
14678				yym5 := z.EncBinary()
14679				_ = yym5
14680				if false {
14681				} else {
14682					r.EncodeString(codecSelferC_UTF81234, string(x.Repository))
14683				}
14684			}
14685			if yyr2 || yy2arr2 {
14686				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
14687				if yyq2[1] {
14688					yym7 := z.EncBinary()
14689					_ = yym7
14690					if false {
14691					} else {
14692						r.EncodeString(codecSelferC_UTF81234, string(x.Revision))
14693					}
14694				} else {
14695					r.EncodeString(codecSelferC_UTF81234, "")
14696				}
14697			} else {
14698				if yyq2[1] {
14699					z.EncSendContainerState(codecSelfer_containerMapKey1234)
14700					r.EncodeString(codecSelferC_UTF81234, string("revision"))
14701					z.EncSendContainerState(codecSelfer_containerMapValue1234)
14702					yym8 := z.EncBinary()
14703					_ = yym8
14704					if false {
14705					} else {
14706						r.EncodeString(codecSelferC_UTF81234, string(x.Revision))
14707					}
14708				}
14709			}
14710			if yyr2 || yy2arr2 {
14711				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
14712				if yyq2[2] {
14713					yym10 := z.EncBinary()
14714					_ = yym10
14715					if false {
14716					} else {
14717						r.EncodeString(codecSelferC_UTF81234, string(x.Directory))
14718					}
14719				} else {
14720					r.EncodeString(codecSelferC_UTF81234, "")
14721				}
14722			} else {
14723				if yyq2[2] {
14724					z.EncSendContainerState(codecSelfer_containerMapKey1234)
14725					r.EncodeString(codecSelferC_UTF81234, string("directory"))
14726					z.EncSendContainerState(codecSelfer_containerMapValue1234)
14727					yym11 := z.EncBinary()
14728					_ = yym11
14729					if false {
14730					} else {
14731						r.EncodeString(codecSelferC_UTF81234, string(x.Directory))
14732					}
14733				}
14734			}
14735			if yyr2 || yy2arr2 {
14736				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
14737			} else {
14738				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
14739			}
14740		}
14741	}
14742}
14743
14744func (x *GitRepoVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
14745	var h codecSelfer1234
14746	z, r := codec1978.GenHelperDecoder(d)
14747	_, _, _ = h, z, r
14748	yym1 := z.DecBinary()
14749	_ = yym1
14750	if false {
14751	} else if z.HasExtensions() && z.DecExt(x) {
14752	} else {
14753		yyct2 := r.ContainerType()
14754		if yyct2 == codecSelferValueTypeMap1234 {
14755			yyl2 := r.ReadMapStart()
14756			if yyl2 == 0 {
14757				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
14758			} else {
14759				x.codecDecodeSelfFromMap(yyl2, d)
14760			}
14761		} else if yyct2 == codecSelferValueTypeArray1234 {
14762			yyl2 := r.ReadArrayStart()
14763			if yyl2 == 0 {
14764				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
14765			} else {
14766				x.codecDecodeSelfFromArray(yyl2, d)
14767			}
14768		} else {
14769			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
14770		}
14771	}
14772}
14773
14774func (x *GitRepoVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
14775	var h codecSelfer1234
14776	z, r := codec1978.GenHelperDecoder(d)
14777	_, _, _ = h, z, r
14778	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
14779	_ = yys3Slc
14780	var yyhl3 bool = l >= 0
14781	for yyj3 := 0; ; yyj3++ {
14782		if yyhl3 {
14783			if yyj3 >= l {
14784				break
14785			}
14786		} else {
14787			if r.CheckBreak() {
14788				break
14789			}
14790		}
14791		z.DecSendContainerState(codecSelfer_containerMapKey1234)
14792		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
14793		yys3 := string(yys3Slc)
14794		z.DecSendContainerState(codecSelfer_containerMapValue1234)
14795		switch yys3 {
14796		case "repository":
14797			if r.TryDecodeAsNil() {
14798				x.Repository = ""
14799			} else {
14800				yyv4 := &x.Repository
14801				yym5 := z.DecBinary()
14802				_ = yym5
14803				if false {
14804				} else {
14805					*((*string)(yyv4)) = r.DecodeString()
14806				}
14807			}
14808		case "revision":
14809			if r.TryDecodeAsNil() {
14810				x.Revision = ""
14811			} else {
14812				yyv6 := &x.Revision
14813				yym7 := z.DecBinary()
14814				_ = yym7
14815				if false {
14816				} else {
14817					*((*string)(yyv6)) = r.DecodeString()
14818				}
14819			}
14820		case "directory":
14821			if r.TryDecodeAsNil() {
14822				x.Directory = ""
14823			} else {
14824				yyv8 := &x.Directory
14825				yym9 := z.DecBinary()
14826				_ = yym9
14827				if false {
14828				} else {
14829					*((*string)(yyv8)) = r.DecodeString()
14830				}
14831			}
14832		default:
14833			z.DecStructFieldNotFound(-1, yys3)
14834		} // end switch yys3
14835	} // end for yyj3
14836	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
14837}
14838
14839func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
14840	var h codecSelfer1234
14841	z, r := codec1978.GenHelperDecoder(d)
14842	_, _, _ = h, z, r
14843	var yyj10 int
14844	var yyb10 bool
14845	var yyhl10 bool = l >= 0
14846	yyj10++
14847	if yyhl10 {
14848		yyb10 = yyj10 > l
14849	} else {
14850		yyb10 = r.CheckBreak()
14851	}
14852	if yyb10 {
14853		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
14854		return
14855	}
14856	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
14857	if r.TryDecodeAsNil() {
14858		x.Repository = ""
14859	} else {
14860		yyv11 := &x.Repository
14861		yym12 := z.DecBinary()
14862		_ = yym12
14863		if false {
14864		} else {
14865			*((*string)(yyv11)) = r.DecodeString()
14866		}
14867	}
14868	yyj10++
14869	if yyhl10 {
14870		yyb10 = yyj10 > l
14871	} else {
14872		yyb10 = r.CheckBreak()
14873	}
14874	if yyb10 {
14875		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
14876		return
14877	}
14878	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
14879	if r.TryDecodeAsNil() {
14880		x.Revision = ""
14881	} else {
14882		yyv13 := &x.Revision
14883		yym14 := z.DecBinary()
14884		_ = yym14
14885		if false {
14886		} else {
14887			*((*string)(yyv13)) = r.DecodeString()
14888		}
14889	}
14890	yyj10++
14891	if yyhl10 {
14892		yyb10 = yyj10 > l
14893	} else {
14894		yyb10 = r.CheckBreak()
14895	}
14896	if yyb10 {
14897		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
14898		return
14899	}
14900	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
14901	if r.TryDecodeAsNil() {
14902		x.Directory = ""
14903	} else {
14904		yyv15 := &x.Directory
14905		yym16 := z.DecBinary()
14906		_ = yym16
14907		if false {
14908		} else {
14909			*((*string)(yyv15)) = r.DecodeString()
14910		}
14911	}
14912	for {
14913		yyj10++
14914		if yyhl10 {
14915			yyb10 = yyj10 > l
14916		} else {
14917			yyb10 = r.CheckBreak()
14918		}
14919		if yyb10 {
14920			break
14921		}
14922		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
14923		z.DecStructFieldNotFound(yyj10-1, "")
14924	}
14925	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
14926}
14927
14928func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
14929	var h codecSelfer1234
14930	z, r := codec1978.GenHelperEncoder(e)
14931	_, _, _ = h, z, r
14932	if x == nil {
14933		r.EncodeNil()
14934	} else {
14935		yym1 := z.EncBinary()
14936		_ = yym1
14937		if false {
14938		} else if z.HasExtensions() && z.EncExt(x) {
14939		} else {
14940			yysep2 := !z.EncBinary()
14941			yy2arr2 := z.EncBasicHandle().StructToArray
14942			var yyq2 [4]bool
14943			_, _, _ = yysep2, yyq2, yy2arr2
14944			const yyr2 bool = false
14945			yyq2[0] = x.SecretName != ""
14946			yyq2[1] = len(x.Items) != 0
14947			yyq2[2] = x.DefaultMode != nil
14948			yyq2[3] = x.Optional != nil
14949			var yynn2 int
14950			if yyr2 || yy2arr2 {
14951				r.EncodeArrayStart(4)
14952			} else {
14953				yynn2 = 0
14954				for _, b := range yyq2 {
14955					if b {
14956						yynn2++
14957					}
14958				}
14959				r.EncodeMapStart(yynn2)
14960				yynn2 = 0
14961			}
14962			if yyr2 || yy2arr2 {
14963				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
14964				if yyq2[0] {
14965					yym4 := z.EncBinary()
14966					_ = yym4
14967					if false {
14968					} else {
14969						r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
14970					}
14971				} else {
14972					r.EncodeString(codecSelferC_UTF81234, "")
14973				}
14974			} else {
14975				if yyq2[0] {
14976					z.EncSendContainerState(codecSelfer_containerMapKey1234)
14977					r.EncodeString(codecSelferC_UTF81234, string("secretName"))
14978					z.EncSendContainerState(codecSelfer_containerMapValue1234)
14979					yym5 := z.EncBinary()
14980					_ = yym5
14981					if false {
14982					} else {
14983						r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
14984					}
14985				}
14986			}
14987			if yyr2 || yy2arr2 {
14988				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
14989				if yyq2[1] {
14990					if x.Items == nil {
14991						r.EncodeNil()
14992					} else {
14993						yym7 := z.EncBinary()
14994						_ = yym7
14995						if false {
14996						} else {
14997							h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
14998						}
14999					}
15000				} else {
15001					r.EncodeNil()
15002				}
15003			} else {
15004				if yyq2[1] {
15005					z.EncSendContainerState(codecSelfer_containerMapKey1234)
15006					r.EncodeString(codecSelferC_UTF81234, string("items"))
15007					z.EncSendContainerState(codecSelfer_containerMapValue1234)
15008					if x.Items == nil {
15009						r.EncodeNil()
15010					} else {
15011						yym8 := z.EncBinary()
15012						_ = yym8
15013						if false {
15014						} else {
15015							h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
15016						}
15017					}
15018				}
15019			}
15020			if yyr2 || yy2arr2 {
15021				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
15022				if yyq2[2] {
15023					if x.DefaultMode == nil {
15024						r.EncodeNil()
15025					} else {
15026						yy10 := *x.DefaultMode
15027						yym11 := z.EncBinary()
15028						_ = yym11
15029						if false {
15030						} else {
15031							r.EncodeInt(int64(yy10))
15032						}
15033					}
15034				} else {
15035					r.EncodeNil()
15036				}
15037			} else {
15038				if yyq2[2] {
15039					z.EncSendContainerState(codecSelfer_containerMapKey1234)
15040					r.EncodeString(codecSelferC_UTF81234, string("defaultMode"))
15041					z.EncSendContainerState(codecSelfer_containerMapValue1234)
15042					if x.DefaultMode == nil {
15043						r.EncodeNil()
15044					} else {
15045						yy12 := *x.DefaultMode
15046						yym13 := z.EncBinary()
15047						_ = yym13
15048						if false {
15049						} else {
15050							r.EncodeInt(int64(yy12))
15051						}
15052					}
15053				}
15054			}
15055			if yyr2 || yy2arr2 {
15056				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
15057				if yyq2[3] {
15058					if x.Optional == nil {
15059						r.EncodeNil()
15060					} else {
15061						yy15 := *x.Optional
15062						yym16 := z.EncBinary()
15063						_ = yym16
15064						if false {
15065						} else {
15066							r.EncodeBool(bool(yy15))
15067						}
15068					}
15069				} else {
15070					r.EncodeNil()
15071				}
15072			} else {
15073				if yyq2[3] {
15074					z.EncSendContainerState(codecSelfer_containerMapKey1234)
15075					r.EncodeString(codecSelferC_UTF81234, string("optional"))
15076					z.EncSendContainerState(codecSelfer_containerMapValue1234)
15077					if x.Optional == nil {
15078						r.EncodeNil()
15079					} else {
15080						yy17 := *x.Optional
15081						yym18 := z.EncBinary()
15082						_ = yym18
15083						if false {
15084						} else {
15085							r.EncodeBool(bool(yy17))
15086						}
15087					}
15088				}
15089			}
15090			if yyr2 || yy2arr2 {
15091				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
15092			} else {
15093				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
15094			}
15095		}
15096	}
15097}
15098
15099func (x *SecretVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
15100	var h codecSelfer1234
15101	z, r := codec1978.GenHelperDecoder(d)
15102	_, _, _ = h, z, r
15103	yym1 := z.DecBinary()
15104	_ = yym1
15105	if false {
15106	} else if z.HasExtensions() && z.DecExt(x) {
15107	} else {
15108		yyct2 := r.ContainerType()
15109		if yyct2 == codecSelferValueTypeMap1234 {
15110			yyl2 := r.ReadMapStart()
15111			if yyl2 == 0 {
15112				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
15113			} else {
15114				x.codecDecodeSelfFromMap(yyl2, d)
15115			}
15116		} else if yyct2 == codecSelferValueTypeArray1234 {
15117			yyl2 := r.ReadArrayStart()
15118			if yyl2 == 0 {
15119				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
15120			} else {
15121				x.codecDecodeSelfFromArray(yyl2, d)
15122			}
15123		} else {
15124			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
15125		}
15126	}
15127}
15128
15129func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
15130	var h codecSelfer1234
15131	z, r := codec1978.GenHelperDecoder(d)
15132	_, _, _ = h, z, r
15133	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
15134	_ = yys3Slc
15135	var yyhl3 bool = l >= 0
15136	for yyj3 := 0; ; yyj3++ {
15137		if yyhl3 {
15138			if yyj3 >= l {
15139				break
15140			}
15141		} else {
15142			if r.CheckBreak() {
15143				break
15144			}
15145		}
15146		z.DecSendContainerState(codecSelfer_containerMapKey1234)
15147		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
15148		yys3 := string(yys3Slc)
15149		z.DecSendContainerState(codecSelfer_containerMapValue1234)
15150		switch yys3 {
15151		case "secretName":
15152			if r.TryDecodeAsNil() {
15153				x.SecretName = ""
15154			} else {
15155				yyv4 := &x.SecretName
15156				yym5 := z.DecBinary()
15157				_ = yym5
15158				if false {
15159				} else {
15160					*((*string)(yyv4)) = r.DecodeString()
15161				}
15162			}
15163		case "items":
15164			if r.TryDecodeAsNil() {
15165				x.Items = nil
15166			} else {
15167				yyv6 := &x.Items
15168				yym7 := z.DecBinary()
15169				_ = yym7
15170				if false {
15171				} else {
15172					h.decSliceKeyToPath((*[]KeyToPath)(yyv6), d)
15173				}
15174			}
15175		case "defaultMode":
15176			if r.TryDecodeAsNil() {
15177				if x.DefaultMode != nil {
15178					x.DefaultMode = nil
15179				}
15180			} else {
15181				if x.DefaultMode == nil {
15182					x.DefaultMode = new(int32)
15183				}
15184				yym9 := z.DecBinary()
15185				_ = yym9
15186				if false {
15187				} else {
15188					*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
15189				}
15190			}
15191		case "optional":
15192			if r.TryDecodeAsNil() {
15193				if x.Optional != nil {
15194					x.Optional = nil
15195				}
15196			} else {
15197				if x.Optional == nil {
15198					x.Optional = new(bool)
15199				}
15200				yym11 := z.DecBinary()
15201				_ = yym11
15202				if false {
15203				} else {
15204					*((*bool)(x.Optional)) = r.DecodeBool()
15205				}
15206			}
15207		default:
15208			z.DecStructFieldNotFound(-1, yys3)
15209		} // end switch yys3
15210	} // end for yyj3
15211	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
15212}
15213
15214func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
15215	var h codecSelfer1234
15216	z, r := codec1978.GenHelperDecoder(d)
15217	_, _, _ = h, z, r
15218	var yyj12 int
15219	var yyb12 bool
15220	var yyhl12 bool = l >= 0
15221	yyj12++
15222	if yyhl12 {
15223		yyb12 = yyj12 > l
15224	} else {
15225		yyb12 = r.CheckBreak()
15226	}
15227	if yyb12 {
15228		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
15229		return
15230	}
15231	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
15232	if r.TryDecodeAsNil() {
15233		x.SecretName = ""
15234	} else {
15235		yyv13 := &x.SecretName
15236		yym14 := z.DecBinary()
15237		_ = yym14
15238		if false {
15239		} else {
15240			*((*string)(yyv13)) = r.DecodeString()
15241		}
15242	}
15243	yyj12++
15244	if yyhl12 {
15245		yyb12 = yyj12 > l
15246	} else {
15247		yyb12 = r.CheckBreak()
15248	}
15249	if yyb12 {
15250		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
15251		return
15252	}
15253	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
15254	if r.TryDecodeAsNil() {
15255		x.Items = nil
15256	} else {
15257		yyv15 := &x.Items
15258		yym16 := z.DecBinary()
15259		_ = yym16
15260		if false {
15261		} else {
15262			h.decSliceKeyToPath((*[]KeyToPath)(yyv15), d)
15263		}
15264	}
15265	yyj12++
15266	if yyhl12 {
15267		yyb12 = yyj12 > l
15268	} else {
15269		yyb12 = r.CheckBreak()
15270	}
15271	if yyb12 {
15272		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
15273		return
15274	}
15275	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
15276	if r.TryDecodeAsNil() {
15277		if x.DefaultMode != nil {
15278			x.DefaultMode = nil
15279		}
15280	} else {
15281		if x.DefaultMode == nil {
15282			x.DefaultMode = new(int32)
15283		}
15284		yym18 := z.DecBinary()
15285		_ = yym18
15286		if false {
15287		} else {
15288			*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
15289		}
15290	}
15291	yyj12++
15292	if yyhl12 {
15293		yyb12 = yyj12 > l
15294	} else {
15295		yyb12 = r.CheckBreak()
15296	}
15297	if yyb12 {
15298		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
15299		return
15300	}
15301	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
15302	if r.TryDecodeAsNil() {
15303		if x.Optional != nil {
15304			x.Optional = nil
15305		}
15306	} else {
15307		if x.Optional == nil {
15308			x.Optional = new(bool)
15309		}
15310		yym20 := z.DecBinary()
15311		_ = yym20
15312		if false {
15313		} else {
15314			*((*bool)(x.Optional)) = r.DecodeBool()
15315		}
15316	}
15317	for {
15318		yyj12++
15319		if yyhl12 {
15320			yyb12 = yyj12 > l
15321		} else {
15322			yyb12 = r.CheckBreak()
15323		}
15324		if yyb12 {
15325			break
15326		}
15327		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
15328		z.DecStructFieldNotFound(yyj12-1, "")
15329	}
15330	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
15331}
15332
15333func (x *SecretProjection) CodecEncodeSelf(e *codec1978.Encoder) {
15334	var h codecSelfer1234
15335	z, r := codec1978.GenHelperEncoder(e)
15336	_, _, _ = h, z, r
15337	if x == nil {
15338		r.EncodeNil()
15339	} else {
15340		yym1 := z.EncBinary()
15341		_ = yym1
15342		if false {
15343		} else if z.HasExtensions() && z.EncExt(x) {
15344		} else {
15345			yysep2 := !z.EncBinary()
15346			yy2arr2 := z.EncBasicHandle().StructToArray
15347			var yyq2 [3]bool
15348			_, _, _ = yysep2, yyq2, yy2arr2
15349			const yyr2 bool = false
15350			yyq2[0] = x.Name != ""
15351			yyq2[1] = len(x.Items) != 0
15352			yyq2[2] = x.Optional != nil
15353			var yynn2 int
15354			if yyr2 || yy2arr2 {
15355				r.EncodeArrayStart(3)
15356			} else {
15357				yynn2 = 0
15358				for _, b := range yyq2 {
15359					if b {
15360						yynn2++
15361					}
15362				}
15363				r.EncodeMapStart(yynn2)
15364				yynn2 = 0
15365			}
15366			if yyr2 || yy2arr2 {
15367				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
15368				if yyq2[0] {
15369					yym4 := z.EncBinary()
15370					_ = yym4
15371					if false {
15372					} else {
15373						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
15374					}
15375				} else {
15376					r.EncodeString(codecSelferC_UTF81234, "")
15377				}
15378			} else {
15379				if yyq2[0] {
15380					z.EncSendContainerState(codecSelfer_containerMapKey1234)
15381					r.EncodeString(codecSelferC_UTF81234, string("name"))
15382					z.EncSendContainerState(codecSelfer_containerMapValue1234)
15383					yym5 := z.EncBinary()
15384					_ = yym5
15385					if false {
15386					} else {
15387						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
15388					}
15389				}
15390			}
15391			if yyr2 || yy2arr2 {
15392				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
15393				if yyq2[1] {
15394					if x.Items == nil {
15395						r.EncodeNil()
15396					} else {
15397						yym7 := z.EncBinary()
15398						_ = yym7
15399						if false {
15400						} else {
15401							h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
15402						}
15403					}
15404				} else {
15405					r.EncodeNil()
15406				}
15407			} else {
15408				if yyq2[1] {
15409					z.EncSendContainerState(codecSelfer_containerMapKey1234)
15410					r.EncodeString(codecSelferC_UTF81234, string("items"))
15411					z.EncSendContainerState(codecSelfer_containerMapValue1234)
15412					if x.Items == nil {
15413						r.EncodeNil()
15414					} else {
15415						yym8 := z.EncBinary()
15416						_ = yym8
15417						if false {
15418						} else {
15419							h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
15420						}
15421					}
15422				}
15423			}
15424			if yyr2 || yy2arr2 {
15425				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
15426				if yyq2[2] {
15427					if x.Optional == nil {
15428						r.EncodeNil()
15429					} else {
15430						yy10 := *x.Optional
15431						yym11 := z.EncBinary()
15432						_ = yym11
15433						if false {
15434						} else {
15435							r.EncodeBool(bool(yy10))
15436						}
15437					}
15438				} else {
15439					r.EncodeNil()
15440				}
15441			} else {
15442				if yyq2[2] {
15443					z.EncSendContainerState(codecSelfer_containerMapKey1234)
15444					r.EncodeString(codecSelferC_UTF81234, string("optional"))
15445					z.EncSendContainerState(codecSelfer_containerMapValue1234)
15446					if x.Optional == nil {
15447						r.EncodeNil()
15448					} else {
15449						yy12 := *x.Optional
15450						yym13 := z.EncBinary()
15451						_ = yym13
15452						if false {
15453						} else {
15454							r.EncodeBool(bool(yy12))
15455						}
15456					}
15457				}
15458			}
15459			if yyr2 || yy2arr2 {
15460				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
15461			} else {
15462				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
15463			}
15464		}
15465	}
15466}
15467
15468func (x *SecretProjection) CodecDecodeSelf(d *codec1978.Decoder) {
15469	var h codecSelfer1234
15470	z, r := codec1978.GenHelperDecoder(d)
15471	_, _, _ = h, z, r
15472	yym1 := z.DecBinary()
15473	_ = yym1
15474	if false {
15475	} else if z.HasExtensions() && z.DecExt(x) {
15476	} else {
15477		yyct2 := r.ContainerType()
15478		if yyct2 == codecSelferValueTypeMap1234 {
15479			yyl2 := r.ReadMapStart()
15480			if yyl2 == 0 {
15481				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
15482			} else {
15483				x.codecDecodeSelfFromMap(yyl2, d)
15484			}
15485		} else if yyct2 == codecSelferValueTypeArray1234 {
15486			yyl2 := r.ReadArrayStart()
15487			if yyl2 == 0 {
15488				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
15489			} else {
15490				x.codecDecodeSelfFromArray(yyl2, d)
15491			}
15492		} else {
15493			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
15494		}
15495	}
15496}
15497
15498func (x *SecretProjection) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
15499	var h codecSelfer1234
15500	z, r := codec1978.GenHelperDecoder(d)
15501	_, _, _ = h, z, r
15502	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
15503	_ = yys3Slc
15504	var yyhl3 bool = l >= 0
15505	for yyj3 := 0; ; yyj3++ {
15506		if yyhl3 {
15507			if yyj3 >= l {
15508				break
15509			}
15510		} else {
15511			if r.CheckBreak() {
15512				break
15513			}
15514		}
15515		z.DecSendContainerState(codecSelfer_containerMapKey1234)
15516		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
15517		yys3 := string(yys3Slc)
15518		z.DecSendContainerState(codecSelfer_containerMapValue1234)
15519		switch yys3 {
15520		case "name":
15521			if r.TryDecodeAsNil() {
15522				x.Name = ""
15523			} else {
15524				yyv4 := &x.Name
15525				yym5 := z.DecBinary()
15526				_ = yym5
15527				if false {
15528				} else {
15529					*((*string)(yyv4)) = r.DecodeString()
15530				}
15531			}
15532		case "items":
15533			if r.TryDecodeAsNil() {
15534				x.Items = nil
15535			} else {
15536				yyv6 := &x.Items
15537				yym7 := z.DecBinary()
15538				_ = yym7
15539				if false {
15540				} else {
15541					h.decSliceKeyToPath((*[]KeyToPath)(yyv6), d)
15542				}
15543			}
15544		case "optional":
15545			if r.TryDecodeAsNil() {
15546				if x.Optional != nil {
15547					x.Optional = nil
15548				}
15549			} else {
15550				if x.Optional == nil {
15551					x.Optional = new(bool)
15552				}
15553				yym9 := z.DecBinary()
15554				_ = yym9
15555				if false {
15556				} else {
15557					*((*bool)(x.Optional)) = r.DecodeBool()
15558				}
15559			}
15560		default:
15561			z.DecStructFieldNotFound(-1, yys3)
15562		} // end switch yys3
15563	} // end for yyj3
15564	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
15565}
15566
15567func (x *SecretProjection) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
15568	var h codecSelfer1234
15569	z, r := codec1978.GenHelperDecoder(d)
15570	_, _, _ = h, z, r
15571	var yyj10 int
15572	var yyb10 bool
15573	var yyhl10 bool = l >= 0
15574	yyj10++
15575	if yyhl10 {
15576		yyb10 = yyj10 > l
15577	} else {
15578		yyb10 = r.CheckBreak()
15579	}
15580	if yyb10 {
15581		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
15582		return
15583	}
15584	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
15585	if r.TryDecodeAsNil() {
15586		x.Name = ""
15587	} else {
15588		yyv11 := &x.Name
15589		yym12 := z.DecBinary()
15590		_ = yym12
15591		if false {
15592		} else {
15593			*((*string)(yyv11)) = r.DecodeString()
15594		}
15595	}
15596	yyj10++
15597	if yyhl10 {
15598		yyb10 = yyj10 > l
15599	} else {
15600		yyb10 = r.CheckBreak()
15601	}
15602	if yyb10 {
15603		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
15604		return
15605	}
15606	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
15607	if r.TryDecodeAsNil() {
15608		x.Items = nil
15609	} else {
15610		yyv13 := &x.Items
15611		yym14 := z.DecBinary()
15612		_ = yym14
15613		if false {
15614		} else {
15615			h.decSliceKeyToPath((*[]KeyToPath)(yyv13), d)
15616		}
15617	}
15618	yyj10++
15619	if yyhl10 {
15620		yyb10 = yyj10 > l
15621	} else {
15622		yyb10 = r.CheckBreak()
15623	}
15624	if yyb10 {
15625		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
15626		return
15627	}
15628	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
15629	if r.TryDecodeAsNil() {
15630		if x.Optional != nil {
15631			x.Optional = nil
15632		}
15633	} else {
15634		if x.Optional == nil {
15635			x.Optional = new(bool)
15636		}
15637		yym16 := z.DecBinary()
15638		_ = yym16
15639		if false {
15640		} else {
15641			*((*bool)(x.Optional)) = r.DecodeBool()
15642		}
15643	}
15644	for {
15645		yyj10++
15646		if yyhl10 {
15647			yyb10 = yyj10 > l
15648		} else {
15649			yyb10 = r.CheckBreak()
15650		}
15651		if yyb10 {
15652			break
15653		}
15654		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
15655		z.DecStructFieldNotFound(yyj10-1, "")
15656	}
15657	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
15658}
15659
15660func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
15661	var h codecSelfer1234
15662	z, r := codec1978.GenHelperEncoder(e)
15663	_, _, _ = h, z, r
15664	if x == nil {
15665		r.EncodeNil()
15666	} else {
15667		yym1 := z.EncBinary()
15668		_ = yym1
15669		if false {
15670		} else if z.HasExtensions() && z.EncExt(x) {
15671		} else {
15672			yysep2 := !z.EncBinary()
15673			yy2arr2 := z.EncBasicHandle().StructToArray
15674			var yyq2 [3]bool
15675			_, _, _ = yysep2, yyq2, yy2arr2
15676			const yyr2 bool = false
15677			yyq2[2] = x.ReadOnly != false
15678			var yynn2 int
15679			if yyr2 || yy2arr2 {
15680				r.EncodeArrayStart(3)
15681			} else {
15682				yynn2 = 2
15683				for _, b := range yyq2 {
15684					if b {
15685						yynn2++
15686					}
15687				}
15688				r.EncodeMapStart(yynn2)
15689				yynn2 = 0
15690			}
15691			if yyr2 || yy2arr2 {
15692				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
15693				yym4 := z.EncBinary()
15694				_ = yym4
15695				if false {
15696				} else {
15697					r.EncodeString(codecSelferC_UTF81234, string(x.Server))
15698				}
15699			} else {
15700				z.EncSendContainerState(codecSelfer_containerMapKey1234)
15701				r.EncodeString(codecSelferC_UTF81234, string("server"))
15702				z.EncSendContainerState(codecSelfer_containerMapValue1234)
15703				yym5 := z.EncBinary()
15704				_ = yym5
15705				if false {
15706				} else {
15707					r.EncodeString(codecSelferC_UTF81234, string(x.Server))
15708				}
15709			}
15710			if yyr2 || yy2arr2 {
15711				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
15712				yym7 := z.EncBinary()
15713				_ = yym7
15714				if false {
15715				} else {
15716					r.EncodeString(codecSelferC_UTF81234, string(x.Path))
15717				}
15718			} else {
15719				z.EncSendContainerState(codecSelfer_containerMapKey1234)
15720				r.EncodeString(codecSelferC_UTF81234, string("path"))
15721				z.EncSendContainerState(codecSelfer_containerMapValue1234)
15722				yym8 := z.EncBinary()
15723				_ = yym8
15724				if false {
15725				} else {
15726					r.EncodeString(codecSelferC_UTF81234, string(x.Path))
15727				}
15728			}
15729			if yyr2 || yy2arr2 {
15730				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
15731				if yyq2[2] {
15732					yym10 := z.EncBinary()
15733					_ = yym10
15734					if false {
15735					} else {
15736						r.EncodeBool(bool(x.ReadOnly))
15737					}
15738				} else {
15739					r.EncodeBool(false)
15740				}
15741			} else {
15742				if yyq2[2] {
15743					z.EncSendContainerState(codecSelfer_containerMapKey1234)
15744					r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
15745					z.EncSendContainerState(codecSelfer_containerMapValue1234)
15746					yym11 := z.EncBinary()
15747					_ = yym11
15748					if false {
15749					} else {
15750						r.EncodeBool(bool(x.ReadOnly))
15751					}
15752				}
15753			}
15754			if yyr2 || yy2arr2 {
15755				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
15756			} else {
15757				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
15758			}
15759		}
15760	}
15761}
15762
15763func (x *NFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
15764	var h codecSelfer1234
15765	z, r := codec1978.GenHelperDecoder(d)
15766	_, _, _ = h, z, r
15767	yym1 := z.DecBinary()
15768	_ = yym1
15769	if false {
15770	} else if z.HasExtensions() && z.DecExt(x) {
15771	} else {
15772		yyct2 := r.ContainerType()
15773		if yyct2 == codecSelferValueTypeMap1234 {
15774			yyl2 := r.ReadMapStart()
15775			if yyl2 == 0 {
15776				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
15777			} else {
15778				x.codecDecodeSelfFromMap(yyl2, d)
15779			}
15780		} else if yyct2 == codecSelferValueTypeArray1234 {
15781			yyl2 := r.ReadArrayStart()
15782			if yyl2 == 0 {
15783				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
15784			} else {
15785				x.codecDecodeSelfFromArray(yyl2, d)
15786			}
15787		} else {
15788			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
15789		}
15790	}
15791}
15792
15793func (x *NFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
15794	var h codecSelfer1234
15795	z, r := codec1978.GenHelperDecoder(d)
15796	_, _, _ = h, z, r
15797	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
15798	_ = yys3Slc
15799	var yyhl3 bool = l >= 0
15800	for yyj3 := 0; ; yyj3++ {
15801		if yyhl3 {
15802			if yyj3 >= l {
15803				break
15804			}
15805		} else {
15806			if r.CheckBreak() {
15807				break
15808			}
15809		}
15810		z.DecSendContainerState(codecSelfer_containerMapKey1234)
15811		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
15812		yys3 := string(yys3Slc)
15813		z.DecSendContainerState(codecSelfer_containerMapValue1234)
15814		switch yys3 {
15815		case "server":
15816			if r.TryDecodeAsNil() {
15817				x.Server = ""
15818			} else {
15819				yyv4 := &x.Server
15820				yym5 := z.DecBinary()
15821				_ = yym5
15822				if false {
15823				} else {
15824					*((*string)(yyv4)) = r.DecodeString()
15825				}
15826			}
15827		case "path":
15828			if r.TryDecodeAsNil() {
15829				x.Path = ""
15830			} else {
15831				yyv6 := &x.Path
15832				yym7 := z.DecBinary()
15833				_ = yym7
15834				if false {
15835				} else {
15836					*((*string)(yyv6)) = r.DecodeString()
15837				}
15838			}
15839		case "readOnly":
15840			if r.TryDecodeAsNil() {
15841				x.ReadOnly = false
15842			} else {
15843				yyv8 := &x.ReadOnly
15844				yym9 := z.DecBinary()
15845				_ = yym9
15846				if false {
15847				} else {
15848					*((*bool)(yyv8)) = r.DecodeBool()
15849				}
15850			}
15851		default:
15852			z.DecStructFieldNotFound(-1, yys3)
15853		} // end switch yys3
15854	} // end for yyj3
15855	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
15856}
15857
15858func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
15859	var h codecSelfer1234
15860	z, r := codec1978.GenHelperDecoder(d)
15861	_, _, _ = h, z, r
15862	var yyj10 int
15863	var yyb10 bool
15864	var yyhl10 bool = l >= 0
15865	yyj10++
15866	if yyhl10 {
15867		yyb10 = yyj10 > l
15868	} else {
15869		yyb10 = r.CheckBreak()
15870	}
15871	if yyb10 {
15872		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
15873		return
15874	}
15875	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
15876	if r.TryDecodeAsNil() {
15877		x.Server = ""
15878	} else {
15879		yyv11 := &x.Server
15880		yym12 := z.DecBinary()
15881		_ = yym12
15882		if false {
15883		} else {
15884			*((*string)(yyv11)) = r.DecodeString()
15885		}
15886	}
15887	yyj10++
15888	if yyhl10 {
15889		yyb10 = yyj10 > l
15890	} else {
15891		yyb10 = r.CheckBreak()
15892	}
15893	if yyb10 {
15894		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
15895		return
15896	}
15897	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
15898	if r.TryDecodeAsNil() {
15899		x.Path = ""
15900	} else {
15901		yyv13 := &x.Path
15902		yym14 := z.DecBinary()
15903		_ = yym14
15904		if false {
15905		} else {
15906			*((*string)(yyv13)) = r.DecodeString()
15907		}
15908	}
15909	yyj10++
15910	if yyhl10 {
15911		yyb10 = yyj10 > l
15912	} else {
15913		yyb10 = r.CheckBreak()
15914	}
15915	if yyb10 {
15916		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
15917		return
15918	}
15919	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
15920	if r.TryDecodeAsNil() {
15921		x.ReadOnly = false
15922	} else {
15923		yyv15 := &x.ReadOnly
15924		yym16 := z.DecBinary()
15925		_ = yym16
15926		if false {
15927		} else {
15928			*((*bool)(yyv15)) = r.DecodeBool()
15929		}
15930	}
15931	for {
15932		yyj10++
15933		if yyhl10 {
15934			yyb10 = yyj10 > l
15935		} else {
15936			yyb10 = r.CheckBreak()
15937		}
15938		if yyb10 {
15939			break
15940		}
15941		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
15942		z.DecStructFieldNotFound(yyj10-1, "")
15943	}
15944	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
15945}
15946
15947func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
15948	var h codecSelfer1234
15949	z, r := codec1978.GenHelperEncoder(e)
15950	_, _, _ = h, z, r
15951	if x == nil {
15952		r.EncodeNil()
15953	} else {
15954		yym1 := z.EncBinary()
15955		_ = yym1
15956		if false {
15957		} else if z.HasExtensions() && z.EncExt(x) {
15958		} else {
15959			yysep2 := !z.EncBinary()
15960			yy2arr2 := z.EncBasicHandle().StructToArray
15961			var yyq2 [7]bool
15962			_, _, _ = yysep2, yyq2, yy2arr2
15963			const yyr2 bool = false
15964			yyq2[3] = x.ISCSIInterface != ""
15965			yyq2[4] = x.FSType != ""
15966			yyq2[5] = x.ReadOnly != false
15967			yyq2[6] = len(x.Portals) != 0
15968			var yynn2 int
15969			if yyr2 || yy2arr2 {
15970				r.EncodeArrayStart(7)
15971			} else {
15972				yynn2 = 3
15973				for _, b := range yyq2 {
15974					if b {
15975						yynn2++
15976					}
15977				}
15978				r.EncodeMapStart(yynn2)
15979				yynn2 = 0
15980			}
15981			if yyr2 || yy2arr2 {
15982				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
15983				yym4 := z.EncBinary()
15984				_ = yym4
15985				if false {
15986				} else {
15987					r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal))
15988				}
15989			} else {
15990				z.EncSendContainerState(codecSelfer_containerMapKey1234)
15991				r.EncodeString(codecSelferC_UTF81234, string("targetPortal"))
15992				z.EncSendContainerState(codecSelfer_containerMapValue1234)
15993				yym5 := z.EncBinary()
15994				_ = yym5
15995				if false {
15996				} else {
15997					r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal))
15998				}
15999			}
16000			if yyr2 || yy2arr2 {
16001				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
16002				yym7 := z.EncBinary()
16003				_ = yym7
16004				if false {
16005				} else {
16006					r.EncodeString(codecSelferC_UTF81234, string(x.IQN))
16007				}
16008			} else {
16009				z.EncSendContainerState(codecSelfer_containerMapKey1234)
16010				r.EncodeString(codecSelferC_UTF81234, string("iqn"))
16011				z.EncSendContainerState(codecSelfer_containerMapValue1234)
16012				yym8 := z.EncBinary()
16013				_ = yym8
16014				if false {
16015				} else {
16016					r.EncodeString(codecSelferC_UTF81234, string(x.IQN))
16017				}
16018			}
16019			if yyr2 || yy2arr2 {
16020				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
16021				yym10 := z.EncBinary()
16022				_ = yym10
16023				if false {
16024				} else {
16025					r.EncodeInt(int64(x.Lun))
16026				}
16027			} else {
16028				z.EncSendContainerState(codecSelfer_containerMapKey1234)
16029				r.EncodeString(codecSelferC_UTF81234, string("lun"))
16030				z.EncSendContainerState(codecSelfer_containerMapValue1234)
16031				yym11 := z.EncBinary()
16032				_ = yym11
16033				if false {
16034				} else {
16035					r.EncodeInt(int64(x.Lun))
16036				}
16037			}
16038			if yyr2 || yy2arr2 {
16039				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
16040				if yyq2[3] {
16041					yym13 := z.EncBinary()
16042					_ = yym13
16043					if false {
16044					} else {
16045						r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface))
16046					}
16047				} else {
16048					r.EncodeString(codecSelferC_UTF81234, "")
16049				}
16050			} else {
16051				if yyq2[3] {
16052					z.EncSendContainerState(codecSelfer_containerMapKey1234)
16053					r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface"))
16054					z.EncSendContainerState(codecSelfer_containerMapValue1234)
16055					yym14 := z.EncBinary()
16056					_ = yym14
16057					if false {
16058					} else {
16059						r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface))
16060					}
16061				}
16062			}
16063			if yyr2 || yy2arr2 {
16064				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
16065				if yyq2[4] {
16066					yym16 := z.EncBinary()
16067					_ = yym16
16068					if false {
16069					} else {
16070						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
16071					}
16072				} else {
16073					r.EncodeString(codecSelferC_UTF81234, "")
16074				}
16075			} else {
16076				if yyq2[4] {
16077					z.EncSendContainerState(codecSelfer_containerMapKey1234)
16078					r.EncodeString(codecSelferC_UTF81234, string("fsType"))
16079					z.EncSendContainerState(codecSelfer_containerMapValue1234)
16080					yym17 := z.EncBinary()
16081					_ = yym17
16082					if false {
16083					} else {
16084						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
16085					}
16086				}
16087			}
16088			if yyr2 || yy2arr2 {
16089				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
16090				if yyq2[5] {
16091					yym19 := z.EncBinary()
16092					_ = yym19
16093					if false {
16094					} else {
16095						r.EncodeBool(bool(x.ReadOnly))
16096					}
16097				} else {
16098					r.EncodeBool(false)
16099				}
16100			} else {
16101				if yyq2[5] {
16102					z.EncSendContainerState(codecSelfer_containerMapKey1234)
16103					r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
16104					z.EncSendContainerState(codecSelfer_containerMapValue1234)
16105					yym20 := z.EncBinary()
16106					_ = yym20
16107					if false {
16108					} else {
16109						r.EncodeBool(bool(x.ReadOnly))
16110					}
16111				}
16112			}
16113			if yyr2 || yy2arr2 {
16114				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
16115				if yyq2[6] {
16116					if x.Portals == nil {
16117						r.EncodeNil()
16118					} else {
16119						yym22 := z.EncBinary()
16120						_ = yym22
16121						if false {
16122						} else {
16123							z.F.EncSliceStringV(x.Portals, false, e)
16124						}
16125					}
16126				} else {
16127					r.EncodeNil()
16128				}
16129			} else {
16130				if yyq2[6] {
16131					z.EncSendContainerState(codecSelfer_containerMapKey1234)
16132					r.EncodeString(codecSelferC_UTF81234, string("portals"))
16133					z.EncSendContainerState(codecSelfer_containerMapValue1234)
16134					if x.Portals == nil {
16135						r.EncodeNil()
16136					} else {
16137						yym23 := z.EncBinary()
16138						_ = yym23
16139						if false {
16140						} else {
16141							z.F.EncSliceStringV(x.Portals, false, e)
16142						}
16143					}
16144				}
16145			}
16146			if yyr2 || yy2arr2 {
16147				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
16148			} else {
16149				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
16150			}
16151		}
16152	}
16153}
16154
16155func (x *ISCSIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
16156	var h codecSelfer1234
16157	z, r := codec1978.GenHelperDecoder(d)
16158	_, _, _ = h, z, r
16159	yym1 := z.DecBinary()
16160	_ = yym1
16161	if false {
16162	} else if z.HasExtensions() && z.DecExt(x) {
16163	} else {
16164		yyct2 := r.ContainerType()
16165		if yyct2 == codecSelferValueTypeMap1234 {
16166			yyl2 := r.ReadMapStart()
16167			if yyl2 == 0 {
16168				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
16169			} else {
16170				x.codecDecodeSelfFromMap(yyl2, d)
16171			}
16172		} else if yyct2 == codecSelferValueTypeArray1234 {
16173			yyl2 := r.ReadArrayStart()
16174			if yyl2 == 0 {
16175				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
16176			} else {
16177				x.codecDecodeSelfFromArray(yyl2, d)
16178			}
16179		} else {
16180			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
16181		}
16182	}
16183}
16184
16185func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
16186	var h codecSelfer1234
16187	z, r := codec1978.GenHelperDecoder(d)
16188	_, _, _ = h, z, r
16189	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
16190	_ = yys3Slc
16191	var yyhl3 bool = l >= 0
16192	for yyj3 := 0; ; yyj3++ {
16193		if yyhl3 {
16194			if yyj3 >= l {
16195				break
16196			}
16197		} else {
16198			if r.CheckBreak() {
16199				break
16200			}
16201		}
16202		z.DecSendContainerState(codecSelfer_containerMapKey1234)
16203		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
16204		yys3 := string(yys3Slc)
16205		z.DecSendContainerState(codecSelfer_containerMapValue1234)
16206		switch yys3 {
16207		case "targetPortal":
16208			if r.TryDecodeAsNil() {
16209				x.TargetPortal = ""
16210			} else {
16211				yyv4 := &x.TargetPortal
16212				yym5 := z.DecBinary()
16213				_ = yym5
16214				if false {
16215				} else {
16216					*((*string)(yyv4)) = r.DecodeString()
16217				}
16218			}
16219		case "iqn":
16220			if r.TryDecodeAsNil() {
16221				x.IQN = ""
16222			} else {
16223				yyv6 := &x.IQN
16224				yym7 := z.DecBinary()
16225				_ = yym7
16226				if false {
16227				} else {
16228					*((*string)(yyv6)) = r.DecodeString()
16229				}
16230			}
16231		case "lun":
16232			if r.TryDecodeAsNil() {
16233				x.Lun = 0
16234			} else {
16235				yyv8 := &x.Lun
16236				yym9 := z.DecBinary()
16237				_ = yym9
16238				if false {
16239				} else {
16240					*((*int32)(yyv8)) = int32(r.DecodeInt(32))
16241				}
16242			}
16243		case "iscsiInterface":
16244			if r.TryDecodeAsNil() {
16245				x.ISCSIInterface = ""
16246			} else {
16247				yyv10 := &x.ISCSIInterface
16248				yym11 := z.DecBinary()
16249				_ = yym11
16250				if false {
16251				} else {
16252					*((*string)(yyv10)) = r.DecodeString()
16253				}
16254			}
16255		case "fsType":
16256			if r.TryDecodeAsNil() {
16257				x.FSType = ""
16258			} else {
16259				yyv12 := &x.FSType
16260				yym13 := z.DecBinary()
16261				_ = yym13
16262				if false {
16263				} else {
16264					*((*string)(yyv12)) = r.DecodeString()
16265				}
16266			}
16267		case "readOnly":
16268			if r.TryDecodeAsNil() {
16269				x.ReadOnly = false
16270			} else {
16271				yyv14 := &x.ReadOnly
16272				yym15 := z.DecBinary()
16273				_ = yym15
16274				if false {
16275				} else {
16276					*((*bool)(yyv14)) = r.DecodeBool()
16277				}
16278			}
16279		case "portals":
16280			if r.TryDecodeAsNil() {
16281				x.Portals = nil
16282			} else {
16283				yyv16 := &x.Portals
16284				yym17 := z.DecBinary()
16285				_ = yym17
16286				if false {
16287				} else {
16288					z.F.DecSliceStringX(yyv16, false, d)
16289				}
16290			}
16291		default:
16292			z.DecStructFieldNotFound(-1, yys3)
16293		} // end switch yys3
16294	} // end for yyj3
16295	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
16296}
16297
16298func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
16299	var h codecSelfer1234
16300	z, r := codec1978.GenHelperDecoder(d)
16301	_, _, _ = h, z, r
16302	var yyj18 int
16303	var yyb18 bool
16304	var yyhl18 bool = l >= 0
16305	yyj18++
16306	if yyhl18 {
16307		yyb18 = yyj18 > l
16308	} else {
16309		yyb18 = r.CheckBreak()
16310	}
16311	if yyb18 {
16312		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
16313		return
16314	}
16315	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
16316	if r.TryDecodeAsNil() {
16317		x.TargetPortal = ""
16318	} else {
16319		yyv19 := &x.TargetPortal
16320		yym20 := z.DecBinary()
16321		_ = yym20
16322		if false {
16323		} else {
16324			*((*string)(yyv19)) = r.DecodeString()
16325		}
16326	}
16327	yyj18++
16328	if yyhl18 {
16329		yyb18 = yyj18 > l
16330	} else {
16331		yyb18 = r.CheckBreak()
16332	}
16333	if yyb18 {
16334		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
16335		return
16336	}
16337	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
16338	if r.TryDecodeAsNil() {
16339		x.IQN = ""
16340	} else {
16341		yyv21 := &x.IQN
16342		yym22 := z.DecBinary()
16343		_ = yym22
16344		if false {
16345		} else {
16346			*((*string)(yyv21)) = r.DecodeString()
16347		}
16348	}
16349	yyj18++
16350	if yyhl18 {
16351		yyb18 = yyj18 > l
16352	} else {
16353		yyb18 = r.CheckBreak()
16354	}
16355	if yyb18 {
16356		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
16357		return
16358	}
16359	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
16360	if r.TryDecodeAsNil() {
16361		x.Lun = 0
16362	} else {
16363		yyv23 := &x.Lun
16364		yym24 := z.DecBinary()
16365		_ = yym24
16366		if false {
16367		} else {
16368			*((*int32)(yyv23)) = int32(r.DecodeInt(32))
16369		}
16370	}
16371	yyj18++
16372	if yyhl18 {
16373		yyb18 = yyj18 > l
16374	} else {
16375		yyb18 = r.CheckBreak()
16376	}
16377	if yyb18 {
16378		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
16379		return
16380	}
16381	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
16382	if r.TryDecodeAsNil() {
16383		x.ISCSIInterface = ""
16384	} else {
16385		yyv25 := &x.ISCSIInterface
16386		yym26 := z.DecBinary()
16387		_ = yym26
16388		if false {
16389		} else {
16390			*((*string)(yyv25)) = r.DecodeString()
16391		}
16392	}
16393	yyj18++
16394	if yyhl18 {
16395		yyb18 = yyj18 > l
16396	} else {
16397		yyb18 = r.CheckBreak()
16398	}
16399	if yyb18 {
16400		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
16401		return
16402	}
16403	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
16404	if r.TryDecodeAsNil() {
16405		x.FSType = ""
16406	} else {
16407		yyv27 := &x.FSType
16408		yym28 := z.DecBinary()
16409		_ = yym28
16410		if false {
16411		} else {
16412			*((*string)(yyv27)) = r.DecodeString()
16413		}
16414	}
16415	yyj18++
16416	if yyhl18 {
16417		yyb18 = yyj18 > l
16418	} else {
16419		yyb18 = r.CheckBreak()
16420	}
16421	if yyb18 {
16422		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
16423		return
16424	}
16425	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
16426	if r.TryDecodeAsNil() {
16427		x.ReadOnly = false
16428	} else {
16429		yyv29 := &x.ReadOnly
16430		yym30 := z.DecBinary()
16431		_ = yym30
16432		if false {
16433		} else {
16434			*((*bool)(yyv29)) = r.DecodeBool()
16435		}
16436	}
16437	yyj18++
16438	if yyhl18 {
16439		yyb18 = yyj18 > l
16440	} else {
16441		yyb18 = r.CheckBreak()
16442	}
16443	if yyb18 {
16444		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
16445		return
16446	}
16447	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
16448	if r.TryDecodeAsNil() {
16449		x.Portals = nil
16450	} else {
16451		yyv31 := &x.Portals
16452		yym32 := z.DecBinary()
16453		_ = yym32
16454		if false {
16455		} else {
16456			z.F.DecSliceStringX(yyv31, false, d)
16457		}
16458	}
16459	for {
16460		yyj18++
16461		if yyhl18 {
16462			yyb18 = yyj18 > l
16463		} else {
16464			yyb18 = r.CheckBreak()
16465		}
16466		if yyb18 {
16467			break
16468		}
16469		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
16470		z.DecStructFieldNotFound(yyj18-1, "")
16471	}
16472	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
16473}
16474
16475func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
16476	var h codecSelfer1234
16477	z, r := codec1978.GenHelperEncoder(e)
16478	_, _, _ = h, z, r
16479	if x == nil {
16480		r.EncodeNil()
16481	} else {
16482		yym1 := z.EncBinary()
16483		_ = yym1
16484		if false {
16485		} else if z.HasExtensions() && z.EncExt(x) {
16486		} else {
16487			yysep2 := !z.EncBinary()
16488			yy2arr2 := z.EncBasicHandle().StructToArray
16489			var yyq2 [4]bool
16490			_, _, _ = yysep2, yyq2, yy2arr2
16491			const yyr2 bool = false
16492			yyq2[2] = x.FSType != ""
16493			yyq2[3] = x.ReadOnly != false
16494			var yynn2 int
16495			if yyr2 || yy2arr2 {
16496				r.EncodeArrayStart(4)
16497			} else {
16498				yynn2 = 2
16499				for _, b := range yyq2 {
16500					if b {
16501						yynn2++
16502					}
16503				}
16504				r.EncodeMapStart(yynn2)
16505				yynn2 = 0
16506			}
16507			if yyr2 || yy2arr2 {
16508				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
16509				if x.TargetWWNs == nil {
16510					r.EncodeNil()
16511				} else {
16512					yym4 := z.EncBinary()
16513					_ = yym4
16514					if false {
16515					} else {
16516						z.F.EncSliceStringV(x.TargetWWNs, false, e)
16517					}
16518				}
16519			} else {
16520				z.EncSendContainerState(codecSelfer_containerMapKey1234)
16521				r.EncodeString(codecSelferC_UTF81234, string("targetWWNs"))
16522				z.EncSendContainerState(codecSelfer_containerMapValue1234)
16523				if x.TargetWWNs == nil {
16524					r.EncodeNil()
16525				} else {
16526					yym5 := z.EncBinary()
16527					_ = yym5
16528					if false {
16529					} else {
16530						z.F.EncSliceStringV(x.TargetWWNs, false, e)
16531					}
16532				}
16533			}
16534			if yyr2 || yy2arr2 {
16535				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
16536				if x.Lun == nil {
16537					r.EncodeNil()
16538				} else {
16539					yy7 := *x.Lun
16540					yym8 := z.EncBinary()
16541					_ = yym8
16542					if false {
16543					} else {
16544						r.EncodeInt(int64(yy7))
16545					}
16546				}
16547			} else {
16548				z.EncSendContainerState(codecSelfer_containerMapKey1234)
16549				r.EncodeString(codecSelferC_UTF81234, string("lun"))
16550				z.EncSendContainerState(codecSelfer_containerMapValue1234)
16551				if x.Lun == nil {
16552					r.EncodeNil()
16553				} else {
16554					yy9 := *x.Lun
16555					yym10 := z.EncBinary()
16556					_ = yym10
16557					if false {
16558					} else {
16559						r.EncodeInt(int64(yy9))
16560					}
16561				}
16562			}
16563			if yyr2 || yy2arr2 {
16564				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
16565				if yyq2[2] {
16566					yym12 := z.EncBinary()
16567					_ = yym12
16568					if false {
16569					} else {
16570						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
16571					}
16572				} else {
16573					r.EncodeString(codecSelferC_UTF81234, "")
16574				}
16575			} else {
16576				if yyq2[2] {
16577					z.EncSendContainerState(codecSelfer_containerMapKey1234)
16578					r.EncodeString(codecSelferC_UTF81234, string("fsType"))
16579					z.EncSendContainerState(codecSelfer_containerMapValue1234)
16580					yym13 := z.EncBinary()
16581					_ = yym13
16582					if false {
16583					} else {
16584						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
16585					}
16586				}
16587			}
16588			if yyr2 || yy2arr2 {
16589				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
16590				if yyq2[3] {
16591					yym15 := z.EncBinary()
16592					_ = yym15
16593					if false {
16594					} else {
16595						r.EncodeBool(bool(x.ReadOnly))
16596					}
16597				} else {
16598					r.EncodeBool(false)
16599				}
16600			} else {
16601				if yyq2[3] {
16602					z.EncSendContainerState(codecSelfer_containerMapKey1234)
16603					r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
16604					z.EncSendContainerState(codecSelfer_containerMapValue1234)
16605					yym16 := z.EncBinary()
16606					_ = yym16
16607					if false {
16608					} else {
16609						r.EncodeBool(bool(x.ReadOnly))
16610					}
16611				}
16612			}
16613			if yyr2 || yy2arr2 {
16614				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
16615			} else {
16616				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
16617			}
16618		}
16619	}
16620}
16621
16622func (x *FCVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
16623	var h codecSelfer1234
16624	z, r := codec1978.GenHelperDecoder(d)
16625	_, _, _ = h, z, r
16626	yym1 := z.DecBinary()
16627	_ = yym1
16628	if false {
16629	} else if z.HasExtensions() && z.DecExt(x) {
16630	} else {
16631		yyct2 := r.ContainerType()
16632		if yyct2 == codecSelferValueTypeMap1234 {
16633			yyl2 := r.ReadMapStart()
16634			if yyl2 == 0 {
16635				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
16636			} else {
16637				x.codecDecodeSelfFromMap(yyl2, d)
16638			}
16639		} else if yyct2 == codecSelferValueTypeArray1234 {
16640			yyl2 := r.ReadArrayStart()
16641			if yyl2 == 0 {
16642				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
16643			} else {
16644				x.codecDecodeSelfFromArray(yyl2, d)
16645			}
16646		} else {
16647			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
16648		}
16649	}
16650}
16651
16652func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
16653	var h codecSelfer1234
16654	z, r := codec1978.GenHelperDecoder(d)
16655	_, _, _ = h, z, r
16656	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
16657	_ = yys3Slc
16658	var yyhl3 bool = l >= 0
16659	for yyj3 := 0; ; yyj3++ {
16660		if yyhl3 {
16661			if yyj3 >= l {
16662				break
16663			}
16664		} else {
16665			if r.CheckBreak() {
16666				break
16667			}
16668		}
16669		z.DecSendContainerState(codecSelfer_containerMapKey1234)
16670		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
16671		yys3 := string(yys3Slc)
16672		z.DecSendContainerState(codecSelfer_containerMapValue1234)
16673		switch yys3 {
16674		case "targetWWNs":
16675			if r.TryDecodeAsNil() {
16676				x.TargetWWNs = nil
16677			} else {
16678				yyv4 := &x.TargetWWNs
16679				yym5 := z.DecBinary()
16680				_ = yym5
16681				if false {
16682				} else {
16683					z.F.DecSliceStringX(yyv4, false, d)
16684				}
16685			}
16686		case "lun":
16687			if r.TryDecodeAsNil() {
16688				if x.Lun != nil {
16689					x.Lun = nil
16690				}
16691			} else {
16692				if x.Lun == nil {
16693					x.Lun = new(int32)
16694				}
16695				yym7 := z.DecBinary()
16696				_ = yym7
16697				if false {
16698				} else {
16699					*((*int32)(x.Lun)) = int32(r.DecodeInt(32))
16700				}
16701			}
16702		case "fsType":
16703			if r.TryDecodeAsNil() {
16704				x.FSType = ""
16705			} else {
16706				yyv8 := &x.FSType
16707				yym9 := z.DecBinary()
16708				_ = yym9
16709				if false {
16710				} else {
16711					*((*string)(yyv8)) = r.DecodeString()
16712				}
16713			}
16714		case "readOnly":
16715			if r.TryDecodeAsNil() {
16716				x.ReadOnly = false
16717			} else {
16718				yyv10 := &x.ReadOnly
16719				yym11 := z.DecBinary()
16720				_ = yym11
16721				if false {
16722				} else {
16723					*((*bool)(yyv10)) = r.DecodeBool()
16724				}
16725			}
16726		default:
16727			z.DecStructFieldNotFound(-1, yys3)
16728		} // end switch yys3
16729	} // end for yyj3
16730	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
16731}
16732
16733func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
16734	var h codecSelfer1234
16735	z, r := codec1978.GenHelperDecoder(d)
16736	_, _, _ = h, z, r
16737	var yyj12 int
16738	var yyb12 bool
16739	var yyhl12 bool = l >= 0
16740	yyj12++
16741	if yyhl12 {
16742		yyb12 = yyj12 > l
16743	} else {
16744		yyb12 = r.CheckBreak()
16745	}
16746	if yyb12 {
16747		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
16748		return
16749	}
16750	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
16751	if r.TryDecodeAsNil() {
16752		x.TargetWWNs = nil
16753	} else {
16754		yyv13 := &x.TargetWWNs
16755		yym14 := z.DecBinary()
16756		_ = yym14
16757		if false {
16758		} else {
16759			z.F.DecSliceStringX(yyv13, false, d)
16760		}
16761	}
16762	yyj12++
16763	if yyhl12 {
16764		yyb12 = yyj12 > l
16765	} else {
16766		yyb12 = r.CheckBreak()
16767	}
16768	if yyb12 {
16769		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
16770		return
16771	}
16772	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
16773	if r.TryDecodeAsNil() {
16774		if x.Lun != nil {
16775			x.Lun = nil
16776		}
16777	} else {
16778		if x.Lun == nil {
16779			x.Lun = new(int32)
16780		}
16781		yym16 := z.DecBinary()
16782		_ = yym16
16783		if false {
16784		} else {
16785			*((*int32)(x.Lun)) = int32(r.DecodeInt(32))
16786		}
16787	}
16788	yyj12++
16789	if yyhl12 {
16790		yyb12 = yyj12 > l
16791	} else {
16792		yyb12 = r.CheckBreak()
16793	}
16794	if yyb12 {
16795		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
16796		return
16797	}
16798	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
16799	if r.TryDecodeAsNil() {
16800		x.FSType = ""
16801	} else {
16802		yyv17 := &x.FSType
16803		yym18 := z.DecBinary()
16804		_ = yym18
16805		if false {
16806		} else {
16807			*((*string)(yyv17)) = r.DecodeString()
16808		}
16809	}
16810	yyj12++
16811	if yyhl12 {
16812		yyb12 = yyj12 > l
16813	} else {
16814		yyb12 = r.CheckBreak()
16815	}
16816	if yyb12 {
16817		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
16818		return
16819	}
16820	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
16821	if r.TryDecodeAsNil() {
16822		x.ReadOnly = false
16823	} else {
16824		yyv19 := &x.ReadOnly
16825		yym20 := z.DecBinary()
16826		_ = yym20
16827		if false {
16828		} else {
16829			*((*bool)(yyv19)) = r.DecodeBool()
16830		}
16831	}
16832	for {
16833		yyj12++
16834		if yyhl12 {
16835			yyb12 = yyj12 > l
16836		} else {
16837			yyb12 = r.CheckBreak()
16838		}
16839		if yyb12 {
16840			break
16841		}
16842		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
16843		z.DecStructFieldNotFound(yyj12-1, "")
16844	}
16845	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
16846}
16847
16848func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
16849	var h codecSelfer1234
16850	z, r := codec1978.GenHelperEncoder(e)
16851	_, _, _ = h, z, r
16852	if x == nil {
16853		r.EncodeNil()
16854	} else {
16855		yym1 := z.EncBinary()
16856		_ = yym1
16857		if false {
16858		} else if z.HasExtensions() && z.EncExt(x) {
16859		} else {
16860			yysep2 := !z.EncBinary()
16861			yy2arr2 := z.EncBasicHandle().StructToArray
16862			var yyq2 [3]bool
16863			_, _, _ = yysep2, yyq2, yy2arr2
16864			const yyr2 bool = false
16865			yyq2[2] = x.ReadOnly != false
16866			var yynn2 int
16867			if yyr2 || yy2arr2 {
16868				r.EncodeArrayStart(3)
16869			} else {
16870				yynn2 = 2
16871				for _, b := range yyq2 {
16872					if b {
16873						yynn2++
16874					}
16875				}
16876				r.EncodeMapStart(yynn2)
16877				yynn2 = 0
16878			}
16879			if yyr2 || yy2arr2 {
16880				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
16881				yym4 := z.EncBinary()
16882				_ = yym4
16883				if false {
16884				} else {
16885					r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
16886				}
16887			} else {
16888				z.EncSendContainerState(codecSelfer_containerMapKey1234)
16889				r.EncodeString(codecSelferC_UTF81234, string("secretName"))
16890				z.EncSendContainerState(codecSelfer_containerMapValue1234)
16891				yym5 := z.EncBinary()
16892				_ = yym5
16893				if false {
16894				} else {
16895					r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
16896				}
16897			}
16898			if yyr2 || yy2arr2 {
16899				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
16900				yym7 := z.EncBinary()
16901				_ = yym7
16902				if false {
16903				} else {
16904					r.EncodeString(codecSelferC_UTF81234, string(x.ShareName))
16905				}
16906			} else {
16907				z.EncSendContainerState(codecSelfer_containerMapKey1234)
16908				r.EncodeString(codecSelferC_UTF81234, string("shareName"))
16909				z.EncSendContainerState(codecSelfer_containerMapValue1234)
16910				yym8 := z.EncBinary()
16911				_ = yym8
16912				if false {
16913				} else {
16914					r.EncodeString(codecSelferC_UTF81234, string(x.ShareName))
16915				}
16916			}
16917			if yyr2 || yy2arr2 {
16918				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
16919				if yyq2[2] {
16920					yym10 := z.EncBinary()
16921					_ = yym10
16922					if false {
16923					} else {
16924						r.EncodeBool(bool(x.ReadOnly))
16925					}
16926				} else {
16927					r.EncodeBool(false)
16928				}
16929			} else {
16930				if yyq2[2] {
16931					z.EncSendContainerState(codecSelfer_containerMapKey1234)
16932					r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
16933					z.EncSendContainerState(codecSelfer_containerMapValue1234)
16934					yym11 := z.EncBinary()
16935					_ = yym11
16936					if false {
16937					} else {
16938						r.EncodeBool(bool(x.ReadOnly))
16939					}
16940				}
16941			}
16942			if yyr2 || yy2arr2 {
16943				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
16944			} else {
16945				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
16946			}
16947		}
16948	}
16949}
16950
16951func (x *AzureFileVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
16952	var h codecSelfer1234
16953	z, r := codec1978.GenHelperDecoder(d)
16954	_, _, _ = h, z, r
16955	yym1 := z.DecBinary()
16956	_ = yym1
16957	if false {
16958	} else if z.HasExtensions() && z.DecExt(x) {
16959	} else {
16960		yyct2 := r.ContainerType()
16961		if yyct2 == codecSelferValueTypeMap1234 {
16962			yyl2 := r.ReadMapStart()
16963			if yyl2 == 0 {
16964				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
16965			} else {
16966				x.codecDecodeSelfFromMap(yyl2, d)
16967			}
16968		} else if yyct2 == codecSelferValueTypeArray1234 {
16969			yyl2 := r.ReadArrayStart()
16970			if yyl2 == 0 {
16971				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
16972			} else {
16973				x.codecDecodeSelfFromArray(yyl2, d)
16974			}
16975		} else {
16976			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
16977		}
16978	}
16979}
16980
16981func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
16982	var h codecSelfer1234
16983	z, r := codec1978.GenHelperDecoder(d)
16984	_, _, _ = h, z, r
16985	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
16986	_ = yys3Slc
16987	var yyhl3 bool = l >= 0
16988	for yyj3 := 0; ; yyj3++ {
16989		if yyhl3 {
16990			if yyj3 >= l {
16991				break
16992			}
16993		} else {
16994			if r.CheckBreak() {
16995				break
16996			}
16997		}
16998		z.DecSendContainerState(codecSelfer_containerMapKey1234)
16999		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
17000		yys3 := string(yys3Slc)
17001		z.DecSendContainerState(codecSelfer_containerMapValue1234)
17002		switch yys3 {
17003		case "secretName":
17004			if r.TryDecodeAsNil() {
17005				x.SecretName = ""
17006			} else {
17007				yyv4 := &x.SecretName
17008				yym5 := z.DecBinary()
17009				_ = yym5
17010				if false {
17011				} else {
17012					*((*string)(yyv4)) = r.DecodeString()
17013				}
17014			}
17015		case "shareName":
17016			if r.TryDecodeAsNil() {
17017				x.ShareName = ""
17018			} else {
17019				yyv6 := &x.ShareName
17020				yym7 := z.DecBinary()
17021				_ = yym7
17022				if false {
17023				} else {
17024					*((*string)(yyv6)) = r.DecodeString()
17025				}
17026			}
17027		case "readOnly":
17028			if r.TryDecodeAsNil() {
17029				x.ReadOnly = false
17030			} else {
17031				yyv8 := &x.ReadOnly
17032				yym9 := z.DecBinary()
17033				_ = yym9
17034				if false {
17035				} else {
17036					*((*bool)(yyv8)) = r.DecodeBool()
17037				}
17038			}
17039		default:
17040			z.DecStructFieldNotFound(-1, yys3)
17041		} // end switch yys3
17042	} // end for yyj3
17043	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
17044}
17045
17046func (x *AzureFileVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
17047	var h codecSelfer1234
17048	z, r := codec1978.GenHelperDecoder(d)
17049	_, _, _ = h, z, r
17050	var yyj10 int
17051	var yyb10 bool
17052	var yyhl10 bool = l >= 0
17053	yyj10++
17054	if yyhl10 {
17055		yyb10 = yyj10 > l
17056	} else {
17057		yyb10 = r.CheckBreak()
17058	}
17059	if yyb10 {
17060		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
17061		return
17062	}
17063	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
17064	if r.TryDecodeAsNil() {
17065		x.SecretName = ""
17066	} else {
17067		yyv11 := &x.SecretName
17068		yym12 := z.DecBinary()
17069		_ = yym12
17070		if false {
17071		} else {
17072			*((*string)(yyv11)) = r.DecodeString()
17073		}
17074	}
17075	yyj10++
17076	if yyhl10 {
17077		yyb10 = yyj10 > l
17078	} else {
17079		yyb10 = r.CheckBreak()
17080	}
17081	if yyb10 {
17082		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
17083		return
17084	}
17085	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
17086	if r.TryDecodeAsNil() {
17087		x.ShareName = ""
17088	} else {
17089		yyv13 := &x.ShareName
17090		yym14 := z.DecBinary()
17091		_ = yym14
17092		if false {
17093		} else {
17094			*((*string)(yyv13)) = r.DecodeString()
17095		}
17096	}
17097	yyj10++
17098	if yyhl10 {
17099		yyb10 = yyj10 > l
17100	} else {
17101		yyb10 = r.CheckBreak()
17102	}
17103	if yyb10 {
17104		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
17105		return
17106	}
17107	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
17108	if r.TryDecodeAsNil() {
17109		x.ReadOnly = false
17110	} else {
17111		yyv15 := &x.ReadOnly
17112		yym16 := z.DecBinary()
17113		_ = yym16
17114		if false {
17115		} else {
17116			*((*bool)(yyv15)) = r.DecodeBool()
17117		}
17118	}
17119	for {
17120		yyj10++
17121		if yyhl10 {
17122			yyb10 = yyj10 > l
17123		} else {
17124			yyb10 = r.CheckBreak()
17125		}
17126		if yyb10 {
17127			break
17128		}
17129		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
17130		z.DecStructFieldNotFound(yyj10-1, "")
17131	}
17132	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
17133}
17134
17135func (x *VsphereVirtualDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
17136	var h codecSelfer1234
17137	z, r := codec1978.GenHelperEncoder(e)
17138	_, _, _ = h, z, r
17139	if x == nil {
17140		r.EncodeNil()
17141	} else {
17142		yym1 := z.EncBinary()
17143		_ = yym1
17144		if false {
17145		} else if z.HasExtensions() && z.EncExt(x) {
17146		} else {
17147			yysep2 := !z.EncBinary()
17148			yy2arr2 := z.EncBasicHandle().StructToArray
17149			var yyq2 [2]bool
17150			_, _, _ = yysep2, yyq2, yy2arr2
17151			const yyr2 bool = false
17152			yyq2[1] = x.FSType != ""
17153			var yynn2 int
17154			if yyr2 || yy2arr2 {
17155				r.EncodeArrayStart(2)
17156			} else {
17157				yynn2 = 1
17158				for _, b := range yyq2 {
17159					if b {
17160						yynn2++
17161					}
17162				}
17163				r.EncodeMapStart(yynn2)
17164				yynn2 = 0
17165			}
17166			if yyr2 || yy2arr2 {
17167				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
17168				yym4 := z.EncBinary()
17169				_ = yym4
17170				if false {
17171				} else {
17172					r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath))
17173				}
17174			} else {
17175				z.EncSendContainerState(codecSelfer_containerMapKey1234)
17176				r.EncodeString(codecSelferC_UTF81234, string("volumePath"))
17177				z.EncSendContainerState(codecSelfer_containerMapValue1234)
17178				yym5 := z.EncBinary()
17179				_ = yym5
17180				if false {
17181				} else {
17182					r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath))
17183				}
17184			}
17185			if yyr2 || yy2arr2 {
17186				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
17187				if yyq2[1] {
17188					yym7 := z.EncBinary()
17189					_ = yym7
17190					if false {
17191					} else {
17192						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
17193					}
17194				} else {
17195					r.EncodeString(codecSelferC_UTF81234, "")
17196				}
17197			} else {
17198				if yyq2[1] {
17199					z.EncSendContainerState(codecSelfer_containerMapKey1234)
17200					r.EncodeString(codecSelferC_UTF81234, string("fsType"))
17201					z.EncSendContainerState(codecSelfer_containerMapValue1234)
17202					yym8 := z.EncBinary()
17203					_ = yym8
17204					if false {
17205					} else {
17206						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
17207					}
17208				}
17209			}
17210			if yyr2 || yy2arr2 {
17211				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
17212			} else {
17213				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
17214			}
17215		}
17216	}
17217}
17218
17219func (x *VsphereVirtualDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
17220	var h codecSelfer1234
17221	z, r := codec1978.GenHelperDecoder(d)
17222	_, _, _ = h, z, r
17223	yym1 := z.DecBinary()
17224	_ = yym1
17225	if false {
17226	} else if z.HasExtensions() && z.DecExt(x) {
17227	} else {
17228		yyct2 := r.ContainerType()
17229		if yyct2 == codecSelferValueTypeMap1234 {
17230			yyl2 := r.ReadMapStart()
17231			if yyl2 == 0 {
17232				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
17233			} else {
17234				x.codecDecodeSelfFromMap(yyl2, d)
17235			}
17236		} else if yyct2 == codecSelferValueTypeArray1234 {
17237			yyl2 := r.ReadArrayStart()
17238			if yyl2 == 0 {
17239				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
17240			} else {
17241				x.codecDecodeSelfFromArray(yyl2, d)
17242			}
17243		} else {
17244			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
17245		}
17246	}
17247}
17248
17249func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
17250	var h codecSelfer1234
17251	z, r := codec1978.GenHelperDecoder(d)
17252	_, _, _ = h, z, r
17253	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
17254	_ = yys3Slc
17255	var yyhl3 bool = l >= 0
17256	for yyj3 := 0; ; yyj3++ {
17257		if yyhl3 {
17258			if yyj3 >= l {
17259				break
17260			}
17261		} else {
17262			if r.CheckBreak() {
17263				break
17264			}
17265		}
17266		z.DecSendContainerState(codecSelfer_containerMapKey1234)
17267		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
17268		yys3 := string(yys3Slc)
17269		z.DecSendContainerState(codecSelfer_containerMapValue1234)
17270		switch yys3 {
17271		case "volumePath":
17272			if r.TryDecodeAsNil() {
17273				x.VolumePath = ""
17274			} else {
17275				yyv4 := &x.VolumePath
17276				yym5 := z.DecBinary()
17277				_ = yym5
17278				if false {
17279				} else {
17280					*((*string)(yyv4)) = r.DecodeString()
17281				}
17282			}
17283		case "fsType":
17284			if r.TryDecodeAsNil() {
17285				x.FSType = ""
17286			} else {
17287				yyv6 := &x.FSType
17288				yym7 := z.DecBinary()
17289				_ = yym7
17290				if false {
17291				} else {
17292					*((*string)(yyv6)) = r.DecodeString()
17293				}
17294			}
17295		default:
17296			z.DecStructFieldNotFound(-1, yys3)
17297		} // end switch yys3
17298	} // end for yyj3
17299	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
17300}
17301
17302func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
17303	var h codecSelfer1234
17304	z, r := codec1978.GenHelperDecoder(d)
17305	_, _, _ = h, z, r
17306	var yyj8 int
17307	var yyb8 bool
17308	var yyhl8 bool = l >= 0
17309	yyj8++
17310	if yyhl8 {
17311		yyb8 = yyj8 > l
17312	} else {
17313		yyb8 = r.CheckBreak()
17314	}
17315	if yyb8 {
17316		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
17317		return
17318	}
17319	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
17320	if r.TryDecodeAsNil() {
17321		x.VolumePath = ""
17322	} else {
17323		yyv9 := &x.VolumePath
17324		yym10 := z.DecBinary()
17325		_ = yym10
17326		if false {
17327		} else {
17328			*((*string)(yyv9)) = r.DecodeString()
17329		}
17330	}
17331	yyj8++
17332	if yyhl8 {
17333		yyb8 = yyj8 > l
17334	} else {
17335		yyb8 = r.CheckBreak()
17336	}
17337	if yyb8 {
17338		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
17339		return
17340	}
17341	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
17342	if r.TryDecodeAsNil() {
17343		x.FSType = ""
17344	} else {
17345		yyv11 := &x.FSType
17346		yym12 := z.DecBinary()
17347		_ = yym12
17348		if false {
17349		} else {
17350			*((*string)(yyv11)) = r.DecodeString()
17351		}
17352	}
17353	for {
17354		yyj8++
17355		if yyhl8 {
17356			yyb8 = yyj8 > l
17357		} else {
17358			yyb8 = r.CheckBreak()
17359		}
17360		if yyb8 {
17361			break
17362		}
17363		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
17364		z.DecStructFieldNotFound(yyj8-1, "")
17365	}
17366	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
17367}
17368
17369func (x *PhotonPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
17370	var h codecSelfer1234
17371	z, r := codec1978.GenHelperEncoder(e)
17372	_, _, _ = h, z, r
17373	if x == nil {
17374		r.EncodeNil()
17375	} else {
17376		yym1 := z.EncBinary()
17377		_ = yym1
17378		if false {
17379		} else if z.HasExtensions() && z.EncExt(x) {
17380		} else {
17381			yysep2 := !z.EncBinary()
17382			yy2arr2 := z.EncBasicHandle().StructToArray
17383			var yyq2 [2]bool
17384			_, _, _ = yysep2, yyq2, yy2arr2
17385			const yyr2 bool = false
17386			yyq2[1] = x.FSType != ""
17387			var yynn2 int
17388			if yyr2 || yy2arr2 {
17389				r.EncodeArrayStart(2)
17390			} else {
17391				yynn2 = 1
17392				for _, b := range yyq2 {
17393					if b {
17394						yynn2++
17395					}
17396				}
17397				r.EncodeMapStart(yynn2)
17398				yynn2 = 0
17399			}
17400			if yyr2 || yy2arr2 {
17401				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
17402				yym4 := z.EncBinary()
17403				_ = yym4
17404				if false {
17405				} else {
17406					r.EncodeString(codecSelferC_UTF81234, string(x.PdID))
17407				}
17408			} else {
17409				z.EncSendContainerState(codecSelfer_containerMapKey1234)
17410				r.EncodeString(codecSelferC_UTF81234, string("pdID"))
17411				z.EncSendContainerState(codecSelfer_containerMapValue1234)
17412				yym5 := z.EncBinary()
17413				_ = yym5
17414				if false {
17415				} else {
17416					r.EncodeString(codecSelferC_UTF81234, string(x.PdID))
17417				}
17418			}
17419			if yyr2 || yy2arr2 {
17420				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
17421				if yyq2[1] {
17422					yym7 := z.EncBinary()
17423					_ = yym7
17424					if false {
17425					} else {
17426						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
17427					}
17428				} else {
17429					r.EncodeString(codecSelferC_UTF81234, "")
17430				}
17431			} else {
17432				if yyq2[1] {
17433					z.EncSendContainerState(codecSelfer_containerMapKey1234)
17434					r.EncodeString(codecSelferC_UTF81234, string("fsType"))
17435					z.EncSendContainerState(codecSelfer_containerMapValue1234)
17436					yym8 := z.EncBinary()
17437					_ = yym8
17438					if false {
17439					} else {
17440						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
17441					}
17442				}
17443			}
17444			if yyr2 || yy2arr2 {
17445				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
17446			} else {
17447				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
17448			}
17449		}
17450	}
17451}
17452
17453func (x *PhotonPersistentDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
17454	var h codecSelfer1234
17455	z, r := codec1978.GenHelperDecoder(d)
17456	_, _, _ = h, z, r
17457	yym1 := z.DecBinary()
17458	_ = yym1
17459	if false {
17460	} else if z.HasExtensions() && z.DecExt(x) {
17461	} else {
17462		yyct2 := r.ContainerType()
17463		if yyct2 == codecSelferValueTypeMap1234 {
17464			yyl2 := r.ReadMapStart()
17465			if yyl2 == 0 {
17466				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
17467			} else {
17468				x.codecDecodeSelfFromMap(yyl2, d)
17469			}
17470		} else if yyct2 == codecSelferValueTypeArray1234 {
17471			yyl2 := r.ReadArrayStart()
17472			if yyl2 == 0 {
17473				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
17474			} else {
17475				x.codecDecodeSelfFromArray(yyl2, d)
17476			}
17477		} else {
17478			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
17479		}
17480	}
17481}
17482
17483func (x *PhotonPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
17484	var h codecSelfer1234
17485	z, r := codec1978.GenHelperDecoder(d)
17486	_, _, _ = h, z, r
17487	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
17488	_ = yys3Slc
17489	var yyhl3 bool = l >= 0
17490	for yyj3 := 0; ; yyj3++ {
17491		if yyhl3 {
17492			if yyj3 >= l {
17493				break
17494			}
17495		} else {
17496			if r.CheckBreak() {
17497				break
17498			}
17499		}
17500		z.DecSendContainerState(codecSelfer_containerMapKey1234)
17501		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
17502		yys3 := string(yys3Slc)
17503		z.DecSendContainerState(codecSelfer_containerMapValue1234)
17504		switch yys3 {
17505		case "pdID":
17506			if r.TryDecodeAsNil() {
17507				x.PdID = ""
17508			} else {
17509				yyv4 := &x.PdID
17510				yym5 := z.DecBinary()
17511				_ = yym5
17512				if false {
17513				} else {
17514					*((*string)(yyv4)) = r.DecodeString()
17515				}
17516			}
17517		case "fsType":
17518			if r.TryDecodeAsNil() {
17519				x.FSType = ""
17520			} else {
17521				yyv6 := &x.FSType
17522				yym7 := z.DecBinary()
17523				_ = yym7
17524				if false {
17525				} else {
17526					*((*string)(yyv6)) = r.DecodeString()
17527				}
17528			}
17529		default:
17530			z.DecStructFieldNotFound(-1, yys3)
17531		} // end switch yys3
17532	} // end for yyj3
17533	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
17534}
17535
17536func (x *PhotonPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
17537	var h codecSelfer1234
17538	z, r := codec1978.GenHelperDecoder(d)
17539	_, _, _ = h, z, r
17540	var yyj8 int
17541	var yyb8 bool
17542	var yyhl8 bool = l >= 0
17543	yyj8++
17544	if yyhl8 {
17545		yyb8 = yyj8 > l
17546	} else {
17547		yyb8 = r.CheckBreak()
17548	}
17549	if yyb8 {
17550		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
17551		return
17552	}
17553	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
17554	if r.TryDecodeAsNil() {
17555		x.PdID = ""
17556	} else {
17557		yyv9 := &x.PdID
17558		yym10 := z.DecBinary()
17559		_ = yym10
17560		if false {
17561		} else {
17562			*((*string)(yyv9)) = r.DecodeString()
17563		}
17564	}
17565	yyj8++
17566	if yyhl8 {
17567		yyb8 = yyj8 > l
17568	} else {
17569		yyb8 = r.CheckBreak()
17570	}
17571	if yyb8 {
17572		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
17573		return
17574	}
17575	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
17576	if r.TryDecodeAsNil() {
17577		x.FSType = ""
17578	} else {
17579		yyv11 := &x.FSType
17580		yym12 := z.DecBinary()
17581		_ = yym12
17582		if false {
17583		} else {
17584			*((*string)(yyv11)) = r.DecodeString()
17585		}
17586	}
17587	for {
17588		yyj8++
17589		if yyhl8 {
17590			yyb8 = yyj8 > l
17591		} else {
17592			yyb8 = r.CheckBreak()
17593		}
17594		if yyb8 {
17595			break
17596		}
17597		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
17598		z.DecStructFieldNotFound(yyj8-1, "")
17599	}
17600	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
17601}
17602
17603func (x AzureDataDiskCachingMode) CodecEncodeSelf(e *codec1978.Encoder) {
17604	var h codecSelfer1234
17605	z, r := codec1978.GenHelperEncoder(e)
17606	_, _, _ = h, z, r
17607	yym1 := z.EncBinary()
17608	_ = yym1
17609	if false {
17610	} else if z.HasExtensions() && z.EncExt(x) {
17611	} else {
17612		r.EncodeString(codecSelferC_UTF81234, string(x))
17613	}
17614}
17615
17616func (x *AzureDataDiskCachingMode) CodecDecodeSelf(d *codec1978.Decoder) {
17617	var h codecSelfer1234
17618	z, r := codec1978.GenHelperDecoder(d)
17619	_, _, _ = h, z, r
17620	yym1 := z.DecBinary()
17621	_ = yym1
17622	if false {
17623	} else if z.HasExtensions() && z.DecExt(x) {
17624	} else {
17625		*((*string)(x)) = r.DecodeString()
17626	}
17627}
17628
17629func (x *AzureDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
17630	var h codecSelfer1234
17631	z, r := codec1978.GenHelperEncoder(e)
17632	_, _, _ = h, z, r
17633	if x == nil {
17634		r.EncodeNil()
17635	} else {
17636		yym1 := z.EncBinary()
17637		_ = yym1
17638		if false {
17639		} else if z.HasExtensions() && z.EncExt(x) {
17640		} else {
17641			yysep2 := !z.EncBinary()
17642			yy2arr2 := z.EncBasicHandle().StructToArray
17643			var yyq2 [5]bool
17644			_, _, _ = yysep2, yyq2, yy2arr2
17645			const yyr2 bool = false
17646			yyq2[2] = x.CachingMode != nil
17647			yyq2[3] = x.FSType != nil
17648			yyq2[4] = x.ReadOnly != nil
17649			var yynn2 int
17650			if yyr2 || yy2arr2 {
17651				r.EncodeArrayStart(5)
17652			} else {
17653				yynn2 = 2
17654				for _, b := range yyq2 {
17655					if b {
17656						yynn2++
17657					}
17658				}
17659				r.EncodeMapStart(yynn2)
17660				yynn2 = 0
17661			}
17662			if yyr2 || yy2arr2 {
17663				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
17664				yym4 := z.EncBinary()
17665				_ = yym4
17666				if false {
17667				} else {
17668					r.EncodeString(codecSelferC_UTF81234, string(x.DiskName))
17669				}
17670			} else {
17671				z.EncSendContainerState(codecSelfer_containerMapKey1234)
17672				r.EncodeString(codecSelferC_UTF81234, string("diskName"))
17673				z.EncSendContainerState(codecSelfer_containerMapValue1234)
17674				yym5 := z.EncBinary()
17675				_ = yym5
17676				if false {
17677				} else {
17678					r.EncodeString(codecSelferC_UTF81234, string(x.DiskName))
17679				}
17680			}
17681			if yyr2 || yy2arr2 {
17682				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
17683				yym7 := z.EncBinary()
17684				_ = yym7
17685				if false {
17686				} else {
17687					r.EncodeString(codecSelferC_UTF81234, string(x.DataDiskURI))
17688				}
17689			} else {
17690				z.EncSendContainerState(codecSelfer_containerMapKey1234)
17691				r.EncodeString(codecSelferC_UTF81234, string("diskURI"))
17692				z.EncSendContainerState(codecSelfer_containerMapValue1234)
17693				yym8 := z.EncBinary()
17694				_ = yym8
17695				if false {
17696				} else {
17697					r.EncodeString(codecSelferC_UTF81234, string(x.DataDiskURI))
17698				}
17699			}
17700			if yyr2 || yy2arr2 {
17701				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
17702				if yyq2[2] {
17703					if x.CachingMode == nil {
17704						r.EncodeNil()
17705					} else {
17706						yy10 := *x.CachingMode
17707						yy10.CodecEncodeSelf(e)
17708					}
17709				} else {
17710					r.EncodeNil()
17711				}
17712			} else {
17713				if yyq2[2] {
17714					z.EncSendContainerState(codecSelfer_containerMapKey1234)
17715					r.EncodeString(codecSelferC_UTF81234, string("cachingMode"))
17716					z.EncSendContainerState(codecSelfer_containerMapValue1234)
17717					if x.CachingMode == nil {
17718						r.EncodeNil()
17719					} else {
17720						yy12 := *x.CachingMode
17721						yy12.CodecEncodeSelf(e)
17722					}
17723				}
17724			}
17725			if yyr2 || yy2arr2 {
17726				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
17727				if yyq2[3] {
17728					if x.FSType == nil {
17729						r.EncodeNil()
17730					} else {
17731						yy15 := *x.FSType
17732						yym16 := z.EncBinary()
17733						_ = yym16
17734						if false {
17735						} else {
17736							r.EncodeString(codecSelferC_UTF81234, string(yy15))
17737						}
17738					}
17739				} else {
17740					r.EncodeNil()
17741				}
17742			} else {
17743				if yyq2[3] {
17744					z.EncSendContainerState(codecSelfer_containerMapKey1234)
17745					r.EncodeString(codecSelferC_UTF81234, string("fsType"))
17746					z.EncSendContainerState(codecSelfer_containerMapValue1234)
17747					if x.FSType == nil {
17748						r.EncodeNil()
17749					} else {
17750						yy17 := *x.FSType
17751						yym18 := z.EncBinary()
17752						_ = yym18
17753						if false {
17754						} else {
17755							r.EncodeString(codecSelferC_UTF81234, string(yy17))
17756						}
17757					}
17758				}
17759			}
17760			if yyr2 || yy2arr2 {
17761				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
17762				if yyq2[4] {
17763					if x.ReadOnly == nil {
17764						r.EncodeNil()
17765					} else {
17766						yy20 := *x.ReadOnly
17767						yym21 := z.EncBinary()
17768						_ = yym21
17769						if false {
17770						} else {
17771							r.EncodeBool(bool(yy20))
17772						}
17773					}
17774				} else {
17775					r.EncodeNil()
17776				}
17777			} else {
17778				if yyq2[4] {
17779					z.EncSendContainerState(codecSelfer_containerMapKey1234)
17780					r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
17781					z.EncSendContainerState(codecSelfer_containerMapValue1234)
17782					if x.ReadOnly == nil {
17783						r.EncodeNil()
17784					} else {
17785						yy22 := *x.ReadOnly
17786						yym23 := z.EncBinary()
17787						_ = yym23
17788						if false {
17789						} else {
17790							r.EncodeBool(bool(yy22))
17791						}
17792					}
17793				}
17794			}
17795			if yyr2 || yy2arr2 {
17796				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
17797			} else {
17798				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
17799			}
17800		}
17801	}
17802}
17803
17804func (x *AzureDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
17805	var h codecSelfer1234
17806	z, r := codec1978.GenHelperDecoder(d)
17807	_, _, _ = h, z, r
17808	yym1 := z.DecBinary()
17809	_ = yym1
17810	if false {
17811	} else if z.HasExtensions() && z.DecExt(x) {
17812	} else {
17813		yyct2 := r.ContainerType()
17814		if yyct2 == codecSelferValueTypeMap1234 {
17815			yyl2 := r.ReadMapStart()
17816			if yyl2 == 0 {
17817				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
17818			} else {
17819				x.codecDecodeSelfFromMap(yyl2, d)
17820			}
17821		} else if yyct2 == codecSelferValueTypeArray1234 {
17822			yyl2 := r.ReadArrayStart()
17823			if yyl2 == 0 {
17824				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
17825			} else {
17826				x.codecDecodeSelfFromArray(yyl2, d)
17827			}
17828		} else {
17829			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
17830		}
17831	}
17832}
17833
17834func (x *AzureDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
17835	var h codecSelfer1234
17836	z, r := codec1978.GenHelperDecoder(d)
17837	_, _, _ = h, z, r
17838	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
17839	_ = yys3Slc
17840	var yyhl3 bool = l >= 0
17841	for yyj3 := 0; ; yyj3++ {
17842		if yyhl3 {
17843			if yyj3 >= l {
17844				break
17845			}
17846		} else {
17847			if r.CheckBreak() {
17848				break
17849			}
17850		}
17851		z.DecSendContainerState(codecSelfer_containerMapKey1234)
17852		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
17853		yys3 := string(yys3Slc)
17854		z.DecSendContainerState(codecSelfer_containerMapValue1234)
17855		switch yys3 {
17856		case "diskName":
17857			if r.TryDecodeAsNil() {
17858				x.DiskName = ""
17859			} else {
17860				yyv4 := &x.DiskName
17861				yym5 := z.DecBinary()
17862				_ = yym5
17863				if false {
17864				} else {
17865					*((*string)(yyv4)) = r.DecodeString()
17866				}
17867			}
17868		case "diskURI":
17869			if r.TryDecodeAsNil() {
17870				x.DataDiskURI = ""
17871			} else {
17872				yyv6 := &x.DataDiskURI
17873				yym7 := z.DecBinary()
17874				_ = yym7
17875				if false {
17876				} else {
17877					*((*string)(yyv6)) = r.DecodeString()
17878				}
17879			}
17880		case "cachingMode":
17881			if r.TryDecodeAsNil() {
17882				if x.CachingMode != nil {
17883					x.CachingMode = nil
17884				}
17885			} else {
17886				if x.CachingMode == nil {
17887					x.CachingMode = new(AzureDataDiskCachingMode)
17888				}
17889				x.CachingMode.CodecDecodeSelf(d)
17890			}
17891		case "fsType":
17892			if r.TryDecodeAsNil() {
17893				if x.FSType != nil {
17894					x.FSType = nil
17895				}
17896			} else {
17897				if x.FSType == nil {
17898					x.FSType = new(string)
17899				}
17900				yym10 := z.DecBinary()
17901				_ = yym10
17902				if false {
17903				} else {
17904					*((*string)(x.FSType)) = r.DecodeString()
17905				}
17906			}
17907		case "readOnly":
17908			if r.TryDecodeAsNil() {
17909				if x.ReadOnly != nil {
17910					x.ReadOnly = nil
17911				}
17912			} else {
17913				if x.ReadOnly == nil {
17914					x.ReadOnly = new(bool)
17915				}
17916				yym12 := z.DecBinary()
17917				_ = yym12
17918				if false {
17919				} else {
17920					*((*bool)(x.ReadOnly)) = r.DecodeBool()
17921				}
17922			}
17923		default:
17924			z.DecStructFieldNotFound(-1, yys3)
17925		} // end switch yys3
17926	} // end for yyj3
17927	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
17928}
17929
17930func (x *AzureDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
17931	var h codecSelfer1234
17932	z, r := codec1978.GenHelperDecoder(d)
17933	_, _, _ = h, z, r
17934	var yyj13 int
17935	var yyb13 bool
17936	var yyhl13 bool = l >= 0
17937	yyj13++
17938	if yyhl13 {
17939		yyb13 = yyj13 > l
17940	} else {
17941		yyb13 = r.CheckBreak()
17942	}
17943	if yyb13 {
17944		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
17945		return
17946	}
17947	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
17948	if r.TryDecodeAsNil() {
17949		x.DiskName = ""
17950	} else {
17951		yyv14 := &x.DiskName
17952		yym15 := z.DecBinary()
17953		_ = yym15
17954		if false {
17955		} else {
17956			*((*string)(yyv14)) = r.DecodeString()
17957		}
17958	}
17959	yyj13++
17960	if yyhl13 {
17961		yyb13 = yyj13 > l
17962	} else {
17963		yyb13 = r.CheckBreak()
17964	}
17965	if yyb13 {
17966		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
17967		return
17968	}
17969	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
17970	if r.TryDecodeAsNil() {
17971		x.DataDiskURI = ""
17972	} else {
17973		yyv16 := &x.DataDiskURI
17974		yym17 := z.DecBinary()
17975		_ = yym17
17976		if false {
17977		} else {
17978			*((*string)(yyv16)) = r.DecodeString()
17979		}
17980	}
17981	yyj13++
17982	if yyhl13 {
17983		yyb13 = yyj13 > l
17984	} else {
17985		yyb13 = r.CheckBreak()
17986	}
17987	if yyb13 {
17988		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
17989		return
17990	}
17991	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
17992	if r.TryDecodeAsNil() {
17993		if x.CachingMode != nil {
17994			x.CachingMode = nil
17995		}
17996	} else {
17997		if x.CachingMode == nil {
17998			x.CachingMode = new(AzureDataDiskCachingMode)
17999		}
18000		x.CachingMode.CodecDecodeSelf(d)
18001	}
18002	yyj13++
18003	if yyhl13 {
18004		yyb13 = yyj13 > l
18005	} else {
18006		yyb13 = r.CheckBreak()
18007	}
18008	if yyb13 {
18009		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
18010		return
18011	}
18012	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
18013	if r.TryDecodeAsNil() {
18014		if x.FSType != nil {
18015			x.FSType = nil
18016		}
18017	} else {
18018		if x.FSType == nil {
18019			x.FSType = new(string)
18020		}
18021		yym20 := z.DecBinary()
18022		_ = yym20
18023		if false {
18024		} else {
18025			*((*string)(x.FSType)) = r.DecodeString()
18026		}
18027	}
18028	yyj13++
18029	if yyhl13 {
18030		yyb13 = yyj13 > l
18031	} else {
18032		yyb13 = r.CheckBreak()
18033	}
18034	if yyb13 {
18035		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
18036		return
18037	}
18038	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
18039	if r.TryDecodeAsNil() {
18040		if x.ReadOnly != nil {
18041			x.ReadOnly = nil
18042		}
18043	} else {
18044		if x.ReadOnly == nil {
18045			x.ReadOnly = new(bool)
18046		}
18047		yym22 := z.DecBinary()
18048		_ = yym22
18049		if false {
18050		} else {
18051			*((*bool)(x.ReadOnly)) = r.DecodeBool()
18052		}
18053	}
18054	for {
18055		yyj13++
18056		if yyhl13 {
18057			yyb13 = yyj13 > l
18058		} else {
18059			yyb13 = r.CheckBreak()
18060		}
18061		if yyb13 {
18062			break
18063		}
18064		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
18065		z.DecStructFieldNotFound(yyj13-1, "")
18066	}
18067	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
18068}
18069
18070func (x *PortworxVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
18071	var h codecSelfer1234
18072	z, r := codec1978.GenHelperEncoder(e)
18073	_, _, _ = h, z, r
18074	if x == nil {
18075		r.EncodeNil()
18076	} else {
18077		yym1 := z.EncBinary()
18078		_ = yym1
18079		if false {
18080		} else if z.HasExtensions() && z.EncExt(x) {
18081		} else {
18082			yysep2 := !z.EncBinary()
18083			yy2arr2 := z.EncBasicHandle().StructToArray
18084			var yyq2 [3]bool
18085			_, _, _ = yysep2, yyq2, yy2arr2
18086			const yyr2 bool = false
18087			yyq2[1] = x.FSType != ""
18088			yyq2[2] = x.ReadOnly != false
18089			var yynn2 int
18090			if yyr2 || yy2arr2 {
18091				r.EncodeArrayStart(3)
18092			} else {
18093				yynn2 = 1
18094				for _, b := range yyq2 {
18095					if b {
18096						yynn2++
18097					}
18098				}
18099				r.EncodeMapStart(yynn2)
18100				yynn2 = 0
18101			}
18102			if yyr2 || yy2arr2 {
18103				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
18104				yym4 := z.EncBinary()
18105				_ = yym4
18106				if false {
18107				} else {
18108					r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
18109				}
18110			} else {
18111				z.EncSendContainerState(codecSelfer_containerMapKey1234)
18112				r.EncodeString(codecSelferC_UTF81234, string("volumeID"))
18113				z.EncSendContainerState(codecSelfer_containerMapValue1234)
18114				yym5 := z.EncBinary()
18115				_ = yym5
18116				if false {
18117				} else {
18118					r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
18119				}
18120			}
18121			if yyr2 || yy2arr2 {
18122				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
18123				if yyq2[1] {
18124					yym7 := z.EncBinary()
18125					_ = yym7
18126					if false {
18127					} else {
18128						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
18129					}
18130				} else {
18131					r.EncodeString(codecSelferC_UTF81234, "")
18132				}
18133			} else {
18134				if yyq2[1] {
18135					z.EncSendContainerState(codecSelfer_containerMapKey1234)
18136					r.EncodeString(codecSelferC_UTF81234, string("fsType"))
18137					z.EncSendContainerState(codecSelfer_containerMapValue1234)
18138					yym8 := z.EncBinary()
18139					_ = yym8
18140					if false {
18141					} else {
18142						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
18143					}
18144				}
18145			}
18146			if yyr2 || yy2arr2 {
18147				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
18148				if yyq2[2] {
18149					yym10 := z.EncBinary()
18150					_ = yym10
18151					if false {
18152					} else {
18153						r.EncodeBool(bool(x.ReadOnly))
18154					}
18155				} else {
18156					r.EncodeBool(false)
18157				}
18158			} else {
18159				if yyq2[2] {
18160					z.EncSendContainerState(codecSelfer_containerMapKey1234)
18161					r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
18162					z.EncSendContainerState(codecSelfer_containerMapValue1234)
18163					yym11 := z.EncBinary()
18164					_ = yym11
18165					if false {
18166					} else {
18167						r.EncodeBool(bool(x.ReadOnly))
18168					}
18169				}
18170			}
18171			if yyr2 || yy2arr2 {
18172				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
18173			} else {
18174				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
18175			}
18176		}
18177	}
18178}
18179
18180func (x *PortworxVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
18181	var h codecSelfer1234
18182	z, r := codec1978.GenHelperDecoder(d)
18183	_, _, _ = h, z, r
18184	yym1 := z.DecBinary()
18185	_ = yym1
18186	if false {
18187	} else if z.HasExtensions() && z.DecExt(x) {
18188	} else {
18189		yyct2 := r.ContainerType()
18190		if yyct2 == codecSelferValueTypeMap1234 {
18191			yyl2 := r.ReadMapStart()
18192			if yyl2 == 0 {
18193				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
18194			} else {
18195				x.codecDecodeSelfFromMap(yyl2, d)
18196			}
18197		} else if yyct2 == codecSelferValueTypeArray1234 {
18198			yyl2 := r.ReadArrayStart()
18199			if yyl2 == 0 {
18200				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
18201			} else {
18202				x.codecDecodeSelfFromArray(yyl2, d)
18203			}
18204		} else {
18205			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
18206		}
18207	}
18208}
18209
18210func (x *PortworxVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
18211	var h codecSelfer1234
18212	z, r := codec1978.GenHelperDecoder(d)
18213	_, _, _ = h, z, r
18214	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
18215	_ = yys3Slc
18216	var yyhl3 bool = l >= 0
18217	for yyj3 := 0; ; yyj3++ {
18218		if yyhl3 {
18219			if yyj3 >= l {
18220				break
18221			}
18222		} else {
18223			if r.CheckBreak() {
18224				break
18225			}
18226		}
18227		z.DecSendContainerState(codecSelfer_containerMapKey1234)
18228		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
18229		yys3 := string(yys3Slc)
18230		z.DecSendContainerState(codecSelfer_containerMapValue1234)
18231		switch yys3 {
18232		case "volumeID":
18233			if r.TryDecodeAsNil() {
18234				x.VolumeID = ""
18235			} else {
18236				yyv4 := &x.VolumeID
18237				yym5 := z.DecBinary()
18238				_ = yym5
18239				if false {
18240				} else {
18241					*((*string)(yyv4)) = r.DecodeString()
18242				}
18243			}
18244		case "fsType":
18245			if r.TryDecodeAsNil() {
18246				x.FSType = ""
18247			} else {
18248				yyv6 := &x.FSType
18249				yym7 := z.DecBinary()
18250				_ = yym7
18251				if false {
18252				} else {
18253					*((*string)(yyv6)) = r.DecodeString()
18254				}
18255			}
18256		case "readOnly":
18257			if r.TryDecodeAsNil() {
18258				x.ReadOnly = false
18259			} else {
18260				yyv8 := &x.ReadOnly
18261				yym9 := z.DecBinary()
18262				_ = yym9
18263				if false {
18264				} else {
18265					*((*bool)(yyv8)) = r.DecodeBool()
18266				}
18267			}
18268		default:
18269			z.DecStructFieldNotFound(-1, yys3)
18270		} // end switch yys3
18271	} // end for yyj3
18272	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
18273}
18274
18275func (x *PortworxVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
18276	var h codecSelfer1234
18277	z, r := codec1978.GenHelperDecoder(d)
18278	_, _, _ = h, z, r
18279	var yyj10 int
18280	var yyb10 bool
18281	var yyhl10 bool = l >= 0
18282	yyj10++
18283	if yyhl10 {
18284		yyb10 = yyj10 > l
18285	} else {
18286		yyb10 = r.CheckBreak()
18287	}
18288	if yyb10 {
18289		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
18290		return
18291	}
18292	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
18293	if r.TryDecodeAsNil() {
18294		x.VolumeID = ""
18295	} else {
18296		yyv11 := &x.VolumeID
18297		yym12 := z.DecBinary()
18298		_ = yym12
18299		if false {
18300		} else {
18301			*((*string)(yyv11)) = r.DecodeString()
18302		}
18303	}
18304	yyj10++
18305	if yyhl10 {
18306		yyb10 = yyj10 > l
18307	} else {
18308		yyb10 = r.CheckBreak()
18309	}
18310	if yyb10 {
18311		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
18312		return
18313	}
18314	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
18315	if r.TryDecodeAsNil() {
18316		x.FSType = ""
18317	} else {
18318		yyv13 := &x.FSType
18319		yym14 := z.DecBinary()
18320		_ = yym14
18321		if false {
18322		} else {
18323			*((*string)(yyv13)) = r.DecodeString()
18324		}
18325	}
18326	yyj10++
18327	if yyhl10 {
18328		yyb10 = yyj10 > l
18329	} else {
18330		yyb10 = r.CheckBreak()
18331	}
18332	if yyb10 {
18333		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
18334		return
18335	}
18336	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
18337	if r.TryDecodeAsNil() {
18338		x.ReadOnly = false
18339	} else {
18340		yyv15 := &x.ReadOnly
18341		yym16 := z.DecBinary()
18342		_ = yym16
18343		if false {
18344		} else {
18345			*((*bool)(yyv15)) = r.DecodeBool()
18346		}
18347	}
18348	for {
18349		yyj10++
18350		if yyhl10 {
18351			yyb10 = yyj10 > l
18352		} else {
18353			yyb10 = r.CheckBreak()
18354		}
18355		if yyb10 {
18356			break
18357		}
18358		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
18359		z.DecStructFieldNotFound(yyj10-1, "")
18360	}
18361	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
18362}
18363
18364func (x *ScaleIOVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
18365	var h codecSelfer1234
18366	z, r := codec1978.GenHelperEncoder(e)
18367	_, _, _ = h, z, r
18368	if x == nil {
18369		r.EncodeNil()
18370	} else {
18371		yym1 := z.EncBinary()
18372		_ = yym1
18373		if false {
18374		} else if z.HasExtensions() && z.EncExt(x) {
18375		} else {
18376			yysep2 := !z.EncBinary()
18377			yy2arr2 := z.EncBasicHandle().StructToArray
18378			var yyq2 [10]bool
18379			_, _, _ = yysep2, yyq2, yy2arr2
18380			const yyr2 bool = false
18381			yyq2[3] = x.SSLEnabled != false
18382			yyq2[4] = x.ProtectionDomain != ""
18383			yyq2[5] = x.StoragePool != ""
18384			yyq2[6] = x.StorageMode != ""
18385			yyq2[7] = x.VolumeName != ""
18386			yyq2[8] = x.FSType != ""
18387			yyq2[9] = x.ReadOnly != false
18388			var yynn2 int
18389			if yyr2 || yy2arr2 {
18390				r.EncodeArrayStart(10)
18391			} else {
18392				yynn2 = 3
18393				for _, b := range yyq2 {
18394					if b {
18395						yynn2++
18396					}
18397				}
18398				r.EncodeMapStart(yynn2)
18399				yynn2 = 0
18400			}
18401			if yyr2 || yy2arr2 {
18402				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
18403				yym4 := z.EncBinary()
18404				_ = yym4
18405				if false {
18406				} else {
18407					r.EncodeString(codecSelferC_UTF81234, string(x.Gateway))
18408				}
18409			} else {
18410				z.EncSendContainerState(codecSelfer_containerMapKey1234)
18411				r.EncodeString(codecSelferC_UTF81234, string("gateway"))
18412				z.EncSendContainerState(codecSelfer_containerMapValue1234)
18413				yym5 := z.EncBinary()
18414				_ = yym5
18415				if false {
18416				} else {
18417					r.EncodeString(codecSelferC_UTF81234, string(x.Gateway))
18418				}
18419			}
18420			if yyr2 || yy2arr2 {
18421				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
18422				yym7 := z.EncBinary()
18423				_ = yym7
18424				if false {
18425				} else {
18426					r.EncodeString(codecSelferC_UTF81234, string(x.System))
18427				}
18428			} else {
18429				z.EncSendContainerState(codecSelfer_containerMapKey1234)
18430				r.EncodeString(codecSelferC_UTF81234, string("system"))
18431				z.EncSendContainerState(codecSelfer_containerMapValue1234)
18432				yym8 := z.EncBinary()
18433				_ = yym8
18434				if false {
18435				} else {
18436					r.EncodeString(codecSelferC_UTF81234, string(x.System))
18437				}
18438			}
18439			if yyr2 || yy2arr2 {
18440				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
18441				if x.SecretRef == nil {
18442					r.EncodeNil()
18443				} else {
18444					x.SecretRef.CodecEncodeSelf(e)
18445				}
18446			} else {
18447				z.EncSendContainerState(codecSelfer_containerMapKey1234)
18448				r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
18449				z.EncSendContainerState(codecSelfer_containerMapValue1234)
18450				if x.SecretRef == nil {
18451					r.EncodeNil()
18452				} else {
18453					x.SecretRef.CodecEncodeSelf(e)
18454				}
18455			}
18456			if yyr2 || yy2arr2 {
18457				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
18458				if yyq2[3] {
18459					yym13 := z.EncBinary()
18460					_ = yym13
18461					if false {
18462					} else {
18463						r.EncodeBool(bool(x.SSLEnabled))
18464					}
18465				} else {
18466					r.EncodeBool(false)
18467				}
18468			} else {
18469				if yyq2[3] {
18470					z.EncSendContainerState(codecSelfer_containerMapKey1234)
18471					r.EncodeString(codecSelferC_UTF81234, string("sslEnabled"))
18472					z.EncSendContainerState(codecSelfer_containerMapValue1234)
18473					yym14 := z.EncBinary()
18474					_ = yym14
18475					if false {
18476					} else {
18477						r.EncodeBool(bool(x.SSLEnabled))
18478					}
18479				}
18480			}
18481			if yyr2 || yy2arr2 {
18482				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
18483				if yyq2[4] {
18484					yym16 := z.EncBinary()
18485					_ = yym16
18486					if false {
18487					} else {
18488						r.EncodeString(codecSelferC_UTF81234, string(x.ProtectionDomain))
18489					}
18490				} else {
18491					r.EncodeString(codecSelferC_UTF81234, "")
18492				}
18493			} else {
18494				if yyq2[4] {
18495					z.EncSendContainerState(codecSelfer_containerMapKey1234)
18496					r.EncodeString(codecSelferC_UTF81234, string("protectionDomain"))
18497					z.EncSendContainerState(codecSelfer_containerMapValue1234)
18498					yym17 := z.EncBinary()
18499					_ = yym17
18500					if false {
18501					} else {
18502						r.EncodeString(codecSelferC_UTF81234, string(x.ProtectionDomain))
18503					}
18504				}
18505			}
18506			if yyr2 || yy2arr2 {
18507				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
18508				if yyq2[5] {
18509					yym19 := z.EncBinary()
18510					_ = yym19
18511					if false {
18512					} else {
18513						r.EncodeString(codecSelferC_UTF81234, string(x.StoragePool))
18514					}
18515				} else {
18516					r.EncodeString(codecSelferC_UTF81234, "")
18517				}
18518			} else {
18519				if yyq2[5] {
18520					z.EncSendContainerState(codecSelfer_containerMapKey1234)
18521					r.EncodeString(codecSelferC_UTF81234, string("storagePool"))
18522					z.EncSendContainerState(codecSelfer_containerMapValue1234)
18523					yym20 := z.EncBinary()
18524					_ = yym20
18525					if false {
18526					} else {
18527						r.EncodeString(codecSelferC_UTF81234, string(x.StoragePool))
18528					}
18529				}
18530			}
18531			if yyr2 || yy2arr2 {
18532				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
18533				if yyq2[6] {
18534					yym22 := z.EncBinary()
18535					_ = yym22
18536					if false {
18537					} else {
18538						r.EncodeString(codecSelferC_UTF81234, string(x.StorageMode))
18539					}
18540				} else {
18541					r.EncodeString(codecSelferC_UTF81234, "")
18542				}
18543			} else {
18544				if yyq2[6] {
18545					z.EncSendContainerState(codecSelfer_containerMapKey1234)
18546					r.EncodeString(codecSelferC_UTF81234, string("storageMode"))
18547					z.EncSendContainerState(codecSelfer_containerMapValue1234)
18548					yym23 := z.EncBinary()
18549					_ = yym23
18550					if false {
18551					} else {
18552						r.EncodeString(codecSelferC_UTF81234, string(x.StorageMode))
18553					}
18554				}
18555			}
18556			if yyr2 || yy2arr2 {
18557				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
18558				if yyq2[7] {
18559					yym25 := z.EncBinary()
18560					_ = yym25
18561					if false {
18562					} else {
18563						r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
18564					}
18565				} else {
18566					r.EncodeString(codecSelferC_UTF81234, "")
18567				}
18568			} else {
18569				if yyq2[7] {
18570					z.EncSendContainerState(codecSelfer_containerMapKey1234)
18571					r.EncodeString(codecSelferC_UTF81234, string("volumeName"))
18572					z.EncSendContainerState(codecSelfer_containerMapValue1234)
18573					yym26 := z.EncBinary()
18574					_ = yym26
18575					if false {
18576					} else {
18577						r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
18578					}
18579				}
18580			}
18581			if yyr2 || yy2arr2 {
18582				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
18583				if yyq2[8] {
18584					yym28 := z.EncBinary()
18585					_ = yym28
18586					if false {
18587					} else {
18588						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
18589					}
18590				} else {
18591					r.EncodeString(codecSelferC_UTF81234, "")
18592				}
18593			} else {
18594				if yyq2[8] {
18595					z.EncSendContainerState(codecSelfer_containerMapKey1234)
18596					r.EncodeString(codecSelferC_UTF81234, string("fsType"))
18597					z.EncSendContainerState(codecSelfer_containerMapValue1234)
18598					yym29 := z.EncBinary()
18599					_ = yym29
18600					if false {
18601					} else {
18602						r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
18603					}
18604				}
18605			}
18606			if yyr2 || yy2arr2 {
18607				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
18608				if yyq2[9] {
18609					yym31 := z.EncBinary()
18610					_ = yym31
18611					if false {
18612					} else {
18613						r.EncodeBool(bool(x.ReadOnly))
18614					}
18615				} else {
18616					r.EncodeBool(false)
18617				}
18618			} else {
18619				if yyq2[9] {
18620					z.EncSendContainerState(codecSelfer_containerMapKey1234)
18621					r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
18622					z.EncSendContainerState(codecSelfer_containerMapValue1234)
18623					yym32 := z.EncBinary()
18624					_ = yym32
18625					if false {
18626					} else {
18627						r.EncodeBool(bool(x.ReadOnly))
18628					}
18629				}
18630			}
18631			if yyr2 || yy2arr2 {
18632				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
18633			} else {
18634				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
18635			}
18636		}
18637	}
18638}
18639
18640func (x *ScaleIOVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
18641	var h codecSelfer1234
18642	z, r := codec1978.GenHelperDecoder(d)
18643	_, _, _ = h, z, r
18644	yym1 := z.DecBinary()
18645	_ = yym1
18646	if false {
18647	} else if z.HasExtensions() && z.DecExt(x) {
18648	} else {
18649		yyct2 := r.ContainerType()
18650		if yyct2 == codecSelferValueTypeMap1234 {
18651			yyl2 := r.ReadMapStart()
18652			if yyl2 == 0 {
18653				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
18654			} else {
18655				x.codecDecodeSelfFromMap(yyl2, d)
18656			}
18657		} else if yyct2 == codecSelferValueTypeArray1234 {
18658			yyl2 := r.ReadArrayStart()
18659			if yyl2 == 0 {
18660				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
18661			} else {
18662				x.codecDecodeSelfFromArray(yyl2, d)
18663			}
18664		} else {
18665			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
18666		}
18667	}
18668}
18669
18670func (x *ScaleIOVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
18671	var h codecSelfer1234
18672	z, r := codec1978.GenHelperDecoder(d)
18673	_, _, _ = h, z, r
18674	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
18675	_ = yys3Slc
18676	var yyhl3 bool = l >= 0
18677	for yyj3 := 0; ; yyj3++ {
18678		if yyhl3 {
18679			if yyj3 >= l {
18680				break
18681			}
18682		} else {
18683			if r.CheckBreak() {
18684				break
18685			}
18686		}
18687		z.DecSendContainerState(codecSelfer_containerMapKey1234)
18688		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
18689		yys3 := string(yys3Slc)
18690		z.DecSendContainerState(codecSelfer_containerMapValue1234)
18691		switch yys3 {
18692		case "gateway":
18693			if r.TryDecodeAsNil() {
18694				x.Gateway = ""
18695			} else {
18696				yyv4 := &x.Gateway
18697				yym5 := z.DecBinary()
18698				_ = yym5
18699				if false {
18700				} else {
18701					*((*string)(yyv4)) = r.DecodeString()
18702				}
18703			}
18704		case "system":
18705			if r.TryDecodeAsNil() {
18706				x.System = ""
18707			} else {
18708				yyv6 := &x.System
18709				yym7 := z.DecBinary()
18710				_ = yym7
18711				if false {
18712				} else {
18713					*((*string)(yyv6)) = r.DecodeString()
18714				}
18715			}
18716		case "secretRef":
18717			if r.TryDecodeAsNil() {
18718				if x.SecretRef != nil {
18719					x.SecretRef = nil
18720				}
18721			} else {
18722				if x.SecretRef == nil {
18723					x.SecretRef = new(LocalObjectReference)
18724				}
18725				x.SecretRef.CodecDecodeSelf(d)
18726			}
18727		case "sslEnabled":
18728			if r.TryDecodeAsNil() {
18729				x.SSLEnabled = false
18730			} else {
18731				yyv9 := &x.SSLEnabled
18732				yym10 := z.DecBinary()
18733				_ = yym10
18734				if false {
18735				} else {
18736					*((*bool)(yyv9)) = r.DecodeBool()
18737				}
18738			}
18739		case "protectionDomain":
18740			if r.TryDecodeAsNil() {
18741				x.ProtectionDomain = ""
18742			} else {
18743				yyv11 := &x.ProtectionDomain
18744				yym12 := z.DecBinary()
18745				_ = yym12
18746				if false {
18747				} else {
18748					*((*string)(yyv11)) = r.DecodeString()
18749				}
18750			}
18751		case "storagePool":
18752			if r.TryDecodeAsNil() {
18753				x.StoragePool = ""
18754			} else {
18755				yyv13 := &x.StoragePool
18756				yym14 := z.DecBinary()
18757				_ = yym14
18758				if false {
18759				} else {
18760					*((*string)(yyv13)) = r.DecodeString()
18761				}
18762			}
18763		case "storageMode":
18764			if r.TryDecodeAsNil() {
18765				x.StorageMode = ""
18766			} else {
18767				yyv15 := &x.StorageMode
18768				yym16 := z.DecBinary()
18769				_ = yym16
18770				if false {
18771				} else {
18772					*((*string)(yyv15)) = r.DecodeString()
18773				}
18774			}
18775		case "volumeName":
18776			if r.TryDecodeAsNil() {
18777				x.VolumeName = ""
18778			} else {
18779				yyv17 := &x.VolumeName
18780				yym18 := z.DecBinary()
18781				_ = yym18
18782				if false {
18783				} else {
18784					*((*string)(yyv17)) = r.DecodeString()
18785				}
18786			}
18787		case "fsType":
18788			if r.TryDecodeAsNil() {
18789				x.FSType = ""
18790			} else {
18791				yyv19 := &x.FSType
18792				yym20 := z.DecBinary()
18793				_ = yym20
18794				if false {
18795				} else {
18796					*((*string)(yyv19)) = r.DecodeString()
18797				}
18798			}
18799		case "readOnly":
18800			if r.TryDecodeAsNil() {
18801				x.ReadOnly = false
18802			} else {
18803				yyv21 := &x.ReadOnly
18804				yym22 := z.DecBinary()
18805				_ = yym22
18806				if false {
18807				} else {
18808					*((*bool)(yyv21)) = r.DecodeBool()
18809				}
18810			}
18811		default:
18812			z.DecStructFieldNotFound(-1, yys3)
18813		} // end switch yys3
18814	} // end for yyj3
18815	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
18816}
18817
18818func (x *ScaleIOVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
18819	var h codecSelfer1234
18820	z, r := codec1978.GenHelperDecoder(d)
18821	_, _, _ = h, z, r
18822	var yyj23 int
18823	var yyb23 bool
18824	var yyhl23 bool = l >= 0
18825	yyj23++
18826	if yyhl23 {
18827		yyb23 = yyj23 > l
18828	} else {
18829		yyb23 = r.CheckBreak()
18830	}
18831	if yyb23 {
18832		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
18833		return
18834	}
18835	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
18836	if r.TryDecodeAsNil() {
18837		x.Gateway = ""
18838	} else {
18839		yyv24 := &x.Gateway
18840		yym25 := z.DecBinary()
18841		_ = yym25
18842		if false {
18843		} else {
18844			*((*string)(yyv24)) = r.DecodeString()
18845		}
18846	}
18847	yyj23++
18848	if yyhl23 {
18849		yyb23 = yyj23 > l
18850	} else {
18851		yyb23 = r.CheckBreak()
18852	}
18853	if yyb23 {
18854		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
18855		return
18856	}
18857	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
18858	if r.TryDecodeAsNil() {
18859		x.System = ""
18860	} else {
18861		yyv26 := &x.System
18862		yym27 := z.DecBinary()
18863		_ = yym27
18864		if false {
18865		} else {
18866			*((*string)(yyv26)) = r.DecodeString()
18867		}
18868	}
18869	yyj23++
18870	if yyhl23 {
18871		yyb23 = yyj23 > l
18872	} else {
18873		yyb23 = r.CheckBreak()
18874	}
18875	if yyb23 {
18876		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
18877		return
18878	}
18879	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
18880	if r.TryDecodeAsNil() {
18881		if x.SecretRef != nil {
18882			x.SecretRef = nil
18883		}
18884	} else {
18885		if x.SecretRef == nil {
18886			x.SecretRef = new(LocalObjectReference)
18887		}
18888		x.SecretRef.CodecDecodeSelf(d)
18889	}
18890	yyj23++
18891	if yyhl23 {
18892		yyb23 = yyj23 > l
18893	} else {
18894		yyb23 = r.CheckBreak()
18895	}
18896	if yyb23 {
18897		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
18898		return
18899	}
18900	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
18901	if r.TryDecodeAsNil() {
18902		x.SSLEnabled = false
18903	} else {
18904		yyv29 := &x.SSLEnabled
18905		yym30 := z.DecBinary()
18906		_ = yym30
18907		if false {
18908		} else {
18909			*((*bool)(yyv29)) = r.DecodeBool()
18910		}
18911	}
18912	yyj23++
18913	if yyhl23 {
18914		yyb23 = yyj23 > l
18915	} else {
18916		yyb23 = r.CheckBreak()
18917	}
18918	if yyb23 {
18919		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
18920		return
18921	}
18922	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
18923	if r.TryDecodeAsNil() {
18924		x.ProtectionDomain = ""
18925	} else {
18926		yyv31 := &x.ProtectionDomain
18927		yym32 := z.DecBinary()
18928		_ = yym32
18929		if false {
18930		} else {
18931			*((*string)(yyv31)) = r.DecodeString()
18932		}
18933	}
18934	yyj23++
18935	if yyhl23 {
18936		yyb23 = yyj23 > l
18937	} else {
18938		yyb23 = r.CheckBreak()
18939	}
18940	if yyb23 {
18941		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
18942		return
18943	}
18944	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
18945	if r.TryDecodeAsNil() {
18946		x.StoragePool = ""
18947	} else {
18948		yyv33 := &x.StoragePool
18949		yym34 := z.DecBinary()
18950		_ = yym34
18951		if false {
18952		} else {
18953			*((*string)(yyv33)) = r.DecodeString()
18954		}
18955	}
18956	yyj23++
18957	if yyhl23 {
18958		yyb23 = yyj23 > l
18959	} else {
18960		yyb23 = r.CheckBreak()
18961	}
18962	if yyb23 {
18963		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
18964		return
18965	}
18966	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
18967	if r.TryDecodeAsNil() {
18968		x.StorageMode = ""
18969	} else {
18970		yyv35 := &x.StorageMode
18971		yym36 := z.DecBinary()
18972		_ = yym36
18973		if false {
18974		} else {
18975			*((*string)(yyv35)) = r.DecodeString()
18976		}
18977	}
18978	yyj23++
18979	if yyhl23 {
18980		yyb23 = yyj23 > l
18981	} else {
18982		yyb23 = r.CheckBreak()
18983	}
18984	if yyb23 {
18985		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
18986		return
18987	}
18988	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
18989	if r.TryDecodeAsNil() {
18990		x.VolumeName = ""
18991	} else {
18992		yyv37 := &x.VolumeName
18993		yym38 := z.DecBinary()
18994		_ = yym38
18995		if false {
18996		} else {
18997			*((*string)(yyv37)) = r.DecodeString()
18998		}
18999	}
19000	yyj23++
19001	if yyhl23 {
19002		yyb23 = yyj23 > l
19003	} else {
19004		yyb23 = r.CheckBreak()
19005	}
19006	if yyb23 {
19007		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
19008		return
19009	}
19010	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
19011	if r.TryDecodeAsNil() {
19012		x.FSType = ""
19013	} else {
19014		yyv39 := &x.FSType
19015		yym40 := z.DecBinary()
19016		_ = yym40
19017		if false {
19018		} else {
19019			*((*string)(yyv39)) = r.DecodeString()
19020		}
19021	}
19022	yyj23++
19023	if yyhl23 {
19024		yyb23 = yyj23 > l
19025	} else {
19026		yyb23 = r.CheckBreak()
19027	}
19028	if yyb23 {
19029		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
19030		return
19031	}
19032	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
19033	if r.TryDecodeAsNil() {
19034		x.ReadOnly = false
19035	} else {
19036		yyv41 := &x.ReadOnly
19037		yym42 := z.DecBinary()
19038		_ = yym42
19039		if false {
19040		} else {
19041			*((*bool)(yyv41)) = r.DecodeBool()
19042		}
19043	}
19044	for {
19045		yyj23++
19046		if yyhl23 {
19047			yyb23 = yyj23 > l
19048		} else {
19049			yyb23 = r.CheckBreak()
19050		}
19051		if yyb23 {
19052			break
19053		}
19054		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
19055		z.DecStructFieldNotFound(yyj23-1, "")
19056	}
19057	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
19058}
19059
19060func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
19061	var h codecSelfer1234
19062	z, r := codec1978.GenHelperEncoder(e)
19063	_, _, _ = h, z, r
19064	if x == nil {
19065		r.EncodeNil()
19066	} else {
19067		yym1 := z.EncBinary()
19068		_ = yym1
19069		if false {
19070		} else if z.HasExtensions() && z.EncExt(x) {
19071		} else {
19072			yysep2 := !z.EncBinary()
19073			yy2arr2 := z.EncBasicHandle().StructToArray
19074			var yyq2 [4]bool
19075			_, _, _ = yysep2, yyq2, yy2arr2
19076			const yyr2 bool = false
19077			yyq2[0] = x.Name != ""
19078			yyq2[1] = len(x.Items) != 0
19079			yyq2[2] = x.DefaultMode != nil
19080			yyq2[3] = x.Optional != nil
19081			var yynn2 int
19082			if yyr2 || yy2arr2 {
19083				r.EncodeArrayStart(4)
19084			} else {
19085				yynn2 = 0
19086				for _, b := range yyq2 {
19087					if b {
19088						yynn2++
19089					}
19090				}
19091				r.EncodeMapStart(yynn2)
19092				yynn2 = 0
19093			}
19094			if yyr2 || yy2arr2 {
19095				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
19096				if yyq2[0] {
19097					yym4 := z.EncBinary()
19098					_ = yym4
19099					if false {
19100					} else {
19101						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
19102					}
19103				} else {
19104					r.EncodeString(codecSelferC_UTF81234, "")
19105				}
19106			} else {
19107				if yyq2[0] {
19108					z.EncSendContainerState(codecSelfer_containerMapKey1234)
19109					r.EncodeString(codecSelferC_UTF81234, string("name"))
19110					z.EncSendContainerState(codecSelfer_containerMapValue1234)
19111					yym5 := z.EncBinary()
19112					_ = yym5
19113					if false {
19114					} else {
19115						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
19116					}
19117				}
19118			}
19119			if yyr2 || yy2arr2 {
19120				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
19121				if yyq2[1] {
19122					if x.Items == nil {
19123						r.EncodeNil()
19124					} else {
19125						yym7 := z.EncBinary()
19126						_ = yym7
19127						if false {
19128						} else {
19129							h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
19130						}
19131					}
19132				} else {
19133					r.EncodeNil()
19134				}
19135			} else {
19136				if yyq2[1] {
19137					z.EncSendContainerState(codecSelfer_containerMapKey1234)
19138					r.EncodeString(codecSelferC_UTF81234, string("items"))
19139					z.EncSendContainerState(codecSelfer_containerMapValue1234)
19140					if x.Items == nil {
19141						r.EncodeNil()
19142					} else {
19143						yym8 := z.EncBinary()
19144						_ = yym8
19145						if false {
19146						} else {
19147							h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
19148						}
19149					}
19150				}
19151			}
19152			if yyr2 || yy2arr2 {
19153				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
19154				if yyq2[2] {
19155					if x.DefaultMode == nil {
19156						r.EncodeNil()
19157					} else {
19158						yy10 := *x.DefaultMode
19159						yym11 := z.EncBinary()
19160						_ = yym11
19161						if false {
19162						} else {
19163							r.EncodeInt(int64(yy10))
19164						}
19165					}
19166				} else {
19167					r.EncodeNil()
19168				}
19169			} else {
19170				if yyq2[2] {
19171					z.EncSendContainerState(codecSelfer_containerMapKey1234)
19172					r.EncodeString(codecSelferC_UTF81234, string("defaultMode"))
19173					z.EncSendContainerState(codecSelfer_containerMapValue1234)
19174					if x.DefaultMode == nil {
19175						r.EncodeNil()
19176					} else {
19177						yy12 := *x.DefaultMode
19178						yym13 := z.EncBinary()
19179						_ = yym13
19180						if false {
19181						} else {
19182							r.EncodeInt(int64(yy12))
19183						}
19184					}
19185				}
19186			}
19187			if yyr2 || yy2arr2 {
19188				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
19189				if yyq2[3] {
19190					if x.Optional == nil {
19191						r.EncodeNil()
19192					} else {
19193						yy15 := *x.Optional
19194						yym16 := z.EncBinary()
19195						_ = yym16
19196						if false {
19197						} else {
19198							r.EncodeBool(bool(yy15))
19199						}
19200					}
19201				} else {
19202					r.EncodeNil()
19203				}
19204			} else {
19205				if yyq2[3] {
19206					z.EncSendContainerState(codecSelfer_containerMapKey1234)
19207					r.EncodeString(codecSelferC_UTF81234, string("optional"))
19208					z.EncSendContainerState(codecSelfer_containerMapValue1234)
19209					if x.Optional == nil {
19210						r.EncodeNil()
19211					} else {
19212						yy17 := *x.Optional
19213						yym18 := z.EncBinary()
19214						_ = yym18
19215						if false {
19216						} else {
19217							r.EncodeBool(bool(yy17))
19218						}
19219					}
19220				}
19221			}
19222			if yyr2 || yy2arr2 {
19223				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
19224			} else {
19225				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
19226			}
19227		}
19228	}
19229}
19230
19231func (x *ConfigMapVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
19232	var h codecSelfer1234
19233	z, r := codec1978.GenHelperDecoder(d)
19234	_, _, _ = h, z, r
19235	yym1 := z.DecBinary()
19236	_ = yym1
19237	if false {
19238	} else if z.HasExtensions() && z.DecExt(x) {
19239	} else {
19240		yyct2 := r.ContainerType()
19241		if yyct2 == codecSelferValueTypeMap1234 {
19242			yyl2 := r.ReadMapStart()
19243			if yyl2 == 0 {
19244				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
19245			} else {
19246				x.codecDecodeSelfFromMap(yyl2, d)
19247			}
19248		} else if yyct2 == codecSelferValueTypeArray1234 {
19249			yyl2 := r.ReadArrayStart()
19250			if yyl2 == 0 {
19251				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
19252			} else {
19253				x.codecDecodeSelfFromArray(yyl2, d)
19254			}
19255		} else {
19256			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
19257		}
19258	}
19259}
19260
19261func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
19262	var h codecSelfer1234
19263	z, r := codec1978.GenHelperDecoder(d)
19264	_, _, _ = h, z, r
19265	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
19266	_ = yys3Slc
19267	var yyhl3 bool = l >= 0
19268	for yyj3 := 0; ; yyj3++ {
19269		if yyhl3 {
19270			if yyj3 >= l {
19271				break
19272			}
19273		} else {
19274			if r.CheckBreak() {
19275				break
19276			}
19277		}
19278		z.DecSendContainerState(codecSelfer_containerMapKey1234)
19279		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
19280		yys3 := string(yys3Slc)
19281		z.DecSendContainerState(codecSelfer_containerMapValue1234)
19282		switch yys3 {
19283		case "name":
19284			if r.TryDecodeAsNil() {
19285				x.Name = ""
19286			} else {
19287				yyv4 := &x.Name
19288				yym5 := z.DecBinary()
19289				_ = yym5
19290				if false {
19291				} else {
19292					*((*string)(yyv4)) = r.DecodeString()
19293				}
19294			}
19295		case "items":
19296			if r.TryDecodeAsNil() {
19297				x.Items = nil
19298			} else {
19299				yyv6 := &x.Items
19300				yym7 := z.DecBinary()
19301				_ = yym7
19302				if false {
19303				} else {
19304					h.decSliceKeyToPath((*[]KeyToPath)(yyv6), d)
19305				}
19306			}
19307		case "defaultMode":
19308			if r.TryDecodeAsNil() {
19309				if x.DefaultMode != nil {
19310					x.DefaultMode = nil
19311				}
19312			} else {
19313				if x.DefaultMode == nil {
19314					x.DefaultMode = new(int32)
19315				}
19316				yym9 := z.DecBinary()
19317				_ = yym9
19318				if false {
19319				} else {
19320					*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
19321				}
19322			}
19323		case "optional":
19324			if r.TryDecodeAsNil() {
19325				if x.Optional != nil {
19326					x.Optional = nil
19327				}
19328			} else {
19329				if x.Optional == nil {
19330					x.Optional = new(bool)
19331				}
19332				yym11 := z.DecBinary()
19333				_ = yym11
19334				if false {
19335				} else {
19336					*((*bool)(x.Optional)) = r.DecodeBool()
19337				}
19338			}
19339		default:
19340			z.DecStructFieldNotFound(-1, yys3)
19341		} // end switch yys3
19342	} // end for yyj3
19343	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
19344}
19345
19346func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
19347	var h codecSelfer1234
19348	z, r := codec1978.GenHelperDecoder(d)
19349	_, _, _ = h, z, r
19350	var yyj12 int
19351	var yyb12 bool
19352	var yyhl12 bool = l >= 0
19353	yyj12++
19354	if yyhl12 {
19355		yyb12 = yyj12 > l
19356	} else {
19357		yyb12 = r.CheckBreak()
19358	}
19359	if yyb12 {
19360		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
19361		return
19362	}
19363	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
19364	if r.TryDecodeAsNil() {
19365		x.Name = ""
19366	} else {
19367		yyv13 := &x.Name
19368		yym14 := z.DecBinary()
19369		_ = yym14
19370		if false {
19371		} else {
19372			*((*string)(yyv13)) = r.DecodeString()
19373		}
19374	}
19375	yyj12++
19376	if yyhl12 {
19377		yyb12 = yyj12 > l
19378	} else {
19379		yyb12 = r.CheckBreak()
19380	}
19381	if yyb12 {
19382		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
19383		return
19384	}
19385	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
19386	if r.TryDecodeAsNil() {
19387		x.Items = nil
19388	} else {
19389		yyv15 := &x.Items
19390		yym16 := z.DecBinary()
19391		_ = yym16
19392		if false {
19393		} else {
19394			h.decSliceKeyToPath((*[]KeyToPath)(yyv15), d)
19395		}
19396	}
19397	yyj12++
19398	if yyhl12 {
19399		yyb12 = yyj12 > l
19400	} else {
19401		yyb12 = r.CheckBreak()
19402	}
19403	if yyb12 {
19404		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
19405		return
19406	}
19407	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
19408	if r.TryDecodeAsNil() {
19409		if x.DefaultMode != nil {
19410			x.DefaultMode = nil
19411		}
19412	} else {
19413		if x.DefaultMode == nil {
19414			x.DefaultMode = new(int32)
19415		}
19416		yym18 := z.DecBinary()
19417		_ = yym18
19418		if false {
19419		} else {
19420			*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
19421		}
19422	}
19423	yyj12++
19424	if yyhl12 {
19425		yyb12 = yyj12 > l
19426	} else {
19427		yyb12 = r.CheckBreak()
19428	}
19429	if yyb12 {
19430		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
19431		return
19432	}
19433	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
19434	if r.TryDecodeAsNil() {
19435		if x.Optional != nil {
19436			x.Optional = nil
19437		}
19438	} else {
19439		if x.Optional == nil {
19440			x.Optional = new(bool)
19441		}
19442		yym20 := z.DecBinary()
19443		_ = yym20
19444		if false {
19445		} else {
19446			*((*bool)(x.Optional)) = r.DecodeBool()
19447		}
19448	}
19449	for {
19450		yyj12++
19451		if yyhl12 {
19452			yyb12 = yyj12 > l
19453		} else {
19454			yyb12 = r.CheckBreak()
19455		}
19456		if yyb12 {
19457			break
19458		}
19459		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
19460		z.DecStructFieldNotFound(yyj12-1, "")
19461	}
19462	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
19463}
19464
19465func (x *ConfigMapProjection) CodecEncodeSelf(e *codec1978.Encoder) {
19466	var h codecSelfer1234
19467	z, r := codec1978.GenHelperEncoder(e)
19468	_, _, _ = h, z, r
19469	if x == nil {
19470		r.EncodeNil()
19471	} else {
19472		yym1 := z.EncBinary()
19473		_ = yym1
19474		if false {
19475		} else if z.HasExtensions() && z.EncExt(x) {
19476		} else {
19477			yysep2 := !z.EncBinary()
19478			yy2arr2 := z.EncBasicHandle().StructToArray
19479			var yyq2 [3]bool
19480			_, _, _ = yysep2, yyq2, yy2arr2
19481			const yyr2 bool = false
19482			yyq2[0] = x.Name != ""
19483			yyq2[1] = len(x.Items) != 0
19484			yyq2[2] = x.Optional != nil
19485			var yynn2 int
19486			if yyr2 || yy2arr2 {
19487				r.EncodeArrayStart(3)
19488			} else {
19489				yynn2 = 0
19490				for _, b := range yyq2 {
19491					if b {
19492						yynn2++
19493					}
19494				}
19495				r.EncodeMapStart(yynn2)
19496				yynn2 = 0
19497			}
19498			if yyr2 || yy2arr2 {
19499				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
19500				if yyq2[0] {
19501					yym4 := z.EncBinary()
19502					_ = yym4
19503					if false {
19504					} else {
19505						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
19506					}
19507				} else {
19508					r.EncodeString(codecSelferC_UTF81234, "")
19509				}
19510			} else {
19511				if yyq2[0] {
19512					z.EncSendContainerState(codecSelfer_containerMapKey1234)
19513					r.EncodeString(codecSelferC_UTF81234, string("name"))
19514					z.EncSendContainerState(codecSelfer_containerMapValue1234)
19515					yym5 := z.EncBinary()
19516					_ = yym5
19517					if false {
19518					} else {
19519						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
19520					}
19521				}
19522			}
19523			if yyr2 || yy2arr2 {
19524				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
19525				if yyq2[1] {
19526					if x.Items == nil {
19527						r.EncodeNil()
19528					} else {
19529						yym7 := z.EncBinary()
19530						_ = yym7
19531						if false {
19532						} else {
19533							h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
19534						}
19535					}
19536				} else {
19537					r.EncodeNil()
19538				}
19539			} else {
19540				if yyq2[1] {
19541					z.EncSendContainerState(codecSelfer_containerMapKey1234)
19542					r.EncodeString(codecSelferC_UTF81234, string("items"))
19543					z.EncSendContainerState(codecSelfer_containerMapValue1234)
19544					if x.Items == nil {
19545						r.EncodeNil()
19546					} else {
19547						yym8 := z.EncBinary()
19548						_ = yym8
19549						if false {
19550						} else {
19551							h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
19552						}
19553					}
19554				}
19555			}
19556			if yyr2 || yy2arr2 {
19557				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
19558				if yyq2[2] {
19559					if x.Optional == nil {
19560						r.EncodeNil()
19561					} else {
19562						yy10 := *x.Optional
19563						yym11 := z.EncBinary()
19564						_ = yym11
19565						if false {
19566						} else {
19567							r.EncodeBool(bool(yy10))
19568						}
19569					}
19570				} else {
19571					r.EncodeNil()
19572				}
19573			} else {
19574				if yyq2[2] {
19575					z.EncSendContainerState(codecSelfer_containerMapKey1234)
19576					r.EncodeString(codecSelferC_UTF81234, string("optional"))
19577					z.EncSendContainerState(codecSelfer_containerMapValue1234)
19578					if x.Optional == nil {
19579						r.EncodeNil()
19580					} else {
19581						yy12 := *x.Optional
19582						yym13 := z.EncBinary()
19583						_ = yym13
19584						if false {
19585						} else {
19586							r.EncodeBool(bool(yy12))
19587						}
19588					}
19589				}
19590			}
19591			if yyr2 || yy2arr2 {
19592				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
19593			} else {
19594				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
19595			}
19596		}
19597	}
19598}
19599
19600func (x *ConfigMapProjection) CodecDecodeSelf(d *codec1978.Decoder) {
19601	var h codecSelfer1234
19602	z, r := codec1978.GenHelperDecoder(d)
19603	_, _, _ = h, z, r
19604	yym1 := z.DecBinary()
19605	_ = yym1
19606	if false {
19607	} else if z.HasExtensions() && z.DecExt(x) {
19608	} else {
19609		yyct2 := r.ContainerType()
19610		if yyct2 == codecSelferValueTypeMap1234 {
19611			yyl2 := r.ReadMapStart()
19612			if yyl2 == 0 {
19613				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
19614			} else {
19615				x.codecDecodeSelfFromMap(yyl2, d)
19616			}
19617		} else if yyct2 == codecSelferValueTypeArray1234 {
19618			yyl2 := r.ReadArrayStart()
19619			if yyl2 == 0 {
19620				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
19621			} else {
19622				x.codecDecodeSelfFromArray(yyl2, d)
19623			}
19624		} else {
19625			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
19626		}
19627	}
19628}
19629
19630func (x *ConfigMapProjection) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
19631	var h codecSelfer1234
19632	z, r := codec1978.GenHelperDecoder(d)
19633	_, _, _ = h, z, r
19634	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
19635	_ = yys3Slc
19636	var yyhl3 bool = l >= 0
19637	for yyj3 := 0; ; yyj3++ {
19638		if yyhl3 {
19639			if yyj3 >= l {
19640				break
19641			}
19642		} else {
19643			if r.CheckBreak() {
19644				break
19645			}
19646		}
19647		z.DecSendContainerState(codecSelfer_containerMapKey1234)
19648		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
19649		yys3 := string(yys3Slc)
19650		z.DecSendContainerState(codecSelfer_containerMapValue1234)
19651		switch yys3 {
19652		case "name":
19653			if r.TryDecodeAsNil() {
19654				x.Name = ""
19655			} else {
19656				yyv4 := &x.Name
19657				yym5 := z.DecBinary()
19658				_ = yym5
19659				if false {
19660				} else {
19661					*((*string)(yyv4)) = r.DecodeString()
19662				}
19663			}
19664		case "items":
19665			if r.TryDecodeAsNil() {
19666				x.Items = nil
19667			} else {
19668				yyv6 := &x.Items
19669				yym7 := z.DecBinary()
19670				_ = yym7
19671				if false {
19672				} else {
19673					h.decSliceKeyToPath((*[]KeyToPath)(yyv6), d)
19674				}
19675			}
19676		case "optional":
19677			if r.TryDecodeAsNil() {
19678				if x.Optional != nil {
19679					x.Optional = nil
19680				}
19681			} else {
19682				if x.Optional == nil {
19683					x.Optional = new(bool)
19684				}
19685				yym9 := z.DecBinary()
19686				_ = yym9
19687				if false {
19688				} else {
19689					*((*bool)(x.Optional)) = r.DecodeBool()
19690				}
19691			}
19692		default:
19693			z.DecStructFieldNotFound(-1, yys3)
19694		} // end switch yys3
19695	} // end for yyj3
19696	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
19697}
19698
19699func (x *ConfigMapProjection) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
19700	var h codecSelfer1234
19701	z, r := codec1978.GenHelperDecoder(d)
19702	_, _, _ = h, z, r
19703	var yyj10 int
19704	var yyb10 bool
19705	var yyhl10 bool = l >= 0
19706	yyj10++
19707	if yyhl10 {
19708		yyb10 = yyj10 > l
19709	} else {
19710		yyb10 = r.CheckBreak()
19711	}
19712	if yyb10 {
19713		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
19714		return
19715	}
19716	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
19717	if r.TryDecodeAsNil() {
19718		x.Name = ""
19719	} else {
19720		yyv11 := &x.Name
19721		yym12 := z.DecBinary()
19722		_ = yym12
19723		if false {
19724		} else {
19725			*((*string)(yyv11)) = r.DecodeString()
19726		}
19727	}
19728	yyj10++
19729	if yyhl10 {
19730		yyb10 = yyj10 > l
19731	} else {
19732		yyb10 = r.CheckBreak()
19733	}
19734	if yyb10 {
19735		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
19736		return
19737	}
19738	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
19739	if r.TryDecodeAsNil() {
19740		x.Items = nil
19741	} else {
19742		yyv13 := &x.Items
19743		yym14 := z.DecBinary()
19744		_ = yym14
19745		if false {
19746		} else {
19747			h.decSliceKeyToPath((*[]KeyToPath)(yyv13), d)
19748		}
19749	}
19750	yyj10++
19751	if yyhl10 {
19752		yyb10 = yyj10 > l
19753	} else {
19754		yyb10 = r.CheckBreak()
19755	}
19756	if yyb10 {
19757		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
19758		return
19759	}
19760	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
19761	if r.TryDecodeAsNil() {
19762		if x.Optional != nil {
19763			x.Optional = nil
19764		}
19765	} else {
19766		if x.Optional == nil {
19767			x.Optional = new(bool)
19768		}
19769		yym16 := z.DecBinary()
19770		_ = yym16
19771		if false {
19772		} else {
19773			*((*bool)(x.Optional)) = r.DecodeBool()
19774		}
19775	}
19776	for {
19777		yyj10++
19778		if yyhl10 {
19779			yyb10 = yyj10 > l
19780		} else {
19781			yyb10 = r.CheckBreak()
19782		}
19783		if yyb10 {
19784			break
19785		}
19786		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
19787		z.DecStructFieldNotFound(yyj10-1, "")
19788	}
19789	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
19790}
19791
19792func (x *ProjectedVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
19793	var h codecSelfer1234
19794	z, r := codec1978.GenHelperEncoder(e)
19795	_, _, _ = h, z, r
19796	if x == nil {
19797		r.EncodeNil()
19798	} else {
19799		yym1 := z.EncBinary()
19800		_ = yym1
19801		if false {
19802		} else if z.HasExtensions() && z.EncExt(x) {
19803		} else {
19804			yysep2 := !z.EncBinary()
19805			yy2arr2 := z.EncBasicHandle().StructToArray
19806			var yyq2 [2]bool
19807			_, _, _ = yysep2, yyq2, yy2arr2
19808			const yyr2 bool = false
19809			yyq2[1] = x.DefaultMode != nil
19810			var yynn2 int
19811			if yyr2 || yy2arr2 {
19812				r.EncodeArrayStart(2)
19813			} else {
19814				yynn2 = 1
19815				for _, b := range yyq2 {
19816					if b {
19817						yynn2++
19818					}
19819				}
19820				r.EncodeMapStart(yynn2)
19821				yynn2 = 0
19822			}
19823			if yyr2 || yy2arr2 {
19824				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
19825				if x.Sources == nil {
19826					r.EncodeNil()
19827				} else {
19828					yym4 := z.EncBinary()
19829					_ = yym4
19830					if false {
19831					} else {
19832						h.encSliceVolumeProjection(([]VolumeProjection)(x.Sources), e)
19833					}
19834				}
19835			} else {
19836				z.EncSendContainerState(codecSelfer_containerMapKey1234)
19837				r.EncodeString(codecSelferC_UTF81234, string("sources"))
19838				z.EncSendContainerState(codecSelfer_containerMapValue1234)
19839				if x.Sources == nil {
19840					r.EncodeNil()
19841				} else {
19842					yym5 := z.EncBinary()
19843					_ = yym5
19844					if false {
19845					} else {
19846						h.encSliceVolumeProjection(([]VolumeProjection)(x.Sources), e)
19847					}
19848				}
19849			}
19850			if yyr2 || yy2arr2 {
19851				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
19852				if yyq2[1] {
19853					if x.DefaultMode == nil {
19854						r.EncodeNil()
19855					} else {
19856						yy7 := *x.DefaultMode
19857						yym8 := z.EncBinary()
19858						_ = yym8
19859						if false {
19860						} else {
19861							r.EncodeInt(int64(yy7))
19862						}
19863					}
19864				} else {
19865					r.EncodeNil()
19866				}
19867			} else {
19868				if yyq2[1] {
19869					z.EncSendContainerState(codecSelfer_containerMapKey1234)
19870					r.EncodeString(codecSelferC_UTF81234, string("defaultMode"))
19871					z.EncSendContainerState(codecSelfer_containerMapValue1234)
19872					if x.DefaultMode == nil {
19873						r.EncodeNil()
19874					} else {
19875						yy9 := *x.DefaultMode
19876						yym10 := z.EncBinary()
19877						_ = yym10
19878						if false {
19879						} else {
19880							r.EncodeInt(int64(yy9))
19881						}
19882					}
19883				}
19884			}
19885			if yyr2 || yy2arr2 {
19886				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
19887			} else {
19888				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
19889			}
19890		}
19891	}
19892}
19893
19894func (x *ProjectedVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
19895	var h codecSelfer1234
19896	z, r := codec1978.GenHelperDecoder(d)
19897	_, _, _ = h, z, r
19898	yym1 := z.DecBinary()
19899	_ = yym1
19900	if false {
19901	} else if z.HasExtensions() && z.DecExt(x) {
19902	} else {
19903		yyct2 := r.ContainerType()
19904		if yyct2 == codecSelferValueTypeMap1234 {
19905			yyl2 := r.ReadMapStart()
19906			if yyl2 == 0 {
19907				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
19908			} else {
19909				x.codecDecodeSelfFromMap(yyl2, d)
19910			}
19911		} else if yyct2 == codecSelferValueTypeArray1234 {
19912			yyl2 := r.ReadArrayStart()
19913			if yyl2 == 0 {
19914				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
19915			} else {
19916				x.codecDecodeSelfFromArray(yyl2, d)
19917			}
19918		} else {
19919			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
19920		}
19921	}
19922}
19923
19924func (x *ProjectedVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
19925	var h codecSelfer1234
19926	z, r := codec1978.GenHelperDecoder(d)
19927	_, _, _ = h, z, r
19928	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
19929	_ = yys3Slc
19930	var yyhl3 bool = l >= 0
19931	for yyj3 := 0; ; yyj3++ {
19932		if yyhl3 {
19933			if yyj3 >= l {
19934				break
19935			}
19936		} else {
19937			if r.CheckBreak() {
19938				break
19939			}
19940		}
19941		z.DecSendContainerState(codecSelfer_containerMapKey1234)
19942		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
19943		yys3 := string(yys3Slc)
19944		z.DecSendContainerState(codecSelfer_containerMapValue1234)
19945		switch yys3 {
19946		case "sources":
19947			if r.TryDecodeAsNil() {
19948				x.Sources = nil
19949			} else {
19950				yyv4 := &x.Sources
19951				yym5 := z.DecBinary()
19952				_ = yym5
19953				if false {
19954				} else {
19955					h.decSliceVolumeProjection((*[]VolumeProjection)(yyv4), d)
19956				}
19957			}
19958		case "defaultMode":
19959			if r.TryDecodeAsNil() {
19960				if x.DefaultMode != nil {
19961					x.DefaultMode = nil
19962				}
19963			} else {
19964				if x.DefaultMode == nil {
19965					x.DefaultMode = new(int32)
19966				}
19967				yym7 := z.DecBinary()
19968				_ = yym7
19969				if false {
19970				} else {
19971					*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
19972				}
19973			}
19974		default:
19975			z.DecStructFieldNotFound(-1, yys3)
19976		} // end switch yys3
19977	} // end for yyj3
19978	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
19979}
19980
19981func (x *ProjectedVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
19982	var h codecSelfer1234
19983	z, r := codec1978.GenHelperDecoder(d)
19984	_, _, _ = h, z, r
19985	var yyj8 int
19986	var yyb8 bool
19987	var yyhl8 bool = l >= 0
19988	yyj8++
19989	if yyhl8 {
19990		yyb8 = yyj8 > l
19991	} else {
19992		yyb8 = r.CheckBreak()
19993	}
19994	if yyb8 {
19995		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
19996		return
19997	}
19998	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
19999	if r.TryDecodeAsNil() {
20000		x.Sources = nil
20001	} else {
20002		yyv9 := &x.Sources
20003		yym10 := z.DecBinary()
20004		_ = yym10
20005		if false {
20006		} else {
20007			h.decSliceVolumeProjection((*[]VolumeProjection)(yyv9), d)
20008		}
20009	}
20010	yyj8++
20011	if yyhl8 {
20012		yyb8 = yyj8 > l
20013	} else {
20014		yyb8 = r.CheckBreak()
20015	}
20016	if yyb8 {
20017		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
20018		return
20019	}
20020	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
20021	if r.TryDecodeAsNil() {
20022		if x.DefaultMode != nil {
20023			x.DefaultMode = nil
20024		}
20025	} else {
20026		if x.DefaultMode == nil {
20027			x.DefaultMode = new(int32)
20028		}
20029		yym12 := z.DecBinary()
20030		_ = yym12
20031		if false {
20032		} else {
20033			*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
20034		}
20035	}
20036	for {
20037		yyj8++
20038		if yyhl8 {
20039			yyb8 = yyj8 > l
20040		} else {
20041			yyb8 = r.CheckBreak()
20042		}
20043		if yyb8 {
20044			break
20045		}
20046		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
20047		z.DecStructFieldNotFound(yyj8-1, "")
20048	}
20049	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
20050}
20051
20052func (x *VolumeProjection) CodecEncodeSelf(e *codec1978.Encoder) {
20053	var h codecSelfer1234
20054	z, r := codec1978.GenHelperEncoder(e)
20055	_, _, _ = h, z, r
20056	if x == nil {
20057		r.EncodeNil()
20058	} else {
20059		yym1 := z.EncBinary()
20060		_ = yym1
20061		if false {
20062		} else if z.HasExtensions() && z.EncExt(x) {
20063		} else {
20064			yysep2 := !z.EncBinary()
20065			yy2arr2 := z.EncBasicHandle().StructToArray
20066			var yyq2 [3]bool
20067			_, _, _ = yysep2, yyq2, yy2arr2
20068			const yyr2 bool = false
20069			yyq2[0] = x.Secret != nil
20070			yyq2[1] = x.DownwardAPI != nil
20071			yyq2[2] = x.ConfigMap != nil
20072			var yynn2 int
20073			if yyr2 || yy2arr2 {
20074				r.EncodeArrayStart(3)
20075			} else {
20076				yynn2 = 0
20077				for _, b := range yyq2 {
20078					if b {
20079						yynn2++
20080					}
20081				}
20082				r.EncodeMapStart(yynn2)
20083				yynn2 = 0
20084			}
20085			if yyr2 || yy2arr2 {
20086				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
20087				if yyq2[0] {
20088					if x.Secret == nil {
20089						r.EncodeNil()
20090					} else {
20091						x.Secret.CodecEncodeSelf(e)
20092					}
20093				} else {
20094					r.EncodeNil()
20095				}
20096			} else {
20097				if yyq2[0] {
20098					z.EncSendContainerState(codecSelfer_containerMapKey1234)
20099					r.EncodeString(codecSelferC_UTF81234, string("secret"))
20100					z.EncSendContainerState(codecSelfer_containerMapValue1234)
20101					if x.Secret == nil {
20102						r.EncodeNil()
20103					} else {
20104						x.Secret.CodecEncodeSelf(e)
20105					}
20106				}
20107			}
20108			if yyr2 || yy2arr2 {
20109				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
20110				if yyq2[1] {
20111					if x.DownwardAPI == nil {
20112						r.EncodeNil()
20113					} else {
20114						x.DownwardAPI.CodecEncodeSelf(e)
20115					}
20116				} else {
20117					r.EncodeNil()
20118				}
20119			} else {
20120				if yyq2[1] {
20121					z.EncSendContainerState(codecSelfer_containerMapKey1234)
20122					r.EncodeString(codecSelferC_UTF81234, string("downwardAPI"))
20123					z.EncSendContainerState(codecSelfer_containerMapValue1234)
20124					if x.DownwardAPI == nil {
20125						r.EncodeNil()
20126					} else {
20127						x.DownwardAPI.CodecEncodeSelf(e)
20128					}
20129				}
20130			}
20131			if yyr2 || yy2arr2 {
20132				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
20133				if yyq2[2] {
20134					if x.ConfigMap == nil {
20135						r.EncodeNil()
20136					} else {
20137						x.ConfigMap.CodecEncodeSelf(e)
20138					}
20139				} else {
20140					r.EncodeNil()
20141				}
20142			} else {
20143				if yyq2[2] {
20144					z.EncSendContainerState(codecSelfer_containerMapKey1234)
20145					r.EncodeString(codecSelferC_UTF81234, string("configMap"))
20146					z.EncSendContainerState(codecSelfer_containerMapValue1234)
20147					if x.ConfigMap == nil {
20148						r.EncodeNil()
20149					} else {
20150						x.ConfigMap.CodecEncodeSelf(e)
20151					}
20152				}
20153			}
20154			if yyr2 || yy2arr2 {
20155				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
20156			} else {
20157				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
20158			}
20159		}
20160	}
20161}
20162
20163func (x *VolumeProjection) CodecDecodeSelf(d *codec1978.Decoder) {
20164	var h codecSelfer1234
20165	z, r := codec1978.GenHelperDecoder(d)
20166	_, _, _ = h, z, r
20167	yym1 := z.DecBinary()
20168	_ = yym1
20169	if false {
20170	} else if z.HasExtensions() && z.DecExt(x) {
20171	} else {
20172		yyct2 := r.ContainerType()
20173		if yyct2 == codecSelferValueTypeMap1234 {
20174			yyl2 := r.ReadMapStart()
20175			if yyl2 == 0 {
20176				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
20177			} else {
20178				x.codecDecodeSelfFromMap(yyl2, d)
20179			}
20180		} else if yyct2 == codecSelferValueTypeArray1234 {
20181			yyl2 := r.ReadArrayStart()
20182			if yyl2 == 0 {
20183				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
20184			} else {
20185				x.codecDecodeSelfFromArray(yyl2, d)
20186			}
20187		} else {
20188			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
20189		}
20190	}
20191}
20192
20193func (x *VolumeProjection) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
20194	var h codecSelfer1234
20195	z, r := codec1978.GenHelperDecoder(d)
20196	_, _, _ = h, z, r
20197	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
20198	_ = yys3Slc
20199	var yyhl3 bool = l >= 0
20200	for yyj3 := 0; ; yyj3++ {
20201		if yyhl3 {
20202			if yyj3 >= l {
20203				break
20204			}
20205		} else {
20206			if r.CheckBreak() {
20207				break
20208			}
20209		}
20210		z.DecSendContainerState(codecSelfer_containerMapKey1234)
20211		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
20212		yys3 := string(yys3Slc)
20213		z.DecSendContainerState(codecSelfer_containerMapValue1234)
20214		switch yys3 {
20215		case "secret":
20216			if r.TryDecodeAsNil() {
20217				if x.Secret != nil {
20218					x.Secret = nil
20219				}
20220			} else {
20221				if x.Secret == nil {
20222					x.Secret = new(SecretProjection)
20223				}
20224				x.Secret.CodecDecodeSelf(d)
20225			}
20226		case "downwardAPI":
20227			if r.TryDecodeAsNil() {
20228				if x.DownwardAPI != nil {
20229					x.DownwardAPI = nil
20230				}
20231			} else {
20232				if x.DownwardAPI == nil {
20233					x.DownwardAPI = new(DownwardAPIProjection)
20234				}
20235				x.DownwardAPI.CodecDecodeSelf(d)
20236			}
20237		case "configMap":
20238			if r.TryDecodeAsNil() {
20239				if x.ConfigMap != nil {
20240					x.ConfigMap = nil
20241				}
20242			} else {
20243				if x.ConfigMap == nil {
20244					x.ConfigMap = new(ConfigMapProjection)
20245				}
20246				x.ConfigMap.CodecDecodeSelf(d)
20247			}
20248		default:
20249			z.DecStructFieldNotFound(-1, yys3)
20250		} // end switch yys3
20251	} // end for yyj3
20252	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
20253}
20254
20255func (x *VolumeProjection) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
20256	var h codecSelfer1234
20257	z, r := codec1978.GenHelperDecoder(d)
20258	_, _, _ = h, z, r
20259	var yyj7 int
20260	var yyb7 bool
20261	var yyhl7 bool = l >= 0
20262	yyj7++
20263	if yyhl7 {
20264		yyb7 = yyj7 > l
20265	} else {
20266		yyb7 = r.CheckBreak()
20267	}
20268	if yyb7 {
20269		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
20270		return
20271	}
20272	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
20273	if r.TryDecodeAsNil() {
20274		if x.Secret != nil {
20275			x.Secret = nil
20276		}
20277	} else {
20278		if x.Secret == nil {
20279			x.Secret = new(SecretProjection)
20280		}
20281		x.Secret.CodecDecodeSelf(d)
20282	}
20283	yyj7++
20284	if yyhl7 {
20285		yyb7 = yyj7 > l
20286	} else {
20287		yyb7 = r.CheckBreak()
20288	}
20289	if yyb7 {
20290		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
20291		return
20292	}
20293	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
20294	if r.TryDecodeAsNil() {
20295		if x.DownwardAPI != nil {
20296			x.DownwardAPI = nil
20297		}
20298	} else {
20299		if x.DownwardAPI == nil {
20300			x.DownwardAPI = new(DownwardAPIProjection)
20301		}
20302		x.DownwardAPI.CodecDecodeSelf(d)
20303	}
20304	yyj7++
20305	if yyhl7 {
20306		yyb7 = yyj7 > l
20307	} else {
20308		yyb7 = r.CheckBreak()
20309	}
20310	if yyb7 {
20311		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
20312		return
20313	}
20314	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
20315	if r.TryDecodeAsNil() {
20316		if x.ConfigMap != nil {
20317			x.ConfigMap = nil
20318		}
20319	} else {
20320		if x.ConfigMap == nil {
20321			x.ConfigMap = new(ConfigMapProjection)
20322		}
20323		x.ConfigMap.CodecDecodeSelf(d)
20324	}
20325	for {
20326		yyj7++
20327		if yyhl7 {
20328			yyb7 = yyj7 > l
20329		} else {
20330			yyb7 = r.CheckBreak()
20331		}
20332		if yyb7 {
20333			break
20334		}
20335		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
20336		z.DecStructFieldNotFound(yyj7-1, "")
20337	}
20338	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
20339}
20340
20341func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) {
20342	var h codecSelfer1234
20343	z, r := codec1978.GenHelperEncoder(e)
20344	_, _, _ = h, z, r
20345	if x == nil {
20346		r.EncodeNil()
20347	} else {
20348		yym1 := z.EncBinary()
20349		_ = yym1
20350		if false {
20351		} else if z.HasExtensions() && z.EncExt(x) {
20352		} else {
20353			yysep2 := !z.EncBinary()
20354			yy2arr2 := z.EncBasicHandle().StructToArray
20355			var yyq2 [3]bool
20356			_, _, _ = yysep2, yyq2, yy2arr2
20357			const yyr2 bool = false
20358			yyq2[2] = x.Mode != nil
20359			var yynn2 int
20360			if yyr2 || yy2arr2 {
20361				r.EncodeArrayStart(3)
20362			} else {
20363				yynn2 = 2
20364				for _, b := range yyq2 {
20365					if b {
20366						yynn2++
20367					}
20368				}
20369				r.EncodeMapStart(yynn2)
20370				yynn2 = 0
20371			}
20372			if yyr2 || yy2arr2 {
20373				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
20374				yym4 := z.EncBinary()
20375				_ = yym4
20376				if false {
20377				} else {
20378					r.EncodeString(codecSelferC_UTF81234, string(x.Key))
20379				}
20380			} else {
20381				z.EncSendContainerState(codecSelfer_containerMapKey1234)
20382				r.EncodeString(codecSelferC_UTF81234, string("key"))
20383				z.EncSendContainerState(codecSelfer_containerMapValue1234)
20384				yym5 := z.EncBinary()
20385				_ = yym5
20386				if false {
20387				} else {
20388					r.EncodeString(codecSelferC_UTF81234, string(x.Key))
20389				}
20390			}
20391			if yyr2 || yy2arr2 {
20392				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
20393				yym7 := z.EncBinary()
20394				_ = yym7
20395				if false {
20396				} else {
20397					r.EncodeString(codecSelferC_UTF81234, string(x.Path))
20398				}
20399			} else {
20400				z.EncSendContainerState(codecSelfer_containerMapKey1234)
20401				r.EncodeString(codecSelferC_UTF81234, string("path"))
20402				z.EncSendContainerState(codecSelfer_containerMapValue1234)
20403				yym8 := z.EncBinary()
20404				_ = yym8
20405				if false {
20406				} else {
20407					r.EncodeString(codecSelferC_UTF81234, string(x.Path))
20408				}
20409			}
20410			if yyr2 || yy2arr2 {
20411				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
20412				if yyq2[2] {
20413					if x.Mode == nil {
20414						r.EncodeNil()
20415					} else {
20416						yy10 := *x.Mode
20417						yym11 := z.EncBinary()
20418						_ = yym11
20419						if false {
20420						} else {
20421							r.EncodeInt(int64(yy10))
20422						}
20423					}
20424				} else {
20425					r.EncodeNil()
20426				}
20427			} else {
20428				if yyq2[2] {
20429					z.EncSendContainerState(codecSelfer_containerMapKey1234)
20430					r.EncodeString(codecSelferC_UTF81234, string("mode"))
20431					z.EncSendContainerState(codecSelfer_containerMapValue1234)
20432					if x.Mode == nil {
20433						r.EncodeNil()
20434					} else {
20435						yy12 := *x.Mode
20436						yym13 := z.EncBinary()
20437						_ = yym13
20438						if false {
20439						} else {
20440							r.EncodeInt(int64(yy12))
20441						}
20442					}
20443				}
20444			}
20445			if yyr2 || yy2arr2 {
20446				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
20447			} else {
20448				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
20449			}
20450		}
20451	}
20452}
20453
20454func (x *KeyToPath) CodecDecodeSelf(d *codec1978.Decoder) {
20455	var h codecSelfer1234
20456	z, r := codec1978.GenHelperDecoder(d)
20457	_, _, _ = h, z, r
20458	yym1 := z.DecBinary()
20459	_ = yym1
20460	if false {
20461	} else if z.HasExtensions() && z.DecExt(x) {
20462	} else {
20463		yyct2 := r.ContainerType()
20464		if yyct2 == codecSelferValueTypeMap1234 {
20465			yyl2 := r.ReadMapStart()
20466			if yyl2 == 0 {
20467				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
20468			} else {
20469				x.codecDecodeSelfFromMap(yyl2, d)
20470			}
20471		} else if yyct2 == codecSelferValueTypeArray1234 {
20472			yyl2 := r.ReadArrayStart()
20473			if yyl2 == 0 {
20474				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
20475			} else {
20476				x.codecDecodeSelfFromArray(yyl2, d)
20477			}
20478		} else {
20479			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
20480		}
20481	}
20482}
20483
20484func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
20485	var h codecSelfer1234
20486	z, r := codec1978.GenHelperDecoder(d)
20487	_, _, _ = h, z, r
20488	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
20489	_ = yys3Slc
20490	var yyhl3 bool = l >= 0
20491	for yyj3 := 0; ; yyj3++ {
20492		if yyhl3 {
20493			if yyj3 >= l {
20494				break
20495			}
20496		} else {
20497			if r.CheckBreak() {
20498				break
20499			}
20500		}
20501		z.DecSendContainerState(codecSelfer_containerMapKey1234)
20502		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
20503		yys3 := string(yys3Slc)
20504		z.DecSendContainerState(codecSelfer_containerMapValue1234)
20505		switch yys3 {
20506		case "key":
20507			if r.TryDecodeAsNil() {
20508				x.Key = ""
20509			} else {
20510				yyv4 := &x.Key
20511				yym5 := z.DecBinary()
20512				_ = yym5
20513				if false {
20514				} else {
20515					*((*string)(yyv4)) = r.DecodeString()
20516				}
20517			}
20518		case "path":
20519			if r.TryDecodeAsNil() {
20520				x.Path = ""
20521			} else {
20522				yyv6 := &x.Path
20523				yym7 := z.DecBinary()
20524				_ = yym7
20525				if false {
20526				} else {
20527					*((*string)(yyv6)) = r.DecodeString()
20528				}
20529			}
20530		case "mode":
20531			if r.TryDecodeAsNil() {
20532				if x.Mode != nil {
20533					x.Mode = nil
20534				}
20535			} else {
20536				if x.Mode == nil {
20537					x.Mode = new(int32)
20538				}
20539				yym9 := z.DecBinary()
20540				_ = yym9
20541				if false {
20542				} else {
20543					*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
20544				}
20545			}
20546		default:
20547			z.DecStructFieldNotFound(-1, yys3)
20548		} // end switch yys3
20549	} // end for yyj3
20550	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
20551}
20552
20553func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
20554	var h codecSelfer1234
20555	z, r := codec1978.GenHelperDecoder(d)
20556	_, _, _ = h, z, r
20557	var yyj10 int
20558	var yyb10 bool
20559	var yyhl10 bool = l >= 0
20560	yyj10++
20561	if yyhl10 {
20562		yyb10 = yyj10 > l
20563	} else {
20564		yyb10 = r.CheckBreak()
20565	}
20566	if yyb10 {
20567		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
20568		return
20569	}
20570	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
20571	if r.TryDecodeAsNil() {
20572		x.Key = ""
20573	} else {
20574		yyv11 := &x.Key
20575		yym12 := z.DecBinary()
20576		_ = yym12
20577		if false {
20578		} else {
20579			*((*string)(yyv11)) = r.DecodeString()
20580		}
20581	}
20582	yyj10++
20583	if yyhl10 {
20584		yyb10 = yyj10 > l
20585	} else {
20586		yyb10 = r.CheckBreak()
20587	}
20588	if yyb10 {
20589		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
20590		return
20591	}
20592	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
20593	if r.TryDecodeAsNil() {
20594		x.Path = ""
20595	} else {
20596		yyv13 := &x.Path
20597		yym14 := z.DecBinary()
20598		_ = yym14
20599		if false {
20600		} else {
20601			*((*string)(yyv13)) = r.DecodeString()
20602		}
20603	}
20604	yyj10++
20605	if yyhl10 {
20606		yyb10 = yyj10 > l
20607	} else {
20608		yyb10 = r.CheckBreak()
20609	}
20610	if yyb10 {
20611		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
20612		return
20613	}
20614	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
20615	if r.TryDecodeAsNil() {
20616		if x.Mode != nil {
20617			x.Mode = nil
20618		}
20619	} else {
20620		if x.Mode == nil {
20621			x.Mode = new(int32)
20622		}
20623		yym16 := z.DecBinary()
20624		_ = yym16
20625		if false {
20626		} else {
20627			*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
20628		}
20629	}
20630	for {
20631		yyj10++
20632		if yyhl10 {
20633			yyb10 = yyj10 > l
20634		} else {
20635			yyb10 = r.CheckBreak()
20636		}
20637		if yyb10 {
20638			break
20639		}
20640		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
20641		z.DecStructFieldNotFound(yyj10-1, "")
20642	}
20643	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
20644}
20645
20646func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) {
20647	var h codecSelfer1234
20648	z, r := codec1978.GenHelperEncoder(e)
20649	_, _, _ = h, z, r
20650	if x == nil {
20651		r.EncodeNil()
20652	} else {
20653		yym1 := z.EncBinary()
20654		_ = yym1
20655		if false {
20656		} else if z.HasExtensions() && z.EncExt(x) {
20657		} else {
20658			yysep2 := !z.EncBinary()
20659			yy2arr2 := z.EncBasicHandle().StructToArray
20660			var yyq2 [5]bool
20661			_, _, _ = yysep2, yyq2, yy2arr2
20662			const yyr2 bool = false
20663			yyq2[0] = x.Name != ""
20664			yyq2[1] = x.HostPort != 0
20665			yyq2[3] = x.Protocol != ""
20666			yyq2[4] = x.HostIP != ""
20667			var yynn2 int
20668			if yyr2 || yy2arr2 {
20669				r.EncodeArrayStart(5)
20670			} else {
20671				yynn2 = 1
20672				for _, b := range yyq2 {
20673					if b {
20674						yynn2++
20675					}
20676				}
20677				r.EncodeMapStart(yynn2)
20678				yynn2 = 0
20679			}
20680			if yyr2 || yy2arr2 {
20681				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
20682				if yyq2[0] {
20683					yym4 := z.EncBinary()
20684					_ = yym4
20685					if false {
20686					} else {
20687						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
20688					}
20689				} else {
20690					r.EncodeString(codecSelferC_UTF81234, "")
20691				}
20692			} else {
20693				if yyq2[0] {
20694					z.EncSendContainerState(codecSelfer_containerMapKey1234)
20695					r.EncodeString(codecSelferC_UTF81234, string("name"))
20696					z.EncSendContainerState(codecSelfer_containerMapValue1234)
20697					yym5 := z.EncBinary()
20698					_ = yym5
20699					if false {
20700					} else {
20701						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
20702					}
20703				}
20704			}
20705			if yyr2 || yy2arr2 {
20706				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
20707				if yyq2[1] {
20708					yym7 := z.EncBinary()
20709					_ = yym7
20710					if false {
20711					} else {
20712						r.EncodeInt(int64(x.HostPort))
20713					}
20714				} else {
20715					r.EncodeInt(0)
20716				}
20717			} else {
20718				if yyq2[1] {
20719					z.EncSendContainerState(codecSelfer_containerMapKey1234)
20720					r.EncodeString(codecSelferC_UTF81234, string("hostPort"))
20721					z.EncSendContainerState(codecSelfer_containerMapValue1234)
20722					yym8 := z.EncBinary()
20723					_ = yym8
20724					if false {
20725					} else {
20726						r.EncodeInt(int64(x.HostPort))
20727					}
20728				}
20729			}
20730			if yyr2 || yy2arr2 {
20731				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
20732				yym10 := z.EncBinary()
20733				_ = yym10
20734				if false {
20735				} else {
20736					r.EncodeInt(int64(x.ContainerPort))
20737				}
20738			} else {
20739				z.EncSendContainerState(codecSelfer_containerMapKey1234)
20740				r.EncodeString(codecSelferC_UTF81234, string("containerPort"))
20741				z.EncSendContainerState(codecSelfer_containerMapValue1234)
20742				yym11 := z.EncBinary()
20743				_ = yym11
20744				if false {
20745				} else {
20746					r.EncodeInt(int64(x.ContainerPort))
20747				}
20748			}
20749			if yyr2 || yy2arr2 {
20750				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
20751				if yyq2[3] {
20752					x.Protocol.CodecEncodeSelf(e)
20753				} else {
20754					r.EncodeString(codecSelferC_UTF81234, "")
20755				}
20756			} else {
20757				if yyq2[3] {
20758					z.EncSendContainerState(codecSelfer_containerMapKey1234)
20759					r.EncodeString(codecSelferC_UTF81234, string("protocol"))
20760					z.EncSendContainerState(codecSelfer_containerMapValue1234)
20761					x.Protocol.CodecEncodeSelf(e)
20762				}
20763			}
20764			if yyr2 || yy2arr2 {
20765				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
20766				if yyq2[4] {
20767					yym16 := z.EncBinary()
20768					_ = yym16
20769					if false {
20770					} else {
20771						r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
20772					}
20773				} else {
20774					r.EncodeString(codecSelferC_UTF81234, "")
20775				}
20776			} else {
20777				if yyq2[4] {
20778					z.EncSendContainerState(codecSelfer_containerMapKey1234)
20779					r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
20780					z.EncSendContainerState(codecSelfer_containerMapValue1234)
20781					yym17 := z.EncBinary()
20782					_ = yym17
20783					if false {
20784					} else {
20785						r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
20786					}
20787				}
20788			}
20789			if yyr2 || yy2arr2 {
20790				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
20791			} else {
20792				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
20793			}
20794		}
20795	}
20796}
20797
20798func (x *ContainerPort) CodecDecodeSelf(d *codec1978.Decoder) {
20799	var h codecSelfer1234
20800	z, r := codec1978.GenHelperDecoder(d)
20801	_, _, _ = h, z, r
20802	yym1 := z.DecBinary()
20803	_ = yym1
20804	if false {
20805	} else if z.HasExtensions() && z.DecExt(x) {
20806	} else {
20807		yyct2 := r.ContainerType()
20808		if yyct2 == codecSelferValueTypeMap1234 {
20809			yyl2 := r.ReadMapStart()
20810			if yyl2 == 0 {
20811				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
20812			} else {
20813				x.codecDecodeSelfFromMap(yyl2, d)
20814			}
20815		} else if yyct2 == codecSelferValueTypeArray1234 {
20816			yyl2 := r.ReadArrayStart()
20817			if yyl2 == 0 {
20818				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
20819			} else {
20820				x.codecDecodeSelfFromArray(yyl2, d)
20821			}
20822		} else {
20823			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
20824		}
20825	}
20826}
20827
20828func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
20829	var h codecSelfer1234
20830	z, r := codec1978.GenHelperDecoder(d)
20831	_, _, _ = h, z, r
20832	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
20833	_ = yys3Slc
20834	var yyhl3 bool = l >= 0
20835	for yyj3 := 0; ; yyj3++ {
20836		if yyhl3 {
20837			if yyj3 >= l {
20838				break
20839			}
20840		} else {
20841			if r.CheckBreak() {
20842				break
20843			}
20844		}
20845		z.DecSendContainerState(codecSelfer_containerMapKey1234)
20846		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
20847		yys3 := string(yys3Slc)
20848		z.DecSendContainerState(codecSelfer_containerMapValue1234)
20849		switch yys3 {
20850		case "name":
20851			if r.TryDecodeAsNil() {
20852				x.Name = ""
20853			} else {
20854				yyv4 := &x.Name
20855				yym5 := z.DecBinary()
20856				_ = yym5
20857				if false {
20858				} else {
20859					*((*string)(yyv4)) = r.DecodeString()
20860				}
20861			}
20862		case "hostPort":
20863			if r.TryDecodeAsNil() {
20864				x.HostPort = 0
20865			} else {
20866				yyv6 := &x.HostPort
20867				yym7 := z.DecBinary()
20868				_ = yym7
20869				if false {
20870				} else {
20871					*((*int32)(yyv6)) = int32(r.DecodeInt(32))
20872				}
20873			}
20874		case "containerPort":
20875			if r.TryDecodeAsNil() {
20876				x.ContainerPort = 0
20877			} else {
20878				yyv8 := &x.ContainerPort
20879				yym9 := z.DecBinary()
20880				_ = yym9
20881				if false {
20882				} else {
20883					*((*int32)(yyv8)) = int32(r.DecodeInt(32))
20884				}
20885			}
20886		case "protocol":
20887			if r.TryDecodeAsNil() {
20888				x.Protocol = ""
20889			} else {
20890				yyv10 := &x.Protocol
20891				yyv10.CodecDecodeSelf(d)
20892			}
20893		case "hostIP":
20894			if r.TryDecodeAsNil() {
20895				x.HostIP = ""
20896			} else {
20897				yyv11 := &x.HostIP
20898				yym12 := z.DecBinary()
20899				_ = yym12
20900				if false {
20901				} else {
20902					*((*string)(yyv11)) = r.DecodeString()
20903				}
20904			}
20905		default:
20906			z.DecStructFieldNotFound(-1, yys3)
20907		} // end switch yys3
20908	} // end for yyj3
20909	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
20910}
20911
20912func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
20913	var h codecSelfer1234
20914	z, r := codec1978.GenHelperDecoder(d)
20915	_, _, _ = h, z, r
20916	var yyj13 int
20917	var yyb13 bool
20918	var yyhl13 bool = l >= 0
20919	yyj13++
20920	if yyhl13 {
20921		yyb13 = yyj13 > l
20922	} else {
20923		yyb13 = r.CheckBreak()
20924	}
20925	if yyb13 {
20926		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
20927		return
20928	}
20929	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
20930	if r.TryDecodeAsNil() {
20931		x.Name = ""
20932	} else {
20933		yyv14 := &x.Name
20934		yym15 := z.DecBinary()
20935		_ = yym15
20936		if false {
20937		} else {
20938			*((*string)(yyv14)) = r.DecodeString()
20939		}
20940	}
20941	yyj13++
20942	if yyhl13 {
20943		yyb13 = yyj13 > l
20944	} else {
20945		yyb13 = r.CheckBreak()
20946	}
20947	if yyb13 {
20948		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
20949		return
20950	}
20951	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
20952	if r.TryDecodeAsNil() {
20953		x.HostPort = 0
20954	} else {
20955		yyv16 := &x.HostPort
20956		yym17 := z.DecBinary()
20957		_ = yym17
20958		if false {
20959		} else {
20960			*((*int32)(yyv16)) = int32(r.DecodeInt(32))
20961		}
20962	}
20963	yyj13++
20964	if yyhl13 {
20965		yyb13 = yyj13 > l
20966	} else {
20967		yyb13 = r.CheckBreak()
20968	}
20969	if yyb13 {
20970		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
20971		return
20972	}
20973	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
20974	if r.TryDecodeAsNil() {
20975		x.ContainerPort = 0
20976	} else {
20977		yyv18 := &x.ContainerPort
20978		yym19 := z.DecBinary()
20979		_ = yym19
20980		if false {
20981		} else {
20982			*((*int32)(yyv18)) = int32(r.DecodeInt(32))
20983		}
20984	}
20985	yyj13++
20986	if yyhl13 {
20987		yyb13 = yyj13 > l
20988	} else {
20989		yyb13 = r.CheckBreak()
20990	}
20991	if yyb13 {
20992		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
20993		return
20994	}
20995	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
20996	if r.TryDecodeAsNil() {
20997		x.Protocol = ""
20998	} else {
20999		yyv20 := &x.Protocol
21000		yyv20.CodecDecodeSelf(d)
21001	}
21002	yyj13++
21003	if yyhl13 {
21004		yyb13 = yyj13 > l
21005	} else {
21006		yyb13 = r.CheckBreak()
21007	}
21008	if yyb13 {
21009		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
21010		return
21011	}
21012	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
21013	if r.TryDecodeAsNil() {
21014		x.HostIP = ""
21015	} else {
21016		yyv21 := &x.HostIP
21017		yym22 := z.DecBinary()
21018		_ = yym22
21019		if false {
21020		} else {
21021			*((*string)(yyv21)) = r.DecodeString()
21022		}
21023	}
21024	for {
21025		yyj13++
21026		if yyhl13 {
21027			yyb13 = yyj13 > l
21028		} else {
21029			yyb13 = r.CheckBreak()
21030		}
21031		if yyb13 {
21032			break
21033		}
21034		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
21035		z.DecStructFieldNotFound(yyj13-1, "")
21036	}
21037	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
21038}
21039
21040func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) {
21041	var h codecSelfer1234
21042	z, r := codec1978.GenHelperEncoder(e)
21043	_, _, _ = h, z, r
21044	if x == nil {
21045		r.EncodeNil()
21046	} else {
21047		yym1 := z.EncBinary()
21048		_ = yym1
21049		if false {
21050		} else if z.HasExtensions() && z.EncExt(x) {
21051		} else {
21052			yysep2 := !z.EncBinary()
21053			yy2arr2 := z.EncBasicHandle().StructToArray
21054			var yyq2 [4]bool
21055			_, _, _ = yysep2, yyq2, yy2arr2
21056			const yyr2 bool = false
21057			yyq2[1] = x.ReadOnly != false
21058			yyq2[3] = x.SubPath != ""
21059			var yynn2 int
21060			if yyr2 || yy2arr2 {
21061				r.EncodeArrayStart(4)
21062			} else {
21063				yynn2 = 2
21064				for _, b := range yyq2 {
21065					if b {
21066						yynn2++
21067					}
21068				}
21069				r.EncodeMapStart(yynn2)
21070				yynn2 = 0
21071			}
21072			if yyr2 || yy2arr2 {
21073				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
21074				yym4 := z.EncBinary()
21075				_ = yym4
21076				if false {
21077				} else {
21078					r.EncodeString(codecSelferC_UTF81234, string(x.Name))
21079				}
21080			} else {
21081				z.EncSendContainerState(codecSelfer_containerMapKey1234)
21082				r.EncodeString(codecSelferC_UTF81234, string("name"))
21083				z.EncSendContainerState(codecSelfer_containerMapValue1234)
21084				yym5 := z.EncBinary()
21085				_ = yym5
21086				if false {
21087				} else {
21088					r.EncodeString(codecSelferC_UTF81234, string(x.Name))
21089				}
21090			}
21091			if yyr2 || yy2arr2 {
21092				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
21093				if yyq2[1] {
21094					yym7 := z.EncBinary()
21095					_ = yym7
21096					if false {
21097					} else {
21098						r.EncodeBool(bool(x.ReadOnly))
21099					}
21100				} else {
21101					r.EncodeBool(false)
21102				}
21103			} else {
21104				if yyq2[1] {
21105					z.EncSendContainerState(codecSelfer_containerMapKey1234)
21106					r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
21107					z.EncSendContainerState(codecSelfer_containerMapValue1234)
21108					yym8 := z.EncBinary()
21109					_ = yym8
21110					if false {
21111					} else {
21112						r.EncodeBool(bool(x.ReadOnly))
21113					}
21114				}
21115			}
21116			if yyr2 || yy2arr2 {
21117				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
21118				yym10 := z.EncBinary()
21119				_ = yym10
21120				if false {
21121				} else {
21122					r.EncodeString(codecSelferC_UTF81234, string(x.MountPath))
21123				}
21124			} else {
21125				z.EncSendContainerState(codecSelfer_containerMapKey1234)
21126				r.EncodeString(codecSelferC_UTF81234, string("mountPath"))
21127				z.EncSendContainerState(codecSelfer_containerMapValue1234)
21128				yym11 := z.EncBinary()
21129				_ = yym11
21130				if false {
21131				} else {
21132					r.EncodeString(codecSelferC_UTF81234, string(x.MountPath))
21133				}
21134			}
21135			if yyr2 || yy2arr2 {
21136				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
21137				if yyq2[3] {
21138					yym13 := z.EncBinary()
21139					_ = yym13
21140					if false {
21141					} else {
21142						r.EncodeString(codecSelferC_UTF81234, string(x.SubPath))
21143					}
21144				} else {
21145					r.EncodeString(codecSelferC_UTF81234, "")
21146				}
21147			} else {
21148				if yyq2[3] {
21149					z.EncSendContainerState(codecSelfer_containerMapKey1234)
21150					r.EncodeString(codecSelferC_UTF81234, string("subPath"))
21151					z.EncSendContainerState(codecSelfer_containerMapValue1234)
21152					yym14 := z.EncBinary()
21153					_ = yym14
21154					if false {
21155					} else {
21156						r.EncodeString(codecSelferC_UTF81234, string(x.SubPath))
21157					}
21158				}
21159			}
21160			if yyr2 || yy2arr2 {
21161				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
21162			} else {
21163				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
21164			}
21165		}
21166	}
21167}
21168
21169func (x *VolumeMount) CodecDecodeSelf(d *codec1978.Decoder) {
21170	var h codecSelfer1234
21171	z, r := codec1978.GenHelperDecoder(d)
21172	_, _, _ = h, z, r
21173	yym1 := z.DecBinary()
21174	_ = yym1
21175	if false {
21176	} else if z.HasExtensions() && z.DecExt(x) {
21177	} else {
21178		yyct2 := r.ContainerType()
21179		if yyct2 == codecSelferValueTypeMap1234 {
21180			yyl2 := r.ReadMapStart()
21181			if yyl2 == 0 {
21182				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
21183			} else {
21184				x.codecDecodeSelfFromMap(yyl2, d)
21185			}
21186		} else if yyct2 == codecSelferValueTypeArray1234 {
21187			yyl2 := r.ReadArrayStart()
21188			if yyl2 == 0 {
21189				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
21190			} else {
21191				x.codecDecodeSelfFromArray(yyl2, d)
21192			}
21193		} else {
21194			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
21195		}
21196	}
21197}
21198
21199func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
21200	var h codecSelfer1234
21201	z, r := codec1978.GenHelperDecoder(d)
21202	_, _, _ = h, z, r
21203	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
21204	_ = yys3Slc
21205	var yyhl3 bool = l >= 0
21206	for yyj3 := 0; ; yyj3++ {
21207		if yyhl3 {
21208			if yyj3 >= l {
21209				break
21210			}
21211		} else {
21212			if r.CheckBreak() {
21213				break
21214			}
21215		}
21216		z.DecSendContainerState(codecSelfer_containerMapKey1234)
21217		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
21218		yys3 := string(yys3Slc)
21219		z.DecSendContainerState(codecSelfer_containerMapValue1234)
21220		switch yys3 {
21221		case "name":
21222			if r.TryDecodeAsNil() {
21223				x.Name = ""
21224			} else {
21225				yyv4 := &x.Name
21226				yym5 := z.DecBinary()
21227				_ = yym5
21228				if false {
21229				} else {
21230					*((*string)(yyv4)) = r.DecodeString()
21231				}
21232			}
21233		case "readOnly":
21234			if r.TryDecodeAsNil() {
21235				x.ReadOnly = false
21236			} else {
21237				yyv6 := &x.ReadOnly
21238				yym7 := z.DecBinary()
21239				_ = yym7
21240				if false {
21241				} else {
21242					*((*bool)(yyv6)) = r.DecodeBool()
21243				}
21244			}
21245		case "mountPath":
21246			if r.TryDecodeAsNil() {
21247				x.MountPath = ""
21248			} else {
21249				yyv8 := &x.MountPath
21250				yym9 := z.DecBinary()
21251				_ = yym9
21252				if false {
21253				} else {
21254					*((*string)(yyv8)) = r.DecodeString()
21255				}
21256			}
21257		case "subPath":
21258			if r.TryDecodeAsNil() {
21259				x.SubPath = ""
21260			} else {
21261				yyv10 := &x.SubPath
21262				yym11 := z.DecBinary()
21263				_ = yym11
21264				if false {
21265				} else {
21266					*((*string)(yyv10)) = r.DecodeString()
21267				}
21268			}
21269		default:
21270			z.DecStructFieldNotFound(-1, yys3)
21271		} // end switch yys3
21272	} // end for yyj3
21273	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
21274}
21275
21276func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
21277	var h codecSelfer1234
21278	z, r := codec1978.GenHelperDecoder(d)
21279	_, _, _ = h, z, r
21280	var yyj12 int
21281	var yyb12 bool
21282	var yyhl12 bool = l >= 0
21283	yyj12++
21284	if yyhl12 {
21285		yyb12 = yyj12 > l
21286	} else {
21287		yyb12 = r.CheckBreak()
21288	}
21289	if yyb12 {
21290		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
21291		return
21292	}
21293	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
21294	if r.TryDecodeAsNil() {
21295		x.Name = ""
21296	} else {
21297		yyv13 := &x.Name
21298		yym14 := z.DecBinary()
21299		_ = yym14
21300		if false {
21301		} else {
21302			*((*string)(yyv13)) = r.DecodeString()
21303		}
21304	}
21305	yyj12++
21306	if yyhl12 {
21307		yyb12 = yyj12 > l
21308	} else {
21309		yyb12 = r.CheckBreak()
21310	}
21311	if yyb12 {
21312		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
21313		return
21314	}
21315	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
21316	if r.TryDecodeAsNil() {
21317		x.ReadOnly = false
21318	} else {
21319		yyv15 := &x.ReadOnly
21320		yym16 := z.DecBinary()
21321		_ = yym16
21322		if false {
21323		} else {
21324			*((*bool)(yyv15)) = r.DecodeBool()
21325		}
21326	}
21327	yyj12++
21328	if yyhl12 {
21329		yyb12 = yyj12 > l
21330	} else {
21331		yyb12 = r.CheckBreak()
21332	}
21333	if yyb12 {
21334		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
21335		return
21336	}
21337	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
21338	if r.TryDecodeAsNil() {
21339		x.MountPath = ""
21340	} else {
21341		yyv17 := &x.MountPath
21342		yym18 := z.DecBinary()
21343		_ = yym18
21344		if false {
21345		} else {
21346			*((*string)(yyv17)) = r.DecodeString()
21347		}
21348	}
21349	yyj12++
21350	if yyhl12 {
21351		yyb12 = yyj12 > l
21352	} else {
21353		yyb12 = r.CheckBreak()
21354	}
21355	if yyb12 {
21356		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
21357		return
21358	}
21359	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
21360	if r.TryDecodeAsNil() {
21361		x.SubPath = ""
21362	} else {
21363		yyv19 := &x.SubPath
21364		yym20 := z.DecBinary()
21365		_ = yym20
21366		if false {
21367		} else {
21368			*((*string)(yyv19)) = r.DecodeString()
21369		}
21370	}
21371	for {
21372		yyj12++
21373		if yyhl12 {
21374			yyb12 = yyj12 > l
21375		} else {
21376			yyb12 = r.CheckBreak()
21377		}
21378		if yyb12 {
21379			break
21380		}
21381		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
21382		z.DecStructFieldNotFound(yyj12-1, "")
21383	}
21384	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
21385}
21386
21387func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) {
21388	var h codecSelfer1234
21389	z, r := codec1978.GenHelperEncoder(e)
21390	_, _, _ = h, z, r
21391	if x == nil {
21392		r.EncodeNil()
21393	} else {
21394		yym1 := z.EncBinary()
21395		_ = yym1
21396		if false {
21397		} else if z.HasExtensions() && z.EncExt(x) {
21398		} else {
21399			yysep2 := !z.EncBinary()
21400			yy2arr2 := z.EncBasicHandle().StructToArray
21401			var yyq2 [3]bool
21402			_, _, _ = yysep2, yyq2, yy2arr2
21403			const yyr2 bool = false
21404			yyq2[1] = x.Value != ""
21405			yyq2[2] = x.ValueFrom != nil
21406			var yynn2 int
21407			if yyr2 || yy2arr2 {
21408				r.EncodeArrayStart(3)
21409			} else {
21410				yynn2 = 1
21411				for _, b := range yyq2 {
21412					if b {
21413						yynn2++
21414					}
21415				}
21416				r.EncodeMapStart(yynn2)
21417				yynn2 = 0
21418			}
21419			if yyr2 || yy2arr2 {
21420				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
21421				yym4 := z.EncBinary()
21422				_ = yym4
21423				if false {
21424				} else {
21425					r.EncodeString(codecSelferC_UTF81234, string(x.Name))
21426				}
21427			} else {
21428				z.EncSendContainerState(codecSelfer_containerMapKey1234)
21429				r.EncodeString(codecSelferC_UTF81234, string("name"))
21430				z.EncSendContainerState(codecSelfer_containerMapValue1234)
21431				yym5 := z.EncBinary()
21432				_ = yym5
21433				if false {
21434				} else {
21435					r.EncodeString(codecSelferC_UTF81234, string(x.Name))
21436				}
21437			}
21438			if yyr2 || yy2arr2 {
21439				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
21440				if yyq2[1] {
21441					yym7 := z.EncBinary()
21442					_ = yym7
21443					if false {
21444					} else {
21445						r.EncodeString(codecSelferC_UTF81234, string(x.Value))
21446					}
21447				} else {
21448					r.EncodeString(codecSelferC_UTF81234, "")
21449				}
21450			} else {
21451				if yyq2[1] {
21452					z.EncSendContainerState(codecSelfer_containerMapKey1234)
21453					r.EncodeString(codecSelferC_UTF81234, string("value"))
21454					z.EncSendContainerState(codecSelfer_containerMapValue1234)
21455					yym8 := z.EncBinary()
21456					_ = yym8
21457					if false {
21458					} else {
21459						r.EncodeString(codecSelferC_UTF81234, string(x.Value))
21460					}
21461				}
21462			}
21463			if yyr2 || yy2arr2 {
21464				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
21465				if yyq2[2] {
21466					if x.ValueFrom == nil {
21467						r.EncodeNil()
21468					} else {
21469						x.ValueFrom.CodecEncodeSelf(e)
21470					}
21471				} else {
21472					r.EncodeNil()
21473				}
21474			} else {
21475				if yyq2[2] {
21476					z.EncSendContainerState(codecSelfer_containerMapKey1234)
21477					r.EncodeString(codecSelferC_UTF81234, string("valueFrom"))
21478					z.EncSendContainerState(codecSelfer_containerMapValue1234)
21479					if x.ValueFrom == nil {
21480						r.EncodeNil()
21481					} else {
21482						x.ValueFrom.CodecEncodeSelf(e)
21483					}
21484				}
21485			}
21486			if yyr2 || yy2arr2 {
21487				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
21488			} else {
21489				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
21490			}
21491		}
21492	}
21493}
21494
21495func (x *EnvVar) CodecDecodeSelf(d *codec1978.Decoder) {
21496	var h codecSelfer1234
21497	z, r := codec1978.GenHelperDecoder(d)
21498	_, _, _ = h, z, r
21499	yym1 := z.DecBinary()
21500	_ = yym1
21501	if false {
21502	} else if z.HasExtensions() && z.DecExt(x) {
21503	} else {
21504		yyct2 := r.ContainerType()
21505		if yyct2 == codecSelferValueTypeMap1234 {
21506			yyl2 := r.ReadMapStart()
21507			if yyl2 == 0 {
21508				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
21509			} else {
21510				x.codecDecodeSelfFromMap(yyl2, d)
21511			}
21512		} else if yyct2 == codecSelferValueTypeArray1234 {
21513			yyl2 := r.ReadArrayStart()
21514			if yyl2 == 0 {
21515				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
21516			} else {
21517				x.codecDecodeSelfFromArray(yyl2, d)
21518			}
21519		} else {
21520			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
21521		}
21522	}
21523}
21524
21525func (x *EnvVar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
21526	var h codecSelfer1234
21527	z, r := codec1978.GenHelperDecoder(d)
21528	_, _, _ = h, z, r
21529	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
21530	_ = yys3Slc
21531	var yyhl3 bool = l >= 0
21532	for yyj3 := 0; ; yyj3++ {
21533		if yyhl3 {
21534			if yyj3 >= l {
21535				break
21536			}
21537		} else {
21538			if r.CheckBreak() {
21539				break
21540			}
21541		}
21542		z.DecSendContainerState(codecSelfer_containerMapKey1234)
21543		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
21544		yys3 := string(yys3Slc)
21545		z.DecSendContainerState(codecSelfer_containerMapValue1234)
21546		switch yys3 {
21547		case "name":
21548			if r.TryDecodeAsNil() {
21549				x.Name = ""
21550			} else {
21551				yyv4 := &x.Name
21552				yym5 := z.DecBinary()
21553				_ = yym5
21554				if false {
21555				} else {
21556					*((*string)(yyv4)) = r.DecodeString()
21557				}
21558			}
21559		case "value":
21560			if r.TryDecodeAsNil() {
21561				x.Value = ""
21562			} else {
21563				yyv6 := &x.Value
21564				yym7 := z.DecBinary()
21565				_ = yym7
21566				if false {
21567				} else {
21568					*((*string)(yyv6)) = r.DecodeString()
21569				}
21570			}
21571		case "valueFrom":
21572			if r.TryDecodeAsNil() {
21573				if x.ValueFrom != nil {
21574					x.ValueFrom = nil
21575				}
21576			} else {
21577				if x.ValueFrom == nil {
21578					x.ValueFrom = new(EnvVarSource)
21579				}
21580				x.ValueFrom.CodecDecodeSelf(d)
21581			}
21582		default:
21583			z.DecStructFieldNotFound(-1, yys3)
21584		} // end switch yys3
21585	} // end for yyj3
21586	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
21587}
21588
21589func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
21590	var h codecSelfer1234
21591	z, r := codec1978.GenHelperDecoder(d)
21592	_, _, _ = h, z, r
21593	var yyj9 int
21594	var yyb9 bool
21595	var yyhl9 bool = l >= 0
21596	yyj9++
21597	if yyhl9 {
21598		yyb9 = yyj9 > l
21599	} else {
21600		yyb9 = r.CheckBreak()
21601	}
21602	if yyb9 {
21603		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
21604		return
21605	}
21606	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
21607	if r.TryDecodeAsNil() {
21608		x.Name = ""
21609	} else {
21610		yyv10 := &x.Name
21611		yym11 := z.DecBinary()
21612		_ = yym11
21613		if false {
21614		} else {
21615			*((*string)(yyv10)) = r.DecodeString()
21616		}
21617	}
21618	yyj9++
21619	if yyhl9 {
21620		yyb9 = yyj9 > l
21621	} else {
21622		yyb9 = r.CheckBreak()
21623	}
21624	if yyb9 {
21625		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
21626		return
21627	}
21628	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
21629	if r.TryDecodeAsNil() {
21630		x.Value = ""
21631	} else {
21632		yyv12 := &x.Value
21633		yym13 := z.DecBinary()
21634		_ = yym13
21635		if false {
21636		} else {
21637			*((*string)(yyv12)) = r.DecodeString()
21638		}
21639	}
21640	yyj9++
21641	if yyhl9 {
21642		yyb9 = yyj9 > l
21643	} else {
21644		yyb9 = r.CheckBreak()
21645	}
21646	if yyb9 {
21647		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
21648		return
21649	}
21650	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
21651	if r.TryDecodeAsNil() {
21652		if x.ValueFrom != nil {
21653			x.ValueFrom = nil
21654		}
21655	} else {
21656		if x.ValueFrom == nil {
21657			x.ValueFrom = new(EnvVarSource)
21658		}
21659		x.ValueFrom.CodecDecodeSelf(d)
21660	}
21661	for {
21662		yyj9++
21663		if yyhl9 {
21664			yyb9 = yyj9 > l
21665		} else {
21666			yyb9 = r.CheckBreak()
21667		}
21668		if yyb9 {
21669			break
21670		}
21671		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
21672		z.DecStructFieldNotFound(yyj9-1, "")
21673	}
21674	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
21675}
21676
21677func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) {
21678	var h codecSelfer1234
21679	z, r := codec1978.GenHelperEncoder(e)
21680	_, _, _ = h, z, r
21681	if x == nil {
21682		r.EncodeNil()
21683	} else {
21684		yym1 := z.EncBinary()
21685		_ = yym1
21686		if false {
21687		} else if z.HasExtensions() && z.EncExt(x) {
21688		} else {
21689			yysep2 := !z.EncBinary()
21690			yy2arr2 := z.EncBasicHandle().StructToArray
21691			var yyq2 [4]bool
21692			_, _, _ = yysep2, yyq2, yy2arr2
21693			const yyr2 bool = false
21694			yyq2[0] = x.FieldRef != nil
21695			yyq2[1] = x.ResourceFieldRef != nil
21696			yyq2[2] = x.ConfigMapKeyRef != nil
21697			yyq2[3] = x.SecretKeyRef != nil
21698			var yynn2 int
21699			if yyr2 || yy2arr2 {
21700				r.EncodeArrayStart(4)
21701			} else {
21702				yynn2 = 0
21703				for _, b := range yyq2 {
21704					if b {
21705						yynn2++
21706					}
21707				}
21708				r.EncodeMapStart(yynn2)
21709				yynn2 = 0
21710			}
21711			if yyr2 || yy2arr2 {
21712				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
21713				if yyq2[0] {
21714					if x.FieldRef == nil {
21715						r.EncodeNil()
21716					} else {
21717						x.FieldRef.CodecEncodeSelf(e)
21718					}
21719				} else {
21720					r.EncodeNil()
21721				}
21722			} else {
21723				if yyq2[0] {
21724					z.EncSendContainerState(codecSelfer_containerMapKey1234)
21725					r.EncodeString(codecSelferC_UTF81234, string("fieldRef"))
21726					z.EncSendContainerState(codecSelfer_containerMapValue1234)
21727					if x.FieldRef == nil {
21728						r.EncodeNil()
21729					} else {
21730						x.FieldRef.CodecEncodeSelf(e)
21731					}
21732				}
21733			}
21734			if yyr2 || yy2arr2 {
21735				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
21736				if yyq2[1] {
21737					if x.ResourceFieldRef == nil {
21738						r.EncodeNil()
21739					} else {
21740						x.ResourceFieldRef.CodecEncodeSelf(e)
21741					}
21742				} else {
21743					r.EncodeNil()
21744				}
21745			} else {
21746				if yyq2[1] {
21747					z.EncSendContainerState(codecSelfer_containerMapKey1234)
21748					r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef"))
21749					z.EncSendContainerState(codecSelfer_containerMapValue1234)
21750					if x.ResourceFieldRef == nil {
21751						r.EncodeNil()
21752					} else {
21753						x.ResourceFieldRef.CodecEncodeSelf(e)
21754					}
21755				}
21756			}
21757			if yyr2 || yy2arr2 {
21758				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
21759				if yyq2[2] {
21760					if x.ConfigMapKeyRef == nil {
21761						r.EncodeNil()
21762					} else {
21763						x.ConfigMapKeyRef.CodecEncodeSelf(e)
21764					}
21765				} else {
21766					r.EncodeNil()
21767				}
21768			} else {
21769				if yyq2[2] {
21770					z.EncSendContainerState(codecSelfer_containerMapKey1234)
21771					r.EncodeString(codecSelferC_UTF81234, string("configMapKeyRef"))
21772					z.EncSendContainerState(codecSelfer_containerMapValue1234)
21773					if x.ConfigMapKeyRef == nil {
21774						r.EncodeNil()
21775					} else {
21776						x.ConfigMapKeyRef.CodecEncodeSelf(e)
21777					}
21778				}
21779			}
21780			if yyr2 || yy2arr2 {
21781				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
21782				if yyq2[3] {
21783					if x.SecretKeyRef == nil {
21784						r.EncodeNil()
21785					} else {
21786						x.SecretKeyRef.CodecEncodeSelf(e)
21787					}
21788				} else {
21789					r.EncodeNil()
21790				}
21791			} else {
21792				if yyq2[3] {
21793					z.EncSendContainerState(codecSelfer_containerMapKey1234)
21794					r.EncodeString(codecSelferC_UTF81234, string("secretKeyRef"))
21795					z.EncSendContainerState(codecSelfer_containerMapValue1234)
21796					if x.SecretKeyRef == nil {
21797						r.EncodeNil()
21798					} else {
21799						x.SecretKeyRef.CodecEncodeSelf(e)
21800					}
21801				}
21802			}
21803			if yyr2 || yy2arr2 {
21804				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
21805			} else {
21806				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
21807			}
21808		}
21809	}
21810}
21811
21812func (x *EnvVarSource) CodecDecodeSelf(d *codec1978.Decoder) {
21813	var h codecSelfer1234
21814	z, r := codec1978.GenHelperDecoder(d)
21815	_, _, _ = h, z, r
21816	yym1 := z.DecBinary()
21817	_ = yym1
21818	if false {
21819	} else if z.HasExtensions() && z.DecExt(x) {
21820	} else {
21821		yyct2 := r.ContainerType()
21822		if yyct2 == codecSelferValueTypeMap1234 {
21823			yyl2 := r.ReadMapStart()
21824			if yyl2 == 0 {
21825				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
21826			} else {
21827				x.codecDecodeSelfFromMap(yyl2, d)
21828			}
21829		} else if yyct2 == codecSelferValueTypeArray1234 {
21830			yyl2 := r.ReadArrayStart()
21831			if yyl2 == 0 {
21832				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
21833			} else {
21834				x.codecDecodeSelfFromArray(yyl2, d)
21835			}
21836		} else {
21837			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
21838		}
21839	}
21840}
21841
21842func (x *EnvVarSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
21843	var h codecSelfer1234
21844	z, r := codec1978.GenHelperDecoder(d)
21845	_, _, _ = h, z, r
21846	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
21847	_ = yys3Slc
21848	var yyhl3 bool = l >= 0
21849	for yyj3 := 0; ; yyj3++ {
21850		if yyhl3 {
21851			if yyj3 >= l {
21852				break
21853			}
21854		} else {
21855			if r.CheckBreak() {
21856				break
21857			}
21858		}
21859		z.DecSendContainerState(codecSelfer_containerMapKey1234)
21860		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
21861		yys3 := string(yys3Slc)
21862		z.DecSendContainerState(codecSelfer_containerMapValue1234)
21863		switch yys3 {
21864		case "fieldRef":
21865			if r.TryDecodeAsNil() {
21866				if x.FieldRef != nil {
21867					x.FieldRef = nil
21868				}
21869			} else {
21870				if x.FieldRef == nil {
21871					x.FieldRef = new(ObjectFieldSelector)
21872				}
21873				x.FieldRef.CodecDecodeSelf(d)
21874			}
21875		case "resourceFieldRef":
21876			if r.TryDecodeAsNil() {
21877				if x.ResourceFieldRef != nil {
21878					x.ResourceFieldRef = nil
21879				}
21880			} else {
21881				if x.ResourceFieldRef == nil {
21882					x.ResourceFieldRef = new(ResourceFieldSelector)
21883				}
21884				x.ResourceFieldRef.CodecDecodeSelf(d)
21885			}
21886		case "configMapKeyRef":
21887			if r.TryDecodeAsNil() {
21888				if x.ConfigMapKeyRef != nil {
21889					x.ConfigMapKeyRef = nil
21890				}
21891			} else {
21892				if x.ConfigMapKeyRef == nil {
21893					x.ConfigMapKeyRef = new(ConfigMapKeySelector)
21894				}
21895				x.ConfigMapKeyRef.CodecDecodeSelf(d)
21896			}
21897		case "secretKeyRef":
21898			if r.TryDecodeAsNil() {
21899				if x.SecretKeyRef != nil {
21900					x.SecretKeyRef = nil
21901				}
21902			} else {
21903				if x.SecretKeyRef == nil {
21904					x.SecretKeyRef = new(SecretKeySelector)
21905				}
21906				x.SecretKeyRef.CodecDecodeSelf(d)
21907			}
21908		default:
21909			z.DecStructFieldNotFound(-1, yys3)
21910		} // end switch yys3
21911	} // end for yyj3
21912	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
21913}
21914
21915func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
21916	var h codecSelfer1234
21917	z, r := codec1978.GenHelperDecoder(d)
21918	_, _, _ = h, z, r
21919	var yyj8 int
21920	var yyb8 bool
21921	var yyhl8 bool = l >= 0
21922	yyj8++
21923	if yyhl8 {
21924		yyb8 = yyj8 > l
21925	} else {
21926		yyb8 = r.CheckBreak()
21927	}
21928	if yyb8 {
21929		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
21930		return
21931	}
21932	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
21933	if r.TryDecodeAsNil() {
21934		if x.FieldRef != nil {
21935			x.FieldRef = nil
21936		}
21937	} else {
21938		if x.FieldRef == nil {
21939			x.FieldRef = new(ObjectFieldSelector)
21940		}
21941		x.FieldRef.CodecDecodeSelf(d)
21942	}
21943	yyj8++
21944	if yyhl8 {
21945		yyb8 = yyj8 > l
21946	} else {
21947		yyb8 = r.CheckBreak()
21948	}
21949	if yyb8 {
21950		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
21951		return
21952	}
21953	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
21954	if r.TryDecodeAsNil() {
21955		if x.ResourceFieldRef != nil {
21956			x.ResourceFieldRef = nil
21957		}
21958	} else {
21959		if x.ResourceFieldRef == nil {
21960			x.ResourceFieldRef = new(ResourceFieldSelector)
21961		}
21962		x.ResourceFieldRef.CodecDecodeSelf(d)
21963	}
21964	yyj8++
21965	if yyhl8 {
21966		yyb8 = yyj8 > l
21967	} else {
21968		yyb8 = r.CheckBreak()
21969	}
21970	if yyb8 {
21971		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
21972		return
21973	}
21974	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
21975	if r.TryDecodeAsNil() {
21976		if x.ConfigMapKeyRef != nil {
21977			x.ConfigMapKeyRef = nil
21978		}
21979	} else {
21980		if x.ConfigMapKeyRef == nil {
21981			x.ConfigMapKeyRef = new(ConfigMapKeySelector)
21982		}
21983		x.ConfigMapKeyRef.CodecDecodeSelf(d)
21984	}
21985	yyj8++
21986	if yyhl8 {
21987		yyb8 = yyj8 > l
21988	} else {
21989		yyb8 = r.CheckBreak()
21990	}
21991	if yyb8 {
21992		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
21993		return
21994	}
21995	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
21996	if r.TryDecodeAsNil() {
21997		if x.SecretKeyRef != nil {
21998			x.SecretKeyRef = nil
21999		}
22000	} else {
22001		if x.SecretKeyRef == nil {
22002			x.SecretKeyRef = new(SecretKeySelector)
22003		}
22004		x.SecretKeyRef.CodecDecodeSelf(d)
22005	}
22006	for {
22007		yyj8++
22008		if yyhl8 {
22009			yyb8 = yyj8 > l
22010		} else {
22011			yyb8 = r.CheckBreak()
22012		}
22013		if yyb8 {
22014			break
22015		}
22016		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
22017		z.DecStructFieldNotFound(yyj8-1, "")
22018	}
22019	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
22020}
22021
22022func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) {
22023	var h codecSelfer1234
22024	z, r := codec1978.GenHelperEncoder(e)
22025	_, _, _ = h, z, r
22026	if x == nil {
22027		r.EncodeNil()
22028	} else {
22029		yym1 := z.EncBinary()
22030		_ = yym1
22031		if false {
22032		} else if z.HasExtensions() && z.EncExt(x) {
22033		} else {
22034			yysep2 := !z.EncBinary()
22035			yy2arr2 := z.EncBasicHandle().StructToArray
22036			var yyq2 [2]bool
22037			_, _, _ = yysep2, yyq2, yy2arr2
22038			const yyr2 bool = false
22039			yyq2[0] = x.APIVersion != ""
22040			var yynn2 int
22041			if yyr2 || yy2arr2 {
22042				r.EncodeArrayStart(2)
22043			} else {
22044				yynn2 = 1
22045				for _, b := range yyq2 {
22046					if b {
22047						yynn2++
22048					}
22049				}
22050				r.EncodeMapStart(yynn2)
22051				yynn2 = 0
22052			}
22053			if yyr2 || yy2arr2 {
22054				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
22055				if yyq2[0] {
22056					yym4 := z.EncBinary()
22057					_ = yym4
22058					if false {
22059					} else {
22060						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
22061					}
22062				} else {
22063					r.EncodeString(codecSelferC_UTF81234, "")
22064				}
22065			} else {
22066				if yyq2[0] {
22067					z.EncSendContainerState(codecSelfer_containerMapKey1234)
22068					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
22069					z.EncSendContainerState(codecSelfer_containerMapValue1234)
22070					yym5 := z.EncBinary()
22071					_ = yym5
22072					if false {
22073					} else {
22074						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
22075					}
22076				}
22077			}
22078			if yyr2 || yy2arr2 {
22079				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
22080				yym7 := z.EncBinary()
22081				_ = yym7
22082				if false {
22083				} else {
22084					r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
22085				}
22086			} else {
22087				z.EncSendContainerState(codecSelfer_containerMapKey1234)
22088				r.EncodeString(codecSelferC_UTF81234, string("fieldPath"))
22089				z.EncSendContainerState(codecSelfer_containerMapValue1234)
22090				yym8 := z.EncBinary()
22091				_ = yym8
22092				if false {
22093				} else {
22094					r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
22095				}
22096			}
22097			if yyr2 || yy2arr2 {
22098				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
22099			} else {
22100				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
22101			}
22102		}
22103	}
22104}
22105
22106func (x *ObjectFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) {
22107	var h codecSelfer1234
22108	z, r := codec1978.GenHelperDecoder(d)
22109	_, _, _ = h, z, r
22110	yym1 := z.DecBinary()
22111	_ = yym1
22112	if false {
22113	} else if z.HasExtensions() && z.DecExt(x) {
22114	} else {
22115		yyct2 := r.ContainerType()
22116		if yyct2 == codecSelferValueTypeMap1234 {
22117			yyl2 := r.ReadMapStart()
22118			if yyl2 == 0 {
22119				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
22120			} else {
22121				x.codecDecodeSelfFromMap(yyl2, d)
22122			}
22123		} else if yyct2 == codecSelferValueTypeArray1234 {
22124			yyl2 := r.ReadArrayStart()
22125			if yyl2 == 0 {
22126				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
22127			} else {
22128				x.codecDecodeSelfFromArray(yyl2, d)
22129			}
22130		} else {
22131			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
22132		}
22133	}
22134}
22135
22136func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
22137	var h codecSelfer1234
22138	z, r := codec1978.GenHelperDecoder(d)
22139	_, _, _ = h, z, r
22140	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
22141	_ = yys3Slc
22142	var yyhl3 bool = l >= 0
22143	for yyj3 := 0; ; yyj3++ {
22144		if yyhl3 {
22145			if yyj3 >= l {
22146				break
22147			}
22148		} else {
22149			if r.CheckBreak() {
22150				break
22151			}
22152		}
22153		z.DecSendContainerState(codecSelfer_containerMapKey1234)
22154		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
22155		yys3 := string(yys3Slc)
22156		z.DecSendContainerState(codecSelfer_containerMapValue1234)
22157		switch yys3 {
22158		case "apiVersion":
22159			if r.TryDecodeAsNil() {
22160				x.APIVersion = ""
22161			} else {
22162				yyv4 := &x.APIVersion
22163				yym5 := z.DecBinary()
22164				_ = yym5
22165				if false {
22166				} else {
22167					*((*string)(yyv4)) = r.DecodeString()
22168				}
22169			}
22170		case "fieldPath":
22171			if r.TryDecodeAsNil() {
22172				x.FieldPath = ""
22173			} else {
22174				yyv6 := &x.FieldPath
22175				yym7 := z.DecBinary()
22176				_ = yym7
22177				if false {
22178				} else {
22179					*((*string)(yyv6)) = r.DecodeString()
22180				}
22181			}
22182		default:
22183			z.DecStructFieldNotFound(-1, yys3)
22184		} // end switch yys3
22185	} // end for yyj3
22186	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
22187}
22188
22189func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
22190	var h codecSelfer1234
22191	z, r := codec1978.GenHelperDecoder(d)
22192	_, _, _ = h, z, r
22193	var yyj8 int
22194	var yyb8 bool
22195	var yyhl8 bool = l >= 0
22196	yyj8++
22197	if yyhl8 {
22198		yyb8 = yyj8 > l
22199	} else {
22200		yyb8 = r.CheckBreak()
22201	}
22202	if yyb8 {
22203		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
22204		return
22205	}
22206	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
22207	if r.TryDecodeAsNil() {
22208		x.APIVersion = ""
22209	} else {
22210		yyv9 := &x.APIVersion
22211		yym10 := z.DecBinary()
22212		_ = yym10
22213		if false {
22214		} else {
22215			*((*string)(yyv9)) = r.DecodeString()
22216		}
22217	}
22218	yyj8++
22219	if yyhl8 {
22220		yyb8 = yyj8 > l
22221	} else {
22222		yyb8 = r.CheckBreak()
22223	}
22224	if yyb8 {
22225		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
22226		return
22227	}
22228	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
22229	if r.TryDecodeAsNil() {
22230		x.FieldPath = ""
22231	} else {
22232		yyv11 := &x.FieldPath
22233		yym12 := z.DecBinary()
22234		_ = yym12
22235		if false {
22236		} else {
22237			*((*string)(yyv11)) = r.DecodeString()
22238		}
22239	}
22240	for {
22241		yyj8++
22242		if yyhl8 {
22243			yyb8 = yyj8 > l
22244		} else {
22245			yyb8 = r.CheckBreak()
22246		}
22247		if yyb8 {
22248			break
22249		}
22250		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
22251		z.DecStructFieldNotFound(yyj8-1, "")
22252	}
22253	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
22254}
22255
22256func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) {
22257	var h codecSelfer1234
22258	z, r := codec1978.GenHelperEncoder(e)
22259	_, _, _ = h, z, r
22260	if x == nil {
22261		r.EncodeNil()
22262	} else {
22263		yym1 := z.EncBinary()
22264		_ = yym1
22265		if false {
22266		} else if z.HasExtensions() && z.EncExt(x) {
22267		} else {
22268			yysep2 := !z.EncBinary()
22269			yy2arr2 := z.EncBasicHandle().StructToArray
22270			var yyq2 [3]bool
22271			_, _, _ = yysep2, yyq2, yy2arr2
22272			const yyr2 bool = false
22273			yyq2[0] = x.ContainerName != ""
22274			yyq2[2] = true
22275			var yynn2 int
22276			if yyr2 || yy2arr2 {
22277				r.EncodeArrayStart(3)
22278			} else {
22279				yynn2 = 1
22280				for _, b := range yyq2 {
22281					if b {
22282						yynn2++
22283					}
22284				}
22285				r.EncodeMapStart(yynn2)
22286				yynn2 = 0
22287			}
22288			if yyr2 || yy2arr2 {
22289				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
22290				if yyq2[0] {
22291					yym4 := z.EncBinary()
22292					_ = yym4
22293					if false {
22294					} else {
22295						r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName))
22296					}
22297				} else {
22298					r.EncodeString(codecSelferC_UTF81234, "")
22299				}
22300			} else {
22301				if yyq2[0] {
22302					z.EncSendContainerState(codecSelfer_containerMapKey1234)
22303					r.EncodeString(codecSelferC_UTF81234, string("containerName"))
22304					z.EncSendContainerState(codecSelfer_containerMapValue1234)
22305					yym5 := z.EncBinary()
22306					_ = yym5
22307					if false {
22308					} else {
22309						r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName))
22310					}
22311				}
22312			}
22313			if yyr2 || yy2arr2 {
22314				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
22315				yym7 := z.EncBinary()
22316				_ = yym7
22317				if false {
22318				} else {
22319					r.EncodeString(codecSelferC_UTF81234, string(x.Resource))
22320				}
22321			} else {
22322				z.EncSendContainerState(codecSelfer_containerMapKey1234)
22323				r.EncodeString(codecSelferC_UTF81234, string("resource"))
22324				z.EncSendContainerState(codecSelfer_containerMapValue1234)
22325				yym8 := z.EncBinary()
22326				_ = yym8
22327				if false {
22328				} else {
22329					r.EncodeString(codecSelferC_UTF81234, string(x.Resource))
22330				}
22331			}
22332			if yyr2 || yy2arr2 {
22333				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
22334				if yyq2[2] {
22335					yy10 := &x.Divisor
22336					yym11 := z.EncBinary()
22337					_ = yym11
22338					if false {
22339					} else if z.HasExtensions() && z.EncExt(yy10) {
22340					} else if !yym11 && z.IsJSONHandle() {
22341						z.EncJSONMarshal(yy10)
22342					} else {
22343						z.EncFallback(yy10)
22344					}
22345				} else {
22346					r.EncodeNil()
22347				}
22348			} else {
22349				if yyq2[2] {
22350					z.EncSendContainerState(codecSelfer_containerMapKey1234)
22351					r.EncodeString(codecSelferC_UTF81234, string("divisor"))
22352					z.EncSendContainerState(codecSelfer_containerMapValue1234)
22353					yy12 := &x.Divisor
22354					yym13 := z.EncBinary()
22355					_ = yym13
22356					if false {
22357					} else if z.HasExtensions() && z.EncExt(yy12) {
22358					} else if !yym13 && z.IsJSONHandle() {
22359						z.EncJSONMarshal(yy12)
22360					} else {
22361						z.EncFallback(yy12)
22362					}
22363				}
22364			}
22365			if yyr2 || yy2arr2 {
22366				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
22367			} else {
22368				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
22369			}
22370		}
22371	}
22372}
22373
22374func (x *ResourceFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) {
22375	var h codecSelfer1234
22376	z, r := codec1978.GenHelperDecoder(d)
22377	_, _, _ = h, z, r
22378	yym1 := z.DecBinary()
22379	_ = yym1
22380	if false {
22381	} else if z.HasExtensions() && z.DecExt(x) {
22382	} else {
22383		yyct2 := r.ContainerType()
22384		if yyct2 == codecSelferValueTypeMap1234 {
22385			yyl2 := r.ReadMapStart()
22386			if yyl2 == 0 {
22387				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
22388			} else {
22389				x.codecDecodeSelfFromMap(yyl2, d)
22390			}
22391		} else if yyct2 == codecSelferValueTypeArray1234 {
22392			yyl2 := r.ReadArrayStart()
22393			if yyl2 == 0 {
22394				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
22395			} else {
22396				x.codecDecodeSelfFromArray(yyl2, d)
22397			}
22398		} else {
22399			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
22400		}
22401	}
22402}
22403
22404func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
22405	var h codecSelfer1234
22406	z, r := codec1978.GenHelperDecoder(d)
22407	_, _, _ = h, z, r
22408	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
22409	_ = yys3Slc
22410	var yyhl3 bool = l >= 0
22411	for yyj3 := 0; ; yyj3++ {
22412		if yyhl3 {
22413			if yyj3 >= l {
22414				break
22415			}
22416		} else {
22417			if r.CheckBreak() {
22418				break
22419			}
22420		}
22421		z.DecSendContainerState(codecSelfer_containerMapKey1234)
22422		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
22423		yys3 := string(yys3Slc)
22424		z.DecSendContainerState(codecSelfer_containerMapValue1234)
22425		switch yys3 {
22426		case "containerName":
22427			if r.TryDecodeAsNil() {
22428				x.ContainerName = ""
22429			} else {
22430				yyv4 := &x.ContainerName
22431				yym5 := z.DecBinary()
22432				_ = yym5
22433				if false {
22434				} else {
22435					*((*string)(yyv4)) = r.DecodeString()
22436				}
22437			}
22438		case "resource":
22439			if r.TryDecodeAsNil() {
22440				x.Resource = ""
22441			} else {
22442				yyv6 := &x.Resource
22443				yym7 := z.DecBinary()
22444				_ = yym7
22445				if false {
22446				} else {
22447					*((*string)(yyv6)) = r.DecodeString()
22448				}
22449			}
22450		case "divisor":
22451			if r.TryDecodeAsNil() {
22452				x.Divisor = pkg3_resource.Quantity{}
22453			} else {
22454				yyv8 := &x.Divisor
22455				yym9 := z.DecBinary()
22456				_ = yym9
22457				if false {
22458				} else if z.HasExtensions() && z.DecExt(yyv8) {
22459				} else if !yym9 && z.IsJSONHandle() {
22460					z.DecJSONUnmarshal(yyv8)
22461				} else {
22462					z.DecFallback(yyv8, false)
22463				}
22464			}
22465		default:
22466			z.DecStructFieldNotFound(-1, yys3)
22467		} // end switch yys3
22468	} // end for yyj3
22469	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
22470}
22471
22472func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
22473	var h codecSelfer1234
22474	z, r := codec1978.GenHelperDecoder(d)
22475	_, _, _ = h, z, r
22476	var yyj10 int
22477	var yyb10 bool
22478	var yyhl10 bool = l >= 0
22479	yyj10++
22480	if yyhl10 {
22481		yyb10 = yyj10 > l
22482	} else {
22483		yyb10 = r.CheckBreak()
22484	}
22485	if yyb10 {
22486		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
22487		return
22488	}
22489	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
22490	if r.TryDecodeAsNil() {
22491		x.ContainerName = ""
22492	} else {
22493		yyv11 := &x.ContainerName
22494		yym12 := z.DecBinary()
22495		_ = yym12
22496		if false {
22497		} else {
22498			*((*string)(yyv11)) = r.DecodeString()
22499		}
22500	}
22501	yyj10++
22502	if yyhl10 {
22503		yyb10 = yyj10 > l
22504	} else {
22505		yyb10 = r.CheckBreak()
22506	}
22507	if yyb10 {
22508		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
22509		return
22510	}
22511	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
22512	if r.TryDecodeAsNil() {
22513		x.Resource = ""
22514	} else {
22515		yyv13 := &x.Resource
22516		yym14 := z.DecBinary()
22517		_ = yym14
22518		if false {
22519		} else {
22520			*((*string)(yyv13)) = r.DecodeString()
22521		}
22522	}
22523	yyj10++
22524	if yyhl10 {
22525		yyb10 = yyj10 > l
22526	} else {
22527		yyb10 = r.CheckBreak()
22528	}
22529	if yyb10 {
22530		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
22531		return
22532	}
22533	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
22534	if r.TryDecodeAsNil() {
22535		x.Divisor = pkg3_resource.Quantity{}
22536	} else {
22537		yyv15 := &x.Divisor
22538		yym16 := z.DecBinary()
22539		_ = yym16
22540		if false {
22541		} else if z.HasExtensions() && z.DecExt(yyv15) {
22542		} else if !yym16 && z.IsJSONHandle() {
22543			z.DecJSONUnmarshal(yyv15)
22544		} else {
22545			z.DecFallback(yyv15, false)
22546		}
22547	}
22548	for {
22549		yyj10++
22550		if yyhl10 {
22551			yyb10 = yyj10 > l
22552		} else {
22553			yyb10 = r.CheckBreak()
22554		}
22555		if yyb10 {
22556			break
22557		}
22558		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
22559		z.DecStructFieldNotFound(yyj10-1, "")
22560	}
22561	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
22562}
22563
22564func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) {
22565	var h codecSelfer1234
22566	z, r := codec1978.GenHelperEncoder(e)
22567	_, _, _ = h, z, r
22568	if x == nil {
22569		r.EncodeNil()
22570	} else {
22571		yym1 := z.EncBinary()
22572		_ = yym1
22573		if false {
22574		} else if z.HasExtensions() && z.EncExt(x) {
22575		} else {
22576			yysep2 := !z.EncBinary()
22577			yy2arr2 := z.EncBasicHandle().StructToArray
22578			var yyq2 [3]bool
22579			_, _, _ = yysep2, yyq2, yy2arr2
22580			const yyr2 bool = false
22581			yyq2[0] = x.Name != ""
22582			yyq2[2] = x.Optional != nil
22583			var yynn2 int
22584			if yyr2 || yy2arr2 {
22585				r.EncodeArrayStart(3)
22586			} else {
22587				yynn2 = 1
22588				for _, b := range yyq2 {
22589					if b {
22590						yynn2++
22591					}
22592				}
22593				r.EncodeMapStart(yynn2)
22594				yynn2 = 0
22595			}
22596			if yyr2 || yy2arr2 {
22597				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
22598				if yyq2[0] {
22599					yym4 := z.EncBinary()
22600					_ = yym4
22601					if false {
22602					} else {
22603						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
22604					}
22605				} else {
22606					r.EncodeString(codecSelferC_UTF81234, "")
22607				}
22608			} else {
22609				if yyq2[0] {
22610					z.EncSendContainerState(codecSelfer_containerMapKey1234)
22611					r.EncodeString(codecSelferC_UTF81234, string("name"))
22612					z.EncSendContainerState(codecSelfer_containerMapValue1234)
22613					yym5 := z.EncBinary()
22614					_ = yym5
22615					if false {
22616					} else {
22617						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
22618					}
22619				}
22620			}
22621			if yyr2 || yy2arr2 {
22622				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
22623				yym7 := z.EncBinary()
22624				_ = yym7
22625				if false {
22626				} else {
22627					r.EncodeString(codecSelferC_UTF81234, string(x.Key))
22628				}
22629			} else {
22630				z.EncSendContainerState(codecSelfer_containerMapKey1234)
22631				r.EncodeString(codecSelferC_UTF81234, string("key"))
22632				z.EncSendContainerState(codecSelfer_containerMapValue1234)
22633				yym8 := z.EncBinary()
22634				_ = yym8
22635				if false {
22636				} else {
22637					r.EncodeString(codecSelferC_UTF81234, string(x.Key))
22638				}
22639			}
22640			if yyr2 || yy2arr2 {
22641				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
22642				if yyq2[2] {
22643					if x.Optional == nil {
22644						r.EncodeNil()
22645					} else {
22646						yy10 := *x.Optional
22647						yym11 := z.EncBinary()
22648						_ = yym11
22649						if false {
22650						} else {
22651							r.EncodeBool(bool(yy10))
22652						}
22653					}
22654				} else {
22655					r.EncodeNil()
22656				}
22657			} else {
22658				if yyq2[2] {
22659					z.EncSendContainerState(codecSelfer_containerMapKey1234)
22660					r.EncodeString(codecSelferC_UTF81234, string("optional"))
22661					z.EncSendContainerState(codecSelfer_containerMapValue1234)
22662					if x.Optional == nil {
22663						r.EncodeNil()
22664					} else {
22665						yy12 := *x.Optional
22666						yym13 := z.EncBinary()
22667						_ = yym13
22668						if false {
22669						} else {
22670							r.EncodeBool(bool(yy12))
22671						}
22672					}
22673				}
22674			}
22675			if yyr2 || yy2arr2 {
22676				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
22677			} else {
22678				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
22679			}
22680		}
22681	}
22682}
22683
22684func (x *ConfigMapKeySelector) CodecDecodeSelf(d *codec1978.Decoder) {
22685	var h codecSelfer1234
22686	z, r := codec1978.GenHelperDecoder(d)
22687	_, _, _ = h, z, r
22688	yym1 := z.DecBinary()
22689	_ = yym1
22690	if false {
22691	} else if z.HasExtensions() && z.DecExt(x) {
22692	} else {
22693		yyct2 := r.ContainerType()
22694		if yyct2 == codecSelferValueTypeMap1234 {
22695			yyl2 := r.ReadMapStart()
22696			if yyl2 == 0 {
22697				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
22698			} else {
22699				x.codecDecodeSelfFromMap(yyl2, d)
22700			}
22701		} else if yyct2 == codecSelferValueTypeArray1234 {
22702			yyl2 := r.ReadArrayStart()
22703			if yyl2 == 0 {
22704				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
22705			} else {
22706				x.codecDecodeSelfFromArray(yyl2, d)
22707			}
22708		} else {
22709			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
22710		}
22711	}
22712}
22713
22714func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
22715	var h codecSelfer1234
22716	z, r := codec1978.GenHelperDecoder(d)
22717	_, _, _ = h, z, r
22718	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
22719	_ = yys3Slc
22720	var yyhl3 bool = l >= 0
22721	for yyj3 := 0; ; yyj3++ {
22722		if yyhl3 {
22723			if yyj3 >= l {
22724				break
22725			}
22726		} else {
22727			if r.CheckBreak() {
22728				break
22729			}
22730		}
22731		z.DecSendContainerState(codecSelfer_containerMapKey1234)
22732		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
22733		yys3 := string(yys3Slc)
22734		z.DecSendContainerState(codecSelfer_containerMapValue1234)
22735		switch yys3 {
22736		case "name":
22737			if r.TryDecodeAsNil() {
22738				x.Name = ""
22739			} else {
22740				yyv4 := &x.Name
22741				yym5 := z.DecBinary()
22742				_ = yym5
22743				if false {
22744				} else {
22745					*((*string)(yyv4)) = r.DecodeString()
22746				}
22747			}
22748		case "key":
22749			if r.TryDecodeAsNil() {
22750				x.Key = ""
22751			} else {
22752				yyv6 := &x.Key
22753				yym7 := z.DecBinary()
22754				_ = yym7
22755				if false {
22756				} else {
22757					*((*string)(yyv6)) = r.DecodeString()
22758				}
22759			}
22760		case "optional":
22761			if r.TryDecodeAsNil() {
22762				if x.Optional != nil {
22763					x.Optional = nil
22764				}
22765			} else {
22766				if x.Optional == nil {
22767					x.Optional = new(bool)
22768				}
22769				yym9 := z.DecBinary()
22770				_ = yym9
22771				if false {
22772				} else {
22773					*((*bool)(x.Optional)) = r.DecodeBool()
22774				}
22775			}
22776		default:
22777			z.DecStructFieldNotFound(-1, yys3)
22778		} // end switch yys3
22779	} // end for yyj3
22780	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
22781}
22782
22783func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
22784	var h codecSelfer1234
22785	z, r := codec1978.GenHelperDecoder(d)
22786	_, _, _ = h, z, r
22787	var yyj10 int
22788	var yyb10 bool
22789	var yyhl10 bool = l >= 0
22790	yyj10++
22791	if yyhl10 {
22792		yyb10 = yyj10 > l
22793	} else {
22794		yyb10 = r.CheckBreak()
22795	}
22796	if yyb10 {
22797		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
22798		return
22799	}
22800	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
22801	if r.TryDecodeAsNil() {
22802		x.Name = ""
22803	} else {
22804		yyv11 := &x.Name
22805		yym12 := z.DecBinary()
22806		_ = yym12
22807		if false {
22808		} else {
22809			*((*string)(yyv11)) = r.DecodeString()
22810		}
22811	}
22812	yyj10++
22813	if yyhl10 {
22814		yyb10 = yyj10 > l
22815	} else {
22816		yyb10 = r.CheckBreak()
22817	}
22818	if yyb10 {
22819		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
22820		return
22821	}
22822	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
22823	if r.TryDecodeAsNil() {
22824		x.Key = ""
22825	} else {
22826		yyv13 := &x.Key
22827		yym14 := z.DecBinary()
22828		_ = yym14
22829		if false {
22830		} else {
22831			*((*string)(yyv13)) = r.DecodeString()
22832		}
22833	}
22834	yyj10++
22835	if yyhl10 {
22836		yyb10 = yyj10 > l
22837	} else {
22838		yyb10 = r.CheckBreak()
22839	}
22840	if yyb10 {
22841		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
22842		return
22843	}
22844	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
22845	if r.TryDecodeAsNil() {
22846		if x.Optional != nil {
22847			x.Optional = nil
22848		}
22849	} else {
22850		if x.Optional == nil {
22851			x.Optional = new(bool)
22852		}
22853		yym16 := z.DecBinary()
22854		_ = yym16
22855		if false {
22856		} else {
22857			*((*bool)(x.Optional)) = r.DecodeBool()
22858		}
22859	}
22860	for {
22861		yyj10++
22862		if yyhl10 {
22863			yyb10 = yyj10 > l
22864		} else {
22865			yyb10 = r.CheckBreak()
22866		}
22867		if yyb10 {
22868			break
22869		}
22870		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
22871		z.DecStructFieldNotFound(yyj10-1, "")
22872	}
22873	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
22874}
22875
22876func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) {
22877	var h codecSelfer1234
22878	z, r := codec1978.GenHelperEncoder(e)
22879	_, _, _ = h, z, r
22880	if x == nil {
22881		r.EncodeNil()
22882	} else {
22883		yym1 := z.EncBinary()
22884		_ = yym1
22885		if false {
22886		} else if z.HasExtensions() && z.EncExt(x) {
22887		} else {
22888			yysep2 := !z.EncBinary()
22889			yy2arr2 := z.EncBasicHandle().StructToArray
22890			var yyq2 [3]bool
22891			_, _, _ = yysep2, yyq2, yy2arr2
22892			const yyr2 bool = false
22893			yyq2[0] = x.Name != ""
22894			yyq2[2] = x.Optional != nil
22895			var yynn2 int
22896			if yyr2 || yy2arr2 {
22897				r.EncodeArrayStart(3)
22898			} else {
22899				yynn2 = 1
22900				for _, b := range yyq2 {
22901					if b {
22902						yynn2++
22903					}
22904				}
22905				r.EncodeMapStart(yynn2)
22906				yynn2 = 0
22907			}
22908			if yyr2 || yy2arr2 {
22909				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
22910				if yyq2[0] {
22911					yym4 := z.EncBinary()
22912					_ = yym4
22913					if false {
22914					} else {
22915						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
22916					}
22917				} else {
22918					r.EncodeString(codecSelferC_UTF81234, "")
22919				}
22920			} else {
22921				if yyq2[0] {
22922					z.EncSendContainerState(codecSelfer_containerMapKey1234)
22923					r.EncodeString(codecSelferC_UTF81234, string("name"))
22924					z.EncSendContainerState(codecSelfer_containerMapValue1234)
22925					yym5 := z.EncBinary()
22926					_ = yym5
22927					if false {
22928					} else {
22929						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
22930					}
22931				}
22932			}
22933			if yyr2 || yy2arr2 {
22934				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
22935				yym7 := z.EncBinary()
22936				_ = yym7
22937				if false {
22938				} else {
22939					r.EncodeString(codecSelferC_UTF81234, string(x.Key))
22940				}
22941			} else {
22942				z.EncSendContainerState(codecSelfer_containerMapKey1234)
22943				r.EncodeString(codecSelferC_UTF81234, string("key"))
22944				z.EncSendContainerState(codecSelfer_containerMapValue1234)
22945				yym8 := z.EncBinary()
22946				_ = yym8
22947				if false {
22948				} else {
22949					r.EncodeString(codecSelferC_UTF81234, string(x.Key))
22950				}
22951			}
22952			if yyr2 || yy2arr2 {
22953				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
22954				if yyq2[2] {
22955					if x.Optional == nil {
22956						r.EncodeNil()
22957					} else {
22958						yy10 := *x.Optional
22959						yym11 := z.EncBinary()
22960						_ = yym11
22961						if false {
22962						} else {
22963							r.EncodeBool(bool(yy10))
22964						}
22965					}
22966				} else {
22967					r.EncodeNil()
22968				}
22969			} else {
22970				if yyq2[2] {
22971					z.EncSendContainerState(codecSelfer_containerMapKey1234)
22972					r.EncodeString(codecSelferC_UTF81234, string("optional"))
22973					z.EncSendContainerState(codecSelfer_containerMapValue1234)
22974					if x.Optional == nil {
22975						r.EncodeNil()
22976					} else {
22977						yy12 := *x.Optional
22978						yym13 := z.EncBinary()
22979						_ = yym13
22980						if false {
22981						} else {
22982							r.EncodeBool(bool(yy12))
22983						}
22984					}
22985				}
22986			}
22987			if yyr2 || yy2arr2 {
22988				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
22989			} else {
22990				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
22991			}
22992		}
22993	}
22994}
22995
22996func (x *SecretKeySelector) CodecDecodeSelf(d *codec1978.Decoder) {
22997	var h codecSelfer1234
22998	z, r := codec1978.GenHelperDecoder(d)
22999	_, _, _ = h, z, r
23000	yym1 := z.DecBinary()
23001	_ = yym1
23002	if false {
23003	} else if z.HasExtensions() && z.DecExt(x) {
23004	} else {
23005		yyct2 := r.ContainerType()
23006		if yyct2 == codecSelferValueTypeMap1234 {
23007			yyl2 := r.ReadMapStart()
23008			if yyl2 == 0 {
23009				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
23010			} else {
23011				x.codecDecodeSelfFromMap(yyl2, d)
23012			}
23013		} else if yyct2 == codecSelferValueTypeArray1234 {
23014			yyl2 := r.ReadArrayStart()
23015			if yyl2 == 0 {
23016				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
23017			} else {
23018				x.codecDecodeSelfFromArray(yyl2, d)
23019			}
23020		} else {
23021			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
23022		}
23023	}
23024}
23025
23026func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
23027	var h codecSelfer1234
23028	z, r := codec1978.GenHelperDecoder(d)
23029	_, _, _ = h, z, r
23030	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
23031	_ = yys3Slc
23032	var yyhl3 bool = l >= 0
23033	for yyj3 := 0; ; yyj3++ {
23034		if yyhl3 {
23035			if yyj3 >= l {
23036				break
23037			}
23038		} else {
23039			if r.CheckBreak() {
23040				break
23041			}
23042		}
23043		z.DecSendContainerState(codecSelfer_containerMapKey1234)
23044		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
23045		yys3 := string(yys3Slc)
23046		z.DecSendContainerState(codecSelfer_containerMapValue1234)
23047		switch yys3 {
23048		case "name":
23049			if r.TryDecodeAsNil() {
23050				x.Name = ""
23051			} else {
23052				yyv4 := &x.Name
23053				yym5 := z.DecBinary()
23054				_ = yym5
23055				if false {
23056				} else {
23057					*((*string)(yyv4)) = r.DecodeString()
23058				}
23059			}
23060		case "key":
23061			if r.TryDecodeAsNil() {
23062				x.Key = ""
23063			} else {
23064				yyv6 := &x.Key
23065				yym7 := z.DecBinary()
23066				_ = yym7
23067				if false {
23068				} else {
23069					*((*string)(yyv6)) = r.DecodeString()
23070				}
23071			}
23072		case "optional":
23073			if r.TryDecodeAsNil() {
23074				if x.Optional != nil {
23075					x.Optional = nil
23076				}
23077			} else {
23078				if x.Optional == nil {
23079					x.Optional = new(bool)
23080				}
23081				yym9 := z.DecBinary()
23082				_ = yym9
23083				if false {
23084				} else {
23085					*((*bool)(x.Optional)) = r.DecodeBool()
23086				}
23087			}
23088		default:
23089			z.DecStructFieldNotFound(-1, yys3)
23090		} // end switch yys3
23091	} // end for yyj3
23092	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
23093}
23094
23095func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
23096	var h codecSelfer1234
23097	z, r := codec1978.GenHelperDecoder(d)
23098	_, _, _ = h, z, r
23099	var yyj10 int
23100	var yyb10 bool
23101	var yyhl10 bool = l >= 0
23102	yyj10++
23103	if yyhl10 {
23104		yyb10 = yyj10 > l
23105	} else {
23106		yyb10 = r.CheckBreak()
23107	}
23108	if yyb10 {
23109		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
23110		return
23111	}
23112	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
23113	if r.TryDecodeAsNil() {
23114		x.Name = ""
23115	} else {
23116		yyv11 := &x.Name
23117		yym12 := z.DecBinary()
23118		_ = yym12
23119		if false {
23120		} else {
23121			*((*string)(yyv11)) = r.DecodeString()
23122		}
23123	}
23124	yyj10++
23125	if yyhl10 {
23126		yyb10 = yyj10 > l
23127	} else {
23128		yyb10 = r.CheckBreak()
23129	}
23130	if yyb10 {
23131		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
23132		return
23133	}
23134	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
23135	if r.TryDecodeAsNil() {
23136		x.Key = ""
23137	} else {
23138		yyv13 := &x.Key
23139		yym14 := z.DecBinary()
23140		_ = yym14
23141		if false {
23142		} else {
23143			*((*string)(yyv13)) = r.DecodeString()
23144		}
23145	}
23146	yyj10++
23147	if yyhl10 {
23148		yyb10 = yyj10 > l
23149	} else {
23150		yyb10 = r.CheckBreak()
23151	}
23152	if yyb10 {
23153		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
23154		return
23155	}
23156	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
23157	if r.TryDecodeAsNil() {
23158		if x.Optional != nil {
23159			x.Optional = nil
23160		}
23161	} else {
23162		if x.Optional == nil {
23163			x.Optional = new(bool)
23164		}
23165		yym16 := z.DecBinary()
23166		_ = yym16
23167		if false {
23168		} else {
23169			*((*bool)(x.Optional)) = r.DecodeBool()
23170		}
23171	}
23172	for {
23173		yyj10++
23174		if yyhl10 {
23175			yyb10 = yyj10 > l
23176		} else {
23177			yyb10 = r.CheckBreak()
23178		}
23179		if yyb10 {
23180			break
23181		}
23182		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
23183		z.DecStructFieldNotFound(yyj10-1, "")
23184	}
23185	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
23186}
23187
23188func (x *EnvFromSource) CodecEncodeSelf(e *codec1978.Encoder) {
23189	var h codecSelfer1234
23190	z, r := codec1978.GenHelperEncoder(e)
23191	_, _, _ = h, z, r
23192	if x == nil {
23193		r.EncodeNil()
23194	} else {
23195		yym1 := z.EncBinary()
23196		_ = yym1
23197		if false {
23198		} else if z.HasExtensions() && z.EncExt(x) {
23199		} else {
23200			yysep2 := !z.EncBinary()
23201			yy2arr2 := z.EncBasicHandle().StructToArray
23202			var yyq2 [3]bool
23203			_, _, _ = yysep2, yyq2, yy2arr2
23204			const yyr2 bool = false
23205			yyq2[0] = x.Prefix != ""
23206			yyq2[1] = x.ConfigMapRef != nil
23207			yyq2[2] = x.SecretRef != nil
23208			var yynn2 int
23209			if yyr2 || yy2arr2 {
23210				r.EncodeArrayStart(3)
23211			} else {
23212				yynn2 = 0
23213				for _, b := range yyq2 {
23214					if b {
23215						yynn2++
23216					}
23217				}
23218				r.EncodeMapStart(yynn2)
23219				yynn2 = 0
23220			}
23221			if yyr2 || yy2arr2 {
23222				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
23223				if yyq2[0] {
23224					yym4 := z.EncBinary()
23225					_ = yym4
23226					if false {
23227					} else {
23228						r.EncodeString(codecSelferC_UTF81234, string(x.Prefix))
23229					}
23230				} else {
23231					r.EncodeString(codecSelferC_UTF81234, "")
23232				}
23233			} else {
23234				if yyq2[0] {
23235					z.EncSendContainerState(codecSelfer_containerMapKey1234)
23236					r.EncodeString(codecSelferC_UTF81234, string("prefix"))
23237					z.EncSendContainerState(codecSelfer_containerMapValue1234)
23238					yym5 := z.EncBinary()
23239					_ = yym5
23240					if false {
23241					} else {
23242						r.EncodeString(codecSelferC_UTF81234, string(x.Prefix))
23243					}
23244				}
23245			}
23246			if yyr2 || yy2arr2 {
23247				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
23248				if yyq2[1] {
23249					if x.ConfigMapRef == nil {
23250						r.EncodeNil()
23251					} else {
23252						x.ConfigMapRef.CodecEncodeSelf(e)
23253					}
23254				} else {
23255					r.EncodeNil()
23256				}
23257			} else {
23258				if yyq2[1] {
23259					z.EncSendContainerState(codecSelfer_containerMapKey1234)
23260					r.EncodeString(codecSelferC_UTF81234, string("configMapRef"))
23261					z.EncSendContainerState(codecSelfer_containerMapValue1234)
23262					if x.ConfigMapRef == nil {
23263						r.EncodeNil()
23264					} else {
23265						x.ConfigMapRef.CodecEncodeSelf(e)
23266					}
23267				}
23268			}
23269			if yyr2 || yy2arr2 {
23270				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
23271				if yyq2[2] {
23272					if x.SecretRef == nil {
23273						r.EncodeNil()
23274					} else {
23275						x.SecretRef.CodecEncodeSelf(e)
23276					}
23277				} else {
23278					r.EncodeNil()
23279				}
23280			} else {
23281				if yyq2[2] {
23282					z.EncSendContainerState(codecSelfer_containerMapKey1234)
23283					r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
23284					z.EncSendContainerState(codecSelfer_containerMapValue1234)
23285					if x.SecretRef == nil {
23286						r.EncodeNil()
23287					} else {
23288						x.SecretRef.CodecEncodeSelf(e)
23289					}
23290				}
23291			}
23292			if yyr2 || yy2arr2 {
23293				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
23294			} else {
23295				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
23296			}
23297		}
23298	}
23299}
23300
23301func (x *EnvFromSource) CodecDecodeSelf(d *codec1978.Decoder) {
23302	var h codecSelfer1234
23303	z, r := codec1978.GenHelperDecoder(d)
23304	_, _, _ = h, z, r
23305	yym1 := z.DecBinary()
23306	_ = yym1
23307	if false {
23308	} else if z.HasExtensions() && z.DecExt(x) {
23309	} else {
23310		yyct2 := r.ContainerType()
23311		if yyct2 == codecSelferValueTypeMap1234 {
23312			yyl2 := r.ReadMapStart()
23313			if yyl2 == 0 {
23314				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
23315			} else {
23316				x.codecDecodeSelfFromMap(yyl2, d)
23317			}
23318		} else if yyct2 == codecSelferValueTypeArray1234 {
23319			yyl2 := r.ReadArrayStart()
23320			if yyl2 == 0 {
23321				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
23322			} else {
23323				x.codecDecodeSelfFromArray(yyl2, d)
23324			}
23325		} else {
23326			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
23327		}
23328	}
23329}
23330
23331func (x *EnvFromSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
23332	var h codecSelfer1234
23333	z, r := codec1978.GenHelperDecoder(d)
23334	_, _, _ = h, z, r
23335	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
23336	_ = yys3Slc
23337	var yyhl3 bool = l >= 0
23338	for yyj3 := 0; ; yyj3++ {
23339		if yyhl3 {
23340			if yyj3 >= l {
23341				break
23342			}
23343		} else {
23344			if r.CheckBreak() {
23345				break
23346			}
23347		}
23348		z.DecSendContainerState(codecSelfer_containerMapKey1234)
23349		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
23350		yys3 := string(yys3Slc)
23351		z.DecSendContainerState(codecSelfer_containerMapValue1234)
23352		switch yys3 {
23353		case "prefix":
23354			if r.TryDecodeAsNil() {
23355				x.Prefix = ""
23356			} else {
23357				yyv4 := &x.Prefix
23358				yym5 := z.DecBinary()
23359				_ = yym5
23360				if false {
23361				} else {
23362					*((*string)(yyv4)) = r.DecodeString()
23363				}
23364			}
23365		case "configMapRef":
23366			if r.TryDecodeAsNil() {
23367				if x.ConfigMapRef != nil {
23368					x.ConfigMapRef = nil
23369				}
23370			} else {
23371				if x.ConfigMapRef == nil {
23372					x.ConfigMapRef = new(ConfigMapEnvSource)
23373				}
23374				x.ConfigMapRef.CodecDecodeSelf(d)
23375			}
23376		case "secretRef":
23377			if r.TryDecodeAsNil() {
23378				if x.SecretRef != nil {
23379					x.SecretRef = nil
23380				}
23381			} else {
23382				if x.SecretRef == nil {
23383					x.SecretRef = new(SecretEnvSource)
23384				}
23385				x.SecretRef.CodecDecodeSelf(d)
23386			}
23387		default:
23388			z.DecStructFieldNotFound(-1, yys3)
23389		} // end switch yys3
23390	} // end for yyj3
23391	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
23392}
23393
23394func (x *EnvFromSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
23395	var h codecSelfer1234
23396	z, r := codec1978.GenHelperDecoder(d)
23397	_, _, _ = h, z, r
23398	var yyj8 int
23399	var yyb8 bool
23400	var yyhl8 bool = l >= 0
23401	yyj8++
23402	if yyhl8 {
23403		yyb8 = yyj8 > l
23404	} else {
23405		yyb8 = r.CheckBreak()
23406	}
23407	if yyb8 {
23408		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
23409		return
23410	}
23411	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
23412	if r.TryDecodeAsNil() {
23413		x.Prefix = ""
23414	} else {
23415		yyv9 := &x.Prefix
23416		yym10 := z.DecBinary()
23417		_ = yym10
23418		if false {
23419		} else {
23420			*((*string)(yyv9)) = r.DecodeString()
23421		}
23422	}
23423	yyj8++
23424	if yyhl8 {
23425		yyb8 = yyj8 > l
23426	} else {
23427		yyb8 = r.CheckBreak()
23428	}
23429	if yyb8 {
23430		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
23431		return
23432	}
23433	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
23434	if r.TryDecodeAsNil() {
23435		if x.ConfigMapRef != nil {
23436			x.ConfigMapRef = nil
23437		}
23438	} else {
23439		if x.ConfigMapRef == nil {
23440			x.ConfigMapRef = new(ConfigMapEnvSource)
23441		}
23442		x.ConfigMapRef.CodecDecodeSelf(d)
23443	}
23444	yyj8++
23445	if yyhl8 {
23446		yyb8 = yyj8 > l
23447	} else {
23448		yyb8 = r.CheckBreak()
23449	}
23450	if yyb8 {
23451		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
23452		return
23453	}
23454	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
23455	if r.TryDecodeAsNil() {
23456		if x.SecretRef != nil {
23457			x.SecretRef = nil
23458		}
23459	} else {
23460		if x.SecretRef == nil {
23461			x.SecretRef = new(SecretEnvSource)
23462		}
23463		x.SecretRef.CodecDecodeSelf(d)
23464	}
23465	for {
23466		yyj8++
23467		if yyhl8 {
23468			yyb8 = yyj8 > l
23469		} else {
23470			yyb8 = r.CheckBreak()
23471		}
23472		if yyb8 {
23473			break
23474		}
23475		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
23476		z.DecStructFieldNotFound(yyj8-1, "")
23477	}
23478	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
23479}
23480
23481func (x *ConfigMapEnvSource) CodecEncodeSelf(e *codec1978.Encoder) {
23482	var h codecSelfer1234
23483	z, r := codec1978.GenHelperEncoder(e)
23484	_, _, _ = h, z, r
23485	if x == nil {
23486		r.EncodeNil()
23487	} else {
23488		yym1 := z.EncBinary()
23489		_ = yym1
23490		if false {
23491		} else if z.HasExtensions() && z.EncExt(x) {
23492		} else {
23493			yysep2 := !z.EncBinary()
23494			yy2arr2 := z.EncBasicHandle().StructToArray
23495			var yyq2 [2]bool
23496			_, _, _ = yysep2, yyq2, yy2arr2
23497			const yyr2 bool = false
23498			yyq2[0] = x.Name != ""
23499			yyq2[1] = x.Optional != nil
23500			var yynn2 int
23501			if yyr2 || yy2arr2 {
23502				r.EncodeArrayStart(2)
23503			} else {
23504				yynn2 = 0
23505				for _, b := range yyq2 {
23506					if b {
23507						yynn2++
23508					}
23509				}
23510				r.EncodeMapStart(yynn2)
23511				yynn2 = 0
23512			}
23513			if yyr2 || yy2arr2 {
23514				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
23515				if yyq2[0] {
23516					yym4 := z.EncBinary()
23517					_ = yym4
23518					if false {
23519					} else {
23520						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
23521					}
23522				} else {
23523					r.EncodeString(codecSelferC_UTF81234, "")
23524				}
23525			} else {
23526				if yyq2[0] {
23527					z.EncSendContainerState(codecSelfer_containerMapKey1234)
23528					r.EncodeString(codecSelferC_UTF81234, string("name"))
23529					z.EncSendContainerState(codecSelfer_containerMapValue1234)
23530					yym5 := z.EncBinary()
23531					_ = yym5
23532					if false {
23533					} else {
23534						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
23535					}
23536				}
23537			}
23538			if yyr2 || yy2arr2 {
23539				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
23540				if yyq2[1] {
23541					if x.Optional == nil {
23542						r.EncodeNil()
23543					} else {
23544						yy7 := *x.Optional
23545						yym8 := z.EncBinary()
23546						_ = yym8
23547						if false {
23548						} else {
23549							r.EncodeBool(bool(yy7))
23550						}
23551					}
23552				} else {
23553					r.EncodeNil()
23554				}
23555			} else {
23556				if yyq2[1] {
23557					z.EncSendContainerState(codecSelfer_containerMapKey1234)
23558					r.EncodeString(codecSelferC_UTF81234, string("optional"))
23559					z.EncSendContainerState(codecSelfer_containerMapValue1234)
23560					if x.Optional == nil {
23561						r.EncodeNil()
23562					} else {
23563						yy9 := *x.Optional
23564						yym10 := z.EncBinary()
23565						_ = yym10
23566						if false {
23567						} else {
23568							r.EncodeBool(bool(yy9))
23569						}
23570					}
23571				}
23572			}
23573			if yyr2 || yy2arr2 {
23574				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
23575			} else {
23576				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
23577			}
23578		}
23579	}
23580}
23581
23582func (x *ConfigMapEnvSource) CodecDecodeSelf(d *codec1978.Decoder) {
23583	var h codecSelfer1234
23584	z, r := codec1978.GenHelperDecoder(d)
23585	_, _, _ = h, z, r
23586	yym1 := z.DecBinary()
23587	_ = yym1
23588	if false {
23589	} else if z.HasExtensions() && z.DecExt(x) {
23590	} else {
23591		yyct2 := r.ContainerType()
23592		if yyct2 == codecSelferValueTypeMap1234 {
23593			yyl2 := r.ReadMapStart()
23594			if yyl2 == 0 {
23595				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
23596			} else {
23597				x.codecDecodeSelfFromMap(yyl2, d)
23598			}
23599		} else if yyct2 == codecSelferValueTypeArray1234 {
23600			yyl2 := r.ReadArrayStart()
23601			if yyl2 == 0 {
23602				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
23603			} else {
23604				x.codecDecodeSelfFromArray(yyl2, d)
23605			}
23606		} else {
23607			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
23608		}
23609	}
23610}
23611
23612func (x *ConfigMapEnvSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
23613	var h codecSelfer1234
23614	z, r := codec1978.GenHelperDecoder(d)
23615	_, _, _ = h, z, r
23616	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
23617	_ = yys3Slc
23618	var yyhl3 bool = l >= 0
23619	for yyj3 := 0; ; yyj3++ {
23620		if yyhl3 {
23621			if yyj3 >= l {
23622				break
23623			}
23624		} else {
23625			if r.CheckBreak() {
23626				break
23627			}
23628		}
23629		z.DecSendContainerState(codecSelfer_containerMapKey1234)
23630		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
23631		yys3 := string(yys3Slc)
23632		z.DecSendContainerState(codecSelfer_containerMapValue1234)
23633		switch yys3 {
23634		case "name":
23635			if r.TryDecodeAsNil() {
23636				x.Name = ""
23637			} else {
23638				yyv4 := &x.Name
23639				yym5 := z.DecBinary()
23640				_ = yym5
23641				if false {
23642				} else {
23643					*((*string)(yyv4)) = r.DecodeString()
23644				}
23645			}
23646		case "optional":
23647			if r.TryDecodeAsNil() {
23648				if x.Optional != nil {
23649					x.Optional = nil
23650				}
23651			} else {
23652				if x.Optional == nil {
23653					x.Optional = new(bool)
23654				}
23655				yym7 := z.DecBinary()
23656				_ = yym7
23657				if false {
23658				} else {
23659					*((*bool)(x.Optional)) = r.DecodeBool()
23660				}
23661			}
23662		default:
23663			z.DecStructFieldNotFound(-1, yys3)
23664		} // end switch yys3
23665	} // end for yyj3
23666	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
23667}
23668
23669func (x *ConfigMapEnvSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
23670	var h codecSelfer1234
23671	z, r := codec1978.GenHelperDecoder(d)
23672	_, _, _ = h, z, r
23673	var yyj8 int
23674	var yyb8 bool
23675	var yyhl8 bool = l >= 0
23676	yyj8++
23677	if yyhl8 {
23678		yyb8 = yyj8 > l
23679	} else {
23680		yyb8 = r.CheckBreak()
23681	}
23682	if yyb8 {
23683		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
23684		return
23685	}
23686	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
23687	if r.TryDecodeAsNil() {
23688		x.Name = ""
23689	} else {
23690		yyv9 := &x.Name
23691		yym10 := z.DecBinary()
23692		_ = yym10
23693		if false {
23694		} else {
23695			*((*string)(yyv9)) = r.DecodeString()
23696		}
23697	}
23698	yyj8++
23699	if yyhl8 {
23700		yyb8 = yyj8 > l
23701	} else {
23702		yyb8 = r.CheckBreak()
23703	}
23704	if yyb8 {
23705		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
23706		return
23707	}
23708	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
23709	if r.TryDecodeAsNil() {
23710		if x.Optional != nil {
23711			x.Optional = nil
23712		}
23713	} else {
23714		if x.Optional == nil {
23715			x.Optional = new(bool)
23716		}
23717		yym12 := z.DecBinary()
23718		_ = yym12
23719		if false {
23720		} else {
23721			*((*bool)(x.Optional)) = r.DecodeBool()
23722		}
23723	}
23724	for {
23725		yyj8++
23726		if yyhl8 {
23727			yyb8 = yyj8 > l
23728		} else {
23729			yyb8 = r.CheckBreak()
23730		}
23731		if yyb8 {
23732			break
23733		}
23734		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
23735		z.DecStructFieldNotFound(yyj8-1, "")
23736	}
23737	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
23738}
23739
23740func (x *SecretEnvSource) CodecEncodeSelf(e *codec1978.Encoder) {
23741	var h codecSelfer1234
23742	z, r := codec1978.GenHelperEncoder(e)
23743	_, _, _ = h, z, r
23744	if x == nil {
23745		r.EncodeNil()
23746	} else {
23747		yym1 := z.EncBinary()
23748		_ = yym1
23749		if false {
23750		} else if z.HasExtensions() && z.EncExt(x) {
23751		} else {
23752			yysep2 := !z.EncBinary()
23753			yy2arr2 := z.EncBasicHandle().StructToArray
23754			var yyq2 [2]bool
23755			_, _, _ = yysep2, yyq2, yy2arr2
23756			const yyr2 bool = false
23757			yyq2[0] = x.Name != ""
23758			yyq2[1] = x.Optional != nil
23759			var yynn2 int
23760			if yyr2 || yy2arr2 {
23761				r.EncodeArrayStart(2)
23762			} else {
23763				yynn2 = 0
23764				for _, b := range yyq2 {
23765					if b {
23766						yynn2++
23767					}
23768				}
23769				r.EncodeMapStart(yynn2)
23770				yynn2 = 0
23771			}
23772			if yyr2 || yy2arr2 {
23773				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
23774				if yyq2[0] {
23775					yym4 := z.EncBinary()
23776					_ = yym4
23777					if false {
23778					} else {
23779						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
23780					}
23781				} else {
23782					r.EncodeString(codecSelferC_UTF81234, "")
23783				}
23784			} else {
23785				if yyq2[0] {
23786					z.EncSendContainerState(codecSelfer_containerMapKey1234)
23787					r.EncodeString(codecSelferC_UTF81234, string("name"))
23788					z.EncSendContainerState(codecSelfer_containerMapValue1234)
23789					yym5 := z.EncBinary()
23790					_ = yym5
23791					if false {
23792					} else {
23793						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
23794					}
23795				}
23796			}
23797			if yyr2 || yy2arr2 {
23798				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
23799				if yyq2[1] {
23800					if x.Optional == nil {
23801						r.EncodeNil()
23802					} else {
23803						yy7 := *x.Optional
23804						yym8 := z.EncBinary()
23805						_ = yym8
23806						if false {
23807						} else {
23808							r.EncodeBool(bool(yy7))
23809						}
23810					}
23811				} else {
23812					r.EncodeNil()
23813				}
23814			} else {
23815				if yyq2[1] {
23816					z.EncSendContainerState(codecSelfer_containerMapKey1234)
23817					r.EncodeString(codecSelferC_UTF81234, string("optional"))
23818					z.EncSendContainerState(codecSelfer_containerMapValue1234)
23819					if x.Optional == nil {
23820						r.EncodeNil()
23821					} else {
23822						yy9 := *x.Optional
23823						yym10 := z.EncBinary()
23824						_ = yym10
23825						if false {
23826						} else {
23827							r.EncodeBool(bool(yy9))
23828						}
23829					}
23830				}
23831			}
23832			if yyr2 || yy2arr2 {
23833				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
23834			} else {
23835				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
23836			}
23837		}
23838	}
23839}
23840
23841func (x *SecretEnvSource) CodecDecodeSelf(d *codec1978.Decoder) {
23842	var h codecSelfer1234
23843	z, r := codec1978.GenHelperDecoder(d)
23844	_, _, _ = h, z, r
23845	yym1 := z.DecBinary()
23846	_ = yym1
23847	if false {
23848	} else if z.HasExtensions() && z.DecExt(x) {
23849	} else {
23850		yyct2 := r.ContainerType()
23851		if yyct2 == codecSelferValueTypeMap1234 {
23852			yyl2 := r.ReadMapStart()
23853			if yyl2 == 0 {
23854				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
23855			} else {
23856				x.codecDecodeSelfFromMap(yyl2, d)
23857			}
23858		} else if yyct2 == codecSelferValueTypeArray1234 {
23859			yyl2 := r.ReadArrayStart()
23860			if yyl2 == 0 {
23861				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
23862			} else {
23863				x.codecDecodeSelfFromArray(yyl2, d)
23864			}
23865		} else {
23866			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
23867		}
23868	}
23869}
23870
23871func (x *SecretEnvSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
23872	var h codecSelfer1234
23873	z, r := codec1978.GenHelperDecoder(d)
23874	_, _, _ = h, z, r
23875	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
23876	_ = yys3Slc
23877	var yyhl3 bool = l >= 0
23878	for yyj3 := 0; ; yyj3++ {
23879		if yyhl3 {
23880			if yyj3 >= l {
23881				break
23882			}
23883		} else {
23884			if r.CheckBreak() {
23885				break
23886			}
23887		}
23888		z.DecSendContainerState(codecSelfer_containerMapKey1234)
23889		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
23890		yys3 := string(yys3Slc)
23891		z.DecSendContainerState(codecSelfer_containerMapValue1234)
23892		switch yys3 {
23893		case "name":
23894			if r.TryDecodeAsNil() {
23895				x.Name = ""
23896			} else {
23897				yyv4 := &x.Name
23898				yym5 := z.DecBinary()
23899				_ = yym5
23900				if false {
23901				} else {
23902					*((*string)(yyv4)) = r.DecodeString()
23903				}
23904			}
23905		case "optional":
23906			if r.TryDecodeAsNil() {
23907				if x.Optional != nil {
23908					x.Optional = nil
23909				}
23910			} else {
23911				if x.Optional == nil {
23912					x.Optional = new(bool)
23913				}
23914				yym7 := z.DecBinary()
23915				_ = yym7
23916				if false {
23917				} else {
23918					*((*bool)(x.Optional)) = r.DecodeBool()
23919				}
23920			}
23921		default:
23922			z.DecStructFieldNotFound(-1, yys3)
23923		} // end switch yys3
23924	} // end for yyj3
23925	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
23926}
23927
23928func (x *SecretEnvSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
23929	var h codecSelfer1234
23930	z, r := codec1978.GenHelperDecoder(d)
23931	_, _, _ = h, z, r
23932	var yyj8 int
23933	var yyb8 bool
23934	var yyhl8 bool = l >= 0
23935	yyj8++
23936	if yyhl8 {
23937		yyb8 = yyj8 > l
23938	} else {
23939		yyb8 = r.CheckBreak()
23940	}
23941	if yyb8 {
23942		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
23943		return
23944	}
23945	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
23946	if r.TryDecodeAsNil() {
23947		x.Name = ""
23948	} else {
23949		yyv9 := &x.Name
23950		yym10 := z.DecBinary()
23951		_ = yym10
23952		if false {
23953		} else {
23954			*((*string)(yyv9)) = r.DecodeString()
23955		}
23956	}
23957	yyj8++
23958	if yyhl8 {
23959		yyb8 = yyj8 > l
23960	} else {
23961		yyb8 = r.CheckBreak()
23962	}
23963	if yyb8 {
23964		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
23965		return
23966	}
23967	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
23968	if r.TryDecodeAsNil() {
23969		if x.Optional != nil {
23970			x.Optional = nil
23971		}
23972	} else {
23973		if x.Optional == nil {
23974			x.Optional = new(bool)
23975		}
23976		yym12 := z.DecBinary()
23977		_ = yym12
23978		if false {
23979		} else {
23980			*((*bool)(x.Optional)) = r.DecodeBool()
23981		}
23982	}
23983	for {
23984		yyj8++
23985		if yyhl8 {
23986			yyb8 = yyj8 > l
23987		} else {
23988			yyb8 = r.CheckBreak()
23989		}
23990		if yyb8 {
23991			break
23992		}
23993		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
23994		z.DecStructFieldNotFound(yyj8-1, "")
23995	}
23996	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
23997}
23998
23999func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) {
24000	var h codecSelfer1234
24001	z, r := codec1978.GenHelperEncoder(e)
24002	_, _, _ = h, z, r
24003	if x == nil {
24004		r.EncodeNil()
24005	} else {
24006		yym1 := z.EncBinary()
24007		_ = yym1
24008		if false {
24009		} else if z.HasExtensions() && z.EncExt(x) {
24010		} else {
24011			yysep2 := !z.EncBinary()
24012			yy2arr2 := z.EncBasicHandle().StructToArray
24013			var yyq2 [2]bool
24014			_, _, _ = yysep2, yyq2, yy2arr2
24015			const yyr2 bool = false
24016			var yynn2 int
24017			if yyr2 || yy2arr2 {
24018				r.EncodeArrayStart(2)
24019			} else {
24020				yynn2 = 2
24021				for _, b := range yyq2 {
24022					if b {
24023						yynn2++
24024					}
24025				}
24026				r.EncodeMapStart(yynn2)
24027				yynn2 = 0
24028			}
24029			if yyr2 || yy2arr2 {
24030				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
24031				yym4 := z.EncBinary()
24032				_ = yym4
24033				if false {
24034				} else {
24035					r.EncodeString(codecSelferC_UTF81234, string(x.Name))
24036				}
24037			} else {
24038				z.EncSendContainerState(codecSelfer_containerMapKey1234)
24039				r.EncodeString(codecSelferC_UTF81234, string("name"))
24040				z.EncSendContainerState(codecSelfer_containerMapValue1234)
24041				yym5 := z.EncBinary()
24042				_ = yym5
24043				if false {
24044				} else {
24045					r.EncodeString(codecSelferC_UTF81234, string(x.Name))
24046				}
24047			}
24048			if yyr2 || yy2arr2 {
24049				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
24050				yym7 := z.EncBinary()
24051				_ = yym7
24052				if false {
24053				} else {
24054					r.EncodeString(codecSelferC_UTF81234, string(x.Value))
24055				}
24056			} else {
24057				z.EncSendContainerState(codecSelfer_containerMapKey1234)
24058				r.EncodeString(codecSelferC_UTF81234, string("value"))
24059				z.EncSendContainerState(codecSelfer_containerMapValue1234)
24060				yym8 := z.EncBinary()
24061				_ = yym8
24062				if false {
24063				} else {
24064					r.EncodeString(codecSelferC_UTF81234, string(x.Value))
24065				}
24066			}
24067			if yyr2 || yy2arr2 {
24068				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
24069			} else {
24070				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
24071			}
24072		}
24073	}
24074}
24075
24076func (x *HTTPHeader) CodecDecodeSelf(d *codec1978.Decoder) {
24077	var h codecSelfer1234
24078	z, r := codec1978.GenHelperDecoder(d)
24079	_, _, _ = h, z, r
24080	yym1 := z.DecBinary()
24081	_ = yym1
24082	if false {
24083	} else if z.HasExtensions() && z.DecExt(x) {
24084	} else {
24085		yyct2 := r.ContainerType()
24086		if yyct2 == codecSelferValueTypeMap1234 {
24087			yyl2 := r.ReadMapStart()
24088			if yyl2 == 0 {
24089				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
24090			} else {
24091				x.codecDecodeSelfFromMap(yyl2, d)
24092			}
24093		} else if yyct2 == codecSelferValueTypeArray1234 {
24094			yyl2 := r.ReadArrayStart()
24095			if yyl2 == 0 {
24096				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
24097			} else {
24098				x.codecDecodeSelfFromArray(yyl2, d)
24099			}
24100		} else {
24101			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
24102		}
24103	}
24104}
24105
24106func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
24107	var h codecSelfer1234
24108	z, r := codec1978.GenHelperDecoder(d)
24109	_, _, _ = h, z, r
24110	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
24111	_ = yys3Slc
24112	var yyhl3 bool = l >= 0
24113	for yyj3 := 0; ; yyj3++ {
24114		if yyhl3 {
24115			if yyj3 >= l {
24116				break
24117			}
24118		} else {
24119			if r.CheckBreak() {
24120				break
24121			}
24122		}
24123		z.DecSendContainerState(codecSelfer_containerMapKey1234)
24124		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
24125		yys3 := string(yys3Slc)
24126		z.DecSendContainerState(codecSelfer_containerMapValue1234)
24127		switch yys3 {
24128		case "name":
24129			if r.TryDecodeAsNil() {
24130				x.Name = ""
24131			} else {
24132				yyv4 := &x.Name
24133				yym5 := z.DecBinary()
24134				_ = yym5
24135				if false {
24136				} else {
24137					*((*string)(yyv4)) = r.DecodeString()
24138				}
24139			}
24140		case "value":
24141			if r.TryDecodeAsNil() {
24142				x.Value = ""
24143			} else {
24144				yyv6 := &x.Value
24145				yym7 := z.DecBinary()
24146				_ = yym7
24147				if false {
24148				} else {
24149					*((*string)(yyv6)) = r.DecodeString()
24150				}
24151			}
24152		default:
24153			z.DecStructFieldNotFound(-1, yys3)
24154		} // end switch yys3
24155	} // end for yyj3
24156	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
24157}
24158
24159func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
24160	var h codecSelfer1234
24161	z, r := codec1978.GenHelperDecoder(d)
24162	_, _, _ = h, z, r
24163	var yyj8 int
24164	var yyb8 bool
24165	var yyhl8 bool = l >= 0
24166	yyj8++
24167	if yyhl8 {
24168		yyb8 = yyj8 > l
24169	} else {
24170		yyb8 = r.CheckBreak()
24171	}
24172	if yyb8 {
24173		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
24174		return
24175	}
24176	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
24177	if r.TryDecodeAsNil() {
24178		x.Name = ""
24179	} else {
24180		yyv9 := &x.Name
24181		yym10 := z.DecBinary()
24182		_ = yym10
24183		if false {
24184		} else {
24185			*((*string)(yyv9)) = r.DecodeString()
24186		}
24187	}
24188	yyj8++
24189	if yyhl8 {
24190		yyb8 = yyj8 > l
24191	} else {
24192		yyb8 = r.CheckBreak()
24193	}
24194	if yyb8 {
24195		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
24196		return
24197	}
24198	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
24199	if r.TryDecodeAsNil() {
24200		x.Value = ""
24201	} else {
24202		yyv11 := &x.Value
24203		yym12 := z.DecBinary()
24204		_ = yym12
24205		if false {
24206		} else {
24207			*((*string)(yyv11)) = r.DecodeString()
24208		}
24209	}
24210	for {
24211		yyj8++
24212		if yyhl8 {
24213			yyb8 = yyj8 > l
24214		} else {
24215			yyb8 = r.CheckBreak()
24216		}
24217		if yyb8 {
24218			break
24219		}
24220		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
24221		z.DecStructFieldNotFound(yyj8-1, "")
24222	}
24223	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
24224}
24225
24226func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) {
24227	var h codecSelfer1234
24228	z, r := codec1978.GenHelperEncoder(e)
24229	_, _, _ = h, z, r
24230	if x == nil {
24231		r.EncodeNil()
24232	} else {
24233		yym1 := z.EncBinary()
24234		_ = yym1
24235		if false {
24236		} else if z.HasExtensions() && z.EncExt(x) {
24237		} else {
24238			yysep2 := !z.EncBinary()
24239			yy2arr2 := z.EncBasicHandle().StructToArray
24240			var yyq2 [5]bool
24241			_, _, _ = yysep2, yyq2, yy2arr2
24242			const yyr2 bool = false
24243			yyq2[0] = x.Path != ""
24244			yyq2[2] = x.Host != ""
24245			yyq2[3] = x.Scheme != ""
24246			yyq2[4] = len(x.HTTPHeaders) != 0
24247			var yynn2 int
24248			if yyr2 || yy2arr2 {
24249				r.EncodeArrayStart(5)
24250			} else {
24251				yynn2 = 1
24252				for _, b := range yyq2 {
24253					if b {
24254						yynn2++
24255					}
24256				}
24257				r.EncodeMapStart(yynn2)
24258				yynn2 = 0
24259			}
24260			if yyr2 || yy2arr2 {
24261				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
24262				if yyq2[0] {
24263					yym4 := z.EncBinary()
24264					_ = yym4
24265					if false {
24266					} else {
24267						r.EncodeString(codecSelferC_UTF81234, string(x.Path))
24268					}
24269				} else {
24270					r.EncodeString(codecSelferC_UTF81234, "")
24271				}
24272			} else {
24273				if yyq2[0] {
24274					z.EncSendContainerState(codecSelfer_containerMapKey1234)
24275					r.EncodeString(codecSelferC_UTF81234, string("path"))
24276					z.EncSendContainerState(codecSelfer_containerMapValue1234)
24277					yym5 := z.EncBinary()
24278					_ = yym5
24279					if false {
24280					} else {
24281						r.EncodeString(codecSelferC_UTF81234, string(x.Path))
24282					}
24283				}
24284			}
24285			if yyr2 || yy2arr2 {
24286				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
24287				yy7 := &x.Port
24288				yym8 := z.EncBinary()
24289				_ = yym8
24290				if false {
24291				} else if z.HasExtensions() && z.EncExt(yy7) {
24292				} else if !yym8 && z.IsJSONHandle() {
24293					z.EncJSONMarshal(yy7)
24294				} else {
24295					z.EncFallback(yy7)
24296				}
24297			} else {
24298				z.EncSendContainerState(codecSelfer_containerMapKey1234)
24299				r.EncodeString(codecSelferC_UTF81234, string("port"))
24300				z.EncSendContainerState(codecSelfer_containerMapValue1234)
24301				yy9 := &x.Port
24302				yym10 := z.EncBinary()
24303				_ = yym10
24304				if false {
24305				} else if z.HasExtensions() && z.EncExt(yy9) {
24306				} else if !yym10 && z.IsJSONHandle() {
24307					z.EncJSONMarshal(yy9)
24308				} else {
24309					z.EncFallback(yy9)
24310				}
24311			}
24312			if yyr2 || yy2arr2 {
24313				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
24314				if yyq2[2] {
24315					yym12 := z.EncBinary()
24316					_ = yym12
24317					if false {
24318					} else {
24319						r.EncodeString(codecSelferC_UTF81234, string(x.Host))
24320					}
24321				} else {
24322					r.EncodeString(codecSelferC_UTF81234, "")
24323				}
24324			} else {
24325				if yyq2[2] {
24326					z.EncSendContainerState(codecSelfer_containerMapKey1234)
24327					r.EncodeString(codecSelferC_UTF81234, string("host"))
24328					z.EncSendContainerState(codecSelfer_containerMapValue1234)
24329					yym13 := z.EncBinary()
24330					_ = yym13
24331					if false {
24332					} else {
24333						r.EncodeString(codecSelferC_UTF81234, string(x.Host))
24334					}
24335				}
24336			}
24337			if yyr2 || yy2arr2 {
24338				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
24339				if yyq2[3] {
24340					x.Scheme.CodecEncodeSelf(e)
24341				} else {
24342					r.EncodeString(codecSelferC_UTF81234, "")
24343				}
24344			} else {
24345				if yyq2[3] {
24346					z.EncSendContainerState(codecSelfer_containerMapKey1234)
24347					r.EncodeString(codecSelferC_UTF81234, string("scheme"))
24348					z.EncSendContainerState(codecSelfer_containerMapValue1234)
24349					x.Scheme.CodecEncodeSelf(e)
24350				}
24351			}
24352			if yyr2 || yy2arr2 {
24353				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
24354				if yyq2[4] {
24355					if x.HTTPHeaders == nil {
24356						r.EncodeNil()
24357					} else {
24358						yym18 := z.EncBinary()
24359						_ = yym18
24360						if false {
24361						} else {
24362							h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e)
24363						}
24364					}
24365				} else {
24366					r.EncodeNil()
24367				}
24368			} else {
24369				if yyq2[4] {
24370					z.EncSendContainerState(codecSelfer_containerMapKey1234)
24371					r.EncodeString(codecSelferC_UTF81234, string("httpHeaders"))
24372					z.EncSendContainerState(codecSelfer_containerMapValue1234)
24373					if x.HTTPHeaders == nil {
24374						r.EncodeNil()
24375					} else {
24376						yym19 := z.EncBinary()
24377						_ = yym19
24378						if false {
24379						} else {
24380							h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e)
24381						}
24382					}
24383				}
24384			}
24385			if yyr2 || yy2arr2 {
24386				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
24387			} else {
24388				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
24389			}
24390		}
24391	}
24392}
24393
24394func (x *HTTPGetAction) CodecDecodeSelf(d *codec1978.Decoder) {
24395	var h codecSelfer1234
24396	z, r := codec1978.GenHelperDecoder(d)
24397	_, _, _ = h, z, r
24398	yym1 := z.DecBinary()
24399	_ = yym1
24400	if false {
24401	} else if z.HasExtensions() && z.DecExt(x) {
24402	} else {
24403		yyct2 := r.ContainerType()
24404		if yyct2 == codecSelferValueTypeMap1234 {
24405			yyl2 := r.ReadMapStart()
24406			if yyl2 == 0 {
24407				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
24408			} else {
24409				x.codecDecodeSelfFromMap(yyl2, d)
24410			}
24411		} else if yyct2 == codecSelferValueTypeArray1234 {
24412			yyl2 := r.ReadArrayStart()
24413			if yyl2 == 0 {
24414				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
24415			} else {
24416				x.codecDecodeSelfFromArray(yyl2, d)
24417			}
24418		} else {
24419			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
24420		}
24421	}
24422}
24423
24424func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
24425	var h codecSelfer1234
24426	z, r := codec1978.GenHelperDecoder(d)
24427	_, _, _ = h, z, r
24428	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
24429	_ = yys3Slc
24430	var yyhl3 bool = l >= 0
24431	for yyj3 := 0; ; yyj3++ {
24432		if yyhl3 {
24433			if yyj3 >= l {
24434				break
24435			}
24436		} else {
24437			if r.CheckBreak() {
24438				break
24439			}
24440		}
24441		z.DecSendContainerState(codecSelfer_containerMapKey1234)
24442		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
24443		yys3 := string(yys3Slc)
24444		z.DecSendContainerState(codecSelfer_containerMapValue1234)
24445		switch yys3 {
24446		case "path":
24447			if r.TryDecodeAsNil() {
24448				x.Path = ""
24449			} else {
24450				yyv4 := &x.Path
24451				yym5 := z.DecBinary()
24452				_ = yym5
24453				if false {
24454				} else {
24455					*((*string)(yyv4)) = r.DecodeString()
24456				}
24457			}
24458		case "port":
24459			if r.TryDecodeAsNil() {
24460				x.Port = pkg4_intstr.IntOrString{}
24461			} else {
24462				yyv6 := &x.Port
24463				yym7 := z.DecBinary()
24464				_ = yym7
24465				if false {
24466				} else if z.HasExtensions() && z.DecExt(yyv6) {
24467				} else if !yym7 && z.IsJSONHandle() {
24468					z.DecJSONUnmarshal(yyv6)
24469				} else {
24470					z.DecFallback(yyv6, false)
24471				}
24472			}
24473		case "host":
24474			if r.TryDecodeAsNil() {
24475				x.Host = ""
24476			} else {
24477				yyv8 := &x.Host
24478				yym9 := z.DecBinary()
24479				_ = yym9
24480				if false {
24481				} else {
24482					*((*string)(yyv8)) = r.DecodeString()
24483				}
24484			}
24485		case "scheme":
24486			if r.TryDecodeAsNil() {
24487				x.Scheme = ""
24488			} else {
24489				yyv10 := &x.Scheme
24490				yyv10.CodecDecodeSelf(d)
24491			}
24492		case "httpHeaders":
24493			if r.TryDecodeAsNil() {
24494				x.HTTPHeaders = nil
24495			} else {
24496				yyv11 := &x.HTTPHeaders
24497				yym12 := z.DecBinary()
24498				_ = yym12
24499				if false {
24500				} else {
24501					h.decSliceHTTPHeader((*[]HTTPHeader)(yyv11), d)
24502				}
24503			}
24504		default:
24505			z.DecStructFieldNotFound(-1, yys3)
24506		} // end switch yys3
24507	} // end for yyj3
24508	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
24509}
24510
24511func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
24512	var h codecSelfer1234
24513	z, r := codec1978.GenHelperDecoder(d)
24514	_, _, _ = h, z, r
24515	var yyj13 int
24516	var yyb13 bool
24517	var yyhl13 bool = l >= 0
24518	yyj13++
24519	if yyhl13 {
24520		yyb13 = yyj13 > l
24521	} else {
24522		yyb13 = r.CheckBreak()
24523	}
24524	if yyb13 {
24525		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
24526		return
24527	}
24528	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
24529	if r.TryDecodeAsNil() {
24530		x.Path = ""
24531	} else {
24532		yyv14 := &x.Path
24533		yym15 := z.DecBinary()
24534		_ = yym15
24535		if false {
24536		} else {
24537			*((*string)(yyv14)) = r.DecodeString()
24538		}
24539	}
24540	yyj13++
24541	if yyhl13 {
24542		yyb13 = yyj13 > l
24543	} else {
24544		yyb13 = r.CheckBreak()
24545	}
24546	if yyb13 {
24547		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
24548		return
24549	}
24550	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
24551	if r.TryDecodeAsNil() {
24552		x.Port = pkg4_intstr.IntOrString{}
24553	} else {
24554		yyv16 := &x.Port
24555		yym17 := z.DecBinary()
24556		_ = yym17
24557		if false {
24558		} else if z.HasExtensions() && z.DecExt(yyv16) {
24559		} else if !yym17 && z.IsJSONHandle() {
24560			z.DecJSONUnmarshal(yyv16)
24561		} else {
24562			z.DecFallback(yyv16, false)
24563		}
24564	}
24565	yyj13++
24566	if yyhl13 {
24567		yyb13 = yyj13 > l
24568	} else {
24569		yyb13 = r.CheckBreak()
24570	}
24571	if yyb13 {
24572		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
24573		return
24574	}
24575	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
24576	if r.TryDecodeAsNil() {
24577		x.Host = ""
24578	} else {
24579		yyv18 := &x.Host
24580		yym19 := z.DecBinary()
24581		_ = yym19
24582		if false {
24583		} else {
24584			*((*string)(yyv18)) = r.DecodeString()
24585		}
24586	}
24587	yyj13++
24588	if yyhl13 {
24589		yyb13 = yyj13 > l
24590	} else {
24591		yyb13 = r.CheckBreak()
24592	}
24593	if yyb13 {
24594		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
24595		return
24596	}
24597	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
24598	if r.TryDecodeAsNil() {
24599		x.Scheme = ""
24600	} else {
24601		yyv20 := &x.Scheme
24602		yyv20.CodecDecodeSelf(d)
24603	}
24604	yyj13++
24605	if yyhl13 {
24606		yyb13 = yyj13 > l
24607	} else {
24608		yyb13 = r.CheckBreak()
24609	}
24610	if yyb13 {
24611		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
24612		return
24613	}
24614	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
24615	if r.TryDecodeAsNil() {
24616		x.HTTPHeaders = nil
24617	} else {
24618		yyv21 := &x.HTTPHeaders
24619		yym22 := z.DecBinary()
24620		_ = yym22
24621		if false {
24622		} else {
24623			h.decSliceHTTPHeader((*[]HTTPHeader)(yyv21), d)
24624		}
24625	}
24626	for {
24627		yyj13++
24628		if yyhl13 {
24629			yyb13 = yyj13 > l
24630		} else {
24631			yyb13 = r.CheckBreak()
24632		}
24633		if yyb13 {
24634			break
24635		}
24636		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
24637		z.DecStructFieldNotFound(yyj13-1, "")
24638	}
24639	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
24640}
24641
24642func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) {
24643	var h codecSelfer1234
24644	z, r := codec1978.GenHelperEncoder(e)
24645	_, _, _ = h, z, r
24646	yym1 := z.EncBinary()
24647	_ = yym1
24648	if false {
24649	} else if z.HasExtensions() && z.EncExt(x) {
24650	} else {
24651		r.EncodeString(codecSelferC_UTF81234, string(x))
24652	}
24653}
24654
24655func (x *URIScheme) CodecDecodeSelf(d *codec1978.Decoder) {
24656	var h codecSelfer1234
24657	z, r := codec1978.GenHelperDecoder(d)
24658	_, _, _ = h, z, r
24659	yym1 := z.DecBinary()
24660	_ = yym1
24661	if false {
24662	} else if z.HasExtensions() && z.DecExt(x) {
24663	} else {
24664		*((*string)(x)) = r.DecodeString()
24665	}
24666}
24667
24668func (x *TCPSocketAction) CodecEncodeSelf(e *codec1978.Encoder) {
24669	var h codecSelfer1234
24670	z, r := codec1978.GenHelperEncoder(e)
24671	_, _, _ = h, z, r
24672	if x == nil {
24673		r.EncodeNil()
24674	} else {
24675		yym1 := z.EncBinary()
24676		_ = yym1
24677		if false {
24678		} else if z.HasExtensions() && z.EncExt(x) {
24679		} else {
24680			yysep2 := !z.EncBinary()
24681			yy2arr2 := z.EncBasicHandle().StructToArray
24682			var yyq2 [1]bool
24683			_, _, _ = yysep2, yyq2, yy2arr2
24684			const yyr2 bool = false
24685			var yynn2 int
24686			if yyr2 || yy2arr2 {
24687				r.EncodeArrayStart(1)
24688			} else {
24689				yynn2 = 1
24690				for _, b := range yyq2 {
24691					if b {
24692						yynn2++
24693					}
24694				}
24695				r.EncodeMapStart(yynn2)
24696				yynn2 = 0
24697			}
24698			if yyr2 || yy2arr2 {
24699				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
24700				yy4 := &x.Port
24701				yym5 := z.EncBinary()
24702				_ = yym5
24703				if false {
24704				} else if z.HasExtensions() && z.EncExt(yy4) {
24705				} else if !yym5 && z.IsJSONHandle() {
24706					z.EncJSONMarshal(yy4)
24707				} else {
24708					z.EncFallback(yy4)
24709				}
24710			} else {
24711				z.EncSendContainerState(codecSelfer_containerMapKey1234)
24712				r.EncodeString(codecSelferC_UTF81234, string("port"))
24713				z.EncSendContainerState(codecSelfer_containerMapValue1234)
24714				yy6 := &x.Port
24715				yym7 := z.EncBinary()
24716				_ = yym7
24717				if false {
24718				} else if z.HasExtensions() && z.EncExt(yy6) {
24719				} else if !yym7 && z.IsJSONHandle() {
24720					z.EncJSONMarshal(yy6)
24721				} else {
24722					z.EncFallback(yy6)
24723				}
24724			}
24725			if yyr2 || yy2arr2 {
24726				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
24727			} else {
24728				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
24729			}
24730		}
24731	}
24732}
24733
24734func (x *TCPSocketAction) CodecDecodeSelf(d *codec1978.Decoder) {
24735	var h codecSelfer1234
24736	z, r := codec1978.GenHelperDecoder(d)
24737	_, _, _ = h, z, r
24738	yym1 := z.DecBinary()
24739	_ = yym1
24740	if false {
24741	} else if z.HasExtensions() && z.DecExt(x) {
24742	} else {
24743		yyct2 := r.ContainerType()
24744		if yyct2 == codecSelferValueTypeMap1234 {
24745			yyl2 := r.ReadMapStart()
24746			if yyl2 == 0 {
24747				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
24748			} else {
24749				x.codecDecodeSelfFromMap(yyl2, d)
24750			}
24751		} else if yyct2 == codecSelferValueTypeArray1234 {
24752			yyl2 := r.ReadArrayStart()
24753			if yyl2 == 0 {
24754				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
24755			} else {
24756				x.codecDecodeSelfFromArray(yyl2, d)
24757			}
24758		} else {
24759			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
24760		}
24761	}
24762}
24763
24764func (x *TCPSocketAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
24765	var h codecSelfer1234
24766	z, r := codec1978.GenHelperDecoder(d)
24767	_, _, _ = h, z, r
24768	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
24769	_ = yys3Slc
24770	var yyhl3 bool = l >= 0
24771	for yyj3 := 0; ; yyj3++ {
24772		if yyhl3 {
24773			if yyj3 >= l {
24774				break
24775			}
24776		} else {
24777			if r.CheckBreak() {
24778				break
24779			}
24780		}
24781		z.DecSendContainerState(codecSelfer_containerMapKey1234)
24782		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
24783		yys3 := string(yys3Slc)
24784		z.DecSendContainerState(codecSelfer_containerMapValue1234)
24785		switch yys3 {
24786		case "port":
24787			if r.TryDecodeAsNil() {
24788				x.Port = pkg4_intstr.IntOrString{}
24789			} else {
24790				yyv4 := &x.Port
24791				yym5 := z.DecBinary()
24792				_ = yym5
24793				if false {
24794				} else if z.HasExtensions() && z.DecExt(yyv4) {
24795				} else if !yym5 && z.IsJSONHandle() {
24796					z.DecJSONUnmarshal(yyv4)
24797				} else {
24798					z.DecFallback(yyv4, false)
24799				}
24800			}
24801		default:
24802			z.DecStructFieldNotFound(-1, yys3)
24803		} // end switch yys3
24804	} // end for yyj3
24805	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
24806}
24807
24808func (x *TCPSocketAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
24809	var h codecSelfer1234
24810	z, r := codec1978.GenHelperDecoder(d)
24811	_, _, _ = h, z, r
24812	var yyj6 int
24813	var yyb6 bool
24814	var yyhl6 bool = l >= 0
24815	yyj6++
24816	if yyhl6 {
24817		yyb6 = yyj6 > l
24818	} else {
24819		yyb6 = r.CheckBreak()
24820	}
24821	if yyb6 {
24822		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
24823		return
24824	}
24825	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
24826	if r.TryDecodeAsNil() {
24827		x.Port = pkg4_intstr.IntOrString{}
24828	} else {
24829		yyv7 := &x.Port
24830		yym8 := z.DecBinary()
24831		_ = yym8
24832		if false {
24833		} else if z.HasExtensions() && z.DecExt(yyv7) {
24834		} else if !yym8 && z.IsJSONHandle() {
24835			z.DecJSONUnmarshal(yyv7)
24836		} else {
24837			z.DecFallback(yyv7, false)
24838		}
24839	}
24840	for {
24841		yyj6++
24842		if yyhl6 {
24843			yyb6 = yyj6 > l
24844		} else {
24845			yyb6 = r.CheckBreak()
24846		}
24847		if yyb6 {
24848			break
24849		}
24850		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
24851		z.DecStructFieldNotFound(yyj6-1, "")
24852	}
24853	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
24854}
24855
24856func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) {
24857	var h codecSelfer1234
24858	z, r := codec1978.GenHelperEncoder(e)
24859	_, _, _ = h, z, r
24860	if x == nil {
24861		r.EncodeNil()
24862	} else {
24863		yym1 := z.EncBinary()
24864		_ = yym1
24865		if false {
24866		} else if z.HasExtensions() && z.EncExt(x) {
24867		} else {
24868			yysep2 := !z.EncBinary()
24869			yy2arr2 := z.EncBasicHandle().StructToArray
24870			var yyq2 [1]bool
24871			_, _, _ = yysep2, yyq2, yy2arr2
24872			const yyr2 bool = false
24873			yyq2[0] = len(x.Command) != 0
24874			var yynn2 int
24875			if yyr2 || yy2arr2 {
24876				r.EncodeArrayStart(1)
24877			} else {
24878				yynn2 = 0
24879				for _, b := range yyq2 {
24880					if b {
24881						yynn2++
24882					}
24883				}
24884				r.EncodeMapStart(yynn2)
24885				yynn2 = 0
24886			}
24887			if yyr2 || yy2arr2 {
24888				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
24889				if yyq2[0] {
24890					if x.Command == nil {
24891						r.EncodeNil()
24892					} else {
24893						yym4 := z.EncBinary()
24894						_ = yym4
24895						if false {
24896						} else {
24897							z.F.EncSliceStringV(x.Command, false, e)
24898						}
24899					}
24900				} else {
24901					r.EncodeNil()
24902				}
24903			} else {
24904				if yyq2[0] {
24905					z.EncSendContainerState(codecSelfer_containerMapKey1234)
24906					r.EncodeString(codecSelferC_UTF81234, string("command"))
24907					z.EncSendContainerState(codecSelfer_containerMapValue1234)
24908					if x.Command == nil {
24909						r.EncodeNil()
24910					} else {
24911						yym5 := z.EncBinary()
24912						_ = yym5
24913						if false {
24914						} else {
24915							z.F.EncSliceStringV(x.Command, false, e)
24916						}
24917					}
24918				}
24919			}
24920			if yyr2 || yy2arr2 {
24921				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
24922			} else {
24923				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
24924			}
24925		}
24926	}
24927}
24928
24929func (x *ExecAction) CodecDecodeSelf(d *codec1978.Decoder) {
24930	var h codecSelfer1234
24931	z, r := codec1978.GenHelperDecoder(d)
24932	_, _, _ = h, z, r
24933	yym1 := z.DecBinary()
24934	_ = yym1
24935	if false {
24936	} else if z.HasExtensions() && z.DecExt(x) {
24937	} else {
24938		yyct2 := r.ContainerType()
24939		if yyct2 == codecSelferValueTypeMap1234 {
24940			yyl2 := r.ReadMapStart()
24941			if yyl2 == 0 {
24942				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
24943			} else {
24944				x.codecDecodeSelfFromMap(yyl2, d)
24945			}
24946		} else if yyct2 == codecSelferValueTypeArray1234 {
24947			yyl2 := r.ReadArrayStart()
24948			if yyl2 == 0 {
24949				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
24950			} else {
24951				x.codecDecodeSelfFromArray(yyl2, d)
24952			}
24953		} else {
24954			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
24955		}
24956	}
24957}
24958
24959func (x *ExecAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
24960	var h codecSelfer1234
24961	z, r := codec1978.GenHelperDecoder(d)
24962	_, _, _ = h, z, r
24963	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
24964	_ = yys3Slc
24965	var yyhl3 bool = l >= 0
24966	for yyj3 := 0; ; yyj3++ {
24967		if yyhl3 {
24968			if yyj3 >= l {
24969				break
24970			}
24971		} else {
24972			if r.CheckBreak() {
24973				break
24974			}
24975		}
24976		z.DecSendContainerState(codecSelfer_containerMapKey1234)
24977		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
24978		yys3 := string(yys3Slc)
24979		z.DecSendContainerState(codecSelfer_containerMapValue1234)
24980		switch yys3 {
24981		case "command":
24982			if r.TryDecodeAsNil() {
24983				x.Command = nil
24984			} else {
24985				yyv4 := &x.Command
24986				yym5 := z.DecBinary()
24987				_ = yym5
24988				if false {
24989				} else {
24990					z.F.DecSliceStringX(yyv4, false, d)
24991				}
24992			}
24993		default:
24994			z.DecStructFieldNotFound(-1, yys3)
24995		} // end switch yys3
24996	} // end for yyj3
24997	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
24998}
24999
25000func (x *ExecAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
25001	var h codecSelfer1234
25002	z, r := codec1978.GenHelperDecoder(d)
25003	_, _, _ = h, z, r
25004	var yyj6 int
25005	var yyb6 bool
25006	var yyhl6 bool = l >= 0
25007	yyj6++
25008	if yyhl6 {
25009		yyb6 = yyj6 > l
25010	} else {
25011		yyb6 = r.CheckBreak()
25012	}
25013	if yyb6 {
25014		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
25015		return
25016	}
25017	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
25018	if r.TryDecodeAsNil() {
25019		x.Command = nil
25020	} else {
25021		yyv7 := &x.Command
25022		yym8 := z.DecBinary()
25023		_ = yym8
25024		if false {
25025		} else {
25026			z.F.DecSliceStringX(yyv7, false, d)
25027		}
25028	}
25029	for {
25030		yyj6++
25031		if yyhl6 {
25032			yyb6 = yyj6 > l
25033		} else {
25034			yyb6 = r.CheckBreak()
25035		}
25036		if yyb6 {
25037			break
25038		}
25039		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
25040		z.DecStructFieldNotFound(yyj6-1, "")
25041	}
25042	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
25043}
25044
25045func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) {
25046	var h codecSelfer1234
25047	z, r := codec1978.GenHelperEncoder(e)
25048	_, _, _ = h, z, r
25049	if x == nil {
25050		r.EncodeNil()
25051	} else {
25052		yym1 := z.EncBinary()
25053		_ = yym1
25054		if false {
25055		} else if z.HasExtensions() && z.EncExt(x) {
25056		} else {
25057			yysep2 := !z.EncBinary()
25058			yy2arr2 := z.EncBasicHandle().StructToArray
25059			var yyq2 [8]bool
25060			_, _, _ = yysep2, yyq2, yy2arr2
25061			const yyr2 bool = false
25062			yyq2[0] = x.Handler.Exec != nil && x.Exec != nil
25063			yyq2[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil
25064			yyq2[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil
25065			yyq2[3] = x.InitialDelaySeconds != 0
25066			yyq2[4] = x.TimeoutSeconds != 0
25067			yyq2[5] = x.PeriodSeconds != 0
25068			yyq2[6] = x.SuccessThreshold != 0
25069			yyq2[7] = x.FailureThreshold != 0
25070			var yynn2 int
25071			if yyr2 || yy2arr2 {
25072				r.EncodeArrayStart(8)
25073			} else {
25074				yynn2 = 0
25075				for _, b := range yyq2 {
25076					if b {
25077						yynn2++
25078					}
25079				}
25080				r.EncodeMapStart(yynn2)
25081				yynn2 = 0
25082			}
25083			var yyn3 bool
25084			if x.Handler.Exec == nil {
25085				yyn3 = true
25086				goto LABEL3
25087			}
25088		LABEL3:
25089			if yyr2 || yy2arr2 {
25090				if yyn3 {
25091					r.EncodeNil()
25092				} else {
25093					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
25094					if yyq2[0] {
25095						if x.Exec == nil {
25096							r.EncodeNil()
25097						} else {
25098							x.Exec.CodecEncodeSelf(e)
25099						}
25100					} else {
25101						r.EncodeNil()
25102					}
25103				}
25104			} else {
25105				if yyq2[0] {
25106					z.EncSendContainerState(codecSelfer_containerMapKey1234)
25107					r.EncodeString(codecSelferC_UTF81234, string("exec"))
25108					z.EncSendContainerState(codecSelfer_containerMapValue1234)
25109					if yyn3 {
25110						r.EncodeNil()
25111					} else {
25112						if x.Exec == nil {
25113							r.EncodeNil()
25114						} else {
25115							x.Exec.CodecEncodeSelf(e)
25116						}
25117					}
25118				}
25119			}
25120			var yyn6 bool
25121			if x.Handler.HTTPGet == nil {
25122				yyn6 = true
25123				goto LABEL6
25124			}
25125		LABEL6:
25126			if yyr2 || yy2arr2 {
25127				if yyn6 {
25128					r.EncodeNil()
25129				} else {
25130					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
25131					if yyq2[1] {
25132						if x.HTTPGet == nil {
25133							r.EncodeNil()
25134						} else {
25135							x.HTTPGet.CodecEncodeSelf(e)
25136						}
25137					} else {
25138						r.EncodeNil()
25139					}
25140				}
25141			} else {
25142				if yyq2[1] {
25143					z.EncSendContainerState(codecSelfer_containerMapKey1234)
25144					r.EncodeString(codecSelferC_UTF81234, string("httpGet"))
25145					z.EncSendContainerState(codecSelfer_containerMapValue1234)
25146					if yyn6 {
25147						r.EncodeNil()
25148					} else {
25149						if x.HTTPGet == nil {
25150							r.EncodeNil()
25151						} else {
25152							x.HTTPGet.CodecEncodeSelf(e)
25153						}
25154					}
25155				}
25156			}
25157			var yyn9 bool
25158			if x.Handler.TCPSocket == nil {
25159				yyn9 = true
25160				goto LABEL9
25161			}
25162		LABEL9:
25163			if yyr2 || yy2arr2 {
25164				if yyn9 {
25165					r.EncodeNil()
25166				} else {
25167					z.EncSendContainerState(codecSelfer_containerArrayElem1234)
25168					if yyq2[2] {
25169						if x.TCPSocket == nil {
25170							r.EncodeNil()
25171						} else {
25172							x.TCPSocket.CodecEncodeSelf(e)
25173						}
25174					} else {
25175						r.EncodeNil()
25176					}
25177				}
25178			} else {
25179				if yyq2[2] {
25180					z.EncSendContainerState(codecSelfer_containerMapKey1234)
25181					r.EncodeString(codecSelferC_UTF81234, string("tcpSocket"))
25182					z.EncSendContainerState(codecSelfer_containerMapValue1234)
25183					if yyn9 {
25184						r.EncodeNil()
25185					} else {
25186						if x.TCPSocket == nil {
25187							r.EncodeNil()
25188						} else {
25189							x.TCPSocket.CodecEncodeSelf(e)
25190						}
25191					}
25192				}
25193			}
25194			if yyr2 || yy2arr2 {
25195				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
25196				if yyq2[3] {
25197					yym13 := z.EncBinary()
25198					_ = yym13
25199					if false {
25200					} else {
25201						r.EncodeInt(int64(x.InitialDelaySeconds))
25202					}
25203				} else {
25204					r.EncodeInt(0)
25205				}
25206			} else {
25207				if yyq2[3] {
25208					z.EncSendContainerState(codecSelfer_containerMapKey1234)
25209					r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds"))
25210					z.EncSendContainerState(codecSelfer_containerMapValue1234)
25211					yym14 := z.EncBinary()
25212					_ = yym14
25213					if false {
25214					} else {
25215						r.EncodeInt(int64(x.InitialDelaySeconds))
25216					}
25217				}
25218			}
25219			if yyr2 || yy2arr2 {
25220				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
25221				if yyq2[4] {
25222					yym16 := z.EncBinary()
25223					_ = yym16
25224					if false {
25225					} else {
25226						r.EncodeInt(int64(x.TimeoutSeconds))
25227					}
25228				} else {
25229					r.EncodeInt(0)
25230				}
25231			} else {
25232				if yyq2[4] {
25233					z.EncSendContainerState(codecSelfer_containerMapKey1234)
25234					r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds"))
25235					z.EncSendContainerState(codecSelfer_containerMapValue1234)
25236					yym17 := z.EncBinary()
25237					_ = yym17
25238					if false {
25239					} else {
25240						r.EncodeInt(int64(x.TimeoutSeconds))
25241					}
25242				}
25243			}
25244			if yyr2 || yy2arr2 {
25245				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
25246				if yyq2[5] {
25247					yym19 := z.EncBinary()
25248					_ = yym19
25249					if false {
25250					} else {
25251						r.EncodeInt(int64(x.PeriodSeconds))
25252					}
25253				} else {
25254					r.EncodeInt(0)
25255				}
25256			} else {
25257				if yyq2[5] {
25258					z.EncSendContainerState(codecSelfer_containerMapKey1234)
25259					r.EncodeString(codecSelferC_UTF81234, string("periodSeconds"))
25260					z.EncSendContainerState(codecSelfer_containerMapValue1234)
25261					yym20 := z.EncBinary()
25262					_ = yym20
25263					if false {
25264					} else {
25265						r.EncodeInt(int64(x.PeriodSeconds))
25266					}
25267				}
25268			}
25269			if yyr2 || yy2arr2 {
25270				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
25271				if yyq2[6] {
25272					yym22 := z.EncBinary()
25273					_ = yym22
25274					if false {
25275					} else {
25276						r.EncodeInt(int64(x.SuccessThreshold))
25277					}
25278				} else {
25279					r.EncodeInt(0)
25280				}
25281			} else {
25282				if yyq2[6] {
25283					z.EncSendContainerState(codecSelfer_containerMapKey1234)
25284					r.EncodeString(codecSelferC_UTF81234, string("successThreshold"))
25285					z.EncSendContainerState(codecSelfer_containerMapValue1234)
25286					yym23 := z.EncBinary()
25287					_ = yym23
25288					if false {
25289					} else {
25290						r.EncodeInt(int64(x.SuccessThreshold))
25291					}
25292				}
25293			}
25294			if yyr2 || yy2arr2 {
25295				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
25296				if yyq2[7] {
25297					yym25 := z.EncBinary()
25298					_ = yym25
25299					if false {
25300					} else {
25301						r.EncodeInt(int64(x.FailureThreshold))
25302					}
25303				} else {
25304					r.EncodeInt(0)
25305				}
25306			} else {
25307				if yyq2[7] {
25308					z.EncSendContainerState(codecSelfer_containerMapKey1234)
25309					r.EncodeString(codecSelferC_UTF81234, string("failureThreshold"))
25310					z.EncSendContainerState(codecSelfer_containerMapValue1234)
25311					yym26 := z.EncBinary()
25312					_ = yym26
25313					if false {
25314					} else {
25315						r.EncodeInt(int64(x.FailureThreshold))
25316					}
25317				}
25318			}
25319			if yyr2 || yy2arr2 {
25320				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
25321			} else {
25322				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
25323			}
25324		}
25325	}
25326}
25327
25328func (x *Probe) CodecDecodeSelf(d *codec1978.Decoder) {
25329	var h codecSelfer1234
25330	z, r := codec1978.GenHelperDecoder(d)
25331	_, _, _ = h, z, r
25332	yym1 := z.DecBinary()
25333	_ = yym1
25334	if false {
25335	} else if z.HasExtensions() && z.DecExt(x) {
25336	} else {
25337		yyct2 := r.ContainerType()
25338		if yyct2 == codecSelferValueTypeMap1234 {
25339			yyl2 := r.ReadMapStart()
25340			if yyl2 == 0 {
25341				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
25342			} else {
25343				x.codecDecodeSelfFromMap(yyl2, d)
25344			}
25345		} else if yyct2 == codecSelferValueTypeArray1234 {
25346			yyl2 := r.ReadArrayStart()
25347			if yyl2 == 0 {
25348				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
25349			} else {
25350				x.codecDecodeSelfFromArray(yyl2, d)
25351			}
25352		} else {
25353			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
25354		}
25355	}
25356}
25357
25358func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
25359	var h codecSelfer1234
25360	z, r := codec1978.GenHelperDecoder(d)
25361	_, _, _ = h, z, r
25362	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
25363	_ = yys3Slc
25364	var yyhl3 bool = l >= 0
25365	for yyj3 := 0; ; yyj3++ {
25366		if yyhl3 {
25367			if yyj3 >= l {
25368				break
25369			}
25370		} else {
25371			if r.CheckBreak() {
25372				break
25373			}
25374		}
25375		z.DecSendContainerState(codecSelfer_containerMapKey1234)
25376		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
25377		yys3 := string(yys3Slc)
25378		z.DecSendContainerState(codecSelfer_containerMapValue1234)
25379		switch yys3 {
25380		case "exec":
25381			if x.Handler.Exec == nil {
25382				x.Handler.Exec = new(ExecAction)
25383			}
25384			if r.TryDecodeAsNil() {
25385				if x.Exec != nil {
25386					x.Exec = nil
25387				}
25388			} else {
25389				if x.Exec == nil {
25390					x.Exec = new(ExecAction)
25391				}
25392				x.Exec.CodecDecodeSelf(d)
25393			}
25394		case "httpGet":
25395			if x.Handler.HTTPGet == nil {
25396				x.Handler.HTTPGet = new(HTTPGetAction)
25397			}
25398			if r.TryDecodeAsNil() {
25399				if x.HTTPGet != nil {
25400					x.HTTPGet = nil
25401				}
25402			} else {
25403				if x.HTTPGet == nil {
25404					x.HTTPGet = new(HTTPGetAction)
25405				}
25406				x.HTTPGet.CodecDecodeSelf(d)
25407			}
25408		case "tcpSocket":
25409			if x.Handler.TCPSocket == nil {
25410				x.Handler.TCPSocket = new(TCPSocketAction)
25411			}
25412			if r.TryDecodeAsNil() {
25413				if x.TCPSocket != nil {
25414					x.TCPSocket = nil
25415				}
25416			} else {
25417				if x.TCPSocket == nil {
25418					x.TCPSocket = new(TCPSocketAction)
25419				}
25420				x.TCPSocket.CodecDecodeSelf(d)
25421			}
25422		case "initialDelaySeconds":
25423			if r.TryDecodeAsNil() {
25424				x.InitialDelaySeconds = 0
25425			} else {
25426				yyv7 := &x.InitialDelaySeconds
25427				yym8 := z.DecBinary()
25428				_ = yym8
25429				if false {
25430				} else {
25431					*((*int32)(yyv7)) = int32(r.DecodeInt(32))
25432				}
25433			}
25434		case "timeoutSeconds":
25435			if r.TryDecodeAsNil() {
25436				x.TimeoutSeconds = 0
25437			} else {
25438				yyv9 := &x.TimeoutSeconds
25439				yym10 := z.DecBinary()
25440				_ = yym10
25441				if false {
25442				} else {
25443					*((*int32)(yyv9)) = int32(r.DecodeInt(32))
25444				}
25445			}
25446		case "periodSeconds":
25447			if r.TryDecodeAsNil() {
25448				x.PeriodSeconds = 0
25449			} else {
25450				yyv11 := &x.PeriodSeconds
25451				yym12 := z.DecBinary()
25452				_ = yym12
25453				if false {
25454				} else {
25455					*((*int32)(yyv11)) = int32(r.DecodeInt(32))
25456				}
25457			}
25458		case "successThreshold":
25459			if r.TryDecodeAsNil() {
25460				x.SuccessThreshold = 0
25461			} else {
25462				yyv13 := &x.SuccessThreshold
25463				yym14 := z.DecBinary()
25464				_ = yym14
25465				if false {
25466				} else {
25467					*((*int32)(yyv13)) = int32(r.DecodeInt(32))
25468				}
25469			}
25470		case "failureThreshold":
25471			if r.TryDecodeAsNil() {
25472				x.FailureThreshold = 0
25473			} else {
25474				yyv15 := &x.FailureThreshold
25475				yym16 := z.DecBinary()
25476				_ = yym16
25477				if false {
25478				} else {
25479					*((*int32)(yyv15)) = int32(r.DecodeInt(32))
25480				}
25481			}
25482		default:
25483			z.DecStructFieldNotFound(-1, yys3)
25484		} // end switch yys3
25485	} // end for yyj3
25486	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
25487}
25488
25489func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
25490	var h codecSelfer1234
25491	z, r := codec1978.GenHelperDecoder(d)
25492	_, _, _ = h, z, r
25493	var yyj17 int
25494	var yyb17 bool
25495	var yyhl17 bool = l >= 0
25496	if x.Handler.Exec == nil {
25497		x.Handler.Exec = new(ExecAction)
25498	}
25499	yyj17++
25500	if yyhl17 {
25501		yyb17 = yyj17 > l
25502	} else {
25503		yyb17 = r.CheckBreak()
25504	}
25505	if yyb17 {
25506		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
25507		return
25508	}
25509	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
25510	if r.TryDecodeAsNil() {
25511		if x.Exec != nil {
25512			x.Exec = nil
25513		}
25514	} else {
25515		if x.Exec == nil {
25516			x.Exec = new(ExecAction)
25517		}
25518		x.Exec.CodecDecodeSelf(d)
25519	}
25520	if x.Handler.HTTPGet == nil {
25521		x.Handler.HTTPGet = new(HTTPGetAction)
25522	}
25523	yyj17++
25524	if yyhl17 {
25525		yyb17 = yyj17 > l
25526	} else {
25527		yyb17 = r.CheckBreak()
25528	}
25529	if yyb17 {
25530		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
25531		return
25532	}
25533	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
25534	if r.TryDecodeAsNil() {
25535		if x.HTTPGet != nil {
25536			x.HTTPGet = nil
25537		}
25538	} else {
25539		if x.HTTPGet == nil {
25540			x.HTTPGet = new(HTTPGetAction)
25541		}
25542		x.HTTPGet.CodecDecodeSelf(d)
25543	}
25544	if x.Handler.TCPSocket == nil {
25545		x.Handler.TCPSocket = new(TCPSocketAction)
25546	}
25547	yyj17++
25548	if yyhl17 {
25549		yyb17 = yyj17 > l
25550	} else {
25551		yyb17 = r.CheckBreak()
25552	}
25553	if yyb17 {
25554		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
25555		return
25556	}
25557	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
25558	if r.TryDecodeAsNil() {
25559		if x.TCPSocket != nil {
25560			x.TCPSocket = nil
25561		}
25562	} else {
25563		if x.TCPSocket == nil {
25564			x.TCPSocket = new(TCPSocketAction)
25565		}
25566		x.TCPSocket.CodecDecodeSelf(d)
25567	}
25568	yyj17++
25569	if yyhl17 {
25570		yyb17 = yyj17 > l
25571	} else {
25572		yyb17 = r.CheckBreak()
25573	}
25574	if yyb17 {
25575		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
25576		return
25577	}
25578	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
25579	if r.TryDecodeAsNil() {
25580		x.InitialDelaySeconds = 0
25581	} else {
25582		yyv21 := &x.InitialDelaySeconds
25583		yym22 := z.DecBinary()
25584		_ = yym22
25585		if false {
25586		} else {
25587			*((*int32)(yyv21)) = int32(r.DecodeInt(32))
25588		}
25589	}
25590	yyj17++
25591	if yyhl17 {
25592		yyb17 = yyj17 > l
25593	} else {
25594		yyb17 = r.CheckBreak()
25595	}
25596	if yyb17 {
25597		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
25598		return
25599	}
25600	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
25601	if r.TryDecodeAsNil() {
25602		x.TimeoutSeconds = 0
25603	} else {
25604		yyv23 := &x.TimeoutSeconds
25605		yym24 := z.DecBinary()
25606		_ = yym24
25607		if false {
25608		} else {
25609			*((*int32)(yyv23)) = int32(r.DecodeInt(32))
25610		}
25611	}
25612	yyj17++
25613	if yyhl17 {
25614		yyb17 = yyj17 > l
25615	} else {
25616		yyb17 = r.CheckBreak()
25617	}
25618	if yyb17 {
25619		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
25620		return
25621	}
25622	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
25623	if r.TryDecodeAsNil() {
25624		x.PeriodSeconds = 0
25625	} else {
25626		yyv25 := &x.PeriodSeconds
25627		yym26 := z.DecBinary()
25628		_ = yym26
25629		if false {
25630		} else {
25631			*((*int32)(yyv25)) = int32(r.DecodeInt(32))
25632		}
25633	}
25634	yyj17++
25635	if yyhl17 {
25636		yyb17 = yyj17 > l
25637	} else {
25638		yyb17 = r.CheckBreak()
25639	}
25640	if yyb17 {
25641		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
25642		return
25643	}
25644	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
25645	if r.TryDecodeAsNil() {
25646		x.SuccessThreshold = 0
25647	} else {
25648		yyv27 := &x.SuccessThreshold
25649		yym28 := z.DecBinary()
25650		_ = yym28
25651		if false {
25652		} else {
25653			*((*int32)(yyv27)) = int32(r.DecodeInt(32))
25654		}
25655	}
25656	yyj17++
25657	if yyhl17 {
25658		yyb17 = yyj17 > l
25659	} else {
25660		yyb17 = r.CheckBreak()
25661	}
25662	if yyb17 {
25663		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
25664		return
25665	}
25666	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
25667	if r.TryDecodeAsNil() {
25668		x.FailureThreshold = 0
25669	} else {
25670		yyv29 := &x.FailureThreshold
25671		yym30 := z.DecBinary()
25672		_ = yym30
25673		if false {
25674		} else {
25675			*((*int32)(yyv29)) = int32(r.DecodeInt(32))
25676		}
25677	}
25678	for {
25679		yyj17++
25680		if yyhl17 {
25681			yyb17 = yyj17 > l
25682		} else {
25683			yyb17 = r.CheckBreak()
25684		}
25685		if yyb17 {
25686			break
25687		}
25688		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
25689		z.DecStructFieldNotFound(yyj17-1, "")
25690	}
25691	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
25692}
25693
25694func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
25695	var h codecSelfer1234
25696	z, r := codec1978.GenHelperEncoder(e)
25697	_, _, _ = h, z, r
25698	yym1 := z.EncBinary()
25699	_ = yym1
25700	if false {
25701	} else if z.HasExtensions() && z.EncExt(x) {
25702	} else {
25703		r.EncodeString(codecSelferC_UTF81234, string(x))
25704	}
25705}
25706
25707func (x *PullPolicy) CodecDecodeSelf(d *codec1978.Decoder) {
25708	var h codecSelfer1234
25709	z, r := codec1978.GenHelperDecoder(d)
25710	_, _, _ = h, z, r
25711	yym1 := z.DecBinary()
25712	_ = yym1
25713	if false {
25714	} else if z.HasExtensions() && z.DecExt(x) {
25715	} else {
25716		*((*string)(x)) = r.DecodeString()
25717	}
25718}
25719
25720func (x TerminationMessagePolicy) CodecEncodeSelf(e *codec1978.Encoder) {
25721	var h codecSelfer1234
25722	z, r := codec1978.GenHelperEncoder(e)
25723	_, _, _ = h, z, r
25724	yym1 := z.EncBinary()
25725	_ = yym1
25726	if false {
25727	} else if z.HasExtensions() && z.EncExt(x) {
25728	} else {
25729		r.EncodeString(codecSelferC_UTF81234, string(x))
25730	}
25731}
25732
25733func (x *TerminationMessagePolicy) CodecDecodeSelf(d *codec1978.Decoder) {
25734	var h codecSelfer1234
25735	z, r := codec1978.GenHelperDecoder(d)
25736	_, _, _ = h, z, r
25737	yym1 := z.DecBinary()
25738	_ = yym1
25739	if false {
25740	} else if z.HasExtensions() && z.DecExt(x) {
25741	} else {
25742		*((*string)(x)) = r.DecodeString()
25743	}
25744}
25745
25746func (x Capability) CodecEncodeSelf(e *codec1978.Encoder) {
25747	var h codecSelfer1234
25748	z, r := codec1978.GenHelperEncoder(e)
25749	_, _, _ = h, z, r
25750	yym1 := z.EncBinary()
25751	_ = yym1
25752	if false {
25753	} else if z.HasExtensions() && z.EncExt(x) {
25754	} else {
25755		r.EncodeString(codecSelferC_UTF81234, string(x))
25756	}
25757}
25758
25759func (x *Capability) CodecDecodeSelf(d *codec1978.Decoder) {
25760	var h codecSelfer1234
25761	z, r := codec1978.GenHelperDecoder(d)
25762	_, _, _ = h, z, r
25763	yym1 := z.DecBinary()
25764	_ = yym1
25765	if false {
25766	} else if z.HasExtensions() && z.DecExt(x) {
25767	} else {
25768		*((*string)(x)) = r.DecodeString()
25769	}
25770}
25771
25772func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) {
25773	var h codecSelfer1234
25774	z, r := codec1978.GenHelperEncoder(e)
25775	_, _, _ = h, z, r
25776	if x == nil {
25777		r.EncodeNil()
25778	} else {
25779		yym1 := z.EncBinary()
25780		_ = yym1
25781		if false {
25782		} else if z.HasExtensions() && z.EncExt(x) {
25783		} else {
25784			yysep2 := !z.EncBinary()
25785			yy2arr2 := z.EncBasicHandle().StructToArray
25786			var yyq2 [2]bool
25787			_, _, _ = yysep2, yyq2, yy2arr2
25788			const yyr2 bool = false
25789			yyq2[0] = len(x.Add) != 0
25790			yyq2[1] = len(x.Drop) != 0
25791			var yynn2 int
25792			if yyr2 || yy2arr2 {
25793				r.EncodeArrayStart(2)
25794			} else {
25795				yynn2 = 0
25796				for _, b := range yyq2 {
25797					if b {
25798						yynn2++
25799					}
25800				}
25801				r.EncodeMapStart(yynn2)
25802				yynn2 = 0
25803			}
25804			if yyr2 || yy2arr2 {
25805				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
25806				if yyq2[0] {
25807					if x.Add == nil {
25808						r.EncodeNil()
25809					} else {
25810						yym4 := z.EncBinary()
25811						_ = yym4
25812						if false {
25813						} else {
25814							h.encSliceCapability(([]Capability)(x.Add), e)
25815						}
25816					}
25817				} else {
25818					r.EncodeNil()
25819				}
25820			} else {
25821				if yyq2[0] {
25822					z.EncSendContainerState(codecSelfer_containerMapKey1234)
25823					r.EncodeString(codecSelferC_UTF81234, string("add"))
25824					z.EncSendContainerState(codecSelfer_containerMapValue1234)
25825					if x.Add == nil {
25826						r.EncodeNil()
25827					} else {
25828						yym5 := z.EncBinary()
25829						_ = yym5
25830						if false {
25831						} else {
25832							h.encSliceCapability(([]Capability)(x.Add), e)
25833						}
25834					}
25835				}
25836			}
25837			if yyr2 || yy2arr2 {
25838				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
25839				if yyq2[1] {
25840					if x.Drop == nil {
25841						r.EncodeNil()
25842					} else {
25843						yym7 := z.EncBinary()
25844						_ = yym7
25845						if false {
25846						} else {
25847							h.encSliceCapability(([]Capability)(x.Drop), e)
25848						}
25849					}
25850				} else {
25851					r.EncodeNil()
25852				}
25853			} else {
25854				if yyq2[1] {
25855					z.EncSendContainerState(codecSelfer_containerMapKey1234)
25856					r.EncodeString(codecSelferC_UTF81234, string("drop"))
25857					z.EncSendContainerState(codecSelfer_containerMapValue1234)
25858					if x.Drop == nil {
25859						r.EncodeNil()
25860					} else {
25861						yym8 := z.EncBinary()
25862						_ = yym8
25863						if false {
25864						} else {
25865							h.encSliceCapability(([]Capability)(x.Drop), e)
25866						}
25867					}
25868				}
25869			}
25870			if yyr2 || yy2arr2 {
25871				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
25872			} else {
25873				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
25874			}
25875		}
25876	}
25877}
25878
25879func (x *Capabilities) CodecDecodeSelf(d *codec1978.Decoder) {
25880	var h codecSelfer1234
25881	z, r := codec1978.GenHelperDecoder(d)
25882	_, _, _ = h, z, r
25883	yym1 := z.DecBinary()
25884	_ = yym1
25885	if false {
25886	} else if z.HasExtensions() && z.DecExt(x) {
25887	} else {
25888		yyct2 := r.ContainerType()
25889		if yyct2 == codecSelferValueTypeMap1234 {
25890			yyl2 := r.ReadMapStart()
25891			if yyl2 == 0 {
25892				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
25893			} else {
25894				x.codecDecodeSelfFromMap(yyl2, d)
25895			}
25896		} else if yyct2 == codecSelferValueTypeArray1234 {
25897			yyl2 := r.ReadArrayStart()
25898			if yyl2 == 0 {
25899				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
25900			} else {
25901				x.codecDecodeSelfFromArray(yyl2, d)
25902			}
25903		} else {
25904			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
25905		}
25906	}
25907}
25908
25909func (x *Capabilities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
25910	var h codecSelfer1234
25911	z, r := codec1978.GenHelperDecoder(d)
25912	_, _, _ = h, z, r
25913	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
25914	_ = yys3Slc
25915	var yyhl3 bool = l >= 0
25916	for yyj3 := 0; ; yyj3++ {
25917		if yyhl3 {
25918			if yyj3 >= l {
25919				break
25920			}
25921		} else {
25922			if r.CheckBreak() {
25923				break
25924			}
25925		}
25926		z.DecSendContainerState(codecSelfer_containerMapKey1234)
25927		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
25928		yys3 := string(yys3Slc)
25929		z.DecSendContainerState(codecSelfer_containerMapValue1234)
25930		switch yys3 {
25931		case "add":
25932			if r.TryDecodeAsNil() {
25933				x.Add = nil
25934			} else {
25935				yyv4 := &x.Add
25936				yym5 := z.DecBinary()
25937				_ = yym5
25938				if false {
25939				} else {
25940					h.decSliceCapability((*[]Capability)(yyv4), d)
25941				}
25942			}
25943		case "drop":
25944			if r.TryDecodeAsNil() {
25945				x.Drop = nil
25946			} else {
25947				yyv6 := &x.Drop
25948				yym7 := z.DecBinary()
25949				_ = yym7
25950				if false {
25951				} else {
25952					h.decSliceCapability((*[]Capability)(yyv6), d)
25953				}
25954			}
25955		default:
25956			z.DecStructFieldNotFound(-1, yys3)
25957		} // end switch yys3
25958	} // end for yyj3
25959	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
25960}
25961
25962func (x *Capabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
25963	var h codecSelfer1234
25964	z, r := codec1978.GenHelperDecoder(d)
25965	_, _, _ = h, z, r
25966	var yyj8 int
25967	var yyb8 bool
25968	var yyhl8 bool = l >= 0
25969	yyj8++
25970	if yyhl8 {
25971		yyb8 = yyj8 > l
25972	} else {
25973		yyb8 = r.CheckBreak()
25974	}
25975	if yyb8 {
25976		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
25977		return
25978	}
25979	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
25980	if r.TryDecodeAsNil() {
25981		x.Add = nil
25982	} else {
25983		yyv9 := &x.Add
25984		yym10 := z.DecBinary()
25985		_ = yym10
25986		if false {
25987		} else {
25988			h.decSliceCapability((*[]Capability)(yyv9), d)
25989		}
25990	}
25991	yyj8++
25992	if yyhl8 {
25993		yyb8 = yyj8 > l
25994	} else {
25995		yyb8 = r.CheckBreak()
25996	}
25997	if yyb8 {
25998		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
25999		return
26000	}
26001	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
26002	if r.TryDecodeAsNil() {
26003		x.Drop = nil
26004	} else {
26005		yyv11 := &x.Drop
26006		yym12 := z.DecBinary()
26007		_ = yym12
26008		if false {
26009		} else {
26010			h.decSliceCapability((*[]Capability)(yyv11), d)
26011		}
26012	}
26013	for {
26014		yyj8++
26015		if yyhl8 {
26016			yyb8 = yyj8 > l
26017		} else {
26018			yyb8 = r.CheckBreak()
26019		}
26020		if yyb8 {
26021			break
26022		}
26023		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
26024		z.DecStructFieldNotFound(yyj8-1, "")
26025	}
26026	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
26027}
26028
26029func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) {
26030	var h codecSelfer1234
26031	z, r := codec1978.GenHelperEncoder(e)
26032	_, _, _ = h, z, r
26033	if x == nil {
26034		r.EncodeNil()
26035	} else {
26036		yym1 := z.EncBinary()
26037		_ = yym1
26038		if false {
26039		} else if z.HasExtensions() && z.EncExt(x) {
26040		} else {
26041			yysep2 := !z.EncBinary()
26042			yy2arr2 := z.EncBasicHandle().StructToArray
26043			var yyq2 [2]bool
26044			_, _, _ = yysep2, yyq2, yy2arr2
26045			const yyr2 bool = false
26046			yyq2[0] = len(x.Limits) != 0
26047			yyq2[1] = len(x.Requests) != 0
26048			var yynn2 int
26049			if yyr2 || yy2arr2 {
26050				r.EncodeArrayStart(2)
26051			} else {
26052				yynn2 = 0
26053				for _, b := range yyq2 {
26054					if b {
26055						yynn2++
26056					}
26057				}
26058				r.EncodeMapStart(yynn2)
26059				yynn2 = 0
26060			}
26061			if yyr2 || yy2arr2 {
26062				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26063				if yyq2[0] {
26064					if x.Limits == nil {
26065						r.EncodeNil()
26066					} else {
26067						x.Limits.CodecEncodeSelf(e)
26068					}
26069				} else {
26070					r.EncodeNil()
26071				}
26072			} else {
26073				if yyq2[0] {
26074					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26075					r.EncodeString(codecSelferC_UTF81234, string("limits"))
26076					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26077					if x.Limits == nil {
26078						r.EncodeNil()
26079					} else {
26080						x.Limits.CodecEncodeSelf(e)
26081					}
26082				}
26083			}
26084			if yyr2 || yy2arr2 {
26085				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26086				if yyq2[1] {
26087					if x.Requests == nil {
26088						r.EncodeNil()
26089					} else {
26090						x.Requests.CodecEncodeSelf(e)
26091					}
26092				} else {
26093					r.EncodeNil()
26094				}
26095			} else {
26096				if yyq2[1] {
26097					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26098					r.EncodeString(codecSelferC_UTF81234, string("requests"))
26099					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26100					if x.Requests == nil {
26101						r.EncodeNil()
26102					} else {
26103						x.Requests.CodecEncodeSelf(e)
26104					}
26105				}
26106			}
26107			if yyr2 || yy2arr2 {
26108				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
26109			} else {
26110				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
26111			}
26112		}
26113	}
26114}
26115
26116func (x *ResourceRequirements) CodecDecodeSelf(d *codec1978.Decoder) {
26117	var h codecSelfer1234
26118	z, r := codec1978.GenHelperDecoder(d)
26119	_, _, _ = h, z, r
26120	yym1 := z.DecBinary()
26121	_ = yym1
26122	if false {
26123	} else if z.HasExtensions() && z.DecExt(x) {
26124	} else {
26125		yyct2 := r.ContainerType()
26126		if yyct2 == codecSelferValueTypeMap1234 {
26127			yyl2 := r.ReadMapStart()
26128			if yyl2 == 0 {
26129				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
26130			} else {
26131				x.codecDecodeSelfFromMap(yyl2, d)
26132			}
26133		} else if yyct2 == codecSelferValueTypeArray1234 {
26134			yyl2 := r.ReadArrayStart()
26135			if yyl2 == 0 {
26136				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
26137			} else {
26138				x.codecDecodeSelfFromArray(yyl2, d)
26139			}
26140		} else {
26141			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
26142		}
26143	}
26144}
26145
26146func (x *ResourceRequirements) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
26147	var h codecSelfer1234
26148	z, r := codec1978.GenHelperDecoder(d)
26149	_, _, _ = h, z, r
26150	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
26151	_ = yys3Slc
26152	var yyhl3 bool = l >= 0
26153	for yyj3 := 0; ; yyj3++ {
26154		if yyhl3 {
26155			if yyj3 >= l {
26156				break
26157			}
26158		} else {
26159			if r.CheckBreak() {
26160				break
26161			}
26162		}
26163		z.DecSendContainerState(codecSelfer_containerMapKey1234)
26164		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
26165		yys3 := string(yys3Slc)
26166		z.DecSendContainerState(codecSelfer_containerMapValue1234)
26167		switch yys3 {
26168		case "limits":
26169			if r.TryDecodeAsNil() {
26170				x.Limits = nil
26171			} else {
26172				yyv4 := &x.Limits
26173				yyv4.CodecDecodeSelf(d)
26174			}
26175		case "requests":
26176			if r.TryDecodeAsNil() {
26177				x.Requests = nil
26178			} else {
26179				yyv5 := &x.Requests
26180				yyv5.CodecDecodeSelf(d)
26181			}
26182		default:
26183			z.DecStructFieldNotFound(-1, yys3)
26184		} // end switch yys3
26185	} // end for yyj3
26186	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
26187}
26188
26189func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
26190	var h codecSelfer1234
26191	z, r := codec1978.GenHelperDecoder(d)
26192	_, _, _ = h, z, r
26193	var yyj6 int
26194	var yyb6 bool
26195	var yyhl6 bool = l >= 0
26196	yyj6++
26197	if yyhl6 {
26198		yyb6 = yyj6 > l
26199	} else {
26200		yyb6 = r.CheckBreak()
26201	}
26202	if yyb6 {
26203		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
26204		return
26205	}
26206	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
26207	if r.TryDecodeAsNil() {
26208		x.Limits = nil
26209	} else {
26210		yyv7 := &x.Limits
26211		yyv7.CodecDecodeSelf(d)
26212	}
26213	yyj6++
26214	if yyhl6 {
26215		yyb6 = yyj6 > l
26216	} else {
26217		yyb6 = r.CheckBreak()
26218	}
26219	if yyb6 {
26220		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
26221		return
26222	}
26223	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
26224	if r.TryDecodeAsNil() {
26225		x.Requests = nil
26226	} else {
26227		yyv8 := &x.Requests
26228		yyv8.CodecDecodeSelf(d)
26229	}
26230	for {
26231		yyj6++
26232		if yyhl6 {
26233			yyb6 = yyj6 > l
26234		} else {
26235			yyb6 = r.CheckBreak()
26236		}
26237		if yyb6 {
26238			break
26239		}
26240		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
26241		z.DecStructFieldNotFound(yyj6-1, "")
26242	}
26243	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
26244}
26245
26246func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) {
26247	var h codecSelfer1234
26248	z, r := codec1978.GenHelperEncoder(e)
26249	_, _, _ = h, z, r
26250	if x == nil {
26251		r.EncodeNil()
26252	} else {
26253		yym1 := z.EncBinary()
26254		_ = yym1
26255		if false {
26256		} else if z.HasExtensions() && z.EncExt(x) {
26257		} else {
26258			yysep2 := !z.EncBinary()
26259			yy2arr2 := z.EncBasicHandle().StructToArray
26260			var yyq2 [20]bool
26261			_, _, _ = yysep2, yyq2, yy2arr2
26262			const yyr2 bool = false
26263			yyq2[1] = x.Image != ""
26264			yyq2[2] = len(x.Command) != 0
26265			yyq2[3] = len(x.Args) != 0
26266			yyq2[4] = x.WorkingDir != ""
26267			yyq2[5] = len(x.Ports) != 0
26268			yyq2[6] = len(x.EnvFrom) != 0
26269			yyq2[7] = len(x.Env) != 0
26270			yyq2[8] = true
26271			yyq2[9] = len(x.VolumeMounts) != 0
26272			yyq2[10] = x.LivenessProbe != nil
26273			yyq2[11] = x.ReadinessProbe != nil
26274			yyq2[12] = x.Lifecycle != nil
26275			yyq2[13] = x.TerminationMessagePath != ""
26276			yyq2[14] = x.TerminationMessagePolicy != ""
26277			yyq2[15] = x.ImagePullPolicy != ""
26278			yyq2[16] = x.SecurityContext != nil
26279			yyq2[17] = x.Stdin != false
26280			yyq2[18] = x.StdinOnce != false
26281			yyq2[19] = x.TTY != false
26282			var yynn2 int
26283			if yyr2 || yy2arr2 {
26284				r.EncodeArrayStart(20)
26285			} else {
26286				yynn2 = 1
26287				for _, b := range yyq2 {
26288					if b {
26289						yynn2++
26290					}
26291				}
26292				r.EncodeMapStart(yynn2)
26293				yynn2 = 0
26294			}
26295			if yyr2 || yy2arr2 {
26296				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26297				yym4 := z.EncBinary()
26298				_ = yym4
26299				if false {
26300				} else {
26301					r.EncodeString(codecSelferC_UTF81234, string(x.Name))
26302				}
26303			} else {
26304				z.EncSendContainerState(codecSelfer_containerMapKey1234)
26305				r.EncodeString(codecSelferC_UTF81234, string("name"))
26306				z.EncSendContainerState(codecSelfer_containerMapValue1234)
26307				yym5 := z.EncBinary()
26308				_ = yym5
26309				if false {
26310				} else {
26311					r.EncodeString(codecSelferC_UTF81234, string(x.Name))
26312				}
26313			}
26314			if yyr2 || yy2arr2 {
26315				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26316				if yyq2[1] {
26317					yym7 := z.EncBinary()
26318					_ = yym7
26319					if false {
26320					} else {
26321						r.EncodeString(codecSelferC_UTF81234, string(x.Image))
26322					}
26323				} else {
26324					r.EncodeString(codecSelferC_UTF81234, "")
26325				}
26326			} else {
26327				if yyq2[1] {
26328					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26329					r.EncodeString(codecSelferC_UTF81234, string("image"))
26330					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26331					yym8 := z.EncBinary()
26332					_ = yym8
26333					if false {
26334					} else {
26335						r.EncodeString(codecSelferC_UTF81234, string(x.Image))
26336					}
26337				}
26338			}
26339			if yyr2 || yy2arr2 {
26340				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26341				if yyq2[2] {
26342					if x.Command == nil {
26343						r.EncodeNil()
26344					} else {
26345						yym10 := z.EncBinary()
26346						_ = yym10
26347						if false {
26348						} else {
26349							z.F.EncSliceStringV(x.Command, false, e)
26350						}
26351					}
26352				} else {
26353					r.EncodeNil()
26354				}
26355			} else {
26356				if yyq2[2] {
26357					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26358					r.EncodeString(codecSelferC_UTF81234, string("command"))
26359					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26360					if x.Command == nil {
26361						r.EncodeNil()
26362					} else {
26363						yym11 := z.EncBinary()
26364						_ = yym11
26365						if false {
26366						} else {
26367							z.F.EncSliceStringV(x.Command, false, e)
26368						}
26369					}
26370				}
26371			}
26372			if yyr2 || yy2arr2 {
26373				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26374				if yyq2[3] {
26375					if x.Args == nil {
26376						r.EncodeNil()
26377					} else {
26378						yym13 := z.EncBinary()
26379						_ = yym13
26380						if false {
26381						} else {
26382							z.F.EncSliceStringV(x.Args, false, e)
26383						}
26384					}
26385				} else {
26386					r.EncodeNil()
26387				}
26388			} else {
26389				if yyq2[3] {
26390					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26391					r.EncodeString(codecSelferC_UTF81234, string("args"))
26392					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26393					if x.Args == nil {
26394						r.EncodeNil()
26395					} else {
26396						yym14 := z.EncBinary()
26397						_ = yym14
26398						if false {
26399						} else {
26400							z.F.EncSliceStringV(x.Args, false, e)
26401						}
26402					}
26403				}
26404			}
26405			if yyr2 || yy2arr2 {
26406				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26407				if yyq2[4] {
26408					yym16 := z.EncBinary()
26409					_ = yym16
26410					if false {
26411					} else {
26412						r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
26413					}
26414				} else {
26415					r.EncodeString(codecSelferC_UTF81234, "")
26416				}
26417			} else {
26418				if yyq2[4] {
26419					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26420					r.EncodeString(codecSelferC_UTF81234, string("workingDir"))
26421					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26422					yym17 := z.EncBinary()
26423					_ = yym17
26424					if false {
26425					} else {
26426						r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
26427					}
26428				}
26429			}
26430			if yyr2 || yy2arr2 {
26431				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26432				if yyq2[5] {
26433					if x.Ports == nil {
26434						r.EncodeNil()
26435					} else {
26436						yym19 := z.EncBinary()
26437						_ = yym19
26438						if false {
26439						} else {
26440							h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
26441						}
26442					}
26443				} else {
26444					r.EncodeNil()
26445				}
26446			} else {
26447				if yyq2[5] {
26448					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26449					r.EncodeString(codecSelferC_UTF81234, string("ports"))
26450					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26451					if x.Ports == nil {
26452						r.EncodeNil()
26453					} else {
26454						yym20 := z.EncBinary()
26455						_ = yym20
26456						if false {
26457						} else {
26458							h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
26459						}
26460					}
26461				}
26462			}
26463			if yyr2 || yy2arr2 {
26464				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26465				if yyq2[6] {
26466					if x.EnvFrom == nil {
26467						r.EncodeNil()
26468					} else {
26469						yym22 := z.EncBinary()
26470						_ = yym22
26471						if false {
26472						} else {
26473							h.encSliceEnvFromSource(([]EnvFromSource)(x.EnvFrom), e)
26474						}
26475					}
26476				} else {
26477					r.EncodeNil()
26478				}
26479			} else {
26480				if yyq2[6] {
26481					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26482					r.EncodeString(codecSelferC_UTF81234, string("envFrom"))
26483					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26484					if x.EnvFrom == nil {
26485						r.EncodeNil()
26486					} else {
26487						yym23 := z.EncBinary()
26488						_ = yym23
26489						if false {
26490						} else {
26491							h.encSliceEnvFromSource(([]EnvFromSource)(x.EnvFrom), e)
26492						}
26493					}
26494				}
26495			}
26496			if yyr2 || yy2arr2 {
26497				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26498				if yyq2[7] {
26499					if x.Env == nil {
26500						r.EncodeNil()
26501					} else {
26502						yym25 := z.EncBinary()
26503						_ = yym25
26504						if false {
26505						} else {
26506							h.encSliceEnvVar(([]EnvVar)(x.Env), e)
26507						}
26508					}
26509				} else {
26510					r.EncodeNil()
26511				}
26512			} else {
26513				if yyq2[7] {
26514					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26515					r.EncodeString(codecSelferC_UTF81234, string("env"))
26516					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26517					if x.Env == nil {
26518						r.EncodeNil()
26519					} else {
26520						yym26 := z.EncBinary()
26521						_ = yym26
26522						if false {
26523						} else {
26524							h.encSliceEnvVar(([]EnvVar)(x.Env), e)
26525						}
26526					}
26527				}
26528			}
26529			if yyr2 || yy2arr2 {
26530				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26531				if yyq2[8] {
26532					yy28 := &x.Resources
26533					yy28.CodecEncodeSelf(e)
26534				} else {
26535					r.EncodeNil()
26536				}
26537			} else {
26538				if yyq2[8] {
26539					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26540					r.EncodeString(codecSelferC_UTF81234, string("resources"))
26541					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26542					yy30 := &x.Resources
26543					yy30.CodecEncodeSelf(e)
26544				}
26545			}
26546			if yyr2 || yy2arr2 {
26547				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26548				if yyq2[9] {
26549					if x.VolumeMounts == nil {
26550						r.EncodeNil()
26551					} else {
26552						yym33 := z.EncBinary()
26553						_ = yym33
26554						if false {
26555						} else {
26556							h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
26557						}
26558					}
26559				} else {
26560					r.EncodeNil()
26561				}
26562			} else {
26563				if yyq2[9] {
26564					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26565					r.EncodeString(codecSelferC_UTF81234, string("volumeMounts"))
26566					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26567					if x.VolumeMounts == nil {
26568						r.EncodeNil()
26569					} else {
26570						yym34 := z.EncBinary()
26571						_ = yym34
26572						if false {
26573						} else {
26574							h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
26575						}
26576					}
26577				}
26578			}
26579			if yyr2 || yy2arr2 {
26580				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26581				if yyq2[10] {
26582					if x.LivenessProbe == nil {
26583						r.EncodeNil()
26584					} else {
26585						x.LivenessProbe.CodecEncodeSelf(e)
26586					}
26587				} else {
26588					r.EncodeNil()
26589				}
26590			} else {
26591				if yyq2[10] {
26592					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26593					r.EncodeString(codecSelferC_UTF81234, string("livenessProbe"))
26594					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26595					if x.LivenessProbe == nil {
26596						r.EncodeNil()
26597					} else {
26598						x.LivenessProbe.CodecEncodeSelf(e)
26599					}
26600				}
26601			}
26602			if yyr2 || yy2arr2 {
26603				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26604				if yyq2[11] {
26605					if x.ReadinessProbe == nil {
26606						r.EncodeNil()
26607					} else {
26608						x.ReadinessProbe.CodecEncodeSelf(e)
26609					}
26610				} else {
26611					r.EncodeNil()
26612				}
26613			} else {
26614				if yyq2[11] {
26615					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26616					r.EncodeString(codecSelferC_UTF81234, string("readinessProbe"))
26617					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26618					if x.ReadinessProbe == nil {
26619						r.EncodeNil()
26620					} else {
26621						x.ReadinessProbe.CodecEncodeSelf(e)
26622					}
26623				}
26624			}
26625			if yyr2 || yy2arr2 {
26626				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26627				if yyq2[12] {
26628					if x.Lifecycle == nil {
26629						r.EncodeNil()
26630					} else {
26631						x.Lifecycle.CodecEncodeSelf(e)
26632					}
26633				} else {
26634					r.EncodeNil()
26635				}
26636			} else {
26637				if yyq2[12] {
26638					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26639					r.EncodeString(codecSelferC_UTF81234, string("lifecycle"))
26640					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26641					if x.Lifecycle == nil {
26642						r.EncodeNil()
26643					} else {
26644						x.Lifecycle.CodecEncodeSelf(e)
26645					}
26646				}
26647			}
26648			if yyr2 || yy2arr2 {
26649				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26650				if yyq2[13] {
26651					yym45 := z.EncBinary()
26652					_ = yym45
26653					if false {
26654					} else {
26655						r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
26656					}
26657				} else {
26658					r.EncodeString(codecSelferC_UTF81234, "")
26659				}
26660			} else {
26661				if yyq2[13] {
26662					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26663					r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath"))
26664					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26665					yym46 := z.EncBinary()
26666					_ = yym46
26667					if false {
26668					} else {
26669						r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
26670					}
26671				}
26672			}
26673			if yyr2 || yy2arr2 {
26674				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26675				if yyq2[14] {
26676					x.TerminationMessagePolicy.CodecEncodeSelf(e)
26677				} else {
26678					r.EncodeString(codecSelferC_UTF81234, "")
26679				}
26680			} else {
26681				if yyq2[14] {
26682					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26683					r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePolicy"))
26684					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26685					x.TerminationMessagePolicy.CodecEncodeSelf(e)
26686				}
26687			}
26688			if yyr2 || yy2arr2 {
26689				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26690				if yyq2[15] {
26691					x.ImagePullPolicy.CodecEncodeSelf(e)
26692				} else {
26693					r.EncodeString(codecSelferC_UTF81234, "")
26694				}
26695			} else {
26696				if yyq2[15] {
26697					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26698					r.EncodeString(codecSelferC_UTF81234, string("imagePullPolicy"))
26699					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26700					x.ImagePullPolicy.CodecEncodeSelf(e)
26701				}
26702			}
26703			if yyr2 || yy2arr2 {
26704				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26705				if yyq2[16] {
26706					if x.SecurityContext == nil {
26707						r.EncodeNil()
26708					} else {
26709						x.SecurityContext.CodecEncodeSelf(e)
26710					}
26711				} else {
26712					r.EncodeNil()
26713				}
26714			} else {
26715				if yyq2[16] {
26716					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26717					r.EncodeString(codecSelferC_UTF81234, string("securityContext"))
26718					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26719					if x.SecurityContext == nil {
26720						r.EncodeNil()
26721					} else {
26722						x.SecurityContext.CodecEncodeSelf(e)
26723					}
26724				}
26725			}
26726			if yyr2 || yy2arr2 {
26727				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26728				if yyq2[17] {
26729					yym57 := z.EncBinary()
26730					_ = yym57
26731					if false {
26732					} else {
26733						r.EncodeBool(bool(x.Stdin))
26734					}
26735				} else {
26736					r.EncodeBool(false)
26737				}
26738			} else {
26739				if yyq2[17] {
26740					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26741					r.EncodeString(codecSelferC_UTF81234, string("stdin"))
26742					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26743					yym58 := z.EncBinary()
26744					_ = yym58
26745					if false {
26746					} else {
26747						r.EncodeBool(bool(x.Stdin))
26748					}
26749				}
26750			}
26751			if yyr2 || yy2arr2 {
26752				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26753				if yyq2[18] {
26754					yym60 := z.EncBinary()
26755					_ = yym60
26756					if false {
26757					} else {
26758						r.EncodeBool(bool(x.StdinOnce))
26759					}
26760				} else {
26761					r.EncodeBool(false)
26762				}
26763			} else {
26764				if yyq2[18] {
26765					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26766					r.EncodeString(codecSelferC_UTF81234, string("stdinOnce"))
26767					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26768					yym61 := z.EncBinary()
26769					_ = yym61
26770					if false {
26771					} else {
26772						r.EncodeBool(bool(x.StdinOnce))
26773					}
26774				}
26775			}
26776			if yyr2 || yy2arr2 {
26777				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
26778				if yyq2[19] {
26779					yym63 := z.EncBinary()
26780					_ = yym63
26781					if false {
26782					} else {
26783						r.EncodeBool(bool(x.TTY))
26784					}
26785				} else {
26786					r.EncodeBool(false)
26787				}
26788			} else {
26789				if yyq2[19] {
26790					z.EncSendContainerState(codecSelfer_containerMapKey1234)
26791					r.EncodeString(codecSelferC_UTF81234, string("tty"))
26792					z.EncSendContainerState(codecSelfer_containerMapValue1234)
26793					yym64 := z.EncBinary()
26794					_ = yym64
26795					if false {
26796					} else {
26797						r.EncodeBool(bool(x.TTY))
26798					}
26799				}
26800			}
26801			if yyr2 || yy2arr2 {
26802				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
26803			} else {
26804				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
26805			}
26806		}
26807	}
26808}
26809
26810func (x *Container) CodecDecodeSelf(d *codec1978.Decoder) {
26811	var h codecSelfer1234
26812	z, r := codec1978.GenHelperDecoder(d)
26813	_, _, _ = h, z, r
26814	yym1 := z.DecBinary()
26815	_ = yym1
26816	if false {
26817	} else if z.HasExtensions() && z.DecExt(x) {
26818	} else {
26819		yyct2 := r.ContainerType()
26820		if yyct2 == codecSelferValueTypeMap1234 {
26821			yyl2 := r.ReadMapStart()
26822			if yyl2 == 0 {
26823				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
26824			} else {
26825				x.codecDecodeSelfFromMap(yyl2, d)
26826			}
26827		} else if yyct2 == codecSelferValueTypeArray1234 {
26828			yyl2 := r.ReadArrayStart()
26829			if yyl2 == 0 {
26830				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
26831			} else {
26832				x.codecDecodeSelfFromArray(yyl2, d)
26833			}
26834		} else {
26835			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
26836		}
26837	}
26838}
26839
26840func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
26841	var h codecSelfer1234
26842	z, r := codec1978.GenHelperDecoder(d)
26843	_, _, _ = h, z, r
26844	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
26845	_ = yys3Slc
26846	var yyhl3 bool = l >= 0
26847	for yyj3 := 0; ; yyj3++ {
26848		if yyhl3 {
26849			if yyj3 >= l {
26850				break
26851			}
26852		} else {
26853			if r.CheckBreak() {
26854				break
26855			}
26856		}
26857		z.DecSendContainerState(codecSelfer_containerMapKey1234)
26858		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
26859		yys3 := string(yys3Slc)
26860		z.DecSendContainerState(codecSelfer_containerMapValue1234)
26861		switch yys3 {
26862		case "name":
26863			if r.TryDecodeAsNil() {
26864				x.Name = ""
26865			} else {
26866				yyv4 := &x.Name
26867				yym5 := z.DecBinary()
26868				_ = yym5
26869				if false {
26870				} else {
26871					*((*string)(yyv4)) = r.DecodeString()
26872				}
26873			}
26874		case "image":
26875			if r.TryDecodeAsNil() {
26876				x.Image = ""
26877			} else {
26878				yyv6 := &x.Image
26879				yym7 := z.DecBinary()
26880				_ = yym7
26881				if false {
26882				} else {
26883					*((*string)(yyv6)) = r.DecodeString()
26884				}
26885			}
26886		case "command":
26887			if r.TryDecodeAsNil() {
26888				x.Command = nil
26889			} else {
26890				yyv8 := &x.Command
26891				yym9 := z.DecBinary()
26892				_ = yym9
26893				if false {
26894				} else {
26895					z.F.DecSliceStringX(yyv8, false, d)
26896				}
26897			}
26898		case "args":
26899			if r.TryDecodeAsNil() {
26900				x.Args = nil
26901			} else {
26902				yyv10 := &x.Args
26903				yym11 := z.DecBinary()
26904				_ = yym11
26905				if false {
26906				} else {
26907					z.F.DecSliceStringX(yyv10, false, d)
26908				}
26909			}
26910		case "workingDir":
26911			if r.TryDecodeAsNil() {
26912				x.WorkingDir = ""
26913			} else {
26914				yyv12 := &x.WorkingDir
26915				yym13 := z.DecBinary()
26916				_ = yym13
26917				if false {
26918				} else {
26919					*((*string)(yyv12)) = r.DecodeString()
26920				}
26921			}
26922		case "ports":
26923			if r.TryDecodeAsNil() {
26924				x.Ports = nil
26925			} else {
26926				yyv14 := &x.Ports
26927				yym15 := z.DecBinary()
26928				_ = yym15
26929				if false {
26930				} else {
26931					h.decSliceContainerPort((*[]ContainerPort)(yyv14), d)
26932				}
26933			}
26934		case "envFrom":
26935			if r.TryDecodeAsNil() {
26936				x.EnvFrom = nil
26937			} else {
26938				yyv16 := &x.EnvFrom
26939				yym17 := z.DecBinary()
26940				_ = yym17
26941				if false {
26942				} else {
26943					h.decSliceEnvFromSource((*[]EnvFromSource)(yyv16), d)
26944				}
26945			}
26946		case "env":
26947			if r.TryDecodeAsNil() {
26948				x.Env = nil
26949			} else {
26950				yyv18 := &x.Env
26951				yym19 := z.DecBinary()
26952				_ = yym19
26953				if false {
26954				} else {
26955					h.decSliceEnvVar((*[]EnvVar)(yyv18), d)
26956				}
26957			}
26958		case "resources":
26959			if r.TryDecodeAsNil() {
26960				x.Resources = ResourceRequirements{}
26961			} else {
26962				yyv20 := &x.Resources
26963				yyv20.CodecDecodeSelf(d)
26964			}
26965		case "volumeMounts":
26966			if r.TryDecodeAsNil() {
26967				x.VolumeMounts = nil
26968			} else {
26969				yyv21 := &x.VolumeMounts
26970				yym22 := z.DecBinary()
26971				_ = yym22
26972				if false {
26973				} else {
26974					h.decSliceVolumeMount((*[]VolumeMount)(yyv21), d)
26975				}
26976			}
26977		case "livenessProbe":
26978			if r.TryDecodeAsNil() {
26979				if x.LivenessProbe != nil {
26980					x.LivenessProbe = nil
26981				}
26982			} else {
26983				if x.LivenessProbe == nil {
26984					x.LivenessProbe = new(Probe)
26985				}
26986				x.LivenessProbe.CodecDecodeSelf(d)
26987			}
26988		case "readinessProbe":
26989			if r.TryDecodeAsNil() {
26990				if x.ReadinessProbe != nil {
26991					x.ReadinessProbe = nil
26992				}
26993			} else {
26994				if x.ReadinessProbe == nil {
26995					x.ReadinessProbe = new(Probe)
26996				}
26997				x.ReadinessProbe.CodecDecodeSelf(d)
26998			}
26999		case "lifecycle":
27000			if r.TryDecodeAsNil() {
27001				if x.Lifecycle != nil {
27002					x.Lifecycle = nil
27003				}
27004			} else {
27005				if x.Lifecycle == nil {
27006					x.Lifecycle = new(Lifecycle)
27007				}
27008				x.Lifecycle.CodecDecodeSelf(d)
27009			}
27010		case "terminationMessagePath":
27011			if r.TryDecodeAsNil() {
27012				x.TerminationMessagePath = ""
27013			} else {
27014				yyv26 := &x.TerminationMessagePath
27015				yym27 := z.DecBinary()
27016				_ = yym27
27017				if false {
27018				} else {
27019					*((*string)(yyv26)) = r.DecodeString()
27020				}
27021			}
27022		case "terminationMessagePolicy":
27023			if r.TryDecodeAsNil() {
27024				x.TerminationMessagePolicy = ""
27025			} else {
27026				yyv28 := &x.TerminationMessagePolicy
27027				yyv28.CodecDecodeSelf(d)
27028			}
27029		case "imagePullPolicy":
27030			if r.TryDecodeAsNil() {
27031				x.ImagePullPolicy = ""
27032			} else {
27033				yyv29 := &x.ImagePullPolicy
27034				yyv29.CodecDecodeSelf(d)
27035			}
27036		case "securityContext":
27037			if r.TryDecodeAsNil() {
27038				if x.SecurityContext != nil {
27039					x.SecurityContext = nil
27040				}
27041			} else {
27042				if x.SecurityContext == nil {
27043					x.SecurityContext = new(SecurityContext)
27044				}
27045				x.SecurityContext.CodecDecodeSelf(d)
27046			}
27047		case "stdin":
27048			if r.TryDecodeAsNil() {
27049				x.Stdin = false
27050			} else {
27051				yyv31 := &x.Stdin
27052				yym32 := z.DecBinary()
27053				_ = yym32
27054				if false {
27055				} else {
27056					*((*bool)(yyv31)) = r.DecodeBool()
27057				}
27058			}
27059		case "stdinOnce":
27060			if r.TryDecodeAsNil() {
27061				x.StdinOnce = false
27062			} else {
27063				yyv33 := &x.StdinOnce
27064				yym34 := z.DecBinary()
27065				_ = yym34
27066				if false {
27067				} else {
27068					*((*bool)(yyv33)) = r.DecodeBool()
27069				}
27070			}
27071		case "tty":
27072			if r.TryDecodeAsNil() {
27073				x.TTY = false
27074			} else {
27075				yyv35 := &x.TTY
27076				yym36 := z.DecBinary()
27077				_ = yym36
27078				if false {
27079				} else {
27080					*((*bool)(yyv35)) = r.DecodeBool()
27081				}
27082			}
27083		default:
27084			z.DecStructFieldNotFound(-1, yys3)
27085		} // end switch yys3
27086	} // end for yyj3
27087	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
27088}
27089
27090func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
27091	var h codecSelfer1234
27092	z, r := codec1978.GenHelperDecoder(d)
27093	_, _, _ = h, z, r
27094	var yyj37 int
27095	var yyb37 bool
27096	var yyhl37 bool = l >= 0
27097	yyj37++
27098	if yyhl37 {
27099		yyb37 = yyj37 > l
27100	} else {
27101		yyb37 = r.CheckBreak()
27102	}
27103	if yyb37 {
27104		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27105		return
27106	}
27107	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27108	if r.TryDecodeAsNil() {
27109		x.Name = ""
27110	} else {
27111		yyv38 := &x.Name
27112		yym39 := z.DecBinary()
27113		_ = yym39
27114		if false {
27115		} else {
27116			*((*string)(yyv38)) = r.DecodeString()
27117		}
27118	}
27119	yyj37++
27120	if yyhl37 {
27121		yyb37 = yyj37 > l
27122	} else {
27123		yyb37 = r.CheckBreak()
27124	}
27125	if yyb37 {
27126		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27127		return
27128	}
27129	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27130	if r.TryDecodeAsNil() {
27131		x.Image = ""
27132	} else {
27133		yyv40 := &x.Image
27134		yym41 := z.DecBinary()
27135		_ = yym41
27136		if false {
27137		} else {
27138			*((*string)(yyv40)) = r.DecodeString()
27139		}
27140	}
27141	yyj37++
27142	if yyhl37 {
27143		yyb37 = yyj37 > l
27144	} else {
27145		yyb37 = r.CheckBreak()
27146	}
27147	if yyb37 {
27148		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27149		return
27150	}
27151	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27152	if r.TryDecodeAsNil() {
27153		x.Command = nil
27154	} else {
27155		yyv42 := &x.Command
27156		yym43 := z.DecBinary()
27157		_ = yym43
27158		if false {
27159		} else {
27160			z.F.DecSliceStringX(yyv42, false, d)
27161		}
27162	}
27163	yyj37++
27164	if yyhl37 {
27165		yyb37 = yyj37 > l
27166	} else {
27167		yyb37 = r.CheckBreak()
27168	}
27169	if yyb37 {
27170		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27171		return
27172	}
27173	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27174	if r.TryDecodeAsNil() {
27175		x.Args = nil
27176	} else {
27177		yyv44 := &x.Args
27178		yym45 := z.DecBinary()
27179		_ = yym45
27180		if false {
27181		} else {
27182			z.F.DecSliceStringX(yyv44, false, d)
27183		}
27184	}
27185	yyj37++
27186	if yyhl37 {
27187		yyb37 = yyj37 > l
27188	} else {
27189		yyb37 = r.CheckBreak()
27190	}
27191	if yyb37 {
27192		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27193		return
27194	}
27195	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27196	if r.TryDecodeAsNil() {
27197		x.WorkingDir = ""
27198	} else {
27199		yyv46 := &x.WorkingDir
27200		yym47 := z.DecBinary()
27201		_ = yym47
27202		if false {
27203		} else {
27204			*((*string)(yyv46)) = r.DecodeString()
27205		}
27206	}
27207	yyj37++
27208	if yyhl37 {
27209		yyb37 = yyj37 > l
27210	} else {
27211		yyb37 = r.CheckBreak()
27212	}
27213	if yyb37 {
27214		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27215		return
27216	}
27217	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27218	if r.TryDecodeAsNil() {
27219		x.Ports = nil
27220	} else {
27221		yyv48 := &x.Ports
27222		yym49 := z.DecBinary()
27223		_ = yym49
27224		if false {
27225		} else {
27226			h.decSliceContainerPort((*[]ContainerPort)(yyv48), d)
27227		}
27228	}
27229	yyj37++
27230	if yyhl37 {
27231		yyb37 = yyj37 > l
27232	} else {
27233		yyb37 = r.CheckBreak()
27234	}
27235	if yyb37 {
27236		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27237		return
27238	}
27239	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27240	if r.TryDecodeAsNil() {
27241		x.EnvFrom = nil
27242	} else {
27243		yyv50 := &x.EnvFrom
27244		yym51 := z.DecBinary()
27245		_ = yym51
27246		if false {
27247		} else {
27248			h.decSliceEnvFromSource((*[]EnvFromSource)(yyv50), d)
27249		}
27250	}
27251	yyj37++
27252	if yyhl37 {
27253		yyb37 = yyj37 > l
27254	} else {
27255		yyb37 = r.CheckBreak()
27256	}
27257	if yyb37 {
27258		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27259		return
27260	}
27261	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27262	if r.TryDecodeAsNil() {
27263		x.Env = nil
27264	} else {
27265		yyv52 := &x.Env
27266		yym53 := z.DecBinary()
27267		_ = yym53
27268		if false {
27269		} else {
27270			h.decSliceEnvVar((*[]EnvVar)(yyv52), d)
27271		}
27272	}
27273	yyj37++
27274	if yyhl37 {
27275		yyb37 = yyj37 > l
27276	} else {
27277		yyb37 = r.CheckBreak()
27278	}
27279	if yyb37 {
27280		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27281		return
27282	}
27283	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27284	if r.TryDecodeAsNil() {
27285		x.Resources = ResourceRequirements{}
27286	} else {
27287		yyv54 := &x.Resources
27288		yyv54.CodecDecodeSelf(d)
27289	}
27290	yyj37++
27291	if yyhl37 {
27292		yyb37 = yyj37 > l
27293	} else {
27294		yyb37 = r.CheckBreak()
27295	}
27296	if yyb37 {
27297		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27298		return
27299	}
27300	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27301	if r.TryDecodeAsNil() {
27302		x.VolumeMounts = nil
27303	} else {
27304		yyv55 := &x.VolumeMounts
27305		yym56 := z.DecBinary()
27306		_ = yym56
27307		if false {
27308		} else {
27309			h.decSliceVolumeMount((*[]VolumeMount)(yyv55), d)
27310		}
27311	}
27312	yyj37++
27313	if yyhl37 {
27314		yyb37 = yyj37 > l
27315	} else {
27316		yyb37 = r.CheckBreak()
27317	}
27318	if yyb37 {
27319		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27320		return
27321	}
27322	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27323	if r.TryDecodeAsNil() {
27324		if x.LivenessProbe != nil {
27325			x.LivenessProbe = nil
27326		}
27327	} else {
27328		if x.LivenessProbe == nil {
27329			x.LivenessProbe = new(Probe)
27330		}
27331		x.LivenessProbe.CodecDecodeSelf(d)
27332	}
27333	yyj37++
27334	if yyhl37 {
27335		yyb37 = yyj37 > l
27336	} else {
27337		yyb37 = r.CheckBreak()
27338	}
27339	if yyb37 {
27340		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27341		return
27342	}
27343	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27344	if r.TryDecodeAsNil() {
27345		if x.ReadinessProbe != nil {
27346			x.ReadinessProbe = nil
27347		}
27348	} else {
27349		if x.ReadinessProbe == nil {
27350			x.ReadinessProbe = new(Probe)
27351		}
27352		x.ReadinessProbe.CodecDecodeSelf(d)
27353	}
27354	yyj37++
27355	if yyhl37 {
27356		yyb37 = yyj37 > l
27357	} else {
27358		yyb37 = r.CheckBreak()
27359	}
27360	if yyb37 {
27361		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27362		return
27363	}
27364	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27365	if r.TryDecodeAsNil() {
27366		if x.Lifecycle != nil {
27367			x.Lifecycle = nil
27368		}
27369	} else {
27370		if x.Lifecycle == nil {
27371			x.Lifecycle = new(Lifecycle)
27372		}
27373		x.Lifecycle.CodecDecodeSelf(d)
27374	}
27375	yyj37++
27376	if yyhl37 {
27377		yyb37 = yyj37 > l
27378	} else {
27379		yyb37 = r.CheckBreak()
27380	}
27381	if yyb37 {
27382		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27383		return
27384	}
27385	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27386	if r.TryDecodeAsNil() {
27387		x.TerminationMessagePath = ""
27388	} else {
27389		yyv60 := &x.TerminationMessagePath
27390		yym61 := z.DecBinary()
27391		_ = yym61
27392		if false {
27393		} else {
27394			*((*string)(yyv60)) = r.DecodeString()
27395		}
27396	}
27397	yyj37++
27398	if yyhl37 {
27399		yyb37 = yyj37 > l
27400	} else {
27401		yyb37 = r.CheckBreak()
27402	}
27403	if yyb37 {
27404		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27405		return
27406	}
27407	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27408	if r.TryDecodeAsNil() {
27409		x.TerminationMessagePolicy = ""
27410	} else {
27411		yyv62 := &x.TerminationMessagePolicy
27412		yyv62.CodecDecodeSelf(d)
27413	}
27414	yyj37++
27415	if yyhl37 {
27416		yyb37 = yyj37 > l
27417	} else {
27418		yyb37 = r.CheckBreak()
27419	}
27420	if yyb37 {
27421		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27422		return
27423	}
27424	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27425	if r.TryDecodeAsNil() {
27426		x.ImagePullPolicy = ""
27427	} else {
27428		yyv63 := &x.ImagePullPolicy
27429		yyv63.CodecDecodeSelf(d)
27430	}
27431	yyj37++
27432	if yyhl37 {
27433		yyb37 = yyj37 > l
27434	} else {
27435		yyb37 = r.CheckBreak()
27436	}
27437	if yyb37 {
27438		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27439		return
27440	}
27441	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27442	if r.TryDecodeAsNil() {
27443		if x.SecurityContext != nil {
27444			x.SecurityContext = nil
27445		}
27446	} else {
27447		if x.SecurityContext == nil {
27448			x.SecurityContext = new(SecurityContext)
27449		}
27450		x.SecurityContext.CodecDecodeSelf(d)
27451	}
27452	yyj37++
27453	if yyhl37 {
27454		yyb37 = yyj37 > l
27455	} else {
27456		yyb37 = r.CheckBreak()
27457	}
27458	if yyb37 {
27459		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27460		return
27461	}
27462	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27463	if r.TryDecodeAsNil() {
27464		x.Stdin = false
27465	} else {
27466		yyv65 := &x.Stdin
27467		yym66 := z.DecBinary()
27468		_ = yym66
27469		if false {
27470		} else {
27471			*((*bool)(yyv65)) = r.DecodeBool()
27472		}
27473	}
27474	yyj37++
27475	if yyhl37 {
27476		yyb37 = yyj37 > l
27477	} else {
27478		yyb37 = r.CheckBreak()
27479	}
27480	if yyb37 {
27481		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27482		return
27483	}
27484	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27485	if r.TryDecodeAsNil() {
27486		x.StdinOnce = false
27487	} else {
27488		yyv67 := &x.StdinOnce
27489		yym68 := z.DecBinary()
27490		_ = yym68
27491		if false {
27492		} else {
27493			*((*bool)(yyv67)) = r.DecodeBool()
27494		}
27495	}
27496	yyj37++
27497	if yyhl37 {
27498		yyb37 = yyj37 > l
27499	} else {
27500		yyb37 = r.CheckBreak()
27501	}
27502	if yyb37 {
27503		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27504		return
27505	}
27506	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27507	if r.TryDecodeAsNil() {
27508		x.TTY = false
27509	} else {
27510		yyv69 := &x.TTY
27511		yym70 := z.DecBinary()
27512		_ = yym70
27513		if false {
27514		} else {
27515			*((*bool)(yyv69)) = r.DecodeBool()
27516		}
27517	}
27518	for {
27519		yyj37++
27520		if yyhl37 {
27521			yyb37 = yyj37 > l
27522		} else {
27523			yyb37 = r.CheckBreak()
27524		}
27525		if yyb37 {
27526			break
27527		}
27528		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27529		z.DecStructFieldNotFound(yyj37-1, "")
27530	}
27531	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27532}
27533
27534func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) {
27535	var h codecSelfer1234
27536	z, r := codec1978.GenHelperEncoder(e)
27537	_, _, _ = h, z, r
27538	if x == nil {
27539		r.EncodeNil()
27540	} else {
27541		yym1 := z.EncBinary()
27542		_ = yym1
27543		if false {
27544		} else if z.HasExtensions() && z.EncExt(x) {
27545		} else {
27546			yysep2 := !z.EncBinary()
27547			yy2arr2 := z.EncBasicHandle().StructToArray
27548			var yyq2 [3]bool
27549			_, _, _ = yysep2, yyq2, yy2arr2
27550			const yyr2 bool = false
27551			yyq2[0] = x.Exec != nil
27552			yyq2[1] = x.HTTPGet != nil
27553			yyq2[2] = x.TCPSocket != nil
27554			var yynn2 int
27555			if yyr2 || yy2arr2 {
27556				r.EncodeArrayStart(3)
27557			} else {
27558				yynn2 = 0
27559				for _, b := range yyq2 {
27560					if b {
27561						yynn2++
27562					}
27563				}
27564				r.EncodeMapStart(yynn2)
27565				yynn2 = 0
27566			}
27567			if yyr2 || yy2arr2 {
27568				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
27569				if yyq2[0] {
27570					if x.Exec == nil {
27571						r.EncodeNil()
27572					} else {
27573						x.Exec.CodecEncodeSelf(e)
27574					}
27575				} else {
27576					r.EncodeNil()
27577				}
27578			} else {
27579				if yyq2[0] {
27580					z.EncSendContainerState(codecSelfer_containerMapKey1234)
27581					r.EncodeString(codecSelferC_UTF81234, string("exec"))
27582					z.EncSendContainerState(codecSelfer_containerMapValue1234)
27583					if x.Exec == nil {
27584						r.EncodeNil()
27585					} else {
27586						x.Exec.CodecEncodeSelf(e)
27587					}
27588				}
27589			}
27590			if yyr2 || yy2arr2 {
27591				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
27592				if yyq2[1] {
27593					if x.HTTPGet == nil {
27594						r.EncodeNil()
27595					} else {
27596						x.HTTPGet.CodecEncodeSelf(e)
27597					}
27598				} else {
27599					r.EncodeNil()
27600				}
27601			} else {
27602				if yyq2[1] {
27603					z.EncSendContainerState(codecSelfer_containerMapKey1234)
27604					r.EncodeString(codecSelferC_UTF81234, string("httpGet"))
27605					z.EncSendContainerState(codecSelfer_containerMapValue1234)
27606					if x.HTTPGet == nil {
27607						r.EncodeNil()
27608					} else {
27609						x.HTTPGet.CodecEncodeSelf(e)
27610					}
27611				}
27612			}
27613			if yyr2 || yy2arr2 {
27614				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
27615				if yyq2[2] {
27616					if x.TCPSocket == nil {
27617						r.EncodeNil()
27618					} else {
27619						x.TCPSocket.CodecEncodeSelf(e)
27620					}
27621				} else {
27622					r.EncodeNil()
27623				}
27624			} else {
27625				if yyq2[2] {
27626					z.EncSendContainerState(codecSelfer_containerMapKey1234)
27627					r.EncodeString(codecSelferC_UTF81234, string("tcpSocket"))
27628					z.EncSendContainerState(codecSelfer_containerMapValue1234)
27629					if x.TCPSocket == nil {
27630						r.EncodeNil()
27631					} else {
27632						x.TCPSocket.CodecEncodeSelf(e)
27633					}
27634				}
27635			}
27636			if yyr2 || yy2arr2 {
27637				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
27638			} else {
27639				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
27640			}
27641		}
27642	}
27643}
27644
27645func (x *Handler) CodecDecodeSelf(d *codec1978.Decoder) {
27646	var h codecSelfer1234
27647	z, r := codec1978.GenHelperDecoder(d)
27648	_, _, _ = h, z, r
27649	yym1 := z.DecBinary()
27650	_ = yym1
27651	if false {
27652	} else if z.HasExtensions() && z.DecExt(x) {
27653	} else {
27654		yyct2 := r.ContainerType()
27655		if yyct2 == codecSelferValueTypeMap1234 {
27656			yyl2 := r.ReadMapStart()
27657			if yyl2 == 0 {
27658				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
27659			} else {
27660				x.codecDecodeSelfFromMap(yyl2, d)
27661			}
27662		} else if yyct2 == codecSelferValueTypeArray1234 {
27663			yyl2 := r.ReadArrayStart()
27664			if yyl2 == 0 {
27665				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27666			} else {
27667				x.codecDecodeSelfFromArray(yyl2, d)
27668			}
27669		} else {
27670			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
27671		}
27672	}
27673}
27674
27675func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
27676	var h codecSelfer1234
27677	z, r := codec1978.GenHelperDecoder(d)
27678	_, _, _ = h, z, r
27679	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
27680	_ = yys3Slc
27681	var yyhl3 bool = l >= 0
27682	for yyj3 := 0; ; yyj3++ {
27683		if yyhl3 {
27684			if yyj3 >= l {
27685				break
27686			}
27687		} else {
27688			if r.CheckBreak() {
27689				break
27690			}
27691		}
27692		z.DecSendContainerState(codecSelfer_containerMapKey1234)
27693		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
27694		yys3 := string(yys3Slc)
27695		z.DecSendContainerState(codecSelfer_containerMapValue1234)
27696		switch yys3 {
27697		case "exec":
27698			if r.TryDecodeAsNil() {
27699				if x.Exec != nil {
27700					x.Exec = nil
27701				}
27702			} else {
27703				if x.Exec == nil {
27704					x.Exec = new(ExecAction)
27705				}
27706				x.Exec.CodecDecodeSelf(d)
27707			}
27708		case "httpGet":
27709			if r.TryDecodeAsNil() {
27710				if x.HTTPGet != nil {
27711					x.HTTPGet = nil
27712				}
27713			} else {
27714				if x.HTTPGet == nil {
27715					x.HTTPGet = new(HTTPGetAction)
27716				}
27717				x.HTTPGet.CodecDecodeSelf(d)
27718			}
27719		case "tcpSocket":
27720			if r.TryDecodeAsNil() {
27721				if x.TCPSocket != nil {
27722					x.TCPSocket = nil
27723				}
27724			} else {
27725				if x.TCPSocket == nil {
27726					x.TCPSocket = new(TCPSocketAction)
27727				}
27728				x.TCPSocket.CodecDecodeSelf(d)
27729			}
27730		default:
27731			z.DecStructFieldNotFound(-1, yys3)
27732		} // end switch yys3
27733	} // end for yyj3
27734	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
27735}
27736
27737func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
27738	var h codecSelfer1234
27739	z, r := codec1978.GenHelperDecoder(d)
27740	_, _, _ = h, z, r
27741	var yyj7 int
27742	var yyb7 bool
27743	var yyhl7 bool = l >= 0
27744	yyj7++
27745	if yyhl7 {
27746		yyb7 = yyj7 > l
27747	} else {
27748		yyb7 = r.CheckBreak()
27749	}
27750	if yyb7 {
27751		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27752		return
27753	}
27754	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27755	if r.TryDecodeAsNil() {
27756		if x.Exec != nil {
27757			x.Exec = nil
27758		}
27759	} else {
27760		if x.Exec == nil {
27761			x.Exec = new(ExecAction)
27762		}
27763		x.Exec.CodecDecodeSelf(d)
27764	}
27765	yyj7++
27766	if yyhl7 {
27767		yyb7 = yyj7 > l
27768	} else {
27769		yyb7 = r.CheckBreak()
27770	}
27771	if yyb7 {
27772		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27773		return
27774	}
27775	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27776	if r.TryDecodeAsNil() {
27777		if x.HTTPGet != nil {
27778			x.HTTPGet = nil
27779		}
27780	} else {
27781		if x.HTTPGet == nil {
27782			x.HTTPGet = new(HTTPGetAction)
27783		}
27784		x.HTTPGet.CodecDecodeSelf(d)
27785	}
27786	yyj7++
27787	if yyhl7 {
27788		yyb7 = yyj7 > l
27789	} else {
27790		yyb7 = r.CheckBreak()
27791	}
27792	if yyb7 {
27793		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27794		return
27795	}
27796	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27797	if r.TryDecodeAsNil() {
27798		if x.TCPSocket != nil {
27799			x.TCPSocket = nil
27800		}
27801	} else {
27802		if x.TCPSocket == nil {
27803			x.TCPSocket = new(TCPSocketAction)
27804		}
27805		x.TCPSocket.CodecDecodeSelf(d)
27806	}
27807	for {
27808		yyj7++
27809		if yyhl7 {
27810			yyb7 = yyj7 > l
27811		} else {
27812			yyb7 = r.CheckBreak()
27813		}
27814		if yyb7 {
27815			break
27816		}
27817		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
27818		z.DecStructFieldNotFound(yyj7-1, "")
27819	}
27820	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27821}
27822
27823func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) {
27824	var h codecSelfer1234
27825	z, r := codec1978.GenHelperEncoder(e)
27826	_, _, _ = h, z, r
27827	if x == nil {
27828		r.EncodeNil()
27829	} else {
27830		yym1 := z.EncBinary()
27831		_ = yym1
27832		if false {
27833		} else if z.HasExtensions() && z.EncExt(x) {
27834		} else {
27835			yysep2 := !z.EncBinary()
27836			yy2arr2 := z.EncBasicHandle().StructToArray
27837			var yyq2 [2]bool
27838			_, _, _ = yysep2, yyq2, yy2arr2
27839			const yyr2 bool = false
27840			yyq2[0] = x.PostStart != nil
27841			yyq2[1] = x.PreStop != nil
27842			var yynn2 int
27843			if yyr2 || yy2arr2 {
27844				r.EncodeArrayStart(2)
27845			} else {
27846				yynn2 = 0
27847				for _, b := range yyq2 {
27848					if b {
27849						yynn2++
27850					}
27851				}
27852				r.EncodeMapStart(yynn2)
27853				yynn2 = 0
27854			}
27855			if yyr2 || yy2arr2 {
27856				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
27857				if yyq2[0] {
27858					if x.PostStart == nil {
27859						r.EncodeNil()
27860					} else {
27861						x.PostStart.CodecEncodeSelf(e)
27862					}
27863				} else {
27864					r.EncodeNil()
27865				}
27866			} else {
27867				if yyq2[0] {
27868					z.EncSendContainerState(codecSelfer_containerMapKey1234)
27869					r.EncodeString(codecSelferC_UTF81234, string("postStart"))
27870					z.EncSendContainerState(codecSelfer_containerMapValue1234)
27871					if x.PostStart == nil {
27872						r.EncodeNil()
27873					} else {
27874						x.PostStart.CodecEncodeSelf(e)
27875					}
27876				}
27877			}
27878			if yyr2 || yy2arr2 {
27879				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
27880				if yyq2[1] {
27881					if x.PreStop == nil {
27882						r.EncodeNil()
27883					} else {
27884						x.PreStop.CodecEncodeSelf(e)
27885					}
27886				} else {
27887					r.EncodeNil()
27888				}
27889			} else {
27890				if yyq2[1] {
27891					z.EncSendContainerState(codecSelfer_containerMapKey1234)
27892					r.EncodeString(codecSelferC_UTF81234, string("preStop"))
27893					z.EncSendContainerState(codecSelfer_containerMapValue1234)
27894					if x.PreStop == nil {
27895						r.EncodeNil()
27896					} else {
27897						x.PreStop.CodecEncodeSelf(e)
27898					}
27899				}
27900			}
27901			if yyr2 || yy2arr2 {
27902				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
27903			} else {
27904				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
27905			}
27906		}
27907	}
27908}
27909
27910func (x *Lifecycle) CodecDecodeSelf(d *codec1978.Decoder) {
27911	var h codecSelfer1234
27912	z, r := codec1978.GenHelperDecoder(d)
27913	_, _, _ = h, z, r
27914	yym1 := z.DecBinary()
27915	_ = yym1
27916	if false {
27917	} else if z.HasExtensions() && z.DecExt(x) {
27918	} else {
27919		yyct2 := r.ContainerType()
27920		if yyct2 == codecSelferValueTypeMap1234 {
27921			yyl2 := r.ReadMapStart()
27922			if yyl2 == 0 {
27923				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
27924			} else {
27925				x.codecDecodeSelfFromMap(yyl2, d)
27926			}
27927		} else if yyct2 == codecSelferValueTypeArray1234 {
27928			yyl2 := r.ReadArrayStart()
27929			if yyl2 == 0 {
27930				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
27931			} else {
27932				x.codecDecodeSelfFromArray(yyl2, d)
27933			}
27934		} else {
27935			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
27936		}
27937	}
27938}
27939
27940func (x *Lifecycle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
27941	var h codecSelfer1234
27942	z, r := codec1978.GenHelperDecoder(d)
27943	_, _, _ = h, z, r
27944	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
27945	_ = yys3Slc
27946	var yyhl3 bool = l >= 0
27947	for yyj3 := 0; ; yyj3++ {
27948		if yyhl3 {
27949			if yyj3 >= l {
27950				break
27951			}
27952		} else {
27953			if r.CheckBreak() {
27954				break
27955			}
27956		}
27957		z.DecSendContainerState(codecSelfer_containerMapKey1234)
27958		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
27959		yys3 := string(yys3Slc)
27960		z.DecSendContainerState(codecSelfer_containerMapValue1234)
27961		switch yys3 {
27962		case "postStart":
27963			if r.TryDecodeAsNil() {
27964				if x.PostStart != nil {
27965					x.PostStart = nil
27966				}
27967			} else {
27968				if x.PostStart == nil {
27969					x.PostStart = new(Handler)
27970				}
27971				x.PostStart.CodecDecodeSelf(d)
27972			}
27973		case "preStop":
27974			if r.TryDecodeAsNil() {
27975				if x.PreStop != nil {
27976					x.PreStop = nil
27977				}
27978			} else {
27979				if x.PreStop == nil {
27980					x.PreStop = new(Handler)
27981				}
27982				x.PreStop.CodecDecodeSelf(d)
27983			}
27984		default:
27985			z.DecStructFieldNotFound(-1, yys3)
27986		} // end switch yys3
27987	} // end for yyj3
27988	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
27989}
27990
27991func (x *Lifecycle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
27992	var h codecSelfer1234
27993	z, r := codec1978.GenHelperDecoder(d)
27994	_, _, _ = h, z, r
27995	var yyj6 int
27996	var yyb6 bool
27997	var yyhl6 bool = l >= 0
27998	yyj6++
27999	if yyhl6 {
28000		yyb6 = yyj6 > l
28001	} else {
28002		yyb6 = r.CheckBreak()
28003	}
28004	if yyb6 {
28005		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
28006		return
28007	}
28008	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
28009	if r.TryDecodeAsNil() {
28010		if x.PostStart != nil {
28011			x.PostStart = nil
28012		}
28013	} else {
28014		if x.PostStart == nil {
28015			x.PostStart = new(Handler)
28016		}
28017		x.PostStart.CodecDecodeSelf(d)
28018	}
28019	yyj6++
28020	if yyhl6 {
28021		yyb6 = yyj6 > l
28022	} else {
28023		yyb6 = r.CheckBreak()
28024	}
28025	if yyb6 {
28026		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
28027		return
28028	}
28029	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
28030	if r.TryDecodeAsNil() {
28031		if x.PreStop != nil {
28032			x.PreStop = nil
28033		}
28034	} else {
28035		if x.PreStop == nil {
28036			x.PreStop = new(Handler)
28037		}
28038		x.PreStop.CodecDecodeSelf(d)
28039	}
28040	for {
28041		yyj6++
28042		if yyhl6 {
28043			yyb6 = yyj6 > l
28044		} else {
28045			yyb6 = r.CheckBreak()
28046		}
28047		if yyb6 {
28048			break
28049		}
28050		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
28051		z.DecStructFieldNotFound(yyj6-1, "")
28052	}
28053	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
28054}
28055
28056func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) {
28057	var h codecSelfer1234
28058	z, r := codec1978.GenHelperEncoder(e)
28059	_, _, _ = h, z, r
28060	yym1 := z.EncBinary()
28061	_ = yym1
28062	if false {
28063	} else if z.HasExtensions() && z.EncExt(x) {
28064	} else {
28065		r.EncodeString(codecSelferC_UTF81234, string(x))
28066	}
28067}
28068
28069func (x *ConditionStatus) CodecDecodeSelf(d *codec1978.Decoder) {
28070	var h codecSelfer1234
28071	z, r := codec1978.GenHelperDecoder(d)
28072	_, _, _ = h, z, r
28073	yym1 := z.DecBinary()
28074	_ = yym1
28075	if false {
28076	} else if z.HasExtensions() && z.DecExt(x) {
28077	} else {
28078		*((*string)(x)) = r.DecodeString()
28079	}
28080}
28081
28082func (x *ContainerStateWaiting) CodecEncodeSelf(e *codec1978.Encoder) {
28083	var h codecSelfer1234
28084	z, r := codec1978.GenHelperEncoder(e)
28085	_, _, _ = h, z, r
28086	if x == nil {
28087		r.EncodeNil()
28088	} else {
28089		yym1 := z.EncBinary()
28090		_ = yym1
28091		if false {
28092		} else if z.HasExtensions() && z.EncExt(x) {
28093		} else {
28094			yysep2 := !z.EncBinary()
28095			yy2arr2 := z.EncBasicHandle().StructToArray
28096			var yyq2 [2]bool
28097			_, _, _ = yysep2, yyq2, yy2arr2
28098			const yyr2 bool = false
28099			yyq2[0] = x.Reason != ""
28100			yyq2[1] = x.Message != ""
28101			var yynn2 int
28102			if yyr2 || yy2arr2 {
28103				r.EncodeArrayStart(2)
28104			} else {
28105				yynn2 = 0
28106				for _, b := range yyq2 {
28107					if b {
28108						yynn2++
28109					}
28110				}
28111				r.EncodeMapStart(yynn2)
28112				yynn2 = 0
28113			}
28114			if yyr2 || yy2arr2 {
28115				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
28116				if yyq2[0] {
28117					yym4 := z.EncBinary()
28118					_ = yym4
28119					if false {
28120					} else {
28121						r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
28122					}
28123				} else {
28124					r.EncodeString(codecSelferC_UTF81234, "")
28125				}
28126			} else {
28127				if yyq2[0] {
28128					z.EncSendContainerState(codecSelfer_containerMapKey1234)
28129					r.EncodeString(codecSelferC_UTF81234, string("reason"))
28130					z.EncSendContainerState(codecSelfer_containerMapValue1234)
28131					yym5 := z.EncBinary()
28132					_ = yym5
28133					if false {
28134					} else {
28135						r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
28136					}
28137				}
28138			}
28139			if yyr2 || yy2arr2 {
28140				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
28141				if yyq2[1] {
28142					yym7 := z.EncBinary()
28143					_ = yym7
28144					if false {
28145					} else {
28146						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
28147					}
28148				} else {
28149					r.EncodeString(codecSelferC_UTF81234, "")
28150				}
28151			} else {
28152				if yyq2[1] {
28153					z.EncSendContainerState(codecSelfer_containerMapKey1234)
28154					r.EncodeString(codecSelferC_UTF81234, string("message"))
28155					z.EncSendContainerState(codecSelfer_containerMapValue1234)
28156					yym8 := z.EncBinary()
28157					_ = yym8
28158					if false {
28159					} else {
28160						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
28161					}
28162				}
28163			}
28164			if yyr2 || yy2arr2 {
28165				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
28166			} else {
28167				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
28168			}
28169		}
28170	}
28171}
28172
28173func (x *ContainerStateWaiting) CodecDecodeSelf(d *codec1978.Decoder) {
28174	var h codecSelfer1234
28175	z, r := codec1978.GenHelperDecoder(d)
28176	_, _, _ = h, z, r
28177	yym1 := z.DecBinary()
28178	_ = yym1
28179	if false {
28180	} else if z.HasExtensions() && z.DecExt(x) {
28181	} else {
28182		yyct2 := r.ContainerType()
28183		if yyct2 == codecSelferValueTypeMap1234 {
28184			yyl2 := r.ReadMapStart()
28185			if yyl2 == 0 {
28186				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
28187			} else {
28188				x.codecDecodeSelfFromMap(yyl2, d)
28189			}
28190		} else if yyct2 == codecSelferValueTypeArray1234 {
28191			yyl2 := r.ReadArrayStart()
28192			if yyl2 == 0 {
28193				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
28194			} else {
28195				x.codecDecodeSelfFromArray(yyl2, d)
28196			}
28197		} else {
28198			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
28199		}
28200	}
28201}
28202
28203func (x *ContainerStateWaiting) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
28204	var h codecSelfer1234
28205	z, r := codec1978.GenHelperDecoder(d)
28206	_, _, _ = h, z, r
28207	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
28208	_ = yys3Slc
28209	var yyhl3 bool = l >= 0
28210	for yyj3 := 0; ; yyj3++ {
28211		if yyhl3 {
28212			if yyj3 >= l {
28213				break
28214			}
28215		} else {
28216			if r.CheckBreak() {
28217				break
28218			}
28219		}
28220		z.DecSendContainerState(codecSelfer_containerMapKey1234)
28221		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
28222		yys3 := string(yys3Slc)
28223		z.DecSendContainerState(codecSelfer_containerMapValue1234)
28224		switch yys3 {
28225		case "reason":
28226			if r.TryDecodeAsNil() {
28227				x.Reason = ""
28228			} else {
28229				yyv4 := &x.Reason
28230				yym5 := z.DecBinary()
28231				_ = yym5
28232				if false {
28233				} else {
28234					*((*string)(yyv4)) = r.DecodeString()
28235				}
28236			}
28237		case "message":
28238			if r.TryDecodeAsNil() {
28239				x.Message = ""
28240			} else {
28241				yyv6 := &x.Message
28242				yym7 := z.DecBinary()
28243				_ = yym7
28244				if false {
28245				} else {
28246					*((*string)(yyv6)) = r.DecodeString()
28247				}
28248			}
28249		default:
28250			z.DecStructFieldNotFound(-1, yys3)
28251		} // end switch yys3
28252	} // end for yyj3
28253	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
28254}
28255
28256func (x *ContainerStateWaiting) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
28257	var h codecSelfer1234
28258	z, r := codec1978.GenHelperDecoder(d)
28259	_, _, _ = h, z, r
28260	var yyj8 int
28261	var yyb8 bool
28262	var yyhl8 bool = l >= 0
28263	yyj8++
28264	if yyhl8 {
28265		yyb8 = yyj8 > l
28266	} else {
28267		yyb8 = r.CheckBreak()
28268	}
28269	if yyb8 {
28270		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
28271		return
28272	}
28273	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
28274	if r.TryDecodeAsNil() {
28275		x.Reason = ""
28276	} else {
28277		yyv9 := &x.Reason
28278		yym10 := z.DecBinary()
28279		_ = yym10
28280		if false {
28281		} else {
28282			*((*string)(yyv9)) = r.DecodeString()
28283		}
28284	}
28285	yyj8++
28286	if yyhl8 {
28287		yyb8 = yyj8 > l
28288	} else {
28289		yyb8 = r.CheckBreak()
28290	}
28291	if yyb8 {
28292		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
28293		return
28294	}
28295	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
28296	if r.TryDecodeAsNil() {
28297		x.Message = ""
28298	} else {
28299		yyv11 := &x.Message
28300		yym12 := z.DecBinary()
28301		_ = yym12
28302		if false {
28303		} else {
28304			*((*string)(yyv11)) = r.DecodeString()
28305		}
28306	}
28307	for {
28308		yyj8++
28309		if yyhl8 {
28310			yyb8 = yyj8 > l
28311		} else {
28312			yyb8 = r.CheckBreak()
28313		}
28314		if yyb8 {
28315			break
28316		}
28317		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
28318		z.DecStructFieldNotFound(yyj8-1, "")
28319	}
28320	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
28321}
28322
28323func (x *ContainerStateRunning) CodecEncodeSelf(e *codec1978.Encoder) {
28324	var h codecSelfer1234
28325	z, r := codec1978.GenHelperEncoder(e)
28326	_, _, _ = h, z, r
28327	if x == nil {
28328		r.EncodeNil()
28329	} else {
28330		yym1 := z.EncBinary()
28331		_ = yym1
28332		if false {
28333		} else if z.HasExtensions() && z.EncExt(x) {
28334		} else {
28335			yysep2 := !z.EncBinary()
28336			yy2arr2 := z.EncBasicHandle().StructToArray
28337			var yyq2 [1]bool
28338			_, _, _ = yysep2, yyq2, yy2arr2
28339			const yyr2 bool = false
28340			yyq2[0] = true
28341			var yynn2 int
28342			if yyr2 || yy2arr2 {
28343				r.EncodeArrayStart(1)
28344			} else {
28345				yynn2 = 0
28346				for _, b := range yyq2 {
28347					if b {
28348						yynn2++
28349					}
28350				}
28351				r.EncodeMapStart(yynn2)
28352				yynn2 = 0
28353			}
28354			if yyr2 || yy2arr2 {
28355				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
28356				if yyq2[0] {
28357					yy4 := &x.StartedAt
28358					yym5 := z.EncBinary()
28359					_ = yym5
28360					if false {
28361					} else if z.HasExtensions() && z.EncExt(yy4) {
28362					} else if yym5 {
28363						z.EncBinaryMarshal(yy4)
28364					} else if !yym5 && z.IsJSONHandle() {
28365						z.EncJSONMarshal(yy4)
28366					} else {
28367						z.EncFallback(yy4)
28368					}
28369				} else {
28370					r.EncodeNil()
28371				}
28372			} else {
28373				if yyq2[0] {
28374					z.EncSendContainerState(codecSelfer_containerMapKey1234)
28375					r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
28376					z.EncSendContainerState(codecSelfer_containerMapValue1234)
28377					yy6 := &x.StartedAt
28378					yym7 := z.EncBinary()
28379					_ = yym7
28380					if false {
28381					} else if z.HasExtensions() && z.EncExt(yy6) {
28382					} else if yym7 {
28383						z.EncBinaryMarshal(yy6)
28384					} else if !yym7 && z.IsJSONHandle() {
28385						z.EncJSONMarshal(yy6)
28386					} else {
28387						z.EncFallback(yy6)
28388					}
28389				}
28390			}
28391			if yyr2 || yy2arr2 {
28392				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
28393			} else {
28394				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
28395			}
28396		}
28397	}
28398}
28399
28400func (x *ContainerStateRunning) CodecDecodeSelf(d *codec1978.Decoder) {
28401	var h codecSelfer1234
28402	z, r := codec1978.GenHelperDecoder(d)
28403	_, _, _ = h, z, r
28404	yym1 := z.DecBinary()
28405	_ = yym1
28406	if false {
28407	} else if z.HasExtensions() && z.DecExt(x) {
28408	} else {
28409		yyct2 := r.ContainerType()
28410		if yyct2 == codecSelferValueTypeMap1234 {
28411			yyl2 := r.ReadMapStart()
28412			if yyl2 == 0 {
28413				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
28414			} else {
28415				x.codecDecodeSelfFromMap(yyl2, d)
28416			}
28417		} else if yyct2 == codecSelferValueTypeArray1234 {
28418			yyl2 := r.ReadArrayStart()
28419			if yyl2 == 0 {
28420				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
28421			} else {
28422				x.codecDecodeSelfFromArray(yyl2, d)
28423			}
28424		} else {
28425			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
28426		}
28427	}
28428}
28429
28430func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
28431	var h codecSelfer1234
28432	z, r := codec1978.GenHelperDecoder(d)
28433	_, _, _ = h, z, r
28434	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
28435	_ = yys3Slc
28436	var yyhl3 bool = l >= 0
28437	for yyj3 := 0; ; yyj3++ {
28438		if yyhl3 {
28439			if yyj3 >= l {
28440				break
28441			}
28442		} else {
28443			if r.CheckBreak() {
28444				break
28445			}
28446		}
28447		z.DecSendContainerState(codecSelfer_containerMapKey1234)
28448		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
28449		yys3 := string(yys3Slc)
28450		z.DecSendContainerState(codecSelfer_containerMapValue1234)
28451		switch yys3 {
28452		case "startedAt":
28453			if r.TryDecodeAsNil() {
28454				x.StartedAt = pkg2_v1.Time{}
28455			} else {
28456				yyv4 := &x.StartedAt
28457				yym5 := z.DecBinary()
28458				_ = yym5
28459				if false {
28460				} else if z.HasExtensions() && z.DecExt(yyv4) {
28461				} else if yym5 {
28462					z.DecBinaryUnmarshal(yyv4)
28463				} else if !yym5 && z.IsJSONHandle() {
28464					z.DecJSONUnmarshal(yyv4)
28465				} else {
28466					z.DecFallback(yyv4, false)
28467				}
28468			}
28469		default:
28470			z.DecStructFieldNotFound(-1, yys3)
28471		} // end switch yys3
28472	} // end for yyj3
28473	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
28474}
28475
28476func (x *ContainerStateRunning) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
28477	var h codecSelfer1234
28478	z, r := codec1978.GenHelperDecoder(d)
28479	_, _, _ = h, z, r
28480	var yyj6 int
28481	var yyb6 bool
28482	var yyhl6 bool = l >= 0
28483	yyj6++
28484	if yyhl6 {
28485		yyb6 = yyj6 > l
28486	} else {
28487		yyb6 = r.CheckBreak()
28488	}
28489	if yyb6 {
28490		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
28491		return
28492	}
28493	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
28494	if r.TryDecodeAsNil() {
28495		x.StartedAt = pkg2_v1.Time{}
28496	} else {
28497		yyv7 := &x.StartedAt
28498		yym8 := z.DecBinary()
28499		_ = yym8
28500		if false {
28501		} else if z.HasExtensions() && z.DecExt(yyv7) {
28502		} else if yym8 {
28503			z.DecBinaryUnmarshal(yyv7)
28504		} else if !yym8 && z.IsJSONHandle() {
28505			z.DecJSONUnmarshal(yyv7)
28506		} else {
28507			z.DecFallback(yyv7, false)
28508		}
28509	}
28510	for {
28511		yyj6++
28512		if yyhl6 {
28513			yyb6 = yyj6 > l
28514		} else {
28515			yyb6 = r.CheckBreak()
28516		}
28517		if yyb6 {
28518			break
28519		}
28520		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
28521		z.DecStructFieldNotFound(yyj6-1, "")
28522	}
28523	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
28524}
28525
28526func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) {
28527	var h codecSelfer1234
28528	z, r := codec1978.GenHelperEncoder(e)
28529	_, _, _ = h, z, r
28530	if x == nil {
28531		r.EncodeNil()
28532	} else {
28533		yym1 := z.EncBinary()
28534		_ = yym1
28535		if false {
28536		} else if z.HasExtensions() && z.EncExt(x) {
28537		} else {
28538			yysep2 := !z.EncBinary()
28539			yy2arr2 := z.EncBasicHandle().StructToArray
28540			var yyq2 [7]bool
28541			_, _, _ = yysep2, yyq2, yy2arr2
28542			const yyr2 bool = false
28543			yyq2[1] = x.Signal != 0
28544			yyq2[2] = x.Reason != ""
28545			yyq2[3] = x.Message != ""
28546			yyq2[4] = true
28547			yyq2[5] = true
28548			yyq2[6] = x.ContainerID != ""
28549			var yynn2 int
28550			if yyr2 || yy2arr2 {
28551				r.EncodeArrayStart(7)
28552			} else {
28553				yynn2 = 1
28554				for _, b := range yyq2 {
28555					if b {
28556						yynn2++
28557					}
28558				}
28559				r.EncodeMapStart(yynn2)
28560				yynn2 = 0
28561			}
28562			if yyr2 || yy2arr2 {
28563				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
28564				yym4 := z.EncBinary()
28565				_ = yym4
28566				if false {
28567				} else {
28568					r.EncodeInt(int64(x.ExitCode))
28569				}
28570			} else {
28571				z.EncSendContainerState(codecSelfer_containerMapKey1234)
28572				r.EncodeString(codecSelferC_UTF81234, string("exitCode"))
28573				z.EncSendContainerState(codecSelfer_containerMapValue1234)
28574				yym5 := z.EncBinary()
28575				_ = yym5
28576				if false {
28577				} else {
28578					r.EncodeInt(int64(x.ExitCode))
28579				}
28580			}
28581			if yyr2 || yy2arr2 {
28582				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
28583				if yyq2[1] {
28584					yym7 := z.EncBinary()
28585					_ = yym7
28586					if false {
28587					} else {
28588						r.EncodeInt(int64(x.Signal))
28589					}
28590				} else {
28591					r.EncodeInt(0)
28592				}
28593			} else {
28594				if yyq2[1] {
28595					z.EncSendContainerState(codecSelfer_containerMapKey1234)
28596					r.EncodeString(codecSelferC_UTF81234, string("signal"))
28597					z.EncSendContainerState(codecSelfer_containerMapValue1234)
28598					yym8 := z.EncBinary()
28599					_ = yym8
28600					if false {
28601					} else {
28602						r.EncodeInt(int64(x.Signal))
28603					}
28604				}
28605			}
28606			if yyr2 || yy2arr2 {
28607				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
28608				if yyq2[2] {
28609					yym10 := z.EncBinary()
28610					_ = yym10
28611					if false {
28612					} else {
28613						r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
28614					}
28615				} else {
28616					r.EncodeString(codecSelferC_UTF81234, "")
28617				}
28618			} else {
28619				if yyq2[2] {
28620					z.EncSendContainerState(codecSelfer_containerMapKey1234)
28621					r.EncodeString(codecSelferC_UTF81234, string("reason"))
28622					z.EncSendContainerState(codecSelfer_containerMapValue1234)
28623					yym11 := z.EncBinary()
28624					_ = yym11
28625					if false {
28626					} else {
28627						r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
28628					}
28629				}
28630			}
28631			if yyr2 || yy2arr2 {
28632				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
28633				if yyq2[3] {
28634					yym13 := z.EncBinary()
28635					_ = yym13
28636					if false {
28637					} else {
28638						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
28639					}
28640				} else {
28641					r.EncodeString(codecSelferC_UTF81234, "")
28642				}
28643			} else {
28644				if yyq2[3] {
28645					z.EncSendContainerState(codecSelfer_containerMapKey1234)
28646					r.EncodeString(codecSelferC_UTF81234, string("message"))
28647					z.EncSendContainerState(codecSelfer_containerMapValue1234)
28648					yym14 := z.EncBinary()
28649					_ = yym14
28650					if false {
28651					} else {
28652						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
28653					}
28654				}
28655			}
28656			if yyr2 || yy2arr2 {
28657				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
28658				if yyq2[4] {
28659					yy16 := &x.StartedAt
28660					yym17 := z.EncBinary()
28661					_ = yym17
28662					if false {
28663					} else if z.HasExtensions() && z.EncExt(yy16) {
28664					} else if yym17 {
28665						z.EncBinaryMarshal(yy16)
28666					} else if !yym17 && z.IsJSONHandle() {
28667						z.EncJSONMarshal(yy16)
28668					} else {
28669						z.EncFallback(yy16)
28670					}
28671				} else {
28672					r.EncodeNil()
28673				}
28674			} else {
28675				if yyq2[4] {
28676					z.EncSendContainerState(codecSelfer_containerMapKey1234)
28677					r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
28678					z.EncSendContainerState(codecSelfer_containerMapValue1234)
28679					yy18 := &x.StartedAt
28680					yym19 := z.EncBinary()
28681					_ = yym19
28682					if false {
28683					} else if z.HasExtensions() && z.EncExt(yy18) {
28684					} else if yym19 {
28685						z.EncBinaryMarshal(yy18)
28686					} else if !yym19 && z.IsJSONHandle() {
28687						z.EncJSONMarshal(yy18)
28688					} else {
28689						z.EncFallback(yy18)
28690					}
28691				}
28692			}
28693			if yyr2 || yy2arr2 {
28694				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
28695				if yyq2[5] {
28696					yy21 := &x.FinishedAt
28697					yym22 := z.EncBinary()
28698					_ = yym22
28699					if false {
28700					} else if z.HasExtensions() && z.EncExt(yy21) {
28701					} else if yym22 {
28702						z.EncBinaryMarshal(yy21)
28703					} else if !yym22 && z.IsJSONHandle() {
28704						z.EncJSONMarshal(yy21)
28705					} else {
28706						z.EncFallback(yy21)
28707					}
28708				} else {
28709					r.EncodeNil()
28710				}
28711			} else {
28712				if yyq2[5] {
28713					z.EncSendContainerState(codecSelfer_containerMapKey1234)
28714					r.EncodeString(codecSelferC_UTF81234, string("finishedAt"))
28715					z.EncSendContainerState(codecSelfer_containerMapValue1234)
28716					yy23 := &x.FinishedAt
28717					yym24 := z.EncBinary()
28718					_ = yym24
28719					if false {
28720					} else if z.HasExtensions() && z.EncExt(yy23) {
28721					} else if yym24 {
28722						z.EncBinaryMarshal(yy23)
28723					} else if !yym24 && z.IsJSONHandle() {
28724						z.EncJSONMarshal(yy23)
28725					} else {
28726						z.EncFallback(yy23)
28727					}
28728				}
28729			}
28730			if yyr2 || yy2arr2 {
28731				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
28732				if yyq2[6] {
28733					yym26 := z.EncBinary()
28734					_ = yym26
28735					if false {
28736					} else {
28737						r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
28738					}
28739				} else {
28740					r.EncodeString(codecSelferC_UTF81234, "")
28741				}
28742			} else {
28743				if yyq2[6] {
28744					z.EncSendContainerState(codecSelfer_containerMapKey1234)
28745					r.EncodeString(codecSelferC_UTF81234, string("containerID"))
28746					z.EncSendContainerState(codecSelfer_containerMapValue1234)
28747					yym27 := z.EncBinary()
28748					_ = yym27
28749					if false {
28750					} else {
28751						r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
28752					}
28753				}
28754			}
28755			if yyr2 || yy2arr2 {
28756				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
28757			} else {
28758				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
28759			}
28760		}
28761	}
28762}
28763
28764func (x *ContainerStateTerminated) CodecDecodeSelf(d *codec1978.Decoder) {
28765	var h codecSelfer1234
28766	z, r := codec1978.GenHelperDecoder(d)
28767	_, _, _ = h, z, r
28768	yym1 := z.DecBinary()
28769	_ = yym1
28770	if false {
28771	} else if z.HasExtensions() && z.DecExt(x) {
28772	} else {
28773		yyct2 := r.ContainerType()
28774		if yyct2 == codecSelferValueTypeMap1234 {
28775			yyl2 := r.ReadMapStart()
28776			if yyl2 == 0 {
28777				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
28778			} else {
28779				x.codecDecodeSelfFromMap(yyl2, d)
28780			}
28781		} else if yyct2 == codecSelferValueTypeArray1234 {
28782			yyl2 := r.ReadArrayStart()
28783			if yyl2 == 0 {
28784				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
28785			} else {
28786				x.codecDecodeSelfFromArray(yyl2, d)
28787			}
28788		} else {
28789			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
28790		}
28791	}
28792}
28793
28794func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
28795	var h codecSelfer1234
28796	z, r := codec1978.GenHelperDecoder(d)
28797	_, _, _ = h, z, r
28798	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
28799	_ = yys3Slc
28800	var yyhl3 bool = l >= 0
28801	for yyj3 := 0; ; yyj3++ {
28802		if yyhl3 {
28803			if yyj3 >= l {
28804				break
28805			}
28806		} else {
28807			if r.CheckBreak() {
28808				break
28809			}
28810		}
28811		z.DecSendContainerState(codecSelfer_containerMapKey1234)
28812		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
28813		yys3 := string(yys3Slc)
28814		z.DecSendContainerState(codecSelfer_containerMapValue1234)
28815		switch yys3 {
28816		case "exitCode":
28817			if r.TryDecodeAsNil() {
28818				x.ExitCode = 0
28819			} else {
28820				yyv4 := &x.ExitCode
28821				yym5 := z.DecBinary()
28822				_ = yym5
28823				if false {
28824				} else {
28825					*((*int32)(yyv4)) = int32(r.DecodeInt(32))
28826				}
28827			}
28828		case "signal":
28829			if r.TryDecodeAsNil() {
28830				x.Signal = 0
28831			} else {
28832				yyv6 := &x.Signal
28833				yym7 := z.DecBinary()
28834				_ = yym7
28835				if false {
28836				} else {
28837					*((*int32)(yyv6)) = int32(r.DecodeInt(32))
28838				}
28839			}
28840		case "reason":
28841			if r.TryDecodeAsNil() {
28842				x.Reason = ""
28843			} else {
28844				yyv8 := &x.Reason
28845				yym9 := z.DecBinary()
28846				_ = yym9
28847				if false {
28848				} else {
28849					*((*string)(yyv8)) = r.DecodeString()
28850				}
28851			}
28852		case "message":
28853			if r.TryDecodeAsNil() {
28854				x.Message = ""
28855			} else {
28856				yyv10 := &x.Message
28857				yym11 := z.DecBinary()
28858				_ = yym11
28859				if false {
28860				} else {
28861					*((*string)(yyv10)) = r.DecodeString()
28862				}
28863			}
28864		case "startedAt":
28865			if r.TryDecodeAsNil() {
28866				x.StartedAt = pkg2_v1.Time{}
28867			} else {
28868				yyv12 := &x.StartedAt
28869				yym13 := z.DecBinary()
28870				_ = yym13
28871				if false {
28872				} else if z.HasExtensions() && z.DecExt(yyv12) {
28873				} else if yym13 {
28874					z.DecBinaryUnmarshal(yyv12)
28875				} else if !yym13 && z.IsJSONHandle() {
28876					z.DecJSONUnmarshal(yyv12)
28877				} else {
28878					z.DecFallback(yyv12, false)
28879				}
28880			}
28881		case "finishedAt":
28882			if r.TryDecodeAsNil() {
28883				x.FinishedAt = pkg2_v1.Time{}
28884			} else {
28885				yyv14 := &x.FinishedAt
28886				yym15 := z.DecBinary()
28887				_ = yym15
28888				if false {
28889				} else if z.HasExtensions() && z.DecExt(yyv14) {
28890				} else if yym15 {
28891					z.DecBinaryUnmarshal(yyv14)
28892				} else if !yym15 && z.IsJSONHandle() {
28893					z.DecJSONUnmarshal(yyv14)
28894				} else {
28895					z.DecFallback(yyv14, false)
28896				}
28897			}
28898		case "containerID":
28899			if r.TryDecodeAsNil() {
28900				x.ContainerID = ""
28901			} else {
28902				yyv16 := &x.ContainerID
28903				yym17 := z.DecBinary()
28904				_ = yym17
28905				if false {
28906				} else {
28907					*((*string)(yyv16)) = r.DecodeString()
28908				}
28909			}
28910		default:
28911			z.DecStructFieldNotFound(-1, yys3)
28912		} // end switch yys3
28913	} // end for yyj3
28914	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
28915}
28916
28917func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
28918	var h codecSelfer1234
28919	z, r := codec1978.GenHelperDecoder(d)
28920	_, _, _ = h, z, r
28921	var yyj18 int
28922	var yyb18 bool
28923	var yyhl18 bool = l >= 0
28924	yyj18++
28925	if yyhl18 {
28926		yyb18 = yyj18 > l
28927	} else {
28928		yyb18 = r.CheckBreak()
28929	}
28930	if yyb18 {
28931		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
28932		return
28933	}
28934	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
28935	if r.TryDecodeAsNil() {
28936		x.ExitCode = 0
28937	} else {
28938		yyv19 := &x.ExitCode
28939		yym20 := z.DecBinary()
28940		_ = yym20
28941		if false {
28942		} else {
28943			*((*int32)(yyv19)) = int32(r.DecodeInt(32))
28944		}
28945	}
28946	yyj18++
28947	if yyhl18 {
28948		yyb18 = yyj18 > l
28949	} else {
28950		yyb18 = r.CheckBreak()
28951	}
28952	if yyb18 {
28953		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
28954		return
28955	}
28956	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
28957	if r.TryDecodeAsNil() {
28958		x.Signal = 0
28959	} else {
28960		yyv21 := &x.Signal
28961		yym22 := z.DecBinary()
28962		_ = yym22
28963		if false {
28964		} else {
28965			*((*int32)(yyv21)) = int32(r.DecodeInt(32))
28966		}
28967	}
28968	yyj18++
28969	if yyhl18 {
28970		yyb18 = yyj18 > l
28971	} else {
28972		yyb18 = r.CheckBreak()
28973	}
28974	if yyb18 {
28975		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
28976		return
28977	}
28978	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
28979	if r.TryDecodeAsNil() {
28980		x.Reason = ""
28981	} else {
28982		yyv23 := &x.Reason
28983		yym24 := z.DecBinary()
28984		_ = yym24
28985		if false {
28986		} else {
28987			*((*string)(yyv23)) = r.DecodeString()
28988		}
28989	}
28990	yyj18++
28991	if yyhl18 {
28992		yyb18 = yyj18 > l
28993	} else {
28994		yyb18 = r.CheckBreak()
28995	}
28996	if yyb18 {
28997		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
28998		return
28999	}
29000	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
29001	if r.TryDecodeAsNil() {
29002		x.Message = ""
29003	} else {
29004		yyv25 := &x.Message
29005		yym26 := z.DecBinary()
29006		_ = yym26
29007		if false {
29008		} else {
29009			*((*string)(yyv25)) = r.DecodeString()
29010		}
29011	}
29012	yyj18++
29013	if yyhl18 {
29014		yyb18 = yyj18 > l
29015	} else {
29016		yyb18 = r.CheckBreak()
29017	}
29018	if yyb18 {
29019		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29020		return
29021	}
29022	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
29023	if r.TryDecodeAsNil() {
29024		x.StartedAt = pkg2_v1.Time{}
29025	} else {
29026		yyv27 := &x.StartedAt
29027		yym28 := z.DecBinary()
29028		_ = yym28
29029		if false {
29030		} else if z.HasExtensions() && z.DecExt(yyv27) {
29031		} else if yym28 {
29032			z.DecBinaryUnmarshal(yyv27)
29033		} else if !yym28 && z.IsJSONHandle() {
29034			z.DecJSONUnmarshal(yyv27)
29035		} else {
29036			z.DecFallback(yyv27, false)
29037		}
29038	}
29039	yyj18++
29040	if yyhl18 {
29041		yyb18 = yyj18 > l
29042	} else {
29043		yyb18 = r.CheckBreak()
29044	}
29045	if yyb18 {
29046		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29047		return
29048	}
29049	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
29050	if r.TryDecodeAsNil() {
29051		x.FinishedAt = pkg2_v1.Time{}
29052	} else {
29053		yyv29 := &x.FinishedAt
29054		yym30 := z.DecBinary()
29055		_ = yym30
29056		if false {
29057		} else if z.HasExtensions() && z.DecExt(yyv29) {
29058		} else if yym30 {
29059			z.DecBinaryUnmarshal(yyv29)
29060		} else if !yym30 && z.IsJSONHandle() {
29061			z.DecJSONUnmarshal(yyv29)
29062		} else {
29063			z.DecFallback(yyv29, false)
29064		}
29065	}
29066	yyj18++
29067	if yyhl18 {
29068		yyb18 = yyj18 > l
29069	} else {
29070		yyb18 = r.CheckBreak()
29071	}
29072	if yyb18 {
29073		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29074		return
29075	}
29076	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
29077	if r.TryDecodeAsNil() {
29078		x.ContainerID = ""
29079	} else {
29080		yyv31 := &x.ContainerID
29081		yym32 := z.DecBinary()
29082		_ = yym32
29083		if false {
29084		} else {
29085			*((*string)(yyv31)) = r.DecodeString()
29086		}
29087	}
29088	for {
29089		yyj18++
29090		if yyhl18 {
29091			yyb18 = yyj18 > l
29092		} else {
29093			yyb18 = r.CheckBreak()
29094		}
29095		if yyb18 {
29096			break
29097		}
29098		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
29099		z.DecStructFieldNotFound(yyj18-1, "")
29100	}
29101	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29102}
29103
29104func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) {
29105	var h codecSelfer1234
29106	z, r := codec1978.GenHelperEncoder(e)
29107	_, _, _ = h, z, r
29108	if x == nil {
29109		r.EncodeNil()
29110	} else {
29111		yym1 := z.EncBinary()
29112		_ = yym1
29113		if false {
29114		} else if z.HasExtensions() && z.EncExt(x) {
29115		} else {
29116			yysep2 := !z.EncBinary()
29117			yy2arr2 := z.EncBasicHandle().StructToArray
29118			var yyq2 [3]bool
29119			_, _, _ = yysep2, yyq2, yy2arr2
29120			const yyr2 bool = false
29121			yyq2[0] = x.Waiting != nil
29122			yyq2[1] = x.Running != nil
29123			yyq2[2] = x.Terminated != nil
29124			var yynn2 int
29125			if yyr2 || yy2arr2 {
29126				r.EncodeArrayStart(3)
29127			} else {
29128				yynn2 = 0
29129				for _, b := range yyq2 {
29130					if b {
29131						yynn2++
29132					}
29133				}
29134				r.EncodeMapStart(yynn2)
29135				yynn2 = 0
29136			}
29137			if yyr2 || yy2arr2 {
29138				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
29139				if yyq2[0] {
29140					if x.Waiting == nil {
29141						r.EncodeNil()
29142					} else {
29143						x.Waiting.CodecEncodeSelf(e)
29144					}
29145				} else {
29146					r.EncodeNil()
29147				}
29148			} else {
29149				if yyq2[0] {
29150					z.EncSendContainerState(codecSelfer_containerMapKey1234)
29151					r.EncodeString(codecSelferC_UTF81234, string("waiting"))
29152					z.EncSendContainerState(codecSelfer_containerMapValue1234)
29153					if x.Waiting == nil {
29154						r.EncodeNil()
29155					} else {
29156						x.Waiting.CodecEncodeSelf(e)
29157					}
29158				}
29159			}
29160			if yyr2 || yy2arr2 {
29161				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
29162				if yyq2[1] {
29163					if x.Running == nil {
29164						r.EncodeNil()
29165					} else {
29166						x.Running.CodecEncodeSelf(e)
29167					}
29168				} else {
29169					r.EncodeNil()
29170				}
29171			} else {
29172				if yyq2[1] {
29173					z.EncSendContainerState(codecSelfer_containerMapKey1234)
29174					r.EncodeString(codecSelferC_UTF81234, string("running"))
29175					z.EncSendContainerState(codecSelfer_containerMapValue1234)
29176					if x.Running == nil {
29177						r.EncodeNil()
29178					} else {
29179						x.Running.CodecEncodeSelf(e)
29180					}
29181				}
29182			}
29183			if yyr2 || yy2arr2 {
29184				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
29185				if yyq2[2] {
29186					if x.Terminated == nil {
29187						r.EncodeNil()
29188					} else {
29189						x.Terminated.CodecEncodeSelf(e)
29190					}
29191				} else {
29192					r.EncodeNil()
29193				}
29194			} else {
29195				if yyq2[2] {
29196					z.EncSendContainerState(codecSelfer_containerMapKey1234)
29197					r.EncodeString(codecSelferC_UTF81234, string("terminated"))
29198					z.EncSendContainerState(codecSelfer_containerMapValue1234)
29199					if x.Terminated == nil {
29200						r.EncodeNil()
29201					} else {
29202						x.Terminated.CodecEncodeSelf(e)
29203					}
29204				}
29205			}
29206			if yyr2 || yy2arr2 {
29207				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
29208			} else {
29209				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
29210			}
29211		}
29212	}
29213}
29214
29215func (x *ContainerState) CodecDecodeSelf(d *codec1978.Decoder) {
29216	var h codecSelfer1234
29217	z, r := codec1978.GenHelperDecoder(d)
29218	_, _, _ = h, z, r
29219	yym1 := z.DecBinary()
29220	_ = yym1
29221	if false {
29222	} else if z.HasExtensions() && z.DecExt(x) {
29223	} else {
29224		yyct2 := r.ContainerType()
29225		if yyct2 == codecSelferValueTypeMap1234 {
29226			yyl2 := r.ReadMapStart()
29227			if yyl2 == 0 {
29228				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
29229			} else {
29230				x.codecDecodeSelfFromMap(yyl2, d)
29231			}
29232		} else if yyct2 == codecSelferValueTypeArray1234 {
29233			yyl2 := r.ReadArrayStart()
29234			if yyl2 == 0 {
29235				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29236			} else {
29237				x.codecDecodeSelfFromArray(yyl2, d)
29238			}
29239		} else {
29240			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
29241		}
29242	}
29243}
29244
29245func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
29246	var h codecSelfer1234
29247	z, r := codec1978.GenHelperDecoder(d)
29248	_, _, _ = h, z, r
29249	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
29250	_ = yys3Slc
29251	var yyhl3 bool = l >= 0
29252	for yyj3 := 0; ; yyj3++ {
29253		if yyhl3 {
29254			if yyj3 >= l {
29255				break
29256			}
29257		} else {
29258			if r.CheckBreak() {
29259				break
29260			}
29261		}
29262		z.DecSendContainerState(codecSelfer_containerMapKey1234)
29263		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
29264		yys3 := string(yys3Slc)
29265		z.DecSendContainerState(codecSelfer_containerMapValue1234)
29266		switch yys3 {
29267		case "waiting":
29268			if r.TryDecodeAsNil() {
29269				if x.Waiting != nil {
29270					x.Waiting = nil
29271				}
29272			} else {
29273				if x.Waiting == nil {
29274					x.Waiting = new(ContainerStateWaiting)
29275				}
29276				x.Waiting.CodecDecodeSelf(d)
29277			}
29278		case "running":
29279			if r.TryDecodeAsNil() {
29280				if x.Running != nil {
29281					x.Running = nil
29282				}
29283			} else {
29284				if x.Running == nil {
29285					x.Running = new(ContainerStateRunning)
29286				}
29287				x.Running.CodecDecodeSelf(d)
29288			}
29289		case "terminated":
29290			if r.TryDecodeAsNil() {
29291				if x.Terminated != nil {
29292					x.Terminated = nil
29293				}
29294			} else {
29295				if x.Terminated == nil {
29296					x.Terminated = new(ContainerStateTerminated)
29297				}
29298				x.Terminated.CodecDecodeSelf(d)
29299			}
29300		default:
29301			z.DecStructFieldNotFound(-1, yys3)
29302		} // end switch yys3
29303	} // end for yyj3
29304	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
29305}
29306
29307func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
29308	var h codecSelfer1234
29309	z, r := codec1978.GenHelperDecoder(d)
29310	_, _, _ = h, z, r
29311	var yyj7 int
29312	var yyb7 bool
29313	var yyhl7 bool = l >= 0
29314	yyj7++
29315	if yyhl7 {
29316		yyb7 = yyj7 > l
29317	} else {
29318		yyb7 = r.CheckBreak()
29319	}
29320	if yyb7 {
29321		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29322		return
29323	}
29324	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
29325	if r.TryDecodeAsNil() {
29326		if x.Waiting != nil {
29327			x.Waiting = nil
29328		}
29329	} else {
29330		if x.Waiting == nil {
29331			x.Waiting = new(ContainerStateWaiting)
29332		}
29333		x.Waiting.CodecDecodeSelf(d)
29334	}
29335	yyj7++
29336	if yyhl7 {
29337		yyb7 = yyj7 > l
29338	} else {
29339		yyb7 = r.CheckBreak()
29340	}
29341	if yyb7 {
29342		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29343		return
29344	}
29345	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
29346	if r.TryDecodeAsNil() {
29347		if x.Running != nil {
29348			x.Running = nil
29349		}
29350	} else {
29351		if x.Running == nil {
29352			x.Running = new(ContainerStateRunning)
29353		}
29354		x.Running.CodecDecodeSelf(d)
29355	}
29356	yyj7++
29357	if yyhl7 {
29358		yyb7 = yyj7 > l
29359	} else {
29360		yyb7 = r.CheckBreak()
29361	}
29362	if yyb7 {
29363		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29364		return
29365	}
29366	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
29367	if r.TryDecodeAsNil() {
29368		if x.Terminated != nil {
29369			x.Terminated = nil
29370		}
29371	} else {
29372		if x.Terminated == nil {
29373			x.Terminated = new(ContainerStateTerminated)
29374		}
29375		x.Terminated.CodecDecodeSelf(d)
29376	}
29377	for {
29378		yyj7++
29379		if yyhl7 {
29380			yyb7 = yyj7 > l
29381		} else {
29382			yyb7 = r.CheckBreak()
29383		}
29384		if yyb7 {
29385			break
29386		}
29387		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
29388		z.DecStructFieldNotFound(yyj7-1, "")
29389	}
29390	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29391}
29392
29393func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) {
29394	var h codecSelfer1234
29395	z, r := codec1978.GenHelperEncoder(e)
29396	_, _, _ = h, z, r
29397	if x == nil {
29398		r.EncodeNil()
29399	} else {
29400		yym1 := z.EncBinary()
29401		_ = yym1
29402		if false {
29403		} else if z.HasExtensions() && z.EncExt(x) {
29404		} else {
29405			yysep2 := !z.EncBinary()
29406			yy2arr2 := z.EncBasicHandle().StructToArray
29407			var yyq2 [8]bool
29408			_, _, _ = yysep2, yyq2, yy2arr2
29409			const yyr2 bool = false
29410			yyq2[1] = true
29411			yyq2[2] = true
29412			yyq2[7] = x.ContainerID != ""
29413			var yynn2 int
29414			if yyr2 || yy2arr2 {
29415				r.EncodeArrayStart(8)
29416			} else {
29417				yynn2 = 5
29418				for _, b := range yyq2 {
29419					if b {
29420						yynn2++
29421					}
29422				}
29423				r.EncodeMapStart(yynn2)
29424				yynn2 = 0
29425			}
29426			if yyr2 || yy2arr2 {
29427				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
29428				yym4 := z.EncBinary()
29429				_ = yym4
29430				if false {
29431				} else {
29432					r.EncodeString(codecSelferC_UTF81234, string(x.Name))
29433				}
29434			} else {
29435				z.EncSendContainerState(codecSelfer_containerMapKey1234)
29436				r.EncodeString(codecSelferC_UTF81234, string("name"))
29437				z.EncSendContainerState(codecSelfer_containerMapValue1234)
29438				yym5 := z.EncBinary()
29439				_ = yym5
29440				if false {
29441				} else {
29442					r.EncodeString(codecSelferC_UTF81234, string(x.Name))
29443				}
29444			}
29445			if yyr2 || yy2arr2 {
29446				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
29447				if yyq2[1] {
29448					yy7 := &x.State
29449					yy7.CodecEncodeSelf(e)
29450				} else {
29451					r.EncodeNil()
29452				}
29453			} else {
29454				if yyq2[1] {
29455					z.EncSendContainerState(codecSelfer_containerMapKey1234)
29456					r.EncodeString(codecSelferC_UTF81234, string("state"))
29457					z.EncSendContainerState(codecSelfer_containerMapValue1234)
29458					yy9 := &x.State
29459					yy9.CodecEncodeSelf(e)
29460				}
29461			}
29462			if yyr2 || yy2arr2 {
29463				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
29464				if yyq2[2] {
29465					yy12 := &x.LastTerminationState
29466					yy12.CodecEncodeSelf(e)
29467				} else {
29468					r.EncodeNil()
29469				}
29470			} else {
29471				if yyq2[2] {
29472					z.EncSendContainerState(codecSelfer_containerMapKey1234)
29473					r.EncodeString(codecSelferC_UTF81234, string("lastState"))
29474					z.EncSendContainerState(codecSelfer_containerMapValue1234)
29475					yy14 := &x.LastTerminationState
29476					yy14.CodecEncodeSelf(e)
29477				}
29478			}
29479			if yyr2 || yy2arr2 {
29480				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
29481				yym17 := z.EncBinary()
29482				_ = yym17
29483				if false {
29484				} else {
29485					r.EncodeBool(bool(x.Ready))
29486				}
29487			} else {
29488				z.EncSendContainerState(codecSelfer_containerMapKey1234)
29489				r.EncodeString(codecSelferC_UTF81234, string("ready"))
29490				z.EncSendContainerState(codecSelfer_containerMapValue1234)
29491				yym18 := z.EncBinary()
29492				_ = yym18
29493				if false {
29494				} else {
29495					r.EncodeBool(bool(x.Ready))
29496				}
29497			}
29498			if yyr2 || yy2arr2 {
29499				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
29500				yym20 := z.EncBinary()
29501				_ = yym20
29502				if false {
29503				} else {
29504					r.EncodeInt(int64(x.RestartCount))
29505				}
29506			} else {
29507				z.EncSendContainerState(codecSelfer_containerMapKey1234)
29508				r.EncodeString(codecSelferC_UTF81234, string("restartCount"))
29509				z.EncSendContainerState(codecSelfer_containerMapValue1234)
29510				yym21 := z.EncBinary()
29511				_ = yym21
29512				if false {
29513				} else {
29514					r.EncodeInt(int64(x.RestartCount))
29515				}
29516			}
29517			if yyr2 || yy2arr2 {
29518				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
29519				yym23 := z.EncBinary()
29520				_ = yym23
29521				if false {
29522				} else {
29523					r.EncodeString(codecSelferC_UTF81234, string(x.Image))
29524				}
29525			} else {
29526				z.EncSendContainerState(codecSelfer_containerMapKey1234)
29527				r.EncodeString(codecSelferC_UTF81234, string("image"))
29528				z.EncSendContainerState(codecSelfer_containerMapValue1234)
29529				yym24 := z.EncBinary()
29530				_ = yym24
29531				if false {
29532				} else {
29533					r.EncodeString(codecSelferC_UTF81234, string(x.Image))
29534				}
29535			}
29536			if yyr2 || yy2arr2 {
29537				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
29538				yym26 := z.EncBinary()
29539				_ = yym26
29540				if false {
29541				} else {
29542					r.EncodeString(codecSelferC_UTF81234, string(x.ImageID))
29543				}
29544			} else {
29545				z.EncSendContainerState(codecSelfer_containerMapKey1234)
29546				r.EncodeString(codecSelferC_UTF81234, string("imageID"))
29547				z.EncSendContainerState(codecSelfer_containerMapValue1234)
29548				yym27 := z.EncBinary()
29549				_ = yym27
29550				if false {
29551				} else {
29552					r.EncodeString(codecSelferC_UTF81234, string(x.ImageID))
29553				}
29554			}
29555			if yyr2 || yy2arr2 {
29556				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
29557				if yyq2[7] {
29558					yym29 := z.EncBinary()
29559					_ = yym29
29560					if false {
29561					} else {
29562						r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
29563					}
29564				} else {
29565					r.EncodeString(codecSelferC_UTF81234, "")
29566				}
29567			} else {
29568				if yyq2[7] {
29569					z.EncSendContainerState(codecSelfer_containerMapKey1234)
29570					r.EncodeString(codecSelferC_UTF81234, string("containerID"))
29571					z.EncSendContainerState(codecSelfer_containerMapValue1234)
29572					yym30 := z.EncBinary()
29573					_ = yym30
29574					if false {
29575					} else {
29576						r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
29577					}
29578				}
29579			}
29580			if yyr2 || yy2arr2 {
29581				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
29582			} else {
29583				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
29584			}
29585		}
29586	}
29587}
29588
29589func (x *ContainerStatus) CodecDecodeSelf(d *codec1978.Decoder) {
29590	var h codecSelfer1234
29591	z, r := codec1978.GenHelperDecoder(d)
29592	_, _, _ = h, z, r
29593	yym1 := z.DecBinary()
29594	_ = yym1
29595	if false {
29596	} else if z.HasExtensions() && z.DecExt(x) {
29597	} else {
29598		yyct2 := r.ContainerType()
29599		if yyct2 == codecSelferValueTypeMap1234 {
29600			yyl2 := r.ReadMapStart()
29601			if yyl2 == 0 {
29602				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
29603			} else {
29604				x.codecDecodeSelfFromMap(yyl2, d)
29605			}
29606		} else if yyct2 == codecSelferValueTypeArray1234 {
29607			yyl2 := r.ReadArrayStart()
29608			if yyl2 == 0 {
29609				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29610			} else {
29611				x.codecDecodeSelfFromArray(yyl2, d)
29612			}
29613		} else {
29614			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
29615		}
29616	}
29617}
29618
29619func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
29620	var h codecSelfer1234
29621	z, r := codec1978.GenHelperDecoder(d)
29622	_, _, _ = h, z, r
29623	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
29624	_ = yys3Slc
29625	var yyhl3 bool = l >= 0
29626	for yyj3 := 0; ; yyj3++ {
29627		if yyhl3 {
29628			if yyj3 >= l {
29629				break
29630			}
29631		} else {
29632			if r.CheckBreak() {
29633				break
29634			}
29635		}
29636		z.DecSendContainerState(codecSelfer_containerMapKey1234)
29637		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
29638		yys3 := string(yys3Slc)
29639		z.DecSendContainerState(codecSelfer_containerMapValue1234)
29640		switch yys3 {
29641		case "name":
29642			if r.TryDecodeAsNil() {
29643				x.Name = ""
29644			} else {
29645				yyv4 := &x.Name
29646				yym5 := z.DecBinary()
29647				_ = yym5
29648				if false {
29649				} else {
29650					*((*string)(yyv4)) = r.DecodeString()
29651				}
29652			}
29653		case "state":
29654			if r.TryDecodeAsNil() {
29655				x.State = ContainerState{}
29656			} else {
29657				yyv6 := &x.State
29658				yyv6.CodecDecodeSelf(d)
29659			}
29660		case "lastState":
29661			if r.TryDecodeAsNil() {
29662				x.LastTerminationState = ContainerState{}
29663			} else {
29664				yyv7 := &x.LastTerminationState
29665				yyv7.CodecDecodeSelf(d)
29666			}
29667		case "ready":
29668			if r.TryDecodeAsNil() {
29669				x.Ready = false
29670			} else {
29671				yyv8 := &x.Ready
29672				yym9 := z.DecBinary()
29673				_ = yym9
29674				if false {
29675				} else {
29676					*((*bool)(yyv8)) = r.DecodeBool()
29677				}
29678			}
29679		case "restartCount":
29680			if r.TryDecodeAsNil() {
29681				x.RestartCount = 0
29682			} else {
29683				yyv10 := &x.RestartCount
29684				yym11 := z.DecBinary()
29685				_ = yym11
29686				if false {
29687				} else {
29688					*((*int32)(yyv10)) = int32(r.DecodeInt(32))
29689				}
29690			}
29691		case "image":
29692			if r.TryDecodeAsNil() {
29693				x.Image = ""
29694			} else {
29695				yyv12 := &x.Image
29696				yym13 := z.DecBinary()
29697				_ = yym13
29698				if false {
29699				} else {
29700					*((*string)(yyv12)) = r.DecodeString()
29701				}
29702			}
29703		case "imageID":
29704			if r.TryDecodeAsNil() {
29705				x.ImageID = ""
29706			} else {
29707				yyv14 := &x.ImageID
29708				yym15 := z.DecBinary()
29709				_ = yym15
29710				if false {
29711				} else {
29712					*((*string)(yyv14)) = r.DecodeString()
29713				}
29714			}
29715		case "containerID":
29716			if r.TryDecodeAsNil() {
29717				x.ContainerID = ""
29718			} else {
29719				yyv16 := &x.ContainerID
29720				yym17 := z.DecBinary()
29721				_ = yym17
29722				if false {
29723				} else {
29724					*((*string)(yyv16)) = r.DecodeString()
29725				}
29726			}
29727		default:
29728			z.DecStructFieldNotFound(-1, yys3)
29729		} // end switch yys3
29730	} // end for yyj3
29731	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
29732}
29733
29734func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
29735	var h codecSelfer1234
29736	z, r := codec1978.GenHelperDecoder(d)
29737	_, _, _ = h, z, r
29738	var yyj18 int
29739	var yyb18 bool
29740	var yyhl18 bool = l >= 0
29741	yyj18++
29742	if yyhl18 {
29743		yyb18 = yyj18 > l
29744	} else {
29745		yyb18 = r.CheckBreak()
29746	}
29747	if yyb18 {
29748		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29749		return
29750	}
29751	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
29752	if r.TryDecodeAsNil() {
29753		x.Name = ""
29754	} else {
29755		yyv19 := &x.Name
29756		yym20 := z.DecBinary()
29757		_ = yym20
29758		if false {
29759		} else {
29760			*((*string)(yyv19)) = r.DecodeString()
29761		}
29762	}
29763	yyj18++
29764	if yyhl18 {
29765		yyb18 = yyj18 > l
29766	} else {
29767		yyb18 = r.CheckBreak()
29768	}
29769	if yyb18 {
29770		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29771		return
29772	}
29773	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
29774	if r.TryDecodeAsNil() {
29775		x.State = ContainerState{}
29776	} else {
29777		yyv21 := &x.State
29778		yyv21.CodecDecodeSelf(d)
29779	}
29780	yyj18++
29781	if yyhl18 {
29782		yyb18 = yyj18 > l
29783	} else {
29784		yyb18 = r.CheckBreak()
29785	}
29786	if yyb18 {
29787		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29788		return
29789	}
29790	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
29791	if r.TryDecodeAsNil() {
29792		x.LastTerminationState = ContainerState{}
29793	} else {
29794		yyv22 := &x.LastTerminationState
29795		yyv22.CodecDecodeSelf(d)
29796	}
29797	yyj18++
29798	if yyhl18 {
29799		yyb18 = yyj18 > l
29800	} else {
29801		yyb18 = r.CheckBreak()
29802	}
29803	if yyb18 {
29804		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29805		return
29806	}
29807	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
29808	if r.TryDecodeAsNil() {
29809		x.Ready = false
29810	} else {
29811		yyv23 := &x.Ready
29812		yym24 := z.DecBinary()
29813		_ = yym24
29814		if false {
29815		} else {
29816			*((*bool)(yyv23)) = r.DecodeBool()
29817		}
29818	}
29819	yyj18++
29820	if yyhl18 {
29821		yyb18 = yyj18 > l
29822	} else {
29823		yyb18 = r.CheckBreak()
29824	}
29825	if yyb18 {
29826		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29827		return
29828	}
29829	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
29830	if r.TryDecodeAsNil() {
29831		x.RestartCount = 0
29832	} else {
29833		yyv25 := &x.RestartCount
29834		yym26 := z.DecBinary()
29835		_ = yym26
29836		if false {
29837		} else {
29838			*((*int32)(yyv25)) = int32(r.DecodeInt(32))
29839		}
29840	}
29841	yyj18++
29842	if yyhl18 {
29843		yyb18 = yyj18 > l
29844	} else {
29845		yyb18 = r.CheckBreak()
29846	}
29847	if yyb18 {
29848		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29849		return
29850	}
29851	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
29852	if r.TryDecodeAsNil() {
29853		x.Image = ""
29854	} else {
29855		yyv27 := &x.Image
29856		yym28 := z.DecBinary()
29857		_ = yym28
29858		if false {
29859		} else {
29860			*((*string)(yyv27)) = r.DecodeString()
29861		}
29862	}
29863	yyj18++
29864	if yyhl18 {
29865		yyb18 = yyj18 > l
29866	} else {
29867		yyb18 = r.CheckBreak()
29868	}
29869	if yyb18 {
29870		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29871		return
29872	}
29873	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
29874	if r.TryDecodeAsNil() {
29875		x.ImageID = ""
29876	} else {
29877		yyv29 := &x.ImageID
29878		yym30 := z.DecBinary()
29879		_ = yym30
29880		if false {
29881		} else {
29882			*((*string)(yyv29)) = r.DecodeString()
29883		}
29884	}
29885	yyj18++
29886	if yyhl18 {
29887		yyb18 = yyj18 > l
29888	} else {
29889		yyb18 = r.CheckBreak()
29890	}
29891	if yyb18 {
29892		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29893		return
29894	}
29895	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
29896	if r.TryDecodeAsNil() {
29897		x.ContainerID = ""
29898	} else {
29899		yyv31 := &x.ContainerID
29900		yym32 := z.DecBinary()
29901		_ = yym32
29902		if false {
29903		} else {
29904			*((*string)(yyv31)) = r.DecodeString()
29905		}
29906	}
29907	for {
29908		yyj18++
29909		if yyhl18 {
29910			yyb18 = yyj18 > l
29911		} else {
29912			yyb18 = r.CheckBreak()
29913		}
29914		if yyb18 {
29915			break
29916		}
29917		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
29918		z.DecStructFieldNotFound(yyj18-1, "")
29919	}
29920	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
29921}
29922
29923func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) {
29924	var h codecSelfer1234
29925	z, r := codec1978.GenHelperEncoder(e)
29926	_, _, _ = h, z, r
29927	yym1 := z.EncBinary()
29928	_ = yym1
29929	if false {
29930	} else if z.HasExtensions() && z.EncExt(x) {
29931	} else {
29932		r.EncodeString(codecSelferC_UTF81234, string(x))
29933	}
29934}
29935
29936func (x *PodPhase) CodecDecodeSelf(d *codec1978.Decoder) {
29937	var h codecSelfer1234
29938	z, r := codec1978.GenHelperDecoder(d)
29939	_, _, _ = h, z, r
29940	yym1 := z.DecBinary()
29941	_ = yym1
29942	if false {
29943	} else if z.HasExtensions() && z.DecExt(x) {
29944	} else {
29945		*((*string)(x)) = r.DecodeString()
29946	}
29947}
29948
29949func (x PodConditionType) CodecEncodeSelf(e *codec1978.Encoder) {
29950	var h codecSelfer1234
29951	z, r := codec1978.GenHelperEncoder(e)
29952	_, _, _ = h, z, r
29953	yym1 := z.EncBinary()
29954	_ = yym1
29955	if false {
29956	} else if z.HasExtensions() && z.EncExt(x) {
29957	} else {
29958		r.EncodeString(codecSelferC_UTF81234, string(x))
29959	}
29960}
29961
29962func (x *PodConditionType) CodecDecodeSelf(d *codec1978.Decoder) {
29963	var h codecSelfer1234
29964	z, r := codec1978.GenHelperDecoder(d)
29965	_, _, _ = h, z, r
29966	yym1 := z.DecBinary()
29967	_ = yym1
29968	if false {
29969	} else if z.HasExtensions() && z.DecExt(x) {
29970	} else {
29971		*((*string)(x)) = r.DecodeString()
29972	}
29973}
29974
29975func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) {
29976	var h codecSelfer1234
29977	z, r := codec1978.GenHelperEncoder(e)
29978	_, _, _ = h, z, r
29979	if x == nil {
29980		r.EncodeNil()
29981	} else {
29982		yym1 := z.EncBinary()
29983		_ = yym1
29984		if false {
29985		} else if z.HasExtensions() && z.EncExt(x) {
29986		} else {
29987			yysep2 := !z.EncBinary()
29988			yy2arr2 := z.EncBasicHandle().StructToArray
29989			var yyq2 [6]bool
29990			_, _, _ = yysep2, yyq2, yy2arr2
29991			const yyr2 bool = false
29992			yyq2[2] = true
29993			yyq2[3] = true
29994			yyq2[4] = x.Reason != ""
29995			yyq2[5] = x.Message != ""
29996			var yynn2 int
29997			if yyr2 || yy2arr2 {
29998				r.EncodeArrayStart(6)
29999			} else {
30000				yynn2 = 2
30001				for _, b := range yyq2 {
30002					if b {
30003						yynn2++
30004					}
30005				}
30006				r.EncodeMapStart(yynn2)
30007				yynn2 = 0
30008			}
30009			if yyr2 || yy2arr2 {
30010				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
30011				x.Type.CodecEncodeSelf(e)
30012			} else {
30013				z.EncSendContainerState(codecSelfer_containerMapKey1234)
30014				r.EncodeString(codecSelferC_UTF81234, string("type"))
30015				z.EncSendContainerState(codecSelfer_containerMapValue1234)
30016				x.Type.CodecEncodeSelf(e)
30017			}
30018			if yyr2 || yy2arr2 {
30019				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
30020				x.Status.CodecEncodeSelf(e)
30021			} else {
30022				z.EncSendContainerState(codecSelfer_containerMapKey1234)
30023				r.EncodeString(codecSelferC_UTF81234, string("status"))
30024				z.EncSendContainerState(codecSelfer_containerMapValue1234)
30025				x.Status.CodecEncodeSelf(e)
30026			}
30027			if yyr2 || yy2arr2 {
30028				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
30029				if yyq2[2] {
30030					yy10 := &x.LastProbeTime
30031					yym11 := z.EncBinary()
30032					_ = yym11
30033					if false {
30034					} else if z.HasExtensions() && z.EncExt(yy10) {
30035					} else if yym11 {
30036						z.EncBinaryMarshal(yy10)
30037					} else if !yym11 && z.IsJSONHandle() {
30038						z.EncJSONMarshal(yy10)
30039					} else {
30040						z.EncFallback(yy10)
30041					}
30042				} else {
30043					r.EncodeNil()
30044				}
30045			} else {
30046				if yyq2[2] {
30047					z.EncSendContainerState(codecSelfer_containerMapKey1234)
30048					r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime"))
30049					z.EncSendContainerState(codecSelfer_containerMapValue1234)
30050					yy12 := &x.LastProbeTime
30051					yym13 := z.EncBinary()
30052					_ = yym13
30053					if false {
30054					} else if z.HasExtensions() && z.EncExt(yy12) {
30055					} else if yym13 {
30056						z.EncBinaryMarshal(yy12)
30057					} else if !yym13 && z.IsJSONHandle() {
30058						z.EncJSONMarshal(yy12)
30059					} else {
30060						z.EncFallback(yy12)
30061					}
30062				}
30063			}
30064			if yyr2 || yy2arr2 {
30065				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
30066				if yyq2[3] {
30067					yy15 := &x.LastTransitionTime
30068					yym16 := z.EncBinary()
30069					_ = yym16
30070					if false {
30071					} else if z.HasExtensions() && z.EncExt(yy15) {
30072					} else if yym16 {
30073						z.EncBinaryMarshal(yy15)
30074					} else if !yym16 && z.IsJSONHandle() {
30075						z.EncJSONMarshal(yy15)
30076					} else {
30077						z.EncFallback(yy15)
30078					}
30079				} else {
30080					r.EncodeNil()
30081				}
30082			} else {
30083				if yyq2[3] {
30084					z.EncSendContainerState(codecSelfer_containerMapKey1234)
30085					r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
30086					z.EncSendContainerState(codecSelfer_containerMapValue1234)
30087					yy17 := &x.LastTransitionTime
30088					yym18 := z.EncBinary()
30089					_ = yym18
30090					if false {
30091					} else if z.HasExtensions() && z.EncExt(yy17) {
30092					} else if yym18 {
30093						z.EncBinaryMarshal(yy17)
30094					} else if !yym18 && z.IsJSONHandle() {
30095						z.EncJSONMarshal(yy17)
30096					} else {
30097						z.EncFallback(yy17)
30098					}
30099				}
30100			}
30101			if yyr2 || yy2arr2 {
30102				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
30103				if yyq2[4] {
30104					yym20 := z.EncBinary()
30105					_ = yym20
30106					if false {
30107					} else {
30108						r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
30109					}
30110				} else {
30111					r.EncodeString(codecSelferC_UTF81234, "")
30112				}
30113			} else {
30114				if yyq2[4] {
30115					z.EncSendContainerState(codecSelfer_containerMapKey1234)
30116					r.EncodeString(codecSelferC_UTF81234, string("reason"))
30117					z.EncSendContainerState(codecSelfer_containerMapValue1234)
30118					yym21 := z.EncBinary()
30119					_ = yym21
30120					if false {
30121					} else {
30122						r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
30123					}
30124				}
30125			}
30126			if yyr2 || yy2arr2 {
30127				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
30128				if yyq2[5] {
30129					yym23 := z.EncBinary()
30130					_ = yym23
30131					if false {
30132					} else {
30133						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
30134					}
30135				} else {
30136					r.EncodeString(codecSelferC_UTF81234, "")
30137				}
30138			} else {
30139				if yyq2[5] {
30140					z.EncSendContainerState(codecSelfer_containerMapKey1234)
30141					r.EncodeString(codecSelferC_UTF81234, string("message"))
30142					z.EncSendContainerState(codecSelfer_containerMapValue1234)
30143					yym24 := z.EncBinary()
30144					_ = yym24
30145					if false {
30146					} else {
30147						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
30148					}
30149				}
30150			}
30151			if yyr2 || yy2arr2 {
30152				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
30153			} else {
30154				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
30155			}
30156		}
30157	}
30158}
30159
30160func (x *PodCondition) CodecDecodeSelf(d *codec1978.Decoder) {
30161	var h codecSelfer1234
30162	z, r := codec1978.GenHelperDecoder(d)
30163	_, _, _ = h, z, r
30164	yym1 := z.DecBinary()
30165	_ = yym1
30166	if false {
30167	} else if z.HasExtensions() && z.DecExt(x) {
30168	} else {
30169		yyct2 := r.ContainerType()
30170		if yyct2 == codecSelferValueTypeMap1234 {
30171			yyl2 := r.ReadMapStart()
30172			if yyl2 == 0 {
30173				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
30174			} else {
30175				x.codecDecodeSelfFromMap(yyl2, d)
30176			}
30177		} else if yyct2 == codecSelferValueTypeArray1234 {
30178			yyl2 := r.ReadArrayStart()
30179			if yyl2 == 0 {
30180				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
30181			} else {
30182				x.codecDecodeSelfFromArray(yyl2, d)
30183			}
30184		} else {
30185			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
30186		}
30187	}
30188}
30189
30190func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
30191	var h codecSelfer1234
30192	z, r := codec1978.GenHelperDecoder(d)
30193	_, _, _ = h, z, r
30194	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
30195	_ = yys3Slc
30196	var yyhl3 bool = l >= 0
30197	for yyj3 := 0; ; yyj3++ {
30198		if yyhl3 {
30199			if yyj3 >= l {
30200				break
30201			}
30202		} else {
30203			if r.CheckBreak() {
30204				break
30205			}
30206		}
30207		z.DecSendContainerState(codecSelfer_containerMapKey1234)
30208		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
30209		yys3 := string(yys3Slc)
30210		z.DecSendContainerState(codecSelfer_containerMapValue1234)
30211		switch yys3 {
30212		case "type":
30213			if r.TryDecodeAsNil() {
30214				x.Type = ""
30215			} else {
30216				yyv4 := &x.Type
30217				yyv4.CodecDecodeSelf(d)
30218			}
30219		case "status":
30220			if r.TryDecodeAsNil() {
30221				x.Status = ""
30222			} else {
30223				yyv5 := &x.Status
30224				yyv5.CodecDecodeSelf(d)
30225			}
30226		case "lastProbeTime":
30227			if r.TryDecodeAsNil() {
30228				x.LastProbeTime = pkg2_v1.Time{}
30229			} else {
30230				yyv6 := &x.LastProbeTime
30231				yym7 := z.DecBinary()
30232				_ = yym7
30233				if false {
30234				} else if z.HasExtensions() && z.DecExt(yyv6) {
30235				} else if yym7 {
30236					z.DecBinaryUnmarshal(yyv6)
30237				} else if !yym7 && z.IsJSONHandle() {
30238					z.DecJSONUnmarshal(yyv6)
30239				} else {
30240					z.DecFallback(yyv6, false)
30241				}
30242			}
30243		case "lastTransitionTime":
30244			if r.TryDecodeAsNil() {
30245				x.LastTransitionTime = pkg2_v1.Time{}
30246			} else {
30247				yyv8 := &x.LastTransitionTime
30248				yym9 := z.DecBinary()
30249				_ = yym9
30250				if false {
30251				} else if z.HasExtensions() && z.DecExt(yyv8) {
30252				} else if yym9 {
30253					z.DecBinaryUnmarshal(yyv8)
30254				} else if !yym9 && z.IsJSONHandle() {
30255					z.DecJSONUnmarshal(yyv8)
30256				} else {
30257					z.DecFallback(yyv8, false)
30258				}
30259			}
30260		case "reason":
30261			if r.TryDecodeAsNil() {
30262				x.Reason = ""
30263			} else {
30264				yyv10 := &x.Reason
30265				yym11 := z.DecBinary()
30266				_ = yym11
30267				if false {
30268				} else {
30269					*((*string)(yyv10)) = r.DecodeString()
30270				}
30271			}
30272		case "message":
30273			if r.TryDecodeAsNil() {
30274				x.Message = ""
30275			} else {
30276				yyv12 := &x.Message
30277				yym13 := z.DecBinary()
30278				_ = yym13
30279				if false {
30280				} else {
30281					*((*string)(yyv12)) = r.DecodeString()
30282				}
30283			}
30284		default:
30285			z.DecStructFieldNotFound(-1, yys3)
30286		} // end switch yys3
30287	} // end for yyj3
30288	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
30289}
30290
30291func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
30292	var h codecSelfer1234
30293	z, r := codec1978.GenHelperDecoder(d)
30294	_, _, _ = h, z, r
30295	var yyj14 int
30296	var yyb14 bool
30297	var yyhl14 bool = l >= 0
30298	yyj14++
30299	if yyhl14 {
30300		yyb14 = yyj14 > l
30301	} else {
30302		yyb14 = r.CheckBreak()
30303	}
30304	if yyb14 {
30305		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
30306		return
30307	}
30308	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
30309	if r.TryDecodeAsNil() {
30310		x.Type = ""
30311	} else {
30312		yyv15 := &x.Type
30313		yyv15.CodecDecodeSelf(d)
30314	}
30315	yyj14++
30316	if yyhl14 {
30317		yyb14 = yyj14 > l
30318	} else {
30319		yyb14 = r.CheckBreak()
30320	}
30321	if yyb14 {
30322		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
30323		return
30324	}
30325	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
30326	if r.TryDecodeAsNil() {
30327		x.Status = ""
30328	} else {
30329		yyv16 := &x.Status
30330		yyv16.CodecDecodeSelf(d)
30331	}
30332	yyj14++
30333	if yyhl14 {
30334		yyb14 = yyj14 > l
30335	} else {
30336		yyb14 = r.CheckBreak()
30337	}
30338	if yyb14 {
30339		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
30340		return
30341	}
30342	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
30343	if r.TryDecodeAsNil() {
30344		x.LastProbeTime = pkg2_v1.Time{}
30345	} else {
30346		yyv17 := &x.LastProbeTime
30347		yym18 := z.DecBinary()
30348		_ = yym18
30349		if false {
30350		} else if z.HasExtensions() && z.DecExt(yyv17) {
30351		} else if yym18 {
30352			z.DecBinaryUnmarshal(yyv17)
30353		} else if !yym18 && z.IsJSONHandle() {
30354			z.DecJSONUnmarshal(yyv17)
30355		} else {
30356			z.DecFallback(yyv17, false)
30357		}
30358	}
30359	yyj14++
30360	if yyhl14 {
30361		yyb14 = yyj14 > l
30362	} else {
30363		yyb14 = r.CheckBreak()
30364	}
30365	if yyb14 {
30366		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
30367		return
30368	}
30369	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
30370	if r.TryDecodeAsNil() {
30371		x.LastTransitionTime = pkg2_v1.Time{}
30372	} else {
30373		yyv19 := &x.LastTransitionTime
30374		yym20 := z.DecBinary()
30375		_ = yym20
30376		if false {
30377		} else if z.HasExtensions() && z.DecExt(yyv19) {
30378		} else if yym20 {
30379			z.DecBinaryUnmarshal(yyv19)
30380		} else if !yym20 && z.IsJSONHandle() {
30381			z.DecJSONUnmarshal(yyv19)
30382		} else {
30383			z.DecFallback(yyv19, false)
30384		}
30385	}
30386	yyj14++
30387	if yyhl14 {
30388		yyb14 = yyj14 > l
30389	} else {
30390		yyb14 = r.CheckBreak()
30391	}
30392	if yyb14 {
30393		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
30394		return
30395	}
30396	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
30397	if r.TryDecodeAsNil() {
30398		x.Reason = ""
30399	} else {
30400		yyv21 := &x.Reason
30401		yym22 := z.DecBinary()
30402		_ = yym22
30403		if false {
30404		} else {
30405			*((*string)(yyv21)) = r.DecodeString()
30406		}
30407	}
30408	yyj14++
30409	if yyhl14 {
30410		yyb14 = yyj14 > l
30411	} else {
30412		yyb14 = r.CheckBreak()
30413	}
30414	if yyb14 {
30415		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
30416		return
30417	}
30418	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
30419	if r.TryDecodeAsNil() {
30420		x.Message = ""
30421	} else {
30422		yyv23 := &x.Message
30423		yym24 := z.DecBinary()
30424		_ = yym24
30425		if false {
30426		} else {
30427			*((*string)(yyv23)) = r.DecodeString()
30428		}
30429	}
30430	for {
30431		yyj14++
30432		if yyhl14 {
30433			yyb14 = yyj14 > l
30434		} else {
30435			yyb14 = r.CheckBreak()
30436		}
30437		if yyb14 {
30438			break
30439		}
30440		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
30441		z.DecStructFieldNotFound(yyj14-1, "")
30442	}
30443	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
30444}
30445
30446func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
30447	var h codecSelfer1234
30448	z, r := codec1978.GenHelperEncoder(e)
30449	_, _, _ = h, z, r
30450	yym1 := z.EncBinary()
30451	_ = yym1
30452	if false {
30453	} else if z.HasExtensions() && z.EncExt(x) {
30454	} else {
30455		r.EncodeString(codecSelferC_UTF81234, string(x))
30456	}
30457}
30458
30459func (x *RestartPolicy) CodecDecodeSelf(d *codec1978.Decoder) {
30460	var h codecSelfer1234
30461	z, r := codec1978.GenHelperDecoder(d)
30462	_, _, _ = h, z, r
30463	yym1 := z.DecBinary()
30464	_ = yym1
30465	if false {
30466	} else if z.HasExtensions() && z.DecExt(x) {
30467	} else {
30468		*((*string)(x)) = r.DecodeString()
30469	}
30470}
30471
30472func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
30473	var h codecSelfer1234
30474	z, r := codec1978.GenHelperEncoder(e)
30475	_, _, _ = h, z, r
30476	yym1 := z.EncBinary()
30477	_ = yym1
30478	if false {
30479	} else if z.HasExtensions() && z.EncExt(x) {
30480	} else {
30481		r.EncodeString(codecSelferC_UTF81234, string(x))
30482	}
30483}
30484
30485func (x *DNSPolicy) CodecDecodeSelf(d *codec1978.Decoder) {
30486	var h codecSelfer1234
30487	z, r := codec1978.GenHelperDecoder(d)
30488	_, _, _ = h, z, r
30489	yym1 := z.DecBinary()
30490	_ = yym1
30491	if false {
30492	} else if z.HasExtensions() && z.DecExt(x) {
30493	} else {
30494		*((*string)(x)) = r.DecodeString()
30495	}
30496}
30497
30498func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) {
30499	var h codecSelfer1234
30500	z, r := codec1978.GenHelperEncoder(e)
30501	_, _, _ = h, z, r
30502	if x == nil {
30503		r.EncodeNil()
30504	} else {
30505		yym1 := z.EncBinary()
30506		_ = yym1
30507		if false {
30508		} else if z.HasExtensions() && z.EncExt(x) {
30509		} else {
30510			yysep2 := !z.EncBinary()
30511			yy2arr2 := z.EncBasicHandle().StructToArray
30512			var yyq2 [1]bool
30513			_, _, _ = yysep2, yyq2, yy2arr2
30514			const yyr2 bool = false
30515			var yynn2 int
30516			if yyr2 || yy2arr2 {
30517				r.EncodeArrayStart(1)
30518			} else {
30519				yynn2 = 1
30520				for _, b := range yyq2 {
30521					if b {
30522						yynn2++
30523					}
30524				}
30525				r.EncodeMapStart(yynn2)
30526				yynn2 = 0
30527			}
30528			if yyr2 || yy2arr2 {
30529				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
30530				if x.NodeSelectorTerms == nil {
30531					r.EncodeNil()
30532				} else {
30533					yym4 := z.EncBinary()
30534					_ = yym4
30535					if false {
30536					} else {
30537						h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e)
30538					}
30539				}
30540			} else {
30541				z.EncSendContainerState(codecSelfer_containerMapKey1234)
30542				r.EncodeString(codecSelferC_UTF81234, string("nodeSelectorTerms"))
30543				z.EncSendContainerState(codecSelfer_containerMapValue1234)
30544				if x.NodeSelectorTerms == nil {
30545					r.EncodeNil()
30546				} else {
30547					yym5 := z.EncBinary()
30548					_ = yym5
30549					if false {
30550					} else {
30551						h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e)
30552					}
30553				}
30554			}
30555			if yyr2 || yy2arr2 {
30556				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
30557			} else {
30558				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
30559			}
30560		}
30561	}
30562}
30563
30564func (x *NodeSelector) CodecDecodeSelf(d *codec1978.Decoder) {
30565	var h codecSelfer1234
30566	z, r := codec1978.GenHelperDecoder(d)
30567	_, _, _ = h, z, r
30568	yym1 := z.DecBinary()
30569	_ = yym1
30570	if false {
30571	} else if z.HasExtensions() && z.DecExt(x) {
30572	} else {
30573		yyct2 := r.ContainerType()
30574		if yyct2 == codecSelferValueTypeMap1234 {
30575			yyl2 := r.ReadMapStart()
30576			if yyl2 == 0 {
30577				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
30578			} else {
30579				x.codecDecodeSelfFromMap(yyl2, d)
30580			}
30581		} else if yyct2 == codecSelferValueTypeArray1234 {
30582			yyl2 := r.ReadArrayStart()
30583			if yyl2 == 0 {
30584				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
30585			} else {
30586				x.codecDecodeSelfFromArray(yyl2, d)
30587			}
30588		} else {
30589			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
30590		}
30591	}
30592}
30593
30594func (x *NodeSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
30595	var h codecSelfer1234
30596	z, r := codec1978.GenHelperDecoder(d)
30597	_, _, _ = h, z, r
30598	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
30599	_ = yys3Slc
30600	var yyhl3 bool = l >= 0
30601	for yyj3 := 0; ; yyj3++ {
30602		if yyhl3 {
30603			if yyj3 >= l {
30604				break
30605			}
30606		} else {
30607			if r.CheckBreak() {
30608				break
30609			}
30610		}
30611		z.DecSendContainerState(codecSelfer_containerMapKey1234)
30612		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
30613		yys3 := string(yys3Slc)
30614		z.DecSendContainerState(codecSelfer_containerMapValue1234)
30615		switch yys3 {
30616		case "nodeSelectorTerms":
30617			if r.TryDecodeAsNil() {
30618				x.NodeSelectorTerms = nil
30619			} else {
30620				yyv4 := &x.NodeSelectorTerms
30621				yym5 := z.DecBinary()
30622				_ = yym5
30623				if false {
30624				} else {
30625					h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv4), d)
30626				}
30627			}
30628		default:
30629			z.DecStructFieldNotFound(-1, yys3)
30630		} // end switch yys3
30631	} // end for yyj3
30632	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
30633}
30634
30635func (x *NodeSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
30636	var h codecSelfer1234
30637	z, r := codec1978.GenHelperDecoder(d)
30638	_, _, _ = h, z, r
30639	var yyj6 int
30640	var yyb6 bool
30641	var yyhl6 bool = l >= 0
30642	yyj6++
30643	if yyhl6 {
30644		yyb6 = yyj6 > l
30645	} else {
30646		yyb6 = r.CheckBreak()
30647	}
30648	if yyb6 {
30649		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
30650		return
30651	}
30652	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
30653	if r.TryDecodeAsNil() {
30654		x.NodeSelectorTerms = nil
30655	} else {
30656		yyv7 := &x.NodeSelectorTerms
30657		yym8 := z.DecBinary()
30658		_ = yym8
30659		if false {
30660		} else {
30661			h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv7), d)
30662		}
30663	}
30664	for {
30665		yyj6++
30666		if yyhl6 {
30667			yyb6 = yyj6 > l
30668		} else {
30669			yyb6 = r.CheckBreak()
30670		}
30671		if yyb6 {
30672			break
30673		}
30674		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
30675		z.DecStructFieldNotFound(yyj6-1, "")
30676	}
30677	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
30678}
30679
30680func (x *NodeSelectorTerm) CodecEncodeSelf(e *codec1978.Encoder) {
30681	var h codecSelfer1234
30682	z, r := codec1978.GenHelperEncoder(e)
30683	_, _, _ = h, z, r
30684	if x == nil {
30685		r.EncodeNil()
30686	} else {
30687		yym1 := z.EncBinary()
30688		_ = yym1
30689		if false {
30690		} else if z.HasExtensions() && z.EncExt(x) {
30691		} else {
30692			yysep2 := !z.EncBinary()
30693			yy2arr2 := z.EncBasicHandle().StructToArray
30694			var yyq2 [1]bool
30695			_, _, _ = yysep2, yyq2, yy2arr2
30696			const yyr2 bool = false
30697			var yynn2 int
30698			if yyr2 || yy2arr2 {
30699				r.EncodeArrayStart(1)
30700			} else {
30701				yynn2 = 1
30702				for _, b := range yyq2 {
30703					if b {
30704						yynn2++
30705					}
30706				}
30707				r.EncodeMapStart(yynn2)
30708				yynn2 = 0
30709			}
30710			if yyr2 || yy2arr2 {
30711				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
30712				if x.MatchExpressions == nil {
30713					r.EncodeNil()
30714				} else {
30715					yym4 := z.EncBinary()
30716					_ = yym4
30717					if false {
30718					} else {
30719						h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e)
30720					}
30721				}
30722			} else {
30723				z.EncSendContainerState(codecSelfer_containerMapKey1234)
30724				r.EncodeString(codecSelferC_UTF81234, string("matchExpressions"))
30725				z.EncSendContainerState(codecSelfer_containerMapValue1234)
30726				if x.MatchExpressions == nil {
30727					r.EncodeNil()
30728				} else {
30729					yym5 := z.EncBinary()
30730					_ = yym5
30731					if false {
30732					} else {
30733						h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e)
30734					}
30735				}
30736			}
30737			if yyr2 || yy2arr2 {
30738				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
30739			} else {
30740				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
30741			}
30742		}
30743	}
30744}
30745
30746func (x *NodeSelectorTerm) CodecDecodeSelf(d *codec1978.Decoder) {
30747	var h codecSelfer1234
30748	z, r := codec1978.GenHelperDecoder(d)
30749	_, _, _ = h, z, r
30750	yym1 := z.DecBinary()
30751	_ = yym1
30752	if false {
30753	} else if z.HasExtensions() && z.DecExt(x) {
30754	} else {
30755		yyct2 := r.ContainerType()
30756		if yyct2 == codecSelferValueTypeMap1234 {
30757			yyl2 := r.ReadMapStart()
30758			if yyl2 == 0 {
30759				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
30760			} else {
30761				x.codecDecodeSelfFromMap(yyl2, d)
30762			}
30763		} else if yyct2 == codecSelferValueTypeArray1234 {
30764			yyl2 := r.ReadArrayStart()
30765			if yyl2 == 0 {
30766				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
30767			} else {
30768				x.codecDecodeSelfFromArray(yyl2, d)
30769			}
30770		} else {
30771			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
30772		}
30773	}
30774}
30775
30776func (x *NodeSelectorTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
30777	var h codecSelfer1234
30778	z, r := codec1978.GenHelperDecoder(d)
30779	_, _, _ = h, z, r
30780	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
30781	_ = yys3Slc
30782	var yyhl3 bool = l >= 0
30783	for yyj3 := 0; ; yyj3++ {
30784		if yyhl3 {
30785			if yyj3 >= l {
30786				break
30787			}
30788		} else {
30789			if r.CheckBreak() {
30790				break
30791			}
30792		}
30793		z.DecSendContainerState(codecSelfer_containerMapKey1234)
30794		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
30795		yys3 := string(yys3Slc)
30796		z.DecSendContainerState(codecSelfer_containerMapValue1234)
30797		switch yys3 {
30798		case "matchExpressions":
30799			if r.TryDecodeAsNil() {
30800				x.MatchExpressions = nil
30801			} else {
30802				yyv4 := &x.MatchExpressions
30803				yym5 := z.DecBinary()
30804				_ = yym5
30805				if false {
30806				} else {
30807					h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv4), d)
30808				}
30809			}
30810		default:
30811			z.DecStructFieldNotFound(-1, yys3)
30812		} // end switch yys3
30813	} // end for yyj3
30814	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
30815}
30816
30817func (x *NodeSelectorTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
30818	var h codecSelfer1234
30819	z, r := codec1978.GenHelperDecoder(d)
30820	_, _, _ = h, z, r
30821	var yyj6 int
30822	var yyb6 bool
30823	var yyhl6 bool = l >= 0
30824	yyj6++
30825	if yyhl6 {
30826		yyb6 = yyj6 > l
30827	} else {
30828		yyb6 = r.CheckBreak()
30829	}
30830	if yyb6 {
30831		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
30832		return
30833	}
30834	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
30835	if r.TryDecodeAsNil() {
30836		x.MatchExpressions = nil
30837	} else {
30838		yyv7 := &x.MatchExpressions
30839		yym8 := z.DecBinary()
30840		_ = yym8
30841		if false {
30842		} else {
30843			h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv7), d)
30844		}
30845	}
30846	for {
30847		yyj6++
30848		if yyhl6 {
30849			yyb6 = yyj6 > l
30850		} else {
30851			yyb6 = r.CheckBreak()
30852		}
30853		if yyb6 {
30854			break
30855		}
30856		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
30857		z.DecStructFieldNotFound(yyj6-1, "")
30858	}
30859	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
30860}
30861
30862func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) {
30863	var h codecSelfer1234
30864	z, r := codec1978.GenHelperEncoder(e)
30865	_, _, _ = h, z, r
30866	if x == nil {
30867		r.EncodeNil()
30868	} else {
30869		yym1 := z.EncBinary()
30870		_ = yym1
30871		if false {
30872		} else if z.HasExtensions() && z.EncExt(x) {
30873		} else {
30874			yysep2 := !z.EncBinary()
30875			yy2arr2 := z.EncBasicHandle().StructToArray
30876			var yyq2 [3]bool
30877			_, _, _ = yysep2, yyq2, yy2arr2
30878			const yyr2 bool = false
30879			yyq2[2] = len(x.Values) != 0
30880			var yynn2 int
30881			if yyr2 || yy2arr2 {
30882				r.EncodeArrayStart(3)
30883			} else {
30884				yynn2 = 2
30885				for _, b := range yyq2 {
30886					if b {
30887						yynn2++
30888					}
30889				}
30890				r.EncodeMapStart(yynn2)
30891				yynn2 = 0
30892			}
30893			if yyr2 || yy2arr2 {
30894				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
30895				yym4 := z.EncBinary()
30896				_ = yym4
30897				if false {
30898				} else {
30899					r.EncodeString(codecSelferC_UTF81234, string(x.Key))
30900				}
30901			} else {
30902				z.EncSendContainerState(codecSelfer_containerMapKey1234)
30903				r.EncodeString(codecSelferC_UTF81234, string("key"))
30904				z.EncSendContainerState(codecSelfer_containerMapValue1234)
30905				yym5 := z.EncBinary()
30906				_ = yym5
30907				if false {
30908				} else {
30909					r.EncodeString(codecSelferC_UTF81234, string(x.Key))
30910				}
30911			}
30912			if yyr2 || yy2arr2 {
30913				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
30914				x.Operator.CodecEncodeSelf(e)
30915			} else {
30916				z.EncSendContainerState(codecSelfer_containerMapKey1234)
30917				r.EncodeString(codecSelferC_UTF81234, string("operator"))
30918				z.EncSendContainerState(codecSelfer_containerMapValue1234)
30919				x.Operator.CodecEncodeSelf(e)
30920			}
30921			if yyr2 || yy2arr2 {
30922				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
30923				if yyq2[2] {
30924					if x.Values == nil {
30925						r.EncodeNil()
30926					} else {
30927						yym10 := z.EncBinary()
30928						_ = yym10
30929						if false {
30930						} else {
30931							z.F.EncSliceStringV(x.Values, false, e)
30932						}
30933					}
30934				} else {
30935					r.EncodeNil()
30936				}
30937			} else {
30938				if yyq2[2] {
30939					z.EncSendContainerState(codecSelfer_containerMapKey1234)
30940					r.EncodeString(codecSelferC_UTF81234, string("values"))
30941					z.EncSendContainerState(codecSelfer_containerMapValue1234)
30942					if x.Values == nil {
30943						r.EncodeNil()
30944					} else {
30945						yym11 := z.EncBinary()
30946						_ = yym11
30947						if false {
30948						} else {
30949							z.F.EncSliceStringV(x.Values, false, e)
30950						}
30951					}
30952				}
30953			}
30954			if yyr2 || yy2arr2 {
30955				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
30956			} else {
30957				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
30958			}
30959		}
30960	}
30961}
30962
30963func (x *NodeSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) {
30964	var h codecSelfer1234
30965	z, r := codec1978.GenHelperDecoder(d)
30966	_, _, _ = h, z, r
30967	yym1 := z.DecBinary()
30968	_ = yym1
30969	if false {
30970	} else if z.HasExtensions() && z.DecExt(x) {
30971	} else {
30972		yyct2 := r.ContainerType()
30973		if yyct2 == codecSelferValueTypeMap1234 {
30974			yyl2 := r.ReadMapStart()
30975			if yyl2 == 0 {
30976				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
30977			} else {
30978				x.codecDecodeSelfFromMap(yyl2, d)
30979			}
30980		} else if yyct2 == codecSelferValueTypeArray1234 {
30981			yyl2 := r.ReadArrayStart()
30982			if yyl2 == 0 {
30983				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
30984			} else {
30985				x.codecDecodeSelfFromArray(yyl2, d)
30986			}
30987		} else {
30988			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
30989		}
30990	}
30991}
30992
30993func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
30994	var h codecSelfer1234
30995	z, r := codec1978.GenHelperDecoder(d)
30996	_, _, _ = h, z, r
30997	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
30998	_ = yys3Slc
30999	var yyhl3 bool = l >= 0
31000	for yyj3 := 0; ; yyj3++ {
31001		if yyhl3 {
31002			if yyj3 >= l {
31003				break
31004			}
31005		} else {
31006			if r.CheckBreak() {
31007				break
31008			}
31009		}
31010		z.DecSendContainerState(codecSelfer_containerMapKey1234)
31011		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
31012		yys3 := string(yys3Slc)
31013		z.DecSendContainerState(codecSelfer_containerMapValue1234)
31014		switch yys3 {
31015		case "key":
31016			if r.TryDecodeAsNil() {
31017				x.Key = ""
31018			} else {
31019				yyv4 := &x.Key
31020				yym5 := z.DecBinary()
31021				_ = yym5
31022				if false {
31023				} else {
31024					*((*string)(yyv4)) = r.DecodeString()
31025				}
31026			}
31027		case "operator":
31028			if r.TryDecodeAsNil() {
31029				x.Operator = ""
31030			} else {
31031				yyv6 := &x.Operator
31032				yyv6.CodecDecodeSelf(d)
31033			}
31034		case "values":
31035			if r.TryDecodeAsNil() {
31036				x.Values = nil
31037			} else {
31038				yyv7 := &x.Values
31039				yym8 := z.DecBinary()
31040				_ = yym8
31041				if false {
31042				} else {
31043					z.F.DecSliceStringX(yyv7, false, d)
31044				}
31045			}
31046		default:
31047			z.DecStructFieldNotFound(-1, yys3)
31048		} // end switch yys3
31049	} // end for yyj3
31050	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
31051}
31052
31053func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
31054	var h codecSelfer1234
31055	z, r := codec1978.GenHelperDecoder(d)
31056	_, _, _ = h, z, r
31057	var yyj9 int
31058	var yyb9 bool
31059	var yyhl9 bool = l >= 0
31060	yyj9++
31061	if yyhl9 {
31062		yyb9 = yyj9 > l
31063	} else {
31064		yyb9 = r.CheckBreak()
31065	}
31066	if yyb9 {
31067		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
31068		return
31069	}
31070	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
31071	if r.TryDecodeAsNil() {
31072		x.Key = ""
31073	} else {
31074		yyv10 := &x.Key
31075		yym11 := z.DecBinary()
31076		_ = yym11
31077		if false {
31078		} else {
31079			*((*string)(yyv10)) = r.DecodeString()
31080		}
31081	}
31082	yyj9++
31083	if yyhl9 {
31084		yyb9 = yyj9 > l
31085	} else {
31086		yyb9 = r.CheckBreak()
31087	}
31088	if yyb9 {
31089		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
31090		return
31091	}
31092	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
31093	if r.TryDecodeAsNil() {
31094		x.Operator = ""
31095	} else {
31096		yyv12 := &x.Operator
31097		yyv12.CodecDecodeSelf(d)
31098	}
31099	yyj9++
31100	if yyhl9 {
31101		yyb9 = yyj9 > l
31102	} else {
31103		yyb9 = r.CheckBreak()
31104	}
31105	if yyb9 {
31106		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
31107		return
31108	}
31109	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
31110	if r.TryDecodeAsNil() {
31111		x.Values = nil
31112	} else {
31113		yyv13 := &x.Values
31114		yym14 := z.DecBinary()
31115		_ = yym14
31116		if false {
31117		} else {
31118			z.F.DecSliceStringX(yyv13, false, d)
31119		}
31120	}
31121	for {
31122		yyj9++
31123		if yyhl9 {
31124			yyb9 = yyj9 > l
31125		} else {
31126			yyb9 = r.CheckBreak()
31127		}
31128		if yyb9 {
31129			break
31130		}
31131		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
31132		z.DecStructFieldNotFound(yyj9-1, "")
31133	}
31134	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
31135}
31136
31137func (x NodeSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) {
31138	var h codecSelfer1234
31139	z, r := codec1978.GenHelperEncoder(e)
31140	_, _, _ = h, z, r
31141	yym1 := z.EncBinary()
31142	_ = yym1
31143	if false {
31144	} else if z.HasExtensions() && z.EncExt(x) {
31145	} else {
31146		r.EncodeString(codecSelferC_UTF81234, string(x))
31147	}
31148}
31149
31150func (x *NodeSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) {
31151	var h codecSelfer1234
31152	z, r := codec1978.GenHelperDecoder(d)
31153	_, _, _ = h, z, r
31154	yym1 := z.DecBinary()
31155	_ = yym1
31156	if false {
31157	} else if z.HasExtensions() && z.DecExt(x) {
31158	} else {
31159		*((*string)(x)) = r.DecodeString()
31160	}
31161}
31162
31163func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) {
31164	var h codecSelfer1234
31165	z, r := codec1978.GenHelperEncoder(e)
31166	_, _, _ = h, z, r
31167	if x == nil {
31168		r.EncodeNil()
31169	} else {
31170		yym1 := z.EncBinary()
31171		_ = yym1
31172		if false {
31173		} else if z.HasExtensions() && z.EncExt(x) {
31174		} else {
31175			yysep2 := !z.EncBinary()
31176			yy2arr2 := z.EncBasicHandle().StructToArray
31177			var yyq2 [3]bool
31178			_, _, _ = yysep2, yyq2, yy2arr2
31179			const yyr2 bool = false
31180			yyq2[0] = x.NodeAffinity != nil
31181			yyq2[1] = x.PodAffinity != nil
31182			yyq2[2] = x.PodAntiAffinity != nil
31183			var yynn2 int
31184			if yyr2 || yy2arr2 {
31185				r.EncodeArrayStart(3)
31186			} else {
31187				yynn2 = 0
31188				for _, b := range yyq2 {
31189					if b {
31190						yynn2++
31191					}
31192				}
31193				r.EncodeMapStart(yynn2)
31194				yynn2 = 0
31195			}
31196			if yyr2 || yy2arr2 {
31197				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
31198				if yyq2[0] {
31199					if x.NodeAffinity == nil {
31200						r.EncodeNil()
31201					} else {
31202						x.NodeAffinity.CodecEncodeSelf(e)
31203					}
31204				} else {
31205					r.EncodeNil()
31206				}
31207			} else {
31208				if yyq2[0] {
31209					z.EncSendContainerState(codecSelfer_containerMapKey1234)
31210					r.EncodeString(codecSelferC_UTF81234, string("nodeAffinity"))
31211					z.EncSendContainerState(codecSelfer_containerMapValue1234)
31212					if x.NodeAffinity == nil {
31213						r.EncodeNil()
31214					} else {
31215						x.NodeAffinity.CodecEncodeSelf(e)
31216					}
31217				}
31218			}
31219			if yyr2 || yy2arr2 {
31220				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
31221				if yyq2[1] {
31222					if x.PodAffinity == nil {
31223						r.EncodeNil()
31224					} else {
31225						x.PodAffinity.CodecEncodeSelf(e)
31226					}
31227				} else {
31228					r.EncodeNil()
31229				}
31230			} else {
31231				if yyq2[1] {
31232					z.EncSendContainerState(codecSelfer_containerMapKey1234)
31233					r.EncodeString(codecSelferC_UTF81234, string("podAffinity"))
31234					z.EncSendContainerState(codecSelfer_containerMapValue1234)
31235					if x.PodAffinity == nil {
31236						r.EncodeNil()
31237					} else {
31238						x.PodAffinity.CodecEncodeSelf(e)
31239					}
31240				}
31241			}
31242			if yyr2 || yy2arr2 {
31243				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
31244				if yyq2[2] {
31245					if x.PodAntiAffinity == nil {
31246						r.EncodeNil()
31247					} else {
31248						x.PodAntiAffinity.CodecEncodeSelf(e)
31249					}
31250				} else {
31251					r.EncodeNil()
31252				}
31253			} else {
31254				if yyq2[2] {
31255					z.EncSendContainerState(codecSelfer_containerMapKey1234)
31256					r.EncodeString(codecSelferC_UTF81234, string("podAntiAffinity"))
31257					z.EncSendContainerState(codecSelfer_containerMapValue1234)
31258					if x.PodAntiAffinity == nil {
31259						r.EncodeNil()
31260					} else {
31261						x.PodAntiAffinity.CodecEncodeSelf(e)
31262					}
31263				}
31264			}
31265			if yyr2 || yy2arr2 {
31266				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
31267			} else {
31268				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
31269			}
31270		}
31271	}
31272}
31273
31274func (x *Affinity) CodecDecodeSelf(d *codec1978.Decoder) {
31275	var h codecSelfer1234
31276	z, r := codec1978.GenHelperDecoder(d)
31277	_, _, _ = h, z, r
31278	yym1 := z.DecBinary()
31279	_ = yym1
31280	if false {
31281	} else if z.HasExtensions() && z.DecExt(x) {
31282	} else {
31283		yyct2 := r.ContainerType()
31284		if yyct2 == codecSelferValueTypeMap1234 {
31285			yyl2 := r.ReadMapStart()
31286			if yyl2 == 0 {
31287				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
31288			} else {
31289				x.codecDecodeSelfFromMap(yyl2, d)
31290			}
31291		} else if yyct2 == codecSelferValueTypeArray1234 {
31292			yyl2 := r.ReadArrayStart()
31293			if yyl2 == 0 {
31294				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
31295			} else {
31296				x.codecDecodeSelfFromArray(yyl2, d)
31297			}
31298		} else {
31299			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
31300		}
31301	}
31302}
31303
31304func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
31305	var h codecSelfer1234
31306	z, r := codec1978.GenHelperDecoder(d)
31307	_, _, _ = h, z, r
31308	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
31309	_ = yys3Slc
31310	var yyhl3 bool = l >= 0
31311	for yyj3 := 0; ; yyj3++ {
31312		if yyhl3 {
31313			if yyj3 >= l {
31314				break
31315			}
31316		} else {
31317			if r.CheckBreak() {
31318				break
31319			}
31320		}
31321		z.DecSendContainerState(codecSelfer_containerMapKey1234)
31322		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
31323		yys3 := string(yys3Slc)
31324		z.DecSendContainerState(codecSelfer_containerMapValue1234)
31325		switch yys3 {
31326		case "nodeAffinity":
31327			if r.TryDecodeAsNil() {
31328				if x.NodeAffinity != nil {
31329					x.NodeAffinity = nil
31330				}
31331			} else {
31332				if x.NodeAffinity == nil {
31333					x.NodeAffinity = new(NodeAffinity)
31334				}
31335				x.NodeAffinity.CodecDecodeSelf(d)
31336			}
31337		case "podAffinity":
31338			if r.TryDecodeAsNil() {
31339				if x.PodAffinity != nil {
31340					x.PodAffinity = nil
31341				}
31342			} else {
31343				if x.PodAffinity == nil {
31344					x.PodAffinity = new(PodAffinity)
31345				}
31346				x.PodAffinity.CodecDecodeSelf(d)
31347			}
31348		case "podAntiAffinity":
31349			if r.TryDecodeAsNil() {
31350				if x.PodAntiAffinity != nil {
31351					x.PodAntiAffinity = nil
31352				}
31353			} else {
31354				if x.PodAntiAffinity == nil {
31355					x.PodAntiAffinity = new(PodAntiAffinity)
31356				}
31357				x.PodAntiAffinity.CodecDecodeSelf(d)
31358			}
31359		default:
31360			z.DecStructFieldNotFound(-1, yys3)
31361		} // end switch yys3
31362	} // end for yyj3
31363	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
31364}
31365
31366func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
31367	var h codecSelfer1234
31368	z, r := codec1978.GenHelperDecoder(d)
31369	_, _, _ = h, z, r
31370	var yyj7 int
31371	var yyb7 bool
31372	var yyhl7 bool = l >= 0
31373	yyj7++
31374	if yyhl7 {
31375		yyb7 = yyj7 > l
31376	} else {
31377		yyb7 = r.CheckBreak()
31378	}
31379	if yyb7 {
31380		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
31381		return
31382	}
31383	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
31384	if r.TryDecodeAsNil() {
31385		if x.NodeAffinity != nil {
31386			x.NodeAffinity = nil
31387		}
31388	} else {
31389		if x.NodeAffinity == nil {
31390			x.NodeAffinity = new(NodeAffinity)
31391		}
31392		x.NodeAffinity.CodecDecodeSelf(d)
31393	}
31394	yyj7++
31395	if yyhl7 {
31396		yyb7 = yyj7 > l
31397	} else {
31398		yyb7 = r.CheckBreak()
31399	}
31400	if yyb7 {
31401		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
31402		return
31403	}
31404	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
31405	if r.TryDecodeAsNil() {
31406		if x.PodAffinity != nil {
31407			x.PodAffinity = nil
31408		}
31409	} else {
31410		if x.PodAffinity == nil {
31411			x.PodAffinity = new(PodAffinity)
31412		}
31413		x.PodAffinity.CodecDecodeSelf(d)
31414	}
31415	yyj7++
31416	if yyhl7 {
31417		yyb7 = yyj7 > l
31418	} else {
31419		yyb7 = r.CheckBreak()
31420	}
31421	if yyb7 {
31422		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
31423		return
31424	}
31425	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
31426	if r.TryDecodeAsNil() {
31427		if x.PodAntiAffinity != nil {
31428			x.PodAntiAffinity = nil
31429		}
31430	} else {
31431		if x.PodAntiAffinity == nil {
31432			x.PodAntiAffinity = new(PodAntiAffinity)
31433		}
31434		x.PodAntiAffinity.CodecDecodeSelf(d)
31435	}
31436	for {
31437		yyj7++
31438		if yyhl7 {
31439			yyb7 = yyj7 > l
31440		} else {
31441			yyb7 = r.CheckBreak()
31442		}
31443		if yyb7 {
31444			break
31445		}
31446		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
31447		z.DecStructFieldNotFound(yyj7-1, "")
31448	}
31449	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
31450}
31451
31452func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
31453	var h codecSelfer1234
31454	z, r := codec1978.GenHelperEncoder(e)
31455	_, _, _ = h, z, r
31456	if x == nil {
31457		r.EncodeNil()
31458	} else {
31459		yym1 := z.EncBinary()
31460		_ = yym1
31461		if false {
31462		} else if z.HasExtensions() && z.EncExt(x) {
31463		} else {
31464			yysep2 := !z.EncBinary()
31465			yy2arr2 := z.EncBasicHandle().StructToArray
31466			var yyq2 [2]bool
31467			_, _, _ = yysep2, yyq2, yy2arr2
31468			const yyr2 bool = false
31469			yyq2[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0
31470			yyq2[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0
31471			var yynn2 int
31472			if yyr2 || yy2arr2 {
31473				r.EncodeArrayStart(2)
31474			} else {
31475				yynn2 = 0
31476				for _, b := range yyq2 {
31477					if b {
31478						yynn2++
31479					}
31480				}
31481				r.EncodeMapStart(yynn2)
31482				yynn2 = 0
31483			}
31484			if yyr2 || yy2arr2 {
31485				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
31486				if yyq2[0] {
31487					if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
31488						r.EncodeNil()
31489					} else {
31490						yym4 := z.EncBinary()
31491						_ = yym4
31492						if false {
31493						} else {
31494							h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
31495						}
31496					}
31497				} else {
31498					r.EncodeNil()
31499				}
31500			} else {
31501				if yyq2[0] {
31502					z.EncSendContainerState(codecSelfer_containerMapKey1234)
31503					r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution"))
31504					z.EncSendContainerState(codecSelfer_containerMapValue1234)
31505					if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
31506						r.EncodeNil()
31507					} else {
31508						yym5 := z.EncBinary()
31509						_ = yym5
31510						if false {
31511						} else {
31512							h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
31513						}
31514					}
31515				}
31516			}
31517			if yyr2 || yy2arr2 {
31518				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
31519				if yyq2[1] {
31520					if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
31521						r.EncodeNil()
31522					} else {
31523						yym7 := z.EncBinary()
31524						_ = yym7
31525						if false {
31526						} else {
31527							h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
31528						}
31529					}
31530				} else {
31531					r.EncodeNil()
31532				}
31533			} else {
31534				if yyq2[1] {
31535					z.EncSendContainerState(codecSelfer_containerMapKey1234)
31536					r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution"))
31537					z.EncSendContainerState(codecSelfer_containerMapValue1234)
31538					if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
31539						r.EncodeNil()
31540					} else {
31541						yym8 := z.EncBinary()
31542						_ = yym8
31543						if false {
31544						} else {
31545							h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
31546						}
31547					}
31548				}
31549			}
31550			if yyr2 || yy2arr2 {
31551				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
31552			} else {
31553				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
31554			}
31555		}
31556	}
31557}
31558
31559func (x *PodAffinity) CodecDecodeSelf(d *codec1978.Decoder) {
31560	var h codecSelfer1234
31561	z, r := codec1978.GenHelperDecoder(d)
31562	_, _, _ = h, z, r
31563	yym1 := z.DecBinary()
31564	_ = yym1
31565	if false {
31566	} else if z.HasExtensions() && z.DecExt(x) {
31567	} else {
31568		yyct2 := r.ContainerType()
31569		if yyct2 == codecSelferValueTypeMap1234 {
31570			yyl2 := r.ReadMapStart()
31571			if yyl2 == 0 {
31572				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
31573			} else {
31574				x.codecDecodeSelfFromMap(yyl2, d)
31575			}
31576		} else if yyct2 == codecSelferValueTypeArray1234 {
31577			yyl2 := r.ReadArrayStart()
31578			if yyl2 == 0 {
31579				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
31580			} else {
31581				x.codecDecodeSelfFromArray(yyl2, d)
31582			}
31583		} else {
31584			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
31585		}
31586	}
31587}
31588
31589func (x *PodAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
31590	var h codecSelfer1234
31591	z, r := codec1978.GenHelperDecoder(d)
31592	_, _, _ = h, z, r
31593	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
31594	_ = yys3Slc
31595	var yyhl3 bool = l >= 0
31596	for yyj3 := 0; ; yyj3++ {
31597		if yyhl3 {
31598			if yyj3 >= l {
31599				break
31600			}
31601		} else {
31602			if r.CheckBreak() {
31603				break
31604			}
31605		}
31606		z.DecSendContainerState(codecSelfer_containerMapKey1234)
31607		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
31608		yys3 := string(yys3Slc)
31609		z.DecSendContainerState(codecSelfer_containerMapValue1234)
31610		switch yys3 {
31611		case "requiredDuringSchedulingIgnoredDuringExecution":
31612			if r.TryDecodeAsNil() {
31613				x.RequiredDuringSchedulingIgnoredDuringExecution = nil
31614			} else {
31615				yyv4 := &x.RequiredDuringSchedulingIgnoredDuringExecution
31616				yym5 := z.DecBinary()
31617				_ = yym5
31618				if false {
31619				} else {
31620					h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv4), d)
31621				}
31622			}
31623		case "preferredDuringSchedulingIgnoredDuringExecution":
31624			if r.TryDecodeAsNil() {
31625				x.PreferredDuringSchedulingIgnoredDuringExecution = nil
31626			} else {
31627				yyv6 := &x.PreferredDuringSchedulingIgnoredDuringExecution
31628				yym7 := z.DecBinary()
31629				_ = yym7
31630				if false {
31631				} else {
31632					h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv6), d)
31633				}
31634			}
31635		default:
31636			z.DecStructFieldNotFound(-1, yys3)
31637		} // end switch yys3
31638	} // end for yyj3
31639	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
31640}
31641
31642func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
31643	var h codecSelfer1234
31644	z, r := codec1978.GenHelperDecoder(d)
31645	_, _, _ = h, z, r
31646	var yyj8 int
31647	var yyb8 bool
31648	var yyhl8 bool = l >= 0
31649	yyj8++
31650	if yyhl8 {
31651		yyb8 = yyj8 > l
31652	} else {
31653		yyb8 = r.CheckBreak()
31654	}
31655	if yyb8 {
31656		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
31657		return
31658	}
31659	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
31660	if r.TryDecodeAsNil() {
31661		x.RequiredDuringSchedulingIgnoredDuringExecution = nil
31662	} else {
31663		yyv9 := &x.RequiredDuringSchedulingIgnoredDuringExecution
31664		yym10 := z.DecBinary()
31665		_ = yym10
31666		if false {
31667		} else {
31668			h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv9), d)
31669		}
31670	}
31671	yyj8++
31672	if yyhl8 {
31673		yyb8 = yyj8 > l
31674	} else {
31675		yyb8 = r.CheckBreak()
31676	}
31677	if yyb8 {
31678		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
31679		return
31680	}
31681	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
31682	if r.TryDecodeAsNil() {
31683		x.PreferredDuringSchedulingIgnoredDuringExecution = nil
31684	} else {
31685		yyv11 := &x.PreferredDuringSchedulingIgnoredDuringExecution
31686		yym12 := z.DecBinary()
31687		_ = yym12
31688		if false {
31689		} else {
31690			h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv11), d)
31691		}
31692	}
31693	for {
31694		yyj8++
31695		if yyhl8 {
31696			yyb8 = yyj8 > l
31697		} else {
31698			yyb8 = r.CheckBreak()
31699		}
31700		if yyb8 {
31701			break
31702		}
31703		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
31704		z.DecStructFieldNotFound(yyj8-1, "")
31705	}
31706	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
31707}
31708
31709func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
31710	var h codecSelfer1234
31711	z, r := codec1978.GenHelperEncoder(e)
31712	_, _, _ = h, z, r
31713	if x == nil {
31714		r.EncodeNil()
31715	} else {
31716		yym1 := z.EncBinary()
31717		_ = yym1
31718		if false {
31719		} else if z.HasExtensions() && z.EncExt(x) {
31720		} else {
31721			yysep2 := !z.EncBinary()
31722			yy2arr2 := z.EncBasicHandle().StructToArray
31723			var yyq2 [2]bool
31724			_, _, _ = yysep2, yyq2, yy2arr2
31725			const yyr2 bool = false
31726			yyq2[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0
31727			yyq2[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0
31728			var yynn2 int
31729			if yyr2 || yy2arr2 {
31730				r.EncodeArrayStart(2)
31731			} else {
31732				yynn2 = 0
31733				for _, b := range yyq2 {
31734					if b {
31735						yynn2++
31736					}
31737				}
31738				r.EncodeMapStart(yynn2)
31739				yynn2 = 0
31740			}
31741			if yyr2 || yy2arr2 {
31742				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
31743				if yyq2[0] {
31744					if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
31745						r.EncodeNil()
31746					} else {
31747						yym4 := z.EncBinary()
31748						_ = yym4
31749						if false {
31750						} else {
31751							h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
31752						}
31753					}
31754				} else {
31755					r.EncodeNil()
31756				}
31757			} else {
31758				if yyq2[0] {
31759					z.EncSendContainerState(codecSelfer_containerMapKey1234)
31760					r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution"))
31761					z.EncSendContainerState(codecSelfer_containerMapValue1234)
31762					if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
31763						r.EncodeNil()
31764					} else {
31765						yym5 := z.EncBinary()
31766						_ = yym5
31767						if false {
31768						} else {
31769							h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
31770						}
31771					}
31772				}
31773			}
31774			if yyr2 || yy2arr2 {
31775				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
31776				if yyq2[1] {
31777					if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
31778						r.EncodeNil()
31779					} else {
31780						yym7 := z.EncBinary()
31781						_ = yym7
31782						if false {
31783						} else {
31784							h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
31785						}
31786					}
31787				} else {
31788					r.EncodeNil()
31789				}
31790			} else {
31791				if yyq2[1] {
31792					z.EncSendContainerState(codecSelfer_containerMapKey1234)
31793					r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution"))
31794					z.EncSendContainerState(codecSelfer_containerMapValue1234)
31795					if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
31796						r.EncodeNil()
31797					} else {
31798						yym8 := z.EncBinary()
31799						_ = yym8
31800						if false {
31801						} else {
31802							h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
31803						}
31804					}
31805				}
31806			}
31807			if yyr2 || yy2arr2 {
31808				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
31809			} else {
31810				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
31811			}
31812		}
31813	}
31814}
31815
31816func (x *PodAntiAffinity) CodecDecodeSelf(d *codec1978.Decoder) {
31817	var h codecSelfer1234
31818	z, r := codec1978.GenHelperDecoder(d)
31819	_, _, _ = h, z, r
31820	yym1 := z.DecBinary()
31821	_ = yym1
31822	if false {
31823	} else if z.HasExtensions() && z.DecExt(x) {
31824	} else {
31825		yyct2 := r.ContainerType()
31826		if yyct2 == codecSelferValueTypeMap1234 {
31827			yyl2 := r.ReadMapStart()
31828			if yyl2 == 0 {
31829				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
31830			} else {
31831				x.codecDecodeSelfFromMap(yyl2, d)
31832			}
31833		} else if yyct2 == codecSelferValueTypeArray1234 {
31834			yyl2 := r.ReadArrayStart()
31835			if yyl2 == 0 {
31836				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
31837			} else {
31838				x.codecDecodeSelfFromArray(yyl2, d)
31839			}
31840		} else {
31841			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
31842		}
31843	}
31844}
31845
31846func (x *PodAntiAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
31847	var h codecSelfer1234
31848	z, r := codec1978.GenHelperDecoder(d)
31849	_, _, _ = h, z, r
31850	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
31851	_ = yys3Slc
31852	var yyhl3 bool = l >= 0
31853	for yyj3 := 0; ; yyj3++ {
31854		if yyhl3 {
31855			if yyj3 >= l {
31856				break
31857			}
31858		} else {
31859			if r.CheckBreak() {
31860				break
31861			}
31862		}
31863		z.DecSendContainerState(codecSelfer_containerMapKey1234)
31864		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
31865		yys3 := string(yys3Slc)
31866		z.DecSendContainerState(codecSelfer_containerMapValue1234)
31867		switch yys3 {
31868		case "requiredDuringSchedulingIgnoredDuringExecution":
31869			if r.TryDecodeAsNil() {
31870				x.RequiredDuringSchedulingIgnoredDuringExecution = nil
31871			} else {
31872				yyv4 := &x.RequiredDuringSchedulingIgnoredDuringExecution
31873				yym5 := z.DecBinary()
31874				_ = yym5
31875				if false {
31876				} else {
31877					h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv4), d)
31878				}
31879			}
31880		case "preferredDuringSchedulingIgnoredDuringExecution":
31881			if r.TryDecodeAsNil() {
31882				x.PreferredDuringSchedulingIgnoredDuringExecution = nil
31883			} else {
31884				yyv6 := &x.PreferredDuringSchedulingIgnoredDuringExecution
31885				yym7 := z.DecBinary()
31886				_ = yym7
31887				if false {
31888				} else {
31889					h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv6), d)
31890				}
31891			}
31892		default:
31893			z.DecStructFieldNotFound(-1, yys3)
31894		} // end switch yys3
31895	} // end for yyj3
31896	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
31897}
31898
31899func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
31900	var h codecSelfer1234
31901	z, r := codec1978.GenHelperDecoder(d)
31902	_, _, _ = h, z, r
31903	var yyj8 int
31904	var yyb8 bool
31905	var yyhl8 bool = l >= 0
31906	yyj8++
31907	if yyhl8 {
31908		yyb8 = yyj8 > l
31909	} else {
31910		yyb8 = r.CheckBreak()
31911	}
31912	if yyb8 {
31913		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
31914		return
31915	}
31916	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
31917	if r.TryDecodeAsNil() {
31918		x.RequiredDuringSchedulingIgnoredDuringExecution = nil
31919	} else {
31920		yyv9 := &x.RequiredDuringSchedulingIgnoredDuringExecution
31921		yym10 := z.DecBinary()
31922		_ = yym10
31923		if false {
31924		} else {
31925			h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv9), d)
31926		}
31927	}
31928	yyj8++
31929	if yyhl8 {
31930		yyb8 = yyj8 > l
31931	} else {
31932		yyb8 = r.CheckBreak()
31933	}
31934	if yyb8 {
31935		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
31936		return
31937	}
31938	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
31939	if r.TryDecodeAsNil() {
31940		x.PreferredDuringSchedulingIgnoredDuringExecution = nil
31941	} else {
31942		yyv11 := &x.PreferredDuringSchedulingIgnoredDuringExecution
31943		yym12 := z.DecBinary()
31944		_ = yym12
31945		if false {
31946		} else {
31947			h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv11), d)
31948		}
31949	}
31950	for {
31951		yyj8++
31952		if yyhl8 {
31953			yyb8 = yyj8 > l
31954		} else {
31955			yyb8 = r.CheckBreak()
31956		}
31957		if yyb8 {
31958			break
31959		}
31960		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
31961		z.DecStructFieldNotFound(yyj8-1, "")
31962	}
31963	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
31964}
31965
31966func (x *WeightedPodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) {
31967	var h codecSelfer1234
31968	z, r := codec1978.GenHelperEncoder(e)
31969	_, _, _ = h, z, r
31970	if x == nil {
31971		r.EncodeNil()
31972	} else {
31973		yym1 := z.EncBinary()
31974		_ = yym1
31975		if false {
31976		} else if z.HasExtensions() && z.EncExt(x) {
31977		} else {
31978			yysep2 := !z.EncBinary()
31979			yy2arr2 := z.EncBasicHandle().StructToArray
31980			var yyq2 [2]bool
31981			_, _, _ = yysep2, yyq2, yy2arr2
31982			const yyr2 bool = false
31983			var yynn2 int
31984			if yyr2 || yy2arr2 {
31985				r.EncodeArrayStart(2)
31986			} else {
31987				yynn2 = 2
31988				for _, b := range yyq2 {
31989					if b {
31990						yynn2++
31991					}
31992				}
31993				r.EncodeMapStart(yynn2)
31994				yynn2 = 0
31995			}
31996			if yyr2 || yy2arr2 {
31997				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
31998				yym4 := z.EncBinary()
31999				_ = yym4
32000				if false {
32001				} else {
32002					r.EncodeInt(int64(x.Weight))
32003				}
32004			} else {
32005				z.EncSendContainerState(codecSelfer_containerMapKey1234)
32006				r.EncodeString(codecSelferC_UTF81234, string("weight"))
32007				z.EncSendContainerState(codecSelfer_containerMapValue1234)
32008				yym5 := z.EncBinary()
32009				_ = yym5
32010				if false {
32011				} else {
32012					r.EncodeInt(int64(x.Weight))
32013				}
32014			}
32015			if yyr2 || yy2arr2 {
32016				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
32017				yy7 := &x.PodAffinityTerm
32018				yy7.CodecEncodeSelf(e)
32019			} else {
32020				z.EncSendContainerState(codecSelfer_containerMapKey1234)
32021				r.EncodeString(codecSelferC_UTF81234, string("podAffinityTerm"))
32022				z.EncSendContainerState(codecSelfer_containerMapValue1234)
32023				yy9 := &x.PodAffinityTerm
32024				yy9.CodecEncodeSelf(e)
32025			}
32026			if yyr2 || yy2arr2 {
32027				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
32028			} else {
32029				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
32030			}
32031		}
32032	}
32033}
32034
32035func (x *WeightedPodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) {
32036	var h codecSelfer1234
32037	z, r := codec1978.GenHelperDecoder(d)
32038	_, _, _ = h, z, r
32039	yym1 := z.DecBinary()
32040	_ = yym1
32041	if false {
32042	} else if z.HasExtensions() && z.DecExt(x) {
32043	} else {
32044		yyct2 := r.ContainerType()
32045		if yyct2 == codecSelferValueTypeMap1234 {
32046			yyl2 := r.ReadMapStart()
32047			if yyl2 == 0 {
32048				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
32049			} else {
32050				x.codecDecodeSelfFromMap(yyl2, d)
32051			}
32052		} else if yyct2 == codecSelferValueTypeArray1234 {
32053			yyl2 := r.ReadArrayStart()
32054			if yyl2 == 0 {
32055				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
32056			} else {
32057				x.codecDecodeSelfFromArray(yyl2, d)
32058			}
32059		} else {
32060			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
32061		}
32062	}
32063}
32064
32065func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
32066	var h codecSelfer1234
32067	z, r := codec1978.GenHelperDecoder(d)
32068	_, _, _ = h, z, r
32069	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
32070	_ = yys3Slc
32071	var yyhl3 bool = l >= 0
32072	for yyj3 := 0; ; yyj3++ {
32073		if yyhl3 {
32074			if yyj3 >= l {
32075				break
32076			}
32077		} else {
32078			if r.CheckBreak() {
32079				break
32080			}
32081		}
32082		z.DecSendContainerState(codecSelfer_containerMapKey1234)
32083		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
32084		yys3 := string(yys3Slc)
32085		z.DecSendContainerState(codecSelfer_containerMapValue1234)
32086		switch yys3 {
32087		case "weight":
32088			if r.TryDecodeAsNil() {
32089				x.Weight = 0
32090			} else {
32091				yyv4 := &x.Weight
32092				yym5 := z.DecBinary()
32093				_ = yym5
32094				if false {
32095				} else {
32096					*((*int32)(yyv4)) = int32(r.DecodeInt(32))
32097				}
32098			}
32099		case "podAffinityTerm":
32100			if r.TryDecodeAsNil() {
32101				x.PodAffinityTerm = PodAffinityTerm{}
32102			} else {
32103				yyv6 := &x.PodAffinityTerm
32104				yyv6.CodecDecodeSelf(d)
32105			}
32106		default:
32107			z.DecStructFieldNotFound(-1, yys3)
32108		} // end switch yys3
32109	} // end for yyj3
32110	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
32111}
32112
32113func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
32114	var h codecSelfer1234
32115	z, r := codec1978.GenHelperDecoder(d)
32116	_, _, _ = h, z, r
32117	var yyj7 int
32118	var yyb7 bool
32119	var yyhl7 bool = l >= 0
32120	yyj7++
32121	if yyhl7 {
32122		yyb7 = yyj7 > l
32123	} else {
32124		yyb7 = r.CheckBreak()
32125	}
32126	if yyb7 {
32127		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
32128		return
32129	}
32130	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
32131	if r.TryDecodeAsNil() {
32132		x.Weight = 0
32133	} else {
32134		yyv8 := &x.Weight
32135		yym9 := z.DecBinary()
32136		_ = yym9
32137		if false {
32138		} else {
32139			*((*int32)(yyv8)) = int32(r.DecodeInt(32))
32140		}
32141	}
32142	yyj7++
32143	if yyhl7 {
32144		yyb7 = yyj7 > l
32145	} else {
32146		yyb7 = r.CheckBreak()
32147	}
32148	if yyb7 {
32149		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
32150		return
32151	}
32152	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
32153	if r.TryDecodeAsNil() {
32154		x.PodAffinityTerm = PodAffinityTerm{}
32155	} else {
32156		yyv10 := &x.PodAffinityTerm
32157		yyv10.CodecDecodeSelf(d)
32158	}
32159	for {
32160		yyj7++
32161		if yyhl7 {
32162			yyb7 = yyj7 > l
32163		} else {
32164			yyb7 = r.CheckBreak()
32165		}
32166		if yyb7 {
32167			break
32168		}
32169		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
32170		z.DecStructFieldNotFound(yyj7-1, "")
32171	}
32172	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
32173}
32174
32175func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) {
32176	var h codecSelfer1234
32177	z, r := codec1978.GenHelperEncoder(e)
32178	_, _, _ = h, z, r
32179	if x == nil {
32180		r.EncodeNil()
32181	} else {
32182		yym1 := z.EncBinary()
32183		_ = yym1
32184		if false {
32185		} else if z.HasExtensions() && z.EncExt(x) {
32186		} else {
32187			yysep2 := !z.EncBinary()
32188			yy2arr2 := z.EncBasicHandle().StructToArray
32189			var yyq2 [3]bool
32190			_, _, _ = yysep2, yyq2, yy2arr2
32191			const yyr2 bool = false
32192			yyq2[0] = x.LabelSelector != nil
32193			yyq2[1] = len(x.Namespaces) != 0
32194			yyq2[2] = x.TopologyKey != ""
32195			var yynn2 int
32196			if yyr2 || yy2arr2 {
32197				r.EncodeArrayStart(3)
32198			} else {
32199				yynn2 = 0
32200				for _, b := range yyq2 {
32201					if b {
32202						yynn2++
32203					}
32204				}
32205				r.EncodeMapStart(yynn2)
32206				yynn2 = 0
32207			}
32208			if yyr2 || yy2arr2 {
32209				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
32210				if yyq2[0] {
32211					if x.LabelSelector == nil {
32212						r.EncodeNil()
32213					} else {
32214						yym4 := z.EncBinary()
32215						_ = yym4
32216						if false {
32217						} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
32218						} else {
32219							z.EncFallback(x.LabelSelector)
32220						}
32221					}
32222				} else {
32223					r.EncodeNil()
32224				}
32225			} else {
32226				if yyq2[0] {
32227					z.EncSendContainerState(codecSelfer_containerMapKey1234)
32228					r.EncodeString(codecSelferC_UTF81234, string("labelSelector"))
32229					z.EncSendContainerState(codecSelfer_containerMapValue1234)
32230					if x.LabelSelector == nil {
32231						r.EncodeNil()
32232					} else {
32233						yym5 := z.EncBinary()
32234						_ = yym5
32235						if false {
32236						} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
32237						} else {
32238							z.EncFallback(x.LabelSelector)
32239						}
32240					}
32241				}
32242			}
32243			if yyr2 || yy2arr2 {
32244				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
32245				if yyq2[1] {
32246					if x.Namespaces == nil {
32247						r.EncodeNil()
32248					} else {
32249						yym7 := z.EncBinary()
32250						_ = yym7
32251						if false {
32252						} else {
32253							z.F.EncSliceStringV(x.Namespaces, false, e)
32254						}
32255					}
32256				} else {
32257					r.EncodeNil()
32258				}
32259			} else {
32260				if yyq2[1] {
32261					z.EncSendContainerState(codecSelfer_containerMapKey1234)
32262					r.EncodeString(codecSelferC_UTF81234, string("namespaces"))
32263					z.EncSendContainerState(codecSelfer_containerMapValue1234)
32264					if x.Namespaces == nil {
32265						r.EncodeNil()
32266					} else {
32267						yym8 := z.EncBinary()
32268						_ = yym8
32269						if false {
32270						} else {
32271							z.F.EncSliceStringV(x.Namespaces, false, e)
32272						}
32273					}
32274				}
32275			}
32276			if yyr2 || yy2arr2 {
32277				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
32278				if yyq2[2] {
32279					yym10 := z.EncBinary()
32280					_ = yym10
32281					if false {
32282					} else {
32283						r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey))
32284					}
32285				} else {
32286					r.EncodeString(codecSelferC_UTF81234, "")
32287				}
32288			} else {
32289				if yyq2[2] {
32290					z.EncSendContainerState(codecSelfer_containerMapKey1234)
32291					r.EncodeString(codecSelferC_UTF81234, string("topologyKey"))
32292					z.EncSendContainerState(codecSelfer_containerMapValue1234)
32293					yym11 := z.EncBinary()
32294					_ = yym11
32295					if false {
32296					} else {
32297						r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey))
32298					}
32299				}
32300			}
32301			if yyr2 || yy2arr2 {
32302				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
32303			} else {
32304				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
32305			}
32306		}
32307	}
32308}
32309
32310func (x *PodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) {
32311	var h codecSelfer1234
32312	z, r := codec1978.GenHelperDecoder(d)
32313	_, _, _ = h, z, r
32314	yym1 := z.DecBinary()
32315	_ = yym1
32316	if false {
32317	} else if z.HasExtensions() && z.DecExt(x) {
32318	} else {
32319		yyct2 := r.ContainerType()
32320		if yyct2 == codecSelferValueTypeMap1234 {
32321			yyl2 := r.ReadMapStart()
32322			if yyl2 == 0 {
32323				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
32324			} else {
32325				x.codecDecodeSelfFromMap(yyl2, d)
32326			}
32327		} else if yyct2 == codecSelferValueTypeArray1234 {
32328			yyl2 := r.ReadArrayStart()
32329			if yyl2 == 0 {
32330				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
32331			} else {
32332				x.codecDecodeSelfFromArray(yyl2, d)
32333			}
32334		} else {
32335			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
32336		}
32337	}
32338}
32339
32340func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
32341	var h codecSelfer1234
32342	z, r := codec1978.GenHelperDecoder(d)
32343	_, _, _ = h, z, r
32344	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
32345	_ = yys3Slc
32346	var yyhl3 bool = l >= 0
32347	for yyj3 := 0; ; yyj3++ {
32348		if yyhl3 {
32349			if yyj3 >= l {
32350				break
32351			}
32352		} else {
32353			if r.CheckBreak() {
32354				break
32355			}
32356		}
32357		z.DecSendContainerState(codecSelfer_containerMapKey1234)
32358		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
32359		yys3 := string(yys3Slc)
32360		z.DecSendContainerState(codecSelfer_containerMapValue1234)
32361		switch yys3 {
32362		case "labelSelector":
32363			if r.TryDecodeAsNil() {
32364				if x.LabelSelector != nil {
32365					x.LabelSelector = nil
32366				}
32367			} else {
32368				if x.LabelSelector == nil {
32369					x.LabelSelector = new(pkg2_v1.LabelSelector)
32370				}
32371				yym5 := z.DecBinary()
32372				_ = yym5
32373				if false {
32374				} else if z.HasExtensions() && z.DecExt(x.LabelSelector) {
32375				} else {
32376					z.DecFallback(x.LabelSelector, false)
32377				}
32378			}
32379		case "namespaces":
32380			if r.TryDecodeAsNil() {
32381				x.Namespaces = nil
32382			} else {
32383				yyv6 := &x.Namespaces
32384				yym7 := z.DecBinary()
32385				_ = yym7
32386				if false {
32387				} else {
32388					z.F.DecSliceStringX(yyv6, false, d)
32389				}
32390			}
32391		case "topologyKey":
32392			if r.TryDecodeAsNil() {
32393				x.TopologyKey = ""
32394			} else {
32395				yyv8 := &x.TopologyKey
32396				yym9 := z.DecBinary()
32397				_ = yym9
32398				if false {
32399				} else {
32400					*((*string)(yyv8)) = r.DecodeString()
32401				}
32402			}
32403		default:
32404			z.DecStructFieldNotFound(-1, yys3)
32405		} // end switch yys3
32406	} // end for yyj3
32407	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
32408}
32409
32410func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
32411	var h codecSelfer1234
32412	z, r := codec1978.GenHelperDecoder(d)
32413	_, _, _ = h, z, r
32414	var yyj10 int
32415	var yyb10 bool
32416	var yyhl10 bool = l >= 0
32417	yyj10++
32418	if yyhl10 {
32419		yyb10 = yyj10 > l
32420	} else {
32421		yyb10 = r.CheckBreak()
32422	}
32423	if yyb10 {
32424		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
32425		return
32426	}
32427	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
32428	if r.TryDecodeAsNil() {
32429		if x.LabelSelector != nil {
32430			x.LabelSelector = nil
32431		}
32432	} else {
32433		if x.LabelSelector == nil {
32434			x.LabelSelector = new(pkg2_v1.LabelSelector)
32435		}
32436		yym12 := z.DecBinary()
32437		_ = yym12
32438		if false {
32439		} else if z.HasExtensions() && z.DecExt(x.LabelSelector) {
32440		} else {
32441			z.DecFallback(x.LabelSelector, false)
32442		}
32443	}
32444	yyj10++
32445	if yyhl10 {
32446		yyb10 = yyj10 > l
32447	} else {
32448		yyb10 = r.CheckBreak()
32449	}
32450	if yyb10 {
32451		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
32452		return
32453	}
32454	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
32455	if r.TryDecodeAsNil() {
32456		x.Namespaces = nil
32457	} else {
32458		yyv13 := &x.Namespaces
32459		yym14 := z.DecBinary()
32460		_ = yym14
32461		if false {
32462		} else {
32463			z.F.DecSliceStringX(yyv13, false, d)
32464		}
32465	}
32466	yyj10++
32467	if yyhl10 {
32468		yyb10 = yyj10 > l
32469	} else {
32470		yyb10 = r.CheckBreak()
32471	}
32472	if yyb10 {
32473		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
32474		return
32475	}
32476	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
32477	if r.TryDecodeAsNil() {
32478		x.TopologyKey = ""
32479	} else {
32480		yyv15 := &x.TopologyKey
32481		yym16 := z.DecBinary()
32482		_ = yym16
32483		if false {
32484		} else {
32485			*((*string)(yyv15)) = r.DecodeString()
32486		}
32487	}
32488	for {
32489		yyj10++
32490		if yyhl10 {
32491			yyb10 = yyj10 > l
32492		} else {
32493			yyb10 = r.CheckBreak()
32494		}
32495		if yyb10 {
32496			break
32497		}
32498		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
32499		z.DecStructFieldNotFound(yyj10-1, "")
32500	}
32501	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
32502}
32503
32504func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
32505	var h codecSelfer1234
32506	z, r := codec1978.GenHelperEncoder(e)
32507	_, _, _ = h, z, r
32508	if x == nil {
32509		r.EncodeNil()
32510	} else {
32511		yym1 := z.EncBinary()
32512		_ = yym1
32513		if false {
32514		} else if z.HasExtensions() && z.EncExt(x) {
32515		} else {
32516			yysep2 := !z.EncBinary()
32517			yy2arr2 := z.EncBasicHandle().StructToArray
32518			var yyq2 [2]bool
32519			_, _, _ = yysep2, yyq2, yy2arr2
32520			const yyr2 bool = false
32521			yyq2[0] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil
32522			yyq2[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0
32523			var yynn2 int
32524			if yyr2 || yy2arr2 {
32525				r.EncodeArrayStart(2)
32526			} else {
32527				yynn2 = 0
32528				for _, b := range yyq2 {
32529					if b {
32530						yynn2++
32531					}
32532				}
32533				r.EncodeMapStart(yynn2)
32534				yynn2 = 0
32535			}
32536			if yyr2 || yy2arr2 {
32537				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
32538				if yyq2[0] {
32539					if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
32540						r.EncodeNil()
32541					} else {
32542						x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e)
32543					}
32544				} else {
32545					r.EncodeNil()
32546				}
32547			} else {
32548				if yyq2[0] {
32549					z.EncSendContainerState(codecSelfer_containerMapKey1234)
32550					r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution"))
32551					z.EncSendContainerState(codecSelfer_containerMapValue1234)
32552					if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
32553						r.EncodeNil()
32554					} else {
32555						x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e)
32556					}
32557				}
32558			}
32559			if yyr2 || yy2arr2 {
32560				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
32561				if yyq2[1] {
32562					if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
32563						r.EncodeNil()
32564					} else {
32565						yym7 := z.EncBinary()
32566						_ = yym7
32567						if false {
32568						} else {
32569							h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
32570						}
32571					}
32572				} else {
32573					r.EncodeNil()
32574				}
32575			} else {
32576				if yyq2[1] {
32577					z.EncSendContainerState(codecSelfer_containerMapKey1234)
32578					r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution"))
32579					z.EncSendContainerState(codecSelfer_containerMapValue1234)
32580					if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
32581						r.EncodeNil()
32582					} else {
32583						yym8 := z.EncBinary()
32584						_ = yym8
32585						if false {
32586						} else {
32587							h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
32588						}
32589					}
32590				}
32591			}
32592			if yyr2 || yy2arr2 {
32593				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
32594			} else {
32595				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
32596			}
32597		}
32598	}
32599}
32600
32601func (x *NodeAffinity) CodecDecodeSelf(d *codec1978.Decoder) {
32602	var h codecSelfer1234
32603	z, r := codec1978.GenHelperDecoder(d)
32604	_, _, _ = h, z, r
32605	yym1 := z.DecBinary()
32606	_ = yym1
32607	if false {
32608	} else if z.HasExtensions() && z.DecExt(x) {
32609	} else {
32610		yyct2 := r.ContainerType()
32611		if yyct2 == codecSelferValueTypeMap1234 {
32612			yyl2 := r.ReadMapStart()
32613			if yyl2 == 0 {
32614				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
32615			} else {
32616				x.codecDecodeSelfFromMap(yyl2, d)
32617			}
32618		} else if yyct2 == codecSelferValueTypeArray1234 {
32619			yyl2 := r.ReadArrayStart()
32620			if yyl2 == 0 {
32621				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
32622			} else {
32623				x.codecDecodeSelfFromArray(yyl2, d)
32624			}
32625		} else {
32626			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
32627		}
32628	}
32629}
32630
32631func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
32632	var h codecSelfer1234
32633	z, r := codec1978.GenHelperDecoder(d)
32634	_, _, _ = h, z, r
32635	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
32636	_ = yys3Slc
32637	var yyhl3 bool = l >= 0
32638	for yyj3 := 0; ; yyj3++ {
32639		if yyhl3 {
32640			if yyj3 >= l {
32641				break
32642			}
32643		} else {
32644			if r.CheckBreak() {
32645				break
32646			}
32647		}
32648		z.DecSendContainerState(codecSelfer_containerMapKey1234)
32649		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
32650		yys3 := string(yys3Slc)
32651		z.DecSendContainerState(codecSelfer_containerMapValue1234)
32652		switch yys3 {
32653		case "requiredDuringSchedulingIgnoredDuringExecution":
32654			if r.TryDecodeAsNil() {
32655				if x.RequiredDuringSchedulingIgnoredDuringExecution != nil {
32656					x.RequiredDuringSchedulingIgnoredDuringExecution = nil
32657				}
32658			} else {
32659				if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
32660					x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector)
32661				}
32662				x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d)
32663			}
32664		case "preferredDuringSchedulingIgnoredDuringExecution":
32665			if r.TryDecodeAsNil() {
32666				x.PreferredDuringSchedulingIgnoredDuringExecution = nil
32667			} else {
32668				yyv5 := &x.PreferredDuringSchedulingIgnoredDuringExecution
32669				yym6 := z.DecBinary()
32670				_ = yym6
32671				if false {
32672				} else {
32673					h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv5), d)
32674				}
32675			}
32676		default:
32677			z.DecStructFieldNotFound(-1, yys3)
32678		} // end switch yys3
32679	} // end for yyj3
32680	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
32681}
32682
32683func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
32684	var h codecSelfer1234
32685	z, r := codec1978.GenHelperDecoder(d)
32686	_, _, _ = h, z, r
32687	var yyj7 int
32688	var yyb7 bool
32689	var yyhl7 bool = l >= 0
32690	yyj7++
32691	if yyhl7 {
32692		yyb7 = yyj7 > l
32693	} else {
32694		yyb7 = r.CheckBreak()
32695	}
32696	if yyb7 {
32697		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
32698		return
32699	}
32700	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
32701	if r.TryDecodeAsNil() {
32702		if x.RequiredDuringSchedulingIgnoredDuringExecution != nil {
32703			x.RequiredDuringSchedulingIgnoredDuringExecution = nil
32704		}
32705	} else {
32706		if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
32707			x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector)
32708		}
32709		x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d)
32710	}
32711	yyj7++
32712	if yyhl7 {
32713		yyb7 = yyj7 > l
32714	} else {
32715		yyb7 = r.CheckBreak()
32716	}
32717	if yyb7 {
32718		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
32719		return
32720	}
32721	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
32722	if r.TryDecodeAsNil() {
32723		x.PreferredDuringSchedulingIgnoredDuringExecution = nil
32724	} else {
32725		yyv9 := &x.PreferredDuringSchedulingIgnoredDuringExecution
32726		yym10 := z.DecBinary()
32727		_ = yym10
32728		if false {
32729		} else {
32730			h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv9), d)
32731		}
32732	}
32733	for {
32734		yyj7++
32735		if yyhl7 {
32736			yyb7 = yyj7 > l
32737		} else {
32738			yyb7 = r.CheckBreak()
32739		}
32740		if yyb7 {
32741			break
32742		}
32743		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
32744		z.DecStructFieldNotFound(yyj7-1, "")
32745	}
32746	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
32747}
32748
32749func (x *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) {
32750	var h codecSelfer1234
32751	z, r := codec1978.GenHelperEncoder(e)
32752	_, _, _ = h, z, r
32753	if x == nil {
32754		r.EncodeNil()
32755	} else {
32756		yym1 := z.EncBinary()
32757		_ = yym1
32758		if false {
32759		} else if z.HasExtensions() && z.EncExt(x) {
32760		} else {
32761			yysep2 := !z.EncBinary()
32762			yy2arr2 := z.EncBasicHandle().StructToArray
32763			var yyq2 [2]bool
32764			_, _, _ = yysep2, yyq2, yy2arr2
32765			const yyr2 bool = false
32766			var yynn2 int
32767			if yyr2 || yy2arr2 {
32768				r.EncodeArrayStart(2)
32769			} else {
32770				yynn2 = 2
32771				for _, b := range yyq2 {
32772					if b {
32773						yynn2++
32774					}
32775				}
32776				r.EncodeMapStart(yynn2)
32777				yynn2 = 0
32778			}
32779			if yyr2 || yy2arr2 {
32780				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
32781				yym4 := z.EncBinary()
32782				_ = yym4
32783				if false {
32784				} else {
32785					r.EncodeInt(int64(x.Weight))
32786				}
32787			} else {
32788				z.EncSendContainerState(codecSelfer_containerMapKey1234)
32789				r.EncodeString(codecSelferC_UTF81234, string("weight"))
32790				z.EncSendContainerState(codecSelfer_containerMapValue1234)
32791				yym5 := z.EncBinary()
32792				_ = yym5
32793				if false {
32794				} else {
32795					r.EncodeInt(int64(x.Weight))
32796				}
32797			}
32798			if yyr2 || yy2arr2 {
32799				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
32800				yy7 := &x.Preference
32801				yy7.CodecEncodeSelf(e)
32802			} else {
32803				z.EncSendContainerState(codecSelfer_containerMapKey1234)
32804				r.EncodeString(codecSelferC_UTF81234, string("preference"))
32805				z.EncSendContainerState(codecSelfer_containerMapValue1234)
32806				yy9 := &x.Preference
32807				yy9.CodecEncodeSelf(e)
32808			}
32809			if yyr2 || yy2arr2 {
32810				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
32811			} else {
32812				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
32813			}
32814		}
32815	}
32816}
32817
32818func (x *PreferredSchedulingTerm) CodecDecodeSelf(d *codec1978.Decoder) {
32819	var h codecSelfer1234
32820	z, r := codec1978.GenHelperDecoder(d)
32821	_, _, _ = h, z, r
32822	yym1 := z.DecBinary()
32823	_ = yym1
32824	if false {
32825	} else if z.HasExtensions() && z.DecExt(x) {
32826	} else {
32827		yyct2 := r.ContainerType()
32828		if yyct2 == codecSelferValueTypeMap1234 {
32829			yyl2 := r.ReadMapStart()
32830			if yyl2 == 0 {
32831				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
32832			} else {
32833				x.codecDecodeSelfFromMap(yyl2, d)
32834			}
32835		} else if yyct2 == codecSelferValueTypeArray1234 {
32836			yyl2 := r.ReadArrayStart()
32837			if yyl2 == 0 {
32838				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
32839			} else {
32840				x.codecDecodeSelfFromArray(yyl2, d)
32841			}
32842		} else {
32843			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
32844		}
32845	}
32846}
32847
32848func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
32849	var h codecSelfer1234
32850	z, r := codec1978.GenHelperDecoder(d)
32851	_, _, _ = h, z, r
32852	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
32853	_ = yys3Slc
32854	var yyhl3 bool = l >= 0
32855	for yyj3 := 0; ; yyj3++ {
32856		if yyhl3 {
32857			if yyj3 >= l {
32858				break
32859			}
32860		} else {
32861			if r.CheckBreak() {
32862				break
32863			}
32864		}
32865		z.DecSendContainerState(codecSelfer_containerMapKey1234)
32866		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
32867		yys3 := string(yys3Slc)
32868		z.DecSendContainerState(codecSelfer_containerMapValue1234)
32869		switch yys3 {
32870		case "weight":
32871			if r.TryDecodeAsNil() {
32872				x.Weight = 0
32873			} else {
32874				yyv4 := &x.Weight
32875				yym5 := z.DecBinary()
32876				_ = yym5
32877				if false {
32878				} else {
32879					*((*int32)(yyv4)) = int32(r.DecodeInt(32))
32880				}
32881			}
32882		case "preference":
32883			if r.TryDecodeAsNil() {
32884				x.Preference = NodeSelectorTerm{}
32885			} else {
32886				yyv6 := &x.Preference
32887				yyv6.CodecDecodeSelf(d)
32888			}
32889		default:
32890			z.DecStructFieldNotFound(-1, yys3)
32891		} // end switch yys3
32892	} // end for yyj3
32893	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
32894}
32895
32896func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
32897	var h codecSelfer1234
32898	z, r := codec1978.GenHelperDecoder(d)
32899	_, _, _ = h, z, r
32900	var yyj7 int
32901	var yyb7 bool
32902	var yyhl7 bool = l >= 0
32903	yyj7++
32904	if yyhl7 {
32905		yyb7 = yyj7 > l
32906	} else {
32907		yyb7 = r.CheckBreak()
32908	}
32909	if yyb7 {
32910		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
32911		return
32912	}
32913	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
32914	if r.TryDecodeAsNil() {
32915		x.Weight = 0
32916	} else {
32917		yyv8 := &x.Weight
32918		yym9 := z.DecBinary()
32919		_ = yym9
32920		if false {
32921		} else {
32922			*((*int32)(yyv8)) = int32(r.DecodeInt(32))
32923		}
32924	}
32925	yyj7++
32926	if yyhl7 {
32927		yyb7 = yyj7 > l
32928	} else {
32929		yyb7 = r.CheckBreak()
32930	}
32931	if yyb7 {
32932		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
32933		return
32934	}
32935	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
32936	if r.TryDecodeAsNil() {
32937		x.Preference = NodeSelectorTerm{}
32938	} else {
32939		yyv10 := &x.Preference
32940		yyv10.CodecDecodeSelf(d)
32941	}
32942	for {
32943		yyj7++
32944		if yyhl7 {
32945			yyb7 = yyj7 > l
32946		} else {
32947			yyb7 = r.CheckBreak()
32948		}
32949		if yyb7 {
32950			break
32951		}
32952		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
32953		z.DecStructFieldNotFound(yyj7-1, "")
32954	}
32955	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
32956}
32957
32958func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) {
32959	var h codecSelfer1234
32960	z, r := codec1978.GenHelperEncoder(e)
32961	_, _, _ = h, z, r
32962	if x == nil {
32963		r.EncodeNil()
32964	} else {
32965		yym1 := z.EncBinary()
32966		_ = yym1
32967		if false {
32968		} else if z.HasExtensions() && z.EncExt(x) {
32969		} else {
32970			yysep2 := !z.EncBinary()
32971			yy2arr2 := z.EncBasicHandle().StructToArray
32972			var yyq2 [4]bool
32973			_, _, _ = yysep2, yyq2, yy2arr2
32974			const yyr2 bool = false
32975			yyq2[1] = x.Value != ""
32976			yyq2[3] = true
32977			var yynn2 int
32978			if yyr2 || yy2arr2 {
32979				r.EncodeArrayStart(4)
32980			} else {
32981				yynn2 = 2
32982				for _, b := range yyq2 {
32983					if b {
32984						yynn2++
32985					}
32986				}
32987				r.EncodeMapStart(yynn2)
32988				yynn2 = 0
32989			}
32990			if yyr2 || yy2arr2 {
32991				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
32992				yym4 := z.EncBinary()
32993				_ = yym4
32994				if false {
32995				} else {
32996					r.EncodeString(codecSelferC_UTF81234, string(x.Key))
32997				}
32998			} else {
32999				z.EncSendContainerState(codecSelfer_containerMapKey1234)
33000				r.EncodeString(codecSelferC_UTF81234, string("key"))
33001				z.EncSendContainerState(codecSelfer_containerMapValue1234)
33002				yym5 := z.EncBinary()
33003				_ = yym5
33004				if false {
33005				} else {
33006					r.EncodeString(codecSelferC_UTF81234, string(x.Key))
33007				}
33008			}
33009			if yyr2 || yy2arr2 {
33010				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
33011				if yyq2[1] {
33012					yym7 := z.EncBinary()
33013					_ = yym7
33014					if false {
33015					} else {
33016						r.EncodeString(codecSelferC_UTF81234, string(x.Value))
33017					}
33018				} else {
33019					r.EncodeString(codecSelferC_UTF81234, "")
33020				}
33021			} else {
33022				if yyq2[1] {
33023					z.EncSendContainerState(codecSelfer_containerMapKey1234)
33024					r.EncodeString(codecSelferC_UTF81234, string("value"))
33025					z.EncSendContainerState(codecSelfer_containerMapValue1234)
33026					yym8 := z.EncBinary()
33027					_ = yym8
33028					if false {
33029					} else {
33030						r.EncodeString(codecSelferC_UTF81234, string(x.Value))
33031					}
33032				}
33033			}
33034			if yyr2 || yy2arr2 {
33035				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
33036				x.Effect.CodecEncodeSelf(e)
33037			} else {
33038				z.EncSendContainerState(codecSelfer_containerMapKey1234)
33039				r.EncodeString(codecSelferC_UTF81234, string("effect"))
33040				z.EncSendContainerState(codecSelfer_containerMapValue1234)
33041				x.Effect.CodecEncodeSelf(e)
33042			}
33043			if yyr2 || yy2arr2 {
33044				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
33045				if yyq2[3] {
33046					yy13 := &x.TimeAdded
33047					yym14 := z.EncBinary()
33048					_ = yym14
33049					if false {
33050					} else if z.HasExtensions() && z.EncExt(yy13) {
33051					} else if yym14 {
33052						z.EncBinaryMarshal(yy13)
33053					} else if !yym14 && z.IsJSONHandle() {
33054						z.EncJSONMarshal(yy13)
33055					} else {
33056						z.EncFallback(yy13)
33057					}
33058				} else {
33059					r.EncodeNil()
33060				}
33061			} else {
33062				if yyq2[3] {
33063					z.EncSendContainerState(codecSelfer_containerMapKey1234)
33064					r.EncodeString(codecSelferC_UTF81234, string("timeAdded"))
33065					z.EncSendContainerState(codecSelfer_containerMapValue1234)
33066					yy15 := &x.TimeAdded
33067					yym16 := z.EncBinary()
33068					_ = yym16
33069					if false {
33070					} else if z.HasExtensions() && z.EncExt(yy15) {
33071					} else if yym16 {
33072						z.EncBinaryMarshal(yy15)
33073					} else if !yym16 && z.IsJSONHandle() {
33074						z.EncJSONMarshal(yy15)
33075					} else {
33076						z.EncFallback(yy15)
33077					}
33078				}
33079			}
33080			if yyr2 || yy2arr2 {
33081				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
33082			} else {
33083				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
33084			}
33085		}
33086	}
33087}
33088
33089func (x *Taint) CodecDecodeSelf(d *codec1978.Decoder) {
33090	var h codecSelfer1234
33091	z, r := codec1978.GenHelperDecoder(d)
33092	_, _, _ = h, z, r
33093	yym1 := z.DecBinary()
33094	_ = yym1
33095	if false {
33096	} else if z.HasExtensions() && z.DecExt(x) {
33097	} else {
33098		yyct2 := r.ContainerType()
33099		if yyct2 == codecSelferValueTypeMap1234 {
33100			yyl2 := r.ReadMapStart()
33101			if yyl2 == 0 {
33102				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
33103			} else {
33104				x.codecDecodeSelfFromMap(yyl2, d)
33105			}
33106		} else if yyct2 == codecSelferValueTypeArray1234 {
33107			yyl2 := r.ReadArrayStart()
33108			if yyl2 == 0 {
33109				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
33110			} else {
33111				x.codecDecodeSelfFromArray(yyl2, d)
33112			}
33113		} else {
33114			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
33115		}
33116	}
33117}
33118
33119func (x *Taint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
33120	var h codecSelfer1234
33121	z, r := codec1978.GenHelperDecoder(d)
33122	_, _, _ = h, z, r
33123	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
33124	_ = yys3Slc
33125	var yyhl3 bool = l >= 0
33126	for yyj3 := 0; ; yyj3++ {
33127		if yyhl3 {
33128			if yyj3 >= l {
33129				break
33130			}
33131		} else {
33132			if r.CheckBreak() {
33133				break
33134			}
33135		}
33136		z.DecSendContainerState(codecSelfer_containerMapKey1234)
33137		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
33138		yys3 := string(yys3Slc)
33139		z.DecSendContainerState(codecSelfer_containerMapValue1234)
33140		switch yys3 {
33141		case "key":
33142			if r.TryDecodeAsNil() {
33143				x.Key = ""
33144			} else {
33145				yyv4 := &x.Key
33146				yym5 := z.DecBinary()
33147				_ = yym5
33148				if false {
33149				} else {
33150					*((*string)(yyv4)) = r.DecodeString()
33151				}
33152			}
33153		case "value":
33154			if r.TryDecodeAsNil() {
33155				x.Value = ""
33156			} else {
33157				yyv6 := &x.Value
33158				yym7 := z.DecBinary()
33159				_ = yym7
33160				if false {
33161				} else {
33162					*((*string)(yyv6)) = r.DecodeString()
33163				}
33164			}
33165		case "effect":
33166			if r.TryDecodeAsNil() {
33167				x.Effect = ""
33168			} else {
33169				yyv8 := &x.Effect
33170				yyv8.CodecDecodeSelf(d)
33171			}
33172		case "timeAdded":
33173			if r.TryDecodeAsNil() {
33174				x.TimeAdded = pkg2_v1.Time{}
33175			} else {
33176				yyv9 := &x.TimeAdded
33177				yym10 := z.DecBinary()
33178				_ = yym10
33179				if false {
33180				} else if z.HasExtensions() && z.DecExt(yyv9) {
33181				} else if yym10 {
33182					z.DecBinaryUnmarshal(yyv9)
33183				} else if !yym10 && z.IsJSONHandle() {
33184					z.DecJSONUnmarshal(yyv9)
33185				} else {
33186					z.DecFallback(yyv9, false)
33187				}
33188			}
33189		default:
33190			z.DecStructFieldNotFound(-1, yys3)
33191		} // end switch yys3
33192	} // end for yyj3
33193	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
33194}
33195
33196func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
33197	var h codecSelfer1234
33198	z, r := codec1978.GenHelperDecoder(d)
33199	_, _, _ = h, z, r
33200	var yyj11 int
33201	var yyb11 bool
33202	var yyhl11 bool = l >= 0
33203	yyj11++
33204	if yyhl11 {
33205		yyb11 = yyj11 > l
33206	} else {
33207		yyb11 = r.CheckBreak()
33208	}
33209	if yyb11 {
33210		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
33211		return
33212	}
33213	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
33214	if r.TryDecodeAsNil() {
33215		x.Key = ""
33216	} else {
33217		yyv12 := &x.Key
33218		yym13 := z.DecBinary()
33219		_ = yym13
33220		if false {
33221		} else {
33222			*((*string)(yyv12)) = r.DecodeString()
33223		}
33224	}
33225	yyj11++
33226	if yyhl11 {
33227		yyb11 = yyj11 > l
33228	} else {
33229		yyb11 = r.CheckBreak()
33230	}
33231	if yyb11 {
33232		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
33233		return
33234	}
33235	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
33236	if r.TryDecodeAsNil() {
33237		x.Value = ""
33238	} else {
33239		yyv14 := &x.Value
33240		yym15 := z.DecBinary()
33241		_ = yym15
33242		if false {
33243		} else {
33244			*((*string)(yyv14)) = r.DecodeString()
33245		}
33246	}
33247	yyj11++
33248	if yyhl11 {
33249		yyb11 = yyj11 > l
33250	} else {
33251		yyb11 = r.CheckBreak()
33252	}
33253	if yyb11 {
33254		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
33255		return
33256	}
33257	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
33258	if r.TryDecodeAsNil() {
33259		x.Effect = ""
33260	} else {
33261		yyv16 := &x.Effect
33262		yyv16.CodecDecodeSelf(d)
33263	}
33264	yyj11++
33265	if yyhl11 {
33266		yyb11 = yyj11 > l
33267	} else {
33268		yyb11 = r.CheckBreak()
33269	}
33270	if yyb11 {
33271		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
33272		return
33273	}
33274	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
33275	if r.TryDecodeAsNil() {
33276		x.TimeAdded = pkg2_v1.Time{}
33277	} else {
33278		yyv17 := &x.TimeAdded
33279		yym18 := z.DecBinary()
33280		_ = yym18
33281		if false {
33282		} else if z.HasExtensions() && z.DecExt(yyv17) {
33283		} else if yym18 {
33284			z.DecBinaryUnmarshal(yyv17)
33285		} else if !yym18 && z.IsJSONHandle() {
33286			z.DecJSONUnmarshal(yyv17)
33287		} else {
33288			z.DecFallback(yyv17, false)
33289		}
33290	}
33291	for {
33292		yyj11++
33293		if yyhl11 {
33294			yyb11 = yyj11 > l
33295		} else {
33296			yyb11 = r.CheckBreak()
33297		}
33298		if yyb11 {
33299			break
33300		}
33301		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
33302		z.DecStructFieldNotFound(yyj11-1, "")
33303	}
33304	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
33305}
33306
33307func (x TaintEffect) CodecEncodeSelf(e *codec1978.Encoder) {
33308	var h codecSelfer1234
33309	z, r := codec1978.GenHelperEncoder(e)
33310	_, _, _ = h, z, r
33311	yym1 := z.EncBinary()
33312	_ = yym1
33313	if false {
33314	} else if z.HasExtensions() && z.EncExt(x) {
33315	} else {
33316		r.EncodeString(codecSelferC_UTF81234, string(x))
33317	}
33318}
33319
33320func (x *TaintEffect) CodecDecodeSelf(d *codec1978.Decoder) {
33321	var h codecSelfer1234
33322	z, r := codec1978.GenHelperDecoder(d)
33323	_, _, _ = h, z, r
33324	yym1 := z.DecBinary()
33325	_ = yym1
33326	if false {
33327	} else if z.HasExtensions() && z.DecExt(x) {
33328	} else {
33329		*((*string)(x)) = r.DecodeString()
33330	}
33331}
33332
33333func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) {
33334	var h codecSelfer1234
33335	z, r := codec1978.GenHelperEncoder(e)
33336	_, _, _ = h, z, r
33337	if x == nil {
33338		r.EncodeNil()
33339	} else {
33340		yym1 := z.EncBinary()
33341		_ = yym1
33342		if false {
33343		} else if z.HasExtensions() && z.EncExt(x) {
33344		} else {
33345			yysep2 := !z.EncBinary()
33346			yy2arr2 := z.EncBasicHandle().StructToArray
33347			var yyq2 [5]bool
33348			_, _, _ = yysep2, yyq2, yy2arr2
33349			const yyr2 bool = false
33350			yyq2[0] = x.Key != ""
33351			yyq2[1] = x.Operator != ""
33352			yyq2[2] = x.Value != ""
33353			yyq2[3] = x.Effect != ""
33354			yyq2[4] = x.TolerationSeconds != nil
33355			var yynn2 int
33356			if yyr2 || yy2arr2 {
33357				r.EncodeArrayStart(5)
33358			} else {
33359				yynn2 = 0
33360				for _, b := range yyq2 {
33361					if b {
33362						yynn2++
33363					}
33364				}
33365				r.EncodeMapStart(yynn2)
33366				yynn2 = 0
33367			}
33368			if yyr2 || yy2arr2 {
33369				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
33370				if yyq2[0] {
33371					yym4 := z.EncBinary()
33372					_ = yym4
33373					if false {
33374					} else {
33375						r.EncodeString(codecSelferC_UTF81234, string(x.Key))
33376					}
33377				} else {
33378					r.EncodeString(codecSelferC_UTF81234, "")
33379				}
33380			} else {
33381				if yyq2[0] {
33382					z.EncSendContainerState(codecSelfer_containerMapKey1234)
33383					r.EncodeString(codecSelferC_UTF81234, string("key"))
33384					z.EncSendContainerState(codecSelfer_containerMapValue1234)
33385					yym5 := z.EncBinary()
33386					_ = yym5
33387					if false {
33388					} else {
33389						r.EncodeString(codecSelferC_UTF81234, string(x.Key))
33390					}
33391				}
33392			}
33393			if yyr2 || yy2arr2 {
33394				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
33395				if yyq2[1] {
33396					x.Operator.CodecEncodeSelf(e)
33397				} else {
33398					r.EncodeString(codecSelferC_UTF81234, "")
33399				}
33400			} else {
33401				if yyq2[1] {
33402					z.EncSendContainerState(codecSelfer_containerMapKey1234)
33403					r.EncodeString(codecSelferC_UTF81234, string("operator"))
33404					z.EncSendContainerState(codecSelfer_containerMapValue1234)
33405					x.Operator.CodecEncodeSelf(e)
33406				}
33407			}
33408			if yyr2 || yy2arr2 {
33409				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
33410				if yyq2[2] {
33411					yym10 := z.EncBinary()
33412					_ = yym10
33413					if false {
33414					} else {
33415						r.EncodeString(codecSelferC_UTF81234, string(x.Value))
33416					}
33417				} else {
33418					r.EncodeString(codecSelferC_UTF81234, "")
33419				}
33420			} else {
33421				if yyq2[2] {
33422					z.EncSendContainerState(codecSelfer_containerMapKey1234)
33423					r.EncodeString(codecSelferC_UTF81234, string("value"))
33424					z.EncSendContainerState(codecSelfer_containerMapValue1234)
33425					yym11 := z.EncBinary()
33426					_ = yym11
33427					if false {
33428					} else {
33429						r.EncodeString(codecSelferC_UTF81234, string(x.Value))
33430					}
33431				}
33432			}
33433			if yyr2 || yy2arr2 {
33434				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
33435				if yyq2[3] {
33436					x.Effect.CodecEncodeSelf(e)
33437				} else {
33438					r.EncodeString(codecSelferC_UTF81234, "")
33439				}
33440			} else {
33441				if yyq2[3] {
33442					z.EncSendContainerState(codecSelfer_containerMapKey1234)
33443					r.EncodeString(codecSelferC_UTF81234, string("effect"))
33444					z.EncSendContainerState(codecSelfer_containerMapValue1234)
33445					x.Effect.CodecEncodeSelf(e)
33446				}
33447			}
33448			if yyr2 || yy2arr2 {
33449				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
33450				if yyq2[4] {
33451					if x.TolerationSeconds == nil {
33452						r.EncodeNil()
33453					} else {
33454						yy16 := *x.TolerationSeconds
33455						yym17 := z.EncBinary()
33456						_ = yym17
33457						if false {
33458						} else {
33459							r.EncodeInt(int64(yy16))
33460						}
33461					}
33462				} else {
33463					r.EncodeNil()
33464				}
33465			} else {
33466				if yyq2[4] {
33467					z.EncSendContainerState(codecSelfer_containerMapKey1234)
33468					r.EncodeString(codecSelferC_UTF81234, string("tolerationSeconds"))
33469					z.EncSendContainerState(codecSelfer_containerMapValue1234)
33470					if x.TolerationSeconds == nil {
33471						r.EncodeNil()
33472					} else {
33473						yy18 := *x.TolerationSeconds
33474						yym19 := z.EncBinary()
33475						_ = yym19
33476						if false {
33477						} else {
33478							r.EncodeInt(int64(yy18))
33479						}
33480					}
33481				}
33482			}
33483			if yyr2 || yy2arr2 {
33484				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
33485			} else {
33486				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
33487			}
33488		}
33489	}
33490}
33491
33492func (x *Toleration) CodecDecodeSelf(d *codec1978.Decoder) {
33493	var h codecSelfer1234
33494	z, r := codec1978.GenHelperDecoder(d)
33495	_, _, _ = h, z, r
33496	yym1 := z.DecBinary()
33497	_ = yym1
33498	if false {
33499	} else if z.HasExtensions() && z.DecExt(x) {
33500	} else {
33501		yyct2 := r.ContainerType()
33502		if yyct2 == codecSelferValueTypeMap1234 {
33503			yyl2 := r.ReadMapStart()
33504			if yyl2 == 0 {
33505				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
33506			} else {
33507				x.codecDecodeSelfFromMap(yyl2, d)
33508			}
33509		} else if yyct2 == codecSelferValueTypeArray1234 {
33510			yyl2 := r.ReadArrayStart()
33511			if yyl2 == 0 {
33512				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
33513			} else {
33514				x.codecDecodeSelfFromArray(yyl2, d)
33515			}
33516		} else {
33517			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
33518		}
33519	}
33520}
33521
33522func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
33523	var h codecSelfer1234
33524	z, r := codec1978.GenHelperDecoder(d)
33525	_, _, _ = h, z, r
33526	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
33527	_ = yys3Slc
33528	var yyhl3 bool = l >= 0
33529	for yyj3 := 0; ; yyj3++ {
33530		if yyhl3 {
33531			if yyj3 >= l {
33532				break
33533			}
33534		} else {
33535			if r.CheckBreak() {
33536				break
33537			}
33538		}
33539		z.DecSendContainerState(codecSelfer_containerMapKey1234)
33540		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
33541		yys3 := string(yys3Slc)
33542		z.DecSendContainerState(codecSelfer_containerMapValue1234)
33543		switch yys3 {
33544		case "key":
33545			if r.TryDecodeAsNil() {
33546				x.Key = ""
33547			} else {
33548				yyv4 := &x.Key
33549				yym5 := z.DecBinary()
33550				_ = yym5
33551				if false {
33552				} else {
33553					*((*string)(yyv4)) = r.DecodeString()
33554				}
33555			}
33556		case "operator":
33557			if r.TryDecodeAsNil() {
33558				x.Operator = ""
33559			} else {
33560				yyv6 := &x.Operator
33561				yyv6.CodecDecodeSelf(d)
33562			}
33563		case "value":
33564			if r.TryDecodeAsNil() {
33565				x.Value = ""
33566			} else {
33567				yyv7 := &x.Value
33568				yym8 := z.DecBinary()
33569				_ = yym8
33570				if false {
33571				} else {
33572					*((*string)(yyv7)) = r.DecodeString()
33573				}
33574			}
33575		case "effect":
33576			if r.TryDecodeAsNil() {
33577				x.Effect = ""
33578			} else {
33579				yyv9 := &x.Effect
33580				yyv9.CodecDecodeSelf(d)
33581			}
33582		case "tolerationSeconds":
33583			if r.TryDecodeAsNil() {
33584				if x.TolerationSeconds != nil {
33585					x.TolerationSeconds = nil
33586				}
33587			} else {
33588				if x.TolerationSeconds == nil {
33589					x.TolerationSeconds = new(int64)
33590				}
33591				yym11 := z.DecBinary()
33592				_ = yym11
33593				if false {
33594				} else {
33595					*((*int64)(x.TolerationSeconds)) = int64(r.DecodeInt(64))
33596				}
33597			}
33598		default:
33599			z.DecStructFieldNotFound(-1, yys3)
33600		} // end switch yys3
33601	} // end for yyj3
33602	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
33603}
33604
33605func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
33606	var h codecSelfer1234
33607	z, r := codec1978.GenHelperDecoder(d)
33608	_, _, _ = h, z, r
33609	var yyj12 int
33610	var yyb12 bool
33611	var yyhl12 bool = l >= 0
33612	yyj12++
33613	if yyhl12 {
33614		yyb12 = yyj12 > l
33615	} else {
33616		yyb12 = r.CheckBreak()
33617	}
33618	if yyb12 {
33619		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
33620		return
33621	}
33622	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
33623	if r.TryDecodeAsNil() {
33624		x.Key = ""
33625	} else {
33626		yyv13 := &x.Key
33627		yym14 := z.DecBinary()
33628		_ = yym14
33629		if false {
33630		} else {
33631			*((*string)(yyv13)) = r.DecodeString()
33632		}
33633	}
33634	yyj12++
33635	if yyhl12 {
33636		yyb12 = yyj12 > l
33637	} else {
33638		yyb12 = r.CheckBreak()
33639	}
33640	if yyb12 {
33641		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
33642		return
33643	}
33644	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
33645	if r.TryDecodeAsNil() {
33646		x.Operator = ""
33647	} else {
33648		yyv15 := &x.Operator
33649		yyv15.CodecDecodeSelf(d)
33650	}
33651	yyj12++
33652	if yyhl12 {
33653		yyb12 = yyj12 > l
33654	} else {
33655		yyb12 = r.CheckBreak()
33656	}
33657	if yyb12 {
33658		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
33659		return
33660	}
33661	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
33662	if r.TryDecodeAsNil() {
33663		x.Value = ""
33664	} else {
33665		yyv16 := &x.Value
33666		yym17 := z.DecBinary()
33667		_ = yym17
33668		if false {
33669		} else {
33670			*((*string)(yyv16)) = r.DecodeString()
33671		}
33672	}
33673	yyj12++
33674	if yyhl12 {
33675		yyb12 = yyj12 > l
33676	} else {
33677		yyb12 = r.CheckBreak()
33678	}
33679	if yyb12 {
33680		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
33681		return
33682	}
33683	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
33684	if r.TryDecodeAsNil() {
33685		x.Effect = ""
33686	} else {
33687		yyv18 := &x.Effect
33688		yyv18.CodecDecodeSelf(d)
33689	}
33690	yyj12++
33691	if yyhl12 {
33692		yyb12 = yyj12 > l
33693	} else {
33694		yyb12 = r.CheckBreak()
33695	}
33696	if yyb12 {
33697		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
33698		return
33699	}
33700	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
33701	if r.TryDecodeAsNil() {
33702		if x.TolerationSeconds != nil {
33703			x.TolerationSeconds = nil
33704		}
33705	} else {
33706		if x.TolerationSeconds == nil {
33707			x.TolerationSeconds = new(int64)
33708		}
33709		yym20 := z.DecBinary()
33710		_ = yym20
33711		if false {
33712		} else {
33713			*((*int64)(x.TolerationSeconds)) = int64(r.DecodeInt(64))
33714		}
33715	}
33716	for {
33717		yyj12++
33718		if yyhl12 {
33719			yyb12 = yyj12 > l
33720		} else {
33721			yyb12 = r.CheckBreak()
33722		}
33723		if yyb12 {
33724			break
33725		}
33726		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
33727		z.DecStructFieldNotFound(yyj12-1, "")
33728	}
33729	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
33730}
33731
33732func (x TolerationOperator) CodecEncodeSelf(e *codec1978.Encoder) {
33733	var h codecSelfer1234
33734	z, r := codec1978.GenHelperEncoder(e)
33735	_, _, _ = h, z, r
33736	yym1 := z.EncBinary()
33737	_ = yym1
33738	if false {
33739	} else if z.HasExtensions() && z.EncExt(x) {
33740	} else {
33741		r.EncodeString(codecSelferC_UTF81234, string(x))
33742	}
33743}
33744
33745func (x *TolerationOperator) CodecDecodeSelf(d *codec1978.Decoder) {
33746	var h codecSelfer1234
33747	z, r := codec1978.GenHelperDecoder(d)
33748	_, _, _ = h, z, r
33749	yym1 := z.DecBinary()
33750	_ = yym1
33751	if false {
33752	} else if z.HasExtensions() && z.DecExt(x) {
33753	} else {
33754		*((*string)(x)) = r.DecodeString()
33755	}
33756}
33757
33758func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) {
33759	var h codecSelfer1234
33760	z, r := codec1978.GenHelperEncoder(e)
33761	_, _, _ = h, z, r
33762	if x == nil {
33763		r.EncodeNil()
33764	} else {
33765		yym1 := z.EncBinary()
33766		_ = yym1
33767		if false {
33768		} else if z.HasExtensions() && z.EncExt(x) {
33769		} else {
33770			yysep2 := !z.EncBinary()
33771			yy2arr2 := z.EncBasicHandle().StructToArray
33772			var yyq2 [22]bool
33773			_, _, _ = yysep2, yyq2, yy2arr2
33774			const yyr2 bool = false
33775			yyq2[0] = len(x.Volumes) != 0
33776			yyq2[1] = len(x.InitContainers) != 0
33777			yyq2[3] = x.RestartPolicy != ""
33778			yyq2[4] = x.TerminationGracePeriodSeconds != nil
33779			yyq2[5] = x.ActiveDeadlineSeconds != nil
33780			yyq2[6] = x.DNSPolicy != ""
33781			yyq2[7] = len(x.NodeSelector) != 0
33782			yyq2[8] = x.ServiceAccountName != ""
33783			yyq2[9] = x.DeprecatedServiceAccount != ""
33784			yyq2[10] = x.AutomountServiceAccountToken != nil
33785			yyq2[11] = x.NodeName != ""
33786			yyq2[12] = x.HostNetwork != false
33787			yyq2[13] = x.HostPID != false
33788			yyq2[14] = x.HostIPC != false
33789			yyq2[15] = x.SecurityContext != nil
33790			yyq2[16] = len(x.ImagePullSecrets) != 0
33791			yyq2[17] = x.Hostname != ""
33792			yyq2[18] = x.Subdomain != ""
33793			yyq2[19] = x.Affinity != nil
33794			yyq2[20] = x.SchedulerName != ""
33795			yyq2[21] = len(x.Tolerations) != 0
33796			var yynn2 int
33797			if yyr2 || yy2arr2 {
33798				r.EncodeArrayStart(22)
33799			} else {
33800				yynn2 = 1
33801				for _, b := range yyq2 {
33802					if b {
33803						yynn2++
33804					}
33805				}
33806				r.EncodeMapStart(yynn2)
33807				yynn2 = 0
33808			}
33809			if yyr2 || yy2arr2 {
33810				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
33811				if yyq2[0] {
33812					if x.Volumes == nil {
33813						r.EncodeNil()
33814					} else {
33815						yym4 := z.EncBinary()
33816						_ = yym4
33817						if false {
33818						} else {
33819							h.encSliceVolume(([]Volume)(x.Volumes), e)
33820						}
33821					}
33822				} else {
33823					r.EncodeNil()
33824				}
33825			} else {
33826				if yyq2[0] {
33827					z.EncSendContainerState(codecSelfer_containerMapKey1234)
33828					r.EncodeString(codecSelferC_UTF81234, string("volumes"))
33829					z.EncSendContainerState(codecSelfer_containerMapValue1234)
33830					if x.Volumes == nil {
33831						r.EncodeNil()
33832					} else {
33833						yym5 := z.EncBinary()
33834						_ = yym5
33835						if false {
33836						} else {
33837							h.encSliceVolume(([]Volume)(x.Volumes), e)
33838						}
33839					}
33840				}
33841			}
33842			if yyr2 || yy2arr2 {
33843				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
33844				if yyq2[1] {
33845					if x.InitContainers == nil {
33846						r.EncodeNil()
33847					} else {
33848						yym7 := z.EncBinary()
33849						_ = yym7
33850						if false {
33851						} else {
33852							h.encSliceContainer(([]Container)(x.InitContainers), e)
33853						}
33854					}
33855				} else {
33856					r.EncodeNil()
33857				}
33858			} else {
33859				if yyq2[1] {
33860					z.EncSendContainerState(codecSelfer_containerMapKey1234)
33861					r.EncodeString(codecSelferC_UTF81234, string("initContainers"))
33862					z.EncSendContainerState(codecSelfer_containerMapValue1234)
33863					if x.InitContainers == nil {
33864						r.EncodeNil()
33865					} else {
33866						yym8 := z.EncBinary()
33867						_ = yym8
33868						if false {
33869						} else {
33870							h.encSliceContainer(([]Container)(x.InitContainers), e)
33871						}
33872					}
33873				}
33874			}
33875			if yyr2 || yy2arr2 {
33876				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
33877				if x.Containers == nil {
33878					r.EncodeNil()
33879				} else {
33880					yym10 := z.EncBinary()
33881					_ = yym10
33882					if false {
33883					} else {
33884						h.encSliceContainer(([]Container)(x.Containers), e)
33885					}
33886				}
33887			} else {
33888				z.EncSendContainerState(codecSelfer_containerMapKey1234)
33889				r.EncodeString(codecSelferC_UTF81234, string("containers"))
33890				z.EncSendContainerState(codecSelfer_containerMapValue1234)
33891				if x.Containers == nil {
33892					r.EncodeNil()
33893				} else {
33894					yym11 := z.EncBinary()
33895					_ = yym11
33896					if false {
33897					} else {
33898						h.encSliceContainer(([]Container)(x.Containers), e)
33899					}
33900				}
33901			}
33902			if yyr2 || yy2arr2 {
33903				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
33904				if yyq2[3] {
33905					x.RestartPolicy.CodecEncodeSelf(e)
33906				} else {
33907					r.EncodeString(codecSelferC_UTF81234, "")
33908				}
33909			} else {
33910				if yyq2[3] {
33911					z.EncSendContainerState(codecSelfer_containerMapKey1234)
33912					r.EncodeString(codecSelferC_UTF81234, string("restartPolicy"))
33913					z.EncSendContainerState(codecSelfer_containerMapValue1234)
33914					x.RestartPolicy.CodecEncodeSelf(e)
33915				}
33916			}
33917			if yyr2 || yy2arr2 {
33918				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
33919				if yyq2[4] {
33920					if x.TerminationGracePeriodSeconds == nil {
33921						r.EncodeNil()
33922					} else {
33923						yy16 := *x.TerminationGracePeriodSeconds
33924						yym17 := z.EncBinary()
33925						_ = yym17
33926						if false {
33927						} else {
33928							r.EncodeInt(int64(yy16))
33929						}
33930					}
33931				} else {
33932					r.EncodeNil()
33933				}
33934			} else {
33935				if yyq2[4] {
33936					z.EncSendContainerState(codecSelfer_containerMapKey1234)
33937					r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds"))
33938					z.EncSendContainerState(codecSelfer_containerMapValue1234)
33939					if x.TerminationGracePeriodSeconds == nil {
33940						r.EncodeNil()
33941					} else {
33942						yy18 := *x.TerminationGracePeriodSeconds
33943						yym19 := z.EncBinary()
33944						_ = yym19
33945						if false {
33946						} else {
33947							r.EncodeInt(int64(yy18))
33948						}
33949					}
33950				}
33951			}
33952			if yyr2 || yy2arr2 {
33953				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
33954				if yyq2[5] {
33955					if x.ActiveDeadlineSeconds == nil {
33956						r.EncodeNil()
33957					} else {
33958						yy21 := *x.ActiveDeadlineSeconds
33959						yym22 := z.EncBinary()
33960						_ = yym22
33961						if false {
33962						} else {
33963							r.EncodeInt(int64(yy21))
33964						}
33965					}
33966				} else {
33967					r.EncodeNil()
33968				}
33969			} else {
33970				if yyq2[5] {
33971					z.EncSendContainerState(codecSelfer_containerMapKey1234)
33972					r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds"))
33973					z.EncSendContainerState(codecSelfer_containerMapValue1234)
33974					if x.ActiveDeadlineSeconds == nil {
33975						r.EncodeNil()
33976					} else {
33977						yy23 := *x.ActiveDeadlineSeconds
33978						yym24 := z.EncBinary()
33979						_ = yym24
33980						if false {
33981						} else {
33982							r.EncodeInt(int64(yy23))
33983						}
33984					}
33985				}
33986			}
33987			if yyr2 || yy2arr2 {
33988				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
33989				if yyq2[6] {
33990					x.DNSPolicy.CodecEncodeSelf(e)
33991				} else {
33992					r.EncodeString(codecSelferC_UTF81234, "")
33993				}
33994			} else {
33995				if yyq2[6] {
33996					z.EncSendContainerState(codecSelfer_containerMapKey1234)
33997					r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy"))
33998					z.EncSendContainerState(codecSelfer_containerMapValue1234)
33999					x.DNSPolicy.CodecEncodeSelf(e)
34000				}
34001			}
34002			if yyr2 || yy2arr2 {
34003				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
34004				if yyq2[7] {
34005					if x.NodeSelector == nil {
34006						r.EncodeNil()
34007					} else {
34008						yym29 := z.EncBinary()
34009						_ = yym29
34010						if false {
34011						} else {
34012							z.F.EncMapStringStringV(x.NodeSelector, false, e)
34013						}
34014					}
34015				} else {
34016					r.EncodeNil()
34017				}
34018			} else {
34019				if yyq2[7] {
34020					z.EncSendContainerState(codecSelfer_containerMapKey1234)
34021					r.EncodeString(codecSelferC_UTF81234, string("nodeSelector"))
34022					z.EncSendContainerState(codecSelfer_containerMapValue1234)
34023					if x.NodeSelector == nil {
34024						r.EncodeNil()
34025					} else {
34026						yym30 := z.EncBinary()
34027						_ = yym30
34028						if false {
34029						} else {
34030							z.F.EncMapStringStringV(x.NodeSelector, false, e)
34031						}
34032					}
34033				}
34034			}
34035			if yyr2 || yy2arr2 {
34036				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
34037				if yyq2[8] {
34038					yym32 := z.EncBinary()
34039					_ = yym32
34040					if false {
34041					} else {
34042						r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName))
34043					}
34044				} else {
34045					r.EncodeString(codecSelferC_UTF81234, "")
34046				}
34047			} else {
34048				if yyq2[8] {
34049					z.EncSendContainerState(codecSelfer_containerMapKey1234)
34050					r.EncodeString(codecSelferC_UTF81234, string("serviceAccountName"))
34051					z.EncSendContainerState(codecSelfer_containerMapValue1234)
34052					yym33 := z.EncBinary()
34053					_ = yym33
34054					if false {
34055					} else {
34056						r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName))
34057					}
34058				}
34059			}
34060			if yyr2 || yy2arr2 {
34061				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
34062				if yyq2[9] {
34063					yym35 := z.EncBinary()
34064					_ = yym35
34065					if false {
34066					} else {
34067						r.EncodeString(codecSelferC_UTF81234, string(x.DeprecatedServiceAccount))
34068					}
34069				} else {
34070					r.EncodeString(codecSelferC_UTF81234, "")
34071				}
34072			} else {
34073				if yyq2[9] {
34074					z.EncSendContainerState(codecSelfer_containerMapKey1234)
34075					r.EncodeString(codecSelferC_UTF81234, string("serviceAccount"))
34076					z.EncSendContainerState(codecSelfer_containerMapValue1234)
34077					yym36 := z.EncBinary()
34078					_ = yym36
34079					if false {
34080					} else {
34081						r.EncodeString(codecSelferC_UTF81234, string(x.DeprecatedServiceAccount))
34082					}
34083				}
34084			}
34085			if yyr2 || yy2arr2 {
34086				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
34087				if yyq2[10] {
34088					if x.AutomountServiceAccountToken == nil {
34089						r.EncodeNil()
34090					} else {
34091						yy38 := *x.AutomountServiceAccountToken
34092						yym39 := z.EncBinary()
34093						_ = yym39
34094						if false {
34095						} else {
34096							r.EncodeBool(bool(yy38))
34097						}
34098					}
34099				} else {
34100					r.EncodeNil()
34101				}
34102			} else {
34103				if yyq2[10] {
34104					z.EncSendContainerState(codecSelfer_containerMapKey1234)
34105					r.EncodeString(codecSelferC_UTF81234, string("automountServiceAccountToken"))
34106					z.EncSendContainerState(codecSelfer_containerMapValue1234)
34107					if x.AutomountServiceAccountToken == nil {
34108						r.EncodeNil()
34109					} else {
34110						yy40 := *x.AutomountServiceAccountToken
34111						yym41 := z.EncBinary()
34112						_ = yym41
34113						if false {
34114						} else {
34115							r.EncodeBool(bool(yy40))
34116						}
34117					}
34118				}
34119			}
34120			if yyr2 || yy2arr2 {
34121				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
34122				if yyq2[11] {
34123					yym43 := z.EncBinary()
34124					_ = yym43
34125					if false {
34126					} else {
34127						r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
34128					}
34129				} else {
34130					r.EncodeString(codecSelferC_UTF81234, "")
34131				}
34132			} else {
34133				if yyq2[11] {
34134					z.EncSendContainerState(codecSelfer_containerMapKey1234)
34135					r.EncodeString(codecSelferC_UTF81234, string("nodeName"))
34136					z.EncSendContainerState(codecSelfer_containerMapValue1234)
34137					yym44 := z.EncBinary()
34138					_ = yym44
34139					if false {
34140					} else {
34141						r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
34142					}
34143				}
34144			}
34145			if yyr2 || yy2arr2 {
34146				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
34147				if yyq2[12] {
34148					yym46 := z.EncBinary()
34149					_ = yym46
34150					if false {
34151					} else {
34152						r.EncodeBool(bool(x.HostNetwork))
34153					}
34154				} else {
34155					r.EncodeBool(false)
34156				}
34157			} else {
34158				if yyq2[12] {
34159					z.EncSendContainerState(codecSelfer_containerMapKey1234)
34160					r.EncodeString(codecSelferC_UTF81234, string("hostNetwork"))
34161					z.EncSendContainerState(codecSelfer_containerMapValue1234)
34162					yym47 := z.EncBinary()
34163					_ = yym47
34164					if false {
34165					} else {
34166						r.EncodeBool(bool(x.HostNetwork))
34167					}
34168				}
34169			}
34170			if yyr2 || yy2arr2 {
34171				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
34172				if yyq2[13] {
34173					yym49 := z.EncBinary()
34174					_ = yym49
34175					if false {
34176					} else {
34177						r.EncodeBool(bool(x.HostPID))
34178					}
34179				} else {
34180					r.EncodeBool(false)
34181				}
34182			} else {
34183				if yyq2[13] {
34184					z.EncSendContainerState(codecSelfer_containerMapKey1234)
34185					r.EncodeString(codecSelferC_UTF81234, string("hostPID"))
34186					z.EncSendContainerState(codecSelfer_containerMapValue1234)
34187					yym50 := z.EncBinary()
34188					_ = yym50
34189					if false {
34190					} else {
34191						r.EncodeBool(bool(x.HostPID))
34192					}
34193				}
34194			}
34195			if yyr2 || yy2arr2 {
34196				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
34197				if yyq2[14] {
34198					yym52 := z.EncBinary()
34199					_ = yym52
34200					if false {
34201					} else {
34202						r.EncodeBool(bool(x.HostIPC))
34203					}
34204				} else {
34205					r.EncodeBool(false)
34206				}
34207			} else {
34208				if yyq2[14] {
34209					z.EncSendContainerState(codecSelfer_containerMapKey1234)
34210					r.EncodeString(codecSelferC_UTF81234, string("hostIPC"))
34211					z.EncSendContainerState(codecSelfer_containerMapValue1234)
34212					yym53 := z.EncBinary()
34213					_ = yym53
34214					if false {
34215					} else {
34216						r.EncodeBool(bool(x.HostIPC))
34217					}
34218				}
34219			}
34220			if yyr2 || yy2arr2 {
34221				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
34222				if yyq2[15] {
34223					if x.SecurityContext == nil {
34224						r.EncodeNil()
34225					} else {
34226						x.SecurityContext.CodecEncodeSelf(e)
34227					}
34228				} else {
34229					r.EncodeNil()
34230				}
34231			} else {
34232				if yyq2[15] {
34233					z.EncSendContainerState(codecSelfer_containerMapKey1234)
34234					r.EncodeString(codecSelferC_UTF81234, string("securityContext"))
34235					z.EncSendContainerState(codecSelfer_containerMapValue1234)
34236					if x.SecurityContext == nil {
34237						r.EncodeNil()
34238					} else {
34239						x.SecurityContext.CodecEncodeSelf(e)
34240					}
34241				}
34242			}
34243			if yyr2 || yy2arr2 {
34244				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
34245				if yyq2[16] {
34246					if x.ImagePullSecrets == nil {
34247						r.EncodeNil()
34248					} else {
34249						yym58 := z.EncBinary()
34250						_ = yym58
34251						if false {
34252						} else {
34253							h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
34254						}
34255					}
34256				} else {
34257					r.EncodeNil()
34258				}
34259			} else {
34260				if yyq2[16] {
34261					z.EncSendContainerState(codecSelfer_containerMapKey1234)
34262					r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
34263					z.EncSendContainerState(codecSelfer_containerMapValue1234)
34264					if x.ImagePullSecrets == nil {
34265						r.EncodeNil()
34266					} else {
34267						yym59 := z.EncBinary()
34268						_ = yym59
34269						if false {
34270						} else {
34271							h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
34272						}
34273					}
34274				}
34275			}
34276			if yyr2 || yy2arr2 {
34277				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
34278				if yyq2[17] {
34279					yym61 := z.EncBinary()
34280					_ = yym61
34281					if false {
34282					} else {
34283						r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
34284					}
34285				} else {
34286					r.EncodeString(codecSelferC_UTF81234, "")
34287				}
34288			} else {
34289				if yyq2[17] {
34290					z.EncSendContainerState(codecSelfer_containerMapKey1234)
34291					r.EncodeString(codecSelferC_UTF81234, string("hostname"))
34292					z.EncSendContainerState(codecSelfer_containerMapValue1234)
34293					yym62 := z.EncBinary()
34294					_ = yym62
34295					if false {
34296					} else {
34297						r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
34298					}
34299				}
34300			}
34301			if yyr2 || yy2arr2 {
34302				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
34303				if yyq2[18] {
34304					yym64 := z.EncBinary()
34305					_ = yym64
34306					if false {
34307					} else {
34308						r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain))
34309					}
34310				} else {
34311					r.EncodeString(codecSelferC_UTF81234, "")
34312				}
34313			} else {
34314				if yyq2[18] {
34315					z.EncSendContainerState(codecSelfer_containerMapKey1234)
34316					r.EncodeString(codecSelferC_UTF81234, string("subdomain"))
34317					z.EncSendContainerState(codecSelfer_containerMapValue1234)
34318					yym65 := z.EncBinary()
34319					_ = yym65
34320					if false {
34321					} else {
34322						r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain))
34323					}
34324				}
34325			}
34326			if yyr2 || yy2arr2 {
34327				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
34328				if yyq2[19] {
34329					if x.Affinity == nil {
34330						r.EncodeNil()
34331					} else {
34332						x.Affinity.CodecEncodeSelf(e)
34333					}
34334				} else {
34335					r.EncodeNil()
34336				}
34337			} else {
34338				if yyq2[19] {
34339					z.EncSendContainerState(codecSelfer_containerMapKey1234)
34340					r.EncodeString(codecSelferC_UTF81234, string("affinity"))
34341					z.EncSendContainerState(codecSelfer_containerMapValue1234)
34342					if x.Affinity == nil {
34343						r.EncodeNil()
34344					} else {
34345						x.Affinity.CodecEncodeSelf(e)
34346					}
34347				}
34348			}
34349			if yyr2 || yy2arr2 {
34350				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
34351				if yyq2[20] {
34352					yym70 := z.EncBinary()
34353					_ = yym70
34354					if false {
34355					} else {
34356						r.EncodeString(codecSelferC_UTF81234, string(x.SchedulerName))
34357					}
34358				} else {
34359					r.EncodeString(codecSelferC_UTF81234, "")
34360				}
34361			} else {
34362				if yyq2[20] {
34363					z.EncSendContainerState(codecSelfer_containerMapKey1234)
34364					r.EncodeString(codecSelferC_UTF81234, string("schedulerName"))
34365					z.EncSendContainerState(codecSelfer_containerMapValue1234)
34366					yym71 := z.EncBinary()
34367					_ = yym71
34368					if false {
34369					} else {
34370						r.EncodeString(codecSelferC_UTF81234, string(x.SchedulerName))
34371					}
34372				}
34373			}
34374			if yyr2 || yy2arr2 {
34375				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
34376				if yyq2[21] {
34377					if x.Tolerations == nil {
34378						r.EncodeNil()
34379					} else {
34380						yym73 := z.EncBinary()
34381						_ = yym73
34382						if false {
34383						} else {
34384							h.encSliceToleration(([]Toleration)(x.Tolerations), e)
34385						}
34386					}
34387				} else {
34388					r.EncodeNil()
34389				}
34390			} else {
34391				if yyq2[21] {
34392					z.EncSendContainerState(codecSelfer_containerMapKey1234)
34393					r.EncodeString(codecSelferC_UTF81234, string("tolerations"))
34394					z.EncSendContainerState(codecSelfer_containerMapValue1234)
34395					if x.Tolerations == nil {
34396						r.EncodeNil()
34397					} else {
34398						yym74 := z.EncBinary()
34399						_ = yym74
34400						if false {
34401						} else {
34402							h.encSliceToleration(([]Toleration)(x.Tolerations), e)
34403						}
34404					}
34405				}
34406			}
34407			if yyr2 || yy2arr2 {
34408				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
34409			} else {
34410				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
34411			}
34412		}
34413	}
34414}
34415
34416func (x *PodSpec) CodecDecodeSelf(d *codec1978.Decoder) {
34417	var h codecSelfer1234
34418	z, r := codec1978.GenHelperDecoder(d)
34419	_, _, _ = h, z, r
34420	yym1 := z.DecBinary()
34421	_ = yym1
34422	if false {
34423	} else if z.HasExtensions() && z.DecExt(x) {
34424	} else {
34425		yyct2 := r.ContainerType()
34426		if yyct2 == codecSelferValueTypeMap1234 {
34427			yyl2 := r.ReadMapStart()
34428			if yyl2 == 0 {
34429				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
34430			} else {
34431				x.codecDecodeSelfFromMap(yyl2, d)
34432			}
34433		} else if yyct2 == codecSelferValueTypeArray1234 {
34434			yyl2 := r.ReadArrayStart()
34435			if yyl2 == 0 {
34436				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
34437			} else {
34438				x.codecDecodeSelfFromArray(yyl2, d)
34439			}
34440		} else {
34441			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
34442		}
34443	}
34444}
34445
34446func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
34447	var h codecSelfer1234
34448	z, r := codec1978.GenHelperDecoder(d)
34449	_, _, _ = h, z, r
34450	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
34451	_ = yys3Slc
34452	var yyhl3 bool = l >= 0
34453	for yyj3 := 0; ; yyj3++ {
34454		if yyhl3 {
34455			if yyj3 >= l {
34456				break
34457			}
34458		} else {
34459			if r.CheckBreak() {
34460				break
34461			}
34462		}
34463		z.DecSendContainerState(codecSelfer_containerMapKey1234)
34464		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
34465		yys3 := string(yys3Slc)
34466		z.DecSendContainerState(codecSelfer_containerMapValue1234)
34467		switch yys3 {
34468		case "volumes":
34469			if r.TryDecodeAsNil() {
34470				x.Volumes = nil
34471			} else {
34472				yyv4 := &x.Volumes
34473				yym5 := z.DecBinary()
34474				_ = yym5
34475				if false {
34476				} else {
34477					h.decSliceVolume((*[]Volume)(yyv4), d)
34478				}
34479			}
34480		case "initContainers":
34481			if r.TryDecodeAsNil() {
34482				x.InitContainers = nil
34483			} else {
34484				yyv6 := &x.InitContainers
34485				yym7 := z.DecBinary()
34486				_ = yym7
34487				if false {
34488				} else {
34489					h.decSliceContainer((*[]Container)(yyv6), d)
34490				}
34491			}
34492		case "containers":
34493			if r.TryDecodeAsNil() {
34494				x.Containers = nil
34495			} else {
34496				yyv8 := &x.Containers
34497				yym9 := z.DecBinary()
34498				_ = yym9
34499				if false {
34500				} else {
34501					h.decSliceContainer((*[]Container)(yyv8), d)
34502				}
34503			}
34504		case "restartPolicy":
34505			if r.TryDecodeAsNil() {
34506				x.RestartPolicy = ""
34507			} else {
34508				yyv10 := &x.RestartPolicy
34509				yyv10.CodecDecodeSelf(d)
34510			}
34511		case "terminationGracePeriodSeconds":
34512			if r.TryDecodeAsNil() {
34513				if x.TerminationGracePeriodSeconds != nil {
34514					x.TerminationGracePeriodSeconds = nil
34515				}
34516			} else {
34517				if x.TerminationGracePeriodSeconds == nil {
34518					x.TerminationGracePeriodSeconds = new(int64)
34519				}
34520				yym12 := z.DecBinary()
34521				_ = yym12
34522				if false {
34523				} else {
34524					*((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64))
34525				}
34526			}
34527		case "activeDeadlineSeconds":
34528			if r.TryDecodeAsNil() {
34529				if x.ActiveDeadlineSeconds != nil {
34530					x.ActiveDeadlineSeconds = nil
34531				}
34532			} else {
34533				if x.ActiveDeadlineSeconds == nil {
34534					x.ActiveDeadlineSeconds = new(int64)
34535				}
34536				yym14 := z.DecBinary()
34537				_ = yym14
34538				if false {
34539				} else {
34540					*((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64))
34541				}
34542			}
34543		case "dnsPolicy":
34544			if r.TryDecodeAsNil() {
34545				x.DNSPolicy = ""
34546			} else {
34547				yyv15 := &x.DNSPolicy
34548				yyv15.CodecDecodeSelf(d)
34549			}
34550		case "nodeSelector":
34551			if r.TryDecodeAsNil() {
34552				x.NodeSelector = nil
34553			} else {
34554				yyv16 := &x.NodeSelector
34555				yym17 := z.DecBinary()
34556				_ = yym17
34557				if false {
34558				} else {
34559					z.F.DecMapStringStringX(yyv16, false, d)
34560				}
34561			}
34562		case "serviceAccountName":
34563			if r.TryDecodeAsNil() {
34564				x.ServiceAccountName = ""
34565			} else {
34566				yyv18 := &x.ServiceAccountName
34567				yym19 := z.DecBinary()
34568				_ = yym19
34569				if false {
34570				} else {
34571					*((*string)(yyv18)) = r.DecodeString()
34572				}
34573			}
34574		case "serviceAccount":
34575			if r.TryDecodeAsNil() {
34576				x.DeprecatedServiceAccount = ""
34577			} else {
34578				yyv20 := &x.DeprecatedServiceAccount
34579				yym21 := z.DecBinary()
34580				_ = yym21
34581				if false {
34582				} else {
34583					*((*string)(yyv20)) = r.DecodeString()
34584				}
34585			}
34586		case "automountServiceAccountToken":
34587			if r.TryDecodeAsNil() {
34588				if x.AutomountServiceAccountToken != nil {
34589					x.AutomountServiceAccountToken = nil
34590				}
34591			} else {
34592				if x.AutomountServiceAccountToken == nil {
34593					x.AutomountServiceAccountToken = new(bool)
34594				}
34595				yym23 := z.DecBinary()
34596				_ = yym23
34597				if false {
34598				} else {
34599					*((*bool)(x.AutomountServiceAccountToken)) = r.DecodeBool()
34600				}
34601			}
34602		case "nodeName":
34603			if r.TryDecodeAsNil() {
34604				x.NodeName = ""
34605			} else {
34606				yyv24 := &x.NodeName
34607				yym25 := z.DecBinary()
34608				_ = yym25
34609				if false {
34610				} else {
34611					*((*string)(yyv24)) = r.DecodeString()
34612				}
34613			}
34614		case "hostNetwork":
34615			if r.TryDecodeAsNil() {
34616				x.HostNetwork = false
34617			} else {
34618				yyv26 := &x.HostNetwork
34619				yym27 := z.DecBinary()
34620				_ = yym27
34621				if false {
34622				} else {
34623					*((*bool)(yyv26)) = r.DecodeBool()
34624				}
34625			}
34626		case "hostPID":
34627			if r.TryDecodeAsNil() {
34628				x.HostPID = false
34629			} else {
34630				yyv28 := &x.HostPID
34631				yym29 := z.DecBinary()
34632				_ = yym29
34633				if false {
34634				} else {
34635					*((*bool)(yyv28)) = r.DecodeBool()
34636				}
34637			}
34638		case "hostIPC":
34639			if r.TryDecodeAsNil() {
34640				x.HostIPC = false
34641			} else {
34642				yyv30 := &x.HostIPC
34643				yym31 := z.DecBinary()
34644				_ = yym31
34645				if false {
34646				} else {
34647					*((*bool)(yyv30)) = r.DecodeBool()
34648				}
34649			}
34650		case "securityContext":
34651			if r.TryDecodeAsNil() {
34652				if x.SecurityContext != nil {
34653					x.SecurityContext = nil
34654				}
34655			} else {
34656				if x.SecurityContext == nil {
34657					x.SecurityContext = new(PodSecurityContext)
34658				}
34659				x.SecurityContext.CodecDecodeSelf(d)
34660			}
34661		case "imagePullSecrets":
34662			if r.TryDecodeAsNil() {
34663				x.ImagePullSecrets = nil
34664			} else {
34665				yyv33 := &x.ImagePullSecrets
34666				yym34 := z.DecBinary()
34667				_ = yym34
34668				if false {
34669				} else {
34670					h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv33), d)
34671				}
34672			}
34673		case "hostname":
34674			if r.TryDecodeAsNil() {
34675				x.Hostname = ""
34676			} else {
34677				yyv35 := &x.Hostname
34678				yym36 := z.DecBinary()
34679				_ = yym36
34680				if false {
34681				} else {
34682					*((*string)(yyv35)) = r.DecodeString()
34683				}
34684			}
34685		case "subdomain":
34686			if r.TryDecodeAsNil() {
34687				x.Subdomain = ""
34688			} else {
34689				yyv37 := &x.Subdomain
34690				yym38 := z.DecBinary()
34691				_ = yym38
34692				if false {
34693				} else {
34694					*((*string)(yyv37)) = r.DecodeString()
34695				}
34696			}
34697		case "affinity":
34698			if r.TryDecodeAsNil() {
34699				if x.Affinity != nil {
34700					x.Affinity = nil
34701				}
34702			} else {
34703				if x.Affinity == nil {
34704					x.Affinity = new(Affinity)
34705				}
34706				x.Affinity.CodecDecodeSelf(d)
34707			}
34708		case "schedulerName":
34709			if r.TryDecodeAsNil() {
34710				x.SchedulerName = ""
34711			} else {
34712				yyv40 := &x.SchedulerName
34713				yym41 := z.DecBinary()
34714				_ = yym41
34715				if false {
34716				} else {
34717					*((*string)(yyv40)) = r.DecodeString()
34718				}
34719			}
34720		case "tolerations":
34721			if r.TryDecodeAsNil() {
34722				x.Tolerations = nil
34723			} else {
34724				yyv42 := &x.Tolerations
34725				yym43 := z.DecBinary()
34726				_ = yym43
34727				if false {
34728				} else {
34729					h.decSliceToleration((*[]Toleration)(yyv42), d)
34730				}
34731			}
34732		default:
34733			z.DecStructFieldNotFound(-1, yys3)
34734		} // end switch yys3
34735	} // end for yyj3
34736	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
34737}
34738
34739func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
34740	var h codecSelfer1234
34741	z, r := codec1978.GenHelperDecoder(d)
34742	_, _, _ = h, z, r
34743	var yyj44 int
34744	var yyb44 bool
34745	var yyhl44 bool = l >= 0
34746	yyj44++
34747	if yyhl44 {
34748		yyb44 = yyj44 > l
34749	} else {
34750		yyb44 = r.CheckBreak()
34751	}
34752	if yyb44 {
34753		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
34754		return
34755	}
34756	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
34757	if r.TryDecodeAsNil() {
34758		x.Volumes = nil
34759	} else {
34760		yyv45 := &x.Volumes
34761		yym46 := z.DecBinary()
34762		_ = yym46
34763		if false {
34764		} else {
34765			h.decSliceVolume((*[]Volume)(yyv45), d)
34766		}
34767	}
34768	yyj44++
34769	if yyhl44 {
34770		yyb44 = yyj44 > l
34771	} else {
34772		yyb44 = r.CheckBreak()
34773	}
34774	if yyb44 {
34775		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
34776		return
34777	}
34778	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
34779	if r.TryDecodeAsNil() {
34780		x.InitContainers = nil
34781	} else {
34782		yyv47 := &x.InitContainers
34783		yym48 := z.DecBinary()
34784		_ = yym48
34785		if false {
34786		} else {
34787			h.decSliceContainer((*[]Container)(yyv47), d)
34788		}
34789	}
34790	yyj44++
34791	if yyhl44 {
34792		yyb44 = yyj44 > l
34793	} else {
34794		yyb44 = r.CheckBreak()
34795	}
34796	if yyb44 {
34797		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
34798		return
34799	}
34800	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
34801	if r.TryDecodeAsNil() {
34802		x.Containers = nil
34803	} else {
34804		yyv49 := &x.Containers
34805		yym50 := z.DecBinary()
34806		_ = yym50
34807		if false {
34808		} else {
34809			h.decSliceContainer((*[]Container)(yyv49), d)
34810		}
34811	}
34812	yyj44++
34813	if yyhl44 {
34814		yyb44 = yyj44 > l
34815	} else {
34816		yyb44 = r.CheckBreak()
34817	}
34818	if yyb44 {
34819		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
34820		return
34821	}
34822	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
34823	if r.TryDecodeAsNil() {
34824		x.RestartPolicy = ""
34825	} else {
34826		yyv51 := &x.RestartPolicy
34827		yyv51.CodecDecodeSelf(d)
34828	}
34829	yyj44++
34830	if yyhl44 {
34831		yyb44 = yyj44 > l
34832	} else {
34833		yyb44 = r.CheckBreak()
34834	}
34835	if yyb44 {
34836		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
34837		return
34838	}
34839	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
34840	if r.TryDecodeAsNil() {
34841		if x.TerminationGracePeriodSeconds != nil {
34842			x.TerminationGracePeriodSeconds = nil
34843		}
34844	} else {
34845		if x.TerminationGracePeriodSeconds == nil {
34846			x.TerminationGracePeriodSeconds = new(int64)
34847		}
34848		yym53 := z.DecBinary()
34849		_ = yym53
34850		if false {
34851		} else {
34852			*((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64))
34853		}
34854	}
34855	yyj44++
34856	if yyhl44 {
34857		yyb44 = yyj44 > l
34858	} else {
34859		yyb44 = r.CheckBreak()
34860	}
34861	if yyb44 {
34862		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
34863		return
34864	}
34865	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
34866	if r.TryDecodeAsNil() {
34867		if x.ActiveDeadlineSeconds != nil {
34868			x.ActiveDeadlineSeconds = nil
34869		}
34870	} else {
34871		if x.ActiveDeadlineSeconds == nil {
34872			x.ActiveDeadlineSeconds = new(int64)
34873		}
34874		yym55 := z.DecBinary()
34875		_ = yym55
34876		if false {
34877		} else {
34878			*((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64))
34879		}
34880	}
34881	yyj44++
34882	if yyhl44 {
34883		yyb44 = yyj44 > l
34884	} else {
34885		yyb44 = r.CheckBreak()
34886	}
34887	if yyb44 {
34888		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
34889		return
34890	}
34891	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
34892	if r.TryDecodeAsNil() {
34893		x.DNSPolicy = ""
34894	} else {
34895		yyv56 := &x.DNSPolicy
34896		yyv56.CodecDecodeSelf(d)
34897	}
34898	yyj44++
34899	if yyhl44 {
34900		yyb44 = yyj44 > l
34901	} else {
34902		yyb44 = r.CheckBreak()
34903	}
34904	if yyb44 {
34905		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
34906		return
34907	}
34908	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
34909	if r.TryDecodeAsNil() {
34910		x.NodeSelector = nil
34911	} else {
34912		yyv57 := &x.NodeSelector
34913		yym58 := z.DecBinary()
34914		_ = yym58
34915		if false {
34916		} else {
34917			z.F.DecMapStringStringX(yyv57, false, d)
34918		}
34919	}
34920	yyj44++
34921	if yyhl44 {
34922		yyb44 = yyj44 > l
34923	} else {
34924		yyb44 = r.CheckBreak()
34925	}
34926	if yyb44 {
34927		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
34928		return
34929	}
34930	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
34931	if r.TryDecodeAsNil() {
34932		x.ServiceAccountName = ""
34933	} else {
34934		yyv59 := &x.ServiceAccountName
34935		yym60 := z.DecBinary()
34936		_ = yym60
34937		if false {
34938		} else {
34939			*((*string)(yyv59)) = r.DecodeString()
34940		}
34941	}
34942	yyj44++
34943	if yyhl44 {
34944		yyb44 = yyj44 > l
34945	} else {
34946		yyb44 = r.CheckBreak()
34947	}
34948	if yyb44 {
34949		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
34950		return
34951	}
34952	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
34953	if r.TryDecodeAsNil() {
34954		x.DeprecatedServiceAccount = ""
34955	} else {
34956		yyv61 := &x.DeprecatedServiceAccount
34957		yym62 := z.DecBinary()
34958		_ = yym62
34959		if false {
34960		} else {
34961			*((*string)(yyv61)) = r.DecodeString()
34962		}
34963	}
34964	yyj44++
34965	if yyhl44 {
34966		yyb44 = yyj44 > l
34967	} else {
34968		yyb44 = r.CheckBreak()
34969	}
34970	if yyb44 {
34971		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
34972		return
34973	}
34974	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
34975	if r.TryDecodeAsNil() {
34976		if x.AutomountServiceAccountToken != nil {
34977			x.AutomountServiceAccountToken = nil
34978		}
34979	} else {
34980		if x.AutomountServiceAccountToken == nil {
34981			x.AutomountServiceAccountToken = new(bool)
34982		}
34983		yym64 := z.DecBinary()
34984		_ = yym64
34985		if false {
34986		} else {
34987			*((*bool)(x.AutomountServiceAccountToken)) = r.DecodeBool()
34988		}
34989	}
34990	yyj44++
34991	if yyhl44 {
34992		yyb44 = yyj44 > l
34993	} else {
34994		yyb44 = r.CheckBreak()
34995	}
34996	if yyb44 {
34997		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
34998		return
34999	}
35000	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
35001	if r.TryDecodeAsNil() {
35002		x.NodeName = ""
35003	} else {
35004		yyv65 := &x.NodeName
35005		yym66 := z.DecBinary()
35006		_ = yym66
35007		if false {
35008		} else {
35009			*((*string)(yyv65)) = r.DecodeString()
35010		}
35011	}
35012	yyj44++
35013	if yyhl44 {
35014		yyb44 = yyj44 > l
35015	} else {
35016		yyb44 = r.CheckBreak()
35017	}
35018	if yyb44 {
35019		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
35020		return
35021	}
35022	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
35023	if r.TryDecodeAsNil() {
35024		x.HostNetwork = false
35025	} else {
35026		yyv67 := &x.HostNetwork
35027		yym68 := z.DecBinary()
35028		_ = yym68
35029		if false {
35030		} else {
35031			*((*bool)(yyv67)) = r.DecodeBool()
35032		}
35033	}
35034	yyj44++
35035	if yyhl44 {
35036		yyb44 = yyj44 > l
35037	} else {
35038		yyb44 = r.CheckBreak()
35039	}
35040	if yyb44 {
35041		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
35042		return
35043	}
35044	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
35045	if r.TryDecodeAsNil() {
35046		x.HostPID = false
35047	} else {
35048		yyv69 := &x.HostPID
35049		yym70 := z.DecBinary()
35050		_ = yym70
35051		if false {
35052		} else {
35053			*((*bool)(yyv69)) = r.DecodeBool()
35054		}
35055	}
35056	yyj44++
35057	if yyhl44 {
35058		yyb44 = yyj44 > l
35059	} else {
35060		yyb44 = r.CheckBreak()
35061	}
35062	if yyb44 {
35063		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
35064		return
35065	}
35066	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
35067	if r.TryDecodeAsNil() {
35068		x.HostIPC = false
35069	} else {
35070		yyv71 := &x.HostIPC
35071		yym72 := z.DecBinary()
35072		_ = yym72
35073		if false {
35074		} else {
35075			*((*bool)(yyv71)) = r.DecodeBool()
35076		}
35077	}
35078	yyj44++
35079	if yyhl44 {
35080		yyb44 = yyj44 > l
35081	} else {
35082		yyb44 = r.CheckBreak()
35083	}
35084	if yyb44 {
35085		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
35086		return
35087	}
35088	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
35089	if r.TryDecodeAsNil() {
35090		if x.SecurityContext != nil {
35091			x.SecurityContext = nil
35092		}
35093	} else {
35094		if x.SecurityContext == nil {
35095			x.SecurityContext = new(PodSecurityContext)
35096		}
35097		x.SecurityContext.CodecDecodeSelf(d)
35098	}
35099	yyj44++
35100	if yyhl44 {
35101		yyb44 = yyj44 > l
35102	} else {
35103		yyb44 = r.CheckBreak()
35104	}
35105	if yyb44 {
35106		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
35107		return
35108	}
35109	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
35110	if r.TryDecodeAsNil() {
35111		x.ImagePullSecrets = nil
35112	} else {
35113		yyv74 := &x.ImagePullSecrets
35114		yym75 := z.DecBinary()
35115		_ = yym75
35116		if false {
35117		} else {
35118			h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv74), d)
35119		}
35120	}
35121	yyj44++
35122	if yyhl44 {
35123		yyb44 = yyj44 > l
35124	} else {
35125		yyb44 = r.CheckBreak()
35126	}
35127	if yyb44 {
35128		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
35129		return
35130	}
35131	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
35132	if r.TryDecodeAsNil() {
35133		x.Hostname = ""
35134	} else {
35135		yyv76 := &x.Hostname
35136		yym77 := z.DecBinary()
35137		_ = yym77
35138		if false {
35139		} else {
35140			*((*string)(yyv76)) = r.DecodeString()
35141		}
35142	}
35143	yyj44++
35144	if yyhl44 {
35145		yyb44 = yyj44 > l
35146	} else {
35147		yyb44 = r.CheckBreak()
35148	}
35149	if yyb44 {
35150		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
35151		return
35152	}
35153	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
35154	if r.TryDecodeAsNil() {
35155		x.Subdomain = ""
35156	} else {
35157		yyv78 := &x.Subdomain
35158		yym79 := z.DecBinary()
35159		_ = yym79
35160		if false {
35161		} else {
35162			*((*string)(yyv78)) = r.DecodeString()
35163		}
35164	}
35165	yyj44++
35166	if yyhl44 {
35167		yyb44 = yyj44 > l
35168	} else {
35169		yyb44 = r.CheckBreak()
35170	}
35171	if yyb44 {
35172		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
35173		return
35174	}
35175	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
35176	if r.TryDecodeAsNil() {
35177		if x.Affinity != nil {
35178			x.Affinity = nil
35179		}
35180	} else {
35181		if x.Affinity == nil {
35182			x.Affinity = new(Affinity)
35183		}
35184		x.Affinity.CodecDecodeSelf(d)
35185	}
35186	yyj44++
35187	if yyhl44 {
35188		yyb44 = yyj44 > l
35189	} else {
35190		yyb44 = r.CheckBreak()
35191	}
35192	if yyb44 {
35193		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
35194		return
35195	}
35196	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
35197	if r.TryDecodeAsNil() {
35198		x.SchedulerName = ""
35199	} else {
35200		yyv81 := &x.SchedulerName
35201		yym82 := z.DecBinary()
35202		_ = yym82
35203		if false {
35204		} else {
35205			*((*string)(yyv81)) = r.DecodeString()
35206		}
35207	}
35208	yyj44++
35209	if yyhl44 {
35210		yyb44 = yyj44 > l
35211	} else {
35212		yyb44 = r.CheckBreak()
35213	}
35214	if yyb44 {
35215		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
35216		return
35217	}
35218	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
35219	if r.TryDecodeAsNil() {
35220		x.Tolerations = nil
35221	} else {
35222		yyv83 := &x.Tolerations
35223		yym84 := z.DecBinary()
35224		_ = yym84
35225		if false {
35226		} else {
35227			h.decSliceToleration((*[]Toleration)(yyv83), d)
35228		}
35229	}
35230	for {
35231		yyj44++
35232		if yyhl44 {
35233			yyb44 = yyj44 > l
35234		} else {
35235			yyb44 = r.CheckBreak()
35236		}
35237		if yyb44 {
35238			break
35239		}
35240		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
35241		z.DecStructFieldNotFound(yyj44-1, "")
35242	}
35243	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
35244}
35245
35246func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) {
35247	var h codecSelfer1234
35248	z, r := codec1978.GenHelperEncoder(e)
35249	_, _, _ = h, z, r
35250	if x == nil {
35251		r.EncodeNil()
35252	} else {
35253		yym1 := z.EncBinary()
35254		_ = yym1
35255		if false {
35256		} else if z.HasExtensions() && z.EncExt(x) {
35257		} else {
35258			yysep2 := !z.EncBinary()
35259			yy2arr2 := z.EncBasicHandle().StructToArray
35260			var yyq2 [5]bool
35261			_, _, _ = yysep2, yyq2, yy2arr2
35262			const yyr2 bool = false
35263			yyq2[0] = x.SELinuxOptions != nil
35264			yyq2[1] = x.RunAsUser != nil
35265			yyq2[2] = x.RunAsNonRoot != nil
35266			yyq2[3] = len(x.SupplementalGroups) != 0
35267			yyq2[4] = x.FSGroup != nil
35268			var yynn2 int
35269			if yyr2 || yy2arr2 {
35270				r.EncodeArrayStart(5)
35271			} else {
35272				yynn2 = 0
35273				for _, b := range yyq2 {
35274					if b {
35275						yynn2++
35276					}
35277				}
35278				r.EncodeMapStart(yynn2)
35279				yynn2 = 0
35280			}
35281			if yyr2 || yy2arr2 {
35282				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
35283				if yyq2[0] {
35284					if x.SELinuxOptions == nil {
35285						r.EncodeNil()
35286					} else {
35287						x.SELinuxOptions.CodecEncodeSelf(e)
35288					}
35289				} else {
35290					r.EncodeNil()
35291				}
35292			} else {
35293				if yyq2[0] {
35294					z.EncSendContainerState(codecSelfer_containerMapKey1234)
35295					r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions"))
35296					z.EncSendContainerState(codecSelfer_containerMapValue1234)
35297					if x.SELinuxOptions == nil {
35298						r.EncodeNil()
35299					} else {
35300						x.SELinuxOptions.CodecEncodeSelf(e)
35301					}
35302				}
35303			}
35304			if yyr2 || yy2arr2 {
35305				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
35306				if yyq2[1] {
35307					if x.RunAsUser == nil {
35308						r.EncodeNil()
35309					} else {
35310						yy7 := *x.RunAsUser
35311						yym8 := z.EncBinary()
35312						_ = yym8
35313						if false {
35314						} else {
35315							r.EncodeInt(int64(yy7))
35316						}
35317					}
35318				} else {
35319					r.EncodeNil()
35320				}
35321			} else {
35322				if yyq2[1] {
35323					z.EncSendContainerState(codecSelfer_containerMapKey1234)
35324					r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
35325					z.EncSendContainerState(codecSelfer_containerMapValue1234)
35326					if x.RunAsUser == nil {
35327						r.EncodeNil()
35328					} else {
35329						yy9 := *x.RunAsUser
35330						yym10 := z.EncBinary()
35331						_ = yym10
35332						if false {
35333						} else {
35334							r.EncodeInt(int64(yy9))
35335						}
35336					}
35337				}
35338			}
35339			if yyr2 || yy2arr2 {
35340				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
35341				if yyq2[2] {
35342					if x.RunAsNonRoot == nil {
35343						r.EncodeNil()
35344					} else {
35345						yy12 := *x.RunAsNonRoot
35346						yym13 := z.EncBinary()
35347						_ = yym13
35348						if false {
35349						} else {
35350							r.EncodeBool(bool(yy12))
35351						}
35352					}
35353				} else {
35354					r.EncodeNil()
35355				}
35356			} else {
35357				if yyq2[2] {
35358					z.EncSendContainerState(codecSelfer_containerMapKey1234)
35359					r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
35360					z.EncSendContainerState(codecSelfer_containerMapValue1234)
35361					if x.RunAsNonRoot == nil {
35362						r.EncodeNil()
35363					} else {
35364						yy14 := *x.RunAsNonRoot
35365						yym15 := z.EncBinary()
35366						_ = yym15
35367						if false {
35368						} else {
35369							r.EncodeBool(bool(yy14))
35370						}
35371					}
35372				}
35373			}
35374			if yyr2 || yy2arr2 {
35375				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
35376				if yyq2[3] {
35377					if x.SupplementalGroups == nil {
35378						r.EncodeNil()
35379					} else {
35380						yym17 := z.EncBinary()
35381						_ = yym17
35382						if false {
35383						} else {
35384							z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
35385						}
35386					}
35387				} else {
35388					r.EncodeNil()
35389				}
35390			} else {
35391				if yyq2[3] {
35392					z.EncSendContainerState(codecSelfer_containerMapKey1234)
35393					r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups"))
35394					z.EncSendContainerState(codecSelfer_containerMapValue1234)
35395					if x.SupplementalGroups == nil {
35396						r.EncodeNil()
35397					} else {
35398						yym18 := z.EncBinary()
35399						_ = yym18
35400						if false {
35401						} else {
35402							z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
35403						}
35404					}
35405				}
35406			}
35407			if yyr2 || yy2arr2 {
35408				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
35409				if yyq2[4] {
35410					if x.FSGroup == nil {
35411						r.EncodeNil()
35412					} else {
35413						yy20 := *x.FSGroup
35414						yym21 := z.EncBinary()
35415						_ = yym21
35416						if false {
35417						} else {
35418							r.EncodeInt(int64(yy20))
35419						}
35420					}
35421				} else {
35422					r.EncodeNil()
35423				}
35424			} else {
35425				if yyq2[4] {
35426					z.EncSendContainerState(codecSelfer_containerMapKey1234)
35427					r.EncodeString(codecSelferC_UTF81234, string("fsGroup"))
35428					z.EncSendContainerState(codecSelfer_containerMapValue1234)
35429					if x.FSGroup == nil {
35430						r.EncodeNil()
35431					} else {
35432						yy22 := *x.FSGroup
35433						yym23 := z.EncBinary()
35434						_ = yym23
35435						if false {
35436						} else {
35437							r.EncodeInt(int64(yy22))
35438						}
35439					}
35440				}
35441			}
35442			if yyr2 || yy2arr2 {
35443				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
35444			} else {
35445				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
35446			}
35447		}
35448	}
35449}
35450
35451func (x *PodSecurityContext) CodecDecodeSelf(d *codec1978.Decoder) {
35452	var h codecSelfer1234
35453	z, r := codec1978.GenHelperDecoder(d)
35454	_, _, _ = h, z, r
35455	yym1 := z.DecBinary()
35456	_ = yym1
35457	if false {
35458	} else if z.HasExtensions() && z.DecExt(x) {
35459	} else {
35460		yyct2 := r.ContainerType()
35461		if yyct2 == codecSelferValueTypeMap1234 {
35462			yyl2 := r.ReadMapStart()
35463			if yyl2 == 0 {
35464				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
35465			} else {
35466				x.codecDecodeSelfFromMap(yyl2, d)
35467			}
35468		} else if yyct2 == codecSelferValueTypeArray1234 {
35469			yyl2 := r.ReadArrayStart()
35470			if yyl2 == 0 {
35471				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
35472			} else {
35473				x.codecDecodeSelfFromArray(yyl2, d)
35474			}
35475		} else {
35476			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
35477		}
35478	}
35479}
35480
35481func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
35482	var h codecSelfer1234
35483	z, r := codec1978.GenHelperDecoder(d)
35484	_, _, _ = h, z, r
35485	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
35486	_ = yys3Slc
35487	var yyhl3 bool = l >= 0
35488	for yyj3 := 0; ; yyj3++ {
35489		if yyhl3 {
35490			if yyj3 >= l {
35491				break
35492			}
35493		} else {
35494			if r.CheckBreak() {
35495				break
35496			}
35497		}
35498		z.DecSendContainerState(codecSelfer_containerMapKey1234)
35499		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
35500		yys3 := string(yys3Slc)
35501		z.DecSendContainerState(codecSelfer_containerMapValue1234)
35502		switch yys3 {
35503		case "seLinuxOptions":
35504			if r.TryDecodeAsNil() {
35505				if x.SELinuxOptions != nil {
35506					x.SELinuxOptions = nil
35507				}
35508			} else {
35509				if x.SELinuxOptions == nil {
35510					x.SELinuxOptions = new(SELinuxOptions)
35511				}
35512				x.SELinuxOptions.CodecDecodeSelf(d)
35513			}
35514		case "runAsUser":
35515			if r.TryDecodeAsNil() {
35516				if x.RunAsUser != nil {
35517					x.RunAsUser = nil
35518				}
35519			} else {
35520				if x.RunAsUser == nil {
35521					x.RunAsUser = new(int64)
35522				}
35523				yym6 := z.DecBinary()
35524				_ = yym6
35525				if false {
35526				} else {
35527					*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
35528				}
35529			}
35530		case "runAsNonRoot":
35531			if r.TryDecodeAsNil() {
35532				if x.RunAsNonRoot != nil {
35533					x.RunAsNonRoot = nil
35534				}
35535			} else {
35536				if x.RunAsNonRoot == nil {
35537					x.RunAsNonRoot = new(bool)
35538				}
35539				yym8 := z.DecBinary()
35540				_ = yym8
35541				if false {
35542				} else {
35543					*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
35544				}
35545			}
35546		case "supplementalGroups":
35547			if r.TryDecodeAsNil() {
35548				x.SupplementalGroups = nil
35549			} else {
35550				yyv9 := &x.SupplementalGroups
35551				yym10 := z.DecBinary()
35552				_ = yym10
35553				if false {
35554				} else {
35555					z.F.DecSliceInt64X(yyv9, false, d)
35556				}
35557			}
35558		case "fsGroup":
35559			if r.TryDecodeAsNil() {
35560				if x.FSGroup != nil {
35561					x.FSGroup = nil
35562				}
35563			} else {
35564				if x.FSGroup == nil {
35565					x.FSGroup = new(int64)
35566				}
35567				yym12 := z.DecBinary()
35568				_ = yym12
35569				if false {
35570				} else {
35571					*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
35572				}
35573			}
35574		default:
35575			z.DecStructFieldNotFound(-1, yys3)
35576		} // end switch yys3
35577	} // end for yyj3
35578	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
35579}
35580
35581func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
35582	var h codecSelfer1234
35583	z, r := codec1978.GenHelperDecoder(d)
35584	_, _, _ = h, z, r
35585	var yyj13 int
35586	var yyb13 bool
35587	var yyhl13 bool = l >= 0
35588	yyj13++
35589	if yyhl13 {
35590		yyb13 = yyj13 > l
35591	} else {
35592		yyb13 = r.CheckBreak()
35593	}
35594	if yyb13 {
35595		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
35596		return
35597	}
35598	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
35599	if r.TryDecodeAsNil() {
35600		if x.SELinuxOptions != nil {
35601			x.SELinuxOptions = nil
35602		}
35603	} else {
35604		if x.SELinuxOptions == nil {
35605			x.SELinuxOptions = new(SELinuxOptions)
35606		}
35607		x.SELinuxOptions.CodecDecodeSelf(d)
35608	}
35609	yyj13++
35610	if yyhl13 {
35611		yyb13 = yyj13 > l
35612	} else {
35613		yyb13 = r.CheckBreak()
35614	}
35615	if yyb13 {
35616		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
35617		return
35618	}
35619	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
35620	if r.TryDecodeAsNil() {
35621		if x.RunAsUser != nil {
35622			x.RunAsUser = nil
35623		}
35624	} else {
35625		if x.RunAsUser == nil {
35626			x.RunAsUser = new(int64)
35627		}
35628		yym16 := z.DecBinary()
35629		_ = yym16
35630		if false {
35631		} else {
35632			*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
35633		}
35634	}
35635	yyj13++
35636	if yyhl13 {
35637		yyb13 = yyj13 > l
35638	} else {
35639		yyb13 = r.CheckBreak()
35640	}
35641	if yyb13 {
35642		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
35643		return
35644	}
35645	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
35646	if r.TryDecodeAsNil() {
35647		if x.RunAsNonRoot != nil {
35648			x.RunAsNonRoot = nil
35649		}
35650	} else {
35651		if x.RunAsNonRoot == nil {
35652			x.RunAsNonRoot = new(bool)
35653		}
35654		yym18 := z.DecBinary()
35655		_ = yym18
35656		if false {
35657		} else {
35658			*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
35659		}
35660	}
35661	yyj13++
35662	if yyhl13 {
35663		yyb13 = yyj13 > l
35664	} else {
35665		yyb13 = r.CheckBreak()
35666	}
35667	if yyb13 {
35668		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
35669		return
35670	}
35671	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
35672	if r.TryDecodeAsNil() {
35673		x.SupplementalGroups = nil
35674	} else {
35675		yyv19 := &x.SupplementalGroups
35676		yym20 := z.DecBinary()
35677		_ = yym20
35678		if false {
35679		} else {
35680			z.F.DecSliceInt64X(yyv19, false, d)
35681		}
35682	}
35683	yyj13++
35684	if yyhl13 {
35685		yyb13 = yyj13 > l
35686	} else {
35687		yyb13 = r.CheckBreak()
35688	}
35689	if yyb13 {
35690		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
35691		return
35692	}
35693	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
35694	if r.TryDecodeAsNil() {
35695		if x.FSGroup != nil {
35696			x.FSGroup = nil
35697		}
35698	} else {
35699		if x.FSGroup == nil {
35700			x.FSGroup = new(int64)
35701		}
35702		yym22 := z.DecBinary()
35703		_ = yym22
35704		if false {
35705		} else {
35706			*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
35707		}
35708	}
35709	for {
35710		yyj13++
35711		if yyhl13 {
35712			yyb13 = yyj13 > l
35713		} else {
35714			yyb13 = r.CheckBreak()
35715		}
35716		if yyb13 {
35717			break
35718		}
35719		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
35720		z.DecStructFieldNotFound(yyj13-1, "")
35721	}
35722	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
35723}
35724
35725func (x PodQOSClass) CodecEncodeSelf(e *codec1978.Encoder) {
35726	var h codecSelfer1234
35727	z, r := codec1978.GenHelperEncoder(e)
35728	_, _, _ = h, z, r
35729	yym1 := z.EncBinary()
35730	_ = yym1
35731	if false {
35732	} else if z.HasExtensions() && z.EncExt(x) {
35733	} else {
35734		r.EncodeString(codecSelferC_UTF81234, string(x))
35735	}
35736}
35737
35738func (x *PodQOSClass) CodecDecodeSelf(d *codec1978.Decoder) {
35739	var h codecSelfer1234
35740	z, r := codec1978.GenHelperDecoder(d)
35741	_, _, _ = h, z, r
35742	yym1 := z.DecBinary()
35743	_ = yym1
35744	if false {
35745	} else if z.HasExtensions() && z.DecExt(x) {
35746	} else {
35747		*((*string)(x)) = r.DecodeString()
35748	}
35749}
35750
35751func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) {
35752	var h codecSelfer1234
35753	z, r := codec1978.GenHelperEncoder(e)
35754	_, _, _ = h, z, r
35755	if x == nil {
35756		r.EncodeNil()
35757	} else {
35758		yym1 := z.EncBinary()
35759		_ = yym1
35760		if false {
35761		} else if z.HasExtensions() && z.EncExt(x) {
35762		} else {
35763			yysep2 := !z.EncBinary()
35764			yy2arr2 := z.EncBasicHandle().StructToArray
35765			var yyq2 [10]bool
35766			_, _, _ = yysep2, yyq2, yy2arr2
35767			const yyr2 bool = false
35768			yyq2[0] = x.Phase != ""
35769			yyq2[1] = len(x.Conditions) != 0
35770			yyq2[2] = x.Message != ""
35771			yyq2[3] = x.Reason != ""
35772			yyq2[4] = x.HostIP != ""
35773			yyq2[5] = x.PodIP != ""
35774			yyq2[6] = x.StartTime != nil
35775			yyq2[7] = len(x.InitContainerStatuses) != 0
35776			yyq2[8] = len(x.ContainerStatuses) != 0
35777			yyq2[9] = x.QOSClass != ""
35778			var yynn2 int
35779			if yyr2 || yy2arr2 {
35780				r.EncodeArrayStart(10)
35781			} else {
35782				yynn2 = 0
35783				for _, b := range yyq2 {
35784					if b {
35785						yynn2++
35786					}
35787				}
35788				r.EncodeMapStart(yynn2)
35789				yynn2 = 0
35790			}
35791			if yyr2 || yy2arr2 {
35792				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
35793				if yyq2[0] {
35794					x.Phase.CodecEncodeSelf(e)
35795				} else {
35796					r.EncodeString(codecSelferC_UTF81234, "")
35797				}
35798			} else {
35799				if yyq2[0] {
35800					z.EncSendContainerState(codecSelfer_containerMapKey1234)
35801					r.EncodeString(codecSelferC_UTF81234, string("phase"))
35802					z.EncSendContainerState(codecSelfer_containerMapValue1234)
35803					x.Phase.CodecEncodeSelf(e)
35804				}
35805			}
35806			if yyr2 || yy2arr2 {
35807				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
35808				if yyq2[1] {
35809					if x.Conditions == nil {
35810						r.EncodeNil()
35811					} else {
35812						yym7 := z.EncBinary()
35813						_ = yym7
35814						if false {
35815						} else {
35816							h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
35817						}
35818					}
35819				} else {
35820					r.EncodeNil()
35821				}
35822			} else {
35823				if yyq2[1] {
35824					z.EncSendContainerState(codecSelfer_containerMapKey1234)
35825					r.EncodeString(codecSelferC_UTF81234, string("conditions"))
35826					z.EncSendContainerState(codecSelfer_containerMapValue1234)
35827					if x.Conditions == nil {
35828						r.EncodeNil()
35829					} else {
35830						yym8 := z.EncBinary()
35831						_ = yym8
35832						if false {
35833						} else {
35834							h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
35835						}
35836					}
35837				}
35838			}
35839			if yyr2 || yy2arr2 {
35840				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
35841				if yyq2[2] {
35842					yym10 := z.EncBinary()
35843					_ = yym10
35844					if false {
35845					} else {
35846						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
35847					}
35848				} else {
35849					r.EncodeString(codecSelferC_UTF81234, "")
35850				}
35851			} else {
35852				if yyq2[2] {
35853					z.EncSendContainerState(codecSelfer_containerMapKey1234)
35854					r.EncodeString(codecSelferC_UTF81234, string("message"))
35855					z.EncSendContainerState(codecSelfer_containerMapValue1234)
35856					yym11 := z.EncBinary()
35857					_ = yym11
35858					if false {
35859					} else {
35860						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
35861					}
35862				}
35863			}
35864			if yyr2 || yy2arr2 {
35865				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
35866				if yyq2[3] {
35867					yym13 := z.EncBinary()
35868					_ = yym13
35869					if false {
35870					} else {
35871						r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
35872					}
35873				} else {
35874					r.EncodeString(codecSelferC_UTF81234, "")
35875				}
35876			} else {
35877				if yyq2[3] {
35878					z.EncSendContainerState(codecSelfer_containerMapKey1234)
35879					r.EncodeString(codecSelferC_UTF81234, string("reason"))
35880					z.EncSendContainerState(codecSelfer_containerMapValue1234)
35881					yym14 := z.EncBinary()
35882					_ = yym14
35883					if false {
35884					} else {
35885						r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
35886					}
35887				}
35888			}
35889			if yyr2 || yy2arr2 {
35890				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
35891				if yyq2[4] {
35892					yym16 := z.EncBinary()
35893					_ = yym16
35894					if false {
35895					} else {
35896						r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
35897					}
35898				} else {
35899					r.EncodeString(codecSelferC_UTF81234, "")
35900				}
35901			} else {
35902				if yyq2[4] {
35903					z.EncSendContainerState(codecSelfer_containerMapKey1234)
35904					r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
35905					z.EncSendContainerState(codecSelfer_containerMapValue1234)
35906					yym17 := z.EncBinary()
35907					_ = yym17
35908					if false {
35909					} else {
35910						r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
35911					}
35912				}
35913			}
35914			if yyr2 || yy2arr2 {
35915				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
35916				if yyq2[5] {
35917					yym19 := z.EncBinary()
35918					_ = yym19
35919					if false {
35920					} else {
35921						r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
35922					}
35923				} else {
35924					r.EncodeString(codecSelferC_UTF81234, "")
35925				}
35926			} else {
35927				if yyq2[5] {
35928					z.EncSendContainerState(codecSelfer_containerMapKey1234)
35929					r.EncodeString(codecSelferC_UTF81234, string("podIP"))
35930					z.EncSendContainerState(codecSelfer_containerMapValue1234)
35931					yym20 := z.EncBinary()
35932					_ = yym20
35933					if false {
35934					} else {
35935						r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
35936					}
35937				}
35938			}
35939			if yyr2 || yy2arr2 {
35940				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
35941				if yyq2[6] {
35942					if x.StartTime == nil {
35943						r.EncodeNil()
35944					} else {
35945						yym22 := z.EncBinary()
35946						_ = yym22
35947						if false {
35948						} else if z.HasExtensions() && z.EncExt(x.StartTime) {
35949						} else if yym22 {
35950							z.EncBinaryMarshal(x.StartTime)
35951						} else if !yym22 && z.IsJSONHandle() {
35952							z.EncJSONMarshal(x.StartTime)
35953						} else {
35954							z.EncFallback(x.StartTime)
35955						}
35956					}
35957				} else {
35958					r.EncodeNil()
35959				}
35960			} else {
35961				if yyq2[6] {
35962					z.EncSendContainerState(codecSelfer_containerMapKey1234)
35963					r.EncodeString(codecSelferC_UTF81234, string("startTime"))
35964					z.EncSendContainerState(codecSelfer_containerMapValue1234)
35965					if x.StartTime == nil {
35966						r.EncodeNil()
35967					} else {
35968						yym23 := z.EncBinary()
35969						_ = yym23
35970						if false {
35971						} else if z.HasExtensions() && z.EncExt(x.StartTime) {
35972						} else if yym23 {
35973							z.EncBinaryMarshal(x.StartTime)
35974						} else if !yym23 && z.IsJSONHandle() {
35975							z.EncJSONMarshal(x.StartTime)
35976						} else {
35977							z.EncFallback(x.StartTime)
35978						}
35979					}
35980				}
35981			}
35982			if yyr2 || yy2arr2 {
35983				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
35984				if yyq2[7] {
35985					if x.InitContainerStatuses == nil {
35986						r.EncodeNil()
35987					} else {
35988						yym25 := z.EncBinary()
35989						_ = yym25
35990						if false {
35991						} else {
35992							h.encSliceContainerStatus(([]ContainerStatus)(x.InitContainerStatuses), e)
35993						}
35994					}
35995				} else {
35996					r.EncodeNil()
35997				}
35998			} else {
35999				if yyq2[7] {
36000					z.EncSendContainerState(codecSelfer_containerMapKey1234)
36001					r.EncodeString(codecSelferC_UTF81234, string("initContainerStatuses"))
36002					z.EncSendContainerState(codecSelfer_containerMapValue1234)
36003					if x.InitContainerStatuses == nil {
36004						r.EncodeNil()
36005					} else {
36006						yym26 := z.EncBinary()
36007						_ = yym26
36008						if false {
36009						} else {
36010							h.encSliceContainerStatus(([]ContainerStatus)(x.InitContainerStatuses), e)
36011						}
36012					}
36013				}
36014			}
36015			if yyr2 || yy2arr2 {
36016				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
36017				if yyq2[8] {
36018					if x.ContainerStatuses == nil {
36019						r.EncodeNil()
36020					} else {
36021						yym28 := z.EncBinary()
36022						_ = yym28
36023						if false {
36024						} else {
36025							h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
36026						}
36027					}
36028				} else {
36029					r.EncodeNil()
36030				}
36031			} else {
36032				if yyq2[8] {
36033					z.EncSendContainerState(codecSelfer_containerMapKey1234)
36034					r.EncodeString(codecSelferC_UTF81234, string("containerStatuses"))
36035					z.EncSendContainerState(codecSelfer_containerMapValue1234)
36036					if x.ContainerStatuses == nil {
36037						r.EncodeNil()
36038					} else {
36039						yym29 := z.EncBinary()
36040						_ = yym29
36041						if false {
36042						} else {
36043							h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
36044						}
36045					}
36046				}
36047			}
36048			if yyr2 || yy2arr2 {
36049				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
36050				if yyq2[9] {
36051					x.QOSClass.CodecEncodeSelf(e)
36052				} else {
36053					r.EncodeString(codecSelferC_UTF81234, "")
36054				}
36055			} else {
36056				if yyq2[9] {
36057					z.EncSendContainerState(codecSelfer_containerMapKey1234)
36058					r.EncodeString(codecSelferC_UTF81234, string("qosClass"))
36059					z.EncSendContainerState(codecSelfer_containerMapValue1234)
36060					x.QOSClass.CodecEncodeSelf(e)
36061				}
36062			}
36063			if yyr2 || yy2arr2 {
36064				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
36065			} else {
36066				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
36067			}
36068		}
36069	}
36070}
36071
36072func (x *PodStatus) CodecDecodeSelf(d *codec1978.Decoder) {
36073	var h codecSelfer1234
36074	z, r := codec1978.GenHelperDecoder(d)
36075	_, _, _ = h, z, r
36076	yym1 := z.DecBinary()
36077	_ = yym1
36078	if false {
36079	} else if z.HasExtensions() && z.DecExt(x) {
36080	} else {
36081		yyct2 := r.ContainerType()
36082		if yyct2 == codecSelferValueTypeMap1234 {
36083			yyl2 := r.ReadMapStart()
36084			if yyl2 == 0 {
36085				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
36086			} else {
36087				x.codecDecodeSelfFromMap(yyl2, d)
36088			}
36089		} else if yyct2 == codecSelferValueTypeArray1234 {
36090			yyl2 := r.ReadArrayStart()
36091			if yyl2 == 0 {
36092				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
36093			} else {
36094				x.codecDecodeSelfFromArray(yyl2, d)
36095			}
36096		} else {
36097			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
36098		}
36099	}
36100}
36101
36102func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
36103	var h codecSelfer1234
36104	z, r := codec1978.GenHelperDecoder(d)
36105	_, _, _ = h, z, r
36106	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
36107	_ = yys3Slc
36108	var yyhl3 bool = l >= 0
36109	for yyj3 := 0; ; yyj3++ {
36110		if yyhl3 {
36111			if yyj3 >= l {
36112				break
36113			}
36114		} else {
36115			if r.CheckBreak() {
36116				break
36117			}
36118		}
36119		z.DecSendContainerState(codecSelfer_containerMapKey1234)
36120		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
36121		yys3 := string(yys3Slc)
36122		z.DecSendContainerState(codecSelfer_containerMapValue1234)
36123		switch yys3 {
36124		case "phase":
36125			if r.TryDecodeAsNil() {
36126				x.Phase = ""
36127			} else {
36128				yyv4 := &x.Phase
36129				yyv4.CodecDecodeSelf(d)
36130			}
36131		case "conditions":
36132			if r.TryDecodeAsNil() {
36133				x.Conditions = nil
36134			} else {
36135				yyv5 := &x.Conditions
36136				yym6 := z.DecBinary()
36137				_ = yym6
36138				if false {
36139				} else {
36140					h.decSlicePodCondition((*[]PodCondition)(yyv5), d)
36141				}
36142			}
36143		case "message":
36144			if r.TryDecodeAsNil() {
36145				x.Message = ""
36146			} else {
36147				yyv7 := &x.Message
36148				yym8 := z.DecBinary()
36149				_ = yym8
36150				if false {
36151				} else {
36152					*((*string)(yyv7)) = r.DecodeString()
36153				}
36154			}
36155		case "reason":
36156			if r.TryDecodeAsNil() {
36157				x.Reason = ""
36158			} else {
36159				yyv9 := &x.Reason
36160				yym10 := z.DecBinary()
36161				_ = yym10
36162				if false {
36163				} else {
36164					*((*string)(yyv9)) = r.DecodeString()
36165				}
36166			}
36167		case "hostIP":
36168			if r.TryDecodeAsNil() {
36169				x.HostIP = ""
36170			} else {
36171				yyv11 := &x.HostIP
36172				yym12 := z.DecBinary()
36173				_ = yym12
36174				if false {
36175				} else {
36176					*((*string)(yyv11)) = r.DecodeString()
36177				}
36178			}
36179		case "podIP":
36180			if r.TryDecodeAsNil() {
36181				x.PodIP = ""
36182			} else {
36183				yyv13 := &x.PodIP
36184				yym14 := z.DecBinary()
36185				_ = yym14
36186				if false {
36187				} else {
36188					*((*string)(yyv13)) = r.DecodeString()
36189				}
36190			}
36191		case "startTime":
36192			if r.TryDecodeAsNil() {
36193				if x.StartTime != nil {
36194					x.StartTime = nil
36195				}
36196			} else {
36197				if x.StartTime == nil {
36198					x.StartTime = new(pkg2_v1.Time)
36199				}
36200				yym16 := z.DecBinary()
36201				_ = yym16
36202				if false {
36203				} else if z.HasExtensions() && z.DecExt(x.StartTime) {
36204				} else if yym16 {
36205					z.DecBinaryUnmarshal(x.StartTime)
36206				} else if !yym16 && z.IsJSONHandle() {
36207					z.DecJSONUnmarshal(x.StartTime)
36208				} else {
36209					z.DecFallback(x.StartTime, false)
36210				}
36211			}
36212		case "initContainerStatuses":
36213			if r.TryDecodeAsNil() {
36214				x.InitContainerStatuses = nil
36215			} else {
36216				yyv17 := &x.InitContainerStatuses
36217				yym18 := z.DecBinary()
36218				_ = yym18
36219				if false {
36220				} else {
36221					h.decSliceContainerStatus((*[]ContainerStatus)(yyv17), d)
36222				}
36223			}
36224		case "containerStatuses":
36225			if r.TryDecodeAsNil() {
36226				x.ContainerStatuses = nil
36227			} else {
36228				yyv19 := &x.ContainerStatuses
36229				yym20 := z.DecBinary()
36230				_ = yym20
36231				if false {
36232				} else {
36233					h.decSliceContainerStatus((*[]ContainerStatus)(yyv19), d)
36234				}
36235			}
36236		case "qosClass":
36237			if r.TryDecodeAsNil() {
36238				x.QOSClass = ""
36239			} else {
36240				yyv21 := &x.QOSClass
36241				yyv21.CodecDecodeSelf(d)
36242			}
36243		default:
36244			z.DecStructFieldNotFound(-1, yys3)
36245		} // end switch yys3
36246	} // end for yyj3
36247	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
36248}
36249
36250func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
36251	var h codecSelfer1234
36252	z, r := codec1978.GenHelperDecoder(d)
36253	_, _, _ = h, z, r
36254	var yyj22 int
36255	var yyb22 bool
36256	var yyhl22 bool = l >= 0
36257	yyj22++
36258	if yyhl22 {
36259		yyb22 = yyj22 > l
36260	} else {
36261		yyb22 = r.CheckBreak()
36262	}
36263	if yyb22 {
36264		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
36265		return
36266	}
36267	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
36268	if r.TryDecodeAsNil() {
36269		x.Phase = ""
36270	} else {
36271		yyv23 := &x.Phase
36272		yyv23.CodecDecodeSelf(d)
36273	}
36274	yyj22++
36275	if yyhl22 {
36276		yyb22 = yyj22 > l
36277	} else {
36278		yyb22 = r.CheckBreak()
36279	}
36280	if yyb22 {
36281		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
36282		return
36283	}
36284	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
36285	if r.TryDecodeAsNil() {
36286		x.Conditions = nil
36287	} else {
36288		yyv24 := &x.Conditions
36289		yym25 := z.DecBinary()
36290		_ = yym25
36291		if false {
36292		} else {
36293			h.decSlicePodCondition((*[]PodCondition)(yyv24), d)
36294		}
36295	}
36296	yyj22++
36297	if yyhl22 {
36298		yyb22 = yyj22 > l
36299	} else {
36300		yyb22 = r.CheckBreak()
36301	}
36302	if yyb22 {
36303		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
36304		return
36305	}
36306	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
36307	if r.TryDecodeAsNil() {
36308		x.Message = ""
36309	} else {
36310		yyv26 := &x.Message
36311		yym27 := z.DecBinary()
36312		_ = yym27
36313		if false {
36314		} else {
36315			*((*string)(yyv26)) = r.DecodeString()
36316		}
36317	}
36318	yyj22++
36319	if yyhl22 {
36320		yyb22 = yyj22 > l
36321	} else {
36322		yyb22 = r.CheckBreak()
36323	}
36324	if yyb22 {
36325		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
36326		return
36327	}
36328	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
36329	if r.TryDecodeAsNil() {
36330		x.Reason = ""
36331	} else {
36332		yyv28 := &x.Reason
36333		yym29 := z.DecBinary()
36334		_ = yym29
36335		if false {
36336		} else {
36337			*((*string)(yyv28)) = r.DecodeString()
36338		}
36339	}
36340	yyj22++
36341	if yyhl22 {
36342		yyb22 = yyj22 > l
36343	} else {
36344		yyb22 = r.CheckBreak()
36345	}
36346	if yyb22 {
36347		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
36348		return
36349	}
36350	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
36351	if r.TryDecodeAsNil() {
36352		x.HostIP = ""
36353	} else {
36354		yyv30 := &x.HostIP
36355		yym31 := z.DecBinary()
36356		_ = yym31
36357		if false {
36358		} else {
36359			*((*string)(yyv30)) = r.DecodeString()
36360		}
36361	}
36362	yyj22++
36363	if yyhl22 {
36364		yyb22 = yyj22 > l
36365	} else {
36366		yyb22 = r.CheckBreak()
36367	}
36368	if yyb22 {
36369		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
36370		return
36371	}
36372	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
36373	if r.TryDecodeAsNil() {
36374		x.PodIP = ""
36375	} else {
36376		yyv32 := &x.PodIP
36377		yym33 := z.DecBinary()
36378		_ = yym33
36379		if false {
36380		} else {
36381			*((*string)(yyv32)) = r.DecodeString()
36382		}
36383	}
36384	yyj22++
36385	if yyhl22 {
36386		yyb22 = yyj22 > l
36387	} else {
36388		yyb22 = r.CheckBreak()
36389	}
36390	if yyb22 {
36391		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
36392		return
36393	}
36394	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
36395	if r.TryDecodeAsNil() {
36396		if x.StartTime != nil {
36397			x.StartTime = nil
36398		}
36399	} else {
36400		if x.StartTime == nil {
36401			x.StartTime = new(pkg2_v1.Time)
36402		}
36403		yym35 := z.DecBinary()
36404		_ = yym35
36405		if false {
36406		} else if z.HasExtensions() && z.DecExt(x.StartTime) {
36407		} else if yym35 {
36408			z.DecBinaryUnmarshal(x.StartTime)
36409		} else if !yym35 && z.IsJSONHandle() {
36410			z.DecJSONUnmarshal(x.StartTime)
36411		} else {
36412			z.DecFallback(x.StartTime, false)
36413		}
36414	}
36415	yyj22++
36416	if yyhl22 {
36417		yyb22 = yyj22 > l
36418	} else {
36419		yyb22 = r.CheckBreak()
36420	}
36421	if yyb22 {
36422		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
36423		return
36424	}
36425	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
36426	if r.TryDecodeAsNil() {
36427		x.InitContainerStatuses = nil
36428	} else {
36429		yyv36 := &x.InitContainerStatuses
36430		yym37 := z.DecBinary()
36431		_ = yym37
36432		if false {
36433		} else {
36434			h.decSliceContainerStatus((*[]ContainerStatus)(yyv36), d)
36435		}
36436	}
36437	yyj22++
36438	if yyhl22 {
36439		yyb22 = yyj22 > l
36440	} else {
36441		yyb22 = r.CheckBreak()
36442	}
36443	if yyb22 {
36444		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
36445		return
36446	}
36447	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
36448	if r.TryDecodeAsNil() {
36449		x.ContainerStatuses = nil
36450	} else {
36451		yyv38 := &x.ContainerStatuses
36452		yym39 := z.DecBinary()
36453		_ = yym39
36454		if false {
36455		} else {
36456			h.decSliceContainerStatus((*[]ContainerStatus)(yyv38), d)
36457		}
36458	}
36459	yyj22++
36460	if yyhl22 {
36461		yyb22 = yyj22 > l
36462	} else {
36463		yyb22 = r.CheckBreak()
36464	}
36465	if yyb22 {
36466		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
36467		return
36468	}
36469	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
36470	if r.TryDecodeAsNil() {
36471		x.QOSClass = ""
36472	} else {
36473		yyv40 := &x.QOSClass
36474		yyv40.CodecDecodeSelf(d)
36475	}
36476	for {
36477		yyj22++
36478		if yyhl22 {
36479			yyb22 = yyj22 > l
36480		} else {
36481			yyb22 = r.CheckBreak()
36482		}
36483		if yyb22 {
36484			break
36485		}
36486		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
36487		z.DecStructFieldNotFound(yyj22-1, "")
36488	}
36489	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
36490}
36491
36492func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) {
36493	var h codecSelfer1234
36494	z, r := codec1978.GenHelperEncoder(e)
36495	_, _, _ = h, z, r
36496	if x == nil {
36497		r.EncodeNil()
36498	} else {
36499		yym1 := z.EncBinary()
36500		_ = yym1
36501		if false {
36502		} else if z.HasExtensions() && z.EncExt(x) {
36503		} else {
36504			yysep2 := !z.EncBinary()
36505			yy2arr2 := z.EncBasicHandle().StructToArray
36506			var yyq2 [4]bool
36507			_, _, _ = yysep2, yyq2, yy2arr2
36508			const yyr2 bool = false
36509			yyq2[0] = x.Kind != ""
36510			yyq2[1] = x.APIVersion != ""
36511			yyq2[2] = true
36512			yyq2[3] = true
36513			var yynn2 int
36514			if yyr2 || yy2arr2 {
36515				r.EncodeArrayStart(4)
36516			} else {
36517				yynn2 = 0
36518				for _, b := range yyq2 {
36519					if b {
36520						yynn2++
36521					}
36522				}
36523				r.EncodeMapStart(yynn2)
36524				yynn2 = 0
36525			}
36526			if yyr2 || yy2arr2 {
36527				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
36528				if yyq2[0] {
36529					yym4 := z.EncBinary()
36530					_ = yym4
36531					if false {
36532					} else {
36533						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
36534					}
36535				} else {
36536					r.EncodeString(codecSelferC_UTF81234, "")
36537				}
36538			} else {
36539				if yyq2[0] {
36540					z.EncSendContainerState(codecSelfer_containerMapKey1234)
36541					r.EncodeString(codecSelferC_UTF81234, string("kind"))
36542					z.EncSendContainerState(codecSelfer_containerMapValue1234)
36543					yym5 := z.EncBinary()
36544					_ = yym5
36545					if false {
36546					} else {
36547						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
36548					}
36549				}
36550			}
36551			if yyr2 || yy2arr2 {
36552				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
36553				if yyq2[1] {
36554					yym7 := z.EncBinary()
36555					_ = yym7
36556					if false {
36557					} else {
36558						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
36559					}
36560				} else {
36561					r.EncodeString(codecSelferC_UTF81234, "")
36562				}
36563			} else {
36564				if yyq2[1] {
36565					z.EncSendContainerState(codecSelfer_containerMapKey1234)
36566					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
36567					z.EncSendContainerState(codecSelfer_containerMapValue1234)
36568					yym8 := z.EncBinary()
36569					_ = yym8
36570					if false {
36571					} else {
36572						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
36573					}
36574				}
36575			}
36576			if yyr2 || yy2arr2 {
36577				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
36578				if yyq2[2] {
36579					yy10 := &x.ObjectMeta
36580					yym11 := z.EncBinary()
36581					_ = yym11
36582					if false {
36583					} else if z.HasExtensions() && z.EncExt(yy10) {
36584					} else {
36585						z.EncFallback(yy10)
36586					}
36587				} else {
36588					r.EncodeNil()
36589				}
36590			} else {
36591				if yyq2[2] {
36592					z.EncSendContainerState(codecSelfer_containerMapKey1234)
36593					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
36594					z.EncSendContainerState(codecSelfer_containerMapValue1234)
36595					yy12 := &x.ObjectMeta
36596					yym13 := z.EncBinary()
36597					_ = yym13
36598					if false {
36599					} else if z.HasExtensions() && z.EncExt(yy12) {
36600					} else {
36601						z.EncFallback(yy12)
36602					}
36603				}
36604			}
36605			if yyr2 || yy2arr2 {
36606				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
36607				if yyq2[3] {
36608					yy15 := &x.Status
36609					yy15.CodecEncodeSelf(e)
36610				} else {
36611					r.EncodeNil()
36612				}
36613			} else {
36614				if yyq2[3] {
36615					z.EncSendContainerState(codecSelfer_containerMapKey1234)
36616					r.EncodeString(codecSelferC_UTF81234, string("status"))
36617					z.EncSendContainerState(codecSelfer_containerMapValue1234)
36618					yy17 := &x.Status
36619					yy17.CodecEncodeSelf(e)
36620				}
36621			}
36622			if yyr2 || yy2arr2 {
36623				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
36624			} else {
36625				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
36626			}
36627		}
36628	}
36629}
36630
36631func (x *PodStatusResult) CodecDecodeSelf(d *codec1978.Decoder) {
36632	var h codecSelfer1234
36633	z, r := codec1978.GenHelperDecoder(d)
36634	_, _, _ = h, z, r
36635	yym1 := z.DecBinary()
36636	_ = yym1
36637	if false {
36638	} else if z.HasExtensions() && z.DecExt(x) {
36639	} else {
36640		yyct2 := r.ContainerType()
36641		if yyct2 == codecSelferValueTypeMap1234 {
36642			yyl2 := r.ReadMapStart()
36643			if yyl2 == 0 {
36644				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
36645			} else {
36646				x.codecDecodeSelfFromMap(yyl2, d)
36647			}
36648		} else if yyct2 == codecSelferValueTypeArray1234 {
36649			yyl2 := r.ReadArrayStart()
36650			if yyl2 == 0 {
36651				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
36652			} else {
36653				x.codecDecodeSelfFromArray(yyl2, d)
36654			}
36655		} else {
36656			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
36657		}
36658	}
36659}
36660
36661func (x *PodStatusResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
36662	var h codecSelfer1234
36663	z, r := codec1978.GenHelperDecoder(d)
36664	_, _, _ = h, z, r
36665	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
36666	_ = yys3Slc
36667	var yyhl3 bool = l >= 0
36668	for yyj3 := 0; ; yyj3++ {
36669		if yyhl3 {
36670			if yyj3 >= l {
36671				break
36672			}
36673		} else {
36674			if r.CheckBreak() {
36675				break
36676			}
36677		}
36678		z.DecSendContainerState(codecSelfer_containerMapKey1234)
36679		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
36680		yys3 := string(yys3Slc)
36681		z.DecSendContainerState(codecSelfer_containerMapValue1234)
36682		switch yys3 {
36683		case "kind":
36684			if r.TryDecodeAsNil() {
36685				x.Kind = ""
36686			} else {
36687				yyv4 := &x.Kind
36688				yym5 := z.DecBinary()
36689				_ = yym5
36690				if false {
36691				} else {
36692					*((*string)(yyv4)) = r.DecodeString()
36693				}
36694			}
36695		case "apiVersion":
36696			if r.TryDecodeAsNil() {
36697				x.APIVersion = ""
36698			} else {
36699				yyv6 := &x.APIVersion
36700				yym7 := z.DecBinary()
36701				_ = yym7
36702				if false {
36703				} else {
36704					*((*string)(yyv6)) = r.DecodeString()
36705				}
36706			}
36707		case "metadata":
36708			if r.TryDecodeAsNil() {
36709				x.ObjectMeta = pkg2_v1.ObjectMeta{}
36710			} else {
36711				yyv8 := &x.ObjectMeta
36712				yym9 := z.DecBinary()
36713				_ = yym9
36714				if false {
36715				} else if z.HasExtensions() && z.DecExt(yyv8) {
36716				} else {
36717					z.DecFallback(yyv8, false)
36718				}
36719			}
36720		case "status":
36721			if r.TryDecodeAsNil() {
36722				x.Status = PodStatus{}
36723			} else {
36724				yyv10 := &x.Status
36725				yyv10.CodecDecodeSelf(d)
36726			}
36727		default:
36728			z.DecStructFieldNotFound(-1, yys3)
36729		} // end switch yys3
36730	} // end for yyj3
36731	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
36732}
36733
36734func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
36735	var h codecSelfer1234
36736	z, r := codec1978.GenHelperDecoder(d)
36737	_, _, _ = h, z, r
36738	var yyj11 int
36739	var yyb11 bool
36740	var yyhl11 bool = l >= 0
36741	yyj11++
36742	if yyhl11 {
36743		yyb11 = yyj11 > l
36744	} else {
36745		yyb11 = r.CheckBreak()
36746	}
36747	if yyb11 {
36748		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
36749		return
36750	}
36751	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
36752	if r.TryDecodeAsNil() {
36753		x.Kind = ""
36754	} else {
36755		yyv12 := &x.Kind
36756		yym13 := z.DecBinary()
36757		_ = yym13
36758		if false {
36759		} else {
36760			*((*string)(yyv12)) = r.DecodeString()
36761		}
36762	}
36763	yyj11++
36764	if yyhl11 {
36765		yyb11 = yyj11 > l
36766	} else {
36767		yyb11 = r.CheckBreak()
36768	}
36769	if yyb11 {
36770		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
36771		return
36772	}
36773	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
36774	if r.TryDecodeAsNil() {
36775		x.APIVersion = ""
36776	} else {
36777		yyv14 := &x.APIVersion
36778		yym15 := z.DecBinary()
36779		_ = yym15
36780		if false {
36781		} else {
36782			*((*string)(yyv14)) = r.DecodeString()
36783		}
36784	}
36785	yyj11++
36786	if yyhl11 {
36787		yyb11 = yyj11 > l
36788	} else {
36789		yyb11 = r.CheckBreak()
36790	}
36791	if yyb11 {
36792		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
36793		return
36794	}
36795	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
36796	if r.TryDecodeAsNil() {
36797		x.ObjectMeta = pkg2_v1.ObjectMeta{}
36798	} else {
36799		yyv16 := &x.ObjectMeta
36800		yym17 := z.DecBinary()
36801		_ = yym17
36802		if false {
36803		} else if z.HasExtensions() && z.DecExt(yyv16) {
36804		} else {
36805			z.DecFallback(yyv16, false)
36806		}
36807	}
36808	yyj11++
36809	if yyhl11 {
36810		yyb11 = yyj11 > l
36811	} else {
36812		yyb11 = r.CheckBreak()
36813	}
36814	if yyb11 {
36815		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
36816		return
36817	}
36818	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
36819	if r.TryDecodeAsNil() {
36820		x.Status = PodStatus{}
36821	} else {
36822		yyv18 := &x.Status
36823		yyv18.CodecDecodeSelf(d)
36824	}
36825	for {
36826		yyj11++
36827		if yyhl11 {
36828			yyb11 = yyj11 > l
36829		} else {
36830			yyb11 = r.CheckBreak()
36831		}
36832		if yyb11 {
36833			break
36834		}
36835		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
36836		z.DecStructFieldNotFound(yyj11-1, "")
36837	}
36838	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
36839}
36840
36841func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) {
36842	var h codecSelfer1234
36843	z, r := codec1978.GenHelperEncoder(e)
36844	_, _, _ = h, z, r
36845	if x == nil {
36846		r.EncodeNil()
36847	} else {
36848		yym1 := z.EncBinary()
36849		_ = yym1
36850		if false {
36851		} else if z.HasExtensions() && z.EncExt(x) {
36852		} else {
36853			yysep2 := !z.EncBinary()
36854			yy2arr2 := z.EncBasicHandle().StructToArray
36855			var yyq2 [5]bool
36856			_, _, _ = yysep2, yyq2, yy2arr2
36857			const yyr2 bool = false
36858			yyq2[0] = x.Kind != ""
36859			yyq2[1] = x.APIVersion != ""
36860			yyq2[2] = true
36861			yyq2[3] = true
36862			yyq2[4] = true
36863			var yynn2 int
36864			if yyr2 || yy2arr2 {
36865				r.EncodeArrayStart(5)
36866			} else {
36867				yynn2 = 0
36868				for _, b := range yyq2 {
36869					if b {
36870						yynn2++
36871					}
36872				}
36873				r.EncodeMapStart(yynn2)
36874				yynn2 = 0
36875			}
36876			if yyr2 || yy2arr2 {
36877				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
36878				if yyq2[0] {
36879					yym4 := z.EncBinary()
36880					_ = yym4
36881					if false {
36882					} else {
36883						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
36884					}
36885				} else {
36886					r.EncodeString(codecSelferC_UTF81234, "")
36887				}
36888			} else {
36889				if yyq2[0] {
36890					z.EncSendContainerState(codecSelfer_containerMapKey1234)
36891					r.EncodeString(codecSelferC_UTF81234, string("kind"))
36892					z.EncSendContainerState(codecSelfer_containerMapValue1234)
36893					yym5 := z.EncBinary()
36894					_ = yym5
36895					if false {
36896					} else {
36897						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
36898					}
36899				}
36900			}
36901			if yyr2 || yy2arr2 {
36902				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
36903				if yyq2[1] {
36904					yym7 := z.EncBinary()
36905					_ = yym7
36906					if false {
36907					} else {
36908						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
36909					}
36910				} else {
36911					r.EncodeString(codecSelferC_UTF81234, "")
36912				}
36913			} else {
36914				if yyq2[1] {
36915					z.EncSendContainerState(codecSelfer_containerMapKey1234)
36916					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
36917					z.EncSendContainerState(codecSelfer_containerMapValue1234)
36918					yym8 := z.EncBinary()
36919					_ = yym8
36920					if false {
36921					} else {
36922						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
36923					}
36924				}
36925			}
36926			if yyr2 || yy2arr2 {
36927				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
36928				if yyq2[2] {
36929					yy10 := &x.ObjectMeta
36930					yym11 := z.EncBinary()
36931					_ = yym11
36932					if false {
36933					} else if z.HasExtensions() && z.EncExt(yy10) {
36934					} else {
36935						z.EncFallback(yy10)
36936					}
36937				} else {
36938					r.EncodeNil()
36939				}
36940			} else {
36941				if yyq2[2] {
36942					z.EncSendContainerState(codecSelfer_containerMapKey1234)
36943					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
36944					z.EncSendContainerState(codecSelfer_containerMapValue1234)
36945					yy12 := &x.ObjectMeta
36946					yym13 := z.EncBinary()
36947					_ = yym13
36948					if false {
36949					} else if z.HasExtensions() && z.EncExt(yy12) {
36950					} else {
36951						z.EncFallback(yy12)
36952					}
36953				}
36954			}
36955			if yyr2 || yy2arr2 {
36956				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
36957				if yyq2[3] {
36958					yy15 := &x.Spec
36959					yy15.CodecEncodeSelf(e)
36960				} else {
36961					r.EncodeNil()
36962				}
36963			} else {
36964				if yyq2[3] {
36965					z.EncSendContainerState(codecSelfer_containerMapKey1234)
36966					r.EncodeString(codecSelferC_UTF81234, string("spec"))
36967					z.EncSendContainerState(codecSelfer_containerMapValue1234)
36968					yy17 := &x.Spec
36969					yy17.CodecEncodeSelf(e)
36970				}
36971			}
36972			if yyr2 || yy2arr2 {
36973				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
36974				if yyq2[4] {
36975					yy20 := &x.Status
36976					yy20.CodecEncodeSelf(e)
36977				} else {
36978					r.EncodeNil()
36979				}
36980			} else {
36981				if yyq2[4] {
36982					z.EncSendContainerState(codecSelfer_containerMapKey1234)
36983					r.EncodeString(codecSelferC_UTF81234, string("status"))
36984					z.EncSendContainerState(codecSelfer_containerMapValue1234)
36985					yy22 := &x.Status
36986					yy22.CodecEncodeSelf(e)
36987				}
36988			}
36989			if yyr2 || yy2arr2 {
36990				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
36991			} else {
36992				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
36993			}
36994		}
36995	}
36996}
36997
36998func (x *Pod) CodecDecodeSelf(d *codec1978.Decoder) {
36999	var h codecSelfer1234
37000	z, r := codec1978.GenHelperDecoder(d)
37001	_, _, _ = h, z, r
37002	yym1 := z.DecBinary()
37003	_ = yym1
37004	if false {
37005	} else if z.HasExtensions() && z.DecExt(x) {
37006	} else {
37007		yyct2 := r.ContainerType()
37008		if yyct2 == codecSelferValueTypeMap1234 {
37009			yyl2 := r.ReadMapStart()
37010			if yyl2 == 0 {
37011				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
37012			} else {
37013				x.codecDecodeSelfFromMap(yyl2, d)
37014			}
37015		} else if yyct2 == codecSelferValueTypeArray1234 {
37016			yyl2 := r.ReadArrayStart()
37017			if yyl2 == 0 {
37018				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
37019			} else {
37020				x.codecDecodeSelfFromArray(yyl2, d)
37021			}
37022		} else {
37023			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
37024		}
37025	}
37026}
37027
37028func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
37029	var h codecSelfer1234
37030	z, r := codec1978.GenHelperDecoder(d)
37031	_, _, _ = h, z, r
37032	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
37033	_ = yys3Slc
37034	var yyhl3 bool = l >= 0
37035	for yyj3 := 0; ; yyj3++ {
37036		if yyhl3 {
37037			if yyj3 >= l {
37038				break
37039			}
37040		} else {
37041			if r.CheckBreak() {
37042				break
37043			}
37044		}
37045		z.DecSendContainerState(codecSelfer_containerMapKey1234)
37046		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
37047		yys3 := string(yys3Slc)
37048		z.DecSendContainerState(codecSelfer_containerMapValue1234)
37049		switch yys3 {
37050		case "kind":
37051			if r.TryDecodeAsNil() {
37052				x.Kind = ""
37053			} else {
37054				yyv4 := &x.Kind
37055				yym5 := z.DecBinary()
37056				_ = yym5
37057				if false {
37058				} else {
37059					*((*string)(yyv4)) = r.DecodeString()
37060				}
37061			}
37062		case "apiVersion":
37063			if r.TryDecodeAsNil() {
37064				x.APIVersion = ""
37065			} else {
37066				yyv6 := &x.APIVersion
37067				yym7 := z.DecBinary()
37068				_ = yym7
37069				if false {
37070				} else {
37071					*((*string)(yyv6)) = r.DecodeString()
37072				}
37073			}
37074		case "metadata":
37075			if r.TryDecodeAsNil() {
37076				x.ObjectMeta = pkg2_v1.ObjectMeta{}
37077			} else {
37078				yyv8 := &x.ObjectMeta
37079				yym9 := z.DecBinary()
37080				_ = yym9
37081				if false {
37082				} else if z.HasExtensions() && z.DecExt(yyv8) {
37083				} else {
37084					z.DecFallback(yyv8, false)
37085				}
37086			}
37087		case "spec":
37088			if r.TryDecodeAsNil() {
37089				x.Spec = PodSpec{}
37090			} else {
37091				yyv10 := &x.Spec
37092				yyv10.CodecDecodeSelf(d)
37093			}
37094		case "status":
37095			if r.TryDecodeAsNil() {
37096				x.Status = PodStatus{}
37097			} else {
37098				yyv11 := &x.Status
37099				yyv11.CodecDecodeSelf(d)
37100			}
37101		default:
37102			z.DecStructFieldNotFound(-1, yys3)
37103		} // end switch yys3
37104	} // end for yyj3
37105	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
37106}
37107
37108func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
37109	var h codecSelfer1234
37110	z, r := codec1978.GenHelperDecoder(d)
37111	_, _, _ = h, z, r
37112	var yyj12 int
37113	var yyb12 bool
37114	var yyhl12 bool = l >= 0
37115	yyj12++
37116	if yyhl12 {
37117		yyb12 = yyj12 > l
37118	} else {
37119		yyb12 = r.CheckBreak()
37120	}
37121	if yyb12 {
37122		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
37123		return
37124	}
37125	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
37126	if r.TryDecodeAsNil() {
37127		x.Kind = ""
37128	} else {
37129		yyv13 := &x.Kind
37130		yym14 := z.DecBinary()
37131		_ = yym14
37132		if false {
37133		} else {
37134			*((*string)(yyv13)) = r.DecodeString()
37135		}
37136	}
37137	yyj12++
37138	if yyhl12 {
37139		yyb12 = yyj12 > l
37140	} else {
37141		yyb12 = r.CheckBreak()
37142	}
37143	if yyb12 {
37144		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
37145		return
37146	}
37147	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
37148	if r.TryDecodeAsNil() {
37149		x.APIVersion = ""
37150	} else {
37151		yyv15 := &x.APIVersion
37152		yym16 := z.DecBinary()
37153		_ = yym16
37154		if false {
37155		} else {
37156			*((*string)(yyv15)) = r.DecodeString()
37157		}
37158	}
37159	yyj12++
37160	if yyhl12 {
37161		yyb12 = yyj12 > l
37162	} else {
37163		yyb12 = r.CheckBreak()
37164	}
37165	if yyb12 {
37166		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
37167		return
37168	}
37169	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
37170	if r.TryDecodeAsNil() {
37171		x.ObjectMeta = pkg2_v1.ObjectMeta{}
37172	} else {
37173		yyv17 := &x.ObjectMeta
37174		yym18 := z.DecBinary()
37175		_ = yym18
37176		if false {
37177		} else if z.HasExtensions() && z.DecExt(yyv17) {
37178		} else {
37179			z.DecFallback(yyv17, false)
37180		}
37181	}
37182	yyj12++
37183	if yyhl12 {
37184		yyb12 = yyj12 > l
37185	} else {
37186		yyb12 = r.CheckBreak()
37187	}
37188	if yyb12 {
37189		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
37190		return
37191	}
37192	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
37193	if r.TryDecodeAsNil() {
37194		x.Spec = PodSpec{}
37195	} else {
37196		yyv19 := &x.Spec
37197		yyv19.CodecDecodeSelf(d)
37198	}
37199	yyj12++
37200	if yyhl12 {
37201		yyb12 = yyj12 > l
37202	} else {
37203		yyb12 = r.CheckBreak()
37204	}
37205	if yyb12 {
37206		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
37207		return
37208	}
37209	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
37210	if r.TryDecodeAsNil() {
37211		x.Status = PodStatus{}
37212	} else {
37213		yyv20 := &x.Status
37214		yyv20.CodecDecodeSelf(d)
37215	}
37216	for {
37217		yyj12++
37218		if yyhl12 {
37219			yyb12 = yyj12 > l
37220		} else {
37221			yyb12 = r.CheckBreak()
37222		}
37223		if yyb12 {
37224			break
37225		}
37226		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
37227		z.DecStructFieldNotFound(yyj12-1, "")
37228	}
37229	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
37230}
37231
37232func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) {
37233	var h codecSelfer1234
37234	z, r := codec1978.GenHelperEncoder(e)
37235	_, _, _ = h, z, r
37236	if x == nil {
37237		r.EncodeNil()
37238	} else {
37239		yym1 := z.EncBinary()
37240		_ = yym1
37241		if false {
37242		} else if z.HasExtensions() && z.EncExt(x) {
37243		} else {
37244			yysep2 := !z.EncBinary()
37245			yy2arr2 := z.EncBasicHandle().StructToArray
37246			var yyq2 [4]bool
37247			_, _, _ = yysep2, yyq2, yy2arr2
37248			const yyr2 bool = false
37249			yyq2[0] = x.Kind != ""
37250			yyq2[1] = x.APIVersion != ""
37251			yyq2[2] = true
37252			var yynn2 int
37253			if yyr2 || yy2arr2 {
37254				r.EncodeArrayStart(4)
37255			} else {
37256				yynn2 = 1
37257				for _, b := range yyq2 {
37258					if b {
37259						yynn2++
37260					}
37261				}
37262				r.EncodeMapStart(yynn2)
37263				yynn2 = 0
37264			}
37265			if yyr2 || yy2arr2 {
37266				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
37267				if yyq2[0] {
37268					yym4 := z.EncBinary()
37269					_ = yym4
37270					if false {
37271					} else {
37272						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
37273					}
37274				} else {
37275					r.EncodeString(codecSelferC_UTF81234, "")
37276				}
37277			} else {
37278				if yyq2[0] {
37279					z.EncSendContainerState(codecSelfer_containerMapKey1234)
37280					r.EncodeString(codecSelferC_UTF81234, string("kind"))
37281					z.EncSendContainerState(codecSelfer_containerMapValue1234)
37282					yym5 := z.EncBinary()
37283					_ = yym5
37284					if false {
37285					} else {
37286						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
37287					}
37288				}
37289			}
37290			if yyr2 || yy2arr2 {
37291				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
37292				if yyq2[1] {
37293					yym7 := z.EncBinary()
37294					_ = yym7
37295					if false {
37296					} else {
37297						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
37298					}
37299				} else {
37300					r.EncodeString(codecSelferC_UTF81234, "")
37301				}
37302			} else {
37303				if yyq2[1] {
37304					z.EncSendContainerState(codecSelfer_containerMapKey1234)
37305					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
37306					z.EncSendContainerState(codecSelfer_containerMapValue1234)
37307					yym8 := z.EncBinary()
37308					_ = yym8
37309					if false {
37310					} else {
37311						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
37312					}
37313				}
37314			}
37315			if yyr2 || yy2arr2 {
37316				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
37317				if yyq2[2] {
37318					yy10 := &x.ListMeta
37319					yym11 := z.EncBinary()
37320					_ = yym11
37321					if false {
37322					} else if z.HasExtensions() && z.EncExt(yy10) {
37323					} else {
37324						z.EncFallback(yy10)
37325					}
37326				} else {
37327					r.EncodeNil()
37328				}
37329			} else {
37330				if yyq2[2] {
37331					z.EncSendContainerState(codecSelfer_containerMapKey1234)
37332					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
37333					z.EncSendContainerState(codecSelfer_containerMapValue1234)
37334					yy12 := &x.ListMeta
37335					yym13 := z.EncBinary()
37336					_ = yym13
37337					if false {
37338					} else if z.HasExtensions() && z.EncExt(yy12) {
37339					} else {
37340						z.EncFallback(yy12)
37341					}
37342				}
37343			}
37344			if yyr2 || yy2arr2 {
37345				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
37346				if x.Items == nil {
37347					r.EncodeNil()
37348				} else {
37349					yym15 := z.EncBinary()
37350					_ = yym15
37351					if false {
37352					} else {
37353						h.encSlicePod(([]Pod)(x.Items), e)
37354					}
37355				}
37356			} else {
37357				z.EncSendContainerState(codecSelfer_containerMapKey1234)
37358				r.EncodeString(codecSelferC_UTF81234, string("items"))
37359				z.EncSendContainerState(codecSelfer_containerMapValue1234)
37360				if x.Items == nil {
37361					r.EncodeNil()
37362				} else {
37363					yym16 := z.EncBinary()
37364					_ = yym16
37365					if false {
37366					} else {
37367						h.encSlicePod(([]Pod)(x.Items), e)
37368					}
37369				}
37370			}
37371			if yyr2 || yy2arr2 {
37372				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
37373			} else {
37374				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
37375			}
37376		}
37377	}
37378}
37379
37380func (x *PodList) CodecDecodeSelf(d *codec1978.Decoder) {
37381	var h codecSelfer1234
37382	z, r := codec1978.GenHelperDecoder(d)
37383	_, _, _ = h, z, r
37384	yym1 := z.DecBinary()
37385	_ = yym1
37386	if false {
37387	} else if z.HasExtensions() && z.DecExt(x) {
37388	} else {
37389		yyct2 := r.ContainerType()
37390		if yyct2 == codecSelferValueTypeMap1234 {
37391			yyl2 := r.ReadMapStart()
37392			if yyl2 == 0 {
37393				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
37394			} else {
37395				x.codecDecodeSelfFromMap(yyl2, d)
37396			}
37397		} else if yyct2 == codecSelferValueTypeArray1234 {
37398			yyl2 := r.ReadArrayStart()
37399			if yyl2 == 0 {
37400				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
37401			} else {
37402				x.codecDecodeSelfFromArray(yyl2, d)
37403			}
37404		} else {
37405			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
37406		}
37407	}
37408}
37409
37410func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
37411	var h codecSelfer1234
37412	z, r := codec1978.GenHelperDecoder(d)
37413	_, _, _ = h, z, r
37414	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
37415	_ = yys3Slc
37416	var yyhl3 bool = l >= 0
37417	for yyj3 := 0; ; yyj3++ {
37418		if yyhl3 {
37419			if yyj3 >= l {
37420				break
37421			}
37422		} else {
37423			if r.CheckBreak() {
37424				break
37425			}
37426		}
37427		z.DecSendContainerState(codecSelfer_containerMapKey1234)
37428		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
37429		yys3 := string(yys3Slc)
37430		z.DecSendContainerState(codecSelfer_containerMapValue1234)
37431		switch yys3 {
37432		case "kind":
37433			if r.TryDecodeAsNil() {
37434				x.Kind = ""
37435			} else {
37436				yyv4 := &x.Kind
37437				yym5 := z.DecBinary()
37438				_ = yym5
37439				if false {
37440				} else {
37441					*((*string)(yyv4)) = r.DecodeString()
37442				}
37443			}
37444		case "apiVersion":
37445			if r.TryDecodeAsNil() {
37446				x.APIVersion = ""
37447			} else {
37448				yyv6 := &x.APIVersion
37449				yym7 := z.DecBinary()
37450				_ = yym7
37451				if false {
37452				} else {
37453					*((*string)(yyv6)) = r.DecodeString()
37454				}
37455			}
37456		case "metadata":
37457			if r.TryDecodeAsNil() {
37458				x.ListMeta = pkg2_v1.ListMeta{}
37459			} else {
37460				yyv8 := &x.ListMeta
37461				yym9 := z.DecBinary()
37462				_ = yym9
37463				if false {
37464				} else if z.HasExtensions() && z.DecExt(yyv8) {
37465				} else {
37466					z.DecFallback(yyv8, false)
37467				}
37468			}
37469		case "items":
37470			if r.TryDecodeAsNil() {
37471				x.Items = nil
37472			} else {
37473				yyv10 := &x.Items
37474				yym11 := z.DecBinary()
37475				_ = yym11
37476				if false {
37477				} else {
37478					h.decSlicePod((*[]Pod)(yyv10), d)
37479				}
37480			}
37481		default:
37482			z.DecStructFieldNotFound(-1, yys3)
37483		} // end switch yys3
37484	} // end for yyj3
37485	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
37486}
37487
37488func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
37489	var h codecSelfer1234
37490	z, r := codec1978.GenHelperDecoder(d)
37491	_, _, _ = h, z, r
37492	var yyj12 int
37493	var yyb12 bool
37494	var yyhl12 bool = l >= 0
37495	yyj12++
37496	if yyhl12 {
37497		yyb12 = yyj12 > l
37498	} else {
37499		yyb12 = r.CheckBreak()
37500	}
37501	if yyb12 {
37502		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
37503		return
37504	}
37505	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
37506	if r.TryDecodeAsNil() {
37507		x.Kind = ""
37508	} else {
37509		yyv13 := &x.Kind
37510		yym14 := z.DecBinary()
37511		_ = yym14
37512		if false {
37513		} else {
37514			*((*string)(yyv13)) = r.DecodeString()
37515		}
37516	}
37517	yyj12++
37518	if yyhl12 {
37519		yyb12 = yyj12 > l
37520	} else {
37521		yyb12 = r.CheckBreak()
37522	}
37523	if yyb12 {
37524		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
37525		return
37526	}
37527	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
37528	if r.TryDecodeAsNil() {
37529		x.APIVersion = ""
37530	} else {
37531		yyv15 := &x.APIVersion
37532		yym16 := z.DecBinary()
37533		_ = yym16
37534		if false {
37535		} else {
37536			*((*string)(yyv15)) = r.DecodeString()
37537		}
37538	}
37539	yyj12++
37540	if yyhl12 {
37541		yyb12 = yyj12 > l
37542	} else {
37543		yyb12 = r.CheckBreak()
37544	}
37545	if yyb12 {
37546		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
37547		return
37548	}
37549	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
37550	if r.TryDecodeAsNil() {
37551		x.ListMeta = pkg2_v1.ListMeta{}
37552	} else {
37553		yyv17 := &x.ListMeta
37554		yym18 := z.DecBinary()
37555		_ = yym18
37556		if false {
37557		} else if z.HasExtensions() && z.DecExt(yyv17) {
37558		} else {
37559			z.DecFallback(yyv17, false)
37560		}
37561	}
37562	yyj12++
37563	if yyhl12 {
37564		yyb12 = yyj12 > l
37565	} else {
37566		yyb12 = r.CheckBreak()
37567	}
37568	if yyb12 {
37569		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
37570		return
37571	}
37572	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
37573	if r.TryDecodeAsNil() {
37574		x.Items = nil
37575	} else {
37576		yyv19 := &x.Items
37577		yym20 := z.DecBinary()
37578		_ = yym20
37579		if false {
37580		} else {
37581			h.decSlicePod((*[]Pod)(yyv19), d)
37582		}
37583	}
37584	for {
37585		yyj12++
37586		if yyhl12 {
37587			yyb12 = yyj12 > l
37588		} else {
37589			yyb12 = r.CheckBreak()
37590		}
37591		if yyb12 {
37592			break
37593		}
37594		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
37595		z.DecStructFieldNotFound(yyj12-1, "")
37596	}
37597	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
37598}
37599
37600func (x *PodTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) {
37601	var h codecSelfer1234
37602	z, r := codec1978.GenHelperEncoder(e)
37603	_, _, _ = h, z, r
37604	if x == nil {
37605		r.EncodeNil()
37606	} else {
37607		yym1 := z.EncBinary()
37608		_ = yym1
37609		if false {
37610		} else if z.HasExtensions() && z.EncExt(x) {
37611		} else {
37612			yysep2 := !z.EncBinary()
37613			yy2arr2 := z.EncBasicHandle().StructToArray
37614			var yyq2 [2]bool
37615			_, _, _ = yysep2, yyq2, yy2arr2
37616			const yyr2 bool = false
37617			yyq2[0] = true
37618			yyq2[1] = true
37619			var yynn2 int
37620			if yyr2 || yy2arr2 {
37621				r.EncodeArrayStart(2)
37622			} else {
37623				yynn2 = 0
37624				for _, b := range yyq2 {
37625					if b {
37626						yynn2++
37627					}
37628				}
37629				r.EncodeMapStart(yynn2)
37630				yynn2 = 0
37631			}
37632			if yyr2 || yy2arr2 {
37633				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
37634				if yyq2[0] {
37635					yy4 := &x.ObjectMeta
37636					yym5 := z.EncBinary()
37637					_ = yym5
37638					if false {
37639					} else if z.HasExtensions() && z.EncExt(yy4) {
37640					} else {
37641						z.EncFallback(yy4)
37642					}
37643				} else {
37644					r.EncodeNil()
37645				}
37646			} else {
37647				if yyq2[0] {
37648					z.EncSendContainerState(codecSelfer_containerMapKey1234)
37649					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
37650					z.EncSendContainerState(codecSelfer_containerMapValue1234)
37651					yy6 := &x.ObjectMeta
37652					yym7 := z.EncBinary()
37653					_ = yym7
37654					if false {
37655					} else if z.HasExtensions() && z.EncExt(yy6) {
37656					} else {
37657						z.EncFallback(yy6)
37658					}
37659				}
37660			}
37661			if yyr2 || yy2arr2 {
37662				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
37663				if yyq2[1] {
37664					yy9 := &x.Spec
37665					yy9.CodecEncodeSelf(e)
37666				} else {
37667					r.EncodeNil()
37668				}
37669			} else {
37670				if yyq2[1] {
37671					z.EncSendContainerState(codecSelfer_containerMapKey1234)
37672					r.EncodeString(codecSelferC_UTF81234, string("spec"))
37673					z.EncSendContainerState(codecSelfer_containerMapValue1234)
37674					yy11 := &x.Spec
37675					yy11.CodecEncodeSelf(e)
37676				}
37677			}
37678			if yyr2 || yy2arr2 {
37679				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
37680			} else {
37681				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
37682			}
37683		}
37684	}
37685}
37686
37687func (x *PodTemplateSpec) CodecDecodeSelf(d *codec1978.Decoder) {
37688	var h codecSelfer1234
37689	z, r := codec1978.GenHelperDecoder(d)
37690	_, _, _ = h, z, r
37691	yym1 := z.DecBinary()
37692	_ = yym1
37693	if false {
37694	} else if z.HasExtensions() && z.DecExt(x) {
37695	} else {
37696		yyct2 := r.ContainerType()
37697		if yyct2 == codecSelferValueTypeMap1234 {
37698			yyl2 := r.ReadMapStart()
37699			if yyl2 == 0 {
37700				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
37701			} else {
37702				x.codecDecodeSelfFromMap(yyl2, d)
37703			}
37704		} else if yyct2 == codecSelferValueTypeArray1234 {
37705			yyl2 := r.ReadArrayStart()
37706			if yyl2 == 0 {
37707				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
37708			} else {
37709				x.codecDecodeSelfFromArray(yyl2, d)
37710			}
37711		} else {
37712			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
37713		}
37714	}
37715}
37716
37717func (x *PodTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
37718	var h codecSelfer1234
37719	z, r := codec1978.GenHelperDecoder(d)
37720	_, _, _ = h, z, r
37721	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
37722	_ = yys3Slc
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		z.DecSendContainerState(codecSelfer_containerMapKey1234)
37735		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
37736		yys3 := string(yys3Slc)
37737		z.DecSendContainerState(codecSelfer_containerMapValue1234)
37738		switch yys3 {
37739		case "metadata":
37740			if r.TryDecodeAsNil() {
37741				x.ObjectMeta = pkg2_v1.ObjectMeta{}
37742			} else {
37743				yyv4 := &x.ObjectMeta
37744				yym5 := z.DecBinary()
37745				_ = yym5
37746				if false {
37747				} else if z.HasExtensions() && z.DecExt(yyv4) {
37748				} else {
37749					z.DecFallback(yyv4, false)
37750				}
37751			}
37752		case "spec":
37753			if r.TryDecodeAsNil() {
37754				x.Spec = PodSpec{}
37755			} else {
37756				yyv6 := &x.Spec
37757				yyv6.CodecDecodeSelf(d)
37758			}
37759		default:
37760			z.DecStructFieldNotFound(-1, yys3)
37761		} // end switch yys3
37762	} // end for yyj3
37763	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
37764}
37765
37766func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
37767	var h codecSelfer1234
37768	z, r := codec1978.GenHelperDecoder(d)
37769	_, _, _ = h, z, r
37770	var yyj7 int
37771	var yyb7 bool
37772	var yyhl7 bool = l >= 0
37773	yyj7++
37774	if yyhl7 {
37775		yyb7 = yyj7 > l
37776	} else {
37777		yyb7 = r.CheckBreak()
37778	}
37779	if yyb7 {
37780		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
37781		return
37782	}
37783	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
37784	if r.TryDecodeAsNil() {
37785		x.ObjectMeta = pkg2_v1.ObjectMeta{}
37786	} else {
37787		yyv8 := &x.ObjectMeta
37788		yym9 := z.DecBinary()
37789		_ = yym9
37790		if false {
37791		} else if z.HasExtensions() && z.DecExt(yyv8) {
37792		} else {
37793			z.DecFallback(yyv8, false)
37794		}
37795	}
37796	yyj7++
37797	if yyhl7 {
37798		yyb7 = yyj7 > l
37799	} else {
37800		yyb7 = r.CheckBreak()
37801	}
37802	if yyb7 {
37803		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
37804		return
37805	}
37806	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
37807	if r.TryDecodeAsNil() {
37808		x.Spec = PodSpec{}
37809	} else {
37810		yyv10 := &x.Spec
37811		yyv10.CodecDecodeSelf(d)
37812	}
37813	for {
37814		yyj7++
37815		if yyhl7 {
37816			yyb7 = yyj7 > l
37817		} else {
37818			yyb7 = r.CheckBreak()
37819		}
37820		if yyb7 {
37821			break
37822		}
37823		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
37824		z.DecStructFieldNotFound(yyj7-1, "")
37825	}
37826	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
37827}
37828
37829func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) {
37830	var h codecSelfer1234
37831	z, r := codec1978.GenHelperEncoder(e)
37832	_, _, _ = h, z, r
37833	if x == nil {
37834		r.EncodeNil()
37835	} else {
37836		yym1 := z.EncBinary()
37837		_ = yym1
37838		if false {
37839		} else if z.HasExtensions() && z.EncExt(x) {
37840		} else {
37841			yysep2 := !z.EncBinary()
37842			yy2arr2 := z.EncBasicHandle().StructToArray
37843			var yyq2 [4]bool
37844			_, _, _ = yysep2, yyq2, yy2arr2
37845			const yyr2 bool = false
37846			yyq2[0] = x.Kind != ""
37847			yyq2[1] = x.APIVersion != ""
37848			yyq2[2] = true
37849			yyq2[3] = true
37850			var yynn2 int
37851			if yyr2 || yy2arr2 {
37852				r.EncodeArrayStart(4)
37853			} else {
37854				yynn2 = 0
37855				for _, b := range yyq2 {
37856					if b {
37857						yynn2++
37858					}
37859				}
37860				r.EncodeMapStart(yynn2)
37861				yynn2 = 0
37862			}
37863			if yyr2 || yy2arr2 {
37864				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
37865				if yyq2[0] {
37866					yym4 := z.EncBinary()
37867					_ = yym4
37868					if false {
37869					} else {
37870						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
37871					}
37872				} else {
37873					r.EncodeString(codecSelferC_UTF81234, "")
37874				}
37875			} else {
37876				if yyq2[0] {
37877					z.EncSendContainerState(codecSelfer_containerMapKey1234)
37878					r.EncodeString(codecSelferC_UTF81234, string("kind"))
37879					z.EncSendContainerState(codecSelfer_containerMapValue1234)
37880					yym5 := z.EncBinary()
37881					_ = yym5
37882					if false {
37883					} else {
37884						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
37885					}
37886				}
37887			}
37888			if yyr2 || yy2arr2 {
37889				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
37890				if yyq2[1] {
37891					yym7 := z.EncBinary()
37892					_ = yym7
37893					if false {
37894					} else {
37895						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
37896					}
37897				} else {
37898					r.EncodeString(codecSelferC_UTF81234, "")
37899				}
37900			} else {
37901				if yyq2[1] {
37902					z.EncSendContainerState(codecSelfer_containerMapKey1234)
37903					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
37904					z.EncSendContainerState(codecSelfer_containerMapValue1234)
37905					yym8 := z.EncBinary()
37906					_ = yym8
37907					if false {
37908					} else {
37909						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
37910					}
37911				}
37912			}
37913			if yyr2 || yy2arr2 {
37914				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
37915				if yyq2[2] {
37916					yy10 := &x.ObjectMeta
37917					yym11 := z.EncBinary()
37918					_ = yym11
37919					if false {
37920					} else if z.HasExtensions() && z.EncExt(yy10) {
37921					} else {
37922						z.EncFallback(yy10)
37923					}
37924				} else {
37925					r.EncodeNil()
37926				}
37927			} else {
37928				if yyq2[2] {
37929					z.EncSendContainerState(codecSelfer_containerMapKey1234)
37930					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
37931					z.EncSendContainerState(codecSelfer_containerMapValue1234)
37932					yy12 := &x.ObjectMeta
37933					yym13 := z.EncBinary()
37934					_ = yym13
37935					if false {
37936					} else if z.HasExtensions() && z.EncExt(yy12) {
37937					} else {
37938						z.EncFallback(yy12)
37939					}
37940				}
37941			}
37942			if yyr2 || yy2arr2 {
37943				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
37944				if yyq2[3] {
37945					yy15 := &x.Template
37946					yy15.CodecEncodeSelf(e)
37947				} else {
37948					r.EncodeNil()
37949				}
37950			} else {
37951				if yyq2[3] {
37952					z.EncSendContainerState(codecSelfer_containerMapKey1234)
37953					r.EncodeString(codecSelferC_UTF81234, string("template"))
37954					z.EncSendContainerState(codecSelfer_containerMapValue1234)
37955					yy17 := &x.Template
37956					yy17.CodecEncodeSelf(e)
37957				}
37958			}
37959			if yyr2 || yy2arr2 {
37960				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
37961			} else {
37962				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
37963			}
37964		}
37965	}
37966}
37967
37968func (x *PodTemplate) CodecDecodeSelf(d *codec1978.Decoder) {
37969	var h codecSelfer1234
37970	z, r := codec1978.GenHelperDecoder(d)
37971	_, _, _ = h, z, r
37972	yym1 := z.DecBinary()
37973	_ = yym1
37974	if false {
37975	} else if z.HasExtensions() && z.DecExt(x) {
37976	} else {
37977		yyct2 := r.ContainerType()
37978		if yyct2 == codecSelferValueTypeMap1234 {
37979			yyl2 := r.ReadMapStart()
37980			if yyl2 == 0 {
37981				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
37982			} else {
37983				x.codecDecodeSelfFromMap(yyl2, d)
37984			}
37985		} else if yyct2 == codecSelferValueTypeArray1234 {
37986			yyl2 := r.ReadArrayStart()
37987			if yyl2 == 0 {
37988				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
37989			} else {
37990				x.codecDecodeSelfFromArray(yyl2, d)
37991			}
37992		} else {
37993			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
37994		}
37995	}
37996}
37997
37998func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
37999	var h codecSelfer1234
38000	z, r := codec1978.GenHelperDecoder(d)
38001	_, _, _ = h, z, r
38002	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
38003	_ = yys3Slc
38004	var yyhl3 bool = l >= 0
38005	for yyj3 := 0; ; yyj3++ {
38006		if yyhl3 {
38007			if yyj3 >= l {
38008				break
38009			}
38010		} else {
38011			if r.CheckBreak() {
38012				break
38013			}
38014		}
38015		z.DecSendContainerState(codecSelfer_containerMapKey1234)
38016		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
38017		yys3 := string(yys3Slc)
38018		z.DecSendContainerState(codecSelfer_containerMapValue1234)
38019		switch yys3 {
38020		case "kind":
38021			if r.TryDecodeAsNil() {
38022				x.Kind = ""
38023			} else {
38024				yyv4 := &x.Kind
38025				yym5 := z.DecBinary()
38026				_ = yym5
38027				if false {
38028				} else {
38029					*((*string)(yyv4)) = r.DecodeString()
38030				}
38031			}
38032		case "apiVersion":
38033			if r.TryDecodeAsNil() {
38034				x.APIVersion = ""
38035			} else {
38036				yyv6 := &x.APIVersion
38037				yym7 := z.DecBinary()
38038				_ = yym7
38039				if false {
38040				} else {
38041					*((*string)(yyv6)) = r.DecodeString()
38042				}
38043			}
38044		case "metadata":
38045			if r.TryDecodeAsNil() {
38046				x.ObjectMeta = pkg2_v1.ObjectMeta{}
38047			} else {
38048				yyv8 := &x.ObjectMeta
38049				yym9 := z.DecBinary()
38050				_ = yym9
38051				if false {
38052				} else if z.HasExtensions() && z.DecExt(yyv8) {
38053				} else {
38054					z.DecFallback(yyv8, false)
38055				}
38056			}
38057		case "template":
38058			if r.TryDecodeAsNil() {
38059				x.Template = PodTemplateSpec{}
38060			} else {
38061				yyv10 := &x.Template
38062				yyv10.CodecDecodeSelf(d)
38063			}
38064		default:
38065			z.DecStructFieldNotFound(-1, yys3)
38066		} // end switch yys3
38067	} // end for yyj3
38068	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
38069}
38070
38071func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
38072	var h codecSelfer1234
38073	z, r := codec1978.GenHelperDecoder(d)
38074	_, _, _ = h, z, r
38075	var yyj11 int
38076	var yyb11 bool
38077	var yyhl11 bool = l >= 0
38078	yyj11++
38079	if yyhl11 {
38080		yyb11 = yyj11 > l
38081	} else {
38082		yyb11 = r.CheckBreak()
38083	}
38084	if yyb11 {
38085		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
38086		return
38087	}
38088	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
38089	if r.TryDecodeAsNil() {
38090		x.Kind = ""
38091	} else {
38092		yyv12 := &x.Kind
38093		yym13 := z.DecBinary()
38094		_ = yym13
38095		if false {
38096		} else {
38097			*((*string)(yyv12)) = r.DecodeString()
38098		}
38099	}
38100	yyj11++
38101	if yyhl11 {
38102		yyb11 = yyj11 > l
38103	} else {
38104		yyb11 = r.CheckBreak()
38105	}
38106	if yyb11 {
38107		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
38108		return
38109	}
38110	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
38111	if r.TryDecodeAsNil() {
38112		x.APIVersion = ""
38113	} else {
38114		yyv14 := &x.APIVersion
38115		yym15 := z.DecBinary()
38116		_ = yym15
38117		if false {
38118		} else {
38119			*((*string)(yyv14)) = r.DecodeString()
38120		}
38121	}
38122	yyj11++
38123	if yyhl11 {
38124		yyb11 = yyj11 > l
38125	} else {
38126		yyb11 = r.CheckBreak()
38127	}
38128	if yyb11 {
38129		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
38130		return
38131	}
38132	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
38133	if r.TryDecodeAsNil() {
38134		x.ObjectMeta = pkg2_v1.ObjectMeta{}
38135	} else {
38136		yyv16 := &x.ObjectMeta
38137		yym17 := z.DecBinary()
38138		_ = yym17
38139		if false {
38140		} else if z.HasExtensions() && z.DecExt(yyv16) {
38141		} else {
38142			z.DecFallback(yyv16, false)
38143		}
38144	}
38145	yyj11++
38146	if yyhl11 {
38147		yyb11 = yyj11 > l
38148	} else {
38149		yyb11 = r.CheckBreak()
38150	}
38151	if yyb11 {
38152		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
38153		return
38154	}
38155	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
38156	if r.TryDecodeAsNil() {
38157		x.Template = PodTemplateSpec{}
38158	} else {
38159		yyv18 := &x.Template
38160		yyv18.CodecDecodeSelf(d)
38161	}
38162	for {
38163		yyj11++
38164		if yyhl11 {
38165			yyb11 = yyj11 > l
38166		} else {
38167			yyb11 = r.CheckBreak()
38168		}
38169		if yyb11 {
38170			break
38171		}
38172		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
38173		z.DecStructFieldNotFound(yyj11-1, "")
38174	}
38175	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
38176}
38177
38178func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) {
38179	var h codecSelfer1234
38180	z, r := codec1978.GenHelperEncoder(e)
38181	_, _, _ = h, z, r
38182	if x == nil {
38183		r.EncodeNil()
38184	} else {
38185		yym1 := z.EncBinary()
38186		_ = yym1
38187		if false {
38188		} else if z.HasExtensions() && z.EncExt(x) {
38189		} else {
38190			yysep2 := !z.EncBinary()
38191			yy2arr2 := z.EncBasicHandle().StructToArray
38192			var yyq2 [4]bool
38193			_, _, _ = yysep2, yyq2, yy2arr2
38194			const yyr2 bool = false
38195			yyq2[0] = x.Kind != ""
38196			yyq2[1] = x.APIVersion != ""
38197			yyq2[2] = true
38198			var yynn2 int
38199			if yyr2 || yy2arr2 {
38200				r.EncodeArrayStart(4)
38201			} else {
38202				yynn2 = 1
38203				for _, b := range yyq2 {
38204					if b {
38205						yynn2++
38206					}
38207				}
38208				r.EncodeMapStart(yynn2)
38209				yynn2 = 0
38210			}
38211			if yyr2 || yy2arr2 {
38212				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
38213				if yyq2[0] {
38214					yym4 := z.EncBinary()
38215					_ = yym4
38216					if false {
38217					} else {
38218						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
38219					}
38220				} else {
38221					r.EncodeString(codecSelferC_UTF81234, "")
38222				}
38223			} else {
38224				if yyq2[0] {
38225					z.EncSendContainerState(codecSelfer_containerMapKey1234)
38226					r.EncodeString(codecSelferC_UTF81234, string("kind"))
38227					z.EncSendContainerState(codecSelfer_containerMapValue1234)
38228					yym5 := z.EncBinary()
38229					_ = yym5
38230					if false {
38231					} else {
38232						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
38233					}
38234				}
38235			}
38236			if yyr2 || yy2arr2 {
38237				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
38238				if yyq2[1] {
38239					yym7 := z.EncBinary()
38240					_ = yym7
38241					if false {
38242					} else {
38243						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
38244					}
38245				} else {
38246					r.EncodeString(codecSelferC_UTF81234, "")
38247				}
38248			} else {
38249				if yyq2[1] {
38250					z.EncSendContainerState(codecSelfer_containerMapKey1234)
38251					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
38252					z.EncSendContainerState(codecSelfer_containerMapValue1234)
38253					yym8 := z.EncBinary()
38254					_ = yym8
38255					if false {
38256					} else {
38257						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
38258					}
38259				}
38260			}
38261			if yyr2 || yy2arr2 {
38262				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
38263				if yyq2[2] {
38264					yy10 := &x.ListMeta
38265					yym11 := z.EncBinary()
38266					_ = yym11
38267					if false {
38268					} else if z.HasExtensions() && z.EncExt(yy10) {
38269					} else {
38270						z.EncFallback(yy10)
38271					}
38272				} else {
38273					r.EncodeNil()
38274				}
38275			} else {
38276				if yyq2[2] {
38277					z.EncSendContainerState(codecSelfer_containerMapKey1234)
38278					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
38279					z.EncSendContainerState(codecSelfer_containerMapValue1234)
38280					yy12 := &x.ListMeta
38281					yym13 := z.EncBinary()
38282					_ = yym13
38283					if false {
38284					} else if z.HasExtensions() && z.EncExt(yy12) {
38285					} else {
38286						z.EncFallback(yy12)
38287					}
38288				}
38289			}
38290			if yyr2 || yy2arr2 {
38291				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
38292				if x.Items == nil {
38293					r.EncodeNil()
38294				} else {
38295					yym15 := z.EncBinary()
38296					_ = yym15
38297					if false {
38298					} else {
38299						h.encSlicePodTemplate(([]PodTemplate)(x.Items), e)
38300					}
38301				}
38302			} else {
38303				z.EncSendContainerState(codecSelfer_containerMapKey1234)
38304				r.EncodeString(codecSelferC_UTF81234, string("items"))
38305				z.EncSendContainerState(codecSelfer_containerMapValue1234)
38306				if x.Items == nil {
38307					r.EncodeNil()
38308				} else {
38309					yym16 := z.EncBinary()
38310					_ = yym16
38311					if false {
38312					} else {
38313						h.encSlicePodTemplate(([]PodTemplate)(x.Items), e)
38314					}
38315				}
38316			}
38317			if yyr2 || yy2arr2 {
38318				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
38319			} else {
38320				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
38321			}
38322		}
38323	}
38324}
38325
38326func (x *PodTemplateList) CodecDecodeSelf(d *codec1978.Decoder) {
38327	var h codecSelfer1234
38328	z, r := codec1978.GenHelperDecoder(d)
38329	_, _, _ = h, z, r
38330	yym1 := z.DecBinary()
38331	_ = yym1
38332	if false {
38333	} else if z.HasExtensions() && z.DecExt(x) {
38334	} else {
38335		yyct2 := r.ContainerType()
38336		if yyct2 == codecSelferValueTypeMap1234 {
38337			yyl2 := r.ReadMapStart()
38338			if yyl2 == 0 {
38339				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
38340			} else {
38341				x.codecDecodeSelfFromMap(yyl2, d)
38342			}
38343		} else if yyct2 == codecSelferValueTypeArray1234 {
38344			yyl2 := r.ReadArrayStart()
38345			if yyl2 == 0 {
38346				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
38347			} else {
38348				x.codecDecodeSelfFromArray(yyl2, d)
38349			}
38350		} else {
38351			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
38352		}
38353	}
38354}
38355
38356func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
38357	var h codecSelfer1234
38358	z, r := codec1978.GenHelperDecoder(d)
38359	_, _, _ = h, z, r
38360	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
38361	_ = yys3Slc
38362	var yyhl3 bool = l >= 0
38363	for yyj3 := 0; ; yyj3++ {
38364		if yyhl3 {
38365			if yyj3 >= l {
38366				break
38367			}
38368		} else {
38369			if r.CheckBreak() {
38370				break
38371			}
38372		}
38373		z.DecSendContainerState(codecSelfer_containerMapKey1234)
38374		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
38375		yys3 := string(yys3Slc)
38376		z.DecSendContainerState(codecSelfer_containerMapValue1234)
38377		switch yys3 {
38378		case "kind":
38379			if r.TryDecodeAsNil() {
38380				x.Kind = ""
38381			} else {
38382				yyv4 := &x.Kind
38383				yym5 := z.DecBinary()
38384				_ = yym5
38385				if false {
38386				} else {
38387					*((*string)(yyv4)) = r.DecodeString()
38388				}
38389			}
38390		case "apiVersion":
38391			if r.TryDecodeAsNil() {
38392				x.APIVersion = ""
38393			} else {
38394				yyv6 := &x.APIVersion
38395				yym7 := z.DecBinary()
38396				_ = yym7
38397				if false {
38398				} else {
38399					*((*string)(yyv6)) = r.DecodeString()
38400				}
38401			}
38402		case "metadata":
38403			if r.TryDecodeAsNil() {
38404				x.ListMeta = pkg2_v1.ListMeta{}
38405			} else {
38406				yyv8 := &x.ListMeta
38407				yym9 := z.DecBinary()
38408				_ = yym9
38409				if false {
38410				} else if z.HasExtensions() && z.DecExt(yyv8) {
38411				} else {
38412					z.DecFallback(yyv8, false)
38413				}
38414			}
38415		case "items":
38416			if r.TryDecodeAsNil() {
38417				x.Items = nil
38418			} else {
38419				yyv10 := &x.Items
38420				yym11 := z.DecBinary()
38421				_ = yym11
38422				if false {
38423				} else {
38424					h.decSlicePodTemplate((*[]PodTemplate)(yyv10), d)
38425				}
38426			}
38427		default:
38428			z.DecStructFieldNotFound(-1, yys3)
38429		} // end switch yys3
38430	} // end for yyj3
38431	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
38432}
38433
38434func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
38435	var h codecSelfer1234
38436	z, r := codec1978.GenHelperDecoder(d)
38437	_, _, _ = h, z, r
38438	var yyj12 int
38439	var yyb12 bool
38440	var yyhl12 bool = l >= 0
38441	yyj12++
38442	if yyhl12 {
38443		yyb12 = yyj12 > l
38444	} else {
38445		yyb12 = r.CheckBreak()
38446	}
38447	if yyb12 {
38448		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
38449		return
38450	}
38451	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
38452	if r.TryDecodeAsNil() {
38453		x.Kind = ""
38454	} else {
38455		yyv13 := &x.Kind
38456		yym14 := z.DecBinary()
38457		_ = yym14
38458		if false {
38459		} else {
38460			*((*string)(yyv13)) = r.DecodeString()
38461		}
38462	}
38463	yyj12++
38464	if yyhl12 {
38465		yyb12 = yyj12 > l
38466	} else {
38467		yyb12 = r.CheckBreak()
38468	}
38469	if yyb12 {
38470		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
38471		return
38472	}
38473	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
38474	if r.TryDecodeAsNil() {
38475		x.APIVersion = ""
38476	} else {
38477		yyv15 := &x.APIVersion
38478		yym16 := z.DecBinary()
38479		_ = yym16
38480		if false {
38481		} else {
38482			*((*string)(yyv15)) = r.DecodeString()
38483		}
38484	}
38485	yyj12++
38486	if yyhl12 {
38487		yyb12 = yyj12 > l
38488	} else {
38489		yyb12 = r.CheckBreak()
38490	}
38491	if yyb12 {
38492		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
38493		return
38494	}
38495	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
38496	if r.TryDecodeAsNil() {
38497		x.ListMeta = pkg2_v1.ListMeta{}
38498	} else {
38499		yyv17 := &x.ListMeta
38500		yym18 := z.DecBinary()
38501		_ = yym18
38502		if false {
38503		} else if z.HasExtensions() && z.DecExt(yyv17) {
38504		} else {
38505			z.DecFallback(yyv17, false)
38506		}
38507	}
38508	yyj12++
38509	if yyhl12 {
38510		yyb12 = yyj12 > l
38511	} else {
38512		yyb12 = r.CheckBreak()
38513	}
38514	if yyb12 {
38515		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
38516		return
38517	}
38518	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
38519	if r.TryDecodeAsNil() {
38520		x.Items = nil
38521	} else {
38522		yyv19 := &x.Items
38523		yym20 := z.DecBinary()
38524		_ = yym20
38525		if false {
38526		} else {
38527			h.decSlicePodTemplate((*[]PodTemplate)(yyv19), d)
38528		}
38529	}
38530	for {
38531		yyj12++
38532		if yyhl12 {
38533			yyb12 = yyj12 > l
38534		} else {
38535			yyb12 = r.CheckBreak()
38536		}
38537		if yyb12 {
38538			break
38539		}
38540		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
38541		z.DecStructFieldNotFound(yyj12-1, "")
38542	}
38543	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
38544}
38545
38546func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) {
38547	var h codecSelfer1234
38548	z, r := codec1978.GenHelperEncoder(e)
38549	_, _, _ = h, z, r
38550	if x == nil {
38551		r.EncodeNil()
38552	} else {
38553		yym1 := z.EncBinary()
38554		_ = yym1
38555		if false {
38556		} else if z.HasExtensions() && z.EncExt(x) {
38557		} else {
38558			yysep2 := !z.EncBinary()
38559			yy2arr2 := z.EncBasicHandle().StructToArray
38560			var yyq2 [4]bool
38561			_, _, _ = yysep2, yyq2, yy2arr2
38562			const yyr2 bool = false
38563			yyq2[0] = x.Replicas != nil
38564			yyq2[1] = x.MinReadySeconds != 0
38565			yyq2[2] = len(x.Selector) != 0
38566			yyq2[3] = x.Template != nil
38567			var yynn2 int
38568			if yyr2 || yy2arr2 {
38569				r.EncodeArrayStart(4)
38570			} else {
38571				yynn2 = 0
38572				for _, b := range yyq2 {
38573					if b {
38574						yynn2++
38575					}
38576				}
38577				r.EncodeMapStart(yynn2)
38578				yynn2 = 0
38579			}
38580			if yyr2 || yy2arr2 {
38581				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
38582				if yyq2[0] {
38583					if x.Replicas == nil {
38584						r.EncodeNil()
38585					} else {
38586						yy4 := *x.Replicas
38587						yym5 := z.EncBinary()
38588						_ = yym5
38589						if false {
38590						} else {
38591							r.EncodeInt(int64(yy4))
38592						}
38593					}
38594				} else {
38595					r.EncodeNil()
38596				}
38597			} else {
38598				if yyq2[0] {
38599					z.EncSendContainerState(codecSelfer_containerMapKey1234)
38600					r.EncodeString(codecSelferC_UTF81234, string("replicas"))
38601					z.EncSendContainerState(codecSelfer_containerMapValue1234)
38602					if x.Replicas == nil {
38603						r.EncodeNil()
38604					} else {
38605						yy6 := *x.Replicas
38606						yym7 := z.EncBinary()
38607						_ = yym7
38608						if false {
38609						} else {
38610							r.EncodeInt(int64(yy6))
38611						}
38612					}
38613				}
38614			}
38615			if yyr2 || yy2arr2 {
38616				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
38617				if yyq2[1] {
38618					yym9 := z.EncBinary()
38619					_ = yym9
38620					if false {
38621					} else {
38622						r.EncodeInt(int64(x.MinReadySeconds))
38623					}
38624				} else {
38625					r.EncodeInt(0)
38626				}
38627			} else {
38628				if yyq2[1] {
38629					z.EncSendContainerState(codecSelfer_containerMapKey1234)
38630					r.EncodeString(codecSelferC_UTF81234, string("minReadySeconds"))
38631					z.EncSendContainerState(codecSelfer_containerMapValue1234)
38632					yym10 := z.EncBinary()
38633					_ = yym10
38634					if false {
38635					} else {
38636						r.EncodeInt(int64(x.MinReadySeconds))
38637					}
38638				}
38639			}
38640			if yyr2 || yy2arr2 {
38641				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
38642				if yyq2[2] {
38643					if x.Selector == nil {
38644						r.EncodeNil()
38645					} else {
38646						yym12 := z.EncBinary()
38647						_ = yym12
38648						if false {
38649						} else {
38650							z.F.EncMapStringStringV(x.Selector, false, e)
38651						}
38652					}
38653				} else {
38654					r.EncodeNil()
38655				}
38656			} else {
38657				if yyq2[2] {
38658					z.EncSendContainerState(codecSelfer_containerMapKey1234)
38659					r.EncodeString(codecSelferC_UTF81234, string("selector"))
38660					z.EncSendContainerState(codecSelfer_containerMapValue1234)
38661					if x.Selector == nil {
38662						r.EncodeNil()
38663					} else {
38664						yym13 := z.EncBinary()
38665						_ = yym13
38666						if false {
38667						} else {
38668							z.F.EncMapStringStringV(x.Selector, false, e)
38669						}
38670					}
38671				}
38672			}
38673			if yyr2 || yy2arr2 {
38674				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
38675				if yyq2[3] {
38676					if x.Template == nil {
38677						r.EncodeNil()
38678					} else {
38679						x.Template.CodecEncodeSelf(e)
38680					}
38681				} else {
38682					r.EncodeNil()
38683				}
38684			} else {
38685				if yyq2[3] {
38686					z.EncSendContainerState(codecSelfer_containerMapKey1234)
38687					r.EncodeString(codecSelferC_UTF81234, string("template"))
38688					z.EncSendContainerState(codecSelfer_containerMapValue1234)
38689					if x.Template == nil {
38690						r.EncodeNil()
38691					} else {
38692						x.Template.CodecEncodeSelf(e)
38693					}
38694				}
38695			}
38696			if yyr2 || yy2arr2 {
38697				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
38698			} else {
38699				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
38700			}
38701		}
38702	}
38703}
38704
38705func (x *ReplicationControllerSpec) CodecDecodeSelf(d *codec1978.Decoder) {
38706	var h codecSelfer1234
38707	z, r := codec1978.GenHelperDecoder(d)
38708	_, _, _ = h, z, r
38709	yym1 := z.DecBinary()
38710	_ = yym1
38711	if false {
38712	} else if z.HasExtensions() && z.DecExt(x) {
38713	} else {
38714		yyct2 := r.ContainerType()
38715		if yyct2 == codecSelferValueTypeMap1234 {
38716			yyl2 := r.ReadMapStart()
38717			if yyl2 == 0 {
38718				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
38719			} else {
38720				x.codecDecodeSelfFromMap(yyl2, d)
38721			}
38722		} else if yyct2 == codecSelferValueTypeArray1234 {
38723			yyl2 := r.ReadArrayStart()
38724			if yyl2 == 0 {
38725				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
38726			} else {
38727				x.codecDecodeSelfFromArray(yyl2, d)
38728			}
38729		} else {
38730			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
38731		}
38732	}
38733}
38734
38735func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
38736	var h codecSelfer1234
38737	z, r := codec1978.GenHelperDecoder(d)
38738	_, _, _ = h, z, r
38739	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
38740	_ = yys3Slc
38741	var yyhl3 bool = l >= 0
38742	for yyj3 := 0; ; yyj3++ {
38743		if yyhl3 {
38744			if yyj3 >= l {
38745				break
38746			}
38747		} else {
38748			if r.CheckBreak() {
38749				break
38750			}
38751		}
38752		z.DecSendContainerState(codecSelfer_containerMapKey1234)
38753		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
38754		yys3 := string(yys3Slc)
38755		z.DecSendContainerState(codecSelfer_containerMapValue1234)
38756		switch yys3 {
38757		case "replicas":
38758			if r.TryDecodeAsNil() {
38759				if x.Replicas != nil {
38760					x.Replicas = nil
38761				}
38762			} else {
38763				if x.Replicas == nil {
38764					x.Replicas = new(int32)
38765				}
38766				yym5 := z.DecBinary()
38767				_ = yym5
38768				if false {
38769				} else {
38770					*((*int32)(x.Replicas)) = int32(r.DecodeInt(32))
38771				}
38772			}
38773		case "minReadySeconds":
38774			if r.TryDecodeAsNil() {
38775				x.MinReadySeconds = 0
38776			} else {
38777				yyv6 := &x.MinReadySeconds
38778				yym7 := z.DecBinary()
38779				_ = yym7
38780				if false {
38781				} else {
38782					*((*int32)(yyv6)) = int32(r.DecodeInt(32))
38783				}
38784			}
38785		case "selector":
38786			if r.TryDecodeAsNil() {
38787				x.Selector = nil
38788			} else {
38789				yyv8 := &x.Selector
38790				yym9 := z.DecBinary()
38791				_ = yym9
38792				if false {
38793				} else {
38794					z.F.DecMapStringStringX(yyv8, false, d)
38795				}
38796			}
38797		case "template":
38798			if r.TryDecodeAsNil() {
38799				if x.Template != nil {
38800					x.Template = nil
38801				}
38802			} else {
38803				if x.Template == nil {
38804					x.Template = new(PodTemplateSpec)
38805				}
38806				x.Template.CodecDecodeSelf(d)
38807			}
38808		default:
38809			z.DecStructFieldNotFound(-1, yys3)
38810		} // end switch yys3
38811	} // end for yyj3
38812	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
38813}
38814
38815func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
38816	var h codecSelfer1234
38817	z, r := codec1978.GenHelperDecoder(d)
38818	_, _, _ = h, z, r
38819	var yyj11 int
38820	var yyb11 bool
38821	var yyhl11 bool = l >= 0
38822	yyj11++
38823	if yyhl11 {
38824		yyb11 = yyj11 > l
38825	} else {
38826		yyb11 = r.CheckBreak()
38827	}
38828	if yyb11 {
38829		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
38830		return
38831	}
38832	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
38833	if r.TryDecodeAsNil() {
38834		if x.Replicas != nil {
38835			x.Replicas = nil
38836		}
38837	} else {
38838		if x.Replicas == nil {
38839			x.Replicas = new(int32)
38840		}
38841		yym13 := z.DecBinary()
38842		_ = yym13
38843		if false {
38844		} else {
38845			*((*int32)(x.Replicas)) = int32(r.DecodeInt(32))
38846		}
38847	}
38848	yyj11++
38849	if yyhl11 {
38850		yyb11 = yyj11 > l
38851	} else {
38852		yyb11 = r.CheckBreak()
38853	}
38854	if yyb11 {
38855		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
38856		return
38857	}
38858	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
38859	if r.TryDecodeAsNil() {
38860		x.MinReadySeconds = 0
38861	} else {
38862		yyv14 := &x.MinReadySeconds
38863		yym15 := z.DecBinary()
38864		_ = yym15
38865		if false {
38866		} else {
38867			*((*int32)(yyv14)) = int32(r.DecodeInt(32))
38868		}
38869	}
38870	yyj11++
38871	if yyhl11 {
38872		yyb11 = yyj11 > l
38873	} else {
38874		yyb11 = r.CheckBreak()
38875	}
38876	if yyb11 {
38877		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
38878		return
38879	}
38880	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
38881	if r.TryDecodeAsNil() {
38882		x.Selector = nil
38883	} else {
38884		yyv16 := &x.Selector
38885		yym17 := z.DecBinary()
38886		_ = yym17
38887		if false {
38888		} else {
38889			z.F.DecMapStringStringX(yyv16, false, d)
38890		}
38891	}
38892	yyj11++
38893	if yyhl11 {
38894		yyb11 = yyj11 > l
38895	} else {
38896		yyb11 = r.CheckBreak()
38897	}
38898	if yyb11 {
38899		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
38900		return
38901	}
38902	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
38903	if r.TryDecodeAsNil() {
38904		if x.Template != nil {
38905			x.Template = nil
38906		}
38907	} else {
38908		if x.Template == nil {
38909			x.Template = new(PodTemplateSpec)
38910		}
38911		x.Template.CodecDecodeSelf(d)
38912	}
38913	for {
38914		yyj11++
38915		if yyhl11 {
38916			yyb11 = yyj11 > l
38917		} else {
38918			yyb11 = r.CheckBreak()
38919		}
38920		if yyb11 {
38921			break
38922		}
38923		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
38924		z.DecStructFieldNotFound(yyj11-1, "")
38925	}
38926	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
38927}
38928
38929func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) {
38930	var h codecSelfer1234
38931	z, r := codec1978.GenHelperEncoder(e)
38932	_, _, _ = h, z, r
38933	if x == nil {
38934		r.EncodeNil()
38935	} else {
38936		yym1 := z.EncBinary()
38937		_ = yym1
38938		if false {
38939		} else if z.HasExtensions() && z.EncExt(x) {
38940		} else {
38941			yysep2 := !z.EncBinary()
38942			yy2arr2 := z.EncBasicHandle().StructToArray
38943			var yyq2 [6]bool
38944			_, _, _ = yysep2, yyq2, yy2arr2
38945			const yyr2 bool = false
38946			yyq2[1] = x.FullyLabeledReplicas != 0
38947			yyq2[2] = x.ReadyReplicas != 0
38948			yyq2[3] = x.AvailableReplicas != 0
38949			yyq2[4] = x.ObservedGeneration != 0
38950			yyq2[5] = len(x.Conditions) != 0
38951			var yynn2 int
38952			if yyr2 || yy2arr2 {
38953				r.EncodeArrayStart(6)
38954			} else {
38955				yynn2 = 1
38956				for _, b := range yyq2 {
38957					if b {
38958						yynn2++
38959					}
38960				}
38961				r.EncodeMapStart(yynn2)
38962				yynn2 = 0
38963			}
38964			if yyr2 || yy2arr2 {
38965				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
38966				yym4 := z.EncBinary()
38967				_ = yym4
38968				if false {
38969				} else {
38970					r.EncodeInt(int64(x.Replicas))
38971				}
38972			} else {
38973				z.EncSendContainerState(codecSelfer_containerMapKey1234)
38974				r.EncodeString(codecSelferC_UTF81234, string("replicas"))
38975				z.EncSendContainerState(codecSelfer_containerMapValue1234)
38976				yym5 := z.EncBinary()
38977				_ = yym5
38978				if false {
38979				} else {
38980					r.EncodeInt(int64(x.Replicas))
38981				}
38982			}
38983			if yyr2 || yy2arr2 {
38984				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
38985				if yyq2[1] {
38986					yym7 := z.EncBinary()
38987					_ = yym7
38988					if false {
38989					} else {
38990						r.EncodeInt(int64(x.FullyLabeledReplicas))
38991					}
38992				} else {
38993					r.EncodeInt(0)
38994				}
38995			} else {
38996				if yyq2[1] {
38997					z.EncSendContainerState(codecSelfer_containerMapKey1234)
38998					r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas"))
38999					z.EncSendContainerState(codecSelfer_containerMapValue1234)
39000					yym8 := z.EncBinary()
39001					_ = yym8
39002					if false {
39003					} else {
39004						r.EncodeInt(int64(x.FullyLabeledReplicas))
39005					}
39006				}
39007			}
39008			if yyr2 || yy2arr2 {
39009				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
39010				if yyq2[2] {
39011					yym10 := z.EncBinary()
39012					_ = yym10
39013					if false {
39014					} else {
39015						r.EncodeInt(int64(x.ReadyReplicas))
39016					}
39017				} else {
39018					r.EncodeInt(0)
39019				}
39020			} else {
39021				if yyq2[2] {
39022					z.EncSendContainerState(codecSelfer_containerMapKey1234)
39023					r.EncodeString(codecSelferC_UTF81234, string("readyReplicas"))
39024					z.EncSendContainerState(codecSelfer_containerMapValue1234)
39025					yym11 := z.EncBinary()
39026					_ = yym11
39027					if false {
39028					} else {
39029						r.EncodeInt(int64(x.ReadyReplicas))
39030					}
39031				}
39032			}
39033			if yyr2 || yy2arr2 {
39034				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
39035				if yyq2[3] {
39036					yym13 := z.EncBinary()
39037					_ = yym13
39038					if false {
39039					} else {
39040						r.EncodeInt(int64(x.AvailableReplicas))
39041					}
39042				} else {
39043					r.EncodeInt(0)
39044				}
39045			} else {
39046				if yyq2[3] {
39047					z.EncSendContainerState(codecSelfer_containerMapKey1234)
39048					r.EncodeString(codecSelferC_UTF81234, string("availableReplicas"))
39049					z.EncSendContainerState(codecSelfer_containerMapValue1234)
39050					yym14 := z.EncBinary()
39051					_ = yym14
39052					if false {
39053					} else {
39054						r.EncodeInt(int64(x.AvailableReplicas))
39055					}
39056				}
39057			}
39058			if yyr2 || yy2arr2 {
39059				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
39060				if yyq2[4] {
39061					yym16 := z.EncBinary()
39062					_ = yym16
39063					if false {
39064					} else {
39065						r.EncodeInt(int64(x.ObservedGeneration))
39066					}
39067				} else {
39068					r.EncodeInt(0)
39069				}
39070			} else {
39071				if yyq2[4] {
39072					z.EncSendContainerState(codecSelfer_containerMapKey1234)
39073					r.EncodeString(codecSelferC_UTF81234, string("observedGeneration"))
39074					z.EncSendContainerState(codecSelfer_containerMapValue1234)
39075					yym17 := z.EncBinary()
39076					_ = yym17
39077					if false {
39078					} else {
39079						r.EncodeInt(int64(x.ObservedGeneration))
39080					}
39081				}
39082			}
39083			if yyr2 || yy2arr2 {
39084				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
39085				if yyq2[5] {
39086					if x.Conditions == nil {
39087						r.EncodeNil()
39088					} else {
39089						yym19 := z.EncBinary()
39090						_ = yym19
39091						if false {
39092						} else {
39093							h.encSliceReplicationControllerCondition(([]ReplicationControllerCondition)(x.Conditions), e)
39094						}
39095					}
39096				} else {
39097					r.EncodeNil()
39098				}
39099			} else {
39100				if yyq2[5] {
39101					z.EncSendContainerState(codecSelfer_containerMapKey1234)
39102					r.EncodeString(codecSelferC_UTF81234, string("conditions"))
39103					z.EncSendContainerState(codecSelfer_containerMapValue1234)
39104					if x.Conditions == nil {
39105						r.EncodeNil()
39106					} else {
39107						yym20 := z.EncBinary()
39108						_ = yym20
39109						if false {
39110						} else {
39111							h.encSliceReplicationControllerCondition(([]ReplicationControllerCondition)(x.Conditions), e)
39112						}
39113					}
39114				}
39115			}
39116			if yyr2 || yy2arr2 {
39117				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
39118			} else {
39119				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
39120			}
39121		}
39122	}
39123}
39124
39125func (x *ReplicationControllerStatus) CodecDecodeSelf(d *codec1978.Decoder) {
39126	var h codecSelfer1234
39127	z, r := codec1978.GenHelperDecoder(d)
39128	_, _, _ = h, z, r
39129	yym1 := z.DecBinary()
39130	_ = yym1
39131	if false {
39132	} else if z.HasExtensions() && z.DecExt(x) {
39133	} else {
39134		yyct2 := r.ContainerType()
39135		if yyct2 == codecSelferValueTypeMap1234 {
39136			yyl2 := r.ReadMapStart()
39137			if yyl2 == 0 {
39138				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
39139			} else {
39140				x.codecDecodeSelfFromMap(yyl2, d)
39141			}
39142		} else if yyct2 == codecSelferValueTypeArray1234 {
39143			yyl2 := r.ReadArrayStart()
39144			if yyl2 == 0 {
39145				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
39146			} else {
39147				x.codecDecodeSelfFromArray(yyl2, d)
39148			}
39149		} else {
39150			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
39151		}
39152	}
39153}
39154
39155func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
39156	var h codecSelfer1234
39157	z, r := codec1978.GenHelperDecoder(d)
39158	_, _, _ = h, z, r
39159	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
39160	_ = yys3Slc
39161	var yyhl3 bool = l >= 0
39162	for yyj3 := 0; ; yyj3++ {
39163		if yyhl3 {
39164			if yyj3 >= l {
39165				break
39166			}
39167		} else {
39168			if r.CheckBreak() {
39169				break
39170			}
39171		}
39172		z.DecSendContainerState(codecSelfer_containerMapKey1234)
39173		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
39174		yys3 := string(yys3Slc)
39175		z.DecSendContainerState(codecSelfer_containerMapValue1234)
39176		switch yys3 {
39177		case "replicas":
39178			if r.TryDecodeAsNil() {
39179				x.Replicas = 0
39180			} else {
39181				yyv4 := &x.Replicas
39182				yym5 := z.DecBinary()
39183				_ = yym5
39184				if false {
39185				} else {
39186					*((*int32)(yyv4)) = int32(r.DecodeInt(32))
39187				}
39188			}
39189		case "fullyLabeledReplicas":
39190			if r.TryDecodeAsNil() {
39191				x.FullyLabeledReplicas = 0
39192			} else {
39193				yyv6 := &x.FullyLabeledReplicas
39194				yym7 := z.DecBinary()
39195				_ = yym7
39196				if false {
39197				} else {
39198					*((*int32)(yyv6)) = int32(r.DecodeInt(32))
39199				}
39200			}
39201		case "readyReplicas":
39202			if r.TryDecodeAsNil() {
39203				x.ReadyReplicas = 0
39204			} else {
39205				yyv8 := &x.ReadyReplicas
39206				yym9 := z.DecBinary()
39207				_ = yym9
39208				if false {
39209				} else {
39210					*((*int32)(yyv8)) = int32(r.DecodeInt(32))
39211				}
39212			}
39213		case "availableReplicas":
39214			if r.TryDecodeAsNil() {
39215				x.AvailableReplicas = 0
39216			} else {
39217				yyv10 := &x.AvailableReplicas
39218				yym11 := z.DecBinary()
39219				_ = yym11
39220				if false {
39221				} else {
39222					*((*int32)(yyv10)) = int32(r.DecodeInt(32))
39223				}
39224			}
39225		case "observedGeneration":
39226			if r.TryDecodeAsNil() {
39227				x.ObservedGeneration = 0
39228			} else {
39229				yyv12 := &x.ObservedGeneration
39230				yym13 := z.DecBinary()
39231				_ = yym13
39232				if false {
39233				} else {
39234					*((*int64)(yyv12)) = int64(r.DecodeInt(64))
39235				}
39236			}
39237		case "conditions":
39238			if r.TryDecodeAsNil() {
39239				x.Conditions = nil
39240			} else {
39241				yyv14 := &x.Conditions
39242				yym15 := z.DecBinary()
39243				_ = yym15
39244				if false {
39245				} else {
39246					h.decSliceReplicationControllerCondition((*[]ReplicationControllerCondition)(yyv14), d)
39247				}
39248			}
39249		default:
39250			z.DecStructFieldNotFound(-1, yys3)
39251		} // end switch yys3
39252	} // end for yyj3
39253	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
39254}
39255
39256func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
39257	var h codecSelfer1234
39258	z, r := codec1978.GenHelperDecoder(d)
39259	_, _, _ = h, z, r
39260	var yyj16 int
39261	var yyb16 bool
39262	var yyhl16 bool = l >= 0
39263	yyj16++
39264	if yyhl16 {
39265		yyb16 = yyj16 > l
39266	} else {
39267		yyb16 = r.CheckBreak()
39268	}
39269	if yyb16 {
39270		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
39271		return
39272	}
39273	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
39274	if r.TryDecodeAsNil() {
39275		x.Replicas = 0
39276	} else {
39277		yyv17 := &x.Replicas
39278		yym18 := z.DecBinary()
39279		_ = yym18
39280		if false {
39281		} else {
39282			*((*int32)(yyv17)) = int32(r.DecodeInt(32))
39283		}
39284	}
39285	yyj16++
39286	if yyhl16 {
39287		yyb16 = yyj16 > l
39288	} else {
39289		yyb16 = r.CheckBreak()
39290	}
39291	if yyb16 {
39292		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
39293		return
39294	}
39295	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
39296	if r.TryDecodeAsNil() {
39297		x.FullyLabeledReplicas = 0
39298	} else {
39299		yyv19 := &x.FullyLabeledReplicas
39300		yym20 := z.DecBinary()
39301		_ = yym20
39302		if false {
39303		} else {
39304			*((*int32)(yyv19)) = int32(r.DecodeInt(32))
39305		}
39306	}
39307	yyj16++
39308	if yyhl16 {
39309		yyb16 = yyj16 > l
39310	} else {
39311		yyb16 = r.CheckBreak()
39312	}
39313	if yyb16 {
39314		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
39315		return
39316	}
39317	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
39318	if r.TryDecodeAsNil() {
39319		x.ReadyReplicas = 0
39320	} else {
39321		yyv21 := &x.ReadyReplicas
39322		yym22 := z.DecBinary()
39323		_ = yym22
39324		if false {
39325		} else {
39326			*((*int32)(yyv21)) = int32(r.DecodeInt(32))
39327		}
39328	}
39329	yyj16++
39330	if yyhl16 {
39331		yyb16 = yyj16 > l
39332	} else {
39333		yyb16 = r.CheckBreak()
39334	}
39335	if yyb16 {
39336		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
39337		return
39338	}
39339	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
39340	if r.TryDecodeAsNil() {
39341		x.AvailableReplicas = 0
39342	} else {
39343		yyv23 := &x.AvailableReplicas
39344		yym24 := z.DecBinary()
39345		_ = yym24
39346		if false {
39347		} else {
39348			*((*int32)(yyv23)) = int32(r.DecodeInt(32))
39349		}
39350	}
39351	yyj16++
39352	if yyhl16 {
39353		yyb16 = yyj16 > l
39354	} else {
39355		yyb16 = r.CheckBreak()
39356	}
39357	if yyb16 {
39358		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
39359		return
39360	}
39361	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
39362	if r.TryDecodeAsNil() {
39363		x.ObservedGeneration = 0
39364	} else {
39365		yyv25 := &x.ObservedGeneration
39366		yym26 := z.DecBinary()
39367		_ = yym26
39368		if false {
39369		} else {
39370			*((*int64)(yyv25)) = int64(r.DecodeInt(64))
39371		}
39372	}
39373	yyj16++
39374	if yyhl16 {
39375		yyb16 = yyj16 > l
39376	} else {
39377		yyb16 = r.CheckBreak()
39378	}
39379	if yyb16 {
39380		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
39381		return
39382	}
39383	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
39384	if r.TryDecodeAsNil() {
39385		x.Conditions = nil
39386	} else {
39387		yyv27 := &x.Conditions
39388		yym28 := z.DecBinary()
39389		_ = yym28
39390		if false {
39391		} else {
39392			h.decSliceReplicationControllerCondition((*[]ReplicationControllerCondition)(yyv27), d)
39393		}
39394	}
39395	for {
39396		yyj16++
39397		if yyhl16 {
39398			yyb16 = yyj16 > l
39399		} else {
39400			yyb16 = r.CheckBreak()
39401		}
39402		if yyb16 {
39403			break
39404		}
39405		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
39406		z.DecStructFieldNotFound(yyj16-1, "")
39407	}
39408	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
39409}
39410
39411func (x ReplicationControllerConditionType) CodecEncodeSelf(e *codec1978.Encoder) {
39412	var h codecSelfer1234
39413	z, r := codec1978.GenHelperEncoder(e)
39414	_, _, _ = h, z, r
39415	yym1 := z.EncBinary()
39416	_ = yym1
39417	if false {
39418	} else if z.HasExtensions() && z.EncExt(x) {
39419	} else {
39420		r.EncodeString(codecSelferC_UTF81234, string(x))
39421	}
39422}
39423
39424func (x *ReplicationControllerConditionType) CodecDecodeSelf(d *codec1978.Decoder) {
39425	var h codecSelfer1234
39426	z, r := codec1978.GenHelperDecoder(d)
39427	_, _, _ = h, z, r
39428	yym1 := z.DecBinary()
39429	_ = yym1
39430	if false {
39431	} else if z.HasExtensions() && z.DecExt(x) {
39432	} else {
39433		*((*string)(x)) = r.DecodeString()
39434	}
39435}
39436
39437func (x *ReplicationControllerCondition) CodecEncodeSelf(e *codec1978.Encoder) {
39438	var h codecSelfer1234
39439	z, r := codec1978.GenHelperEncoder(e)
39440	_, _, _ = h, z, r
39441	if x == nil {
39442		r.EncodeNil()
39443	} else {
39444		yym1 := z.EncBinary()
39445		_ = yym1
39446		if false {
39447		} else if z.HasExtensions() && z.EncExt(x) {
39448		} else {
39449			yysep2 := !z.EncBinary()
39450			yy2arr2 := z.EncBasicHandle().StructToArray
39451			var yyq2 [5]bool
39452			_, _, _ = yysep2, yyq2, yy2arr2
39453			const yyr2 bool = false
39454			yyq2[2] = true
39455			yyq2[3] = x.Reason != ""
39456			yyq2[4] = x.Message != ""
39457			var yynn2 int
39458			if yyr2 || yy2arr2 {
39459				r.EncodeArrayStart(5)
39460			} else {
39461				yynn2 = 2
39462				for _, b := range yyq2 {
39463					if b {
39464						yynn2++
39465					}
39466				}
39467				r.EncodeMapStart(yynn2)
39468				yynn2 = 0
39469			}
39470			if yyr2 || yy2arr2 {
39471				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
39472				x.Type.CodecEncodeSelf(e)
39473			} else {
39474				z.EncSendContainerState(codecSelfer_containerMapKey1234)
39475				r.EncodeString(codecSelferC_UTF81234, string("type"))
39476				z.EncSendContainerState(codecSelfer_containerMapValue1234)
39477				x.Type.CodecEncodeSelf(e)
39478			}
39479			if yyr2 || yy2arr2 {
39480				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
39481				x.Status.CodecEncodeSelf(e)
39482			} else {
39483				z.EncSendContainerState(codecSelfer_containerMapKey1234)
39484				r.EncodeString(codecSelferC_UTF81234, string("status"))
39485				z.EncSendContainerState(codecSelfer_containerMapValue1234)
39486				x.Status.CodecEncodeSelf(e)
39487			}
39488			if yyr2 || yy2arr2 {
39489				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
39490				if yyq2[2] {
39491					yy10 := &x.LastTransitionTime
39492					yym11 := z.EncBinary()
39493					_ = yym11
39494					if false {
39495					} else if z.HasExtensions() && z.EncExt(yy10) {
39496					} else if yym11 {
39497						z.EncBinaryMarshal(yy10)
39498					} else if !yym11 && z.IsJSONHandle() {
39499						z.EncJSONMarshal(yy10)
39500					} else {
39501						z.EncFallback(yy10)
39502					}
39503				} else {
39504					r.EncodeNil()
39505				}
39506			} else {
39507				if yyq2[2] {
39508					z.EncSendContainerState(codecSelfer_containerMapKey1234)
39509					r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
39510					z.EncSendContainerState(codecSelfer_containerMapValue1234)
39511					yy12 := &x.LastTransitionTime
39512					yym13 := z.EncBinary()
39513					_ = yym13
39514					if false {
39515					} else if z.HasExtensions() && z.EncExt(yy12) {
39516					} else if yym13 {
39517						z.EncBinaryMarshal(yy12)
39518					} else if !yym13 && z.IsJSONHandle() {
39519						z.EncJSONMarshal(yy12)
39520					} else {
39521						z.EncFallback(yy12)
39522					}
39523				}
39524			}
39525			if yyr2 || yy2arr2 {
39526				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
39527				if yyq2[3] {
39528					yym15 := z.EncBinary()
39529					_ = yym15
39530					if false {
39531					} else {
39532						r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
39533					}
39534				} else {
39535					r.EncodeString(codecSelferC_UTF81234, "")
39536				}
39537			} else {
39538				if yyq2[3] {
39539					z.EncSendContainerState(codecSelfer_containerMapKey1234)
39540					r.EncodeString(codecSelferC_UTF81234, string("reason"))
39541					z.EncSendContainerState(codecSelfer_containerMapValue1234)
39542					yym16 := z.EncBinary()
39543					_ = yym16
39544					if false {
39545					} else {
39546						r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
39547					}
39548				}
39549			}
39550			if yyr2 || yy2arr2 {
39551				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
39552				if yyq2[4] {
39553					yym18 := z.EncBinary()
39554					_ = yym18
39555					if false {
39556					} else {
39557						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
39558					}
39559				} else {
39560					r.EncodeString(codecSelferC_UTF81234, "")
39561				}
39562			} else {
39563				if yyq2[4] {
39564					z.EncSendContainerState(codecSelfer_containerMapKey1234)
39565					r.EncodeString(codecSelferC_UTF81234, string("message"))
39566					z.EncSendContainerState(codecSelfer_containerMapValue1234)
39567					yym19 := z.EncBinary()
39568					_ = yym19
39569					if false {
39570					} else {
39571						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
39572					}
39573				}
39574			}
39575			if yyr2 || yy2arr2 {
39576				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
39577			} else {
39578				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
39579			}
39580		}
39581	}
39582}
39583
39584func (x *ReplicationControllerCondition) CodecDecodeSelf(d *codec1978.Decoder) {
39585	var h codecSelfer1234
39586	z, r := codec1978.GenHelperDecoder(d)
39587	_, _, _ = h, z, r
39588	yym1 := z.DecBinary()
39589	_ = yym1
39590	if false {
39591	} else if z.HasExtensions() && z.DecExt(x) {
39592	} else {
39593		yyct2 := r.ContainerType()
39594		if yyct2 == codecSelferValueTypeMap1234 {
39595			yyl2 := r.ReadMapStart()
39596			if yyl2 == 0 {
39597				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
39598			} else {
39599				x.codecDecodeSelfFromMap(yyl2, d)
39600			}
39601		} else if yyct2 == codecSelferValueTypeArray1234 {
39602			yyl2 := r.ReadArrayStart()
39603			if yyl2 == 0 {
39604				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
39605			} else {
39606				x.codecDecodeSelfFromArray(yyl2, d)
39607			}
39608		} else {
39609			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
39610		}
39611	}
39612}
39613
39614func (x *ReplicationControllerCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
39615	var h codecSelfer1234
39616	z, r := codec1978.GenHelperDecoder(d)
39617	_, _, _ = h, z, r
39618	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
39619	_ = yys3Slc
39620	var yyhl3 bool = l >= 0
39621	for yyj3 := 0; ; yyj3++ {
39622		if yyhl3 {
39623			if yyj3 >= l {
39624				break
39625			}
39626		} else {
39627			if r.CheckBreak() {
39628				break
39629			}
39630		}
39631		z.DecSendContainerState(codecSelfer_containerMapKey1234)
39632		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
39633		yys3 := string(yys3Slc)
39634		z.DecSendContainerState(codecSelfer_containerMapValue1234)
39635		switch yys3 {
39636		case "type":
39637			if r.TryDecodeAsNil() {
39638				x.Type = ""
39639			} else {
39640				yyv4 := &x.Type
39641				yyv4.CodecDecodeSelf(d)
39642			}
39643		case "status":
39644			if r.TryDecodeAsNil() {
39645				x.Status = ""
39646			} else {
39647				yyv5 := &x.Status
39648				yyv5.CodecDecodeSelf(d)
39649			}
39650		case "lastTransitionTime":
39651			if r.TryDecodeAsNil() {
39652				x.LastTransitionTime = pkg2_v1.Time{}
39653			} else {
39654				yyv6 := &x.LastTransitionTime
39655				yym7 := z.DecBinary()
39656				_ = yym7
39657				if false {
39658				} else if z.HasExtensions() && z.DecExt(yyv6) {
39659				} else if yym7 {
39660					z.DecBinaryUnmarshal(yyv6)
39661				} else if !yym7 && z.IsJSONHandle() {
39662					z.DecJSONUnmarshal(yyv6)
39663				} else {
39664					z.DecFallback(yyv6, false)
39665				}
39666			}
39667		case "reason":
39668			if r.TryDecodeAsNil() {
39669				x.Reason = ""
39670			} else {
39671				yyv8 := &x.Reason
39672				yym9 := z.DecBinary()
39673				_ = yym9
39674				if false {
39675				} else {
39676					*((*string)(yyv8)) = r.DecodeString()
39677				}
39678			}
39679		case "message":
39680			if r.TryDecodeAsNil() {
39681				x.Message = ""
39682			} else {
39683				yyv10 := &x.Message
39684				yym11 := z.DecBinary()
39685				_ = yym11
39686				if false {
39687				} else {
39688					*((*string)(yyv10)) = r.DecodeString()
39689				}
39690			}
39691		default:
39692			z.DecStructFieldNotFound(-1, yys3)
39693		} // end switch yys3
39694	} // end for yyj3
39695	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
39696}
39697
39698func (x *ReplicationControllerCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
39699	var h codecSelfer1234
39700	z, r := codec1978.GenHelperDecoder(d)
39701	_, _, _ = h, z, r
39702	var yyj12 int
39703	var yyb12 bool
39704	var yyhl12 bool = l >= 0
39705	yyj12++
39706	if yyhl12 {
39707		yyb12 = yyj12 > l
39708	} else {
39709		yyb12 = r.CheckBreak()
39710	}
39711	if yyb12 {
39712		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
39713		return
39714	}
39715	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
39716	if r.TryDecodeAsNil() {
39717		x.Type = ""
39718	} else {
39719		yyv13 := &x.Type
39720		yyv13.CodecDecodeSelf(d)
39721	}
39722	yyj12++
39723	if yyhl12 {
39724		yyb12 = yyj12 > l
39725	} else {
39726		yyb12 = r.CheckBreak()
39727	}
39728	if yyb12 {
39729		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
39730		return
39731	}
39732	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
39733	if r.TryDecodeAsNil() {
39734		x.Status = ""
39735	} else {
39736		yyv14 := &x.Status
39737		yyv14.CodecDecodeSelf(d)
39738	}
39739	yyj12++
39740	if yyhl12 {
39741		yyb12 = yyj12 > l
39742	} else {
39743		yyb12 = r.CheckBreak()
39744	}
39745	if yyb12 {
39746		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
39747		return
39748	}
39749	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
39750	if r.TryDecodeAsNil() {
39751		x.LastTransitionTime = pkg2_v1.Time{}
39752	} else {
39753		yyv15 := &x.LastTransitionTime
39754		yym16 := z.DecBinary()
39755		_ = yym16
39756		if false {
39757		} else if z.HasExtensions() && z.DecExt(yyv15) {
39758		} else if yym16 {
39759			z.DecBinaryUnmarshal(yyv15)
39760		} else if !yym16 && z.IsJSONHandle() {
39761			z.DecJSONUnmarshal(yyv15)
39762		} else {
39763			z.DecFallback(yyv15, false)
39764		}
39765	}
39766	yyj12++
39767	if yyhl12 {
39768		yyb12 = yyj12 > l
39769	} else {
39770		yyb12 = r.CheckBreak()
39771	}
39772	if yyb12 {
39773		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
39774		return
39775	}
39776	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
39777	if r.TryDecodeAsNil() {
39778		x.Reason = ""
39779	} else {
39780		yyv17 := &x.Reason
39781		yym18 := z.DecBinary()
39782		_ = yym18
39783		if false {
39784		} else {
39785			*((*string)(yyv17)) = r.DecodeString()
39786		}
39787	}
39788	yyj12++
39789	if yyhl12 {
39790		yyb12 = yyj12 > l
39791	} else {
39792		yyb12 = r.CheckBreak()
39793	}
39794	if yyb12 {
39795		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
39796		return
39797	}
39798	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
39799	if r.TryDecodeAsNil() {
39800		x.Message = ""
39801	} else {
39802		yyv19 := &x.Message
39803		yym20 := z.DecBinary()
39804		_ = yym20
39805		if false {
39806		} else {
39807			*((*string)(yyv19)) = r.DecodeString()
39808		}
39809	}
39810	for {
39811		yyj12++
39812		if yyhl12 {
39813			yyb12 = yyj12 > l
39814		} else {
39815			yyb12 = r.CheckBreak()
39816		}
39817		if yyb12 {
39818			break
39819		}
39820		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
39821		z.DecStructFieldNotFound(yyj12-1, "")
39822	}
39823	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
39824}
39825
39826func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) {
39827	var h codecSelfer1234
39828	z, r := codec1978.GenHelperEncoder(e)
39829	_, _, _ = h, z, r
39830	if x == nil {
39831		r.EncodeNil()
39832	} else {
39833		yym1 := z.EncBinary()
39834		_ = yym1
39835		if false {
39836		} else if z.HasExtensions() && z.EncExt(x) {
39837		} else {
39838			yysep2 := !z.EncBinary()
39839			yy2arr2 := z.EncBasicHandle().StructToArray
39840			var yyq2 [5]bool
39841			_, _, _ = yysep2, yyq2, yy2arr2
39842			const yyr2 bool = false
39843			yyq2[0] = x.Kind != ""
39844			yyq2[1] = x.APIVersion != ""
39845			yyq2[2] = true
39846			yyq2[3] = true
39847			yyq2[4] = true
39848			var yynn2 int
39849			if yyr2 || yy2arr2 {
39850				r.EncodeArrayStart(5)
39851			} else {
39852				yynn2 = 0
39853				for _, b := range yyq2 {
39854					if b {
39855						yynn2++
39856					}
39857				}
39858				r.EncodeMapStart(yynn2)
39859				yynn2 = 0
39860			}
39861			if yyr2 || yy2arr2 {
39862				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
39863				if yyq2[0] {
39864					yym4 := z.EncBinary()
39865					_ = yym4
39866					if false {
39867					} else {
39868						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
39869					}
39870				} else {
39871					r.EncodeString(codecSelferC_UTF81234, "")
39872				}
39873			} else {
39874				if yyq2[0] {
39875					z.EncSendContainerState(codecSelfer_containerMapKey1234)
39876					r.EncodeString(codecSelferC_UTF81234, string("kind"))
39877					z.EncSendContainerState(codecSelfer_containerMapValue1234)
39878					yym5 := z.EncBinary()
39879					_ = yym5
39880					if false {
39881					} else {
39882						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
39883					}
39884				}
39885			}
39886			if yyr2 || yy2arr2 {
39887				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
39888				if yyq2[1] {
39889					yym7 := z.EncBinary()
39890					_ = yym7
39891					if false {
39892					} else {
39893						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
39894					}
39895				} else {
39896					r.EncodeString(codecSelferC_UTF81234, "")
39897				}
39898			} else {
39899				if yyq2[1] {
39900					z.EncSendContainerState(codecSelfer_containerMapKey1234)
39901					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
39902					z.EncSendContainerState(codecSelfer_containerMapValue1234)
39903					yym8 := z.EncBinary()
39904					_ = yym8
39905					if false {
39906					} else {
39907						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
39908					}
39909				}
39910			}
39911			if yyr2 || yy2arr2 {
39912				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
39913				if yyq2[2] {
39914					yy10 := &x.ObjectMeta
39915					yym11 := z.EncBinary()
39916					_ = yym11
39917					if false {
39918					} else if z.HasExtensions() && z.EncExt(yy10) {
39919					} else {
39920						z.EncFallback(yy10)
39921					}
39922				} else {
39923					r.EncodeNil()
39924				}
39925			} else {
39926				if yyq2[2] {
39927					z.EncSendContainerState(codecSelfer_containerMapKey1234)
39928					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
39929					z.EncSendContainerState(codecSelfer_containerMapValue1234)
39930					yy12 := &x.ObjectMeta
39931					yym13 := z.EncBinary()
39932					_ = yym13
39933					if false {
39934					} else if z.HasExtensions() && z.EncExt(yy12) {
39935					} else {
39936						z.EncFallback(yy12)
39937					}
39938				}
39939			}
39940			if yyr2 || yy2arr2 {
39941				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
39942				if yyq2[3] {
39943					yy15 := &x.Spec
39944					yy15.CodecEncodeSelf(e)
39945				} else {
39946					r.EncodeNil()
39947				}
39948			} else {
39949				if yyq2[3] {
39950					z.EncSendContainerState(codecSelfer_containerMapKey1234)
39951					r.EncodeString(codecSelferC_UTF81234, string("spec"))
39952					z.EncSendContainerState(codecSelfer_containerMapValue1234)
39953					yy17 := &x.Spec
39954					yy17.CodecEncodeSelf(e)
39955				}
39956			}
39957			if yyr2 || yy2arr2 {
39958				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
39959				if yyq2[4] {
39960					yy20 := &x.Status
39961					yy20.CodecEncodeSelf(e)
39962				} else {
39963					r.EncodeNil()
39964				}
39965			} else {
39966				if yyq2[4] {
39967					z.EncSendContainerState(codecSelfer_containerMapKey1234)
39968					r.EncodeString(codecSelferC_UTF81234, string("status"))
39969					z.EncSendContainerState(codecSelfer_containerMapValue1234)
39970					yy22 := &x.Status
39971					yy22.CodecEncodeSelf(e)
39972				}
39973			}
39974			if yyr2 || yy2arr2 {
39975				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
39976			} else {
39977				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
39978			}
39979		}
39980	}
39981}
39982
39983func (x *ReplicationController) CodecDecodeSelf(d *codec1978.Decoder) {
39984	var h codecSelfer1234
39985	z, r := codec1978.GenHelperDecoder(d)
39986	_, _, _ = h, z, r
39987	yym1 := z.DecBinary()
39988	_ = yym1
39989	if false {
39990	} else if z.HasExtensions() && z.DecExt(x) {
39991	} else {
39992		yyct2 := r.ContainerType()
39993		if yyct2 == codecSelferValueTypeMap1234 {
39994			yyl2 := r.ReadMapStart()
39995			if yyl2 == 0 {
39996				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
39997			} else {
39998				x.codecDecodeSelfFromMap(yyl2, d)
39999			}
40000		} else if yyct2 == codecSelferValueTypeArray1234 {
40001			yyl2 := r.ReadArrayStart()
40002			if yyl2 == 0 {
40003				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40004			} else {
40005				x.codecDecodeSelfFromArray(yyl2, d)
40006			}
40007		} else {
40008			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
40009		}
40010	}
40011}
40012
40013func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
40014	var h codecSelfer1234
40015	z, r := codec1978.GenHelperDecoder(d)
40016	_, _, _ = h, z, r
40017	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
40018	_ = yys3Slc
40019	var yyhl3 bool = l >= 0
40020	for yyj3 := 0; ; yyj3++ {
40021		if yyhl3 {
40022			if yyj3 >= l {
40023				break
40024			}
40025		} else {
40026			if r.CheckBreak() {
40027				break
40028			}
40029		}
40030		z.DecSendContainerState(codecSelfer_containerMapKey1234)
40031		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
40032		yys3 := string(yys3Slc)
40033		z.DecSendContainerState(codecSelfer_containerMapValue1234)
40034		switch yys3 {
40035		case "kind":
40036			if r.TryDecodeAsNil() {
40037				x.Kind = ""
40038			} else {
40039				yyv4 := &x.Kind
40040				yym5 := z.DecBinary()
40041				_ = yym5
40042				if false {
40043				} else {
40044					*((*string)(yyv4)) = r.DecodeString()
40045				}
40046			}
40047		case "apiVersion":
40048			if r.TryDecodeAsNil() {
40049				x.APIVersion = ""
40050			} else {
40051				yyv6 := &x.APIVersion
40052				yym7 := z.DecBinary()
40053				_ = yym7
40054				if false {
40055				} else {
40056					*((*string)(yyv6)) = r.DecodeString()
40057				}
40058			}
40059		case "metadata":
40060			if r.TryDecodeAsNil() {
40061				x.ObjectMeta = pkg2_v1.ObjectMeta{}
40062			} else {
40063				yyv8 := &x.ObjectMeta
40064				yym9 := z.DecBinary()
40065				_ = yym9
40066				if false {
40067				} else if z.HasExtensions() && z.DecExt(yyv8) {
40068				} else {
40069					z.DecFallback(yyv8, false)
40070				}
40071			}
40072		case "spec":
40073			if r.TryDecodeAsNil() {
40074				x.Spec = ReplicationControllerSpec{}
40075			} else {
40076				yyv10 := &x.Spec
40077				yyv10.CodecDecodeSelf(d)
40078			}
40079		case "status":
40080			if r.TryDecodeAsNil() {
40081				x.Status = ReplicationControllerStatus{}
40082			} else {
40083				yyv11 := &x.Status
40084				yyv11.CodecDecodeSelf(d)
40085			}
40086		default:
40087			z.DecStructFieldNotFound(-1, yys3)
40088		} // end switch yys3
40089	} // end for yyj3
40090	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
40091}
40092
40093func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
40094	var h codecSelfer1234
40095	z, r := codec1978.GenHelperDecoder(d)
40096	_, _, _ = h, z, r
40097	var yyj12 int
40098	var yyb12 bool
40099	var yyhl12 bool = l >= 0
40100	yyj12++
40101	if yyhl12 {
40102		yyb12 = yyj12 > l
40103	} else {
40104		yyb12 = r.CheckBreak()
40105	}
40106	if yyb12 {
40107		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40108		return
40109	}
40110	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
40111	if r.TryDecodeAsNil() {
40112		x.Kind = ""
40113	} else {
40114		yyv13 := &x.Kind
40115		yym14 := z.DecBinary()
40116		_ = yym14
40117		if false {
40118		} else {
40119			*((*string)(yyv13)) = r.DecodeString()
40120		}
40121	}
40122	yyj12++
40123	if yyhl12 {
40124		yyb12 = yyj12 > l
40125	} else {
40126		yyb12 = r.CheckBreak()
40127	}
40128	if yyb12 {
40129		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40130		return
40131	}
40132	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
40133	if r.TryDecodeAsNil() {
40134		x.APIVersion = ""
40135	} else {
40136		yyv15 := &x.APIVersion
40137		yym16 := z.DecBinary()
40138		_ = yym16
40139		if false {
40140		} else {
40141			*((*string)(yyv15)) = r.DecodeString()
40142		}
40143	}
40144	yyj12++
40145	if yyhl12 {
40146		yyb12 = yyj12 > l
40147	} else {
40148		yyb12 = r.CheckBreak()
40149	}
40150	if yyb12 {
40151		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40152		return
40153	}
40154	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
40155	if r.TryDecodeAsNil() {
40156		x.ObjectMeta = pkg2_v1.ObjectMeta{}
40157	} else {
40158		yyv17 := &x.ObjectMeta
40159		yym18 := z.DecBinary()
40160		_ = yym18
40161		if false {
40162		} else if z.HasExtensions() && z.DecExt(yyv17) {
40163		} else {
40164			z.DecFallback(yyv17, false)
40165		}
40166	}
40167	yyj12++
40168	if yyhl12 {
40169		yyb12 = yyj12 > l
40170	} else {
40171		yyb12 = r.CheckBreak()
40172	}
40173	if yyb12 {
40174		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40175		return
40176	}
40177	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
40178	if r.TryDecodeAsNil() {
40179		x.Spec = ReplicationControllerSpec{}
40180	} else {
40181		yyv19 := &x.Spec
40182		yyv19.CodecDecodeSelf(d)
40183	}
40184	yyj12++
40185	if yyhl12 {
40186		yyb12 = yyj12 > l
40187	} else {
40188		yyb12 = r.CheckBreak()
40189	}
40190	if yyb12 {
40191		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40192		return
40193	}
40194	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
40195	if r.TryDecodeAsNil() {
40196		x.Status = ReplicationControllerStatus{}
40197	} else {
40198		yyv20 := &x.Status
40199		yyv20.CodecDecodeSelf(d)
40200	}
40201	for {
40202		yyj12++
40203		if yyhl12 {
40204			yyb12 = yyj12 > l
40205		} else {
40206			yyb12 = r.CheckBreak()
40207		}
40208		if yyb12 {
40209			break
40210		}
40211		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
40212		z.DecStructFieldNotFound(yyj12-1, "")
40213	}
40214	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40215}
40216
40217func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) {
40218	var h codecSelfer1234
40219	z, r := codec1978.GenHelperEncoder(e)
40220	_, _, _ = h, z, r
40221	if x == nil {
40222		r.EncodeNil()
40223	} else {
40224		yym1 := z.EncBinary()
40225		_ = yym1
40226		if false {
40227		} else if z.HasExtensions() && z.EncExt(x) {
40228		} else {
40229			yysep2 := !z.EncBinary()
40230			yy2arr2 := z.EncBasicHandle().StructToArray
40231			var yyq2 [4]bool
40232			_, _, _ = yysep2, yyq2, yy2arr2
40233			const yyr2 bool = false
40234			yyq2[0] = x.Kind != ""
40235			yyq2[1] = x.APIVersion != ""
40236			yyq2[2] = true
40237			var yynn2 int
40238			if yyr2 || yy2arr2 {
40239				r.EncodeArrayStart(4)
40240			} else {
40241				yynn2 = 1
40242				for _, b := range yyq2 {
40243					if b {
40244						yynn2++
40245					}
40246				}
40247				r.EncodeMapStart(yynn2)
40248				yynn2 = 0
40249			}
40250			if yyr2 || yy2arr2 {
40251				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
40252				if yyq2[0] {
40253					yym4 := z.EncBinary()
40254					_ = yym4
40255					if false {
40256					} else {
40257						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
40258					}
40259				} else {
40260					r.EncodeString(codecSelferC_UTF81234, "")
40261				}
40262			} else {
40263				if yyq2[0] {
40264					z.EncSendContainerState(codecSelfer_containerMapKey1234)
40265					r.EncodeString(codecSelferC_UTF81234, string("kind"))
40266					z.EncSendContainerState(codecSelfer_containerMapValue1234)
40267					yym5 := z.EncBinary()
40268					_ = yym5
40269					if false {
40270					} else {
40271						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
40272					}
40273				}
40274			}
40275			if yyr2 || yy2arr2 {
40276				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
40277				if yyq2[1] {
40278					yym7 := z.EncBinary()
40279					_ = yym7
40280					if false {
40281					} else {
40282						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
40283					}
40284				} else {
40285					r.EncodeString(codecSelferC_UTF81234, "")
40286				}
40287			} else {
40288				if yyq2[1] {
40289					z.EncSendContainerState(codecSelfer_containerMapKey1234)
40290					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
40291					z.EncSendContainerState(codecSelfer_containerMapValue1234)
40292					yym8 := z.EncBinary()
40293					_ = yym8
40294					if false {
40295					} else {
40296						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
40297					}
40298				}
40299			}
40300			if yyr2 || yy2arr2 {
40301				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
40302				if yyq2[2] {
40303					yy10 := &x.ListMeta
40304					yym11 := z.EncBinary()
40305					_ = yym11
40306					if false {
40307					} else if z.HasExtensions() && z.EncExt(yy10) {
40308					} else {
40309						z.EncFallback(yy10)
40310					}
40311				} else {
40312					r.EncodeNil()
40313				}
40314			} else {
40315				if yyq2[2] {
40316					z.EncSendContainerState(codecSelfer_containerMapKey1234)
40317					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
40318					z.EncSendContainerState(codecSelfer_containerMapValue1234)
40319					yy12 := &x.ListMeta
40320					yym13 := z.EncBinary()
40321					_ = yym13
40322					if false {
40323					} else if z.HasExtensions() && z.EncExt(yy12) {
40324					} else {
40325						z.EncFallback(yy12)
40326					}
40327				}
40328			}
40329			if yyr2 || yy2arr2 {
40330				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
40331				if x.Items == nil {
40332					r.EncodeNil()
40333				} else {
40334					yym15 := z.EncBinary()
40335					_ = yym15
40336					if false {
40337					} else {
40338						h.encSliceReplicationController(([]ReplicationController)(x.Items), e)
40339					}
40340				}
40341			} else {
40342				z.EncSendContainerState(codecSelfer_containerMapKey1234)
40343				r.EncodeString(codecSelferC_UTF81234, string("items"))
40344				z.EncSendContainerState(codecSelfer_containerMapValue1234)
40345				if x.Items == nil {
40346					r.EncodeNil()
40347				} else {
40348					yym16 := z.EncBinary()
40349					_ = yym16
40350					if false {
40351					} else {
40352						h.encSliceReplicationController(([]ReplicationController)(x.Items), e)
40353					}
40354				}
40355			}
40356			if yyr2 || yy2arr2 {
40357				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
40358			} else {
40359				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
40360			}
40361		}
40362	}
40363}
40364
40365func (x *ReplicationControllerList) CodecDecodeSelf(d *codec1978.Decoder) {
40366	var h codecSelfer1234
40367	z, r := codec1978.GenHelperDecoder(d)
40368	_, _, _ = h, z, r
40369	yym1 := z.DecBinary()
40370	_ = yym1
40371	if false {
40372	} else if z.HasExtensions() && z.DecExt(x) {
40373	} else {
40374		yyct2 := r.ContainerType()
40375		if yyct2 == codecSelferValueTypeMap1234 {
40376			yyl2 := r.ReadMapStart()
40377			if yyl2 == 0 {
40378				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
40379			} else {
40380				x.codecDecodeSelfFromMap(yyl2, d)
40381			}
40382		} else if yyct2 == codecSelferValueTypeArray1234 {
40383			yyl2 := r.ReadArrayStart()
40384			if yyl2 == 0 {
40385				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40386			} else {
40387				x.codecDecodeSelfFromArray(yyl2, d)
40388			}
40389		} else {
40390			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
40391		}
40392	}
40393}
40394
40395func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
40396	var h codecSelfer1234
40397	z, r := codec1978.GenHelperDecoder(d)
40398	_, _, _ = h, z, r
40399	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
40400	_ = yys3Slc
40401	var yyhl3 bool = l >= 0
40402	for yyj3 := 0; ; yyj3++ {
40403		if yyhl3 {
40404			if yyj3 >= l {
40405				break
40406			}
40407		} else {
40408			if r.CheckBreak() {
40409				break
40410			}
40411		}
40412		z.DecSendContainerState(codecSelfer_containerMapKey1234)
40413		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
40414		yys3 := string(yys3Slc)
40415		z.DecSendContainerState(codecSelfer_containerMapValue1234)
40416		switch yys3 {
40417		case "kind":
40418			if r.TryDecodeAsNil() {
40419				x.Kind = ""
40420			} else {
40421				yyv4 := &x.Kind
40422				yym5 := z.DecBinary()
40423				_ = yym5
40424				if false {
40425				} else {
40426					*((*string)(yyv4)) = r.DecodeString()
40427				}
40428			}
40429		case "apiVersion":
40430			if r.TryDecodeAsNil() {
40431				x.APIVersion = ""
40432			} else {
40433				yyv6 := &x.APIVersion
40434				yym7 := z.DecBinary()
40435				_ = yym7
40436				if false {
40437				} else {
40438					*((*string)(yyv6)) = r.DecodeString()
40439				}
40440			}
40441		case "metadata":
40442			if r.TryDecodeAsNil() {
40443				x.ListMeta = pkg2_v1.ListMeta{}
40444			} else {
40445				yyv8 := &x.ListMeta
40446				yym9 := z.DecBinary()
40447				_ = yym9
40448				if false {
40449				} else if z.HasExtensions() && z.DecExt(yyv8) {
40450				} else {
40451					z.DecFallback(yyv8, false)
40452				}
40453			}
40454		case "items":
40455			if r.TryDecodeAsNil() {
40456				x.Items = nil
40457			} else {
40458				yyv10 := &x.Items
40459				yym11 := z.DecBinary()
40460				_ = yym11
40461				if false {
40462				} else {
40463					h.decSliceReplicationController((*[]ReplicationController)(yyv10), d)
40464				}
40465			}
40466		default:
40467			z.DecStructFieldNotFound(-1, yys3)
40468		} // end switch yys3
40469	} // end for yyj3
40470	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
40471}
40472
40473func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
40474	var h codecSelfer1234
40475	z, r := codec1978.GenHelperDecoder(d)
40476	_, _, _ = h, z, r
40477	var yyj12 int
40478	var yyb12 bool
40479	var yyhl12 bool = l >= 0
40480	yyj12++
40481	if yyhl12 {
40482		yyb12 = yyj12 > l
40483	} else {
40484		yyb12 = r.CheckBreak()
40485	}
40486	if yyb12 {
40487		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40488		return
40489	}
40490	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
40491	if r.TryDecodeAsNil() {
40492		x.Kind = ""
40493	} else {
40494		yyv13 := &x.Kind
40495		yym14 := z.DecBinary()
40496		_ = yym14
40497		if false {
40498		} else {
40499			*((*string)(yyv13)) = r.DecodeString()
40500		}
40501	}
40502	yyj12++
40503	if yyhl12 {
40504		yyb12 = yyj12 > l
40505	} else {
40506		yyb12 = r.CheckBreak()
40507	}
40508	if yyb12 {
40509		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40510		return
40511	}
40512	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
40513	if r.TryDecodeAsNil() {
40514		x.APIVersion = ""
40515	} else {
40516		yyv15 := &x.APIVersion
40517		yym16 := z.DecBinary()
40518		_ = yym16
40519		if false {
40520		} else {
40521			*((*string)(yyv15)) = r.DecodeString()
40522		}
40523	}
40524	yyj12++
40525	if yyhl12 {
40526		yyb12 = yyj12 > l
40527	} else {
40528		yyb12 = r.CheckBreak()
40529	}
40530	if yyb12 {
40531		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40532		return
40533	}
40534	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
40535	if r.TryDecodeAsNil() {
40536		x.ListMeta = pkg2_v1.ListMeta{}
40537	} else {
40538		yyv17 := &x.ListMeta
40539		yym18 := z.DecBinary()
40540		_ = yym18
40541		if false {
40542		} else if z.HasExtensions() && z.DecExt(yyv17) {
40543		} else {
40544			z.DecFallback(yyv17, false)
40545		}
40546	}
40547	yyj12++
40548	if yyhl12 {
40549		yyb12 = yyj12 > l
40550	} else {
40551		yyb12 = r.CheckBreak()
40552	}
40553	if yyb12 {
40554		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40555		return
40556	}
40557	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
40558	if r.TryDecodeAsNil() {
40559		x.Items = nil
40560	} else {
40561		yyv19 := &x.Items
40562		yym20 := z.DecBinary()
40563		_ = yym20
40564		if false {
40565		} else {
40566			h.decSliceReplicationController((*[]ReplicationController)(yyv19), d)
40567		}
40568	}
40569	for {
40570		yyj12++
40571		if yyhl12 {
40572			yyb12 = yyj12 > l
40573		} else {
40574			yyb12 = r.CheckBreak()
40575		}
40576		if yyb12 {
40577			break
40578		}
40579		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
40580		z.DecStructFieldNotFound(yyj12-1, "")
40581	}
40582	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40583}
40584
40585func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
40586	var h codecSelfer1234
40587	z, r := codec1978.GenHelperEncoder(e)
40588	_, _, _ = h, z, r
40589	yym1 := z.EncBinary()
40590	_ = yym1
40591	if false {
40592	} else if z.HasExtensions() && z.EncExt(x) {
40593	} else {
40594		r.EncodeString(codecSelferC_UTF81234, string(x))
40595	}
40596}
40597
40598func (x *ServiceAffinity) CodecDecodeSelf(d *codec1978.Decoder) {
40599	var h codecSelfer1234
40600	z, r := codec1978.GenHelperDecoder(d)
40601	_, _, _ = h, z, r
40602	yym1 := z.DecBinary()
40603	_ = yym1
40604	if false {
40605	} else if z.HasExtensions() && z.DecExt(x) {
40606	} else {
40607		*((*string)(x)) = r.DecodeString()
40608	}
40609}
40610
40611func (x ServiceType) CodecEncodeSelf(e *codec1978.Encoder) {
40612	var h codecSelfer1234
40613	z, r := codec1978.GenHelperEncoder(e)
40614	_, _, _ = h, z, r
40615	yym1 := z.EncBinary()
40616	_ = yym1
40617	if false {
40618	} else if z.HasExtensions() && z.EncExt(x) {
40619	} else {
40620		r.EncodeString(codecSelferC_UTF81234, string(x))
40621	}
40622}
40623
40624func (x *ServiceType) CodecDecodeSelf(d *codec1978.Decoder) {
40625	var h codecSelfer1234
40626	z, r := codec1978.GenHelperDecoder(d)
40627	_, _, _ = h, z, r
40628	yym1 := z.DecBinary()
40629	_ = yym1
40630	if false {
40631	} else if z.HasExtensions() && z.DecExt(x) {
40632	} else {
40633		*((*string)(x)) = r.DecodeString()
40634	}
40635}
40636
40637func (x *ServiceStatus) CodecEncodeSelf(e *codec1978.Encoder) {
40638	var h codecSelfer1234
40639	z, r := codec1978.GenHelperEncoder(e)
40640	_, _, _ = h, z, r
40641	if x == nil {
40642		r.EncodeNil()
40643	} else {
40644		yym1 := z.EncBinary()
40645		_ = yym1
40646		if false {
40647		} else if z.HasExtensions() && z.EncExt(x) {
40648		} else {
40649			yysep2 := !z.EncBinary()
40650			yy2arr2 := z.EncBasicHandle().StructToArray
40651			var yyq2 [1]bool
40652			_, _, _ = yysep2, yyq2, yy2arr2
40653			const yyr2 bool = false
40654			yyq2[0] = true
40655			var yynn2 int
40656			if yyr2 || yy2arr2 {
40657				r.EncodeArrayStart(1)
40658			} else {
40659				yynn2 = 0
40660				for _, b := range yyq2 {
40661					if b {
40662						yynn2++
40663					}
40664				}
40665				r.EncodeMapStart(yynn2)
40666				yynn2 = 0
40667			}
40668			if yyr2 || yy2arr2 {
40669				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
40670				if yyq2[0] {
40671					yy4 := &x.LoadBalancer
40672					yy4.CodecEncodeSelf(e)
40673				} else {
40674					r.EncodeNil()
40675				}
40676			} else {
40677				if yyq2[0] {
40678					z.EncSendContainerState(codecSelfer_containerMapKey1234)
40679					r.EncodeString(codecSelferC_UTF81234, string("loadBalancer"))
40680					z.EncSendContainerState(codecSelfer_containerMapValue1234)
40681					yy6 := &x.LoadBalancer
40682					yy6.CodecEncodeSelf(e)
40683				}
40684			}
40685			if yyr2 || yy2arr2 {
40686				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
40687			} else {
40688				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
40689			}
40690		}
40691	}
40692}
40693
40694func (x *ServiceStatus) CodecDecodeSelf(d *codec1978.Decoder) {
40695	var h codecSelfer1234
40696	z, r := codec1978.GenHelperDecoder(d)
40697	_, _, _ = h, z, r
40698	yym1 := z.DecBinary()
40699	_ = yym1
40700	if false {
40701	} else if z.HasExtensions() && z.DecExt(x) {
40702	} else {
40703		yyct2 := r.ContainerType()
40704		if yyct2 == codecSelferValueTypeMap1234 {
40705			yyl2 := r.ReadMapStart()
40706			if yyl2 == 0 {
40707				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
40708			} else {
40709				x.codecDecodeSelfFromMap(yyl2, d)
40710			}
40711		} else if yyct2 == codecSelferValueTypeArray1234 {
40712			yyl2 := r.ReadArrayStart()
40713			if yyl2 == 0 {
40714				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40715			} else {
40716				x.codecDecodeSelfFromArray(yyl2, d)
40717			}
40718		} else {
40719			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
40720		}
40721	}
40722}
40723
40724func (x *ServiceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
40725	var h codecSelfer1234
40726	z, r := codec1978.GenHelperDecoder(d)
40727	_, _, _ = h, z, r
40728	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
40729	_ = yys3Slc
40730	var yyhl3 bool = l >= 0
40731	for yyj3 := 0; ; yyj3++ {
40732		if yyhl3 {
40733			if yyj3 >= l {
40734				break
40735			}
40736		} else {
40737			if r.CheckBreak() {
40738				break
40739			}
40740		}
40741		z.DecSendContainerState(codecSelfer_containerMapKey1234)
40742		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
40743		yys3 := string(yys3Slc)
40744		z.DecSendContainerState(codecSelfer_containerMapValue1234)
40745		switch yys3 {
40746		case "loadBalancer":
40747			if r.TryDecodeAsNil() {
40748				x.LoadBalancer = LoadBalancerStatus{}
40749			} else {
40750				yyv4 := &x.LoadBalancer
40751				yyv4.CodecDecodeSelf(d)
40752			}
40753		default:
40754			z.DecStructFieldNotFound(-1, yys3)
40755		} // end switch yys3
40756	} // end for yyj3
40757	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
40758}
40759
40760func (x *ServiceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
40761	var h codecSelfer1234
40762	z, r := codec1978.GenHelperDecoder(d)
40763	_, _, _ = h, z, r
40764	var yyj5 int
40765	var yyb5 bool
40766	var yyhl5 bool = l >= 0
40767	yyj5++
40768	if yyhl5 {
40769		yyb5 = yyj5 > l
40770	} else {
40771		yyb5 = r.CheckBreak()
40772	}
40773	if yyb5 {
40774		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40775		return
40776	}
40777	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
40778	if r.TryDecodeAsNil() {
40779		x.LoadBalancer = LoadBalancerStatus{}
40780	} else {
40781		yyv6 := &x.LoadBalancer
40782		yyv6.CodecDecodeSelf(d)
40783	}
40784	for {
40785		yyj5++
40786		if yyhl5 {
40787			yyb5 = yyj5 > l
40788		} else {
40789			yyb5 = r.CheckBreak()
40790		}
40791		if yyb5 {
40792			break
40793		}
40794		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
40795		z.DecStructFieldNotFound(yyj5-1, "")
40796	}
40797	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40798}
40799
40800func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) {
40801	var h codecSelfer1234
40802	z, r := codec1978.GenHelperEncoder(e)
40803	_, _, _ = h, z, r
40804	if x == nil {
40805		r.EncodeNil()
40806	} else {
40807		yym1 := z.EncBinary()
40808		_ = yym1
40809		if false {
40810		} else if z.HasExtensions() && z.EncExt(x) {
40811		} else {
40812			yysep2 := !z.EncBinary()
40813			yy2arr2 := z.EncBasicHandle().StructToArray
40814			var yyq2 [1]bool
40815			_, _, _ = yysep2, yyq2, yy2arr2
40816			const yyr2 bool = false
40817			yyq2[0] = len(x.Ingress) != 0
40818			var yynn2 int
40819			if yyr2 || yy2arr2 {
40820				r.EncodeArrayStart(1)
40821			} else {
40822				yynn2 = 0
40823				for _, b := range yyq2 {
40824					if b {
40825						yynn2++
40826					}
40827				}
40828				r.EncodeMapStart(yynn2)
40829				yynn2 = 0
40830			}
40831			if yyr2 || yy2arr2 {
40832				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
40833				if yyq2[0] {
40834					if x.Ingress == nil {
40835						r.EncodeNil()
40836					} else {
40837						yym4 := z.EncBinary()
40838						_ = yym4
40839						if false {
40840						} else {
40841							h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
40842						}
40843					}
40844				} else {
40845					r.EncodeNil()
40846				}
40847			} else {
40848				if yyq2[0] {
40849					z.EncSendContainerState(codecSelfer_containerMapKey1234)
40850					r.EncodeString(codecSelferC_UTF81234, string("ingress"))
40851					z.EncSendContainerState(codecSelfer_containerMapValue1234)
40852					if x.Ingress == nil {
40853						r.EncodeNil()
40854					} else {
40855						yym5 := z.EncBinary()
40856						_ = yym5
40857						if false {
40858						} else {
40859							h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
40860						}
40861					}
40862				}
40863			}
40864			if yyr2 || yy2arr2 {
40865				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
40866			} else {
40867				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
40868			}
40869		}
40870	}
40871}
40872
40873func (x *LoadBalancerStatus) CodecDecodeSelf(d *codec1978.Decoder) {
40874	var h codecSelfer1234
40875	z, r := codec1978.GenHelperDecoder(d)
40876	_, _, _ = h, z, r
40877	yym1 := z.DecBinary()
40878	_ = yym1
40879	if false {
40880	} else if z.HasExtensions() && z.DecExt(x) {
40881	} else {
40882		yyct2 := r.ContainerType()
40883		if yyct2 == codecSelferValueTypeMap1234 {
40884			yyl2 := r.ReadMapStart()
40885			if yyl2 == 0 {
40886				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
40887			} else {
40888				x.codecDecodeSelfFromMap(yyl2, d)
40889			}
40890		} else if yyct2 == codecSelferValueTypeArray1234 {
40891			yyl2 := r.ReadArrayStart()
40892			if yyl2 == 0 {
40893				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40894			} else {
40895				x.codecDecodeSelfFromArray(yyl2, d)
40896			}
40897		} else {
40898			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
40899		}
40900	}
40901}
40902
40903func (x *LoadBalancerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
40904	var h codecSelfer1234
40905	z, r := codec1978.GenHelperDecoder(d)
40906	_, _, _ = h, z, r
40907	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
40908	_ = yys3Slc
40909	var yyhl3 bool = l >= 0
40910	for yyj3 := 0; ; yyj3++ {
40911		if yyhl3 {
40912			if yyj3 >= l {
40913				break
40914			}
40915		} else {
40916			if r.CheckBreak() {
40917				break
40918			}
40919		}
40920		z.DecSendContainerState(codecSelfer_containerMapKey1234)
40921		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
40922		yys3 := string(yys3Slc)
40923		z.DecSendContainerState(codecSelfer_containerMapValue1234)
40924		switch yys3 {
40925		case "ingress":
40926			if r.TryDecodeAsNil() {
40927				x.Ingress = nil
40928			} else {
40929				yyv4 := &x.Ingress
40930				yym5 := z.DecBinary()
40931				_ = yym5
40932				if false {
40933				} else {
40934					h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv4), d)
40935				}
40936			}
40937		default:
40938			z.DecStructFieldNotFound(-1, yys3)
40939		} // end switch yys3
40940	} // end for yyj3
40941	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
40942}
40943
40944func (x *LoadBalancerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
40945	var h codecSelfer1234
40946	z, r := codec1978.GenHelperDecoder(d)
40947	_, _, _ = h, z, r
40948	var yyj6 int
40949	var yyb6 bool
40950	var yyhl6 bool = l >= 0
40951	yyj6++
40952	if yyhl6 {
40953		yyb6 = yyj6 > l
40954	} else {
40955		yyb6 = r.CheckBreak()
40956	}
40957	if yyb6 {
40958		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40959		return
40960	}
40961	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
40962	if r.TryDecodeAsNil() {
40963		x.Ingress = nil
40964	} else {
40965		yyv7 := &x.Ingress
40966		yym8 := z.DecBinary()
40967		_ = yym8
40968		if false {
40969		} else {
40970			h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv7), d)
40971		}
40972	}
40973	for {
40974		yyj6++
40975		if yyhl6 {
40976			yyb6 = yyj6 > l
40977		} else {
40978			yyb6 = r.CheckBreak()
40979		}
40980		if yyb6 {
40981			break
40982		}
40983		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
40984		z.DecStructFieldNotFound(yyj6-1, "")
40985	}
40986	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
40987}
40988
40989func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) {
40990	var h codecSelfer1234
40991	z, r := codec1978.GenHelperEncoder(e)
40992	_, _, _ = h, z, r
40993	if x == nil {
40994		r.EncodeNil()
40995	} else {
40996		yym1 := z.EncBinary()
40997		_ = yym1
40998		if false {
40999		} else if z.HasExtensions() && z.EncExt(x) {
41000		} else {
41001			yysep2 := !z.EncBinary()
41002			yy2arr2 := z.EncBasicHandle().StructToArray
41003			var yyq2 [2]bool
41004			_, _, _ = yysep2, yyq2, yy2arr2
41005			const yyr2 bool = false
41006			yyq2[0] = x.IP != ""
41007			yyq2[1] = x.Hostname != ""
41008			var yynn2 int
41009			if yyr2 || yy2arr2 {
41010				r.EncodeArrayStart(2)
41011			} else {
41012				yynn2 = 0
41013				for _, b := range yyq2 {
41014					if b {
41015						yynn2++
41016					}
41017				}
41018				r.EncodeMapStart(yynn2)
41019				yynn2 = 0
41020			}
41021			if yyr2 || yy2arr2 {
41022				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
41023				if yyq2[0] {
41024					yym4 := z.EncBinary()
41025					_ = yym4
41026					if false {
41027					} else {
41028						r.EncodeString(codecSelferC_UTF81234, string(x.IP))
41029					}
41030				} else {
41031					r.EncodeString(codecSelferC_UTF81234, "")
41032				}
41033			} else {
41034				if yyq2[0] {
41035					z.EncSendContainerState(codecSelfer_containerMapKey1234)
41036					r.EncodeString(codecSelferC_UTF81234, string("ip"))
41037					z.EncSendContainerState(codecSelfer_containerMapValue1234)
41038					yym5 := z.EncBinary()
41039					_ = yym5
41040					if false {
41041					} else {
41042						r.EncodeString(codecSelferC_UTF81234, string(x.IP))
41043					}
41044				}
41045			}
41046			if yyr2 || yy2arr2 {
41047				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
41048				if yyq2[1] {
41049					yym7 := z.EncBinary()
41050					_ = yym7
41051					if false {
41052					} else {
41053						r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
41054					}
41055				} else {
41056					r.EncodeString(codecSelferC_UTF81234, "")
41057				}
41058			} else {
41059				if yyq2[1] {
41060					z.EncSendContainerState(codecSelfer_containerMapKey1234)
41061					r.EncodeString(codecSelferC_UTF81234, string("hostname"))
41062					z.EncSendContainerState(codecSelfer_containerMapValue1234)
41063					yym8 := z.EncBinary()
41064					_ = yym8
41065					if false {
41066					} else {
41067						r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
41068					}
41069				}
41070			}
41071			if yyr2 || yy2arr2 {
41072				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
41073			} else {
41074				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
41075			}
41076		}
41077	}
41078}
41079
41080func (x *LoadBalancerIngress) CodecDecodeSelf(d *codec1978.Decoder) {
41081	var h codecSelfer1234
41082	z, r := codec1978.GenHelperDecoder(d)
41083	_, _, _ = h, z, r
41084	yym1 := z.DecBinary()
41085	_ = yym1
41086	if false {
41087	} else if z.HasExtensions() && z.DecExt(x) {
41088	} else {
41089		yyct2 := r.ContainerType()
41090		if yyct2 == codecSelferValueTypeMap1234 {
41091			yyl2 := r.ReadMapStart()
41092			if yyl2 == 0 {
41093				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
41094			} else {
41095				x.codecDecodeSelfFromMap(yyl2, d)
41096			}
41097		} else if yyct2 == codecSelferValueTypeArray1234 {
41098			yyl2 := r.ReadArrayStart()
41099			if yyl2 == 0 {
41100				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
41101			} else {
41102				x.codecDecodeSelfFromArray(yyl2, d)
41103			}
41104		} else {
41105			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
41106		}
41107	}
41108}
41109
41110func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
41111	var h codecSelfer1234
41112	z, r := codec1978.GenHelperDecoder(d)
41113	_, _, _ = h, z, r
41114	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
41115	_ = yys3Slc
41116	var yyhl3 bool = l >= 0
41117	for yyj3 := 0; ; yyj3++ {
41118		if yyhl3 {
41119			if yyj3 >= l {
41120				break
41121			}
41122		} else {
41123			if r.CheckBreak() {
41124				break
41125			}
41126		}
41127		z.DecSendContainerState(codecSelfer_containerMapKey1234)
41128		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
41129		yys3 := string(yys3Slc)
41130		z.DecSendContainerState(codecSelfer_containerMapValue1234)
41131		switch yys3 {
41132		case "ip":
41133			if r.TryDecodeAsNil() {
41134				x.IP = ""
41135			} else {
41136				yyv4 := &x.IP
41137				yym5 := z.DecBinary()
41138				_ = yym5
41139				if false {
41140				} else {
41141					*((*string)(yyv4)) = r.DecodeString()
41142				}
41143			}
41144		case "hostname":
41145			if r.TryDecodeAsNil() {
41146				x.Hostname = ""
41147			} else {
41148				yyv6 := &x.Hostname
41149				yym7 := z.DecBinary()
41150				_ = yym7
41151				if false {
41152				} else {
41153					*((*string)(yyv6)) = r.DecodeString()
41154				}
41155			}
41156		default:
41157			z.DecStructFieldNotFound(-1, yys3)
41158		} // end switch yys3
41159	} // end for yyj3
41160	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
41161}
41162
41163func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
41164	var h codecSelfer1234
41165	z, r := codec1978.GenHelperDecoder(d)
41166	_, _, _ = h, z, r
41167	var yyj8 int
41168	var yyb8 bool
41169	var yyhl8 bool = l >= 0
41170	yyj8++
41171	if yyhl8 {
41172		yyb8 = yyj8 > l
41173	} else {
41174		yyb8 = r.CheckBreak()
41175	}
41176	if yyb8 {
41177		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
41178		return
41179	}
41180	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
41181	if r.TryDecodeAsNil() {
41182		x.IP = ""
41183	} else {
41184		yyv9 := &x.IP
41185		yym10 := z.DecBinary()
41186		_ = yym10
41187		if false {
41188		} else {
41189			*((*string)(yyv9)) = r.DecodeString()
41190		}
41191	}
41192	yyj8++
41193	if yyhl8 {
41194		yyb8 = yyj8 > l
41195	} else {
41196		yyb8 = r.CheckBreak()
41197	}
41198	if yyb8 {
41199		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
41200		return
41201	}
41202	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
41203	if r.TryDecodeAsNil() {
41204		x.Hostname = ""
41205	} else {
41206		yyv11 := &x.Hostname
41207		yym12 := z.DecBinary()
41208		_ = yym12
41209		if false {
41210		} else {
41211			*((*string)(yyv11)) = r.DecodeString()
41212		}
41213	}
41214	for {
41215		yyj8++
41216		if yyhl8 {
41217			yyb8 = yyj8 > l
41218		} else {
41219			yyb8 = r.CheckBreak()
41220		}
41221		if yyb8 {
41222			break
41223		}
41224		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
41225		z.DecStructFieldNotFound(yyj8-1, "")
41226	}
41227	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
41228}
41229
41230func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) {
41231	var h codecSelfer1234
41232	z, r := codec1978.GenHelperEncoder(e)
41233	_, _, _ = h, z, r
41234	if x == nil {
41235		r.EncodeNil()
41236	} else {
41237		yym1 := z.EncBinary()
41238		_ = yym1
41239		if false {
41240		} else if z.HasExtensions() && z.EncExt(x) {
41241		} else {
41242			yysep2 := !z.EncBinary()
41243			yy2arr2 := z.EncBasicHandle().StructToArray
41244			var yyq2 [10]bool
41245			_, _, _ = yysep2, yyq2, yy2arr2
41246			const yyr2 bool = false
41247			yyq2[0] = len(x.Ports) != 0
41248			yyq2[1] = len(x.Selector) != 0
41249			yyq2[2] = x.ClusterIP != ""
41250			yyq2[3] = x.Type != ""
41251			yyq2[4] = len(x.ExternalIPs) != 0
41252			yyq2[5] = len(x.DeprecatedPublicIPs) != 0
41253			yyq2[6] = x.SessionAffinity != ""
41254			yyq2[7] = x.LoadBalancerIP != ""
41255			yyq2[8] = len(x.LoadBalancerSourceRanges) != 0
41256			yyq2[9] = x.ExternalName != ""
41257			var yynn2 int
41258			if yyr2 || yy2arr2 {
41259				r.EncodeArrayStart(10)
41260			} else {
41261				yynn2 = 0
41262				for _, b := range yyq2 {
41263					if b {
41264						yynn2++
41265					}
41266				}
41267				r.EncodeMapStart(yynn2)
41268				yynn2 = 0
41269			}
41270			if yyr2 || yy2arr2 {
41271				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
41272				if yyq2[0] {
41273					if x.Ports == nil {
41274						r.EncodeNil()
41275					} else {
41276						yym4 := z.EncBinary()
41277						_ = yym4
41278						if false {
41279						} else {
41280							h.encSliceServicePort(([]ServicePort)(x.Ports), e)
41281						}
41282					}
41283				} else {
41284					r.EncodeNil()
41285				}
41286			} else {
41287				if yyq2[0] {
41288					z.EncSendContainerState(codecSelfer_containerMapKey1234)
41289					r.EncodeString(codecSelferC_UTF81234, string("ports"))
41290					z.EncSendContainerState(codecSelfer_containerMapValue1234)
41291					if x.Ports == nil {
41292						r.EncodeNil()
41293					} else {
41294						yym5 := z.EncBinary()
41295						_ = yym5
41296						if false {
41297						} else {
41298							h.encSliceServicePort(([]ServicePort)(x.Ports), e)
41299						}
41300					}
41301				}
41302			}
41303			if yyr2 || yy2arr2 {
41304				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
41305				if yyq2[1] {
41306					if x.Selector == nil {
41307						r.EncodeNil()
41308					} else {
41309						yym7 := z.EncBinary()
41310						_ = yym7
41311						if false {
41312						} else {
41313							z.F.EncMapStringStringV(x.Selector, false, e)
41314						}
41315					}
41316				} else {
41317					r.EncodeNil()
41318				}
41319			} else {
41320				if yyq2[1] {
41321					z.EncSendContainerState(codecSelfer_containerMapKey1234)
41322					r.EncodeString(codecSelferC_UTF81234, string("selector"))
41323					z.EncSendContainerState(codecSelfer_containerMapValue1234)
41324					if x.Selector == nil {
41325						r.EncodeNil()
41326					} else {
41327						yym8 := z.EncBinary()
41328						_ = yym8
41329						if false {
41330						} else {
41331							z.F.EncMapStringStringV(x.Selector, false, e)
41332						}
41333					}
41334				}
41335			}
41336			if yyr2 || yy2arr2 {
41337				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
41338				if yyq2[2] {
41339					yym10 := z.EncBinary()
41340					_ = yym10
41341					if false {
41342					} else {
41343						r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
41344					}
41345				} else {
41346					r.EncodeString(codecSelferC_UTF81234, "")
41347				}
41348			} else {
41349				if yyq2[2] {
41350					z.EncSendContainerState(codecSelfer_containerMapKey1234)
41351					r.EncodeString(codecSelferC_UTF81234, string("clusterIP"))
41352					z.EncSendContainerState(codecSelfer_containerMapValue1234)
41353					yym11 := z.EncBinary()
41354					_ = yym11
41355					if false {
41356					} else {
41357						r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
41358					}
41359				}
41360			}
41361			if yyr2 || yy2arr2 {
41362				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
41363				if yyq2[3] {
41364					x.Type.CodecEncodeSelf(e)
41365				} else {
41366					r.EncodeString(codecSelferC_UTF81234, "")
41367				}
41368			} else {
41369				if yyq2[3] {
41370					z.EncSendContainerState(codecSelfer_containerMapKey1234)
41371					r.EncodeString(codecSelferC_UTF81234, string("type"))
41372					z.EncSendContainerState(codecSelfer_containerMapValue1234)
41373					x.Type.CodecEncodeSelf(e)
41374				}
41375			}
41376			if yyr2 || yy2arr2 {
41377				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
41378				if yyq2[4] {
41379					if x.ExternalIPs == nil {
41380						r.EncodeNil()
41381					} else {
41382						yym16 := z.EncBinary()
41383						_ = yym16
41384						if false {
41385						} else {
41386							z.F.EncSliceStringV(x.ExternalIPs, false, e)
41387						}
41388					}
41389				} else {
41390					r.EncodeNil()
41391				}
41392			} else {
41393				if yyq2[4] {
41394					z.EncSendContainerState(codecSelfer_containerMapKey1234)
41395					r.EncodeString(codecSelferC_UTF81234, string("externalIPs"))
41396					z.EncSendContainerState(codecSelfer_containerMapValue1234)
41397					if x.ExternalIPs == nil {
41398						r.EncodeNil()
41399					} else {
41400						yym17 := z.EncBinary()
41401						_ = yym17
41402						if false {
41403						} else {
41404							z.F.EncSliceStringV(x.ExternalIPs, false, e)
41405						}
41406					}
41407				}
41408			}
41409			if yyr2 || yy2arr2 {
41410				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
41411				if yyq2[5] {
41412					if x.DeprecatedPublicIPs == nil {
41413						r.EncodeNil()
41414					} else {
41415						yym19 := z.EncBinary()
41416						_ = yym19
41417						if false {
41418						} else {
41419							z.F.EncSliceStringV(x.DeprecatedPublicIPs, false, e)
41420						}
41421					}
41422				} else {
41423					r.EncodeNil()
41424				}
41425			} else {
41426				if yyq2[5] {
41427					z.EncSendContainerState(codecSelfer_containerMapKey1234)
41428					r.EncodeString(codecSelferC_UTF81234, string("deprecatedPublicIPs"))
41429					z.EncSendContainerState(codecSelfer_containerMapValue1234)
41430					if x.DeprecatedPublicIPs == nil {
41431						r.EncodeNil()
41432					} else {
41433						yym20 := z.EncBinary()
41434						_ = yym20
41435						if false {
41436						} else {
41437							z.F.EncSliceStringV(x.DeprecatedPublicIPs, false, e)
41438						}
41439					}
41440				}
41441			}
41442			if yyr2 || yy2arr2 {
41443				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
41444				if yyq2[6] {
41445					x.SessionAffinity.CodecEncodeSelf(e)
41446				} else {
41447					r.EncodeString(codecSelferC_UTF81234, "")
41448				}
41449			} else {
41450				if yyq2[6] {
41451					z.EncSendContainerState(codecSelfer_containerMapKey1234)
41452					r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity"))
41453					z.EncSendContainerState(codecSelfer_containerMapValue1234)
41454					x.SessionAffinity.CodecEncodeSelf(e)
41455				}
41456			}
41457			if yyr2 || yy2arr2 {
41458				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
41459				if yyq2[7] {
41460					yym25 := z.EncBinary()
41461					_ = yym25
41462					if false {
41463					} else {
41464						r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
41465					}
41466				} else {
41467					r.EncodeString(codecSelferC_UTF81234, "")
41468				}
41469			} else {
41470				if yyq2[7] {
41471					z.EncSendContainerState(codecSelfer_containerMapKey1234)
41472					r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP"))
41473					z.EncSendContainerState(codecSelfer_containerMapValue1234)
41474					yym26 := z.EncBinary()
41475					_ = yym26
41476					if false {
41477					} else {
41478						r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
41479					}
41480				}
41481			}
41482			if yyr2 || yy2arr2 {
41483				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
41484				if yyq2[8] {
41485					if x.LoadBalancerSourceRanges == nil {
41486						r.EncodeNil()
41487					} else {
41488						yym28 := z.EncBinary()
41489						_ = yym28
41490						if false {
41491						} else {
41492							z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e)
41493						}
41494					}
41495				} else {
41496					r.EncodeNil()
41497				}
41498			} else {
41499				if yyq2[8] {
41500					z.EncSendContainerState(codecSelfer_containerMapKey1234)
41501					r.EncodeString(codecSelferC_UTF81234, string("loadBalancerSourceRanges"))
41502					z.EncSendContainerState(codecSelfer_containerMapValue1234)
41503					if x.LoadBalancerSourceRanges == nil {
41504						r.EncodeNil()
41505					} else {
41506						yym29 := z.EncBinary()
41507						_ = yym29
41508						if false {
41509						} else {
41510							z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e)
41511						}
41512					}
41513				}
41514			}
41515			if yyr2 || yy2arr2 {
41516				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
41517				if yyq2[9] {
41518					yym31 := z.EncBinary()
41519					_ = yym31
41520					if false {
41521					} else {
41522						r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName))
41523					}
41524				} else {
41525					r.EncodeString(codecSelferC_UTF81234, "")
41526				}
41527			} else {
41528				if yyq2[9] {
41529					z.EncSendContainerState(codecSelfer_containerMapKey1234)
41530					r.EncodeString(codecSelferC_UTF81234, string("externalName"))
41531					z.EncSendContainerState(codecSelfer_containerMapValue1234)
41532					yym32 := z.EncBinary()
41533					_ = yym32
41534					if false {
41535					} else {
41536						r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName))
41537					}
41538				}
41539			}
41540			if yyr2 || yy2arr2 {
41541				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
41542			} else {
41543				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
41544			}
41545		}
41546	}
41547}
41548
41549func (x *ServiceSpec) CodecDecodeSelf(d *codec1978.Decoder) {
41550	var h codecSelfer1234
41551	z, r := codec1978.GenHelperDecoder(d)
41552	_, _, _ = h, z, r
41553	yym1 := z.DecBinary()
41554	_ = yym1
41555	if false {
41556	} else if z.HasExtensions() && z.DecExt(x) {
41557	} else {
41558		yyct2 := r.ContainerType()
41559		if yyct2 == codecSelferValueTypeMap1234 {
41560			yyl2 := r.ReadMapStart()
41561			if yyl2 == 0 {
41562				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
41563			} else {
41564				x.codecDecodeSelfFromMap(yyl2, d)
41565			}
41566		} else if yyct2 == codecSelferValueTypeArray1234 {
41567			yyl2 := r.ReadArrayStart()
41568			if yyl2 == 0 {
41569				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
41570			} else {
41571				x.codecDecodeSelfFromArray(yyl2, d)
41572			}
41573		} else {
41574			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
41575		}
41576	}
41577}
41578
41579func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
41580	var h codecSelfer1234
41581	z, r := codec1978.GenHelperDecoder(d)
41582	_, _, _ = h, z, r
41583	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
41584	_ = yys3Slc
41585	var yyhl3 bool = l >= 0
41586	for yyj3 := 0; ; yyj3++ {
41587		if yyhl3 {
41588			if yyj3 >= l {
41589				break
41590			}
41591		} else {
41592			if r.CheckBreak() {
41593				break
41594			}
41595		}
41596		z.DecSendContainerState(codecSelfer_containerMapKey1234)
41597		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
41598		yys3 := string(yys3Slc)
41599		z.DecSendContainerState(codecSelfer_containerMapValue1234)
41600		switch yys3 {
41601		case "ports":
41602			if r.TryDecodeAsNil() {
41603				x.Ports = nil
41604			} else {
41605				yyv4 := &x.Ports
41606				yym5 := z.DecBinary()
41607				_ = yym5
41608				if false {
41609				} else {
41610					h.decSliceServicePort((*[]ServicePort)(yyv4), d)
41611				}
41612			}
41613		case "selector":
41614			if r.TryDecodeAsNil() {
41615				x.Selector = nil
41616			} else {
41617				yyv6 := &x.Selector
41618				yym7 := z.DecBinary()
41619				_ = yym7
41620				if false {
41621				} else {
41622					z.F.DecMapStringStringX(yyv6, false, d)
41623				}
41624			}
41625		case "clusterIP":
41626			if r.TryDecodeAsNil() {
41627				x.ClusterIP = ""
41628			} else {
41629				yyv8 := &x.ClusterIP
41630				yym9 := z.DecBinary()
41631				_ = yym9
41632				if false {
41633				} else {
41634					*((*string)(yyv8)) = r.DecodeString()
41635				}
41636			}
41637		case "type":
41638			if r.TryDecodeAsNil() {
41639				x.Type = ""
41640			} else {
41641				yyv10 := &x.Type
41642				yyv10.CodecDecodeSelf(d)
41643			}
41644		case "externalIPs":
41645			if r.TryDecodeAsNil() {
41646				x.ExternalIPs = nil
41647			} else {
41648				yyv11 := &x.ExternalIPs
41649				yym12 := z.DecBinary()
41650				_ = yym12
41651				if false {
41652				} else {
41653					z.F.DecSliceStringX(yyv11, false, d)
41654				}
41655			}
41656		case "deprecatedPublicIPs":
41657			if r.TryDecodeAsNil() {
41658				x.DeprecatedPublicIPs = nil
41659			} else {
41660				yyv13 := &x.DeprecatedPublicIPs
41661				yym14 := z.DecBinary()
41662				_ = yym14
41663				if false {
41664				} else {
41665					z.F.DecSliceStringX(yyv13, false, d)
41666				}
41667			}
41668		case "sessionAffinity":
41669			if r.TryDecodeAsNil() {
41670				x.SessionAffinity = ""
41671			} else {
41672				yyv15 := &x.SessionAffinity
41673				yyv15.CodecDecodeSelf(d)
41674			}
41675		case "loadBalancerIP":
41676			if r.TryDecodeAsNil() {
41677				x.LoadBalancerIP = ""
41678			} else {
41679				yyv16 := &x.LoadBalancerIP
41680				yym17 := z.DecBinary()
41681				_ = yym17
41682				if false {
41683				} else {
41684					*((*string)(yyv16)) = r.DecodeString()
41685				}
41686			}
41687		case "loadBalancerSourceRanges":
41688			if r.TryDecodeAsNil() {
41689				x.LoadBalancerSourceRanges = nil
41690			} else {
41691				yyv18 := &x.LoadBalancerSourceRanges
41692				yym19 := z.DecBinary()
41693				_ = yym19
41694				if false {
41695				} else {
41696					z.F.DecSliceStringX(yyv18, false, d)
41697				}
41698			}
41699		case "externalName":
41700			if r.TryDecodeAsNil() {
41701				x.ExternalName = ""
41702			} else {
41703				yyv20 := &x.ExternalName
41704				yym21 := z.DecBinary()
41705				_ = yym21
41706				if false {
41707				} else {
41708					*((*string)(yyv20)) = r.DecodeString()
41709				}
41710			}
41711		default:
41712			z.DecStructFieldNotFound(-1, yys3)
41713		} // end switch yys3
41714	} // end for yyj3
41715	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
41716}
41717
41718func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
41719	var h codecSelfer1234
41720	z, r := codec1978.GenHelperDecoder(d)
41721	_, _, _ = h, z, r
41722	var yyj22 int
41723	var yyb22 bool
41724	var yyhl22 bool = l >= 0
41725	yyj22++
41726	if yyhl22 {
41727		yyb22 = yyj22 > l
41728	} else {
41729		yyb22 = r.CheckBreak()
41730	}
41731	if yyb22 {
41732		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
41733		return
41734	}
41735	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
41736	if r.TryDecodeAsNil() {
41737		x.Ports = nil
41738	} else {
41739		yyv23 := &x.Ports
41740		yym24 := z.DecBinary()
41741		_ = yym24
41742		if false {
41743		} else {
41744			h.decSliceServicePort((*[]ServicePort)(yyv23), d)
41745		}
41746	}
41747	yyj22++
41748	if yyhl22 {
41749		yyb22 = yyj22 > l
41750	} else {
41751		yyb22 = r.CheckBreak()
41752	}
41753	if yyb22 {
41754		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
41755		return
41756	}
41757	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
41758	if r.TryDecodeAsNil() {
41759		x.Selector = nil
41760	} else {
41761		yyv25 := &x.Selector
41762		yym26 := z.DecBinary()
41763		_ = yym26
41764		if false {
41765		} else {
41766			z.F.DecMapStringStringX(yyv25, false, d)
41767		}
41768	}
41769	yyj22++
41770	if yyhl22 {
41771		yyb22 = yyj22 > l
41772	} else {
41773		yyb22 = r.CheckBreak()
41774	}
41775	if yyb22 {
41776		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
41777		return
41778	}
41779	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
41780	if r.TryDecodeAsNil() {
41781		x.ClusterIP = ""
41782	} else {
41783		yyv27 := &x.ClusterIP
41784		yym28 := z.DecBinary()
41785		_ = yym28
41786		if false {
41787		} else {
41788			*((*string)(yyv27)) = r.DecodeString()
41789		}
41790	}
41791	yyj22++
41792	if yyhl22 {
41793		yyb22 = yyj22 > l
41794	} else {
41795		yyb22 = r.CheckBreak()
41796	}
41797	if yyb22 {
41798		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
41799		return
41800	}
41801	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
41802	if r.TryDecodeAsNil() {
41803		x.Type = ""
41804	} else {
41805		yyv29 := &x.Type
41806		yyv29.CodecDecodeSelf(d)
41807	}
41808	yyj22++
41809	if yyhl22 {
41810		yyb22 = yyj22 > l
41811	} else {
41812		yyb22 = r.CheckBreak()
41813	}
41814	if yyb22 {
41815		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
41816		return
41817	}
41818	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
41819	if r.TryDecodeAsNil() {
41820		x.ExternalIPs = nil
41821	} else {
41822		yyv30 := &x.ExternalIPs
41823		yym31 := z.DecBinary()
41824		_ = yym31
41825		if false {
41826		} else {
41827			z.F.DecSliceStringX(yyv30, false, d)
41828		}
41829	}
41830	yyj22++
41831	if yyhl22 {
41832		yyb22 = yyj22 > l
41833	} else {
41834		yyb22 = r.CheckBreak()
41835	}
41836	if yyb22 {
41837		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
41838		return
41839	}
41840	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
41841	if r.TryDecodeAsNil() {
41842		x.DeprecatedPublicIPs = nil
41843	} else {
41844		yyv32 := &x.DeprecatedPublicIPs
41845		yym33 := z.DecBinary()
41846		_ = yym33
41847		if false {
41848		} else {
41849			z.F.DecSliceStringX(yyv32, false, d)
41850		}
41851	}
41852	yyj22++
41853	if yyhl22 {
41854		yyb22 = yyj22 > l
41855	} else {
41856		yyb22 = r.CheckBreak()
41857	}
41858	if yyb22 {
41859		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
41860		return
41861	}
41862	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
41863	if r.TryDecodeAsNil() {
41864		x.SessionAffinity = ""
41865	} else {
41866		yyv34 := &x.SessionAffinity
41867		yyv34.CodecDecodeSelf(d)
41868	}
41869	yyj22++
41870	if yyhl22 {
41871		yyb22 = yyj22 > l
41872	} else {
41873		yyb22 = r.CheckBreak()
41874	}
41875	if yyb22 {
41876		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
41877		return
41878	}
41879	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
41880	if r.TryDecodeAsNil() {
41881		x.LoadBalancerIP = ""
41882	} else {
41883		yyv35 := &x.LoadBalancerIP
41884		yym36 := z.DecBinary()
41885		_ = yym36
41886		if false {
41887		} else {
41888			*((*string)(yyv35)) = r.DecodeString()
41889		}
41890	}
41891	yyj22++
41892	if yyhl22 {
41893		yyb22 = yyj22 > l
41894	} else {
41895		yyb22 = r.CheckBreak()
41896	}
41897	if yyb22 {
41898		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
41899		return
41900	}
41901	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
41902	if r.TryDecodeAsNil() {
41903		x.LoadBalancerSourceRanges = nil
41904	} else {
41905		yyv37 := &x.LoadBalancerSourceRanges
41906		yym38 := z.DecBinary()
41907		_ = yym38
41908		if false {
41909		} else {
41910			z.F.DecSliceStringX(yyv37, false, d)
41911		}
41912	}
41913	yyj22++
41914	if yyhl22 {
41915		yyb22 = yyj22 > l
41916	} else {
41917		yyb22 = r.CheckBreak()
41918	}
41919	if yyb22 {
41920		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
41921		return
41922	}
41923	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
41924	if r.TryDecodeAsNil() {
41925		x.ExternalName = ""
41926	} else {
41927		yyv39 := &x.ExternalName
41928		yym40 := z.DecBinary()
41929		_ = yym40
41930		if false {
41931		} else {
41932			*((*string)(yyv39)) = r.DecodeString()
41933		}
41934	}
41935	for {
41936		yyj22++
41937		if yyhl22 {
41938			yyb22 = yyj22 > l
41939		} else {
41940			yyb22 = r.CheckBreak()
41941		}
41942		if yyb22 {
41943			break
41944		}
41945		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
41946		z.DecStructFieldNotFound(yyj22-1, "")
41947	}
41948	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
41949}
41950
41951func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) {
41952	var h codecSelfer1234
41953	z, r := codec1978.GenHelperEncoder(e)
41954	_, _, _ = h, z, r
41955	if x == nil {
41956		r.EncodeNil()
41957	} else {
41958		yym1 := z.EncBinary()
41959		_ = yym1
41960		if false {
41961		} else if z.HasExtensions() && z.EncExt(x) {
41962		} else {
41963			yysep2 := !z.EncBinary()
41964			yy2arr2 := z.EncBasicHandle().StructToArray
41965			var yyq2 [5]bool
41966			_, _, _ = yysep2, yyq2, yy2arr2
41967			const yyr2 bool = false
41968			yyq2[0] = x.Name != ""
41969			yyq2[1] = x.Protocol != ""
41970			yyq2[3] = true
41971			yyq2[4] = x.NodePort != 0
41972			var yynn2 int
41973			if yyr2 || yy2arr2 {
41974				r.EncodeArrayStart(5)
41975			} else {
41976				yynn2 = 1
41977				for _, b := range yyq2 {
41978					if b {
41979						yynn2++
41980					}
41981				}
41982				r.EncodeMapStart(yynn2)
41983				yynn2 = 0
41984			}
41985			if yyr2 || yy2arr2 {
41986				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
41987				if yyq2[0] {
41988					yym4 := z.EncBinary()
41989					_ = yym4
41990					if false {
41991					} else {
41992						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
41993					}
41994				} else {
41995					r.EncodeString(codecSelferC_UTF81234, "")
41996				}
41997			} else {
41998				if yyq2[0] {
41999					z.EncSendContainerState(codecSelfer_containerMapKey1234)
42000					r.EncodeString(codecSelferC_UTF81234, string("name"))
42001					z.EncSendContainerState(codecSelfer_containerMapValue1234)
42002					yym5 := z.EncBinary()
42003					_ = yym5
42004					if false {
42005					} else {
42006						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
42007					}
42008				}
42009			}
42010			if yyr2 || yy2arr2 {
42011				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
42012				if yyq2[1] {
42013					x.Protocol.CodecEncodeSelf(e)
42014				} else {
42015					r.EncodeString(codecSelferC_UTF81234, "")
42016				}
42017			} else {
42018				if yyq2[1] {
42019					z.EncSendContainerState(codecSelfer_containerMapKey1234)
42020					r.EncodeString(codecSelferC_UTF81234, string("protocol"))
42021					z.EncSendContainerState(codecSelfer_containerMapValue1234)
42022					x.Protocol.CodecEncodeSelf(e)
42023				}
42024			}
42025			if yyr2 || yy2arr2 {
42026				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
42027				yym10 := z.EncBinary()
42028				_ = yym10
42029				if false {
42030				} else {
42031					r.EncodeInt(int64(x.Port))
42032				}
42033			} else {
42034				z.EncSendContainerState(codecSelfer_containerMapKey1234)
42035				r.EncodeString(codecSelferC_UTF81234, string("port"))
42036				z.EncSendContainerState(codecSelfer_containerMapValue1234)
42037				yym11 := z.EncBinary()
42038				_ = yym11
42039				if false {
42040				} else {
42041					r.EncodeInt(int64(x.Port))
42042				}
42043			}
42044			if yyr2 || yy2arr2 {
42045				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
42046				if yyq2[3] {
42047					yy13 := &x.TargetPort
42048					yym14 := z.EncBinary()
42049					_ = yym14
42050					if false {
42051					} else if z.HasExtensions() && z.EncExt(yy13) {
42052					} else if !yym14 && z.IsJSONHandle() {
42053						z.EncJSONMarshal(yy13)
42054					} else {
42055						z.EncFallback(yy13)
42056					}
42057				} else {
42058					r.EncodeNil()
42059				}
42060			} else {
42061				if yyq2[3] {
42062					z.EncSendContainerState(codecSelfer_containerMapKey1234)
42063					r.EncodeString(codecSelferC_UTF81234, string("targetPort"))
42064					z.EncSendContainerState(codecSelfer_containerMapValue1234)
42065					yy15 := &x.TargetPort
42066					yym16 := z.EncBinary()
42067					_ = yym16
42068					if false {
42069					} else if z.HasExtensions() && z.EncExt(yy15) {
42070					} else if !yym16 && z.IsJSONHandle() {
42071						z.EncJSONMarshal(yy15)
42072					} else {
42073						z.EncFallback(yy15)
42074					}
42075				}
42076			}
42077			if yyr2 || yy2arr2 {
42078				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
42079				if yyq2[4] {
42080					yym18 := z.EncBinary()
42081					_ = yym18
42082					if false {
42083					} else {
42084						r.EncodeInt(int64(x.NodePort))
42085					}
42086				} else {
42087					r.EncodeInt(0)
42088				}
42089			} else {
42090				if yyq2[4] {
42091					z.EncSendContainerState(codecSelfer_containerMapKey1234)
42092					r.EncodeString(codecSelferC_UTF81234, string("nodePort"))
42093					z.EncSendContainerState(codecSelfer_containerMapValue1234)
42094					yym19 := z.EncBinary()
42095					_ = yym19
42096					if false {
42097					} else {
42098						r.EncodeInt(int64(x.NodePort))
42099					}
42100				}
42101			}
42102			if yyr2 || yy2arr2 {
42103				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
42104			} else {
42105				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
42106			}
42107		}
42108	}
42109}
42110
42111func (x *ServicePort) CodecDecodeSelf(d *codec1978.Decoder) {
42112	var h codecSelfer1234
42113	z, r := codec1978.GenHelperDecoder(d)
42114	_, _, _ = h, z, r
42115	yym1 := z.DecBinary()
42116	_ = yym1
42117	if false {
42118	} else if z.HasExtensions() && z.DecExt(x) {
42119	} else {
42120		yyct2 := r.ContainerType()
42121		if yyct2 == codecSelferValueTypeMap1234 {
42122			yyl2 := r.ReadMapStart()
42123			if yyl2 == 0 {
42124				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
42125			} else {
42126				x.codecDecodeSelfFromMap(yyl2, d)
42127			}
42128		} else if yyct2 == codecSelferValueTypeArray1234 {
42129			yyl2 := r.ReadArrayStart()
42130			if yyl2 == 0 {
42131				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
42132			} else {
42133				x.codecDecodeSelfFromArray(yyl2, d)
42134			}
42135		} else {
42136			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
42137		}
42138	}
42139}
42140
42141func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
42142	var h codecSelfer1234
42143	z, r := codec1978.GenHelperDecoder(d)
42144	_, _, _ = h, z, r
42145	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
42146	_ = yys3Slc
42147	var yyhl3 bool = l >= 0
42148	for yyj3 := 0; ; yyj3++ {
42149		if yyhl3 {
42150			if yyj3 >= l {
42151				break
42152			}
42153		} else {
42154			if r.CheckBreak() {
42155				break
42156			}
42157		}
42158		z.DecSendContainerState(codecSelfer_containerMapKey1234)
42159		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
42160		yys3 := string(yys3Slc)
42161		z.DecSendContainerState(codecSelfer_containerMapValue1234)
42162		switch yys3 {
42163		case "name":
42164			if r.TryDecodeAsNil() {
42165				x.Name = ""
42166			} else {
42167				yyv4 := &x.Name
42168				yym5 := z.DecBinary()
42169				_ = yym5
42170				if false {
42171				} else {
42172					*((*string)(yyv4)) = r.DecodeString()
42173				}
42174			}
42175		case "protocol":
42176			if r.TryDecodeAsNil() {
42177				x.Protocol = ""
42178			} else {
42179				yyv6 := &x.Protocol
42180				yyv6.CodecDecodeSelf(d)
42181			}
42182		case "port":
42183			if r.TryDecodeAsNil() {
42184				x.Port = 0
42185			} else {
42186				yyv7 := &x.Port
42187				yym8 := z.DecBinary()
42188				_ = yym8
42189				if false {
42190				} else {
42191					*((*int32)(yyv7)) = int32(r.DecodeInt(32))
42192				}
42193			}
42194		case "targetPort":
42195			if r.TryDecodeAsNil() {
42196				x.TargetPort = pkg4_intstr.IntOrString{}
42197			} else {
42198				yyv9 := &x.TargetPort
42199				yym10 := z.DecBinary()
42200				_ = yym10
42201				if false {
42202				} else if z.HasExtensions() && z.DecExt(yyv9) {
42203				} else if !yym10 && z.IsJSONHandle() {
42204					z.DecJSONUnmarshal(yyv9)
42205				} else {
42206					z.DecFallback(yyv9, false)
42207				}
42208			}
42209		case "nodePort":
42210			if r.TryDecodeAsNil() {
42211				x.NodePort = 0
42212			} else {
42213				yyv11 := &x.NodePort
42214				yym12 := z.DecBinary()
42215				_ = yym12
42216				if false {
42217				} else {
42218					*((*int32)(yyv11)) = int32(r.DecodeInt(32))
42219				}
42220			}
42221		default:
42222			z.DecStructFieldNotFound(-1, yys3)
42223		} // end switch yys3
42224	} // end for yyj3
42225	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
42226}
42227
42228func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
42229	var h codecSelfer1234
42230	z, r := codec1978.GenHelperDecoder(d)
42231	_, _, _ = h, z, r
42232	var yyj13 int
42233	var yyb13 bool
42234	var yyhl13 bool = l >= 0
42235	yyj13++
42236	if yyhl13 {
42237		yyb13 = yyj13 > l
42238	} else {
42239		yyb13 = r.CheckBreak()
42240	}
42241	if yyb13 {
42242		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
42243		return
42244	}
42245	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
42246	if r.TryDecodeAsNil() {
42247		x.Name = ""
42248	} else {
42249		yyv14 := &x.Name
42250		yym15 := z.DecBinary()
42251		_ = yym15
42252		if false {
42253		} else {
42254			*((*string)(yyv14)) = r.DecodeString()
42255		}
42256	}
42257	yyj13++
42258	if yyhl13 {
42259		yyb13 = yyj13 > l
42260	} else {
42261		yyb13 = r.CheckBreak()
42262	}
42263	if yyb13 {
42264		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
42265		return
42266	}
42267	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
42268	if r.TryDecodeAsNil() {
42269		x.Protocol = ""
42270	} else {
42271		yyv16 := &x.Protocol
42272		yyv16.CodecDecodeSelf(d)
42273	}
42274	yyj13++
42275	if yyhl13 {
42276		yyb13 = yyj13 > l
42277	} else {
42278		yyb13 = r.CheckBreak()
42279	}
42280	if yyb13 {
42281		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
42282		return
42283	}
42284	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
42285	if r.TryDecodeAsNil() {
42286		x.Port = 0
42287	} else {
42288		yyv17 := &x.Port
42289		yym18 := z.DecBinary()
42290		_ = yym18
42291		if false {
42292		} else {
42293			*((*int32)(yyv17)) = int32(r.DecodeInt(32))
42294		}
42295	}
42296	yyj13++
42297	if yyhl13 {
42298		yyb13 = yyj13 > l
42299	} else {
42300		yyb13 = r.CheckBreak()
42301	}
42302	if yyb13 {
42303		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
42304		return
42305	}
42306	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
42307	if r.TryDecodeAsNil() {
42308		x.TargetPort = pkg4_intstr.IntOrString{}
42309	} else {
42310		yyv19 := &x.TargetPort
42311		yym20 := z.DecBinary()
42312		_ = yym20
42313		if false {
42314		} else if z.HasExtensions() && z.DecExt(yyv19) {
42315		} else if !yym20 && z.IsJSONHandle() {
42316			z.DecJSONUnmarshal(yyv19)
42317		} else {
42318			z.DecFallback(yyv19, false)
42319		}
42320	}
42321	yyj13++
42322	if yyhl13 {
42323		yyb13 = yyj13 > l
42324	} else {
42325		yyb13 = r.CheckBreak()
42326	}
42327	if yyb13 {
42328		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
42329		return
42330	}
42331	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
42332	if r.TryDecodeAsNil() {
42333		x.NodePort = 0
42334	} else {
42335		yyv21 := &x.NodePort
42336		yym22 := z.DecBinary()
42337		_ = yym22
42338		if false {
42339		} else {
42340			*((*int32)(yyv21)) = int32(r.DecodeInt(32))
42341		}
42342	}
42343	for {
42344		yyj13++
42345		if yyhl13 {
42346			yyb13 = yyj13 > l
42347		} else {
42348			yyb13 = r.CheckBreak()
42349		}
42350		if yyb13 {
42351			break
42352		}
42353		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
42354		z.DecStructFieldNotFound(yyj13-1, "")
42355	}
42356	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
42357}
42358
42359func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) {
42360	var h codecSelfer1234
42361	z, r := codec1978.GenHelperEncoder(e)
42362	_, _, _ = h, z, r
42363	if x == nil {
42364		r.EncodeNil()
42365	} else {
42366		yym1 := z.EncBinary()
42367		_ = yym1
42368		if false {
42369		} else if z.HasExtensions() && z.EncExt(x) {
42370		} else {
42371			yysep2 := !z.EncBinary()
42372			yy2arr2 := z.EncBasicHandle().StructToArray
42373			var yyq2 [5]bool
42374			_, _, _ = yysep2, yyq2, yy2arr2
42375			const yyr2 bool = false
42376			yyq2[0] = x.Kind != ""
42377			yyq2[1] = x.APIVersion != ""
42378			yyq2[2] = true
42379			yyq2[3] = true
42380			yyq2[4] = true
42381			var yynn2 int
42382			if yyr2 || yy2arr2 {
42383				r.EncodeArrayStart(5)
42384			} else {
42385				yynn2 = 0
42386				for _, b := range yyq2 {
42387					if b {
42388						yynn2++
42389					}
42390				}
42391				r.EncodeMapStart(yynn2)
42392				yynn2 = 0
42393			}
42394			if yyr2 || yy2arr2 {
42395				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
42396				if yyq2[0] {
42397					yym4 := z.EncBinary()
42398					_ = yym4
42399					if false {
42400					} else {
42401						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
42402					}
42403				} else {
42404					r.EncodeString(codecSelferC_UTF81234, "")
42405				}
42406			} else {
42407				if yyq2[0] {
42408					z.EncSendContainerState(codecSelfer_containerMapKey1234)
42409					r.EncodeString(codecSelferC_UTF81234, string("kind"))
42410					z.EncSendContainerState(codecSelfer_containerMapValue1234)
42411					yym5 := z.EncBinary()
42412					_ = yym5
42413					if false {
42414					} else {
42415						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
42416					}
42417				}
42418			}
42419			if yyr2 || yy2arr2 {
42420				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
42421				if yyq2[1] {
42422					yym7 := z.EncBinary()
42423					_ = yym7
42424					if false {
42425					} else {
42426						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
42427					}
42428				} else {
42429					r.EncodeString(codecSelferC_UTF81234, "")
42430				}
42431			} else {
42432				if yyq2[1] {
42433					z.EncSendContainerState(codecSelfer_containerMapKey1234)
42434					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
42435					z.EncSendContainerState(codecSelfer_containerMapValue1234)
42436					yym8 := z.EncBinary()
42437					_ = yym8
42438					if false {
42439					} else {
42440						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
42441					}
42442				}
42443			}
42444			if yyr2 || yy2arr2 {
42445				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
42446				if yyq2[2] {
42447					yy10 := &x.ObjectMeta
42448					yym11 := z.EncBinary()
42449					_ = yym11
42450					if false {
42451					} else if z.HasExtensions() && z.EncExt(yy10) {
42452					} else {
42453						z.EncFallback(yy10)
42454					}
42455				} else {
42456					r.EncodeNil()
42457				}
42458			} else {
42459				if yyq2[2] {
42460					z.EncSendContainerState(codecSelfer_containerMapKey1234)
42461					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
42462					z.EncSendContainerState(codecSelfer_containerMapValue1234)
42463					yy12 := &x.ObjectMeta
42464					yym13 := z.EncBinary()
42465					_ = yym13
42466					if false {
42467					} else if z.HasExtensions() && z.EncExt(yy12) {
42468					} else {
42469						z.EncFallback(yy12)
42470					}
42471				}
42472			}
42473			if yyr2 || yy2arr2 {
42474				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
42475				if yyq2[3] {
42476					yy15 := &x.Spec
42477					yy15.CodecEncodeSelf(e)
42478				} else {
42479					r.EncodeNil()
42480				}
42481			} else {
42482				if yyq2[3] {
42483					z.EncSendContainerState(codecSelfer_containerMapKey1234)
42484					r.EncodeString(codecSelferC_UTF81234, string("spec"))
42485					z.EncSendContainerState(codecSelfer_containerMapValue1234)
42486					yy17 := &x.Spec
42487					yy17.CodecEncodeSelf(e)
42488				}
42489			}
42490			if yyr2 || yy2arr2 {
42491				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
42492				if yyq2[4] {
42493					yy20 := &x.Status
42494					yy20.CodecEncodeSelf(e)
42495				} else {
42496					r.EncodeNil()
42497				}
42498			} else {
42499				if yyq2[4] {
42500					z.EncSendContainerState(codecSelfer_containerMapKey1234)
42501					r.EncodeString(codecSelferC_UTF81234, string("status"))
42502					z.EncSendContainerState(codecSelfer_containerMapValue1234)
42503					yy22 := &x.Status
42504					yy22.CodecEncodeSelf(e)
42505				}
42506			}
42507			if yyr2 || yy2arr2 {
42508				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
42509			} else {
42510				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
42511			}
42512		}
42513	}
42514}
42515
42516func (x *Service) CodecDecodeSelf(d *codec1978.Decoder) {
42517	var h codecSelfer1234
42518	z, r := codec1978.GenHelperDecoder(d)
42519	_, _, _ = h, z, r
42520	yym1 := z.DecBinary()
42521	_ = yym1
42522	if false {
42523	} else if z.HasExtensions() && z.DecExt(x) {
42524	} else {
42525		yyct2 := r.ContainerType()
42526		if yyct2 == codecSelferValueTypeMap1234 {
42527			yyl2 := r.ReadMapStart()
42528			if yyl2 == 0 {
42529				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
42530			} else {
42531				x.codecDecodeSelfFromMap(yyl2, d)
42532			}
42533		} else if yyct2 == codecSelferValueTypeArray1234 {
42534			yyl2 := r.ReadArrayStart()
42535			if yyl2 == 0 {
42536				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
42537			} else {
42538				x.codecDecodeSelfFromArray(yyl2, d)
42539			}
42540		} else {
42541			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
42542		}
42543	}
42544}
42545
42546func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
42547	var h codecSelfer1234
42548	z, r := codec1978.GenHelperDecoder(d)
42549	_, _, _ = h, z, r
42550	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
42551	_ = yys3Slc
42552	var yyhl3 bool = l >= 0
42553	for yyj3 := 0; ; yyj3++ {
42554		if yyhl3 {
42555			if yyj3 >= l {
42556				break
42557			}
42558		} else {
42559			if r.CheckBreak() {
42560				break
42561			}
42562		}
42563		z.DecSendContainerState(codecSelfer_containerMapKey1234)
42564		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
42565		yys3 := string(yys3Slc)
42566		z.DecSendContainerState(codecSelfer_containerMapValue1234)
42567		switch yys3 {
42568		case "kind":
42569			if r.TryDecodeAsNil() {
42570				x.Kind = ""
42571			} else {
42572				yyv4 := &x.Kind
42573				yym5 := z.DecBinary()
42574				_ = yym5
42575				if false {
42576				} else {
42577					*((*string)(yyv4)) = r.DecodeString()
42578				}
42579			}
42580		case "apiVersion":
42581			if r.TryDecodeAsNil() {
42582				x.APIVersion = ""
42583			} else {
42584				yyv6 := &x.APIVersion
42585				yym7 := z.DecBinary()
42586				_ = yym7
42587				if false {
42588				} else {
42589					*((*string)(yyv6)) = r.DecodeString()
42590				}
42591			}
42592		case "metadata":
42593			if r.TryDecodeAsNil() {
42594				x.ObjectMeta = pkg2_v1.ObjectMeta{}
42595			} else {
42596				yyv8 := &x.ObjectMeta
42597				yym9 := z.DecBinary()
42598				_ = yym9
42599				if false {
42600				} else if z.HasExtensions() && z.DecExt(yyv8) {
42601				} else {
42602					z.DecFallback(yyv8, false)
42603				}
42604			}
42605		case "spec":
42606			if r.TryDecodeAsNil() {
42607				x.Spec = ServiceSpec{}
42608			} else {
42609				yyv10 := &x.Spec
42610				yyv10.CodecDecodeSelf(d)
42611			}
42612		case "status":
42613			if r.TryDecodeAsNil() {
42614				x.Status = ServiceStatus{}
42615			} else {
42616				yyv11 := &x.Status
42617				yyv11.CodecDecodeSelf(d)
42618			}
42619		default:
42620			z.DecStructFieldNotFound(-1, yys3)
42621		} // end switch yys3
42622	} // end for yyj3
42623	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
42624}
42625
42626func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
42627	var h codecSelfer1234
42628	z, r := codec1978.GenHelperDecoder(d)
42629	_, _, _ = h, z, r
42630	var yyj12 int
42631	var yyb12 bool
42632	var yyhl12 bool = l >= 0
42633	yyj12++
42634	if yyhl12 {
42635		yyb12 = yyj12 > l
42636	} else {
42637		yyb12 = r.CheckBreak()
42638	}
42639	if yyb12 {
42640		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
42641		return
42642	}
42643	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
42644	if r.TryDecodeAsNil() {
42645		x.Kind = ""
42646	} else {
42647		yyv13 := &x.Kind
42648		yym14 := z.DecBinary()
42649		_ = yym14
42650		if false {
42651		} else {
42652			*((*string)(yyv13)) = r.DecodeString()
42653		}
42654	}
42655	yyj12++
42656	if yyhl12 {
42657		yyb12 = yyj12 > l
42658	} else {
42659		yyb12 = r.CheckBreak()
42660	}
42661	if yyb12 {
42662		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
42663		return
42664	}
42665	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
42666	if r.TryDecodeAsNil() {
42667		x.APIVersion = ""
42668	} else {
42669		yyv15 := &x.APIVersion
42670		yym16 := z.DecBinary()
42671		_ = yym16
42672		if false {
42673		} else {
42674			*((*string)(yyv15)) = r.DecodeString()
42675		}
42676	}
42677	yyj12++
42678	if yyhl12 {
42679		yyb12 = yyj12 > l
42680	} else {
42681		yyb12 = r.CheckBreak()
42682	}
42683	if yyb12 {
42684		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
42685		return
42686	}
42687	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
42688	if r.TryDecodeAsNil() {
42689		x.ObjectMeta = pkg2_v1.ObjectMeta{}
42690	} else {
42691		yyv17 := &x.ObjectMeta
42692		yym18 := z.DecBinary()
42693		_ = yym18
42694		if false {
42695		} else if z.HasExtensions() && z.DecExt(yyv17) {
42696		} else {
42697			z.DecFallback(yyv17, false)
42698		}
42699	}
42700	yyj12++
42701	if yyhl12 {
42702		yyb12 = yyj12 > l
42703	} else {
42704		yyb12 = r.CheckBreak()
42705	}
42706	if yyb12 {
42707		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
42708		return
42709	}
42710	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
42711	if r.TryDecodeAsNil() {
42712		x.Spec = ServiceSpec{}
42713	} else {
42714		yyv19 := &x.Spec
42715		yyv19.CodecDecodeSelf(d)
42716	}
42717	yyj12++
42718	if yyhl12 {
42719		yyb12 = yyj12 > l
42720	} else {
42721		yyb12 = r.CheckBreak()
42722	}
42723	if yyb12 {
42724		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
42725		return
42726	}
42727	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
42728	if r.TryDecodeAsNil() {
42729		x.Status = ServiceStatus{}
42730	} else {
42731		yyv20 := &x.Status
42732		yyv20.CodecDecodeSelf(d)
42733	}
42734	for {
42735		yyj12++
42736		if yyhl12 {
42737			yyb12 = yyj12 > l
42738		} else {
42739			yyb12 = r.CheckBreak()
42740		}
42741		if yyb12 {
42742			break
42743		}
42744		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
42745		z.DecStructFieldNotFound(yyj12-1, "")
42746	}
42747	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
42748}
42749
42750func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) {
42751	var h codecSelfer1234
42752	z, r := codec1978.GenHelperEncoder(e)
42753	_, _, _ = h, z, r
42754	if x == nil {
42755		r.EncodeNil()
42756	} else {
42757		yym1 := z.EncBinary()
42758		_ = yym1
42759		if false {
42760		} else if z.HasExtensions() && z.EncExt(x) {
42761		} else {
42762			yysep2 := !z.EncBinary()
42763			yy2arr2 := z.EncBasicHandle().StructToArray
42764			var yyq2 [4]bool
42765			_, _, _ = yysep2, yyq2, yy2arr2
42766			const yyr2 bool = false
42767			yyq2[0] = x.Kind != ""
42768			yyq2[1] = x.APIVersion != ""
42769			yyq2[2] = true
42770			var yynn2 int
42771			if yyr2 || yy2arr2 {
42772				r.EncodeArrayStart(4)
42773			} else {
42774				yynn2 = 1
42775				for _, b := range yyq2 {
42776					if b {
42777						yynn2++
42778					}
42779				}
42780				r.EncodeMapStart(yynn2)
42781				yynn2 = 0
42782			}
42783			if yyr2 || yy2arr2 {
42784				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
42785				if yyq2[0] {
42786					yym4 := z.EncBinary()
42787					_ = yym4
42788					if false {
42789					} else {
42790						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
42791					}
42792				} else {
42793					r.EncodeString(codecSelferC_UTF81234, "")
42794				}
42795			} else {
42796				if yyq2[0] {
42797					z.EncSendContainerState(codecSelfer_containerMapKey1234)
42798					r.EncodeString(codecSelferC_UTF81234, string("kind"))
42799					z.EncSendContainerState(codecSelfer_containerMapValue1234)
42800					yym5 := z.EncBinary()
42801					_ = yym5
42802					if false {
42803					} else {
42804						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
42805					}
42806				}
42807			}
42808			if yyr2 || yy2arr2 {
42809				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
42810				if yyq2[1] {
42811					yym7 := z.EncBinary()
42812					_ = yym7
42813					if false {
42814					} else {
42815						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
42816					}
42817				} else {
42818					r.EncodeString(codecSelferC_UTF81234, "")
42819				}
42820			} else {
42821				if yyq2[1] {
42822					z.EncSendContainerState(codecSelfer_containerMapKey1234)
42823					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
42824					z.EncSendContainerState(codecSelfer_containerMapValue1234)
42825					yym8 := z.EncBinary()
42826					_ = yym8
42827					if false {
42828					} else {
42829						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
42830					}
42831				}
42832			}
42833			if yyr2 || yy2arr2 {
42834				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
42835				if yyq2[2] {
42836					yy10 := &x.ListMeta
42837					yym11 := z.EncBinary()
42838					_ = yym11
42839					if false {
42840					} else if z.HasExtensions() && z.EncExt(yy10) {
42841					} else {
42842						z.EncFallback(yy10)
42843					}
42844				} else {
42845					r.EncodeNil()
42846				}
42847			} else {
42848				if yyq2[2] {
42849					z.EncSendContainerState(codecSelfer_containerMapKey1234)
42850					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
42851					z.EncSendContainerState(codecSelfer_containerMapValue1234)
42852					yy12 := &x.ListMeta
42853					yym13 := z.EncBinary()
42854					_ = yym13
42855					if false {
42856					} else if z.HasExtensions() && z.EncExt(yy12) {
42857					} else {
42858						z.EncFallback(yy12)
42859					}
42860				}
42861			}
42862			if yyr2 || yy2arr2 {
42863				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
42864				if x.Items == nil {
42865					r.EncodeNil()
42866				} else {
42867					yym15 := z.EncBinary()
42868					_ = yym15
42869					if false {
42870					} else {
42871						h.encSliceService(([]Service)(x.Items), e)
42872					}
42873				}
42874			} else {
42875				z.EncSendContainerState(codecSelfer_containerMapKey1234)
42876				r.EncodeString(codecSelferC_UTF81234, string("items"))
42877				z.EncSendContainerState(codecSelfer_containerMapValue1234)
42878				if x.Items == nil {
42879					r.EncodeNil()
42880				} else {
42881					yym16 := z.EncBinary()
42882					_ = yym16
42883					if false {
42884					} else {
42885						h.encSliceService(([]Service)(x.Items), e)
42886					}
42887				}
42888			}
42889			if yyr2 || yy2arr2 {
42890				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
42891			} else {
42892				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
42893			}
42894		}
42895	}
42896}
42897
42898func (x *ServiceList) CodecDecodeSelf(d *codec1978.Decoder) {
42899	var h codecSelfer1234
42900	z, r := codec1978.GenHelperDecoder(d)
42901	_, _, _ = h, z, r
42902	yym1 := z.DecBinary()
42903	_ = yym1
42904	if false {
42905	} else if z.HasExtensions() && z.DecExt(x) {
42906	} else {
42907		yyct2 := r.ContainerType()
42908		if yyct2 == codecSelferValueTypeMap1234 {
42909			yyl2 := r.ReadMapStart()
42910			if yyl2 == 0 {
42911				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
42912			} else {
42913				x.codecDecodeSelfFromMap(yyl2, d)
42914			}
42915		} else if yyct2 == codecSelferValueTypeArray1234 {
42916			yyl2 := r.ReadArrayStart()
42917			if yyl2 == 0 {
42918				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
42919			} else {
42920				x.codecDecodeSelfFromArray(yyl2, d)
42921			}
42922		} else {
42923			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
42924		}
42925	}
42926}
42927
42928func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
42929	var h codecSelfer1234
42930	z, r := codec1978.GenHelperDecoder(d)
42931	_, _, _ = h, z, r
42932	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
42933	_ = yys3Slc
42934	var yyhl3 bool = l >= 0
42935	for yyj3 := 0; ; yyj3++ {
42936		if yyhl3 {
42937			if yyj3 >= l {
42938				break
42939			}
42940		} else {
42941			if r.CheckBreak() {
42942				break
42943			}
42944		}
42945		z.DecSendContainerState(codecSelfer_containerMapKey1234)
42946		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
42947		yys3 := string(yys3Slc)
42948		z.DecSendContainerState(codecSelfer_containerMapValue1234)
42949		switch yys3 {
42950		case "kind":
42951			if r.TryDecodeAsNil() {
42952				x.Kind = ""
42953			} else {
42954				yyv4 := &x.Kind
42955				yym5 := z.DecBinary()
42956				_ = yym5
42957				if false {
42958				} else {
42959					*((*string)(yyv4)) = r.DecodeString()
42960				}
42961			}
42962		case "apiVersion":
42963			if r.TryDecodeAsNil() {
42964				x.APIVersion = ""
42965			} else {
42966				yyv6 := &x.APIVersion
42967				yym7 := z.DecBinary()
42968				_ = yym7
42969				if false {
42970				} else {
42971					*((*string)(yyv6)) = r.DecodeString()
42972				}
42973			}
42974		case "metadata":
42975			if r.TryDecodeAsNil() {
42976				x.ListMeta = pkg2_v1.ListMeta{}
42977			} else {
42978				yyv8 := &x.ListMeta
42979				yym9 := z.DecBinary()
42980				_ = yym9
42981				if false {
42982				} else if z.HasExtensions() && z.DecExt(yyv8) {
42983				} else {
42984					z.DecFallback(yyv8, false)
42985				}
42986			}
42987		case "items":
42988			if r.TryDecodeAsNil() {
42989				x.Items = nil
42990			} else {
42991				yyv10 := &x.Items
42992				yym11 := z.DecBinary()
42993				_ = yym11
42994				if false {
42995				} else {
42996					h.decSliceService((*[]Service)(yyv10), d)
42997				}
42998			}
42999		default:
43000			z.DecStructFieldNotFound(-1, yys3)
43001		} // end switch yys3
43002	} // end for yyj3
43003	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
43004}
43005
43006func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
43007	var h codecSelfer1234
43008	z, r := codec1978.GenHelperDecoder(d)
43009	_, _, _ = h, z, r
43010	var yyj12 int
43011	var yyb12 bool
43012	var yyhl12 bool = l >= 0
43013	yyj12++
43014	if yyhl12 {
43015		yyb12 = yyj12 > l
43016	} else {
43017		yyb12 = r.CheckBreak()
43018	}
43019	if yyb12 {
43020		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
43021		return
43022	}
43023	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
43024	if r.TryDecodeAsNil() {
43025		x.Kind = ""
43026	} else {
43027		yyv13 := &x.Kind
43028		yym14 := z.DecBinary()
43029		_ = yym14
43030		if false {
43031		} else {
43032			*((*string)(yyv13)) = r.DecodeString()
43033		}
43034	}
43035	yyj12++
43036	if yyhl12 {
43037		yyb12 = yyj12 > l
43038	} else {
43039		yyb12 = r.CheckBreak()
43040	}
43041	if yyb12 {
43042		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
43043		return
43044	}
43045	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
43046	if r.TryDecodeAsNil() {
43047		x.APIVersion = ""
43048	} else {
43049		yyv15 := &x.APIVersion
43050		yym16 := z.DecBinary()
43051		_ = yym16
43052		if false {
43053		} else {
43054			*((*string)(yyv15)) = r.DecodeString()
43055		}
43056	}
43057	yyj12++
43058	if yyhl12 {
43059		yyb12 = yyj12 > l
43060	} else {
43061		yyb12 = r.CheckBreak()
43062	}
43063	if yyb12 {
43064		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
43065		return
43066	}
43067	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
43068	if r.TryDecodeAsNil() {
43069		x.ListMeta = pkg2_v1.ListMeta{}
43070	} else {
43071		yyv17 := &x.ListMeta
43072		yym18 := z.DecBinary()
43073		_ = yym18
43074		if false {
43075		} else if z.HasExtensions() && z.DecExt(yyv17) {
43076		} else {
43077			z.DecFallback(yyv17, false)
43078		}
43079	}
43080	yyj12++
43081	if yyhl12 {
43082		yyb12 = yyj12 > l
43083	} else {
43084		yyb12 = r.CheckBreak()
43085	}
43086	if yyb12 {
43087		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
43088		return
43089	}
43090	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
43091	if r.TryDecodeAsNil() {
43092		x.Items = nil
43093	} else {
43094		yyv19 := &x.Items
43095		yym20 := z.DecBinary()
43096		_ = yym20
43097		if false {
43098		} else {
43099			h.decSliceService((*[]Service)(yyv19), d)
43100		}
43101	}
43102	for {
43103		yyj12++
43104		if yyhl12 {
43105			yyb12 = yyj12 > l
43106		} else {
43107			yyb12 = r.CheckBreak()
43108		}
43109		if yyb12 {
43110			break
43111		}
43112		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
43113		z.DecStructFieldNotFound(yyj12-1, "")
43114	}
43115	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
43116}
43117
43118func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) {
43119	var h codecSelfer1234
43120	z, r := codec1978.GenHelperEncoder(e)
43121	_, _, _ = h, z, r
43122	if x == nil {
43123		r.EncodeNil()
43124	} else {
43125		yym1 := z.EncBinary()
43126		_ = yym1
43127		if false {
43128		} else if z.HasExtensions() && z.EncExt(x) {
43129		} else {
43130			yysep2 := !z.EncBinary()
43131			yy2arr2 := z.EncBasicHandle().StructToArray
43132			var yyq2 [6]bool
43133			_, _, _ = yysep2, yyq2, yy2arr2
43134			const yyr2 bool = false
43135			yyq2[0] = x.Kind != ""
43136			yyq2[1] = x.APIVersion != ""
43137			yyq2[2] = true
43138			yyq2[3] = len(x.Secrets) != 0
43139			yyq2[4] = len(x.ImagePullSecrets) != 0
43140			yyq2[5] = x.AutomountServiceAccountToken != nil
43141			var yynn2 int
43142			if yyr2 || yy2arr2 {
43143				r.EncodeArrayStart(6)
43144			} else {
43145				yynn2 = 0
43146				for _, b := range yyq2 {
43147					if b {
43148						yynn2++
43149					}
43150				}
43151				r.EncodeMapStart(yynn2)
43152				yynn2 = 0
43153			}
43154			if yyr2 || yy2arr2 {
43155				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
43156				if yyq2[0] {
43157					yym4 := z.EncBinary()
43158					_ = yym4
43159					if false {
43160					} else {
43161						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
43162					}
43163				} else {
43164					r.EncodeString(codecSelferC_UTF81234, "")
43165				}
43166			} else {
43167				if yyq2[0] {
43168					z.EncSendContainerState(codecSelfer_containerMapKey1234)
43169					r.EncodeString(codecSelferC_UTF81234, string("kind"))
43170					z.EncSendContainerState(codecSelfer_containerMapValue1234)
43171					yym5 := z.EncBinary()
43172					_ = yym5
43173					if false {
43174					} else {
43175						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
43176					}
43177				}
43178			}
43179			if yyr2 || yy2arr2 {
43180				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
43181				if yyq2[1] {
43182					yym7 := z.EncBinary()
43183					_ = yym7
43184					if false {
43185					} else {
43186						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
43187					}
43188				} else {
43189					r.EncodeString(codecSelferC_UTF81234, "")
43190				}
43191			} else {
43192				if yyq2[1] {
43193					z.EncSendContainerState(codecSelfer_containerMapKey1234)
43194					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
43195					z.EncSendContainerState(codecSelfer_containerMapValue1234)
43196					yym8 := z.EncBinary()
43197					_ = yym8
43198					if false {
43199					} else {
43200						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
43201					}
43202				}
43203			}
43204			if yyr2 || yy2arr2 {
43205				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
43206				if yyq2[2] {
43207					yy10 := &x.ObjectMeta
43208					yym11 := z.EncBinary()
43209					_ = yym11
43210					if false {
43211					} else if z.HasExtensions() && z.EncExt(yy10) {
43212					} else {
43213						z.EncFallback(yy10)
43214					}
43215				} else {
43216					r.EncodeNil()
43217				}
43218			} else {
43219				if yyq2[2] {
43220					z.EncSendContainerState(codecSelfer_containerMapKey1234)
43221					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
43222					z.EncSendContainerState(codecSelfer_containerMapValue1234)
43223					yy12 := &x.ObjectMeta
43224					yym13 := z.EncBinary()
43225					_ = yym13
43226					if false {
43227					} else if z.HasExtensions() && z.EncExt(yy12) {
43228					} else {
43229						z.EncFallback(yy12)
43230					}
43231				}
43232			}
43233			if yyr2 || yy2arr2 {
43234				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
43235				if yyq2[3] {
43236					if x.Secrets == nil {
43237						r.EncodeNil()
43238					} else {
43239						yym15 := z.EncBinary()
43240						_ = yym15
43241						if false {
43242						} else {
43243							h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e)
43244						}
43245					}
43246				} else {
43247					r.EncodeNil()
43248				}
43249			} else {
43250				if yyq2[3] {
43251					z.EncSendContainerState(codecSelfer_containerMapKey1234)
43252					r.EncodeString(codecSelferC_UTF81234, string("secrets"))
43253					z.EncSendContainerState(codecSelfer_containerMapValue1234)
43254					if x.Secrets == nil {
43255						r.EncodeNil()
43256					} else {
43257						yym16 := z.EncBinary()
43258						_ = yym16
43259						if false {
43260						} else {
43261							h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e)
43262						}
43263					}
43264				}
43265			}
43266			if yyr2 || yy2arr2 {
43267				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
43268				if yyq2[4] {
43269					if x.ImagePullSecrets == nil {
43270						r.EncodeNil()
43271					} else {
43272						yym18 := z.EncBinary()
43273						_ = yym18
43274						if false {
43275						} else {
43276							h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
43277						}
43278					}
43279				} else {
43280					r.EncodeNil()
43281				}
43282			} else {
43283				if yyq2[4] {
43284					z.EncSendContainerState(codecSelfer_containerMapKey1234)
43285					r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
43286					z.EncSendContainerState(codecSelfer_containerMapValue1234)
43287					if x.ImagePullSecrets == nil {
43288						r.EncodeNil()
43289					} else {
43290						yym19 := z.EncBinary()
43291						_ = yym19
43292						if false {
43293						} else {
43294							h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
43295						}
43296					}
43297				}
43298			}
43299			if yyr2 || yy2arr2 {
43300				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
43301				if yyq2[5] {
43302					if x.AutomountServiceAccountToken == nil {
43303						r.EncodeNil()
43304					} else {
43305						yy21 := *x.AutomountServiceAccountToken
43306						yym22 := z.EncBinary()
43307						_ = yym22
43308						if false {
43309						} else {
43310							r.EncodeBool(bool(yy21))
43311						}
43312					}
43313				} else {
43314					r.EncodeNil()
43315				}
43316			} else {
43317				if yyq2[5] {
43318					z.EncSendContainerState(codecSelfer_containerMapKey1234)
43319					r.EncodeString(codecSelferC_UTF81234, string("automountServiceAccountToken"))
43320					z.EncSendContainerState(codecSelfer_containerMapValue1234)
43321					if x.AutomountServiceAccountToken == nil {
43322						r.EncodeNil()
43323					} else {
43324						yy23 := *x.AutomountServiceAccountToken
43325						yym24 := z.EncBinary()
43326						_ = yym24
43327						if false {
43328						} else {
43329							r.EncodeBool(bool(yy23))
43330						}
43331					}
43332				}
43333			}
43334			if yyr2 || yy2arr2 {
43335				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
43336			} else {
43337				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
43338			}
43339		}
43340	}
43341}
43342
43343func (x *ServiceAccount) CodecDecodeSelf(d *codec1978.Decoder) {
43344	var h codecSelfer1234
43345	z, r := codec1978.GenHelperDecoder(d)
43346	_, _, _ = h, z, r
43347	yym1 := z.DecBinary()
43348	_ = yym1
43349	if false {
43350	} else if z.HasExtensions() && z.DecExt(x) {
43351	} else {
43352		yyct2 := r.ContainerType()
43353		if yyct2 == codecSelferValueTypeMap1234 {
43354			yyl2 := r.ReadMapStart()
43355			if yyl2 == 0 {
43356				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
43357			} else {
43358				x.codecDecodeSelfFromMap(yyl2, d)
43359			}
43360		} else if yyct2 == codecSelferValueTypeArray1234 {
43361			yyl2 := r.ReadArrayStart()
43362			if yyl2 == 0 {
43363				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
43364			} else {
43365				x.codecDecodeSelfFromArray(yyl2, d)
43366			}
43367		} else {
43368			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
43369		}
43370	}
43371}
43372
43373func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
43374	var h codecSelfer1234
43375	z, r := codec1978.GenHelperDecoder(d)
43376	_, _, _ = h, z, r
43377	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
43378	_ = yys3Slc
43379	var yyhl3 bool = l >= 0
43380	for yyj3 := 0; ; yyj3++ {
43381		if yyhl3 {
43382			if yyj3 >= l {
43383				break
43384			}
43385		} else {
43386			if r.CheckBreak() {
43387				break
43388			}
43389		}
43390		z.DecSendContainerState(codecSelfer_containerMapKey1234)
43391		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
43392		yys3 := string(yys3Slc)
43393		z.DecSendContainerState(codecSelfer_containerMapValue1234)
43394		switch yys3 {
43395		case "kind":
43396			if r.TryDecodeAsNil() {
43397				x.Kind = ""
43398			} else {
43399				yyv4 := &x.Kind
43400				yym5 := z.DecBinary()
43401				_ = yym5
43402				if false {
43403				} else {
43404					*((*string)(yyv4)) = r.DecodeString()
43405				}
43406			}
43407		case "apiVersion":
43408			if r.TryDecodeAsNil() {
43409				x.APIVersion = ""
43410			} else {
43411				yyv6 := &x.APIVersion
43412				yym7 := z.DecBinary()
43413				_ = yym7
43414				if false {
43415				} else {
43416					*((*string)(yyv6)) = r.DecodeString()
43417				}
43418			}
43419		case "metadata":
43420			if r.TryDecodeAsNil() {
43421				x.ObjectMeta = pkg2_v1.ObjectMeta{}
43422			} else {
43423				yyv8 := &x.ObjectMeta
43424				yym9 := z.DecBinary()
43425				_ = yym9
43426				if false {
43427				} else if z.HasExtensions() && z.DecExt(yyv8) {
43428				} else {
43429					z.DecFallback(yyv8, false)
43430				}
43431			}
43432		case "secrets":
43433			if r.TryDecodeAsNil() {
43434				x.Secrets = nil
43435			} else {
43436				yyv10 := &x.Secrets
43437				yym11 := z.DecBinary()
43438				_ = yym11
43439				if false {
43440				} else {
43441					h.decSliceObjectReference((*[]ObjectReference)(yyv10), d)
43442				}
43443			}
43444		case "imagePullSecrets":
43445			if r.TryDecodeAsNil() {
43446				x.ImagePullSecrets = nil
43447			} else {
43448				yyv12 := &x.ImagePullSecrets
43449				yym13 := z.DecBinary()
43450				_ = yym13
43451				if false {
43452				} else {
43453					h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv12), d)
43454				}
43455			}
43456		case "automountServiceAccountToken":
43457			if r.TryDecodeAsNil() {
43458				if x.AutomountServiceAccountToken != nil {
43459					x.AutomountServiceAccountToken = nil
43460				}
43461			} else {
43462				if x.AutomountServiceAccountToken == nil {
43463					x.AutomountServiceAccountToken = new(bool)
43464				}
43465				yym15 := z.DecBinary()
43466				_ = yym15
43467				if false {
43468				} else {
43469					*((*bool)(x.AutomountServiceAccountToken)) = r.DecodeBool()
43470				}
43471			}
43472		default:
43473			z.DecStructFieldNotFound(-1, yys3)
43474		} // end switch yys3
43475	} // end for yyj3
43476	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
43477}
43478
43479func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
43480	var h codecSelfer1234
43481	z, r := codec1978.GenHelperDecoder(d)
43482	_, _, _ = h, z, r
43483	var yyj16 int
43484	var yyb16 bool
43485	var yyhl16 bool = l >= 0
43486	yyj16++
43487	if yyhl16 {
43488		yyb16 = yyj16 > l
43489	} else {
43490		yyb16 = r.CheckBreak()
43491	}
43492	if yyb16 {
43493		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
43494		return
43495	}
43496	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
43497	if r.TryDecodeAsNil() {
43498		x.Kind = ""
43499	} else {
43500		yyv17 := &x.Kind
43501		yym18 := z.DecBinary()
43502		_ = yym18
43503		if false {
43504		} else {
43505			*((*string)(yyv17)) = r.DecodeString()
43506		}
43507	}
43508	yyj16++
43509	if yyhl16 {
43510		yyb16 = yyj16 > l
43511	} else {
43512		yyb16 = r.CheckBreak()
43513	}
43514	if yyb16 {
43515		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
43516		return
43517	}
43518	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
43519	if r.TryDecodeAsNil() {
43520		x.APIVersion = ""
43521	} else {
43522		yyv19 := &x.APIVersion
43523		yym20 := z.DecBinary()
43524		_ = yym20
43525		if false {
43526		} else {
43527			*((*string)(yyv19)) = r.DecodeString()
43528		}
43529	}
43530	yyj16++
43531	if yyhl16 {
43532		yyb16 = yyj16 > l
43533	} else {
43534		yyb16 = r.CheckBreak()
43535	}
43536	if yyb16 {
43537		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
43538		return
43539	}
43540	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
43541	if r.TryDecodeAsNil() {
43542		x.ObjectMeta = pkg2_v1.ObjectMeta{}
43543	} else {
43544		yyv21 := &x.ObjectMeta
43545		yym22 := z.DecBinary()
43546		_ = yym22
43547		if false {
43548		} else if z.HasExtensions() && z.DecExt(yyv21) {
43549		} else {
43550			z.DecFallback(yyv21, false)
43551		}
43552	}
43553	yyj16++
43554	if yyhl16 {
43555		yyb16 = yyj16 > l
43556	} else {
43557		yyb16 = r.CheckBreak()
43558	}
43559	if yyb16 {
43560		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
43561		return
43562	}
43563	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
43564	if r.TryDecodeAsNil() {
43565		x.Secrets = nil
43566	} else {
43567		yyv23 := &x.Secrets
43568		yym24 := z.DecBinary()
43569		_ = yym24
43570		if false {
43571		} else {
43572			h.decSliceObjectReference((*[]ObjectReference)(yyv23), d)
43573		}
43574	}
43575	yyj16++
43576	if yyhl16 {
43577		yyb16 = yyj16 > l
43578	} else {
43579		yyb16 = r.CheckBreak()
43580	}
43581	if yyb16 {
43582		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
43583		return
43584	}
43585	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
43586	if r.TryDecodeAsNil() {
43587		x.ImagePullSecrets = nil
43588	} else {
43589		yyv25 := &x.ImagePullSecrets
43590		yym26 := z.DecBinary()
43591		_ = yym26
43592		if false {
43593		} else {
43594			h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv25), d)
43595		}
43596	}
43597	yyj16++
43598	if yyhl16 {
43599		yyb16 = yyj16 > l
43600	} else {
43601		yyb16 = r.CheckBreak()
43602	}
43603	if yyb16 {
43604		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
43605		return
43606	}
43607	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
43608	if r.TryDecodeAsNil() {
43609		if x.AutomountServiceAccountToken != nil {
43610			x.AutomountServiceAccountToken = nil
43611		}
43612	} else {
43613		if x.AutomountServiceAccountToken == nil {
43614			x.AutomountServiceAccountToken = new(bool)
43615		}
43616		yym28 := z.DecBinary()
43617		_ = yym28
43618		if false {
43619		} else {
43620			*((*bool)(x.AutomountServiceAccountToken)) = r.DecodeBool()
43621		}
43622	}
43623	for {
43624		yyj16++
43625		if yyhl16 {
43626			yyb16 = yyj16 > l
43627		} else {
43628			yyb16 = r.CheckBreak()
43629		}
43630		if yyb16 {
43631			break
43632		}
43633		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
43634		z.DecStructFieldNotFound(yyj16-1, "")
43635	}
43636	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
43637}
43638
43639func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) {
43640	var h codecSelfer1234
43641	z, r := codec1978.GenHelperEncoder(e)
43642	_, _, _ = h, z, r
43643	if x == nil {
43644		r.EncodeNil()
43645	} else {
43646		yym1 := z.EncBinary()
43647		_ = yym1
43648		if false {
43649		} else if z.HasExtensions() && z.EncExt(x) {
43650		} else {
43651			yysep2 := !z.EncBinary()
43652			yy2arr2 := z.EncBasicHandle().StructToArray
43653			var yyq2 [4]bool
43654			_, _, _ = yysep2, yyq2, yy2arr2
43655			const yyr2 bool = false
43656			yyq2[0] = x.Kind != ""
43657			yyq2[1] = x.APIVersion != ""
43658			yyq2[2] = true
43659			var yynn2 int
43660			if yyr2 || yy2arr2 {
43661				r.EncodeArrayStart(4)
43662			} else {
43663				yynn2 = 1
43664				for _, b := range yyq2 {
43665					if b {
43666						yynn2++
43667					}
43668				}
43669				r.EncodeMapStart(yynn2)
43670				yynn2 = 0
43671			}
43672			if yyr2 || yy2arr2 {
43673				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
43674				if yyq2[0] {
43675					yym4 := z.EncBinary()
43676					_ = yym4
43677					if false {
43678					} else {
43679						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
43680					}
43681				} else {
43682					r.EncodeString(codecSelferC_UTF81234, "")
43683				}
43684			} else {
43685				if yyq2[0] {
43686					z.EncSendContainerState(codecSelfer_containerMapKey1234)
43687					r.EncodeString(codecSelferC_UTF81234, string("kind"))
43688					z.EncSendContainerState(codecSelfer_containerMapValue1234)
43689					yym5 := z.EncBinary()
43690					_ = yym5
43691					if false {
43692					} else {
43693						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
43694					}
43695				}
43696			}
43697			if yyr2 || yy2arr2 {
43698				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
43699				if yyq2[1] {
43700					yym7 := z.EncBinary()
43701					_ = yym7
43702					if false {
43703					} else {
43704						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
43705					}
43706				} else {
43707					r.EncodeString(codecSelferC_UTF81234, "")
43708				}
43709			} else {
43710				if yyq2[1] {
43711					z.EncSendContainerState(codecSelfer_containerMapKey1234)
43712					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
43713					z.EncSendContainerState(codecSelfer_containerMapValue1234)
43714					yym8 := z.EncBinary()
43715					_ = yym8
43716					if false {
43717					} else {
43718						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
43719					}
43720				}
43721			}
43722			if yyr2 || yy2arr2 {
43723				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
43724				if yyq2[2] {
43725					yy10 := &x.ListMeta
43726					yym11 := z.EncBinary()
43727					_ = yym11
43728					if false {
43729					} else if z.HasExtensions() && z.EncExt(yy10) {
43730					} else {
43731						z.EncFallback(yy10)
43732					}
43733				} else {
43734					r.EncodeNil()
43735				}
43736			} else {
43737				if yyq2[2] {
43738					z.EncSendContainerState(codecSelfer_containerMapKey1234)
43739					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
43740					z.EncSendContainerState(codecSelfer_containerMapValue1234)
43741					yy12 := &x.ListMeta
43742					yym13 := z.EncBinary()
43743					_ = yym13
43744					if false {
43745					} else if z.HasExtensions() && z.EncExt(yy12) {
43746					} else {
43747						z.EncFallback(yy12)
43748					}
43749				}
43750			}
43751			if yyr2 || yy2arr2 {
43752				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
43753				if x.Items == nil {
43754					r.EncodeNil()
43755				} else {
43756					yym15 := z.EncBinary()
43757					_ = yym15
43758					if false {
43759					} else {
43760						h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e)
43761					}
43762				}
43763			} else {
43764				z.EncSendContainerState(codecSelfer_containerMapKey1234)
43765				r.EncodeString(codecSelferC_UTF81234, string("items"))
43766				z.EncSendContainerState(codecSelfer_containerMapValue1234)
43767				if x.Items == nil {
43768					r.EncodeNil()
43769				} else {
43770					yym16 := z.EncBinary()
43771					_ = yym16
43772					if false {
43773					} else {
43774						h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e)
43775					}
43776				}
43777			}
43778			if yyr2 || yy2arr2 {
43779				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
43780			} else {
43781				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
43782			}
43783		}
43784	}
43785}
43786
43787func (x *ServiceAccountList) CodecDecodeSelf(d *codec1978.Decoder) {
43788	var h codecSelfer1234
43789	z, r := codec1978.GenHelperDecoder(d)
43790	_, _, _ = h, z, r
43791	yym1 := z.DecBinary()
43792	_ = yym1
43793	if false {
43794	} else if z.HasExtensions() && z.DecExt(x) {
43795	} else {
43796		yyct2 := r.ContainerType()
43797		if yyct2 == codecSelferValueTypeMap1234 {
43798			yyl2 := r.ReadMapStart()
43799			if yyl2 == 0 {
43800				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
43801			} else {
43802				x.codecDecodeSelfFromMap(yyl2, d)
43803			}
43804		} else if yyct2 == codecSelferValueTypeArray1234 {
43805			yyl2 := r.ReadArrayStart()
43806			if yyl2 == 0 {
43807				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
43808			} else {
43809				x.codecDecodeSelfFromArray(yyl2, d)
43810			}
43811		} else {
43812			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
43813		}
43814	}
43815}
43816
43817func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
43818	var h codecSelfer1234
43819	z, r := codec1978.GenHelperDecoder(d)
43820	_, _, _ = h, z, r
43821	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
43822	_ = yys3Slc
43823	var yyhl3 bool = l >= 0
43824	for yyj3 := 0; ; yyj3++ {
43825		if yyhl3 {
43826			if yyj3 >= l {
43827				break
43828			}
43829		} else {
43830			if r.CheckBreak() {
43831				break
43832			}
43833		}
43834		z.DecSendContainerState(codecSelfer_containerMapKey1234)
43835		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
43836		yys3 := string(yys3Slc)
43837		z.DecSendContainerState(codecSelfer_containerMapValue1234)
43838		switch yys3 {
43839		case "kind":
43840			if r.TryDecodeAsNil() {
43841				x.Kind = ""
43842			} else {
43843				yyv4 := &x.Kind
43844				yym5 := z.DecBinary()
43845				_ = yym5
43846				if false {
43847				} else {
43848					*((*string)(yyv4)) = r.DecodeString()
43849				}
43850			}
43851		case "apiVersion":
43852			if r.TryDecodeAsNil() {
43853				x.APIVersion = ""
43854			} else {
43855				yyv6 := &x.APIVersion
43856				yym7 := z.DecBinary()
43857				_ = yym7
43858				if false {
43859				} else {
43860					*((*string)(yyv6)) = r.DecodeString()
43861				}
43862			}
43863		case "metadata":
43864			if r.TryDecodeAsNil() {
43865				x.ListMeta = pkg2_v1.ListMeta{}
43866			} else {
43867				yyv8 := &x.ListMeta
43868				yym9 := z.DecBinary()
43869				_ = yym9
43870				if false {
43871				} else if z.HasExtensions() && z.DecExt(yyv8) {
43872				} else {
43873					z.DecFallback(yyv8, false)
43874				}
43875			}
43876		case "items":
43877			if r.TryDecodeAsNil() {
43878				x.Items = nil
43879			} else {
43880				yyv10 := &x.Items
43881				yym11 := z.DecBinary()
43882				_ = yym11
43883				if false {
43884				} else {
43885					h.decSliceServiceAccount((*[]ServiceAccount)(yyv10), d)
43886				}
43887			}
43888		default:
43889			z.DecStructFieldNotFound(-1, yys3)
43890		} // end switch yys3
43891	} // end for yyj3
43892	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
43893}
43894
43895func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
43896	var h codecSelfer1234
43897	z, r := codec1978.GenHelperDecoder(d)
43898	_, _, _ = h, z, r
43899	var yyj12 int
43900	var yyb12 bool
43901	var yyhl12 bool = l >= 0
43902	yyj12++
43903	if yyhl12 {
43904		yyb12 = yyj12 > l
43905	} else {
43906		yyb12 = r.CheckBreak()
43907	}
43908	if yyb12 {
43909		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
43910		return
43911	}
43912	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
43913	if r.TryDecodeAsNil() {
43914		x.Kind = ""
43915	} else {
43916		yyv13 := &x.Kind
43917		yym14 := z.DecBinary()
43918		_ = yym14
43919		if false {
43920		} else {
43921			*((*string)(yyv13)) = r.DecodeString()
43922		}
43923	}
43924	yyj12++
43925	if yyhl12 {
43926		yyb12 = yyj12 > l
43927	} else {
43928		yyb12 = r.CheckBreak()
43929	}
43930	if yyb12 {
43931		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
43932		return
43933	}
43934	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
43935	if r.TryDecodeAsNil() {
43936		x.APIVersion = ""
43937	} else {
43938		yyv15 := &x.APIVersion
43939		yym16 := z.DecBinary()
43940		_ = yym16
43941		if false {
43942		} else {
43943			*((*string)(yyv15)) = r.DecodeString()
43944		}
43945	}
43946	yyj12++
43947	if yyhl12 {
43948		yyb12 = yyj12 > l
43949	} else {
43950		yyb12 = r.CheckBreak()
43951	}
43952	if yyb12 {
43953		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
43954		return
43955	}
43956	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
43957	if r.TryDecodeAsNil() {
43958		x.ListMeta = pkg2_v1.ListMeta{}
43959	} else {
43960		yyv17 := &x.ListMeta
43961		yym18 := z.DecBinary()
43962		_ = yym18
43963		if false {
43964		} else if z.HasExtensions() && z.DecExt(yyv17) {
43965		} else {
43966			z.DecFallback(yyv17, false)
43967		}
43968	}
43969	yyj12++
43970	if yyhl12 {
43971		yyb12 = yyj12 > l
43972	} else {
43973		yyb12 = r.CheckBreak()
43974	}
43975	if yyb12 {
43976		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
43977		return
43978	}
43979	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
43980	if r.TryDecodeAsNil() {
43981		x.Items = nil
43982	} else {
43983		yyv19 := &x.Items
43984		yym20 := z.DecBinary()
43985		_ = yym20
43986		if false {
43987		} else {
43988			h.decSliceServiceAccount((*[]ServiceAccount)(yyv19), d)
43989		}
43990	}
43991	for {
43992		yyj12++
43993		if yyhl12 {
43994			yyb12 = yyj12 > l
43995		} else {
43996			yyb12 = r.CheckBreak()
43997		}
43998		if yyb12 {
43999			break
44000		}
44001		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
44002		z.DecStructFieldNotFound(yyj12-1, "")
44003	}
44004	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
44005}
44006
44007func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) {
44008	var h codecSelfer1234
44009	z, r := codec1978.GenHelperEncoder(e)
44010	_, _, _ = h, z, r
44011	if x == nil {
44012		r.EncodeNil()
44013	} else {
44014		yym1 := z.EncBinary()
44015		_ = yym1
44016		if false {
44017		} else if z.HasExtensions() && z.EncExt(x) {
44018		} else {
44019			yysep2 := !z.EncBinary()
44020			yy2arr2 := z.EncBasicHandle().StructToArray
44021			var yyq2 [4]bool
44022			_, _, _ = yysep2, yyq2, yy2arr2
44023			const yyr2 bool = false
44024			yyq2[0] = x.Kind != ""
44025			yyq2[1] = x.APIVersion != ""
44026			yyq2[2] = true
44027			var yynn2 int
44028			if yyr2 || yy2arr2 {
44029				r.EncodeArrayStart(4)
44030			} else {
44031				yynn2 = 1
44032				for _, b := range yyq2 {
44033					if b {
44034						yynn2++
44035					}
44036				}
44037				r.EncodeMapStart(yynn2)
44038				yynn2 = 0
44039			}
44040			if yyr2 || yy2arr2 {
44041				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
44042				if yyq2[0] {
44043					yym4 := z.EncBinary()
44044					_ = yym4
44045					if false {
44046					} else {
44047						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
44048					}
44049				} else {
44050					r.EncodeString(codecSelferC_UTF81234, "")
44051				}
44052			} else {
44053				if yyq2[0] {
44054					z.EncSendContainerState(codecSelfer_containerMapKey1234)
44055					r.EncodeString(codecSelferC_UTF81234, string("kind"))
44056					z.EncSendContainerState(codecSelfer_containerMapValue1234)
44057					yym5 := z.EncBinary()
44058					_ = yym5
44059					if false {
44060					} else {
44061						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
44062					}
44063				}
44064			}
44065			if yyr2 || yy2arr2 {
44066				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
44067				if yyq2[1] {
44068					yym7 := z.EncBinary()
44069					_ = yym7
44070					if false {
44071					} else {
44072						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
44073					}
44074				} else {
44075					r.EncodeString(codecSelferC_UTF81234, "")
44076				}
44077			} else {
44078				if yyq2[1] {
44079					z.EncSendContainerState(codecSelfer_containerMapKey1234)
44080					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
44081					z.EncSendContainerState(codecSelfer_containerMapValue1234)
44082					yym8 := z.EncBinary()
44083					_ = yym8
44084					if false {
44085					} else {
44086						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
44087					}
44088				}
44089			}
44090			if yyr2 || yy2arr2 {
44091				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
44092				if yyq2[2] {
44093					yy10 := &x.ObjectMeta
44094					yym11 := z.EncBinary()
44095					_ = yym11
44096					if false {
44097					} else if z.HasExtensions() && z.EncExt(yy10) {
44098					} else {
44099						z.EncFallback(yy10)
44100					}
44101				} else {
44102					r.EncodeNil()
44103				}
44104			} else {
44105				if yyq2[2] {
44106					z.EncSendContainerState(codecSelfer_containerMapKey1234)
44107					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
44108					z.EncSendContainerState(codecSelfer_containerMapValue1234)
44109					yy12 := &x.ObjectMeta
44110					yym13 := z.EncBinary()
44111					_ = yym13
44112					if false {
44113					} else if z.HasExtensions() && z.EncExt(yy12) {
44114					} else {
44115						z.EncFallback(yy12)
44116					}
44117				}
44118			}
44119			if yyr2 || yy2arr2 {
44120				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
44121				if x.Subsets == nil {
44122					r.EncodeNil()
44123				} else {
44124					yym15 := z.EncBinary()
44125					_ = yym15
44126					if false {
44127					} else {
44128						h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e)
44129					}
44130				}
44131			} else {
44132				z.EncSendContainerState(codecSelfer_containerMapKey1234)
44133				r.EncodeString(codecSelferC_UTF81234, string("subsets"))
44134				z.EncSendContainerState(codecSelfer_containerMapValue1234)
44135				if x.Subsets == nil {
44136					r.EncodeNil()
44137				} else {
44138					yym16 := z.EncBinary()
44139					_ = yym16
44140					if false {
44141					} else {
44142						h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e)
44143					}
44144				}
44145			}
44146			if yyr2 || yy2arr2 {
44147				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
44148			} else {
44149				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
44150			}
44151		}
44152	}
44153}
44154
44155func (x *Endpoints) CodecDecodeSelf(d *codec1978.Decoder) {
44156	var h codecSelfer1234
44157	z, r := codec1978.GenHelperDecoder(d)
44158	_, _, _ = h, z, r
44159	yym1 := z.DecBinary()
44160	_ = yym1
44161	if false {
44162	} else if z.HasExtensions() && z.DecExt(x) {
44163	} else {
44164		yyct2 := r.ContainerType()
44165		if yyct2 == codecSelferValueTypeMap1234 {
44166			yyl2 := r.ReadMapStart()
44167			if yyl2 == 0 {
44168				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
44169			} else {
44170				x.codecDecodeSelfFromMap(yyl2, d)
44171			}
44172		} else if yyct2 == codecSelferValueTypeArray1234 {
44173			yyl2 := r.ReadArrayStart()
44174			if yyl2 == 0 {
44175				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
44176			} else {
44177				x.codecDecodeSelfFromArray(yyl2, d)
44178			}
44179		} else {
44180			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
44181		}
44182	}
44183}
44184
44185func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
44186	var h codecSelfer1234
44187	z, r := codec1978.GenHelperDecoder(d)
44188	_, _, _ = h, z, r
44189	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
44190	_ = yys3Slc
44191	var yyhl3 bool = l >= 0
44192	for yyj3 := 0; ; yyj3++ {
44193		if yyhl3 {
44194			if yyj3 >= l {
44195				break
44196			}
44197		} else {
44198			if r.CheckBreak() {
44199				break
44200			}
44201		}
44202		z.DecSendContainerState(codecSelfer_containerMapKey1234)
44203		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
44204		yys3 := string(yys3Slc)
44205		z.DecSendContainerState(codecSelfer_containerMapValue1234)
44206		switch yys3 {
44207		case "kind":
44208			if r.TryDecodeAsNil() {
44209				x.Kind = ""
44210			} else {
44211				yyv4 := &x.Kind
44212				yym5 := z.DecBinary()
44213				_ = yym5
44214				if false {
44215				} else {
44216					*((*string)(yyv4)) = r.DecodeString()
44217				}
44218			}
44219		case "apiVersion":
44220			if r.TryDecodeAsNil() {
44221				x.APIVersion = ""
44222			} else {
44223				yyv6 := &x.APIVersion
44224				yym7 := z.DecBinary()
44225				_ = yym7
44226				if false {
44227				} else {
44228					*((*string)(yyv6)) = r.DecodeString()
44229				}
44230			}
44231		case "metadata":
44232			if r.TryDecodeAsNil() {
44233				x.ObjectMeta = pkg2_v1.ObjectMeta{}
44234			} else {
44235				yyv8 := &x.ObjectMeta
44236				yym9 := z.DecBinary()
44237				_ = yym9
44238				if false {
44239				} else if z.HasExtensions() && z.DecExt(yyv8) {
44240				} else {
44241					z.DecFallback(yyv8, false)
44242				}
44243			}
44244		case "subsets":
44245			if r.TryDecodeAsNil() {
44246				x.Subsets = nil
44247			} else {
44248				yyv10 := &x.Subsets
44249				yym11 := z.DecBinary()
44250				_ = yym11
44251				if false {
44252				} else {
44253					h.decSliceEndpointSubset((*[]EndpointSubset)(yyv10), d)
44254				}
44255			}
44256		default:
44257			z.DecStructFieldNotFound(-1, yys3)
44258		} // end switch yys3
44259	} // end for yyj3
44260	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
44261}
44262
44263func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
44264	var h codecSelfer1234
44265	z, r := codec1978.GenHelperDecoder(d)
44266	_, _, _ = h, z, r
44267	var yyj12 int
44268	var yyb12 bool
44269	var yyhl12 bool = l >= 0
44270	yyj12++
44271	if yyhl12 {
44272		yyb12 = yyj12 > l
44273	} else {
44274		yyb12 = r.CheckBreak()
44275	}
44276	if yyb12 {
44277		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
44278		return
44279	}
44280	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
44281	if r.TryDecodeAsNil() {
44282		x.Kind = ""
44283	} else {
44284		yyv13 := &x.Kind
44285		yym14 := z.DecBinary()
44286		_ = yym14
44287		if false {
44288		} else {
44289			*((*string)(yyv13)) = r.DecodeString()
44290		}
44291	}
44292	yyj12++
44293	if yyhl12 {
44294		yyb12 = yyj12 > l
44295	} else {
44296		yyb12 = r.CheckBreak()
44297	}
44298	if yyb12 {
44299		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
44300		return
44301	}
44302	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
44303	if r.TryDecodeAsNil() {
44304		x.APIVersion = ""
44305	} else {
44306		yyv15 := &x.APIVersion
44307		yym16 := z.DecBinary()
44308		_ = yym16
44309		if false {
44310		} else {
44311			*((*string)(yyv15)) = r.DecodeString()
44312		}
44313	}
44314	yyj12++
44315	if yyhl12 {
44316		yyb12 = yyj12 > l
44317	} else {
44318		yyb12 = r.CheckBreak()
44319	}
44320	if yyb12 {
44321		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
44322		return
44323	}
44324	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
44325	if r.TryDecodeAsNil() {
44326		x.ObjectMeta = pkg2_v1.ObjectMeta{}
44327	} else {
44328		yyv17 := &x.ObjectMeta
44329		yym18 := z.DecBinary()
44330		_ = yym18
44331		if false {
44332		} else if z.HasExtensions() && z.DecExt(yyv17) {
44333		} else {
44334			z.DecFallback(yyv17, false)
44335		}
44336	}
44337	yyj12++
44338	if yyhl12 {
44339		yyb12 = yyj12 > l
44340	} else {
44341		yyb12 = r.CheckBreak()
44342	}
44343	if yyb12 {
44344		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
44345		return
44346	}
44347	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
44348	if r.TryDecodeAsNil() {
44349		x.Subsets = nil
44350	} else {
44351		yyv19 := &x.Subsets
44352		yym20 := z.DecBinary()
44353		_ = yym20
44354		if false {
44355		} else {
44356			h.decSliceEndpointSubset((*[]EndpointSubset)(yyv19), d)
44357		}
44358	}
44359	for {
44360		yyj12++
44361		if yyhl12 {
44362			yyb12 = yyj12 > l
44363		} else {
44364			yyb12 = r.CheckBreak()
44365		}
44366		if yyb12 {
44367			break
44368		}
44369		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
44370		z.DecStructFieldNotFound(yyj12-1, "")
44371	}
44372	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
44373}
44374
44375func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) {
44376	var h codecSelfer1234
44377	z, r := codec1978.GenHelperEncoder(e)
44378	_, _, _ = h, z, r
44379	if x == nil {
44380		r.EncodeNil()
44381	} else {
44382		yym1 := z.EncBinary()
44383		_ = yym1
44384		if false {
44385		} else if z.HasExtensions() && z.EncExt(x) {
44386		} else {
44387			yysep2 := !z.EncBinary()
44388			yy2arr2 := z.EncBasicHandle().StructToArray
44389			var yyq2 [3]bool
44390			_, _, _ = yysep2, yyq2, yy2arr2
44391			const yyr2 bool = false
44392			yyq2[0] = len(x.Addresses) != 0
44393			yyq2[1] = len(x.NotReadyAddresses) != 0
44394			yyq2[2] = len(x.Ports) != 0
44395			var yynn2 int
44396			if yyr2 || yy2arr2 {
44397				r.EncodeArrayStart(3)
44398			} else {
44399				yynn2 = 0
44400				for _, b := range yyq2 {
44401					if b {
44402						yynn2++
44403					}
44404				}
44405				r.EncodeMapStart(yynn2)
44406				yynn2 = 0
44407			}
44408			if yyr2 || yy2arr2 {
44409				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
44410				if yyq2[0] {
44411					if x.Addresses == nil {
44412						r.EncodeNil()
44413					} else {
44414						yym4 := z.EncBinary()
44415						_ = yym4
44416						if false {
44417						} else {
44418							h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e)
44419						}
44420					}
44421				} else {
44422					r.EncodeNil()
44423				}
44424			} else {
44425				if yyq2[0] {
44426					z.EncSendContainerState(codecSelfer_containerMapKey1234)
44427					r.EncodeString(codecSelferC_UTF81234, string("addresses"))
44428					z.EncSendContainerState(codecSelfer_containerMapValue1234)
44429					if x.Addresses == nil {
44430						r.EncodeNil()
44431					} else {
44432						yym5 := z.EncBinary()
44433						_ = yym5
44434						if false {
44435						} else {
44436							h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e)
44437						}
44438					}
44439				}
44440			}
44441			if yyr2 || yy2arr2 {
44442				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
44443				if yyq2[1] {
44444					if x.NotReadyAddresses == nil {
44445						r.EncodeNil()
44446					} else {
44447						yym7 := z.EncBinary()
44448						_ = yym7
44449						if false {
44450						} else {
44451							h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e)
44452						}
44453					}
44454				} else {
44455					r.EncodeNil()
44456				}
44457			} else {
44458				if yyq2[1] {
44459					z.EncSendContainerState(codecSelfer_containerMapKey1234)
44460					r.EncodeString(codecSelferC_UTF81234, string("notReadyAddresses"))
44461					z.EncSendContainerState(codecSelfer_containerMapValue1234)
44462					if x.NotReadyAddresses == nil {
44463						r.EncodeNil()
44464					} else {
44465						yym8 := z.EncBinary()
44466						_ = yym8
44467						if false {
44468						} else {
44469							h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e)
44470						}
44471					}
44472				}
44473			}
44474			if yyr2 || yy2arr2 {
44475				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
44476				if yyq2[2] {
44477					if x.Ports == nil {
44478						r.EncodeNil()
44479					} else {
44480						yym10 := z.EncBinary()
44481						_ = yym10
44482						if false {
44483						} else {
44484							h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e)
44485						}
44486					}
44487				} else {
44488					r.EncodeNil()
44489				}
44490			} else {
44491				if yyq2[2] {
44492					z.EncSendContainerState(codecSelfer_containerMapKey1234)
44493					r.EncodeString(codecSelferC_UTF81234, string("ports"))
44494					z.EncSendContainerState(codecSelfer_containerMapValue1234)
44495					if x.Ports == nil {
44496						r.EncodeNil()
44497					} else {
44498						yym11 := z.EncBinary()
44499						_ = yym11
44500						if false {
44501						} else {
44502							h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e)
44503						}
44504					}
44505				}
44506			}
44507			if yyr2 || yy2arr2 {
44508				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
44509			} else {
44510				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
44511			}
44512		}
44513	}
44514}
44515
44516func (x *EndpointSubset) CodecDecodeSelf(d *codec1978.Decoder) {
44517	var h codecSelfer1234
44518	z, r := codec1978.GenHelperDecoder(d)
44519	_, _, _ = h, z, r
44520	yym1 := z.DecBinary()
44521	_ = yym1
44522	if false {
44523	} else if z.HasExtensions() && z.DecExt(x) {
44524	} else {
44525		yyct2 := r.ContainerType()
44526		if yyct2 == codecSelferValueTypeMap1234 {
44527			yyl2 := r.ReadMapStart()
44528			if yyl2 == 0 {
44529				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
44530			} else {
44531				x.codecDecodeSelfFromMap(yyl2, d)
44532			}
44533		} else if yyct2 == codecSelferValueTypeArray1234 {
44534			yyl2 := r.ReadArrayStart()
44535			if yyl2 == 0 {
44536				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
44537			} else {
44538				x.codecDecodeSelfFromArray(yyl2, d)
44539			}
44540		} else {
44541			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
44542		}
44543	}
44544}
44545
44546func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
44547	var h codecSelfer1234
44548	z, r := codec1978.GenHelperDecoder(d)
44549	_, _, _ = h, z, r
44550	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
44551	_ = yys3Slc
44552	var yyhl3 bool = l >= 0
44553	for yyj3 := 0; ; yyj3++ {
44554		if yyhl3 {
44555			if yyj3 >= l {
44556				break
44557			}
44558		} else {
44559			if r.CheckBreak() {
44560				break
44561			}
44562		}
44563		z.DecSendContainerState(codecSelfer_containerMapKey1234)
44564		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
44565		yys3 := string(yys3Slc)
44566		z.DecSendContainerState(codecSelfer_containerMapValue1234)
44567		switch yys3 {
44568		case "addresses":
44569			if r.TryDecodeAsNil() {
44570				x.Addresses = nil
44571			} else {
44572				yyv4 := &x.Addresses
44573				yym5 := z.DecBinary()
44574				_ = yym5
44575				if false {
44576				} else {
44577					h.decSliceEndpointAddress((*[]EndpointAddress)(yyv4), d)
44578				}
44579			}
44580		case "notReadyAddresses":
44581			if r.TryDecodeAsNil() {
44582				x.NotReadyAddresses = nil
44583			} else {
44584				yyv6 := &x.NotReadyAddresses
44585				yym7 := z.DecBinary()
44586				_ = yym7
44587				if false {
44588				} else {
44589					h.decSliceEndpointAddress((*[]EndpointAddress)(yyv6), d)
44590				}
44591			}
44592		case "ports":
44593			if r.TryDecodeAsNil() {
44594				x.Ports = nil
44595			} else {
44596				yyv8 := &x.Ports
44597				yym9 := z.DecBinary()
44598				_ = yym9
44599				if false {
44600				} else {
44601					h.decSliceEndpointPort((*[]EndpointPort)(yyv8), d)
44602				}
44603			}
44604		default:
44605			z.DecStructFieldNotFound(-1, yys3)
44606		} // end switch yys3
44607	} // end for yyj3
44608	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
44609}
44610
44611func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
44612	var h codecSelfer1234
44613	z, r := codec1978.GenHelperDecoder(d)
44614	_, _, _ = h, z, r
44615	var yyj10 int
44616	var yyb10 bool
44617	var yyhl10 bool = l >= 0
44618	yyj10++
44619	if yyhl10 {
44620		yyb10 = yyj10 > l
44621	} else {
44622		yyb10 = r.CheckBreak()
44623	}
44624	if yyb10 {
44625		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
44626		return
44627	}
44628	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
44629	if r.TryDecodeAsNil() {
44630		x.Addresses = nil
44631	} else {
44632		yyv11 := &x.Addresses
44633		yym12 := z.DecBinary()
44634		_ = yym12
44635		if false {
44636		} else {
44637			h.decSliceEndpointAddress((*[]EndpointAddress)(yyv11), d)
44638		}
44639	}
44640	yyj10++
44641	if yyhl10 {
44642		yyb10 = yyj10 > l
44643	} else {
44644		yyb10 = r.CheckBreak()
44645	}
44646	if yyb10 {
44647		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
44648		return
44649	}
44650	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
44651	if r.TryDecodeAsNil() {
44652		x.NotReadyAddresses = nil
44653	} else {
44654		yyv13 := &x.NotReadyAddresses
44655		yym14 := z.DecBinary()
44656		_ = yym14
44657		if false {
44658		} else {
44659			h.decSliceEndpointAddress((*[]EndpointAddress)(yyv13), d)
44660		}
44661	}
44662	yyj10++
44663	if yyhl10 {
44664		yyb10 = yyj10 > l
44665	} else {
44666		yyb10 = r.CheckBreak()
44667	}
44668	if yyb10 {
44669		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
44670		return
44671	}
44672	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
44673	if r.TryDecodeAsNil() {
44674		x.Ports = nil
44675	} else {
44676		yyv15 := &x.Ports
44677		yym16 := z.DecBinary()
44678		_ = yym16
44679		if false {
44680		} else {
44681			h.decSliceEndpointPort((*[]EndpointPort)(yyv15), d)
44682		}
44683	}
44684	for {
44685		yyj10++
44686		if yyhl10 {
44687			yyb10 = yyj10 > l
44688		} else {
44689			yyb10 = r.CheckBreak()
44690		}
44691		if yyb10 {
44692			break
44693		}
44694		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
44695		z.DecStructFieldNotFound(yyj10-1, "")
44696	}
44697	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
44698}
44699
44700func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) {
44701	var h codecSelfer1234
44702	z, r := codec1978.GenHelperEncoder(e)
44703	_, _, _ = h, z, r
44704	if x == nil {
44705		r.EncodeNil()
44706	} else {
44707		yym1 := z.EncBinary()
44708		_ = yym1
44709		if false {
44710		} else if z.HasExtensions() && z.EncExt(x) {
44711		} else {
44712			yysep2 := !z.EncBinary()
44713			yy2arr2 := z.EncBasicHandle().StructToArray
44714			var yyq2 [4]bool
44715			_, _, _ = yysep2, yyq2, yy2arr2
44716			const yyr2 bool = false
44717			yyq2[1] = x.Hostname != ""
44718			yyq2[2] = x.NodeName != nil
44719			yyq2[3] = x.TargetRef != nil
44720			var yynn2 int
44721			if yyr2 || yy2arr2 {
44722				r.EncodeArrayStart(4)
44723			} else {
44724				yynn2 = 1
44725				for _, b := range yyq2 {
44726					if b {
44727						yynn2++
44728					}
44729				}
44730				r.EncodeMapStart(yynn2)
44731				yynn2 = 0
44732			}
44733			if yyr2 || yy2arr2 {
44734				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
44735				yym4 := z.EncBinary()
44736				_ = yym4
44737				if false {
44738				} else {
44739					r.EncodeString(codecSelferC_UTF81234, string(x.IP))
44740				}
44741			} else {
44742				z.EncSendContainerState(codecSelfer_containerMapKey1234)
44743				r.EncodeString(codecSelferC_UTF81234, string("ip"))
44744				z.EncSendContainerState(codecSelfer_containerMapValue1234)
44745				yym5 := z.EncBinary()
44746				_ = yym5
44747				if false {
44748				} else {
44749					r.EncodeString(codecSelferC_UTF81234, string(x.IP))
44750				}
44751			}
44752			if yyr2 || yy2arr2 {
44753				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
44754				if yyq2[1] {
44755					yym7 := z.EncBinary()
44756					_ = yym7
44757					if false {
44758					} else {
44759						r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
44760					}
44761				} else {
44762					r.EncodeString(codecSelferC_UTF81234, "")
44763				}
44764			} else {
44765				if yyq2[1] {
44766					z.EncSendContainerState(codecSelfer_containerMapKey1234)
44767					r.EncodeString(codecSelferC_UTF81234, string("hostname"))
44768					z.EncSendContainerState(codecSelfer_containerMapValue1234)
44769					yym8 := z.EncBinary()
44770					_ = yym8
44771					if false {
44772					} else {
44773						r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
44774					}
44775				}
44776			}
44777			if yyr2 || yy2arr2 {
44778				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
44779				if yyq2[2] {
44780					if x.NodeName == nil {
44781						r.EncodeNil()
44782					} else {
44783						yy10 := *x.NodeName
44784						yym11 := z.EncBinary()
44785						_ = yym11
44786						if false {
44787						} else {
44788							r.EncodeString(codecSelferC_UTF81234, string(yy10))
44789						}
44790					}
44791				} else {
44792					r.EncodeNil()
44793				}
44794			} else {
44795				if yyq2[2] {
44796					z.EncSendContainerState(codecSelfer_containerMapKey1234)
44797					r.EncodeString(codecSelferC_UTF81234, string("nodeName"))
44798					z.EncSendContainerState(codecSelfer_containerMapValue1234)
44799					if x.NodeName == nil {
44800						r.EncodeNil()
44801					} else {
44802						yy12 := *x.NodeName
44803						yym13 := z.EncBinary()
44804						_ = yym13
44805						if false {
44806						} else {
44807							r.EncodeString(codecSelferC_UTF81234, string(yy12))
44808						}
44809					}
44810				}
44811			}
44812			if yyr2 || yy2arr2 {
44813				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
44814				if yyq2[3] {
44815					if x.TargetRef == nil {
44816						r.EncodeNil()
44817					} else {
44818						x.TargetRef.CodecEncodeSelf(e)
44819					}
44820				} else {
44821					r.EncodeNil()
44822				}
44823			} else {
44824				if yyq2[3] {
44825					z.EncSendContainerState(codecSelfer_containerMapKey1234)
44826					r.EncodeString(codecSelferC_UTF81234, string("targetRef"))
44827					z.EncSendContainerState(codecSelfer_containerMapValue1234)
44828					if x.TargetRef == nil {
44829						r.EncodeNil()
44830					} else {
44831						x.TargetRef.CodecEncodeSelf(e)
44832					}
44833				}
44834			}
44835			if yyr2 || yy2arr2 {
44836				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
44837			} else {
44838				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
44839			}
44840		}
44841	}
44842}
44843
44844func (x *EndpointAddress) CodecDecodeSelf(d *codec1978.Decoder) {
44845	var h codecSelfer1234
44846	z, r := codec1978.GenHelperDecoder(d)
44847	_, _, _ = h, z, r
44848	yym1 := z.DecBinary()
44849	_ = yym1
44850	if false {
44851	} else if z.HasExtensions() && z.DecExt(x) {
44852	} else {
44853		yyct2 := r.ContainerType()
44854		if yyct2 == codecSelferValueTypeMap1234 {
44855			yyl2 := r.ReadMapStart()
44856			if yyl2 == 0 {
44857				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
44858			} else {
44859				x.codecDecodeSelfFromMap(yyl2, d)
44860			}
44861		} else if yyct2 == codecSelferValueTypeArray1234 {
44862			yyl2 := r.ReadArrayStart()
44863			if yyl2 == 0 {
44864				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
44865			} else {
44866				x.codecDecodeSelfFromArray(yyl2, d)
44867			}
44868		} else {
44869			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
44870		}
44871	}
44872}
44873
44874func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
44875	var h codecSelfer1234
44876	z, r := codec1978.GenHelperDecoder(d)
44877	_, _, _ = h, z, r
44878	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
44879	_ = yys3Slc
44880	var yyhl3 bool = l >= 0
44881	for yyj3 := 0; ; yyj3++ {
44882		if yyhl3 {
44883			if yyj3 >= l {
44884				break
44885			}
44886		} else {
44887			if r.CheckBreak() {
44888				break
44889			}
44890		}
44891		z.DecSendContainerState(codecSelfer_containerMapKey1234)
44892		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
44893		yys3 := string(yys3Slc)
44894		z.DecSendContainerState(codecSelfer_containerMapValue1234)
44895		switch yys3 {
44896		case "ip":
44897			if r.TryDecodeAsNil() {
44898				x.IP = ""
44899			} else {
44900				yyv4 := &x.IP
44901				yym5 := z.DecBinary()
44902				_ = yym5
44903				if false {
44904				} else {
44905					*((*string)(yyv4)) = r.DecodeString()
44906				}
44907			}
44908		case "hostname":
44909			if r.TryDecodeAsNil() {
44910				x.Hostname = ""
44911			} else {
44912				yyv6 := &x.Hostname
44913				yym7 := z.DecBinary()
44914				_ = yym7
44915				if false {
44916				} else {
44917					*((*string)(yyv6)) = r.DecodeString()
44918				}
44919			}
44920		case "nodeName":
44921			if r.TryDecodeAsNil() {
44922				if x.NodeName != nil {
44923					x.NodeName = nil
44924				}
44925			} else {
44926				if x.NodeName == nil {
44927					x.NodeName = new(string)
44928				}
44929				yym9 := z.DecBinary()
44930				_ = yym9
44931				if false {
44932				} else {
44933					*((*string)(x.NodeName)) = r.DecodeString()
44934				}
44935			}
44936		case "targetRef":
44937			if r.TryDecodeAsNil() {
44938				if x.TargetRef != nil {
44939					x.TargetRef = nil
44940				}
44941			} else {
44942				if x.TargetRef == nil {
44943					x.TargetRef = new(ObjectReference)
44944				}
44945				x.TargetRef.CodecDecodeSelf(d)
44946			}
44947		default:
44948			z.DecStructFieldNotFound(-1, yys3)
44949		} // end switch yys3
44950	} // end for yyj3
44951	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
44952}
44953
44954func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
44955	var h codecSelfer1234
44956	z, r := codec1978.GenHelperDecoder(d)
44957	_, _, _ = h, z, r
44958	var yyj11 int
44959	var yyb11 bool
44960	var yyhl11 bool = l >= 0
44961	yyj11++
44962	if yyhl11 {
44963		yyb11 = yyj11 > l
44964	} else {
44965		yyb11 = r.CheckBreak()
44966	}
44967	if yyb11 {
44968		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
44969		return
44970	}
44971	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
44972	if r.TryDecodeAsNil() {
44973		x.IP = ""
44974	} else {
44975		yyv12 := &x.IP
44976		yym13 := z.DecBinary()
44977		_ = yym13
44978		if false {
44979		} else {
44980			*((*string)(yyv12)) = r.DecodeString()
44981		}
44982	}
44983	yyj11++
44984	if yyhl11 {
44985		yyb11 = yyj11 > l
44986	} else {
44987		yyb11 = r.CheckBreak()
44988	}
44989	if yyb11 {
44990		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
44991		return
44992	}
44993	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
44994	if r.TryDecodeAsNil() {
44995		x.Hostname = ""
44996	} else {
44997		yyv14 := &x.Hostname
44998		yym15 := z.DecBinary()
44999		_ = yym15
45000		if false {
45001		} else {
45002			*((*string)(yyv14)) = r.DecodeString()
45003		}
45004	}
45005	yyj11++
45006	if yyhl11 {
45007		yyb11 = yyj11 > l
45008	} else {
45009		yyb11 = r.CheckBreak()
45010	}
45011	if yyb11 {
45012		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
45013		return
45014	}
45015	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
45016	if r.TryDecodeAsNil() {
45017		if x.NodeName != nil {
45018			x.NodeName = nil
45019		}
45020	} else {
45021		if x.NodeName == nil {
45022			x.NodeName = new(string)
45023		}
45024		yym17 := z.DecBinary()
45025		_ = yym17
45026		if false {
45027		} else {
45028			*((*string)(x.NodeName)) = r.DecodeString()
45029		}
45030	}
45031	yyj11++
45032	if yyhl11 {
45033		yyb11 = yyj11 > l
45034	} else {
45035		yyb11 = r.CheckBreak()
45036	}
45037	if yyb11 {
45038		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
45039		return
45040	}
45041	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
45042	if r.TryDecodeAsNil() {
45043		if x.TargetRef != nil {
45044			x.TargetRef = nil
45045		}
45046	} else {
45047		if x.TargetRef == nil {
45048			x.TargetRef = new(ObjectReference)
45049		}
45050		x.TargetRef.CodecDecodeSelf(d)
45051	}
45052	for {
45053		yyj11++
45054		if yyhl11 {
45055			yyb11 = yyj11 > l
45056		} else {
45057			yyb11 = r.CheckBreak()
45058		}
45059		if yyb11 {
45060			break
45061		}
45062		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
45063		z.DecStructFieldNotFound(yyj11-1, "")
45064	}
45065	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
45066}
45067
45068func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) {
45069	var h codecSelfer1234
45070	z, r := codec1978.GenHelperEncoder(e)
45071	_, _, _ = h, z, r
45072	if x == nil {
45073		r.EncodeNil()
45074	} else {
45075		yym1 := z.EncBinary()
45076		_ = yym1
45077		if false {
45078		} else if z.HasExtensions() && z.EncExt(x) {
45079		} else {
45080			yysep2 := !z.EncBinary()
45081			yy2arr2 := z.EncBasicHandle().StructToArray
45082			var yyq2 [3]bool
45083			_, _, _ = yysep2, yyq2, yy2arr2
45084			const yyr2 bool = false
45085			yyq2[0] = x.Name != ""
45086			yyq2[2] = x.Protocol != ""
45087			var yynn2 int
45088			if yyr2 || yy2arr2 {
45089				r.EncodeArrayStart(3)
45090			} else {
45091				yynn2 = 1
45092				for _, b := range yyq2 {
45093					if b {
45094						yynn2++
45095					}
45096				}
45097				r.EncodeMapStart(yynn2)
45098				yynn2 = 0
45099			}
45100			if yyr2 || yy2arr2 {
45101				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
45102				if yyq2[0] {
45103					yym4 := z.EncBinary()
45104					_ = yym4
45105					if false {
45106					} else {
45107						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
45108					}
45109				} else {
45110					r.EncodeString(codecSelferC_UTF81234, "")
45111				}
45112			} else {
45113				if yyq2[0] {
45114					z.EncSendContainerState(codecSelfer_containerMapKey1234)
45115					r.EncodeString(codecSelferC_UTF81234, string("name"))
45116					z.EncSendContainerState(codecSelfer_containerMapValue1234)
45117					yym5 := z.EncBinary()
45118					_ = yym5
45119					if false {
45120					} else {
45121						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
45122					}
45123				}
45124			}
45125			if yyr2 || yy2arr2 {
45126				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
45127				yym7 := z.EncBinary()
45128				_ = yym7
45129				if false {
45130				} else {
45131					r.EncodeInt(int64(x.Port))
45132				}
45133			} else {
45134				z.EncSendContainerState(codecSelfer_containerMapKey1234)
45135				r.EncodeString(codecSelferC_UTF81234, string("port"))
45136				z.EncSendContainerState(codecSelfer_containerMapValue1234)
45137				yym8 := z.EncBinary()
45138				_ = yym8
45139				if false {
45140				} else {
45141					r.EncodeInt(int64(x.Port))
45142				}
45143			}
45144			if yyr2 || yy2arr2 {
45145				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
45146				if yyq2[2] {
45147					x.Protocol.CodecEncodeSelf(e)
45148				} else {
45149					r.EncodeString(codecSelferC_UTF81234, "")
45150				}
45151			} else {
45152				if yyq2[2] {
45153					z.EncSendContainerState(codecSelfer_containerMapKey1234)
45154					r.EncodeString(codecSelferC_UTF81234, string("protocol"))
45155					z.EncSendContainerState(codecSelfer_containerMapValue1234)
45156					x.Protocol.CodecEncodeSelf(e)
45157				}
45158			}
45159			if yyr2 || yy2arr2 {
45160				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
45161			} else {
45162				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
45163			}
45164		}
45165	}
45166}
45167
45168func (x *EndpointPort) CodecDecodeSelf(d *codec1978.Decoder) {
45169	var h codecSelfer1234
45170	z, r := codec1978.GenHelperDecoder(d)
45171	_, _, _ = h, z, r
45172	yym1 := z.DecBinary()
45173	_ = yym1
45174	if false {
45175	} else if z.HasExtensions() && z.DecExt(x) {
45176	} else {
45177		yyct2 := r.ContainerType()
45178		if yyct2 == codecSelferValueTypeMap1234 {
45179			yyl2 := r.ReadMapStart()
45180			if yyl2 == 0 {
45181				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
45182			} else {
45183				x.codecDecodeSelfFromMap(yyl2, d)
45184			}
45185		} else if yyct2 == codecSelferValueTypeArray1234 {
45186			yyl2 := r.ReadArrayStart()
45187			if yyl2 == 0 {
45188				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
45189			} else {
45190				x.codecDecodeSelfFromArray(yyl2, d)
45191			}
45192		} else {
45193			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
45194		}
45195	}
45196}
45197
45198func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
45199	var h codecSelfer1234
45200	z, r := codec1978.GenHelperDecoder(d)
45201	_, _, _ = h, z, r
45202	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
45203	_ = yys3Slc
45204	var yyhl3 bool = l >= 0
45205	for yyj3 := 0; ; yyj3++ {
45206		if yyhl3 {
45207			if yyj3 >= l {
45208				break
45209			}
45210		} else {
45211			if r.CheckBreak() {
45212				break
45213			}
45214		}
45215		z.DecSendContainerState(codecSelfer_containerMapKey1234)
45216		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
45217		yys3 := string(yys3Slc)
45218		z.DecSendContainerState(codecSelfer_containerMapValue1234)
45219		switch yys3 {
45220		case "name":
45221			if r.TryDecodeAsNil() {
45222				x.Name = ""
45223			} else {
45224				yyv4 := &x.Name
45225				yym5 := z.DecBinary()
45226				_ = yym5
45227				if false {
45228				} else {
45229					*((*string)(yyv4)) = r.DecodeString()
45230				}
45231			}
45232		case "port":
45233			if r.TryDecodeAsNil() {
45234				x.Port = 0
45235			} else {
45236				yyv6 := &x.Port
45237				yym7 := z.DecBinary()
45238				_ = yym7
45239				if false {
45240				} else {
45241					*((*int32)(yyv6)) = int32(r.DecodeInt(32))
45242				}
45243			}
45244		case "protocol":
45245			if r.TryDecodeAsNil() {
45246				x.Protocol = ""
45247			} else {
45248				yyv8 := &x.Protocol
45249				yyv8.CodecDecodeSelf(d)
45250			}
45251		default:
45252			z.DecStructFieldNotFound(-1, yys3)
45253		} // end switch yys3
45254	} // end for yyj3
45255	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
45256}
45257
45258func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
45259	var h codecSelfer1234
45260	z, r := codec1978.GenHelperDecoder(d)
45261	_, _, _ = h, z, r
45262	var yyj9 int
45263	var yyb9 bool
45264	var yyhl9 bool = l >= 0
45265	yyj9++
45266	if yyhl9 {
45267		yyb9 = yyj9 > l
45268	} else {
45269		yyb9 = r.CheckBreak()
45270	}
45271	if yyb9 {
45272		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
45273		return
45274	}
45275	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
45276	if r.TryDecodeAsNil() {
45277		x.Name = ""
45278	} else {
45279		yyv10 := &x.Name
45280		yym11 := z.DecBinary()
45281		_ = yym11
45282		if false {
45283		} else {
45284			*((*string)(yyv10)) = r.DecodeString()
45285		}
45286	}
45287	yyj9++
45288	if yyhl9 {
45289		yyb9 = yyj9 > l
45290	} else {
45291		yyb9 = r.CheckBreak()
45292	}
45293	if yyb9 {
45294		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
45295		return
45296	}
45297	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
45298	if r.TryDecodeAsNil() {
45299		x.Port = 0
45300	} else {
45301		yyv12 := &x.Port
45302		yym13 := z.DecBinary()
45303		_ = yym13
45304		if false {
45305		} else {
45306			*((*int32)(yyv12)) = int32(r.DecodeInt(32))
45307		}
45308	}
45309	yyj9++
45310	if yyhl9 {
45311		yyb9 = yyj9 > l
45312	} else {
45313		yyb9 = r.CheckBreak()
45314	}
45315	if yyb9 {
45316		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
45317		return
45318	}
45319	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
45320	if r.TryDecodeAsNil() {
45321		x.Protocol = ""
45322	} else {
45323		yyv14 := &x.Protocol
45324		yyv14.CodecDecodeSelf(d)
45325	}
45326	for {
45327		yyj9++
45328		if yyhl9 {
45329			yyb9 = yyj9 > l
45330		} else {
45331			yyb9 = r.CheckBreak()
45332		}
45333		if yyb9 {
45334			break
45335		}
45336		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
45337		z.DecStructFieldNotFound(yyj9-1, "")
45338	}
45339	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
45340}
45341
45342func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) {
45343	var h codecSelfer1234
45344	z, r := codec1978.GenHelperEncoder(e)
45345	_, _, _ = h, z, r
45346	if x == nil {
45347		r.EncodeNil()
45348	} else {
45349		yym1 := z.EncBinary()
45350		_ = yym1
45351		if false {
45352		} else if z.HasExtensions() && z.EncExt(x) {
45353		} else {
45354			yysep2 := !z.EncBinary()
45355			yy2arr2 := z.EncBasicHandle().StructToArray
45356			var yyq2 [4]bool
45357			_, _, _ = yysep2, yyq2, yy2arr2
45358			const yyr2 bool = false
45359			yyq2[0] = x.Kind != ""
45360			yyq2[1] = x.APIVersion != ""
45361			yyq2[2] = true
45362			var yynn2 int
45363			if yyr2 || yy2arr2 {
45364				r.EncodeArrayStart(4)
45365			} else {
45366				yynn2 = 1
45367				for _, b := range yyq2 {
45368					if b {
45369						yynn2++
45370					}
45371				}
45372				r.EncodeMapStart(yynn2)
45373				yynn2 = 0
45374			}
45375			if yyr2 || yy2arr2 {
45376				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
45377				if yyq2[0] {
45378					yym4 := z.EncBinary()
45379					_ = yym4
45380					if false {
45381					} else {
45382						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
45383					}
45384				} else {
45385					r.EncodeString(codecSelferC_UTF81234, "")
45386				}
45387			} else {
45388				if yyq2[0] {
45389					z.EncSendContainerState(codecSelfer_containerMapKey1234)
45390					r.EncodeString(codecSelferC_UTF81234, string("kind"))
45391					z.EncSendContainerState(codecSelfer_containerMapValue1234)
45392					yym5 := z.EncBinary()
45393					_ = yym5
45394					if false {
45395					} else {
45396						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
45397					}
45398				}
45399			}
45400			if yyr2 || yy2arr2 {
45401				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
45402				if yyq2[1] {
45403					yym7 := z.EncBinary()
45404					_ = yym7
45405					if false {
45406					} else {
45407						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
45408					}
45409				} else {
45410					r.EncodeString(codecSelferC_UTF81234, "")
45411				}
45412			} else {
45413				if yyq2[1] {
45414					z.EncSendContainerState(codecSelfer_containerMapKey1234)
45415					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
45416					z.EncSendContainerState(codecSelfer_containerMapValue1234)
45417					yym8 := z.EncBinary()
45418					_ = yym8
45419					if false {
45420					} else {
45421						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
45422					}
45423				}
45424			}
45425			if yyr2 || yy2arr2 {
45426				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
45427				if yyq2[2] {
45428					yy10 := &x.ListMeta
45429					yym11 := z.EncBinary()
45430					_ = yym11
45431					if false {
45432					} else if z.HasExtensions() && z.EncExt(yy10) {
45433					} else {
45434						z.EncFallback(yy10)
45435					}
45436				} else {
45437					r.EncodeNil()
45438				}
45439			} else {
45440				if yyq2[2] {
45441					z.EncSendContainerState(codecSelfer_containerMapKey1234)
45442					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
45443					z.EncSendContainerState(codecSelfer_containerMapValue1234)
45444					yy12 := &x.ListMeta
45445					yym13 := z.EncBinary()
45446					_ = yym13
45447					if false {
45448					} else if z.HasExtensions() && z.EncExt(yy12) {
45449					} else {
45450						z.EncFallback(yy12)
45451					}
45452				}
45453			}
45454			if yyr2 || yy2arr2 {
45455				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
45456				if x.Items == nil {
45457					r.EncodeNil()
45458				} else {
45459					yym15 := z.EncBinary()
45460					_ = yym15
45461					if false {
45462					} else {
45463						h.encSliceEndpoints(([]Endpoints)(x.Items), e)
45464					}
45465				}
45466			} else {
45467				z.EncSendContainerState(codecSelfer_containerMapKey1234)
45468				r.EncodeString(codecSelferC_UTF81234, string("items"))
45469				z.EncSendContainerState(codecSelfer_containerMapValue1234)
45470				if x.Items == nil {
45471					r.EncodeNil()
45472				} else {
45473					yym16 := z.EncBinary()
45474					_ = yym16
45475					if false {
45476					} else {
45477						h.encSliceEndpoints(([]Endpoints)(x.Items), e)
45478					}
45479				}
45480			}
45481			if yyr2 || yy2arr2 {
45482				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
45483			} else {
45484				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
45485			}
45486		}
45487	}
45488}
45489
45490func (x *EndpointsList) CodecDecodeSelf(d *codec1978.Decoder) {
45491	var h codecSelfer1234
45492	z, r := codec1978.GenHelperDecoder(d)
45493	_, _, _ = h, z, r
45494	yym1 := z.DecBinary()
45495	_ = yym1
45496	if false {
45497	} else if z.HasExtensions() && z.DecExt(x) {
45498	} else {
45499		yyct2 := r.ContainerType()
45500		if yyct2 == codecSelferValueTypeMap1234 {
45501			yyl2 := r.ReadMapStart()
45502			if yyl2 == 0 {
45503				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
45504			} else {
45505				x.codecDecodeSelfFromMap(yyl2, d)
45506			}
45507		} else if yyct2 == codecSelferValueTypeArray1234 {
45508			yyl2 := r.ReadArrayStart()
45509			if yyl2 == 0 {
45510				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
45511			} else {
45512				x.codecDecodeSelfFromArray(yyl2, d)
45513			}
45514		} else {
45515			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
45516		}
45517	}
45518}
45519
45520func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
45521	var h codecSelfer1234
45522	z, r := codec1978.GenHelperDecoder(d)
45523	_, _, _ = h, z, r
45524	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
45525	_ = yys3Slc
45526	var yyhl3 bool = l >= 0
45527	for yyj3 := 0; ; yyj3++ {
45528		if yyhl3 {
45529			if yyj3 >= l {
45530				break
45531			}
45532		} else {
45533			if r.CheckBreak() {
45534				break
45535			}
45536		}
45537		z.DecSendContainerState(codecSelfer_containerMapKey1234)
45538		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
45539		yys3 := string(yys3Slc)
45540		z.DecSendContainerState(codecSelfer_containerMapValue1234)
45541		switch yys3 {
45542		case "kind":
45543			if r.TryDecodeAsNil() {
45544				x.Kind = ""
45545			} else {
45546				yyv4 := &x.Kind
45547				yym5 := z.DecBinary()
45548				_ = yym5
45549				if false {
45550				} else {
45551					*((*string)(yyv4)) = r.DecodeString()
45552				}
45553			}
45554		case "apiVersion":
45555			if r.TryDecodeAsNil() {
45556				x.APIVersion = ""
45557			} else {
45558				yyv6 := &x.APIVersion
45559				yym7 := z.DecBinary()
45560				_ = yym7
45561				if false {
45562				} else {
45563					*((*string)(yyv6)) = r.DecodeString()
45564				}
45565			}
45566		case "metadata":
45567			if r.TryDecodeAsNil() {
45568				x.ListMeta = pkg2_v1.ListMeta{}
45569			} else {
45570				yyv8 := &x.ListMeta
45571				yym9 := z.DecBinary()
45572				_ = yym9
45573				if false {
45574				} else if z.HasExtensions() && z.DecExt(yyv8) {
45575				} else {
45576					z.DecFallback(yyv8, false)
45577				}
45578			}
45579		case "items":
45580			if r.TryDecodeAsNil() {
45581				x.Items = nil
45582			} else {
45583				yyv10 := &x.Items
45584				yym11 := z.DecBinary()
45585				_ = yym11
45586				if false {
45587				} else {
45588					h.decSliceEndpoints((*[]Endpoints)(yyv10), d)
45589				}
45590			}
45591		default:
45592			z.DecStructFieldNotFound(-1, yys3)
45593		} // end switch yys3
45594	} // end for yyj3
45595	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
45596}
45597
45598func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
45599	var h codecSelfer1234
45600	z, r := codec1978.GenHelperDecoder(d)
45601	_, _, _ = h, z, r
45602	var yyj12 int
45603	var yyb12 bool
45604	var yyhl12 bool = l >= 0
45605	yyj12++
45606	if yyhl12 {
45607		yyb12 = yyj12 > l
45608	} else {
45609		yyb12 = r.CheckBreak()
45610	}
45611	if yyb12 {
45612		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
45613		return
45614	}
45615	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
45616	if r.TryDecodeAsNil() {
45617		x.Kind = ""
45618	} else {
45619		yyv13 := &x.Kind
45620		yym14 := z.DecBinary()
45621		_ = yym14
45622		if false {
45623		} else {
45624			*((*string)(yyv13)) = r.DecodeString()
45625		}
45626	}
45627	yyj12++
45628	if yyhl12 {
45629		yyb12 = yyj12 > l
45630	} else {
45631		yyb12 = r.CheckBreak()
45632	}
45633	if yyb12 {
45634		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
45635		return
45636	}
45637	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
45638	if r.TryDecodeAsNil() {
45639		x.APIVersion = ""
45640	} else {
45641		yyv15 := &x.APIVersion
45642		yym16 := z.DecBinary()
45643		_ = yym16
45644		if false {
45645		} else {
45646			*((*string)(yyv15)) = r.DecodeString()
45647		}
45648	}
45649	yyj12++
45650	if yyhl12 {
45651		yyb12 = yyj12 > l
45652	} else {
45653		yyb12 = r.CheckBreak()
45654	}
45655	if yyb12 {
45656		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
45657		return
45658	}
45659	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
45660	if r.TryDecodeAsNil() {
45661		x.ListMeta = pkg2_v1.ListMeta{}
45662	} else {
45663		yyv17 := &x.ListMeta
45664		yym18 := z.DecBinary()
45665		_ = yym18
45666		if false {
45667		} else if z.HasExtensions() && z.DecExt(yyv17) {
45668		} else {
45669			z.DecFallback(yyv17, false)
45670		}
45671	}
45672	yyj12++
45673	if yyhl12 {
45674		yyb12 = yyj12 > l
45675	} else {
45676		yyb12 = r.CheckBreak()
45677	}
45678	if yyb12 {
45679		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
45680		return
45681	}
45682	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
45683	if r.TryDecodeAsNil() {
45684		x.Items = nil
45685	} else {
45686		yyv19 := &x.Items
45687		yym20 := z.DecBinary()
45688		_ = yym20
45689		if false {
45690		} else {
45691			h.decSliceEndpoints((*[]Endpoints)(yyv19), d)
45692		}
45693	}
45694	for {
45695		yyj12++
45696		if yyhl12 {
45697			yyb12 = yyj12 > l
45698		} else {
45699			yyb12 = r.CheckBreak()
45700		}
45701		if yyb12 {
45702			break
45703		}
45704		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
45705		z.DecStructFieldNotFound(yyj12-1, "")
45706	}
45707	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
45708}
45709
45710func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) {
45711	var h codecSelfer1234
45712	z, r := codec1978.GenHelperEncoder(e)
45713	_, _, _ = h, z, r
45714	if x == nil {
45715		r.EncodeNil()
45716	} else {
45717		yym1 := z.EncBinary()
45718		_ = yym1
45719		if false {
45720		} else if z.HasExtensions() && z.EncExt(x) {
45721		} else {
45722			yysep2 := !z.EncBinary()
45723			yy2arr2 := z.EncBasicHandle().StructToArray
45724			var yyq2 [5]bool
45725			_, _, _ = yysep2, yyq2, yy2arr2
45726			const yyr2 bool = false
45727			yyq2[0] = x.PodCIDR != ""
45728			yyq2[1] = x.ExternalID != ""
45729			yyq2[2] = x.ProviderID != ""
45730			yyq2[3] = x.Unschedulable != false
45731			yyq2[4] = len(x.Taints) != 0
45732			var yynn2 int
45733			if yyr2 || yy2arr2 {
45734				r.EncodeArrayStart(5)
45735			} else {
45736				yynn2 = 0
45737				for _, b := range yyq2 {
45738					if b {
45739						yynn2++
45740					}
45741				}
45742				r.EncodeMapStart(yynn2)
45743				yynn2 = 0
45744			}
45745			if yyr2 || yy2arr2 {
45746				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
45747				if yyq2[0] {
45748					yym4 := z.EncBinary()
45749					_ = yym4
45750					if false {
45751					} else {
45752						r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
45753					}
45754				} else {
45755					r.EncodeString(codecSelferC_UTF81234, "")
45756				}
45757			} else {
45758				if yyq2[0] {
45759					z.EncSendContainerState(codecSelfer_containerMapKey1234)
45760					r.EncodeString(codecSelferC_UTF81234, string("podCIDR"))
45761					z.EncSendContainerState(codecSelfer_containerMapValue1234)
45762					yym5 := z.EncBinary()
45763					_ = yym5
45764					if false {
45765					} else {
45766						r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
45767					}
45768				}
45769			}
45770			if yyr2 || yy2arr2 {
45771				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
45772				if yyq2[1] {
45773					yym7 := z.EncBinary()
45774					_ = yym7
45775					if false {
45776					} else {
45777						r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
45778					}
45779				} else {
45780					r.EncodeString(codecSelferC_UTF81234, "")
45781				}
45782			} else {
45783				if yyq2[1] {
45784					z.EncSendContainerState(codecSelfer_containerMapKey1234)
45785					r.EncodeString(codecSelferC_UTF81234, string("externalID"))
45786					z.EncSendContainerState(codecSelfer_containerMapValue1234)
45787					yym8 := z.EncBinary()
45788					_ = yym8
45789					if false {
45790					} else {
45791						r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
45792					}
45793				}
45794			}
45795			if yyr2 || yy2arr2 {
45796				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
45797				if yyq2[2] {
45798					yym10 := z.EncBinary()
45799					_ = yym10
45800					if false {
45801					} else {
45802						r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
45803					}
45804				} else {
45805					r.EncodeString(codecSelferC_UTF81234, "")
45806				}
45807			} else {
45808				if yyq2[2] {
45809					z.EncSendContainerState(codecSelfer_containerMapKey1234)
45810					r.EncodeString(codecSelferC_UTF81234, string("providerID"))
45811					z.EncSendContainerState(codecSelfer_containerMapValue1234)
45812					yym11 := z.EncBinary()
45813					_ = yym11
45814					if false {
45815					} else {
45816						r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
45817					}
45818				}
45819			}
45820			if yyr2 || yy2arr2 {
45821				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
45822				if yyq2[3] {
45823					yym13 := z.EncBinary()
45824					_ = yym13
45825					if false {
45826					} else {
45827						r.EncodeBool(bool(x.Unschedulable))
45828					}
45829				} else {
45830					r.EncodeBool(false)
45831				}
45832			} else {
45833				if yyq2[3] {
45834					z.EncSendContainerState(codecSelfer_containerMapKey1234)
45835					r.EncodeString(codecSelferC_UTF81234, string("unschedulable"))
45836					z.EncSendContainerState(codecSelfer_containerMapValue1234)
45837					yym14 := z.EncBinary()
45838					_ = yym14
45839					if false {
45840					} else {
45841						r.EncodeBool(bool(x.Unschedulable))
45842					}
45843				}
45844			}
45845			if yyr2 || yy2arr2 {
45846				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
45847				if yyq2[4] {
45848					if x.Taints == nil {
45849						r.EncodeNil()
45850					} else {
45851						yym16 := z.EncBinary()
45852						_ = yym16
45853						if false {
45854						} else {
45855							h.encSliceTaint(([]Taint)(x.Taints), e)
45856						}
45857					}
45858				} else {
45859					r.EncodeNil()
45860				}
45861			} else {
45862				if yyq2[4] {
45863					z.EncSendContainerState(codecSelfer_containerMapKey1234)
45864					r.EncodeString(codecSelferC_UTF81234, string("taints"))
45865					z.EncSendContainerState(codecSelfer_containerMapValue1234)
45866					if x.Taints == nil {
45867						r.EncodeNil()
45868					} else {
45869						yym17 := z.EncBinary()
45870						_ = yym17
45871						if false {
45872						} else {
45873							h.encSliceTaint(([]Taint)(x.Taints), e)
45874						}
45875					}
45876				}
45877			}
45878			if yyr2 || yy2arr2 {
45879				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
45880			} else {
45881				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
45882			}
45883		}
45884	}
45885}
45886
45887func (x *NodeSpec) CodecDecodeSelf(d *codec1978.Decoder) {
45888	var h codecSelfer1234
45889	z, r := codec1978.GenHelperDecoder(d)
45890	_, _, _ = h, z, r
45891	yym1 := z.DecBinary()
45892	_ = yym1
45893	if false {
45894	} else if z.HasExtensions() && z.DecExt(x) {
45895	} else {
45896		yyct2 := r.ContainerType()
45897		if yyct2 == codecSelferValueTypeMap1234 {
45898			yyl2 := r.ReadMapStart()
45899			if yyl2 == 0 {
45900				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
45901			} else {
45902				x.codecDecodeSelfFromMap(yyl2, d)
45903			}
45904		} else if yyct2 == codecSelferValueTypeArray1234 {
45905			yyl2 := r.ReadArrayStart()
45906			if yyl2 == 0 {
45907				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
45908			} else {
45909				x.codecDecodeSelfFromArray(yyl2, d)
45910			}
45911		} else {
45912			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
45913		}
45914	}
45915}
45916
45917func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
45918	var h codecSelfer1234
45919	z, r := codec1978.GenHelperDecoder(d)
45920	_, _, _ = h, z, r
45921	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
45922	_ = yys3Slc
45923	var yyhl3 bool = l >= 0
45924	for yyj3 := 0; ; yyj3++ {
45925		if yyhl3 {
45926			if yyj3 >= l {
45927				break
45928			}
45929		} else {
45930			if r.CheckBreak() {
45931				break
45932			}
45933		}
45934		z.DecSendContainerState(codecSelfer_containerMapKey1234)
45935		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
45936		yys3 := string(yys3Slc)
45937		z.DecSendContainerState(codecSelfer_containerMapValue1234)
45938		switch yys3 {
45939		case "podCIDR":
45940			if r.TryDecodeAsNil() {
45941				x.PodCIDR = ""
45942			} else {
45943				yyv4 := &x.PodCIDR
45944				yym5 := z.DecBinary()
45945				_ = yym5
45946				if false {
45947				} else {
45948					*((*string)(yyv4)) = r.DecodeString()
45949				}
45950			}
45951		case "externalID":
45952			if r.TryDecodeAsNil() {
45953				x.ExternalID = ""
45954			} else {
45955				yyv6 := &x.ExternalID
45956				yym7 := z.DecBinary()
45957				_ = yym7
45958				if false {
45959				} else {
45960					*((*string)(yyv6)) = r.DecodeString()
45961				}
45962			}
45963		case "providerID":
45964			if r.TryDecodeAsNil() {
45965				x.ProviderID = ""
45966			} else {
45967				yyv8 := &x.ProviderID
45968				yym9 := z.DecBinary()
45969				_ = yym9
45970				if false {
45971				} else {
45972					*((*string)(yyv8)) = r.DecodeString()
45973				}
45974			}
45975		case "unschedulable":
45976			if r.TryDecodeAsNil() {
45977				x.Unschedulable = false
45978			} else {
45979				yyv10 := &x.Unschedulable
45980				yym11 := z.DecBinary()
45981				_ = yym11
45982				if false {
45983				} else {
45984					*((*bool)(yyv10)) = r.DecodeBool()
45985				}
45986			}
45987		case "taints":
45988			if r.TryDecodeAsNil() {
45989				x.Taints = nil
45990			} else {
45991				yyv12 := &x.Taints
45992				yym13 := z.DecBinary()
45993				_ = yym13
45994				if false {
45995				} else {
45996					h.decSliceTaint((*[]Taint)(yyv12), d)
45997				}
45998			}
45999		default:
46000			z.DecStructFieldNotFound(-1, yys3)
46001		} // end switch yys3
46002	} // end for yyj3
46003	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
46004}
46005
46006func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
46007	var h codecSelfer1234
46008	z, r := codec1978.GenHelperDecoder(d)
46009	_, _, _ = h, z, r
46010	var yyj14 int
46011	var yyb14 bool
46012	var yyhl14 bool = l >= 0
46013	yyj14++
46014	if yyhl14 {
46015		yyb14 = yyj14 > l
46016	} else {
46017		yyb14 = r.CheckBreak()
46018	}
46019	if yyb14 {
46020		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
46021		return
46022	}
46023	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
46024	if r.TryDecodeAsNil() {
46025		x.PodCIDR = ""
46026	} else {
46027		yyv15 := &x.PodCIDR
46028		yym16 := z.DecBinary()
46029		_ = yym16
46030		if false {
46031		} else {
46032			*((*string)(yyv15)) = r.DecodeString()
46033		}
46034	}
46035	yyj14++
46036	if yyhl14 {
46037		yyb14 = yyj14 > l
46038	} else {
46039		yyb14 = r.CheckBreak()
46040	}
46041	if yyb14 {
46042		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
46043		return
46044	}
46045	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
46046	if r.TryDecodeAsNil() {
46047		x.ExternalID = ""
46048	} else {
46049		yyv17 := &x.ExternalID
46050		yym18 := z.DecBinary()
46051		_ = yym18
46052		if false {
46053		} else {
46054			*((*string)(yyv17)) = r.DecodeString()
46055		}
46056	}
46057	yyj14++
46058	if yyhl14 {
46059		yyb14 = yyj14 > l
46060	} else {
46061		yyb14 = r.CheckBreak()
46062	}
46063	if yyb14 {
46064		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
46065		return
46066	}
46067	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
46068	if r.TryDecodeAsNil() {
46069		x.ProviderID = ""
46070	} else {
46071		yyv19 := &x.ProviderID
46072		yym20 := z.DecBinary()
46073		_ = yym20
46074		if false {
46075		} else {
46076			*((*string)(yyv19)) = r.DecodeString()
46077		}
46078	}
46079	yyj14++
46080	if yyhl14 {
46081		yyb14 = yyj14 > l
46082	} else {
46083		yyb14 = r.CheckBreak()
46084	}
46085	if yyb14 {
46086		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
46087		return
46088	}
46089	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
46090	if r.TryDecodeAsNil() {
46091		x.Unschedulable = false
46092	} else {
46093		yyv21 := &x.Unschedulable
46094		yym22 := z.DecBinary()
46095		_ = yym22
46096		if false {
46097		} else {
46098			*((*bool)(yyv21)) = r.DecodeBool()
46099		}
46100	}
46101	yyj14++
46102	if yyhl14 {
46103		yyb14 = yyj14 > l
46104	} else {
46105		yyb14 = r.CheckBreak()
46106	}
46107	if yyb14 {
46108		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
46109		return
46110	}
46111	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
46112	if r.TryDecodeAsNil() {
46113		x.Taints = nil
46114	} else {
46115		yyv23 := &x.Taints
46116		yym24 := z.DecBinary()
46117		_ = yym24
46118		if false {
46119		} else {
46120			h.decSliceTaint((*[]Taint)(yyv23), d)
46121		}
46122	}
46123	for {
46124		yyj14++
46125		if yyhl14 {
46126			yyb14 = yyj14 > l
46127		} else {
46128			yyb14 = r.CheckBreak()
46129		}
46130		if yyb14 {
46131			break
46132		}
46133		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
46134		z.DecStructFieldNotFound(yyj14-1, "")
46135	}
46136	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
46137}
46138
46139func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) {
46140	var h codecSelfer1234
46141	z, r := codec1978.GenHelperEncoder(e)
46142	_, _, _ = h, z, r
46143	if x == nil {
46144		r.EncodeNil()
46145	} else {
46146		yym1 := z.EncBinary()
46147		_ = yym1
46148		if false {
46149		} else if z.HasExtensions() && z.EncExt(x) {
46150		} else {
46151			yysep2 := !z.EncBinary()
46152			yy2arr2 := z.EncBasicHandle().StructToArray
46153			var yyq2 [1]bool
46154			_, _, _ = yysep2, yyq2, yy2arr2
46155			const yyr2 bool = false
46156			var yynn2 int
46157			if yyr2 || yy2arr2 {
46158				r.EncodeArrayStart(1)
46159			} else {
46160				yynn2 = 1
46161				for _, b := range yyq2 {
46162					if b {
46163						yynn2++
46164					}
46165				}
46166				r.EncodeMapStart(yynn2)
46167				yynn2 = 0
46168			}
46169			if yyr2 || yy2arr2 {
46170				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
46171				yym4 := z.EncBinary()
46172				_ = yym4
46173				if false {
46174				} else {
46175					r.EncodeInt(int64(x.Port))
46176				}
46177			} else {
46178				z.EncSendContainerState(codecSelfer_containerMapKey1234)
46179				r.EncodeString(codecSelferC_UTF81234, string("Port"))
46180				z.EncSendContainerState(codecSelfer_containerMapValue1234)
46181				yym5 := z.EncBinary()
46182				_ = yym5
46183				if false {
46184				} else {
46185					r.EncodeInt(int64(x.Port))
46186				}
46187			}
46188			if yyr2 || yy2arr2 {
46189				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
46190			} else {
46191				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
46192			}
46193		}
46194	}
46195}
46196
46197func (x *DaemonEndpoint) CodecDecodeSelf(d *codec1978.Decoder) {
46198	var h codecSelfer1234
46199	z, r := codec1978.GenHelperDecoder(d)
46200	_, _, _ = h, z, r
46201	yym1 := z.DecBinary()
46202	_ = yym1
46203	if false {
46204	} else if z.HasExtensions() && z.DecExt(x) {
46205	} else {
46206		yyct2 := r.ContainerType()
46207		if yyct2 == codecSelferValueTypeMap1234 {
46208			yyl2 := r.ReadMapStart()
46209			if yyl2 == 0 {
46210				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
46211			} else {
46212				x.codecDecodeSelfFromMap(yyl2, d)
46213			}
46214		} else if yyct2 == codecSelferValueTypeArray1234 {
46215			yyl2 := r.ReadArrayStart()
46216			if yyl2 == 0 {
46217				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
46218			} else {
46219				x.codecDecodeSelfFromArray(yyl2, d)
46220			}
46221		} else {
46222			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
46223		}
46224	}
46225}
46226
46227func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
46228	var h codecSelfer1234
46229	z, r := codec1978.GenHelperDecoder(d)
46230	_, _, _ = h, z, r
46231	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
46232	_ = yys3Slc
46233	var yyhl3 bool = l >= 0
46234	for yyj3 := 0; ; yyj3++ {
46235		if yyhl3 {
46236			if yyj3 >= l {
46237				break
46238			}
46239		} else {
46240			if r.CheckBreak() {
46241				break
46242			}
46243		}
46244		z.DecSendContainerState(codecSelfer_containerMapKey1234)
46245		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
46246		yys3 := string(yys3Slc)
46247		z.DecSendContainerState(codecSelfer_containerMapValue1234)
46248		switch yys3 {
46249		case "Port":
46250			if r.TryDecodeAsNil() {
46251				x.Port = 0
46252			} else {
46253				yyv4 := &x.Port
46254				yym5 := z.DecBinary()
46255				_ = yym5
46256				if false {
46257				} else {
46258					*((*int32)(yyv4)) = int32(r.DecodeInt(32))
46259				}
46260			}
46261		default:
46262			z.DecStructFieldNotFound(-1, yys3)
46263		} // end switch yys3
46264	} // end for yyj3
46265	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
46266}
46267
46268func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
46269	var h codecSelfer1234
46270	z, r := codec1978.GenHelperDecoder(d)
46271	_, _, _ = h, z, r
46272	var yyj6 int
46273	var yyb6 bool
46274	var yyhl6 bool = l >= 0
46275	yyj6++
46276	if yyhl6 {
46277		yyb6 = yyj6 > l
46278	} else {
46279		yyb6 = r.CheckBreak()
46280	}
46281	if yyb6 {
46282		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
46283		return
46284	}
46285	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
46286	if r.TryDecodeAsNil() {
46287		x.Port = 0
46288	} else {
46289		yyv7 := &x.Port
46290		yym8 := z.DecBinary()
46291		_ = yym8
46292		if false {
46293		} else {
46294			*((*int32)(yyv7)) = int32(r.DecodeInt(32))
46295		}
46296	}
46297	for {
46298		yyj6++
46299		if yyhl6 {
46300			yyb6 = yyj6 > l
46301		} else {
46302			yyb6 = r.CheckBreak()
46303		}
46304		if yyb6 {
46305			break
46306		}
46307		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
46308		z.DecStructFieldNotFound(yyj6-1, "")
46309	}
46310	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
46311}
46312
46313func (x *NodeDaemonEndpoints) CodecEncodeSelf(e *codec1978.Encoder) {
46314	var h codecSelfer1234
46315	z, r := codec1978.GenHelperEncoder(e)
46316	_, _, _ = h, z, r
46317	if x == nil {
46318		r.EncodeNil()
46319	} else {
46320		yym1 := z.EncBinary()
46321		_ = yym1
46322		if false {
46323		} else if z.HasExtensions() && z.EncExt(x) {
46324		} else {
46325			yysep2 := !z.EncBinary()
46326			yy2arr2 := z.EncBasicHandle().StructToArray
46327			var yyq2 [1]bool
46328			_, _, _ = yysep2, yyq2, yy2arr2
46329			const yyr2 bool = false
46330			yyq2[0] = true
46331			var yynn2 int
46332			if yyr2 || yy2arr2 {
46333				r.EncodeArrayStart(1)
46334			} else {
46335				yynn2 = 0
46336				for _, b := range yyq2 {
46337					if b {
46338						yynn2++
46339					}
46340				}
46341				r.EncodeMapStart(yynn2)
46342				yynn2 = 0
46343			}
46344			if yyr2 || yy2arr2 {
46345				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
46346				if yyq2[0] {
46347					yy4 := &x.KubeletEndpoint
46348					yy4.CodecEncodeSelf(e)
46349				} else {
46350					r.EncodeNil()
46351				}
46352			} else {
46353				if yyq2[0] {
46354					z.EncSendContainerState(codecSelfer_containerMapKey1234)
46355					r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint"))
46356					z.EncSendContainerState(codecSelfer_containerMapValue1234)
46357					yy6 := &x.KubeletEndpoint
46358					yy6.CodecEncodeSelf(e)
46359				}
46360			}
46361			if yyr2 || yy2arr2 {
46362				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
46363			} else {
46364				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
46365			}
46366		}
46367	}
46368}
46369
46370func (x *NodeDaemonEndpoints) CodecDecodeSelf(d *codec1978.Decoder) {
46371	var h codecSelfer1234
46372	z, r := codec1978.GenHelperDecoder(d)
46373	_, _, _ = h, z, r
46374	yym1 := z.DecBinary()
46375	_ = yym1
46376	if false {
46377	} else if z.HasExtensions() && z.DecExt(x) {
46378	} else {
46379		yyct2 := r.ContainerType()
46380		if yyct2 == codecSelferValueTypeMap1234 {
46381			yyl2 := r.ReadMapStart()
46382			if yyl2 == 0 {
46383				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
46384			} else {
46385				x.codecDecodeSelfFromMap(yyl2, d)
46386			}
46387		} else if yyct2 == codecSelferValueTypeArray1234 {
46388			yyl2 := r.ReadArrayStart()
46389			if yyl2 == 0 {
46390				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
46391			} else {
46392				x.codecDecodeSelfFromArray(yyl2, d)
46393			}
46394		} else {
46395			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
46396		}
46397	}
46398}
46399
46400func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
46401	var h codecSelfer1234
46402	z, r := codec1978.GenHelperDecoder(d)
46403	_, _, _ = h, z, r
46404	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
46405	_ = yys3Slc
46406	var yyhl3 bool = l >= 0
46407	for yyj3 := 0; ; yyj3++ {
46408		if yyhl3 {
46409			if yyj3 >= l {
46410				break
46411			}
46412		} else {
46413			if r.CheckBreak() {
46414				break
46415			}
46416		}
46417		z.DecSendContainerState(codecSelfer_containerMapKey1234)
46418		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
46419		yys3 := string(yys3Slc)
46420		z.DecSendContainerState(codecSelfer_containerMapValue1234)
46421		switch yys3 {
46422		case "kubeletEndpoint":
46423			if r.TryDecodeAsNil() {
46424				x.KubeletEndpoint = DaemonEndpoint{}
46425			} else {
46426				yyv4 := &x.KubeletEndpoint
46427				yyv4.CodecDecodeSelf(d)
46428			}
46429		default:
46430			z.DecStructFieldNotFound(-1, yys3)
46431		} // end switch yys3
46432	} // end for yyj3
46433	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
46434}
46435
46436func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
46437	var h codecSelfer1234
46438	z, r := codec1978.GenHelperDecoder(d)
46439	_, _, _ = h, z, r
46440	var yyj5 int
46441	var yyb5 bool
46442	var yyhl5 bool = l >= 0
46443	yyj5++
46444	if yyhl5 {
46445		yyb5 = yyj5 > l
46446	} else {
46447		yyb5 = r.CheckBreak()
46448	}
46449	if yyb5 {
46450		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
46451		return
46452	}
46453	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
46454	if r.TryDecodeAsNil() {
46455		x.KubeletEndpoint = DaemonEndpoint{}
46456	} else {
46457		yyv6 := &x.KubeletEndpoint
46458		yyv6.CodecDecodeSelf(d)
46459	}
46460	for {
46461		yyj5++
46462		if yyhl5 {
46463			yyb5 = yyj5 > l
46464		} else {
46465			yyb5 = r.CheckBreak()
46466		}
46467		if yyb5 {
46468			break
46469		}
46470		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
46471		z.DecStructFieldNotFound(yyj5-1, "")
46472	}
46473	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
46474}
46475
46476func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) {
46477	var h codecSelfer1234
46478	z, r := codec1978.GenHelperEncoder(e)
46479	_, _, _ = h, z, r
46480	if x == nil {
46481		r.EncodeNil()
46482	} else {
46483		yym1 := z.EncBinary()
46484		_ = yym1
46485		if false {
46486		} else if z.HasExtensions() && z.EncExt(x) {
46487		} else {
46488			yysep2 := !z.EncBinary()
46489			yy2arr2 := z.EncBasicHandle().StructToArray
46490			var yyq2 [10]bool
46491			_, _, _ = yysep2, yyq2, yy2arr2
46492			const yyr2 bool = false
46493			var yynn2 int
46494			if yyr2 || yy2arr2 {
46495				r.EncodeArrayStart(10)
46496			} else {
46497				yynn2 = 10
46498				for _, b := range yyq2 {
46499					if b {
46500						yynn2++
46501					}
46502				}
46503				r.EncodeMapStart(yynn2)
46504				yynn2 = 0
46505			}
46506			if yyr2 || yy2arr2 {
46507				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
46508				yym4 := z.EncBinary()
46509				_ = yym4
46510				if false {
46511				} else {
46512					r.EncodeString(codecSelferC_UTF81234, string(x.MachineID))
46513				}
46514			} else {
46515				z.EncSendContainerState(codecSelfer_containerMapKey1234)
46516				r.EncodeString(codecSelferC_UTF81234, string("machineID"))
46517				z.EncSendContainerState(codecSelfer_containerMapValue1234)
46518				yym5 := z.EncBinary()
46519				_ = yym5
46520				if false {
46521				} else {
46522					r.EncodeString(codecSelferC_UTF81234, string(x.MachineID))
46523				}
46524			}
46525			if yyr2 || yy2arr2 {
46526				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
46527				yym7 := z.EncBinary()
46528				_ = yym7
46529				if false {
46530				} else {
46531					r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID))
46532				}
46533			} else {
46534				z.EncSendContainerState(codecSelfer_containerMapKey1234)
46535				r.EncodeString(codecSelferC_UTF81234, string("systemUUID"))
46536				z.EncSendContainerState(codecSelfer_containerMapValue1234)
46537				yym8 := z.EncBinary()
46538				_ = yym8
46539				if false {
46540				} else {
46541					r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID))
46542				}
46543			}
46544			if yyr2 || yy2arr2 {
46545				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
46546				yym10 := z.EncBinary()
46547				_ = yym10
46548				if false {
46549				} else {
46550					r.EncodeString(codecSelferC_UTF81234, string(x.BootID))
46551				}
46552			} else {
46553				z.EncSendContainerState(codecSelfer_containerMapKey1234)
46554				r.EncodeString(codecSelferC_UTF81234, string("bootID"))
46555				z.EncSendContainerState(codecSelfer_containerMapValue1234)
46556				yym11 := z.EncBinary()
46557				_ = yym11
46558				if false {
46559				} else {
46560					r.EncodeString(codecSelferC_UTF81234, string(x.BootID))
46561				}
46562			}
46563			if yyr2 || yy2arr2 {
46564				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
46565				yym13 := z.EncBinary()
46566				_ = yym13
46567				if false {
46568				} else {
46569					r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion))
46570				}
46571			} else {
46572				z.EncSendContainerState(codecSelfer_containerMapKey1234)
46573				r.EncodeString(codecSelferC_UTF81234, string("kernelVersion"))
46574				z.EncSendContainerState(codecSelfer_containerMapValue1234)
46575				yym14 := z.EncBinary()
46576				_ = yym14
46577				if false {
46578				} else {
46579					r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion))
46580				}
46581			}
46582			if yyr2 || yy2arr2 {
46583				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
46584				yym16 := z.EncBinary()
46585				_ = yym16
46586				if false {
46587				} else {
46588					r.EncodeString(codecSelferC_UTF81234, string(x.OSImage))
46589				}
46590			} else {
46591				z.EncSendContainerState(codecSelfer_containerMapKey1234)
46592				r.EncodeString(codecSelferC_UTF81234, string("osImage"))
46593				z.EncSendContainerState(codecSelfer_containerMapValue1234)
46594				yym17 := z.EncBinary()
46595				_ = yym17
46596				if false {
46597				} else {
46598					r.EncodeString(codecSelferC_UTF81234, string(x.OSImage))
46599				}
46600			}
46601			if yyr2 || yy2arr2 {
46602				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
46603				yym19 := z.EncBinary()
46604				_ = yym19
46605				if false {
46606				} else {
46607					r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion))
46608				}
46609			} else {
46610				z.EncSendContainerState(codecSelfer_containerMapKey1234)
46611				r.EncodeString(codecSelferC_UTF81234, string("containerRuntimeVersion"))
46612				z.EncSendContainerState(codecSelfer_containerMapValue1234)
46613				yym20 := z.EncBinary()
46614				_ = yym20
46615				if false {
46616				} else {
46617					r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion))
46618				}
46619			}
46620			if yyr2 || yy2arr2 {
46621				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
46622				yym22 := z.EncBinary()
46623				_ = yym22
46624				if false {
46625				} else {
46626					r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion))
46627				}
46628			} else {
46629				z.EncSendContainerState(codecSelfer_containerMapKey1234)
46630				r.EncodeString(codecSelferC_UTF81234, string("kubeletVersion"))
46631				z.EncSendContainerState(codecSelfer_containerMapValue1234)
46632				yym23 := z.EncBinary()
46633				_ = yym23
46634				if false {
46635				} else {
46636					r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion))
46637				}
46638			}
46639			if yyr2 || yy2arr2 {
46640				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
46641				yym25 := z.EncBinary()
46642				_ = yym25
46643				if false {
46644				} else {
46645					r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion))
46646				}
46647			} else {
46648				z.EncSendContainerState(codecSelfer_containerMapKey1234)
46649				r.EncodeString(codecSelferC_UTF81234, string("kubeProxyVersion"))
46650				z.EncSendContainerState(codecSelfer_containerMapValue1234)
46651				yym26 := z.EncBinary()
46652				_ = yym26
46653				if false {
46654				} else {
46655					r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion))
46656				}
46657			}
46658			if yyr2 || yy2arr2 {
46659				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
46660				yym28 := z.EncBinary()
46661				_ = yym28
46662				if false {
46663				} else {
46664					r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem))
46665				}
46666			} else {
46667				z.EncSendContainerState(codecSelfer_containerMapKey1234)
46668				r.EncodeString(codecSelferC_UTF81234, string("operatingSystem"))
46669				z.EncSendContainerState(codecSelfer_containerMapValue1234)
46670				yym29 := z.EncBinary()
46671				_ = yym29
46672				if false {
46673				} else {
46674					r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem))
46675				}
46676			}
46677			if yyr2 || yy2arr2 {
46678				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
46679				yym31 := z.EncBinary()
46680				_ = yym31
46681				if false {
46682				} else {
46683					r.EncodeString(codecSelferC_UTF81234, string(x.Architecture))
46684				}
46685			} else {
46686				z.EncSendContainerState(codecSelfer_containerMapKey1234)
46687				r.EncodeString(codecSelferC_UTF81234, string("architecture"))
46688				z.EncSendContainerState(codecSelfer_containerMapValue1234)
46689				yym32 := z.EncBinary()
46690				_ = yym32
46691				if false {
46692				} else {
46693					r.EncodeString(codecSelferC_UTF81234, string(x.Architecture))
46694				}
46695			}
46696			if yyr2 || yy2arr2 {
46697				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
46698			} else {
46699				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
46700			}
46701		}
46702	}
46703}
46704
46705func (x *NodeSystemInfo) CodecDecodeSelf(d *codec1978.Decoder) {
46706	var h codecSelfer1234
46707	z, r := codec1978.GenHelperDecoder(d)
46708	_, _, _ = h, z, r
46709	yym1 := z.DecBinary()
46710	_ = yym1
46711	if false {
46712	} else if z.HasExtensions() && z.DecExt(x) {
46713	} else {
46714		yyct2 := r.ContainerType()
46715		if yyct2 == codecSelferValueTypeMap1234 {
46716			yyl2 := r.ReadMapStart()
46717			if yyl2 == 0 {
46718				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
46719			} else {
46720				x.codecDecodeSelfFromMap(yyl2, d)
46721			}
46722		} else if yyct2 == codecSelferValueTypeArray1234 {
46723			yyl2 := r.ReadArrayStart()
46724			if yyl2 == 0 {
46725				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
46726			} else {
46727				x.codecDecodeSelfFromArray(yyl2, d)
46728			}
46729		} else {
46730			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
46731		}
46732	}
46733}
46734
46735func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
46736	var h codecSelfer1234
46737	z, r := codec1978.GenHelperDecoder(d)
46738	_, _, _ = h, z, r
46739	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
46740	_ = yys3Slc
46741	var yyhl3 bool = l >= 0
46742	for yyj3 := 0; ; yyj3++ {
46743		if yyhl3 {
46744			if yyj3 >= l {
46745				break
46746			}
46747		} else {
46748			if r.CheckBreak() {
46749				break
46750			}
46751		}
46752		z.DecSendContainerState(codecSelfer_containerMapKey1234)
46753		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
46754		yys3 := string(yys3Slc)
46755		z.DecSendContainerState(codecSelfer_containerMapValue1234)
46756		switch yys3 {
46757		case "machineID":
46758			if r.TryDecodeAsNil() {
46759				x.MachineID = ""
46760			} else {
46761				yyv4 := &x.MachineID
46762				yym5 := z.DecBinary()
46763				_ = yym5
46764				if false {
46765				} else {
46766					*((*string)(yyv4)) = r.DecodeString()
46767				}
46768			}
46769		case "systemUUID":
46770			if r.TryDecodeAsNil() {
46771				x.SystemUUID = ""
46772			} else {
46773				yyv6 := &x.SystemUUID
46774				yym7 := z.DecBinary()
46775				_ = yym7
46776				if false {
46777				} else {
46778					*((*string)(yyv6)) = r.DecodeString()
46779				}
46780			}
46781		case "bootID":
46782			if r.TryDecodeAsNil() {
46783				x.BootID = ""
46784			} else {
46785				yyv8 := &x.BootID
46786				yym9 := z.DecBinary()
46787				_ = yym9
46788				if false {
46789				} else {
46790					*((*string)(yyv8)) = r.DecodeString()
46791				}
46792			}
46793		case "kernelVersion":
46794			if r.TryDecodeAsNil() {
46795				x.KernelVersion = ""
46796			} else {
46797				yyv10 := &x.KernelVersion
46798				yym11 := z.DecBinary()
46799				_ = yym11
46800				if false {
46801				} else {
46802					*((*string)(yyv10)) = r.DecodeString()
46803				}
46804			}
46805		case "osImage":
46806			if r.TryDecodeAsNil() {
46807				x.OSImage = ""
46808			} else {
46809				yyv12 := &x.OSImage
46810				yym13 := z.DecBinary()
46811				_ = yym13
46812				if false {
46813				} else {
46814					*((*string)(yyv12)) = r.DecodeString()
46815				}
46816			}
46817		case "containerRuntimeVersion":
46818			if r.TryDecodeAsNil() {
46819				x.ContainerRuntimeVersion = ""
46820			} else {
46821				yyv14 := &x.ContainerRuntimeVersion
46822				yym15 := z.DecBinary()
46823				_ = yym15
46824				if false {
46825				} else {
46826					*((*string)(yyv14)) = r.DecodeString()
46827				}
46828			}
46829		case "kubeletVersion":
46830			if r.TryDecodeAsNil() {
46831				x.KubeletVersion = ""
46832			} else {
46833				yyv16 := &x.KubeletVersion
46834				yym17 := z.DecBinary()
46835				_ = yym17
46836				if false {
46837				} else {
46838					*((*string)(yyv16)) = r.DecodeString()
46839				}
46840			}
46841		case "kubeProxyVersion":
46842			if r.TryDecodeAsNil() {
46843				x.KubeProxyVersion = ""
46844			} else {
46845				yyv18 := &x.KubeProxyVersion
46846				yym19 := z.DecBinary()
46847				_ = yym19
46848				if false {
46849				} else {
46850					*((*string)(yyv18)) = r.DecodeString()
46851				}
46852			}
46853		case "operatingSystem":
46854			if r.TryDecodeAsNil() {
46855				x.OperatingSystem = ""
46856			} else {
46857				yyv20 := &x.OperatingSystem
46858				yym21 := z.DecBinary()
46859				_ = yym21
46860				if false {
46861				} else {
46862					*((*string)(yyv20)) = r.DecodeString()
46863				}
46864			}
46865		case "architecture":
46866			if r.TryDecodeAsNil() {
46867				x.Architecture = ""
46868			} else {
46869				yyv22 := &x.Architecture
46870				yym23 := z.DecBinary()
46871				_ = yym23
46872				if false {
46873				} else {
46874					*((*string)(yyv22)) = r.DecodeString()
46875				}
46876			}
46877		default:
46878			z.DecStructFieldNotFound(-1, yys3)
46879		} // end switch yys3
46880	} // end for yyj3
46881	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
46882}
46883
46884func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
46885	var h codecSelfer1234
46886	z, r := codec1978.GenHelperDecoder(d)
46887	_, _, _ = h, z, r
46888	var yyj24 int
46889	var yyb24 bool
46890	var yyhl24 bool = l >= 0
46891	yyj24++
46892	if yyhl24 {
46893		yyb24 = yyj24 > l
46894	} else {
46895		yyb24 = r.CheckBreak()
46896	}
46897	if yyb24 {
46898		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
46899		return
46900	}
46901	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
46902	if r.TryDecodeAsNil() {
46903		x.MachineID = ""
46904	} else {
46905		yyv25 := &x.MachineID
46906		yym26 := z.DecBinary()
46907		_ = yym26
46908		if false {
46909		} else {
46910			*((*string)(yyv25)) = r.DecodeString()
46911		}
46912	}
46913	yyj24++
46914	if yyhl24 {
46915		yyb24 = yyj24 > l
46916	} else {
46917		yyb24 = r.CheckBreak()
46918	}
46919	if yyb24 {
46920		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
46921		return
46922	}
46923	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
46924	if r.TryDecodeAsNil() {
46925		x.SystemUUID = ""
46926	} else {
46927		yyv27 := &x.SystemUUID
46928		yym28 := z.DecBinary()
46929		_ = yym28
46930		if false {
46931		} else {
46932			*((*string)(yyv27)) = r.DecodeString()
46933		}
46934	}
46935	yyj24++
46936	if yyhl24 {
46937		yyb24 = yyj24 > l
46938	} else {
46939		yyb24 = r.CheckBreak()
46940	}
46941	if yyb24 {
46942		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
46943		return
46944	}
46945	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
46946	if r.TryDecodeAsNil() {
46947		x.BootID = ""
46948	} else {
46949		yyv29 := &x.BootID
46950		yym30 := z.DecBinary()
46951		_ = yym30
46952		if false {
46953		} else {
46954			*((*string)(yyv29)) = r.DecodeString()
46955		}
46956	}
46957	yyj24++
46958	if yyhl24 {
46959		yyb24 = yyj24 > l
46960	} else {
46961		yyb24 = r.CheckBreak()
46962	}
46963	if yyb24 {
46964		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
46965		return
46966	}
46967	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
46968	if r.TryDecodeAsNil() {
46969		x.KernelVersion = ""
46970	} else {
46971		yyv31 := &x.KernelVersion
46972		yym32 := z.DecBinary()
46973		_ = yym32
46974		if false {
46975		} else {
46976			*((*string)(yyv31)) = r.DecodeString()
46977		}
46978	}
46979	yyj24++
46980	if yyhl24 {
46981		yyb24 = yyj24 > l
46982	} else {
46983		yyb24 = r.CheckBreak()
46984	}
46985	if yyb24 {
46986		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
46987		return
46988	}
46989	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
46990	if r.TryDecodeAsNil() {
46991		x.OSImage = ""
46992	} else {
46993		yyv33 := &x.OSImage
46994		yym34 := z.DecBinary()
46995		_ = yym34
46996		if false {
46997		} else {
46998			*((*string)(yyv33)) = r.DecodeString()
46999		}
47000	}
47001	yyj24++
47002	if yyhl24 {
47003		yyb24 = yyj24 > l
47004	} else {
47005		yyb24 = r.CheckBreak()
47006	}
47007	if yyb24 {
47008		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47009		return
47010	}
47011	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
47012	if r.TryDecodeAsNil() {
47013		x.ContainerRuntimeVersion = ""
47014	} else {
47015		yyv35 := &x.ContainerRuntimeVersion
47016		yym36 := z.DecBinary()
47017		_ = yym36
47018		if false {
47019		} else {
47020			*((*string)(yyv35)) = r.DecodeString()
47021		}
47022	}
47023	yyj24++
47024	if yyhl24 {
47025		yyb24 = yyj24 > l
47026	} else {
47027		yyb24 = r.CheckBreak()
47028	}
47029	if yyb24 {
47030		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47031		return
47032	}
47033	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
47034	if r.TryDecodeAsNil() {
47035		x.KubeletVersion = ""
47036	} else {
47037		yyv37 := &x.KubeletVersion
47038		yym38 := z.DecBinary()
47039		_ = yym38
47040		if false {
47041		} else {
47042			*((*string)(yyv37)) = r.DecodeString()
47043		}
47044	}
47045	yyj24++
47046	if yyhl24 {
47047		yyb24 = yyj24 > l
47048	} else {
47049		yyb24 = r.CheckBreak()
47050	}
47051	if yyb24 {
47052		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47053		return
47054	}
47055	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
47056	if r.TryDecodeAsNil() {
47057		x.KubeProxyVersion = ""
47058	} else {
47059		yyv39 := &x.KubeProxyVersion
47060		yym40 := z.DecBinary()
47061		_ = yym40
47062		if false {
47063		} else {
47064			*((*string)(yyv39)) = r.DecodeString()
47065		}
47066	}
47067	yyj24++
47068	if yyhl24 {
47069		yyb24 = yyj24 > l
47070	} else {
47071		yyb24 = r.CheckBreak()
47072	}
47073	if yyb24 {
47074		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47075		return
47076	}
47077	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
47078	if r.TryDecodeAsNil() {
47079		x.OperatingSystem = ""
47080	} else {
47081		yyv41 := &x.OperatingSystem
47082		yym42 := z.DecBinary()
47083		_ = yym42
47084		if false {
47085		} else {
47086			*((*string)(yyv41)) = r.DecodeString()
47087		}
47088	}
47089	yyj24++
47090	if yyhl24 {
47091		yyb24 = yyj24 > l
47092	} else {
47093		yyb24 = r.CheckBreak()
47094	}
47095	if yyb24 {
47096		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47097		return
47098	}
47099	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
47100	if r.TryDecodeAsNil() {
47101		x.Architecture = ""
47102	} else {
47103		yyv43 := &x.Architecture
47104		yym44 := z.DecBinary()
47105		_ = yym44
47106		if false {
47107		} else {
47108			*((*string)(yyv43)) = r.DecodeString()
47109		}
47110	}
47111	for {
47112		yyj24++
47113		if yyhl24 {
47114			yyb24 = yyj24 > l
47115		} else {
47116			yyb24 = r.CheckBreak()
47117		}
47118		if yyb24 {
47119			break
47120		}
47121		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
47122		z.DecStructFieldNotFound(yyj24-1, "")
47123	}
47124	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47125}
47126
47127func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) {
47128	var h codecSelfer1234
47129	z, r := codec1978.GenHelperEncoder(e)
47130	_, _, _ = h, z, r
47131	if x == nil {
47132		r.EncodeNil()
47133	} else {
47134		yym1 := z.EncBinary()
47135		_ = yym1
47136		if false {
47137		} else if z.HasExtensions() && z.EncExt(x) {
47138		} else {
47139			yysep2 := !z.EncBinary()
47140			yy2arr2 := z.EncBasicHandle().StructToArray
47141			var yyq2 [10]bool
47142			_, _, _ = yysep2, yyq2, yy2arr2
47143			const yyr2 bool = false
47144			yyq2[0] = len(x.Capacity) != 0
47145			yyq2[1] = len(x.Allocatable) != 0
47146			yyq2[2] = x.Phase != ""
47147			yyq2[3] = len(x.Conditions) != 0
47148			yyq2[4] = len(x.Addresses) != 0
47149			yyq2[5] = true
47150			yyq2[6] = true
47151			yyq2[7] = len(x.Images) != 0
47152			yyq2[8] = len(x.VolumesInUse) != 0
47153			yyq2[9] = len(x.VolumesAttached) != 0
47154			var yynn2 int
47155			if yyr2 || yy2arr2 {
47156				r.EncodeArrayStart(10)
47157			} else {
47158				yynn2 = 0
47159				for _, b := range yyq2 {
47160					if b {
47161						yynn2++
47162					}
47163				}
47164				r.EncodeMapStart(yynn2)
47165				yynn2 = 0
47166			}
47167			if yyr2 || yy2arr2 {
47168				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
47169				if yyq2[0] {
47170					if x.Capacity == nil {
47171						r.EncodeNil()
47172					} else {
47173						x.Capacity.CodecEncodeSelf(e)
47174					}
47175				} else {
47176					r.EncodeNil()
47177				}
47178			} else {
47179				if yyq2[0] {
47180					z.EncSendContainerState(codecSelfer_containerMapKey1234)
47181					r.EncodeString(codecSelferC_UTF81234, string("capacity"))
47182					z.EncSendContainerState(codecSelfer_containerMapValue1234)
47183					if x.Capacity == nil {
47184						r.EncodeNil()
47185					} else {
47186						x.Capacity.CodecEncodeSelf(e)
47187					}
47188				}
47189			}
47190			if yyr2 || yy2arr2 {
47191				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
47192				if yyq2[1] {
47193					if x.Allocatable == nil {
47194						r.EncodeNil()
47195					} else {
47196						x.Allocatable.CodecEncodeSelf(e)
47197					}
47198				} else {
47199					r.EncodeNil()
47200				}
47201			} else {
47202				if yyq2[1] {
47203					z.EncSendContainerState(codecSelfer_containerMapKey1234)
47204					r.EncodeString(codecSelferC_UTF81234, string("allocatable"))
47205					z.EncSendContainerState(codecSelfer_containerMapValue1234)
47206					if x.Allocatable == nil {
47207						r.EncodeNil()
47208					} else {
47209						x.Allocatable.CodecEncodeSelf(e)
47210					}
47211				}
47212			}
47213			if yyr2 || yy2arr2 {
47214				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
47215				if yyq2[2] {
47216					x.Phase.CodecEncodeSelf(e)
47217				} else {
47218					r.EncodeString(codecSelferC_UTF81234, "")
47219				}
47220			} else {
47221				if yyq2[2] {
47222					z.EncSendContainerState(codecSelfer_containerMapKey1234)
47223					r.EncodeString(codecSelferC_UTF81234, string("phase"))
47224					z.EncSendContainerState(codecSelfer_containerMapValue1234)
47225					x.Phase.CodecEncodeSelf(e)
47226				}
47227			}
47228			if yyr2 || yy2arr2 {
47229				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
47230				if yyq2[3] {
47231					if x.Conditions == nil {
47232						r.EncodeNil()
47233					} else {
47234						yym13 := z.EncBinary()
47235						_ = yym13
47236						if false {
47237						} else {
47238							h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
47239						}
47240					}
47241				} else {
47242					r.EncodeNil()
47243				}
47244			} else {
47245				if yyq2[3] {
47246					z.EncSendContainerState(codecSelfer_containerMapKey1234)
47247					r.EncodeString(codecSelferC_UTF81234, string("conditions"))
47248					z.EncSendContainerState(codecSelfer_containerMapValue1234)
47249					if x.Conditions == nil {
47250						r.EncodeNil()
47251					} else {
47252						yym14 := z.EncBinary()
47253						_ = yym14
47254						if false {
47255						} else {
47256							h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
47257						}
47258					}
47259				}
47260			}
47261			if yyr2 || yy2arr2 {
47262				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
47263				if yyq2[4] {
47264					if x.Addresses == nil {
47265						r.EncodeNil()
47266					} else {
47267						yym16 := z.EncBinary()
47268						_ = yym16
47269						if false {
47270						} else {
47271							h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
47272						}
47273					}
47274				} else {
47275					r.EncodeNil()
47276				}
47277			} else {
47278				if yyq2[4] {
47279					z.EncSendContainerState(codecSelfer_containerMapKey1234)
47280					r.EncodeString(codecSelferC_UTF81234, string("addresses"))
47281					z.EncSendContainerState(codecSelfer_containerMapValue1234)
47282					if x.Addresses == nil {
47283						r.EncodeNil()
47284					} else {
47285						yym17 := z.EncBinary()
47286						_ = yym17
47287						if false {
47288						} else {
47289							h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
47290						}
47291					}
47292				}
47293			}
47294			if yyr2 || yy2arr2 {
47295				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
47296				if yyq2[5] {
47297					yy19 := &x.DaemonEndpoints
47298					yy19.CodecEncodeSelf(e)
47299				} else {
47300					r.EncodeNil()
47301				}
47302			} else {
47303				if yyq2[5] {
47304					z.EncSendContainerState(codecSelfer_containerMapKey1234)
47305					r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints"))
47306					z.EncSendContainerState(codecSelfer_containerMapValue1234)
47307					yy21 := &x.DaemonEndpoints
47308					yy21.CodecEncodeSelf(e)
47309				}
47310			}
47311			if yyr2 || yy2arr2 {
47312				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
47313				if yyq2[6] {
47314					yy24 := &x.NodeInfo
47315					yy24.CodecEncodeSelf(e)
47316				} else {
47317					r.EncodeNil()
47318				}
47319			} else {
47320				if yyq2[6] {
47321					z.EncSendContainerState(codecSelfer_containerMapKey1234)
47322					r.EncodeString(codecSelferC_UTF81234, string("nodeInfo"))
47323					z.EncSendContainerState(codecSelfer_containerMapValue1234)
47324					yy26 := &x.NodeInfo
47325					yy26.CodecEncodeSelf(e)
47326				}
47327			}
47328			if yyr2 || yy2arr2 {
47329				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
47330				if yyq2[7] {
47331					if x.Images == nil {
47332						r.EncodeNil()
47333					} else {
47334						yym29 := z.EncBinary()
47335						_ = yym29
47336						if false {
47337						} else {
47338							h.encSliceContainerImage(([]ContainerImage)(x.Images), e)
47339						}
47340					}
47341				} else {
47342					r.EncodeNil()
47343				}
47344			} else {
47345				if yyq2[7] {
47346					z.EncSendContainerState(codecSelfer_containerMapKey1234)
47347					r.EncodeString(codecSelferC_UTF81234, string("images"))
47348					z.EncSendContainerState(codecSelfer_containerMapValue1234)
47349					if x.Images == nil {
47350						r.EncodeNil()
47351					} else {
47352						yym30 := z.EncBinary()
47353						_ = yym30
47354						if false {
47355						} else {
47356							h.encSliceContainerImage(([]ContainerImage)(x.Images), e)
47357						}
47358					}
47359				}
47360			}
47361			if yyr2 || yy2arr2 {
47362				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
47363				if yyq2[8] {
47364					if x.VolumesInUse == nil {
47365						r.EncodeNil()
47366					} else {
47367						yym32 := z.EncBinary()
47368						_ = yym32
47369						if false {
47370						} else {
47371							h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e)
47372						}
47373					}
47374				} else {
47375					r.EncodeNil()
47376				}
47377			} else {
47378				if yyq2[8] {
47379					z.EncSendContainerState(codecSelfer_containerMapKey1234)
47380					r.EncodeString(codecSelferC_UTF81234, string("volumesInUse"))
47381					z.EncSendContainerState(codecSelfer_containerMapValue1234)
47382					if x.VolumesInUse == nil {
47383						r.EncodeNil()
47384					} else {
47385						yym33 := z.EncBinary()
47386						_ = yym33
47387						if false {
47388						} else {
47389							h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e)
47390						}
47391					}
47392				}
47393			}
47394			if yyr2 || yy2arr2 {
47395				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
47396				if yyq2[9] {
47397					if x.VolumesAttached == nil {
47398						r.EncodeNil()
47399					} else {
47400						yym35 := z.EncBinary()
47401						_ = yym35
47402						if false {
47403						} else {
47404							h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e)
47405						}
47406					}
47407				} else {
47408					r.EncodeNil()
47409				}
47410			} else {
47411				if yyq2[9] {
47412					z.EncSendContainerState(codecSelfer_containerMapKey1234)
47413					r.EncodeString(codecSelferC_UTF81234, string("volumesAttached"))
47414					z.EncSendContainerState(codecSelfer_containerMapValue1234)
47415					if x.VolumesAttached == nil {
47416						r.EncodeNil()
47417					} else {
47418						yym36 := z.EncBinary()
47419						_ = yym36
47420						if false {
47421						} else {
47422							h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e)
47423						}
47424					}
47425				}
47426			}
47427			if yyr2 || yy2arr2 {
47428				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
47429			} else {
47430				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
47431			}
47432		}
47433	}
47434}
47435
47436func (x *NodeStatus) CodecDecodeSelf(d *codec1978.Decoder) {
47437	var h codecSelfer1234
47438	z, r := codec1978.GenHelperDecoder(d)
47439	_, _, _ = h, z, r
47440	yym1 := z.DecBinary()
47441	_ = yym1
47442	if false {
47443	} else if z.HasExtensions() && z.DecExt(x) {
47444	} else {
47445		yyct2 := r.ContainerType()
47446		if yyct2 == codecSelferValueTypeMap1234 {
47447			yyl2 := r.ReadMapStart()
47448			if yyl2 == 0 {
47449				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
47450			} else {
47451				x.codecDecodeSelfFromMap(yyl2, d)
47452			}
47453		} else if yyct2 == codecSelferValueTypeArray1234 {
47454			yyl2 := r.ReadArrayStart()
47455			if yyl2 == 0 {
47456				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47457			} else {
47458				x.codecDecodeSelfFromArray(yyl2, d)
47459			}
47460		} else {
47461			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
47462		}
47463	}
47464}
47465
47466func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
47467	var h codecSelfer1234
47468	z, r := codec1978.GenHelperDecoder(d)
47469	_, _, _ = h, z, r
47470	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
47471	_ = yys3Slc
47472	var yyhl3 bool = l >= 0
47473	for yyj3 := 0; ; yyj3++ {
47474		if yyhl3 {
47475			if yyj3 >= l {
47476				break
47477			}
47478		} else {
47479			if r.CheckBreak() {
47480				break
47481			}
47482		}
47483		z.DecSendContainerState(codecSelfer_containerMapKey1234)
47484		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
47485		yys3 := string(yys3Slc)
47486		z.DecSendContainerState(codecSelfer_containerMapValue1234)
47487		switch yys3 {
47488		case "capacity":
47489			if r.TryDecodeAsNil() {
47490				x.Capacity = nil
47491			} else {
47492				yyv4 := &x.Capacity
47493				yyv4.CodecDecodeSelf(d)
47494			}
47495		case "allocatable":
47496			if r.TryDecodeAsNil() {
47497				x.Allocatable = nil
47498			} else {
47499				yyv5 := &x.Allocatable
47500				yyv5.CodecDecodeSelf(d)
47501			}
47502		case "phase":
47503			if r.TryDecodeAsNil() {
47504				x.Phase = ""
47505			} else {
47506				yyv6 := &x.Phase
47507				yyv6.CodecDecodeSelf(d)
47508			}
47509		case "conditions":
47510			if r.TryDecodeAsNil() {
47511				x.Conditions = nil
47512			} else {
47513				yyv7 := &x.Conditions
47514				yym8 := z.DecBinary()
47515				_ = yym8
47516				if false {
47517				} else {
47518					h.decSliceNodeCondition((*[]NodeCondition)(yyv7), d)
47519				}
47520			}
47521		case "addresses":
47522			if r.TryDecodeAsNil() {
47523				x.Addresses = nil
47524			} else {
47525				yyv9 := &x.Addresses
47526				yym10 := z.DecBinary()
47527				_ = yym10
47528				if false {
47529				} else {
47530					h.decSliceNodeAddress((*[]NodeAddress)(yyv9), d)
47531				}
47532			}
47533		case "daemonEndpoints":
47534			if r.TryDecodeAsNil() {
47535				x.DaemonEndpoints = NodeDaemonEndpoints{}
47536			} else {
47537				yyv11 := &x.DaemonEndpoints
47538				yyv11.CodecDecodeSelf(d)
47539			}
47540		case "nodeInfo":
47541			if r.TryDecodeAsNil() {
47542				x.NodeInfo = NodeSystemInfo{}
47543			} else {
47544				yyv12 := &x.NodeInfo
47545				yyv12.CodecDecodeSelf(d)
47546			}
47547		case "images":
47548			if r.TryDecodeAsNil() {
47549				x.Images = nil
47550			} else {
47551				yyv13 := &x.Images
47552				yym14 := z.DecBinary()
47553				_ = yym14
47554				if false {
47555				} else {
47556					h.decSliceContainerImage((*[]ContainerImage)(yyv13), d)
47557				}
47558			}
47559		case "volumesInUse":
47560			if r.TryDecodeAsNil() {
47561				x.VolumesInUse = nil
47562			} else {
47563				yyv15 := &x.VolumesInUse
47564				yym16 := z.DecBinary()
47565				_ = yym16
47566				if false {
47567				} else {
47568					h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv15), d)
47569				}
47570			}
47571		case "volumesAttached":
47572			if r.TryDecodeAsNil() {
47573				x.VolumesAttached = nil
47574			} else {
47575				yyv17 := &x.VolumesAttached
47576				yym18 := z.DecBinary()
47577				_ = yym18
47578				if false {
47579				} else {
47580					h.decSliceAttachedVolume((*[]AttachedVolume)(yyv17), d)
47581				}
47582			}
47583		default:
47584			z.DecStructFieldNotFound(-1, yys3)
47585		} // end switch yys3
47586	} // end for yyj3
47587	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
47588}
47589
47590func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
47591	var h codecSelfer1234
47592	z, r := codec1978.GenHelperDecoder(d)
47593	_, _, _ = h, z, r
47594	var yyj19 int
47595	var yyb19 bool
47596	var yyhl19 bool = l >= 0
47597	yyj19++
47598	if yyhl19 {
47599		yyb19 = yyj19 > l
47600	} else {
47601		yyb19 = r.CheckBreak()
47602	}
47603	if yyb19 {
47604		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47605		return
47606	}
47607	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
47608	if r.TryDecodeAsNil() {
47609		x.Capacity = nil
47610	} else {
47611		yyv20 := &x.Capacity
47612		yyv20.CodecDecodeSelf(d)
47613	}
47614	yyj19++
47615	if yyhl19 {
47616		yyb19 = yyj19 > l
47617	} else {
47618		yyb19 = r.CheckBreak()
47619	}
47620	if yyb19 {
47621		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47622		return
47623	}
47624	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
47625	if r.TryDecodeAsNil() {
47626		x.Allocatable = nil
47627	} else {
47628		yyv21 := &x.Allocatable
47629		yyv21.CodecDecodeSelf(d)
47630	}
47631	yyj19++
47632	if yyhl19 {
47633		yyb19 = yyj19 > l
47634	} else {
47635		yyb19 = r.CheckBreak()
47636	}
47637	if yyb19 {
47638		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47639		return
47640	}
47641	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
47642	if r.TryDecodeAsNil() {
47643		x.Phase = ""
47644	} else {
47645		yyv22 := &x.Phase
47646		yyv22.CodecDecodeSelf(d)
47647	}
47648	yyj19++
47649	if yyhl19 {
47650		yyb19 = yyj19 > l
47651	} else {
47652		yyb19 = r.CheckBreak()
47653	}
47654	if yyb19 {
47655		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47656		return
47657	}
47658	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
47659	if r.TryDecodeAsNil() {
47660		x.Conditions = nil
47661	} else {
47662		yyv23 := &x.Conditions
47663		yym24 := z.DecBinary()
47664		_ = yym24
47665		if false {
47666		} else {
47667			h.decSliceNodeCondition((*[]NodeCondition)(yyv23), d)
47668		}
47669	}
47670	yyj19++
47671	if yyhl19 {
47672		yyb19 = yyj19 > l
47673	} else {
47674		yyb19 = r.CheckBreak()
47675	}
47676	if yyb19 {
47677		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47678		return
47679	}
47680	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
47681	if r.TryDecodeAsNil() {
47682		x.Addresses = nil
47683	} else {
47684		yyv25 := &x.Addresses
47685		yym26 := z.DecBinary()
47686		_ = yym26
47687		if false {
47688		} else {
47689			h.decSliceNodeAddress((*[]NodeAddress)(yyv25), d)
47690		}
47691	}
47692	yyj19++
47693	if yyhl19 {
47694		yyb19 = yyj19 > l
47695	} else {
47696		yyb19 = r.CheckBreak()
47697	}
47698	if yyb19 {
47699		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47700		return
47701	}
47702	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
47703	if r.TryDecodeAsNil() {
47704		x.DaemonEndpoints = NodeDaemonEndpoints{}
47705	} else {
47706		yyv27 := &x.DaemonEndpoints
47707		yyv27.CodecDecodeSelf(d)
47708	}
47709	yyj19++
47710	if yyhl19 {
47711		yyb19 = yyj19 > l
47712	} else {
47713		yyb19 = r.CheckBreak()
47714	}
47715	if yyb19 {
47716		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47717		return
47718	}
47719	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
47720	if r.TryDecodeAsNil() {
47721		x.NodeInfo = NodeSystemInfo{}
47722	} else {
47723		yyv28 := &x.NodeInfo
47724		yyv28.CodecDecodeSelf(d)
47725	}
47726	yyj19++
47727	if yyhl19 {
47728		yyb19 = yyj19 > l
47729	} else {
47730		yyb19 = r.CheckBreak()
47731	}
47732	if yyb19 {
47733		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47734		return
47735	}
47736	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
47737	if r.TryDecodeAsNil() {
47738		x.Images = nil
47739	} else {
47740		yyv29 := &x.Images
47741		yym30 := z.DecBinary()
47742		_ = yym30
47743		if false {
47744		} else {
47745			h.decSliceContainerImage((*[]ContainerImage)(yyv29), d)
47746		}
47747	}
47748	yyj19++
47749	if yyhl19 {
47750		yyb19 = yyj19 > l
47751	} else {
47752		yyb19 = r.CheckBreak()
47753	}
47754	if yyb19 {
47755		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47756		return
47757	}
47758	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
47759	if r.TryDecodeAsNil() {
47760		x.VolumesInUse = nil
47761	} else {
47762		yyv31 := &x.VolumesInUse
47763		yym32 := z.DecBinary()
47764		_ = yym32
47765		if false {
47766		} else {
47767			h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv31), d)
47768		}
47769	}
47770	yyj19++
47771	if yyhl19 {
47772		yyb19 = yyj19 > l
47773	} else {
47774		yyb19 = r.CheckBreak()
47775	}
47776	if yyb19 {
47777		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47778		return
47779	}
47780	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
47781	if r.TryDecodeAsNil() {
47782		x.VolumesAttached = nil
47783	} else {
47784		yyv33 := &x.VolumesAttached
47785		yym34 := z.DecBinary()
47786		_ = yym34
47787		if false {
47788		} else {
47789			h.decSliceAttachedVolume((*[]AttachedVolume)(yyv33), d)
47790		}
47791	}
47792	for {
47793		yyj19++
47794		if yyhl19 {
47795			yyb19 = yyj19 > l
47796		} else {
47797			yyb19 = r.CheckBreak()
47798		}
47799		if yyb19 {
47800			break
47801		}
47802		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
47803		z.DecStructFieldNotFound(yyj19-1, "")
47804	}
47805	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47806}
47807
47808func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) {
47809	var h codecSelfer1234
47810	z, r := codec1978.GenHelperEncoder(e)
47811	_, _, _ = h, z, r
47812	yym1 := z.EncBinary()
47813	_ = yym1
47814	if false {
47815	} else if z.HasExtensions() && z.EncExt(x) {
47816	} else {
47817		r.EncodeString(codecSelferC_UTF81234, string(x))
47818	}
47819}
47820
47821func (x *UniqueVolumeName) CodecDecodeSelf(d *codec1978.Decoder) {
47822	var h codecSelfer1234
47823	z, r := codec1978.GenHelperDecoder(d)
47824	_, _, _ = h, z, r
47825	yym1 := z.DecBinary()
47826	_ = yym1
47827	if false {
47828	} else if z.HasExtensions() && z.DecExt(x) {
47829	} else {
47830		*((*string)(x)) = r.DecodeString()
47831	}
47832}
47833
47834func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) {
47835	var h codecSelfer1234
47836	z, r := codec1978.GenHelperEncoder(e)
47837	_, _, _ = h, z, r
47838	if x == nil {
47839		r.EncodeNil()
47840	} else {
47841		yym1 := z.EncBinary()
47842		_ = yym1
47843		if false {
47844		} else if z.HasExtensions() && z.EncExt(x) {
47845		} else {
47846			yysep2 := !z.EncBinary()
47847			yy2arr2 := z.EncBasicHandle().StructToArray
47848			var yyq2 [2]bool
47849			_, _, _ = yysep2, yyq2, yy2arr2
47850			const yyr2 bool = false
47851			var yynn2 int
47852			if yyr2 || yy2arr2 {
47853				r.EncodeArrayStart(2)
47854			} else {
47855				yynn2 = 2
47856				for _, b := range yyq2 {
47857					if b {
47858						yynn2++
47859					}
47860				}
47861				r.EncodeMapStart(yynn2)
47862				yynn2 = 0
47863			}
47864			if yyr2 || yy2arr2 {
47865				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
47866				x.Name.CodecEncodeSelf(e)
47867			} else {
47868				z.EncSendContainerState(codecSelfer_containerMapKey1234)
47869				r.EncodeString(codecSelferC_UTF81234, string("name"))
47870				z.EncSendContainerState(codecSelfer_containerMapValue1234)
47871				x.Name.CodecEncodeSelf(e)
47872			}
47873			if yyr2 || yy2arr2 {
47874				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
47875				yym7 := z.EncBinary()
47876				_ = yym7
47877				if false {
47878				} else {
47879					r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath))
47880				}
47881			} else {
47882				z.EncSendContainerState(codecSelfer_containerMapKey1234)
47883				r.EncodeString(codecSelferC_UTF81234, string("devicePath"))
47884				z.EncSendContainerState(codecSelfer_containerMapValue1234)
47885				yym8 := z.EncBinary()
47886				_ = yym8
47887				if false {
47888				} else {
47889					r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath))
47890				}
47891			}
47892			if yyr2 || yy2arr2 {
47893				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
47894			} else {
47895				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
47896			}
47897		}
47898	}
47899}
47900
47901func (x *AttachedVolume) CodecDecodeSelf(d *codec1978.Decoder) {
47902	var h codecSelfer1234
47903	z, r := codec1978.GenHelperDecoder(d)
47904	_, _, _ = h, z, r
47905	yym1 := z.DecBinary()
47906	_ = yym1
47907	if false {
47908	} else if z.HasExtensions() && z.DecExt(x) {
47909	} else {
47910		yyct2 := r.ContainerType()
47911		if yyct2 == codecSelferValueTypeMap1234 {
47912			yyl2 := r.ReadMapStart()
47913			if yyl2 == 0 {
47914				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
47915			} else {
47916				x.codecDecodeSelfFromMap(yyl2, d)
47917			}
47918		} else if yyct2 == codecSelferValueTypeArray1234 {
47919			yyl2 := r.ReadArrayStart()
47920			if yyl2 == 0 {
47921				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47922			} else {
47923				x.codecDecodeSelfFromArray(yyl2, d)
47924			}
47925		} else {
47926			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
47927		}
47928	}
47929}
47930
47931func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
47932	var h codecSelfer1234
47933	z, r := codec1978.GenHelperDecoder(d)
47934	_, _, _ = h, z, r
47935	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
47936	_ = yys3Slc
47937	var yyhl3 bool = l >= 0
47938	for yyj3 := 0; ; yyj3++ {
47939		if yyhl3 {
47940			if yyj3 >= l {
47941				break
47942			}
47943		} else {
47944			if r.CheckBreak() {
47945				break
47946			}
47947		}
47948		z.DecSendContainerState(codecSelfer_containerMapKey1234)
47949		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
47950		yys3 := string(yys3Slc)
47951		z.DecSendContainerState(codecSelfer_containerMapValue1234)
47952		switch yys3 {
47953		case "name":
47954			if r.TryDecodeAsNil() {
47955				x.Name = ""
47956			} else {
47957				yyv4 := &x.Name
47958				yyv4.CodecDecodeSelf(d)
47959			}
47960		case "devicePath":
47961			if r.TryDecodeAsNil() {
47962				x.DevicePath = ""
47963			} else {
47964				yyv5 := &x.DevicePath
47965				yym6 := z.DecBinary()
47966				_ = yym6
47967				if false {
47968				} else {
47969					*((*string)(yyv5)) = r.DecodeString()
47970				}
47971			}
47972		default:
47973			z.DecStructFieldNotFound(-1, yys3)
47974		} // end switch yys3
47975	} // end for yyj3
47976	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
47977}
47978
47979func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
47980	var h codecSelfer1234
47981	z, r := codec1978.GenHelperDecoder(d)
47982	_, _, _ = h, z, r
47983	var yyj7 int
47984	var yyb7 bool
47985	var yyhl7 bool = l >= 0
47986	yyj7++
47987	if yyhl7 {
47988		yyb7 = yyj7 > l
47989	} else {
47990		yyb7 = r.CheckBreak()
47991	}
47992	if yyb7 {
47993		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
47994		return
47995	}
47996	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
47997	if r.TryDecodeAsNil() {
47998		x.Name = ""
47999	} else {
48000		yyv8 := &x.Name
48001		yyv8.CodecDecodeSelf(d)
48002	}
48003	yyj7++
48004	if yyhl7 {
48005		yyb7 = yyj7 > l
48006	} else {
48007		yyb7 = r.CheckBreak()
48008	}
48009	if yyb7 {
48010		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
48011		return
48012	}
48013	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
48014	if r.TryDecodeAsNil() {
48015		x.DevicePath = ""
48016	} else {
48017		yyv9 := &x.DevicePath
48018		yym10 := z.DecBinary()
48019		_ = yym10
48020		if false {
48021		} else {
48022			*((*string)(yyv9)) = r.DecodeString()
48023		}
48024	}
48025	for {
48026		yyj7++
48027		if yyhl7 {
48028			yyb7 = yyj7 > l
48029		} else {
48030			yyb7 = r.CheckBreak()
48031		}
48032		if yyb7 {
48033			break
48034		}
48035		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
48036		z.DecStructFieldNotFound(yyj7-1, "")
48037	}
48038	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
48039}
48040
48041func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) {
48042	var h codecSelfer1234
48043	z, r := codec1978.GenHelperEncoder(e)
48044	_, _, _ = h, z, r
48045	if x == nil {
48046		r.EncodeNil()
48047	} else {
48048		yym1 := z.EncBinary()
48049		_ = yym1
48050		if false {
48051		} else if z.HasExtensions() && z.EncExt(x) {
48052		} else {
48053			yysep2 := !z.EncBinary()
48054			yy2arr2 := z.EncBasicHandle().StructToArray
48055			var yyq2 [1]bool
48056			_, _, _ = yysep2, yyq2, yy2arr2
48057			const yyr2 bool = false
48058			yyq2[0] = len(x.PreferAvoidPods) != 0
48059			var yynn2 int
48060			if yyr2 || yy2arr2 {
48061				r.EncodeArrayStart(1)
48062			} else {
48063				yynn2 = 0
48064				for _, b := range yyq2 {
48065					if b {
48066						yynn2++
48067					}
48068				}
48069				r.EncodeMapStart(yynn2)
48070				yynn2 = 0
48071			}
48072			if yyr2 || yy2arr2 {
48073				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
48074				if yyq2[0] {
48075					if x.PreferAvoidPods == nil {
48076						r.EncodeNil()
48077					} else {
48078						yym4 := z.EncBinary()
48079						_ = yym4
48080						if false {
48081						} else {
48082							h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e)
48083						}
48084					}
48085				} else {
48086					r.EncodeNil()
48087				}
48088			} else {
48089				if yyq2[0] {
48090					z.EncSendContainerState(codecSelfer_containerMapKey1234)
48091					r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods"))
48092					z.EncSendContainerState(codecSelfer_containerMapValue1234)
48093					if x.PreferAvoidPods == nil {
48094						r.EncodeNil()
48095					} else {
48096						yym5 := z.EncBinary()
48097						_ = yym5
48098						if false {
48099						} else {
48100							h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e)
48101						}
48102					}
48103				}
48104			}
48105			if yyr2 || yy2arr2 {
48106				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
48107			} else {
48108				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
48109			}
48110		}
48111	}
48112}
48113
48114func (x *AvoidPods) CodecDecodeSelf(d *codec1978.Decoder) {
48115	var h codecSelfer1234
48116	z, r := codec1978.GenHelperDecoder(d)
48117	_, _, _ = h, z, r
48118	yym1 := z.DecBinary()
48119	_ = yym1
48120	if false {
48121	} else if z.HasExtensions() && z.DecExt(x) {
48122	} else {
48123		yyct2 := r.ContainerType()
48124		if yyct2 == codecSelferValueTypeMap1234 {
48125			yyl2 := r.ReadMapStart()
48126			if yyl2 == 0 {
48127				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
48128			} else {
48129				x.codecDecodeSelfFromMap(yyl2, d)
48130			}
48131		} else if yyct2 == codecSelferValueTypeArray1234 {
48132			yyl2 := r.ReadArrayStart()
48133			if yyl2 == 0 {
48134				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
48135			} else {
48136				x.codecDecodeSelfFromArray(yyl2, d)
48137			}
48138		} else {
48139			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
48140		}
48141	}
48142}
48143
48144func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
48145	var h codecSelfer1234
48146	z, r := codec1978.GenHelperDecoder(d)
48147	_, _, _ = h, z, r
48148	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
48149	_ = yys3Slc
48150	var yyhl3 bool = l >= 0
48151	for yyj3 := 0; ; yyj3++ {
48152		if yyhl3 {
48153			if yyj3 >= l {
48154				break
48155			}
48156		} else {
48157			if r.CheckBreak() {
48158				break
48159			}
48160		}
48161		z.DecSendContainerState(codecSelfer_containerMapKey1234)
48162		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
48163		yys3 := string(yys3Slc)
48164		z.DecSendContainerState(codecSelfer_containerMapValue1234)
48165		switch yys3 {
48166		case "preferAvoidPods":
48167			if r.TryDecodeAsNil() {
48168				x.PreferAvoidPods = nil
48169			} else {
48170				yyv4 := &x.PreferAvoidPods
48171				yym5 := z.DecBinary()
48172				_ = yym5
48173				if false {
48174				} else {
48175					h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv4), d)
48176				}
48177			}
48178		default:
48179			z.DecStructFieldNotFound(-1, yys3)
48180		} // end switch yys3
48181	} // end for yyj3
48182	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
48183}
48184
48185func (x *AvoidPods) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
48186	var h codecSelfer1234
48187	z, r := codec1978.GenHelperDecoder(d)
48188	_, _, _ = h, z, r
48189	var yyj6 int
48190	var yyb6 bool
48191	var yyhl6 bool = l >= 0
48192	yyj6++
48193	if yyhl6 {
48194		yyb6 = yyj6 > l
48195	} else {
48196		yyb6 = r.CheckBreak()
48197	}
48198	if yyb6 {
48199		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
48200		return
48201	}
48202	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
48203	if r.TryDecodeAsNil() {
48204		x.PreferAvoidPods = nil
48205	} else {
48206		yyv7 := &x.PreferAvoidPods
48207		yym8 := z.DecBinary()
48208		_ = yym8
48209		if false {
48210		} else {
48211			h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv7), d)
48212		}
48213	}
48214	for {
48215		yyj6++
48216		if yyhl6 {
48217			yyb6 = yyj6 > l
48218		} else {
48219			yyb6 = r.CheckBreak()
48220		}
48221		if yyb6 {
48222			break
48223		}
48224		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
48225		z.DecStructFieldNotFound(yyj6-1, "")
48226	}
48227	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
48228}
48229
48230func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) {
48231	var h codecSelfer1234
48232	z, r := codec1978.GenHelperEncoder(e)
48233	_, _, _ = h, z, r
48234	if x == nil {
48235		r.EncodeNil()
48236	} else {
48237		yym1 := z.EncBinary()
48238		_ = yym1
48239		if false {
48240		} else if z.HasExtensions() && z.EncExt(x) {
48241		} else {
48242			yysep2 := !z.EncBinary()
48243			yy2arr2 := z.EncBasicHandle().StructToArray
48244			var yyq2 [4]bool
48245			_, _, _ = yysep2, yyq2, yy2arr2
48246			const yyr2 bool = false
48247			yyq2[1] = true
48248			yyq2[2] = x.Reason != ""
48249			yyq2[3] = x.Message != ""
48250			var yynn2 int
48251			if yyr2 || yy2arr2 {
48252				r.EncodeArrayStart(4)
48253			} else {
48254				yynn2 = 1
48255				for _, b := range yyq2 {
48256					if b {
48257						yynn2++
48258					}
48259				}
48260				r.EncodeMapStart(yynn2)
48261				yynn2 = 0
48262			}
48263			if yyr2 || yy2arr2 {
48264				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
48265				yy4 := &x.PodSignature
48266				yy4.CodecEncodeSelf(e)
48267			} else {
48268				z.EncSendContainerState(codecSelfer_containerMapKey1234)
48269				r.EncodeString(codecSelferC_UTF81234, string("podSignature"))
48270				z.EncSendContainerState(codecSelfer_containerMapValue1234)
48271				yy6 := &x.PodSignature
48272				yy6.CodecEncodeSelf(e)
48273			}
48274			if yyr2 || yy2arr2 {
48275				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
48276				if yyq2[1] {
48277					yy9 := &x.EvictionTime
48278					yym10 := z.EncBinary()
48279					_ = yym10
48280					if false {
48281					} else if z.HasExtensions() && z.EncExt(yy9) {
48282					} else if yym10 {
48283						z.EncBinaryMarshal(yy9)
48284					} else if !yym10 && z.IsJSONHandle() {
48285						z.EncJSONMarshal(yy9)
48286					} else {
48287						z.EncFallback(yy9)
48288					}
48289				} else {
48290					r.EncodeNil()
48291				}
48292			} else {
48293				if yyq2[1] {
48294					z.EncSendContainerState(codecSelfer_containerMapKey1234)
48295					r.EncodeString(codecSelferC_UTF81234, string("evictionTime"))
48296					z.EncSendContainerState(codecSelfer_containerMapValue1234)
48297					yy11 := &x.EvictionTime
48298					yym12 := z.EncBinary()
48299					_ = yym12
48300					if false {
48301					} else if z.HasExtensions() && z.EncExt(yy11) {
48302					} else if yym12 {
48303						z.EncBinaryMarshal(yy11)
48304					} else if !yym12 && z.IsJSONHandle() {
48305						z.EncJSONMarshal(yy11)
48306					} else {
48307						z.EncFallback(yy11)
48308					}
48309				}
48310			}
48311			if yyr2 || yy2arr2 {
48312				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
48313				if yyq2[2] {
48314					yym14 := z.EncBinary()
48315					_ = yym14
48316					if false {
48317					} else {
48318						r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
48319					}
48320				} else {
48321					r.EncodeString(codecSelferC_UTF81234, "")
48322				}
48323			} else {
48324				if yyq2[2] {
48325					z.EncSendContainerState(codecSelfer_containerMapKey1234)
48326					r.EncodeString(codecSelferC_UTF81234, string("reason"))
48327					z.EncSendContainerState(codecSelfer_containerMapValue1234)
48328					yym15 := z.EncBinary()
48329					_ = yym15
48330					if false {
48331					} else {
48332						r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
48333					}
48334				}
48335			}
48336			if yyr2 || yy2arr2 {
48337				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
48338				if yyq2[3] {
48339					yym17 := z.EncBinary()
48340					_ = yym17
48341					if false {
48342					} else {
48343						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
48344					}
48345				} else {
48346					r.EncodeString(codecSelferC_UTF81234, "")
48347				}
48348			} else {
48349				if yyq2[3] {
48350					z.EncSendContainerState(codecSelfer_containerMapKey1234)
48351					r.EncodeString(codecSelferC_UTF81234, string("message"))
48352					z.EncSendContainerState(codecSelfer_containerMapValue1234)
48353					yym18 := z.EncBinary()
48354					_ = yym18
48355					if false {
48356					} else {
48357						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
48358					}
48359				}
48360			}
48361			if yyr2 || yy2arr2 {
48362				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
48363			} else {
48364				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
48365			}
48366		}
48367	}
48368}
48369
48370func (x *PreferAvoidPodsEntry) CodecDecodeSelf(d *codec1978.Decoder) {
48371	var h codecSelfer1234
48372	z, r := codec1978.GenHelperDecoder(d)
48373	_, _, _ = h, z, r
48374	yym1 := z.DecBinary()
48375	_ = yym1
48376	if false {
48377	} else if z.HasExtensions() && z.DecExt(x) {
48378	} else {
48379		yyct2 := r.ContainerType()
48380		if yyct2 == codecSelferValueTypeMap1234 {
48381			yyl2 := r.ReadMapStart()
48382			if yyl2 == 0 {
48383				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
48384			} else {
48385				x.codecDecodeSelfFromMap(yyl2, d)
48386			}
48387		} else if yyct2 == codecSelferValueTypeArray1234 {
48388			yyl2 := r.ReadArrayStart()
48389			if yyl2 == 0 {
48390				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
48391			} else {
48392				x.codecDecodeSelfFromArray(yyl2, d)
48393			}
48394		} else {
48395			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
48396		}
48397	}
48398}
48399
48400func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
48401	var h codecSelfer1234
48402	z, r := codec1978.GenHelperDecoder(d)
48403	_, _, _ = h, z, r
48404	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
48405	_ = yys3Slc
48406	var yyhl3 bool = l >= 0
48407	for yyj3 := 0; ; yyj3++ {
48408		if yyhl3 {
48409			if yyj3 >= l {
48410				break
48411			}
48412		} else {
48413			if r.CheckBreak() {
48414				break
48415			}
48416		}
48417		z.DecSendContainerState(codecSelfer_containerMapKey1234)
48418		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
48419		yys3 := string(yys3Slc)
48420		z.DecSendContainerState(codecSelfer_containerMapValue1234)
48421		switch yys3 {
48422		case "podSignature":
48423			if r.TryDecodeAsNil() {
48424				x.PodSignature = PodSignature{}
48425			} else {
48426				yyv4 := &x.PodSignature
48427				yyv4.CodecDecodeSelf(d)
48428			}
48429		case "evictionTime":
48430			if r.TryDecodeAsNil() {
48431				x.EvictionTime = pkg2_v1.Time{}
48432			} else {
48433				yyv5 := &x.EvictionTime
48434				yym6 := z.DecBinary()
48435				_ = yym6
48436				if false {
48437				} else if z.HasExtensions() && z.DecExt(yyv5) {
48438				} else if yym6 {
48439					z.DecBinaryUnmarshal(yyv5)
48440				} else if !yym6 && z.IsJSONHandle() {
48441					z.DecJSONUnmarshal(yyv5)
48442				} else {
48443					z.DecFallback(yyv5, false)
48444				}
48445			}
48446		case "reason":
48447			if r.TryDecodeAsNil() {
48448				x.Reason = ""
48449			} else {
48450				yyv7 := &x.Reason
48451				yym8 := z.DecBinary()
48452				_ = yym8
48453				if false {
48454				} else {
48455					*((*string)(yyv7)) = r.DecodeString()
48456				}
48457			}
48458		case "message":
48459			if r.TryDecodeAsNil() {
48460				x.Message = ""
48461			} else {
48462				yyv9 := &x.Message
48463				yym10 := z.DecBinary()
48464				_ = yym10
48465				if false {
48466				} else {
48467					*((*string)(yyv9)) = r.DecodeString()
48468				}
48469			}
48470		default:
48471			z.DecStructFieldNotFound(-1, yys3)
48472		} // end switch yys3
48473	} // end for yyj3
48474	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
48475}
48476
48477func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
48478	var h codecSelfer1234
48479	z, r := codec1978.GenHelperDecoder(d)
48480	_, _, _ = h, z, r
48481	var yyj11 int
48482	var yyb11 bool
48483	var yyhl11 bool = l >= 0
48484	yyj11++
48485	if yyhl11 {
48486		yyb11 = yyj11 > l
48487	} else {
48488		yyb11 = r.CheckBreak()
48489	}
48490	if yyb11 {
48491		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
48492		return
48493	}
48494	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
48495	if r.TryDecodeAsNil() {
48496		x.PodSignature = PodSignature{}
48497	} else {
48498		yyv12 := &x.PodSignature
48499		yyv12.CodecDecodeSelf(d)
48500	}
48501	yyj11++
48502	if yyhl11 {
48503		yyb11 = yyj11 > l
48504	} else {
48505		yyb11 = r.CheckBreak()
48506	}
48507	if yyb11 {
48508		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
48509		return
48510	}
48511	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
48512	if r.TryDecodeAsNil() {
48513		x.EvictionTime = pkg2_v1.Time{}
48514	} else {
48515		yyv13 := &x.EvictionTime
48516		yym14 := z.DecBinary()
48517		_ = yym14
48518		if false {
48519		} else if z.HasExtensions() && z.DecExt(yyv13) {
48520		} else if yym14 {
48521			z.DecBinaryUnmarshal(yyv13)
48522		} else if !yym14 && z.IsJSONHandle() {
48523			z.DecJSONUnmarshal(yyv13)
48524		} else {
48525			z.DecFallback(yyv13, false)
48526		}
48527	}
48528	yyj11++
48529	if yyhl11 {
48530		yyb11 = yyj11 > l
48531	} else {
48532		yyb11 = r.CheckBreak()
48533	}
48534	if yyb11 {
48535		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
48536		return
48537	}
48538	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
48539	if r.TryDecodeAsNil() {
48540		x.Reason = ""
48541	} else {
48542		yyv15 := &x.Reason
48543		yym16 := z.DecBinary()
48544		_ = yym16
48545		if false {
48546		} else {
48547			*((*string)(yyv15)) = r.DecodeString()
48548		}
48549	}
48550	yyj11++
48551	if yyhl11 {
48552		yyb11 = yyj11 > l
48553	} else {
48554		yyb11 = r.CheckBreak()
48555	}
48556	if yyb11 {
48557		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
48558		return
48559	}
48560	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
48561	if r.TryDecodeAsNil() {
48562		x.Message = ""
48563	} else {
48564		yyv17 := &x.Message
48565		yym18 := z.DecBinary()
48566		_ = yym18
48567		if false {
48568		} else {
48569			*((*string)(yyv17)) = r.DecodeString()
48570		}
48571	}
48572	for {
48573		yyj11++
48574		if yyhl11 {
48575			yyb11 = yyj11 > l
48576		} else {
48577			yyb11 = r.CheckBreak()
48578		}
48579		if yyb11 {
48580			break
48581		}
48582		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
48583		z.DecStructFieldNotFound(yyj11-1, "")
48584	}
48585	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
48586}
48587
48588func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) {
48589	var h codecSelfer1234
48590	z, r := codec1978.GenHelperEncoder(e)
48591	_, _, _ = h, z, r
48592	if x == nil {
48593		r.EncodeNil()
48594	} else {
48595		yym1 := z.EncBinary()
48596		_ = yym1
48597		if false {
48598		} else if z.HasExtensions() && z.EncExt(x) {
48599		} else {
48600			yysep2 := !z.EncBinary()
48601			yy2arr2 := z.EncBasicHandle().StructToArray
48602			var yyq2 [1]bool
48603			_, _, _ = yysep2, yyq2, yy2arr2
48604			const yyr2 bool = false
48605			yyq2[0] = x.PodController != nil
48606			var yynn2 int
48607			if yyr2 || yy2arr2 {
48608				r.EncodeArrayStart(1)
48609			} else {
48610				yynn2 = 0
48611				for _, b := range yyq2 {
48612					if b {
48613						yynn2++
48614					}
48615				}
48616				r.EncodeMapStart(yynn2)
48617				yynn2 = 0
48618			}
48619			if yyr2 || yy2arr2 {
48620				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
48621				if yyq2[0] {
48622					if x.PodController == nil {
48623						r.EncodeNil()
48624					} else {
48625						yym4 := z.EncBinary()
48626						_ = yym4
48627						if false {
48628						} else if z.HasExtensions() && z.EncExt(x.PodController) {
48629						} else {
48630							z.EncFallback(x.PodController)
48631						}
48632					}
48633				} else {
48634					r.EncodeNil()
48635				}
48636			} else {
48637				if yyq2[0] {
48638					z.EncSendContainerState(codecSelfer_containerMapKey1234)
48639					r.EncodeString(codecSelferC_UTF81234, string("podController"))
48640					z.EncSendContainerState(codecSelfer_containerMapValue1234)
48641					if x.PodController == nil {
48642						r.EncodeNil()
48643					} else {
48644						yym5 := z.EncBinary()
48645						_ = yym5
48646						if false {
48647						} else if z.HasExtensions() && z.EncExt(x.PodController) {
48648						} else {
48649							z.EncFallback(x.PodController)
48650						}
48651					}
48652				}
48653			}
48654			if yyr2 || yy2arr2 {
48655				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
48656			} else {
48657				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
48658			}
48659		}
48660	}
48661}
48662
48663func (x *PodSignature) CodecDecodeSelf(d *codec1978.Decoder) {
48664	var h codecSelfer1234
48665	z, r := codec1978.GenHelperDecoder(d)
48666	_, _, _ = h, z, r
48667	yym1 := z.DecBinary()
48668	_ = yym1
48669	if false {
48670	} else if z.HasExtensions() && z.DecExt(x) {
48671	} else {
48672		yyct2 := r.ContainerType()
48673		if yyct2 == codecSelferValueTypeMap1234 {
48674			yyl2 := r.ReadMapStart()
48675			if yyl2 == 0 {
48676				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
48677			} else {
48678				x.codecDecodeSelfFromMap(yyl2, d)
48679			}
48680		} else if yyct2 == codecSelferValueTypeArray1234 {
48681			yyl2 := r.ReadArrayStart()
48682			if yyl2 == 0 {
48683				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
48684			} else {
48685				x.codecDecodeSelfFromArray(yyl2, d)
48686			}
48687		} else {
48688			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
48689		}
48690	}
48691}
48692
48693func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
48694	var h codecSelfer1234
48695	z, r := codec1978.GenHelperDecoder(d)
48696	_, _, _ = h, z, r
48697	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
48698	_ = yys3Slc
48699	var yyhl3 bool = l >= 0
48700	for yyj3 := 0; ; yyj3++ {
48701		if yyhl3 {
48702			if yyj3 >= l {
48703				break
48704			}
48705		} else {
48706			if r.CheckBreak() {
48707				break
48708			}
48709		}
48710		z.DecSendContainerState(codecSelfer_containerMapKey1234)
48711		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
48712		yys3 := string(yys3Slc)
48713		z.DecSendContainerState(codecSelfer_containerMapValue1234)
48714		switch yys3 {
48715		case "podController":
48716			if r.TryDecodeAsNil() {
48717				if x.PodController != nil {
48718					x.PodController = nil
48719				}
48720			} else {
48721				if x.PodController == nil {
48722					x.PodController = new(pkg2_v1.OwnerReference)
48723				}
48724				yym5 := z.DecBinary()
48725				_ = yym5
48726				if false {
48727				} else if z.HasExtensions() && z.DecExt(x.PodController) {
48728				} else {
48729					z.DecFallback(x.PodController, false)
48730				}
48731			}
48732		default:
48733			z.DecStructFieldNotFound(-1, yys3)
48734		} // end switch yys3
48735	} // end for yyj3
48736	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
48737}
48738
48739func (x *PodSignature) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
48740	var h codecSelfer1234
48741	z, r := codec1978.GenHelperDecoder(d)
48742	_, _, _ = h, z, r
48743	var yyj6 int
48744	var yyb6 bool
48745	var yyhl6 bool = l >= 0
48746	yyj6++
48747	if yyhl6 {
48748		yyb6 = yyj6 > l
48749	} else {
48750		yyb6 = r.CheckBreak()
48751	}
48752	if yyb6 {
48753		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
48754		return
48755	}
48756	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
48757	if r.TryDecodeAsNil() {
48758		if x.PodController != nil {
48759			x.PodController = nil
48760		}
48761	} else {
48762		if x.PodController == nil {
48763			x.PodController = new(pkg2_v1.OwnerReference)
48764		}
48765		yym8 := z.DecBinary()
48766		_ = yym8
48767		if false {
48768		} else if z.HasExtensions() && z.DecExt(x.PodController) {
48769		} else {
48770			z.DecFallback(x.PodController, false)
48771		}
48772	}
48773	for {
48774		yyj6++
48775		if yyhl6 {
48776			yyb6 = yyj6 > l
48777		} else {
48778			yyb6 = r.CheckBreak()
48779		}
48780		if yyb6 {
48781			break
48782		}
48783		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
48784		z.DecStructFieldNotFound(yyj6-1, "")
48785	}
48786	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
48787}
48788
48789func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) {
48790	var h codecSelfer1234
48791	z, r := codec1978.GenHelperEncoder(e)
48792	_, _, _ = h, z, r
48793	if x == nil {
48794		r.EncodeNil()
48795	} else {
48796		yym1 := z.EncBinary()
48797		_ = yym1
48798		if false {
48799		} else if z.HasExtensions() && z.EncExt(x) {
48800		} else {
48801			yysep2 := !z.EncBinary()
48802			yy2arr2 := z.EncBasicHandle().StructToArray
48803			var yyq2 [2]bool
48804			_, _, _ = yysep2, yyq2, yy2arr2
48805			const yyr2 bool = false
48806			yyq2[1] = x.SizeBytes != 0
48807			var yynn2 int
48808			if yyr2 || yy2arr2 {
48809				r.EncodeArrayStart(2)
48810			} else {
48811				yynn2 = 1
48812				for _, b := range yyq2 {
48813					if b {
48814						yynn2++
48815					}
48816				}
48817				r.EncodeMapStart(yynn2)
48818				yynn2 = 0
48819			}
48820			if yyr2 || yy2arr2 {
48821				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
48822				if x.Names == nil {
48823					r.EncodeNil()
48824				} else {
48825					yym4 := z.EncBinary()
48826					_ = yym4
48827					if false {
48828					} else {
48829						z.F.EncSliceStringV(x.Names, false, e)
48830					}
48831				}
48832			} else {
48833				z.EncSendContainerState(codecSelfer_containerMapKey1234)
48834				r.EncodeString(codecSelferC_UTF81234, string("names"))
48835				z.EncSendContainerState(codecSelfer_containerMapValue1234)
48836				if x.Names == nil {
48837					r.EncodeNil()
48838				} else {
48839					yym5 := z.EncBinary()
48840					_ = yym5
48841					if false {
48842					} else {
48843						z.F.EncSliceStringV(x.Names, false, e)
48844					}
48845				}
48846			}
48847			if yyr2 || yy2arr2 {
48848				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
48849				if yyq2[1] {
48850					yym7 := z.EncBinary()
48851					_ = yym7
48852					if false {
48853					} else {
48854						r.EncodeInt(int64(x.SizeBytes))
48855					}
48856				} else {
48857					r.EncodeInt(0)
48858				}
48859			} else {
48860				if yyq2[1] {
48861					z.EncSendContainerState(codecSelfer_containerMapKey1234)
48862					r.EncodeString(codecSelferC_UTF81234, string("sizeBytes"))
48863					z.EncSendContainerState(codecSelfer_containerMapValue1234)
48864					yym8 := z.EncBinary()
48865					_ = yym8
48866					if false {
48867					} else {
48868						r.EncodeInt(int64(x.SizeBytes))
48869					}
48870				}
48871			}
48872			if yyr2 || yy2arr2 {
48873				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
48874			} else {
48875				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
48876			}
48877		}
48878	}
48879}
48880
48881func (x *ContainerImage) CodecDecodeSelf(d *codec1978.Decoder) {
48882	var h codecSelfer1234
48883	z, r := codec1978.GenHelperDecoder(d)
48884	_, _, _ = h, z, r
48885	yym1 := z.DecBinary()
48886	_ = yym1
48887	if false {
48888	} else if z.HasExtensions() && z.DecExt(x) {
48889	} else {
48890		yyct2 := r.ContainerType()
48891		if yyct2 == codecSelferValueTypeMap1234 {
48892			yyl2 := r.ReadMapStart()
48893			if yyl2 == 0 {
48894				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
48895			} else {
48896				x.codecDecodeSelfFromMap(yyl2, d)
48897			}
48898		} else if yyct2 == codecSelferValueTypeArray1234 {
48899			yyl2 := r.ReadArrayStart()
48900			if yyl2 == 0 {
48901				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
48902			} else {
48903				x.codecDecodeSelfFromArray(yyl2, d)
48904			}
48905		} else {
48906			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
48907		}
48908	}
48909}
48910
48911func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
48912	var h codecSelfer1234
48913	z, r := codec1978.GenHelperDecoder(d)
48914	_, _, _ = h, z, r
48915	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
48916	_ = yys3Slc
48917	var yyhl3 bool = l >= 0
48918	for yyj3 := 0; ; yyj3++ {
48919		if yyhl3 {
48920			if yyj3 >= l {
48921				break
48922			}
48923		} else {
48924			if r.CheckBreak() {
48925				break
48926			}
48927		}
48928		z.DecSendContainerState(codecSelfer_containerMapKey1234)
48929		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
48930		yys3 := string(yys3Slc)
48931		z.DecSendContainerState(codecSelfer_containerMapValue1234)
48932		switch yys3 {
48933		case "names":
48934			if r.TryDecodeAsNil() {
48935				x.Names = nil
48936			} else {
48937				yyv4 := &x.Names
48938				yym5 := z.DecBinary()
48939				_ = yym5
48940				if false {
48941				} else {
48942					z.F.DecSliceStringX(yyv4, false, d)
48943				}
48944			}
48945		case "sizeBytes":
48946			if r.TryDecodeAsNil() {
48947				x.SizeBytes = 0
48948			} else {
48949				yyv6 := &x.SizeBytes
48950				yym7 := z.DecBinary()
48951				_ = yym7
48952				if false {
48953				} else {
48954					*((*int64)(yyv6)) = int64(r.DecodeInt(64))
48955				}
48956			}
48957		default:
48958			z.DecStructFieldNotFound(-1, yys3)
48959		} // end switch yys3
48960	} // end for yyj3
48961	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
48962}
48963
48964func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
48965	var h codecSelfer1234
48966	z, r := codec1978.GenHelperDecoder(d)
48967	_, _, _ = h, z, r
48968	var yyj8 int
48969	var yyb8 bool
48970	var yyhl8 bool = l >= 0
48971	yyj8++
48972	if yyhl8 {
48973		yyb8 = yyj8 > l
48974	} else {
48975		yyb8 = r.CheckBreak()
48976	}
48977	if yyb8 {
48978		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
48979		return
48980	}
48981	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
48982	if r.TryDecodeAsNil() {
48983		x.Names = nil
48984	} else {
48985		yyv9 := &x.Names
48986		yym10 := z.DecBinary()
48987		_ = yym10
48988		if false {
48989		} else {
48990			z.F.DecSliceStringX(yyv9, false, d)
48991		}
48992	}
48993	yyj8++
48994	if yyhl8 {
48995		yyb8 = yyj8 > l
48996	} else {
48997		yyb8 = r.CheckBreak()
48998	}
48999	if yyb8 {
49000		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
49001		return
49002	}
49003	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
49004	if r.TryDecodeAsNil() {
49005		x.SizeBytes = 0
49006	} else {
49007		yyv11 := &x.SizeBytes
49008		yym12 := z.DecBinary()
49009		_ = yym12
49010		if false {
49011		} else {
49012			*((*int64)(yyv11)) = int64(r.DecodeInt(64))
49013		}
49014	}
49015	for {
49016		yyj8++
49017		if yyhl8 {
49018			yyb8 = yyj8 > l
49019		} else {
49020			yyb8 = r.CheckBreak()
49021		}
49022		if yyb8 {
49023			break
49024		}
49025		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
49026		z.DecStructFieldNotFound(yyj8-1, "")
49027	}
49028	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
49029}
49030
49031func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) {
49032	var h codecSelfer1234
49033	z, r := codec1978.GenHelperEncoder(e)
49034	_, _, _ = h, z, r
49035	yym1 := z.EncBinary()
49036	_ = yym1
49037	if false {
49038	} else if z.HasExtensions() && z.EncExt(x) {
49039	} else {
49040		r.EncodeString(codecSelferC_UTF81234, string(x))
49041	}
49042}
49043
49044func (x *NodePhase) CodecDecodeSelf(d *codec1978.Decoder) {
49045	var h codecSelfer1234
49046	z, r := codec1978.GenHelperDecoder(d)
49047	_, _, _ = h, z, r
49048	yym1 := z.DecBinary()
49049	_ = yym1
49050	if false {
49051	} else if z.HasExtensions() && z.DecExt(x) {
49052	} else {
49053		*((*string)(x)) = r.DecodeString()
49054	}
49055}
49056
49057func (x NodeConditionType) CodecEncodeSelf(e *codec1978.Encoder) {
49058	var h codecSelfer1234
49059	z, r := codec1978.GenHelperEncoder(e)
49060	_, _, _ = h, z, r
49061	yym1 := z.EncBinary()
49062	_ = yym1
49063	if false {
49064	} else if z.HasExtensions() && z.EncExt(x) {
49065	} else {
49066		r.EncodeString(codecSelferC_UTF81234, string(x))
49067	}
49068}
49069
49070func (x *NodeConditionType) CodecDecodeSelf(d *codec1978.Decoder) {
49071	var h codecSelfer1234
49072	z, r := codec1978.GenHelperDecoder(d)
49073	_, _, _ = h, z, r
49074	yym1 := z.DecBinary()
49075	_ = yym1
49076	if false {
49077	} else if z.HasExtensions() && z.DecExt(x) {
49078	} else {
49079		*((*string)(x)) = r.DecodeString()
49080	}
49081}
49082
49083func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) {
49084	var h codecSelfer1234
49085	z, r := codec1978.GenHelperEncoder(e)
49086	_, _, _ = h, z, r
49087	if x == nil {
49088		r.EncodeNil()
49089	} else {
49090		yym1 := z.EncBinary()
49091		_ = yym1
49092		if false {
49093		} else if z.HasExtensions() && z.EncExt(x) {
49094		} else {
49095			yysep2 := !z.EncBinary()
49096			yy2arr2 := z.EncBasicHandle().StructToArray
49097			var yyq2 [6]bool
49098			_, _, _ = yysep2, yyq2, yy2arr2
49099			const yyr2 bool = false
49100			yyq2[2] = true
49101			yyq2[3] = true
49102			yyq2[4] = x.Reason != ""
49103			yyq2[5] = x.Message != ""
49104			var yynn2 int
49105			if yyr2 || yy2arr2 {
49106				r.EncodeArrayStart(6)
49107			} else {
49108				yynn2 = 2
49109				for _, b := range yyq2 {
49110					if b {
49111						yynn2++
49112					}
49113				}
49114				r.EncodeMapStart(yynn2)
49115				yynn2 = 0
49116			}
49117			if yyr2 || yy2arr2 {
49118				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
49119				x.Type.CodecEncodeSelf(e)
49120			} else {
49121				z.EncSendContainerState(codecSelfer_containerMapKey1234)
49122				r.EncodeString(codecSelferC_UTF81234, string("type"))
49123				z.EncSendContainerState(codecSelfer_containerMapValue1234)
49124				x.Type.CodecEncodeSelf(e)
49125			}
49126			if yyr2 || yy2arr2 {
49127				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
49128				x.Status.CodecEncodeSelf(e)
49129			} else {
49130				z.EncSendContainerState(codecSelfer_containerMapKey1234)
49131				r.EncodeString(codecSelferC_UTF81234, string("status"))
49132				z.EncSendContainerState(codecSelfer_containerMapValue1234)
49133				x.Status.CodecEncodeSelf(e)
49134			}
49135			if yyr2 || yy2arr2 {
49136				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
49137				if yyq2[2] {
49138					yy10 := &x.LastHeartbeatTime
49139					yym11 := z.EncBinary()
49140					_ = yym11
49141					if false {
49142					} else if z.HasExtensions() && z.EncExt(yy10) {
49143					} else if yym11 {
49144						z.EncBinaryMarshal(yy10)
49145					} else if !yym11 && z.IsJSONHandle() {
49146						z.EncJSONMarshal(yy10)
49147					} else {
49148						z.EncFallback(yy10)
49149					}
49150				} else {
49151					r.EncodeNil()
49152				}
49153			} else {
49154				if yyq2[2] {
49155					z.EncSendContainerState(codecSelfer_containerMapKey1234)
49156					r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime"))
49157					z.EncSendContainerState(codecSelfer_containerMapValue1234)
49158					yy12 := &x.LastHeartbeatTime
49159					yym13 := z.EncBinary()
49160					_ = yym13
49161					if false {
49162					} else if z.HasExtensions() && z.EncExt(yy12) {
49163					} else if yym13 {
49164						z.EncBinaryMarshal(yy12)
49165					} else if !yym13 && z.IsJSONHandle() {
49166						z.EncJSONMarshal(yy12)
49167					} else {
49168						z.EncFallback(yy12)
49169					}
49170				}
49171			}
49172			if yyr2 || yy2arr2 {
49173				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
49174				if yyq2[3] {
49175					yy15 := &x.LastTransitionTime
49176					yym16 := z.EncBinary()
49177					_ = yym16
49178					if false {
49179					} else if z.HasExtensions() && z.EncExt(yy15) {
49180					} else if yym16 {
49181						z.EncBinaryMarshal(yy15)
49182					} else if !yym16 && z.IsJSONHandle() {
49183						z.EncJSONMarshal(yy15)
49184					} else {
49185						z.EncFallback(yy15)
49186					}
49187				} else {
49188					r.EncodeNil()
49189				}
49190			} else {
49191				if yyq2[3] {
49192					z.EncSendContainerState(codecSelfer_containerMapKey1234)
49193					r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
49194					z.EncSendContainerState(codecSelfer_containerMapValue1234)
49195					yy17 := &x.LastTransitionTime
49196					yym18 := z.EncBinary()
49197					_ = yym18
49198					if false {
49199					} else if z.HasExtensions() && z.EncExt(yy17) {
49200					} else if yym18 {
49201						z.EncBinaryMarshal(yy17)
49202					} else if !yym18 && z.IsJSONHandle() {
49203						z.EncJSONMarshal(yy17)
49204					} else {
49205						z.EncFallback(yy17)
49206					}
49207				}
49208			}
49209			if yyr2 || yy2arr2 {
49210				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
49211				if yyq2[4] {
49212					yym20 := z.EncBinary()
49213					_ = yym20
49214					if false {
49215					} else {
49216						r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
49217					}
49218				} else {
49219					r.EncodeString(codecSelferC_UTF81234, "")
49220				}
49221			} else {
49222				if yyq2[4] {
49223					z.EncSendContainerState(codecSelfer_containerMapKey1234)
49224					r.EncodeString(codecSelferC_UTF81234, string("reason"))
49225					z.EncSendContainerState(codecSelfer_containerMapValue1234)
49226					yym21 := z.EncBinary()
49227					_ = yym21
49228					if false {
49229					} else {
49230						r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
49231					}
49232				}
49233			}
49234			if yyr2 || yy2arr2 {
49235				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
49236				if yyq2[5] {
49237					yym23 := z.EncBinary()
49238					_ = yym23
49239					if false {
49240					} else {
49241						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
49242					}
49243				} else {
49244					r.EncodeString(codecSelferC_UTF81234, "")
49245				}
49246			} else {
49247				if yyq2[5] {
49248					z.EncSendContainerState(codecSelfer_containerMapKey1234)
49249					r.EncodeString(codecSelferC_UTF81234, string("message"))
49250					z.EncSendContainerState(codecSelfer_containerMapValue1234)
49251					yym24 := z.EncBinary()
49252					_ = yym24
49253					if false {
49254					} else {
49255						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
49256					}
49257				}
49258			}
49259			if yyr2 || yy2arr2 {
49260				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
49261			} else {
49262				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
49263			}
49264		}
49265	}
49266}
49267
49268func (x *NodeCondition) CodecDecodeSelf(d *codec1978.Decoder) {
49269	var h codecSelfer1234
49270	z, r := codec1978.GenHelperDecoder(d)
49271	_, _, _ = h, z, r
49272	yym1 := z.DecBinary()
49273	_ = yym1
49274	if false {
49275	} else if z.HasExtensions() && z.DecExt(x) {
49276	} else {
49277		yyct2 := r.ContainerType()
49278		if yyct2 == codecSelferValueTypeMap1234 {
49279			yyl2 := r.ReadMapStart()
49280			if yyl2 == 0 {
49281				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
49282			} else {
49283				x.codecDecodeSelfFromMap(yyl2, d)
49284			}
49285		} else if yyct2 == codecSelferValueTypeArray1234 {
49286			yyl2 := r.ReadArrayStart()
49287			if yyl2 == 0 {
49288				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
49289			} else {
49290				x.codecDecodeSelfFromArray(yyl2, d)
49291			}
49292		} else {
49293			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
49294		}
49295	}
49296}
49297
49298func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
49299	var h codecSelfer1234
49300	z, r := codec1978.GenHelperDecoder(d)
49301	_, _, _ = h, z, r
49302	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
49303	_ = yys3Slc
49304	var yyhl3 bool = l >= 0
49305	for yyj3 := 0; ; yyj3++ {
49306		if yyhl3 {
49307			if yyj3 >= l {
49308				break
49309			}
49310		} else {
49311			if r.CheckBreak() {
49312				break
49313			}
49314		}
49315		z.DecSendContainerState(codecSelfer_containerMapKey1234)
49316		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
49317		yys3 := string(yys3Slc)
49318		z.DecSendContainerState(codecSelfer_containerMapValue1234)
49319		switch yys3 {
49320		case "type":
49321			if r.TryDecodeAsNil() {
49322				x.Type = ""
49323			} else {
49324				yyv4 := &x.Type
49325				yyv4.CodecDecodeSelf(d)
49326			}
49327		case "status":
49328			if r.TryDecodeAsNil() {
49329				x.Status = ""
49330			} else {
49331				yyv5 := &x.Status
49332				yyv5.CodecDecodeSelf(d)
49333			}
49334		case "lastHeartbeatTime":
49335			if r.TryDecodeAsNil() {
49336				x.LastHeartbeatTime = pkg2_v1.Time{}
49337			} else {
49338				yyv6 := &x.LastHeartbeatTime
49339				yym7 := z.DecBinary()
49340				_ = yym7
49341				if false {
49342				} else if z.HasExtensions() && z.DecExt(yyv6) {
49343				} else if yym7 {
49344					z.DecBinaryUnmarshal(yyv6)
49345				} else if !yym7 && z.IsJSONHandle() {
49346					z.DecJSONUnmarshal(yyv6)
49347				} else {
49348					z.DecFallback(yyv6, false)
49349				}
49350			}
49351		case "lastTransitionTime":
49352			if r.TryDecodeAsNil() {
49353				x.LastTransitionTime = pkg2_v1.Time{}
49354			} else {
49355				yyv8 := &x.LastTransitionTime
49356				yym9 := z.DecBinary()
49357				_ = yym9
49358				if false {
49359				} else if z.HasExtensions() && z.DecExt(yyv8) {
49360				} else if yym9 {
49361					z.DecBinaryUnmarshal(yyv8)
49362				} else if !yym9 && z.IsJSONHandle() {
49363					z.DecJSONUnmarshal(yyv8)
49364				} else {
49365					z.DecFallback(yyv8, false)
49366				}
49367			}
49368		case "reason":
49369			if r.TryDecodeAsNil() {
49370				x.Reason = ""
49371			} else {
49372				yyv10 := &x.Reason
49373				yym11 := z.DecBinary()
49374				_ = yym11
49375				if false {
49376				} else {
49377					*((*string)(yyv10)) = r.DecodeString()
49378				}
49379			}
49380		case "message":
49381			if r.TryDecodeAsNil() {
49382				x.Message = ""
49383			} else {
49384				yyv12 := &x.Message
49385				yym13 := z.DecBinary()
49386				_ = yym13
49387				if false {
49388				} else {
49389					*((*string)(yyv12)) = r.DecodeString()
49390				}
49391			}
49392		default:
49393			z.DecStructFieldNotFound(-1, yys3)
49394		} // end switch yys3
49395	} // end for yyj3
49396	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
49397}
49398
49399func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
49400	var h codecSelfer1234
49401	z, r := codec1978.GenHelperDecoder(d)
49402	_, _, _ = h, z, r
49403	var yyj14 int
49404	var yyb14 bool
49405	var yyhl14 bool = l >= 0
49406	yyj14++
49407	if yyhl14 {
49408		yyb14 = yyj14 > l
49409	} else {
49410		yyb14 = r.CheckBreak()
49411	}
49412	if yyb14 {
49413		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
49414		return
49415	}
49416	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
49417	if r.TryDecodeAsNil() {
49418		x.Type = ""
49419	} else {
49420		yyv15 := &x.Type
49421		yyv15.CodecDecodeSelf(d)
49422	}
49423	yyj14++
49424	if yyhl14 {
49425		yyb14 = yyj14 > l
49426	} else {
49427		yyb14 = r.CheckBreak()
49428	}
49429	if yyb14 {
49430		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
49431		return
49432	}
49433	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
49434	if r.TryDecodeAsNil() {
49435		x.Status = ""
49436	} else {
49437		yyv16 := &x.Status
49438		yyv16.CodecDecodeSelf(d)
49439	}
49440	yyj14++
49441	if yyhl14 {
49442		yyb14 = yyj14 > l
49443	} else {
49444		yyb14 = r.CheckBreak()
49445	}
49446	if yyb14 {
49447		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
49448		return
49449	}
49450	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
49451	if r.TryDecodeAsNil() {
49452		x.LastHeartbeatTime = pkg2_v1.Time{}
49453	} else {
49454		yyv17 := &x.LastHeartbeatTime
49455		yym18 := z.DecBinary()
49456		_ = yym18
49457		if false {
49458		} else if z.HasExtensions() && z.DecExt(yyv17) {
49459		} else if yym18 {
49460			z.DecBinaryUnmarshal(yyv17)
49461		} else if !yym18 && z.IsJSONHandle() {
49462			z.DecJSONUnmarshal(yyv17)
49463		} else {
49464			z.DecFallback(yyv17, false)
49465		}
49466	}
49467	yyj14++
49468	if yyhl14 {
49469		yyb14 = yyj14 > l
49470	} else {
49471		yyb14 = r.CheckBreak()
49472	}
49473	if yyb14 {
49474		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
49475		return
49476	}
49477	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
49478	if r.TryDecodeAsNil() {
49479		x.LastTransitionTime = pkg2_v1.Time{}
49480	} else {
49481		yyv19 := &x.LastTransitionTime
49482		yym20 := z.DecBinary()
49483		_ = yym20
49484		if false {
49485		} else if z.HasExtensions() && z.DecExt(yyv19) {
49486		} else if yym20 {
49487			z.DecBinaryUnmarshal(yyv19)
49488		} else if !yym20 && z.IsJSONHandle() {
49489			z.DecJSONUnmarshal(yyv19)
49490		} else {
49491			z.DecFallback(yyv19, false)
49492		}
49493	}
49494	yyj14++
49495	if yyhl14 {
49496		yyb14 = yyj14 > l
49497	} else {
49498		yyb14 = r.CheckBreak()
49499	}
49500	if yyb14 {
49501		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
49502		return
49503	}
49504	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
49505	if r.TryDecodeAsNil() {
49506		x.Reason = ""
49507	} else {
49508		yyv21 := &x.Reason
49509		yym22 := z.DecBinary()
49510		_ = yym22
49511		if false {
49512		} else {
49513			*((*string)(yyv21)) = r.DecodeString()
49514		}
49515	}
49516	yyj14++
49517	if yyhl14 {
49518		yyb14 = yyj14 > l
49519	} else {
49520		yyb14 = r.CheckBreak()
49521	}
49522	if yyb14 {
49523		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
49524		return
49525	}
49526	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
49527	if r.TryDecodeAsNil() {
49528		x.Message = ""
49529	} else {
49530		yyv23 := &x.Message
49531		yym24 := z.DecBinary()
49532		_ = yym24
49533		if false {
49534		} else {
49535			*((*string)(yyv23)) = r.DecodeString()
49536		}
49537	}
49538	for {
49539		yyj14++
49540		if yyhl14 {
49541			yyb14 = yyj14 > l
49542		} else {
49543			yyb14 = r.CheckBreak()
49544		}
49545		if yyb14 {
49546			break
49547		}
49548		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
49549		z.DecStructFieldNotFound(yyj14-1, "")
49550	}
49551	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
49552}
49553
49554func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) {
49555	var h codecSelfer1234
49556	z, r := codec1978.GenHelperEncoder(e)
49557	_, _, _ = h, z, r
49558	yym1 := z.EncBinary()
49559	_ = yym1
49560	if false {
49561	} else if z.HasExtensions() && z.EncExt(x) {
49562	} else {
49563		r.EncodeString(codecSelferC_UTF81234, string(x))
49564	}
49565}
49566
49567func (x *NodeAddressType) CodecDecodeSelf(d *codec1978.Decoder) {
49568	var h codecSelfer1234
49569	z, r := codec1978.GenHelperDecoder(d)
49570	_, _, _ = h, z, r
49571	yym1 := z.DecBinary()
49572	_ = yym1
49573	if false {
49574	} else if z.HasExtensions() && z.DecExt(x) {
49575	} else {
49576		*((*string)(x)) = r.DecodeString()
49577	}
49578}
49579
49580func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) {
49581	var h codecSelfer1234
49582	z, r := codec1978.GenHelperEncoder(e)
49583	_, _, _ = h, z, r
49584	if x == nil {
49585		r.EncodeNil()
49586	} else {
49587		yym1 := z.EncBinary()
49588		_ = yym1
49589		if false {
49590		} else if z.HasExtensions() && z.EncExt(x) {
49591		} else {
49592			yysep2 := !z.EncBinary()
49593			yy2arr2 := z.EncBasicHandle().StructToArray
49594			var yyq2 [2]bool
49595			_, _, _ = yysep2, yyq2, yy2arr2
49596			const yyr2 bool = false
49597			var yynn2 int
49598			if yyr2 || yy2arr2 {
49599				r.EncodeArrayStart(2)
49600			} else {
49601				yynn2 = 2
49602				for _, b := range yyq2 {
49603					if b {
49604						yynn2++
49605					}
49606				}
49607				r.EncodeMapStart(yynn2)
49608				yynn2 = 0
49609			}
49610			if yyr2 || yy2arr2 {
49611				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
49612				x.Type.CodecEncodeSelf(e)
49613			} else {
49614				z.EncSendContainerState(codecSelfer_containerMapKey1234)
49615				r.EncodeString(codecSelferC_UTF81234, string("type"))
49616				z.EncSendContainerState(codecSelfer_containerMapValue1234)
49617				x.Type.CodecEncodeSelf(e)
49618			}
49619			if yyr2 || yy2arr2 {
49620				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
49621				yym7 := z.EncBinary()
49622				_ = yym7
49623				if false {
49624				} else {
49625					r.EncodeString(codecSelferC_UTF81234, string(x.Address))
49626				}
49627			} else {
49628				z.EncSendContainerState(codecSelfer_containerMapKey1234)
49629				r.EncodeString(codecSelferC_UTF81234, string("address"))
49630				z.EncSendContainerState(codecSelfer_containerMapValue1234)
49631				yym8 := z.EncBinary()
49632				_ = yym8
49633				if false {
49634				} else {
49635					r.EncodeString(codecSelferC_UTF81234, string(x.Address))
49636				}
49637			}
49638			if yyr2 || yy2arr2 {
49639				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
49640			} else {
49641				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
49642			}
49643		}
49644	}
49645}
49646
49647func (x *NodeAddress) CodecDecodeSelf(d *codec1978.Decoder) {
49648	var h codecSelfer1234
49649	z, r := codec1978.GenHelperDecoder(d)
49650	_, _, _ = h, z, r
49651	yym1 := z.DecBinary()
49652	_ = yym1
49653	if false {
49654	} else if z.HasExtensions() && z.DecExt(x) {
49655	} else {
49656		yyct2 := r.ContainerType()
49657		if yyct2 == codecSelferValueTypeMap1234 {
49658			yyl2 := r.ReadMapStart()
49659			if yyl2 == 0 {
49660				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
49661			} else {
49662				x.codecDecodeSelfFromMap(yyl2, d)
49663			}
49664		} else if yyct2 == codecSelferValueTypeArray1234 {
49665			yyl2 := r.ReadArrayStart()
49666			if yyl2 == 0 {
49667				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
49668			} else {
49669				x.codecDecodeSelfFromArray(yyl2, d)
49670			}
49671		} else {
49672			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
49673		}
49674	}
49675}
49676
49677func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
49678	var h codecSelfer1234
49679	z, r := codec1978.GenHelperDecoder(d)
49680	_, _, _ = h, z, r
49681	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
49682	_ = yys3Slc
49683	var yyhl3 bool = l >= 0
49684	for yyj3 := 0; ; yyj3++ {
49685		if yyhl3 {
49686			if yyj3 >= l {
49687				break
49688			}
49689		} else {
49690			if r.CheckBreak() {
49691				break
49692			}
49693		}
49694		z.DecSendContainerState(codecSelfer_containerMapKey1234)
49695		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
49696		yys3 := string(yys3Slc)
49697		z.DecSendContainerState(codecSelfer_containerMapValue1234)
49698		switch yys3 {
49699		case "type":
49700			if r.TryDecodeAsNil() {
49701				x.Type = ""
49702			} else {
49703				yyv4 := &x.Type
49704				yyv4.CodecDecodeSelf(d)
49705			}
49706		case "address":
49707			if r.TryDecodeAsNil() {
49708				x.Address = ""
49709			} else {
49710				yyv5 := &x.Address
49711				yym6 := z.DecBinary()
49712				_ = yym6
49713				if false {
49714				} else {
49715					*((*string)(yyv5)) = r.DecodeString()
49716				}
49717			}
49718		default:
49719			z.DecStructFieldNotFound(-1, yys3)
49720		} // end switch yys3
49721	} // end for yyj3
49722	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
49723}
49724
49725func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
49726	var h codecSelfer1234
49727	z, r := codec1978.GenHelperDecoder(d)
49728	_, _, _ = h, z, r
49729	var yyj7 int
49730	var yyb7 bool
49731	var yyhl7 bool = l >= 0
49732	yyj7++
49733	if yyhl7 {
49734		yyb7 = yyj7 > l
49735	} else {
49736		yyb7 = r.CheckBreak()
49737	}
49738	if yyb7 {
49739		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
49740		return
49741	}
49742	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
49743	if r.TryDecodeAsNil() {
49744		x.Type = ""
49745	} else {
49746		yyv8 := &x.Type
49747		yyv8.CodecDecodeSelf(d)
49748	}
49749	yyj7++
49750	if yyhl7 {
49751		yyb7 = yyj7 > l
49752	} else {
49753		yyb7 = r.CheckBreak()
49754	}
49755	if yyb7 {
49756		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
49757		return
49758	}
49759	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
49760	if r.TryDecodeAsNil() {
49761		x.Address = ""
49762	} else {
49763		yyv9 := &x.Address
49764		yym10 := z.DecBinary()
49765		_ = yym10
49766		if false {
49767		} else {
49768			*((*string)(yyv9)) = r.DecodeString()
49769		}
49770	}
49771	for {
49772		yyj7++
49773		if yyhl7 {
49774			yyb7 = yyj7 > l
49775		} else {
49776			yyb7 = r.CheckBreak()
49777		}
49778		if yyb7 {
49779			break
49780		}
49781		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
49782		z.DecStructFieldNotFound(yyj7-1, "")
49783	}
49784	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
49785}
49786
49787func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) {
49788	var h codecSelfer1234
49789	z, r := codec1978.GenHelperEncoder(e)
49790	_, _, _ = h, z, r
49791	yym1 := z.EncBinary()
49792	_ = yym1
49793	if false {
49794	} else if z.HasExtensions() && z.EncExt(x) {
49795	} else {
49796		r.EncodeString(codecSelferC_UTF81234, string(x))
49797	}
49798}
49799
49800func (x *ResourceName) CodecDecodeSelf(d *codec1978.Decoder) {
49801	var h codecSelfer1234
49802	z, r := codec1978.GenHelperDecoder(d)
49803	_, _, _ = h, z, r
49804	yym1 := z.DecBinary()
49805	_ = yym1
49806	if false {
49807	} else if z.HasExtensions() && z.DecExt(x) {
49808	} else {
49809		*((*string)(x)) = r.DecodeString()
49810	}
49811}
49812
49813func (x ResourceList) CodecEncodeSelf(e *codec1978.Encoder) {
49814	var h codecSelfer1234
49815	z, r := codec1978.GenHelperEncoder(e)
49816	_, _, _ = h, z, r
49817	if x == nil {
49818		r.EncodeNil()
49819	} else {
49820		yym1 := z.EncBinary()
49821		_ = yym1
49822		if false {
49823		} else if z.HasExtensions() && z.EncExt(x) {
49824		} else {
49825			h.encResourceList((ResourceList)(x), e)
49826		}
49827	}
49828}
49829
49830func (x *ResourceList) CodecDecodeSelf(d *codec1978.Decoder) {
49831	var h codecSelfer1234
49832	z, r := codec1978.GenHelperDecoder(d)
49833	_, _, _ = h, z, r
49834	yym1 := z.DecBinary()
49835	_ = yym1
49836	if false {
49837	} else if z.HasExtensions() && z.DecExt(x) {
49838	} else {
49839		h.decResourceList((*ResourceList)(x), d)
49840	}
49841}
49842
49843func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) {
49844	var h codecSelfer1234
49845	z, r := codec1978.GenHelperEncoder(e)
49846	_, _, _ = h, z, r
49847	if x == nil {
49848		r.EncodeNil()
49849	} else {
49850		yym1 := z.EncBinary()
49851		_ = yym1
49852		if false {
49853		} else if z.HasExtensions() && z.EncExt(x) {
49854		} else {
49855			yysep2 := !z.EncBinary()
49856			yy2arr2 := z.EncBasicHandle().StructToArray
49857			var yyq2 [5]bool
49858			_, _, _ = yysep2, yyq2, yy2arr2
49859			const yyr2 bool = false
49860			yyq2[0] = x.Kind != ""
49861			yyq2[1] = x.APIVersion != ""
49862			yyq2[2] = true
49863			yyq2[3] = true
49864			yyq2[4] = true
49865			var yynn2 int
49866			if yyr2 || yy2arr2 {
49867				r.EncodeArrayStart(5)
49868			} else {
49869				yynn2 = 0
49870				for _, b := range yyq2 {
49871					if b {
49872						yynn2++
49873					}
49874				}
49875				r.EncodeMapStart(yynn2)
49876				yynn2 = 0
49877			}
49878			if yyr2 || yy2arr2 {
49879				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
49880				if yyq2[0] {
49881					yym4 := z.EncBinary()
49882					_ = yym4
49883					if false {
49884					} else {
49885						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
49886					}
49887				} else {
49888					r.EncodeString(codecSelferC_UTF81234, "")
49889				}
49890			} else {
49891				if yyq2[0] {
49892					z.EncSendContainerState(codecSelfer_containerMapKey1234)
49893					r.EncodeString(codecSelferC_UTF81234, string("kind"))
49894					z.EncSendContainerState(codecSelfer_containerMapValue1234)
49895					yym5 := z.EncBinary()
49896					_ = yym5
49897					if false {
49898					} else {
49899						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
49900					}
49901				}
49902			}
49903			if yyr2 || yy2arr2 {
49904				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
49905				if yyq2[1] {
49906					yym7 := z.EncBinary()
49907					_ = yym7
49908					if false {
49909					} else {
49910						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
49911					}
49912				} else {
49913					r.EncodeString(codecSelferC_UTF81234, "")
49914				}
49915			} else {
49916				if yyq2[1] {
49917					z.EncSendContainerState(codecSelfer_containerMapKey1234)
49918					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
49919					z.EncSendContainerState(codecSelfer_containerMapValue1234)
49920					yym8 := z.EncBinary()
49921					_ = yym8
49922					if false {
49923					} else {
49924						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
49925					}
49926				}
49927			}
49928			if yyr2 || yy2arr2 {
49929				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
49930				if yyq2[2] {
49931					yy10 := &x.ObjectMeta
49932					yym11 := z.EncBinary()
49933					_ = yym11
49934					if false {
49935					} else if z.HasExtensions() && z.EncExt(yy10) {
49936					} else {
49937						z.EncFallback(yy10)
49938					}
49939				} else {
49940					r.EncodeNil()
49941				}
49942			} else {
49943				if yyq2[2] {
49944					z.EncSendContainerState(codecSelfer_containerMapKey1234)
49945					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
49946					z.EncSendContainerState(codecSelfer_containerMapValue1234)
49947					yy12 := &x.ObjectMeta
49948					yym13 := z.EncBinary()
49949					_ = yym13
49950					if false {
49951					} else if z.HasExtensions() && z.EncExt(yy12) {
49952					} else {
49953						z.EncFallback(yy12)
49954					}
49955				}
49956			}
49957			if yyr2 || yy2arr2 {
49958				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
49959				if yyq2[3] {
49960					yy15 := &x.Spec
49961					yy15.CodecEncodeSelf(e)
49962				} else {
49963					r.EncodeNil()
49964				}
49965			} else {
49966				if yyq2[3] {
49967					z.EncSendContainerState(codecSelfer_containerMapKey1234)
49968					r.EncodeString(codecSelferC_UTF81234, string("spec"))
49969					z.EncSendContainerState(codecSelfer_containerMapValue1234)
49970					yy17 := &x.Spec
49971					yy17.CodecEncodeSelf(e)
49972				}
49973			}
49974			if yyr2 || yy2arr2 {
49975				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
49976				if yyq2[4] {
49977					yy20 := &x.Status
49978					yy20.CodecEncodeSelf(e)
49979				} else {
49980					r.EncodeNil()
49981				}
49982			} else {
49983				if yyq2[4] {
49984					z.EncSendContainerState(codecSelfer_containerMapKey1234)
49985					r.EncodeString(codecSelferC_UTF81234, string("status"))
49986					z.EncSendContainerState(codecSelfer_containerMapValue1234)
49987					yy22 := &x.Status
49988					yy22.CodecEncodeSelf(e)
49989				}
49990			}
49991			if yyr2 || yy2arr2 {
49992				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
49993			} else {
49994				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
49995			}
49996		}
49997	}
49998}
49999
50000func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) {
50001	var h codecSelfer1234
50002	z, r := codec1978.GenHelperDecoder(d)
50003	_, _, _ = h, z, r
50004	yym1 := z.DecBinary()
50005	_ = yym1
50006	if false {
50007	} else if z.HasExtensions() && z.DecExt(x) {
50008	} else {
50009		yyct2 := r.ContainerType()
50010		if yyct2 == codecSelferValueTypeMap1234 {
50011			yyl2 := r.ReadMapStart()
50012			if yyl2 == 0 {
50013				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
50014			} else {
50015				x.codecDecodeSelfFromMap(yyl2, d)
50016			}
50017		} else if yyct2 == codecSelferValueTypeArray1234 {
50018			yyl2 := r.ReadArrayStart()
50019			if yyl2 == 0 {
50020				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50021			} else {
50022				x.codecDecodeSelfFromArray(yyl2, d)
50023			}
50024		} else {
50025			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
50026		}
50027	}
50028}
50029
50030func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
50031	var h codecSelfer1234
50032	z, r := codec1978.GenHelperDecoder(d)
50033	_, _, _ = h, z, r
50034	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
50035	_ = yys3Slc
50036	var yyhl3 bool = l >= 0
50037	for yyj3 := 0; ; yyj3++ {
50038		if yyhl3 {
50039			if yyj3 >= l {
50040				break
50041			}
50042		} else {
50043			if r.CheckBreak() {
50044				break
50045			}
50046		}
50047		z.DecSendContainerState(codecSelfer_containerMapKey1234)
50048		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
50049		yys3 := string(yys3Slc)
50050		z.DecSendContainerState(codecSelfer_containerMapValue1234)
50051		switch yys3 {
50052		case "kind":
50053			if r.TryDecodeAsNil() {
50054				x.Kind = ""
50055			} else {
50056				yyv4 := &x.Kind
50057				yym5 := z.DecBinary()
50058				_ = yym5
50059				if false {
50060				} else {
50061					*((*string)(yyv4)) = r.DecodeString()
50062				}
50063			}
50064		case "apiVersion":
50065			if r.TryDecodeAsNil() {
50066				x.APIVersion = ""
50067			} else {
50068				yyv6 := &x.APIVersion
50069				yym7 := z.DecBinary()
50070				_ = yym7
50071				if false {
50072				} else {
50073					*((*string)(yyv6)) = r.DecodeString()
50074				}
50075			}
50076		case "metadata":
50077			if r.TryDecodeAsNil() {
50078				x.ObjectMeta = pkg2_v1.ObjectMeta{}
50079			} else {
50080				yyv8 := &x.ObjectMeta
50081				yym9 := z.DecBinary()
50082				_ = yym9
50083				if false {
50084				} else if z.HasExtensions() && z.DecExt(yyv8) {
50085				} else {
50086					z.DecFallback(yyv8, false)
50087				}
50088			}
50089		case "spec":
50090			if r.TryDecodeAsNil() {
50091				x.Spec = NodeSpec{}
50092			} else {
50093				yyv10 := &x.Spec
50094				yyv10.CodecDecodeSelf(d)
50095			}
50096		case "status":
50097			if r.TryDecodeAsNil() {
50098				x.Status = NodeStatus{}
50099			} else {
50100				yyv11 := &x.Status
50101				yyv11.CodecDecodeSelf(d)
50102			}
50103		default:
50104			z.DecStructFieldNotFound(-1, yys3)
50105		} // end switch yys3
50106	} // end for yyj3
50107	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
50108}
50109
50110func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
50111	var h codecSelfer1234
50112	z, r := codec1978.GenHelperDecoder(d)
50113	_, _, _ = h, z, r
50114	var yyj12 int
50115	var yyb12 bool
50116	var yyhl12 bool = l >= 0
50117	yyj12++
50118	if yyhl12 {
50119		yyb12 = yyj12 > l
50120	} else {
50121		yyb12 = r.CheckBreak()
50122	}
50123	if yyb12 {
50124		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50125		return
50126	}
50127	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
50128	if r.TryDecodeAsNil() {
50129		x.Kind = ""
50130	} else {
50131		yyv13 := &x.Kind
50132		yym14 := z.DecBinary()
50133		_ = yym14
50134		if false {
50135		} else {
50136			*((*string)(yyv13)) = r.DecodeString()
50137		}
50138	}
50139	yyj12++
50140	if yyhl12 {
50141		yyb12 = yyj12 > l
50142	} else {
50143		yyb12 = r.CheckBreak()
50144	}
50145	if yyb12 {
50146		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50147		return
50148	}
50149	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
50150	if r.TryDecodeAsNil() {
50151		x.APIVersion = ""
50152	} else {
50153		yyv15 := &x.APIVersion
50154		yym16 := z.DecBinary()
50155		_ = yym16
50156		if false {
50157		} else {
50158			*((*string)(yyv15)) = r.DecodeString()
50159		}
50160	}
50161	yyj12++
50162	if yyhl12 {
50163		yyb12 = yyj12 > l
50164	} else {
50165		yyb12 = r.CheckBreak()
50166	}
50167	if yyb12 {
50168		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50169		return
50170	}
50171	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
50172	if r.TryDecodeAsNil() {
50173		x.ObjectMeta = pkg2_v1.ObjectMeta{}
50174	} else {
50175		yyv17 := &x.ObjectMeta
50176		yym18 := z.DecBinary()
50177		_ = yym18
50178		if false {
50179		} else if z.HasExtensions() && z.DecExt(yyv17) {
50180		} else {
50181			z.DecFallback(yyv17, false)
50182		}
50183	}
50184	yyj12++
50185	if yyhl12 {
50186		yyb12 = yyj12 > l
50187	} else {
50188		yyb12 = r.CheckBreak()
50189	}
50190	if yyb12 {
50191		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50192		return
50193	}
50194	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
50195	if r.TryDecodeAsNil() {
50196		x.Spec = NodeSpec{}
50197	} else {
50198		yyv19 := &x.Spec
50199		yyv19.CodecDecodeSelf(d)
50200	}
50201	yyj12++
50202	if yyhl12 {
50203		yyb12 = yyj12 > l
50204	} else {
50205		yyb12 = r.CheckBreak()
50206	}
50207	if yyb12 {
50208		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50209		return
50210	}
50211	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
50212	if r.TryDecodeAsNil() {
50213		x.Status = NodeStatus{}
50214	} else {
50215		yyv20 := &x.Status
50216		yyv20.CodecDecodeSelf(d)
50217	}
50218	for {
50219		yyj12++
50220		if yyhl12 {
50221			yyb12 = yyj12 > l
50222		} else {
50223			yyb12 = r.CheckBreak()
50224		}
50225		if yyb12 {
50226			break
50227		}
50228		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
50229		z.DecStructFieldNotFound(yyj12-1, "")
50230	}
50231	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50232}
50233
50234func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) {
50235	var h codecSelfer1234
50236	z, r := codec1978.GenHelperEncoder(e)
50237	_, _, _ = h, z, r
50238	if x == nil {
50239		r.EncodeNil()
50240	} else {
50241		yym1 := z.EncBinary()
50242		_ = yym1
50243		if false {
50244		} else if z.HasExtensions() && z.EncExt(x) {
50245		} else {
50246			yysep2 := !z.EncBinary()
50247			yy2arr2 := z.EncBasicHandle().StructToArray
50248			var yyq2 [4]bool
50249			_, _, _ = yysep2, yyq2, yy2arr2
50250			const yyr2 bool = false
50251			yyq2[0] = x.Kind != ""
50252			yyq2[1] = x.APIVersion != ""
50253			yyq2[2] = true
50254			var yynn2 int
50255			if yyr2 || yy2arr2 {
50256				r.EncodeArrayStart(4)
50257			} else {
50258				yynn2 = 1
50259				for _, b := range yyq2 {
50260					if b {
50261						yynn2++
50262					}
50263				}
50264				r.EncodeMapStart(yynn2)
50265				yynn2 = 0
50266			}
50267			if yyr2 || yy2arr2 {
50268				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
50269				if yyq2[0] {
50270					yym4 := z.EncBinary()
50271					_ = yym4
50272					if false {
50273					} else {
50274						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
50275					}
50276				} else {
50277					r.EncodeString(codecSelferC_UTF81234, "")
50278				}
50279			} else {
50280				if yyq2[0] {
50281					z.EncSendContainerState(codecSelfer_containerMapKey1234)
50282					r.EncodeString(codecSelferC_UTF81234, string("kind"))
50283					z.EncSendContainerState(codecSelfer_containerMapValue1234)
50284					yym5 := z.EncBinary()
50285					_ = yym5
50286					if false {
50287					} else {
50288						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
50289					}
50290				}
50291			}
50292			if yyr2 || yy2arr2 {
50293				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
50294				if yyq2[1] {
50295					yym7 := z.EncBinary()
50296					_ = yym7
50297					if false {
50298					} else {
50299						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
50300					}
50301				} else {
50302					r.EncodeString(codecSelferC_UTF81234, "")
50303				}
50304			} else {
50305				if yyq2[1] {
50306					z.EncSendContainerState(codecSelfer_containerMapKey1234)
50307					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
50308					z.EncSendContainerState(codecSelfer_containerMapValue1234)
50309					yym8 := z.EncBinary()
50310					_ = yym8
50311					if false {
50312					} else {
50313						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
50314					}
50315				}
50316			}
50317			if yyr2 || yy2arr2 {
50318				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
50319				if yyq2[2] {
50320					yy10 := &x.ListMeta
50321					yym11 := z.EncBinary()
50322					_ = yym11
50323					if false {
50324					} else if z.HasExtensions() && z.EncExt(yy10) {
50325					} else {
50326						z.EncFallback(yy10)
50327					}
50328				} else {
50329					r.EncodeNil()
50330				}
50331			} else {
50332				if yyq2[2] {
50333					z.EncSendContainerState(codecSelfer_containerMapKey1234)
50334					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
50335					z.EncSendContainerState(codecSelfer_containerMapValue1234)
50336					yy12 := &x.ListMeta
50337					yym13 := z.EncBinary()
50338					_ = yym13
50339					if false {
50340					} else if z.HasExtensions() && z.EncExt(yy12) {
50341					} else {
50342						z.EncFallback(yy12)
50343					}
50344				}
50345			}
50346			if yyr2 || yy2arr2 {
50347				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
50348				if x.Items == nil {
50349					r.EncodeNil()
50350				} else {
50351					yym15 := z.EncBinary()
50352					_ = yym15
50353					if false {
50354					} else {
50355						h.encSliceNode(([]Node)(x.Items), e)
50356					}
50357				}
50358			} else {
50359				z.EncSendContainerState(codecSelfer_containerMapKey1234)
50360				r.EncodeString(codecSelferC_UTF81234, string("items"))
50361				z.EncSendContainerState(codecSelfer_containerMapValue1234)
50362				if x.Items == nil {
50363					r.EncodeNil()
50364				} else {
50365					yym16 := z.EncBinary()
50366					_ = yym16
50367					if false {
50368					} else {
50369						h.encSliceNode(([]Node)(x.Items), e)
50370					}
50371				}
50372			}
50373			if yyr2 || yy2arr2 {
50374				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
50375			} else {
50376				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
50377			}
50378		}
50379	}
50380}
50381
50382func (x *NodeList) CodecDecodeSelf(d *codec1978.Decoder) {
50383	var h codecSelfer1234
50384	z, r := codec1978.GenHelperDecoder(d)
50385	_, _, _ = h, z, r
50386	yym1 := z.DecBinary()
50387	_ = yym1
50388	if false {
50389	} else if z.HasExtensions() && z.DecExt(x) {
50390	} else {
50391		yyct2 := r.ContainerType()
50392		if yyct2 == codecSelferValueTypeMap1234 {
50393			yyl2 := r.ReadMapStart()
50394			if yyl2 == 0 {
50395				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
50396			} else {
50397				x.codecDecodeSelfFromMap(yyl2, d)
50398			}
50399		} else if yyct2 == codecSelferValueTypeArray1234 {
50400			yyl2 := r.ReadArrayStart()
50401			if yyl2 == 0 {
50402				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50403			} else {
50404				x.codecDecodeSelfFromArray(yyl2, d)
50405			}
50406		} else {
50407			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
50408		}
50409	}
50410}
50411
50412func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
50413	var h codecSelfer1234
50414	z, r := codec1978.GenHelperDecoder(d)
50415	_, _, _ = h, z, r
50416	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
50417	_ = yys3Slc
50418	var yyhl3 bool = l >= 0
50419	for yyj3 := 0; ; yyj3++ {
50420		if yyhl3 {
50421			if yyj3 >= l {
50422				break
50423			}
50424		} else {
50425			if r.CheckBreak() {
50426				break
50427			}
50428		}
50429		z.DecSendContainerState(codecSelfer_containerMapKey1234)
50430		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
50431		yys3 := string(yys3Slc)
50432		z.DecSendContainerState(codecSelfer_containerMapValue1234)
50433		switch yys3 {
50434		case "kind":
50435			if r.TryDecodeAsNil() {
50436				x.Kind = ""
50437			} else {
50438				yyv4 := &x.Kind
50439				yym5 := z.DecBinary()
50440				_ = yym5
50441				if false {
50442				} else {
50443					*((*string)(yyv4)) = r.DecodeString()
50444				}
50445			}
50446		case "apiVersion":
50447			if r.TryDecodeAsNil() {
50448				x.APIVersion = ""
50449			} else {
50450				yyv6 := &x.APIVersion
50451				yym7 := z.DecBinary()
50452				_ = yym7
50453				if false {
50454				} else {
50455					*((*string)(yyv6)) = r.DecodeString()
50456				}
50457			}
50458		case "metadata":
50459			if r.TryDecodeAsNil() {
50460				x.ListMeta = pkg2_v1.ListMeta{}
50461			} else {
50462				yyv8 := &x.ListMeta
50463				yym9 := z.DecBinary()
50464				_ = yym9
50465				if false {
50466				} else if z.HasExtensions() && z.DecExt(yyv8) {
50467				} else {
50468					z.DecFallback(yyv8, false)
50469				}
50470			}
50471		case "items":
50472			if r.TryDecodeAsNil() {
50473				x.Items = nil
50474			} else {
50475				yyv10 := &x.Items
50476				yym11 := z.DecBinary()
50477				_ = yym11
50478				if false {
50479				} else {
50480					h.decSliceNode((*[]Node)(yyv10), d)
50481				}
50482			}
50483		default:
50484			z.DecStructFieldNotFound(-1, yys3)
50485		} // end switch yys3
50486	} // end for yyj3
50487	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
50488}
50489
50490func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
50491	var h codecSelfer1234
50492	z, r := codec1978.GenHelperDecoder(d)
50493	_, _, _ = h, z, r
50494	var yyj12 int
50495	var yyb12 bool
50496	var yyhl12 bool = l >= 0
50497	yyj12++
50498	if yyhl12 {
50499		yyb12 = yyj12 > l
50500	} else {
50501		yyb12 = r.CheckBreak()
50502	}
50503	if yyb12 {
50504		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50505		return
50506	}
50507	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
50508	if r.TryDecodeAsNil() {
50509		x.Kind = ""
50510	} else {
50511		yyv13 := &x.Kind
50512		yym14 := z.DecBinary()
50513		_ = yym14
50514		if false {
50515		} else {
50516			*((*string)(yyv13)) = r.DecodeString()
50517		}
50518	}
50519	yyj12++
50520	if yyhl12 {
50521		yyb12 = yyj12 > l
50522	} else {
50523		yyb12 = r.CheckBreak()
50524	}
50525	if yyb12 {
50526		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50527		return
50528	}
50529	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
50530	if r.TryDecodeAsNil() {
50531		x.APIVersion = ""
50532	} else {
50533		yyv15 := &x.APIVersion
50534		yym16 := z.DecBinary()
50535		_ = yym16
50536		if false {
50537		} else {
50538			*((*string)(yyv15)) = r.DecodeString()
50539		}
50540	}
50541	yyj12++
50542	if yyhl12 {
50543		yyb12 = yyj12 > l
50544	} else {
50545		yyb12 = r.CheckBreak()
50546	}
50547	if yyb12 {
50548		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50549		return
50550	}
50551	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
50552	if r.TryDecodeAsNil() {
50553		x.ListMeta = pkg2_v1.ListMeta{}
50554	} else {
50555		yyv17 := &x.ListMeta
50556		yym18 := z.DecBinary()
50557		_ = yym18
50558		if false {
50559		} else if z.HasExtensions() && z.DecExt(yyv17) {
50560		} else {
50561			z.DecFallback(yyv17, false)
50562		}
50563	}
50564	yyj12++
50565	if yyhl12 {
50566		yyb12 = yyj12 > l
50567	} else {
50568		yyb12 = r.CheckBreak()
50569	}
50570	if yyb12 {
50571		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50572		return
50573	}
50574	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
50575	if r.TryDecodeAsNil() {
50576		x.Items = nil
50577	} else {
50578		yyv19 := &x.Items
50579		yym20 := z.DecBinary()
50580		_ = yym20
50581		if false {
50582		} else {
50583			h.decSliceNode((*[]Node)(yyv19), d)
50584		}
50585	}
50586	for {
50587		yyj12++
50588		if yyhl12 {
50589			yyb12 = yyj12 > l
50590		} else {
50591			yyb12 = r.CheckBreak()
50592		}
50593		if yyb12 {
50594			break
50595		}
50596		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
50597		z.DecStructFieldNotFound(yyj12-1, "")
50598	}
50599	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50600}
50601
50602func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) {
50603	var h codecSelfer1234
50604	z, r := codec1978.GenHelperEncoder(e)
50605	_, _, _ = h, z, r
50606	yym1 := z.EncBinary()
50607	_ = yym1
50608	if false {
50609	} else if z.HasExtensions() && z.EncExt(x) {
50610	} else {
50611		r.EncodeString(codecSelferC_UTF81234, string(x))
50612	}
50613}
50614
50615func (x *FinalizerName) CodecDecodeSelf(d *codec1978.Decoder) {
50616	var h codecSelfer1234
50617	z, r := codec1978.GenHelperDecoder(d)
50618	_, _, _ = h, z, r
50619	yym1 := z.DecBinary()
50620	_ = yym1
50621	if false {
50622	} else if z.HasExtensions() && z.DecExt(x) {
50623	} else {
50624		*((*string)(x)) = r.DecodeString()
50625	}
50626}
50627
50628func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) {
50629	var h codecSelfer1234
50630	z, r := codec1978.GenHelperEncoder(e)
50631	_, _, _ = h, z, r
50632	if x == nil {
50633		r.EncodeNil()
50634	} else {
50635		yym1 := z.EncBinary()
50636		_ = yym1
50637		if false {
50638		} else if z.HasExtensions() && z.EncExt(x) {
50639		} else {
50640			yysep2 := !z.EncBinary()
50641			yy2arr2 := z.EncBasicHandle().StructToArray
50642			var yyq2 [1]bool
50643			_, _, _ = yysep2, yyq2, yy2arr2
50644			const yyr2 bool = false
50645			yyq2[0] = len(x.Finalizers) != 0
50646			var yynn2 int
50647			if yyr2 || yy2arr2 {
50648				r.EncodeArrayStart(1)
50649			} else {
50650				yynn2 = 0
50651				for _, b := range yyq2 {
50652					if b {
50653						yynn2++
50654					}
50655				}
50656				r.EncodeMapStart(yynn2)
50657				yynn2 = 0
50658			}
50659			if yyr2 || yy2arr2 {
50660				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
50661				if yyq2[0] {
50662					if x.Finalizers == nil {
50663						r.EncodeNil()
50664					} else {
50665						yym4 := z.EncBinary()
50666						_ = yym4
50667						if false {
50668						} else {
50669							h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e)
50670						}
50671					}
50672				} else {
50673					r.EncodeNil()
50674				}
50675			} else {
50676				if yyq2[0] {
50677					z.EncSendContainerState(codecSelfer_containerMapKey1234)
50678					r.EncodeString(codecSelferC_UTF81234, string("finalizers"))
50679					z.EncSendContainerState(codecSelfer_containerMapValue1234)
50680					if x.Finalizers == nil {
50681						r.EncodeNil()
50682					} else {
50683						yym5 := z.EncBinary()
50684						_ = yym5
50685						if false {
50686						} else {
50687							h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e)
50688						}
50689					}
50690				}
50691			}
50692			if yyr2 || yy2arr2 {
50693				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
50694			} else {
50695				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
50696			}
50697		}
50698	}
50699}
50700
50701func (x *NamespaceSpec) CodecDecodeSelf(d *codec1978.Decoder) {
50702	var h codecSelfer1234
50703	z, r := codec1978.GenHelperDecoder(d)
50704	_, _, _ = h, z, r
50705	yym1 := z.DecBinary()
50706	_ = yym1
50707	if false {
50708	} else if z.HasExtensions() && z.DecExt(x) {
50709	} else {
50710		yyct2 := r.ContainerType()
50711		if yyct2 == codecSelferValueTypeMap1234 {
50712			yyl2 := r.ReadMapStart()
50713			if yyl2 == 0 {
50714				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
50715			} else {
50716				x.codecDecodeSelfFromMap(yyl2, d)
50717			}
50718		} else if yyct2 == codecSelferValueTypeArray1234 {
50719			yyl2 := r.ReadArrayStart()
50720			if yyl2 == 0 {
50721				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50722			} else {
50723				x.codecDecodeSelfFromArray(yyl2, d)
50724			}
50725		} else {
50726			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
50727		}
50728	}
50729}
50730
50731func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
50732	var h codecSelfer1234
50733	z, r := codec1978.GenHelperDecoder(d)
50734	_, _, _ = h, z, r
50735	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
50736	_ = yys3Slc
50737	var yyhl3 bool = l >= 0
50738	for yyj3 := 0; ; yyj3++ {
50739		if yyhl3 {
50740			if yyj3 >= l {
50741				break
50742			}
50743		} else {
50744			if r.CheckBreak() {
50745				break
50746			}
50747		}
50748		z.DecSendContainerState(codecSelfer_containerMapKey1234)
50749		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
50750		yys3 := string(yys3Slc)
50751		z.DecSendContainerState(codecSelfer_containerMapValue1234)
50752		switch yys3 {
50753		case "finalizers":
50754			if r.TryDecodeAsNil() {
50755				x.Finalizers = nil
50756			} else {
50757				yyv4 := &x.Finalizers
50758				yym5 := z.DecBinary()
50759				_ = yym5
50760				if false {
50761				} else {
50762					h.decSliceFinalizerName((*[]FinalizerName)(yyv4), d)
50763				}
50764			}
50765		default:
50766			z.DecStructFieldNotFound(-1, yys3)
50767		} // end switch yys3
50768	} // end for yyj3
50769	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
50770}
50771
50772func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
50773	var h codecSelfer1234
50774	z, r := codec1978.GenHelperDecoder(d)
50775	_, _, _ = h, z, r
50776	var yyj6 int
50777	var yyb6 bool
50778	var yyhl6 bool = l >= 0
50779	yyj6++
50780	if yyhl6 {
50781		yyb6 = yyj6 > l
50782	} else {
50783		yyb6 = r.CheckBreak()
50784	}
50785	if yyb6 {
50786		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50787		return
50788	}
50789	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
50790	if r.TryDecodeAsNil() {
50791		x.Finalizers = nil
50792	} else {
50793		yyv7 := &x.Finalizers
50794		yym8 := z.DecBinary()
50795		_ = yym8
50796		if false {
50797		} else {
50798			h.decSliceFinalizerName((*[]FinalizerName)(yyv7), d)
50799		}
50800	}
50801	for {
50802		yyj6++
50803		if yyhl6 {
50804			yyb6 = yyj6 > l
50805		} else {
50806			yyb6 = r.CheckBreak()
50807		}
50808		if yyb6 {
50809			break
50810		}
50811		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
50812		z.DecStructFieldNotFound(yyj6-1, "")
50813	}
50814	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50815}
50816
50817func (x *NamespaceStatus) CodecEncodeSelf(e *codec1978.Encoder) {
50818	var h codecSelfer1234
50819	z, r := codec1978.GenHelperEncoder(e)
50820	_, _, _ = h, z, r
50821	if x == nil {
50822		r.EncodeNil()
50823	} else {
50824		yym1 := z.EncBinary()
50825		_ = yym1
50826		if false {
50827		} else if z.HasExtensions() && z.EncExt(x) {
50828		} else {
50829			yysep2 := !z.EncBinary()
50830			yy2arr2 := z.EncBasicHandle().StructToArray
50831			var yyq2 [1]bool
50832			_, _, _ = yysep2, yyq2, yy2arr2
50833			const yyr2 bool = false
50834			yyq2[0] = x.Phase != ""
50835			var yynn2 int
50836			if yyr2 || yy2arr2 {
50837				r.EncodeArrayStart(1)
50838			} else {
50839				yynn2 = 0
50840				for _, b := range yyq2 {
50841					if b {
50842						yynn2++
50843					}
50844				}
50845				r.EncodeMapStart(yynn2)
50846				yynn2 = 0
50847			}
50848			if yyr2 || yy2arr2 {
50849				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
50850				if yyq2[0] {
50851					x.Phase.CodecEncodeSelf(e)
50852				} else {
50853					r.EncodeString(codecSelferC_UTF81234, "")
50854				}
50855			} else {
50856				if yyq2[0] {
50857					z.EncSendContainerState(codecSelfer_containerMapKey1234)
50858					r.EncodeString(codecSelferC_UTF81234, string("phase"))
50859					z.EncSendContainerState(codecSelfer_containerMapValue1234)
50860					x.Phase.CodecEncodeSelf(e)
50861				}
50862			}
50863			if yyr2 || yy2arr2 {
50864				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
50865			} else {
50866				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
50867			}
50868		}
50869	}
50870}
50871
50872func (x *NamespaceStatus) CodecDecodeSelf(d *codec1978.Decoder) {
50873	var h codecSelfer1234
50874	z, r := codec1978.GenHelperDecoder(d)
50875	_, _, _ = h, z, r
50876	yym1 := z.DecBinary()
50877	_ = yym1
50878	if false {
50879	} else if z.HasExtensions() && z.DecExt(x) {
50880	} else {
50881		yyct2 := r.ContainerType()
50882		if yyct2 == codecSelferValueTypeMap1234 {
50883			yyl2 := r.ReadMapStart()
50884			if yyl2 == 0 {
50885				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
50886			} else {
50887				x.codecDecodeSelfFromMap(yyl2, d)
50888			}
50889		} else if yyct2 == codecSelferValueTypeArray1234 {
50890			yyl2 := r.ReadArrayStart()
50891			if yyl2 == 0 {
50892				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50893			} else {
50894				x.codecDecodeSelfFromArray(yyl2, d)
50895			}
50896		} else {
50897			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
50898		}
50899	}
50900}
50901
50902func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
50903	var h codecSelfer1234
50904	z, r := codec1978.GenHelperDecoder(d)
50905	_, _, _ = h, z, r
50906	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
50907	_ = yys3Slc
50908	var yyhl3 bool = l >= 0
50909	for yyj3 := 0; ; yyj3++ {
50910		if yyhl3 {
50911			if yyj3 >= l {
50912				break
50913			}
50914		} else {
50915			if r.CheckBreak() {
50916				break
50917			}
50918		}
50919		z.DecSendContainerState(codecSelfer_containerMapKey1234)
50920		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
50921		yys3 := string(yys3Slc)
50922		z.DecSendContainerState(codecSelfer_containerMapValue1234)
50923		switch yys3 {
50924		case "phase":
50925			if r.TryDecodeAsNil() {
50926				x.Phase = ""
50927			} else {
50928				yyv4 := &x.Phase
50929				yyv4.CodecDecodeSelf(d)
50930			}
50931		default:
50932			z.DecStructFieldNotFound(-1, yys3)
50933		} // end switch yys3
50934	} // end for yyj3
50935	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
50936}
50937
50938func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
50939	var h codecSelfer1234
50940	z, r := codec1978.GenHelperDecoder(d)
50941	_, _, _ = h, z, r
50942	var yyj5 int
50943	var yyb5 bool
50944	var yyhl5 bool = l >= 0
50945	yyj5++
50946	if yyhl5 {
50947		yyb5 = yyj5 > l
50948	} else {
50949		yyb5 = r.CheckBreak()
50950	}
50951	if yyb5 {
50952		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50953		return
50954	}
50955	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
50956	if r.TryDecodeAsNil() {
50957		x.Phase = ""
50958	} else {
50959		yyv6 := &x.Phase
50960		yyv6.CodecDecodeSelf(d)
50961	}
50962	for {
50963		yyj5++
50964		if yyhl5 {
50965			yyb5 = yyj5 > l
50966		} else {
50967			yyb5 = r.CheckBreak()
50968		}
50969		if yyb5 {
50970			break
50971		}
50972		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
50973		z.DecStructFieldNotFound(yyj5-1, "")
50974	}
50975	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
50976}
50977
50978func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) {
50979	var h codecSelfer1234
50980	z, r := codec1978.GenHelperEncoder(e)
50981	_, _, _ = h, z, r
50982	yym1 := z.EncBinary()
50983	_ = yym1
50984	if false {
50985	} else if z.HasExtensions() && z.EncExt(x) {
50986	} else {
50987		r.EncodeString(codecSelferC_UTF81234, string(x))
50988	}
50989}
50990
50991func (x *NamespacePhase) CodecDecodeSelf(d *codec1978.Decoder) {
50992	var h codecSelfer1234
50993	z, r := codec1978.GenHelperDecoder(d)
50994	_, _, _ = h, z, r
50995	yym1 := z.DecBinary()
50996	_ = yym1
50997	if false {
50998	} else if z.HasExtensions() && z.DecExt(x) {
50999	} else {
51000		*((*string)(x)) = r.DecodeString()
51001	}
51002}
51003
51004func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) {
51005	var h codecSelfer1234
51006	z, r := codec1978.GenHelperEncoder(e)
51007	_, _, _ = h, z, r
51008	if x == nil {
51009		r.EncodeNil()
51010	} else {
51011		yym1 := z.EncBinary()
51012		_ = yym1
51013		if false {
51014		} else if z.HasExtensions() && z.EncExt(x) {
51015		} else {
51016			yysep2 := !z.EncBinary()
51017			yy2arr2 := z.EncBasicHandle().StructToArray
51018			var yyq2 [5]bool
51019			_, _, _ = yysep2, yyq2, yy2arr2
51020			const yyr2 bool = false
51021			yyq2[0] = x.Kind != ""
51022			yyq2[1] = x.APIVersion != ""
51023			yyq2[2] = true
51024			yyq2[3] = true
51025			yyq2[4] = true
51026			var yynn2 int
51027			if yyr2 || yy2arr2 {
51028				r.EncodeArrayStart(5)
51029			} else {
51030				yynn2 = 0
51031				for _, b := range yyq2 {
51032					if b {
51033						yynn2++
51034					}
51035				}
51036				r.EncodeMapStart(yynn2)
51037				yynn2 = 0
51038			}
51039			if yyr2 || yy2arr2 {
51040				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
51041				if yyq2[0] {
51042					yym4 := z.EncBinary()
51043					_ = yym4
51044					if false {
51045					} else {
51046						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
51047					}
51048				} else {
51049					r.EncodeString(codecSelferC_UTF81234, "")
51050				}
51051			} else {
51052				if yyq2[0] {
51053					z.EncSendContainerState(codecSelfer_containerMapKey1234)
51054					r.EncodeString(codecSelferC_UTF81234, string("kind"))
51055					z.EncSendContainerState(codecSelfer_containerMapValue1234)
51056					yym5 := z.EncBinary()
51057					_ = yym5
51058					if false {
51059					} else {
51060						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
51061					}
51062				}
51063			}
51064			if yyr2 || yy2arr2 {
51065				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
51066				if yyq2[1] {
51067					yym7 := z.EncBinary()
51068					_ = yym7
51069					if false {
51070					} else {
51071						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
51072					}
51073				} else {
51074					r.EncodeString(codecSelferC_UTF81234, "")
51075				}
51076			} else {
51077				if yyq2[1] {
51078					z.EncSendContainerState(codecSelfer_containerMapKey1234)
51079					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
51080					z.EncSendContainerState(codecSelfer_containerMapValue1234)
51081					yym8 := z.EncBinary()
51082					_ = yym8
51083					if false {
51084					} else {
51085						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
51086					}
51087				}
51088			}
51089			if yyr2 || yy2arr2 {
51090				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
51091				if yyq2[2] {
51092					yy10 := &x.ObjectMeta
51093					yym11 := z.EncBinary()
51094					_ = yym11
51095					if false {
51096					} else if z.HasExtensions() && z.EncExt(yy10) {
51097					} else {
51098						z.EncFallback(yy10)
51099					}
51100				} else {
51101					r.EncodeNil()
51102				}
51103			} else {
51104				if yyq2[2] {
51105					z.EncSendContainerState(codecSelfer_containerMapKey1234)
51106					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
51107					z.EncSendContainerState(codecSelfer_containerMapValue1234)
51108					yy12 := &x.ObjectMeta
51109					yym13 := z.EncBinary()
51110					_ = yym13
51111					if false {
51112					} else if z.HasExtensions() && z.EncExt(yy12) {
51113					} else {
51114						z.EncFallback(yy12)
51115					}
51116				}
51117			}
51118			if yyr2 || yy2arr2 {
51119				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
51120				if yyq2[3] {
51121					yy15 := &x.Spec
51122					yy15.CodecEncodeSelf(e)
51123				} else {
51124					r.EncodeNil()
51125				}
51126			} else {
51127				if yyq2[3] {
51128					z.EncSendContainerState(codecSelfer_containerMapKey1234)
51129					r.EncodeString(codecSelferC_UTF81234, string("spec"))
51130					z.EncSendContainerState(codecSelfer_containerMapValue1234)
51131					yy17 := &x.Spec
51132					yy17.CodecEncodeSelf(e)
51133				}
51134			}
51135			if yyr2 || yy2arr2 {
51136				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
51137				if yyq2[4] {
51138					yy20 := &x.Status
51139					yy20.CodecEncodeSelf(e)
51140				} else {
51141					r.EncodeNil()
51142				}
51143			} else {
51144				if yyq2[4] {
51145					z.EncSendContainerState(codecSelfer_containerMapKey1234)
51146					r.EncodeString(codecSelferC_UTF81234, string("status"))
51147					z.EncSendContainerState(codecSelfer_containerMapValue1234)
51148					yy22 := &x.Status
51149					yy22.CodecEncodeSelf(e)
51150				}
51151			}
51152			if yyr2 || yy2arr2 {
51153				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
51154			} else {
51155				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
51156			}
51157		}
51158	}
51159}
51160
51161func (x *Namespace) CodecDecodeSelf(d *codec1978.Decoder) {
51162	var h codecSelfer1234
51163	z, r := codec1978.GenHelperDecoder(d)
51164	_, _, _ = h, z, r
51165	yym1 := z.DecBinary()
51166	_ = yym1
51167	if false {
51168	} else if z.HasExtensions() && z.DecExt(x) {
51169	} else {
51170		yyct2 := r.ContainerType()
51171		if yyct2 == codecSelferValueTypeMap1234 {
51172			yyl2 := r.ReadMapStart()
51173			if yyl2 == 0 {
51174				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
51175			} else {
51176				x.codecDecodeSelfFromMap(yyl2, d)
51177			}
51178		} else if yyct2 == codecSelferValueTypeArray1234 {
51179			yyl2 := r.ReadArrayStart()
51180			if yyl2 == 0 {
51181				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
51182			} else {
51183				x.codecDecodeSelfFromArray(yyl2, d)
51184			}
51185		} else {
51186			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
51187		}
51188	}
51189}
51190
51191func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
51192	var h codecSelfer1234
51193	z, r := codec1978.GenHelperDecoder(d)
51194	_, _, _ = h, z, r
51195	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
51196	_ = yys3Slc
51197	var yyhl3 bool = l >= 0
51198	for yyj3 := 0; ; yyj3++ {
51199		if yyhl3 {
51200			if yyj3 >= l {
51201				break
51202			}
51203		} else {
51204			if r.CheckBreak() {
51205				break
51206			}
51207		}
51208		z.DecSendContainerState(codecSelfer_containerMapKey1234)
51209		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
51210		yys3 := string(yys3Slc)
51211		z.DecSendContainerState(codecSelfer_containerMapValue1234)
51212		switch yys3 {
51213		case "kind":
51214			if r.TryDecodeAsNil() {
51215				x.Kind = ""
51216			} else {
51217				yyv4 := &x.Kind
51218				yym5 := z.DecBinary()
51219				_ = yym5
51220				if false {
51221				} else {
51222					*((*string)(yyv4)) = r.DecodeString()
51223				}
51224			}
51225		case "apiVersion":
51226			if r.TryDecodeAsNil() {
51227				x.APIVersion = ""
51228			} else {
51229				yyv6 := &x.APIVersion
51230				yym7 := z.DecBinary()
51231				_ = yym7
51232				if false {
51233				} else {
51234					*((*string)(yyv6)) = r.DecodeString()
51235				}
51236			}
51237		case "metadata":
51238			if r.TryDecodeAsNil() {
51239				x.ObjectMeta = pkg2_v1.ObjectMeta{}
51240			} else {
51241				yyv8 := &x.ObjectMeta
51242				yym9 := z.DecBinary()
51243				_ = yym9
51244				if false {
51245				} else if z.HasExtensions() && z.DecExt(yyv8) {
51246				} else {
51247					z.DecFallback(yyv8, false)
51248				}
51249			}
51250		case "spec":
51251			if r.TryDecodeAsNil() {
51252				x.Spec = NamespaceSpec{}
51253			} else {
51254				yyv10 := &x.Spec
51255				yyv10.CodecDecodeSelf(d)
51256			}
51257		case "status":
51258			if r.TryDecodeAsNil() {
51259				x.Status = NamespaceStatus{}
51260			} else {
51261				yyv11 := &x.Status
51262				yyv11.CodecDecodeSelf(d)
51263			}
51264		default:
51265			z.DecStructFieldNotFound(-1, yys3)
51266		} // end switch yys3
51267	} // end for yyj3
51268	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
51269}
51270
51271func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
51272	var h codecSelfer1234
51273	z, r := codec1978.GenHelperDecoder(d)
51274	_, _, _ = h, z, r
51275	var yyj12 int
51276	var yyb12 bool
51277	var yyhl12 bool = l >= 0
51278	yyj12++
51279	if yyhl12 {
51280		yyb12 = yyj12 > l
51281	} else {
51282		yyb12 = r.CheckBreak()
51283	}
51284	if yyb12 {
51285		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
51286		return
51287	}
51288	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
51289	if r.TryDecodeAsNil() {
51290		x.Kind = ""
51291	} else {
51292		yyv13 := &x.Kind
51293		yym14 := z.DecBinary()
51294		_ = yym14
51295		if false {
51296		} else {
51297			*((*string)(yyv13)) = r.DecodeString()
51298		}
51299	}
51300	yyj12++
51301	if yyhl12 {
51302		yyb12 = yyj12 > l
51303	} else {
51304		yyb12 = r.CheckBreak()
51305	}
51306	if yyb12 {
51307		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
51308		return
51309	}
51310	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
51311	if r.TryDecodeAsNil() {
51312		x.APIVersion = ""
51313	} else {
51314		yyv15 := &x.APIVersion
51315		yym16 := z.DecBinary()
51316		_ = yym16
51317		if false {
51318		} else {
51319			*((*string)(yyv15)) = r.DecodeString()
51320		}
51321	}
51322	yyj12++
51323	if yyhl12 {
51324		yyb12 = yyj12 > l
51325	} else {
51326		yyb12 = r.CheckBreak()
51327	}
51328	if yyb12 {
51329		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
51330		return
51331	}
51332	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
51333	if r.TryDecodeAsNil() {
51334		x.ObjectMeta = pkg2_v1.ObjectMeta{}
51335	} else {
51336		yyv17 := &x.ObjectMeta
51337		yym18 := z.DecBinary()
51338		_ = yym18
51339		if false {
51340		} else if z.HasExtensions() && z.DecExt(yyv17) {
51341		} else {
51342			z.DecFallback(yyv17, false)
51343		}
51344	}
51345	yyj12++
51346	if yyhl12 {
51347		yyb12 = yyj12 > l
51348	} else {
51349		yyb12 = r.CheckBreak()
51350	}
51351	if yyb12 {
51352		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
51353		return
51354	}
51355	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
51356	if r.TryDecodeAsNil() {
51357		x.Spec = NamespaceSpec{}
51358	} else {
51359		yyv19 := &x.Spec
51360		yyv19.CodecDecodeSelf(d)
51361	}
51362	yyj12++
51363	if yyhl12 {
51364		yyb12 = yyj12 > l
51365	} else {
51366		yyb12 = r.CheckBreak()
51367	}
51368	if yyb12 {
51369		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
51370		return
51371	}
51372	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
51373	if r.TryDecodeAsNil() {
51374		x.Status = NamespaceStatus{}
51375	} else {
51376		yyv20 := &x.Status
51377		yyv20.CodecDecodeSelf(d)
51378	}
51379	for {
51380		yyj12++
51381		if yyhl12 {
51382			yyb12 = yyj12 > l
51383		} else {
51384			yyb12 = r.CheckBreak()
51385		}
51386		if yyb12 {
51387			break
51388		}
51389		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
51390		z.DecStructFieldNotFound(yyj12-1, "")
51391	}
51392	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
51393}
51394
51395func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) {
51396	var h codecSelfer1234
51397	z, r := codec1978.GenHelperEncoder(e)
51398	_, _, _ = h, z, r
51399	if x == nil {
51400		r.EncodeNil()
51401	} else {
51402		yym1 := z.EncBinary()
51403		_ = yym1
51404		if false {
51405		} else if z.HasExtensions() && z.EncExt(x) {
51406		} else {
51407			yysep2 := !z.EncBinary()
51408			yy2arr2 := z.EncBasicHandle().StructToArray
51409			var yyq2 [4]bool
51410			_, _, _ = yysep2, yyq2, yy2arr2
51411			const yyr2 bool = false
51412			yyq2[0] = x.Kind != ""
51413			yyq2[1] = x.APIVersion != ""
51414			yyq2[2] = true
51415			var yynn2 int
51416			if yyr2 || yy2arr2 {
51417				r.EncodeArrayStart(4)
51418			} else {
51419				yynn2 = 1
51420				for _, b := range yyq2 {
51421					if b {
51422						yynn2++
51423					}
51424				}
51425				r.EncodeMapStart(yynn2)
51426				yynn2 = 0
51427			}
51428			if yyr2 || yy2arr2 {
51429				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
51430				if yyq2[0] {
51431					yym4 := z.EncBinary()
51432					_ = yym4
51433					if false {
51434					} else {
51435						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
51436					}
51437				} else {
51438					r.EncodeString(codecSelferC_UTF81234, "")
51439				}
51440			} else {
51441				if yyq2[0] {
51442					z.EncSendContainerState(codecSelfer_containerMapKey1234)
51443					r.EncodeString(codecSelferC_UTF81234, string("kind"))
51444					z.EncSendContainerState(codecSelfer_containerMapValue1234)
51445					yym5 := z.EncBinary()
51446					_ = yym5
51447					if false {
51448					} else {
51449						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
51450					}
51451				}
51452			}
51453			if yyr2 || yy2arr2 {
51454				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
51455				if yyq2[1] {
51456					yym7 := z.EncBinary()
51457					_ = yym7
51458					if false {
51459					} else {
51460						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
51461					}
51462				} else {
51463					r.EncodeString(codecSelferC_UTF81234, "")
51464				}
51465			} else {
51466				if yyq2[1] {
51467					z.EncSendContainerState(codecSelfer_containerMapKey1234)
51468					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
51469					z.EncSendContainerState(codecSelfer_containerMapValue1234)
51470					yym8 := z.EncBinary()
51471					_ = yym8
51472					if false {
51473					} else {
51474						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
51475					}
51476				}
51477			}
51478			if yyr2 || yy2arr2 {
51479				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
51480				if yyq2[2] {
51481					yy10 := &x.ListMeta
51482					yym11 := z.EncBinary()
51483					_ = yym11
51484					if false {
51485					} else if z.HasExtensions() && z.EncExt(yy10) {
51486					} else {
51487						z.EncFallback(yy10)
51488					}
51489				} else {
51490					r.EncodeNil()
51491				}
51492			} else {
51493				if yyq2[2] {
51494					z.EncSendContainerState(codecSelfer_containerMapKey1234)
51495					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
51496					z.EncSendContainerState(codecSelfer_containerMapValue1234)
51497					yy12 := &x.ListMeta
51498					yym13 := z.EncBinary()
51499					_ = yym13
51500					if false {
51501					} else if z.HasExtensions() && z.EncExt(yy12) {
51502					} else {
51503						z.EncFallback(yy12)
51504					}
51505				}
51506			}
51507			if yyr2 || yy2arr2 {
51508				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
51509				if x.Items == nil {
51510					r.EncodeNil()
51511				} else {
51512					yym15 := z.EncBinary()
51513					_ = yym15
51514					if false {
51515					} else {
51516						h.encSliceNamespace(([]Namespace)(x.Items), e)
51517					}
51518				}
51519			} else {
51520				z.EncSendContainerState(codecSelfer_containerMapKey1234)
51521				r.EncodeString(codecSelferC_UTF81234, string("items"))
51522				z.EncSendContainerState(codecSelfer_containerMapValue1234)
51523				if x.Items == nil {
51524					r.EncodeNil()
51525				} else {
51526					yym16 := z.EncBinary()
51527					_ = yym16
51528					if false {
51529					} else {
51530						h.encSliceNamespace(([]Namespace)(x.Items), e)
51531					}
51532				}
51533			}
51534			if yyr2 || yy2arr2 {
51535				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
51536			} else {
51537				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
51538			}
51539		}
51540	}
51541}
51542
51543func (x *NamespaceList) CodecDecodeSelf(d *codec1978.Decoder) {
51544	var h codecSelfer1234
51545	z, r := codec1978.GenHelperDecoder(d)
51546	_, _, _ = h, z, r
51547	yym1 := z.DecBinary()
51548	_ = yym1
51549	if false {
51550	} else if z.HasExtensions() && z.DecExt(x) {
51551	} else {
51552		yyct2 := r.ContainerType()
51553		if yyct2 == codecSelferValueTypeMap1234 {
51554			yyl2 := r.ReadMapStart()
51555			if yyl2 == 0 {
51556				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
51557			} else {
51558				x.codecDecodeSelfFromMap(yyl2, d)
51559			}
51560		} else if yyct2 == codecSelferValueTypeArray1234 {
51561			yyl2 := r.ReadArrayStart()
51562			if yyl2 == 0 {
51563				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
51564			} else {
51565				x.codecDecodeSelfFromArray(yyl2, d)
51566			}
51567		} else {
51568			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
51569		}
51570	}
51571}
51572
51573func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
51574	var h codecSelfer1234
51575	z, r := codec1978.GenHelperDecoder(d)
51576	_, _, _ = h, z, r
51577	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
51578	_ = yys3Slc
51579	var yyhl3 bool = l >= 0
51580	for yyj3 := 0; ; yyj3++ {
51581		if yyhl3 {
51582			if yyj3 >= l {
51583				break
51584			}
51585		} else {
51586			if r.CheckBreak() {
51587				break
51588			}
51589		}
51590		z.DecSendContainerState(codecSelfer_containerMapKey1234)
51591		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
51592		yys3 := string(yys3Slc)
51593		z.DecSendContainerState(codecSelfer_containerMapValue1234)
51594		switch yys3 {
51595		case "kind":
51596			if r.TryDecodeAsNil() {
51597				x.Kind = ""
51598			} else {
51599				yyv4 := &x.Kind
51600				yym5 := z.DecBinary()
51601				_ = yym5
51602				if false {
51603				} else {
51604					*((*string)(yyv4)) = r.DecodeString()
51605				}
51606			}
51607		case "apiVersion":
51608			if r.TryDecodeAsNil() {
51609				x.APIVersion = ""
51610			} else {
51611				yyv6 := &x.APIVersion
51612				yym7 := z.DecBinary()
51613				_ = yym7
51614				if false {
51615				} else {
51616					*((*string)(yyv6)) = r.DecodeString()
51617				}
51618			}
51619		case "metadata":
51620			if r.TryDecodeAsNil() {
51621				x.ListMeta = pkg2_v1.ListMeta{}
51622			} else {
51623				yyv8 := &x.ListMeta
51624				yym9 := z.DecBinary()
51625				_ = yym9
51626				if false {
51627				} else if z.HasExtensions() && z.DecExt(yyv8) {
51628				} else {
51629					z.DecFallback(yyv8, false)
51630				}
51631			}
51632		case "items":
51633			if r.TryDecodeAsNil() {
51634				x.Items = nil
51635			} else {
51636				yyv10 := &x.Items
51637				yym11 := z.DecBinary()
51638				_ = yym11
51639				if false {
51640				} else {
51641					h.decSliceNamespace((*[]Namespace)(yyv10), d)
51642				}
51643			}
51644		default:
51645			z.DecStructFieldNotFound(-1, yys3)
51646		} // end switch yys3
51647	} // end for yyj3
51648	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
51649}
51650
51651func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
51652	var h codecSelfer1234
51653	z, r := codec1978.GenHelperDecoder(d)
51654	_, _, _ = h, z, r
51655	var yyj12 int
51656	var yyb12 bool
51657	var yyhl12 bool = l >= 0
51658	yyj12++
51659	if yyhl12 {
51660		yyb12 = yyj12 > l
51661	} else {
51662		yyb12 = r.CheckBreak()
51663	}
51664	if yyb12 {
51665		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
51666		return
51667	}
51668	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
51669	if r.TryDecodeAsNil() {
51670		x.Kind = ""
51671	} else {
51672		yyv13 := &x.Kind
51673		yym14 := z.DecBinary()
51674		_ = yym14
51675		if false {
51676		} else {
51677			*((*string)(yyv13)) = r.DecodeString()
51678		}
51679	}
51680	yyj12++
51681	if yyhl12 {
51682		yyb12 = yyj12 > l
51683	} else {
51684		yyb12 = r.CheckBreak()
51685	}
51686	if yyb12 {
51687		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
51688		return
51689	}
51690	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
51691	if r.TryDecodeAsNil() {
51692		x.APIVersion = ""
51693	} else {
51694		yyv15 := &x.APIVersion
51695		yym16 := z.DecBinary()
51696		_ = yym16
51697		if false {
51698		} else {
51699			*((*string)(yyv15)) = r.DecodeString()
51700		}
51701	}
51702	yyj12++
51703	if yyhl12 {
51704		yyb12 = yyj12 > l
51705	} else {
51706		yyb12 = r.CheckBreak()
51707	}
51708	if yyb12 {
51709		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
51710		return
51711	}
51712	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
51713	if r.TryDecodeAsNil() {
51714		x.ListMeta = pkg2_v1.ListMeta{}
51715	} else {
51716		yyv17 := &x.ListMeta
51717		yym18 := z.DecBinary()
51718		_ = yym18
51719		if false {
51720		} else if z.HasExtensions() && z.DecExt(yyv17) {
51721		} else {
51722			z.DecFallback(yyv17, false)
51723		}
51724	}
51725	yyj12++
51726	if yyhl12 {
51727		yyb12 = yyj12 > l
51728	} else {
51729		yyb12 = r.CheckBreak()
51730	}
51731	if yyb12 {
51732		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
51733		return
51734	}
51735	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
51736	if r.TryDecodeAsNil() {
51737		x.Items = nil
51738	} else {
51739		yyv19 := &x.Items
51740		yym20 := z.DecBinary()
51741		_ = yym20
51742		if false {
51743		} else {
51744			h.decSliceNamespace((*[]Namespace)(yyv19), d)
51745		}
51746	}
51747	for {
51748		yyj12++
51749		if yyhl12 {
51750			yyb12 = yyj12 > l
51751		} else {
51752			yyb12 = r.CheckBreak()
51753		}
51754		if yyb12 {
51755			break
51756		}
51757		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
51758		z.DecStructFieldNotFound(yyj12-1, "")
51759	}
51760	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
51761}
51762
51763func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) {
51764	var h codecSelfer1234
51765	z, r := codec1978.GenHelperEncoder(e)
51766	_, _, _ = h, z, r
51767	if x == nil {
51768		r.EncodeNil()
51769	} else {
51770		yym1 := z.EncBinary()
51771		_ = yym1
51772		if false {
51773		} else if z.HasExtensions() && z.EncExt(x) {
51774		} else {
51775			yysep2 := !z.EncBinary()
51776			yy2arr2 := z.EncBasicHandle().StructToArray
51777			var yyq2 [4]bool
51778			_, _, _ = yysep2, yyq2, yy2arr2
51779			const yyr2 bool = false
51780			yyq2[0] = x.Kind != ""
51781			yyq2[1] = x.APIVersion != ""
51782			yyq2[2] = true
51783			var yynn2 int
51784			if yyr2 || yy2arr2 {
51785				r.EncodeArrayStart(4)
51786			} else {
51787				yynn2 = 1
51788				for _, b := range yyq2 {
51789					if b {
51790						yynn2++
51791					}
51792				}
51793				r.EncodeMapStart(yynn2)
51794				yynn2 = 0
51795			}
51796			if yyr2 || yy2arr2 {
51797				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
51798				if yyq2[0] {
51799					yym4 := z.EncBinary()
51800					_ = yym4
51801					if false {
51802					} else {
51803						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
51804					}
51805				} else {
51806					r.EncodeString(codecSelferC_UTF81234, "")
51807				}
51808			} else {
51809				if yyq2[0] {
51810					z.EncSendContainerState(codecSelfer_containerMapKey1234)
51811					r.EncodeString(codecSelferC_UTF81234, string("kind"))
51812					z.EncSendContainerState(codecSelfer_containerMapValue1234)
51813					yym5 := z.EncBinary()
51814					_ = yym5
51815					if false {
51816					} else {
51817						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
51818					}
51819				}
51820			}
51821			if yyr2 || yy2arr2 {
51822				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
51823				if yyq2[1] {
51824					yym7 := z.EncBinary()
51825					_ = yym7
51826					if false {
51827					} else {
51828						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
51829					}
51830				} else {
51831					r.EncodeString(codecSelferC_UTF81234, "")
51832				}
51833			} else {
51834				if yyq2[1] {
51835					z.EncSendContainerState(codecSelfer_containerMapKey1234)
51836					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
51837					z.EncSendContainerState(codecSelfer_containerMapValue1234)
51838					yym8 := z.EncBinary()
51839					_ = yym8
51840					if false {
51841					} else {
51842						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
51843					}
51844				}
51845			}
51846			if yyr2 || yy2arr2 {
51847				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
51848				if yyq2[2] {
51849					yy10 := &x.ObjectMeta
51850					yym11 := z.EncBinary()
51851					_ = yym11
51852					if false {
51853					} else if z.HasExtensions() && z.EncExt(yy10) {
51854					} else {
51855						z.EncFallback(yy10)
51856					}
51857				} else {
51858					r.EncodeNil()
51859				}
51860			} else {
51861				if yyq2[2] {
51862					z.EncSendContainerState(codecSelfer_containerMapKey1234)
51863					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
51864					z.EncSendContainerState(codecSelfer_containerMapValue1234)
51865					yy12 := &x.ObjectMeta
51866					yym13 := z.EncBinary()
51867					_ = yym13
51868					if false {
51869					} else if z.HasExtensions() && z.EncExt(yy12) {
51870					} else {
51871						z.EncFallback(yy12)
51872					}
51873				}
51874			}
51875			if yyr2 || yy2arr2 {
51876				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
51877				yy15 := &x.Target
51878				yy15.CodecEncodeSelf(e)
51879			} else {
51880				z.EncSendContainerState(codecSelfer_containerMapKey1234)
51881				r.EncodeString(codecSelferC_UTF81234, string("target"))
51882				z.EncSendContainerState(codecSelfer_containerMapValue1234)
51883				yy17 := &x.Target
51884				yy17.CodecEncodeSelf(e)
51885			}
51886			if yyr2 || yy2arr2 {
51887				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
51888			} else {
51889				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
51890			}
51891		}
51892	}
51893}
51894
51895func (x *Binding) CodecDecodeSelf(d *codec1978.Decoder) {
51896	var h codecSelfer1234
51897	z, r := codec1978.GenHelperDecoder(d)
51898	_, _, _ = h, z, r
51899	yym1 := z.DecBinary()
51900	_ = yym1
51901	if false {
51902	} else if z.HasExtensions() && z.DecExt(x) {
51903	} else {
51904		yyct2 := r.ContainerType()
51905		if yyct2 == codecSelferValueTypeMap1234 {
51906			yyl2 := r.ReadMapStart()
51907			if yyl2 == 0 {
51908				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
51909			} else {
51910				x.codecDecodeSelfFromMap(yyl2, d)
51911			}
51912		} else if yyct2 == codecSelferValueTypeArray1234 {
51913			yyl2 := r.ReadArrayStart()
51914			if yyl2 == 0 {
51915				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
51916			} else {
51917				x.codecDecodeSelfFromArray(yyl2, d)
51918			}
51919		} else {
51920			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
51921		}
51922	}
51923}
51924
51925func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
51926	var h codecSelfer1234
51927	z, r := codec1978.GenHelperDecoder(d)
51928	_, _, _ = h, z, r
51929	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
51930	_ = yys3Slc
51931	var yyhl3 bool = l >= 0
51932	for yyj3 := 0; ; yyj3++ {
51933		if yyhl3 {
51934			if yyj3 >= l {
51935				break
51936			}
51937		} else {
51938			if r.CheckBreak() {
51939				break
51940			}
51941		}
51942		z.DecSendContainerState(codecSelfer_containerMapKey1234)
51943		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
51944		yys3 := string(yys3Slc)
51945		z.DecSendContainerState(codecSelfer_containerMapValue1234)
51946		switch yys3 {
51947		case "kind":
51948			if r.TryDecodeAsNil() {
51949				x.Kind = ""
51950			} else {
51951				yyv4 := &x.Kind
51952				yym5 := z.DecBinary()
51953				_ = yym5
51954				if false {
51955				} else {
51956					*((*string)(yyv4)) = r.DecodeString()
51957				}
51958			}
51959		case "apiVersion":
51960			if r.TryDecodeAsNil() {
51961				x.APIVersion = ""
51962			} else {
51963				yyv6 := &x.APIVersion
51964				yym7 := z.DecBinary()
51965				_ = yym7
51966				if false {
51967				} else {
51968					*((*string)(yyv6)) = r.DecodeString()
51969				}
51970			}
51971		case "metadata":
51972			if r.TryDecodeAsNil() {
51973				x.ObjectMeta = pkg2_v1.ObjectMeta{}
51974			} else {
51975				yyv8 := &x.ObjectMeta
51976				yym9 := z.DecBinary()
51977				_ = yym9
51978				if false {
51979				} else if z.HasExtensions() && z.DecExt(yyv8) {
51980				} else {
51981					z.DecFallback(yyv8, false)
51982				}
51983			}
51984		case "target":
51985			if r.TryDecodeAsNil() {
51986				x.Target = ObjectReference{}
51987			} else {
51988				yyv10 := &x.Target
51989				yyv10.CodecDecodeSelf(d)
51990			}
51991		default:
51992			z.DecStructFieldNotFound(-1, yys3)
51993		} // end switch yys3
51994	} // end for yyj3
51995	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
51996}
51997
51998func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
51999	var h codecSelfer1234
52000	z, r := codec1978.GenHelperDecoder(d)
52001	_, _, _ = h, z, r
52002	var yyj11 int
52003	var yyb11 bool
52004	var yyhl11 bool = l >= 0
52005	yyj11++
52006	if yyhl11 {
52007		yyb11 = yyj11 > l
52008	} else {
52009		yyb11 = r.CheckBreak()
52010	}
52011	if yyb11 {
52012		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
52013		return
52014	}
52015	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
52016	if r.TryDecodeAsNil() {
52017		x.Kind = ""
52018	} else {
52019		yyv12 := &x.Kind
52020		yym13 := z.DecBinary()
52021		_ = yym13
52022		if false {
52023		} else {
52024			*((*string)(yyv12)) = r.DecodeString()
52025		}
52026	}
52027	yyj11++
52028	if yyhl11 {
52029		yyb11 = yyj11 > l
52030	} else {
52031		yyb11 = r.CheckBreak()
52032	}
52033	if yyb11 {
52034		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
52035		return
52036	}
52037	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
52038	if r.TryDecodeAsNil() {
52039		x.APIVersion = ""
52040	} else {
52041		yyv14 := &x.APIVersion
52042		yym15 := z.DecBinary()
52043		_ = yym15
52044		if false {
52045		} else {
52046			*((*string)(yyv14)) = r.DecodeString()
52047		}
52048	}
52049	yyj11++
52050	if yyhl11 {
52051		yyb11 = yyj11 > l
52052	} else {
52053		yyb11 = r.CheckBreak()
52054	}
52055	if yyb11 {
52056		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
52057		return
52058	}
52059	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
52060	if r.TryDecodeAsNil() {
52061		x.ObjectMeta = pkg2_v1.ObjectMeta{}
52062	} else {
52063		yyv16 := &x.ObjectMeta
52064		yym17 := z.DecBinary()
52065		_ = yym17
52066		if false {
52067		} else if z.HasExtensions() && z.DecExt(yyv16) {
52068		} else {
52069			z.DecFallback(yyv16, false)
52070		}
52071	}
52072	yyj11++
52073	if yyhl11 {
52074		yyb11 = yyj11 > l
52075	} else {
52076		yyb11 = r.CheckBreak()
52077	}
52078	if yyb11 {
52079		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
52080		return
52081	}
52082	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
52083	if r.TryDecodeAsNil() {
52084		x.Target = ObjectReference{}
52085	} else {
52086		yyv18 := &x.Target
52087		yyv18.CodecDecodeSelf(d)
52088	}
52089	for {
52090		yyj11++
52091		if yyhl11 {
52092			yyb11 = yyj11 > l
52093		} else {
52094			yyb11 = r.CheckBreak()
52095		}
52096		if yyb11 {
52097			break
52098		}
52099		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
52100		z.DecStructFieldNotFound(yyj11-1, "")
52101	}
52102	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
52103}
52104
52105func (x *Preconditions) CodecEncodeSelf(e *codec1978.Encoder) {
52106	var h codecSelfer1234
52107	z, r := codec1978.GenHelperEncoder(e)
52108	_, _, _ = h, z, r
52109	if x == nil {
52110		r.EncodeNil()
52111	} else {
52112		yym1 := z.EncBinary()
52113		_ = yym1
52114		if false {
52115		} else if z.HasExtensions() && z.EncExt(x) {
52116		} else {
52117			yysep2 := !z.EncBinary()
52118			yy2arr2 := z.EncBasicHandle().StructToArray
52119			var yyq2 [1]bool
52120			_, _, _ = yysep2, yyq2, yy2arr2
52121			const yyr2 bool = false
52122			yyq2[0] = x.UID != nil
52123			var yynn2 int
52124			if yyr2 || yy2arr2 {
52125				r.EncodeArrayStart(1)
52126			} else {
52127				yynn2 = 0
52128				for _, b := range yyq2 {
52129					if b {
52130						yynn2++
52131					}
52132				}
52133				r.EncodeMapStart(yynn2)
52134				yynn2 = 0
52135			}
52136			if yyr2 || yy2arr2 {
52137				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
52138				if yyq2[0] {
52139					if x.UID == nil {
52140						r.EncodeNil()
52141					} else {
52142						yy4 := *x.UID
52143						yym5 := z.EncBinary()
52144						_ = yym5
52145						if false {
52146						} else if z.HasExtensions() && z.EncExt(yy4) {
52147						} else {
52148							r.EncodeString(codecSelferC_UTF81234, string(yy4))
52149						}
52150					}
52151				} else {
52152					r.EncodeNil()
52153				}
52154			} else {
52155				if yyq2[0] {
52156					z.EncSendContainerState(codecSelfer_containerMapKey1234)
52157					r.EncodeString(codecSelferC_UTF81234, string("uid"))
52158					z.EncSendContainerState(codecSelfer_containerMapValue1234)
52159					if x.UID == nil {
52160						r.EncodeNil()
52161					} else {
52162						yy6 := *x.UID
52163						yym7 := z.EncBinary()
52164						_ = yym7
52165						if false {
52166						} else if z.HasExtensions() && z.EncExt(yy6) {
52167						} else {
52168							r.EncodeString(codecSelferC_UTF81234, string(yy6))
52169						}
52170					}
52171				}
52172			}
52173			if yyr2 || yy2arr2 {
52174				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
52175			} else {
52176				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
52177			}
52178		}
52179	}
52180}
52181
52182func (x *Preconditions) CodecDecodeSelf(d *codec1978.Decoder) {
52183	var h codecSelfer1234
52184	z, r := codec1978.GenHelperDecoder(d)
52185	_, _, _ = h, z, r
52186	yym1 := z.DecBinary()
52187	_ = yym1
52188	if false {
52189	} else if z.HasExtensions() && z.DecExt(x) {
52190	} else {
52191		yyct2 := r.ContainerType()
52192		if yyct2 == codecSelferValueTypeMap1234 {
52193			yyl2 := r.ReadMapStart()
52194			if yyl2 == 0 {
52195				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
52196			} else {
52197				x.codecDecodeSelfFromMap(yyl2, d)
52198			}
52199		} else if yyct2 == codecSelferValueTypeArray1234 {
52200			yyl2 := r.ReadArrayStart()
52201			if yyl2 == 0 {
52202				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
52203			} else {
52204				x.codecDecodeSelfFromArray(yyl2, d)
52205			}
52206		} else {
52207			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
52208		}
52209	}
52210}
52211
52212func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
52213	var h codecSelfer1234
52214	z, r := codec1978.GenHelperDecoder(d)
52215	_, _, _ = h, z, r
52216	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
52217	_ = yys3Slc
52218	var yyhl3 bool = l >= 0
52219	for yyj3 := 0; ; yyj3++ {
52220		if yyhl3 {
52221			if yyj3 >= l {
52222				break
52223			}
52224		} else {
52225			if r.CheckBreak() {
52226				break
52227			}
52228		}
52229		z.DecSendContainerState(codecSelfer_containerMapKey1234)
52230		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
52231		yys3 := string(yys3Slc)
52232		z.DecSendContainerState(codecSelfer_containerMapValue1234)
52233		switch yys3 {
52234		case "uid":
52235			if r.TryDecodeAsNil() {
52236				if x.UID != nil {
52237					x.UID = nil
52238				}
52239			} else {
52240				if x.UID == nil {
52241					x.UID = new(pkg1_types.UID)
52242				}
52243				yym5 := z.DecBinary()
52244				_ = yym5
52245				if false {
52246				} else if z.HasExtensions() && z.DecExt(x.UID) {
52247				} else {
52248					*((*string)(x.UID)) = r.DecodeString()
52249				}
52250			}
52251		default:
52252			z.DecStructFieldNotFound(-1, yys3)
52253		} // end switch yys3
52254	} // end for yyj3
52255	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
52256}
52257
52258func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
52259	var h codecSelfer1234
52260	z, r := codec1978.GenHelperDecoder(d)
52261	_, _, _ = h, z, r
52262	var yyj6 int
52263	var yyb6 bool
52264	var yyhl6 bool = l >= 0
52265	yyj6++
52266	if yyhl6 {
52267		yyb6 = yyj6 > l
52268	} else {
52269		yyb6 = r.CheckBreak()
52270	}
52271	if yyb6 {
52272		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
52273		return
52274	}
52275	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
52276	if r.TryDecodeAsNil() {
52277		if x.UID != nil {
52278			x.UID = nil
52279		}
52280	} else {
52281		if x.UID == nil {
52282			x.UID = new(pkg1_types.UID)
52283		}
52284		yym8 := z.DecBinary()
52285		_ = yym8
52286		if false {
52287		} else if z.HasExtensions() && z.DecExt(x.UID) {
52288		} else {
52289			*((*string)(x.UID)) = r.DecodeString()
52290		}
52291	}
52292	for {
52293		yyj6++
52294		if yyhl6 {
52295			yyb6 = yyj6 > l
52296		} else {
52297			yyb6 = r.CheckBreak()
52298		}
52299		if yyb6 {
52300			break
52301		}
52302		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
52303		z.DecStructFieldNotFound(yyj6-1, "")
52304	}
52305	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
52306}
52307
52308func (x DeletionPropagation) CodecEncodeSelf(e *codec1978.Encoder) {
52309	var h codecSelfer1234
52310	z, r := codec1978.GenHelperEncoder(e)
52311	_, _, _ = h, z, r
52312	yym1 := z.EncBinary()
52313	_ = yym1
52314	if false {
52315	} else if z.HasExtensions() && z.EncExt(x) {
52316	} else {
52317		r.EncodeString(codecSelferC_UTF81234, string(x))
52318	}
52319}
52320
52321func (x *DeletionPropagation) CodecDecodeSelf(d *codec1978.Decoder) {
52322	var h codecSelfer1234
52323	z, r := codec1978.GenHelperDecoder(d)
52324	_, _, _ = h, z, r
52325	yym1 := z.DecBinary()
52326	_ = yym1
52327	if false {
52328	} else if z.HasExtensions() && z.DecExt(x) {
52329	} else {
52330		*((*string)(x)) = r.DecodeString()
52331	}
52332}
52333
52334func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) {
52335	var h codecSelfer1234
52336	z, r := codec1978.GenHelperEncoder(e)
52337	_, _, _ = h, z, r
52338	if x == nil {
52339		r.EncodeNil()
52340	} else {
52341		yym1 := z.EncBinary()
52342		_ = yym1
52343		if false {
52344		} else if z.HasExtensions() && z.EncExt(x) {
52345		} else {
52346			yysep2 := !z.EncBinary()
52347			yy2arr2 := z.EncBasicHandle().StructToArray
52348			var yyq2 [6]bool
52349			_, _, _ = yysep2, yyq2, yy2arr2
52350			const yyr2 bool = false
52351			yyq2[0] = x.Kind != ""
52352			yyq2[1] = x.APIVersion != ""
52353			yyq2[2] = x.GracePeriodSeconds != nil
52354			yyq2[3] = x.Preconditions != nil
52355			yyq2[4] = x.OrphanDependents != nil
52356			var yynn2 int
52357			if yyr2 || yy2arr2 {
52358				r.EncodeArrayStart(6)
52359			} else {
52360				yynn2 = 1
52361				for _, b := range yyq2 {
52362					if b {
52363						yynn2++
52364					}
52365				}
52366				r.EncodeMapStart(yynn2)
52367				yynn2 = 0
52368			}
52369			if yyr2 || yy2arr2 {
52370				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
52371				if yyq2[0] {
52372					yym4 := z.EncBinary()
52373					_ = yym4
52374					if false {
52375					} else {
52376						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
52377					}
52378				} else {
52379					r.EncodeString(codecSelferC_UTF81234, "")
52380				}
52381			} else {
52382				if yyq2[0] {
52383					z.EncSendContainerState(codecSelfer_containerMapKey1234)
52384					r.EncodeString(codecSelferC_UTF81234, string("kind"))
52385					z.EncSendContainerState(codecSelfer_containerMapValue1234)
52386					yym5 := z.EncBinary()
52387					_ = yym5
52388					if false {
52389					} else {
52390						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
52391					}
52392				}
52393			}
52394			if yyr2 || yy2arr2 {
52395				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
52396				if yyq2[1] {
52397					yym7 := z.EncBinary()
52398					_ = yym7
52399					if false {
52400					} else {
52401						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
52402					}
52403				} else {
52404					r.EncodeString(codecSelferC_UTF81234, "")
52405				}
52406			} else {
52407				if yyq2[1] {
52408					z.EncSendContainerState(codecSelfer_containerMapKey1234)
52409					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
52410					z.EncSendContainerState(codecSelfer_containerMapValue1234)
52411					yym8 := z.EncBinary()
52412					_ = yym8
52413					if false {
52414					} else {
52415						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
52416					}
52417				}
52418			}
52419			if yyr2 || yy2arr2 {
52420				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
52421				if yyq2[2] {
52422					if x.GracePeriodSeconds == nil {
52423						r.EncodeNil()
52424					} else {
52425						yy10 := *x.GracePeriodSeconds
52426						yym11 := z.EncBinary()
52427						_ = yym11
52428						if false {
52429						} else {
52430							r.EncodeInt(int64(yy10))
52431						}
52432					}
52433				} else {
52434					r.EncodeNil()
52435				}
52436			} else {
52437				if yyq2[2] {
52438					z.EncSendContainerState(codecSelfer_containerMapKey1234)
52439					r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds"))
52440					z.EncSendContainerState(codecSelfer_containerMapValue1234)
52441					if x.GracePeriodSeconds == nil {
52442						r.EncodeNil()
52443					} else {
52444						yy12 := *x.GracePeriodSeconds
52445						yym13 := z.EncBinary()
52446						_ = yym13
52447						if false {
52448						} else {
52449							r.EncodeInt(int64(yy12))
52450						}
52451					}
52452				}
52453			}
52454			if yyr2 || yy2arr2 {
52455				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
52456				if yyq2[3] {
52457					if x.Preconditions == nil {
52458						r.EncodeNil()
52459					} else {
52460						x.Preconditions.CodecEncodeSelf(e)
52461					}
52462				} else {
52463					r.EncodeNil()
52464				}
52465			} else {
52466				if yyq2[3] {
52467					z.EncSendContainerState(codecSelfer_containerMapKey1234)
52468					r.EncodeString(codecSelferC_UTF81234, string("preconditions"))
52469					z.EncSendContainerState(codecSelfer_containerMapValue1234)
52470					if x.Preconditions == nil {
52471						r.EncodeNil()
52472					} else {
52473						x.Preconditions.CodecEncodeSelf(e)
52474					}
52475				}
52476			}
52477			if yyr2 || yy2arr2 {
52478				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
52479				if yyq2[4] {
52480					if x.OrphanDependents == nil {
52481						r.EncodeNil()
52482					} else {
52483						yy18 := *x.OrphanDependents
52484						yym19 := z.EncBinary()
52485						_ = yym19
52486						if false {
52487						} else {
52488							r.EncodeBool(bool(yy18))
52489						}
52490					}
52491				} else {
52492					r.EncodeNil()
52493				}
52494			} else {
52495				if yyq2[4] {
52496					z.EncSendContainerState(codecSelfer_containerMapKey1234)
52497					r.EncodeString(codecSelferC_UTF81234, string("orphanDependents"))
52498					z.EncSendContainerState(codecSelfer_containerMapValue1234)
52499					if x.OrphanDependents == nil {
52500						r.EncodeNil()
52501					} else {
52502						yy20 := *x.OrphanDependents
52503						yym21 := z.EncBinary()
52504						_ = yym21
52505						if false {
52506						} else {
52507							r.EncodeBool(bool(yy20))
52508						}
52509					}
52510				}
52511			}
52512			if yyr2 || yy2arr2 {
52513				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
52514				if x.PropagationPolicy == nil {
52515					r.EncodeNil()
52516				} else {
52517					yy23 := *x.PropagationPolicy
52518					yy23.CodecEncodeSelf(e)
52519				}
52520			} else {
52521				z.EncSendContainerState(codecSelfer_containerMapKey1234)
52522				r.EncodeString(codecSelferC_UTF81234, string("PropagationPolicy"))
52523				z.EncSendContainerState(codecSelfer_containerMapValue1234)
52524				if x.PropagationPolicy == nil {
52525					r.EncodeNil()
52526				} else {
52527					yy25 := *x.PropagationPolicy
52528					yy25.CodecEncodeSelf(e)
52529				}
52530			}
52531			if yyr2 || yy2arr2 {
52532				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
52533			} else {
52534				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
52535			}
52536		}
52537	}
52538}
52539
52540func (x *DeleteOptions) CodecDecodeSelf(d *codec1978.Decoder) {
52541	var h codecSelfer1234
52542	z, r := codec1978.GenHelperDecoder(d)
52543	_, _, _ = h, z, r
52544	yym1 := z.DecBinary()
52545	_ = yym1
52546	if false {
52547	} else if z.HasExtensions() && z.DecExt(x) {
52548	} else {
52549		yyct2 := r.ContainerType()
52550		if yyct2 == codecSelferValueTypeMap1234 {
52551			yyl2 := r.ReadMapStart()
52552			if yyl2 == 0 {
52553				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
52554			} else {
52555				x.codecDecodeSelfFromMap(yyl2, d)
52556			}
52557		} else if yyct2 == codecSelferValueTypeArray1234 {
52558			yyl2 := r.ReadArrayStart()
52559			if yyl2 == 0 {
52560				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
52561			} else {
52562				x.codecDecodeSelfFromArray(yyl2, d)
52563			}
52564		} else {
52565			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
52566		}
52567	}
52568}
52569
52570func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
52571	var h codecSelfer1234
52572	z, r := codec1978.GenHelperDecoder(d)
52573	_, _, _ = h, z, r
52574	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
52575	_ = yys3Slc
52576	var yyhl3 bool = l >= 0
52577	for yyj3 := 0; ; yyj3++ {
52578		if yyhl3 {
52579			if yyj3 >= l {
52580				break
52581			}
52582		} else {
52583			if r.CheckBreak() {
52584				break
52585			}
52586		}
52587		z.DecSendContainerState(codecSelfer_containerMapKey1234)
52588		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
52589		yys3 := string(yys3Slc)
52590		z.DecSendContainerState(codecSelfer_containerMapValue1234)
52591		switch yys3 {
52592		case "kind":
52593			if r.TryDecodeAsNil() {
52594				x.Kind = ""
52595			} else {
52596				yyv4 := &x.Kind
52597				yym5 := z.DecBinary()
52598				_ = yym5
52599				if false {
52600				} else {
52601					*((*string)(yyv4)) = r.DecodeString()
52602				}
52603			}
52604		case "apiVersion":
52605			if r.TryDecodeAsNil() {
52606				x.APIVersion = ""
52607			} else {
52608				yyv6 := &x.APIVersion
52609				yym7 := z.DecBinary()
52610				_ = yym7
52611				if false {
52612				} else {
52613					*((*string)(yyv6)) = r.DecodeString()
52614				}
52615			}
52616		case "gracePeriodSeconds":
52617			if r.TryDecodeAsNil() {
52618				if x.GracePeriodSeconds != nil {
52619					x.GracePeriodSeconds = nil
52620				}
52621			} else {
52622				if x.GracePeriodSeconds == nil {
52623					x.GracePeriodSeconds = new(int64)
52624				}
52625				yym9 := z.DecBinary()
52626				_ = yym9
52627				if false {
52628				} else {
52629					*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
52630				}
52631			}
52632		case "preconditions":
52633			if r.TryDecodeAsNil() {
52634				if x.Preconditions != nil {
52635					x.Preconditions = nil
52636				}
52637			} else {
52638				if x.Preconditions == nil {
52639					x.Preconditions = new(Preconditions)
52640				}
52641				x.Preconditions.CodecDecodeSelf(d)
52642			}
52643		case "orphanDependents":
52644			if r.TryDecodeAsNil() {
52645				if x.OrphanDependents != nil {
52646					x.OrphanDependents = nil
52647				}
52648			} else {
52649				if x.OrphanDependents == nil {
52650					x.OrphanDependents = new(bool)
52651				}
52652				yym12 := z.DecBinary()
52653				_ = yym12
52654				if false {
52655				} else {
52656					*((*bool)(x.OrphanDependents)) = r.DecodeBool()
52657				}
52658			}
52659		case "PropagationPolicy":
52660			if r.TryDecodeAsNil() {
52661				if x.PropagationPolicy != nil {
52662					x.PropagationPolicy = nil
52663				}
52664			} else {
52665				if x.PropagationPolicy == nil {
52666					x.PropagationPolicy = new(DeletionPropagation)
52667				}
52668				x.PropagationPolicy.CodecDecodeSelf(d)
52669			}
52670		default:
52671			z.DecStructFieldNotFound(-1, yys3)
52672		} // end switch yys3
52673	} // end for yyj3
52674	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
52675}
52676
52677func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
52678	var h codecSelfer1234
52679	z, r := codec1978.GenHelperDecoder(d)
52680	_, _, _ = h, z, r
52681	var yyj14 int
52682	var yyb14 bool
52683	var yyhl14 bool = l >= 0
52684	yyj14++
52685	if yyhl14 {
52686		yyb14 = yyj14 > l
52687	} else {
52688		yyb14 = r.CheckBreak()
52689	}
52690	if yyb14 {
52691		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
52692		return
52693	}
52694	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
52695	if r.TryDecodeAsNil() {
52696		x.Kind = ""
52697	} else {
52698		yyv15 := &x.Kind
52699		yym16 := z.DecBinary()
52700		_ = yym16
52701		if false {
52702		} else {
52703			*((*string)(yyv15)) = r.DecodeString()
52704		}
52705	}
52706	yyj14++
52707	if yyhl14 {
52708		yyb14 = yyj14 > l
52709	} else {
52710		yyb14 = r.CheckBreak()
52711	}
52712	if yyb14 {
52713		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
52714		return
52715	}
52716	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
52717	if r.TryDecodeAsNil() {
52718		x.APIVersion = ""
52719	} else {
52720		yyv17 := &x.APIVersion
52721		yym18 := z.DecBinary()
52722		_ = yym18
52723		if false {
52724		} else {
52725			*((*string)(yyv17)) = r.DecodeString()
52726		}
52727	}
52728	yyj14++
52729	if yyhl14 {
52730		yyb14 = yyj14 > l
52731	} else {
52732		yyb14 = r.CheckBreak()
52733	}
52734	if yyb14 {
52735		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
52736		return
52737	}
52738	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
52739	if r.TryDecodeAsNil() {
52740		if x.GracePeriodSeconds != nil {
52741			x.GracePeriodSeconds = nil
52742		}
52743	} else {
52744		if x.GracePeriodSeconds == nil {
52745			x.GracePeriodSeconds = new(int64)
52746		}
52747		yym20 := z.DecBinary()
52748		_ = yym20
52749		if false {
52750		} else {
52751			*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
52752		}
52753	}
52754	yyj14++
52755	if yyhl14 {
52756		yyb14 = yyj14 > l
52757	} else {
52758		yyb14 = r.CheckBreak()
52759	}
52760	if yyb14 {
52761		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
52762		return
52763	}
52764	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
52765	if r.TryDecodeAsNil() {
52766		if x.Preconditions != nil {
52767			x.Preconditions = nil
52768		}
52769	} else {
52770		if x.Preconditions == nil {
52771			x.Preconditions = new(Preconditions)
52772		}
52773		x.Preconditions.CodecDecodeSelf(d)
52774	}
52775	yyj14++
52776	if yyhl14 {
52777		yyb14 = yyj14 > l
52778	} else {
52779		yyb14 = r.CheckBreak()
52780	}
52781	if yyb14 {
52782		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
52783		return
52784	}
52785	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
52786	if r.TryDecodeAsNil() {
52787		if x.OrphanDependents != nil {
52788			x.OrphanDependents = nil
52789		}
52790	} else {
52791		if x.OrphanDependents == nil {
52792			x.OrphanDependents = new(bool)
52793		}
52794		yym23 := z.DecBinary()
52795		_ = yym23
52796		if false {
52797		} else {
52798			*((*bool)(x.OrphanDependents)) = r.DecodeBool()
52799		}
52800	}
52801	yyj14++
52802	if yyhl14 {
52803		yyb14 = yyj14 > l
52804	} else {
52805		yyb14 = r.CheckBreak()
52806	}
52807	if yyb14 {
52808		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
52809		return
52810	}
52811	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
52812	if r.TryDecodeAsNil() {
52813		if x.PropagationPolicy != nil {
52814			x.PropagationPolicy = nil
52815		}
52816	} else {
52817		if x.PropagationPolicy == nil {
52818			x.PropagationPolicy = new(DeletionPropagation)
52819		}
52820		x.PropagationPolicy.CodecDecodeSelf(d)
52821	}
52822	for {
52823		yyj14++
52824		if yyhl14 {
52825			yyb14 = yyj14 > l
52826		} else {
52827			yyb14 = r.CheckBreak()
52828		}
52829		if yyb14 {
52830			break
52831		}
52832		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
52833		z.DecStructFieldNotFound(yyj14-1, "")
52834	}
52835	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
52836}
52837
52838func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) {
52839	var h codecSelfer1234
52840	z, r := codec1978.GenHelperEncoder(e)
52841	_, _, _ = h, z, r
52842	if x == nil {
52843		r.EncodeNil()
52844	} else {
52845		yym1 := z.EncBinary()
52846		_ = yym1
52847		if false {
52848		} else if z.HasExtensions() && z.EncExt(x) {
52849		} else {
52850			yysep2 := !z.EncBinary()
52851			yy2arr2 := z.EncBasicHandle().StructToArray
52852			var yyq2 [7]bool
52853			_, _, _ = yysep2, yyq2, yy2arr2
52854			const yyr2 bool = false
52855			yyq2[0] = x.Kind != ""
52856			yyq2[1] = x.APIVersion != ""
52857			yyq2[2] = x.LabelSelector != ""
52858			yyq2[3] = x.FieldSelector != ""
52859			yyq2[4] = x.Watch != false
52860			yyq2[5] = x.ResourceVersion != ""
52861			yyq2[6] = x.TimeoutSeconds != nil
52862			var yynn2 int
52863			if yyr2 || yy2arr2 {
52864				r.EncodeArrayStart(7)
52865			} else {
52866				yynn2 = 0
52867				for _, b := range yyq2 {
52868					if b {
52869						yynn2++
52870					}
52871				}
52872				r.EncodeMapStart(yynn2)
52873				yynn2 = 0
52874			}
52875			if yyr2 || yy2arr2 {
52876				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
52877				if yyq2[0] {
52878					yym4 := z.EncBinary()
52879					_ = yym4
52880					if false {
52881					} else {
52882						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
52883					}
52884				} else {
52885					r.EncodeString(codecSelferC_UTF81234, "")
52886				}
52887			} else {
52888				if yyq2[0] {
52889					z.EncSendContainerState(codecSelfer_containerMapKey1234)
52890					r.EncodeString(codecSelferC_UTF81234, string("kind"))
52891					z.EncSendContainerState(codecSelfer_containerMapValue1234)
52892					yym5 := z.EncBinary()
52893					_ = yym5
52894					if false {
52895					} else {
52896						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
52897					}
52898				}
52899			}
52900			if yyr2 || yy2arr2 {
52901				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
52902				if yyq2[1] {
52903					yym7 := z.EncBinary()
52904					_ = yym7
52905					if false {
52906					} else {
52907						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
52908					}
52909				} else {
52910					r.EncodeString(codecSelferC_UTF81234, "")
52911				}
52912			} else {
52913				if yyq2[1] {
52914					z.EncSendContainerState(codecSelfer_containerMapKey1234)
52915					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
52916					z.EncSendContainerState(codecSelfer_containerMapValue1234)
52917					yym8 := z.EncBinary()
52918					_ = yym8
52919					if false {
52920					} else {
52921						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
52922					}
52923				}
52924			}
52925			if yyr2 || yy2arr2 {
52926				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
52927				if yyq2[2] {
52928					yym10 := z.EncBinary()
52929					_ = yym10
52930					if false {
52931					} else {
52932						r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector))
52933					}
52934				} else {
52935					r.EncodeString(codecSelferC_UTF81234, "")
52936				}
52937			} else {
52938				if yyq2[2] {
52939					z.EncSendContainerState(codecSelfer_containerMapKey1234)
52940					r.EncodeString(codecSelferC_UTF81234, string("labelSelector"))
52941					z.EncSendContainerState(codecSelfer_containerMapValue1234)
52942					yym11 := z.EncBinary()
52943					_ = yym11
52944					if false {
52945					} else {
52946						r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector))
52947					}
52948				}
52949			}
52950			if yyr2 || yy2arr2 {
52951				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
52952				if yyq2[3] {
52953					yym13 := z.EncBinary()
52954					_ = yym13
52955					if false {
52956					} else {
52957						r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector))
52958					}
52959				} else {
52960					r.EncodeString(codecSelferC_UTF81234, "")
52961				}
52962			} else {
52963				if yyq2[3] {
52964					z.EncSendContainerState(codecSelfer_containerMapKey1234)
52965					r.EncodeString(codecSelferC_UTF81234, string("fieldSelector"))
52966					z.EncSendContainerState(codecSelfer_containerMapValue1234)
52967					yym14 := z.EncBinary()
52968					_ = yym14
52969					if false {
52970					} else {
52971						r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector))
52972					}
52973				}
52974			}
52975			if yyr2 || yy2arr2 {
52976				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
52977				if yyq2[4] {
52978					yym16 := z.EncBinary()
52979					_ = yym16
52980					if false {
52981					} else {
52982						r.EncodeBool(bool(x.Watch))
52983					}
52984				} else {
52985					r.EncodeBool(false)
52986				}
52987			} else {
52988				if yyq2[4] {
52989					z.EncSendContainerState(codecSelfer_containerMapKey1234)
52990					r.EncodeString(codecSelferC_UTF81234, string("watch"))
52991					z.EncSendContainerState(codecSelfer_containerMapValue1234)
52992					yym17 := z.EncBinary()
52993					_ = yym17
52994					if false {
52995					} else {
52996						r.EncodeBool(bool(x.Watch))
52997					}
52998				}
52999			}
53000			if yyr2 || yy2arr2 {
53001				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
53002				if yyq2[5] {
53003					yym19 := z.EncBinary()
53004					_ = yym19
53005					if false {
53006					} else {
53007						r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
53008					}
53009				} else {
53010					r.EncodeString(codecSelferC_UTF81234, "")
53011				}
53012			} else {
53013				if yyq2[5] {
53014					z.EncSendContainerState(codecSelfer_containerMapKey1234)
53015					r.EncodeString(codecSelferC_UTF81234, string("resourceVersion"))
53016					z.EncSendContainerState(codecSelfer_containerMapValue1234)
53017					yym20 := z.EncBinary()
53018					_ = yym20
53019					if false {
53020					} else {
53021						r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
53022					}
53023				}
53024			}
53025			if yyr2 || yy2arr2 {
53026				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
53027				if yyq2[6] {
53028					if x.TimeoutSeconds == nil {
53029						r.EncodeNil()
53030					} else {
53031						yy22 := *x.TimeoutSeconds
53032						yym23 := z.EncBinary()
53033						_ = yym23
53034						if false {
53035						} else {
53036							r.EncodeInt(int64(yy22))
53037						}
53038					}
53039				} else {
53040					r.EncodeNil()
53041				}
53042			} else {
53043				if yyq2[6] {
53044					z.EncSendContainerState(codecSelfer_containerMapKey1234)
53045					r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds"))
53046					z.EncSendContainerState(codecSelfer_containerMapValue1234)
53047					if x.TimeoutSeconds == nil {
53048						r.EncodeNil()
53049					} else {
53050						yy24 := *x.TimeoutSeconds
53051						yym25 := z.EncBinary()
53052						_ = yym25
53053						if false {
53054						} else {
53055							r.EncodeInt(int64(yy24))
53056						}
53057					}
53058				}
53059			}
53060			if yyr2 || yy2arr2 {
53061				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
53062			} else {
53063				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
53064			}
53065		}
53066	}
53067}
53068
53069func (x *ListOptions) CodecDecodeSelf(d *codec1978.Decoder) {
53070	var h codecSelfer1234
53071	z, r := codec1978.GenHelperDecoder(d)
53072	_, _, _ = h, z, r
53073	yym1 := z.DecBinary()
53074	_ = yym1
53075	if false {
53076	} else if z.HasExtensions() && z.DecExt(x) {
53077	} else {
53078		yyct2 := r.ContainerType()
53079		if yyct2 == codecSelferValueTypeMap1234 {
53080			yyl2 := r.ReadMapStart()
53081			if yyl2 == 0 {
53082				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
53083			} else {
53084				x.codecDecodeSelfFromMap(yyl2, d)
53085			}
53086		} else if yyct2 == codecSelferValueTypeArray1234 {
53087			yyl2 := r.ReadArrayStart()
53088			if yyl2 == 0 {
53089				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
53090			} else {
53091				x.codecDecodeSelfFromArray(yyl2, d)
53092			}
53093		} else {
53094			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
53095		}
53096	}
53097}
53098
53099func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
53100	var h codecSelfer1234
53101	z, r := codec1978.GenHelperDecoder(d)
53102	_, _, _ = h, z, r
53103	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
53104	_ = yys3Slc
53105	var yyhl3 bool = l >= 0
53106	for yyj3 := 0; ; yyj3++ {
53107		if yyhl3 {
53108			if yyj3 >= l {
53109				break
53110			}
53111		} else {
53112			if r.CheckBreak() {
53113				break
53114			}
53115		}
53116		z.DecSendContainerState(codecSelfer_containerMapKey1234)
53117		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
53118		yys3 := string(yys3Slc)
53119		z.DecSendContainerState(codecSelfer_containerMapValue1234)
53120		switch yys3 {
53121		case "kind":
53122			if r.TryDecodeAsNil() {
53123				x.Kind = ""
53124			} else {
53125				yyv4 := &x.Kind
53126				yym5 := z.DecBinary()
53127				_ = yym5
53128				if false {
53129				} else {
53130					*((*string)(yyv4)) = r.DecodeString()
53131				}
53132			}
53133		case "apiVersion":
53134			if r.TryDecodeAsNil() {
53135				x.APIVersion = ""
53136			} else {
53137				yyv6 := &x.APIVersion
53138				yym7 := z.DecBinary()
53139				_ = yym7
53140				if false {
53141				} else {
53142					*((*string)(yyv6)) = r.DecodeString()
53143				}
53144			}
53145		case "labelSelector":
53146			if r.TryDecodeAsNil() {
53147				x.LabelSelector = ""
53148			} else {
53149				yyv8 := &x.LabelSelector
53150				yym9 := z.DecBinary()
53151				_ = yym9
53152				if false {
53153				} else {
53154					*((*string)(yyv8)) = r.DecodeString()
53155				}
53156			}
53157		case "fieldSelector":
53158			if r.TryDecodeAsNil() {
53159				x.FieldSelector = ""
53160			} else {
53161				yyv10 := &x.FieldSelector
53162				yym11 := z.DecBinary()
53163				_ = yym11
53164				if false {
53165				} else {
53166					*((*string)(yyv10)) = r.DecodeString()
53167				}
53168			}
53169		case "watch":
53170			if r.TryDecodeAsNil() {
53171				x.Watch = false
53172			} else {
53173				yyv12 := &x.Watch
53174				yym13 := z.DecBinary()
53175				_ = yym13
53176				if false {
53177				} else {
53178					*((*bool)(yyv12)) = r.DecodeBool()
53179				}
53180			}
53181		case "resourceVersion":
53182			if r.TryDecodeAsNil() {
53183				x.ResourceVersion = ""
53184			} else {
53185				yyv14 := &x.ResourceVersion
53186				yym15 := z.DecBinary()
53187				_ = yym15
53188				if false {
53189				} else {
53190					*((*string)(yyv14)) = r.DecodeString()
53191				}
53192			}
53193		case "timeoutSeconds":
53194			if r.TryDecodeAsNil() {
53195				if x.TimeoutSeconds != nil {
53196					x.TimeoutSeconds = nil
53197				}
53198			} else {
53199				if x.TimeoutSeconds == nil {
53200					x.TimeoutSeconds = new(int64)
53201				}
53202				yym17 := z.DecBinary()
53203				_ = yym17
53204				if false {
53205				} else {
53206					*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
53207				}
53208			}
53209		default:
53210			z.DecStructFieldNotFound(-1, yys3)
53211		} // end switch yys3
53212	} // end for yyj3
53213	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
53214}
53215
53216func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
53217	var h codecSelfer1234
53218	z, r := codec1978.GenHelperDecoder(d)
53219	_, _, _ = h, z, r
53220	var yyj18 int
53221	var yyb18 bool
53222	var yyhl18 bool = l >= 0
53223	yyj18++
53224	if yyhl18 {
53225		yyb18 = yyj18 > l
53226	} else {
53227		yyb18 = r.CheckBreak()
53228	}
53229	if yyb18 {
53230		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
53231		return
53232	}
53233	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
53234	if r.TryDecodeAsNil() {
53235		x.Kind = ""
53236	} else {
53237		yyv19 := &x.Kind
53238		yym20 := z.DecBinary()
53239		_ = yym20
53240		if false {
53241		} else {
53242			*((*string)(yyv19)) = r.DecodeString()
53243		}
53244	}
53245	yyj18++
53246	if yyhl18 {
53247		yyb18 = yyj18 > l
53248	} else {
53249		yyb18 = r.CheckBreak()
53250	}
53251	if yyb18 {
53252		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
53253		return
53254	}
53255	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
53256	if r.TryDecodeAsNil() {
53257		x.APIVersion = ""
53258	} else {
53259		yyv21 := &x.APIVersion
53260		yym22 := z.DecBinary()
53261		_ = yym22
53262		if false {
53263		} else {
53264			*((*string)(yyv21)) = r.DecodeString()
53265		}
53266	}
53267	yyj18++
53268	if yyhl18 {
53269		yyb18 = yyj18 > l
53270	} else {
53271		yyb18 = r.CheckBreak()
53272	}
53273	if yyb18 {
53274		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
53275		return
53276	}
53277	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
53278	if r.TryDecodeAsNil() {
53279		x.LabelSelector = ""
53280	} else {
53281		yyv23 := &x.LabelSelector
53282		yym24 := z.DecBinary()
53283		_ = yym24
53284		if false {
53285		} else {
53286			*((*string)(yyv23)) = r.DecodeString()
53287		}
53288	}
53289	yyj18++
53290	if yyhl18 {
53291		yyb18 = yyj18 > l
53292	} else {
53293		yyb18 = r.CheckBreak()
53294	}
53295	if yyb18 {
53296		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
53297		return
53298	}
53299	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
53300	if r.TryDecodeAsNil() {
53301		x.FieldSelector = ""
53302	} else {
53303		yyv25 := &x.FieldSelector
53304		yym26 := z.DecBinary()
53305		_ = yym26
53306		if false {
53307		} else {
53308			*((*string)(yyv25)) = r.DecodeString()
53309		}
53310	}
53311	yyj18++
53312	if yyhl18 {
53313		yyb18 = yyj18 > l
53314	} else {
53315		yyb18 = r.CheckBreak()
53316	}
53317	if yyb18 {
53318		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
53319		return
53320	}
53321	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
53322	if r.TryDecodeAsNil() {
53323		x.Watch = false
53324	} else {
53325		yyv27 := &x.Watch
53326		yym28 := z.DecBinary()
53327		_ = yym28
53328		if false {
53329		} else {
53330			*((*bool)(yyv27)) = r.DecodeBool()
53331		}
53332	}
53333	yyj18++
53334	if yyhl18 {
53335		yyb18 = yyj18 > l
53336	} else {
53337		yyb18 = r.CheckBreak()
53338	}
53339	if yyb18 {
53340		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
53341		return
53342	}
53343	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
53344	if r.TryDecodeAsNil() {
53345		x.ResourceVersion = ""
53346	} else {
53347		yyv29 := &x.ResourceVersion
53348		yym30 := z.DecBinary()
53349		_ = yym30
53350		if false {
53351		} else {
53352			*((*string)(yyv29)) = r.DecodeString()
53353		}
53354	}
53355	yyj18++
53356	if yyhl18 {
53357		yyb18 = yyj18 > l
53358	} else {
53359		yyb18 = r.CheckBreak()
53360	}
53361	if yyb18 {
53362		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
53363		return
53364	}
53365	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
53366	if r.TryDecodeAsNil() {
53367		if x.TimeoutSeconds != nil {
53368			x.TimeoutSeconds = nil
53369		}
53370	} else {
53371		if x.TimeoutSeconds == nil {
53372			x.TimeoutSeconds = new(int64)
53373		}
53374		yym32 := z.DecBinary()
53375		_ = yym32
53376		if false {
53377		} else {
53378			*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
53379		}
53380	}
53381	for {
53382		yyj18++
53383		if yyhl18 {
53384			yyb18 = yyj18 > l
53385		} else {
53386			yyb18 = r.CheckBreak()
53387		}
53388		if yyb18 {
53389			break
53390		}
53391		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
53392		z.DecStructFieldNotFound(yyj18-1, "")
53393	}
53394	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
53395}
53396
53397func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) {
53398	var h codecSelfer1234
53399	z, r := codec1978.GenHelperEncoder(e)
53400	_, _, _ = h, z, r
53401	if x == nil {
53402		r.EncodeNil()
53403	} else {
53404		yym1 := z.EncBinary()
53405		_ = yym1
53406		if false {
53407		} else if z.HasExtensions() && z.EncExt(x) {
53408		} else {
53409			yysep2 := !z.EncBinary()
53410			yy2arr2 := z.EncBasicHandle().StructToArray
53411			var yyq2 [10]bool
53412			_, _, _ = yysep2, yyq2, yy2arr2
53413			const yyr2 bool = false
53414			yyq2[0] = x.Kind != ""
53415			yyq2[1] = x.APIVersion != ""
53416			yyq2[2] = x.Container != ""
53417			yyq2[3] = x.Follow != false
53418			yyq2[4] = x.Previous != false
53419			yyq2[5] = x.SinceSeconds != nil
53420			yyq2[6] = x.SinceTime != nil
53421			yyq2[7] = x.Timestamps != false
53422			yyq2[8] = x.TailLines != nil
53423			yyq2[9] = x.LimitBytes != nil
53424			var yynn2 int
53425			if yyr2 || yy2arr2 {
53426				r.EncodeArrayStart(10)
53427			} else {
53428				yynn2 = 0
53429				for _, b := range yyq2 {
53430					if b {
53431						yynn2++
53432					}
53433				}
53434				r.EncodeMapStart(yynn2)
53435				yynn2 = 0
53436			}
53437			if yyr2 || yy2arr2 {
53438				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
53439				if yyq2[0] {
53440					yym4 := z.EncBinary()
53441					_ = yym4
53442					if false {
53443					} else {
53444						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
53445					}
53446				} else {
53447					r.EncodeString(codecSelferC_UTF81234, "")
53448				}
53449			} else {
53450				if yyq2[0] {
53451					z.EncSendContainerState(codecSelfer_containerMapKey1234)
53452					r.EncodeString(codecSelferC_UTF81234, string("kind"))
53453					z.EncSendContainerState(codecSelfer_containerMapValue1234)
53454					yym5 := z.EncBinary()
53455					_ = yym5
53456					if false {
53457					} else {
53458						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
53459					}
53460				}
53461			}
53462			if yyr2 || yy2arr2 {
53463				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
53464				if yyq2[1] {
53465					yym7 := z.EncBinary()
53466					_ = yym7
53467					if false {
53468					} else {
53469						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
53470					}
53471				} else {
53472					r.EncodeString(codecSelferC_UTF81234, "")
53473				}
53474			} else {
53475				if yyq2[1] {
53476					z.EncSendContainerState(codecSelfer_containerMapKey1234)
53477					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
53478					z.EncSendContainerState(codecSelfer_containerMapValue1234)
53479					yym8 := z.EncBinary()
53480					_ = yym8
53481					if false {
53482					} else {
53483						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
53484					}
53485				}
53486			}
53487			if yyr2 || yy2arr2 {
53488				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
53489				if yyq2[2] {
53490					yym10 := z.EncBinary()
53491					_ = yym10
53492					if false {
53493					} else {
53494						r.EncodeString(codecSelferC_UTF81234, string(x.Container))
53495					}
53496				} else {
53497					r.EncodeString(codecSelferC_UTF81234, "")
53498				}
53499			} else {
53500				if yyq2[2] {
53501					z.EncSendContainerState(codecSelfer_containerMapKey1234)
53502					r.EncodeString(codecSelferC_UTF81234, string("container"))
53503					z.EncSendContainerState(codecSelfer_containerMapValue1234)
53504					yym11 := z.EncBinary()
53505					_ = yym11
53506					if false {
53507					} else {
53508						r.EncodeString(codecSelferC_UTF81234, string(x.Container))
53509					}
53510				}
53511			}
53512			if yyr2 || yy2arr2 {
53513				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
53514				if yyq2[3] {
53515					yym13 := z.EncBinary()
53516					_ = yym13
53517					if false {
53518					} else {
53519						r.EncodeBool(bool(x.Follow))
53520					}
53521				} else {
53522					r.EncodeBool(false)
53523				}
53524			} else {
53525				if yyq2[3] {
53526					z.EncSendContainerState(codecSelfer_containerMapKey1234)
53527					r.EncodeString(codecSelferC_UTF81234, string("follow"))
53528					z.EncSendContainerState(codecSelfer_containerMapValue1234)
53529					yym14 := z.EncBinary()
53530					_ = yym14
53531					if false {
53532					} else {
53533						r.EncodeBool(bool(x.Follow))
53534					}
53535				}
53536			}
53537			if yyr2 || yy2arr2 {
53538				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
53539				if yyq2[4] {
53540					yym16 := z.EncBinary()
53541					_ = yym16
53542					if false {
53543					} else {
53544						r.EncodeBool(bool(x.Previous))
53545					}
53546				} else {
53547					r.EncodeBool(false)
53548				}
53549			} else {
53550				if yyq2[4] {
53551					z.EncSendContainerState(codecSelfer_containerMapKey1234)
53552					r.EncodeString(codecSelferC_UTF81234, string("previous"))
53553					z.EncSendContainerState(codecSelfer_containerMapValue1234)
53554					yym17 := z.EncBinary()
53555					_ = yym17
53556					if false {
53557					} else {
53558						r.EncodeBool(bool(x.Previous))
53559					}
53560				}
53561			}
53562			if yyr2 || yy2arr2 {
53563				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
53564				if yyq2[5] {
53565					if x.SinceSeconds == nil {
53566						r.EncodeNil()
53567					} else {
53568						yy19 := *x.SinceSeconds
53569						yym20 := z.EncBinary()
53570						_ = yym20
53571						if false {
53572						} else {
53573							r.EncodeInt(int64(yy19))
53574						}
53575					}
53576				} else {
53577					r.EncodeNil()
53578				}
53579			} else {
53580				if yyq2[5] {
53581					z.EncSendContainerState(codecSelfer_containerMapKey1234)
53582					r.EncodeString(codecSelferC_UTF81234, string("sinceSeconds"))
53583					z.EncSendContainerState(codecSelfer_containerMapValue1234)
53584					if x.SinceSeconds == nil {
53585						r.EncodeNil()
53586					} else {
53587						yy21 := *x.SinceSeconds
53588						yym22 := z.EncBinary()
53589						_ = yym22
53590						if false {
53591						} else {
53592							r.EncodeInt(int64(yy21))
53593						}
53594					}
53595				}
53596			}
53597			if yyr2 || yy2arr2 {
53598				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
53599				if yyq2[6] {
53600					if x.SinceTime == nil {
53601						r.EncodeNil()
53602					} else {
53603						yym24 := z.EncBinary()
53604						_ = yym24
53605						if false {
53606						} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
53607						} else if yym24 {
53608							z.EncBinaryMarshal(x.SinceTime)
53609						} else if !yym24 && z.IsJSONHandle() {
53610							z.EncJSONMarshal(x.SinceTime)
53611						} else {
53612							z.EncFallback(x.SinceTime)
53613						}
53614					}
53615				} else {
53616					r.EncodeNil()
53617				}
53618			} else {
53619				if yyq2[6] {
53620					z.EncSendContainerState(codecSelfer_containerMapKey1234)
53621					r.EncodeString(codecSelferC_UTF81234, string("sinceTime"))
53622					z.EncSendContainerState(codecSelfer_containerMapValue1234)
53623					if x.SinceTime == nil {
53624						r.EncodeNil()
53625					} else {
53626						yym25 := z.EncBinary()
53627						_ = yym25
53628						if false {
53629						} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
53630						} else if yym25 {
53631							z.EncBinaryMarshal(x.SinceTime)
53632						} else if !yym25 && z.IsJSONHandle() {
53633							z.EncJSONMarshal(x.SinceTime)
53634						} else {
53635							z.EncFallback(x.SinceTime)
53636						}
53637					}
53638				}
53639			}
53640			if yyr2 || yy2arr2 {
53641				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
53642				if yyq2[7] {
53643					yym27 := z.EncBinary()
53644					_ = yym27
53645					if false {
53646					} else {
53647						r.EncodeBool(bool(x.Timestamps))
53648					}
53649				} else {
53650					r.EncodeBool(false)
53651				}
53652			} else {
53653				if yyq2[7] {
53654					z.EncSendContainerState(codecSelfer_containerMapKey1234)
53655					r.EncodeString(codecSelferC_UTF81234, string("timestamps"))
53656					z.EncSendContainerState(codecSelfer_containerMapValue1234)
53657					yym28 := z.EncBinary()
53658					_ = yym28
53659					if false {
53660					} else {
53661						r.EncodeBool(bool(x.Timestamps))
53662					}
53663				}
53664			}
53665			if yyr2 || yy2arr2 {
53666				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
53667				if yyq2[8] {
53668					if x.TailLines == nil {
53669						r.EncodeNil()
53670					} else {
53671						yy30 := *x.TailLines
53672						yym31 := z.EncBinary()
53673						_ = yym31
53674						if false {
53675						} else {
53676							r.EncodeInt(int64(yy30))
53677						}
53678					}
53679				} else {
53680					r.EncodeNil()
53681				}
53682			} else {
53683				if yyq2[8] {
53684					z.EncSendContainerState(codecSelfer_containerMapKey1234)
53685					r.EncodeString(codecSelferC_UTF81234, string("tailLines"))
53686					z.EncSendContainerState(codecSelfer_containerMapValue1234)
53687					if x.TailLines == nil {
53688						r.EncodeNil()
53689					} else {
53690						yy32 := *x.TailLines
53691						yym33 := z.EncBinary()
53692						_ = yym33
53693						if false {
53694						} else {
53695							r.EncodeInt(int64(yy32))
53696						}
53697					}
53698				}
53699			}
53700			if yyr2 || yy2arr2 {
53701				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
53702				if yyq2[9] {
53703					if x.LimitBytes == nil {
53704						r.EncodeNil()
53705					} else {
53706						yy35 := *x.LimitBytes
53707						yym36 := z.EncBinary()
53708						_ = yym36
53709						if false {
53710						} else {
53711							r.EncodeInt(int64(yy35))
53712						}
53713					}
53714				} else {
53715					r.EncodeNil()
53716				}
53717			} else {
53718				if yyq2[9] {
53719					z.EncSendContainerState(codecSelfer_containerMapKey1234)
53720					r.EncodeString(codecSelferC_UTF81234, string("limitBytes"))
53721					z.EncSendContainerState(codecSelfer_containerMapValue1234)
53722					if x.LimitBytes == nil {
53723						r.EncodeNil()
53724					} else {
53725						yy37 := *x.LimitBytes
53726						yym38 := z.EncBinary()
53727						_ = yym38
53728						if false {
53729						} else {
53730							r.EncodeInt(int64(yy37))
53731						}
53732					}
53733				}
53734			}
53735			if yyr2 || yy2arr2 {
53736				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
53737			} else {
53738				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
53739			}
53740		}
53741	}
53742}
53743
53744func (x *PodLogOptions) CodecDecodeSelf(d *codec1978.Decoder) {
53745	var h codecSelfer1234
53746	z, r := codec1978.GenHelperDecoder(d)
53747	_, _, _ = h, z, r
53748	yym1 := z.DecBinary()
53749	_ = yym1
53750	if false {
53751	} else if z.HasExtensions() && z.DecExt(x) {
53752	} else {
53753		yyct2 := r.ContainerType()
53754		if yyct2 == codecSelferValueTypeMap1234 {
53755			yyl2 := r.ReadMapStart()
53756			if yyl2 == 0 {
53757				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
53758			} else {
53759				x.codecDecodeSelfFromMap(yyl2, d)
53760			}
53761		} else if yyct2 == codecSelferValueTypeArray1234 {
53762			yyl2 := r.ReadArrayStart()
53763			if yyl2 == 0 {
53764				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
53765			} else {
53766				x.codecDecodeSelfFromArray(yyl2, d)
53767			}
53768		} else {
53769			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
53770		}
53771	}
53772}
53773
53774func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
53775	var h codecSelfer1234
53776	z, r := codec1978.GenHelperDecoder(d)
53777	_, _, _ = h, z, r
53778	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
53779	_ = yys3Slc
53780	var yyhl3 bool = l >= 0
53781	for yyj3 := 0; ; yyj3++ {
53782		if yyhl3 {
53783			if yyj3 >= l {
53784				break
53785			}
53786		} else {
53787			if r.CheckBreak() {
53788				break
53789			}
53790		}
53791		z.DecSendContainerState(codecSelfer_containerMapKey1234)
53792		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
53793		yys3 := string(yys3Slc)
53794		z.DecSendContainerState(codecSelfer_containerMapValue1234)
53795		switch yys3 {
53796		case "kind":
53797			if r.TryDecodeAsNil() {
53798				x.Kind = ""
53799			} else {
53800				yyv4 := &x.Kind
53801				yym5 := z.DecBinary()
53802				_ = yym5
53803				if false {
53804				} else {
53805					*((*string)(yyv4)) = r.DecodeString()
53806				}
53807			}
53808		case "apiVersion":
53809			if r.TryDecodeAsNil() {
53810				x.APIVersion = ""
53811			} else {
53812				yyv6 := &x.APIVersion
53813				yym7 := z.DecBinary()
53814				_ = yym7
53815				if false {
53816				} else {
53817					*((*string)(yyv6)) = r.DecodeString()
53818				}
53819			}
53820		case "container":
53821			if r.TryDecodeAsNil() {
53822				x.Container = ""
53823			} else {
53824				yyv8 := &x.Container
53825				yym9 := z.DecBinary()
53826				_ = yym9
53827				if false {
53828				} else {
53829					*((*string)(yyv8)) = r.DecodeString()
53830				}
53831			}
53832		case "follow":
53833			if r.TryDecodeAsNil() {
53834				x.Follow = false
53835			} else {
53836				yyv10 := &x.Follow
53837				yym11 := z.DecBinary()
53838				_ = yym11
53839				if false {
53840				} else {
53841					*((*bool)(yyv10)) = r.DecodeBool()
53842				}
53843			}
53844		case "previous":
53845			if r.TryDecodeAsNil() {
53846				x.Previous = false
53847			} else {
53848				yyv12 := &x.Previous
53849				yym13 := z.DecBinary()
53850				_ = yym13
53851				if false {
53852				} else {
53853					*((*bool)(yyv12)) = r.DecodeBool()
53854				}
53855			}
53856		case "sinceSeconds":
53857			if r.TryDecodeAsNil() {
53858				if x.SinceSeconds != nil {
53859					x.SinceSeconds = nil
53860				}
53861			} else {
53862				if x.SinceSeconds == nil {
53863					x.SinceSeconds = new(int64)
53864				}
53865				yym15 := z.DecBinary()
53866				_ = yym15
53867				if false {
53868				} else {
53869					*((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64))
53870				}
53871			}
53872		case "sinceTime":
53873			if r.TryDecodeAsNil() {
53874				if x.SinceTime != nil {
53875					x.SinceTime = nil
53876				}
53877			} else {
53878				if x.SinceTime == nil {
53879					x.SinceTime = new(pkg2_v1.Time)
53880				}
53881				yym17 := z.DecBinary()
53882				_ = yym17
53883				if false {
53884				} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
53885				} else if yym17 {
53886					z.DecBinaryUnmarshal(x.SinceTime)
53887				} else if !yym17 && z.IsJSONHandle() {
53888					z.DecJSONUnmarshal(x.SinceTime)
53889				} else {
53890					z.DecFallback(x.SinceTime, false)
53891				}
53892			}
53893		case "timestamps":
53894			if r.TryDecodeAsNil() {
53895				x.Timestamps = false
53896			} else {
53897				yyv18 := &x.Timestamps
53898				yym19 := z.DecBinary()
53899				_ = yym19
53900				if false {
53901				} else {
53902					*((*bool)(yyv18)) = r.DecodeBool()
53903				}
53904			}
53905		case "tailLines":
53906			if r.TryDecodeAsNil() {
53907				if x.TailLines != nil {
53908					x.TailLines = nil
53909				}
53910			} else {
53911				if x.TailLines == nil {
53912					x.TailLines = new(int64)
53913				}
53914				yym21 := z.DecBinary()
53915				_ = yym21
53916				if false {
53917				} else {
53918					*((*int64)(x.TailLines)) = int64(r.DecodeInt(64))
53919				}
53920			}
53921		case "limitBytes":
53922			if r.TryDecodeAsNil() {
53923				if x.LimitBytes != nil {
53924					x.LimitBytes = nil
53925				}
53926			} else {
53927				if x.LimitBytes == nil {
53928					x.LimitBytes = new(int64)
53929				}
53930				yym23 := z.DecBinary()
53931				_ = yym23
53932				if false {
53933				} else {
53934					*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
53935				}
53936			}
53937		default:
53938			z.DecStructFieldNotFound(-1, yys3)
53939		} // end switch yys3
53940	} // end for yyj3
53941	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
53942}
53943
53944func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
53945	var h codecSelfer1234
53946	z, r := codec1978.GenHelperDecoder(d)
53947	_, _, _ = h, z, r
53948	var yyj24 int
53949	var yyb24 bool
53950	var yyhl24 bool = l >= 0
53951	yyj24++
53952	if yyhl24 {
53953		yyb24 = yyj24 > l
53954	} else {
53955		yyb24 = r.CheckBreak()
53956	}
53957	if yyb24 {
53958		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
53959		return
53960	}
53961	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
53962	if r.TryDecodeAsNil() {
53963		x.Kind = ""
53964	} else {
53965		yyv25 := &x.Kind
53966		yym26 := z.DecBinary()
53967		_ = yym26
53968		if false {
53969		} else {
53970			*((*string)(yyv25)) = r.DecodeString()
53971		}
53972	}
53973	yyj24++
53974	if yyhl24 {
53975		yyb24 = yyj24 > l
53976	} else {
53977		yyb24 = r.CheckBreak()
53978	}
53979	if yyb24 {
53980		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
53981		return
53982	}
53983	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
53984	if r.TryDecodeAsNil() {
53985		x.APIVersion = ""
53986	} else {
53987		yyv27 := &x.APIVersion
53988		yym28 := z.DecBinary()
53989		_ = yym28
53990		if false {
53991		} else {
53992			*((*string)(yyv27)) = r.DecodeString()
53993		}
53994	}
53995	yyj24++
53996	if yyhl24 {
53997		yyb24 = yyj24 > l
53998	} else {
53999		yyb24 = r.CheckBreak()
54000	}
54001	if yyb24 {
54002		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
54003		return
54004	}
54005	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
54006	if r.TryDecodeAsNil() {
54007		x.Container = ""
54008	} else {
54009		yyv29 := &x.Container
54010		yym30 := z.DecBinary()
54011		_ = yym30
54012		if false {
54013		} else {
54014			*((*string)(yyv29)) = r.DecodeString()
54015		}
54016	}
54017	yyj24++
54018	if yyhl24 {
54019		yyb24 = yyj24 > l
54020	} else {
54021		yyb24 = r.CheckBreak()
54022	}
54023	if yyb24 {
54024		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
54025		return
54026	}
54027	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
54028	if r.TryDecodeAsNil() {
54029		x.Follow = false
54030	} else {
54031		yyv31 := &x.Follow
54032		yym32 := z.DecBinary()
54033		_ = yym32
54034		if false {
54035		} else {
54036			*((*bool)(yyv31)) = r.DecodeBool()
54037		}
54038	}
54039	yyj24++
54040	if yyhl24 {
54041		yyb24 = yyj24 > l
54042	} else {
54043		yyb24 = r.CheckBreak()
54044	}
54045	if yyb24 {
54046		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
54047		return
54048	}
54049	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
54050	if r.TryDecodeAsNil() {
54051		x.Previous = false
54052	} else {
54053		yyv33 := &x.Previous
54054		yym34 := z.DecBinary()
54055		_ = yym34
54056		if false {
54057		} else {
54058			*((*bool)(yyv33)) = r.DecodeBool()
54059		}
54060	}
54061	yyj24++
54062	if yyhl24 {
54063		yyb24 = yyj24 > l
54064	} else {
54065		yyb24 = r.CheckBreak()
54066	}
54067	if yyb24 {
54068		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
54069		return
54070	}
54071	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
54072	if r.TryDecodeAsNil() {
54073		if x.SinceSeconds != nil {
54074			x.SinceSeconds = nil
54075		}
54076	} else {
54077		if x.SinceSeconds == nil {
54078			x.SinceSeconds = new(int64)
54079		}
54080		yym36 := z.DecBinary()
54081		_ = yym36
54082		if false {
54083		} else {
54084			*((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64))
54085		}
54086	}
54087	yyj24++
54088	if yyhl24 {
54089		yyb24 = yyj24 > l
54090	} else {
54091		yyb24 = r.CheckBreak()
54092	}
54093	if yyb24 {
54094		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
54095		return
54096	}
54097	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
54098	if r.TryDecodeAsNil() {
54099		if x.SinceTime != nil {
54100			x.SinceTime = nil
54101		}
54102	} else {
54103		if x.SinceTime == nil {
54104			x.SinceTime = new(pkg2_v1.Time)
54105		}
54106		yym38 := z.DecBinary()
54107		_ = yym38
54108		if false {
54109		} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
54110		} else if yym38 {
54111			z.DecBinaryUnmarshal(x.SinceTime)
54112		} else if !yym38 && z.IsJSONHandle() {
54113			z.DecJSONUnmarshal(x.SinceTime)
54114		} else {
54115			z.DecFallback(x.SinceTime, false)
54116		}
54117	}
54118	yyj24++
54119	if yyhl24 {
54120		yyb24 = yyj24 > l
54121	} else {
54122		yyb24 = r.CheckBreak()
54123	}
54124	if yyb24 {
54125		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
54126		return
54127	}
54128	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
54129	if r.TryDecodeAsNil() {
54130		x.Timestamps = false
54131	} else {
54132		yyv39 := &x.Timestamps
54133		yym40 := z.DecBinary()
54134		_ = yym40
54135		if false {
54136		} else {
54137			*((*bool)(yyv39)) = r.DecodeBool()
54138		}
54139	}
54140	yyj24++
54141	if yyhl24 {
54142		yyb24 = yyj24 > l
54143	} else {
54144		yyb24 = r.CheckBreak()
54145	}
54146	if yyb24 {
54147		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
54148		return
54149	}
54150	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
54151	if r.TryDecodeAsNil() {
54152		if x.TailLines != nil {
54153			x.TailLines = nil
54154		}
54155	} else {
54156		if x.TailLines == nil {
54157			x.TailLines = new(int64)
54158		}
54159		yym42 := z.DecBinary()
54160		_ = yym42
54161		if false {
54162		} else {
54163			*((*int64)(x.TailLines)) = int64(r.DecodeInt(64))
54164		}
54165	}
54166	yyj24++
54167	if yyhl24 {
54168		yyb24 = yyj24 > l
54169	} else {
54170		yyb24 = r.CheckBreak()
54171	}
54172	if yyb24 {
54173		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
54174		return
54175	}
54176	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
54177	if r.TryDecodeAsNil() {
54178		if x.LimitBytes != nil {
54179			x.LimitBytes = nil
54180		}
54181	} else {
54182		if x.LimitBytes == nil {
54183			x.LimitBytes = new(int64)
54184		}
54185		yym44 := z.DecBinary()
54186		_ = yym44
54187		if false {
54188		} else {
54189			*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
54190		}
54191	}
54192	for {
54193		yyj24++
54194		if yyhl24 {
54195			yyb24 = yyj24 > l
54196		} else {
54197			yyb24 = r.CheckBreak()
54198		}
54199		if yyb24 {
54200			break
54201		}
54202		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
54203		z.DecStructFieldNotFound(yyj24-1, "")
54204	}
54205	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
54206}
54207
54208func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) {
54209	var h codecSelfer1234
54210	z, r := codec1978.GenHelperEncoder(e)
54211	_, _, _ = h, z, r
54212	if x == nil {
54213		r.EncodeNil()
54214	} else {
54215		yym1 := z.EncBinary()
54216		_ = yym1
54217		if false {
54218		} else if z.HasExtensions() && z.EncExt(x) {
54219		} else {
54220			yysep2 := !z.EncBinary()
54221			yy2arr2 := z.EncBasicHandle().StructToArray
54222			var yyq2 [7]bool
54223			_, _, _ = yysep2, yyq2, yy2arr2
54224			const yyr2 bool = false
54225			yyq2[0] = x.Kind != ""
54226			yyq2[1] = x.APIVersion != ""
54227			yyq2[2] = x.Stdin != false
54228			yyq2[3] = x.Stdout != false
54229			yyq2[4] = x.Stderr != false
54230			yyq2[5] = x.TTY != false
54231			yyq2[6] = x.Container != ""
54232			var yynn2 int
54233			if yyr2 || yy2arr2 {
54234				r.EncodeArrayStart(7)
54235			} else {
54236				yynn2 = 0
54237				for _, b := range yyq2 {
54238					if b {
54239						yynn2++
54240					}
54241				}
54242				r.EncodeMapStart(yynn2)
54243				yynn2 = 0
54244			}
54245			if yyr2 || yy2arr2 {
54246				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
54247				if yyq2[0] {
54248					yym4 := z.EncBinary()
54249					_ = yym4
54250					if false {
54251					} else {
54252						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
54253					}
54254				} else {
54255					r.EncodeString(codecSelferC_UTF81234, "")
54256				}
54257			} else {
54258				if yyq2[0] {
54259					z.EncSendContainerState(codecSelfer_containerMapKey1234)
54260					r.EncodeString(codecSelferC_UTF81234, string("kind"))
54261					z.EncSendContainerState(codecSelfer_containerMapValue1234)
54262					yym5 := z.EncBinary()
54263					_ = yym5
54264					if false {
54265					} else {
54266						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
54267					}
54268				}
54269			}
54270			if yyr2 || yy2arr2 {
54271				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
54272				if yyq2[1] {
54273					yym7 := z.EncBinary()
54274					_ = yym7
54275					if false {
54276					} else {
54277						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
54278					}
54279				} else {
54280					r.EncodeString(codecSelferC_UTF81234, "")
54281				}
54282			} else {
54283				if yyq2[1] {
54284					z.EncSendContainerState(codecSelfer_containerMapKey1234)
54285					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
54286					z.EncSendContainerState(codecSelfer_containerMapValue1234)
54287					yym8 := z.EncBinary()
54288					_ = yym8
54289					if false {
54290					} else {
54291						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
54292					}
54293				}
54294			}
54295			if yyr2 || yy2arr2 {
54296				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
54297				if yyq2[2] {
54298					yym10 := z.EncBinary()
54299					_ = yym10
54300					if false {
54301					} else {
54302						r.EncodeBool(bool(x.Stdin))
54303					}
54304				} else {
54305					r.EncodeBool(false)
54306				}
54307			} else {
54308				if yyq2[2] {
54309					z.EncSendContainerState(codecSelfer_containerMapKey1234)
54310					r.EncodeString(codecSelferC_UTF81234, string("stdin"))
54311					z.EncSendContainerState(codecSelfer_containerMapValue1234)
54312					yym11 := z.EncBinary()
54313					_ = yym11
54314					if false {
54315					} else {
54316						r.EncodeBool(bool(x.Stdin))
54317					}
54318				}
54319			}
54320			if yyr2 || yy2arr2 {
54321				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
54322				if yyq2[3] {
54323					yym13 := z.EncBinary()
54324					_ = yym13
54325					if false {
54326					} else {
54327						r.EncodeBool(bool(x.Stdout))
54328					}
54329				} else {
54330					r.EncodeBool(false)
54331				}
54332			} else {
54333				if yyq2[3] {
54334					z.EncSendContainerState(codecSelfer_containerMapKey1234)
54335					r.EncodeString(codecSelferC_UTF81234, string("stdout"))
54336					z.EncSendContainerState(codecSelfer_containerMapValue1234)
54337					yym14 := z.EncBinary()
54338					_ = yym14
54339					if false {
54340					} else {
54341						r.EncodeBool(bool(x.Stdout))
54342					}
54343				}
54344			}
54345			if yyr2 || yy2arr2 {
54346				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
54347				if yyq2[4] {
54348					yym16 := z.EncBinary()
54349					_ = yym16
54350					if false {
54351					} else {
54352						r.EncodeBool(bool(x.Stderr))
54353					}
54354				} else {
54355					r.EncodeBool(false)
54356				}
54357			} else {
54358				if yyq2[4] {
54359					z.EncSendContainerState(codecSelfer_containerMapKey1234)
54360					r.EncodeString(codecSelferC_UTF81234, string("stderr"))
54361					z.EncSendContainerState(codecSelfer_containerMapValue1234)
54362					yym17 := z.EncBinary()
54363					_ = yym17
54364					if false {
54365					} else {
54366						r.EncodeBool(bool(x.Stderr))
54367					}
54368				}
54369			}
54370			if yyr2 || yy2arr2 {
54371				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
54372				if yyq2[5] {
54373					yym19 := z.EncBinary()
54374					_ = yym19
54375					if false {
54376					} else {
54377						r.EncodeBool(bool(x.TTY))
54378					}
54379				} else {
54380					r.EncodeBool(false)
54381				}
54382			} else {
54383				if yyq2[5] {
54384					z.EncSendContainerState(codecSelfer_containerMapKey1234)
54385					r.EncodeString(codecSelferC_UTF81234, string("tty"))
54386					z.EncSendContainerState(codecSelfer_containerMapValue1234)
54387					yym20 := z.EncBinary()
54388					_ = yym20
54389					if false {
54390					} else {
54391						r.EncodeBool(bool(x.TTY))
54392					}
54393				}
54394			}
54395			if yyr2 || yy2arr2 {
54396				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
54397				if yyq2[6] {
54398					yym22 := z.EncBinary()
54399					_ = yym22
54400					if false {
54401					} else {
54402						r.EncodeString(codecSelferC_UTF81234, string(x.Container))
54403					}
54404				} else {
54405					r.EncodeString(codecSelferC_UTF81234, "")
54406				}
54407			} else {
54408				if yyq2[6] {
54409					z.EncSendContainerState(codecSelfer_containerMapKey1234)
54410					r.EncodeString(codecSelferC_UTF81234, string("container"))
54411					z.EncSendContainerState(codecSelfer_containerMapValue1234)
54412					yym23 := z.EncBinary()
54413					_ = yym23
54414					if false {
54415					} else {
54416						r.EncodeString(codecSelferC_UTF81234, string(x.Container))
54417					}
54418				}
54419			}
54420			if yyr2 || yy2arr2 {
54421				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
54422			} else {
54423				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
54424			}
54425		}
54426	}
54427}
54428
54429func (x *PodAttachOptions) CodecDecodeSelf(d *codec1978.Decoder) {
54430	var h codecSelfer1234
54431	z, r := codec1978.GenHelperDecoder(d)
54432	_, _, _ = h, z, r
54433	yym1 := z.DecBinary()
54434	_ = yym1
54435	if false {
54436	} else if z.HasExtensions() && z.DecExt(x) {
54437	} else {
54438		yyct2 := r.ContainerType()
54439		if yyct2 == codecSelferValueTypeMap1234 {
54440			yyl2 := r.ReadMapStart()
54441			if yyl2 == 0 {
54442				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
54443			} else {
54444				x.codecDecodeSelfFromMap(yyl2, d)
54445			}
54446		} else if yyct2 == codecSelferValueTypeArray1234 {
54447			yyl2 := r.ReadArrayStart()
54448			if yyl2 == 0 {
54449				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
54450			} else {
54451				x.codecDecodeSelfFromArray(yyl2, d)
54452			}
54453		} else {
54454			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
54455		}
54456	}
54457}
54458
54459func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
54460	var h codecSelfer1234
54461	z, r := codec1978.GenHelperDecoder(d)
54462	_, _, _ = h, z, r
54463	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
54464	_ = yys3Slc
54465	var yyhl3 bool = l >= 0
54466	for yyj3 := 0; ; yyj3++ {
54467		if yyhl3 {
54468			if yyj3 >= l {
54469				break
54470			}
54471		} else {
54472			if r.CheckBreak() {
54473				break
54474			}
54475		}
54476		z.DecSendContainerState(codecSelfer_containerMapKey1234)
54477		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
54478		yys3 := string(yys3Slc)
54479		z.DecSendContainerState(codecSelfer_containerMapValue1234)
54480		switch yys3 {
54481		case "kind":
54482			if r.TryDecodeAsNil() {
54483				x.Kind = ""
54484			} else {
54485				yyv4 := &x.Kind
54486				yym5 := z.DecBinary()
54487				_ = yym5
54488				if false {
54489				} else {
54490					*((*string)(yyv4)) = r.DecodeString()
54491				}
54492			}
54493		case "apiVersion":
54494			if r.TryDecodeAsNil() {
54495				x.APIVersion = ""
54496			} else {
54497				yyv6 := &x.APIVersion
54498				yym7 := z.DecBinary()
54499				_ = yym7
54500				if false {
54501				} else {
54502					*((*string)(yyv6)) = r.DecodeString()
54503				}
54504			}
54505		case "stdin":
54506			if r.TryDecodeAsNil() {
54507				x.Stdin = false
54508			} else {
54509				yyv8 := &x.Stdin
54510				yym9 := z.DecBinary()
54511				_ = yym9
54512				if false {
54513				} else {
54514					*((*bool)(yyv8)) = r.DecodeBool()
54515				}
54516			}
54517		case "stdout":
54518			if r.TryDecodeAsNil() {
54519				x.Stdout = false
54520			} else {
54521				yyv10 := &x.Stdout
54522				yym11 := z.DecBinary()
54523				_ = yym11
54524				if false {
54525				} else {
54526					*((*bool)(yyv10)) = r.DecodeBool()
54527				}
54528			}
54529		case "stderr":
54530			if r.TryDecodeAsNil() {
54531				x.Stderr = false
54532			} else {
54533				yyv12 := &x.Stderr
54534				yym13 := z.DecBinary()
54535				_ = yym13
54536				if false {
54537				} else {
54538					*((*bool)(yyv12)) = r.DecodeBool()
54539				}
54540			}
54541		case "tty":
54542			if r.TryDecodeAsNil() {
54543				x.TTY = false
54544			} else {
54545				yyv14 := &x.TTY
54546				yym15 := z.DecBinary()
54547				_ = yym15
54548				if false {
54549				} else {
54550					*((*bool)(yyv14)) = r.DecodeBool()
54551				}
54552			}
54553		case "container":
54554			if r.TryDecodeAsNil() {
54555				x.Container = ""
54556			} else {
54557				yyv16 := &x.Container
54558				yym17 := z.DecBinary()
54559				_ = yym17
54560				if false {
54561				} else {
54562					*((*string)(yyv16)) = r.DecodeString()
54563				}
54564			}
54565		default:
54566			z.DecStructFieldNotFound(-1, yys3)
54567		} // end switch yys3
54568	} // end for yyj3
54569	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
54570}
54571
54572func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
54573	var h codecSelfer1234
54574	z, r := codec1978.GenHelperDecoder(d)
54575	_, _, _ = h, z, r
54576	var yyj18 int
54577	var yyb18 bool
54578	var yyhl18 bool = l >= 0
54579	yyj18++
54580	if yyhl18 {
54581		yyb18 = yyj18 > l
54582	} else {
54583		yyb18 = r.CheckBreak()
54584	}
54585	if yyb18 {
54586		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
54587		return
54588	}
54589	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
54590	if r.TryDecodeAsNil() {
54591		x.Kind = ""
54592	} else {
54593		yyv19 := &x.Kind
54594		yym20 := z.DecBinary()
54595		_ = yym20
54596		if false {
54597		} else {
54598			*((*string)(yyv19)) = r.DecodeString()
54599		}
54600	}
54601	yyj18++
54602	if yyhl18 {
54603		yyb18 = yyj18 > l
54604	} else {
54605		yyb18 = r.CheckBreak()
54606	}
54607	if yyb18 {
54608		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
54609		return
54610	}
54611	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
54612	if r.TryDecodeAsNil() {
54613		x.APIVersion = ""
54614	} else {
54615		yyv21 := &x.APIVersion
54616		yym22 := z.DecBinary()
54617		_ = yym22
54618		if false {
54619		} else {
54620			*((*string)(yyv21)) = r.DecodeString()
54621		}
54622	}
54623	yyj18++
54624	if yyhl18 {
54625		yyb18 = yyj18 > l
54626	} else {
54627		yyb18 = r.CheckBreak()
54628	}
54629	if yyb18 {
54630		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
54631		return
54632	}
54633	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
54634	if r.TryDecodeAsNil() {
54635		x.Stdin = false
54636	} else {
54637		yyv23 := &x.Stdin
54638		yym24 := z.DecBinary()
54639		_ = yym24
54640		if false {
54641		} else {
54642			*((*bool)(yyv23)) = r.DecodeBool()
54643		}
54644	}
54645	yyj18++
54646	if yyhl18 {
54647		yyb18 = yyj18 > l
54648	} else {
54649		yyb18 = r.CheckBreak()
54650	}
54651	if yyb18 {
54652		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
54653		return
54654	}
54655	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
54656	if r.TryDecodeAsNil() {
54657		x.Stdout = false
54658	} else {
54659		yyv25 := &x.Stdout
54660		yym26 := z.DecBinary()
54661		_ = yym26
54662		if false {
54663		} else {
54664			*((*bool)(yyv25)) = r.DecodeBool()
54665		}
54666	}
54667	yyj18++
54668	if yyhl18 {
54669		yyb18 = yyj18 > l
54670	} else {
54671		yyb18 = r.CheckBreak()
54672	}
54673	if yyb18 {
54674		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
54675		return
54676	}
54677	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
54678	if r.TryDecodeAsNil() {
54679		x.Stderr = false
54680	} else {
54681		yyv27 := &x.Stderr
54682		yym28 := z.DecBinary()
54683		_ = yym28
54684		if false {
54685		} else {
54686			*((*bool)(yyv27)) = r.DecodeBool()
54687		}
54688	}
54689	yyj18++
54690	if yyhl18 {
54691		yyb18 = yyj18 > l
54692	} else {
54693		yyb18 = r.CheckBreak()
54694	}
54695	if yyb18 {
54696		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
54697		return
54698	}
54699	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
54700	if r.TryDecodeAsNil() {
54701		x.TTY = false
54702	} else {
54703		yyv29 := &x.TTY
54704		yym30 := z.DecBinary()
54705		_ = yym30
54706		if false {
54707		} else {
54708			*((*bool)(yyv29)) = r.DecodeBool()
54709		}
54710	}
54711	yyj18++
54712	if yyhl18 {
54713		yyb18 = yyj18 > l
54714	} else {
54715		yyb18 = r.CheckBreak()
54716	}
54717	if yyb18 {
54718		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
54719		return
54720	}
54721	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
54722	if r.TryDecodeAsNil() {
54723		x.Container = ""
54724	} else {
54725		yyv31 := &x.Container
54726		yym32 := z.DecBinary()
54727		_ = yym32
54728		if false {
54729		} else {
54730			*((*string)(yyv31)) = r.DecodeString()
54731		}
54732	}
54733	for {
54734		yyj18++
54735		if yyhl18 {
54736			yyb18 = yyj18 > l
54737		} else {
54738			yyb18 = r.CheckBreak()
54739		}
54740		if yyb18 {
54741			break
54742		}
54743		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
54744		z.DecStructFieldNotFound(yyj18-1, "")
54745	}
54746	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
54747}
54748
54749func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) {
54750	var h codecSelfer1234
54751	z, r := codec1978.GenHelperEncoder(e)
54752	_, _, _ = h, z, r
54753	if x == nil {
54754		r.EncodeNil()
54755	} else {
54756		yym1 := z.EncBinary()
54757		_ = yym1
54758		if false {
54759		} else if z.HasExtensions() && z.EncExt(x) {
54760		} else {
54761			yysep2 := !z.EncBinary()
54762			yy2arr2 := z.EncBasicHandle().StructToArray
54763			var yyq2 [8]bool
54764			_, _, _ = yysep2, yyq2, yy2arr2
54765			const yyr2 bool = false
54766			yyq2[0] = x.Kind != ""
54767			yyq2[1] = x.APIVersion != ""
54768			yyq2[2] = x.Stdin != false
54769			yyq2[3] = x.Stdout != false
54770			yyq2[4] = x.Stderr != false
54771			yyq2[5] = x.TTY != false
54772			yyq2[6] = x.Container != ""
54773			var yynn2 int
54774			if yyr2 || yy2arr2 {
54775				r.EncodeArrayStart(8)
54776			} else {
54777				yynn2 = 1
54778				for _, b := range yyq2 {
54779					if b {
54780						yynn2++
54781					}
54782				}
54783				r.EncodeMapStart(yynn2)
54784				yynn2 = 0
54785			}
54786			if yyr2 || yy2arr2 {
54787				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
54788				if yyq2[0] {
54789					yym4 := z.EncBinary()
54790					_ = yym4
54791					if false {
54792					} else {
54793						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
54794					}
54795				} else {
54796					r.EncodeString(codecSelferC_UTF81234, "")
54797				}
54798			} else {
54799				if yyq2[0] {
54800					z.EncSendContainerState(codecSelfer_containerMapKey1234)
54801					r.EncodeString(codecSelferC_UTF81234, string("kind"))
54802					z.EncSendContainerState(codecSelfer_containerMapValue1234)
54803					yym5 := z.EncBinary()
54804					_ = yym5
54805					if false {
54806					} else {
54807						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
54808					}
54809				}
54810			}
54811			if yyr2 || yy2arr2 {
54812				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
54813				if yyq2[1] {
54814					yym7 := z.EncBinary()
54815					_ = yym7
54816					if false {
54817					} else {
54818						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
54819					}
54820				} else {
54821					r.EncodeString(codecSelferC_UTF81234, "")
54822				}
54823			} else {
54824				if yyq2[1] {
54825					z.EncSendContainerState(codecSelfer_containerMapKey1234)
54826					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
54827					z.EncSendContainerState(codecSelfer_containerMapValue1234)
54828					yym8 := z.EncBinary()
54829					_ = yym8
54830					if false {
54831					} else {
54832						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
54833					}
54834				}
54835			}
54836			if yyr2 || yy2arr2 {
54837				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
54838				if yyq2[2] {
54839					yym10 := z.EncBinary()
54840					_ = yym10
54841					if false {
54842					} else {
54843						r.EncodeBool(bool(x.Stdin))
54844					}
54845				} else {
54846					r.EncodeBool(false)
54847				}
54848			} else {
54849				if yyq2[2] {
54850					z.EncSendContainerState(codecSelfer_containerMapKey1234)
54851					r.EncodeString(codecSelferC_UTF81234, string("stdin"))
54852					z.EncSendContainerState(codecSelfer_containerMapValue1234)
54853					yym11 := z.EncBinary()
54854					_ = yym11
54855					if false {
54856					} else {
54857						r.EncodeBool(bool(x.Stdin))
54858					}
54859				}
54860			}
54861			if yyr2 || yy2arr2 {
54862				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
54863				if yyq2[3] {
54864					yym13 := z.EncBinary()
54865					_ = yym13
54866					if false {
54867					} else {
54868						r.EncodeBool(bool(x.Stdout))
54869					}
54870				} else {
54871					r.EncodeBool(false)
54872				}
54873			} else {
54874				if yyq2[3] {
54875					z.EncSendContainerState(codecSelfer_containerMapKey1234)
54876					r.EncodeString(codecSelferC_UTF81234, string("stdout"))
54877					z.EncSendContainerState(codecSelfer_containerMapValue1234)
54878					yym14 := z.EncBinary()
54879					_ = yym14
54880					if false {
54881					} else {
54882						r.EncodeBool(bool(x.Stdout))
54883					}
54884				}
54885			}
54886			if yyr2 || yy2arr2 {
54887				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
54888				if yyq2[4] {
54889					yym16 := z.EncBinary()
54890					_ = yym16
54891					if false {
54892					} else {
54893						r.EncodeBool(bool(x.Stderr))
54894					}
54895				} else {
54896					r.EncodeBool(false)
54897				}
54898			} else {
54899				if yyq2[4] {
54900					z.EncSendContainerState(codecSelfer_containerMapKey1234)
54901					r.EncodeString(codecSelferC_UTF81234, string("stderr"))
54902					z.EncSendContainerState(codecSelfer_containerMapValue1234)
54903					yym17 := z.EncBinary()
54904					_ = yym17
54905					if false {
54906					} else {
54907						r.EncodeBool(bool(x.Stderr))
54908					}
54909				}
54910			}
54911			if yyr2 || yy2arr2 {
54912				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
54913				if yyq2[5] {
54914					yym19 := z.EncBinary()
54915					_ = yym19
54916					if false {
54917					} else {
54918						r.EncodeBool(bool(x.TTY))
54919					}
54920				} else {
54921					r.EncodeBool(false)
54922				}
54923			} else {
54924				if yyq2[5] {
54925					z.EncSendContainerState(codecSelfer_containerMapKey1234)
54926					r.EncodeString(codecSelferC_UTF81234, string("tty"))
54927					z.EncSendContainerState(codecSelfer_containerMapValue1234)
54928					yym20 := z.EncBinary()
54929					_ = yym20
54930					if false {
54931					} else {
54932						r.EncodeBool(bool(x.TTY))
54933					}
54934				}
54935			}
54936			if yyr2 || yy2arr2 {
54937				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
54938				if yyq2[6] {
54939					yym22 := z.EncBinary()
54940					_ = yym22
54941					if false {
54942					} else {
54943						r.EncodeString(codecSelferC_UTF81234, string(x.Container))
54944					}
54945				} else {
54946					r.EncodeString(codecSelferC_UTF81234, "")
54947				}
54948			} else {
54949				if yyq2[6] {
54950					z.EncSendContainerState(codecSelfer_containerMapKey1234)
54951					r.EncodeString(codecSelferC_UTF81234, string("container"))
54952					z.EncSendContainerState(codecSelfer_containerMapValue1234)
54953					yym23 := z.EncBinary()
54954					_ = yym23
54955					if false {
54956					} else {
54957						r.EncodeString(codecSelferC_UTF81234, string(x.Container))
54958					}
54959				}
54960			}
54961			if yyr2 || yy2arr2 {
54962				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
54963				if x.Command == nil {
54964					r.EncodeNil()
54965				} else {
54966					yym25 := z.EncBinary()
54967					_ = yym25
54968					if false {
54969					} else {
54970						z.F.EncSliceStringV(x.Command, false, e)
54971					}
54972				}
54973			} else {
54974				z.EncSendContainerState(codecSelfer_containerMapKey1234)
54975				r.EncodeString(codecSelferC_UTF81234, string("command"))
54976				z.EncSendContainerState(codecSelfer_containerMapValue1234)
54977				if x.Command == nil {
54978					r.EncodeNil()
54979				} else {
54980					yym26 := z.EncBinary()
54981					_ = yym26
54982					if false {
54983					} else {
54984						z.F.EncSliceStringV(x.Command, false, e)
54985					}
54986				}
54987			}
54988			if yyr2 || yy2arr2 {
54989				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
54990			} else {
54991				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
54992			}
54993		}
54994	}
54995}
54996
54997func (x *PodExecOptions) CodecDecodeSelf(d *codec1978.Decoder) {
54998	var h codecSelfer1234
54999	z, r := codec1978.GenHelperDecoder(d)
55000	_, _, _ = h, z, r
55001	yym1 := z.DecBinary()
55002	_ = yym1
55003	if false {
55004	} else if z.HasExtensions() && z.DecExt(x) {
55005	} else {
55006		yyct2 := r.ContainerType()
55007		if yyct2 == codecSelferValueTypeMap1234 {
55008			yyl2 := r.ReadMapStart()
55009			if yyl2 == 0 {
55010				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
55011			} else {
55012				x.codecDecodeSelfFromMap(yyl2, d)
55013			}
55014		} else if yyct2 == codecSelferValueTypeArray1234 {
55015			yyl2 := r.ReadArrayStart()
55016			if yyl2 == 0 {
55017				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55018			} else {
55019				x.codecDecodeSelfFromArray(yyl2, d)
55020			}
55021		} else {
55022			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
55023		}
55024	}
55025}
55026
55027func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
55028	var h codecSelfer1234
55029	z, r := codec1978.GenHelperDecoder(d)
55030	_, _, _ = h, z, r
55031	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
55032	_ = yys3Slc
55033	var yyhl3 bool = l >= 0
55034	for yyj3 := 0; ; yyj3++ {
55035		if yyhl3 {
55036			if yyj3 >= l {
55037				break
55038			}
55039		} else {
55040			if r.CheckBreak() {
55041				break
55042			}
55043		}
55044		z.DecSendContainerState(codecSelfer_containerMapKey1234)
55045		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
55046		yys3 := string(yys3Slc)
55047		z.DecSendContainerState(codecSelfer_containerMapValue1234)
55048		switch yys3 {
55049		case "kind":
55050			if r.TryDecodeAsNil() {
55051				x.Kind = ""
55052			} else {
55053				yyv4 := &x.Kind
55054				yym5 := z.DecBinary()
55055				_ = yym5
55056				if false {
55057				} else {
55058					*((*string)(yyv4)) = r.DecodeString()
55059				}
55060			}
55061		case "apiVersion":
55062			if r.TryDecodeAsNil() {
55063				x.APIVersion = ""
55064			} else {
55065				yyv6 := &x.APIVersion
55066				yym7 := z.DecBinary()
55067				_ = yym7
55068				if false {
55069				} else {
55070					*((*string)(yyv6)) = r.DecodeString()
55071				}
55072			}
55073		case "stdin":
55074			if r.TryDecodeAsNil() {
55075				x.Stdin = false
55076			} else {
55077				yyv8 := &x.Stdin
55078				yym9 := z.DecBinary()
55079				_ = yym9
55080				if false {
55081				} else {
55082					*((*bool)(yyv8)) = r.DecodeBool()
55083				}
55084			}
55085		case "stdout":
55086			if r.TryDecodeAsNil() {
55087				x.Stdout = false
55088			} else {
55089				yyv10 := &x.Stdout
55090				yym11 := z.DecBinary()
55091				_ = yym11
55092				if false {
55093				} else {
55094					*((*bool)(yyv10)) = r.DecodeBool()
55095				}
55096			}
55097		case "stderr":
55098			if r.TryDecodeAsNil() {
55099				x.Stderr = false
55100			} else {
55101				yyv12 := &x.Stderr
55102				yym13 := z.DecBinary()
55103				_ = yym13
55104				if false {
55105				} else {
55106					*((*bool)(yyv12)) = r.DecodeBool()
55107				}
55108			}
55109		case "tty":
55110			if r.TryDecodeAsNil() {
55111				x.TTY = false
55112			} else {
55113				yyv14 := &x.TTY
55114				yym15 := z.DecBinary()
55115				_ = yym15
55116				if false {
55117				} else {
55118					*((*bool)(yyv14)) = r.DecodeBool()
55119				}
55120			}
55121		case "container":
55122			if r.TryDecodeAsNil() {
55123				x.Container = ""
55124			} else {
55125				yyv16 := &x.Container
55126				yym17 := z.DecBinary()
55127				_ = yym17
55128				if false {
55129				} else {
55130					*((*string)(yyv16)) = r.DecodeString()
55131				}
55132			}
55133		case "command":
55134			if r.TryDecodeAsNil() {
55135				x.Command = nil
55136			} else {
55137				yyv18 := &x.Command
55138				yym19 := z.DecBinary()
55139				_ = yym19
55140				if false {
55141				} else {
55142					z.F.DecSliceStringX(yyv18, false, d)
55143				}
55144			}
55145		default:
55146			z.DecStructFieldNotFound(-1, yys3)
55147		} // end switch yys3
55148	} // end for yyj3
55149	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
55150}
55151
55152func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
55153	var h codecSelfer1234
55154	z, r := codec1978.GenHelperDecoder(d)
55155	_, _, _ = h, z, r
55156	var yyj20 int
55157	var yyb20 bool
55158	var yyhl20 bool = l >= 0
55159	yyj20++
55160	if yyhl20 {
55161		yyb20 = yyj20 > l
55162	} else {
55163		yyb20 = r.CheckBreak()
55164	}
55165	if yyb20 {
55166		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55167		return
55168	}
55169	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
55170	if r.TryDecodeAsNil() {
55171		x.Kind = ""
55172	} else {
55173		yyv21 := &x.Kind
55174		yym22 := z.DecBinary()
55175		_ = yym22
55176		if false {
55177		} else {
55178			*((*string)(yyv21)) = r.DecodeString()
55179		}
55180	}
55181	yyj20++
55182	if yyhl20 {
55183		yyb20 = yyj20 > l
55184	} else {
55185		yyb20 = r.CheckBreak()
55186	}
55187	if yyb20 {
55188		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55189		return
55190	}
55191	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
55192	if r.TryDecodeAsNil() {
55193		x.APIVersion = ""
55194	} else {
55195		yyv23 := &x.APIVersion
55196		yym24 := z.DecBinary()
55197		_ = yym24
55198		if false {
55199		} else {
55200			*((*string)(yyv23)) = r.DecodeString()
55201		}
55202	}
55203	yyj20++
55204	if yyhl20 {
55205		yyb20 = yyj20 > l
55206	} else {
55207		yyb20 = r.CheckBreak()
55208	}
55209	if yyb20 {
55210		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55211		return
55212	}
55213	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
55214	if r.TryDecodeAsNil() {
55215		x.Stdin = false
55216	} else {
55217		yyv25 := &x.Stdin
55218		yym26 := z.DecBinary()
55219		_ = yym26
55220		if false {
55221		} else {
55222			*((*bool)(yyv25)) = r.DecodeBool()
55223		}
55224	}
55225	yyj20++
55226	if yyhl20 {
55227		yyb20 = yyj20 > l
55228	} else {
55229		yyb20 = r.CheckBreak()
55230	}
55231	if yyb20 {
55232		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55233		return
55234	}
55235	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
55236	if r.TryDecodeAsNil() {
55237		x.Stdout = false
55238	} else {
55239		yyv27 := &x.Stdout
55240		yym28 := z.DecBinary()
55241		_ = yym28
55242		if false {
55243		} else {
55244			*((*bool)(yyv27)) = r.DecodeBool()
55245		}
55246	}
55247	yyj20++
55248	if yyhl20 {
55249		yyb20 = yyj20 > l
55250	} else {
55251		yyb20 = r.CheckBreak()
55252	}
55253	if yyb20 {
55254		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55255		return
55256	}
55257	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
55258	if r.TryDecodeAsNil() {
55259		x.Stderr = false
55260	} else {
55261		yyv29 := &x.Stderr
55262		yym30 := z.DecBinary()
55263		_ = yym30
55264		if false {
55265		} else {
55266			*((*bool)(yyv29)) = r.DecodeBool()
55267		}
55268	}
55269	yyj20++
55270	if yyhl20 {
55271		yyb20 = yyj20 > l
55272	} else {
55273		yyb20 = r.CheckBreak()
55274	}
55275	if yyb20 {
55276		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55277		return
55278	}
55279	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
55280	if r.TryDecodeAsNil() {
55281		x.TTY = false
55282	} else {
55283		yyv31 := &x.TTY
55284		yym32 := z.DecBinary()
55285		_ = yym32
55286		if false {
55287		} else {
55288			*((*bool)(yyv31)) = r.DecodeBool()
55289		}
55290	}
55291	yyj20++
55292	if yyhl20 {
55293		yyb20 = yyj20 > l
55294	} else {
55295		yyb20 = r.CheckBreak()
55296	}
55297	if yyb20 {
55298		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55299		return
55300	}
55301	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
55302	if r.TryDecodeAsNil() {
55303		x.Container = ""
55304	} else {
55305		yyv33 := &x.Container
55306		yym34 := z.DecBinary()
55307		_ = yym34
55308		if false {
55309		} else {
55310			*((*string)(yyv33)) = r.DecodeString()
55311		}
55312	}
55313	yyj20++
55314	if yyhl20 {
55315		yyb20 = yyj20 > l
55316	} else {
55317		yyb20 = r.CheckBreak()
55318	}
55319	if yyb20 {
55320		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55321		return
55322	}
55323	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
55324	if r.TryDecodeAsNil() {
55325		x.Command = nil
55326	} else {
55327		yyv35 := &x.Command
55328		yym36 := z.DecBinary()
55329		_ = yym36
55330		if false {
55331		} else {
55332			z.F.DecSliceStringX(yyv35, false, d)
55333		}
55334	}
55335	for {
55336		yyj20++
55337		if yyhl20 {
55338			yyb20 = yyj20 > l
55339		} else {
55340			yyb20 = r.CheckBreak()
55341		}
55342		if yyb20 {
55343			break
55344		}
55345		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
55346		z.DecStructFieldNotFound(yyj20-1, "")
55347	}
55348	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55349}
55350
55351func (x *PodPortForwardOptions) CodecEncodeSelf(e *codec1978.Encoder) {
55352	var h codecSelfer1234
55353	z, r := codec1978.GenHelperEncoder(e)
55354	_, _, _ = h, z, r
55355	if x == nil {
55356		r.EncodeNil()
55357	} else {
55358		yym1 := z.EncBinary()
55359		_ = yym1
55360		if false {
55361		} else if z.HasExtensions() && z.EncExt(x) {
55362		} else {
55363			yysep2 := !z.EncBinary()
55364			yy2arr2 := z.EncBasicHandle().StructToArray
55365			var yyq2 [3]bool
55366			_, _, _ = yysep2, yyq2, yy2arr2
55367			const yyr2 bool = false
55368			yyq2[0] = x.Kind != ""
55369			yyq2[1] = x.APIVersion != ""
55370			yyq2[2] = len(x.Ports) != 0
55371			var yynn2 int
55372			if yyr2 || yy2arr2 {
55373				r.EncodeArrayStart(3)
55374			} else {
55375				yynn2 = 0
55376				for _, b := range yyq2 {
55377					if b {
55378						yynn2++
55379					}
55380				}
55381				r.EncodeMapStart(yynn2)
55382				yynn2 = 0
55383			}
55384			if yyr2 || yy2arr2 {
55385				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
55386				if yyq2[0] {
55387					yym4 := z.EncBinary()
55388					_ = yym4
55389					if false {
55390					} else {
55391						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
55392					}
55393				} else {
55394					r.EncodeString(codecSelferC_UTF81234, "")
55395				}
55396			} else {
55397				if yyq2[0] {
55398					z.EncSendContainerState(codecSelfer_containerMapKey1234)
55399					r.EncodeString(codecSelferC_UTF81234, string("kind"))
55400					z.EncSendContainerState(codecSelfer_containerMapValue1234)
55401					yym5 := z.EncBinary()
55402					_ = yym5
55403					if false {
55404					} else {
55405						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
55406					}
55407				}
55408			}
55409			if yyr2 || yy2arr2 {
55410				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
55411				if yyq2[1] {
55412					yym7 := z.EncBinary()
55413					_ = yym7
55414					if false {
55415					} else {
55416						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
55417					}
55418				} else {
55419					r.EncodeString(codecSelferC_UTF81234, "")
55420				}
55421			} else {
55422				if yyq2[1] {
55423					z.EncSendContainerState(codecSelfer_containerMapKey1234)
55424					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
55425					z.EncSendContainerState(codecSelfer_containerMapValue1234)
55426					yym8 := z.EncBinary()
55427					_ = yym8
55428					if false {
55429					} else {
55430						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
55431					}
55432				}
55433			}
55434			if yyr2 || yy2arr2 {
55435				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
55436				if yyq2[2] {
55437					if x.Ports == nil {
55438						r.EncodeNil()
55439					} else {
55440						yym10 := z.EncBinary()
55441						_ = yym10
55442						if false {
55443						} else {
55444							z.F.EncSliceInt32V(x.Ports, false, e)
55445						}
55446					}
55447				} else {
55448					r.EncodeNil()
55449				}
55450			} else {
55451				if yyq2[2] {
55452					z.EncSendContainerState(codecSelfer_containerMapKey1234)
55453					r.EncodeString(codecSelferC_UTF81234, string("ports"))
55454					z.EncSendContainerState(codecSelfer_containerMapValue1234)
55455					if x.Ports == nil {
55456						r.EncodeNil()
55457					} else {
55458						yym11 := z.EncBinary()
55459						_ = yym11
55460						if false {
55461						} else {
55462							z.F.EncSliceInt32V(x.Ports, false, e)
55463						}
55464					}
55465				}
55466			}
55467			if yyr2 || yy2arr2 {
55468				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
55469			} else {
55470				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
55471			}
55472		}
55473	}
55474}
55475
55476func (x *PodPortForwardOptions) CodecDecodeSelf(d *codec1978.Decoder) {
55477	var h codecSelfer1234
55478	z, r := codec1978.GenHelperDecoder(d)
55479	_, _, _ = h, z, r
55480	yym1 := z.DecBinary()
55481	_ = yym1
55482	if false {
55483	} else if z.HasExtensions() && z.DecExt(x) {
55484	} else {
55485		yyct2 := r.ContainerType()
55486		if yyct2 == codecSelferValueTypeMap1234 {
55487			yyl2 := r.ReadMapStart()
55488			if yyl2 == 0 {
55489				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
55490			} else {
55491				x.codecDecodeSelfFromMap(yyl2, d)
55492			}
55493		} else if yyct2 == codecSelferValueTypeArray1234 {
55494			yyl2 := r.ReadArrayStart()
55495			if yyl2 == 0 {
55496				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55497			} else {
55498				x.codecDecodeSelfFromArray(yyl2, d)
55499			}
55500		} else {
55501			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
55502		}
55503	}
55504}
55505
55506func (x *PodPortForwardOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
55507	var h codecSelfer1234
55508	z, r := codec1978.GenHelperDecoder(d)
55509	_, _, _ = h, z, r
55510	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
55511	_ = yys3Slc
55512	var yyhl3 bool = l >= 0
55513	for yyj3 := 0; ; yyj3++ {
55514		if yyhl3 {
55515			if yyj3 >= l {
55516				break
55517			}
55518		} else {
55519			if r.CheckBreak() {
55520				break
55521			}
55522		}
55523		z.DecSendContainerState(codecSelfer_containerMapKey1234)
55524		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
55525		yys3 := string(yys3Slc)
55526		z.DecSendContainerState(codecSelfer_containerMapValue1234)
55527		switch yys3 {
55528		case "kind":
55529			if r.TryDecodeAsNil() {
55530				x.Kind = ""
55531			} else {
55532				yyv4 := &x.Kind
55533				yym5 := z.DecBinary()
55534				_ = yym5
55535				if false {
55536				} else {
55537					*((*string)(yyv4)) = r.DecodeString()
55538				}
55539			}
55540		case "apiVersion":
55541			if r.TryDecodeAsNil() {
55542				x.APIVersion = ""
55543			} else {
55544				yyv6 := &x.APIVersion
55545				yym7 := z.DecBinary()
55546				_ = yym7
55547				if false {
55548				} else {
55549					*((*string)(yyv6)) = r.DecodeString()
55550				}
55551			}
55552		case "ports":
55553			if r.TryDecodeAsNil() {
55554				x.Ports = nil
55555			} else {
55556				yyv8 := &x.Ports
55557				yym9 := z.DecBinary()
55558				_ = yym9
55559				if false {
55560				} else {
55561					z.F.DecSliceInt32X(yyv8, false, d)
55562				}
55563			}
55564		default:
55565			z.DecStructFieldNotFound(-1, yys3)
55566		} // end switch yys3
55567	} // end for yyj3
55568	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
55569}
55570
55571func (x *PodPortForwardOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
55572	var h codecSelfer1234
55573	z, r := codec1978.GenHelperDecoder(d)
55574	_, _, _ = h, z, r
55575	var yyj10 int
55576	var yyb10 bool
55577	var yyhl10 bool = l >= 0
55578	yyj10++
55579	if yyhl10 {
55580		yyb10 = yyj10 > l
55581	} else {
55582		yyb10 = r.CheckBreak()
55583	}
55584	if yyb10 {
55585		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55586		return
55587	}
55588	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
55589	if r.TryDecodeAsNil() {
55590		x.Kind = ""
55591	} else {
55592		yyv11 := &x.Kind
55593		yym12 := z.DecBinary()
55594		_ = yym12
55595		if false {
55596		} else {
55597			*((*string)(yyv11)) = r.DecodeString()
55598		}
55599	}
55600	yyj10++
55601	if yyhl10 {
55602		yyb10 = yyj10 > l
55603	} else {
55604		yyb10 = r.CheckBreak()
55605	}
55606	if yyb10 {
55607		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55608		return
55609	}
55610	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
55611	if r.TryDecodeAsNil() {
55612		x.APIVersion = ""
55613	} else {
55614		yyv13 := &x.APIVersion
55615		yym14 := z.DecBinary()
55616		_ = yym14
55617		if false {
55618		} else {
55619			*((*string)(yyv13)) = r.DecodeString()
55620		}
55621	}
55622	yyj10++
55623	if yyhl10 {
55624		yyb10 = yyj10 > l
55625	} else {
55626		yyb10 = r.CheckBreak()
55627	}
55628	if yyb10 {
55629		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55630		return
55631	}
55632	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
55633	if r.TryDecodeAsNil() {
55634		x.Ports = nil
55635	} else {
55636		yyv15 := &x.Ports
55637		yym16 := z.DecBinary()
55638		_ = yym16
55639		if false {
55640		} else {
55641			z.F.DecSliceInt32X(yyv15, false, d)
55642		}
55643	}
55644	for {
55645		yyj10++
55646		if yyhl10 {
55647			yyb10 = yyj10 > l
55648		} else {
55649			yyb10 = r.CheckBreak()
55650		}
55651		if yyb10 {
55652			break
55653		}
55654		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
55655		z.DecStructFieldNotFound(yyj10-1, "")
55656	}
55657	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55658}
55659
55660func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) {
55661	var h codecSelfer1234
55662	z, r := codec1978.GenHelperEncoder(e)
55663	_, _, _ = h, z, r
55664	if x == nil {
55665		r.EncodeNil()
55666	} else {
55667		yym1 := z.EncBinary()
55668		_ = yym1
55669		if false {
55670		} else if z.HasExtensions() && z.EncExt(x) {
55671		} else {
55672			yysep2 := !z.EncBinary()
55673			yy2arr2 := z.EncBasicHandle().StructToArray
55674			var yyq2 [3]bool
55675			_, _, _ = yysep2, yyq2, yy2arr2
55676			const yyr2 bool = false
55677			yyq2[0] = x.Kind != ""
55678			yyq2[1] = x.APIVersion != ""
55679			yyq2[2] = x.Path != ""
55680			var yynn2 int
55681			if yyr2 || yy2arr2 {
55682				r.EncodeArrayStart(3)
55683			} else {
55684				yynn2 = 0
55685				for _, b := range yyq2 {
55686					if b {
55687						yynn2++
55688					}
55689				}
55690				r.EncodeMapStart(yynn2)
55691				yynn2 = 0
55692			}
55693			if yyr2 || yy2arr2 {
55694				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
55695				if yyq2[0] {
55696					yym4 := z.EncBinary()
55697					_ = yym4
55698					if false {
55699					} else {
55700						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
55701					}
55702				} else {
55703					r.EncodeString(codecSelferC_UTF81234, "")
55704				}
55705			} else {
55706				if yyq2[0] {
55707					z.EncSendContainerState(codecSelfer_containerMapKey1234)
55708					r.EncodeString(codecSelferC_UTF81234, string("kind"))
55709					z.EncSendContainerState(codecSelfer_containerMapValue1234)
55710					yym5 := z.EncBinary()
55711					_ = yym5
55712					if false {
55713					} else {
55714						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
55715					}
55716				}
55717			}
55718			if yyr2 || yy2arr2 {
55719				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
55720				if yyq2[1] {
55721					yym7 := z.EncBinary()
55722					_ = yym7
55723					if false {
55724					} else {
55725						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
55726					}
55727				} else {
55728					r.EncodeString(codecSelferC_UTF81234, "")
55729				}
55730			} else {
55731				if yyq2[1] {
55732					z.EncSendContainerState(codecSelfer_containerMapKey1234)
55733					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
55734					z.EncSendContainerState(codecSelfer_containerMapValue1234)
55735					yym8 := z.EncBinary()
55736					_ = yym8
55737					if false {
55738					} else {
55739						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
55740					}
55741				}
55742			}
55743			if yyr2 || yy2arr2 {
55744				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
55745				if yyq2[2] {
55746					yym10 := z.EncBinary()
55747					_ = yym10
55748					if false {
55749					} else {
55750						r.EncodeString(codecSelferC_UTF81234, string(x.Path))
55751					}
55752				} else {
55753					r.EncodeString(codecSelferC_UTF81234, "")
55754				}
55755			} else {
55756				if yyq2[2] {
55757					z.EncSendContainerState(codecSelfer_containerMapKey1234)
55758					r.EncodeString(codecSelferC_UTF81234, string("path"))
55759					z.EncSendContainerState(codecSelfer_containerMapValue1234)
55760					yym11 := z.EncBinary()
55761					_ = yym11
55762					if false {
55763					} else {
55764						r.EncodeString(codecSelferC_UTF81234, string(x.Path))
55765					}
55766				}
55767			}
55768			if yyr2 || yy2arr2 {
55769				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
55770			} else {
55771				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
55772			}
55773		}
55774	}
55775}
55776
55777func (x *PodProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) {
55778	var h codecSelfer1234
55779	z, r := codec1978.GenHelperDecoder(d)
55780	_, _, _ = h, z, r
55781	yym1 := z.DecBinary()
55782	_ = yym1
55783	if false {
55784	} else if z.HasExtensions() && z.DecExt(x) {
55785	} else {
55786		yyct2 := r.ContainerType()
55787		if yyct2 == codecSelferValueTypeMap1234 {
55788			yyl2 := r.ReadMapStart()
55789			if yyl2 == 0 {
55790				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
55791			} else {
55792				x.codecDecodeSelfFromMap(yyl2, d)
55793			}
55794		} else if yyct2 == codecSelferValueTypeArray1234 {
55795			yyl2 := r.ReadArrayStart()
55796			if yyl2 == 0 {
55797				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55798			} else {
55799				x.codecDecodeSelfFromArray(yyl2, d)
55800			}
55801		} else {
55802			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
55803		}
55804	}
55805}
55806
55807func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
55808	var h codecSelfer1234
55809	z, r := codec1978.GenHelperDecoder(d)
55810	_, _, _ = h, z, r
55811	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
55812	_ = yys3Slc
55813	var yyhl3 bool = l >= 0
55814	for yyj3 := 0; ; yyj3++ {
55815		if yyhl3 {
55816			if yyj3 >= l {
55817				break
55818			}
55819		} else {
55820			if r.CheckBreak() {
55821				break
55822			}
55823		}
55824		z.DecSendContainerState(codecSelfer_containerMapKey1234)
55825		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
55826		yys3 := string(yys3Slc)
55827		z.DecSendContainerState(codecSelfer_containerMapValue1234)
55828		switch yys3 {
55829		case "kind":
55830			if r.TryDecodeAsNil() {
55831				x.Kind = ""
55832			} else {
55833				yyv4 := &x.Kind
55834				yym5 := z.DecBinary()
55835				_ = yym5
55836				if false {
55837				} else {
55838					*((*string)(yyv4)) = r.DecodeString()
55839				}
55840			}
55841		case "apiVersion":
55842			if r.TryDecodeAsNil() {
55843				x.APIVersion = ""
55844			} else {
55845				yyv6 := &x.APIVersion
55846				yym7 := z.DecBinary()
55847				_ = yym7
55848				if false {
55849				} else {
55850					*((*string)(yyv6)) = r.DecodeString()
55851				}
55852			}
55853		case "path":
55854			if r.TryDecodeAsNil() {
55855				x.Path = ""
55856			} else {
55857				yyv8 := &x.Path
55858				yym9 := z.DecBinary()
55859				_ = yym9
55860				if false {
55861				} else {
55862					*((*string)(yyv8)) = r.DecodeString()
55863				}
55864			}
55865		default:
55866			z.DecStructFieldNotFound(-1, yys3)
55867		} // end switch yys3
55868	} // end for yyj3
55869	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
55870}
55871
55872func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
55873	var h codecSelfer1234
55874	z, r := codec1978.GenHelperDecoder(d)
55875	_, _, _ = h, z, r
55876	var yyj10 int
55877	var yyb10 bool
55878	var yyhl10 bool = l >= 0
55879	yyj10++
55880	if yyhl10 {
55881		yyb10 = yyj10 > l
55882	} else {
55883		yyb10 = r.CheckBreak()
55884	}
55885	if yyb10 {
55886		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55887		return
55888	}
55889	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
55890	if r.TryDecodeAsNil() {
55891		x.Kind = ""
55892	} else {
55893		yyv11 := &x.Kind
55894		yym12 := z.DecBinary()
55895		_ = yym12
55896		if false {
55897		} else {
55898			*((*string)(yyv11)) = r.DecodeString()
55899		}
55900	}
55901	yyj10++
55902	if yyhl10 {
55903		yyb10 = yyj10 > l
55904	} else {
55905		yyb10 = r.CheckBreak()
55906	}
55907	if yyb10 {
55908		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55909		return
55910	}
55911	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
55912	if r.TryDecodeAsNil() {
55913		x.APIVersion = ""
55914	} else {
55915		yyv13 := &x.APIVersion
55916		yym14 := z.DecBinary()
55917		_ = yym14
55918		if false {
55919		} else {
55920			*((*string)(yyv13)) = r.DecodeString()
55921		}
55922	}
55923	yyj10++
55924	if yyhl10 {
55925		yyb10 = yyj10 > l
55926	} else {
55927		yyb10 = r.CheckBreak()
55928	}
55929	if yyb10 {
55930		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55931		return
55932	}
55933	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
55934	if r.TryDecodeAsNil() {
55935		x.Path = ""
55936	} else {
55937		yyv15 := &x.Path
55938		yym16 := z.DecBinary()
55939		_ = yym16
55940		if false {
55941		} else {
55942			*((*string)(yyv15)) = r.DecodeString()
55943		}
55944	}
55945	for {
55946		yyj10++
55947		if yyhl10 {
55948			yyb10 = yyj10 > l
55949		} else {
55950			yyb10 = r.CheckBreak()
55951		}
55952		if yyb10 {
55953			break
55954		}
55955		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
55956		z.DecStructFieldNotFound(yyj10-1, "")
55957	}
55958	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
55959}
55960
55961func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) {
55962	var h codecSelfer1234
55963	z, r := codec1978.GenHelperEncoder(e)
55964	_, _, _ = h, z, r
55965	if x == nil {
55966		r.EncodeNil()
55967	} else {
55968		yym1 := z.EncBinary()
55969		_ = yym1
55970		if false {
55971		} else if z.HasExtensions() && z.EncExt(x) {
55972		} else {
55973			yysep2 := !z.EncBinary()
55974			yy2arr2 := z.EncBasicHandle().StructToArray
55975			var yyq2 [3]bool
55976			_, _, _ = yysep2, yyq2, yy2arr2
55977			const yyr2 bool = false
55978			yyq2[0] = x.Kind != ""
55979			yyq2[1] = x.APIVersion != ""
55980			yyq2[2] = x.Path != ""
55981			var yynn2 int
55982			if yyr2 || yy2arr2 {
55983				r.EncodeArrayStart(3)
55984			} else {
55985				yynn2 = 0
55986				for _, b := range yyq2 {
55987					if b {
55988						yynn2++
55989					}
55990				}
55991				r.EncodeMapStart(yynn2)
55992				yynn2 = 0
55993			}
55994			if yyr2 || yy2arr2 {
55995				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
55996				if yyq2[0] {
55997					yym4 := z.EncBinary()
55998					_ = yym4
55999					if false {
56000					} else {
56001						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
56002					}
56003				} else {
56004					r.EncodeString(codecSelferC_UTF81234, "")
56005				}
56006			} else {
56007				if yyq2[0] {
56008					z.EncSendContainerState(codecSelfer_containerMapKey1234)
56009					r.EncodeString(codecSelferC_UTF81234, string("kind"))
56010					z.EncSendContainerState(codecSelfer_containerMapValue1234)
56011					yym5 := z.EncBinary()
56012					_ = yym5
56013					if false {
56014					} else {
56015						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
56016					}
56017				}
56018			}
56019			if yyr2 || yy2arr2 {
56020				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
56021				if yyq2[1] {
56022					yym7 := z.EncBinary()
56023					_ = yym7
56024					if false {
56025					} else {
56026						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
56027					}
56028				} else {
56029					r.EncodeString(codecSelferC_UTF81234, "")
56030				}
56031			} else {
56032				if yyq2[1] {
56033					z.EncSendContainerState(codecSelfer_containerMapKey1234)
56034					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
56035					z.EncSendContainerState(codecSelfer_containerMapValue1234)
56036					yym8 := z.EncBinary()
56037					_ = yym8
56038					if false {
56039					} else {
56040						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
56041					}
56042				}
56043			}
56044			if yyr2 || yy2arr2 {
56045				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
56046				if yyq2[2] {
56047					yym10 := z.EncBinary()
56048					_ = yym10
56049					if false {
56050					} else {
56051						r.EncodeString(codecSelferC_UTF81234, string(x.Path))
56052					}
56053				} else {
56054					r.EncodeString(codecSelferC_UTF81234, "")
56055				}
56056			} else {
56057				if yyq2[2] {
56058					z.EncSendContainerState(codecSelfer_containerMapKey1234)
56059					r.EncodeString(codecSelferC_UTF81234, string("path"))
56060					z.EncSendContainerState(codecSelfer_containerMapValue1234)
56061					yym11 := z.EncBinary()
56062					_ = yym11
56063					if false {
56064					} else {
56065						r.EncodeString(codecSelferC_UTF81234, string(x.Path))
56066					}
56067				}
56068			}
56069			if yyr2 || yy2arr2 {
56070				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
56071			} else {
56072				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
56073			}
56074		}
56075	}
56076}
56077
56078func (x *NodeProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) {
56079	var h codecSelfer1234
56080	z, r := codec1978.GenHelperDecoder(d)
56081	_, _, _ = h, z, r
56082	yym1 := z.DecBinary()
56083	_ = yym1
56084	if false {
56085	} else if z.HasExtensions() && z.DecExt(x) {
56086	} else {
56087		yyct2 := r.ContainerType()
56088		if yyct2 == codecSelferValueTypeMap1234 {
56089			yyl2 := r.ReadMapStart()
56090			if yyl2 == 0 {
56091				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
56092			} else {
56093				x.codecDecodeSelfFromMap(yyl2, d)
56094			}
56095		} else if yyct2 == codecSelferValueTypeArray1234 {
56096			yyl2 := r.ReadArrayStart()
56097			if yyl2 == 0 {
56098				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
56099			} else {
56100				x.codecDecodeSelfFromArray(yyl2, d)
56101			}
56102		} else {
56103			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
56104		}
56105	}
56106}
56107
56108func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
56109	var h codecSelfer1234
56110	z, r := codec1978.GenHelperDecoder(d)
56111	_, _, _ = h, z, r
56112	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
56113	_ = yys3Slc
56114	var yyhl3 bool = l >= 0
56115	for yyj3 := 0; ; yyj3++ {
56116		if yyhl3 {
56117			if yyj3 >= l {
56118				break
56119			}
56120		} else {
56121			if r.CheckBreak() {
56122				break
56123			}
56124		}
56125		z.DecSendContainerState(codecSelfer_containerMapKey1234)
56126		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
56127		yys3 := string(yys3Slc)
56128		z.DecSendContainerState(codecSelfer_containerMapValue1234)
56129		switch yys3 {
56130		case "kind":
56131			if r.TryDecodeAsNil() {
56132				x.Kind = ""
56133			} else {
56134				yyv4 := &x.Kind
56135				yym5 := z.DecBinary()
56136				_ = yym5
56137				if false {
56138				} else {
56139					*((*string)(yyv4)) = r.DecodeString()
56140				}
56141			}
56142		case "apiVersion":
56143			if r.TryDecodeAsNil() {
56144				x.APIVersion = ""
56145			} else {
56146				yyv6 := &x.APIVersion
56147				yym7 := z.DecBinary()
56148				_ = yym7
56149				if false {
56150				} else {
56151					*((*string)(yyv6)) = r.DecodeString()
56152				}
56153			}
56154		case "path":
56155			if r.TryDecodeAsNil() {
56156				x.Path = ""
56157			} else {
56158				yyv8 := &x.Path
56159				yym9 := z.DecBinary()
56160				_ = yym9
56161				if false {
56162				} else {
56163					*((*string)(yyv8)) = r.DecodeString()
56164				}
56165			}
56166		default:
56167			z.DecStructFieldNotFound(-1, yys3)
56168		} // end switch yys3
56169	} // end for yyj3
56170	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
56171}
56172
56173func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
56174	var h codecSelfer1234
56175	z, r := codec1978.GenHelperDecoder(d)
56176	_, _, _ = h, z, r
56177	var yyj10 int
56178	var yyb10 bool
56179	var yyhl10 bool = l >= 0
56180	yyj10++
56181	if yyhl10 {
56182		yyb10 = yyj10 > l
56183	} else {
56184		yyb10 = r.CheckBreak()
56185	}
56186	if yyb10 {
56187		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
56188		return
56189	}
56190	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
56191	if r.TryDecodeAsNil() {
56192		x.Kind = ""
56193	} else {
56194		yyv11 := &x.Kind
56195		yym12 := z.DecBinary()
56196		_ = yym12
56197		if false {
56198		} else {
56199			*((*string)(yyv11)) = r.DecodeString()
56200		}
56201	}
56202	yyj10++
56203	if yyhl10 {
56204		yyb10 = yyj10 > l
56205	} else {
56206		yyb10 = r.CheckBreak()
56207	}
56208	if yyb10 {
56209		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
56210		return
56211	}
56212	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
56213	if r.TryDecodeAsNil() {
56214		x.APIVersion = ""
56215	} else {
56216		yyv13 := &x.APIVersion
56217		yym14 := z.DecBinary()
56218		_ = yym14
56219		if false {
56220		} else {
56221			*((*string)(yyv13)) = r.DecodeString()
56222		}
56223	}
56224	yyj10++
56225	if yyhl10 {
56226		yyb10 = yyj10 > l
56227	} else {
56228		yyb10 = r.CheckBreak()
56229	}
56230	if yyb10 {
56231		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
56232		return
56233	}
56234	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
56235	if r.TryDecodeAsNil() {
56236		x.Path = ""
56237	} else {
56238		yyv15 := &x.Path
56239		yym16 := z.DecBinary()
56240		_ = yym16
56241		if false {
56242		} else {
56243			*((*string)(yyv15)) = r.DecodeString()
56244		}
56245	}
56246	for {
56247		yyj10++
56248		if yyhl10 {
56249			yyb10 = yyj10 > l
56250		} else {
56251			yyb10 = r.CheckBreak()
56252		}
56253		if yyb10 {
56254			break
56255		}
56256		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
56257		z.DecStructFieldNotFound(yyj10-1, "")
56258	}
56259	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
56260}
56261
56262func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) {
56263	var h codecSelfer1234
56264	z, r := codec1978.GenHelperEncoder(e)
56265	_, _, _ = h, z, r
56266	if x == nil {
56267		r.EncodeNil()
56268	} else {
56269		yym1 := z.EncBinary()
56270		_ = yym1
56271		if false {
56272		} else if z.HasExtensions() && z.EncExt(x) {
56273		} else {
56274			yysep2 := !z.EncBinary()
56275			yy2arr2 := z.EncBasicHandle().StructToArray
56276			var yyq2 [3]bool
56277			_, _, _ = yysep2, yyq2, yy2arr2
56278			const yyr2 bool = false
56279			yyq2[0] = x.Kind != ""
56280			yyq2[1] = x.APIVersion != ""
56281			yyq2[2] = x.Path != ""
56282			var yynn2 int
56283			if yyr2 || yy2arr2 {
56284				r.EncodeArrayStart(3)
56285			} else {
56286				yynn2 = 0
56287				for _, b := range yyq2 {
56288					if b {
56289						yynn2++
56290					}
56291				}
56292				r.EncodeMapStart(yynn2)
56293				yynn2 = 0
56294			}
56295			if yyr2 || yy2arr2 {
56296				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
56297				if yyq2[0] {
56298					yym4 := z.EncBinary()
56299					_ = yym4
56300					if false {
56301					} else {
56302						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
56303					}
56304				} else {
56305					r.EncodeString(codecSelferC_UTF81234, "")
56306				}
56307			} else {
56308				if yyq2[0] {
56309					z.EncSendContainerState(codecSelfer_containerMapKey1234)
56310					r.EncodeString(codecSelferC_UTF81234, string("kind"))
56311					z.EncSendContainerState(codecSelfer_containerMapValue1234)
56312					yym5 := z.EncBinary()
56313					_ = yym5
56314					if false {
56315					} else {
56316						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
56317					}
56318				}
56319			}
56320			if yyr2 || yy2arr2 {
56321				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
56322				if yyq2[1] {
56323					yym7 := z.EncBinary()
56324					_ = yym7
56325					if false {
56326					} else {
56327						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
56328					}
56329				} else {
56330					r.EncodeString(codecSelferC_UTF81234, "")
56331				}
56332			} else {
56333				if yyq2[1] {
56334					z.EncSendContainerState(codecSelfer_containerMapKey1234)
56335					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
56336					z.EncSendContainerState(codecSelfer_containerMapValue1234)
56337					yym8 := z.EncBinary()
56338					_ = yym8
56339					if false {
56340					} else {
56341						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
56342					}
56343				}
56344			}
56345			if yyr2 || yy2arr2 {
56346				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
56347				if yyq2[2] {
56348					yym10 := z.EncBinary()
56349					_ = yym10
56350					if false {
56351					} else {
56352						r.EncodeString(codecSelferC_UTF81234, string(x.Path))
56353					}
56354				} else {
56355					r.EncodeString(codecSelferC_UTF81234, "")
56356				}
56357			} else {
56358				if yyq2[2] {
56359					z.EncSendContainerState(codecSelfer_containerMapKey1234)
56360					r.EncodeString(codecSelferC_UTF81234, string("path"))
56361					z.EncSendContainerState(codecSelfer_containerMapValue1234)
56362					yym11 := z.EncBinary()
56363					_ = yym11
56364					if false {
56365					} else {
56366						r.EncodeString(codecSelferC_UTF81234, string(x.Path))
56367					}
56368				}
56369			}
56370			if yyr2 || yy2arr2 {
56371				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
56372			} else {
56373				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
56374			}
56375		}
56376	}
56377}
56378
56379func (x *ServiceProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) {
56380	var h codecSelfer1234
56381	z, r := codec1978.GenHelperDecoder(d)
56382	_, _, _ = h, z, r
56383	yym1 := z.DecBinary()
56384	_ = yym1
56385	if false {
56386	} else if z.HasExtensions() && z.DecExt(x) {
56387	} else {
56388		yyct2 := r.ContainerType()
56389		if yyct2 == codecSelferValueTypeMap1234 {
56390			yyl2 := r.ReadMapStart()
56391			if yyl2 == 0 {
56392				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
56393			} else {
56394				x.codecDecodeSelfFromMap(yyl2, d)
56395			}
56396		} else if yyct2 == codecSelferValueTypeArray1234 {
56397			yyl2 := r.ReadArrayStart()
56398			if yyl2 == 0 {
56399				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
56400			} else {
56401				x.codecDecodeSelfFromArray(yyl2, d)
56402			}
56403		} else {
56404			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
56405		}
56406	}
56407}
56408
56409func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
56410	var h codecSelfer1234
56411	z, r := codec1978.GenHelperDecoder(d)
56412	_, _, _ = h, z, r
56413	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
56414	_ = yys3Slc
56415	var yyhl3 bool = l >= 0
56416	for yyj3 := 0; ; yyj3++ {
56417		if yyhl3 {
56418			if yyj3 >= l {
56419				break
56420			}
56421		} else {
56422			if r.CheckBreak() {
56423				break
56424			}
56425		}
56426		z.DecSendContainerState(codecSelfer_containerMapKey1234)
56427		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
56428		yys3 := string(yys3Slc)
56429		z.DecSendContainerState(codecSelfer_containerMapValue1234)
56430		switch yys3 {
56431		case "kind":
56432			if r.TryDecodeAsNil() {
56433				x.Kind = ""
56434			} else {
56435				yyv4 := &x.Kind
56436				yym5 := z.DecBinary()
56437				_ = yym5
56438				if false {
56439				} else {
56440					*((*string)(yyv4)) = r.DecodeString()
56441				}
56442			}
56443		case "apiVersion":
56444			if r.TryDecodeAsNil() {
56445				x.APIVersion = ""
56446			} else {
56447				yyv6 := &x.APIVersion
56448				yym7 := z.DecBinary()
56449				_ = yym7
56450				if false {
56451				} else {
56452					*((*string)(yyv6)) = r.DecodeString()
56453				}
56454			}
56455		case "path":
56456			if r.TryDecodeAsNil() {
56457				x.Path = ""
56458			} else {
56459				yyv8 := &x.Path
56460				yym9 := z.DecBinary()
56461				_ = yym9
56462				if false {
56463				} else {
56464					*((*string)(yyv8)) = r.DecodeString()
56465				}
56466			}
56467		default:
56468			z.DecStructFieldNotFound(-1, yys3)
56469		} // end switch yys3
56470	} // end for yyj3
56471	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
56472}
56473
56474func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
56475	var h codecSelfer1234
56476	z, r := codec1978.GenHelperDecoder(d)
56477	_, _, _ = h, z, r
56478	var yyj10 int
56479	var yyb10 bool
56480	var yyhl10 bool = l >= 0
56481	yyj10++
56482	if yyhl10 {
56483		yyb10 = yyj10 > l
56484	} else {
56485		yyb10 = r.CheckBreak()
56486	}
56487	if yyb10 {
56488		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
56489		return
56490	}
56491	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
56492	if r.TryDecodeAsNil() {
56493		x.Kind = ""
56494	} else {
56495		yyv11 := &x.Kind
56496		yym12 := z.DecBinary()
56497		_ = yym12
56498		if false {
56499		} else {
56500			*((*string)(yyv11)) = r.DecodeString()
56501		}
56502	}
56503	yyj10++
56504	if yyhl10 {
56505		yyb10 = yyj10 > l
56506	} else {
56507		yyb10 = r.CheckBreak()
56508	}
56509	if yyb10 {
56510		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
56511		return
56512	}
56513	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
56514	if r.TryDecodeAsNil() {
56515		x.APIVersion = ""
56516	} else {
56517		yyv13 := &x.APIVersion
56518		yym14 := z.DecBinary()
56519		_ = yym14
56520		if false {
56521		} else {
56522			*((*string)(yyv13)) = r.DecodeString()
56523		}
56524	}
56525	yyj10++
56526	if yyhl10 {
56527		yyb10 = yyj10 > l
56528	} else {
56529		yyb10 = r.CheckBreak()
56530	}
56531	if yyb10 {
56532		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
56533		return
56534	}
56535	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
56536	if r.TryDecodeAsNil() {
56537		x.Path = ""
56538	} else {
56539		yyv15 := &x.Path
56540		yym16 := z.DecBinary()
56541		_ = yym16
56542		if false {
56543		} else {
56544			*((*string)(yyv15)) = r.DecodeString()
56545		}
56546	}
56547	for {
56548		yyj10++
56549		if yyhl10 {
56550			yyb10 = yyj10 > l
56551		} else {
56552			yyb10 = r.CheckBreak()
56553		}
56554		if yyb10 {
56555			break
56556		}
56557		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
56558		z.DecStructFieldNotFound(yyj10-1, "")
56559	}
56560	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
56561}
56562
56563func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) {
56564	var h codecSelfer1234
56565	z, r := codec1978.GenHelperEncoder(e)
56566	_, _, _ = h, z, r
56567	if x == nil {
56568		r.EncodeNil()
56569	} else {
56570		yym1 := z.EncBinary()
56571		_ = yym1
56572		if false {
56573		} else if z.HasExtensions() && z.EncExt(x) {
56574		} else {
56575			yysep2 := !z.EncBinary()
56576			yy2arr2 := z.EncBasicHandle().StructToArray
56577			var yyq2 [7]bool
56578			_, _, _ = yysep2, yyq2, yy2arr2
56579			const yyr2 bool = false
56580			yyq2[0] = x.Kind != ""
56581			yyq2[1] = x.Namespace != ""
56582			yyq2[2] = x.Name != ""
56583			yyq2[3] = x.UID != ""
56584			yyq2[4] = x.APIVersion != ""
56585			yyq2[5] = x.ResourceVersion != ""
56586			yyq2[6] = x.FieldPath != ""
56587			var yynn2 int
56588			if yyr2 || yy2arr2 {
56589				r.EncodeArrayStart(7)
56590			} else {
56591				yynn2 = 0
56592				for _, b := range yyq2 {
56593					if b {
56594						yynn2++
56595					}
56596				}
56597				r.EncodeMapStart(yynn2)
56598				yynn2 = 0
56599			}
56600			if yyr2 || yy2arr2 {
56601				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
56602				if yyq2[0] {
56603					yym4 := z.EncBinary()
56604					_ = yym4
56605					if false {
56606					} else {
56607						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
56608					}
56609				} else {
56610					r.EncodeString(codecSelferC_UTF81234, "")
56611				}
56612			} else {
56613				if yyq2[0] {
56614					z.EncSendContainerState(codecSelfer_containerMapKey1234)
56615					r.EncodeString(codecSelferC_UTF81234, string("kind"))
56616					z.EncSendContainerState(codecSelfer_containerMapValue1234)
56617					yym5 := z.EncBinary()
56618					_ = yym5
56619					if false {
56620					} else {
56621						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
56622					}
56623				}
56624			}
56625			if yyr2 || yy2arr2 {
56626				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
56627				if yyq2[1] {
56628					yym7 := z.EncBinary()
56629					_ = yym7
56630					if false {
56631					} else {
56632						r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
56633					}
56634				} else {
56635					r.EncodeString(codecSelferC_UTF81234, "")
56636				}
56637			} else {
56638				if yyq2[1] {
56639					z.EncSendContainerState(codecSelfer_containerMapKey1234)
56640					r.EncodeString(codecSelferC_UTF81234, string("namespace"))
56641					z.EncSendContainerState(codecSelfer_containerMapValue1234)
56642					yym8 := z.EncBinary()
56643					_ = yym8
56644					if false {
56645					} else {
56646						r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
56647					}
56648				}
56649			}
56650			if yyr2 || yy2arr2 {
56651				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
56652				if yyq2[2] {
56653					yym10 := z.EncBinary()
56654					_ = yym10
56655					if false {
56656					} else {
56657						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
56658					}
56659				} else {
56660					r.EncodeString(codecSelferC_UTF81234, "")
56661				}
56662			} else {
56663				if yyq2[2] {
56664					z.EncSendContainerState(codecSelfer_containerMapKey1234)
56665					r.EncodeString(codecSelferC_UTF81234, string("name"))
56666					z.EncSendContainerState(codecSelfer_containerMapValue1234)
56667					yym11 := z.EncBinary()
56668					_ = yym11
56669					if false {
56670					} else {
56671						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
56672					}
56673				}
56674			}
56675			if yyr2 || yy2arr2 {
56676				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
56677				if yyq2[3] {
56678					yym13 := z.EncBinary()
56679					_ = yym13
56680					if false {
56681					} else if z.HasExtensions() && z.EncExt(x.UID) {
56682					} else {
56683						r.EncodeString(codecSelferC_UTF81234, string(x.UID))
56684					}
56685				} else {
56686					r.EncodeString(codecSelferC_UTF81234, "")
56687				}
56688			} else {
56689				if yyq2[3] {
56690					z.EncSendContainerState(codecSelfer_containerMapKey1234)
56691					r.EncodeString(codecSelferC_UTF81234, string("uid"))
56692					z.EncSendContainerState(codecSelfer_containerMapValue1234)
56693					yym14 := z.EncBinary()
56694					_ = yym14
56695					if false {
56696					} else if z.HasExtensions() && z.EncExt(x.UID) {
56697					} else {
56698						r.EncodeString(codecSelferC_UTF81234, string(x.UID))
56699					}
56700				}
56701			}
56702			if yyr2 || yy2arr2 {
56703				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
56704				if yyq2[4] {
56705					yym16 := z.EncBinary()
56706					_ = yym16
56707					if false {
56708					} else {
56709						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
56710					}
56711				} else {
56712					r.EncodeString(codecSelferC_UTF81234, "")
56713				}
56714			} else {
56715				if yyq2[4] {
56716					z.EncSendContainerState(codecSelfer_containerMapKey1234)
56717					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
56718					z.EncSendContainerState(codecSelfer_containerMapValue1234)
56719					yym17 := z.EncBinary()
56720					_ = yym17
56721					if false {
56722					} else {
56723						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
56724					}
56725				}
56726			}
56727			if yyr2 || yy2arr2 {
56728				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
56729				if yyq2[5] {
56730					yym19 := z.EncBinary()
56731					_ = yym19
56732					if false {
56733					} else {
56734						r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
56735					}
56736				} else {
56737					r.EncodeString(codecSelferC_UTF81234, "")
56738				}
56739			} else {
56740				if yyq2[5] {
56741					z.EncSendContainerState(codecSelfer_containerMapKey1234)
56742					r.EncodeString(codecSelferC_UTF81234, string("resourceVersion"))
56743					z.EncSendContainerState(codecSelfer_containerMapValue1234)
56744					yym20 := z.EncBinary()
56745					_ = yym20
56746					if false {
56747					} else {
56748						r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
56749					}
56750				}
56751			}
56752			if yyr2 || yy2arr2 {
56753				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
56754				if yyq2[6] {
56755					yym22 := z.EncBinary()
56756					_ = yym22
56757					if false {
56758					} else {
56759						r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
56760					}
56761				} else {
56762					r.EncodeString(codecSelferC_UTF81234, "")
56763				}
56764			} else {
56765				if yyq2[6] {
56766					z.EncSendContainerState(codecSelfer_containerMapKey1234)
56767					r.EncodeString(codecSelferC_UTF81234, string("fieldPath"))
56768					z.EncSendContainerState(codecSelfer_containerMapValue1234)
56769					yym23 := z.EncBinary()
56770					_ = yym23
56771					if false {
56772					} else {
56773						r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
56774					}
56775				}
56776			}
56777			if yyr2 || yy2arr2 {
56778				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
56779			} else {
56780				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
56781			}
56782		}
56783	}
56784}
56785
56786func (x *ObjectReference) CodecDecodeSelf(d *codec1978.Decoder) {
56787	var h codecSelfer1234
56788	z, r := codec1978.GenHelperDecoder(d)
56789	_, _, _ = h, z, r
56790	yym1 := z.DecBinary()
56791	_ = yym1
56792	if false {
56793	} else if z.HasExtensions() && z.DecExt(x) {
56794	} else {
56795		yyct2 := r.ContainerType()
56796		if yyct2 == codecSelferValueTypeMap1234 {
56797			yyl2 := r.ReadMapStart()
56798			if yyl2 == 0 {
56799				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
56800			} else {
56801				x.codecDecodeSelfFromMap(yyl2, d)
56802			}
56803		} else if yyct2 == codecSelferValueTypeArray1234 {
56804			yyl2 := r.ReadArrayStart()
56805			if yyl2 == 0 {
56806				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
56807			} else {
56808				x.codecDecodeSelfFromArray(yyl2, d)
56809			}
56810		} else {
56811			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
56812		}
56813	}
56814}
56815
56816func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
56817	var h codecSelfer1234
56818	z, r := codec1978.GenHelperDecoder(d)
56819	_, _, _ = h, z, r
56820	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
56821	_ = yys3Slc
56822	var yyhl3 bool = l >= 0
56823	for yyj3 := 0; ; yyj3++ {
56824		if yyhl3 {
56825			if yyj3 >= l {
56826				break
56827			}
56828		} else {
56829			if r.CheckBreak() {
56830				break
56831			}
56832		}
56833		z.DecSendContainerState(codecSelfer_containerMapKey1234)
56834		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
56835		yys3 := string(yys3Slc)
56836		z.DecSendContainerState(codecSelfer_containerMapValue1234)
56837		switch yys3 {
56838		case "kind":
56839			if r.TryDecodeAsNil() {
56840				x.Kind = ""
56841			} else {
56842				yyv4 := &x.Kind
56843				yym5 := z.DecBinary()
56844				_ = yym5
56845				if false {
56846				} else {
56847					*((*string)(yyv4)) = r.DecodeString()
56848				}
56849			}
56850		case "namespace":
56851			if r.TryDecodeAsNil() {
56852				x.Namespace = ""
56853			} else {
56854				yyv6 := &x.Namespace
56855				yym7 := z.DecBinary()
56856				_ = yym7
56857				if false {
56858				} else {
56859					*((*string)(yyv6)) = r.DecodeString()
56860				}
56861			}
56862		case "name":
56863			if r.TryDecodeAsNil() {
56864				x.Name = ""
56865			} else {
56866				yyv8 := &x.Name
56867				yym9 := z.DecBinary()
56868				_ = yym9
56869				if false {
56870				} else {
56871					*((*string)(yyv8)) = r.DecodeString()
56872				}
56873			}
56874		case "uid":
56875			if r.TryDecodeAsNil() {
56876				x.UID = ""
56877			} else {
56878				yyv10 := &x.UID
56879				yym11 := z.DecBinary()
56880				_ = yym11
56881				if false {
56882				} else if z.HasExtensions() && z.DecExt(yyv10) {
56883				} else {
56884					*((*string)(yyv10)) = r.DecodeString()
56885				}
56886			}
56887		case "apiVersion":
56888			if r.TryDecodeAsNil() {
56889				x.APIVersion = ""
56890			} else {
56891				yyv12 := &x.APIVersion
56892				yym13 := z.DecBinary()
56893				_ = yym13
56894				if false {
56895				} else {
56896					*((*string)(yyv12)) = r.DecodeString()
56897				}
56898			}
56899		case "resourceVersion":
56900			if r.TryDecodeAsNil() {
56901				x.ResourceVersion = ""
56902			} else {
56903				yyv14 := &x.ResourceVersion
56904				yym15 := z.DecBinary()
56905				_ = yym15
56906				if false {
56907				} else {
56908					*((*string)(yyv14)) = r.DecodeString()
56909				}
56910			}
56911		case "fieldPath":
56912			if r.TryDecodeAsNil() {
56913				x.FieldPath = ""
56914			} else {
56915				yyv16 := &x.FieldPath
56916				yym17 := z.DecBinary()
56917				_ = yym17
56918				if false {
56919				} else {
56920					*((*string)(yyv16)) = r.DecodeString()
56921				}
56922			}
56923		default:
56924			z.DecStructFieldNotFound(-1, yys3)
56925		} // end switch yys3
56926	} // end for yyj3
56927	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
56928}
56929
56930func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
56931	var h codecSelfer1234
56932	z, r := codec1978.GenHelperDecoder(d)
56933	_, _, _ = h, z, r
56934	var yyj18 int
56935	var yyb18 bool
56936	var yyhl18 bool = l >= 0
56937	yyj18++
56938	if yyhl18 {
56939		yyb18 = yyj18 > l
56940	} else {
56941		yyb18 = r.CheckBreak()
56942	}
56943	if yyb18 {
56944		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
56945		return
56946	}
56947	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
56948	if r.TryDecodeAsNil() {
56949		x.Kind = ""
56950	} else {
56951		yyv19 := &x.Kind
56952		yym20 := z.DecBinary()
56953		_ = yym20
56954		if false {
56955		} else {
56956			*((*string)(yyv19)) = r.DecodeString()
56957		}
56958	}
56959	yyj18++
56960	if yyhl18 {
56961		yyb18 = yyj18 > l
56962	} else {
56963		yyb18 = r.CheckBreak()
56964	}
56965	if yyb18 {
56966		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
56967		return
56968	}
56969	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
56970	if r.TryDecodeAsNil() {
56971		x.Namespace = ""
56972	} else {
56973		yyv21 := &x.Namespace
56974		yym22 := z.DecBinary()
56975		_ = yym22
56976		if false {
56977		} else {
56978			*((*string)(yyv21)) = r.DecodeString()
56979		}
56980	}
56981	yyj18++
56982	if yyhl18 {
56983		yyb18 = yyj18 > l
56984	} else {
56985		yyb18 = r.CheckBreak()
56986	}
56987	if yyb18 {
56988		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
56989		return
56990	}
56991	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
56992	if r.TryDecodeAsNil() {
56993		x.Name = ""
56994	} else {
56995		yyv23 := &x.Name
56996		yym24 := z.DecBinary()
56997		_ = yym24
56998		if false {
56999		} else {
57000			*((*string)(yyv23)) = r.DecodeString()
57001		}
57002	}
57003	yyj18++
57004	if yyhl18 {
57005		yyb18 = yyj18 > l
57006	} else {
57007		yyb18 = r.CheckBreak()
57008	}
57009	if yyb18 {
57010		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
57011		return
57012	}
57013	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
57014	if r.TryDecodeAsNil() {
57015		x.UID = ""
57016	} else {
57017		yyv25 := &x.UID
57018		yym26 := z.DecBinary()
57019		_ = yym26
57020		if false {
57021		} else if z.HasExtensions() && z.DecExt(yyv25) {
57022		} else {
57023			*((*string)(yyv25)) = r.DecodeString()
57024		}
57025	}
57026	yyj18++
57027	if yyhl18 {
57028		yyb18 = yyj18 > l
57029	} else {
57030		yyb18 = r.CheckBreak()
57031	}
57032	if yyb18 {
57033		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
57034		return
57035	}
57036	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
57037	if r.TryDecodeAsNil() {
57038		x.APIVersion = ""
57039	} else {
57040		yyv27 := &x.APIVersion
57041		yym28 := z.DecBinary()
57042		_ = yym28
57043		if false {
57044		} else {
57045			*((*string)(yyv27)) = r.DecodeString()
57046		}
57047	}
57048	yyj18++
57049	if yyhl18 {
57050		yyb18 = yyj18 > l
57051	} else {
57052		yyb18 = r.CheckBreak()
57053	}
57054	if yyb18 {
57055		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
57056		return
57057	}
57058	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
57059	if r.TryDecodeAsNil() {
57060		x.ResourceVersion = ""
57061	} else {
57062		yyv29 := &x.ResourceVersion
57063		yym30 := z.DecBinary()
57064		_ = yym30
57065		if false {
57066		} else {
57067			*((*string)(yyv29)) = r.DecodeString()
57068		}
57069	}
57070	yyj18++
57071	if yyhl18 {
57072		yyb18 = yyj18 > l
57073	} else {
57074		yyb18 = r.CheckBreak()
57075	}
57076	if yyb18 {
57077		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
57078		return
57079	}
57080	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
57081	if r.TryDecodeAsNil() {
57082		x.FieldPath = ""
57083	} else {
57084		yyv31 := &x.FieldPath
57085		yym32 := z.DecBinary()
57086		_ = yym32
57087		if false {
57088		} else {
57089			*((*string)(yyv31)) = r.DecodeString()
57090		}
57091	}
57092	for {
57093		yyj18++
57094		if yyhl18 {
57095			yyb18 = yyj18 > l
57096		} else {
57097			yyb18 = r.CheckBreak()
57098		}
57099		if yyb18 {
57100			break
57101		}
57102		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
57103		z.DecStructFieldNotFound(yyj18-1, "")
57104	}
57105	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
57106}
57107
57108func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) {
57109	var h codecSelfer1234
57110	z, r := codec1978.GenHelperEncoder(e)
57111	_, _, _ = h, z, r
57112	if x == nil {
57113		r.EncodeNil()
57114	} else {
57115		yym1 := z.EncBinary()
57116		_ = yym1
57117		if false {
57118		} else if z.HasExtensions() && z.EncExt(x) {
57119		} else {
57120			yysep2 := !z.EncBinary()
57121			yy2arr2 := z.EncBasicHandle().StructToArray
57122			var yyq2 [1]bool
57123			_, _, _ = yysep2, yyq2, yy2arr2
57124			const yyr2 bool = false
57125			yyq2[0] = x.Name != ""
57126			var yynn2 int
57127			if yyr2 || yy2arr2 {
57128				r.EncodeArrayStart(1)
57129			} else {
57130				yynn2 = 0
57131				for _, b := range yyq2 {
57132					if b {
57133						yynn2++
57134					}
57135				}
57136				r.EncodeMapStart(yynn2)
57137				yynn2 = 0
57138			}
57139			if yyr2 || yy2arr2 {
57140				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
57141				if yyq2[0] {
57142					yym4 := z.EncBinary()
57143					_ = yym4
57144					if false {
57145					} else {
57146						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
57147					}
57148				} else {
57149					r.EncodeString(codecSelferC_UTF81234, "")
57150				}
57151			} else {
57152				if yyq2[0] {
57153					z.EncSendContainerState(codecSelfer_containerMapKey1234)
57154					r.EncodeString(codecSelferC_UTF81234, string("name"))
57155					z.EncSendContainerState(codecSelfer_containerMapValue1234)
57156					yym5 := z.EncBinary()
57157					_ = yym5
57158					if false {
57159					} else {
57160						r.EncodeString(codecSelferC_UTF81234, string(x.Name))
57161					}
57162				}
57163			}
57164			if yyr2 || yy2arr2 {
57165				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
57166			} else {
57167				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
57168			}
57169		}
57170	}
57171}
57172
57173func (x *LocalObjectReference) CodecDecodeSelf(d *codec1978.Decoder) {
57174	var h codecSelfer1234
57175	z, r := codec1978.GenHelperDecoder(d)
57176	_, _, _ = h, z, r
57177	yym1 := z.DecBinary()
57178	_ = yym1
57179	if false {
57180	} else if z.HasExtensions() && z.DecExt(x) {
57181	} else {
57182		yyct2 := r.ContainerType()
57183		if yyct2 == codecSelferValueTypeMap1234 {
57184			yyl2 := r.ReadMapStart()
57185			if yyl2 == 0 {
57186				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
57187			} else {
57188				x.codecDecodeSelfFromMap(yyl2, d)
57189			}
57190		} else if yyct2 == codecSelferValueTypeArray1234 {
57191			yyl2 := r.ReadArrayStart()
57192			if yyl2 == 0 {
57193				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
57194			} else {
57195				x.codecDecodeSelfFromArray(yyl2, d)
57196			}
57197		} else {
57198			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
57199		}
57200	}
57201}
57202
57203func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
57204	var h codecSelfer1234
57205	z, r := codec1978.GenHelperDecoder(d)
57206	_, _, _ = h, z, r
57207	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
57208	_ = yys3Slc
57209	var yyhl3 bool = l >= 0
57210	for yyj3 := 0; ; yyj3++ {
57211		if yyhl3 {
57212			if yyj3 >= l {
57213				break
57214			}
57215		} else {
57216			if r.CheckBreak() {
57217				break
57218			}
57219		}
57220		z.DecSendContainerState(codecSelfer_containerMapKey1234)
57221		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
57222		yys3 := string(yys3Slc)
57223		z.DecSendContainerState(codecSelfer_containerMapValue1234)
57224		switch yys3 {
57225		case "name":
57226			if r.TryDecodeAsNil() {
57227				x.Name = ""
57228			} else {
57229				yyv4 := &x.Name
57230				yym5 := z.DecBinary()
57231				_ = yym5
57232				if false {
57233				} else {
57234					*((*string)(yyv4)) = r.DecodeString()
57235				}
57236			}
57237		default:
57238			z.DecStructFieldNotFound(-1, yys3)
57239		} // end switch yys3
57240	} // end for yyj3
57241	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
57242}
57243
57244func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
57245	var h codecSelfer1234
57246	z, r := codec1978.GenHelperDecoder(d)
57247	_, _, _ = h, z, r
57248	var yyj6 int
57249	var yyb6 bool
57250	var yyhl6 bool = l >= 0
57251	yyj6++
57252	if yyhl6 {
57253		yyb6 = yyj6 > l
57254	} else {
57255		yyb6 = r.CheckBreak()
57256	}
57257	if yyb6 {
57258		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
57259		return
57260	}
57261	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
57262	if r.TryDecodeAsNil() {
57263		x.Name = ""
57264	} else {
57265		yyv7 := &x.Name
57266		yym8 := z.DecBinary()
57267		_ = yym8
57268		if false {
57269		} else {
57270			*((*string)(yyv7)) = r.DecodeString()
57271		}
57272	}
57273	for {
57274		yyj6++
57275		if yyhl6 {
57276			yyb6 = yyj6 > l
57277		} else {
57278			yyb6 = r.CheckBreak()
57279		}
57280		if yyb6 {
57281			break
57282		}
57283		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
57284		z.DecStructFieldNotFound(yyj6-1, "")
57285	}
57286	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
57287}
57288
57289func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) {
57290	var h codecSelfer1234
57291	z, r := codec1978.GenHelperEncoder(e)
57292	_, _, _ = h, z, r
57293	if x == nil {
57294		r.EncodeNil()
57295	} else {
57296		yym1 := z.EncBinary()
57297		_ = yym1
57298		if false {
57299		} else if z.HasExtensions() && z.EncExt(x) {
57300		} else {
57301			yysep2 := !z.EncBinary()
57302			yy2arr2 := z.EncBasicHandle().StructToArray
57303			var yyq2 [3]bool
57304			_, _, _ = yysep2, yyq2, yy2arr2
57305			const yyr2 bool = false
57306			yyq2[0] = x.Kind != ""
57307			yyq2[1] = x.APIVersion != ""
57308			yyq2[2] = true
57309			var yynn2 int
57310			if yyr2 || yy2arr2 {
57311				r.EncodeArrayStart(3)
57312			} else {
57313				yynn2 = 0
57314				for _, b := range yyq2 {
57315					if b {
57316						yynn2++
57317					}
57318				}
57319				r.EncodeMapStart(yynn2)
57320				yynn2 = 0
57321			}
57322			if yyr2 || yy2arr2 {
57323				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
57324				if yyq2[0] {
57325					yym4 := z.EncBinary()
57326					_ = yym4
57327					if false {
57328					} else {
57329						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
57330					}
57331				} else {
57332					r.EncodeString(codecSelferC_UTF81234, "")
57333				}
57334			} else {
57335				if yyq2[0] {
57336					z.EncSendContainerState(codecSelfer_containerMapKey1234)
57337					r.EncodeString(codecSelferC_UTF81234, string("kind"))
57338					z.EncSendContainerState(codecSelfer_containerMapValue1234)
57339					yym5 := z.EncBinary()
57340					_ = yym5
57341					if false {
57342					} else {
57343						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
57344					}
57345				}
57346			}
57347			if yyr2 || yy2arr2 {
57348				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
57349				if yyq2[1] {
57350					yym7 := z.EncBinary()
57351					_ = yym7
57352					if false {
57353					} else {
57354						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
57355					}
57356				} else {
57357					r.EncodeString(codecSelferC_UTF81234, "")
57358				}
57359			} else {
57360				if yyq2[1] {
57361					z.EncSendContainerState(codecSelfer_containerMapKey1234)
57362					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
57363					z.EncSendContainerState(codecSelfer_containerMapValue1234)
57364					yym8 := z.EncBinary()
57365					_ = yym8
57366					if false {
57367					} else {
57368						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
57369					}
57370				}
57371			}
57372			if yyr2 || yy2arr2 {
57373				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
57374				if yyq2[2] {
57375					yy10 := &x.Reference
57376					yy10.CodecEncodeSelf(e)
57377				} else {
57378					r.EncodeNil()
57379				}
57380			} else {
57381				if yyq2[2] {
57382					z.EncSendContainerState(codecSelfer_containerMapKey1234)
57383					r.EncodeString(codecSelferC_UTF81234, string("reference"))
57384					z.EncSendContainerState(codecSelfer_containerMapValue1234)
57385					yy12 := &x.Reference
57386					yy12.CodecEncodeSelf(e)
57387				}
57388			}
57389			if yyr2 || yy2arr2 {
57390				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
57391			} else {
57392				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
57393			}
57394		}
57395	}
57396}
57397
57398func (x *SerializedReference) CodecDecodeSelf(d *codec1978.Decoder) {
57399	var h codecSelfer1234
57400	z, r := codec1978.GenHelperDecoder(d)
57401	_, _, _ = h, z, r
57402	yym1 := z.DecBinary()
57403	_ = yym1
57404	if false {
57405	} else if z.HasExtensions() && z.DecExt(x) {
57406	} else {
57407		yyct2 := r.ContainerType()
57408		if yyct2 == codecSelferValueTypeMap1234 {
57409			yyl2 := r.ReadMapStart()
57410			if yyl2 == 0 {
57411				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
57412			} else {
57413				x.codecDecodeSelfFromMap(yyl2, d)
57414			}
57415		} else if yyct2 == codecSelferValueTypeArray1234 {
57416			yyl2 := r.ReadArrayStart()
57417			if yyl2 == 0 {
57418				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
57419			} else {
57420				x.codecDecodeSelfFromArray(yyl2, d)
57421			}
57422		} else {
57423			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
57424		}
57425	}
57426}
57427
57428func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
57429	var h codecSelfer1234
57430	z, r := codec1978.GenHelperDecoder(d)
57431	_, _, _ = h, z, r
57432	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
57433	_ = yys3Slc
57434	var yyhl3 bool = l >= 0
57435	for yyj3 := 0; ; yyj3++ {
57436		if yyhl3 {
57437			if yyj3 >= l {
57438				break
57439			}
57440		} else {
57441			if r.CheckBreak() {
57442				break
57443			}
57444		}
57445		z.DecSendContainerState(codecSelfer_containerMapKey1234)
57446		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
57447		yys3 := string(yys3Slc)
57448		z.DecSendContainerState(codecSelfer_containerMapValue1234)
57449		switch yys3 {
57450		case "kind":
57451			if r.TryDecodeAsNil() {
57452				x.Kind = ""
57453			} else {
57454				yyv4 := &x.Kind
57455				yym5 := z.DecBinary()
57456				_ = yym5
57457				if false {
57458				} else {
57459					*((*string)(yyv4)) = r.DecodeString()
57460				}
57461			}
57462		case "apiVersion":
57463			if r.TryDecodeAsNil() {
57464				x.APIVersion = ""
57465			} else {
57466				yyv6 := &x.APIVersion
57467				yym7 := z.DecBinary()
57468				_ = yym7
57469				if false {
57470				} else {
57471					*((*string)(yyv6)) = r.DecodeString()
57472				}
57473			}
57474		case "reference":
57475			if r.TryDecodeAsNil() {
57476				x.Reference = ObjectReference{}
57477			} else {
57478				yyv8 := &x.Reference
57479				yyv8.CodecDecodeSelf(d)
57480			}
57481		default:
57482			z.DecStructFieldNotFound(-1, yys3)
57483		} // end switch yys3
57484	} // end for yyj3
57485	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
57486}
57487
57488func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
57489	var h codecSelfer1234
57490	z, r := codec1978.GenHelperDecoder(d)
57491	_, _, _ = h, z, r
57492	var yyj9 int
57493	var yyb9 bool
57494	var yyhl9 bool = l >= 0
57495	yyj9++
57496	if yyhl9 {
57497		yyb9 = yyj9 > l
57498	} else {
57499		yyb9 = r.CheckBreak()
57500	}
57501	if yyb9 {
57502		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
57503		return
57504	}
57505	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
57506	if r.TryDecodeAsNil() {
57507		x.Kind = ""
57508	} else {
57509		yyv10 := &x.Kind
57510		yym11 := z.DecBinary()
57511		_ = yym11
57512		if false {
57513		} else {
57514			*((*string)(yyv10)) = r.DecodeString()
57515		}
57516	}
57517	yyj9++
57518	if yyhl9 {
57519		yyb9 = yyj9 > l
57520	} else {
57521		yyb9 = r.CheckBreak()
57522	}
57523	if yyb9 {
57524		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
57525		return
57526	}
57527	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
57528	if r.TryDecodeAsNil() {
57529		x.APIVersion = ""
57530	} else {
57531		yyv12 := &x.APIVersion
57532		yym13 := z.DecBinary()
57533		_ = yym13
57534		if false {
57535		} else {
57536			*((*string)(yyv12)) = r.DecodeString()
57537		}
57538	}
57539	yyj9++
57540	if yyhl9 {
57541		yyb9 = yyj9 > l
57542	} else {
57543		yyb9 = r.CheckBreak()
57544	}
57545	if yyb9 {
57546		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
57547		return
57548	}
57549	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
57550	if r.TryDecodeAsNil() {
57551		x.Reference = ObjectReference{}
57552	} else {
57553		yyv14 := &x.Reference
57554		yyv14.CodecDecodeSelf(d)
57555	}
57556	for {
57557		yyj9++
57558		if yyhl9 {
57559			yyb9 = yyj9 > l
57560		} else {
57561			yyb9 = r.CheckBreak()
57562		}
57563		if yyb9 {
57564			break
57565		}
57566		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
57567		z.DecStructFieldNotFound(yyj9-1, "")
57568	}
57569	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
57570}
57571
57572func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) {
57573	var h codecSelfer1234
57574	z, r := codec1978.GenHelperEncoder(e)
57575	_, _, _ = h, z, r
57576	if x == nil {
57577		r.EncodeNil()
57578	} else {
57579		yym1 := z.EncBinary()
57580		_ = yym1
57581		if false {
57582		} else if z.HasExtensions() && z.EncExt(x) {
57583		} else {
57584			yysep2 := !z.EncBinary()
57585			yy2arr2 := z.EncBasicHandle().StructToArray
57586			var yyq2 [2]bool
57587			_, _, _ = yysep2, yyq2, yy2arr2
57588			const yyr2 bool = false
57589			yyq2[0] = x.Component != ""
57590			yyq2[1] = x.Host != ""
57591			var yynn2 int
57592			if yyr2 || yy2arr2 {
57593				r.EncodeArrayStart(2)
57594			} else {
57595				yynn2 = 0
57596				for _, b := range yyq2 {
57597					if b {
57598						yynn2++
57599					}
57600				}
57601				r.EncodeMapStart(yynn2)
57602				yynn2 = 0
57603			}
57604			if yyr2 || yy2arr2 {
57605				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
57606				if yyq2[0] {
57607					yym4 := z.EncBinary()
57608					_ = yym4
57609					if false {
57610					} else {
57611						r.EncodeString(codecSelferC_UTF81234, string(x.Component))
57612					}
57613				} else {
57614					r.EncodeString(codecSelferC_UTF81234, "")
57615				}
57616			} else {
57617				if yyq2[0] {
57618					z.EncSendContainerState(codecSelfer_containerMapKey1234)
57619					r.EncodeString(codecSelferC_UTF81234, string("component"))
57620					z.EncSendContainerState(codecSelfer_containerMapValue1234)
57621					yym5 := z.EncBinary()
57622					_ = yym5
57623					if false {
57624					} else {
57625						r.EncodeString(codecSelferC_UTF81234, string(x.Component))
57626					}
57627				}
57628			}
57629			if yyr2 || yy2arr2 {
57630				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
57631				if yyq2[1] {
57632					yym7 := z.EncBinary()
57633					_ = yym7
57634					if false {
57635					} else {
57636						r.EncodeString(codecSelferC_UTF81234, string(x.Host))
57637					}
57638				} else {
57639					r.EncodeString(codecSelferC_UTF81234, "")
57640				}
57641			} else {
57642				if yyq2[1] {
57643					z.EncSendContainerState(codecSelfer_containerMapKey1234)
57644					r.EncodeString(codecSelferC_UTF81234, string("host"))
57645					z.EncSendContainerState(codecSelfer_containerMapValue1234)
57646					yym8 := z.EncBinary()
57647					_ = yym8
57648					if false {
57649					} else {
57650						r.EncodeString(codecSelferC_UTF81234, string(x.Host))
57651					}
57652				}
57653			}
57654			if yyr2 || yy2arr2 {
57655				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
57656			} else {
57657				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
57658			}
57659		}
57660	}
57661}
57662
57663func (x *EventSource) CodecDecodeSelf(d *codec1978.Decoder) {
57664	var h codecSelfer1234
57665	z, r := codec1978.GenHelperDecoder(d)
57666	_, _, _ = h, z, r
57667	yym1 := z.DecBinary()
57668	_ = yym1
57669	if false {
57670	} else if z.HasExtensions() && z.DecExt(x) {
57671	} else {
57672		yyct2 := r.ContainerType()
57673		if yyct2 == codecSelferValueTypeMap1234 {
57674			yyl2 := r.ReadMapStart()
57675			if yyl2 == 0 {
57676				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
57677			} else {
57678				x.codecDecodeSelfFromMap(yyl2, d)
57679			}
57680		} else if yyct2 == codecSelferValueTypeArray1234 {
57681			yyl2 := r.ReadArrayStart()
57682			if yyl2 == 0 {
57683				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
57684			} else {
57685				x.codecDecodeSelfFromArray(yyl2, d)
57686			}
57687		} else {
57688			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
57689		}
57690	}
57691}
57692
57693func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
57694	var h codecSelfer1234
57695	z, r := codec1978.GenHelperDecoder(d)
57696	_, _, _ = h, z, r
57697	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
57698	_ = yys3Slc
57699	var yyhl3 bool = l >= 0
57700	for yyj3 := 0; ; yyj3++ {
57701		if yyhl3 {
57702			if yyj3 >= l {
57703				break
57704			}
57705		} else {
57706			if r.CheckBreak() {
57707				break
57708			}
57709		}
57710		z.DecSendContainerState(codecSelfer_containerMapKey1234)
57711		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
57712		yys3 := string(yys3Slc)
57713		z.DecSendContainerState(codecSelfer_containerMapValue1234)
57714		switch yys3 {
57715		case "component":
57716			if r.TryDecodeAsNil() {
57717				x.Component = ""
57718			} else {
57719				yyv4 := &x.Component
57720				yym5 := z.DecBinary()
57721				_ = yym5
57722				if false {
57723				} else {
57724					*((*string)(yyv4)) = r.DecodeString()
57725				}
57726			}
57727		case "host":
57728			if r.TryDecodeAsNil() {
57729				x.Host = ""
57730			} else {
57731				yyv6 := &x.Host
57732				yym7 := z.DecBinary()
57733				_ = yym7
57734				if false {
57735				} else {
57736					*((*string)(yyv6)) = r.DecodeString()
57737				}
57738			}
57739		default:
57740			z.DecStructFieldNotFound(-1, yys3)
57741		} // end switch yys3
57742	} // end for yyj3
57743	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
57744}
57745
57746func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
57747	var h codecSelfer1234
57748	z, r := codec1978.GenHelperDecoder(d)
57749	_, _, _ = h, z, r
57750	var yyj8 int
57751	var yyb8 bool
57752	var yyhl8 bool = l >= 0
57753	yyj8++
57754	if yyhl8 {
57755		yyb8 = yyj8 > l
57756	} else {
57757		yyb8 = r.CheckBreak()
57758	}
57759	if yyb8 {
57760		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
57761		return
57762	}
57763	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
57764	if r.TryDecodeAsNil() {
57765		x.Component = ""
57766	} else {
57767		yyv9 := &x.Component
57768		yym10 := z.DecBinary()
57769		_ = yym10
57770		if false {
57771		} else {
57772			*((*string)(yyv9)) = r.DecodeString()
57773		}
57774	}
57775	yyj8++
57776	if yyhl8 {
57777		yyb8 = yyj8 > l
57778	} else {
57779		yyb8 = r.CheckBreak()
57780	}
57781	if yyb8 {
57782		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
57783		return
57784	}
57785	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
57786	if r.TryDecodeAsNil() {
57787		x.Host = ""
57788	} else {
57789		yyv11 := &x.Host
57790		yym12 := z.DecBinary()
57791		_ = yym12
57792		if false {
57793		} else {
57794			*((*string)(yyv11)) = r.DecodeString()
57795		}
57796	}
57797	for {
57798		yyj8++
57799		if yyhl8 {
57800			yyb8 = yyj8 > l
57801		} else {
57802			yyb8 = r.CheckBreak()
57803		}
57804		if yyb8 {
57805			break
57806		}
57807		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
57808		z.DecStructFieldNotFound(yyj8-1, "")
57809	}
57810	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
57811}
57812
57813func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) {
57814	var h codecSelfer1234
57815	z, r := codec1978.GenHelperEncoder(e)
57816	_, _, _ = h, z, r
57817	if x == nil {
57818		r.EncodeNil()
57819	} else {
57820		yym1 := z.EncBinary()
57821		_ = yym1
57822		if false {
57823		} else if z.HasExtensions() && z.EncExt(x) {
57824		} else {
57825			yysep2 := !z.EncBinary()
57826			yy2arr2 := z.EncBasicHandle().StructToArray
57827			var yyq2 [11]bool
57828			_, _, _ = yysep2, yyq2, yy2arr2
57829			const yyr2 bool = false
57830			yyq2[0] = x.Kind != ""
57831			yyq2[1] = x.APIVersion != ""
57832			yyq2[4] = x.Reason != ""
57833			yyq2[5] = x.Message != ""
57834			yyq2[6] = true
57835			yyq2[7] = true
57836			yyq2[8] = true
57837			yyq2[9] = x.Count != 0
57838			yyq2[10] = x.Type != ""
57839			var yynn2 int
57840			if yyr2 || yy2arr2 {
57841				r.EncodeArrayStart(11)
57842			} else {
57843				yynn2 = 2
57844				for _, b := range yyq2 {
57845					if b {
57846						yynn2++
57847					}
57848				}
57849				r.EncodeMapStart(yynn2)
57850				yynn2 = 0
57851			}
57852			if yyr2 || yy2arr2 {
57853				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
57854				if yyq2[0] {
57855					yym4 := z.EncBinary()
57856					_ = yym4
57857					if false {
57858					} else {
57859						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
57860					}
57861				} else {
57862					r.EncodeString(codecSelferC_UTF81234, "")
57863				}
57864			} else {
57865				if yyq2[0] {
57866					z.EncSendContainerState(codecSelfer_containerMapKey1234)
57867					r.EncodeString(codecSelferC_UTF81234, string("kind"))
57868					z.EncSendContainerState(codecSelfer_containerMapValue1234)
57869					yym5 := z.EncBinary()
57870					_ = yym5
57871					if false {
57872					} else {
57873						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
57874					}
57875				}
57876			}
57877			if yyr2 || yy2arr2 {
57878				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
57879				if yyq2[1] {
57880					yym7 := z.EncBinary()
57881					_ = yym7
57882					if false {
57883					} else {
57884						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
57885					}
57886				} else {
57887					r.EncodeString(codecSelferC_UTF81234, "")
57888				}
57889			} else {
57890				if yyq2[1] {
57891					z.EncSendContainerState(codecSelfer_containerMapKey1234)
57892					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
57893					z.EncSendContainerState(codecSelfer_containerMapValue1234)
57894					yym8 := z.EncBinary()
57895					_ = yym8
57896					if false {
57897					} else {
57898						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
57899					}
57900				}
57901			}
57902			if yyr2 || yy2arr2 {
57903				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
57904				yy10 := &x.ObjectMeta
57905				yym11 := z.EncBinary()
57906				_ = yym11
57907				if false {
57908				} else if z.HasExtensions() && z.EncExt(yy10) {
57909				} else {
57910					z.EncFallback(yy10)
57911				}
57912			} else {
57913				z.EncSendContainerState(codecSelfer_containerMapKey1234)
57914				r.EncodeString(codecSelferC_UTF81234, string("metadata"))
57915				z.EncSendContainerState(codecSelfer_containerMapValue1234)
57916				yy12 := &x.ObjectMeta
57917				yym13 := z.EncBinary()
57918				_ = yym13
57919				if false {
57920				} else if z.HasExtensions() && z.EncExt(yy12) {
57921				} else {
57922					z.EncFallback(yy12)
57923				}
57924			}
57925			if yyr2 || yy2arr2 {
57926				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
57927				yy15 := &x.InvolvedObject
57928				yy15.CodecEncodeSelf(e)
57929			} else {
57930				z.EncSendContainerState(codecSelfer_containerMapKey1234)
57931				r.EncodeString(codecSelferC_UTF81234, string("involvedObject"))
57932				z.EncSendContainerState(codecSelfer_containerMapValue1234)
57933				yy17 := &x.InvolvedObject
57934				yy17.CodecEncodeSelf(e)
57935			}
57936			if yyr2 || yy2arr2 {
57937				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
57938				if yyq2[4] {
57939					yym20 := z.EncBinary()
57940					_ = yym20
57941					if false {
57942					} else {
57943						r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
57944					}
57945				} else {
57946					r.EncodeString(codecSelferC_UTF81234, "")
57947				}
57948			} else {
57949				if yyq2[4] {
57950					z.EncSendContainerState(codecSelfer_containerMapKey1234)
57951					r.EncodeString(codecSelferC_UTF81234, string("reason"))
57952					z.EncSendContainerState(codecSelfer_containerMapValue1234)
57953					yym21 := z.EncBinary()
57954					_ = yym21
57955					if false {
57956					} else {
57957						r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
57958					}
57959				}
57960			}
57961			if yyr2 || yy2arr2 {
57962				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
57963				if yyq2[5] {
57964					yym23 := z.EncBinary()
57965					_ = yym23
57966					if false {
57967					} else {
57968						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
57969					}
57970				} else {
57971					r.EncodeString(codecSelferC_UTF81234, "")
57972				}
57973			} else {
57974				if yyq2[5] {
57975					z.EncSendContainerState(codecSelfer_containerMapKey1234)
57976					r.EncodeString(codecSelferC_UTF81234, string("message"))
57977					z.EncSendContainerState(codecSelfer_containerMapValue1234)
57978					yym24 := z.EncBinary()
57979					_ = yym24
57980					if false {
57981					} else {
57982						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
57983					}
57984				}
57985			}
57986			if yyr2 || yy2arr2 {
57987				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
57988				if yyq2[6] {
57989					yy26 := &x.Source
57990					yy26.CodecEncodeSelf(e)
57991				} else {
57992					r.EncodeNil()
57993				}
57994			} else {
57995				if yyq2[6] {
57996					z.EncSendContainerState(codecSelfer_containerMapKey1234)
57997					r.EncodeString(codecSelferC_UTF81234, string("source"))
57998					z.EncSendContainerState(codecSelfer_containerMapValue1234)
57999					yy28 := &x.Source
58000					yy28.CodecEncodeSelf(e)
58001				}
58002			}
58003			if yyr2 || yy2arr2 {
58004				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
58005				if yyq2[7] {
58006					yy31 := &x.FirstTimestamp
58007					yym32 := z.EncBinary()
58008					_ = yym32
58009					if false {
58010					} else if z.HasExtensions() && z.EncExt(yy31) {
58011					} else if yym32 {
58012						z.EncBinaryMarshal(yy31)
58013					} else if !yym32 && z.IsJSONHandle() {
58014						z.EncJSONMarshal(yy31)
58015					} else {
58016						z.EncFallback(yy31)
58017					}
58018				} else {
58019					r.EncodeNil()
58020				}
58021			} else {
58022				if yyq2[7] {
58023					z.EncSendContainerState(codecSelfer_containerMapKey1234)
58024					r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp"))
58025					z.EncSendContainerState(codecSelfer_containerMapValue1234)
58026					yy33 := &x.FirstTimestamp
58027					yym34 := z.EncBinary()
58028					_ = yym34
58029					if false {
58030					} else if z.HasExtensions() && z.EncExt(yy33) {
58031					} else if yym34 {
58032						z.EncBinaryMarshal(yy33)
58033					} else if !yym34 && z.IsJSONHandle() {
58034						z.EncJSONMarshal(yy33)
58035					} else {
58036						z.EncFallback(yy33)
58037					}
58038				}
58039			}
58040			if yyr2 || yy2arr2 {
58041				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
58042				if yyq2[8] {
58043					yy36 := &x.LastTimestamp
58044					yym37 := z.EncBinary()
58045					_ = yym37
58046					if false {
58047					} else if z.HasExtensions() && z.EncExt(yy36) {
58048					} else if yym37 {
58049						z.EncBinaryMarshal(yy36)
58050					} else if !yym37 && z.IsJSONHandle() {
58051						z.EncJSONMarshal(yy36)
58052					} else {
58053						z.EncFallback(yy36)
58054					}
58055				} else {
58056					r.EncodeNil()
58057				}
58058			} else {
58059				if yyq2[8] {
58060					z.EncSendContainerState(codecSelfer_containerMapKey1234)
58061					r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp"))
58062					z.EncSendContainerState(codecSelfer_containerMapValue1234)
58063					yy38 := &x.LastTimestamp
58064					yym39 := z.EncBinary()
58065					_ = yym39
58066					if false {
58067					} else if z.HasExtensions() && z.EncExt(yy38) {
58068					} else if yym39 {
58069						z.EncBinaryMarshal(yy38)
58070					} else if !yym39 && z.IsJSONHandle() {
58071						z.EncJSONMarshal(yy38)
58072					} else {
58073						z.EncFallback(yy38)
58074					}
58075				}
58076			}
58077			if yyr2 || yy2arr2 {
58078				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
58079				if yyq2[9] {
58080					yym41 := z.EncBinary()
58081					_ = yym41
58082					if false {
58083					} else {
58084						r.EncodeInt(int64(x.Count))
58085					}
58086				} else {
58087					r.EncodeInt(0)
58088				}
58089			} else {
58090				if yyq2[9] {
58091					z.EncSendContainerState(codecSelfer_containerMapKey1234)
58092					r.EncodeString(codecSelferC_UTF81234, string("count"))
58093					z.EncSendContainerState(codecSelfer_containerMapValue1234)
58094					yym42 := z.EncBinary()
58095					_ = yym42
58096					if false {
58097					} else {
58098						r.EncodeInt(int64(x.Count))
58099					}
58100				}
58101			}
58102			if yyr2 || yy2arr2 {
58103				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
58104				if yyq2[10] {
58105					yym44 := z.EncBinary()
58106					_ = yym44
58107					if false {
58108					} else {
58109						r.EncodeString(codecSelferC_UTF81234, string(x.Type))
58110					}
58111				} else {
58112					r.EncodeString(codecSelferC_UTF81234, "")
58113				}
58114			} else {
58115				if yyq2[10] {
58116					z.EncSendContainerState(codecSelfer_containerMapKey1234)
58117					r.EncodeString(codecSelferC_UTF81234, string("type"))
58118					z.EncSendContainerState(codecSelfer_containerMapValue1234)
58119					yym45 := z.EncBinary()
58120					_ = yym45
58121					if false {
58122					} else {
58123						r.EncodeString(codecSelferC_UTF81234, string(x.Type))
58124					}
58125				}
58126			}
58127			if yyr2 || yy2arr2 {
58128				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
58129			} else {
58130				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
58131			}
58132		}
58133	}
58134}
58135
58136func (x *Event) CodecDecodeSelf(d *codec1978.Decoder) {
58137	var h codecSelfer1234
58138	z, r := codec1978.GenHelperDecoder(d)
58139	_, _, _ = h, z, r
58140	yym1 := z.DecBinary()
58141	_ = yym1
58142	if false {
58143	} else if z.HasExtensions() && z.DecExt(x) {
58144	} else {
58145		yyct2 := r.ContainerType()
58146		if yyct2 == codecSelferValueTypeMap1234 {
58147			yyl2 := r.ReadMapStart()
58148			if yyl2 == 0 {
58149				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
58150			} else {
58151				x.codecDecodeSelfFromMap(yyl2, d)
58152			}
58153		} else if yyct2 == codecSelferValueTypeArray1234 {
58154			yyl2 := r.ReadArrayStart()
58155			if yyl2 == 0 {
58156				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58157			} else {
58158				x.codecDecodeSelfFromArray(yyl2, d)
58159			}
58160		} else {
58161			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
58162		}
58163	}
58164}
58165
58166func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
58167	var h codecSelfer1234
58168	z, r := codec1978.GenHelperDecoder(d)
58169	_, _, _ = h, z, r
58170	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
58171	_ = yys3Slc
58172	var yyhl3 bool = l >= 0
58173	for yyj3 := 0; ; yyj3++ {
58174		if yyhl3 {
58175			if yyj3 >= l {
58176				break
58177			}
58178		} else {
58179			if r.CheckBreak() {
58180				break
58181			}
58182		}
58183		z.DecSendContainerState(codecSelfer_containerMapKey1234)
58184		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
58185		yys3 := string(yys3Slc)
58186		z.DecSendContainerState(codecSelfer_containerMapValue1234)
58187		switch yys3 {
58188		case "kind":
58189			if r.TryDecodeAsNil() {
58190				x.Kind = ""
58191			} else {
58192				yyv4 := &x.Kind
58193				yym5 := z.DecBinary()
58194				_ = yym5
58195				if false {
58196				} else {
58197					*((*string)(yyv4)) = r.DecodeString()
58198				}
58199			}
58200		case "apiVersion":
58201			if r.TryDecodeAsNil() {
58202				x.APIVersion = ""
58203			} else {
58204				yyv6 := &x.APIVersion
58205				yym7 := z.DecBinary()
58206				_ = yym7
58207				if false {
58208				} else {
58209					*((*string)(yyv6)) = r.DecodeString()
58210				}
58211			}
58212		case "metadata":
58213			if r.TryDecodeAsNil() {
58214				x.ObjectMeta = pkg2_v1.ObjectMeta{}
58215			} else {
58216				yyv8 := &x.ObjectMeta
58217				yym9 := z.DecBinary()
58218				_ = yym9
58219				if false {
58220				} else if z.HasExtensions() && z.DecExt(yyv8) {
58221				} else {
58222					z.DecFallback(yyv8, false)
58223				}
58224			}
58225		case "involvedObject":
58226			if r.TryDecodeAsNil() {
58227				x.InvolvedObject = ObjectReference{}
58228			} else {
58229				yyv10 := &x.InvolvedObject
58230				yyv10.CodecDecodeSelf(d)
58231			}
58232		case "reason":
58233			if r.TryDecodeAsNil() {
58234				x.Reason = ""
58235			} else {
58236				yyv11 := &x.Reason
58237				yym12 := z.DecBinary()
58238				_ = yym12
58239				if false {
58240				} else {
58241					*((*string)(yyv11)) = r.DecodeString()
58242				}
58243			}
58244		case "message":
58245			if r.TryDecodeAsNil() {
58246				x.Message = ""
58247			} else {
58248				yyv13 := &x.Message
58249				yym14 := z.DecBinary()
58250				_ = yym14
58251				if false {
58252				} else {
58253					*((*string)(yyv13)) = r.DecodeString()
58254				}
58255			}
58256		case "source":
58257			if r.TryDecodeAsNil() {
58258				x.Source = EventSource{}
58259			} else {
58260				yyv15 := &x.Source
58261				yyv15.CodecDecodeSelf(d)
58262			}
58263		case "firstTimestamp":
58264			if r.TryDecodeAsNil() {
58265				x.FirstTimestamp = pkg2_v1.Time{}
58266			} else {
58267				yyv16 := &x.FirstTimestamp
58268				yym17 := z.DecBinary()
58269				_ = yym17
58270				if false {
58271				} else if z.HasExtensions() && z.DecExt(yyv16) {
58272				} else if yym17 {
58273					z.DecBinaryUnmarshal(yyv16)
58274				} else if !yym17 && z.IsJSONHandle() {
58275					z.DecJSONUnmarshal(yyv16)
58276				} else {
58277					z.DecFallback(yyv16, false)
58278				}
58279			}
58280		case "lastTimestamp":
58281			if r.TryDecodeAsNil() {
58282				x.LastTimestamp = pkg2_v1.Time{}
58283			} else {
58284				yyv18 := &x.LastTimestamp
58285				yym19 := z.DecBinary()
58286				_ = yym19
58287				if false {
58288				} else if z.HasExtensions() && z.DecExt(yyv18) {
58289				} else if yym19 {
58290					z.DecBinaryUnmarshal(yyv18)
58291				} else if !yym19 && z.IsJSONHandle() {
58292					z.DecJSONUnmarshal(yyv18)
58293				} else {
58294					z.DecFallback(yyv18, false)
58295				}
58296			}
58297		case "count":
58298			if r.TryDecodeAsNil() {
58299				x.Count = 0
58300			} else {
58301				yyv20 := &x.Count
58302				yym21 := z.DecBinary()
58303				_ = yym21
58304				if false {
58305				} else {
58306					*((*int32)(yyv20)) = int32(r.DecodeInt(32))
58307				}
58308			}
58309		case "type":
58310			if r.TryDecodeAsNil() {
58311				x.Type = ""
58312			} else {
58313				yyv22 := &x.Type
58314				yym23 := z.DecBinary()
58315				_ = yym23
58316				if false {
58317				} else {
58318					*((*string)(yyv22)) = r.DecodeString()
58319				}
58320			}
58321		default:
58322			z.DecStructFieldNotFound(-1, yys3)
58323		} // end switch yys3
58324	} // end for yyj3
58325	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
58326}
58327
58328func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
58329	var h codecSelfer1234
58330	z, r := codec1978.GenHelperDecoder(d)
58331	_, _, _ = h, z, r
58332	var yyj24 int
58333	var yyb24 bool
58334	var yyhl24 bool = l >= 0
58335	yyj24++
58336	if yyhl24 {
58337		yyb24 = yyj24 > l
58338	} else {
58339		yyb24 = r.CheckBreak()
58340	}
58341	if yyb24 {
58342		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58343		return
58344	}
58345	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
58346	if r.TryDecodeAsNil() {
58347		x.Kind = ""
58348	} else {
58349		yyv25 := &x.Kind
58350		yym26 := z.DecBinary()
58351		_ = yym26
58352		if false {
58353		} else {
58354			*((*string)(yyv25)) = r.DecodeString()
58355		}
58356	}
58357	yyj24++
58358	if yyhl24 {
58359		yyb24 = yyj24 > l
58360	} else {
58361		yyb24 = r.CheckBreak()
58362	}
58363	if yyb24 {
58364		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58365		return
58366	}
58367	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
58368	if r.TryDecodeAsNil() {
58369		x.APIVersion = ""
58370	} else {
58371		yyv27 := &x.APIVersion
58372		yym28 := z.DecBinary()
58373		_ = yym28
58374		if false {
58375		} else {
58376			*((*string)(yyv27)) = r.DecodeString()
58377		}
58378	}
58379	yyj24++
58380	if yyhl24 {
58381		yyb24 = yyj24 > l
58382	} else {
58383		yyb24 = r.CheckBreak()
58384	}
58385	if yyb24 {
58386		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58387		return
58388	}
58389	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
58390	if r.TryDecodeAsNil() {
58391		x.ObjectMeta = pkg2_v1.ObjectMeta{}
58392	} else {
58393		yyv29 := &x.ObjectMeta
58394		yym30 := z.DecBinary()
58395		_ = yym30
58396		if false {
58397		} else if z.HasExtensions() && z.DecExt(yyv29) {
58398		} else {
58399			z.DecFallback(yyv29, false)
58400		}
58401	}
58402	yyj24++
58403	if yyhl24 {
58404		yyb24 = yyj24 > l
58405	} else {
58406		yyb24 = r.CheckBreak()
58407	}
58408	if yyb24 {
58409		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58410		return
58411	}
58412	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
58413	if r.TryDecodeAsNil() {
58414		x.InvolvedObject = ObjectReference{}
58415	} else {
58416		yyv31 := &x.InvolvedObject
58417		yyv31.CodecDecodeSelf(d)
58418	}
58419	yyj24++
58420	if yyhl24 {
58421		yyb24 = yyj24 > l
58422	} else {
58423		yyb24 = r.CheckBreak()
58424	}
58425	if yyb24 {
58426		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58427		return
58428	}
58429	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
58430	if r.TryDecodeAsNil() {
58431		x.Reason = ""
58432	} else {
58433		yyv32 := &x.Reason
58434		yym33 := z.DecBinary()
58435		_ = yym33
58436		if false {
58437		} else {
58438			*((*string)(yyv32)) = r.DecodeString()
58439		}
58440	}
58441	yyj24++
58442	if yyhl24 {
58443		yyb24 = yyj24 > l
58444	} else {
58445		yyb24 = r.CheckBreak()
58446	}
58447	if yyb24 {
58448		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58449		return
58450	}
58451	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
58452	if r.TryDecodeAsNil() {
58453		x.Message = ""
58454	} else {
58455		yyv34 := &x.Message
58456		yym35 := z.DecBinary()
58457		_ = yym35
58458		if false {
58459		} else {
58460			*((*string)(yyv34)) = r.DecodeString()
58461		}
58462	}
58463	yyj24++
58464	if yyhl24 {
58465		yyb24 = yyj24 > l
58466	} else {
58467		yyb24 = r.CheckBreak()
58468	}
58469	if yyb24 {
58470		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58471		return
58472	}
58473	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
58474	if r.TryDecodeAsNil() {
58475		x.Source = EventSource{}
58476	} else {
58477		yyv36 := &x.Source
58478		yyv36.CodecDecodeSelf(d)
58479	}
58480	yyj24++
58481	if yyhl24 {
58482		yyb24 = yyj24 > l
58483	} else {
58484		yyb24 = r.CheckBreak()
58485	}
58486	if yyb24 {
58487		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58488		return
58489	}
58490	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
58491	if r.TryDecodeAsNil() {
58492		x.FirstTimestamp = pkg2_v1.Time{}
58493	} else {
58494		yyv37 := &x.FirstTimestamp
58495		yym38 := z.DecBinary()
58496		_ = yym38
58497		if false {
58498		} else if z.HasExtensions() && z.DecExt(yyv37) {
58499		} else if yym38 {
58500			z.DecBinaryUnmarshal(yyv37)
58501		} else if !yym38 && z.IsJSONHandle() {
58502			z.DecJSONUnmarshal(yyv37)
58503		} else {
58504			z.DecFallback(yyv37, false)
58505		}
58506	}
58507	yyj24++
58508	if yyhl24 {
58509		yyb24 = yyj24 > l
58510	} else {
58511		yyb24 = r.CheckBreak()
58512	}
58513	if yyb24 {
58514		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58515		return
58516	}
58517	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
58518	if r.TryDecodeAsNil() {
58519		x.LastTimestamp = pkg2_v1.Time{}
58520	} else {
58521		yyv39 := &x.LastTimestamp
58522		yym40 := z.DecBinary()
58523		_ = yym40
58524		if false {
58525		} else if z.HasExtensions() && z.DecExt(yyv39) {
58526		} else if yym40 {
58527			z.DecBinaryUnmarshal(yyv39)
58528		} else if !yym40 && z.IsJSONHandle() {
58529			z.DecJSONUnmarshal(yyv39)
58530		} else {
58531			z.DecFallback(yyv39, false)
58532		}
58533	}
58534	yyj24++
58535	if yyhl24 {
58536		yyb24 = yyj24 > l
58537	} else {
58538		yyb24 = r.CheckBreak()
58539	}
58540	if yyb24 {
58541		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58542		return
58543	}
58544	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
58545	if r.TryDecodeAsNil() {
58546		x.Count = 0
58547	} else {
58548		yyv41 := &x.Count
58549		yym42 := z.DecBinary()
58550		_ = yym42
58551		if false {
58552		} else {
58553			*((*int32)(yyv41)) = int32(r.DecodeInt(32))
58554		}
58555	}
58556	yyj24++
58557	if yyhl24 {
58558		yyb24 = yyj24 > l
58559	} else {
58560		yyb24 = r.CheckBreak()
58561	}
58562	if yyb24 {
58563		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58564		return
58565	}
58566	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
58567	if r.TryDecodeAsNil() {
58568		x.Type = ""
58569	} else {
58570		yyv43 := &x.Type
58571		yym44 := z.DecBinary()
58572		_ = yym44
58573		if false {
58574		} else {
58575			*((*string)(yyv43)) = r.DecodeString()
58576		}
58577	}
58578	for {
58579		yyj24++
58580		if yyhl24 {
58581			yyb24 = yyj24 > l
58582		} else {
58583			yyb24 = r.CheckBreak()
58584		}
58585		if yyb24 {
58586			break
58587		}
58588		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
58589		z.DecStructFieldNotFound(yyj24-1, "")
58590	}
58591	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58592}
58593
58594func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) {
58595	var h codecSelfer1234
58596	z, r := codec1978.GenHelperEncoder(e)
58597	_, _, _ = h, z, r
58598	if x == nil {
58599		r.EncodeNil()
58600	} else {
58601		yym1 := z.EncBinary()
58602		_ = yym1
58603		if false {
58604		} else if z.HasExtensions() && z.EncExt(x) {
58605		} else {
58606			yysep2 := !z.EncBinary()
58607			yy2arr2 := z.EncBasicHandle().StructToArray
58608			var yyq2 [4]bool
58609			_, _, _ = yysep2, yyq2, yy2arr2
58610			const yyr2 bool = false
58611			yyq2[0] = x.Kind != ""
58612			yyq2[1] = x.APIVersion != ""
58613			yyq2[2] = true
58614			var yynn2 int
58615			if yyr2 || yy2arr2 {
58616				r.EncodeArrayStart(4)
58617			} else {
58618				yynn2 = 1
58619				for _, b := range yyq2 {
58620					if b {
58621						yynn2++
58622					}
58623				}
58624				r.EncodeMapStart(yynn2)
58625				yynn2 = 0
58626			}
58627			if yyr2 || yy2arr2 {
58628				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
58629				if yyq2[0] {
58630					yym4 := z.EncBinary()
58631					_ = yym4
58632					if false {
58633					} else {
58634						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
58635					}
58636				} else {
58637					r.EncodeString(codecSelferC_UTF81234, "")
58638				}
58639			} else {
58640				if yyq2[0] {
58641					z.EncSendContainerState(codecSelfer_containerMapKey1234)
58642					r.EncodeString(codecSelferC_UTF81234, string("kind"))
58643					z.EncSendContainerState(codecSelfer_containerMapValue1234)
58644					yym5 := z.EncBinary()
58645					_ = yym5
58646					if false {
58647					} else {
58648						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
58649					}
58650				}
58651			}
58652			if yyr2 || yy2arr2 {
58653				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
58654				if yyq2[1] {
58655					yym7 := z.EncBinary()
58656					_ = yym7
58657					if false {
58658					} else {
58659						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
58660					}
58661				} else {
58662					r.EncodeString(codecSelferC_UTF81234, "")
58663				}
58664			} else {
58665				if yyq2[1] {
58666					z.EncSendContainerState(codecSelfer_containerMapKey1234)
58667					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
58668					z.EncSendContainerState(codecSelfer_containerMapValue1234)
58669					yym8 := z.EncBinary()
58670					_ = yym8
58671					if false {
58672					} else {
58673						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
58674					}
58675				}
58676			}
58677			if yyr2 || yy2arr2 {
58678				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
58679				if yyq2[2] {
58680					yy10 := &x.ListMeta
58681					yym11 := z.EncBinary()
58682					_ = yym11
58683					if false {
58684					} else if z.HasExtensions() && z.EncExt(yy10) {
58685					} else {
58686						z.EncFallback(yy10)
58687					}
58688				} else {
58689					r.EncodeNil()
58690				}
58691			} else {
58692				if yyq2[2] {
58693					z.EncSendContainerState(codecSelfer_containerMapKey1234)
58694					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
58695					z.EncSendContainerState(codecSelfer_containerMapValue1234)
58696					yy12 := &x.ListMeta
58697					yym13 := z.EncBinary()
58698					_ = yym13
58699					if false {
58700					} else if z.HasExtensions() && z.EncExt(yy12) {
58701					} else {
58702						z.EncFallback(yy12)
58703					}
58704				}
58705			}
58706			if yyr2 || yy2arr2 {
58707				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
58708				if x.Items == nil {
58709					r.EncodeNil()
58710				} else {
58711					yym15 := z.EncBinary()
58712					_ = yym15
58713					if false {
58714					} else {
58715						h.encSliceEvent(([]Event)(x.Items), e)
58716					}
58717				}
58718			} else {
58719				z.EncSendContainerState(codecSelfer_containerMapKey1234)
58720				r.EncodeString(codecSelferC_UTF81234, string("items"))
58721				z.EncSendContainerState(codecSelfer_containerMapValue1234)
58722				if x.Items == nil {
58723					r.EncodeNil()
58724				} else {
58725					yym16 := z.EncBinary()
58726					_ = yym16
58727					if false {
58728					} else {
58729						h.encSliceEvent(([]Event)(x.Items), e)
58730					}
58731				}
58732			}
58733			if yyr2 || yy2arr2 {
58734				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
58735			} else {
58736				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
58737			}
58738		}
58739	}
58740}
58741
58742func (x *EventList) CodecDecodeSelf(d *codec1978.Decoder) {
58743	var h codecSelfer1234
58744	z, r := codec1978.GenHelperDecoder(d)
58745	_, _, _ = h, z, r
58746	yym1 := z.DecBinary()
58747	_ = yym1
58748	if false {
58749	} else if z.HasExtensions() && z.DecExt(x) {
58750	} else {
58751		yyct2 := r.ContainerType()
58752		if yyct2 == codecSelferValueTypeMap1234 {
58753			yyl2 := r.ReadMapStart()
58754			if yyl2 == 0 {
58755				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
58756			} else {
58757				x.codecDecodeSelfFromMap(yyl2, d)
58758			}
58759		} else if yyct2 == codecSelferValueTypeArray1234 {
58760			yyl2 := r.ReadArrayStart()
58761			if yyl2 == 0 {
58762				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58763			} else {
58764				x.codecDecodeSelfFromArray(yyl2, d)
58765			}
58766		} else {
58767			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
58768		}
58769	}
58770}
58771
58772func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
58773	var h codecSelfer1234
58774	z, r := codec1978.GenHelperDecoder(d)
58775	_, _, _ = h, z, r
58776	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
58777	_ = yys3Slc
58778	var yyhl3 bool = l >= 0
58779	for yyj3 := 0; ; yyj3++ {
58780		if yyhl3 {
58781			if yyj3 >= l {
58782				break
58783			}
58784		} else {
58785			if r.CheckBreak() {
58786				break
58787			}
58788		}
58789		z.DecSendContainerState(codecSelfer_containerMapKey1234)
58790		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
58791		yys3 := string(yys3Slc)
58792		z.DecSendContainerState(codecSelfer_containerMapValue1234)
58793		switch yys3 {
58794		case "kind":
58795			if r.TryDecodeAsNil() {
58796				x.Kind = ""
58797			} else {
58798				yyv4 := &x.Kind
58799				yym5 := z.DecBinary()
58800				_ = yym5
58801				if false {
58802				} else {
58803					*((*string)(yyv4)) = r.DecodeString()
58804				}
58805			}
58806		case "apiVersion":
58807			if r.TryDecodeAsNil() {
58808				x.APIVersion = ""
58809			} else {
58810				yyv6 := &x.APIVersion
58811				yym7 := z.DecBinary()
58812				_ = yym7
58813				if false {
58814				} else {
58815					*((*string)(yyv6)) = r.DecodeString()
58816				}
58817			}
58818		case "metadata":
58819			if r.TryDecodeAsNil() {
58820				x.ListMeta = pkg2_v1.ListMeta{}
58821			} else {
58822				yyv8 := &x.ListMeta
58823				yym9 := z.DecBinary()
58824				_ = yym9
58825				if false {
58826				} else if z.HasExtensions() && z.DecExt(yyv8) {
58827				} else {
58828					z.DecFallback(yyv8, false)
58829				}
58830			}
58831		case "items":
58832			if r.TryDecodeAsNil() {
58833				x.Items = nil
58834			} else {
58835				yyv10 := &x.Items
58836				yym11 := z.DecBinary()
58837				_ = yym11
58838				if false {
58839				} else {
58840					h.decSliceEvent((*[]Event)(yyv10), d)
58841				}
58842			}
58843		default:
58844			z.DecStructFieldNotFound(-1, yys3)
58845		} // end switch yys3
58846	} // end for yyj3
58847	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
58848}
58849
58850func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
58851	var h codecSelfer1234
58852	z, r := codec1978.GenHelperDecoder(d)
58853	_, _, _ = h, z, r
58854	var yyj12 int
58855	var yyb12 bool
58856	var yyhl12 bool = l >= 0
58857	yyj12++
58858	if yyhl12 {
58859		yyb12 = yyj12 > l
58860	} else {
58861		yyb12 = r.CheckBreak()
58862	}
58863	if yyb12 {
58864		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58865		return
58866	}
58867	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
58868	if r.TryDecodeAsNil() {
58869		x.Kind = ""
58870	} else {
58871		yyv13 := &x.Kind
58872		yym14 := z.DecBinary()
58873		_ = yym14
58874		if false {
58875		} else {
58876			*((*string)(yyv13)) = r.DecodeString()
58877		}
58878	}
58879	yyj12++
58880	if yyhl12 {
58881		yyb12 = yyj12 > l
58882	} else {
58883		yyb12 = r.CheckBreak()
58884	}
58885	if yyb12 {
58886		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58887		return
58888	}
58889	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
58890	if r.TryDecodeAsNil() {
58891		x.APIVersion = ""
58892	} else {
58893		yyv15 := &x.APIVersion
58894		yym16 := z.DecBinary()
58895		_ = yym16
58896		if false {
58897		} else {
58898			*((*string)(yyv15)) = r.DecodeString()
58899		}
58900	}
58901	yyj12++
58902	if yyhl12 {
58903		yyb12 = yyj12 > l
58904	} else {
58905		yyb12 = r.CheckBreak()
58906	}
58907	if yyb12 {
58908		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58909		return
58910	}
58911	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
58912	if r.TryDecodeAsNil() {
58913		x.ListMeta = pkg2_v1.ListMeta{}
58914	} else {
58915		yyv17 := &x.ListMeta
58916		yym18 := z.DecBinary()
58917		_ = yym18
58918		if false {
58919		} else if z.HasExtensions() && z.DecExt(yyv17) {
58920		} else {
58921			z.DecFallback(yyv17, false)
58922		}
58923	}
58924	yyj12++
58925	if yyhl12 {
58926		yyb12 = yyj12 > l
58927	} else {
58928		yyb12 = r.CheckBreak()
58929	}
58930	if yyb12 {
58931		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58932		return
58933	}
58934	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
58935	if r.TryDecodeAsNil() {
58936		x.Items = nil
58937	} else {
58938		yyv19 := &x.Items
58939		yym20 := z.DecBinary()
58940		_ = yym20
58941		if false {
58942		} else {
58943			h.decSliceEvent((*[]Event)(yyv19), d)
58944		}
58945	}
58946	for {
58947		yyj12++
58948		if yyhl12 {
58949			yyb12 = yyj12 > l
58950		} else {
58951			yyb12 = r.CheckBreak()
58952		}
58953		if yyb12 {
58954			break
58955		}
58956		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
58957		z.DecStructFieldNotFound(yyj12-1, "")
58958	}
58959	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
58960}
58961
58962func (x *List) CodecEncodeSelf(e *codec1978.Encoder) {
58963	var h codecSelfer1234
58964	z, r := codec1978.GenHelperEncoder(e)
58965	_, _, _ = h, z, r
58966	if x == nil {
58967		r.EncodeNil()
58968	} else {
58969		yym1 := z.EncBinary()
58970		_ = yym1
58971		if false {
58972		} else if z.HasExtensions() && z.EncExt(x) {
58973		} else {
58974			yysep2 := !z.EncBinary()
58975			yy2arr2 := z.EncBasicHandle().StructToArray
58976			var yyq2 [4]bool
58977			_, _, _ = yysep2, yyq2, yy2arr2
58978			const yyr2 bool = false
58979			yyq2[0] = x.Kind != ""
58980			yyq2[1] = x.APIVersion != ""
58981			yyq2[2] = true
58982			var yynn2 int
58983			if yyr2 || yy2arr2 {
58984				r.EncodeArrayStart(4)
58985			} else {
58986				yynn2 = 1
58987				for _, b := range yyq2 {
58988					if b {
58989						yynn2++
58990					}
58991				}
58992				r.EncodeMapStart(yynn2)
58993				yynn2 = 0
58994			}
58995			if yyr2 || yy2arr2 {
58996				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
58997				if yyq2[0] {
58998					yym4 := z.EncBinary()
58999					_ = yym4
59000					if false {
59001					} else {
59002						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
59003					}
59004				} else {
59005					r.EncodeString(codecSelferC_UTF81234, "")
59006				}
59007			} else {
59008				if yyq2[0] {
59009					z.EncSendContainerState(codecSelfer_containerMapKey1234)
59010					r.EncodeString(codecSelferC_UTF81234, string("kind"))
59011					z.EncSendContainerState(codecSelfer_containerMapValue1234)
59012					yym5 := z.EncBinary()
59013					_ = yym5
59014					if false {
59015					} else {
59016						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
59017					}
59018				}
59019			}
59020			if yyr2 || yy2arr2 {
59021				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
59022				if yyq2[1] {
59023					yym7 := z.EncBinary()
59024					_ = yym7
59025					if false {
59026					} else {
59027						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
59028					}
59029				} else {
59030					r.EncodeString(codecSelferC_UTF81234, "")
59031				}
59032			} else {
59033				if yyq2[1] {
59034					z.EncSendContainerState(codecSelfer_containerMapKey1234)
59035					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
59036					z.EncSendContainerState(codecSelfer_containerMapValue1234)
59037					yym8 := z.EncBinary()
59038					_ = yym8
59039					if false {
59040					} else {
59041						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
59042					}
59043				}
59044			}
59045			if yyr2 || yy2arr2 {
59046				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
59047				if yyq2[2] {
59048					yy10 := &x.ListMeta
59049					yym11 := z.EncBinary()
59050					_ = yym11
59051					if false {
59052					} else if z.HasExtensions() && z.EncExt(yy10) {
59053					} else {
59054						z.EncFallback(yy10)
59055					}
59056				} else {
59057					r.EncodeNil()
59058				}
59059			} else {
59060				if yyq2[2] {
59061					z.EncSendContainerState(codecSelfer_containerMapKey1234)
59062					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
59063					z.EncSendContainerState(codecSelfer_containerMapValue1234)
59064					yy12 := &x.ListMeta
59065					yym13 := z.EncBinary()
59066					_ = yym13
59067					if false {
59068					} else if z.HasExtensions() && z.EncExt(yy12) {
59069					} else {
59070						z.EncFallback(yy12)
59071					}
59072				}
59073			}
59074			if yyr2 || yy2arr2 {
59075				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
59076				if x.Items == nil {
59077					r.EncodeNil()
59078				} else {
59079					yym15 := z.EncBinary()
59080					_ = yym15
59081					if false {
59082					} else {
59083						h.encSliceruntime_RawExtension(([]pkg5_runtime.RawExtension)(x.Items), e)
59084					}
59085				}
59086			} else {
59087				z.EncSendContainerState(codecSelfer_containerMapKey1234)
59088				r.EncodeString(codecSelferC_UTF81234, string("items"))
59089				z.EncSendContainerState(codecSelfer_containerMapValue1234)
59090				if x.Items == nil {
59091					r.EncodeNil()
59092				} else {
59093					yym16 := z.EncBinary()
59094					_ = yym16
59095					if false {
59096					} else {
59097						h.encSliceruntime_RawExtension(([]pkg5_runtime.RawExtension)(x.Items), e)
59098					}
59099				}
59100			}
59101			if yyr2 || yy2arr2 {
59102				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
59103			} else {
59104				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
59105			}
59106		}
59107	}
59108}
59109
59110func (x *List) CodecDecodeSelf(d *codec1978.Decoder) {
59111	var h codecSelfer1234
59112	z, r := codec1978.GenHelperDecoder(d)
59113	_, _, _ = h, z, r
59114	yym1 := z.DecBinary()
59115	_ = yym1
59116	if false {
59117	} else if z.HasExtensions() && z.DecExt(x) {
59118	} else {
59119		yyct2 := r.ContainerType()
59120		if yyct2 == codecSelferValueTypeMap1234 {
59121			yyl2 := r.ReadMapStart()
59122			if yyl2 == 0 {
59123				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
59124			} else {
59125				x.codecDecodeSelfFromMap(yyl2, d)
59126			}
59127		} else if yyct2 == codecSelferValueTypeArray1234 {
59128			yyl2 := r.ReadArrayStart()
59129			if yyl2 == 0 {
59130				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
59131			} else {
59132				x.codecDecodeSelfFromArray(yyl2, d)
59133			}
59134		} else {
59135			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
59136		}
59137	}
59138}
59139
59140func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
59141	var h codecSelfer1234
59142	z, r := codec1978.GenHelperDecoder(d)
59143	_, _, _ = h, z, r
59144	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
59145	_ = yys3Slc
59146	var yyhl3 bool = l >= 0
59147	for yyj3 := 0; ; yyj3++ {
59148		if yyhl3 {
59149			if yyj3 >= l {
59150				break
59151			}
59152		} else {
59153			if r.CheckBreak() {
59154				break
59155			}
59156		}
59157		z.DecSendContainerState(codecSelfer_containerMapKey1234)
59158		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
59159		yys3 := string(yys3Slc)
59160		z.DecSendContainerState(codecSelfer_containerMapValue1234)
59161		switch yys3 {
59162		case "kind":
59163			if r.TryDecodeAsNil() {
59164				x.Kind = ""
59165			} else {
59166				yyv4 := &x.Kind
59167				yym5 := z.DecBinary()
59168				_ = yym5
59169				if false {
59170				} else {
59171					*((*string)(yyv4)) = r.DecodeString()
59172				}
59173			}
59174		case "apiVersion":
59175			if r.TryDecodeAsNil() {
59176				x.APIVersion = ""
59177			} else {
59178				yyv6 := &x.APIVersion
59179				yym7 := z.DecBinary()
59180				_ = yym7
59181				if false {
59182				} else {
59183					*((*string)(yyv6)) = r.DecodeString()
59184				}
59185			}
59186		case "metadata":
59187			if r.TryDecodeAsNil() {
59188				x.ListMeta = pkg2_v1.ListMeta{}
59189			} else {
59190				yyv8 := &x.ListMeta
59191				yym9 := z.DecBinary()
59192				_ = yym9
59193				if false {
59194				} else if z.HasExtensions() && z.DecExt(yyv8) {
59195				} else {
59196					z.DecFallback(yyv8, false)
59197				}
59198			}
59199		case "items":
59200			if r.TryDecodeAsNil() {
59201				x.Items = nil
59202			} else {
59203				yyv10 := &x.Items
59204				yym11 := z.DecBinary()
59205				_ = yym11
59206				if false {
59207				} else {
59208					h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv10), d)
59209				}
59210			}
59211		default:
59212			z.DecStructFieldNotFound(-1, yys3)
59213		} // end switch yys3
59214	} // end for yyj3
59215	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
59216}
59217
59218func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
59219	var h codecSelfer1234
59220	z, r := codec1978.GenHelperDecoder(d)
59221	_, _, _ = h, z, r
59222	var yyj12 int
59223	var yyb12 bool
59224	var yyhl12 bool = l >= 0
59225	yyj12++
59226	if yyhl12 {
59227		yyb12 = yyj12 > l
59228	} else {
59229		yyb12 = r.CheckBreak()
59230	}
59231	if yyb12 {
59232		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
59233		return
59234	}
59235	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
59236	if r.TryDecodeAsNil() {
59237		x.Kind = ""
59238	} else {
59239		yyv13 := &x.Kind
59240		yym14 := z.DecBinary()
59241		_ = yym14
59242		if false {
59243		} else {
59244			*((*string)(yyv13)) = r.DecodeString()
59245		}
59246	}
59247	yyj12++
59248	if yyhl12 {
59249		yyb12 = yyj12 > l
59250	} else {
59251		yyb12 = r.CheckBreak()
59252	}
59253	if yyb12 {
59254		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
59255		return
59256	}
59257	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
59258	if r.TryDecodeAsNil() {
59259		x.APIVersion = ""
59260	} else {
59261		yyv15 := &x.APIVersion
59262		yym16 := z.DecBinary()
59263		_ = yym16
59264		if false {
59265		} else {
59266			*((*string)(yyv15)) = r.DecodeString()
59267		}
59268	}
59269	yyj12++
59270	if yyhl12 {
59271		yyb12 = yyj12 > l
59272	} else {
59273		yyb12 = r.CheckBreak()
59274	}
59275	if yyb12 {
59276		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
59277		return
59278	}
59279	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
59280	if r.TryDecodeAsNil() {
59281		x.ListMeta = pkg2_v1.ListMeta{}
59282	} else {
59283		yyv17 := &x.ListMeta
59284		yym18 := z.DecBinary()
59285		_ = yym18
59286		if false {
59287		} else if z.HasExtensions() && z.DecExt(yyv17) {
59288		} else {
59289			z.DecFallback(yyv17, false)
59290		}
59291	}
59292	yyj12++
59293	if yyhl12 {
59294		yyb12 = yyj12 > l
59295	} else {
59296		yyb12 = r.CheckBreak()
59297	}
59298	if yyb12 {
59299		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
59300		return
59301	}
59302	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
59303	if r.TryDecodeAsNil() {
59304		x.Items = nil
59305	} else {
59306		yyv19 := &x.Items
59307		yym20 := z.DecBinary()
59308		_ = yym20
59309		if false {
59310		} else {
59311			h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv19), d)
59312		}
59313	}
59314	for {
59315		yyj12++
59316		if yyhl12 {
59317			yyb12 = yyj12 > l
59318		} else {
59319			yyb12 = r.CheckBreak()
59320		}
59321		if yyb12 {
59322			break
59323		}
59324		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
59325		z.DecStructFieldNotFound(yyj12-1, "")
59326	}
59327	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
59328}
59329
59330func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) {
59331	var h codecSelfer1234
59332	z, r := codec1978.GenHelperEncoder(e)
59333	_, _, _ = h, z, r
59334	yym1 := z.EncBinary()
59335	_ = yym1
59336	if false {
59337	} else if z.HasExtensions() && z.EncExt(x) {
59338	} else {
59339		r.EncodeString(codecSelferC_UTF81234, string(x))
59340	}
59341}
59342
59343func (x *LimitType) CodecDecodeSelf(d *codec1978.Decoder) {
59344	var h codecSelfer1234
59345	z, r := codec1978.GenHelperDecoder(d)
59346	_, _, _ = h, z, r
59347	yym1 := z.DecBinary()
59348	_ = yym1
59349	if false {
59350	} else if z.HasExtensions() && z.DecExt(x) {
59351	} else {
59352		*((*string)(x)) = r.DecodeString()
59353	}
59354}
59355
59356func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) {
59357	var h codecSelfer1234
59358	z, r := codec1978.GenHelperEncoder(e)
59359	_, _, _ = h, z, r
59360	if x == nil {
59361		r.EncodeNil()
59362	} else {
59363		yym1 := z.EncBinary()
59364		_ = yym1
59365		if false {
59366		} else if z.HasExtensions() && z.EncExt(x) {
59367		} else {
59368			yysep2 := !z.EncBinary()
59369			yy2arr2 := z.EncBasicHandle().StructToArray
59370			var yyq2 [6]bool
59371			_, _, _ = yysep2, yyq2, yy2arr2
59372			const yyr2 bool = false
59373			yyq2[0] = x.Type != ""
59374			yyq2[1] = len(x.Max) != 0
59375			yyq2[2] = len(x.Min) != 0
59376			yyq2[3] = len(x.Default) != 0
59377			yyq2[4] = len(x.DefaultRequest) != 0
59378			yyq2[5] = len(x.MaxLimitRequestRatio) != 0
59379			var yynn2 int
59380			if yyr2 || yy2arr2 {
59381				r.EncodeArrayStart(6)
59382			} else {
59383				yynn2 = 0
59384				for _, b := range yyq2 {
59385					if b {
59386						yynn2++
59387					}
59388				}
59389				r.EncodeMapStart(yynn2)
59390				yynn2 = 0
59391			}
59392			if yyr2 || yy2arr2 {
59393				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
59394				if yyq2[0] {
59395					x.Type.CodecEncodeSelf(e)
59396				} else {
59397					r.EncodeString(codecSelferC_UTF81234, "")
59398				}
59399			} else {
59400				if yyq2[0] {
59401					z.EncSendContainerState(codecSelfer_containerMapKey1234)
59402					r.EncodeString(codecSelferC_UTF81234, string("type"))
59403					z.EncSendContainerState(codecSelfer_containerMapValue1234)
59404					x.Type.CodecEncodeSelf(e)
59405				}
59406			}
59407			if yyr2 || yy2arr2 {
59408				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
59409				if yyq2[1] {
59410					if x.Max == nil {
59411						r.EncodeNil()
59412					} else {
59413						x.Max.CodecEncodeSelf(e)
59414					}
59415				} else {
59416					r.EncodeNil()
59417				}
59418			} else {
59419				if yyq2[1] {
59420					z.EncSendContainerState(codecSelfer_containerMapKey1234)
59421					r.EncodeString(codecSelferC_UTF81234, string("max"))
59422					z.EncSendContainerState(codecSelfer_containerMapValue1234)
59423					if x.Max == nil {
59424						r.EncodeNil()
59425					} else {
59426						x.Max.CodecEncodeSelf(e)
59427					}
59428				}
59429			}
59430			if yyr2 || yy2arr2 {
59431				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
59432				if yyq2[2] {
59433					if x.Min == nil {
59434						r.EncodeNil()
59435					} else {
59436						x.Min.CodecEncodeSelf(e)
59437					}
59438				} else {
59439					r.EncodeNil()
59440				}
59441			} else {
59442				if yyq2[2] {
59443					z.EncSendContainerState(codecSelfer_containerMapKey1234)
59444					r.EncodeString(codecSelferC_UTF81234, string("min"))
59445					z.EncSendContainerState(codecSelfer_containerMapValue1234)
59446					if x.Min == nil {
59447						r.EncodeNil()
59448					} else {
59449						x.Min.CodecEncodeSelf(e)
59450					}
59451				}
59452			}
59453			if yyr2 || yy2arr2 {
59454				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
59455				if yyq2[3] {
59456					if x.Default == nil {
59457						r.EncodeNil()
59458					} else {
59459						x.Default.CodecEncodeSelf(e)
59460					}
59461				} else {
59462					r.EncodeNil()
59463				}
59464			} else {
59465				if yyq2[3] {
59466					z.EncSendContainerState(codecSelfer_containerMapKey1234)
59467					r.EncodeString(codecSelferC_UTF81234, string("default"))
59468					z.EncSendContainerState(codecSelfer_containerMapValue1234)
59469					if x.Default == nil {
59470						r.EncodeNil()
59471					} else {
59472						x.Default.CodecEncodeSelf(e)
59473					}
59474				}
59475			}
59476			if yyr2 || yy2arr2 {
59477				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
59478				if yyq2[4] {
59479					if x.DefaultRequest == nil {
59480						r.EncodeNil()
59481					} else {
59482						x.DefaultRequest.CodecEncodeSelf(e)
59483					}
59484				} else {
59485					r.EncodeNil()
59486				}
59487			} else {
59488				if yyq2[4] {
59489					z.EncSendContainerState(codecSelfer_containerMapKey1234)
59490					r.EncodeString(codecSelferC_UTF81234, string("defaultRequest"))
59491					z.EncSendContainerState(codecSelfer_containerMapValue1234)
59492					if x.DefaultRequest == nil {
59493						r.EncodeNil()
59494					} else {
59495						x.DefaultRequest.CodecEncodeSelf(e)
59496					}
59497				}
59498			}
59499			if yyr2 || yy2arr2 {
59500				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
59501				if yyq2[5] {
59502					if x.MaxLimitRequestRatio == nil {
59503						r.EncodeNil()
59504					} else {
59505						x.MaxLimitRequestRatio.CodecEncodeSelf(e)
59506					}
59507				} else {
59508					r.EncodeNil()
59509				}
59510			} else {
59511				if yyq2[5] {
59512					z.EncSendContainerState(codecSelfer_containerMapKey1234)
59513					r.EncodeString(codecSelferC_UTF81234, string("maxLimitRequestRatio"))
59514					z.EncSendContainerState(codecSelfer_containerMapValue1234)
59515					if x.MaxLimitRequestRatio == nil {
59516						r.EncodeNil()
59517					} else {
59518						x.MaxLimitRequestRatio.CodecEncodeSelf(e)
59519					}
59520				}
59521			}
59522			if yyr2 || yy2arr2 {
59523				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
59524			} else {
59525				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
59526			}
59527		}
59528	}
59529}
59530
59531func (x *LimitRangeItem) CodecDecodeSelf(d *codec1978.Decoder) {
59532	var h codecSelfer1234
59533	z, r := codec1978.GenHelperDecoder(d)
59534	_, _, _ = h, z, r
59535	yym1 := z.DecBinary()
59536	_ = yym1
59537	if false {
59538	} else if z.HasExtensions() && z.DecExt(x) {
59539	} else {
59540		yyct2 := r.ContainerType()
59541		if yyct2 == codecSelferValueTypeMap1234 {
59542			yyl2 := r.ReadMapStart()
59543			if yyl2 == 0 {
59544				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
59545			} else {
59546				x.codecDecodeSelfFromMap(yyl2, d)
59547			}
59548		} else if yyct2 == codecSelferValueTypeArray1234 {
59549			yyl2 := r.ReadArrayStart()
59550			if yyl2 == 0 {
59551				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
59552			} else {
59553				x.codecDecodeSelfFromArray(yyl2, d)
59554			}
59555		} else {
59556			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
59557		}
59558	}
59559}
59560
59561func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
59562	var h codecSelfer1234
59563	z, r := codec1978.GenHelperDecoder(d)
59564	_, _, _ = h, z, r
59565	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
59566	_ = yys3Slc
59567	var yyhl3 bool = l >= 0
59568	for yyj3 := 0; ; yyj3++ {
59569		if yyhl3 {
59570			if yyj3 >= l {
59571				break
59572			}
59573		} else {
59574			if r.CheckBreak() {
59575				break
59576			}
59577		}
59578		z.DecSendContainerState(codecSelfer_containerMapKey1234)
59579		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
59580		yys3 := string(yys3Slc)
59581		z.DecSendContainerState(codecSelfer_containerMapValue1234)
59582		switch yys3 {
59583		case "type":
59584			if r.TryDecodeAsNil() {
59585				x.Type = ""
59586			} else {
59587				yyv4 := &x.Type
59588				yyv4.CodecDecodeSelf(d)
59589			}
59590		case "max":
59591			if r.TryDecodeAsNil() {
59592				x.Max = nil
59593			} else {
59594				yyv5 := &x.Max
59595				yyv5.CodecDecodeSelf(d)
59596			}
59597		case "min":
59598			if r.TryDecodeAsNil() {
59599				x.Min = nil
59600			} else {
59601				yyv6 := &x.Min
59602				yyv6.CodecDecodeSelf(d)
59603			}
59604		case "default":
59605			if r.TryDecodeAsNil() {
59606				x.Default = nil
59607			} else {
59608				yyv7 := &x.Default
59609				yyv7.CodecDecodeSelf(d)
59610			}
59611		case "defaultRequest":
59612			if r.TryDecodeAsNil() {
59613				x.DefaultRequest = nil
59614			} else {
59615				yyv8 := &x.DefaultRequest
59616				yyv8.CodecDecodeSelf(d)
59617			}
59618		case "maxLimitRequestRatio":
59619			if r.TryDecodeAsNil() {
59620				x.MaxLimitRequestRatio = nil
59621			} else {
59622				yyv9 := &x.MaxLimitRequestRatio
59623				yyv9.CodecDecodeSelf(d)
59624			}
59625		default:
59626			z.DecStructFieldNotFound(-1, yys3)
59627		} // end switch yys3
59628	} // end for yyj3
59629	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
59630}
59631
59632func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
59633	var h codecSelfer1234
59634	z, r := codec1978.GenHelperDecoder(d)
59635	_, _, _ = h, z, r
59636	var yyj10 int
59637	var yyb10 bool
59638	var yyhl10 bool = l >= 0
59639	yyj10++
59640	if yyhl10 {
59641		yyb10 = yyj10 > l
59642	} else {
59643		yyb10 = r.CheckBreak()
59644	}
59645	if yyb10 {
59646		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
59647		return
59648	}
59649	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
59650	if r.TryDecodeAsNil() {
59651		x.Type = ""
59652	} else {
59653		yyv11 := &x.Type
59654		yyv11.CodecDecodeSelf(d)
59655	}
59656	yyj10++
59657	if yyhl10 {
59658		yyb10 = yyj10 > l
59659	} else {
59660		yyb10 = r.CheckBreak()
59661	}
59662	if yyb10 {
59663		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
59664		return
59665	}
59666	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
59667	if r.TryDecodeAsNil() {
59668		x.Max = nil
59669	} else {
59670		yyv12 := &x.Max
59671		yyv12.CodecDecodeSelf(d)
59672	}
59673	yyj10++
59674	if yyhl10 {
59675		yyb10 = yyj10 > l
59676	} else {
59677		yyb10 = r.CheckBreak()
59678	}
59679	if yyb10 {
59680		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
59681		return
59682	}
59683	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
59684	if r.TryDecodeAsNil() {
59685		x.Min = nil
59686	} else {
59687		yyv13 := &x.Min
59688		yyv13.CodecDecodeSelf(d)
59689	}
59690	yyj10++
59691	if yyhl10 {
59692		yyb10 = yyj10 > l
59693	} else {
59694		yyb10 = r.CheckBreak()
59695	}
59696	if yyb10 {
59697		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
59698		return
59699	}
59700	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
59701	if r.TryDecodeAsNil() {
59702		x.Default = nil
59703	} else {
59704		yyv14 := &x.Default
59705		yyv14.CodecDecodeSelf(d)
59706	}
59707	yyj10++
59708	if yyhl10 {
59709		yyb10 = yyj10 > l
59710	} else {
59711		yyb10 = r.CheckBreak()
59712	}
59713	if yyb10 {
59714		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
59715		return
59716	}
59717	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
59718	if r.TryDecodeAsNil() {
59719		x.DefaultRequest = nil
59720	} else {
59721		yyv15 := &x.DefaultRequest
59722		yyv15.CodecDecodeSelf(d)
59723	}
59724	yyj10++
59725	if yyhl10 {
59726		yyb10 = yyj10 > l
59727	} else {
59728		yyb10 = r.CheckBreak()
59729	}
59730	if yyb10 {
59731		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
59732		return
59733	}
59734	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
59735	if r.TryDecodeAsNil() {
59736		x.MaxLimitRequestRatio = nil
59737	} else {
59738		yyv16 := &x.MaxLimitRequestRatio
59739		yyv16.CodecDecodeSelf(d)
59740	}
59741	for {
59742		yyj10++
59743		if yyhl10 {
59744			yyb10 = yyj10 > l
59745		} else {
59746			yyb10 = r.CheckBreak()
59747		}
59748		if yyb10 {
59749			break
59750		}
59751		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
59752		z.DecStructFieldNotFound(yyj10-1, "")
59753	}
59754	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
59755}
59756
59757func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) {
59758	var h codecSelfer1234
59759	z, r := codec1978.GenHelperEncoder(e)
59760	_, _, _ = h, z, r
59761	if x == nil {
59762		r.EncodeNil()
59763	} else {
59764		yym1 := z.EncBinary()
59765		_ = yym1
59766		if false {
59767		} else if z.HasExtensions() && z.EncExt(x) {
59768		} else {
59769			yysep2 := !z.EncBinary()
59770			yy2arr2 := z.EncBasicHandle().StructToArray
59771			var yyq2 [1]bool
59772			_, _, _ = yysep2, yyq2, yy2arr2
59773			const yyr2 bool = false
59774			var yynn2 int
59775			if yyr2 || yy2arr2 {
59776				r.EncodeArrayStart(1)
59777			} else {
59778				yynn2 = 1
59779				for _, b := range yyq2 {
59780					if b {
59781						yynn2++
59782					}
59783				}
59784				r.EncodeMapStart(yynn2)
59785				yynn2 = 0
59786			}
59787			if yyr2 || yy2arr2 {
59788				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
59789				if x.Limits == nil {
59790					r.EncodeNil()
59791				} else {
59792					yym4 := z.EncBinary()
59793					_ = yym4
59794					if false {
59795					} else {
59796						h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e)
59797					}
59798				}
59799			} else {
59800				z.EncSendContainerState(codecSelfer_containerMapKey1234)
59801				r.EncodeString(codecSelferC_UTF81234, string("limits"))
59802				z.EncSendContainerState(codecSelfer_containerMapValue1234)
59803				if x.Limits == nil {
59804					r.EncodeNil()
59805				} else {
59806					yym5 := z.EncBinary()
59807					_ = yym5
59808					if false {
59809					} else {
59810						h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e)
59811					}
59812				}
59813			}
59814			if yyr2 || yy2arr2 {
59815				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
59816			} else {
59817				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
59818			}
59819		}
59820	}
59821}
59822
59823func (x *LimitRangeSpec) CodecDecodeSelf(d *codec1978.Decoder) {
59824	var h codecSelfer1234
59825	z, r := codec1978.GenHelperDecoder(d)
59826	_, _, _ = h, z, r
59827	yym1 := z.DecBinary()
59828	_ = yym1
59829	if false {
59830	} else if z.HasExtensions() && z.DecExt(x) {
59831	} else {
59832		yyct2 := r.ContainerType()
59833		if yyct2 == codecSelferValueTypeMap1234 {
59834			yyl2 := r.ReadMapStart()
59835			if yyl2 == 0 {
59836				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
59837			} else {
59838				x.codecDecodeSelfFromMap(yyl2, d)
59839			}
59840		} else if yyct2 == codecSelferValueTypeArray1234 {
59841			yyl2 := r.ReadArrayStart()
59842			if yyl2 == 0 {
59843				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
59844			} else {
59845				x.codecDecodeSelfFromArray(yyl2, d)
59846			}
59847		} else {
59848			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
59849		}
59850	}
59851}
59852
59853func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
59854	var h codecSelfer1234
59855	z, r := codec1978.GenHelperDecoder(d)
59856	_, _, _ = h, z, r
59857	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
59858	_ = yys3Slc
59859	var yyhl3 bool = l >= 0
59860	for yyj3 := 0; ; yyj3++ {
59861		if yyhl3 {
59862			if yyj3 >= l {
59863				break
59864			}
59865		} else {
59866			if r.CheckBreak() {
59867				break
59868			}
59869		}
59870		z.DecSendContainerState(codecSelfer_containerMapKey1234)
59871		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
59872		yys3 := string(yys3Slc)
59873		z.DecSendContainerState(codecSelfer_containerMapValue1234)
59874		switch yys3 {
59875		case "limits":
59876			if r.TryDecodeAsNil() {
59877				x.Limits = nil
59878			} else {
59879				yyv4 := &x.Limits
59880				yym5 := z.DecBinary()
59881				_ = yym5
59882				if false {
59883				} else {
59884					h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4), d)
59885				}
59886			}
59887		default:
59888			z.DecStructFieldNotFound(-1, yys3)
59889		} // end switch yys3
59890	} // end for yyj3
59891	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
59892}
59893
59894func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
59895	var h codecSelfer1234
59896	z, r := codec1978.GenHelperDecoder(d)
59897	_, _, _ = h, z, r
59898	var yyj6 int
59899	var yyb6 bool
59900	var yyhl6 bool = l >= 0
59901	yyj6++
59902	if yyhl6 {
59903		yyb6 = yyj6 > l
59904	} else {
59905		yyb6 = r.CheckBreak()
59906	}
59907	if yyb6 {
59908		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
59909		return
59910	}
59911	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
59912	if r.TryDecodeAsNil() {
59913		x.Limits = nil
59914	} else {
59915		yyv7 := &x.Limits
59916		yym8 := z.DecBinary()
59917		_ = yym8
59918		if false {
59919		} else {
59920			h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv7), d)
59921		}
59922	}
59923	for {
59924		yyj6++
59925		if yyhl6 {
59926			yyb6 = yyj6 > l
59927		} else {
59928			yyb6 = r.CheckBreak()
59929		}
59930		if yyb6 {
59931			break
59932		}
59933		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
59934		z.DecStructFieldNotFound(yyj6-1, "")
59935	}
59936	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
59937}
59938
59939func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) {
59940	var h codecSelfer1234
59941	z, r := codec1978.GenHelperEncoder(e)
59942	_, _, _ = h, z, r
59943	if x == nil {
59944		r.EncodeNil()
59945	} else {
59946		yym1 := z.EncBinary()
59947		_ = yym1
59948		if false {
59949		} else if z.HasExtensions() && z.EncExt(x) {
59950		} else {
59951			yysep2 := !z.EncBinary()
59952			yy2arr2 := z.EncBasicHandle().StructToArray
59953			var yyq2 [4]bool
59954			_, _, _ = yysep2, yyq2, yy2arr2
59955			const yyr2 bool = false
59956			yyq2[0] = x.Kind != ""
59957			yyq2[1] = x.APIVersion != ""
59958			yyq2[2] = true
59959			yyq2[3] = true
59960			var yynn2 int
59961			if yyr2 || yy2arr2 {
59962				r.EncodeArrayStart(4)
59963			} else {
59964				yynn2 = 0
59965				for _, b := range yyq2 {
59966					if b {
59967						yynn2++
59968					}
59969				}
59970				r.EncodeMapStart(yynn2)
59971				yynn2 = 0
59972			}
59973			if yyr2 || yy2arr2 {
59974				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
59975				if yyq2[0] {
59976					yym4 := z.EncBinary()
59977					_ = yym4
59978					if false {
59979					} else {
59980						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
59981					}
59982				} else {
59983					r.EncodeString(codecSelferC_UTF81234, "")
59984				}
59985			} else {
59986				if yyq2[0] {
59987					z.EncSendContainerState(codecSelfer_containerMapKey1234)
59988					r.EncodeString(codecSelferC_UTF81234, string("kind"))
59989					z.EncSendContainerState(codecSelfer_containerMapValue1234)
59990					yym5 := z.EncBinary()
59991					_ = yym5
59992					if false {
59993					} else {
59994						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
59995					}
59996				}
59997			}
59998			if yyr2 || yy2arr2 {
59999				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
60000				if yyq2[1] {
60001					yym7 := z.EncBinary()
60002					_ = yym7
60003					if false {
60004					} else {
60005						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
60006					}
60007				} else {
60008					r.EncodeString(codecSelferC_UTF81234, "")
60009				}
60010			} else {
60011				if yyq2[1] {
60012					z.EncSendContainerState(codecSelfer_containerMapKey1234)
60013					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
60014					z.EncSendContainerState(codecSelfer_containerMapValue1234)
60015					yym8 := z.EncBinary()
60016					_ = yym8
60017					if false {
60018					} else {
60019						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
60020					}
60021				}
60022			}
60023			if yyr2 || yy2arr2 {
60024				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
60025				if yyq2[2] {
60026					yy10 := &x.ObjectMeta
60027					yym11 := z.EncBinary()
60028					_ = yym11
60029					if false {
60030					} else if z.HasExtensions() && z.EncExt(yy10) {
60031					} else {
60032						z.EncFallback(yy10)
60033					}
60034				} else {
60035					r.EncodeNil()
60036				}
60037			} else {
60038				if yyq2[2] {
60039					z.EncSendContainerState(codecSelfer_containerMapKey1234)
60040					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
60041					z.EncSendContainerState(codecSelfer_containerMapValue1234)
60042					yy12 := &x.ObjectMeta
60043					yym13 := z.EncBinary()
60044					_ = yym13
60045					if false {
60046					} else if z.HasExtensions() && z.EncExt(yy12) {
60047					} else {
60048						z.EncFallback(yy12)
60049					}
60050				}
60051			}
60052			if yyr2 || yy2arr2 {
60053				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
60054				if yyq2[3] {
60055					yy15 := &x.Spec
60056					yy15.CodecEncodeSelf(e)
60057				} else {
60058					r.EncodeNil()
60059				}
60060			} else {
60061				if yyq2[3] {
60062					z.EncSendContainerState(codecSelfer_containerMapKey1234)
60063					r.EncodeString(codecSelferC_UTF81234, string("spec"))
60064					z.EncSendContainerState(codecSelfer_containerMapValue1234)
60065					yy17 := &x.Spec
60066					yy17.CodecEncodeSelf(e)
60067				}
60068			}
60069			if yyr2 || yy2arr2 {
60070				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
60071			} else {
60072				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
60073			}
60074		}
60075	}
60076}
60077
60078func (x *LimitRange) CodecDecodeSelf(d *codec1978.Decoder) {
60079	var h codecSelfer1234
60080	z, r := codec1978.GenHelperDecoder(d)
60081	_, _, _ = h, z, r
60082	yym1 := z.DecBinary()
60083	_ = yym1
60084	if false {
60085	} else if z.HasExtensions() && z.DecExt(x) {
60086	} else {
60087		yyct2 := r.ContainerType()
60088		if yyct2 == codecSelferValueTypeMap1234 {
60089			yyl2 := r.ReadMapStart()
60090			if yyl2 == 0 {
60091				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
60092			} else {
60093				x.codecDecodeSelfFromMap(yyl2, d)
60094			}
60095		} else if yyct2 == codecSelferValueTypeArray1234 {
60096			yyl2 := r.ReadArrayStart()
60097			if yyl2 == 0 {
60098				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
60099			} else {
60100				x.codecDecodeSelfFromArray(yyl2, d)
60101			}
60102		} else {
60103			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
60104		}
60105	}
60106}
60107
60108func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
60109	var h codecSelfer1234
60110	z, r := codec1978.GenHelperDecoder(d)
60111	_, _, _ = h, z, r
60112	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
60113	_ = yys3Slc
60114	var yyhl3 bool = l >= 0
60115	for yyj3 := 0; ; yyj3++ {
60116		if yyhl3 {
60117			if yyj3 >= l {
60118				break
60119			}
60120		} else {
60121			if r.CheckBreak() {
60122				break
60123			}
60124		}
60125		z.DecSendContainerState(codecSelfer_containerMapKey1234)
60126		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
60127		yys3 := string(yys3Slc)
60128		z.DecSendContainerState(codecSelfer_containerMapValue1234)
60129		switch yys3 {
60130		case "kind":
60131			if r.TryDecodeAsNil() {
60132				x.Kind = ""
60133			} else {
60134				yyv4 := &x.Kind
60135				yym5 := z.DecBinary()
60136				_ = yym5
60137				if false {
60138				} else {
60139					*((*string)(yyv4)) = r.DecodeString()
60140				}
60141			}
60142		case "apiVersion":
60143			if r.TryDecodeAsNil() {
60144				x.APIVersion = ""
60145			} else {
60146				yyv6 := &x.APIVersion
60147				yym7 := z.DecBinary()
60148				_ = yym7
60149				if false {
60150				} else {
60151					*((*string)(yyv6)) = r.DecodeString()
60152				}
60153			}
60154		case "metadata":
60155			if r.TryDecodeAsNil() {
60156				x.ObjectMeta = pkg2_v1.ObjectMeta{}
60157			} else {
60158				yyv8 := &x.ObjectMeta
60159				yym9 := z.DecBinary()
60160				_ = yym9
60161				if false {
60162				} else if z.HasExtensions() && z.DecExt(yyv8) {
60163				} else {
60164					z.DecFallback(yyv8, false)
60165				}
60166			}
60167		case "spec":
60168			if r.TryDecodeAsNil() {
60169				x.Spec = LimitRangeSpec{}
60170			} else {
60171				yyv10 := &x.Spec
60172				yyv10.CodecDecodeSelf(d)
60173			}
60174		default:
60175			z.DecStructFieldNotFound(-1, yys3)
60176		} // end switch yys3
60177	} // end for yyj3
60178	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
60179}
60180
60181func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
60182	var h codecSelfer1234
60183	z, r := codec1978.GenHelperDecoder(d)
60184	_, _, _ = h, z, r
60185	var yyj11 int
60186	var yyb11 bool
60187	var yyhl11 bool = l >= 0
60188	yyj11++
60189	if yyhl11 {
60190		yyb11 = yyj11 > l
60191	} else {
60192		yyb11 = r.CheckBreak()
60193	}
60194	if yyb11 {
60195		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
60196		return
60197	}
60198	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
60199	if r.TryDecodeAsNil() {
60200		x.Kind = ""
60201	} else {
60202		yyv12 := &x.Kind
60203		yym13 := z.DecBinary()
60204		_ = yym13
60205		if false {
60206		} else {
60207			*((*string)(yyv12)) = r.DecodeString()
60208		}
60209	}
60210	yyj11++
60211	if yyhl11 {
60212		yyb11 = yyj11 > l
60213	} else {
60214		yyb11 = r.CheckBreak()
60215	}
60216	if yyb11 {
60217		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
60218		return
60219	}
60220	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
60221	if r.TryDecodeAsNil() {
60222		x.APIVersion = ""
60223	} else {
60224		yyv14 := &x.APIVersion
60225		yym15 := z.DecBinary()
60226		_ = yym15
60227		if false {
60228		} else {
60229			*((*string)(yyv14)) = r.DecodeString()
60230		}
60231	}
60232	yyj11++
60233	if yyhl11 {
60234		yyb11 = yyj11 > l
60235	} else {
60236		yyb11 = r.CheckBreak()
60237	}
60238	if yyb11 {
60239		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
60240		return
60241	}
60242	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
60243	if r.TryDecodeAsNil() {
60244		x.ObjectMeta = pkg2_v1.ObjectMeta{}
60245	} else {
60246		yyv16 := &x.ObjectMeta
60247		yym17 := z.DecBinary()
60248		_ = yym17
60249		if false {
60250		} else if z.HasExtensions() && z.DecExt(yyv16) {
60251		} else {
60252			z.DecFallback(yyv16, false)
60253		}
60254	}
60255	yyj11++
60256	if yyhl11 {
60257		yyb11 = yyj11 > l
60258	} else {
60259		yyb11 = r.CheckBreak()
60260	}
60261	if yyb11 {
60262		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
60263		return
60264	}
60265	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
60266	if r.TryDecodeAsNil() {
60267		x.Spec = LimitRangeSpec{}
60268	} else {
60269		yyv18 := &x.Spec
60270		yyv18.CodecDecodeSelf(d)
60271	}
60272	for {
60273		yyj11++
60274		if yyhl11 {
60275			yyb11 = yyj11 > l
60276		} else {
60277			yyb11 = r.CheckBreak()
60278		}
60279		if yyb11 {
60280			break
60281		}
60282		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
60283		z.DecStructFieldNotFound(yyj11-1, "")
60284	}
60285	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
60286}
60287
60288func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) {
60289	var h codecSelfer1234
60290	z, r := codec1978.GenHelperEncoder(e)
60291	_, _, _ = h, z, r
60292	if x == nil {
60293		r.EncodeNil()
60294	} else {
60295		yym1 := z.EncBinary()
60296		_ = yym1
60297		if false {
60298		} else if z.HasExtensions() && z.EncExt(x) {
60299		} else {
60300			yysep2 := !z.EncBinary()
60301			yy2arr2 := z.EncBasicHandle().StructToArray
60302			var yyq2 [4]bool
60303			_, _, _ = yysep2, yyq2, yy2arr2
60304			const yyr2 bool = false
60305			yyq2[0] = x.Kind != ""
60306			yyq2[1] = x.APIVersion != ""
60307			yyq2[2] = true
60308			var yynn2 int
60309			if yyr2 || yy2arr2 {
60310				r.EncodeArrayStart(4)
60311			} else {
60312				yynn2 = 1
60313				for _, b := range yyq2 {
60314					if b {
60315						yynn2++
60316					}
60317				}
60318				r.EncodeMapStart(yynn2)
60319				yynn2 = 0
60320			}
60321			if yyr2 || yy2arr2 {
60322				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
60323				if yyq2[0] {
60324					yym4 := z.EncBinary()
60325					_ = yym4
60326					if false {
60327					} else {
60328						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
60329					}
60330				} else {
60331					r.EncodeString(codecSelferC_UTF81234, "")
60332				}
60333			} else {
60334				if yyq2[0] {
60335					z.EncSendContainerState(codecSelfer_containerMapKey1234)
60336					r.EncodeString(codecSelferC_UTF81234, string("kind"))
60337					z.EncSendContainerState(codecSelfer_containerMapValue1234)
60338					yym5 := z.EncBinary()
60339					_ = yym5
60340					if false {
60341					} else {
60342						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
60343					}
60344				}
60345			}
60346			if yyr2 || yy2arr2 {
60347				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
60348				if yyq2[1] {
60349					yym7 := z.EncBinary()
60350					_ = yym7
60351					if false {
60352					} else {
60353						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
60354					}
60355				} else {
60356					r.EncodeString(codecSelferC_UTF81234, "")
60357				}
60358			} else {
60359				if yyq2[1] {
60360					z.EncSendContainerState(codecSelfer_containerMapKey1234)
60361					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
60362					z.EncSendContainerState(codecSelfer_containerMapValue1234)
60363					yym8 := z.EncBinary()
60364					_ = yym8
60365					if false {
60366					} else {
60367						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
60368					}
60369				}
60370			}
60371			if yyr2 || yy2arr2 {
60372				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
60373				if yyq2[2] {
60374					yy10 := &x.ListMeta
60375					yym11 := z.EncBinary()
60376					_ = yym11
60377					if false {
60378					} else if z.HasExtensions() && z.EncExt(yy10) {
60379					} else {
60380						z.EncFallback(yy10)
60381					}
60382				} else {
60383					r.EncodeNil()
60384				}
60385			} else {
60386				if yyq2[2] {
60387					z.EncSendContainerState(codecSelfer_containerMapKey1234)
60388					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
60389					z.EncSendContainerState(codecSelfer_containerMapValue1234)
60390					yy12 := &x.ListMeta
60391					yym13 := z.EncBinary()
60392					_ = yym13
60393					if false {
60394					} else if z.HasExtensions() && z.EncExt(yy12) {
60395					} else {
60396						z.EncFallback(yy12)
60397					}
60398				}
60399			}
60400			if yyr2 || yy2arr2 {
60401				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
60402				if x.Items == nil {
60403					r.EncodeNil()
60404				} else {
60405					yym15 := z.EncBinary()
60406					_ = yym15
60407					if false {
60408					} else {
60409						h.encSliceLimitRange(([]LimitRange)(x.Items), e)
60410					}
60411				}
60412			} else {
60413				z.EncSendContainerState(codecSelfer_containerMapKey1234)
60414				r.EncodeString(codecSelferC_UTF81234, string("items"))
60415				z.EncSendContainerState(codecSelfer_containerMapValue1234)
60416				if x.Items == nil {
60417					r.EncodeNil()
60418				} else {
60419					yym16 := z.EncBinary()
60420					_ = yym16
60421					if false {
60422					} else {
60423						h.encSliceLimitRange(([]LimitRange)(x.Items), e)
60424					}
60425				}
60426			}
60427			if yyr2 || yy2arr2 {
60428				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
60429			} else {
60430				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
60431			}
60432		}
60433	}
60434}
60435
60436func (x *LimitRangeList) CodecDecodeSelf(d *codec1978.Decoder) {
60437	var h codecSelfer1234
60438	z, r := codec1978.GenHelperDecoder(d)
60439	_, _, _ = h, z, r
60440	yym1 := z.DecBinary()
60441	_ = yym1
60442	if false {
60443	} else if z.HasExtensions() && z.DecExt(x) {
60444	} else {
60445		yyct2 := r.ContainerType()
60446		if yyct2 == codecSelferValueTypeMap1234 {
60447			yyl2 := r.ReadMapStart()
60448			if yyl2 == 0 {
60449				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
60450			} else {
60451				x.codecDecodeSelfFromMap(yyl2, d)
60452			}
60453		} else if yyct2 == codecSelferValueTypeArray1234 {
60454			yyl2 := r.ReadArrayStart()
60455			if yyl2 == 0 {
60456				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
60457			} else {
60458				x.codecDecodeSelfFromArray(yyl2, d)
60459			}
60460		} else {
60461			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
60462		}
60463	}
60464}
60465
60466func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
60467	var h codecSelfer1234
60468	z, r := codec1978.GenHelperDecoder(d)
60469	_, _, _ = h, z, r
60470	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
60471	_ = yys3Slc
60472	var yyhl3 bool = l >= 0
60473	for yyj3 := 0; ; yyj3++ {
60474		if yyhl3 {
60475			if yyj3 >= l {
60476				break
60477			}
60478		} else {
60479			if r.CheckBreak() {
60480				break
60481			}
60482		}
60483		z.DecSendContainerState(codecSelfer_containerMapKey1234)
60484		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
60485		yys3 := string(yys3Slc)
60486		z.DecSendContainerState(codecSelfer_containerMapValue1234)
60487		switch yys3 {
60488		case "kind":
60489			if r.TryDecodeAsNil() {
60490				x.Kind = ""
60491			} else {
60492				yyv4 := &x.Kind
60493				yym5 := z.DecBinary()
60494				_ = yym5
60495				if false {
60496				} else {
60497					*((*string)(yyv4)) = r.DecodeString()
60498				}
60499			}
60500		case "apiVersion":
60501			if r.TryDecodeAsNil() {
60502				x.APIVersion = ""
60503			} else {
60504				yyv6 := &x.APIVersion
60505				yym7 := z.DecBinary()
60506				_ = yym7
60507				if false {
60508				} else {
60509					*((*string)(yyv6)) = r.DecodeString()
60510				}
60511			}
60512		case "metadata":
60513			if r.TryDecodeAsNil() {
60514				x.ListMeta = pkg2_v1.ListMeta{}
60515			} else {
60516				yyv8 := &x.ListMeta
60517				yym9 := z.DecBinary()
60518				_ = yym9
60519				if false {
60520				} else if z.HasExtensions() && z.DecExt(yyv8) {
60521				} else {
60522					z.DecFallback(yyv8, false)
60523				}
60524			}
60525		case "items":
60526			if r.TryDecodeAsNil() {
60527				x.Items = nil
60528			} else {
60529				yyv10 := &x.Items
60530				yym11 := z.DecBinary()
60531				_ = yym11
60532				if false {
60533				} else {
60534					h.decSliceLimitRange((*[]LimitRange)(yyv10), d)
60535				}
60536			}
60537		default:
60538			z.DecStructFieldNotFound(-1, yys3)
60539		} // end switch yys3
60540	} // end for yyj3
60541	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
60542}
60543
60544func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
60545	var h codecSelfer1234
60546	z, r := codec1978.GenHelperDecoder(d)
60547	_, _, _ = h, z, r
60548	var yyj12 int
60549	var yyb12 bool
60550	var yyhl12 bool = l >= 0
60551	yyj12++
60552	if yyhl12 {
60553		yyb12 = yyj12 > l
60554	} else {
60555		yyb12 = r.CheckBreak()
60556	}
60557	if yyb12 {
60558		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
60559		return
60560	}
60561	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
60562	if r.TryDecodeAsNil() {
60563		x.Kind = ""
60564	} else {
60565		yyv13 := &x.Kind
60566		yym14 := z.DecBinary()
60567		_ = yym14
60568		if false {
60569		} else {
60570			*((*string)(yyv13)) = r.DecodeString()
60571		}
60572	}
60573	yyj12++
60574	if yyhl12 {
60575		yyb12 = yyj12 > l
60576	} else {
60577		yyb12 = r.CheckBreak()
60578	}
60579	if yyb12 {
60580		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
60581		return
60582	}
60583	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
60584	if r.TryDecodeAsNil() {
60585		x.APIVersion = ""
60586	} else {
60587		yyv15 := &x.APIVersion
60588		yym16 := z.DecBinary()
60589		_ = yym16
60590		if false {
60591		} else {
60592			*((*string)(yyv15)) = r.DecodeString()
60593		}
60594	}
60595	yyj12++
60596	if yyhl12 {
60597		yyb12 = yyj12 > l
60598	} else {
60599		yyb12 = r.CheckBreak()
60600	}
60601	if yyb12 {
60602		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
60603		return
60604	}
60605	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
60606	if r.TryDecodeAsNil() {
60607		x.ListMeta = pkg2_v1.ListMeta{}
60608	} else {
60609		yyv17 := &x.ListMeta
60610		yym18 := z.DecBinary()
60611		_ = yym18
60612		if false {
60613		} else if z.HasExtensions() && z.DecExt(yyv17) {
60614		} else {
60615			z.DecFallback(yyv17, false)
60616		}
60617	}
60618	yyj12++
60619	if yyhl12 {
60620		yyb12 = yyj12 > l
60621	} else {
60622		yyb12 = r.CheckBreak()
60623	}
60624	if yyb12 {
60625		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
60626		return
60627	}
60628	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
60629	if r.TryDecodeAsNil() {
60630		x.Items = nil
60631	} else {
60632		yyv19 := &x.Items
60633		yym20 := z.DecBinary()
60634		_ = yym20
60635		if false {
60636		} else {
60637			h.decSliceLimitRange((*[]LimitRange)(yyv19), d)
60638		}
60639	}
60640	for {
60641		yyj12++
60642		if yyhl12 {
60643			yyb12 = yyj12 > l
60644		} else {
60645			yyb12 = r.CheckBreak()
60646		}
60647		if yyb12 {
60648			break
60649		}
60650		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
60651		z.DecStructFieldNotFound(yyj12-1, "")
60652	}
60653	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
60654}
60655
60656func (x ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) {
60657	var h codecSelfer1234
60658	z, r := codec1978.GenHelperEncoder(e)
60659	_, _, _ = h, z, r
60660	yym1 := z.EncBinary()
60661	_ = yym1
60662	if false {
60663	} else if z.HasExtensions() && z.EncExt(x) {
60664	} else {
60665		r.EncodeString(codecSelferC_UTF81234, string(x))
60666	}
60667}
60668
60669func (x *ResourceQuotaScope) CodecDecodeSelf(d *codec1978.Decoder) {
60670	var h codecSelfer1234
60671	z, r := codec1978.GenHelperDecoder(d)
60672	_, _, _ = h, z, r
60673	yym1 := z.DecBinary()
60674	_ = yym1
60675	if false {
60676	} else if z.HasExtensions() && z.DecExt(x) {
60677	} else {
60678		*((*string)(x)) = r.DecodeString()
60679	}
60680}
60681
60682func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) {
60683	var h codecSelfer1234
60684	z, r := codec1978.GenHelperEncoder(e)
60685	_, _, _ = h, z, r
60686	if x == nil {
60687		r.EncodeNil()
60688	} else {
60689		yym1 := z.EncBinary()
60690		_ = yym1
60691		if false {
60692		} else if z.HasExtensions() && z.EncExt(x) {
60693		} else {
60694			yysep2 := !z.EncBinary()
60695			yy2arr2 := z.EncBasicHandle().StructToArray
60696			var yyq2 [2]bool
60697			_, _, _ = yysep2, yyq2, yy2arr2
60698			const yyr2 bool = false
60699			yyq2[0] = len(x.Hard) != 0
60700			yyq2[1] = len(x.Scopes) != 0
60701			var yynn2 int
60702			if yyr2 || yy2arr2 {
60703				r.EncodeArrayStart(2)
60704			} else {
60705				yynn2 = 0
60706				for _, b := range yyq2 {
60707					if b {
60708						yynn2++
60709					}
60710				}
60711				r.EncodeMapStart(yynn2)
60712				yynn2 = 0
60713			}
60714			if yyr2 || yy2arr2 {
60715				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
60716				if yyq2[0] {
60717					if x.Hard == nil {
60718						r.EncodeNil()
60719					} else {
60720						x.Hard.CodecEncodeSelf(e)
60721					}
60722				} else {
60723					r.EncodeNil()
60724				}
60725			} else {
60726				if yyq2[0] {
60727					z.EncSendContainerState(codecSelfer_containerMapKey1234)
60728					r.EncodeString(codecSelferC_UTF81234, string("hard"))
60729					z.EncSendContainerState(codecSelfer_containerMapValue1234)
60730					if x.Hard == nil {
60731						r.EncodeNil()
60732					} else {
60733						x.Hard.CodecEncodeSelf(e)
60734					}
60735				}
60736			}
60737			if yyr2 || yy2arr2 {
60738				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
60739				if yyq2[1] {
60740					if x.Scopes == nil {
60741						r.EncodeNil()
60742					} else {
60743						yym7 := z.EncBinary()
60744						_ = yym7
60745						if false {
60746						} else {
60747							h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e)
60748						}
60749					}
60750				} else {
60751					r.EncodeNil()
60752				}
60753			} else {
60754				if yyq2[1] {
60755					z.EncSendContainerState(codecSelfer_containerMapKey1234)
60756					r.EncodeString(codecSelferC_UTF81234, string("scopes"))
60757					z.EncSendContainerState(codecSelfer_containerMapValue1234)
60758					if x.Scopes == nil {
60759						r.EncodeNil()
60760					} else {
60761						yym8 := z.EncBinary()
60762						_ = yym8
60763						if false {
60764						} else {
60765							h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e)
60766						}
60767					}
60768				}
60769			}
60770			if yyr2 || yy2arr2 {
60771				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
60772			} else {
60773				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
60774			}
60775		}
60776	}
60777}
60778
60779func (x *ResourceQuotaSpec) CodecDecodeSelf(d *codec1978.Decoder) {
60780	var h codecSelfer1234
60781	z, r := codec1978.GenHelperDecoder(d)
60782	_, _, _ = h, z, r
60783	yym1 := z.DecBinary()
60784	_ = yym1
60785	if false {
60786	} else if z.HasExtensions() && z.DecExt(x) {
60787	} else {
60788		yyct2 := r.ContainerType()
60789		if yyct2 == codecSelferValueTypeMap1234 {
60790			yyl2 := r.ReadMapStart()
60791			if yyl2 == 0 {
60792				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
60793			} else {
60794				x.codecDecodeSelfFromMap(yyl2, d)
60795			}
60796		} else if yyct2 == codecSelferValueTypeArray1234 {
60797			yyl2 := r.ReadArrayStart()
60798			if yyl2 == 0 {
60799				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
60800			} else {
60801				x.codecDecodeSelfFromArray(yyl2, d)
60802			}
60803		} else {
60804			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
60805		}
60806	}
60807}
60808
60809func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
60810	var h codecSelfer1234
60811	z, r := codec1978.GenHelperDecoder(d)
60812	_, _, _ = h, z, r
60813	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
60814	_ = yys3Slc
60815	var yyhl3 bool = l >= 0
60816	for yyj3 := 0; ; yyj3++ {
60817		if yyhl3 {
60818			if yyj3 >= l {
60819				break
60820			}
60821		} else {
60822			if r.CheckBreak() {
60823				break
60824			}
60825		}
60826		z.DecSendContainerState(codecSelfer_containerMapKey1234)
60827		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
60828		yys3 := string(yys3Slc)
60829		z.DecSendContainerState(codecSelfer_containerMapValue1234)
60830		switch yys3 {
60831		case "hard":
60832			if r.TryDecodeAsNil() {
60833				x.Hard = nil
60834			} else {
60835				yyv4 := &x.Hard
60836				yyv4.CodecDecodeSelf(d)
60837			}
60838		case "scopes":
60839			if r.TryDecodeAsNil() {
60840				x.Scopes = nil
60841			} else {
60842				yyv5 := &x.Scopes
60843				yym6 := z.DecBinary()
60844				_ = yym6
60845				if false {
60846				} else {
60847					h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv5), d)
60848				}
60849			}
60850		default:
60851			z.DecStructFieldNotFound(-1, yys3)
60852		} // end switch yys3
60853	} // end for yyj3
60854	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
60855}
60856
60857func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
60858	var h codecSelfer1234
60859	z, r := codec1978.GenHelperDecoder(d)
60860	_, _, _ = h, z, r
60861	var yyj7 int
60862	var yyb7 bool
60863	var yyhl7 bool = l >= 0
60864	yyj7++
60865	if yyhl7 {
60866		yyb7 = yyj7 > l
60867	} else {
60868		yyb7 = r.CheckBreak()
60869	}
60870	if yyb7 {
60871		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
60872		return
60873	}
60874	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
60875	if r.TryDecodeAsNil() {
60876		x.Hard = nil
60877	} else {
60878		yyv8 := &x.Hard
60879		yyv8.CodecDecodeSelf(d)
60880	}
60881	yyj7++
60882	if yyhl7 {
60883		yyb7 = yyj7 > l
60884	} else {
60885		yyb7 = r.CheckBreak()
60886	}
60887	if yyb7 {
60888		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
60889		return
60890	}
60891	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
60892	if r.TryDecodeAsNil() {
60893		x.Scopes = nil
60894	} else {
60895		yyv9 := &x.Scopes
60896		yym10 := z.DecBinary()
60897		_ = yym10
60898		if false {
60899		} else {
60900			h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv9), d)
60901		}
60902	}
60903	for {
60904		yyj7++
60905		if yyhl7 {
60906			yyb7 = yyj7 > l
60907		} else {
60908			yyb7 = r.CheckBreak()
60909		}
60910		if yyb7 {
60911			break
60912		}
60913		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
60914		z.DecStructFieldNotFound(yyj7-1, "")
60915	}
60916	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
60917}
60918
60919func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) {
60920	var h codecSelfer1234
60921	z, r := codec1978.GenHelperEncoder(e)
60922	_, _, _ = h, z, r
60923	if x == nil {
60924		r.EncodeNil()
60925	} else {
60926		yym1 := z.EncBinary()
60927		_ = yym1
60928		if false {
60929		} else if z.HasExtensions() && z.EncExt(x) {
60930		} else {
60931			yysep2 := !z.EncBinary()
60932			yy2arr2 := z.EncBasicHandle().StructToArray
60933			var yyq2 [2]bool
60934			_, _, _ = yysep2, yyq2, yy2arr2
60935			const yyr2 bool = false
60936			yyq2[0] = len(x.Hard) != 0
60937			yyq2[1] = len(x.Used) != 0
60938			var yynn2 int
60939			if yyr2 || yy2arr2 {
60940				r.EncodeArrayStart(2)
60941			} else {
60942				yynn2 = 0
60943				for _, b := range yyq2 {
60944					if b {
60945						yynn2++
60946					}
60947				}
60948				r.EncodeMapStart(yynn2)
60949				yynn2 = 0
60950			}
60951			if yyr2 || yy2arr2 {
60952				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
60953				if yyq2[0] {
60954					if x.Hard == nil {
60955						r.EncodeNil()
60956					} else {
60957						x.Hard.CodecEncodeSelf(e)
60958					}
60959				} else {
60960					r.EncodeNil()
60961				}
60962			} else {
60963				if yyq2[0] {
60964					z.EncSendContainerState(codecSelfer_containerMapKey1234)
60965					r.EncodeString(codecSelferC_UTF81234, string("hard"))
60966					z.EncSendContainerState(codecSelfer_containerMapValue1234)
60967					if x.Hard == nil {
60968						r.EncodeNil()
60969					} else {
60970						x.Hard.CodecEncodeSelf(e)
60971					}
60972				}
60973			}
60974			if yyr2 || yy2arr2 {
60975				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
60976				if yyq2[1] {
60977					if x.Used == nil {
60978						r.EncodeNil()
60979					} else {
60980						x.Used.CodecEncodeSelf(e)
60981					}
60982				} else {
60983					r.EncodeNil()
60984				}
60985			} else {
60986				if yyq2[1] {
60987					z.EncSendContainerState(codecSelfer_containerMapKey1234)
60988					r.EncodeString(codecSelferC_UTF81234, string("used"))
60989					z.EncSendContainerState(codecSelfer_containerMapValue1234)
60990					if x.Used == nil {
60991						r.EncodeNil()
60992					} else {
60993						x.Used.CodecEncodeSelf(e)
60994					}
60995				}
60996			}
60997			if yyr2 || yy2arr2 {
60998				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
60999			} else {
61000				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
61001			}
61002		}
61003	}
61004}
61005
61006func (x *ResourceQuotaStatus) CodecDecodeSelf(d *codec1978.Decoder) {
61007	var h codecSelfer1234
61008	z, r := codec1978.GenHelperDecoder(d)
61009	_, _, _ = h, z, r
61010	yym1 := z.DecBinary()
61011	_ = yym1
61012	if false {
61013	} else if z.HasExtensions() && z.DecExt(x) {
61014	} else {
61015		yyct2 := r.ContainerType()
61016		if yyct2 == codecSelferValueTypeMap1234 {
61017			yyl2 := r.ReadMapStart()
61018			if yyl2 == 0 {
61019				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
61020			} else {
61021				x.codecDecodeSelfFromMap(yyl2, d)
61022			}
61023		} else if yyct2 == codecSelferValueTypeArray1234 {
61024			yyl2 := r.ReadArrayStart()
61025			if yyl2 == 0 {
61026				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
61027			} else {
61028				x.codecDecodeSelfFromArray(yyl2, d)
61029			}
61030		} else {
61031			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
61032		}
61033	}
61034}
61035
61036func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
61037	var h codecSelfer1234
61038	z, r := codec1978.GenHelperDecoder(d)
61039	_, _, _ = h, z, r
61040	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
61041	_ = yys3Slc
61042	var yyhl3 bool = l >= 0
61043	for yyj3 := 0; ; yyj3++ {
61044		if yyhl3 {
61045			if yyj3 >= l {
61046				break
61047			}
61048		} else {
61049			if r.CheckBreak() {
61050				break
61051			}
61052		}
61053		z.DecSendContainerState(codecSelfer_containerMapKey1234)
61054		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
61055		yys3 := string(yys3Slc)
61056		z.DecSendContainerState(codecSelfer_containerMapValue1234)
61057		switch yys3 {
61058		case "hard":
61059			if r.TryDecodeAsNil() {
61060				x.Hard = nil
61061			} else {
61062				yyv4 := &x.Hard
61063				yyv4.CodecDecodeSelf(d)
61064			}
61065		case "used":
61066			if r.TryDecodeAsNil() {
61067				x.Used = nil
61068			} else {
61069				yyv5 := &x.Used
61070				yyv5.CodecDecodeSelf(d)
61071			}
61072		default:
61073			z.DecStructFieldNotFound(-1, yys3)
61074		} // end switch yys3
61075	} // end for yyj3
61076	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
61077}
61078
61079func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
61080	var h codecSelfer1234
61081	z, r := codec1978.GenHelperDecoder(d)
61082	_, _, _ = h, z, r
61083	var yyj6 int
61084	var yyb6 bool
61085	var yyhl6 bool = l >= 0
61086	yyj6++
61087	if yyhl6 {
61088		yyb6 = yyj6 > l
61089	} else {
61090		yyb6 = r.CheckBreak()
61091	}
61092	if yyb6 {
61093		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
61094		return
61095	}
61096	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
61097	if r.TryDecodeAsNil() {
61098		x.Hard = nil
61099	} else {
61100		yyv7 := &x.Hard
61101		yyv7.CodecDecodeSelf(d)
61102	}
61103	yyj6++
61104	if yyhl6 {
61105		yyb6 = yyj6 > l
61106	} else {
61107		yyb6 = r.CheckBreak()
61108	}
61109	if yyb6 {
61110		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
61111		return
61112	}
61113	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
61114	if r.TryDecodeAsNil() {
61115		x.Used = nil
61116	} else {
61117		yyv8 := &x.Used
61118		yyv8.CodecDecodeSelf(d)
61119	}
61120	for {
61121		yyj6++
61122		if yyhl6 {
61123			yyb6 = yyj6 > l
61124		} else {
61125			yyb6 = r.CheckBreak()
61126		}
61127		if yyb6 {
61128			break
61129		}
61130		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
61131		z.DecStructFieldNotFound(yyj6-1, "")
61132	}
61133	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
61134}
61135
61136func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) {
61137	var h codecSelfer1234
61138	z, r := codec1978.GenHelperEncoder(e)
61139	_, _, _ = h, z, r
61140	if x == nil {
61141		r.EncodeNil()
61142	} else {
61143		yym1 := z.EncBinary()
61144		_ = yym1
61145		if false {
61146		} else if z.HasExtensions() && z.EncExt(x) {
61147		} else {
61148			yysep2 := !z.EncBinary()
61149			yy2arr2 := z.EncBasicHandle().StructToArray
61150			var yyq2 [5]bool
61151			_, _, _ = yysep2, yyq2, yy2arr2
61152			const yyr2 bool = false
61153			yyq2[0] = x.Kind != ""
61154			yyq2[1] = x.APIVersion != ""
61155			yyq2[2] = true
61156			yyq2[3] = true
61157			yyq2[4] = true
61158			var yynn2 int
61159			if yyr2 || yy2arr2 {
61160				r.EncodeArrayStart(5)
61161			} else {
61162				yynn2 = 0
61163				for _, b := range yyq2 {
61164					if b {
61165						yynn2++
61166					}
61167				}
61168				r.EncodeMapStart(yynn2)
61169				yynn2 = 0
61170			}
61171			if yyr2 || yy2arr2 {
61172				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
61173				if yyq2[0] {
61174					yym4 := z.EncBinary()
61175					_ = yym4
61176					if false {
61177					} else {
61178						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
61179					}
61180				} else {
61181					r.EncodeString(codecSelferC_UTF81234, "")
61182				}
61183			} else {
61184				if yyq2[0] {
61185					z.EncSendContainerState(codecSelfer_containerMapKey1234)
61186					r.EncodeString(codecSelferC_UTF81234, string("kind"))
61187					z.EncSendContainerState(codecSelfer_containerMapValue1234)
61188					yym5 := z.EncBinary()
61189					_ = yym5
61190					if false {
61191					} else {
61192						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
61193					}
61194				}
61195			}
61196			if yyr2 || yy2arr2 {
61197				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
61198				if yyq2[1] {
61199					yym7 := z.EncBinary()
61200					_ = yym7
61201					if false {
61202					} else {
61203						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
61204					}
61205				} else {
61206					r.EncodeString(codecSelferC_UTF81234, "")
61207				}
61208			} else {
61209				if yyq2[1] {
61210					z.EncSendContainerState(codecSelfer_containerMapKey1234)
61211					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
61212					z.EncSendContainerState(codecSelfer_containerMapValue1234)
61213					yym8 := z.EncBinary()
61214					_ = yym8
61215					if false {
61216					} else {
61217						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
61218					}
61219				}
61220			}
61221			if yyr2 || yy2arr2 {
61222				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
61223				if yyq2[2] {
61224					yy10 := &x.ObjectMeta
61225					yym11 := z.EncBinary()
61226					_ = yym11
61227					if false {
61228					} else if z.HasExtensions() && z.EncExt(yy10) {
61229					} else {
61230						z.EncFallback(yy10)
61231					}
61232				} else {
61233					r.EncodeNil()
61234				}
61235			} else {
61236				if yyq2[2] {
61237					z.EncSendContainerState(codecSelfer_containerMapKey1234)
61238					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
61239					z.EncSendContainerState(codecSelfer_containerMapValue1234)
61240					yy12 := &x.ObjectMeta
61241					yym13 := z.EncBinary()
61242					_ = yym13
61243					if false {
61244					} else if z.HasExtensions() && z.EncExt(yy12) {
61245					} else {
61246						z.EncFallback(yy12)
61247					}
61248				}
61249			}
61250			if yyr2 || yy2arr2 {
61251				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
61252				if yyq2[3] {
61253					yy15 := &x.Spec
61254					yy15.CodecEncodeSelf(e)
61255				} else {
61256					r.EncodeNil()
61257				}
61258			} else {
61259				if yyq2[3] {
61260					z.EncSendContainerState(codecSelfer_containerMapKey1234)
61261					r.EncodeString(codecSelferC_UTF81234, string("spec"))
61262					z.EncSendContainerState(codecSelfer_containerMapValue1234)
61263					yy17 := &x.Spec
61264					yy17.CodecEncodeSelf(e)
61265				}
61266			}
61267			if yyr2 || yy2arr2 {
61268				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
61269				if yyq2[4] {
61270					yy20 := &x.Status
61271					yy20.CodecEncodeSelf(e)
61272				} else {
61273					r.EncodeNil()
61274				}
61275			} else {
61276				if yyq2[4] {
61277					z.EncSendContainerState(codecSelfer_containerMapKey1234)
61278					r.EncodeString(codecSelferC_UTF81234, string("status"))
61279					z.EncSendContainerState(codecSelfer_containerMapValue1234)
61280					yy22 := &x.Status
61281					yy22.CodecEncodeSelf(e)
61282				}
61283			}
61284			if yyr2 || yy2arr2 {
61285				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
61286			} else {
61287				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
61288			}
61289		}
61290	}
61291}
61292
61293func (x *ResourceQuota) CodecDecodeSelf(d *codec1978.Decoder) {
61294	var h codecSelfer1234
61295	z, r := codec1978.GenHelperDecoder(d)
61296	_, _, _ = h, z, r
61297	yym1 := z.DecBinary()
61298	_ = yym1
61299	if false {
61300	} else if z.HasExtensions() && z.DecExt(x) {
61301	} else {
61302		yyct2 := r.ContainerType()
61303		if yyct2 == codecSelferValueTypeMap1234 {
61304			yyl2 := r.ReadMapStart()
61305			if yyl2 == 0 {
61306				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
61307			} else {
61308				x.codecDecodeSelfFromMap(yyl2, d)
61309			}
61310		} else if yyct2 == codecSelferValueTypeArray1234 {
61311			yyl2 := r.ReadArrayStart()
61312			if yyl2 == 0 {
61313				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
61314			} else {
61315				x.codecDecodeSelfFromArray(yyl2, d)
61316			}
61317		} else {
61318			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
61319		}
61320	}
61321}
61322
61323func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
61324	var h codecSelfer1234
61325	z, r := codec1978.GenHelperDecoder(d)
61326	_, _, _ = h, z, r
61327	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
61328	_ = yys3Slc
61329	var yyhl3 bool = l >= 0
61330	for yyj3 := 0; ; yyj3++ {
61331		if yyhl3 {
61332			if yyj3 >= l {
61333				break
61334			}
61335		} else {
61336			if r.CheckBreak() {
61337				break
61338			}
61339		}
61340		z.DecSendContainerState(codecSelfer_containerMapKey1234)
61341		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
61342		yys3 := string(yys3Slc)
61343		z.DecSendContainerState(codecSelfer_containerMapValue1234)
61344		switch yys3 {
61345		case "kind":
61346			if r.TryDecodeAsNil() {
61347				x.Kind = ""
61348			} else {
61349				yyv4 := &x.Kind
61350				yym5 := z.DecBinary()
61351				_ = yym5
61352				if false {
61353				} else {
61354					*((*string)(yyv4)) = r.DecodeString()
61355				}
61356			}
61357		case "apiVersion":
61358			if r.TryDecodeAsNil() {
61359				x.APIVersion = ""
61360			} else {
61361				yyv6 := &x.APIVersion
61362				yym7 := z.DecBinary()
61363				_ = yym7
61364				if false {
61365				} else {
61366					*((*string)(yyv6)) = r.DecodeString()
61367				}
61368			}
61369		case "metadata":
61370			if r.TryDecodeAsNil() {
61371				x.ObjectMeta = pkg2_v1.ObjectMeta{}
61372			} else {
61373				yyv8 := &x.ObjectMeta
61374				yym9 := z.DecBinary()
61375				_ = yym9
61376				if false {
61377				} else if z.HasExtensions() && z.DecExt(yyv8) {
61378				} else {
61379					z.DecFallback(yyv8, false)
61380				}
61381			}
61382		case "spec":
61383			if r.TryDecodeAsNil() {
61384				x.Spec = ResourceQuotaSpec{}
61385			} else {
61386				yyv10 := &x.Spec
61387				yyv10.CodecDecodeSelf(d)
61388			}
61389		case "status":
61390			if r.TryDecodeAsNil() {
61391				x.Status = ResourceQuotaStatus{}
61392			} else {
61393				yyv11 := &x.Status
61394				yyv11.CodecDecodeSelf(d)
61395			}
61396		default:
61397			z.DecStructFieldNotFound(-1, yys3)
61398		} // end switch yys3
61399	} // end for yyj3
61400	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
61401}
61402
61403func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
61404	var h codecSelfer1234
61405	z, r := codec1978.GenHelperDecoder(d)
61406	_, _, _ = h, z, r
61407	var yyj12 int
61408	var yyb12 bool
61409	var yyhl12 bool = l >= 0
61410	yyj12++
61411	if yyhl12 {
61412		yyb12 = yyj12 > l
61413	} else {
61414		yyb12 = r.CheckBreak()
61415	}
61416	if yyb12 {
61417		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
61418		return
61419	}
61420	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
61421	if r.TryDecodeAsNil() {
61422		x.Kind = ""
61423	} else {
61424		yyv13 := &x.Kind
61425		yym14 := z.DecBinary()
61426		_ = yym14
61427		if false {
61428		} else {
61429			*((*string)(yyv13)) = r.DecodeString()
61430		}
61431	}
61432	yyj12++
61433	if yyhl12 {
61434		yyb12 = yyj12 > l
61435	} else {
61436		yyb12 = r.CheckBreak()
61437	}
61438	if yyb12 {
61439		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
61440		return
61441	}
61442	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
61443	if r.TryDecodeAsNil() {
61444		x.APIVersion = ""
61445	} else {
61446		yyv15 := &x.APIVersion
61447		yym16 := z.DecBinary()
61448		_ = yym16
61449		if false {
61450		} else {
61451			*((*string)(yyv15)) = r.DecodeString()
61452		}
61453	}
61454	yyj12++
61455	if yyhl12 {
61456		yyb12 = yyj12 > l
61457	} else {
61458		yyb12 = r.CheckBreak()
61459	}
61460	if yyb12 {
61461		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
61462		return
61463	}
61464	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
61465	if r.TryDecodeAsNil() {
61466		x.ObjectMeta = pkg2_v1.ObjectMeta{}
61467	} else {
61468		yyv17 := &x.ObjectMeta
61469		yym18 := z.DecBinary()
61470		_ = yym18
61471		if false {
61472		} else if z.HasExtensions() && z.DecExt(yyv17) {
61473		} else {
61474			z.DecFallback(yyv17, false)
61475		}
61476	}
61477	yyj12++
61478	if yyhl12 {
61479		yyb12 = yyj12 > l
61480	} else {
61481		yyb12 = r.CheckBreak()
61482	}
61483	if yyb12 {
61484		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
61485		return
61486	}
61487	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
61488	if r.TryDecodeAsNil() {
61489		x.Spec = ResourceQuotaSpec{}
61490	} else {
61491		yyv19 := &x.Spec
61492		yyv19.CodecDecodeSelf(d)
61493	}
61494	yyj12++
61495	if yyhl12 {
61496		yyb12 = yyj12 > l
61497	} else {
61498		yyb12 = r.CheckBreak()
61499	}
61500	if yyb12 {
61501		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
61502		return
61503	}
61504	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
61505	if r.TryDecodeAsNil() {
61506		x.Status = ResourceQuotaStatus{}
61507	} else {
61508		yyv20 := &x.Status
61509		yyv20.CodecDecodeSelf(d)
61510	}
61511	for {
61512		yyj12++
61513		if yyhl12 {
61514			yyb12 = yyj12 > l
61515		} else {
61516			yyb12 = r.CheckBreak()
61517		}
61518		if yyb12 {
61519			break
61520		}
61521		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
61522		z.DecStructFieldNotFound(yyj12-1, "")
61523	}
61524	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
61525}
61526
61527func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) {
61528	var h codecSelfer1234
61529	z, r := codec1978.GenHelperEncoder(e)
61530	_, _, _ = h, z, r
61531	if x == nil {
61532		r.EncodeNil()
61533	} else {
61534		yym1 := z.EncBinary()
61535		_ = yym1
61536		if false {
61537		} else if z.HasExtensions() && z.EncExt(x) {
61538		} else {
61539			yysep2 := !z.EncBinary()
61540			yy2arr2 := z.EncBasicHandle().StructToArray
61541			var yyq2 [4]bool
61542			_, _, _ = yysep2, yyq2, yy2arr2
61543			const yyr2 bool = false
61544			yyq2[0] = x.Kind != ""
61545			yyq2[1] = x.APIVersion != ""
61546			yyq2[2] = true
61547			var yynn2 int
61548			if yyr2 || yy2arr2 {
61549				r.EncodeArrayStart(4)
61550			} else {
61551				yynn2 = 1
61552				for _, b := range yyq2 {
61553					if b {
61554						yynn2++
61555					}
61556				}
61557				r.EncodeMapStart(yynn2)
61558				yynn2 = 0
61559			}
61560			if yyr2 || yy2arr2 {
61561				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
61562				if yyq2[0] {
61563					yym4 := z.EncBinary()
61564					_ = yym4
61565					if false {
61566					} else {
61567						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
61568					}
61569				} else {
61570					r.EncodeString(codecSelferC_UTF81234, "")
61571				}
61572			} else {
61573				if yyq2[0] {
61574					z.EncSendContainerState(codecSelfer_containerMapKey1234)
61575					r.EncodeString(codecSelferC_UTF81234, string("kind"))
61576					z.EncSendContainerState(codecSelfer_containerMapValue1234)
61577					yym5 := z.EncBinary()
61578					_ = yym5
61579					if false {
61580					} else {
61581						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
61582					}
61583				}
61584			}
61585			if yyr2 || yy2arr2 {
61586				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
61587				if yyq2[1] {
61588					yym7 := z.EncBinary()
61589					_ = yym7
61590					if false {
61591					} else {
61592						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
61593					}
61594				} else {
61595					r.EncodeString(codecSelferC_UTF81234, "")
61596				}
61597			} else {
61598				if yyq2[1] {
61599					z.EncSendContainerState(codecSelfer_containerMapKey1234)
61600					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
61601					z.EncSendContainerState(codecSelfer_containerMapValue1234)
61602					yym8 := z.EncBinary()
61603					_ = yym8
61604					if false {
61605					} else {
61606						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
61607					}
61608				}
61609			}
61610			if yyr2 || yy2arr2 {
61611				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
61612				if yyq2[2] {
61613					yy10 := &x.ListMeta
61614					yym11 := z.EncBinary()
61615					_ = yym11
61616					if false {
61617					} else if z.HasExtensions() && z.EncExt(yy10) {
61618					} else {
61619						z.EncFallback(yy10)
61620					}
61621				} else {
61622					r.EncodeNil()
61623				}
61624			} else {
61625				if yyq2[2] {
61626					z.EncSendContainerState(codecSelfer_containerMapKey1234)
61627					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
61628					z.EncSendContainerState(codecSelfer_containerMapValue1234)
61629					yy12 := &x.ListMeta
61630					yym13 := z.EncBinary()
61631					_ = yym13
61632					if false {
61633					} else if z.HasExtensions() && z.EncExt(yy12) {
61634					} else {
61635						z.EncFallback(yy12)
61636					}
61637				}
61638			}
61639			if yyr2 || yy2arr2 {
61640				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
61641				if x.Items == nil {
61642					r.EncodeNil()
61643				} else {
61644					yym15 := z.EncBinary()
61645					_ = yym15
61646					if false {
61647					} else {
61648						h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e)
61649					}
61650				}
61651			} else {
61652				z.EncSendContainerState(codecSelfer_containerMapKey1234)
61653				r.EncodeString(codecSelferC_UTF81234, string("items"))
61654				z.EncSendContainerState(codecSelfer_containerMapValue1234)
61655				if x.Items == nil {
61656					r.EncodeNil()
61657				} else {
61658					yym16 := z.EncBinary()
61659					_ = yym16
61660					if false {
61661					} else {
61662						h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e)
61663					}
61664				}
61665			}
61666			if yyr2 || yy2arr2 {
61667				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
61668			} else {
61669				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
61670			}
61671		}
61672	}
61673}
61674
61675func (x *ResourceQuotaList) CodecDecodeSelf(d *codec1978.Decoder) {
61676	var h codecSelfer1234
61677	z, r := codec1978.GenHelperDecoder(d)
61678	_, _, _ = h, z, r
61679	yym1 := z.DecBinary()
61680	_ = yym1
61681	if false {
61682	} else if z.HasExtensions() && z.DecExt(x) {
61683	} else {
61684		yyct2 := r.ContainerType()
61685		if yyct2 == codecSelferValueTypeMap1234 {
61686			yyl2 := r.ReadMapStart()
61687			if yyl2 == 0 {
61688				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
61689			} else {
61690				x.codecDecodeSelfFromMap(yyl2, d)
61691			}
61692		} else if yyct2 == codecSelferValueTypeArray1234 {
61693			yyl2 := r.ReadArrayStart()
61694			if yyl2 == 0 {
61695				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
61696			} else {
61697				x.codecDecodeSelfFromArray(yyl2, d)
61698			}
61699		} else {
61700			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
61701		}
61702	}
61703}
61704
61705func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
61706	var h codecSelfer1234
61707	z, r := codec1978.GenHelperDecoder(d)
61708	_, _, _ = h, z, r
61709	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
61710	_ = yys3Slc
61711	var yyhl3 bool = l >= 0
61712	for yyj3 := 0; ; yyj3++ {
61713		if yyhl3 {
61714			if yyj3 >= l {
61715				break
61716			}
61717		} else {
61718			if r.CheckBreak() {
61719				break
61720			}
61721		}
61722		z.DecSendContainerState(codecSelfer_containerMapKey1234)
61723		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
61724		yys3 := string(yys3Slc)
61725		z.DecSendContainerState(codecSelfer_containerMapValue1234)
61726		switch yys3 {
61727		case "kind":
61728			if r.TryDecodeAsNil() {
61729				x.Kind = ""
61730			} else {
61731				yyv4 := &x.Kind
61732				yym5 := z.DecBinary()
61733				_ = yym5
61734				if false {
61735				} else {
61736					*((*string)(yyv4)) = r.DecodeString()
61737				}
61738			}
61739		case "apiVersion":
61740			if r.TryDecodeAsNil() {
61741				x.APIVersion = ""
61742			} else {
61743				yyv6 := &x.APIVersion
61744				yym7 := z.DecBinary()
61745				_ = yym7
61746				if false {
61747				} else {
61748					*((*string)(yyv6)) = r.DecodeString()
61749				}
61750			}
61751		case "metadata":
61752			if r.TryDecodeAsNil() {
61753				x.ListMeta = pkg2_v1.ListMeta{}
61754			} else {
61755				yyv8 := &x.ListMeta
61756				yym9 := z.DecBinary()
61757				_ = yym9
61758				if false {
61759				} else if z.HasExtensions() && z.DecExt(yyv8) {
61760				} else {
61761					z.DecFallback(yyv8, false)
61762				}
61763			}
61764		case "items":
61765			if r.TryDecodeAsNil() {
61766				x.Items = nil
61767			} else {
61768				yyv10 := &x.Items
61769				yym11 := z.DecBinary()
61770				_ = yym11
61771				if false {
61772				} else {
61773					h.decSliceResourceQuota((*[]ResourceQuota)(yyv10), d)
61774				}
61775			}
61776		default:
61777			z.DecStructFieldNotFound(-1, yys3)
61778		} // end switch yys3
61779	} // end for yyj3
61780	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
61781}
61782
61783func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
61784	var h codecSelfer1234
61785	z, r := codec1978.GenHelperDecoder(d)
61786	_, _, _ = h, z, r
61787	var yyj12 int
61788	var yyb12 bool
61789	var yyhl12 bool = l >= 0
61790	yyj12++
61791	if yyhl12 {
61792		yyb12 = yyj12 > l
61793	} else {
61794		yyb12 = r.CheckBreak()
61795	}
61796	if yyb12 {
61797		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
61798		return
61799	}
61800	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
61801	if r.TryDecodeAsNil() {
61802		x.Kind = ""
61803	} else {
61804		yyv13 := &x.Kind
61805		yym14 := z.DecBinary()
61806		_ = yym14
61807		if false {
61808		} else {
61809			*((*string)(yyv13)) = r.DecodeString()
61810		}
61811	}
61812	yyj12++
61813	if yyhl12 {
61814		yyb12 = yyj12 > l
61815	} else {
61816		yyb12 = r.CheckBreak()
61817	}
61818	if yyb12 {
61819		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
61820		return
61821	}
61822	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
61823	if r.TryDecodeAsNil() {
61824		x.APIVersion = ""
61825	} else {
61826		yyv15 := &x.APIVersion
61827		yym16 := z.DecBinary()
61828		_ = yym16
61829		if false {
61830		} else {
61831			*((*string)(yyv15)) = r.DecodeString()
61832		}
61833	}
61834	yyj12++
61835	if yyhl12 {
61836		yyb12 = yyj12 > l
61837	} else {
61838		yyb12 = r.CheckBreak()
61839	}
61840	if yyb12 {
61841		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
61842		return
61843	}
61844	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
61845	if r.TryDecodeAsNil() {
61846		x.ListMeta = pkg2_v1.ListMeta{}
61847	} else {
61848		yyv17 := &x.ListMeta
61849		yym18 := z.DecBinary()
61850		_ = yym18
61851		if false {
61852		} else if z.HasExtensions() && z.DecExt(yyv17) {
61853		} else {
61854			z.DecFallback(yyv17, false)
61855		}
61856	}
61857	yyj12++
61858	if yyhl12 {
61859		yyb12 = yyj12 > l
61860	} else {
61861		yyb12 = r.CheckBreak()
61862	}
61863	if yyb12 {
61864		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
61865		return
61866	}
61867	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
61868	if r.TryDecodeAsNil() {
61869		x.Items = nil
61870	} else {
61871		yyv19 := &x.Items
61872		yym20 := z.DecBinary()
61873		_ = yym20
61874		if false {
61875		} else {
61876			h.decSliceResourceQuota((*[]ResourceQuota)(yyv19), d)
61877		}
61878	}
61879	for {
61880		yyj12++
61881		if yyhl12 {
61882			yyb12 = yyj12 > l
61883		} else {
61884			yyb12 = r.CheckBreak()
61885		}
61886		if yyb12 {
61887			break
61888		}
61889		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
61890		z.DecStructFieldNotFound(yyj12-1, "")
61891	}
61892	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
61893}
61894
61895func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) {
61896	var h codecSelfer1234
61897	z, r := codec1978.GenHelperEncoder(e)
61898	_, _, _ = h, z, r
61899	if x == nil {
61900		r.EncodeNil()
61901	} else {
61902		yym1 := z.EncBinary()
61903		_ = yym1
61904		if false {
61905		} else if z.HasExtensions() && z.EncExt(x) {
61906		} else {
61907			yysep2 := !z.EncBinary()
61908			yy2arr2 := z.EncBasicHandle().StructToArray
61909			var yyq2 [6]bool
61910			_, _, _ = yysep2, yyq2, yy2arr2
61911			const yyr2 bool = false
61912			yyq2[0] = x.Kind != ""
61913			yyq2[1] = x.APIVersion != ""
61914			yyq2[2] = true
61915			yyq2[3] = len(x.Data) != 0
61916			yyq2[4] = len(x.StringData) != 0
61917			yyq2[5] = x.Type != ""
61918			var yynn2 int
61919			if yyr2 || yy2arr2 {
61920				r.EncodeArrayStart(6)
61921			} else {
61922				yynn2 = 0
61923				for _, b := range yyq2 {
61924					if b {
61925						yynn2++
61926					}
61927				}
61928				r.EncodeMapStart(yynn2)
61929				yynn2 = 0
61930			}
61931			if yyr2 || yy2arr2 {
61932				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
61933				if yyq2[0] {
61934					yym4 := z.EncBinary()
61935					_ = yym4
61936					if false {
61937					} else {
61938						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
61939					}
61940				} else {
61941					r.EncodeString(codecSelferC_UTF81234, "")
61942				}
61943			} else {
61944				if yyq2[0] {
61945					z.EncSendContainerState(codecSelfer_containerMapKey1234)
61946					r.EncodeString(codecSelferC_UTF81234, string("kind"))
61947					z.EncSendContainerState(codecSelfer_containerMapValue1234)
61948					yym5 := z.EncBinary()
61949					_ = yym5
61950					if false {
61951					} else {
61952						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
61953					}
61954				}
61955			}
61956			if yyr2 || yy2arr2 {
61957				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
61958				if yyq2[1] {
61959					yym7 := z.EncBinary()
61960					_ = yym7
61961					if false {
61962					} else {
61963						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
61964					}
61965				} else {
61966					r.EncodeString(codecSelferC_UTF81234, "")
61967				}
61968			} else {
61969				if yyq2[1] {
61970					z.EncSendContainerState(codecSelfer_containerMapKey1234)
61971					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
61972					z.EncSendContainerState(codecSelfer_containerMapValue1234)
61973					yym8 := z.EncBinary()
61974					_ = yym8
61975					if false {
61976					} else {
61977						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
61978					}
61979				}
61980			}
61981			if yyr2 || yy2arr2 {
61982				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
61983				if yyq2[2] {
61984					yy10 := &x.ObjectMeta
61985					yym11 := z.EncBinary()
61986					_ = yym11
61987					if false {
61988					} else if z.HasExtensions() && z.EncExt(yy10) {
61989					} else {
61990						z.EncFallback(yy10)
61991					}
61992				} else {
61993					r.EncodeNil()
61994				}
61995			} else {
61996				if yyq2[2] {
61997					z.EncSendContainerState(codecSelfer_containerMapKey1234)
61998					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
61999					z.EncSendContainerState(codecSelfer_containerMapValue1234)
62000					yy12 := &x.ObjectMeta
62001					yym13 := z.EncBinary()
62002					_ = yym13
62003					if false {
62004					} else if z.HasExtensions() && z.EncExt(yy12) {
62005					} else {
62006						z.EncFallback(yy12)
62007					}
62008				}
62009			}
62010			if yyr2 || yy2arr2 {
62011				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
62012				if yyq2[3] {
62013					if x.Data == nil {
62014						r.EncodeNil()
62015					} else {
62016						yym15 := z.EncBinary()
62017						_ = yym15
62018						if false {
62019						} else {
62020							h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
62021						}
62022					}
62023				} else {
62024					r.EncodeNil()
62025				}
62026			} else {
62027				if yyq2[3] {
62028					z.EncSendContainerState(codecSelfer_containerMapKey1234)
62029					r.EncodeString(codecSelferC_UTF81234, string("data"))
62030					z.EncSendContainerState(codecSelfer_containerMapValue1234)
62031					if x.Data == nil {
62032						r.EncodeNil()
62033					} else {
62034						yym16 := z.EncBinary()
62035						_ = yym16
62036						if false {
62037						} else {
62038							h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
62039						}
62040					}
62041				}
62042			}
62043			if yyr2 || yy2arr2 {
62044				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
62045				if yyq2[4] {
62046					if x.StringData == nil {
62047						r.EncodeNil()
62048					} else {
62049						yym18 := z.EncBinary()
62050						_ = yym18
62051						if false {
62052						} else {
62053							z.F.EncMapStringStringV(x.StringData, false, e)
62054						}
62055					}
62056				} else {
62057					r.EncodeNil()
62058				}
62059			} else {
62060				if yyq2[4] {
62061					z.EncSendContainerState(codecSelfer_containerMapKey1234)
62062					r.EncodeString(codecSelferC_UTF81234, string("stringData"))
62063					z.EncSendContainerState(codecSelfer_containerMapValue1234)
62064					if x.StringData == nil {
62065						r.EncodeNil()
62066					} else {
62067						yym19 := z.EncBinary()
62068						_ = yym19
62069						if false {
62070						} else {
62071							z.F.EncMapStringStringV(x.StringData, false, e)
62072						}
62073					}
62074				}
62075			}
62076			if yyr2 || yy2arr2 {
62077				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
62078				if yyq2[5] {
62079					x.Type.CodecEncodeSelf(e)
62080				} else {
62081					r.EncodeString(codecSelferC_UTF81234, "")
62082				}
62083			} else {
62084				if yyq2[5] {
62085					z.EncSendContainerState(codecSelfer_containerMapKey1234)
62086					r.EncodeString(codecSelferC_UTF81234, string("type"))
62087					z.EncSendContainerState(codecSelfer_containerMapValue1234)
62088					x.Type.CodecEncodeSelf(e)
62089				}
62090			}
62091			if yyr2 || yy2arr2 {
62092				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
62093			} else {
62094				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
62095			}
62096		}
62097	}
62098}
62099
62100func (x *Secret) CodecDecodeSelf(d *codec1978.Decoder) {
62101	var h codecSelfer1234
62102	z, r := codec1978.GenHelperDecoder(d)
62103	_, _, _ = h, z, r
62104	yym1 := z.DecBinary()
62105	_ = yym1
62106	if false {
62107	} else if z.HasExtensions() && z.DecExt(x) {
62108	} else {
62109		yyct2 := r.ContainerType()
62110		if yyct2 == codecSelferValueTypeMap1234 {
62111			yyl2 := r.ReadMapStart()
62112			if yyl2 == 0 {
62113				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
62114			} else {
62115				x.codecDecodeSelfFromMap(yyl2, d)
62116			}
62117		} else if yyct2 == codecSelferValueTypeArray1234 {
62118			yyl2 := r.ReadArrayStart()
62119			if yyl2 == 0 {
62120				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
62121			} else {
62122				x.codecDecodeSelfFromArray(yyl2, d)
62123			}
62124		} else {
62125			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
62126		}
62127	}
62128}
62129
62130func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
62131	var h codecSelfer1234
62132	z, r := codec1978.GenHelperDecoder(d)
62133	_, _, _ = h, z, r
62134	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
62135	_ = yys3Slc
62136	var yyhl3 bool = l >= 0
62137	for yyj3 := 0; ; yyj3++ {
62138		if yyhl3 {
62139			if yyj3 >= l {
62140				break
62141			}
62142		} else {
62143			if r.CheckBreak() {
62144				break
62145			}
62146		}
62147		z.DecSendContainerState(codecSelfer_containerMapKey1234)
62148		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
62149		yys3 := string(yys3Slc)
62150		z.DecSendContainerState(codecSelfer_containerMapValue1234)
62151		switch yys3 {
62152		case "kind":
62153			if r.TryDecodeAsNil() {
62154				x.Kind = ""
62155			} else {
62156				yyv4 := &x.Kind
62157				yym5 := z.DecBinary()
62158				_ = yym5
62159				if false {
62160				} else {
62161					*((*string)(yyv4)) = r.DecodeString()
62162				}
62163			}
62164		case "apiVersion":
62165			if r.TryDecodeAsNil() {
62166				x.APIVersion = ""
62167			} else {
62168				yyv6 := &x.APIVersion
62169				yym7 := z.DecBinary()
62170				_ = yym7
62171				if false {
62172				} else {
62173					*((*string)(yyv6)) = r.DecodeString()
62174				}
62175			}
62176		case "metadata":
62177			if r.TryDecodeAsNil() {
62178				x.ObjectMeta = pkg2_v1.ObjectMeta{}
62179			} else {
62180				yyv8 := &x.ObjectMeta
62181				yym9 := z.DecBinary()
62182				_ = yym9
62183				if false {
62184				} else if z.HasExtensions() && z.DecExt(yyv8) {
62185				} else {
62186					z.DecFallback(yyv8, false)
62187				}
62188			}
62189		case "data":
62190			if r.TryDecodeAsNil() {
62191				x.Data = nil
62192			} else {
62193				yyv10 := &x.Data
62194				yym11 := z.DecBinary()
62195				_ = yym11
62196				if false {
62197				} else {
62198					h.decMapstringSliceuint8((*map[string][]uint8)(yyv10), d)
62199				}
62200			}
62201		case "stringData":
62202			if r.TryDecodeAsNil() {
62203				x.StringData = nil
62204			} else {
62205				yyv12 := &x.StringData
62206				yym13 := z.DecBinary()
62207				_ = yym13
62208				if false {
62209				} else {
62210					z.F.DecMapStringStringX(yyv12, false, d)
62211				}
62212			}
62213		case "type":
62214			if r.TryDecodeAsNil() {
62215				x.Type = ""
62216			} else {
62217				yyv14 := &x.Type
62218				yyv14.CodecDecodeSelf(d)
62219			}
62220		default:
62221			z.DecStructFieldNotFound(-1, yys3)
62222		} // end switch yys3
62223	} // end for yyj3
62224	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
62225}
62226
62227func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
62228	var h codecSelfer1234
62229	z, r := codec1978.GenHelperDecoder(d)
62230	_, _, _ = h, z, r
62231	var yyj15 int
62232	var yyb15 bool
62233	var yyhl15 bool = l >= 0
62234	yyj15++
62235	if yyhl15 {
62236		yyb15 = yyj15 > l
62237	} else {
62238		yyb15 = r.CheckBreak()
62239	}
62240	if yyb15 {
62241		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
62242		return
62243	}
62244	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
62245	if r.TryDecodeAsNil() {
62246		x.Kind = ""
62247	} else {
62248		yyv16 := &x.Kind
62249		yym17 := z.DecBinary()
62250		_ = yym17
62251		if false {
62252		} else {
62253			*((*string)(yyv16)) = r.DecodeString()
62254		}
62255	}
62256	yyj15++
62257	if yyhl15 {
62258		yyb15 = yyj15 > l
62259	} else {
62260		yyb15 = r.CheckBreak()
62261	}
62262	if yyb15 {
62263		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
62264		return
62265	}
62266	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
62267	if r.TryDecodeAsNil() {
62268		x.APIVersion = ""
62269	} else {
62270		yyv18 := &x.APIVersion
62271		yym19 := z.DecBinary()
62272		_ = yym19
62273		if false {
62274		} else {
62275			*((*string)(yyv18)) = r.DecodeString()
62276		}
62277	}
62278	yyj15++
62279	if yyhl15 {
62280		yyb15 = yyj15 > l
62281	} else {
62282		yyb15 = r.CheckBreak()
62283	}
62284	if yyb15 {
62285		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
62286		return
62287	}
62288	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
62289	if r.TryDecodeAsNil() {
62290		x.ObjectMeta = pkg2_v1.ObjectMeta{}
62291	} else {
62292		yyv20 := &x.ObjectMeta
62293		yym21 := z.DecBinary()
62294		_ = yym21
62295		if false {
62296		} else if z.HasExtensions() && z.DecExt(yyv20) {
62297		} else {
62298			z.DecFallback(yyv20, false)
62299		}
62300	}
62301	yyj15++
62302	if yyhl15 {
62303		yyb15 = yyj15 > l
62304	} else {
62305		yyb15 = r.CheckBreak()
62306	}
62307	if yyb15 {
62308		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
62309		return
62310	}
62311	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
62312	if r.TryDecodeAsNil() {
62313		x.Data = nil
62314	} else {
62315		yyv22 := &x.Data
62316		yym23 := z.DecBinary()
62317		_ = yym23
62318		if false {
62319		} else {
62320			h.decMapstringSliceuint8((*map[string][]uint8)(yyv22), d)
62321		}
62322	}
62323	yyj15++
62324	if yyhl15 {
62325		yyb15 = yyj15 > l
62326	} else {
62327		yyb15 = r.CheckBreak()
62328	}
62329	if yyb15 {
62330		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
62331		return
62332	}
62333	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
62334	if r.TryDecodeAsNil() {
62335		x.StringData = nil
62336	} else {
62337		yyv24 := &x.StringData
62338		yym25 := z.DecBinary()
62339		_ = yym25
62340		if false {
62341		} else {
62342			z.F.DecMapStringStringX(yyv24, false, d)
62343		}
62344	}
62345	yyj15++
62346	if yyhl15 {
62347		yyb15 = yyj15 > l
62348	} else {
62349		yyb15 = r.CheckBreak()
62350	}
62351	if yyb15 {
62352		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
62353		return
62354	}
62355	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
62356	if r.TryDecodeAsNil() {
62357		x.Type = ""
62358	} else {
62359		yyv26 := &x.Type
62360		yyv26.CodecDecodeSelf(d)
62361	}
62362	for {
62363		yyj15++
62364		if yyhl15 {
62365			yyb15 = yyj15 > l
62366		} else {
62367			yyb15 = r.CheckBreak()
62368		}
62369		if yyb15 {
62370			break
62371		}
62372		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
62373		z.DecStructFieldNotFound(yyj15-1, "")
62374	}
62375	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
62376}
62377
62378func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) {
62379	var h codecSelfer1234
62380	z, r := codec1978.GenHelperEncoder(e)
62381	_, _, _ = h, z, r
62382	yym1 := z.EncBinary()
62383	_ = yym1
62384	if false {
62385	} else if z.HasExtensions() && z.EncExt(x) {
62386	} else {
62387		r.EncodeString(codecSelferC_UTF81234, string(x))
62388	}
62389}
62390
62391func (x *SecretType) CodecDecodeSelf(d *codec1978.Decoder) {
62392	var h codecSelfer1234
62393	z, r := codec1978.GenHelperDecoder(d)
62394	_, _, _ = h, z, r
62395	yym1 := z.DecBinary()
62396	_ = yym1
62397	if false {
62398	} else if z.HasExtensions() && z.DecExt(x) {
62399	} else {
62400		*((*string)(x)) = r.DecodeString()
62401	}
62402}
62403
62404func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) {
62405	var h codecSelfer1234
62406	z, r := codec1978.GenHelperEncoder(e)
62407	_, _, _ = h, z, r
62408	if x == nil {
62409		r.EncodeNil()
62410	} else {
62411		yym1 := z.EncBinary()
62412		_ = yym1
62413		if false {
62414		} else if z.HasExtensions() && z.EncExt(x) {
62415		} else {
62416			yysep2 := !z.EncBinary()
62417			yy2arr2 := z.EncBasicHandle().StructToArray
62418			var yyq2 [4]bool
62419			_, _, _ = yysep2, yyq2, yy2arr2
62420			const yyr2 bool = false
62421			yyq2[0] = x.Kind != ""
62422			yyq2[1] = x.APIVersion != ""
62423			yyq2[2] = true
62424			var yynn2 int
62425			if yyr2 || yy2arr2 {
62426				r.EncodeArrayStart(4)
62427			} else {
62428				yynn2 = 1
62429				for _, b := range yyq2 {
62430					if b {
62431						yynn2++
62432					}
62433				}
62434				r.EncodeMapStart(yynn2)
62435				yynn2 = 0
62436			}
62437			if yyr2 || yy2arr2 {
62438				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
62439				if yyq2[0] {
62440					yym4 := z.EncBinary()
62441					_ = yym4
62442					if false {
62443					} else {
62444						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
62445					}
62446				} else {
62447					r.EncodeString(codecSelferC_UTF81234, "")
62448				}
62449			} else {
62450				if yyq2[0] {
62451					z.EncSendContainerState(codecSelfer_containerMapKey1234)
62452					r.EncodeString(codecSelferC_UTF81234, string("kind"))
62453					z.EncSendContainerState(codecSelfer_containerMapValue1234)
62454					yym5 := z.EncBinary()
62455					_ = yym5
62456					if false {
62457					} else {
62458						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
62459					}
62460				}
62461			}
62462			if yyr2 || yy2arr2 {
62463				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
62464				if yyq2[1] {
62465					yym7 := z.EncBinary()
62466					_ = yym7
62467					if false {
62468					} else {
62469						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
62470					}
62471				} else {
62472					r.EncodeString(codecSelferC_UTF81234, "")
62473				}
62474			} else {
62475				if yyq2[1] {
62476					z.EncSendContainerState(codecSelfer_containerMapKey1234)
62477					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
62478					z.EncSendContainerState(codecSelfer_containerMapValue1234)
62479					yym8 := z.EncBinary()
62480					_ = yym8
62481					if false {
62482					} else {
62483						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
62484					}
62485				}
62486			}
62487			if yyr2 || yy2arr2 {
62488				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
62489				if yyq2[2] {
62490					yy10 := &x.ListMeta
62491					yym11 := z.EncBinary()
62492					_ = yym11
62493					if false {
62494					} else if z.HasExtensions() && z.EncExt(yy10) {
62495					} else {
62496						z.EncFallback(yy10)
62497					}
62498				} else {
62499					r.EncodeNil()
62500				}
62501			} else {
62502				if yyq2[2] {
62503					z.EncSendContainerState(codecSelfer_containerMapKey1234)
62504					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
62505					z.EncSendContainerState(codecSelfer_containerMapValue1234)
62506					yy12 := &x.ListMeta
62507					yym13 := z.EncBinary()
62508					_ = yym13
62509					if false {
62510					} else if z.HasExtensions() && z.EncExt(yy12) {
62511					} else {
62512						z.EncFallback(yy12)
62513					}
62514				}
62515			}
62516			if yyr2 || yy2arr2 {
62517				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
62518				if x.Items == nil {
62519					r.EncodeNil()
62520				} else {
62521					yym15 := z.EncBinary()
62522					_ = yym15
62523					if false {
62524					} else {
62525						h.encSliceSecret(([]Secret)(x.Items), e)
62526					}
62527				}
62528			} else {
62529				z.EncSendContainerState(codecSelfer_containerMapKey1234)
62530				r.EncodeString(codecSelferC_UTF81234, string("items"))
62531				z.EncSendContainerState(codecSelfer_containerMapValue1234)
62532				if x.Items == nil {
62533					r.EncodeNil()
62534				} else {
62535					yym16 := z.EncBinary()
62536					_ = yym16
62537					if false {
62538					} else {
62539						h.encSliceSecret(([]Secret)(x.Items), e)
62540					}
62541				}
62542			}
62543			if yyr2 || yy2arr2 {
62544				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
62545			} else {
62546				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
62547			}
62548		}
62549	}
62550}
62551
62552func (x *SecretList) CodecDecodeSelf(d *codec1978.Decoder) {
62553	var h codecSelfer1234
62554	z, r := codec1978.GenHelperDecoder(d)
62555	_, _, _ = h, z, r
62556	yym1 := z.DecBinary()
62557	_ = yym1
62558	if false {
62559	} else if z.HasExtensions() && z.DecExt(x) {
62560	} else {
62561		yyct2 := r.ContainerType()
62562		if yyct2 == codecSelferValueTypeMap1234 {
62563			yyl2 := r.ReadMapStart()
62564			if yyl2 == 0 {
62565				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
62566			} else {
62567				x.codecDecodeSelfFromMap(yyl2, d)
62568			}
62569		} else if yyct2 == codecSelferValueTypeArray1234 {
62570			yyl2 := r.ReadArrayStart()
62571			if yyl2 == 0 {
62572				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
62573			} else {
62574				x.codecDecodeSelfFromArray(yyl2, d)
62575			}
62576		} else {
62577			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
62578		}
62579	}
62580}
62581
62582func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
62583	var h codecSelfer1234
62584	z, r := codec1978.GenHelperDecoder(d)
62585	_, _, _ = h, z, r
62586	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
62587	_ = yys3Slc
62588	var yyhl3 bool = l >= 0
62589	for yyj3 := 0; ; yyj3++ {
62590		if yyhl3 {
62591			if yyj3 >= l {
62592				break
62593			}
62594		} else {
62595			if r.CheckBreak() {
62596				break
62597			}
62598		}
62599		z.DecSendContainerState(codecSelfer_containerMapKey1234)
62600		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
62601		yys3 := string(yys3Slc)
62602		z.DecSendContainerState(codecSelfer_containerMapValue1234)
62603		switch yys3 {
62604		case "kind":
62605			if r.TryDecodeAsNil() {
62606				x.Kind = ""
62607			} else {
62608				yyv4 := &x.Kind
62609				yym5 := z.DecBinary()
62610				_ = yym5
62611				if false {
62612				} else {
62613					*((*string)(yyv4)) = r.DecodeString()
62614				}
62615			}
62616		case "apiVersion":
62617			if r.TryDecodeAsNil() {
62618				x.APIVersion = ""
62619			} else {
62620				yyv6 := &x.APIVersion
62621				yym7 := z.DecBinary()
62622				_ = yym7
62623				if false {
62624				} else {
62625					*((*string)(yyv6)) = r.DecodeString()
62626				}
62627			}
62628		case "metadata":
62629			if r.TryDecodeAsNil() {
62630				x.ListMeta = pkg2_v1.ListMeta{}
62631			} else {
62632				yyv8 := &x.ListMeta
62633				yym9 := z.DecBinary()
62634				_ = yym9
62635				if false {
62636				} else if z.HasExtensions() && z.DecExt(yyv8) {
62637				} else {
62638					z.DecFallback(yyv8, false)
62639				}
62640			}
62641		case "items":
62642			if r.TryDecodeAsNil() {
62643				x.Items = nil
62644			} else {
62645				yyv10 := &x.Items
62646				yym11 := z.DecBinary()
62647				_ = yym11
62648				if false {
62649				} else {
62650					h.decSliceSecret((*[]Secret)(yyv10), d)
62651				}
62652			}
62653		default:
62654			z.DecStructFieldNotFound(-1, yys3)
62655		} // end switch yys3
62656	} // end for yyj3
62657	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
62658}
62659
62660func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
62661	var h codecSelfer1234
62662	z, r := codec1978.GenHelperDecoder(d)
62663	_, _, _ = h, z, r
62664	var yyj12 int
62665	var yyb12 bool
62666	var yyhl12 bool = l >= 0
62667	yyj12++
62668	if yyhl12 {
62669		yyb12 = yyj12 > l
62670	} else {
62671		yyb12 = r.CheckBreak()
62672	}
62673	if yyb12 {
62674		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
62675		return
62676	}
62677	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
62678	if r.TryDecodeAsNil() {
62679		x.Kind = ""
62680	} else {
62681		yyv13 := &x.Kind
62682		yym14 := z.DecBinary()
62683		_ = yym14
62684		if false {
62685		} else {
62686			*((*string)(yyv13)) = r.DecodeString()
62687		}
62688	}
62689	yyj12++
62690	if yyhl12 {
62691		yyb12 = yyj12 > l
62692	} else {
62693		yyb12 = r.CheckBreak()
62694	}
62695	if yyb12 {
62696		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
62697		return
62698	}
62699	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
62700	if r.TryDecodeAsNil() {
62701		x.APIVersion = ""
62702	} else {
62703		yyv15 := &x.APIVersion
62704		yym16 := z.DecBinary()
62705		_ = yym16
62706		if false {
62707		} else {
62708			*((*string)(yyv15)) = r.DecodeString()
62709		}
62710	}
62711	yyj12++
62712	if yyhl12 {
62713		yyb12 = yyj12 > l
62714	} else {
62715		yyb12 = r.CheckBreak()
62716	}
62717	if yyb12 {
62718		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
62719		return
62720	}
62721	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
62722	if r.TryDecodeAsNil() {
62723		x.ListMeta = pkg2_v1.ListMeta{}
62724	} else {
62725		yyv17 := &x.ListMeta
62726		yym18 := z.DecBinary()
62727		_ = yym18
62728		if false {
62729		} else if z.HasExtensions() && z.DecExt(yyv17) {
62730		} else {
62731			z.DecFallback(yyv17, false)
62732		}
62733	}
62734	yyj12++
62735	if yyhl12 {
62736		yyb12 = yyj12 > l
62737	} else {
62738		yyb12 = r.CheckBreak()
62739	}
62740	if yyb12 {
62741		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
62742		return
62743	}
62744	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
62745	if r.TryDecodeAsNil() {
62746		x.Items = nil
62747	} else {
62748		yyv19 := &x.Items
62749		yym20 := z.DecBinary()
62750		_ = yym20
62751		if false {
62752		} else {
62753			h.decSliceSecret((*[]Secret)(yyv19), d)
62754		}
62755	}
62756	for {
62757		yyj12++
62758		if yyhl12 {
62759			yyb12 = yyj12 > l
62760		} else {
62761			yyb12 = r.CheckBreak()
62762		}
62763		if yyb12 {
62764			break
62765		}
62766		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
62767		z.DecStructFieldNotFound(yyj12-1, "")
62768	}
62769	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
62770}
62771
62772func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) {
62773	var h codecSelfer1234
62774	z, r := codec1978.GenHelperEncoder(e)
62775	_, _, _ = h, z, r
62776	if x == nil {
62777		r.EncodeNil()
62778	} else {
62779		yym1 := z.EncBinary()
62780		_ = yym1
62781		if false {
62782		} else if z.HasExtensions() && z.EncExt(x) {
62783		} else {
62784			yysep2 := !z.EncBinary()
62785			yy2arr2 := z.EncBasicHandle().StructToArray
62786			var yyq2 [4]bool
62787			_, _, _ = yysep2, yyq2, yy2arr2
62788			const yyr2 bool = false
62789			yyq2[0] = x.Kind != ""
62790			yyq2[1] = x.APIVersion != ""
62791			yyq2[2] = true
62792			yyq2[3] = len(x.Data) != 0
62793			var yynn2 int
62794			if yyr2 || yy2arr2 {
62795				r.EncodeArrayStart(4)
62796			} else {
62797				yynn2 = 0
62798				for _, b := range yyq2 {
62799					if b {
62800						yynn2++
62801					}
62802				}
62803				r.EncodeMapStart(yynn2)
62804				yynn2 = 0
62805			}
62806			if yyr2 || yy2arr2 {
62807				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
62808				if yyq2[0] {
62809					yym4 := z.EncBinary()
62810					_ = yym4
62811					if false {
62812					} else {
62813						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
62814					}
62815				} else {
62816					r.EncodeString(codecSelferC_UTF81234, "")
62817				}
62818			} else {
62819				if yyq2[0] {
62820					z.EncSendContainerState(codecSelfer_containerMapKey1234)
62821					r.EncodeString(codecSelferC_UTF81234, string("kind"))
62822					z.EncSendContainerState(codecSelfer_containerMapValue1234)
62823					yym5 := z.EncBinary()
62824					_ = yym5
62825					if false {
62826					} else {
62827						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
62828					}
62829				}
62830			}
62831			if yyr2 || yy2arr2 {
62832				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
62833				if yyq2[1] {
62834					yym7 := z.EncBinary()
62835					_ = yym7
62836					if false {
62837					} else {
62838						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
62839					}
62840				} else {
62841					r.EncodeString(codecSelferC_UTF81234, "")
62842				}
62843			} else {
62844				if yyq2[1] {
62845					z.EncSendContainerState(codecSelfer_containerMapKey1234)
62846					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
62847					z.EncSendContainerState(codecSelfer_containerMapValue1234)
62848					yym8 := z.EncBinary()
62849					_ = yym8
62850					if false {
62851					} else {
62852						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
62853					}
62854				}
62855			}
62856			if yyr2 || yy2arr2 {
62857				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
62858				if yyq2[2] {
62859					yy10 := &x.ObjectMeta
62860					yym11 := z.EncBinary()
62861					_ = yym11
62862					if false {
62863					} else if z.HasExtensions() && z.EncExt(yy10) {
62864					} else {
62865						z.EncFallback(yy10)
62866					}
62867				} else {
62868					r.EncodeNil()
62869				}
62870			} else {
62871				if yyq2[2] {
62872					z.EncSendContainerState(codecSelfer_containerMapKey1234)
62873					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
62874					z.EncSendContainerState(codecSelfer_containerMapValue1234)
62875					yy12 := &x.ObjectMeta
62876					yym13 := z.EncBinary()
62877					_ = yym13
62878					if false {
62879					} else if z.HasExtensions() && z.EncExt(yy12) {
62880					} else {
62881						z.EncFallback(yy12)
62882					}
62883				}
62884			}
62885			if yyr2 || yy2arr2 {
62886				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
62887				if yyq2[3] {
62888					if x.Data == nil {
62889						r.EncodeNil()
62890					} else {
62891						yym15 := z.EncBinary()
62892						_ = yym15
62893						if false {
62894						} else {
62895							z.F.EncMapStringStringV(x.Data, false, e)
62896						}
62897					}
62898				} else {
62899					r.EncodeNil()
62900				}
62901			} else {
62902				if yyq2[3] {
62903					z.EncSendContainerState(codecSelfer_containerMapKey1234)
62904					r.EncodeString(codecSelferC_UTF81234, string("data"))
62905					z.EncSendContainerState(codecSelfer_containerMapValue1234)
62906					if x.Data == nil {
62907						r.EncodeNil()
62908					} else {
62909						yym16 := z.EncBinary()
62910						_ = yym16
62911						if false {
62912						} else {
62913							z.F.EncMapStringStringV(x.Data, false, e)
62914						}
62915					}
62916				}
62917			}
62918			if yyr2 || yy2arr2 {
62919				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
62920			} else {
62921				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
62922			}
62923		}
62924	}
62925}
62926
62927func (x *ConfigMap) CodecDecodeSelf(d *codec1978.Decoder) {
62928	var h codecSelfer1234
62929	z, r := codec1978.GenHelperDecoder(d)
62930	_, _, _ = h, z, r
62931	yym1 := z.DecBinary()
62932	_ = yym1
62933	if false {
62934	} else if z.HasExtensions() && z.DecExt(x) {
62935	} else {
62936		yyct2 := r.ContainerType()
62937		if yyct2 == codecSelferValueTypeMap1234 {
62938			yyl2 := r.ReadMapStart()
62939			if yyl2 == 0 {
62940				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
62941			} else {
62942				x.codecDecodeSelfFromMap(yyl2, d)
62943			}
62944		} else if yyct2 == codecSelferValueTypeArray1234 {
62945			yyl2 := r.ReadArrayStart()
62946			if yyl2 == 0 {
62947				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
62948			} else {
62949				x.codecDecodeSelfFromArray(yyl2, d)
62950			}
62951		} else {
62952			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
62953		}
62954	}
62955}
62956
62957func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
62958	var h codecSelfer1234
62959	z, r := codec1978.GenHelperDecoder(d)
62960	_, _, _ = h, z, r
62961	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
62962	_ = yys3Slc
62963	var yyhl3 bool = l >= 0
62964	for yyj3 := 0; ; yyj3++ {
62965		if yyhl3 {
62966			if yyj3 >= l {
62967				break
62968			}
62969		} else {
62970			if r.CheckBreak() {
62971				break
62972			}
62973		}
62974		z.DecSendContainerState(codecSelfer_containerMapKey1234)
62975		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
62976		yys3 := string(yys3Slc)
62977		z.DecSendContainerState(codecSelfer_containerMapValue1234)
62978		switch yys3 {
62979		case "kind":
62980			if r.TryDecodeAsNil() {
62981				x.Kind = ""
62982			} else {
62983				yyv4 := &x.Kind
62984				yym5 := z.DecBinary()
62985				_ = yym5
62986				if false {
62987				} else {
62988					*((*string)(yyv4)) = r.DecodeString()
62989				}
62990			}
62991		case "apiVersion":
62992			if r.TryDecodeAsNil() {
62993				x.APIVersion = ""
62994			} else {
62995				yyv6 := &x.APIVersion
62996				yym7 := z.DecBinary()
62997				_ = yym7
62998				if false {
62999				} else {
63000					*((*string)(yyv6)) = r.DecodeString()
63001				}
63002			}
63003		case "metadata":
63004			if r.TryDecodeAsNil() {
63005				x.ObjectMeta = pkg2_v1.ObjectMeta{}
63006			} else {
63007				yyv8 := &x.ObjectMeta
63008				yym9 := z.DecBinary()
63009				_ = yym9
63010				if false {
63011				} else if z.HasExtensions() && z.DecExt(yyv8) {
63012				} else {
63013					z.DecFallback(yyv8, false)
63014				}
63015			}
63016		case "data":
63017			if r.TryDecodeAsNil() {
63018				x.Data = nil
63019			} else {
63020				yyv10 := &x.Data
63021				yym11 := z.DecBinary()
63022				_ = yym11
63023				if false {
63024				} else {
63025					z.F.DecMapStringStringX(yyv10, false, d)
63026				}
63027			}
63028		default:
63029			z.DecStructFieldNotFound(-1, yys3)
63030		} // end switch yys3
63031	} // end for yyj3
63032	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
63033}
63034
63035func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
63036	var h codecSelfer1234
63037	z, r := codec1978.GenHelperDecoder(d)
63038	_, _, _ = h, z, r
63039	var yyj12 int
63040	var yyb12 bool
63041	var yyhl12 bool = l >= 0
63042	yyj12++
63043	if yyhl12 {
63044		yyb12 = yyj12 > l
63045	} else {
63046		yyb12 = r.CheckBreak()
63047	}
63048	if yyb12 {
63049		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
63050		return
63051	}
63052	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
63053	if r.TryDecodeAsNil() {
63054		x.Kind = ""
63055	} else {
63056		yyv13 := &x.Kind
63057		yym14 := z.DecBinary()
63058		_ = yym14
63059		if false {
63060		} else {
63061			*((*string)(yyv13)) = r.DecodeString()
63062		}
63063	}
63064	yyj12++
63065	if yyhl12 {
63066		yyb12 = yyj12 > l
63067	} else {
63068		yyb12 = r.CheckBreak()
63069	}
63070	if yyb12 {
63071		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
63072		return
63073	}
63074	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
63075	if r.TryDecodeAsNil() {
63076		x.APIVersion = ""
63077	} else {
63078		yyv15 := &x.APIVersion
63079		yym16 := z.DecBinary()
63080		_ = yym16
63081		if false {
63082		} else {
63083			*((*string)(yyv15)) = r.DecodeString()
63084		}
63085	}
63086	yyj12++
63087	if yyhl12 {
63088		yyb12 = yyj12 > l
63089	} else {
63090		yyb12 = r.CheckBreak()
63091	}
63092	if yyb12 {
63093		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
63094		return
63095	}
63096	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
63097	if r.TryDecodeAsNil() {
63098		x.ObjectMeta = pkg2_v1.ObjectMeta{}
63099	} else {
63100		yyv17 := &x.ObjectMeta
63101		yym18 := z.DecBinary()
63102		_ = yym18
63103		if false {
63104		} else if z.HasExtensions() && z.DecExt(yyv17) {
63105		} else {
63106			z.DecFallback(yyv17, false)
63107		}
63108	}
63109	yyj12++
63110	if yyhl12 {
63111		yyb12 = yyj12 > l
63112	} else {
63113		yyb12 = r.CheckBreak()
63114	}
63115	if yyb12 {
63116		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
63117		return
63118	}
63119	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
63120	if r.TryDecodeAsNil() {
63121		x.Data = nil
63122	} else {
63123		yyv19 := &x.Data
63124		yym20 := z.DecBinary()
63125		_ = yym20
63126		if false {
63127		} else {
63128			z.F.DecMapStringStringX(yyv19, false, d)
63129		}
63130	}
63131	for {
63132		yyj12++
63133		if yyhl12 {
63134			yyb12 = yyj12 > l
63135		} else {
63136			yyb12 = r.CheckBreak()
63137		}
63138		if yyb12 {
63139			break
63140		}
63141		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
63142		z.DecStructFieldNotFound(yyj12-1, "")
63143	}
63144	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
63145}
63146
63147func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) {
63148	var h codecSelfer1234
63149	z, r := codec1978.GenHelperEncoder(e)
63150	_, _, _ = h, z, r
63151	if x == nil {
63152		r.EncodeNil()
63153	} else {
63154		yym1 := z.EncBinary()
63155		_ = yym1
63156		if false {
63157		} else if z.HasExtensions() && z.EncExt(x) {
63158		} else {
63159			yysep2 := !z.EncBinary()
63160			yy2arr2 := z.EncBasicHandle().StructToArray
63161			var yyq2 [4]bool
63162			_, _, _ = yysep2, yyq2, yy2arr2
63163			const yyr2 bool = false
63164			yyq2[0] = x.Kind != ""
63165			yyq2[1] = x.APIVersion != ""
63166			yyq2[2] = true
63167			var yynn2 int
63168			if yyr2 || yy2arr2 {
63169				r.EncodeArrayStart(4)
63170			} else {
63171				yynn2 = 1
63172				for _, b := range yyq2 {
63173					if b {
63174						yynn2++
63175					}
63176				}
63177				r.EncodeMapStart(yynn2)
63178				yynn2 = 0
63179			}
63180			if yyr2 || yy2arr2 {
63181				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
63182				if yyq2[0] {
63183					yym4 := z.EncBinary()
63184					_ = yym4
63185					if false {
63186					} else {
63187						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
63188					}
63189				} else {
63190					r.EncodeString(codecSelferC_UTF81234, "")
63191				}
63192			} else {
63193				if yyq2[0] {
63194					z.EncSendContainerState(codecSelfer_containerMapKey1234)
63195					r.EncodeString(codecSelferC_UTF81234, string("kind"))
63196					z.EncSendContainerState(codecSelfer_containerMapValue1234)
63197					yym5 := z.EncBinary()
63198					_ = yym5
63199					if false {
63200					} else {
63201						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
63202					}
63203				}
63204			}
63205			if yyr2 || yy2arr2 {
63206				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
63207				if yyq2[1] {
63208					yym7 := z.EncBinary()
63209					_ = yym7
63210					if false {
63211					} else {
63212						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
63213					}
63214				} else {
63215					r.EncodeString(codecSelferC_UTF81234, "")
63216				}
63217			} else {
63218				if yyq2[1] {
63219					z.EncSendContainerState(codecSelfer_containerMapKey1234)
63220					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
63221					z.EncSendContainerState(codecSelfer_containerMapValue1234)
63222					yym8 := z.EncBinary()
63223					_ = yym8
63224					if false {
63225					} else {
63226						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
63227					}
63228				}
63229			}
63230			if yyr2 || yy2arr2 {
63231				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
63232				if yyq2[2] {
63233					yy10 := &x.ListMeta
63234					yym11 := z.EncBinary()
63235					_ = yym11
63236					if false {
63237					} else if z.HasExtensions() && z.EncExt(yy10) {
63238					} else {
63239						z.EncFallback(yy10)
63240					}
63241				} else {
63242					r.EncodeNil()
63243				}
63244			} else {
63245				if yyq2[2] {
63246					z.EncSendContainerState(codecSelfer_containerMapKey1234)
63247					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
63248					z.EncSendContainerState(codecSelfer_containerMapValue1234)
63249					yy12 := &x.ListMeta
63250					yym13 := z.EncBinary()
63251					_ = yym13
63252					if false {
63253					} else if z.HasExtensions() && z.EncExt(yy12) {
63254					} else {
63255						z.EncFallback(yy12)
63256					}
63257				}
63258			}
63259			if yyr2 || yy2arr2 {
63260				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
63261				if x.Items == nil {
63262					r.EncodeNil()
63263				} else {
63264					yym15 := z.EncBinary()
63265					_ = yym15
63266					if false {
63267					} else {
63268						h.encSliceConfigMap(([]ConfigMap)(x.Items), e)
63269					}
63270				}
63271			} else {
63272				z.EncSendContainerState(codecSelfer_containerMapKey1234)
63273				r.EncodeString(codecSelferC_UTF81234, string("items"))
63274				z.EncSendContainerState(codecSelfer_containerMapValue1234)
63275				if x.Items == nil {
63276					r.EncodeNil()
63277				} else {
63278					yym16 := z.EncBinary()
63279					_ = yym16
63280					if false {
63281					} else {
63282						h.encSliceConfigMap(([]ConfigMap)(x.Items), e)
63283					}
63284				}
63285			}
63286			if yyr2 || yy2arr2 {
63287				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
63288			} else {
63289				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
63290			}
63291		}
63292	}
63293}
63294
63295func (x *ConfigMapList) CodecDecodeSelf(d *codec1978.Decoder) {
63296	var h codecSelfer1234
63297	z, r := codec1978.GenHelperDecoder(d)
63298	_, _, _ = h, z, r
63299	yym1 := z.DecBinary()
63300	_ = yym1
63301	if false {
63302	} else if z.HasExtensions() && z.DecExt(x) {
63303	} else {
63304		yyct2 := r.ContainerType()
63305		if yyct2 == codecSelferValueTypeMap1234 {
63306			yyl2 := r.ReadMapStart()
63307			if yyl2 == 0 {
63308				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
63309			} else {
63310				x.codecDecodeSelfFromMap(yyl2, d)
63311			}
63312		} else if yyct2 == codecSelferValueTypeArray1234 {
63313			yyl2 := r.ReadArrayStart()
63314			if yyl2 == 0 {
63315				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
63316			} else {
63317				x.codecDecodeSelfFromArray(yyl2, d)
63318			}
63319		} else {
63320			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
63321		}
63322	}
63323}
63324
63325func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
63326	var h codecSelfer1234
63327	z, r := codec1978.GenHelperDecoder(d)
63328	_, _, _ = h, z, r
63329	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
63330	_ = yys3Slc
63331	var yyhl3 bool = l >= 0
63332	for yyj3 := 0; ; yyj3++ {
63333		if yyhl3 {
63334			if yyj3 >= l {
63335				break
63336			}
63337		} else {
63338			if r.CheckBreak() {
63339				break
63340			}
63341		}
63342		z.DecSendContainerState(codecSelfer_containerMapKey1234)
63343		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
63344		yys3 := string(yys3Slc)
63345		z.DecSendContainerState(codecSelfer_containerMapValue1234)
63346		switch yys3 {
63347		case "kind":
63348			if r.TryDecodeAsNil() {
63349				x.Kind = ""
63350			} else {
63351				yyv4 := &x.Kind
63352				yym5 := z.DecBinary()
63353				_ = yym5
63354				if false {
63355				} else {
63356					*((*string)(yyv4)) = r.DecodeString()
63357				}
63358			}
63359		case "apiVersion":
63360			if r.TryDecodeAsNil() {
63361				x.APIVersion = ""
63362			} else {
63363				yyv6 := &x.APIVersion
63364				yym7 := z.DecBinary()
63365				_ = yym7
63366				if false {
63367				} else {
63368					*((*string)(yyv6)) = r.DecodeString()
63369				}
63370			}
63371		case "metadata":
63372			if r.TryDecodeAsNil() {
63373				x.ListMeta = pkg2_v1.ListMeta{}
63374			} else {
63375				yyv8 := &x.ListMeta
63376				yym9 := z.DecBinary()
63377				_ = yym9
63378				if false {
63379				} else if z.HasExtensions() && z.DecExt(yyv8) {
63380				} else {
63381					z.DecFallback(yyv8, false)
63382				}
63383			}
63384		case "items":
63385			if r.TryDecodeAsNil() {
63386				x.Items = nil
63387			} else {
63388				yyv10 := &x.Items
63389				yym11 := z.DecBinary()
63390				_ = yym11
63391				if false {
63392				} else {
63393					h.decSliceConfigMap((*[]ConfigMap)(yyv10), d)
63394				}
63395			}
63396		default:
63397			z.DecStructFieldNotFound(-1, yys3)
63398		} // end switch yys3
63399	} // end for yyj3
63400	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
63401}
63402
63403func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
63404	var h codecSelfer1234
63405	z, r := codec1978.GenHelperDecoder(d)
63406	_, _, _ = h, z, r
63407	var yyj12 int
63408	var yyb12 bool
63409	var yyhl12 bool = l >= 0
63410	yyj12++
63411	if yyhl12 {
63412		yyb12 = yyj12 > l
63413	} else {
63414		yyb12 = r.CheckBreak()
63415	}
63416	if yyb12 {
63417		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
63418		return
63419	}
63420	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
63421	if r.TryDecodeAsNil() {
63422		x.Kind = ""
63423	} else {
63424		yyv13 := &x.Kind
63425		yym14 := z.DecBinary()
63426		_ = yym14
63427		if false {
63428		} else {
63429			*((*string)(yyv13)) = r.DecodeString()
63430		}
63431	}
63432	yyj12++
63433	if yyhl12 {
63434		yyb12 = yyj12 > l
63435	} else {
63436		yyb12 = r.CheckBreak()
63437	}
63438	if yyb12 {
63439		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
63440		return
63441	}
63442	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
63443	if r.TryDecodeAsNil() {
63444		x.APIVersion = ""
63445	} else {
63446		yyv15 := &x.APIVersion
63447		yym16 := z.DecBinary()
63448		_ = yym16
63449		if false {
63450		} else {
63451			*((*string)(yyv15)) = r.DecodeString()
63452		}
63453	}
63454	yyj12++
63455	if yyhl12 {
63456		yyb12 = yyj12 > l
63457	} else {
63458		yyb12 = r.CheckBreak()
63459	}
63460	if yyb12 {
63461		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
63462		return
63463	}
63464	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
63465	if r.TryDecodeAsNil() {
63466		x.ListMeta = pkg2_v1.ListMeta{}
63467	} else {
63468		yyv17 := &x.ListMeta
63469		yym18 := z.DecBinary()
63470		_ = yym18
63471		if false {
63472		} else if z.HasExtensions() && z.DecExt(yyv17) {
63473		} else {
63474			z.DecFallback(yyv17, false)
63475		}
63476	}
63477	yyj12++
63478	if yyhl12 {
63479		yyb12 = yyj12 > l
63480	} else {
63481		yyb12 = r.CheckBreak()
63482	}
63483	if yyb12 {
63484		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
63485		return
63486	}
63487	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
63488	if r.TryDecodeAsNil() {
63489		x.Items = nil
63490	} else {
63491		yyv19 := &x.Items
63492		yym20 := z.DecBinary()
63493		_ = yym20
63494		if false {
63495		} else {
63496			h.decSliceConfigMap((*[]ConfigMap)(yyv19), d)
63497		}
63498	}
63499	for {
63500		yyj12++
63501		if yyhl12 {
63502			yyb12 = yyj12 > l
63503		} else {
63504			yyb12 = r.CheckBreak()
63505		}
63506		if yyb12 {
63507			break
63508		}
63509		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
63510		z.DecStructFieldNotFound(yyj12-1, "")
63511	}
63512	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
63513}
63514
63515func (x ComponentConditionType) CodecEncodeSelf(e *codec1978.Encoder) {
63516	var h codecSelfer1234
63517	z, r := codec1978.GenHelperEncoder(e)
63518	_, _, _ = h, z, r
63519	yym1 := z.EncBinary()
63520	_ = yym1
63521	if false {
63522	} else if z.HasExtensions() && z.EncExt(x) {
63523	} else {
63524		r.EncodeString(codecSelferC_UTF81234, string(x))
63525	}
63526}
63527
63528func (x *ComponentConditionType) CodecDecodeSelf(d *codec1978.Decoder) {
63529	var h codecSelfer1234
63530	z, r := codec1978.GenHelperDecoder(d)
63531	_, _, _ = h, z, r
63532	yym1 := z.DecBinary()
63533	_ = yym1
63534	if false {
63535	} else if z.HasExtensions() && z.DecExt(x) {
63536	} else {
63537		*((*string)(x)) = r.DecodeString()
63538	}
63539}
63540
63541func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) {
63542	var h codecSelfer1234
63543	z, r := codec1978.GenHelperEncoder(e)
63544	_, _, _ = h, z, r
63545	if x == nil {
63546		r.EncodeNil()
63547	} else {
63548		yym1 := z.EncBinary()
63549		_ = yym1
63550		if false {
63551		} else if z.HasExtensions() && z.EncExt(x) {
63552		} else {
63553			yysep2 := !z.EncBinary()
63554			yy2arr2 := z.EncBasicHandle().StructToArray
63555			var yyq2 [4]bool
63556			_, _, _ = yysep2, yyq2, yy2arr2
63557			const yyr2 bool = false
63558			yyq2[2] = x.Message != ""
63559			yyq2[3] = x.Error != ""
63560			var yynn2 int
63561			if yyr2 || yy2arr2 {
63562				r.EncodeArrayStart(4)
63563			} else {
63564				yynn2 = 2
63565				for _, b := range yyq2 {
63566					if b {
63567						yynn2++
63568					}
63569				}
63570				r.EncodeMapStart(yynn2)
63571				yynn2 = 0
63572			}
63573			if yyr2 || yy2arr2 {
63574				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
63575				x.Type.CodecEncodeSelf(e)
63576			} else {
63577				z.EncSendContainerState(codecSelfer_containerMapKey1234)
63578				r.EncodeString(codecSelferC_UTF81234, string("type"))
63579				z.EncSendContainerState(codecSelfer_containerMapValue1234)
63580				x.Type.CodecEncodeSelf(e)
63581			}
63582			if yyr2 || yy2arr2 {
63583				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
63584				x.Status.CodecEncodeSelf(e)
63585			} else {
63586				z.EncSendContainerState(codecSelfer_containerMapKey1234)
63587				r.EncodeString(codecSelferC_UTF81234, string("status"))
63588				z.EncSendContainerState(codecSelfer_containerMapValue1234)
63589				x.Status.CodecEncodeSelf(e)
63590			}
63591			if yyr2 || yy2arr2 {
63592				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
63593				if yyq2[2] {
63594					yym10 := z.EncBinary()
63595					_ = yym10
63596					if false {
63597					} else {
63598						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
63599					}
63600				} else {
63601					r.EncodeString(codecSelferC_UTF81234, "")
63602				}
63603			} else {
63604				if yyq2[2] {
63605					z.EncSendContainerState(codecSelfer_containerMapKey1234)
63606					r.EncodeString(codecSelferC_UTF81234, string("message"))
63607					z.EncSendContainerState(codecSelfer_containerMapValue1234)
63608					yym11 := z.EncBinary()
63609					_ = yym11
63610					if false {
63611					} else {
63612						r.EncodeString(codecSelferC_UTF81234, string(x.Message))
63613					}
63614				}
63615			}
63616			if yyr2 || yy2arr2 {
63617				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
63618				if yyq2[3] {
63619					yym13 := z.EncBinary()
63620					_ = yym13
63621					if false {
63622					} else {
63623						r.EncodeString(codecSelferC_UTF81234, string(x.Error))
63624					}
63625				} else {
63626					r.EncodeString(codecSelferC_UTF81234, "")
63627				}
63628			} else {
63629				if yyq2[3] {
63630					z.EncSendContainerState(codecSelfer_containerMapKey1234)
63631					r.EncodeString(codecSelferC_UTF81234, string("error"))
63632					z.EncSendContainerState(codecSelfer_containerMapValue1234)
63633					yym14 := z.EncBinary()
63634					_ = yym14
63635					if false {
63636					} else {
63637						r.EncodeString(codecSelferC_UTF81234, string(x.Error))
63638					}
63639				}
63640			}
63641			if yyr2 || yy2arr2 {
63642				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
63643			} else {
63644				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
63645			}
63646		}
63647	}
63648}
63649
63650func (x *ComponentCondition) CodecDecodeSelf(d *codec1978.Decoder) {
63651	var h codecSelfer1234
63652	z, r := codec1978.GenHelperDecoder(d)
63653	_, _, _ = h, z, r
63654	yym1 := z.DecBinary()
63655	_ = yym1
63656	if false {
63657	} else if z.HasExtensions() && z.DecExt(x) {
63658	} else {
63659		yyct2 := r.ContainerType()
63660		if yyct2 == codecSelferValueTypeMap1234 {
63661			yyl2 := r.ReadMapStart()
63662			if yyl2 == 0 {
63663				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
63664			} else {
63665				x.codecDecodeSelfFromMap(yyl2, d)
63666			}
63667		} else if yyct2 == codecSelferValueTypeArray1234 {
63668			yyl2 := r.ReadArrayStart()
63669			if yyl2 == 0 {
63670				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
63671			} else {
63672				x.codecDecodeSelfFromArray(yyl2, d)
63673			}
63674		} else {
63675			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
63676		}
63677	}
63678}
63679
63680func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
63681	var h codecSelfer1234
63682	z, r := codec1978.GenHelperDecoder(d)
63683	_, _, _ = h, z, r
63684	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
63685	_ = yys3Slc
63686	var yyhl3 bool = l >= 0
63687	for yyj3 := 0; ; yyj3++ {
63688		if yyhl3 {
63689			if yyj3 >= l {
63690				break
63691			}
63692		} else {
63693			if r.CheckBreak() {
63694				break
63695			}
63696		}
63697		z.DecSendContainerState(codecSelfer_containerMapKey1234)
63698		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
63699		yys3 := string(yys3Slc)
63700		z.DecSendContainerState(codecSelfer_containerMapValue1234)
63701		switch yys3 {
63702		case "type":
63703			if r.TryDecodeAsNil() {
63704				x.Type = ""
63705			} else {
63706				yyv4 := &x.Type
63707				yyv4.CodecDecodeSelf(d)
63708			}
63709		case "status":
63710			if r.TryDecodeAsNil() {
63711				x.Status = ""
63712			} else {
63713				yyv5 := &x.Status
63714				yyv5.CodecDecodeSelf(d)
63715			}
63716		case "message":
63717			if r.TryDecodeAsNil() {
63718				x.Message = ""
63719			} else {
63720				yyv6 := &x.Message
63721				yym7 := z.DecBinary()
63722				_ = yym7
63723				if false {
63724				} else {
63725					*((*string)(yyv6)) = r.DecodeString()
63726				}
63727			}
63728		case "error":
63729			if r.TryDecodeAsNil() {
63730				x.Error = ""
63731			} else {
63732				yyv8 := &x.Error
63733				yym9 := z.DecBinary()
63734				_ = yym9
63735				if false {
63736				} else {
63737					*((*string)(yyv8)) = r.DecodeString()
63738				}
63739			}
63740		default:
63741			z.DecStructFieldNotFound(-1, yys3)
63742		} // end switch yys3
63743	} // end for yyj3
63744	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
63745}
63746
63747func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
63748	var h codecSelfer1234
63749	z, r := codec1978.GenHelperDecoder(d)
63750	_, _, _ = h, z, r
63751	var yyj10 int
63752	var yyb10 bool
63753	var yyhl10 bool = l >= 0
63754	yyj10++
63755	if yyhl10 {
63756		yyb10 = yyj10 > l
63757	} else {
63758		yyb10 = r.CheckBreak()
63759	}
63760	if yyb10 {
63761		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
63762		return
63763	}
63764	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
63765	if r.TryDecodeAsNil() {
63766		x.Type = ""
63767	} else {
63768		yyv11 := &x.Type
63769		yyv11.CodecDecodeSelf(d)
63770	}
63771	yyj10++
63772	if yyhl10 {
63773		yyb10 = yyj10 > l
63774	} else {
63775		yyb10 = r.CheckBreak()
63776	}
63777	if yyb10 {
63778		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
63779		return
63780	}
63781	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
63782	if r.TryDecodeAsNil() {
63783		x.Status = ""
63784	} else {
63785		yyv12 := &x.Status
63786		yyv12.CodecDecodeSelf(d)
63787	}
63788	yyj10++
63789	if yyhl10 {
63790		yyb10 = yyj10 > l
63791	} else {
63792		yyb10 = r.CheckBreak()
63793	}
63794	if yyb10 {
63795		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
63796		return
63797	}
63798	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
63799	if r.TryDecodeAsNil() {
63800		x.Message = ""
63801	} else {
63802		yyv13 := &x.Message
63803		yym14 := z.DecBinary()
63804		_ = yym14
63805		if false {
63806		} else {
63807			*((*string)(yyv13)) = r.DecodeString()
63808		}
63809	}
63810	yyj10++
63811	if yyhl10 {
63812		yyb10 = yyj10 > l
63813	} else {
63814		yyb10 = r.CheckBreak()
63815	}
63816	if yyb10 {
63817		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
63818		return
63819	}
63820	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
63821	if r.TryDecodeAsNil() {
63822		x.Error = ""
63823	} else {
63824		yyv15 := &x.Error
63825		yym16 := z.DecBinary()
63826		_ = yym16
63827		if false {
63828		} else {
63829			*((*string)(yyv15)) = r.DecodeString()
63830		}
63831	}
63832	for {
63833		yyj10++
63834		if yyhl10 {
63835			yyb10 = yyj10 > l
63836		} else {
63837			yyb10 = r.CheckBreak()
63838		}
63839		if yyb10 {
63840			break
63841		}
63842		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
63843		z.DecStructFieldNotFound(yyj10-1, "")
63844	}
63845	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
63846}
63847
63848func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
63849	var h codecSelfer1234
63850	z, r := codec1978.GenHelperEncoder(e)
63851	_, _, _ = h, z, r
63852	if x == nil {
63853		r.EncodeNil()
63854	} else {
63855		yym1 := z.EncBinary()
63856		_ = yym1
63857		if false {
63858		} else if z.HasExtensions() && z.EncExt(x) {
63859		} else {
63860			yysep2 := !z.EncBinary()
63861			yy2arr2 := z.EncBasicHandle().StructToArray
63862			var yyq2 [4]bool
63863			_, _, _ = yysep2, yyq2, yy2arr2
63864			const yyr2 bool = false
63865			yyq2[0] = x.Kind != ""
63866			yyq2[1] = x.APIVersion != ""
63867			yyq2[2] = true
63868			yyq2[3] = len(x.Conditions) != 0
63869			var yynn2 int
63870			if yyr2 || yy2arr2 {
63871				r.EncodeArrayStart(4)
63872			} else {
63873				yynn2 = 0
63874				for _, b := range yyq2 {
63875					if b {
63876						yynn2++
63877					}
63878				}
63879				r.EncodeMapStart(yynn2)
63880				yynn2 = 0
63881			}
63882			if yyr2 || yy2arr2 {
63883				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
63884				if yyq2[0] {
63885					yym4 := z.EncBinary()
63886					_ = yym4
63887					if false {
63888					} else {
63889						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
63890					}
63891				} else {
63892					r.EncodeString(codecSelferC_UTF81234, "")
63893				}
63894			} else {
63895				if yyq2[0] {
63896					z.EncSendContainerState(codecSelfer_containerMapKey1234)
63897					r.EncodeString(codecSelferC_UTF81234, string("kind"))
63898					z.EncSendContainerState(codecSelfer_containerMapValue1234)
63899					yym5 := z.EncBinary()
63900					_ = yym5
63901					if false {
63902					} else {
63903						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
63904					}
63905				}
63906			}
63907			if yyr2 || yy2arr2 {
63908				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
63909				if yyq2[1] {
63910					yym7 := z.EncBinary()
63911					_ = yym7
63912					if false {
63913					} else {
63914						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
63915					}
63916				} else {
63917					r.EncodeString(codecSelferC_UTF81234, "")
63918				}
63919			} else {
63920				if yyq2[1] {
63921					z.EncSendContainerState(codecSelfer_containerMapKey1234)
63922					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
63923					z.EncSendContainerState(codecSelfer_containerMapValue1234)
63924					yym8 := z.EncBinary()
63925					_ = yym8
63926					if false {
63927					} else {
63928						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
63929					}
63930				}
63931			}
63932			if yyr2 || yy2arr2 {
63933				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
63934				if yyq2[2] {
63935					yy10 := &x.ObjectMeta
63936					yym11 := z.EncBinary()
63937					_ = yym11
63938					if false {
63939					} else if z.HasExtensions() && z.EncExt(yy10) {
63940					} else {
63941						z.EncFallback(yy10)
63942					}
63943				} else {
63944					r.EncodeNil()
63945				}
63946			} else {
63947				if yyq2[2] {
63948					z.EncSendContainerState(codecSelfer_containerMapKey1234)
63949					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
63950					z.EncSendContainerState(codecSelfer_containerMapValue1234)
63951					yy12 := &x.ObjectMeta
63952					yym13 := z.EncBinary()
63953					_ = yym13
63954					if false {
63955					} else if z.HasExtensions() && z.EncExt(yy12) {
63956					} else {
63957						z.EncFallback(yy12)
63958					}
63959				}
63960			}
63961			if yyr2 || yy2arr2 {
63962				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
63963				if yyq2[3] {
63964					if x.Conditions == nil {
63965						r.EncodeNil()
63966					} else {
63967						yym15 := z.EncBinary()
63968						_ = yym15
63969						if false {
63970						} else {
63971							h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
63972						}
63973					}
63974				} else {
63975					r.EncodeNil()
63976				}
63977			} else {
63978				if yyq2[3] {
63979					z.EncSendContainerState(codecSelfer_containerMapKey1234)
63980					r.EncodeString(codecSelferC_UTF81234, string("conditions"))
63981					z.EncSendContainerState(codecSelfer_containerMapValue1234)
63982					if x.Conditions == nil {
63983						r.EncodeNil()
63984					} else {
63985						yym16 := z.EncBinary()
63986						_ = yym16
63987						if false {
63988						} else {
63989							h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
63990						}
63991					}
63992				}
63993			}
63994			if yyr2 || yy2arr2 {
63995				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
63996			} else {
63997				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
63998			}
63999		}
64000	}
64001}
64002
64003func (x *ComponentStatus) CodecDecodeSelf(d *codec1978.Decoder) {
64004	var h codecSelfer1234
64005	z, r := codec1978.GenHelperDecoder(d)
64006	_, _, _ = h, z, r
64007	yym1 := z.DecBinary()
64008	_ = yym1
64009	if false {
64010	} else if z.HasExtensions() && z.DecExt(x) {
64011	} else {
64012		yyct2 := r.ContainerType()
64013		if yyct2 == codecSelferValueTypeMap1234 {
64014			yyl2 := r.ReadMapStart()
64015			if yyl2 == 0 {
64016				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
64017			} else {
64018				x.codecDecodeSelfFromMap(yyl2, d)
64019			}
64020		} else if yyct2 == codecSelferValueTypeArray1234 {
64021			yyl2 := r.ReadArrayStart()
64022			if yyl2 == 0 {
64023				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
64024			} else {
64025				x.codecDecodeSelfFromArray(yyl2, d)
64026			}
64027		} else {
64028			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
64029		}
64030	}
64031}
64032
64033func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
64034	var h codecSelfer1234
64035	z, r := codec1978.GenHelperDecoder(d)
64036	_, _, _ = h, z, r
64037	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
64038	_ = yys3Slc
64039	var yyhl3 bool = l >= 0
64040	for yyj3 := 0; ; yyj3++ {
64041		if yyhl3 {
64042			if yyj3 >= l {
64043				break
64044			}
64045		} else {
64046			if r.CheckBreak() {
64047				break
64048			}
64049		}
64050		z.DecSendContainerState(codecSelfer_containerMapKey1234)
64051		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
64052		yys3 := string(yys3Slc)
64053		z.DecSendContainerState(codecSelfer_containerMapValue1234)
64054		switch yys3 {
64055		case "kind":
64056			if r.TryDecodeAsNil() {
64057				x.Kind = ""
64058			} else {
64059				yyv4 := &x.Kind
64060				yym5 := z.DecBinary()
64061				_ = yym5
64062				if false {
64063				} else {
64064					*((*string)(yyv4)) = r.DecodeString()
64065				}
64066			}
64067		case "apiVersion":
64068			if r.TryDecodeAsNil() {
64069				x.APIVersion = ""
64070			} else {
64071				yyv6 := &x.APIVersion
64072				yym7 := z.DecBinary()
64073				_ = yym7
64074				if false {
64075				} else {
64076					*((*string)(yyv6)) = r.DecodeString()
64077				}
64078			}
64079		case "metadata":
64080			if r.TryDecodeAsNil() {
64081				x.ObjectMeta = pkg2_v1.ObjectMeta{}
64082			} else {
64083				yyv8 := &x.ObjectMeta
64084				yym9 := z.DecBinary()
64085				_ = yym9
64086				if false {
64087				} else if z.HasExtensions() && z.DecExt(yyv8) {
64088				} else {
64089					z.DecFallback(yyv8, false)
64090				}
64091			}
64092		case "conditions":
64093			if r.TryDecodeAsNil() {
64094				x.Conditions = nil
64095			} else {
64096				yyv10 := &x.Conditions
64097				yym11 := z.DecBinary()
64098				_ = yym11
64099				if false {
64100				} else {
64101					h.decSliceComponentCondition((*[]ComponentCondition)(yyv10), d)
64102				}
64103			}
64104		default:
64105			z.DecStructFieldNotFound(-1, yys3)
64106		} // end switch yys3
64107	} // end for yyj3
64108	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
64109}
64110
64111func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
64112	var h codecSelfer1234
64113	z, r := codec1978.GenHelperDecoder(d)
64114	_, _, _ = h, z, r
64115	var yyj12 int
64116	var yyb12 bool
64117	var yyhl12 bool = l >= 0
64118	yyj12++
64119	if yyhl12 {
64120		yyb12 = yyj12 > l
64121	} else {
64122		yyb12 = r.CheckBreak()
64123	}
64124	if yyb12 {
64125		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
64126		return
64127	}
64128	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
64129	if r.TryDecodeAsNil() {
64130		x.Kind = ""
64131	} else {
64132		yyv13 := &x.Kind
64133		yym14 := z.DecBinary()
64134		_ = yym14
64135		if false {
64136		} else {
64137			*((*string)(yyv13)) = r.DecodeString()
64138		}
64139	}
64140	yyj12++
64141	if yyhl12 {
64142		yyb12 = yyj12 > l
64143	} else {
64144		yyb12 = r.CheckBreak()
64145	}
64146	if yyb12 {
64147		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
64148		return
64149	}
64150	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
64151	if r.TryDecodeAsNil() {
64152		x.APIVersion = ""
64153	} else {
64154		yyv15 := &x.APIVersion
64155		yym16 := z.DecBinary()
64156		_ = yym16
64157		if false {
64158		} else {
64159			*((*string)(yyv15)) = r.DecodeString()
64160		}
64161	}
64162	yyj12++
64163	if yyhl12 {
64164		yyb12 = yyj12 > l
64165	} else {
64166		yyb12 = r.CheckBreak()
64167	}
64168	if yyb12 {
64169		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
64170		return
64171	}
64172	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
64173	if r.TryDecodeAsNil() {
64174		x.ObjectMeta = pkg2_v1.ObjectMeta{}
64175	} else {
64176		yyv17 := &x.ObjectMeta
64177		yym18 := z.DecBinary()
64178		_ = yym18
64179		if false {
64180		} else if z.HasExtensions() && z.DecExt(yyv17) {
64181		} else {
64182			z.DecFallback(yyv17, false)
64183		}
64184	}
64185	yyj12++
64186	if yyhl12 {
64187		yyb12 = yyj12 > l
64188	} else {
64189		yyb12 = r.CheckBreak()
64190	}
64191	if yyb12 {
64192		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
64193		return
64194	}
64195	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
64196	if r.TryDecodeAsNil() {
64197		x.Conditions = nil
64198	} else {
64199		yyv19 := &x.Conditions
64200		yym20 := z.DecBinary()
64201		_ = yym20
64202		if false {
64203		} else {
64204			h.decSliceComponentCondition((*[]ComponentCondition)(yyv19), d)
64205		}
64206	}
64207	for {
64208		yyj12++
64209		if yyhl12 {
64210			yyb12 = yyj12 > l
64211		} else {
64212			yyb12 = r.CheckBreak()
64213		}
64214		if yyb12 {
64215			break
64216		}
64217		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
64218		z.DecStructFieldNotFound(yyj12-1, "")
64219	}
64220	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
64221}
64222
64223func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) {
64224	var h codecSelfer1234
64225	z, r := codec1978.GenHelperEncoder(e)
64226	_, _, _ = h, z, r
64227	if x == nil {
64228		r.EncodeNil()
64229	} else {
64230		yym1 := z.EncBinary()
64231		_ = yym1
64232		if false {
64233		} else if z.HasExtensions() && z.EncExt(x) {
64234		} else {
64235			yysep2 := !z.EncBinary()
64236			yy2arr2 := z.EncBasicHandle().StructToArray
64237			var yyq2 [4]bool
64238			_, _, _ = yysep2, yyq2, yy2arr2
64239			const yyr2 bool = false
64240			yyq2[0] = x.Kind != ""
64241			yyq2[1] = x.APIVersion != ""
64242			yyq2[2] = true
64243			var yynn2 int
64244			if yyr2 || yy2arr2 {
64245				r.EncodeArrayStart(4)
64246			} else {
64247				yynn2 = 1
64248				for _, b := range yyq2 {
64249					if b {
64250						yynn2++
64251					}
64252				}
64253				r.EncodeMapStart(yynn2)
64254				yynn2 = 0
64255			}
64256			if yyr2 || yy2arr2 {
64257				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
64258				if yyq2[0] {
64259					yym4 := z.EncBinary()
64260					_ = yym4
64261					if false {
64262					} else {
64263						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
64264					}
64265				} else {
64266					r.EncodeString(codecSelferC_UTF81234, "")
64267				}
64268			} else {
64269				if yyq2[0] {
64270					z.EncSendContainerState(codecSelfer_containerMapKey1234)
64271					r.EncodeString(codecSelferC_UTF81234, string("kind"))
64272					z.EncSendContainerState(codecSelfer_containerMapValue1234)
64273					yym5 := z.EncBinary()
64274					_ = yym5
64275					if false {
64276					} else {
64277						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
64278					}
64279				}
64280			}
64281			if yyr2 || yy2arr2 {
64282				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
64283				if yyq2[1] {
64284					yym7 := z.EncBinary()
64285					_ = yym7
64286					if false {
64287					} else {
64288						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
64289					}
64290				} else {
64291					r.EncodeString(codecSelferC_UTF81234, "")
64292				}
64293			} else {
64294				if yyq2[1] {
64295					z.EncSendContainerState(codecSelfer_containerMapKey1234)
64296					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
64297					z.EncSendContainerState(codecSelfer_containerMapValue1234)
64298					yym8 := z.EncBinary()
64299					_ = yym8
64300					if false {
64301					} else {
64302						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
64303					}
64304				}
64305			}
64306			if yyr2 || yy2arr2 {
64307				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
64308				if yyq2[2] {
64309					yy10 := &x.ListMeta
64310					yym11 := z.EncBinary()
64311					_ = yym11
64312					if false {
64313					} else if z.HasExtensions() && z.EncExt(yy10) {
64314					} else {
64315						z.EncFallback(yy10)
64316					}
64317				} else {
64318					r.EncodeNil()
64319				}
64320			} else {
64321				if yyq2[2] {
64322					z.EncSendContainerState(codecSelfer_containerMapKey1234)
64323					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
64324					z.EncSendContainerState(codecSelfer_containerMapValue1234)
64325					yy12 := &x.ListMeta
64326					yym13 := z.EncBinary()
64327					_ = yym13
64328					if false {
64329					} else if z.HasExtensions() && z.EncExt(yy12) {
64330					} else {
64331						z.EncFallback(yy12)
64332					}
64333				}
64334			}
64335			if yyr2 || yy2arr2 {
64336				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
64337				if x.Items == nil {
64338					r.EncodeNil()
64339				} else {
64340					yym15 := z.EncBinary()
64341					_ = yym15
64342					if false {
64343					} else {
64344						h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e)
64345					}
64346				}
64347			} else {
64348				z.EncSendContainerState(codecSelfer_containerMapKey1234)
64349				r.EncodeString(codecSelferC_UTF81234, string("items"))
64350				z.EncSendContainerState(codecSelfer_containerMapValue1234)
64351				if x.Items == nil {
64352					r.EncodeNil()
64353				} else {
64354					yym16 := z.EncBinary()
64355					_ = yym16
64356					if false {
64357					} else {
64358						h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e)
64359					}
64360				}
64361			}
64362			if yyr2 || yy2arr2 {
64363				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
64364			} else {
64365				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
64366			}
64367		}
64368	}
64369}
64370
64371func (x *ComponentStatusList) CodecDecodeSelf(d *codec1978.Decoder) {
64372	var h codecSelfer1234
64373	z, r := codec1978.GenHelperDecoder(d)
64374	_, _, _ = h, z, r
64375	yym1 := z.DecBinary()
64376	_ = yym1
64377	if false {
64378	} else if z.HasExtensions() && z.DecExt(x) {
64379	} else {
64380		yyct2 := r.ContainerType()
64381		if yyct2 == codecSelferValueTypeMap1234 {
64382			yyl2 := r.ReadMapStart()
64383			if yyl2 == 0 {
64384				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
64385			} else {
64386				x.codecDecodeSelfFromMap(yyl2, d)
64387			}
64388		} else if yyct2 == codecSelferValueTypeArray1234 {
64389			yyl2 := r.ReadArrayStart()
64390			if yyl2 == 0 {
64391				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
64392			} else {
64393				x.codecDecodeSelfFromArray(yyl2, d)
64394			}
64395		} else {
64396			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
64397		}
64398	}
64399}
64400
64401func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
64402	var h codecSelfer1234
64403	z, r := codec1978.GenHelperDecoder(d)
64404	_, _, _ = h, z, r
64405	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
64406	_ = yys3Slc
64407	var yyhl3 bool = l >= 0
64408	for yyj3 := 0; ; yyj3++ {
64409		if yyhl3 {
64410			if yyj3 >= l {
64411				break
64412			}
64413		} else {
64414			if r.CheckBreak() {
64415				break
64416			}
64417		}
64418		z.DecSendContainerState(codecSelfer_containerMapKey1234)
64419		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
64420		yys3 := string(yys3Slc)
64421		z.DecSendContainerState(codecSelfer_containerMapValue1234)
64422		switch yys3 {
64423		case "kind":
64424			if r.TryDecodeAsNil() {
64425				x.Kind = ""
64426			} else {
64427				yyv4 := &x.Kind
64428				yym5 := z.DecBinary()
64429				_ = yym5
64430				if false {
64431				} else {
64432					*((*string)(yyv4)) = r.DecodeString()
64433				}
64434			}
64435		case "apiVersion":
64436			if r.TryDecodeAsNil() {
64437				x.APIVersion = ""
64438			} else {
64439				yyv6 := &x.APIVersion
64440				yym7 := z.DecBinary()
64441				_ = yym7
64442				if false {
64443				} else {
64444					*((*string)(yyv6)) = r.DecodeString()
64445				}
64446			}
64447		case "metadata":
64448			if r.TryDecodeAsNil() {
64449				x.ListMeta = pkg2_v1.ListMeta{}
64450			} else {
64451				yyv8 := &x.ListMeta
64452				yym9 := z.DecBinary()
64453				_ = yym9
64454				if false {
64455				} else if z.HasExtensions() && z.DecExt(yyv8) {
64456				} else {
64457					z.DecFallback(yyv8, false)
64458				}
64459			}
64460		case "items":
64461			if r.TryDecodeAsNil() {
64462				x.Items = nil
64463			} else {
64464				yyv10 := &x.Items
64465				yym11 := z.DecBinary()
64466				_ = yym11
64467				if false {
64468				} else {
64469					h.decSliceComponentStatus((*[]ComponentStatus)(yyv10), d)
64470				}
64471			}
64472		default:
64473			z.DecStructFieldNotFound(-1, yys3)
64474		} // end switch yys3
64475	} // end for yyj3
64476	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
64477}
64478
64479func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
64480	var h codecSelfer1234
64481	z, r := codec1978.GenHelperDecoder(d)
64482	_, _, _ = h, z, r
64483	var yyj12 int
64484	var yyb12 bool
64485	var yyhl12 bool = l >= 0
64486	yyj12++
64487	if yyhl12 {
64488		yyb12 = yyj12 > l
64489	} else {
64490		yyb12 = r.CheckBreak()
64491	}
64492	if yyb12 {
64493		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
64494		return
64495	}
64496	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
64497	if r.TryDecodeAsNil() {
64498		x.Kind = ""
64499	} else {
64500		yyv13 := &x.Kind
64501		yym14 := z.DecBinary()
64502		_ = yym14
64503		if false {
64504		} else {
64505			*((*string)(yyv13)) = r.DecodeString()
64506		}
64507	}
64508	yyj12++
64509	if yyhl12 {
64510		yyb12 = yyj12 > l
64511	} else {
64512		yyb12 = r.CheckBreak()
64513	}
64514	if yyb12 {
64515		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
64516		return
64517	}
64518	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
64519	if r.TryDecodeAsNil() {
64520		x.APIVersion = ""
64521	} else {
64522		yyv15 := &x.APIVersion
64523		yym16 := z.DecBinary()
64524		_ = yym16
64525		if false {
64526		} else {
64527			*((*string)(yyv15)) = r.DecodeString()
64528		}
64529	}
64530	yyj12++
64531	if yyhl12 {
64532		yyb12 = yyj12 > l
64533	} else {
64534		yyb12 = r.CheckBreak()
64535	}
64536	if yyb12 {
64537		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
64538		return
64539	}
64540	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
64541	if r.TryDecodeAsNil() {
64542		x.ListMeta = pkg2_v1.ListMeta{}
64543	} else {
64544		yyv17 := &x.ListMeta
64545		yym18 := z.DecBinary()
64546		_ = yym18
64547		if false {
64548		} else if z.HasExtensions() && z.DecExt(yyv17) {
64549		} else {
64550			z.DecFallback(yyv17, false)
64551		}
64552	}
64553	yyj12++
64554	if yyhl12 {
64555		yyb12 = yyj12 > l
64556	} else {
64557		yyb12 = r.CheckBreak()
64558	}
64559	if yyb12 {
64560		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
64561		return
64562	}
64563	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
64564	if r.TryDecodeAsNil() {
64565		x.Items = nil
64566	} else {
64567		yyv19 := &x.Items
64568		yym20 := z.DecBinary()
64569		_ = yym20
64570		if false {
64571		} else {
64572			h.decSliceComponentStatus((*[]ComponentStatus)(yyv19), d)
64573		}
64574	}
64575	for {
64576		yyj12++
64577		if yyhl12 {
64578			yyb12 = yyj12 > l
64579		} else {
64580			yyb12 = r.CheckBreak()
64581		}
64582		if yyb12 {
64583			break
64584		}
64585		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
64586		z.DecStructFieldNotFound(yyj12-1, "")
64587	}
64588	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
64589}
64590
64591func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
64592	var h codecSelfer1234
64593	z, r := codec1978.GenHelperEncoder(e)
64594	_, _, _ = h, z, r
64595	if x == nil {
64596		r.EncodeNil()
64597	} else {
64598		yym1 := z.EncBinary()
64599		_ = yym1
64600		if false {
64601		} else if z.HasExtensions() && z.EncExt(x) {
64602		} else {
64603			yysep2 := !z.EncBinary()
64604			yy2arr2 := z.EncBasicHandle().StructToArray
64605			var yyq2 [2]bool
64606			_, _, _ = yysep2, yyq2, yy2arr2
64607			const yyr2 bool = false
64608			yyq2[0] = len(x.Items) != 0
64609			yyq2[1] = x.DefaultMode != nil
64610			var yynn2 int
64611			if yyr2 || yy2arr2 {
64612				r.EncodeArrayStart(2)
64613			} else {
64614				yynn2 = 0
64615				for _, b := range yyq2 {
64616					if b {
64617						yynn2++
64618					}
64619				}
64620				r.EncodeMapStart(yynn2)
64621				yynn2 = 0
64622			}
64623			if yyr2 || yy2arr2 {
64624				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
64625				if yyq2[0] {
64626					if x.Items == nil {
64627						r.EncodeNil()
64628					} else {
64629						yym4 := z.EncBinary()
64630						_ = yym4
64631						if false {
64632						} else {
64633							h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
64634						}
64635					}
64636				} else {
64637					r.EncodeNil()
64638				}
64639			} else {
64640				if yyq2[0] {
64641					z.EncSendContainerState(codecSelfer_containerMapKey1234)
64642					r.EncodeString(codecSelferC_UTF81234, string("items"))
64643					z.EncSendContainerState(codecSelfer_containerMapValue1234)
64644					if x.Items == nil {
64645						r.EncodeNil()
64646					} else {
64647						yym5 := z.EncBinary()
64648						_ = yym5
64649						if false {
64650						} else {
64651							h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
64652						}
64653					}
64654				}
64655			}
64656			if yyr2 || yy2arr2 {
64657				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
64658				if yyq2[1] {
64659					if x.DefaultMode == nil {
64660						r.EncodeNil()
64661					} else {
64662						yy7 := *x.DefaultMode
64663						yym8 := z.EncBinary()
64664						_ = yym8
64665						if false {
64666						} else {
64667							r.EncodeInt(int64(yy7))
64668						}
64669					}
64670				} else {
64671					r.EncodeNil()
64672				}
64673			} else {
64674				if yyq2[1] {
64675					z.EncSendContainerState(codecSelfer_containerMapKey1234)
64676					r.EncodeString(codecSelferC_UTF81234, string("defaultMode"))
64677					z.EncSendContainerState(codecSelfer_containerMapValue1234)
64678					if x.DefaultMode == nil {
64679						r.EncodeNil()
64680					} else {
64681						yy9 := *x.DefaultMode
64682						yym10 := z.EncBinary()
64683						_ = yym10
64684						if false {
64685						} else {
64686							r.EncodeInt(int64(yy9))
64687						}
64688					}
64689				}
64690			}
64691			if yyr2 || yy2arr2 {
64692				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
64693			} else {
64694				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
64695			}
64696		}
64697	}
64698}
64699
64700func (x *DownwardAPIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
64701	var h codecSelfer1234
64702	z, r := codec1978.GenHelperDecoder(d)
64703	_, _, _ = h, z, r
64704	yym1 := z.DecBinary()
64705	_ = yym1
64706	if false {
64707	} else if z.HasExtensions() && z.DecExt(x) {
64708	} else {
64709		yyct2 := r.ContainerType()
64710		if yyct2 == codecSelferValueTypeMap1234 {
64711			yyl2 := r.ReadMapStart()
64712			if yyl2 == 0 {
64713				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
64714			} else {
64715				x.codecDecodeSelfFromMap(yyl2, d)
64716			}
64717		} else if yyct2 == codecSelferValueTypeArray1234 {
64718			yyl2 := r.ReadArrayStart()
64719			if yyl2 == 0 {
64720				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
64721			} else {
64722				x.codecDecodeSelfFromArray(yyl2, d)
64723			}
64724		} else {
64725			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
64726		}
64727	}
64728}
64729
64730func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
64731	var h codecSelfer1234
64732	z, r := codec1978.GenHelperDecoder(d)
64733	_, _, _ = h, z, r
64734	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
64735	_ = yys3Slc
64736	var yyhl3 bool = l >= 0
64737	for yyj3 := 0; ; yyj3++ {
64738		if yyhl3 {
64739			if yyj3 >= l {
64740				break
64741			}
64742		} else {
64743			if r.CheckBreak() {
64744				break
64745			}
64746		}
64747		z.DecSendContainerState(codecSelfer_containerMapKey1234)
64748		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
64749		yys3 := string(yys3Slc)
64750		z.DecSendContainerState(codecSelfer_containerMapValue1234)
64751		switch yys3 {
64752		case "items":
64753			if r.TryDecodeAsNil() {
64754				x.Items = nil
64755			} else {
64756				yyv4 := &x.Items
64757				yym5 := z.DecBinary()
64758				_ = yym5
64759				if false {
64760				} else {
64761					h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv4), d)
64762				}
64763			}
64764		case "defaultMode":
64765			if r.TryDecodeAsNil() {
64766				if x.DefaultMode != nil {
64767					x.DefaultMode = nil
64768				}
64769			} else {
64770				if x.DefaultMode == nil {
64771					x.DefaultMode = new(int32)
64772				}
64773				yym7 := z.DecBinary()
64774				_ = yym7
64775				if false {
64776				} else {
64777					*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
64778				}
64779			}
64780		default:
64781			z.DecStructFieldNotFound(-1, yys3)
64782		} // end switch yys3
64783	} // end for yyj3
64784	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
64785}
64786
64787func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
64788	var h codecSelfer1234
64789	z, r := codec1978.GenHelperDecoder(d)
64790	_, _, _ = h, z, r
64791	var yyj8 int
64792	var yyb8 bool
64793	var yyhl8 bool = l >= 0
64794	yyj8++
64795	if yyhl8 {
64796		yyb8 = yyj8 > l
64797	} else {
64798		yyb8 = r.CheckBreak()
64799	}
64800	if yyb8 {
64801		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
64802		return
64803	}
64804	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
64805	if r.TryDecodeAsNil() {
64806		x.Items = nil
64807	} else {
64808		yyv9 := &x.Items
64809		yym10 := z.DecBinary()
64810		_ = yym10
64811		if false {
64812		} else {
64813			h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv9), d)
64814		}
64815	}
64816	yyj8++
64817	if yyhl8 {
64818		yyb8 = yyj8 > l
64819	} else {
64820		yyb8 = r.CheckBreak()
64821	}
64822	if yyb8 {
64823		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
64824		return
64825	}
64826	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
64827	if r.TryDecodeAsNil() {
64828		if x.DefaultMode != nil {
64829			x.DefaultMode = nil
64830		}
64831	} else {
64832		if x.DefaultMode == nil {
64833			x.DefaultMode = new(int32)
64834		}
64835		yym12 := z.DecBinary()
64836		_ = yym12
64837		if false {
64838		} else {
64839			*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
64840		}
64841	}
64842	for {
64843		yyj8++
64844		if yyhl8 {
64845			yyb8 = yyj8 > l
64846		} else {
64847			yyb8 = r.CheckBreak()
64848		}
64849		if yyb8 {
64850			break
64851		}
64852		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
64853		z.DecStructFieldNotFound(yyj8-1, "")
64854	}
64855	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
64856}
64857
64858func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) {
64859	var h codecSelfer1234
64860	z, r := codec1978.GenHelperEncoder(e)
64861	_, _, _ = h, z, r
64862	if x == nil {
64863		r.EncodeNil()
64864	} else {
64865		yym1 := z.EncBinary()
64866		_ = yym1
64867		if false {
64868		} else if z.HasExtensions() && z.EncExt(x) {
64869		} else {
64870			yysep2 := !z.EncBinary()
64871			yy2arr2 := z.EncBasicHandle().StructToArray
64872			var yyq2 [4]bool
64873			_, _, _ = yysep2, yyq2, yy2arr2
64874			const yyr2 bool = false
64875			yyq2[1] = x.FieldRef != nil
64876			yyq2[2] = x.ResourceFieldRef != nil
64877			yyq2[3] = x.Mode != nil
64878			var yynn2 int
64879			if yyr2 || yy2arr2 {
64880				r.EncodeArrayStart(4)
64881			} else {
64882				yynn2 = 1
64883				for _, b := range yyq2 {
64884					if b {
64885						yynn2++
64886					}
64887				}
64888				r.EncodeMapStart(yynn2)
64889				yynn2 = 0
64890			}
64891			if yyr2 || yy2arr2 {
64892				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
64893				yym4 := z.EncBinary()
64894				_ = yym4
64895				if false {
64896				} else {
64897					r.EncodeString(codecSelferC_UTF81234, string(x.Path))
64898				}
64899			} else {
64900				z.EncSendContainerState(codecSelfer_containerMapKey1234)
64901				r.EncodeString(codecSelferC_UTF81234, string("path"))
64902				z.EncSendContainerState(codecSelfer_containerMapValue1234)
64903				yym5 := z.EncBinary()
64904				_ = yym5
64905				if false {
64906				} else {
64907					r.EncodeString(codecSelferC_UTF81234, string(x.Path))
64908				}
64909			}
64910			if yyr2 || yy2arr2 {
64911				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
64912				if yyq2[1] {
64913					if x.FieldRef == nil {
64914						r.EncodeNil()
64915					} else {
64916						x.FieldRef.CodecEncodeSelf(e)
64917					}
64918				} else {
64919					r.EncodeNil()
64920				}
64921			} else {
64922				if yyq2[1] {
64923					z.EncSendContainerState(codecSelfer_containerMapKey1234)
64924					r.EncodeString(codecSelferC_UTF81234, string("fieldRef"))
64925					z.EncSendContainerState(codecSelfer_containerMapValue1234)
64926					if x.FieldRef == nil {
64927						r.EncodeNil()
64928					} else {
64929						x.FieldRef.CodecEncodeSelf(e)
64930					}
64931				}
64932			}
64933			if yyr2 || yy2arr2 {
64934				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
64935				if yyq2[2] {
64936					if x.ResourceFieldRef == nil {
64937						r.EncodeNil()
64938					} else {
64939						x.ResourceFieldRef.CodecEncodeSelf(e)
64940					}
64941				} else {
64942					r.EncodeNil()
64943				}
64944			} else {
64945				if yyq2[2] {
64946					z.EncSendContainerState(codecSelfer_containerMapKey1234)
64947					r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef"))
64948					z.EncSendContainerState(codecSelfer_containerMapValue1234)
64949					if x.ResourceFieldRef == nil {
64950						r.EncodeNil()
64951					} else {
64952						x.ResourceFieldRef.CodecEncodeSelf(e)
64953					}
64954				}
64955			}
64956			if yyr2 || yy2arr2 {
64957				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
64958				if yyq2[3] {
64959					if x.Mode == nil {
64960						r.EncodeNil()
64961					} else {
64962						yy13 := *x.Mode
64963						yym14 := z.EncBinary()
64964						_ = yym14
64965						if false {
64966						} else {
64967							r.EncodeInt(int64(yy13))
64968						}
64969					}
64970				} else {
64971					r.EncodeNil()
64972				}
64973			} else {
64974				if yyq2[3] {
64975					z.EncSendContainerState(codecSelfer_containerMapKey1234)
64976					r.EncodeString(codecSelferC_UTF81234, string("mode"))
64977					z.EncSendContainerState(codecSelfer_containerMapValue1234)
64978					if x.Mode == nil {
64979						r.EncodeNil()
64980					} else {
64981						yy15 := *x.Mode
64982						yym16 := z.EncBinary()
64983						_ = yym16
64984						if false {
64985						} else {
64986							r.EncodeInt(int64(yy15))
64987						}
64988					}
64989				}
64990			}
64991			if yyr2 || yy2arr2 {
64992				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
64993			} else {
64994				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
64995			}
64996		}
64997	}
64998}
64999
65000func (x *DownwardAPIVolumeFile) CodecDecodeSelf(d *codec1978.Decoder) {
65001	var h codecSelfer1234
65002	z, r := codec1978.GenHelperDecoder(d)
65003	_, _, _ = h, z, r
65004	yym1 := z.DecBinary()
65005	_ = yym1
65006	if false {
65007	} else if z.HasExtensions() && z.DecExt(x) {
65008	} else {
65009		yyct2 := r.ContainerType()
65010		if yyct2 == codecSelferValueTypeMap1234 {
65011			yyl2 := r.ReadMapStart()
65012			if yyl2 == 0 {
65013				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
65014			} else {
65015				x.codecDecodeSelfFromMap(yyl2, d)
65016			}
65017		} else if yyct2 == codecSelferValueTypeArray1234 {
65018			yyl2 := r.ReadArrayStart()
65019			if yyl2 == 0 {
65020				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
65021			} else {
65022				x.codecDecodeSelfFromArray(yyl2, d)
65023			}
65024		} else {
65025			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
65026		}
65027	}
65028}
65029
65030func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
65031	var h codecSelfer1234
65032	z, r := codec1978.GenHelperDecoder(d)
65033	_, _, _ = h, z, r
65034	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
65035	_ = yys3Slc
65036	var yyhl3 bool = l >= 0
65037	for yyj3 := 0; ; yyj3++ {
65038		if yyhl3 {
65039			if yyj3 >= l {
65040				break
65041			}
65042		} else {
65043			if r.CheckBreak() {
65044				break
65045			}
65046		}
65047		z.DecSendContainerState(codecSelfer_containerMapKey1234)
65048		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
65049		yys3 := string(yys3Slc)
65050		z.DecSendContainerState(codecSelfer_containerMapValue1234)
65051		switch yys3 {
65052		case "path":
65053			if r.TryDecodeAsNil() {
65054				x.Path = ""
65055			} else {
65056				yyv4 := &x.Path
65057				yym5 := z.DecBinary()
65058				_ = yym5
65059				if false {
65060				} else {
65061					*((*string)(yyv4)) = r.DecodeString()
65062				}
65063			}
65064		case "fieldRef":
65065			if r.TryDecodeAsNil() {
65066				if x.FieldRef != nil {
65067					x.FieldRef = nil
65068				}
65069			} else {
65070				if x.FieldRef == nil {
65071					x.FieldRef = new(ObjectFieldSelector)
65072				}
65073				x.FieldRef.CodecDecodeSelf(d)
65074			}
65075		case "resourceFieldRef":
65076			if r.TryDecodeAsNil() {
65077				if x.ResourceFieldRef != nil {
65078					x.ResourceFieldRef = nil
65079				}
65080			} else {
65081				if x.ResourceFieldRef == nil {
65082					x.ResourceFieldRef = new(ResourceFieldSelector)
65083				}
65084				x.ResourceFieldRef.CodecDecodeSelf(d)
65085			}
65086		case "mode":
65087			if r.TryDecodeAsNil() {
65088				if x.Mode != nil {
65089					x.Mode = nil
65090				}
65091			} else {
65092				if x.Mode == nil {
65093					x.Mode = new(int32)
65094				}
65095				yym9 := z.DecBinary()
65096				_ = yym9
65097				if false {
65098				} else {
65099					*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
65100				}
65101			}
65102		default:
65103			z.DecStructFieldNotFound(-1, yys3)
65104		} // end switch yys3
65105	} // end for yyj3
65106	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
65107}
65108
65109func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
65110	var h codecSelfer1234
65111	z, r := codec1978.GenHelperDecoder(d)
65112	_, _, _ = h, z, r
65113	var yyj10 int
65114	var yyb10 bool
65115	var yyhl10 bool = l >= 0
65116	yyj10++
65117	if yyhl10 {
65118		yyb10 = yyj10 > l
65119	} else {
65120		yyb10 = r.CheckBreak()
65121	}
65122	if yyb10 {
65123		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
65124		return
65125	}
65126	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
65127	if r.TryDecodeAsNil() {
65128		x.Path = ""
65129	} else {
65130		yyv11 := &x.Path
65131		yym12 := z.DecBinary()
65132		_ = yym12
65133		if false {
65134		} else {
65135			*((*string)(yyv11)) = r.DecodeString()
65136		}
65137	}
65138	yyj10++
65139	if yyhl10 {
65140		yyb10 = yyj10 > l
65141	} else {
65142		yyb10 = r.CheckBreak()
65143	}
65144	if yyb10 {
65145		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
65146		return
65147	}
65148	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
65149	if r.TryDecodeAsNil() {
65150		if x.FieldRef != nil {
65151			x.FieldRef = nil
65152		}
65153	} else {
65154		if x.FieldRef == nil {
65155			x.FieldRef = new(ObjectFieldSelector)
65156		}
65157		x.FieldRef.CodecDecodeSelf(d)
65158	}
65159	yyj10++
65160	if yyhl10 {
65161		yyb10 = yyj10 > l
65162	} else {
65163		yyb10 = r.CheckBreak()
65164	}
65165	if yyb10 {
65166		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
65167		return
65168	}
65169	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
65170	if r.TryDecodeAsNil() {
65171		if x.ResourceFieldRef != nil {
65172			x.ResourceFieldRef = nil
65173		}
65174	} else {
65175		if x.ResourceFieldRef == nil {
65176			x.ResourceFieldRef = new(ResourceFieldSelector)
65177		}
65178		x.ResourceFieldRef.CodecDecodeSelf(d)
65179	}
65180	yyj10++
65181	if yyhl10 {
65182		yyb10 = yyj10 > l
65183	} else {
65184		yyb10 = r.CheckBreak()
65185	}
65186	if yyb10 {
65187		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
65188		return
65189	}
65190	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
65191	if r.TryDecodeAsNil() {
65192		if x.Mode != nil {
65193			x.Mode = nil
65194		}
65195	} else {
65196		if x.Mode == nil {
65197			x.Mode = new(int32)
65198		}
65199		yym16 := z.DecBinary()
65200		_ = yym16
65201		if false {
65202		} else {
65203			*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
65204		}
65205	}
65206	for {
65207		yyj10++
65208		if yyhl10 {
65209			yyb10 = yyj10 > l
65210		} else {
65211			yyb10 = r.CheckBreak()
65212		}
65213		if yyb10 {
65214			break
65215		}
65216		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
65217		z.DecStructFieldNotFound(yyj10-1, "")
65218	}
65219	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
65220}
65221
65222func (x *DownwardAPIProjection) CodecEncodeSelf(e *codec1978.Encoder) {
65223	var h codecSelfer1234
65224	z, r := codec1978.GenHelperEncoder(e)
65225	_, _, _ = h, z, r
65226	if x == nil {
65227		r.EncodeNil()
65228	} else {
65229		yym1 := z.EncBinary()
65230		_ = yym1
65231		if false {
65232		} else if z.HasExtensions() && z.EncExt(x) {
65233		} else {
65234			yysep2 := !z.EncBinary()
65235			yy2arr2 := z.EncBasicHandle().StructToArray
65236			var yyq2 [1]bool
65237			_, _, _ = yysep2, yyq2, yy2arr2
65238			const yyr2 bool = false
65239			yyq2[0] = len(x.Items) != 0
65240			var yynn2 int
65241			if yyr2 || yy2arr2 {
65242				r.EncodeArrayStart(1)
65243			} else {
65244				yynn2 = 0
65245				for _, b := range yyq2 {
65246					if b {
65247						yynn2++
65248					}
65249				}
65250				r.EncodeMapStart(yynn2)
65251				yynn2 = 0
65252			}
65253			if yyr2 || yy2arr2 {
65254				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
65255				if yyq2[0] {
65256					if x.Items == nil {
65257						r.EncodeNil()
65258					} else {
65259						yym4 := z.EncBinary()
65260						_ = yym4
65261						if false {
65262						} else {
65263							h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
65264						}
65265					}
65266				} else {
65267					r.EncodeNil()
65268				}
65269			} else {
65270				if yyq2[0] {
65271					z.EncSendContainerState(codecSelfer_containerMapKey1234)
65272					r.EncodeString(codecSelferC_UTF81234, string("items"))
65273					z.EncSendContainerState(codecSelfer_containerMapValue1234)
65274					if x.Items == nil {
65275						r.EncodeNil()
65276					} else {
65277						yym5 := z.EncBinary()
65278						_ = yym5
65279						if false {
65280						} else {
65281							h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
65282						}
65283					}
65284				}
65285			}
65286			if yyr2 || yy2arr2 {
65287				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
65288			} else {
65289				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
65290			}
65291		}
65292	}
65293}
65294
65295func (x *DownwardAPIProjection) CodecDecodeSelf(d *codec1978.Decoder) {
65296	var h codecSelfer1234
65297	z, r := codec1978.GenHelperDecoder(d)
65298	_, _, _ = h, z, r
65299	yym1 := z.DecBinary()
65300	_ = yym1
65301	if false {
65302	} else if z.HasExtensions() && z.DecExt(x) {
65303	} else {
65304		yyct2 := r.ContainerType()
65305		if yyct2 == codecSelferValueTypeMap1234 {
65306			yyl2 := r.ReadMapStart()
65307			if yyl2 == 0 {
65308				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
65309			} else {
65310				x.codecDecodeSelfFromMap(yyl2, d)
65311			}
65312		} else if yyct2 == codecSelferValueTypeArray1234 {
65313			yyl2 := r.ReadArrayStart()
65314			if yyl2 == 0 {
65315				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
65316			} else {
65317				x.codecDecodeSelfFromArray(yyl2, d)
65318			}
65319		} else {
65320			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
65321		}
65322	}
65323}
65324
65325func (x *DownwardAPIProjection) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
65326	var h codecSelfer1234
65327	z, r := codec1978.GenHelperDecoder(d)
65328	_, _, _ = h, z, r
65329	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
65330	_ = yys3Slc
65331	var yyhl3 bool = l >= 0
65332	for yyj3 := 0; ; yyj3++ {
65333		if yyhl3 {
65334			if yyj3 >= l {
65335				break
65336			}
65337		} else {
65338			if r.CheckBreak() {
65339				break
65340			}
65341		}
65342		z.DecSendContainerState(codecSelfer_containerMapKey1234)
65343		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
65344		yys3 := string(yys3Slc)
65345		z.DecSendContainerState(codecSelfer_containerMapValue1234)
65346		switch yys3 {
65347		case "items":
65348			if r.TryDecodeAsNil() {
65349				x.Items = nil
65350			} else {
65351				yyv4 := &x.Items
65352				yym5 := z.DecBinary()
65353				_ = yym5
65354				if false {
65355				} else {
65356					h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv4), d)
65357				}
65358			}
65359		default:
65360			z.DecStructFieldNotFound(-1, yys3)
65361		} // end switch yys3
65362	} // end for yyj3
65363	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
65364}
65365
65366func (x *DownwardAPIProjection) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
65367	var h codecSelfer1234
65368	z, r := codec1978.GenHelperDecoder(d)
65369	_, _, _ = h, z, r
65370	var yyj6 int
65371	var yyb6 bool
65372	var yyhl6 bool = l >= 0
65373	yyj6++
65374	if yyhl6 {
65375		yyb6 = yyj6 > l
65376	} else {
65377		yyb6 = r.CheckBreak()
65378	}
65379	if yyb6 {
65380		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
65381		return
65382	}
65383	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
65384	if r.TryDecodeAsNil() {
65385		x.Items = nil
65386	} else {
65387		yyv7 := &x.Items
65388		yym8 := z.DecBinary()
65389		_ = yym8
65390		if false {
65391		} else {
65392			h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv7), d)
65393		}
65394	}
65395	for {
65396		yyj6++
65397		if yyhl6 {
65398			yyb6 = yyj6 > l
65399		} else {
65400			yyb6 = r.CheckBreak()
65401		}
65402		if yyb6 {
65403			break
65404		}
65405		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
65406		z.DecStructFieldNotFound(yyj6-1, "")
65407	}
65408	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
65409}
65410
65411func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) {
65412	var h codecSelfer1234
65413	z, r := codec1978.GenHelperEncoder(e)
65414	_, _, _ = h, z, r
65415	if x == nil {
65416		r.EncodeNil()
65417	} else {
65418		yym1 := z.EncBinary()
65419		_ = yym1
65420		if false {
65421		} else if z.HasExtensions() && z.EncExt(x) {
65422		} else {
65423			yysep2 := !z.EncBinary()
65424			yy2arr2 := z.EncBasicHandle().StructToArray
65425			var yyq2 [6]bool
65426			_, _, _ = yysep2, yyq2, yy2arr2
65427			const yyr2 bool = false
65428			yyq2[0] = x.Capabilities != nil
65429			yyq2[1] = x.Privileged != nil
65430			yyq2[2] = x.SELinuxOptions != nil
65431			yyq2[3] = x.RunAsUser != nil
65432			yyq2[4] = x.RunAsNonRoot != nil
65433			yyq2[5] = x.ReadOnlyRootFilesystem != nil
65434			var yynn2 int
65435			if yyr2 || yy2arr2 {
65436				r.EncodeArrayStart(6)
65437			} else {
65438				yynn2 = 0
65439				for _, b := range yyq2 {
65440					if b {
65441						yynn2++
65442					}
65443				}
65444				r.EncodeMapStart(yynn2)
65445				yynn2 = 0
65446			}
65447			if yyr2 || yy2arr2 {
65448				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
65449				if yyq2[0] {
65450					if x.Capabilities == nil {
65451						r.EncodeNil()
65452					} else {
65453						x.Capabilities.CodecEncodeSelf(e)
65454					}
65455				} else {
65456					r.EncodeNil()
65457				}
65458			} else {
65459				if yyq2[0] {
65460					z.EncSendContainerState(codecSelfer_containerMapKey1234)
65461					r.EncodeString(codecSelferC_UTF81234, string("capabilities"))
65462					z.EncSendContainerState(codecSelfer_containerMapValue1234)
65463					if x.Capabilities == nil {
65464						r.EncodeNil()
65465					} else {
65466						x.Capabilities.CodecEncodeSelf(e)
65467					}
65468				}
65469			}
65470			if yyr2 || yy2arr2 {
65471				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
65472				if yyq2[1] {
65473					if x.Privileged == nil {
65474						r.EncodeNil()
65475					} else {
65476						yy7 := *x.Privileged
65477						yym8 := z.EncBinary()
65478						_ = yym8
65479						if false {
65480						} else {
65481							r.EncodeBool(bool(yy7))
65482						}
65483					}
65484				} else {
65485					r.EncodeNil()
65486				}
65487			} else {
65488				if yyq2[1] {
65489					z.EncSendContainerState(codecSelfer_containerMapKey1234)
65490					r.EncodeString(codecSelferC_UTF81234, string("privileged"))
65491					z.EncSendContainerState(codecSelfer_containerMapValue1234)
65492					if x.Privileged == nil {
65493						r.EncodeNil()
65494					} else {
65495						yy9 := *x.Privileged
65496						yym10 := z.EncBinary()
65497						_ = yym10
65498						if false {
65499						} else {
65500							r.EncodeBool(bool(yy9))
65501						}
65502					}
65503				}
65504			}
65505			if yyr2 || yy2arr2 {
65506				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
65507				if yyq2[2] {
65508					if x.SELinuxOptions == nil {
65509						r.EncodeNil()
65510					} else {
65511						x.SELinuxOptions.CodecEncodeSelf(e)
65512					}
65513				} else {
65514					r.EncodeNil()
65515				}
65516			} else {
65517				if yyq2[2] {
65518					z.EncSendContainerState(codecSelfer_containerMapKey1234)
65519					r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions"))
65520					z.EncSendContainerState(codecSelfer_containerMapValue1234)
65521					if x.SELinuxOptions == nil {
65522						r.EncodeNil()
65523					} else {
65524						x.SELinuxOptions.CodecEncodeSelf(e)
65525					}
65526				}
65527			}
65528			if yyr2 || yy2arr2 {
65529				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
65530				if yyq2[3] {
65531					if x.RunAsUser == nil {
65532						r.EncodeNil()
65533					} else {
65534						yy15 := *x.RunAsUser
65535						yym16 := z.EncBinary()
65536						_ = yym16
65537						if false {
65538						} else {
65539							r.EncodeInt(int64(yy15))
65540						}
65541					}
65542				} else {
65543					r.EncodeNil()
65544				}
65545			} else {
65546				if yyq2[3] {
65547					z.EncSendContainerState(codecSelfer_containerMapKey1234)
65548					r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
65549					z.EncSendContainerState(codecSelfer_containerMapValue1234)
65550					if x.RunAsUser == nil {
65551						r.EncodeNil()
65552					} else {
65553						yy17 := *x.RunAsUser
65554						yym18 := z.EncBinary()
65555						_ = yym18
65556						if false {
65557						} else {
65558							r.EncodeInt(int64(yy17))
65559						}
65560					}
65561				}
65562			}
65563			if yyr2 || yy2arr2 {
65564				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
65565				if yyq2[4] {
65566					if x.RunAsNonRoot == nil {
65567						r.EncodeNil()
65568					} else {
65569						yy20 := *x.RunAsNonRoot
65570						yym21 := z.EncBinary()
65571						_ = yym21
65572						if false {
65573						} else {
65574							r.EncodeBool(bool(yy20))
65575						}
65576					}
65577				} else {
65578					r.EncodeNil()
65579				}
65580			} else {
65581				if yyq2[4] {
65582					z.EncSendContainerState(codecSelfer_containerMapKey1234)
65583					r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
65584					z.EncSendContainerState(codecSelfer_containerMapValue1234)
65585					if x.RunAsNonRoot == nil {
65586						r.EncodeNil()
65587					} else {
65588						yy22 := *x.RunAsNonRoot
65589						yym23 := z.EncBinary()
65590						_ = yym23
65591						if false {
65592						} else {
65593							r.EncodeBool(bool(yy22))
65594						}
65595					}
65596				}
65597			}
65598			if yyr2 || yy2arr2 {
65599				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
65600				if yyq2[5] {
65601					if x.ReadOnlyRootFilesystem == nil {
65602						r.EncodeNil()
65603					} else {
65604						yy25 := *x.ReadOnlyRootFilesystem
65605						yym26 := z.EncBinary()
65606						_ = yym26
65607						if false {
65608						} else {
65609							r.EncodeBool(bool(yy25))
65610						}
65611					}
65612				} else {
65613					r.EncodeNil()
65614				}
65615			} else {
65616				if yyq2[5] {
65617					z.EncSendContainerState(codecSelfer_containerMapKey1234)
65618					r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem"))
65619					z.EncSendContainerState(codecSelfer_containerMapValue1234)
65620					if x.ReadOnlyRootFilesystem == nil {
65621						r.EncodeNil()
65622					} else {
65623						yy27 := *x.ReadOnlyRootFilesystem
65624						yym28 := z.EncBinary()
65625						_ = yym28
65626						if false {
65627						} else {
65628							r.EncodeBool(bool(yy27))
65629						}
65630					}
65631				}
65632			}
65633			if yyr2 || yy2arr2 {
65634				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
65635			} else {
65636				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
65637			}
65638		}
65639	}
65640}
65641
65642func (x *SecurityContext) CodecDecodeSelf(d *codec1978.Decoder) {
65643	var h codecSelfer1234
65644	z, r := codec1978.GenHelperDecoder(d)
65645	_, _, _ = h, z, r
65646	yym1 := z.DecBinary()
65647	_ = yym1
65648	if false {
65649	} else if z.HasExtensions() && z.DecExt(x) {
65650	} else {
65651		yyct2 := r.ContainerType()
65652		if yyct2 == codecSelferValueTypeMap1234 {
65653			yyl2 := r.ReadMapStart()
65654			if yyl2 == 0 {
65655				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
65656			} else {
65657				x.codecDecodeSelfFromMap(yyl2, d)
65658			}
65659		} else if yyct2 == codecSelferValueTypeArray1234 {
65660			yyl2 := r.ReadArrayStart()
65661			if yyl2 == 0 {
65662				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
65663			} else {
65664				x.codecDecodeSelfFromArray(yyl2, d)
65665			}
65666		} else {
65667			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
65668		}
65669	}
65670}
65671
65672func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
65673	var h codecSelfer1234
65674	z, r := codec1978.GenHelperDecoder(d)
65675	_, _, _ = h, z, r
65676	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
65677	_ = yys3Slc
65678	var yyhl3 bool = l >= 0
65679	for yyj3 := 0; ; yyj3++ {
65680		if yyhl3 {
65681			if yyj3 >= l {
65682				break
65683			}
65684		} else {
65685			if r.CheckBreak() {
65686				break
65687			}
65688		}
65689		z.DecSendContainerState(codecSelfer_containerMapKey1234)
65690		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
65691		yys3 := string(yys3Slc)
65692		z.DecSendContainerState(codecSelfer_containerMapValue1234)
65693		switch yys3 {
65694		case "capabilities":
65695			if r.TryDecodeAsNil() {
65696				if x.Capabilities != nil {
65697					x.Capabilities = nil
65698				}
65699			} else {
65700				if x.Capabilities == nil {
65701					x.Capabilities = new(Capabilities)
65702				}
65703				x.Capabilities.CodecDecodeSelf(d)
65704			}
65705		case "privileged":
65706			if r.TryDecodeAsNil() {
65707				if x.Privileged != nil {
65708					x.Privileged = nil
65709				}
65710			} else {
65711				if x.Privileged == nil {
65712					x.Privileged = new(bool)
65713				}
65714				yym6 := z.DecBinary()
65715				_ = yym6
65716				if false {
65717				} else {
65718					*((*bool)(x.Privileged)) = r.DecodeBool()
65719				}
65720			}
65721		case "seLinuxOptions":
65722			if r.TryDecodeAsNil() {
65723				if x.SELinuxOptions != nil {
65724					x.SELinuxOptions = nil
65725				}
65726			} else {
65727				if x.SELinuxOptions == nil {
65728					x.SELinuxOptions = new(SELinuxOptions)
65729				}
65730				x.SELinuxOptions.CodecDecodeSelf(d)
65731			}
65732		case "runAsUser":
65733			if r.TryDecodeAsNil() {
65734				if x.RunAsUser != nil {
65735					x.RunAsUser = nil
65736				}
65737			} else {
65738				if x.RunAsUser == nil {
65739					x.RunAsUser = new(int64)
65740				}
65741				yym9 := z.DecBinary()
65742				_ = yym9
65743				if false {
65744				} else {
65745					*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
65746				}
65747			}
65748		case "runAsNonRoot":
65749			if r.TryDecodeAsNil() {
65750				if x.RunAsNonRoot != nil {
65751					x.RunAsNonRoot = nil
65752				}
65753			} else {
65754				if x.RunAsNonRoot == nil {
65755					x.RunAsNonRoot = new(bool)
65756				}
65757				yym11 := z.DecBinary()
65758				_ = yym11
65759				if false {
65760				} else {
65761					*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
65762				}
65763			}
65764		case "readOnlyRootFilesystem":
65765			if r.TryDecodeAsNil() {
65766				if x.ReadOnlyRootFilesystem != nil {
65767					x.ReadOnlyRootFilesystem = nil
65768				}
65769			} else {
65770				if x.ReadOnlyRootFilesystem == nil {
65771					x.ReadOnlyRootFilesystem = new(bool)
65772				}
65773				yym13 := z.DecBinary()
65774				_ = yym13
65775				if false {
65776				} else {
65777					*((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool()
65778				}
65779			}
65780		default:
65781			z.DecStructFieldNotFound(-1, yys3)
65782		} // end switch yys3
65783	} // end for yyj3
65784	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
65785}
65786
65787func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
65788	var h codecSelfer1234
65789	z, r := codec1978.GenHelperDecoder(d)
65790	_, _, _ = h, z, r
65791	var yyj14 int
65792	var yyb14 bool
65793	var yyhl14 bool = l >= 0
65794	yyj14++
65795	if yyhl14 {
65796		yyb14 = yyj14 > l
65797	} else {
65798		yyb14 = r.CheckBreak()
65799	}
65800	if yyb14 {
65801		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
65802		return
65803	}
65804	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
65805	if r.TryDecodeAsNil() {
65806		if x.Capabilities != nil {
65807			x.Capabilities = nil
65808		}
65809	} else {
65810		if x.Capabilities == nil {
65811			x.Capabilities = new(Capabilities)
65812		}
65813		x.Capabilities.CodecDecodeSelf(d)
65814	}
65815	yyj14++
65816	if yyhl14 {
65817		yyb14 = yyj14 > l
65818	} else {
65819		yyb14 = r.CheckBreak()
65820	}
65821	if yyb14 {
65822		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
65823		return
65824	}
65825	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
65826	if r.TryDecodeAsNil() {
65827		if x.Privileged != nil {
65828			x.Privileged = nil
65829		}
65830	} else {
65831		if x.Privileged == nil {
65832			x.Privileged = new(bool)
65833		}
65834		yym17 := z.DecBinary()
65835		_ = yym17
65836		if false {
65837		} else {
65838			*((*bool)(x.Privileged)) = r.DecodeBool()
65839		}
65840	}
65841	yyj14++
65842	if yyhl14 {
65843		yyb14 = yyj14 > l
65844	} else {
65845		yyb14 = r.CheckBreak()
65846	}
65847	if yyb14 {
65848		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
65849		return
65850	}
65851	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
65852	if r.TryDecodeAsNil() {
65853		if x.SELinuxOptions != nil {
65854			x.SELinuxOptions = nil
65855		}
65856	} else {
65857		if x.SELinuxOptions == nil {
65858			x.SELinuxOptions = new(SELinuxOptions)
65859		}
65860		x.SELinuxOptions.CodecDecodeSelf(d)
65861	}
65862	yyj14++
65863	if yyhl14 {
65864		yyb14 = yyj14 > l
65865	} else {
65866		yyb14 = r.CheckBreak()
65867	}
65868	if yyb14 {
65869		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
65870		return
65871	}
65872	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
65873	if r.TryDecodeAsNil() {
65874		if x.RunAsUser != nil {
65875			x.RunAsUser = nil
65876		}
65877	} else {
65878		if x.RunAsUser == nil {
65879			x.RunAsUser = new(int64)
65880		}
65881		yym20 := z.DecBinary()
65882		_ = yym20
65883		if false {
65884		} else {
65885			*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
65886		}
65887	}
65888	yyj14++
65889	if yyhl14 {
65890		yyb14 = yyj14 > l
65891	} else {
65892		yyb14 = r.CheckBreak()
65893	}
65894	if yyb14 {
65895		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
65896		return
65897	}
65898	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
65899	if r.TryDecodeAsNil() {
65900		if x.RunAsNonRoot != nil {
65901			x.RunAsNonRoot = nil
65902		}
65903	} else {
65904		if x.RunAsNonRoot == nil {
65905			x.RunAsNonRoot = new(bool)
65906		}
65907		yym22 := z.DecBinary()
65908		_ = yym22
65909		if false {
65910		} else {
65911			*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
65912		}
65913	}
65914	yyj14++
65915	if yyhl14 {
65916		yyb14 = yyj14 > l
65917	} else {
65918		yyb14 = r.CheckBreak()
65919	}
65920	if yyb14 {
65921		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
65922		return
65923	}
65924	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
65925	if r.TryDecodeAsNil() {
65926		if x.ReadOnlyRootFilesystem != nil {
65927			x.ReadOnlyRootFilesystem = nil
65928		}
65929	} else {
65930		if x.ReadOnlyRootFilesystem == nil {
65931			x.ReadOnlyRootFilesystem = new(bool)
65932		}
65933		yym24 := z.DecBinary()
65934		_ = yym24
65935		if false {
65936		} else {
65937			*((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool()
65938		}
65939	}
65940	for {
65941		yyj14++
65942		if yyhl14 {
65943			yyb14 = yyj14 > l
65944		} else {
65945			yyb14 = r.CheckBreak()
65946		}
65947		if yyb14 {
65948			break
65949		}
65950		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
65951		z.DecStructFieldNotFound(yyj14-1, "")
65952	}
65953	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
65954}
65955
65956func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) {
65957	var h codecSelfer1234
65958	z, r := codec1978.GenHelperEncoder(e)
65959	_, _, _ = h, z, r
65960	if x == nil {
65961		r.EncodeNil()
65962	} else {
65963		yym1 := z.EncBinary()
65964		_ = yym1
65965		if false {
65966		} else if z.HasExtensions() && z.EncExt(x) {
65967		} else {
65968			yysep2 := !z.EncBinary()
65969			yy2arr2 := z.EncBasicHandle().StructToArray
65970			var yyq2 [4]bool
65971			_, _, _ = yysep2, yyq2, yy2arr2
65972			const yyr2 bool = false
65973			yyq2[0] = x.User != ""
65974			yyq2[1] = x.Role != ""
65975			yyq2[2] = x.Type != ""
65976			yyq2[3] = x.Level != ""
65977			var yynn2 int
65978			if yyr2 || yy2arr2 {
65979				r.EncodeArrayStart(4)
65980			} else {
65981				yynn2 = 0
65982				for _, b := range yyq2 {
65983					if b {
65984						yynn2++
65985					}
65986				}
65987				r.EncodeMapStart(yynn2)
65988				yynn2 = 0
65989			}
65990			if yyr2 || yy2arr2 {
65991				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
65992				if yyq2[0] {
65993					yym4 := z.EncBinary()
65994					_ = yym4
65995					if false {
65996					} else {
65997						r.EncodeString(codecSelferC_UTF81234, string(x.User))
65998					}
65999				} else {
66000					r.EncodeString(codecSelferC_UTF81234, "")
66001				}
66002			} else {
66003				if yyq2[0] {
66004					z.EncSendContainerState(codecSelfer_containerMapKey1234)
66005					r.EncodeString(codecSelferC_UTF81234, string("user"))
66006					z.EncSendContainerState(codecSelfer_containerMapValue1234)
66007					yym5 := z.EncBinary()
66008					_ = yym5
66009					if false {
66010					} else {
66011						r.EncodeString(codecSelferC_UTF81234, string(x.User))
66012					}
66013				}
66014			}
66015			if yyr2 || yy2arr2 {
66016				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
66017				if yyq2[1] {
66018					yym7 := z.EncBinary()
66019					_ = yym7
66020					if false {
66021					} else {
66022						r.EncodeString(codecSelferC_UTF81234, string(x.Role))
66023					}
66024				} else {
66025					r.EncodeString(codecSelferC_UTF81234, "")
66026				}
66027			} else {
66028				if yyq2[1] {
66029					z.EncSendContainerState(codecSelfer_containerMapKey1234)
66030					r.EncodeString(codecSelferC_UTF81234, string("role"))
66031					z.EncSendContainerState(codecSelfer_containerMapValue1234)
66032					yym8 := z.EncBinary()
66033					_ = yym8
66034					if false {
66035					} else {
66036						r.EncodeString(codecSelferC_UTF81234, string(x.Role))
66037					}
66038				}
66039			}
66040			if yyr2 || yy2arr2 {
66041				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
66042				if yyq2[2] {
66043					yym10 := z.EncBinary()
66044					_ = yym10
66045					if false {
66046					} else {
66047						r.EncodeString(codecSelferC_UTF81234, string(x.Type))
66048					}
66049				} else {
66050					r.EncodeString(codecSelferC_UTF81234, "")
66051				}
66052			} else {
66053				if yyq2[2] {
66054					z.EncSendContainerState(codecSelfer_containerMapKey1234)
66055					r.EncodeString(codecSelferC_UTF81234, string("type"))
66056					z.EncSendContainerState(codecSelfer_containerMapValue1234)
66057					yym11 := z.EncBinary()
66058					_ = yym11
66059					if false {
66060					} else {
66061						r.EncodeString(codecSelferC_UTF81234, string(x.Type))
66062					}
66063				}
66064			}
66065			if yyr2 || yy2arr2 {
66066				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
66067				if yyq2[3] {
66068					yym13 := z.EncBinary()
66069					_ = yym13
66070					if false {
66071					} else {
66072						r.EncodeString(codecSelferC_UTF81234, string(x.Level))
66073					}
66074				} else {
66075					r.EncodeString(codecSelferC_UTF81234, "")
66076				}
66077			} else {
66078				if yyq2[3] {
66079					z.EncSendContainerState(codecSelfer_containerMapKey1234)
66080					r.EncodeString(codecSelferC_UTF81234, string("level"))
66081					z.EncSendContainerState(codecSelfer_containerMapValue1234)
66082					yym14 := z.EncBinary()
66083					_ = yym14
66084					if false {
66085					} else {
66086						r.EncodeString(codecSelferC_UTF81234, string(x.Level))
66087					}
66088				}
66089			}
66090			if yyr2 || yy2arr2 {
66091				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
66092			} else {
66093				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
66094			}
66095		}
66096	}
66097}
66098
66099func (x *SELinuxOptions) CodecDecodeSelf(d *codec1978.Decoder) {
66100	var h codecSelfer1234
66101	z, r := codec1978.GenHelperDecoder(d)
66102	_, _, _ = h, z, r
66103	yym1 := z.DecBinary()
66104	_ = yym1
66105	if false {
66106	} else if z.HasExtensions() && z.DecExt(x) {
66107	} else {
66108		yyct2 := r.ContainerType()
66109		if yyct2 == codecSelferValueTypeMap1234 {
66110			yyl2 := r.ReadMapStart()
66111			if yyl2 == 0 {
66112				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
66113			} else {
66114				x.codecDecodeSelfFromMap(yyl2, d)
66115			}
66116		} else if yyct2 == codecSelferValueTypeArray1234 {
66117			yyl2 := r.ReadArrayStart()
66118			if yyl2 == 0 {
66119				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
66120			} else {
66121				x.codecDecodeSelfFromArray(yyl2, d)
66122			}
66123		} else {
66124			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
66125		}
66126	}
66127}
66128
66129func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
66130	var h codecSelfer1234
66131	z, r := codec1978.GenHelperDecoder(d)
66132	_, _, _ = h, z, r
66133	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
66134	_ = yys3Slc
66135	var yyhl3 bool = l >= 0
66136	for yyj3 := 0; ; yyj3++ {
66137		if yyhl3 {
66138			if yyj3 >= l {
66139				break
66140			}
66141		} else {
66142			if r.CheckBreak() {
66143				break
66144			}
66145		}
66146		z.DecSendContainerState(codecSelfer_containerMapKey1234)
66147		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
66148		yys3 := string(yys3Slc)
66149		z.DecSendContainerState(codecSelfer_containerMapValue1234)
66150		switch yys3 {
66151		case "user":
66152			if r.TryDecodeAsNil() {
66153				x.User = ""
66154			} else {
66155				yyv4 := &x.User
66156				yym5 := z.DecBinary()
66157				_ = yym5
66158				if false {
66159				} else {
66160					*((*string)(yyv4)) = r.DecodeString()
66161				}
66162			}
66163		case "role":
66164			if r.TryDecodeAsNil() {
66165				x.Role = ""
66166			} else {
66167				yyv6 := &x.Role
66168				yym7 := z.DecBinary()
66169				_ = yym7
66170				if false {
66171				} else {
66172					*((*string)(yyv6)) = r.DecodeString()
66173				}
66174			}
66175		case "type":
66176			if r.TryDecodeAsNil() {
66177				x.Type = ""
66178			} else {
66179				yyv8 := &x.Type
66180				yym9 := z.DecBinary()
66181				_ = yym9
66182				if false {
66183				} else {
66184					*((*string)(yyv8)) = r.DecodeString()
66185				}
66186			}
66187		case "level":
66188			if r.TryDecodeAsNil() {
66189				x.Level = ""
66190			} else {
66191				yyv10 := &x.Level
66192				yym11 := z.DecBinary()
66193				_ = yym11
66194				if false {
66195				} else {
66196					*((*string)(yyv10)) = r.DecodeString()
66197				}
66198			}
66199		default:
66200			z.DecStructFieldNotFound(-1, yys3)
66201		} // end switch yys3
66202	} // end for yyj3
66203	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
66204}
66205
66206func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
66207	var h codecSelfer1234
66208	z, r := codec1978.GenHelperDecoder(d)
66209	_, _, _ = h, z, r
66210	var yyj12 int
66211	var yyb12 bool
66212	var yyhl12 bool = l >= 0
66213	yyj12++
66214	if yyhl12 {
66215		yyb12 = yyj12 > l
66216	} else {
66217		yyb12 = r.CheckBreak()
66218	}
66219	if yyb12 {
66220		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
66221		return
66222	}
66223	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
66224	if r.TryDecodeAsNil() {
66225		x.User = ""
66226	} else {
66227		yyv13 := &x.User
66228		yym14 := z.DecBinary()
66229		_ = yym14
66230		if false {
66231		} else {
66232			*((*string)(yyv13)) = r.DecodeString()
66233		}
66234	}
66235	yyj12++
66236	if yyhl12 {
66237		yyb12 = yyj12 > l
66238	} else {
66239		yyb12 = r.CheckBreak()
66240	}
66241	if yyb12 {
66242		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
66243		return
66244	}
66245	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
66246	if r.TryDecodeAsNil() {
66247		x.Role = ""
66248	} else {
66249		yyv15 := &x.Role
66250		yym16 := z.DecBinary()
66251		_ = yym16
66252		if false {
66253		} else {
66254			*((*string)(yyv15)) = r.DecodeString()
66255		}
66256	}
66257	yyj12++
66258	if yyhl12 {
66259		yyb12 = yyj12 > l
66260	} else {
66261		yyb12 = r.CheckBreak()
66262	}
66263	if yyb12 {
66264		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
66265		return
66266	}
66267	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
66268	if r.TryDecodeAsNil() {
66269		x.Type = ""
66270	} else {
66271		yyv17 := &x.Type
66272		yym18 := z.DecBinary()
66273		_ = yym18
66274		if false {
66275		} else {
66276			*((*string)(yyv17)) = r.DecodeString()
66277		}
66278	}
66279	yyj12++
66280	if yyhl12 {
66281		yyb12 = yyj12 > l
66282	} else {
66283		yyb12 = r.CheckBreak()
66284	}
66285	if yyb12 {
66286		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
66287		return
66288	}
66289	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
66290	if r.TryDecodeAsNil() {
66291		x.Level = ""
66292	} else {
66293		yyv19 := &x.Level
66294		yym20 := z.DecBinary()
66295		_ = yym20
66296		if false {
66297		} else {
66298			*((*string)(yyv19)) = r.DecodeString()
66299		}
66300	}
66301	for {
66302		yyj12++
66303		if yyhl12 {
66304			yyb12 = yyj12 > l
66305		} else {
66306			yyb12 = r.CheckBreak()
66307		}
66308		if yyb12 {
66309			break
66310		}
66311		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
66312		z.DecStructFieldNotFound(yyj12-1, "")
66313	}
66314	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
66315}
66316
66317func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) {
66318	var h codecSelfer1234
66319	z, r := codec1978.GenHelperEncoder(e)
66320	_, _, _ = h, z, r
66321	if x == nil {
66322		r.EncodeNil()
66323	} else {
66324		yym1 := z.EncBinary()
66325		_ = yym1
66326		if false {
66327		} else if z.HasExtensions() && z.EncExt(x) {
66328		} else {
66329			yysep2 := !z.EncBinary()
66330			yy2arr2 := z.EncBasicHandle().StructToArray
66331			var yyq2 [5]bool
66332			_, _, _ = yysep2, yyq2, yy2arr2
66333			const yyr2 bool = false
66334			yyq2[0] = x.Kind != ""
66335			yyq2[1] = x.APIVersion != ""
66336			yyq2[2] = true
66337			var yynn2 int
66338			if yyr2 || yy2arr2 {
66339				r.EncodeArrayStart(5)
66340			} else {
66341				yynn2 = 2
66342				for _, b := range yyq2 {
66343					if b {
66344						yynn2++
66345					}
66346				}
66347				r.EncodeMapStart(yynn2)
66348				yynn2 = 0
66349			}
66350			if yyr2 || yy2arr2 {
66351				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
66352				if yyq2[0] {
66353					yym4 := z.EncBinary()
66354					_ = yym4
66355					if false {
66356					} else {
66357						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
66358					}
66359				} else {
66360					r.EncodeString(codecSelferC_UTF81234, "")
66361				}
66362			} else {
66363				if yyq2[0] {
66364					z.EncSendContainerState(codecSelfer_containerMapKey1234)
66365					r.EncodeString(codecSelferC_UTF81234, string("kind"))
66366					z.EncSendContainerState(codecSelfer_containerMapValue1234)
66367					yym5 := z.EncBinary()
66368					_ = yym5
66369					if false {
66370					} else {
66371						r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
66372					}
66373				}
66374			}
66375			if yyr2 || yy2arr2 {
66376				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
66377				if yyq2[1] {
66378					yym7 := z.EncBinary()
66379					_ = yym7
66380					if false {
66381					} else {
66382						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
66383					}
66384				} else {
66385					r.EncodeString(codecSelferC_UTF81234, "")
66386				}
66387			} else {
66388				if yyq2[1] {
66389					z.EncSendContainerState(codecSelfer_containerMapKey1234)
66390					r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
66391					z.EncSendContainerState(codecSelfer_containerMapValue1234)
66392					yym8 := z.EncBinary()
66393					_ = yym8
66394					if false {
66395					} else {
66396						r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
66397					}
66398				}
66399			}
66400			if yyr2 || yy2arr2 {
66401				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
66402				if yyq2[2] {
66403					yy10 := &x.ObjectMeta
66404					yym11 := z.EncBinary()
66405					_ = yym11
66406					if false {
66407					} else if z.HasExtensions() && z.EncExt(yy10) {
66408					} else {
66409						z.EncFallback(yy10)
66410					}
66411				} else {
66412					r.EncodeNil()
66413				}
66414			} else {
66415				if yyq2[2] {
66416					z.EncSendContainerState(codecSelfer_containerMapKey1234)
66417					r.EncodeString(codecSelferC_UTF81234, string("metadata"))
66418					z.EncSendContainerState(codecSelfer_containerMapValue1234)
66419					yy12 := &x.ObjectMeta
66420					yym13 := z.EncBinary()
66421					_ = yym13
66422					if false {
66423					} else if z.HasExtensions() && z.EncExt(yy12) {
66424					} else {
66425						z.EncFallback(yy12)
66426					}
66427				}
66428			}
66429			if yyr2 || yy2arr2 {
66430				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
66431				yym15 := z.EncBinary()
66432				_ = yym15
66433				if false {
66434				} else {
66435					r.EncodeString(codecSelferC_UTF81234, string(x.Range))
66436				}
66437			} else {
66438				z.EncSendContainerState(codecSelfer_containerMapKey1234)
66439				r.EncodeString(codecSelferC_UTF81234, string("range"))
66440				z.EncSendContainerState(codecSelfer_containerMapValue1234)
66441				yym16 := z.EncBinary()
66442				_ = yym16
66443				if false {
66444				} else {
66445					r.EncodeString(codecSelferC_UTF81234, string(x.Range))
66446				}
66447			}
66448			if yyr2 || yy2arr2 {
66449				z.EncSendContainerState(codecSelfer_containerArrayElem1234)
66450				if x.Data == nil {
66451					r.EncodeNil()
66452				} else {
66453					yym18 := z.EncBinary()
66454					_ = yym18
66455					if false {
66456					} else {
66457						r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data))
66458					}
66459				}
66460			} else {
66461				z.EncSendContainerState(codecSelfer_containerMapKey1234)
66462				r.EncodeString(codecSelferC_UTF81234, string("data"))
66463				z.EncSendContainerState(codecSelfer_containerMapValue1234)
66464				if x.Data == nil {
66465					r.EncodeNil()
66466				} else {
66467					yym19 := z.EncBinary()
66468					_ = yym19
66469					if false {
66470					} else {
66471						r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data))
66472					}
66473				}
66474			}
66475			if yyr2 || yy2arr2 {
66476				z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
66477			} else {
66478				z.EncSendContainerState(codecSelfer_containerMapEnd1234)
66479			}
66480		}
66481	}
66482}
66483
66484func (x *RangeAllocation) CodecDecodeSelf(d *codec1978.Decoder) {
66485	var h codecSelfer1234
66486	z, r := codec1978.GenHelperDecoder(d)
66487	_, _, _ = h, z, r
66488	yym1 := z.DecBinary()
66489	_ = yym1
66490	if false {
66491	} else if z.HasExtensions() && z.DecExt(x) {
66492	} else {
66493		yyct2 := r.ContainerType()
66494		if yyct2 == codecSelferValueTypeMap1234 {
66495			yyl2 := r.ReadMapStart()
66496			if yyl2 == 0 {
66497				z.DecSendContainerState(codecSelfer_containerMapEnd1234)
66498			} else {
66499				x.codecDecodeSelfFromMap(yyl2, d)
66500			}
66501		} else if yyct2 == codecSelferValueTypeArray1234 {
66502			yyl2 := r.ReadArrayStart()
66503			if yyl2 == 0 {
66504				z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
66505			} else {
66506				x.codecDecodeSelfFromArray(yyl2, d)
66507			}
66508		} else {
66509			panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
66510		}
66511	}
66512}
66513
66514func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
66515	var h codecSelfer1234
66516	z, r := codec1978.GenHelperDecoder(d)
66517	_, _, _ = h, z, r
66518	var yys3Slc = z.DecScratchBuffer() // default slice to decode into
66519	_ = yys3Slc
66520	var yyhl3 bool = l >= 0
66521	for yyj3 := 0; ; yyj3++ {
66522		if yyhl3 {
66523			if yyj3 >= l {
66524				break
66525			}
66526		} else {
66527			if r.CheckBreak() {
66528				break
66529			}
66530		}
66531		z.DecSendContainerState(codecSelfer_containerMapKey1234)
66532		yys3Slc = r.DecodeBytes(yys3Slc, true, true)
66533		yys3 := string(yys3Slc)
66534		z.DecSendContainerState(codecSelfer_containerMapValue1234)
66535		switch yys3 {
66536		case "kind":
66537			if r.TryDecodeAsNil() {
66538				x.Kind = ""
66539			} else {
66540				yyv4 := &x.Kind
66541				yym5 := z.DecBinary()
66542				_ = yym5
66543				if false {
66544				} else {
66545					*((*string)(yyv4)) = r.DecodeString()
66546				}
66547			}
66548		case "apiVersion":
66549			if r.TryDecodeAsNil() {
66550				x.APIVersion = ""
66551			} else {
66552				yyv6 := &x.APIVersion
66553				yym7 := z.DecBinary()
66554				_ = yym7
66555				if false {
66556				} else {
66557					*((*string)(yyv6)) = r.DecodeString()
66558				}
66559			}
66560		case "metadata":
66561			if r.TryDecodeAsNil() {
66562				x.ObjectMeta = pkg2_v1.ObjectMeta{}
66563			} else {
66564				yyv8 := &x.ObjectMeta
66565				yym9 := z.DecBinary()
66566				_ = yym9
66567				if false {
66568				} else if z.HasExtensions() && z.DecExt(yyv8) {
66569				} else {
66570					z.DecFallback(yyv8, false)
66571				}
66572			}
66573		case "range":
66574			if r.TryDecodeAsNil() {
66575				x.Range = ""
66576			} else {
66577				yyv10 := &x.Range
66578				yym11 := z.DecBinary()
66579				_ = yym11
66580				if false {
66581				} else {
66582					*((*string)(yyv10)) = r.DecodeString()
66583				}
66584			}
66585		case "data":
66586			if r.TryDecodeAsNil() {
66587				x.Data = nil
66588			} else {
66589				yyv12 := &x.Data
66590				yym13 := z.DecBinary()
66591				_ = yym13
66592				if false {
66593				} else {
66594					*yyv12 = r.DecodeBytes(*(*[]byte)(yyv12), false, false)
66595				}
66596			}
66597		default:
66598			z.DecStructFieldNotFound(-1, yys3)
66599		} // end switch yys3
66600	} // end for yyj3
66601	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
66602}
66603
66604func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
66605	var h codecSelfer1234
66606	z, r := codec1978.GenHelperDecoder(d)
66607	_, _, _ = h, z, r
66608	var yyj14 int
66609	var yyb14 bool
66610	var yyhl14 bool = l >= 0
66611	yyj14++
66612	if yyhl14 {
66613		yyb14 = yyj14 > l
66614	} else {
66615		yyb14 = r.CheckBreak()
66616	}
66617	if yyb14 {
66618		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
66619		return
66620	}
66621	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
66622	if r.TryDecodeAsNil() {
66623		x.Kind = ""
66624	} else {
66625		yyv15 := &x.Kind
66626		yym16 := z.DecBinary()
66627		_ = yym16
66628		if false {
66629		} else {
66630			*((*string)(yyv15)) = r.DecodeString()
66631		}
66632	}
66633	yyj14++
66634	if yyhl14 {
66635		yyb14 = yyj14 > l
66636	} else {
66637		yyb14 = r.CheckBreak()
66638	}
66639	if yyb14 {
66640		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
66641		return
66642	}
66643	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
66644	if r.TryDecodeAsNil() {
66645		x.APIVersion = ""
66646	} else {
66647		yyv17 := &x.APIVersion
66648		yym18 := z.DecBinary()
66649		_ = yym18
66650		if false {
66651		} else {
66652			*((*string)(yyv17)) = r.DecodeString()
66653		}
66654	}
66655	yyj14++
66656	if yyhl14 {
66657		yyb14 = yyj14 > l
66658	} else {
66659		yyb14 = r.CheckBreak()
66660	}
66661	if yyb14 {
66662		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
66663		return
66664	}
66665	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
66666	if r.TryDecodeAsNil() {
66667		x.ObjectMeta = pkg2_v1.ObjectMeta{}
66668	} else {
66669		yyv19 := &x.ObjectMeta
66670		yym20 := z.DecBinary()
66671		_ = yym20
66672		if false {
66673		} else if z.HasExtensions() && z.DecExt(yyv19) {
66674		} else {
66675			z.DecFallback(yyv19, false)
66676		}
66677	}
66678	yyj14++
66679	if yyhl14 {
66680		yyb14 = yyj14 > l
66681	} else {
66682		yyb14 = r.CheckBreak()
66683	}
66684	if yyb14 {
66685		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
66686		return
66687	}
66688	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
66689	if r.TryDecodeAsNil() {
66690		x.Range = ""
66691	} else {
66692		yyv21 := &x.Range
66693		yym22 := z.DecBinary()
66694		_ = yym22
66695		if false {
66696		} else {
66697			*((*string)(yyv21)) = r.DecodeString()
66698		}
66699	}
66700	yyj14++
66701	if yyhl14 {
66702		yyb14 = yyj14 > l
66703	} else {
66704		yyb14 = r.CheckBreak()
66705	}
66706	if yyb14 {
66707		z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
66708		return
66709	}
66710	z.DecSendContainerState(codecSelfer_containerArrayElem1234)
66711	if r.TryDecodeAsNil() {
66712		x.Data = nil
66713	} else {
66714		yyv23 := &x.Data
66715		yym24 := z.DecBinary()
66716		_ = yym24
66717		if false {
66718		} else {
66719			*yyv23 = r.DecodeBytes(*(*[]byte)(yyv23), false, false)
66720		}
66721	}
66722	for {
66723		yyj14++
66724		if yyhl14 {
66725			yyb14 = yyj14 > l
66726		} else {
66727			yyb14 = r.CheckBreak()
66728		}
66729		if yyb14 {
66730			break
66731		}
66732		z.DecSendContainerState(codecSelfer_containerArrayElem1234)
66733		z.DecStructFieldNotFound(yyj14-1, "")
66734	}
66735	z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
66736}
66737
66738func (x codecSelfer1234) encSlicev1_OwnerReference(v []pkg2_v1.OwnerReference, e *codec1978.Encoder) {
66739	var h codecSelfer1234
66740	z, r := codec1978.GenHelperEncoder(e)
66741	_, _, _ = h, z, r
66742	r.EncodeArrayStart(len(v))
66743	for _, yyv1 := range v {
66744		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
66745		yy2 := &yyv1
66746		yym3 := z.EncBinary()
66747		_ = yym3
66748		if false {
66749		} else if z.HasExtensions() && z.EncExt(yy2) {
66750		} else {
66751			z.EncFallback(yy2)
66752		}
66753	}
66754	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
66755}
66756
66757func (x codecSelfer1234) decSlicev1_OwnerReference(v *[]pkg2_v1.OwnerReference, d *codec1978.Decoder) {
66758	var h codecSelfer1234
66759	z, r := codec1978.GenHelperDecoder(d)
66760	_, _, _ = h, z, r
66761
66762	yyv1 := *v
66763	yyh1, yyl1 := z.DecSliceHelperStart()
66764	var yyc1 bool
66765	_ = yyc1
66766	if yyl1 == 0 {
66767		if yyv1 == nil {
66768			yyv1 = []pkg2_v1.OwnerReference{}
66769			yyc1 = true
66770		} else if len(yyv1) != 0 {
66771			yyv1 = yyv1[:0]
66772			yyc1 = true
66773		}
66774	} else if yyl1 > 0 {
66775		var yyrr1, yyrl1 int
66776		var yyrt1 bool
66777		_, _ = yyrl1, yyrt1
66778		yyrr1 = yyl1 // len(yyv1)
66779		if yyl1 > cap(yyv1) {
66780
66781			yyrg1 := len(yyv1) > 0
66782			yyv21 := yyv1
66783			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 80)
66784			if yyrt1 {
66785				if yyrl1 <= cap(yyv1) {
66786					yyv1 = yyv1[:yyrl1]
66787				} else {
66788					yyv1 = make([]pkg2_v1.OwnerReference, yyrl1)
66789				}
66790			} else {
66791				yyv1 = make([]pkg2_v1.OwnerReference, yyrl1)
66792			}
66793			yyc1 = true
66794			yyrr1 = len(yyv1)
66795			if yyrg1 {
66796				copy(yyv1, yyv21)
66797			}
66798		} else if yyl1 != len(yyv1) {
66799			yyv1 = yyv1[:yyl1]
66800			yyc1 = true
66801		}
66802		yyj1 := 0
66803		for ; yyj1 < yyrr1; yyj1++ {
66804			yyh1.ElemContainerState(yyj1)
66805			if r.TryDecodeAsNil() {
66806				yyv1[yyj1] = pkg2_v1.OwnerReference{}
66807			} else {
66808				yyv2 := &yyv1[yyj1]
66809				yym3 := z.DecBinary()
66810				_ = yym3
66811				if false {
66812				} else if z.HasExtensions() && z.DecExt(yyv2) {
66813				} else {
66814					z.DecFallback(yyv2, false)
66815				}
66816			}
66817
66818		}
66819		if yyrt1 {
66820			for ; yyj1 < yyl1; yyj1++ {
66821				yyv1 = append(yyv1, pkg2_v1.OwnerReference{})
66822				yyh1.ElemContainerState(yyj1)
66823				if r.TryDecodeAsNil() {
66824					yyv1[yyj1] = pkg2_v1.OwnerReference{}
66825				} else {
66826					yyv4 := &yyv1[yyj1]
66827					yym5 := z.DecBinary()
66828					_ = yym5
66829					if false {
66830					} else if z.HasExtensions() && z.DecExt(yyv4) {
66831					} else {
66832						z.DecFallback(yyv4, false)
66833					}
66834				}
66835
66836			}
66837		}
66838
66839	} else {
66840		yyj1 := 0
66841		for ; !r.CheckBreak(); yyj1++ {
66842
66843			if yyj1 >= len(yyv1) {
66844				yyv1 = append(yyv1, pkg2_v1.OwnerReference{}) // var yyz1 pkg2_v1.OwnerReference
66845				yyc1 = true
66846			}
66847			yyh1.ElemContainerState(yyj1)
66848			if yyj1 < len(yyv1) {
66849				if r.TryDecodeAsNil() {
66850					yyv1[yyj1] = pkg2_v1.OwnerReference{}
66851				} else {
66852					yyv6 := &yyv1[yyj1]
66853					yym7 := z.DecBinary()
66854					_ = yym7
66855					if false {
66856					} else if z.HasExtensions() && z.DecExt(yyv6) {
66857					} else {
66858						z.DecFallback(yyv6, false)
66859					}
66860				}
66861
66862			} else {
66863				z.DecSwallow()
66864			}
66865
66866		}
66867		if yyj1 < len(yyv1) {
66868			yyv1 = yyv1[:yyj1]
66869			yyc1 = true
66870		} else if yyj1 == 0 && yyv1 == nil {
66871			yyv1 = []pkg2_v1.OwnerReference{}
66872			yyc1 = true
66873		}
66874	}
66875	yyh1.End()
66876	if yyc1 {
66877		*v = yyv1
66878	}
66879}
66880
66881func (x codecSelfer1234) encSlicePersistentVolumeAccessMode(v []PersistentVolumeAccessMode, e *codec1978.Encoder) {
66882	var h codecSelfer1234
66883	z, r := codec1978.GenHelperEncoder(e)
66884	_, _, _ = h, z, r
66885	r.EncodeArrayStart(len(v))
66886	for _, yyv1 := range v {
66887		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
66888		yyv1.CodecEncodeSelf(e)
66889	}
66890	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
66891}
66892
66893func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolumeAccessMode, d *codec1978.Decoder) {
66894	var h codecSelfer1234
66895	z, r := codec1978.GenHelperDecoder(d)
66896	_, _, _ = h, z, r
66897
66898	yyv1 := *v
66899	yyh1, yyl1 := z.DecSliceHelperStart()
66900	var yyc1 bool
66901	_ = yyc1
66902	if yyl1 == 0 {
66903		if yyv1 == nil {
66904			yyv1 = []PersistentVolumeAccessMode{}
66905			yyc1 = true
66906		} else if len(yyv1) != 0 {
66907			yyv1 = yyv1[:0]
66908			yyc1 = true
66909		}
66910	} else if yyl1 > 0 {
66911		var yyrr1, yyrl1 int
66912		var yyrt1 bool
66913		_, _ = yyrl1, yyrt1
66914		yyrr1 = yyl1 // len(yyv1)
66915		if yyl1 > cap(yyv1) {
66916
66917			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
66918			if yyrt1 {
66919				if yyrl1 <= cap(yyv1) {
66920					yyv1 = yyv1[:yyrl1]
66921				} else {
66922					yyv1 = make([]PersistentVolumeAccessMode, yyrl1)
66923				}
66924			} else {
66925				yyv1 = make([]PersistentVolumeAccessMode, yyrl1)
66926			}
66927			yyc1 = true
66928			yyrr1 = len(yyv1)
66929		} else if yyl1 != len(yyv1) {
66930			yyv1 = yyv1[:yyl1]
66931			yyc1 = true
66932		}
66933		yyj1 := 0
66934		for ; yyj1 < yyrr1; yyj1++ {
66935			yyh1.ElemContainerState(yyj1)
66936			if r.TryDecodeAsNil() {
66937				yyv1[yyj1] = ""
66938			} else {
66939				yyv2 := &yyv1[yyj1]
66940				yyv2.CodecDecodeSelf(d)
66941			}
66942
66943		}
66944		if yyrt1 {
66945			for ; yyj1 < yyl1; yyj1++ {
66946				yyv1 = append(yyv1, "")
66947				yyh1.ElemContainerState(yyj1)
66948				if r.TryDecodeAsNil() {
66949					yyv1[yyj1] = ""
66950				} else {
66951					yyv3 := &yyv1[yyj1]
66952					yyv3.CodecDecodeSelf(d)
66953				}
66954
66955			}
66956		}
66957
66958	} else {
66959		yyj1 := 0
66960		for ; !r.CheckBreak(); yyj1++ {
66961
66962			if yyj1 >= len(yyv1) {
66963				yyv1 = append(yyv1, "") // var yyz1 PersistentVolumeAccessMode
66964				yyc1 = true
66965			}
66966			yyh1.ElemContainerState(yyj1)
66967			if yyj1 < len(yyv1) {
66968				if r.TryDecodeAsNil() {
66969					yyv1[yyj1] = ""
66970				} else {
66971					yyv4 := &yyv1[yyj1]
66972					yyv4.CodecDecodeSelf(d)
66973				}
66974
66975			} else {
66976				z.DecSwallow()
66977			}
66978
66979		}
66980		if yyj1 < len(yyv1) {
66981			yyv1 = yyv1[:yyj1]
66982			yyc1 = true
66983		} else if yyj1 == 0 && yyv1 == nil {
66984			yyv1 = []PersistentVolumeAccessMode{}
66985			yyc1 = true
66986		}
66987	}
66988	yyh1.End()
66989	if yyc1 {
66990		*v = yyv1
66991	}
66992}
66993
66994func (x codecSelfer1234) encSlicePersistentVolume(v []PersistentVolume, e *codec1978.Encoder) {
66995	var h codecSelfer1234
66996	z, r := codec1978.GenHelperEncoder(e)
66997	_, _, _ = h, z, r
66998	r.EncodeArrayStart(len(v))
66999	for _, yyv1 := range v {
67000		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
67001		yy2 := &yyv1
67002		yy2.CodecEncodeSelf(e)
67003	}
67004	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
67005}
67006
67007func (x codecSelfer1234) decSlicePersistentVolume(v *[]PersistentVolume, d *codec1978.Decoder) {
67008	var h codecSelfer1234
67009	z, r := codec1978.GenHelperDecoder(d)
67010	_, _, _ = h, z, r
67011
67012	yyv1 := *v
67013	yyh1, yyl1 := z.DecSliceHelperStart()
67014	var yyc1 bool
67015	_ = yyc1
67016	if yyl1 == 0 {
67017		if yyv1 == nil {
67018			yyv1 = []PersistentVolume{}
67019			yyc1 = true
67020		} else if len(yyv1) != 0 {
67021			yyv1 = yyv1[:0]
67022			yyc1 = true
67023		}
67024	} else if yyl1 > 0 {
67025		var yyrr1, yyrl1 int
67026		var yyrt1 bool
67027		_, _ = yyrl1, yyrt1
67028		yyrr1 = yyl1 // len(yyv1)
67029		if yyl1 > cap(yyv1) {
67030
67031			yyrg1 := len(yyv1) > 0
67032			yyv21 := yyv1
67033			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 528)
67034			if yyrt1 {
67035				if yyrl1 <= cap(yyv1) {
67036					yyv1 = yyv1[:yyrl1]
67037				} else {
67038					yyv1 = make([]PersistentVolume, yyrl1)
67039				}
67040			} else {
67041				yyv1 = make([]PersistentVolume, yyrl1)
67042			}
67043			yyc1 = true
67044			yyrr1 = len(yyv1)
67045			if yyrg1 {
67046				copy(yyv1, yyv21)
67047			}
67048		} else if yyl1 != len(yyv1) {
67049			yyv1 = yyv1[:yyl1]
67050			yyc1 = true
67051		}
67052		yyj1 := 0
67053		for ; yyj1 < yyrr1; yyj1++ {
67054			yyh1.ElemContainerState(yyj1)
67055			if r.TryDecodeAsNil() {
67056				yyv1[yyj1] = PersistentVolume{}
67057			} else {
67058				yyv2 := &yyv1[yyj1]
67059				yyv2.CodecDecodeSelf(d)
67060			}
67061
67062		}
67063		if yyrt1 {
67064			for ; yyj1 < yyl1; yyj1++ {
67065				yyv1 = append(yyv1, PersistentVolume{})
67066				yyh1.ElemContainerState(yyj1)
67067				if r.TryDecodeAsNil() {
67068					yyv1[yyj1] = PersistentVolume{}
67069				} else {
67070					yyv3 := &yyv1[yyj1]
67071					yyv3.CodecDecodeSelf(d)
67072				}
67073
67074			}
67075		}
67076
67077	} else {
67078		yyj1 := 0
67079		for ; !r.CheckBreak(); yyj1++ {
67080
67081			if yyj1 >= len(yyv1) {
67082				yyv1 = append(yyv1, PersistentVolume{}) // var yyz1 PersistentVolume
67083				yyc1 = true
67084			}
67085			yyh1.ElemContainerState(yyj1)
67086			if yyj1 < len(yyv1) {
67087				if r.TryDecodeAsNil() {
67088					yyv1[yyj1] = PersistentVolume{}
67089				} else {
67090					yyv4 := &yyv1[yyj1]
67091					yyv4.CodecDecodeSelf(d)
67092				}
67093
67094			} else {
67095				z.DecSwallow()
67096			}
67097
67098		}
67099		if yyj1 < len(yyv1) {
67100			yyv1 = yyv1[:yyj1]
67101			yyc1 = true
67102		} else if yyj1 == 0 && yyv1 == nil {
67103			yyv1 = []PersistentVolume{}
67104			yyc1 = true
67105		}
67106	}
67107	yyh1.End()
67108	if yyc1 {
67109		*v = yyv1
67110	}
67111}
67112
67113func (x codecSelfer1234) encSlicePersistentVolumeClaim(v []PersistentVolumeClaim, e *codec1978.Encoder) {
67114	var h codecSelfer1234
67115	z, r := codec1978.GenHelperEncoder(e)
67116	_, _, _ = h, z, r
67117	r.EncodeArrayStart(len(v))
67118	for _, yyv1 := range v {
67119		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
67120		yy2 := &yyv1
67121		yy2.CodecEncodeSelf(e)
67122	}
67123	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
67124}
67125
67126func (x codecSelfer1234) decSlicePersistentVolumeClaim(v *[]PersistentVolumeClaim, d *codec1978.Decoder) {
67127	var h codecSelfer1234
67128	z, r := codec1978.GenHelperDecoder(d)
67129	_, _, _ = h, z, r
67130
67131	yyv1 := *v
67132	yyh1, yyl1 := z.DecSliceHelperStart()
67133	var yyc1 bool
67134	_ = yyc1
67135	if yyl1 == 0 {
67136		if yyv1 == nil {
67137			yyv1 = []PersistentVolumeClaim{}
67138			yyc1 = true
67139		} else if len(yyv1) != 0 {
67140			yyv1 = yyv1[:0]
67141			yyc1 = true
67142		}
67143	} else if yyl1 > 0 {
67144		var yyrr1, yyrl1 int
67145		var yyrt1 bool
67146		_, _ = yyrl1, yyrt1
67147		yyrr1 = yyl1 // len(yyv1)
67148		if yyl1 > cap(yyv1) {
67149
67150			yyrg1 := len(yyv1) > 0
67151			yyv21 := yyv1
67152			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 376)
67153			if yyrt1 {
67154				if yyrl1 <= cap(yyv1) {
67155					yyv1 = yyv1[:yyrl1]
67156				} else {
67157					yyv1 = make([]PersistentVolumeClaim, yyrl1)
67158				}
67159			} else {
67160				yyv1 = make([]PersistentVolumeClaim, yyrl1)
67161			}
67162			yyc1 = true
67163			yyrr1 = len(yyv1)
67164			if yyrg1 {
67165				copy(yyv1, yyv21)
67166			}
67167		} else if yyl1 != len(yyv1) {
67168			yyv1 = yyv1[:yyl1]
67169			yyc1 = true
67170		}
67171		yyj1 := 0
67172		for ; yyj1 < yyrr1; yyj1++ {
67173			yyh1.ElemContainerState(yyj1)
67174			if r.TryDecodeAsNil() {
67175				yyv1[yyj1] = PersistentVolumeClaim{}
67176			} else {
67177				yyv2 := &yyv1[yyj1]
67178				yyv2.CodecDecodeSelf(d)
67179			}
67180
67181		}
67182		if yyrt1 {
67183			for ; yyj1 < yyl1; yyj1++ {
67184				yyv1 = append(yyv1, PersistentVolumeClaim{})
67185				yyh1.ElemContainerState(yyj1)
67186				if r.TryDecodeAsNil() {
67187					yyv1[yyj1] = PersistentVolumeClaim{}
67188				} else {
67189					yyv3 := &yyv1[yyj1]
67190					yyv3.CodecDecodeSelf(d)
67191				}
67192
67193			}
67194		}
67195
67196	} else {
67197		yyj1 := 0
67198		for ; !r.CheckBreak(); yyj1++ {
67199
67200			if yyj1 >= len(yyv1) {
67201				yyv1 = append(yyv1, PersistentVolumeClaim{}) // var yyz1 PersistentVolumeClaim
67202				yyc1 = true
67203			}
67204			yyh1.ElemContainerState(yyj1)
67205			if yyj1 < len(yyv1) {
67206				if r.TryDecodeAsNil() {
67207					yyv1[yyj1] = PersistentVolumeClaim{}
67208				} else {
67209					yyv4 := &yyv1[yyj1]
67210					yyv4.CodecDecodeSelf(d)
67211				}
67212
67213			} else {
67214				z.DecSwallow()
67215			}
67216
67217		}
67218		if yyj1 < len(yyv1) {
67219			yyv1 = yyv1[:yyj1]
67220			yyc1 = true
67221		} else if yyj1 == 0 && yyv1 == nil {
67222			yyv1 = []PersistentVolumeClaim{}
67223			yyc1 = true
67224		}
67225	}
67226	yyh1.End()
67227	if yyc1 {
67228		*v = yyv1
67229	}
67230}
67231
67232func (x codecSelfer1234) encSliceKeyToPath(v []KeyToPath, e *codec1978.Encoder) {
67233	var h codecSelfer1234
67234	z, r := codec1978.GenHelperEncoder(e)
67235	_, _, _ = h, z, r
67236	r.EncodeArrayStart(len(v))
67237	for _, yyv1 := range v {
67238		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
67239		yy2 := &yyv1
67240		yy2.CodecEncodeSelf(e)
67241	}
67242	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
67243}
67244
67245func (x codecSelfer1234) decSliceKeyToPath(v *[]KeyToPath, d *codec1978.Decoder) {
67246	var h codecSelfer1234
67247	z, r := codec1978.GenHelperDecoder(d)
67248	_, _, _ = h, z, r
67249
67250	yyv1 := *v
67251	yyh1, yyl1 := z.DecSliceHelperStart()
67252	var yyc1 bool
67253	_ = yyc1
67254	if yyl1 == 0 {
67255		if yyv1 == nil {
67256			yyv1 = []KeyToPath{}
67257			yyc1 = true
67258		} else if len(yyv1) != 0 {
67259			yyv1 = yyv1[:0]
67260			yyc1 = true
67261		}
67262	} else if yyl1 > 0 {
67263		var yyrr1, yyrl1 int
67264		var yyrt1 bool
67265		_, _ = yyrl1, yyrt1
67266		yyrr1 = yyl1 // len(yyv1)
67267		if yyl1 > cap(yyv1) {
67268
67269			yyrg1 := len(yyv1) > 0
67270			yyv21 := yyv1
67271			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40)
67272			if yyrt1 {
67273				if yyrl1 <= cap(yyv1) {
67274					yyv1 = yyv1[:yyrl1]
67275				} else {
67276					yyv1 = make([]KeyToPath, yyrl1)
67277				}
67278			} else {
67279				yyv1 = make([]KeyToPath, yyrl1)
67280			}
67281			yyc1 = true
67282			yyrr1 = len(yyv1)
67283			if yyrg1 {
67284				copy(yyv1, yyv21)
67285			}
67286		} else if yyl1 != len(yyv1) {
67287			yyv1 = yyv1[:yyl1]
67288			yyc1 = true
67289		}
67290		yyj1 := 0
67291		for ; yyj1 < yyrr1; yyj1++ {
67292			yyh1.ElemContainerState(yyj1)
67293			if r.TryDecodeAsNil() {
67294				yyv1[yyj1] = KeyToPath{}
67295			} else {
67296				yyv2 := &yyv1[yyj1]
67297				yyv2.CodecDecodeSelf(d)
67298			}
67299
67300		}
67301		if yyrt1 {
67302			for ; yyj1 < yyl1; yyj1++ {
67303				yyv1 = append(yyv1, KeyToPath{})
67304				yyh1.ElemContainerState(yyj1)
67305				if r.TryDecodeAsNil() {
67306					yyv1[yyj1] = KeyToPath{}
67307				} else {
67308					yyv3 := &yyv1[yyj1]
67309					yyv3.CodecDecodeSelf(d)
67310				}
67311
67312			}
67313		}
67314
67315	} else {
67316		yyj1 := 0
67317		for ; !r.CheckBreak(); yyj1++ {
67318
67319			if yyj1 >= len(yyv1) {
67320				yyv1 = append(yyv1, KeyToPath{}) // var yyz1 KeyToPath
67321				yyc1 = true
67322			}
67323			yyh1.ElemContainerState(yyj1)
67324			if yyj1 < len(yyv1) {
67325				if r.TryDecodeAsNil() {
67326					yyv1[yyj1] = KeyToPath{}
67327				} else {
67328					yyv4 := &yyv1[yyj1]
67329					yyv4.CodecDecodeSelf(d)
67330				}
67331
67332			} else {
67333				z.DecSwallow()
67334			}
67335
67336		}
67337		if yyj1 < len(yyv1) {
67338			yyv1 = yyv1[:yyj1]
67339			yyc1 = true
67340		} else if yyj1 == 0 && yyv1 == nil {
67341			yyv1 = []KeyToPath{}
67342			yyc1 = true
67343		}
67344	}
67345	yyh1.End()
67346	if yyc1 {
67347		*v = yyv1
67348	}
67349}
67350
67351func (x codecSelfer1234) encSliceVolumeProjection(v []VolumeProjection, e *codec1978.Encoder) {
67352	var h codecSelfer1234
67353	z, r := codec1978.GenHelperEncoder(e)
67354	_, _, _ = h, z, r
67355	r.EncodeArrayStart(len(v))
67356	for _, yyv1 := range v {
67357		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
67358		yy2 := &yyv1
67359		yy2.CodecEncodeSelf(e)
67360	}
67361	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
67362}
67363
67364func (x codecSelfer1234) decSliceVolumeProjection(v *[]VolumeProjection, d *codec1978.Decoder) {
67365	var h codecSelfer1234
67366	z, r := codec1978.GenHelperDecoder(d)
67367	_, _, _ = h, z, r
67368
67369	yyv1 := *v
67370	yyh1, yyl1 := z.DecSliceHelperStart()
67371	var yyc1 bool
67372	_ = yyc1
67373	if yyl1 == 0 {
67374		if yyv1 == nil {
67375			yyv1 = []VolumeProjection{}
67376			yyc1 = true
67377		} else if len(yyv1) != 0 {
67378			yyv1 = yyv1[:0]
67379			yyc1 = true
67380		}
67381	} else if yyl1 > 0 {
67382		var yyrr1, yyrl1 int
67383		var yyrt1 bool
67384		_, _ = yyrl1, yyrt1
67385		yyrr1 = yyl1 // len(yyv1)
67386		if yyl1 > cap(yyv1) {
67387
67388			yyrg1 := len(yyv1) > 0
67389			yyv21 := yyv1
67390			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
67391			if yyrt1 {
67392				if yyrl1 <= cap(yyv1) {
67393					yyv1 = yyv1[:yyrl1]
67394				} else {
67395					yyv1 = make([]VolumeProjection, yyrl1)
67396				}
67397			} else {
67398				yyv1 = make([]VolumeProjection, yyrl1)
67399			}
67400			yyc1 = true
67401			yyrr1 = len(yyv1)
67402			if yyrg1 {
67403				copy(yyv1, yyv21)
67404			}
67405		} else if yyl1 != len(yyv1) {
67406			yyv1 = yyv1[:yyl1]
67407			yyc1 = true
67408		}
67409		yyj1 := 0
67410		for ; yyj1 < yyrr1; yyj1++ {
67411			yyh1.ElemContainerState(yyj1)
67412			if r.TryDecodeAsNil() {
67413				yyv1[yyj1] = VolumeProjection{}
67414			} else {
67415				yyv2 := &yyv1[yyj1]
67416				yyv2.CodecDecodeSelf(d)
67417			}
67418
67419		}
67420		if yyrt1 {
67421			for ; yyj1 < yyl1; yyj1++ {
67422				yyv1 = append(yyv1, VolumeProjection{})
67423				yyh1.ElemContainerState(yyj1)
67424				if r.TryDecodeAsNil() {
67425					yyv1[yyj1] = VolumeProjection{}
67426				} else {
67427					yyv3 := &yyv1[yyj1]
67428					yyv3.CodecDecodeSelf(d)
67429				}
67430
67431			}
67432		}
67433
67434	} else {
67435		yyj1 := 0
67436		for ; !r.CheckBreak(); yyj1++ {
67437
67438			if yyj1 >= len(yyv1) {
67439				yyv1 = append(yyv1, VolumeProjection{}) // var yyz1 VolumeProjection
67440				yyc1 = true
67441			}
67442			yyh1.ElemContainerState(yyj1)
67443			if yyj1 < len(yyv1) {
67444				if r.TryDecodeAsNil() {
67445					yyv1[yyj1] = VolumeProjection{}
67446				} else {
67447					yyv4 := &yyv1[yyj1]
67448					yyv4.CodecDecodeSelf(d)
67449				}
67450
67451			} else {
67452				z.DecSwallow()
67453			}
67454
67455		}
67456		if yyj1 < len(yyv1) {
67457			yyv1 = yyv1[:yyj1]
67458			yyc1 = true
67459		} else if yyj1 == 0 && yyv1 == nil {
67460			yyv1 = []VolumeProjection{}
67461			yyc1 = true
67462		}
67463	}
67464	yyh1.End()
67465	if yyc1 {
67466		*v = yyv1
67467	}
67468}
67469
67470func (x codecSelfer1234) encSliceHTTPHeader(v []HTTPHeader, e *codec1978.Encoder) {
67471	var h codecSelfer1234
67472	z, r := codec1978.GenHelperEncoder(e)
67473	_, _, _ = h, z, r
67474	r.EncodeArrayStart(len(v))
67475	for _, yyv1 := range v {
67476		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
67477		yy2 := &yyv1
67478		yy2.CodecEncodeSelf(e)
67479	}
67480	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
67481}
67482
67483func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decoder) {
67484	var h codecSelfer1234
67485	z, r := codec1978.GenHelperDecoder(d)
67486	_, _, _ = h, z, r
67487
67488	yyv1 := *v
67489	yyh1, yyl1 := z.DecSliceHelperStart()
67490	var yyc1 bool
67491	_ = yyc1
67492	if yyl1 == 0 {
67493		if yyv1 == nil {
67494			yyv1 = []HTTPHeader{}
67495			yyc1 = true
67496		} else if len(yyv1) != 0 {
67497			yyv1 = yyv1[:0]
67498			yyc1 = true
67499		}
67500	} else if yyl1 > 0 {
67501		var yyrr1, yyrl1 int
67502		var yyrt1 bool
67503		_, _ = yyrl1, yyrt1
67504		yyrr1 = yyl1 // len(yyv1)
67505		if yyl1 > cap(yyv1) {
67506
67507			yyrg1 := len(yyv1) > 0
67508			yyv21 := yyv1
67509			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
67510			if yyrt1 {
67511				if yyrl1 <= cap(yyv1) {
67512					yyv1 = yyv1[:yyrl1]
67513				} else {
67514					yyv1 = make([]HTTPHeader, yyrl1)
67515				}
67516			} else {
67517				yyv1 = make([]HTTPHeader, yyrl1)
67518			}
67519			yyc1 = true
67520			yyrr1 = len(yyv1)
67521			if yyrg1 {
67522				copy(yyv1, yyv21)
67523			}
67524		} else if yyl1 != len(yyv1) {
67525			yyv1 = yyv1[:yyl1]
67526			yyc1 = true
67527		}
67528		yyj1 := 0
67529		for ; yyj1 < yyrr1; yyj1++ {
67530			yyh1.ElemContainerState(yyj1)
67531			if r.TryDecodeAsNil() {
67532				yyv1[yyj1] = HTTPHeader{}
67533			} else {
67534				yyv2 := &yyv1[yyj1]
67535				yyv2.CodecDecodeSelf(d)
67536			}
67537
67538		}
67539		if yyrt1 {
67540			for ; yyj1 < yyl1; yyj1++ {
67541				yyv1 = append(yyv1, HTTPHeader{})
67542				yyh1.ElemContainerState(yyj1)
67543				if r.TryDecodeAsNil() {
67544					yyv1[yyj1] = HTTPHeader{}
67545				} else {
67546					yyv3 := &yyv1[yyj1]
67547					yyv3.CodecDecodeSelf(d)
67548				}
67549
67550			}
67551		}
67552
67553	} else {
67554		yyj1 := 0
67555		for ; !r.CheckBreak(); yyj1++ {
67556
67557			if yyj1 >= len(yyv1) {
67558				yyv1 = append(yyv1, HTTPHeader{}) // var yyz1 HTTPHeader
67559				yyc1 = true
67560			}
67561			yyh1.ElemContainerState(yyj1)
67562			if yyj1 < len(yyv1) {
67563				if r.TryDecodeAsNil() {
67564					yyv1[yyj1] = HTTPHeader{}
67565				} else {
67566					yyv4 := &yyv1[yyj1]
67567					yyv4.CodecDecodeSelf(d)
67568				}
67569
67570			} else {
67571				z.DecSwallow()
67572			}
67573
67574		}
67575		if yyj1 < len(yyv1) {
67576			yyv1 = yyv1[:yyj1]
67577			yyc1 = true
67578		} else if yyj1 == 0 && yyv1 == nil {
67579			yyv1 = []HTTPHeader{}
67580			yyc1 = true
67581		}
67582	}
67583	yyh1.End()
67584	if yyc1 {
67585		*v = yyv1
67586	}
67587}
67588
67589func (x codecSelfer1234) encSliceCapability(v []Capability, e *codec1978.Encoder) {
67590	var h codecSelfer1234
67591	z, r := codec1978.GenHelperEncoder(e)
67592	_, _, _ = h, z, r
67593	r.EncodeArrayStart(len(v))
67594	for _, yyv1 := range v {
67595		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
67596		yyv1.CodecEncodeSelf(e)
67597	}
67598	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
67599}
67600
67601func (x codecSelfer1234) decSliceCapability(v *[]Capability, d *codec1978.Decoder) {
67602	var h codecSelfer1234
67603	z, r := codec1978.GenHelperDecoder(d)
67604	_, _, _ = h, z, r
67605
67606	yyv1 := *v
67607	yyh1, yyl1 := z.DecSliceHelperStart()
67608	var yyc1 bool
67609	_ = yyc1
67610	if yyl1 == 0 {
67611		if yyv1 == nil {
67612			yyv1 = []Capability{}
67613			yyc1 = true
67614		} else if len(yyv1) != 0 {
67615			yyv1 = yyv1[:0]
67616			yyc1 = true
67617		}
67618	} else if yyl1 > 0 {
67619		var yyrr1, yyrl1 int
67620		var yyrt1 bool
67621		_, _ = yyrl1, yyrt1
67622		yyrr1 = yyl1 // len(yyv1)
67623		if yyl1 > cap(yyv1) {
67624
67625			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
67626			if yyrt1 {
67627				if yyrl1 <= cap(yyv1) {
67628					yyv1 = yyv1[:yyrl1]
67629				} else {
67630					yyv1 = make([]Capability, yyrl1)
67631				}
67632			} else {
67633				yyv1 = make([]Capability, yyrl1)
67634			}
67635			yyc1 = true
67636			yyrr1 = len(yyv1)
67637		} else if yyl1 != len(yyv1) {
67638			yyv1 = yyv1[:yyl1]
67639			yyc1 = true
67640		}
67641		yyj1 := 0
67642		for ; yyj1 < yyrr1; yyj1++ {
67643			yyh1.ElemContainerState(yyj1)
67644			if r.TryDecodeAsNil() {
67645				yyv1[yyj1] = ""
67646			} else {
67647				yyv2 := &yyv1[yyj1]
67648				yyv2.CodecDecodeSelf(d)
67649			}
67650
67651		}
67652		if yyrt1 {
67653			for ; yyj1 < yyl1; yyj1++ {
67654				yyv1 = append(yyv1, "")
67655				yyh1.ElemContainerState(yyj1)
67656				if r.TryDecodeAsNil() {
67657					yyv1[yyj1] = ""
67658				} else {
67659					yyv3 := &yyv1[yyj1]
67660					yyv3.CodecDecodeSelf(d)
67661				}
67662
67663			}
67664		}
67665
67666	} else {
67667		yyj1 := 0
67668		for ; !r.CheckBreak(); yyj1++ {
67669
67670			if yyj1 >= len(yyv1) {
67671				yyv1 = append(yyv1, "") // var yyz1 Capability
67672				yyc1 = true
67673			}
67674			yyh1.ElemContainerState(yyj1)
67675			if yyj1 < len(yyv1) {
67676				if r.TryDecodeAsNil() {
67677					yyv1[yyj1] = ""
67678				} else {
67679					yyv4 := &yyv1[yyj1]
67680					yyv4.CodecDecodeSelf(d)
67681				}
67682
67683			} else {
67684				z.DecSwallow()
67685			}
67686
67687		}
67688		if yyj1 < len(yyv1) {
67689			yyv1 = yyv1[:yyj1]
67690			yyc1 = true
67691		} else if yyj1 == 0 && yyv1 == nil {
67692			yyv1 = []Capability{}
67693			yyc1 = true
67694		}
67695	}
67696	yyh1.End()
67697	if yyc1 {
67698		*v = yyv1
67699	}
67700}
67701
67702func (x codecSelfer1234) encSliceContainerPort(v []ContainerPort, e *codec1978.Encoder) {
67703	var h codecSelfer1234
67704	z, r := codec1978.GenHelperEncoder(e)
67705	_, _, _ = h, z, r
67706	r.EncodeArrayStart(len(v))
67707	for _, yyv1 := range v {
67708		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
67709		yy2 := &yyv1
67710		yy2.CodecEncodeSelf(e)
67711	}
67712	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
67713}
67714
67715func (x codecSelfer1234) decSliceContainerPort(v *[]ContainerPort, d *codec1978.Decoder) {
67716	var h codecSelfer1234
67717	z, r := codec1978.GenHelperDecoder(d)
67718	_, _, _ = h, z, r
67719
67720	yyv1 := *v
67721	yyh1, yyl1 := z.DecSliceHelperStart()
67722	var yyc1 bool
67723	_ = yyc1
67724	if yyl1 == 0 {
67725		if yyv1 == nil {
67726			yyv1 = []ContainerPort{}
67727			yyc1 = true
67728		} else if len(yyv1) != 0 {
67729			yyv1 = yyv1[:0]
67730			yyc1 = true
67731		}
67732	} else if yyl1 > 0 {
67733		var yyrr1, yyrl1 int
67734		var yyrt1 bool
67735		_, _ = yyrl1, yyrt1
67736		yyrr1 = yyl1 // len(yyv1)
67737		if yyl1 > cap(yyv1) {
67738
67739			yyrg1 := len(yyv1) > 0
67740			yyv21 := yyv1
67741			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56)
67742			if yyrt1 {
67743				if yyrl1 <= cap(yyv1) {
67744					yyv1 = yyv1[:yyrl1]
67745				} else {
67746					yyv1 = make([]ContainerPort, yyrl1)
67747				}
67748			} else {
67749				yyv1 = make([]ContainerPort, yyrl1)
67750			}
67751			yyc1 = true
67752			yyrr1 = len(yyv1)
67753			if yyrg1 {
67754				copy(yyv1, yyv21)
67755			}
67756		} else if yyl1 != len(yyv1) {
67757			yyv1 = yyv1[:yyl1]
67758			yyc1 = true
67759		}
67760		yyj1 := 0
67761		for ; yyj1 < yyrr1; yyj1++ {
67762			yyh1.ElemContainerState(yyj1)
67763			if r.TryDecodeAsNil() {
67764				yyv1[yyj1] = ContainerPort{}
67765			} else {
67766				yyv2 := &yyv1[yyj1]
67767				yyv2.CodecDecodeSelf(d)
67768			}
67769
67770		}
67771		if yyrt1 {
67772			for ; yyj1 < yyl1; yyj1++ {
67773				yyv1 = append(yyv1, ContainerPort{})
67774				yyh1.ElemContainerState(yyj1)
67775				if r.TryDecodeAsNil() {
67776					yyv1[yyj1] = ContainerPort{}
67777				} else {
67778					yyv3 := &yyv1[yyj1]
67779					yyv3.CodecDecodeSelf(d)
67780				}
67781
67782			}
67783		}
67784
67785	} else {
67786		yyj1 := 0
67787		for ; !r.CheckBreak(); yyj1++ {
67788
67789			if yyj1 >= len(yyv1) {
67790				yyv1 = append(yyv1, ContainerPort{}) // var yyz1 ContainerPort
67791				yyc1 = true
67792			}
67793			yyh1.ElemContainerState(yyj1)
67794			if yyj1 < len(yyv1) {
67795				if r.TryDecodeAsNil() {
67796					yyv1[yyj1] = ContainerPort{}
67797				} else {
67798					yyv4 := &yyv1[yyj1]
67799					yyv4.CodecDecodeSelf(d)
67800				}
67801
67802			} else {
67803				z.DecSwallow()
67804			}
67805
67806		}
67807		if yyj1 < len(yyv1) {
67808			yyv1 = yyv1[:yyj1]
67809			yyc1 = true
67810		} else if yyj1 == 0 && yyv1 == nil {
67811			yyv1 = []ContainerPort{}
67812			yyc1 = true
67813		}
67814	}
67815	yyh1.End()
67816	if yyc1 {
67817		*v = yyv1
67818	}
67819}
67820
67821func (x codecSelfer1234) encSliceEnvFromSource(v []EnvFromSource, e *codec1978.Encoder) {
67822	var h codecSelfer1234
67823	z, r := codec1978.GenHelperEncoder(e)
67824	_, _, _ = h, z, r
67825	r.EncodeArrayStart(len(v))
67826	for _, yyv1 := range v {
67827		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
67828		yy2 := &yyv1
67829		yy2.CodecEncodeSelf(e)
67830	}
67831	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
67832}
67833
67834func (x codecSelfer1234) decSliceEnvFromSource(v *[]EnvFromSource, d *codec1978.Decoder) {
67835	var h codecSelfer1234
67836	z, r := codec1978.GenHelperDecoder(d)
67837	_, _, _ = h, z, r
67838
67839	yyv1 := *v
67840	yyh1, yyl1 := z.DecSliceHelperStart()
67841	var yyc1 bool
67842	_ = yyc1
67843	if yyl1 == 0 {
67844		if yyv1 == nil {
67845			yyv1 = []EnvFromSource{}
67846			yyc1 = true
67847		} else if len(yyv1) != 0 {
67848			yyv1 = yyv1[:0]
67849			yyc1 = true
67850		}
67851	} else if yyl1 > 0 {
67852		var yyrr1, yyrl1 int
67853		var yyrt1 bool
67854		_, _ = yyrl1, yyrt1
67855		yyrr1 = yyl1 // len(yyv1)
67856		if yyl1 > cap(yyv1) {
67857
67858			yyrg1 := len(yyv1) > 0
67859			yyv21 := yyv1
67860			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
67861			if yyrt1 {
67862				if yyrl1 <= cap(yyv1) {
67863					yyv1 = yyv1[:yyrl1]
67864				} else {
67865					yyv1 = make([]EnvFromSource, yyrl1)
67866				}
67867			} else {
67868				yyv1 = make([]EnvFromSource, yyrl1)
67869			}
67870			yyc1 = true
67871			yyrr1 = len(yyv1)
67872			if yyrg1 {
67873				copy(yyv1, yyv21)
67874			}
67875		} else if yyl1 != len(yyv1) {
67876			yyv1 = yyv1[:yyl1]
67877			yyc1 = true
67878		}
67879		yyj1 := 0
67880		for ; yyj1 < yyrr1; yyj1++ {
67881			yyh1.ElemContainerState(yyj1)
67882			if r.TryDecodeAsNil() {
67883				yyv1[yyj1] = EnvFromSource{}
67884			} else {
67885				yyv2 := &yyv1[yyj1]
67886				yyv2.CodecDecodeSelf(d)
67887			}
67888
67889		}
67890		if yyrt1 {
67891			for ; yyj1 < yyl1; yyj1++ {
67892				yyv1 = append(yyv1, EnvFromSource{})
67893				yyh1.ElemContainerState(yyj1)
67894				if r.TryDecodeAsNil() {
67895					yyv1[yyj1] = EnvFromSource{}
67896				} else {
67897					yyv3 := &yyv1[yyj1]
67898					yyv3.CodecDecodeSelf(d)
67899				}
67900
67901			}
67902		}
67903
67904	} else {
67905		yyj1 := 0
67906		for ; !r.CheckBreak(); yyj1++ {
67907
67908			if yyj1 >= len(yyv1) {
67909				yyv1 = append(yyv1, EnvFromSource{}) // var yyz1 EnvFromSource
67910				yyc1 = true
67911			}
67912			yyh1.ElemContainerState(yyj1)
67913			if yyj1 < len(yyv1) {
67914				if r.TryDecodeAsNil() {
67915					yyv1[yyj1] = EnvFromSource{}
67916				} else {
67917					yyv4 := &yyv1[yyj1]
67918					yyv4.CodecDecodeSelf(d)
67919				}
67920
67921			} else {
67922				z.DecSwallow()
67923			}
67924
67925		}
67926		if yyj1 < len(yyv1) {
67927			yyv1 = yyv1[:yyj1]
67928			yyc1 = true
67929		} else if yyj1 == 0 && yyv1 == nil {
67930			yyv1 = []EnvFromSource{}
67931			yyc1 = true
67932		}
67933	}
67934	yyh1.End()
67935	if yyc1 {
67936		*v = yyv1
67937	}
67938}
67939
67940func (x codecSelfer1234) encSliceEnvVar(v []EnvVar, e *codec1978.Encoder) {
67941	var h codecSelfer1234
67942	z, r := codec1978.GenHelperEncoder(e)
67943	_, _, _ = h, z, r
67944	r.EncodeArrayStart(len(v))
67945	for _, yyv1 := range v {
67946		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
67947		yy2 := &yyv1
67948		yy2.CodecEncodeSelf(e)
67949	}
67950	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
67951}
67952
67953func (x codecSelfer1234) decSliceEnvVar(v *[]EnvVar, d *codec1978.Decoder) {
67954	var h codecSelfer1234
67955	z, r := codec1978.GenHelperDecoder(d)
67956	_, _, _ = h, z, r
67957
67958	yyv1 := *v
67959	yyh1, yyl1 := z.DecSliceHelperStart()
67960	var yyc1 bool
67961	_ = yyc1
67962	if yyl1 == 0 {
67963		if yyv1 == nil {
67964			yyv1 = []EnvVar{}
67965			yyc1 = true
67966		} else if len(yyv1) != 0 {
67967			yyv1 = yyv1[:0]
67968			yyc1 = true
67969		}
67970	} else if yyl1 > 0 {
67971		var yyrr1, yyrl1 int
67972		var yyrt1 bool
67973		_, _ = yyrl1, yyrt1
67974		yyrr1 = yyl1 // len(yyv1)
67975		if yyl1 > cap(yyv1) {
67976
67977			yyrg1 := len(yyv1) > 0
67978			yyv21 := yyv1
67979			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40)
67980			if yyrt1 {
67981				if yyrl1 <= cap(yyv1) {
67982					yyv1 = yyv1[:yyrl1]
67983				} else {
67984					yyv1 = make([]EnvVar, yyrl1)
67985				}
67986			} else {
67987				yyv1 = make([]EnvVar, yyrl1)
67988			}
67989			yyc1 = true
67990			yyrr1 = len(yyv1)
67991			if yyrg1 {
67992				copy(yyv1, yyv21)
67993			}
67994		} else if yyl1 != len(yyv1) {
67995			yyv1 = yyv1[:yyl1]
67996			yyc1 = true
67997		}
67998		yyj1 := 0
67999		for ; yyj1 < yyrr1; yyj1++ {
68000			yyh1.ElemContainerState(yyj1)
68001			if r.TryDecodeAsNil() {
68002				yyv1[yyj1] = EnvVar{}
68003			} else {
68004				yyv2 := &yyv1[yyj1]
68005				yyv2.CodecDecodeSelf(d)
68006			}
68007
68008		}
68009		if yyrt1 {
68010			for ; yyj1 < yyl1; yyj1++ {
68011				yyv1 = append(yyv1, EnvVar{})
68012				yyh1.ElemContainerState(yyj1)
68013				if r.TryDecodeAsNil() {
68014					yyv1[yyj1] = EnvVar{}
68015				} else {
68016					yyv3 := &yyv1[yyj1]
68017					yyv3.CodecDecodeSelf(d)
68018				}
68019
68020			}
68021		}
68022
68023	} else {
68024		yyj1 := 0
68025		for ; !r.CheckBreak(); yyj1++ {
68026
68027			if yyj1 >= len(yyv1) {
68028				yyv1 = append(yyv1, EnvVar{}) // var yyz1 EnvVar
68029				yyc1 = true
68030			}
68031			yyh1.ElemContainerState(yyj1)
68032			if yyj1 < len(yyv1) {
68033				if r.TryDecodeAsNil() {
68034					yyv1[yyj1] = EnvVar{}
68035				} else {
68036					yyv4 := &yyv1[yyj1]
68037					yyv4.CodecDecodeSelf(d)
68038				}
68039
68040			} else {
68041				z.DecSwallow()
68042			}
68043
68044		}
68045		if yyj1 < len(yyv1) {
68046			yyv1 = yyv1[:yyj1]
68047			yyc1 = true
68048		} else if yyj1 == 0 && yyv1 == nil {
68049			yyv1 = []EnvVar{}
68050			yyc1 = true
68051		}
68052	}
68053	yyh1.End()
68054	if yyc1 {
68055		*v = yyv1
68056	}
68057}
68058
68059func (x codecSelfer1234) encSliceVolumeMount(v []VolumeMount, e *codec1978.Encoder) {
68060	var h codecSelfer1234
68061	z, r := codec1978.GenHelperEncoder(e)
68062	_, _, _ = h, z, r
68063	r.EncodeArrayStart(len(v))
68064	for _, yyv1 := range v {
68065		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
68066		yy2 := &yyv1
68067		yy2.CodecEncodeSelf(e)
68068	}
68069	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
68070}
68071
68072func (x codecSelfer1234) decSliceVolumeMount(v *[]VolumeMount, d *codec1978.Decoder) {
68073	var h codecSelfer1234
68074	z, r := codec1978.GenHelperDecoder(d)
68075	_, _, _ = h, z, r
68076
68077	yyv1 := *v
68078	yyh1, yyl1 := z.DecSliceHelperStart()
68079	var yyc1 bool
68080	_ = yyc1
68081	if yyl1 == 0 {
68082		if yyv1 == nil {
68083			yyv1 = []VolumeMount{}
68084			yyc1 = true
68085		} else if len(yyv1) != 0 {
68086			yyv1 = yyv1[:0]
68087			yyc1 = true
68088		}
68089	} else if yyl1 > 0 {
68090		var yyrr1, yyrl1 int
68091		var yyrt1 bool
68092		_, _ = yyrl1, yyrt1
68093		yyrr1 = yyl1 // len(yyv1)
68094		if yyl1 > cap(yyv1) {
68095
68096			yyrg1 := len(yyv1) > 0
68097			yyv21 := yyv1
68098			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56)
68099			if yyrt1 {
68100				if yyrl1 <= cap(yyv1) {
68101					yyv1 = yyv1[:yyrl1]
68102				} else {
68103					yyv1 = make([]VolumeMount, yyrl1)
68104				}
68105			} else {
68106				yyv1 = make([]VolumeMount, yyrl1)
68107			}
68108			yyc1 = true
68109			yyrr1 = len(yyv1)
68110			if yyrg1 {
68111				copy(yyv1, yyv21)
68112			}
68113		} else if yyl1 != len(yyv1) {
68114			yyv1 = yyv1[:yyl1]
68115			yyc1 = true
68116		}
68117		yyj1 := 0
68118		for ; yyj1 < yyrr1; yyj1++ {
68119			yyh1.ElemContainerState(yyj1)
68120			if r.TryDecodeAsNil() {
68121				yyv1[yyj1] = VolumeMount{}
68122			} else {
68123				yyv2 := &yyv1[yyj1]
68124				yyv2.CodecDecodeSelf(d)
68125			}
68126
68127		}
68128		if yyrt1 {
68129			for ; yyj1 < yyl1; yyj1++ {
68130				yyv1 = append(yyv1, VolumeMount{})
68131				yyh1.ElemContainerState(yyj1)
68132				if r.TryDecodeAsNil() {
68133					yyv1[yyj1] = VolumeMount{}
68134				} else {
68135					yyv3 := &yyv1[yyj1]
68136					yyv3.CodecDecodeSelf(d)
68137				}
68138
68139			}
68140		}
68141
68142	} else {
68143		yyj1 := 0
68144		for ; !r.CheckBreak(); yyj1++ {
68145
68146			if yyj1 >= len(yyv1) {
68147				yyv1 = append(yyv1, VolumeMount{}) // var yyz1 VolumeMount
68148				yyc1 = true
68149			}
68150			yyh1.ElemContainerState(yyj1)
68151			if yyj1 < len(yyv1) {
68152				if r.TryDecodeAsNil() {
68153					yyv1[yyj1] = VolumeMount{}
68154				} else {
68155					yyv4 := &yyv1[yyj1]
68156					yyv4.CodecDecodeSelf(d)
68157				}
68158
68159			} else {
68160				z.DecSwallow()
68161			}
68162
68163		}
68164		if yyj1 < len(yyv1) {
68165			yyv1 = yyv1[:yyj1]
68166			yyc1 = true
68167		} else if yyj1 == 0 && yyv1 == nil {
68168			yyv1 = []VolumeMount{}
68169			yyc1 = true
68170		}
68171	}
68172	yyh1.End()
68173	if yyc1 {
68174		*v = yyv1
68175	}
68176}
68177
68178func (x codecSelfer1234) encSliceNodeSelectorTerm(v []NodeSelectorTerm, e *codec1978.Encoder) {
68179	var h codecSelfer1234
68180	z, r := codec1978.GenHelperEncoder(e)
68181	_, _, _ = h, z, r
68182	r.EncodeArrayStart(len(v))
68183	for _, yyv1 := range v {
68184		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
68185		yy2 := &yyv1
68186		yy2.CodecEncodeSelf(e)
68187	}
68188	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
68189}
68190
68191func (x codecSelfer1234) decSliceNodeSelectorTerm(v *[]NodeSelectorTerm, d *codec1978.Decoder) {
68192	var h codecSelfer1234
68193	z, r := codec1978.GenHelperDecoder(d)
68194	_, _, _ = h, z, r
68195
68196	yyv1 := *v
68197	yyh1, yyl1 := z.DecSliceHelperStart()
68198	var yyc1 bool
68199	_ = yyc1
68200	if yyl1 == 0 {
68201		if yyv1 == nil {
68202			yyv1 = []NodeSelectorTerm{}
68203			yyc1 = true
68204		} else if len(yyv1) != 0 {
68205			yyv1 = yyv1[:0]
68206			yyc1 = true
68207		}
68208	} else if yyl1 > 0 {
68209		var yyrr1, yyrl1 int
68210		var yyrt1 bool
68211		_, _ = yyrl1, yyrt1
68212		yyrr1 = yyl1 // len(yyv1)
68213		if yyl1 > cap(yyv1) {
68214
68215			yyrg1 := len(yyv1) > 0
68216			yyv21 := yyv1
68217			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24)
68218			if yyrt1 {
68219				if yyrl1 <= cap(yyv1) {
68220					yyv1 = yyv1[:yyrl1]
68221				} else {
68222					yyv1 = make([]NodeSelectorTerm, yyrl1)
68223				}
68224			} else {
68225				yyv1 = make([]NodeSelectorTerm, yyrl1)
68226			}
68227			yyc1 = true
68228			yyrr1 = len(yyv1)
68229			if yyrg1 {
68230				copy(yyv1, yyv21)
68231			}
68232		} else if yyl1 != len(yyv1) {
68233			yyv1 = yyv1[:yyl1]
68234			yyc1 = true
68235		}
68236		yyj1 := 0
68237		for ; yyj1 < yyrr1; yyj1++ {
68238			yyh1.ElemContainerState(yyj1)
68239			if r.TryDecodeAsNil() {
68240				yyv1[yyj1] = NodeSelectorTerm{}
68241			} else {
68242				yyv2 := &yyv1[yyj1]
68243				yyv2.CodecDecodeSelf(d)
68244			}
68245
68246		}
68247		if yyrt1 {
68248			for ; yyj1 < yyl1; yyj1++ {
68249				yyv1 = append(yyv1, NodeSelectorTerm{})
68250				yyh1.ElemContainerState(yyj1)
68251				if r.TryDecodeAsNil() {
68252					yyv1[yyj1] = NodeSelectorTerm{}
68253				} else {
68254					yyv3 := &yyv1[yyj1]
68255					yyv3.CodecDecodeSelf(d)
68256				}
68257
68258			}
68259		}
68260
68261	} else {
68262		yyj1 := 0
68263		for ; !r.CheckBreak(); yyj1++ {
68264
68265			if yyj1 >= len(yyv1) {
68266				yyv1 = append(yyv1, NodeSelectorTerm{}) // var yyz1 NodeSelectorTerm
68267				yyc1 = true
68268			}
68269			yyh1.ElemContainerState(yyj1)
68270			if yyj1 < len(yyv1) {
68271				if r.TryDecodeAsNil() {
68272					yyv1[yyj1] = NodeSelectorTerm{}
68273				} else {
68274					yyv4 := &yyv1[yyj1]
68275					yyv4.CodecDecodeSelf(d)
68276				}
68277
68278			} else {
68279				z.DecSwallow()
68280			}
68281
68282		}
68283		if yyj1 < len(yyv1) {
68284			yyv1 = yyv1[:yyj1]
68285			yyc1 = true
68286		} else if yyj1 == 0 && yyv1 == nil {
68287			yyv1 = []NodeSelectorTerm{}
68288			yyc1 = true
68289		}
68290	}
68291	yyh1.End()
68292	if yyc1 {
68293		*v = yyv1
68294	}
68295}
68296
68297func (x codecSelfer1234) encSliceNodeSelectorRequirement(v []NodeSelectorRequirement, e *codec1978.Encoder) {
68298	var h codecSelfer1234
68299	z, r := codec1978.GenHelperEncoder(e)
68300	_, _, _ = h, z, r
68301	r.EncodeArrayStart(len(v))
68302	for _, yyv1 := range v {
68303		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
68304		yy2 := &yyv1
68305		yy2.CodecEncodeSelf(e)
68306	}
68307	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
68308}
68309
68310func (x codecSelfer1234) decSliceNodeSelectorRequirement(v *[]NodeSelectorRequirement, d *codec1978.Decoder) {
68311	var h codecSelfer1234
68312	z, r := codec1978.GenHelperDecoder(d)
68313	_, _, _ = h, z, r
68314
68315	yyv1 := *v
68316	yyh1, yyl1 := z.DecSliceHelperStart()
68317	var yyc1 bool
68318	_ = yyc1
68319	if yyl1 == 0 {
68320		if yyv1 == nil {
68321			yyv1 = []NodeSelectorRequirement{}
68322			yyc1 = true
68323		} else if len(yyv1) != 0 {
68324			yyv1 = yyv1[:0]
68325			yyc1 = true
68326		}
68327	} else if yyl1 > 0 {
68328		var yyrr1, yyrl1 int
68329		var yyrt1 bool
68330		_, _ = yyrl1, yyrt1
68331		yyrr1 = yyl1 // len(yyv1)
68332		if yyl1 > cap(yyv1) {
68333
68334			yyrg1 := len(yyv1) > 0
68335			yyv21 := yyv1
68336			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56)
68337			if yyrt1 {
68338				if yyrl1 <= cap(yyv1) {
68339					yyv1 = yyv1[:yyrl1]
68340				} else {
68341					yyv1 = make([]NodeSelectorRequirement, yyrl1)
68342				}
68343			} else {
68344				yyv1 = make([]NodeSelectorRequirement, yyrl1)
68345			}
68346			yyc1 = true
68347			yyrr1 = len(yyv1)
68348			if yyrg1 {
68349				copy(yyv1, yyv21)
68350			}
68351		} else if yyl1 != len(yyv1) {
68352			yyv1 = yyv1[:yyl1]
68353			yyc1 = true
68354		}
68355		yyj1 := 0
68356		for ; yyj1 < yyrr1; yyj1++ {
68357			yyh1.ElemContainerState(yyj1)
68358			if r.TryDecodeAsNil() {
68359				yyv1[yyj1] = NodeSelectorRequirement{}
68360			} else {
68361				yyv2 := &yyv1[yyj1]
68362				yyv2.CodecDecodeSelf(d)
68363			}
68364
68365		}
68366		if yyrt1 {
68367			for ; yyj1 < yyl1; yyj1++ {
68368				yyv1 = append(yyv1, NodeSelectorRequirement{})
68369				yyh1.ElemContainerState(yyj1)
68370				if r.TryDecodeAsNil() {
68371					yyv1[yyj1] = NodeSelectorRequirement{}
68372				} else {
68373					yyv3 := &yyv1[yyj1]
68374					yyv3.CodecDecodeSelf(d)
68375				}
68376
68377			}
68378		}
68379
68380	} else {
68381		yyj1 := 0
68382		for ; !r.CheckBreak(); yyj1++ {
68383
68384			if yyj1 >= len(yyv1) {
68385				yyv1 = append(yyv1, NodeSelectorRequirement{}) // var yyz1 NodeSelectorRequirement
68386				yyc1 = true
68387			}
68388			yyh1.ElemContainerState(yyj1)
68389			if yyj1 < len(yyv1) {
68390				if r.TryDecodeAsNil() {
68391					yyv1[yyj1] = NodeSelectorRequirement{}
68392				} else {
68393					yyv4 := &yyv1[yyj1]
68394					yyv4.CodecDecodeSelf(d)
68395				}
68396
68397			} else {
68398				z.DecSwallow()
68399			}
68400
68401		}
68402		if yyj1 < len(yyv1) {
68403			yyv1 = yyv1[:yyj1]
68404			yyc1 = true
68405		} else if yyj1 == 0 && yyv1 == nil {
68406			yyv1 = []NodeSelectorRequirement{}
68407			yyc1 = true
68408		}
68409	}
68410	yyh1.End()
68411	if yyc1 {
68412		*v = yyv1
68413	}
68414}
68415
68416func (x codecSelfer1234) encSlicePodAffinityTerm(v []PodAffinityTerm, e *codec1978.Encoder) {
68417	var h codecSelfer1234
68418	z, r := codec1978.GenHelperEncoder(e)
68419	_, _, _ = h, z, r
68420	r.EncodeArrayStart(len(v))
68421	for _, yyv1 := range v {
68422		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
68423		yy2 := &yyv1
68424		yy2.CodecEncodeSelf(e)
68425	}
68426	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
68427}
68428
68429func (x codecSelfer1234) decSlicePodAffinityTerm(v *[]PodAffinityTerm, d *codec1978.Decoder) {
68430	var h codecSelfer1234
68431	z, r := codec1978.GenHelperDecoder(d)
68432	_, _, _ = h, z, r
68433
68434	yyv1 := *v
68435	yyh1, yyl1 := z.DecSliceHelperStart()
68436	var yyc1 bool
68437	_ = yyc1
68438	if yyl1 == 0 {
68439		if yyv1 == nil {
68440			yyv1 = []PodAffinityTerm{}
68441			yyc1 = true
68442		} else if len(yyv1) != 0 {
68443			yyv1 = yyv1[:0]
68444			yyc1 = true
68445		}
68446	} else if yyl1 > 0 {
68447		var yyrr1, yyrl1 int
68448		var yyrt1 bool
68449		_, _ = yyrl1, yyrt1
68450		yyrr1 = yyl1 // len(yyv1)
68451		if yyl1 > cap(yyv1) {
68452
68453			yyrg1 := len(yyv1) > 0
68454			yyv21 := yyv1
68455			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 48)
68456			if yyrt1 {
68457				if yyrl1 <= cap(yyv1) {
68458					yyv1 = yyv1[:yyrl1]
68459				} else {
68460					yyv1 = make([]PodAffinityTerm, yyrl1)
68461				}
68462			} else {
68463				yyv1 = make([]PodAffinityTerm, yyrl1)
68464			}
68465			yyc1 = true
68466			yyrr1 = len(yyv1)
68467			if yyrg1 {
68468				copy(yyv1, yyv21)
68469			}
68470		} else if yyl1 != len(yyv1) {
68471			yyv1 = yyv1[:yyl1]
68472			yyc1 = true
68473		}
68474		yyj1 := 0
68475		for ; yyj1 < yyrr1; yyj1++ {
68476			yyh1.ElemContainerState(yyj1)
68477			if r.TryDecodeAsNil() {
68478				yyv1[yyj1] = PodAffinityTerm{}
68479			} else {
68480				yyv2 := &yyv1[yyj1]
68481				yyv2.CodecDecodeSelf(d)
68482			}
68483
68484		}
68485		if yyrt1 {
68486			for ; yyj1 < yyl1; yyj1++ {
68487				yyv1 = append(yyv1, PodAffinityTerm{})
68488				yyh1.ElemContainerState(yyj1)
68489				if r.TryDecodeAsNil() {
68490					yyv1[yyj1] = PodAffinityTerm{}
68491				} else {
68492					yyv3 := &yyv1[yyj1]
68493					yyv3.CodecDecodeSelf(d)
68494				}
68495
68496			}
68497		}
68498
68499	} else {
68500		yyj1 := 0
68501		for ; !r.CheckBreak(); yyj1++ {
68502
68503			if yyj1 >= len(yyv1) {
68504				yyv1 = append(yyv1, PodAffinityTerm{}) // var yyz1 PodAffinityTerm
68505				yyc1 = true
68506			}
68507			yyh1.ElemContainerState(yyj1)
68508			if yyj1 < len(yyv1) {
68509				if r.TryDecodeAsNil() {
68510					yyv1[yyj1] = PodAffinityTerm{}
68511				} else {
68512					yyv4 := &yyv1[yyj1]
68513					yyv4.CodecDecodeSelf(d)
68514				}
68515
68516			} else {
68517				z.DecSwallow()
68518			}
68519
68520		}
68521		if yyj1 < len(yyv1) {
68522			yyv1 = yyv1[:yyj1]
68523			yyc1 = true
68524		} else if yyj1 == 0 && yyv1 == nil {
68525			yyv1 = []PodAffinityTerm{}
68526			yyc1 = true
68527		}
68528	}
68529	yyh1.End()
68530	if yyc1 {
68531		*v = yyv1
68532	}
68533}
68534
68535func (x codecSelfer1234) encSliceWeightedPodAffinityTerm(v []WeightedPodAffinityTerm, e *codec1978.Encoder) {
68536	var h codecSelfer1234
68537	z, r := codec1978.GenHelperEncoder(e)
68538	_, _, _ = h, z, r
68539	r.EncodeArrayStart(len(v))
68540	for _, yyv1 := range v {
68541		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
68542		yy2 := &yyv1
68543		yy2.CodecEncodeSelf(e)
68544	}
68545	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
68546}
68547
68548func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinityTerm, d *codec1978.Decoder) {
68549	var h codecSelfer1234
68550	z, r := codec1978.GenHelperDecoder(d)
68551	_, _, _ = h, z, r
68552
68553	yyv1 := *v
68554	yyh1, yyl1 := z.DecSliceHelperStart()
68555	var yyc1 bool
68556	_ = yyc1
68557	if yyl1 == 0 {
68558		if yyv1 == nil {
68559			yyv1 = []WeightedPodAffinityTerm{}
68560			yyc1 = true
68561		} else if len(yyv1) != 0 {
68562			yyv1 = yyv1[:0]
68563			yyc1 = true
68564		}
68565	} else if yyl1 > 0 {
68566		var yyrr1, yyrl1 int
68567		var yyrt1 bool
68568		_, _ = yyrl1, yyrt1
68569		yyrr1 = yyl1 // len(yyv1)
68570		if yyl1 > cap(yyv1) {
68571
68572			yyrg1 := len(yyv1) > 0
68573			yyv21 := yyv1
68574			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56)
68575			if yyrt1 {
68576				if yyrl1 <= cap(yyv1) {
68577					yyv1 = yyv1[:yyrl1]
68578				} else {
68579					yyv1 = make([]WeightedPodAffinityTerm, yyrl1)
68580				}
68581			} else {
68582				yyv1 = make([]WeightedPodAffinityTerm, yyrl1)
68583			}
68584			yyc1 = true
68585			yyrr1 = len(yyv1)
68586			if yyrg1 {
68587				copy(yyv1, yyv21)
68588			}
68589		} else if yyl1 != len(yyv1) {
68590			yyv1 = yyv1[:yyl1]
68591			yyc1 = true
68592		}
68593		yyj1 := 0
68594		for ; yyj1 < yyrr1; yyj1++ {
68595			yyh1.ElemContainerState(yyj1)
68596			if r.TryDecodeAsNil() {
68597				yyv1[yyj1] = WeightedPodAffinityTerm{}
68598			} else {
68599				yyv2 := &yyv1[yyj1]
68600				yyv2.CodecDecodeSelf(d)
68601			}
68602
68603		}
68604		if yyrt1 {
68605			for ; yyj1 < yyl1; yyj1++ {
68606				yyv1 = append(yyv1, WeightedPodAffinityTerm{})
68607				yyh1.ElemContainerState(yyj1)
68608				if r.TryDecodeAsNil() {
68609					yyv1[yyj1] = WeightedPodAffinityTerm{}
68610				} else {
68611					yyv3 := &yyv1[yyj1]
68612					yyv3.CodecDecodeSelf(d)
68613				}
68614
68615			}
68616		}
68617
68618	} else {
68619		yyj1 := 0
68620		for ; !r.CheckBreak(); yyj1++ {
68621
68622			if yyj1 >= len(yyv1) {
68623				yyv1 = append(yyv1, WeightedPodAffinityTerm{}) // var yyz1 WeightedPodAffinityTerm
68624				yyc1 = true
68625			}
68626			yyh1.ElemContainerState(yyj1)
68627			if yyj1 < len(yyv1) {
68628				if r.TryDecodeAsNil() {
68629					yyv1[yyj1] = WeightedPodAffinityTerm{}
68630				} else {
68631					yyv4 := &yyv1[yyj1]
68632					yyv4.CodecDecodeSelf(d)
68633				}
68634
68635			} else {
68636				z.DecSwallow()
68637			}
68638
68639		}
68640		if yyj1 < len(yyv1) {
68641			yyv1 = yyv1[:yyj1]
68642			yyc1 = true
68643		} else if yyj1 == 0 && yyv1 == nil {
68644			yyv1 = []WeightedPodAffinityTerm{}
68645			yyc1 = true
68646		}
68647	}
68648	yyh1.End()
68649	if yyc1 {
68650		*v = yyv1
68651	}
68652}
68653
68654func (x codecSelfer1234) encSlicePreferredSchedulingTerm(v []PreferredSchedulingTerm, e *codec1978.Encoder) {
68655	var h codecSelfer1234
68656	z, r := codec1978.GenHelperEncoder(e)
68657	_, _, _ = h, z, r
68658	r.EncodeArrayStart(len(v))
68659	for _, yyv1 := range v {
68660		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
68661		yy2 := &yyv1
68662		yy2.CodecEncodeSelf(e)
68663	}
68664	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
68665}
68666
68667func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulingTerm, d *codec1978.Decoder) {
68668	var h codecSelfer1234
68669	z, r := codec1978.GenHelperDecoder(d)
68670	_, _, _ = h, z, r
68671
68672	yyv1 := *v
68673	yyh1, yyl1 := z.DecSliceHelperStart()
68674	var yyc1 bool
68675	_ = yyc1
68676	if yyl1 == 0 {
68677		if yyv1 == nil {
68678			yyv1 = []PreferredSchedulingTerm{}
68679			yyc1 = true
68680		} else if len(yyv1) != 0 {
68681			yyv1 = yyv1[:0]
68682			yyc1 = true
68683		}
68684	} else if yyl1 > 0 {
68685		var yyrr1, yyrl1 int
68686		var yyrt1 bool
68687		_, _ = yyrl1, yyrt1
68688		yyrr1 = yyl1 // len(yyv1)
68689		if yyl1 > cap(yyv1) {
68690
68691			yyrg1 := len(yyv1) > 0
68692			yyv21 := yyv1
68693			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
68694			if yyrt1 {
68695				if yyrl1 <= cap(yyv1) {
68696					yyv1 = yyv1[:yyrl1]
68697				} else {
68698					yyv1 = make([]PreferredSchedulingTerm, yyrl1)
68699				}
68700			} else {
68701				yyv1 = make([]PreferredSchedulingTerm, yyrl1)
68702			}
68703			yyc1 = true
68704			yyrr1 = len(yyv1)
68705			if yyrg1 {
68706				copy(yyv1, yyv21)
68707			}
68708		} else if yyl1 != len(yyv1) {
68709			yyv1 = yyv1[:yyl1]
68710			yyc1 = true
68711		}
68712		yyj1 := 0
68713		for ; yyj1 < yyrr1; yyj1++ {
68714			yyh1.ElemContainerState(yyj1)
68715			if r.TryDecodeAsNil() {
68716				yyv1[yyj1] = PreferredSchedulingTerm{}
68717			} else {
68718				yyv2 := &yyv1[yyj1]
68719				yyv2.CodecDecodeSelf(d)
68720			}
68721
68722		}
68723		if yyrt1 {
68724			for ; yyj1 < yyl1; yyj1++ {
68725				yyv1 = append(yyv1, PreferredSchedulingTerm{})
68726				yyh1.ElemContainerState(yyj1)
68727				if r.TryDecodeAsNil() {
68728					yyv1[yyj1] = PreferredSchedulingTerm{}
68729				} else {
68730					yyv3 := &yyv1[yyj1]
68731					yyv3.CodecDecodeSelf(d)
68732				}
68733
68734			}
68735		}
68736
68737	} else {
68738		yyj1 := 0
68739		for ; !r.CheckBreak(); yyj1++ {
68740
68741			if yyj1 >= len(yyv1) {
68742				yyv1 = append(yyv1, PreferredSchedulingTerm{}) // var yyz1 PreferredSchedulingTerm
68743				yyc1 = true
68744			}
68745			yyh1.ElemContainerState(yyj1)
68746			if yyj1 < len(yyv1) {
68747				if r.TryDecodeAsNil() {
68748					yyv1[yyj1] = PreferredSchedulingTerm{}
68749				} else {
68750					yyv4 := &yyv1[yyj1]
68751					yyv4.CodecDecodeSelf(d)
68752				}
68753
68754			} else {
68755				z.DecSwallow()
68756			}
68757
68758		}
68759		if yyj1 < len(yyv1) {
68760			yyv1 = yyv1[:yyj1]
68761			yyc1 = true
68762		} else if yyj1 == 0 && yyv1 == nil {
68763			yyv1 = []PreferredSchedulingTerm{}
68764			yyc1 = true
68765		}
68766	}
68767	yyh1.End()
68768	if yyc1 {
68769		*v = yyv1
68770	}
68771}
68772
68773func (x codecSelfer1234) encSliceVolume(v []Volume, e *codec1978.Encoder) {
68774	var h codecSelfer1234
68775	z, r := codec1978.GenHelperEncoder(e)
68776	_, _, _ = h, z, r
68777	r.EncodeArrayStart(len(v))
68778	for _, yyv1 := range v {
68779		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
68780		yy2 := &yyv1
68781		yy2.CodecEncodeSelf(e)
68782	}
68783	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
68784}
68785
68786func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) {
68787	var h codecSelfer1234
68788	z, r := codec1978.GenHelperDecoder(d)
68789	_, _, _ = h, z, r
68790
68791	yyv1 := *v
68792	yyh1, yyl1 := z.DecSliceHelperStart()
68793	var yyc1 bool
68794	_ = yyc1
68795	if yyl1 == 0 {
68796		if yyv1 == nil {
68797			yyv1 = []Volume{}
68798			yyc1 = true
68799		} else if len(yyv1) != 0 {
68800			yyv1 = yyv1[:0]
68801			yyc1 = true
68802		}
68803	} else if yyl1 > 0 {
68804		var yyrr1, yyrl1 int
68805		var yyrt1 bool
68806		_, _ = yyrl1, yyrt1
68807		yyrr1 = yyl1 // len(yyv1)
68808		if yyl1 > cap(yyv1) {
68809
68810			yyrg1 := len(yyv1) > 0
68811			yyv21 := yyv1
68812			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 224)
68813			if yyrt1 {
68814				if yyrl1 <= cap(yyv1) {
68815					yyv1 = yyv1[:yyrl1]
68816				} else {
68817					yyv1 = make([]Volume, yyrl1)
68818				}
68819			} else {
68820				yyv1 = make([]Volume, yyrl1)
68821			}
68822			yyc1 = true
68823			yyrr1 = len(yyv1)
68824			if yyrg1 {
68825				copy(yyv1, yyv21)
68826			}
68827		} else if yyl1 != len(yyv1) {
68828			yyv1 = yyv1[:yyl1]
68829			yyc1 = true
68830		}
68831		yyj1 := 0
68832		for ; yyj1 < yyrr1; yyj1++ {
68833			yyh1.ElemContainerState(yyj1)
68834			if r.TryDecodeAsNil() {
68835				yyv1[yyj1] = Volume{}
68836			} else {
68837				yyv2 := &yyv1[yyj1]
68838				yyv2.CodecDecodeSelf(d)
68839			}
68840
68841		}
68842		if yyrt1 {
68843			for ; yyj1 < yyl1; yyj1++ {
68844				yyv1 = append(yyv1, Volume{})
68845				yyh1.ElemContainerState(yyj1)
68846				if r.TryDecodeAsNil() {
68847					yyv1[yyj1] = Volume{}
68848				} else {
68849					yyv3 := &yyv1[yyj1]
68850					yyv3.CodecDecodeSelf(d)
68851				}
68852
68853			}
68854		}
68855
68856	} else {
68857		yyj1 := 0
68858		for ; !r.CheckBreak(); yyj1++ {
68859
68860			if yyj1 >= len(yyv1) {
68861				yyv1 = append(yyv1, Volume{}) // var yyz1 Volume
68862				yyc1 = true
68863			}
68864			yyh1.ElemContainerState(yyj1)
68865			if yyj1 < len(yyv1) {
68866				if r.TryDecodeAsNil() {
68867					yyv1[yyj1] = Volume{}
68868				} else {
68869					yyv4 := &yyv1[yyj1]
68870					yyv4.CodecDecodeSelf(d)
68871				}
68872
68873			} else {
68874				z.DecSwallow()
68875			}
68876
68877		}
68878		if yyj1 < len(yyv1) {
68879			yyv1 = yyv1[:yyj1]
68880			yyc1 = true
68881		} else if yyj1 == 0 && yyv1 == nil {
68882			yyv1 = []Volume{}
68883			yyc1 = true
68884		}
68885	}
68886	yyh1.End()
68887	if yyc1 {
68888		*v = yyv1
68889	}
68890}
68891
68892func (x codecSelfer1234) encSliceContainer(v []Container, e *codec1978.Encoder) {
68893	var h codecSelfer1234
68894	z, r := codec1978.GenHelperEncoder(e)
68895	_, _, _ = h, z, r
68896	r.EncodeArrayStart(len(v))
68897	for _, yyv1 := range v {
68898		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
68899		yy2 := &yyv1
68900		yy2.CodecEncodeSelf(e)
68901	}
68902	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
68903}
68904
68905func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) {
68906	var h codecSelfer1234
68907	z, r := codec1978.GenHelperDecoder(d)
68908	_, _, _ = h, z, r
68909
68910	yyv1 := *v
68911	yyh1, yyl1 := z.DecSliceHelperStart()
68912	var yyc1 bool
68913	_ = yyc1
68914	if yyl1 == 0 {
68915		if yyv1 == nil {
68916			yyv1 = []Container{}
68917			yyc1 = true
68918		} else if len(yyv1) != 0 {
68919			yyv1 = yyv1[:0]
68920			yyc1 = true
68921		}
68922	} else if yyl1 > 0 {
68923		var yyrr1, yyrl1 int
68924		var yyrt1 bool
68925		_, _ = yyrl1, yyrt1
68926		yyrr1 = yyl1 // len(yyv1)
68927		if yyl1 > cap(yyv1) {
68928
68929			yyrg1 := len(yyv1) > 0
68930			yyv21 := yyv1
68931			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 296)
68932			if yyrt1 {
68933				if yyrl1 <= cap(yyv1) {
68934					yyv1 = yyv1[:yyrl1]
68935				} else {
68936					yyv1 = make([]Container, yyrl1)
68937				}
68938			} else {
68939				yyv1 = make([]Container, yyrl1)
68940			}
68941			yyc1 = true
68942			yyrr1 = len(yyv1)
68943			if yyrg1 {
68944				copy(yyv1, yyv21)
68945			}
68946		} else if yyl1 != len(yyv1) {
68947			yyv1 = yyv1[:yyl1]
68948			yyc1 = true
68949		}
68950		yyj1 := 0
68951		for ; yyj1 < yyrr1; yyj1++ {
68952			yyh1.ElemContainerState(yyj1)
68953			if r.TryDecodeAsNil() {
68954				yyv1[yyj1] = Container{}
68955			} else {
68956				yyv2 := &yyv1[yyj1]
68957				yyv2.CodecDecodeSelf(d)
68958			}
68959
68960		}
68961		if yyrt1 {
68962			for ; yyj1 < yyl1; yyj1++ {
68963				yyv1 = append(yyv1, Container{})
68964				yyh1.ElemContainerState(yyj1)
68965				if r.TryDecodeAsNil() {
68966					yyv1[yyj1] = Container{}
68967				} else {
68968					yyv3 := &yyv1[yyj1]
68969					yyv3.CodecDecodeSelf(d)
68970				}
68971
68972			}
68973		}
68974
68975	} else {
68976		yyj1 := 0
68977		for ; !r.CheckBreak(); yyj1++ {
68978
68979			if yyj1 >= len(yyv1) {
68980				yyv1 = append(yyv1, Container{}) // var yyz1 Container
68981				yyc1 = true
68982			}
68983			yyh1.ElemContainerState(yyj1)
68984			if yyj1 < len(yyv1) {
68985				if r.TryDecodeAsNil() {
68986					yyv1[yyj1] = Container{}
68987				} else {
68988					yyv4 := &yyv1[yyj1]
68989					yyv4.CodecDecodeSelf(d)
68990				}
68991
68992			} else {
68993				z.DecSwallow()
68994			}
68995
68996		}
68997		if yyj1 < len(yyv1) {
68998			yyv1 = yyv1[:yyj1]
68999			yyc1 = true
69000		} else if yyj1 == 0 && yyv1 == nil {
69001			yyv1 = []Container{}
69002			yyc1 = true
69003		}
69004	}
69005	yyh1.End()
69006	if yyc1 {
69007		*v = yyv1
69008	}
69009}
69010
69011func (x codecSelfer1234) encSliceLocalObjectReference(v []LocalObjectReference, e *codec1978.Encoder) {
69012	var h codecSelfer1234
69013	z, r := codec1978.GenHelperEncoder(e)
69014	_, _, _ = h, z, r
69015	r.EncodeArrayStart(len(v))
69016	for _, yyv1 := range v {
69017		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
69018		yy2 := &yyv1
69019		yy2.CodecEncodeSelf(e)
69020	}
69021	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
69022}
69023
69024func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, d *codec1978.Decoder) {
69025	var h codecSelfer1234
69026	z, r := codec1978.GenHelperDecoder(d)
69027	_, _, _ = h, z, r
69028
69029	yyv1 := *v
69030	yyh1, yyl1 := z.DecSliceHelperStart()
69031	var yyc1 bool
69032	_ = yyc1
69033	if yyl1 == 0 {
69034		if yyv1 == nil {
69035			yyv1 = []LocalObjectReference{}
69036			yyc1 = true
69037		} else if len(yyv1) != 0 {
69038			yyv1 = yyv1[:0]
69039			yyc1 = true
69040		}
69041	} else if yyl1 > 0 {
69042		var yyrr1, yyrl1 int
69043		var yyrt1 bool
69044		_, _ = yyrl1, yyrt1
69045		yyrr1 = yyl1 // len(yyv1)
69046		if yyl1 > cap(yyv1) {
69047
69048			yyrg1 := len(yyv1) > 0
69049			yyv21 := yyv1
69050			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
69051			if yyrt1 {
69052				if yyrl1 <= cap(yyv1) {
69053					yyv1 = yyv1[:yyrl1]
69054				} else {
69055					yyv1 = make([]LocalObjectReference, yyrl1)
69056				}
69057			} else {
69058				yyv1 = make([]LocalObjectReference, yyrl1)
69059			}
69060			yyc1 = true
69061			yyrr1 = len(yyv1)
69062			if yyrg1 {
69063				copy(yyv1, yyv21)
69064			}
69065		} else if yyl1 != len(yyv1) {
69066			yyv1 = yyv1[:yyl1]
69067			yyc1 = true
69068		}
69069		yyj1 := 0
69070		for ; yyj1 < yyrr1; yyj1++ {
69071			yyh1.ElemContainerState(yyj1)
69072			if r.TryDecodeAsNil() {
69073				yyv1[yyj1] = LocalObjectReference{}
69074			} else {
69075				yyv2 := &yyv1[yyj1]
69076				yyv2.CodecDecodeSelf(d)
69077			}
69078
69079		}
69080		if yyrt1 {
69081			for ; yyj1 < yyl1; yyj1++ {
69082				yyv1 = append(yyv1, LocalObjectReference{})
69083				yyh1.ElemContainerState(yyj1)
69084				if r.TryDecodeAsNil() {
69085					yyv1[yyj1] = LocalObjectReference{}
69086				} else {
69087					yyv3 := &yyv1[yyj1]
69088					yyv3.CodecDecodeSelf(d)
69089				}
69090
69091			}
69092		}
69093
69094	} else {
69095		yyj1 := 0
69096		for ; !r.CheckBreak(); yyj1++ {
69097
69098			if yyj1 >= len(yyv1) {
69099				yyv1 = append(yyv1, LocalObjectReference{}) // var yyz1 LocalObjectReference
69100				yyc1 = true
69101			}
69102			yyh1.ElemContainerState(yyj1)
69103			if yyj1 < len(yyv1) {
69104				if r.TryDecodeAsNil() {
69105					yyv1[yyj1] = LocalObjectReference{}
69106				} else {
69107					yyv4 := &yyv1[yyj1]
69108					yyv4.CodecDecodeSelf(d)
69109				}
69110
69111			} else {
69112				z.DecSwallow()
69113			}
69114
69115		}
69116		if yyj1 < len(yyv1) {
69117			yyv1 = yyv1[:yyj1]
69118			yyc1 = true
69119		} else if yyj1 == 0 && yyv1 == nil {
69120			yyv1 = []LocalObjectReference{}
69121			yyc1 = true
69122		}
69123	}
69124	yyh1.End()
69125	if yyc1 {
69126		*v = yyv1
69127	}
69128}
69129
69130func (x codecSelfer1234) encSliceToleration(v []Toleration, e *codec1978.Encoder) {
69131	var h codecSelfer1234
69132	z, r := codec1978.GenHelperEncoder(e)
69133	_, _, _ = h, z, r
69134	r.EncodeArrayStart(len(v))
69135	for _, yyv1 := range v {
69136		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
69137		yy2 := &yyv1
69138		yy2.CodecEncodeSelf(e)
69139	}
69140	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
69141}
69142
69143func (x codecSelfer1234) decSliceToleration(v *[]Toleration, d *codec1978.Decoder) {
69144	var h codecSelfer1234
69145	z, r := codec1978.GenHelperDecoder(d)
69146	_, _, _ = h, z, r
69147
69148	yyv1 := *v
69149	yyh1, yyl1 := z.DecSliceHelperStart()
69150	var yyc1 bool
69151	_ = yyc1
69152	if yyl1 == 0 {
69153		if yyv1 == nil {
69154			yyv1 = []Toleration{}
69155			yyc1 = true
69156		} else if len(yyv1) != 0 {
69157			yyv1 = yyv1[:0]
69158			yyc1 = true
69159		}
69160	} else if yyl1 > 0 {
69161		var yyrr1, yyrl1 int
69162		var yyrt1 bool
69163		_, _ = yyrl1, yyrt1
69164		yyrr1 = yyl1 // len(yyv1)
69165		if yyl1 > cap(yyv1) {
69166
69167			yyrg1 := len(yyv1) > 0
69168			yyv21 := yyv1
69169			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 72)
69170			if yyrt1 {
69171				if yyrl1 <= cap(yyv1) {
69172					yyv1 = yyv1[:yyrl1]
69173				} else {
69174					yyv1 = make([]Toleration, yyrl1)
69175				}
69176			} else {
69177				yyv1 = make([]Toleration, yyrl1)
69178			}
69179			yyc1 = true
69180			yyrr1 = len(yyv1)
69181			if yyrg1 {
69182				copy(yyv1, yyv21)
69183			}
69184		} else if yyl1 != len(yyv1) {
69185			yyv1 = yyv1[:yyl1]
69186			yyc1 = true
69187		}
69188		yyj1 := 0
69189		for ; yyj1 < yyrr1; yyj1++ {
69190			yyh1.ElemContainerState(yyj1)
69191			if r.TryDecodeAsNil() {
69192				yyv1[yyj1] = Toleration{}
69193			} else {
69194				yyv2 := &yyv1[yyj1]
69195				yyv2.CodecDecodeSelf(d)
69196			}
69197
69198		}
69199		if yyrt1 {
69200			for ; yyj1 < yyl1; yyj1++ {
69201				yyv1 = append(yyv1, Toleration{})
69202				yyh1.ElemContainerState(yyj1)
69203				if r.TryDecodeAsNil() {
69204					yyv1[yyj1] = Toleration{}
69205				} else {
69206					yyv3 := &yyv1[yyj1]
69207					yyv3.CodecDecodeSelf(d)
69208				}
69209
69210			}
69211		}
69212
69213	} else {
69214		yyj1 := 0
69215		for ; !r.CheckBreak(); yyj1++ {
69216
69217			if yyj1 >= len(yyv1) {
69218				yyv1 = append(yyv1, Toleration{}) // var yyz1 Toleration
69219				yyc1 = true
69220			}
69221			yyh1.ElemContainerState(yyj1)
69222			if yyj1 < len(yyv1) {
69223				if r.TryDecodeAsNil() {
69224					yyv1[yyj1] = Toleration{}
69225				} else {
69226					yyv4 := &yyv1[yyj1]
69227					yyv4.CodecDecodeSelf(d)
69228				}
69229
69230			} else {
69231				z.DecSwallow()
69232			}
69233
69234		}
69235		if yyj1 < len(yyv1) {
69236			yyv1 = yyv1[:yyj1]
69237			yyc1 = true
69238		} else if yyj1 == 0 && yyv1 == nil {
69239			yyv1 = []Toleration{}
69240			yyc1 = true
69241		}
69242	}
69243	yyh1.End()
69244	if yyc1 {
69245		*v = yyv1
69246	}
69247}
69248
69249func (x codecSelfer1234) encSlicePodCondition(v []PodCondition, e *codec1978.Encoder) {
69250	var h codecSelfer1234
69251	z, r := codec1978.GenHelperEncoder(e)
69252	_, _, _ = h, z, r
69253	r.EncodeArrayStart(len(v))
69254	for _, yyv1 := range v {
69255		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
69256		yy2 := &yyv1
69257		yy2.CodecEncodeSelf(e)
69258	}
69259	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
69260}
69261
69262func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.Decoder) {
69263	var h codecSelfer1234
69264	z, r := codec1978.GenHelperDecoder(d)
69265	_, _, _ = h, z, r
69266
69267	yyv1 := *v
69268	yyh1, yyl1 := z.DecSliceHelperStart()
69269	var yyc1 bool
69270	_ = yyc1
69271	if yyl1 == 0 {
69272		if yyv1 == nil {
69273			yyv1 = []PodCondition{}
69274			yyc1 = true
69275		} else if len(yyv1) != 0 {
69276			yyv1 = yyv1[:0]
69277			yyc1 = true
69278		}
69279	} else if yyl1 > 0 {
69280		var yyrr1, yyrl1 int
69281		var yyrt1 bool
69282		_, _ = yyrl1, yyrt1
69283		yyrr1 = yyl1 // len(yyv1)
69284		if yyl1 > cap(yyv1) {
69285
69286			yyrg1 := len(yyv1) > 0
69287			yyv21 := yyv1
69288			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112)
69289			if yyrt1 {
69290				if yyrl1 <= cap(yyv1) {
69291					yyv1 = yyv1[:yyrl1]
69292				} else {
69293					yyv1 = make([]PodCondition, yyrl1)
69294				}
69295			} else {
69296				yyv1 = make([]PodCondition, yyrl1)
69297			}
69298			yyc1 = true
69299			yyrr1 = len(yyv1)
69300			if yyrg1 {
69301				copy(yyv1, yyv21)
69302			}
69303		} else if yyl1 != len(yyv1) {
69304			yyv1 = yyv1[:yyl1]
69305			yyc1 = true
69306		}
69307		yyj1 := 0
69308		for ; yyj1 < yyrr1; yyj1++ {
69309			yyh1.ElemContainerState(yyj1)
69310			if r.TryDecodeAsNil() {
69311				yyv1[yyj1] = PodCondition{}
69312			} else {
69313				yyv2 := &yyv1[yyj1]
69314				yyv2.CodecDecodeSelf(d)
69315			}
69316
69317		}
69318		if yyrt1 {
69319			for ; yyj1 < yyl1; yyj1++ {
69320				yyv1 = append(yyv1, PodCondition{})
69321				yyh1.ElemContainerState(yyj1)
69322				if r.TryDecodeAsNil() {
69323					yyv1[yyj1] = PodCondition{}
69324				} else {
69325					yyv3 := &yyv1[yyj1]
69326					yyv3.CodecDecodeSelf(d)
69327				}
69328
69329			}
69330		}
69331
69332	} else {
69333		yyj1 := 0
69334		for ; !r.CheckBreak(); yyj1++ {
69335
69336			if yyj1 >= len(yyv1) {
69337				yyv1 = append(yyv1, PodCondition{}) // var yyz1 PodCondition
69338				yyc1 = true
69339			}
69340			yyh1.ElemContainerState(yyj1)
69341			if yyj1 < len(yyv1) {
69342				if r.TryDecodeAsNil() {
69343					yyv1[yyj1] = PodCondition{}
69344				} else {
69345					yyv4 := &yyv1[yyj1]
69346					yyv4.CodecDecodeSelf(d)
69347				}
69348
69349			} else {
69350				z.DecSwallow()
69351			}
69352
69353		}
69354		if yyj1 < len(yyv1) {
69355			yyv1 = yyv1[:yyj1]
69356			yyc1 = true
69357		} else if yyj1 == 0 && yyv1 == nil {
69358			yyv1 = []PodCondition{}
69359			yyc1 = true
69360		}
69361	}
69362	yyh1.End()
69363	if yyc1 {
69364		*v = yyv1
69365	}
69366}
69367
69368func (x codecSelfer1234) encSliceContainerStatus(v []ContainerStatus, e *codec1978.Encoder) {
69369	var h codecSelfer1234
69370	z, r := codec1978.GenHelperEncoder(e)
69371	_, _, _ = h, z, r
69372	r.EncodeArrayStart(len(v))
69373	for _, yyv1 := range v {
69374		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
69375		yy2 := &yyv1
69376		yy2.CodecEncodeSelf(e)
69377	}
69378	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
69379}
69380
69381func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1978.Decoder) {
69382	var h codecSelfer1234
69383	z, r := codec1978.GenHelperDecoder(d)
69384	_, _, _ = h, z, r
69385
69386	yyv1 := *v
69387	yyh1, yyl1 := z.DecSliceHelperStart()
69388	var yyc1 bool
69389	_ = yyc1
69390	if yyl1 == 0 {
69391		if yyv1 == nil {
69392			yyv1 = []ContainerStatus{}
69393			yyc1 = true
69394		} else if len(yyv1) != 0 {
69395			yyv1 = yyv1[:0]
69396			yyc1 = true
69397		}
69398	} else if yyl1 > 0 {
69399		var yyrr1, yyrl1 int
69400		var yyrt1 bool
69401		_, _ = yyrl1, yyrt1
69402		yyrr1 = yyl1 // len(yyv1)
69403		if yyl1 > cap(yyv1) {
69404
69405			yyrg1 := len(yyv1) > 0
69406			yyv21 := yyv1
69407			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 120)
69408			if yyrt1 {
69409				if yyrl1 <= cap(yyv1) {
69410					yyv1 = yyv1[:yyrl1]
69411				} else {
69412					yyv1 = make([]ContainerStatus, yyrl1)
69413				}
69414			} else {
69415				yyv1 = make([]ContainerStatus, yyrl1)
69416			}
69417			yyc1 = true
69418			yyrr1 = len(yyv1)
69419			if yyrg1 {
69420				copy(yyv1, yyv21)
69421			}
69422		} else if yyl1 != len(yyv1) {
69423			yyv1 = yyv1[:yyl1]
69424			yyc1 = true
69425		}
69426		yyj1 := 0
69427		for ; yyj1 < yyrr1; yyj1++ {
69428			yyh1.ElemContainerState(yyj1)
69429			if r.TryDecodeAsNil() {
69430				yyv1[yyj1] = ContainerStatus{}
69431			} else {
69432				yyv2 := &yyv1[yyj1]
69433				yyv2.CodecDecodeSelf(d)
69434			}
69435
69436		}
69437		if yyrt1 {
69438			for ; yyj1 < yyl1; yyj1++ {
69439				yyv1 = append(yyv1, ContainerStatus{})
69440				yyh1.ElemContainerState(yyj1)
69441				if r.TryDecodeAsNil() {
69442					yyv1[yyj1] = ContainerStatus{}
69443				} else {
69444					yyv3 := &yyv1[yyj1]
69445					yyv3.CodecDecodeSelf(d)
69446				}
69447
69448			}
69449		}
69450
69451	} else {
69452		yyj1 := 0
69453		for ; !r.CheckBreak(); yyj1++ {
69454
69455			if yyj1 >= len(yyv1) {
69456				yyv1 = append(yyv1, ContainerStatus{}) // var yyz1 ContainerStatus
69457				yyc1 = true
69458			}
69459			yyh1.ElemContainerState(yyj1)
69460			if yyj1 < len(yyv1) {
69461				if r.TryDecodeAsNil() {
69462					yyv1[yyj1] = ContainerStatus{}
69463				} else {
69464					yyv4 := &yyv1[yyj1]
69465					yyv4.CodecDecodeSelf(d)
69466				}
69467
69468			} else {
69469				z.DecSwallow()
69470			}
69471
69472		}
69473		if yyj1 < len(yyv1) {
69474			yyv1 = yyv1[:yyj1]
69475			yyc1 = true
69476		} else if yyj1 == 0 && yyv1 == nil {
69477			yyv1 = []ContainerStatus{}
69478			yyc1 = true
69479		}
69480	}
69481	yyh1.End()
69482	if yyc1 {
69483		*v = yyv1
69484	}
69485}
69486
69487func (x codecSelfer1234) encSlicePod(v []Pod, e *codec1978.Encoder) {
69488	var h codecSelfer1234
69489	z, r := codec1978.GenHelperEncoder(e)
69490	_, _, _ = h, z, r
69491	r.EncodeArrayStart(len(v))
69492	for _, yyv1 := range v {
69493		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
69494		yy2 := &yyv1
69495		yy2.CodecEncodeSelf(e)
69496	}
69497	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
69498}
69499
69500func (x codecSelfer1234) decSlicePod(v *[]Pod, d *codec1978.Decoder) {
69501	var h codecSelfer1234
69502	z, r := codec1978.GenHelperDecoder(d)
69503	_, _, _ = h, z, r
69504
69505	yyv1 := *v
69506	yyh1, yyl1 := z.DecSliceHelperStart()
69507	var yyc1 bool
69508	_ = yyc1
69509	if yyl1 == 0 {
69510		if yyv1 == nil {
69511			yyv1 = []Pod{}
69512			yyc1 = true
69513		} else if len(yyv1) != 0 {
69514			yyv1 = yyv1[:0]
69515			yyc1 = true
69516		}
69517	} else if yyl1 > 0 {
69518		var yyrr1, yyrl1 int
69519		var yyrt1 bool
69520		_, _ = yyrl1, yyrt1
69521		yyrr1 = yyl1 // len(yyv1)
69522		if yyl1 > cap(yyv1) {
69523
69524			yyrg1 := len(yyv1) > 0
69525			yyv21 := yyv1
69526			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 736)
69527			if yyrt1 {
69528				if yyrl1 <= cap(yyv1) {
69529					yyv1 = yyv1[:yyrl1]
69530				} else {
69531					yyv1 = make([]Pod, yyrl1)
69532				}
69533			} else {
69534				yyv1 = make([]Pod, yyrl1)
69535			}
69536			yyc1 = true
69537			yyrr1 = len(yyv1)
69538			if yyrg1 {
69539				copy(yyv1, yyv21)
69540			}
69541		} else if yyl1 != len(yyv1) {
69542			yyv1 = yyv1[:yyl1]
69543			yyc1 = true
69544		}
69545		yyj1 := 0
69546		for ; yyj1 < yyrr1; yyj1++ {
69547			yyh1.ElemContainerState(yyj1)
69548			if r.TryDecodeAsNil() {
69549				yyv1[yyj1] = Pod{}
69550			} else {
69551				yyv2 := &yyv1[yyj1]
69552				yyv2.CodecDecodeSelf(d)
69553			}
69554
69555		}
69556		if yyrt1 {
69557			for ; yyj1 < yyl1; yyj1++ {
69558				yyv1 = append(yyv1, Pod{})
69559				yyh1.ElemContainerState(yyj1)
69560				if r.TryDecodeAsNil() {
69561					yyv1[yyj1] = Pod{}
69562				} else {
69563					yyv3 := &yyv1[yyj1]
69564					yyv3.CodecDecodeSelf(d)
69565				}
69566
69567			}
69568		}
69569
69570	} else {
69571		yyj1 := 0
69572		for ; !r.CheckBreak(); yyj1++ {
69573
69574			if yyj1 >= len(yyv1) {
69575				yyv1 = append(yyv1, Pod{}) // var yyz1 Pod
69576				yyc1 = true
69577			}
69578			yyh1.ElemContainerState(yyj1)
69579			if yyj1 < len(yyv1) {
69580				if r.TryDecodeAsNil() {
69581					yyv1[yyj1] = Pod{}
69582				} else {
69583					yyv4 := &yyv1[yyj1]
69584					yyv4.CodecDecodeSelf(d)
69585				}
69586
69587			} else {
69588				z.DecSwallow()
69589			}
69590
69591		}
69592		if yyj1 < len(yyv1) {
69593			yyv1 = yyv1[:yyj1]
69594			yyc1 = true
69595		} else if yyj1 == 0 && yyv1 == nil {
69596			yyv1 = []Pod{}
69597			yyc1 = true
69598		}
69599	}
69600	yyh1.End()
69601	if yyc1 {
69602		*v = yyv1
69603	}
69604}
69605
69606func (x codecSelfer1234) encSlicePodTemplate(v []PodTemplate, e *codec1978.Encoder) {
69607	var h codecSelfer1234
69608	z, r := codec1978.GenHelperEncoder(e)
69609	_, _, _ = h, z, r
69610	r.EncodeArrayStart(len(v))
69611	for _, yyv1 := range v {
69612		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
69613		yy2 := &yyv1
69614		yy2.CodecEncodeSelf(e)
69615	}
69616	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
69617}
69618
69619func (x codecSelfer1234) decSlicePodTemplate(v *[]PodTemplate, d *codec1978.Decoder) {
69620	var h codecSelfer1234
69621	z, r := codec1978.GenHelperDecoder(d)
69622	_, _, _ = h, z, r
69623
69624	yyv1 := *v
69625	yyh1, yyl1 := z.DecSliceHelperStart()
69626	var yyc1 bool
69627	_ = yyc1
69628	if yyl1 == 0 {
69629		if yyv1 == nil {
69630			yyv1 = []PodTemplate{}
69631			yyc1 = true
69632		} else if len(yyv1) != 0 {
69633			yyv1 = yyv1[:0]
69634			yyc1 = true
69635		}
69636	} else if yyl1 > 0 {
69637		var yyrr1, yyrl1 int
69638		var yyrt1 bool
69639		_, _ = yyrl1, yyrt1
69640		yyrr1 = yyl1 // len(yyv1)
69641		if yyl1 > cap(yyv1) {
69642
69643			yyrg1 := len(yyv1) > 0
69644			yyv21 := yyv1
69645			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 784)
69646			if yyrt1 {
69647				if yyrl1 <= cap(yyv1) {
69648					yyv1 = yyv1[:yyrl1]
69649				} else {
69650					yyv1 = make([]PodTemplate, yyrl1)
69651				}
69652			} else {
69653				yyv1 = make([]PodTemplate, yyrl1)
69654			}
69655			yyc1 = true
69656			yyrr1 = len(yyv1)
69657			if yyrg1 {
69658				copy(yyv1, yyv21)
69659			}
69660		} else if yyl1 != len(yyv1) {
69661			yyv1 = yyv1[:yyl1]
69662			yyc1 = true
69663		}
69664		yyj1 := 0
69665		for ; yyj1 < yyrr1; yyj1++ {
69666			yyh1.ElemContainerState(yyj1)
69667			if r.TryDecodeAsNil() {
69668				yyv1[yyj1] = PodTemplate{}
69669			} else {
69670				yyv2 := &yyv1[yyj1]
69671				yyv2.CodecDecodeSelf(d)
69672			}
69673
69674		}
69675		if yyrt1 {
69676			for ; yyj1 < yyl1; yyj1++ {
69677				yyv1 = append(yyv1, PodTemplate{})
69678				yyh1.ElemContainerState(yyj1)
69679				if r.TryDecodeAsNil() {
69680					yyv1[yyj1] = PodTemplate{}
69681				} else {
69682					yyv3 := &yyv1[yyj1]
69683					yyv3.CodecDecodeSelf(d)
69684				}
69685
69686			}
69687		}
69688
69689	} else {
69690		yyj1 := 0
69691		for ; !r.CheckBreak(); yyj1++ {
69692
69693			if yyj1 >= len(yyv1) {
69694				yyv1 = append(yyv1, PodTemplate{}) // var yyz1 PodTemplate
69695				yyc1 = true
69696			}
69697			yyh1.ElemContainerState(yyj1)
69698			if yyj1 < len(yyv1) {
69699				if r.TryDecodeAsNil() {
69700					yyv1[yyj1] = PodTemplate{}
69701				} else {
69702					yyv4 := &yyv1[yyj1]
69703					yyv4.CodecDecodeSelf(d)
69704				}
69705
69706			} else {
69707				z.DecSwallow()
69708			}
69709
69710		}
69711		if yyj1 < len(yyv1) {
69712			yyv1 = yyv1[:yyj1]
69713			yyc1 = true
69714		} else if yyj1 == 0 && yyv1 == nil {
69715			yyv1 = []PodTemplate{}
69716			yyc1 = true
69717		}
69718	}
69719	yyh1.End()
69720	if yyc1 {
69721		*v = yyv1
69722	}
69723}
69724
69725func (x codecSelfer1234) encSliceReplicationControllerCondition(v []ReplicationControllerCondition, e *codec1978.Encoder) {
69726	var h codecSelfer1234
69727	z, r := codec1978.GenHelperEncoder(e)
69728	_, _, _ = h, z, r
69729	r.EncodeArrayStart(len(v))
69730	for _, yyv1 := range v {
69731		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
69732		yy2 := &yyv1
69733		yy2.CodecEncodeSelf(e)
69734	}
69735	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
69736}
69737
69738func (x codecSelfer1234) decSliceReplicationControllerCondition(v *[]ReplicationControllerCondition, d *codec1978.Decoder) {
69739	var h codecSelfer1234
69740	z, r := codec1978.GenHelperDecoder(d)
69741	_, _, _ = h, z, r
69742
69743	yyv1 := *v
69744	yyh1, yyl1 := z.DecSliceHelperStart()
69745	var yyc1 bool
69746	_ = yyc1
69747	if yyl1 == 0 {
69748		if yyv1 == nil {
69749			yyv1 = []ReplicationControllerCondition{}
69750			yyc1 = true
69751		} else if len(yyv1) != 0 {
69752			yyv1 = yyv1[:0]
69753			yyc1 = true
69754		}
69755	} else if yyl1 > 0 {
69756		var yyrr1, yyrl1 int
69757		var yyrt1 bool
69758		_, _ = yyrl1, yyrt1
69759		yyrr1 = yyl1 // len(yyv1)
69760		if yyl1 > cap(yyv1) {
69761
69762			yyrg1 := len(yyv1) > 0
69763			yyv21 := yyv1
69764			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 88)
69765			if yyrt1 {
69766				if yyrl1 <= cap(yyv1) {
69767					yyv1 = yyv1[:yyrl1]
69768				} else {
69769					yyv1 = make([]ReplicationControllerCondition, yyrl1)
69770				}
69771			} else {
69772				yyv1 = make([]ReplicationControllerCondition, yyrl1)
69773			}
69774			yyc1 = true
69775			yyrr1 = len(yyv1)
69776			if yyrg1 {
69777				copy(yyv1, yyv21)
69778			}
69779		} else if yyl1 != len(yyv1) {
69780			yyv1 = yyv1[:yyl1]
69781			yyc1 = true
69782		}
69783		yyj1 := 0
69784		for ; yyj1 < yyrr1; yyj1++ {
69785			yyh1.ElemContainerState(yyj1)
69786			if r.TryDecodeAsNil() {
69787				yyv1[yyj1] = ReplicationControllerCondition{}
69788			} else {
69789				yyv2 := &yyv1[yyj1]
69790				yyv2.CodecDecodeSelf(d)
69791			}
69792
69793		}
69794		if yyrt1 {
69795			for ; yyj1 < yyl1; yyj1++ {
69796				yyv1 = append(yyv1, ReplicationControllerCondition{})
69797				yyh1.ElemContainerState(yyj1)
69798				if r.TryDecodeAsNil() {
69799					yyv1[yyj1] = ReplicationControllerCondition{}
69800				} else {
69801					yyv3 := &yyv1[yyj1]
69802					yyv3.CodecDecodeSelf(d)
69803				}
69804
69805			}
69806		}
69807
69808	} else {
69809		yyj1 := 0
69810		for ; !r.CheckBreak(); yyj1++ {
69811
69812			if yyj1 >= len(yyv1) {
69813				yyv1 = append(yyv1, ReplicationControllerCondition{}) // var yyz1 ReplicationControllerCondition
69814				yyc1 = true
69815			}
69816			yyh1.ElemContainerState(yyj1)
69817			if yyj1 < len(yyv1) {
69818				if r.TryDecodeAsNil() {
69819					yyv1[yyj1] = ReplicationControllerCondition{}
69820				} else {
69821					yyv4 := &yyv1[yyj1]
69822					yyv4.CodecDecodeSelf(d)
69823				}
69824
69825			} else {
69826				z.DecSwallow()
69827			}
69828
69829		}
69830		if yyj1 < len(yyv1) {
69831			yyv1 = yyv1[:yyj1]
69832			yyc1 = true
69833		} else if yyj1 == 0 && yyv1 == nil {
69834			yyv1 = []ReplicationControllerCondition{}
69835			yyc1 = true
69836		}
69837	}
69838	yyh1.End()
69839	if yyc1 {
69840		*v = yyv1
69841	}
69842}
69843
69844func (x codecSelfer1234) encSliceReplicationController(v []ReplicationController, e *codec1978.Encoder) {
69845	var h codecSelfer1234
69846	z, r := codec1978.GenHelperEncoder(e)
69847	_, _, _ = h, z, r
69848	r.EncodeArrayStart(len(v))
69849	for _, yyv1 := range v {
69850		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
69851		yy2 := &yyv1
69852		yy2.CodecEncodeSelf(e)
69853	}
69854	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
69855}
69856
69857func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationController, d *codec1978.Decoder) {
69858	var h codecSelfer1234
69859	z, r := codec1978.GenHelperDecoder(d)
69860	_, _, _ = h, z, r
69861
69862	yyv1 := *v
69863	yyh1, yyl1 := z.DecSliceHelperStart()
69864	var yyc1 bool
69865	_ = yyc1
69866	if yyl1 == 0 {
69867		if yyv1 == nil {
69868			yyv1 = []ReplicationController{}
69869			yyc1 = true
69870		} else if len(yyv1) != 0 {
69871			yyv1 = yyv1[:0]
69872			yyc1 = true
69873		}
69874	} else if yyl1 > 0 {
69875		var yyrr1, yyrl1 int
69876		var yyrt1 bool
69877		_, _ = yyrl1, yyrt1
69878		yyrr1 = yyl1 // len(yyv1)
69879		if yyl1 > cap(yyv1) {
69880
69881			yyrg1 := len(yyv1) > 0
69882			yyv21 := yyv1
69883			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 336)
69884			if yyrt1 {
69885				if yyrl1 <= cap(yyv1) {
69886					yyv1 = yyv1[:yyrl1]
69887				} else {
69888					yyv1 = make([]ReplicationController, yyrl1)
69889				}
69890			} else {
69891				yyv1 = make([]ReplicationController, yyrl1)
69892			}
69893			yyc1 = true
69894			yyrr1 = len(yyv1)
69895			if yyrg1 {
69896				copy(yyv1, yyv21)
69897			}
69898		} else if yyl1 != len(yyv1) {
69899			yyv1 = yyv1[:yyl1]
69900			yyc1 = true
69901		}
69902		yyj1 := 0
69903		for ; yyj1 < yyrr1; yyj1++ {
69904			yyh1.ElemContainerState(yyj1)
69905			if r.TryDecodeAsNil() {
69906				yyv1[yyj1] = ReplicationController{}
69907			} else {
69908				yyv2 := &yyv1[yyj1]
69909				yyv2.CodecDecodeSelf(d)
69910			}
69911
69912		}
69913		if yyrt1 {
69914			for ; yyj1 < yyl1; yyj1++ {
69915				yyv1 = append(yyv1, ReplicationController{})
69916				yyh1.ElemContainerState(yyj1)
69917				if r.TryDecodeAsNil() {
69918					yyv1[yyj1] = ReplicationController{}
69919				} else {
69920					yyv3 := &yyv1[yyj1]
69921					yyv3.CodecDecodeSelf(d)
69922				}
69923
69924			}
69925		}
69926
69927	} else {
69928		yyj1 := 0
69929		for ; !r.CheckBreak(); yyj1++ {
69930
69931			if yyj1 >= len(yyv1) {
69932				yyv1 = append(yyv1, ReplicationController{}) // var yyz1 ReplicationController
69933				yyc1 = true
69934			}
69935			yyh1.ElemContainerState(yyj1)
69936			if yyj1 < len(yyv1) {
69937				if r.TryDecodeAsNil() {
69938					yyv1[yyj1] = ReplicationController{}
69939				} else {
69940					yyv4 := &yyv1[yyj1]
69941					yyv4.CodecDecodeSelf(d)
69942				}
69943
69944			} else {
69945				z.DecSwallow()
69946			}
69947
69948		}
69949		if yyj1 < len(yyv1) {
69950			yyv1 = yyv1[:yyj1]
69951			yyc1 = true
69952		} else if yyj1 == 0 && yyv1 == nil {
69953			yyv1 = []ReplicationController{}
69954			yyc1 = true
69955		}
69956	}
69957	yyh1.End()
69958	if yyc1 {
69959		*v = yyv1
69960	}
69961}
69962
69963func (x codecSelfer1234) encSliceLoadBalancerIngress(v []LoadBalancerIngress, e *codec1978.Encoder) {
69964	var h codecSelfer1234
69965	z, r := codec1978.GenHelperEncoder(e)
69966	_, _, _ = h, z, r
69967	r.EncodeArrayStart(len(v))
69968	for _, yyv1 := range v {
69969		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
69970		yy2 := &yyv1
69971		yy2.CodecEncodeSelf(e)
69972	}
69973	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
69974}
69975
69976func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d *codec1978.Decoder) {
69977	var h codecSelfer1234
69978	z, r := codec1978.GenHelperDecoder(d)
69979	_, _, _ = h, z, r
69980
69981	yyv1 := *v
69982	yyh1, yyl1 := z.DecSliceHelperStart()
69983	var yyc1 bool
69984	_ = yyc1
69985	if yyl1 == 0 {
69986		if yyv1 == nil {
69987			yyv1 = []LoadBalancerIngress{}
69988			yyc1 = true
69989		} else if len(yyv1) != 0 {
69990			yyv1 = yyv1[:0]
69991			yyc1 = true
69992		}
69993	} else if yyl1 > 0 {
69994		var yyrr1, yyrl1 int
69995		var yyrt1 bool
69996		_, _ = yyrl1, yyrt1
69997		yyrr1 = yyl1 // len(yyv1)
69998		if yyl1 > cap(yyv1) {
69999
70000			yyrg1 := len(yyv1) > 0
70001			yyv21 := yyv1
70002			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
70003			if yyrt1 {
70004				if yyrl1 <= cap(yyv1) {
70005					yyv1 = yyv1[:yyrl1]
70006				} else {
70007					yyv1 = make([]LoadBalancerIngress, yyrl1)
70008				}
70009			} else {
70010				yyv1 = make([]LoadBalancerIngress, yyrl1)
70011			}
70012			yyc1 = true
70013			yyrr1 = len(yyv1)
70014			if yyrg1 {
70015				copy(yyv1, yyv21)
70016			}
70017		} else if yyl1 != len(yyv1) {
70018			yyv1 = yyv1[:yyl1]
70019			yyc1 = true
70020		}
70021		yyj1 := 0
70022		for ; yyj1 < yyrr1; yyj1++ {
70023			yyh1.ElemContainerState(yyj1)
70024			if r.TryDecodeAsNil() {
70025				yyv1[yyj1] = LoadBalancerIngress{}
70026			} else {
70027				yyv2 := &yyv1[yyj1]
70028				yyv2.CodecDecodeSelf(d)
70029			}
70030
70031		}
70032		if yyrt1 {
70033			for ; yyj1 < yyl1; yyj1++ {
70034				yyv1 = append(yyv1, LoadBalancerIngress{})
70035				yyh1.ElemContainerState(yyj1)
70036				if r.TryDecodeAsNil() {
70037					yyv1[yyj1] = LoadBalancerIngress{}
70038				} else {
70039					yyv3 := &yyv1[yyj1]
70040					yyv3.CodecDecodeSelf(d)
70041				}
70042
70043			}
70044		}
70045
70046	} else {
70047		yyj1 := 0
70048		for ; !r.CheckBreak(); yyj1++ {
70049
70050			if yyj1 >= len(yyv1) {
70051				yyv1 = append(yyv1, LoadBalancerIngress{}) // var yyz1 LoadBalancerIngress
70052				yyc1 = true
70053			}
70054			yyh1.ElemContainerState(yyj1)
70055			if yyj1 < len(yyv1) {
70056				if r.TryDecodeAsNil() {
70057					yyv1[yyj1] = LoadBalancerIngress{}
70058				} else {
70059					yyv4 := &yyv1[yyj1]
70060					yyv4.CodecDecodeSelf(d)
70061				}
70062
70063			} else {
70064				z.DecSwallow()
70065			}
70066
70067		}
70068		if yyj1 < len(yyv1) {
70069			yyv1 = yyv1[:yyj1]
70070			yyc1 = true
70071		} else if yyj1 == 0 && yyv1 == nil {
70072			yyv1 = []LoadBalancerIngress{}
70073			yyc1 = true
70074		}
70075	}
70076	yyh1.End()
70077	if yyc1 {
70078		*v = yyv1
70079	}
70080}
70081
70082func (x codecSelfer1234) encSliceServicePort(v []ServicePort, e *codec1978.Encoder) {
70083	var h codecSelfer1234
70084	z, r := codec1978.GenHelperEncoder(e)
70085	_, _, _ = h, z, r
70086	r.EncodeArrayStart(len(v))
70087	for _, yyv1 := range v {
70088		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
70089		yy2 := &yyv1
70090		yy2.CodecEncodeSelf(e)
70091	}
70092	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
70093}
70094
70095func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Decoder) {
70096	var h codecSelfer1234
70097	z, r := codec1978.GenHelperDecoder(d)
70098	_, _, _ = h, z, r
70099
70100	yyv1 := *v
70101	yyh1, yyl1 := z.DecSliceHelperStart()
70102	var yyc1 bool
70103	_ = yyc1
70104	if yyl1 == 0 {
70105		if yyv1 == nil {
70106			yyv1 = []ServicePort{}
70107			yyc1 = true
70108		} else if len(yyv1) != 0 {
70109			yyv1 = yyv1[:0]
70110			yyc1 = true
70111		}
70112	} else if yyl1 > 0 {
70113		var yyrr1, yyrl1 int
70114		var yyrt1 bool
70115		_, _ = yyrl1, yyrt1
70116		yyrr1 = yyl1 // len(yyv1)
70117		if yyl1 > cap(yyv1) {
70118
70119			yyrg1 := len(yyv1) > 0
70120			yyv21 := yyv1
70121			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 80)
70122			if yyrt1 {
70123				if yyrl1 <= cap(yyv1) {
70124					yyv1 = yyv1[:yyrl1]
70125				} else {
70126					yyv1 = make([]ServicePort, yyrl1)
70127				}
70128			} else {
70129				yyv1 = make([]ServicePort, yyrl1)
70130			}
70131			yyc1 = true
70132			yyrr1 = len(yyv1)
70133			if yyrg1 {
70134				copy(yyv1, yyv21)
70135			}
70136		} else if yyl1 != len(yyv1) {
70137			yyv1 = yyv1[:yyl1]
70138			yyc1 = true
70139		}
70140		yyj1 := 0
70141		for ; yyj1 < yyrr1; yyj1++ {
70142			yyh1.ElemContainerState(yyj1)
70143			if r.TryDecodeAsNil() {
70144				yyv1[yyj1] = ServicePort{}
70145			} else {
70146				yyv2 := &yyv1[yyj1]
70147				yyv2.CodecDecodeSelf(d)
70148			}
70149
70150		}
70151		if yyrt1 {
70152			for ; yyj1 < yyl1; yyj1++ {
70153				yyv1 = append(yyv1, ServicePort{})
70154				yyh1.ElemContainerState(yyj1)
70155				if r.TryDecodeAsNil() {
70156					yyv1[yyj1] = ServicePort{}
70157				} else {
70158					yyv3 := &yyv1[yyj1]
70159					yyv3.CodecDecodeSelf(d)
70160				}
70161
70162			}
70163		}
70164
70165	} else {
70166		yyj1 := 0
70167		for ; !r.CheckBreak(); yyj1++ {
70168
70169			if yyj1 >= len(yyv1) {
70170				yyv1 = append(yyv1, ServicePort{}) // var yyz1 ServicePort
70171				yyc1 = true
70172			}
70173			yyh1.ElemContainerState(yyj1)
70174			if yyj1 < len(yyv1) {
70175				if r.TryDecodeAsNil() {
70176					yyv1[yyj1] = ServicePort{}
70177				} else {
70178					yyv4 := &yyv1[yyj1]
70179					yyv4.CodecDecodeSelf(d)
70180				}
70181
70182			} else {
70183				z.DecSwallow()
70184			}
70185
70186		}
70187		if yyj1 < len(yyv1) {
70188			yyv1 = yyv1[:yyj1]
70189			yyc1 = true
70190		} else if yyj1 == 0 && yyv1 == nil {
70191			yyv1 = []ServicePort{}
70192			yyc1 = true
70193		}
70194	}
70195	yyh1.End()
70196	if yyc1 {
70197		*v = yyv1
70198	}
70199}
70200
70201func (x codecSelfer1234) encSliceService(v []Service, e *codec1978.Encoder) {
70202	var h codecSelfer1234
70203	z, r := codec1978.GenHelperEncoder(e)
70204	_, _, _ = h, z, r
70205	r.EncodeArrayStart(len(v))
70206	for _, yyv1 := range v {
70207		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
70208		yy2 := &yyv1
70209		yy2.CodecEncodeSelf(e)
70210	}
70211	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
70212}
70213
70214func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) {
70215	var h codecSelfer1234
70216	z, r := codec1978.GenHelperDecoder(d)
70217	_, _, _ = h, z, r
70218
70219	yyv1 := *v
70220	yyh1, yyl1 := z.DecSliceHelperStart()
70221	var yyc1 bool
70222	_ = yyc1
70223	if yyl1 == 0 {
70224		if yyv1 == nil {
70225			yyv1 = []Service{}
70226			yyc1 = true
70227		} else if len(yyv1) != 0 {
70228			yyv1 = yyv1[:0]
70229			yyc1 = true
70230		}
70231	} else if yyl1 > 0 {
70232		var yyrr1, yyrl1 int
70233		var yyrt1 bool
70234		_, _ = yyrl1, yyrt1
70235		yyrr1 = yyl1 // len(yyv1)
70236		if yyl1 > cap(yyv1) {
70237
70238			yyrg1 := len(yyv1) > 0
70239			yyv21 := yyv1
70240			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 464)
70241			if yyrt1 {
70242				if yyrl1 <= cap(yyv1) {
70243					yyv1 = yyv1[:yyrl1]
70244				} else {
70245					yyv1 = make([]Service, yyrl1)
70246				}
70247			} else {
70248				yyv1 = make([]Service, yyrl1)
70249			}
70250			yyc1 = true
70251			yyrr1 = len(yyv1)
70252			if yyrg1 {
70253				copy(yyv1, yyv21)
70254			}
70255		} else if yyl1 != len(yyv1) {
70256			yyv1 = yyv1[:yyl1]
70257			yyc1 = true
70258		}
70259		yyj1 := 0
70260		for ; yyj1 < yyrr1; yyj1++ {
70261			yyh1.ElemContainerState(yyj1)
70262			if r.TryDecodeAsNil() {
70263				yyv1[yyj1] = Service{}
70264			} else {
70265				yyv2 := &yyv1[yyj1]
70266				yyv2.CodecDecodeSelf(d)
70267			}
70268
70269		}
70270		if yyrt1 {
70271			for ; yyj1 < yyl1; yyj1++ {
70272				yyv1 = append(yyv1, Service{})
70273				yyh1.ElemContainerState(yyj1)
70274				if r.TryDecodeAsNil() {
70275					yyv1[yyj1] = Service{}
70276				} else {
70277					yyv3 := &yyv1[yyj1]
70278					yyv3.CodecDecodeSelf(d)
70279				}
70280
70281			}
70282		}
70283
70284	} else {
70285		yyj1 := 0
70286		for ; !r.CheckBreak(); yyj1++ {
70287
70288			if yyj1 >= len(yyv1) {
70289				yyv1 = append(yyv1, Service{}) // var yyz1 Service
70290				yyc1 = true
70291			}
70292			yyh1.ElemContainerState(yyj1)
70293			if yyj1 < len(yyv1) {
70294				if r.TryDecodeAsNil() {
70295					yyv1[yyj1] = Service{}
70296				} else {
70297					yyv4 := &yyv1[yyj1]
70298					yyv4.CodecDecodeSelf(d)
70299				}
70300
70301			} else {
70302				z.DecSwallow()
70303			}
70304
70305		}
70306		if yyj1 < len(yyv1) {
70307			yyv1 = yyv1[:yyj1]
70308			yyc1 = true
70309		} else if yyj1 == 0 && yyv1 == nil {
70310			yyv1 = []Service{}
70311			yyc1 = true
70312		}
70313	}
70314	yyh1.End()
70315	if yyc1 {
70316		*v = yyv1
70317	}
70318}
70319
70320func (x codecSelfer1234) encSliceObjectReference(v []ObjectReference, e *codec1978.Encoder) {
70321	var h codecSelfer1234
70322	z, r := codec1978.GenHelperEncoder(e)
70323	_, _, _ = h, z, r
70324	r.EncodeArrayStart(len(v))
70325	for _, yyv1 := range v {
70326		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
70327		yy2 := &yyv1
70328		yy2.CodecEncodeSelf(e)
70329	}
70330	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
70331}
70332
70333func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1978.Decoder) {
70334	var h codecSelfer1234
70335	z, r := codec1978.GenHelperDecoder(d)
70336	_, _, _ = h, z, r
70337
70338	yyv1 := *v
70339	yyh1, yyl1 := z.DecSliceHelperStart()
70340	var yyc1 bool
70341	_ = yyc1
70342	if yyl1 == 0 {
70343		if yyv1 == nil {
70344			yyv1 = []ObjectReference{}
70345			yyc1 = true
70346		} else if len(yyv1) != 0 {
70347			yyv1 = yyv1[:0]
70348			yyc1 = true
70349		}
70350	} else if yyl1 > 0 {
70351		var yyrr1, yyrl1 int
70352		var yyrt1 bool
70353		_, _ = yyrl1, yyrt1
70354		yyrr1 = yyl1 // len(yyv1)
70355		if yyl1 > cap(yyv1) {
70356
70357			yyrg1 := len(yyv1) > 0
70358			yyv21 := yyv1
70359			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112)
70360			if yyrt1 {
70361				if yyrl1 <= cap(yyv1) {
70362					yyv1 = yyv1[:yyrl1]
70363				} else {
70364					yyv1 = make([]ObjectReference, yyrl1)
70365				}
70366			} else {
70367				yyv1 = make([]ObjectReference, yyrl1)
70368			}
70369			yyc1 = true
70370			yyrr1 = len(yyv1)
70371			if yyrg1 {
70372				copy(yyv1, yyv21)
70373			}
70374		} else if yyl1 != len(yyv1) {
70375			yyv1 = yyv1[:yyl1]
70376			yyc1 = true
70377		}
70378		yyj1 := 0
70379		for ; yyj1 < yyrr1; yyj1++ {
70380			yyh1.ElemContainerState(yyj1)
70381			if r.TryDecodeAsNil() {
70382				yyv1[yyj1] = ObjectReference{}
70383			} else {
70384				yyv2 := &yyv1[yyj1]
70385				yyv2.CodecDecodeSelf(d)
70386			}
70387
70388		}
70389		if yyrt1 {
70390			for ; yyj1 < yyl1; yyj1++ {
70391				yyv1 = append(yyv1, ObjectReference{})
70392				yyh1.ElemContainerState(yyj1)
70393				if r.TryDecodeAsNil() {
70394					yyv1[yyj1] = ObjectReference{}
70395				} else {
70396					yyv3 := &yyv1[yyj1]
70397					yyv3.CodecDecodeSelf(d)
70398				}
70399
70400			}
70401		}
70402
70403	} else {
70404		yyj1 := 0
70405		for ; !r.CheckBreak(); yyj1++ {
70406
70407			if yyj1 >= len(yyv1) {
70408				yyv1 = append(yyv1, ObjectReference{}) // var yyz1 ObjectReference
70409				yyc1 = true
70410			}
70411			yyh1.ElemContainerState(yyj1)
70412			if yyj1 < len(yyv1) {
70413				if r.TryDecodeAsNil() {
70414					yyv1[yyj1] = ObjectReference{}
70415				} else {
70416					yyv4 := &yyv1[yyj1]
70417					yyv4.CodecDecodeSelf(d)
70418				}
70419
70420			} else {
70421				z.DecSwallow()
70422			}
70423
70424		}
70425		if yyj1 < len(yyv1) {
70426			yyv1 = yyv1[:yyj1]
70427			yyc1 = true
70428		} else if yyj1 == 0 && yyv1 == nil {
70429			yyv1 = []ObjectReference{}
70430			yyc1 = true
70431		}
70432	}
70433	yyh1.End()
70434	if yyc1 {
70435		*v = yyv1
70436	}
70437}
70438
70439func (x codecSelfer1234) encSliceServiceAccount(v []ServiceAccount, e *codec1978.Encoder) {
70440	var h codecSelfer1234
70441	z, r := codec1978.GenHelperEncoder(e)
70442	_, _, _ = h, z, r
70443	r.EncodeArrayStart(len(v))
70444	for _, yyv1 := range v {
70445		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
70446		yy2 := &yyv1
70447		yy2.CodecEncodeSelf(e)
70448	}
70449	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
70450}
70451
70452func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec1978.Decoder) {
70453	var h codecSelfer1234
70454	z, r := codec1978.GenHelperDecoder(d)
70455	_, _, _ = h, z, r
70456
70457	yyv1 := *v
70458	yyh1, yyl1 := z.DecSliceHelperStart()
70459	var yyc1 bool
70460	_ = yyc1
70461	if yyl1 == 0 {
70462		if yyv1 == nil {
70463			yyv1 = []ServiceAccount{}
70464			yyc1 = true
70465		} else if len(yyv1) != 0 {
70466			yyv1 = yyv1[:0]
70467			yyc1 = true
70468		}
70469	} else if yyl1 > 0 {
70470		var yyrr1, yyrl1 int
70471		var yyrt1 bool
70472		_, _ = yyrl1, yyrt1
70473		yyrr1 = yyl1 // len(yyv1)
70474		if yyl1 > cap(yyv1) {
70475
70476			yyrg1 := len(yyv1) > 0
70477			yyv21 := yyv1
70478			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 312)
70479			if yyrt1 {
70480				if yyrl1 <= cap(yyv1) {
70481					yyv1 = yyv1[:yyrl1]
70482				} else {
70483					yyv1 = make([]ServiceAccount, yyrl1)
70484				}
70485			} else {
70486				yyv1 = make([]ServiceAccount, yyrl1)
70487			}
70488			yyc1 = true
70489			yyrr1 = len(yyv1)
70490			if yyrg1 {
70491				copy(yyv1, yyv21)
70492			}
70493		} else if yyl1 != len(yyv1) {
70494			yyv1 = yyv1[:yyl1]
70495			yyc1 = true
70496		}
70497		yyj1 := 0
70498		for ; yyj1 < yyrr1; yyj1++ {
70499			yyh1.ElemContainerState(yyj1)
70500			if r.TryDecodeAsNil() {
70501				yyv1[yyj1] = ServiceAccount{}
70502			} else {
70503				yyv2 := &yyv1[yyj1]
70504				yyv2.CodecDecodeSelf(d)
70505			}
70506
70507		}
70508		if yyrt1 {
70509			for ; yyj1 < yyl1; yyj1++ {
70510				yyv1 = append(yyv1, ServiceAccount{})
70511				yyh1.ElemContainerState(yyj1)
70512				if r.TryDecodeAsNil() {
70513					yyv1[yyj1] = ServiceAccount{}
70514				} else {
70515					yyv3 := &yyv1[yyj1]
70516					yyv3.CodecDecodeSelf(d)
70517				}
70518
70519			}
70520		}
70521
70522	} else {
70523		yyj1 := 0
70524		for ; !r.CheckBreak(); yyj1++ {
70525
70526			if yyj1 >= len(yyv1) {
70527				yyv1 = append(yyv1, ServiceAccount{}) // var yyz1 ServiceAccount
70528				yyc1 = true
70529			}
70530			yyh1.ElemContainerState(yyj1)
70531			if yyj1 < len(yyv1) {
70532				if r.TryDecodeAsNil() {
70533					yyv1[yyj1] = ServiceAccount{}
70534				} else {
70535					yyv4 := &yyv1[yyj1]
70536					yyv4.CodecDecodeSelf(d)
70537				}
70538
70539			} else {
70540				z.DecSwallow()
70541			}
70542
70543		}
70544		if yyj1 < len(yyv1) {
70545			yyv1 = yyv1[:yyj1]
70546			yyc1 = true
70547		} else if yyj1 == 0 && yyv1 == nil {
70548			yyv1 = []ServiceAccount{}
70549			yyc1 = true
70550		}
70551	}
70552	yyh1.End()
70553	if yyc1 {
70554		*v = yyv1
70555	}
70556}
70557
70558func (x codecSelfer1234) encSliceEndpointSubset(v []EndpointSubset, e *codec1978.Encoder) {
70559	var h codecSelfer1234
70560	z, r := codec1978.GenHelperEncoder(e)
70561	_, _, _ = h, z, r
70562	r.EncodeArrayStart(len(v))
70563	for _, yyv1 := range v {
70564		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
70565		yy2 := &yyv1
70566		yy2.CodecEncodeSelf(e)
70567	}
70568	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
70569}
70570
70571func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec1978.Decoder) {
70572	var h codecSelfer1234
70573	z, r := codec1978.GenHelperDecoder(d)
70574	_, _, _ = h, z, r
70575
70576	yyv1 := *v
70577	yyh1, yyl1 := z.DecSliceHelperStart()
70578	var yyc1 bool
70579	_ = yyc1
70580	if yyl1 == 0 {
70581		if yyv1 == nil {
70582			yyv1 = []EndpointSubset{}
70583			yyc1 = true
70584		} else if len(yyv1) != 0 {
70585			yyv1 = yyv1[:0]
70586			yyc1 = true
70587		}
70588	} else if yyl1 > 0 {
70589		var yyrr1, yyrl1 int
70590		var yyrt1 bool
70591		_, _ = yyrl1, yyrt1
70592		yyrr1 = yyl1 // len(yyv1)
70593		if yyl1 > cap(yyv1) {
70594
70595			yyrg1 := len(yyv1) > 0
70596			yyv21 := yyv1
70597			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 72)
70598			if yyrt1 {
70599				if yyrl1 <= cap(yyv1) {
70600					yyv1 = yyv1[:yyrl1]
70601				} else {
70602					yyv1 = make([]EndpointSubset, yyrl1)
70603				}
70604			} else {
70605				yyv1 = make([]EndpointSubset, yyrl1)
70606			}
70607			yyc1 = true
70608			yyrr1 = len(yyv1)
70609			if yyrg1 {
70610				copy(yyv1, yyv21)
70611			}
70612		} else if yyl1 != len(yyv1) {
70613			yyv1 = yyv1[:yyl1]
70614			yyc1 = true
70615		}
70616		yyj1 := 0
70617		for ; yyj1 < yyrr1; yyj1++ {
70618			yyh1.ElemContainerState(yyj1)
70619			if r.TryDecodeAsNil() {
70620				yyv1[yyj1] = EndpointSubset{}
70621			} else {
70622				yyv2 := &yyv1[yyj1]
70623				yyv2.CodecDecodeSelf(d)
70624			}
70625
70626		}
70627		if yyrt1 {
70628			for ; yyj1 < yyl1; yyj1++ {
70629				yyv1 = append(yyv1, EndpointSubset{})
70630				yyh1.ElemContainerState(yyj1)
70631				if r.TryDecodeAsNil() {
70632					yyv1[yyj1] = EndpointSubset{}
70633				} else {
70634					yyv3 := &yyv1[yyj1]
70635					yyv3.CodecDecodeSelf(d)
70636				}
70637
70638			}
70639		}
70640
70641	} else {
70642		yyj1 := 0
70643		for ; !r.CheckBreak(); yyj1++ {
70644
70645			if yyj1 >= len(yyv1) {
70646				yyv1 = append(yyv1, EndpointSubset{}) // var yyz1 EndpointSubset
70647				yyc1 = true
70648			}
70649			yyh1.ElemContainerState(yyj1)
70650			if yyj1 < len(yyv1) {
70651				if r.TryDecodeAsNil() {
70652					yyv1[yyj1] = EndpointSubset{}
70653				} else {
70654					yyv4 := &yyv1[yyj1]
70655					yyv4.CodecDecodeSelf(d)
70656				}
70657
70658			} else {
70659				z.DecSwallow()
70660			}
70661
70662		}
70663		if yyj1 < len(yyv1) {
70664			yyv1 = yyv1[:yyj1]
70665			yyc1 = true
70666		} else if yyj1 == 0 && yyv1 == nil {
70667			yyv1 = []EndpointSubset{}
70668			yyc1 = true
70669		}
70670	}
70671	yyh1.End()
70672	if yyc1 {
70673		*v = yyv1
70674	}
70675}
70676
70677func (x codecSelfer1234) encSliceEndpointAddress(v []EndpointAddress, e *codec1978.Encoder) {
70678	var h codecSelfer1234
70679	z, r := codec1978.GenHelperEncoder(e)
70680	_, _, _ = h, z, r
70681	r.EncodeArrayStart(len(v))
70682	for _, yyv1 := range v {
70683		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
70684		yy2 := &yyv1
70685		yy2.CodecEncodeSelf(e)
70686	}
70687	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
70688}
70689
70690func (x codecSelfer1234) decSliceEndpointAddress(v *[]EndpointAddress, d *codec1978.Decoder) {
70691	var h codecSelfer1234
70692	z, r := codec1978.GenHelperDecoder(d)
70693	_, _, _ = h, z, r
70694
70695	yyv1 := *v
70696	yyh1, yyl1 := z.DecSliceHelperStart()
70697	var yyc1 bool
70698	_ = yyc1
70699	if yyl1 == 0 {
70700		if yyv1 == nil {
70701			yyv1 = []EndpointAddress{}
70702			yyc1 = true
70703		} else if len(yyv1) != 0 {
70704			yyv1 = yyv1[:0]
70705			yyc1 = true
70706		}
70707	} else if yyl1 > 0 {
70708		var yyrr1, yyrl1 int
70709		var yyrt1 bool
70710		_, _ = yyrl1, yyrt1
70711		yyrr1 = yyl1 // len(yyv1)
70712		if yyl1 > cap(yyv1) {
70713
70714			yyrg1 := len(yyv1) > 0
70715			yyv21 := yyv1
70716			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 48)
70717			if yyrt1 {
70718				if yyrl1 <= cap(yyv1) {
70719					yyv1 = yyv1[:yyrl1]
70720				} else {
70721					yyv1 = make([]EndpointAddress, yyrl1)
70722				}
70723			} else {
70724				yyv1 = make([]EndpointAddress, yyrl1)
70725			}
70726			yyc1 = true
70727			yyrr1 = len(yyv1)
70728			if yyrg1 {
70729				copy(yyv1, yyv21)
70730			}
70731		} else if yyl1 != len(yyv1) {
70732			yyv1 = yyv1[:yyl1]
70733			yyc1 = true
70734		}
70735		yyj1 := 0
70736		for ; yyj1 < yyrr1; yyj1++ {
70737			yyh1.ElemContainerState(yyj1)
70738			if r.TryDecodeAsNil() {
70739				yyv1[yyj1] = EndpointAddress{}
70740			} else {
70741				yyv2 := &yyv1[yyj1]
70742				yyv2.CodecDecodeSelf(d)
70743			}
70744
70745		}
70746		if yyrt1 {
70747			for ; yyj1 < yyl1; yyj1++ {
70748				yyv1 = append(yyv1, EndpointAddress{})
70749				yyh1.ElemContainerState(yyj1)
70750				if r.TryDecodeAsNil() {
70751					yyv1[yyj1] = EndpointAddress{}
70752				} else {
70753					yyv3 := &yyv1[yyj1]
70754					yyv3.CodecDecodeSelf(d)
70755				}
70756
70757			}
70758		}
70759
70760	} else {
70761		yyj1 := 0
70762		for ; !r.CheckBreak(); yyj1++ {
70763
70764			if yyj1 >= len(yyv1) {
70765				yyv1 = append(yyv1, EndpointAddress{}) // var yyz1 EndpointAddress
70766				yyc1 = true
70767			}
70768			yyh1.ElemContainerState(yyj1)
70769			if yyj1 < len(yyv1) {
70770				if r.TryDecodeAsNil() {
70771					yyv1[yyj1] = EndpointAddress{}
70772				} else {
70773					yyv4 := &yyv1[yyj1]
70774					yyv4.CodecDecodeSelf(d)
70775				}
70776
70777			} else {
70778				z.DecSwallow()
70779			}
70780
70781		}
70782		if yyj1 < len(yyv1) {
70783			yyv1 = yyv1[:yyj1]
70784			yyc1 = true
70785		} else if yyj1 == 0 && yyv1 == nil {
70786			yyv1 = []EndpointAddress{}
70787			yyc1 = true
70788		}
70789	}
70790	yyh1.End()
70791	if yyc1 {
70792		*v = yyv1
70793	}
70794}
70795
70796func (x codecSelfer1234) encSliceEndpointPort(v []EndpointPort, e *codec1978.Encoder) {
70797	var h codecSelfer1234
70798	z, r := codec1978.GenHelperEncoder(e)
70799	_, _, _ = h, z, r
70800	r.EncodeArrayStart(len(v))
70801	for _, yyv1 := range v {
70802		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
70803		yy2 := &yyv1
70804		yy2.CodecEncodeSelf(e)
70805	}
70806	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
70807}
70808
70809func (x codecSelfer1234) decSliceEndpointPort(v *[]EndpointPort, d *codec1978.Decoder) {
70810	var h codecSelfer1234
70811	z, r := codec1978.GenHelperDecoder(d)
70812	_, _, _ = h, z, r
70813
70814	yyv1 := *v
70815	yyh1, yyl1 := z.DecSliceHelperStart()
70816	var yyc1 bool
70817	_ = yyc1
70818	if yyl1 == 0 {
70819		if yyv1 == nil {
70820			yyv1 = []EndpointPort{}
70821			yyc1 = true
70822		} else if len(yyv1) != 0 {
70823			yyv1 = yyv1[:0]
70824			yyc1 = true
70825		}
70826	} else if yyl1 > 0 {
70827		var yyrr1, yyrl1 int
70828		var yyrt1 bool
70829		_, _ = yyrl1, yyrt1
70830		yyrr1 = yyl1 // len(yyv1)
70831		if yyl1 > cap(yyv1) {
70832
70833			yyrg1 := len(yyv1) > 0
70834			yyv21 := yyv1
70835			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40)
70836			if yyrt1 {
70837				if yyrl1 <= cap(yyv1) {
70838					yyv1 = yyv1[:yyrl1]
70839				} else {
70840					yyv1 = make([]EndpointPort, yyrl1)
70841				}
70842			} else {
70843				yyv1 = make([]EndpointPort, yyrl1)
70844			}
70845			yyc1 = true
70846			yyrr1 = len(yyv1)
70847			if yyrg1 {
70848				copy(yyv1, yyv21)
70849			}
70850		} else if yyl1 != len(yyv1) {
70851			yyv1 = yyv1[:yyl1]
70852			yyc1 = true
70853		}
70854		yyj1 := 0
70855		for ; yyj1 < yyrr1; yyj1++ {
70856			yyh1.ElemContainerState(yyj1)
70857			if r.TryDecodeAsNil() {
70858				yyv1[yyj1] = EndpointPort{}
70859			} else {
70860				yyv2 := &yyv1[yyj1]
70861				yyv2.CodecDecodeSelf(d)
70862			}
70863
70864		}
70865		if yyrt1 {
70866			for ; yyj1 < yyl1; yyj1++ {
70867				yyv1 = append(yyv1, EndpointPort{})
70868				yyh1.ElemContainerState(yyj1)
70869				if r.TryDecodeAsNil() {
70870					yyv1[yyj1] = EndpointPort{}
70871				} else {
70872					yyv3 := &yyv1[yyj1]
70873					yyv3.CodecDecodeSelf(d)
70874				}
70875
70876			}
70877		}
70878
70879	} else {
70880		yyj1 := 0
70881		for ; !r.CheckBreak(); yyj1++ {
70882
70883			if yyj1 >= len(yyv1) {
70884				yyv1 = append(yyv1, EndpointPort{}) // var yyz1 EndpointPort
70885				yyc1 = true
70886			}
70887			yyh1.ElemContainerState(yyj1)
70888			if yyj1 < len(yyv1) {
70889				if r.TryDecodeAsNil() {
70890					yyv1[yyj1] = EndpointPort{}
70891				} else {
70892					yyv4 := &yyv1[yyj1]
70893					yyv4.CodecDecodeSelf(d)
70894				}
70895
70896			} else {
70897				z.DecSwallow()
70898			}
70899
70900		}
70901		if yyj1 < len(yyv1) {
70902			yyv1 = yyv1[:yyj1]
70903			yyc1 = true
70904		} else if yyj1 == 0 && yyv1 == nil {
70905			yyv1 = []EndpointPort{}
70906			yyc1 = true
70907		}
70908	}
70909	yyh1.End()
70910	if yyc1 {
70911		*v = yyv1
70912	}
70913}
70914
70915func (x codecSelfer1234) encSliceEndpoints(v []Endpoints, e *codec1978.Encoder) {
70916	var h codecSelfer1234
70917	z, r := codec1978.GenHelperEncoder(e)
70918	_, _, _ = h, z, r
70919	r.EncodeArrayStart(len(v))
70920	for _, yyv1 := range v {
70921		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
70922		yy2 := &yyv1
70923		yy2.CodecEncodeSelf(e)
70924	}
70925	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
70926}
70927
70928func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) {
70929	var h codecSelfer1234
70930	z, r := codec1978.GenHelperDecoder(d)
70931	_, _, _ = h, z, r
70932
70933	yyv1 := *v
70934	yyh1, yyl1 := z.DecSliceHelperStart()
70935	var yyc1 bool
70936	_ = yyc1
70937	if yyl1 == 0 {
70938		if yyv1 == nil {
70939			yyv1 = []Endpoints{}
70940			yyc1 = true
70941		} else if len(yyv1) != 0 {
70942			yyv1 = yyv1[:0]
70943			yyc1 = true
70944		}
70945	} else if yyl1 > 0 {
70946		var yyrr1, yyrl1 int
70947		var yyrt1 bool
70948		_, _ = yyrl1, yyrt1
70949		yyrr1 = yyl1 // len(yyv1)
70950		if yyl1 > cap(yyv1) {
70951
70952			yyrg1 := len(yyv1) > 0
70953			yyv21 := yyv1
70954			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 280)
70955			if yyrt1 {
70956				if yyrl1 <= cap(yyv1) {
70957					yyv1 = yyv1[:yyrl1]
70958				} else {
70959					yyv1 = make([]Endpoints, yyrl1)
70960				}
70961			} else {
70962				yyv1 = make([]Endpoints, yyrl1)
70963			}
70964			yyc1 = true
70965			yyrr1 = len(yyv1)
70966			if yyrg1 {
70967				copy(yyv1, yyv21)
70968			}
70969		} else if yyl1 != len(yyv1) {
70970			yyv1 = yyv1[:yyl1]
70971			yyc1 = true
70972		}
70973		yyj1 := 0
70974		for ; yyj1 < yyrr1; yyj1++ {
70975			yyh1.ElemContainerState(yyj1)
70976			if r.TryDecodeAsNil() {
70977				yyv1[yyj1] = Endpoints{}
70978			} else {
70979				yyv2 := &yyv1[yyj1]
70980				yyv2.CodecDecodeSelf(d)
70981			}
70982
70983		}
70984		if yyrt1 {
70985			for ; yyj1 < yyl1; yyj1++ {
70986				yyv1 = append(yyv1, Endpoints{})
70987				yyh1.ElemContainerState(yyj1)
70988				if r.TryDecodeAsNil() {
70989					yyv1[yyj1] = Endpoints{}
70990				} else {
70991					yyv3 := &yyv1[yyj1]
70992					yyv3.CodecDecodeSelf(d)
70993				}
70994
70995			}
70996		}
70997
70998	} else {
70999		yyj1 := 0
71000		for ; !r.CheckBreak(); yyj1++ {
71001
71002			if yyj1 >= len(yyv1) {
71003				yyv1 = append(yyv1, Endpoints{}) // var yyz1 Endpoints
71004				yyc1 = true
71005			}
71006			yyh1.ElemContainerState(yyj1)
71007			if yyj1 < len(yyv1) {
71008				if r.TryDecodeAsNil() {
71009					yyv1[yyj1] = Endpoints{}
71010				} else {
71011					yyv4 := &yyv1[yyj1]
71012					yyv4.CodecDecodeSelf(d)
71013				}
71014
71015			} else {
71016				z.DecSwallow()
71017			}
71018
71019		}
71020		if yyj1 < len(yyv1) {
71021			yyv1 = yyv1[:yyj1]
71022			yyc1 = true
71023		} else if yyj1 == 0 && yyv1 == nil {
71024			yyv1 = []Endpoints{}
71025			yyc1 = true
71026		}
71027	}
71028	yyh1.End()
71029	if yyc1 {
71030		*v = yyv1
71031	}
71032}
71033
71034func (x codecSelfer1234) encSliceTaint(v []Taint, e *codec1978.Encoder) {
71035	var h codecSelfer1234
71036	z, r := codec1978.GenHelperEncoder(e)
71037	_, _, _ = h, z, r
71038	r.EncodeArrayStart(len(v))
71039	for _, yyv1 := range v {
71040		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
71041		yy2 := &yyv1
71042		yy2.CodecEncodeSelf(e)
71043	}
71044	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
71045}
71046
71047func (x codecSelfer1234) decSliceTaint(v *[]Taint, d *codec1978.Decoder) {
71048	var h codecSelfer1234
71049	z, r := codec1978.GenHelperDecoder(d)
71050	_, _, _ = h, z, r
71051
71052	yyv1 := *v
71053	yyh1, yyl1 := z.DecSliceHelperStart()
71054	var yyc1 bool
71055	_ = yyc1
71056	if yyl1 == 0 {
71057		if yyv1 == nil {
71058			yyv1 = []Taint{}
71059			yyc1 = true
71060		} else if len(yyv1) != 0 {
71061			yyv1 = yyv1[:0]
71062			yyc1 = true
71063		}
71064	} else if yyl1 > 0 {
71065		var yyrr1, yyrl1 int
71066		var yyrt1 bool
71067		_, _ = yyrl1, yyrt1
71068		yyrr1 = yyl1 // len(yyv1)
71069		if yyl1 > cap(yyv1) {
71070
71071			yyrg1 := len(yyv1) > 0
71072			yyv21 := yyv1
71073			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 72)
71074			if yyrt1 {
71075				if yyrl1 <= cap(yyv1) {
71076					yyv1 = yyv1[:yyrl1]
71077				} else {
71078					yyv1 = make([]Taint, yyrl1)
71079				}
71080			} else {
71081				yyv1 = make([]Taint, yyrl1)
71082			}
71083			yyc1 = true
71084			yyrr1 = len(yyv1)
71085			if yyrg1 {
71086				copy(yyv1, yyv21)
71087			}
71088		} else if yyl1 != len(yyv1) {
71089			yyv1 = yyv1[:yyl1]
71090			yyc1 = true
71091		}
71092		yyj1 := 0
71093		for ; yyj1 < yyrr1; yyj1++ {
71094			yyh1.ElemContainerState(yyj1)
71095			if r.TryDecodeAsNil() {
71096				yyv1[yyj1] = Taint{}
71097			} else {
71098				yyv2 := &yyv1[yyj1]
71099				yyv2.CodecDecodeSelf(d)
71100			}
71101
71102		}
71103		if yyrt1 {
71104			for ; yyj1 < yyl1; yyj1++ {
71105				yyv1 = append(yyv1, Taint{})
71106				yyh1.ElemContainerState(yyj1)
71107				if r.TryDecodeAsNil() {
71108					yyv1[yyj1] = Taint{}
71109				} else {
71110					yyv3 := &yyv1[yyj1]
71111					yyv3.CodecDecodeSelf(d)
71112				}
71113
71114			}
71115		}
71116
71117	} else {
71118		yyj1 := 0
71119		for ; !r.CheckBreak(); yyj1++ {
71120
71121			if yyj1 >= len(yyv1) {
71122				yyv1 = append(yyv1, Taint{}) // var yyz1 Taint
71123				yyc1 = true
71124			}
71125			yyh1.ElemContainerState(yyj1)
71126			if yyj1 < len(yyv1) {
71127				if r.TryDecodeAsNil() {
71128					yyv1[yyj1] = Taint{}
71129				} else {
71130					yyv4 := &yyv1[yyj1]
71131					yyv4.CodecDecodeSelf(d)
71132				}
71133
71134			} else {
71135				z.DecSwallow()
71136			}
71137
71138		}
71139		if yyj1 < len(yyv1) {
71140			yyv1 = yyv1[:yyj1]
71141			yyc1 = true
71142		} else if yyj1 == 0 && yyv1 == nil {
71143			yyv1 = []Taint{}
71144			yyc1 = true
71145		}
71146	}
71147	yyh1.End()
71148	if yyc1 {
71149		*v = yyv1
71150	}
71151}
71152
71153func (x codecSelfer1234) encSliceNodeCondition(v []NodeCondition, e *codec1978.Encoder) {
71154	var h codecSelfer1234
71155	z, r := codec1978.GenHelperEncoder(e)
71156	_, _, _ = h, z, r
71157	r.EncodeArrayStart(len(v))
71158	for _, yyv1 := range v {
71159		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
71160		yy2 := &yyv1
71161		yy2.CodecEncodeSelf(e)
71162	}
71163	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
71164}
71165
71166func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978.Decoder) {
71167	var h codecSelfer1234
71168	z, r := codec1978.GenHelperDecoder(d)
71169	_, _, _ = h, z, r
71170
71171	yyv1 := *v
71172	yyh1, yyl1 := z.DecSliceHelperStart()
71173	var yyc1 bool
71174	_ = yyc1
71175	if yyl1 == 0 {
71176		if yyv1 == nil {
71177			yyv1 = []NodeCondition{}
71178			yyc1 = true
71179		} else if len(yyv1) != 0 {
71180			yyv1 = yyv1[:0]
71181			yyc1 = true
71182		}
71183	} else if yyl1 > 0 {
71184		var yyrr1, yyrl1 int
71185		var yyrt1 bool
71186		_, _ = yyrl1, yyrt1
71187		yyrr1 = yyl1 // len(yyv1)
71188		if yyl1 > cap(yyv1) {
71189
71190			yyrg1 := len(yyv1) > 0
71191			yyv21 := yyv1
71192			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 112)
71193			if yyrt1 {
71194				if yyrl1 <= cap(yyv1) {
71195					yyv1 = yyv1[:yyrl1]
71196				} else {
71197					yyv1 = make([]NodeCondition, yyrl1)
71198				}
71199			} else {
71200				yyv1 = make([]NodeCondition, yyrl1)
71201			}
71202			yyc1 = true
71203			yyrr1 = len(yyv1)
71204			if yyrg1 {
71205				copy(yyv1, yyv21)
71206			}
71207		} else if yyl1 != len(yyv1) {
71208			yyv1 = yyv1[:yyl1]
71209			yyc1 = true
71210		}
71211		yyj1 := 0
71212		for ; yyj1 < yyrr1; yyj1++ {
71213			yyh1.ElemContainerState(yyj1)
71214			if r.TryDecodeAsNil() {
71215				yyv1[yyj1] = NodeCondition{}
71216			} else {
71217				yyv2 := &yyv1[yyj1]
71218				yyv2.CodecDecodeSelf(d)
71219			}
71220
71221		}
71222		if yyrt1 {
71223			for ; yyj1 < yyl1; yyj1++ {
71224				yyv1 = append(yyv1, NodeCondition{})
71225				yyh1.ElemContainerState(yyj1)
71226				if r.TryDecodeAsNil() {
71227					yyv1[yyj1] = NodeCondition{}
71228				} else {
71229					yyv3 := &yyv1[yyj1]
71230					yyv3.CodecDecodeSelf(d)
71231				}
71232
71233			}
71234		}
71235
71236	} else {
71237		yyj1 := 0
71238		for ; !r.CheckBreak(); yyj1++ {
71239
71240			if yyj1 >= len(yyv1) {
71241				yyv1 = append(yyv1, NodeCondition{}) // var yyz1 NodeCondition
71242				yyc1 = true
71243			}
71244			yyh1.ElemContainerState(yyj1)
71245			if yyj1 < len(yyv1) {
71246				if r.TryDecodeAsNil() {
71247					yyv1[yyj1] = NodeCondition{}
71248				} else {
71249					yyv4 := &yyv1[yyj1]
71250					yyv4.CodecDecodeSelf(d)
71251				}
71252
71253			} else {
71254				z.DecSwallow()
71255			}
71256
71257		}
71258		if yyj1 < len(yyv1) {
71259			yyv1 = yyv1[:yyj1]
71260			yyc1 = true
71261		} else if yyj1 == 0 && yyv1 == nil {
71262			yyv1 = []NodeCondition{}
71263			yyc1 = true
71264		}
71265	}
71266	yyh1.End()
71267	if yyc1 {
71268		*v = yyv1
71269	}
71270}
71271
71272func (x codecSelfer1234) encSliceNodeAddress(v []NodeAddress, e *codec1978.Encoder) {
71273	var h codecSelfer1234
71274	z, r := codec1978.GenHelperEncoder(e)
71275	_, _, _ = h, z, r
71276	r.EncodeArrayStart(len(v))
71277	for _, yyv1 := range v {
71278		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
71279		yy2 := &yyv1
71280		yy2.CodecEncodeSelf(e)
71281	}
71282	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
71283}
71284
71285func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Decoder) {
71286	var h codecSelfer1234
71287	z, r := codec1978.GenHelperDecoder(d)
71288	_, _, _ = h, z, r
71289
71290	yyv1 := *v
71291	yyh1, yyl1 := z.DecSliceHelperStart()
71292	var yyc1 bool
71293	_ = yyc1
71294	if yyl1 == 0 {
71295		if yyv1 == nil {
71296			yyv1 = []NodeAddress{}
71297			yyc1 = true
71298		} else if len(yyv1) != 0 {
71299			yyv1 = yyv1[:0]
71300			yyc1 = true
71301		}
71302	} else if yyl1 > 0 {
71303		var yyrr1, yyrl1 int
71304		var yyrt1 bool
71305		_, _ = yyrl1, yyrt1
71306		yyrr1 = yyl1 // len(yyv1)
71307		if yyl1 > cap(yyv1) {
71308
71309			yyrg1 := len(yyv1) > 0
71310			yyv21 := yyv1
71311			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
71312			if yyrt1 {
71313				if yyrl1 <= cap(yyv1) {
71314					yyv1 = yyv1[:yyrl1]
71315				} else {
71316					yyv1 = make([]NodeAddress, yyrl1)
71317				}
71318			} else {
71319				yyv1 = make([]NodeAddress, yyrl1)
71320			}
71321			yyc1 = true
71322			yyrr1 = len(yyv1)
71323			if yyrg1 {
71324				copy(yyv1, yyv21)
71325			}
71326		} else if yyl1 != len(yyv1) {
71327			yyv1 = yyv1[:yyl1]
71328			yyc1 = true
71329		}
71330		yyj1 := 0
71331		for ; yyj1 < yyrr1; yyj1++ {
71332			yyh1.ElemContainerState(yyj1)
71333			if r.TryDecodeAsNil() {
71334				yyv1[yyj1] = NodeAddress{}
71335			} else {
71336				yyv2 := &yyv1[yyj1]
71337				yyv2.CodecDecodeSelf(d)
71338			}
71339
71340		}
71341		if yyrt1 {
71342			for ; yyj1 < yyl1; yyj1++ {
71343				yyv1 = append(yyv1, NodeAddress{})
71344				yyh1.ElemContainerState(yyj1)
71345				if r.TryDecodeAsNil() {
71346					yyv1[yyj1] = NodeAddress{}
71347				} else {
71348					yyv3 := &yyv1[yyj1]
71349					yyv3.CodecDecodeSelf(d)
71350				}
71351
71352			}
71353		}
71354
71355	} else {
71356		yyj1 := 0
71357		for ; !r.CheckBreak(); yyj1++ {
71358
71359			if yyj1 >= len(yyv1) {
71360				yyv1 = append(yyv1, NodeAddress{}) // var yyz1 NodeAddress
71361				yyc1 = true
71362			}
71363			yyh1.ElemContainerState(yyj1)
71364			if yyj1 < len(yyv1) {
71365				if r.TryDecodeAsNil() {
71366					yyv1[yyj1] = NodeAddress{}
71367				} else {
71368					yyv4 := &yyv1[yyj1]
71369					yyv4.CodecDecodeSelf(d)
71370				}
71371
71372			} else {
71373				z.DecSwallow()
71374			}
71375
71376		}
71377		if yyj1 < len(yyv1) {
71378			yyv1 = yyv1[:yyj1]
71379			yyc1 = true
71380		} else if yyj1 == 0 && yyv1 == nil {
71381			yyv1 = []NodeAddress{}
71382			yyc1 = true
71383		}
71384	}
71385	yyh1.End()
71386	if yyc1 {
71387		*v = yyv1
71388	}
71389}
71390
71391func (x codecSelfer1234) encSliceContainerImage(v []ContainerImage, e *codec1978.Encoder) {
71392	var h codecSelfer1234
71393	z, r := codec1978.GenHelperEncoder(e)
71394	_, _, _ = h, z, r
71395	r.EncodeArrayStart(len(v))
71396	for _, yyv1 := range v {
71397		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
71398		yy2 := &yyv1
71399		yy2.CodecEncodeSelf(e)
71400	}
71401	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
71402}
71403
71404func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec1978.Decoder) {
71405	var h codecSelfer1234
71406	z, r := codec1978.GenHelperDecoder(d)
71407	_, _, _ = h, z, r
71408
71409	yyv1 := *v
71410	yyh1, yyl1 := z.DecSliceHelperStart()
71411	var yyc1 bool
71412	_ = yyc1
71413	if yyl1 == 0 {
71414		if yyv1 == nil {
71415			yyv1 = []ContainerImage{}
71416			yyc1 = true
71417		} else if len(yyv1) != 0 {
71418			yyv1 = yyv1[:0]
71419			yyc1 = true
71420		}
71421	} else if yyl1 > 0 {
71422		var yyrr1, yyrl1 int
71423		var yyrt1 bool
71424		_, _ = yyrl1, yyrt1
71425		yyrr1 = yyl1 // len(yyv1)
71426		if yyl1 > cap(yyv1) {
71427
71428			yyrg1 := len(yyv1) > 0
71429			yyv21 := yyv1
71430			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
71431			if yyrt1 {
71432				if yyrl1 <= cap(yyv1) {
71433					yyv1 = yyv1[:yyrl1]
71434				} else {
71435					yyv1 = make([]ContainerImage, yyrl1)
71436				}
71437			} else {
71438				yyv1 = make([]ContainerImage, yyrl1)
71439			}
71440			yyc1 = true
71441			yyrr1 = len(yyv1)
71442			if yyrg1 {
71443				copy(yyv1, yyv21)
71444			}
71445		} else if yyl1 != len(yyv1) {
71446			yyv1 = yyv1[:yyl1]
71447			yyc1 = true
71448		}
71449		yyj1 := 0
71450		for ; yyj1 < yyrr1; yyj1++ {
71451			yyh1.ElemContainerState(yyj1)
71452			if r.TryDecodeAsNil() {
71453				yyv1[yyj1] = ContainerImage{}
71454			} else {
71455				yyv2 := &yyv1[yyj1]
71456				yyv2.CodecDecodeSelf(d)
71457			}
71458
71459		}
71460		if yyrt1 {
71461			for ; yyj1 < yyl1; yyj1++ {
71462				yyv1 = append(yyv1, ContainerImage{})
71463				yyh1.ElemContainerState(yyj1)
71464				if r.TryDecodeAsNil() {
71465					yyv1[yyj1] = ContainerImage{}
71466				} else {
71467					yyv3 := &yyv1[yyj1]
71468					yyv3.CodecDecodeSelf(d)
71469				}
71470
71471			}
71472		}
71473
71474	} else {
71475		yyj1 := 0
71476		for ; !r.CheckBreak(); yyj1++ {
71477
71478			if yyj1 >= len(yyv1) {
71479				yyv1 = append(yyv1, ContainerImage{}) // var yyz1 ContainerImage
71480				yyc1 = true
71481			}
71482			yyh1.ElemContainerState(yyj1)
71483			if yyj1 < len(yyv1) {
71484				if r.TryDecodeAsNil() {
71485					yyv1[yyj1] = ContainerImage{}
71486				} else {
71487					yyv4 := &yyv1[yyj1]
71488					yyv4.CodecDecodeSelf(d)
71489				}
71490
71491			} else {
71492				z.DecSwallow()
71493			}
71494
71495		}
71496		if yyj1 < len(yyv1) {
71497			yyv1 = yyv1[:yyj1]
71498			yyc1 = true
71499		} else if yyj1 == 0 && yyv1 == nil {
71500			yyv1 = []ContainerImage{}
71501			yyc1 = true
71502		}
71503	}
71504	yyh1.End()
71505	if yyc1 {
71506		*v = yyv1
71507	}
71508}
71509
71510func (x codecSelfer1234) encSliceUniqueVolumeName(v []UniqueVolumeName, e *codec1978.Encoder) {
71511	var h codecSelfer1234
71512	z, r := codec1978.GenHelperEncoder(e)
71513	_, _, _ = h, z, r
71514	r.EncodeArrayStart(len(v))
71515	for _, yyv1 := range v {
71516		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
71517		yyv1.CodecEncodeSelf(e)
71518	}
71519	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
71520}
71521
71522func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *codec1978.Decoder) {
71523	var h codecSelfer1234
71524	z, r := codec1978.GenHelperDecoder(d)
71525	_, _, _ = h, z, r
71526
71527	yyv1 := *v
71528	yyh1, yyl1 := z.DecSliceHelperStart()
71529	var yyc1 bool
71530	_ = yyc1
71531	if yyl1 == 0 {
71532		if yyv1 == nil {
71533			yyv1 = []UniqueVolumeName{}
71534			yyc1 = true
71535		} else if len(yyv1) != 0 {
71536			yyv1 = yyv1[:0]
71537			yyc1 = true
71538		}
71539	} else if yyl1 > 0 {
71540		var yyrr1, yyrl1 int
71541		var yyrt1 bool
71542		_, _ = yyrl1, yyrt1
71543		yyrr1 = yyl1 // len(yyv1)
71544		if yyl1 > cap(yyv1) {
71545
71546			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
71547			if yyrt1 {
71548				if yyrl1 <= cap(yyv1) {
71549					yyv1 = yyv1[:yyrl1]
71550				} else {
71551					yyv1 = make([]UniqueVolumeName, yyrl1)
71552				}
71553			} else {
71554				yyv1 = make([]UniqueVolumeName, yyrl1)
71555			}
71556			yyc1 = true
71557			yyrr1 = len(yyv1)
71558		} else if yyl1 != len(yyv1) {
71559			yyv1 = yyv1[:yyl1]
71560			yyc1 = true
71561		}
71562		yyj1 := 0
71563		for ; yyj1 < yyrr1; yyj1++ {
71564			yyh1.ElemContainerState(yyj1)
71565			if r.TryDecodeAsNil() {
71566				yyv1[yyj1] = ""
71567			} else {
71568				yyv2 := &yyv1[yyj1]
71569				yyv2.CodecDecodeSelf(d)
71570			}
71571
71572		}
71573		if yyrt1 {
71574			for ; yyj1 < yyl1; yyj1++ {
71575				yyv1 = append(yyv1, "")
71576				yyh1.ElemContainerState(yyj1)
71577				if r.TryDecodeAsNil() {
71578					yyv1[yyj1] = ""
71579				} else {
71580					yyv3 := &yyv1[yyj1]
71581					yyv3.CodecDecodeSelf(d)
71582				}
71583
71584			}
71585		}
71586
71587	} else {
71588		yyj1 := 0
71589		for ; !r.CheckBreak(); yyj1++ {
71590
71591			if yyj1 >= len(yyv1) {
71592				yyv1 = append(yyv1, "") // var yyz1 UniqueVolumeName
71593				yyc1 = true
71594			}
71595			yyh1.ElemContainerState(yyj1)
71596			if yyj1 < len(yyv1) {
71597				if r.TryDecodeAsNil() {
71598					yyv1[yyj1] = ""
71599				} else {
71600					yyv4 := &yyv1[yyj1]
71601					yyv4.CodecDecodeSelf(d)
71602				}
71603
71604			} else {
71605				z.DecSwallow()
71606			}
71607
71608		}
71609		if yyj1 < len(yyv1) {
71610			yyv1 = yyv1[:yyj1]
71611			yyc1 = true
71612		} else if yyj1 == 0 && yyv1 == nil {
71613			yyv1 = []UniqueVolumeName{}
71614			yyc1 = true
71615		}
71616	}
71617	yyh1.End()
71618	if yyc1 {
71619		*v = yyv1
71620	}
71621}
71622
71623func (x codecSelfer1234) encSliceAttachedVolume(v []AttachedVolume, e *codec1978.Encoder) {
71624	var h codecSelfer1234
71625	z, r := codec1978.GenHelperEncoder(e)
71626	_, _, _ = h, z, r
71627	r.EncodeArrayStart(len(v))
71628	for _, yyv1 := range v {
71629		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
71630		yy2 := &yyv1
71631		yy2.CodecEncodeSelf(e)
71632	}
71633	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
71634}
71635
71636func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec1978.Decoder) {
71637	var h codecSelfer1234
71638	z, r := codec1978.GenHelperDecoder(d)
71639	_, _, _ = h, z, r
71640
71641	yyv1 := *v
71642	yyh1, yyl1 := z.DecSliceHelperStart()
71643	var yyc1 bool
71644	_ = yyc1
71645	if yyl1 == 0 {
71646		if yyv1 == nil {
71647			yyv1 = []AttachedVolume{}
71648			yyc1 = true
71649		} else if len(yyv1) != 0 {
71650			yyv1 = yyv1[:0]
71651			yyc1 = true
71652		}
71653	} else if yyl1 > 0 {
71654		var yyrr1, yyrl1 int
71655		var yyrt1 bool
71656		_, _ = yyrl1, yyrt1
71657		yyrr1 = yyl1 // len(yyv1)
71658		if yyl1 > cap(yyv1) {
71659
71660			yyrg1 := len(yyv1) > 0
71661			yyv21 := yyv1
71662			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32)
71663			if yyrt1 {
71664				if yyrl1 <= cap(yyv1) {
71665					yyv1 = yyv1[:yyrl1]
71666				} else {
71667					yyv1 = make([]AttachedVolume, yyrl1)
71668				}
71669			} else {
71670				yyv1 = make([]AttachedVolume, yyrl1)
71671			}
71672			yyc1 = true
71673			yyrr1 = len(yyv1)
71674			if yyrg1 {
71675				copy(yyv1, yyv21)
71676			}
71677		} else if yyl1 != len(yyv1) {
71678			yyv1 = yyv1[:yyl1]
71679			yyc1 = true
71680		}
71681		yyj1 := 0
71682		for ; yyj1 < yyrr1; yyj1++ {
71683			yyh1.ElemContainerState(yyj1)
71684			if r.TryDecodeAsNil() {
71685				yyv1[yyj1] = AttachedVolume{}
71686			} else {
71687				yyv2 := &yyv1[yyj1]
71688				yyv2.CodecDecodeSelf(d)
71689			}
71690
71691		}
71692		if yyrt1 {
71693			for ; yyj1 < yyl1; yyj1++ {
71694				yyv1 = append(yyv1, AttachedVolume{})
71695				yyh1.ElemContainerState(yyj1)
71696				if r.TryDecodeAsNil() {
71697					yyv1[yyj1] = AttachedVolume{}
71698				} else {
71699					yyv3 := &yyv1[yyj1]
71700					yyv3.CodecDecodeSelf(d)
71701				}
71702
71703			}
71704		}
71705
71706	} else {
71707		yyj1 := 0
71708		for ; !r.CheckBreak(); yyj1++ {
71709
71710			if yyj1 >= len(yyv1) {
71711				yyv1 = append(yyv1, AttachedVolume{}) // var yyz1 AttachedVolume
71712				yyc1 = true
71713			}
71714			yyh1.ElemContainerState(yyj1)
71715			if yyj1 < len(yyv1) {
71716				if r.TryDecodeAsNil() {
71717					yyv1[yyj1] = AttachedVolume{}
71718				} else {
71719					yyv4 := &yyv1[yyj1]
71720					yyv4.CodecDecodeSelf(d)
71721				}
71722
71723			} else {
71724				z.DecSwallow()
71725			}
71726
71727		}
71728		if yyj1 < len(yyv1) {
71729			yyv1 = yyv1[:yyj1]
71730			yyc1 = true
71731		} else if yyj1 == 0 && yyv1 == nil {
71732			yyv1 = []AttachedVolume{}
71733			yyc1 = true
71734		}
71735	}
71736	yyh1.End()
71737	if yyc1 {
71738		*v = yyv1
71739	}
71740}
71741
71742func (x codecSelfer1234) encSlicePreferAvoidPodsEntry(v []PreferAvoidPodsEntry, e *codec1978.Encoder) {
71743	var h codecSelfer1234
71744	z, r := codec1978.GenHelperEncoder(e)
71745	_, _, _ = h, z, r
71746	r.EncodeArrayStart(len(v))
71747	for _, yyv1 := range v {
71748		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
71749		yy2 := &yyv1
71750		yy2.CodecEncodeSelf(e)
71751	}
71752	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
71753}
71754
71755func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, d *codec1978.Decoder) {
71756	var h codecSelfer1234
71757	z, r := codec1978.GenHelperDecoder(d)
71758	_, _, _ = h, z, r
71759
71760	yyv1 := *v
71761	yyh1, yyl1 := z.DecSliceHelperStart()
71762	var yyc1 bool
71763	_ = yyc1
71764	if yyl1 == 0 {
71765		if yyv1 == nil {
71766			yyv1 = []PreferAvoidPodsEntry{}
71767			yyc1 = true
71768		} else if len(yyv1) != 0 {
71769			yyv1 = yyv1[:0]
71770			yyc1 = true
71771		}
71772	} else if yyl1 > 0 {
71773		var yyrr1, yyrl1 int
71774		var yyrt1 bool
71775		_, _ = yyrl1, yyrt1
71776		yyrr1 = yyl1 // len(yyv1)
71777		if yyl1 > cap(yyv1) {
71778
71779			yyrg1 := len(yyv1) > 0
71780			yyv21 := yyv1
71781			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 64)
71782			if yyrt1 {
71783				if yyrl1 <= cap(yyv1) {
71784					yyv1 = yyv1[:yyrl1]
71785				} else {
71786					yyv1 = make([]PreferAvoidPodsEntry, yyrl1)
71787				}
71788			} else {
71789				yyv1 = make([]PreferAvoidPodsEntry, yyrl1)
71790			}
71791			yyc1 = true
71792			yyrr1 = len(yyv1)
71793			if yyrg1 {
71794				copy(yyv1, yyv21)
71795			}
71796		} else if yyl1 != len(yyv1) {
71797			yyv1 = yyv1[:yyl1]
71798			yyc1 = true
71799		}
71800		yyj1 := 0
71801		for ; yyj1 < yyrr1; yyj1++ {
71802			yyh1.ElemContainerState(yyj1)
71803			if r.TryDecodeAsNil() {
71804				yyv1[yyj1] = PreferAvoidPodsEntry{}
71805			} else {
71806				yyv2 := &yyv1[yyj1]
71807				yyv2.CodecDecodeSelf(d)
71808			}
71809
71810		}
71811		if yyrt1 {
71812			for ; yyj1 < yyl1; yyj1++ {
71813				yyv1 = append(yyv1, PreferAvoidPodsEntry{})
71814				yyh1.ElemContainerState(yyj1)
71815				if r.TryDecodeAsNil() {
71816					yyv1[yyj1] = PreferAvoidPodsEntry{}
71817				} else {
71818					yyv3 := &yyv1[yyj1]
71819					yyv3.CodecDecodeSelf(d)
71820				}
71821
71822			}
71823		}
71824
71825	} else {
71826		yyj1 := 0
71827		for ; !r.CheckBreak(); yyj1++ {
71828
71829			if yyj1 >= len(yyv1) {
71830				yyv1 = append(yyv1, PreferAvoidPodsEntry{}) // var yyz1 PreferAvoidPodsEntry
71831				yyc1 = true
71832			}
71833			yyh1.ElemContainerState(yyj1)
71834			if yyj1 < len(yyv1) {
71835				if r.TryDecodeAsNil() {
71836					yyv1[yyj1] = PreferAvoidPodsEntry{}
71837				} else {
71838					yyv4 := &yyv1[yyj1]
71839					yyv4.CodecDecodeSelf(d)
71840				}
71841
71842			} else {
71843				z.DecSwallow()
71844			}
71845
71846		}
71847		if yyj1 < len(yyv1) {
71848			yyv1 = yyv1[:yyj1]
71849			yyc1 = true
71850		} else if yyj1 == 0 && yyv1 == nil {
71851			yyv1 = []PreferAvoidPodsEntry{}
71852			yyc1 = true
71853		}
71854	}
71855	yyh1.End()
71856	if yyc1 {
71857		*v = yyv1
71858	}
71859}
71860
71861func (x codecSelfer1234) encResourceList(v ResourceList, e *codec1978.Encoder) {
71862	var h codecSelfer1234
71863	z, r := codec1978.GenHelperEncoder(e)
71864	_, _, _ = h, z, r
71865	r.EncodeMapStart(len(v))
71866	for yyk1, yyv1 := range v {
71867		z.EncSendContainerState(codecSelfer_containerMapKey1234)
71868		yyk1.CodecEncodeSelf(e)
71869		z.EncSendContainerState(codecSelfer_containerMapValue1234)
71870		yy3 := &yyv1
71871		yym4 := z.EncBinary()
71872		_ = yym4
71873		if false {
71874		} else if z.HasExtensions() && z.EncExt(yy3) {
71875		} else if !yym4 && z.IsJSONHandle() {
71876			z.EncJSONMarshal(yy3)
71877		} else {
71878			z.EncFallback(yy3)
71879		}
71880	}
71881	z.EncSendContainerState(codecSelfer_containerMapEnd1234)
71882}
71883
71884func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) {
71885	var h codecSelfer1234
71886	z, r := codec1978.GenHelperDecoder(d)
71887	_, _, _ = h, z, r
71888
71889	yyv1 := *v
71890	yyl1 := r.ReadMapStart()
71891	yybh1 := z.DecBasicHandle()
71892	if yyv1 == nil {
71893		yyrl1, _ := z.DecInferLen(yyl1, yybh1.MaxInitLen, 72)
71894		yyv1 = make(map[ResourceName]pkg3_resource.Quantity, yyrl1)
71895		*v = yyv1
71896	}
71897	var yymk1 ResourceName
71898	var yymv1 pkg3_resource.Quantity
71899	var yymg1 bool
71900	if yybh1.MapValueReset {
71901		yymg1 = true
71902	}
71903	if yyl1 > 0 {
71904		for yyj1 := 0; yyj1 < yyl1; yyj1++ {
71905			z.DecSendContainerState(codecSelfer_containerMapKey1234)
71906			if r.TryDecodeAsNil() {
71907				yymk1 = ""
71908			} else {
71909				yyv2 := &yymk1
71910				yyv2.CodecDecodeSelf(d)
71911			}
71912
71913			if yymg1 {
71914				yymv1 = yyv1[yymk1]
71915			} else {
71916				yymv1 = pkg3_resource.Quantity{}
71917			}
71918			z.DecSendContainerState(codecSelfer_containerMapValue1234)
71919			if r.TryDecodeAsNil() {
71920				yymv1 = pkg3_resource.Quantity{}
71921			} else {
71922				yyv3 := &yymv1
71923				yym4 := z.DecBinary()
71924				_ = yym4
71925				if false {
71926				} else if z.HasExtensions() && z.DecExt(yyv3) {
71927				} else if !yym4 && z.IsJSONHandle() {
71928					z.DecJSONUnmarshal(yyv3)
71929				} else {
71930					z.DecFallback(yyv3, false)
71931				}
71932			}
71933
71934			if yyv1 != nil {
71935				yyv1[yymk1] = yymv1
71936			}
71937		}
71938	} else if yyl1 < 0 {
71939		for yyj1 := 0; !r.CheckBreak(); yyj1++ {
71940			z.DecSendContainerState(codecSelfer_containerMapKey1234)
71941			if r.TryDecodeAsNil() {
71942				yymk1 = ""
71943			} else {
71944				yyv5 := &yymk1
71945				yyv5.CodecDecodeSelf(d)
71946			}
71947
71948			if yymg1 {
71949				yymv1 = yyv1[yymk1]
71950			} else {
71951				yymv1 = pkg3_resource.Quantity{}
71952			}
71953			z.DecSendContainerState(codecSelfer_containerMapValue1234)
71954			if r.TryDecodeAsNil() {
71955				yymv1 = pkg3_resource.Quantity{}
71956			} else {
71957				yyv6 := &yymv1
71958				yym7 := z.DecBinary()
71959				_ = yym7
71960				if false {
71961				} else if z.HasExtensions() && z.DecExt(yyv6) {
71962				} else if !yym7 && z.IsJSONHandle() {
71963					z.DecJSONUnmarshal(yyv6)
71964				} else {
71965					z.DecFallback(yyv6, false)
71966				}
71967			}
71968
71969			if yyv1 != nil {
71970				yyv1[yymk1] = yymv1
71971			}
71972		}
71973	} // else len==0: TODO: Should we clear map entries?
71974	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
71975}
71976
71977func (x codecSelfer1234) encSliceNode(v []Node, e *codec1978.Encoder) {
71978	var h codecSelfer1234
71979	z, r := codec1978.GenHelperEncoder(e)
71980	_, _, _ = h, z, r
71981	r.EncodeArrayStart(len(v))
71982	for _, yyv1 := range v {
71983		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
71984		yy2 := &yyv1
71985		yy2.CodecEncodeSelf(e)
71986	}
71987	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
71988}
71989
71990func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) {
71991	var h codecSelfer1234
71992	z, r := codec1978.GenHelperDecoder(d)
71993	_, _, _ = h, z, r
71994
71995	yyv1 := *v
71996	yyh1, yyl1 := z.DecSliceHelperStart()
71997	var yyc1 bool
71998	_ = yyc1
71999	if yyl1 == 0 {
72000		if yyv1 == nil {
72001			yyv1 = []Node{}
72002			yyc1 = true
72003		} else if len(yyv1) != 0 {
72004			yyv1 = yyv1[:0]
72005			yyc1 = true
72006		}
72007	} else if yyl1 > 0 {
72008		var yyrr1, yyrl1 int
72009		var yyrt1 bool
72010		_, _ = yyrl1, yyrt1
72011		yyrr1 = yyl1 // len(yyv1)
72012		if yyl1 > cap(yyv1) {
72013
72014			yyrg1 := len(yyv1) > 0
72015			yyv21 := yyv1
72016			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 656)
72017			if yyrt1 {
72018				if yyrl1 <= cap(yyv1) {
72019					yyv1 = yyv1[:yyrl1]
72020				} else {
72021					yyv1 = make([]Node, yyrl1)
72022				}
72023			} else {
72024				yyv1 = make([]Node, yyrl1)
72025			}
72026			yyc1 = true
72027			yyrr1 = len(yyv1)
72028			if yyrg1 {
72029				copy(yyv1, yyv21)
72030			}
72031		} else if yyl1 != len(yyv1) {
72032			yyv1 = yyv1[:yyl1]
72033			yyc1 = true
72034		}
72035		yyj1 := 0
72036		for ; yyj1 < yyrr1; yyj1++ {
72037			yyh1.ElemContainerState(yyj1)
72038			if r.TryDecodeAsNil() {
72039				yyv1[yyj1] = Node{}
72040			} else {
72041				yyv2 := &yyv1[yyj1]
72042				yyv2.CodecDecodeSelf(d)
72043			}
72044
72045		}
72046		if yyrt1 {
72047			for ; yyj1 < yyl1; yyj1++ {
72048				yyv1 = append(yyv1, Node{})
72049				yyh1.ElemContainerState(yyj1)
72050				if r.TryDecodeAsNil() {
72051					yyv1[yyj1] = Node{}
72052				} else {
72053					yyv3 := &yyv1[yyj1]
72054					yyv3.CodecDecodeSelf(d)
72055				}
72056
72057			}
72058		}
72059
72060	} else {
72061		yyj1 := 0
72062		for ; !r.CheckBreak(); yyj1++ {
72063
72064			if yyj1 >= len(yyv1) {
72065				yyv1 = append(yyv1, Node{}) // var yyz1 Node
72066				yyc1 = true
72067			}
72068			yyh1.ElemContainerState(yyj1)
72069			if yyj1 < len(yyv1) {
72070				if r.TryDecodeAsNil() {
72071					yyv1[yyj1] = Node{}
72072				} else {
72073					yyv4 := &yyv1[yyj1]
72074					yyv4.CodecDecodeSelf(d)
72075				}
72076
72077			} else {
72078				z.DecSwallow()
72079			}
72080
72081		}
72082		if yyj1 < len(yyv1) {
72083			yyv1 = yyv1[:yyj1]
72084			yyc1 = true
72085		} else if yyj1 == 0 && yyv1 == nil {
72086			yyv1 = []Node{}
72087			yyc1 = true
72088		}
72089	}
72090	yyh1.End()
72091	if yyc1 {
72092		*v = yyv1
72093	}
72094}
72095
72096func (x codecSelfer1234) encSliceFinalizerName(v []FinalizerName, e *codec1978.Encoder) {
72097	var h codecSelfer1234
72098	z, r := codec1978.GenHelperEncoder(e)
72099	_, _, _ = h, z, r
72100	r.EncodeArrayStart(len(v))
72101	for _, yyv1 := range v {
72102		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
72103		yyv1.CodecEncodeSelf(e)
72104	}
72105	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
72106}
72107
72108func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978.Decoder) {
72109	var h codecSelfer1234
72110	z, r := codec1978.GenHelperDecoder(d)
72111	_, _, _ = h, z, r
72112
72113	yyv1 := *v
72114	yyh1, yyl1 := z.DecSliceHelperStart()
72115	var yyc1 bool
72116	_ = yyc1
72117	if yyl1 == 0 {
72118		if yyv1 == nil {
72119			yyv1 = []FinalizerName{}
72120			yyc1 = true
72121		} else if len(yyv1) != 0 {
72122			yyv1 = yyv1[:0]
72123			yyc1 = true
72124		}
72125	} else if yyl1 > 0 {
72126		var yyrr1, yyrl1 int
72127		var yyrt1 bool
72128		_, _ = yyrl1, yyrt1
72129		yyrr1 = yyl1 // len(yyv1)
72130		if yyl1 > cap(yyv1) {
72131
72132			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
72133			if yyrt1 {
72134				if yyrl1 <= cap(yyv1) {
72135					yyv1 = yyv1[:yyrl1]
72136				} else {
72137					yyv1 = make([]FinalizerName, yyrl1)
72138				}
72139			} else {
72140				yyv1 = make([]FinalizerName, yyrl1)
72141			}
72142			yyc1 = true
72143			yyrr1 = len(yyv1)
72144		} else if yyl1 != len(yyv1) {
72145			yyv1 = yyv1[:yyl1]
72146			yyc1 = true
72147		}
72148		yyj1 := 0
72149		for ; yyj1 < yyrr1; yyj1++ {
72150			yyh1.ElemContainerState(yyj1)
72151			if r.TryDecodeAsNil() {
72152				yyv1[yyj1] = ""
72153			} else {
72154				yyv2 := &yyv1[yyj1]
72155				yyv2.CodecDecodeSelf(d)
72156			}
72157
72158		}
72159		if yyrt1 {
72160			for ; yyj1 < yyl1; yyj1++ {
72161				yyv1 = append(yyv1, "")
72162				yyh1.ElemContainerState(yyj1)
72163				if r.TryDecodeAsNil() {
72164					yyv1[yyj1] = ""
72165				} else {
72166					yyv3 := &yyv1[yyj1]
72167					yyv3.CodecDecodeSelf(d)
72168				}
72169
72170			}
72171		}
72172
72173	} else {
72174		yyj1 := 0
72175		for ; !r.CheckBreak(); yyj1++ {
72176
72177			if yyj1 >= len(yyv1) {
72178				yyv1 = append(yyv1, "") // var yyz1 FinalizerName
72179				yyc1 = true
72180			}
72181			yyh1.ElemContainerState(yyj1)
72182			if yyj1 < len(yyv1) {
72183				if r.TryDecodeAsNil() {
72184					yyv1[yyj1] = ""
72185				} else {
72186					yyv4 := &yyv1[yyj1]
72187					yyv4.CodecDecodeSelf(d)
72188				}
72189
72190			} else {
72191				z.DecSwallow()
72192			}
72193
72194		}
72195		if yyj1 < len(yyv1) {
72196			yyv1 = yyv1[:yyj1]
72197			yyc1 = true
72198		} else if yyj1 == 0 && yyv1 == nil {
72199			yyv1 = []FinalizerName{}
72200			yyc1 = true
72201		}
72202	}
72203	yyh1.End()
72204	if yyc1 {
72205		*v = yyv1
72206	}
72207}
72208
72209func (x codecSelfer1234) encSliceNamespace(v []Namespace, e *codec1978.Encoder) {
72210	var h codecSelfer1234
72211	z, r := codec1978.GenHelperEncoder(e)
72212	_, _, _ = h, z, r
72213	r.EncodeArrayStart(len(v))
72214	for _, yyv1 := range v {
72215		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
72216		yy2 := &yyv1
72217		yy2.CodecEncodeSelf(e)
72218	}
72219	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
72220}
72221
72222func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) {
72223	var h codecSelfer1234
72224	z, r := codec1978.GenHelperDecoder(d)
72225	_, _, _ = h, z, r
72226
72227	yyv1 := *v
72228	yyh1, yyl1 := z.DecSliceHelperStart()
72229	var yyc1 bool
72230	_ = yyc1
72231	if yyl1 == 0 {
72232		if yyv1 == nil {
72233			yyv1 = []Namespace{}
72234			yyc1 = true
72235		} else if len(yyv1) != 0 {
72236			yyv1 = yyv1[:0]
72237			yyc1 = true
72238		}
72239	} else if yyl1 > 0 {
72240		var yyrr1, yyrl1 int
72241		var yyrt1 bool
72242		_, _ = yyrl1, yyrt1
72243		yyrr1 = yyl1 // len(yyv1)
72244		if yyl1 > cap(yyv1) {
72245
72246			yyrg1 := len(yyv1) > 0
72247			yyv21 := yyv1
72248			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 296)
72249			if yyrt1 {
72250				if yyrl1 <= cap(yyv1) {
72251					yyv1 = yyv1[:yyrl1]
72252				} else {
72253					yyv1 = make([]Namespace, yyrl1)
72254				}
72255			} else {
72256				yyv1 = make([]Namespace, yyrl1)
72257			}
72258			yyc1 = true
72259			yyrr1 = len(yyv1)
72260			if yyrg1 {
72261				copy(yyv1, yyv21)
72262			}
72263		} else if yyl1 != len(yyv1) {
72264			yyv1 = yyv1[:yyl1]
72265			yyc1 = true
72266		}
72267		yyj1 := 0
72268		for ; yyj1 < yyrr1; yyj1++ {
72269			yyh1.ElemContainerState(yyj1)
72270			if r.TryDecodeAsNil() {
72271				yyv1[yyj1] = Namespace{}
72272			} else {
72273				yyv2 := &yyv1[yyj1]
72274				yyv2.CodecDecodeSelf(d)
72275			}
72276
72277		}
72278		if yyrt1 {
72279			for ; yyj1 < yyl1; yyj1++ {
72280				yyv1 = append(yyv1, Namespace{})
72281				yyh1.ElemContainerState(yyj1)
72282				if r.TryDecodeAsNil() {
72283					yyv1[yyj1] = Namespace{}
72284				} else {
72285					yyv3 := &yyv1[yyj1]
72286					yyv3.CodecDecodeSelf(d)
72287				}
72288
72289			}
72290		}
72291
72292	} else {
72293		yyj1 := 0
72294		for ; !r.CheckBreak(); yyj1++ {
72295
72296			if yyj1 >= len(yyv1) {
72297				yyv1 = append(yyv1, Namespace{}) // var yyz1 Namespace
72298				yyc1 = true
72299			}
72300			yyh1.ElemContainerState(yyj1)
72301			if yyj1 < len(yyv1) {
72302				if r.TryDecodeAsNil() {
72303					yyv1[yyj1] = Namespace{}
72304				} else {
72305					yyv4 := &yyv1[yyj1]
72306					yyv4.CodecDecodeSelf(d)
72307				}
72308
72309			} else {
72310				z.DecSwallow()
72311			}
72312
72313		}
72314		if yyj1 < len(yyv1) {
72315			yyv1 = yyv1[:yyj1]
72316			yyc1 = true
72317		} else if yyj1 == 0 && yyv1 == nil {
72318			yyv1 = []Namespace{}
72319			yyc1 = true
72320		}
72321	}
72322	yyh1.End()
72323	if yyc1 {
72324		*v = yyv1
72325	}
72326}
72327
72328func (x codecSelfer1234) encSliceEvent(v []Event, e *codec1978.Encoder) {
72329	var h codecSelfer1234
72330	z, r := codec1978.GenHelperEncoder(e)
72331	_, _, _ = h, z, r
72332	r.EncodeArrayStart(len(v))
72333	for _, yyv1 := range v {
72334		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
72335		yy2 := &yyv1
72336		yy2.CodecEncodeSelf(e)
72337	}
72338	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
72339}
72340
72341func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) {
72342	var h codecSelfer1234
72343	z, r := codec1978.GenHelperDecoder(d)
72344	_, _, _ = h, z, r
72345
72346	yyv1 := *v
72347	yyh1, yyl1 := z.DecSliceHelperStart()
72348	var yyc1 bool
72349	_ = yyc1
72350	if yyl1 == 0 {
72351		if yyv1 == nil {
72352			yyv1 = []Event{}
72353			yyc1 = true
72354		} else if len(yyv1) != 0 {
72355			yyv1 = yyv1[:0]
72356			yyc1 = true
72357		}
72358	} else if yyl1 > 0 {
72359		var yyrr1, yyrl1 int
72360		var yyrt1 bool
72361		_, _ = yyrl1, yyrt1
72362		yyrr1 = yyl1 // len(yyv1)
72363		if yyl1 > cap(yyv1) {
72364
72365			yyrg1 := len(yyv1) > 0
72366			yyv21 := yyv1
72367			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 504)
72368			if yyrt1 {
72369				if yyrl1 <= cap(yyv1) {
72370					yyv1 = yyv1[:yyrl1]
72371				} else {
72372					yyv1 = make([]Event, yyrl1)
72373				}
72374			} else {
72375				yyv1 = make([]Event, yyrl1)
72376			}
72377			yyc1 = true
72378			yyrr1 = len(yyv1)
72379			if yyrg1 {
72380				copy(yyv1, yyv21)
72381			}
72382		} else if yyl1 != len(yyv1) {
72383			yyv1 = yyv1[:yyl1]
72384			yyc1 = true
72385		}
72386		yyj1 := 0
72387		for ; yyj1 < yyrr1; yyj1++ {
72388			yyh1.ElemContainerState(yyj1)
72389			if r.TryDecodeAsNil() {
72390				yyv1[yyj1] = Event{}
72391			} else {
72392				yyv2 := &yyv1[yyj1]
72393				yyv2.CodecDecodeSelf(d)
72394			}
72395
72396		}
72397		if yyrt1 {
72398			for ; yyj1 < yyl1; yyj1++ {
72399				yyv1 = append(yyv1, Event{})
72400				yyh1.ElemContainerState(yyj1)
72401				if r.TryDecodeAsNil() {
72402					yyv1[yyj1] = Event{}
72403				} else {
72404					yyv3 := &yyv1[yyj1]
72405					yyv3.CodecDecodeSelf(d)
72406				}
72407
72408			}
72409		}
72410
72411	} else {
72412		yyj1 := 0
72413		for ; !r.CheckBreak(); yyj1++ {
72414
72415			if yyj1 >= len(yyv1) {
72416				yyv1 = append(yyv1, Event{}) // var yyz1 Event
72417				yyc1 = true
72418			}
72419			yyh1.ElemContainerState(yyj1)
72420			if yyj1 < len(yyv1) {
72421				if r.TryDecodeAsNil() {
72422					yyv1[yyj1] = Event{}
72423				} else {
72424					yyv4 := &yyv1[yyj1]
72425					yyv4.CodecDecodeSelf(d)
72426				}
72427
72428			} else {
72429				z.DecSwallow()
72430			}
72431
72432		}
72433		if yyj1 < len(yyv1) {
72434			yyv1 = yyv1[:yyj1]
72435			yyc1 = true
72436		} else if yyj1 == 0 && yyv1 == nil {
72437			yyv1 = []Event{}
72438			yyc1 = true
72439		}
72440	}
72441	yyh1.End()
72442	if yyc1 {
72443		*v = yyv1
72444	}
72445}
72446
72447func (x codecSelfer1234) encSliceruntime_RawExtension(v []pkg5_runtime.RawExtension, e *codec1978.Encoder) {
72448	var h codecSelfer1234
72449	z, r := codec1978.GenHelperEncoder(e)
72450	_, _, _ = h, z, r
72451	r.EncodeArrayStart(len(v))
72452	for _, yyv1 := range v {
72453		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
72454		yy2 := &yyv1
72455		yym3 := z.EncBinary()
72456		_ = yym3
72457		if false {
72458		} else if z.HasExtensions() && z.EncExt(yy2) {
72459		} else if !yym3 && z.IsJSONHandle() {
72460			z.EncJSONMarshal(yy2)
72461		} else {
72462			z.EncFallback(yy2)
72463		}
72464	}
72465	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
72466}
72467
72468func (x codecSelfer1234) decSliceruntime_RawExtension(v *[]pkg5_runtime.RawExtension, d *codec1978.Decoder) {
72469	var h codecSelfer1234
72470	z, r := codec1978.GenHelperDecoder(d)
72471	_, _, _ = h, z, r
72472
72473	yyv1 := *v
72474	yyh1, yyl1 := z.DecSliceHelperStart()
72475	var yyc1 bool
72476	_ = yyc1
72477	if yyl1 == 0 {
72478		if yyv1 == nil {
72479			yyv1 = []pkg5_runtime.RawExtension{}
72480			yyc1 = true
72481		} else if len(yyv1) != 0 {
72482			yyv1 = yyv1[:0]
72483			yyc1 = true
72484		}
72485	} else if yyl1 > 0 {
72486		var yyrr1, yyrl1 int
72487		var yyrt1 bool
72488		_, _ = yyrl1, yyrt1
72489		yyrr1 = yyl1 // len(yyv1)
72490		if yyl1 > cap(yyv1) {
72491
72492			yyrg1 := len(yyv1) > 0
72493			yyv21 := yyv1
72494			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40)
72495			if yyrt1 {
72496				if yyrl1 <= cap(yyv1) {
72497					yyv1 = yyv1[:yyrl1]
72498				} else {
72499					yyv1 = make([]pkg5_runtime.RawExtension, yyrl1)
72500				}
72501			} else {
72502				yyv1 = make([]pkg5_runtime.RawExtension, yyrl1)
72503			}
72504			yyc1 = true
72505			yyrr1 = len(yyv1)
72506			if yyrg1 {
72507				copy(yyv1, yyv21)
72508			}
72509		} else if yyl1 != len(yyv1) {
72510			yyv1 = yyv1[:yyl1]
72511			yyc1 = true
72512		}
72513		yyj1 := 0
72514		for ; yyj1 < yyrr1; yyj1++ {
72515			yyh1.ElemContainerState(yyj1)
72516			if r.TryDecodeAsNil() {
72517				yyv1[yyj1] = pkg5_runtime.RawExtension{}
72518			} else {
72519				yyv2 := &yyv1[yyj1]
72520				yym3 := z.DecBinary()
72521				_ = yym3
72522				if false {
72523				} else if z.HasExtensions() && z.DecExt(yyv2) {
72524				} else if !yym3 && z.IsJSONHandle() {
72525					z.DecJSONUnmarshal(yyv2)
72526				} else {
72527					z.DecFallback(yyv2, false)
72528				}
72529			}
72530
72531		}
72532		if yyrt1 {
72533			for ; yyj1 < yyl1; yyj1++ {
72534				yyv1 = append(yyv1, pkg5_runtime.RawExtension{})
72535				yyh1.ElemContainerState(yyj1)
72536				if r.TryDecodeAsNil() {
72537					yyv1[yyj1] = pkg5_runtime.RawExtension{}
72538				} else {
72539					yyv4 := &yyv1[yyj1]
72540					yym5 := z.DecBinary()
72541					_ = yym5
72542					if false {
72543					} else if z.HasExtensions() && z.DecExt(yyv4) {
72544					} else if !yym5 && z.IsJSONHandle() {
72545						z.DecJSONUnmarshal(yyv4)
72546					} else {
72547						z.DecFallback(yyv4, false)
72548					}
72549				}
72550
72551			}
72552		}
72553
72554	} else {
72555		yyj1 := 0
72556		for ; !r.CheckBreak(); yyj1++ {
72557
72558			if yyj1 >= len(yyv1) {
72559				yyv1 = append(yyv1, pkg5_runtime.RawExtension{}) // var yyz1 pkg5_runtime.RawExtension
72560				yyc1 = true
72561			}
72562			yyh1.ElemContainerState(yyj1)
72563			if yyj1 < len(yyv1) {
72564				if r.TryDecodeAsNil() {
72565					yyv1[yyj1] = pkg5_runtime.RawExtension{}
72566				} else {
72567					yyv6 := &yyv1[yyj1]
72568					yym7 := z.DecBinary()
72569					_ = yym7
72570					if false {
72571					} else if z.HasExtensions() && z.DecExt(yyv6) {
72572					} else if !yym7 && z.IsJSONHandle() {
72573						z.DecJSONUnmarshal(yyv6)
72574					} else {
72575						z.DecFallback(yyv6, false)
72576					}
72577				}
72578
72579			} else {
72580				z.DecSwallow()
72581			}
72582
72583		}
72584		if yyj1 < len(yyv1) {
72585			yyv1 = yyv1[:yyj1]
72586			yyc1 = true
72587		} else if yyj1 == 0 && yyv1 == nil {
72588			yyv1 = []pkg5_runtime.RawExtension{}
72589			yyc1 = true
72590		}
72591	}
72592	yyh1.End()
72593	if yyc1 {
72594		*v = yyv1
72595	}
72596}
72597
72598func (x codecSelfer1234) encSliceLimitRangeItem(v []LimitRangeItem, e *codec1978.Encoder) {
72599	var h codecSelfer1234
72600	z, r := codec1978.GenHelperEncoder(e)
72601	_, _, _ = h, z, r
72602	r.EncodeArrayStart(len(v))
72603	for _, yyv1 := range v {
72604		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
72605		yy2 := &yyv1
72606		yy2.CodecEncodeSelf(e)
72607	}
72608	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
72609}
72610
72611func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec1978.Decoder) {
72612	var h codecSelfer1234
72613	z, r := codec1978.GenHelperDecoder(d)
72614	_, _, _ = h, z, r
72615
72616	yyv1 := *v
72617	yyh1, yyl1 := z.DecSliceHelperStart()
72618	var yyc1 bool
72619	_ = yyc1
72620	if yyl1 == 0 {
72621		if yyv1 == nil {
72622			yyv1 = []LimitRangeItem{}
72623			yyc1 = true
72624		} else if len(yyv1) != 0 {
72625			yyv1 = yyv1[:0]
72626			yyc1 = true
72627		}
72628	} else if yyl1 > 0 {
72629		var yyrr1, yyrl1 int
72630		var yyrt1 bool
72631		_, _ = yyrl1, yyrt1
72632		yyrr1 = yyl1 // len(yyv1)
72633		if yyl1 > cap(yyv1) {
72634
72635			yyrg1 := len(yyv1) > 0
72636			yyv21 := yyv1
72637			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56)
72638			if yyrt1 {
72639				if yyrl1 <= cap(yyv1) {
72640					yyv1 = yyv1[:yyrl1]
72641				} else {
72642					yyv1 = make([]LimitRangeItem, yyrl1)
72643				}
72644			} else {
72645				yyv1 = make([]LimitRangeItem, yyrl1)
72646			}
72647			yyc1 = true
72648			yyrr1 = len(yyv1)
72649			if yyrg1 {
72650				copy(yyv1, yyv21)
72651			}
72652		} else if yyl1 != len(yyv1) {
72653			yyv1 = yyv1[:yyl1]
72654			yyc1 = true
72655		}
72656		yyj1 := 0
72657		for ; yyj1 < yyrr1; yyj1++ {
72658			yyh1.ElemContainerState(yyj1)
72659			if r.TryDecodeAsNil() {
72660				yyv1[yyj1] = LimitRangeItem{}
72661			} else {
72662				yyv2 := &yyv1[yyj1]
72663				yyv2.CodecDecodeSelf(d)
72664			}
72665
72666		}
72667		if yyrt1 {
72668			for ; yyj1 < yyl1; yyj1++ {
72669				yyv1 = append(yyv1, LimitRangeItem{})
72670				yyh1.ElemContainerState(yyj1)
72671				if r.TryDecodeAsNil() {
72672					yyv1[yyj1] = LimitRangeItem{}
72673				} else {
72674					yyv3 := &yyv1[yyj1]
72675					yyv3.CodecDecodeSelf(d)
72676				}
72677
72678			}
72679		}
72680
72681	} else {
72682		yyj1 := 0
72683		for ; !r.CheckBreak(); yyj1++ {
72684
72685			if yyj1 >= len(yyv1) {
72686				yyv1 = append(yyv1, LimitRangeItem{}) // var yyz1 LimitRangeItem
72687				yyc1 = true
72688			}
72689			yyh1.ElemContainerState(yyj1)
72690			if yyj1 < len(yyv1) {
72691				if r.TryDecodeAsNil() {
72692					yyv1[yyj1] = LimitRangeItem{}
72693				} else {
72694					yyv4 := &yyv1[yyj1]
72695					yyv4.CodecDecodeSelf(d)
72696				}
72697
72698			} else {
72699				z.DecSwallow()
72700			}
72701
72702		}
72703		if yyj1 < len(yyv1) {
72704			yyv1 = yyv1[:yyj1]
72705			yyc1 = true
72706		} else if yyj1 == 0 && yyv1 == nil {
72707			yyv1 = []LimitRangeItem{}
72708			yyc1 = true
72709		}
72710	}
72711	yyh1.End()
72712	if yyc1 {
72713		*v = yyv1
72714	}
72715}
72716
72717func (x codecSelfer1234) encSliceLimitRange(v []LimitRange, e *codec1978.Encoder) {
72718	var h codecSelfer1234
72719	z, r := codec1978.GenHelperEncoder(e)
72720	_, _, _ = h, z, r
72721	r.EncodeArrayStart(len(v))
72722	for _, yyv1 := range v {
72723		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
72724		yy2 := &yyv1
72725		yy2.CodecEncodeSelf(e)
72726	}
72727	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
72728}
72729
72730func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decoder) {
72731	var h codecSelfer1234
72732	z, r := codec1978.GenHelperDecoder(d)
72733	_, _, _ = h, z, r
72734
72735	yyv1 := *v
72736	yyh1, yyl1 := z.DecSliceHelperStart()
72737	var yyc1 bool
72738	_ = yyc1
72739	if yyl1 == 0 {
72740		if yyv1 == nil {
72741			yyv1 = []LimitRange{}
72742			yyc1 = true
72743		} else if len(yyv1) != 0 {
72744			yyv1 = yyv1[:0]
72745			yyc1 = true
72746		}
72747	} else if yyl1 > 0 {
72748		var yyrr1, yyrl1 int
72749		var yyrt1 bool
72750		_, _ = yyrl1, yyrt1
72751		yyrr1 = yyl1 // len(yyv1)
72752		if yyl1 > cap(yyv1) {
72753
72754			yyrg1 := len(yyv1) > 0
72755			yyv21 := yyv1
72756			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 280)
72757			if yyrt1 {
72758				if yyrl1 <= cap(yyv1) {
72759					yyv1 = yyv1[:yyrl1]
72760				} else {
72761					yyv1 = make([]LimitRange, yyrl1)
72762				}
72763			} else {
72764				yyv1 = make([]LimitRange, yyrl1)
72765			}
72766			yyc1 = true
72767			yyrr1 = len(yyv1)
72768			if yyrg1 {
72769				copy(yyv1, yyv21)
72770			}
72771		} else if yyl1 != len(yyv1) {
72772			yyv1 = yyv1[:yyl1]
72773			yyc1 = true
72774		}
72775		yyj1 := 0
72776		for ; yyj1 < yyrr1; yyj1++ {
72777			yyh1.ElemContainerState(yyj1)
72778			if r.TryDecodeAsNil() {
72779				yyv1[yyj1] = LimitRange{}
72780			} else {
72781				yyv2 := &yyv1[yyj1]
72782				yyv2.CodecDecodeSelf(d)
72783			}
72784
72785		}
72786		if yyrt1 {
72787			for ; yyj1 < yyl1; yyj1++ {
72788				yyv1 = append(yyv1, LimitRange{})
72789				yyh1.ElemContainerState(yyj1)
72790				if r.TryDecodeAsNil() {
72791					yyv1[yyj1] = LimitRange{}
72792				} else {
72793					yyv3 := &yyv1[yyj1]
72794					yyv3.CodecDecodeSelf(d)
72795				}
72796
72797			}
72798		}
72799
72800	} else {
72801		yyj1 := 0
72802		for ; !r.CheckBreak(); yyj1++ {
72803
72804			if yyj1 >= len(yyv1) {
72805				yyv1 = append(yyv1, LimitRange{}) // var yyz1 LimitRange
72806				yyc1 = true
72807			}
72808			yyh1.ElemContainerState(yyj1)
72809			if yyj1 < len(yyv1) {
72810				if r.TryDecodeAsNil() {
72811					yyv1[yyj1] = LimitRange{}
72812				} else {
72813					yyv4 := &yyv1[yyj1]
72814					yyv4.CodecDecodeSelf(d)
72815				}
72816
72817			} else {
72818				z.DecSwallow()
72819			}
72820
72821		}
72822		if yyj1 < len(yyv1) {
72823			yyv1 = yyv1[:yyj1]
72824			yyc1 = true
72825		} else if yyj1 == 0 && yyv1 == nil {
72826			yyv1 = []LimitRange{}
72827			yyc1 = true
72828		}
72829	}
72830	yyh1.End()
72831	if yyc1 {
72832		*v = yyv1
72833	}
72834}
72835
72836func (x codecSelfer1234) encSliceResourceQuotaScope(v []ResourceQuotaScope, e *codec1978.Encoder) {
72837	var h codecSelfer1234
72838	z, r := codec1978.GenHelperEncoder(e)
72839	_, _, _ = h, z, r
72840	r.EncodeArrayStart(len(v))
72841	for _, yyv1 := range v {
72842		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
72843		yyv1.CodecEncodeSelf(e)
72844	}
72845	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
72846}
72847
72848func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d *codec1978.Decoder) {
72849	var h codecSelfer1234
72850	z, r := codec1978.GenHelperDecoder(d)
72851	_, _, _ = h, z, r
72852
72853	yyv1 := *v
72854	yyh1, yyl1 := z.DecSliceHelperStart()
72855	var yyc1 bool
72856	_ = yyc1
72857	if yyl1 == 0 {
72858		if yyv1 == nil {
72859			yyv1 = []ResourceQuotaScope{}
72860			yyc1 = true
72861		} else if len(yyv1) != 0 {
72862			yyv1 = yyv1[:0]
72863			yyc1 = true
72864		}
72865	} else if yyl1 > 0 {
72866		var yyrr1, yyrl1 int
72867		var yyrt1 bool
72868		_, _ = yyrl1, yyrt1
72869		yyrr1 = yyl1 // len(yyv1)
72870		if yyl1 > cap(yyv1) {
72871
72872			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
72873			if yyrt1 {
72874				if yyrl1 <= cap(yyv1) {
72875					yyv1 = yyv1[:yyrl1]
72876				} else {
72877					yyv1 = make([]ResourceQuotaScope, yyrl1)
72878				}
72879			} else {
72880				yyv1 = make([]ResourceQuotaScope, yyrl1)
72881			}
72882			yyc1 = true
72883			yyrr1 = len(yyv1)
72884		} else if yyl1 != len(yyv1) {
72885			yyv1 = yyv1[:yyl1]
72886			yyc1 = true
72887		}
72888		yyj1 := 0
72889		for ; yyj1 < yyrr1; yyj1++ {
72890			yyh1.ElemContainerState(yyj1)
72891			if r.TryDecodeAsNil() {
72892				yyv1[yyj1] = ""
72893			} else {
72894				yyv2 := &yyv1[yyj1]
72895				yyv2.CodecDecodeSelf(d)
72896			}
72897
72898		}
72899		if yyrt1 {
72900			for ; yyj1 < yyl1; yyj1++ {
72901				yyv1 = append(yyv1, "")
72902				yyh1.ElemContainerState(yyj1)
72903				if r.TryDecodeAsNil() {
72904					yyv1[yyj1] = ""
72905				} else {
72906					yyv3 := &yyv1[yyj1]
72907					yyv3.CodecDecodeSelf(d)
72908				}
72909
72910			}
72911		}
72912
72913	} else {
72914		yyj1 := 0
72915		for ; !r.CheckBreak(); yyj1++ {
72916
72917			if yyj1 >= len(yyv1) {
72918				yyv1 = append(yyv1, "") // var yyz1 ResourceQuotaScope
72919				yyc1 = true
72920			}
72921			yyh1.ElemContainerState(yyj1)
72922			if yyj1 < len(yyv1) {
72923				if r.TryDecodeAsNil() {
72924					yyv1[yyj1] = ""
72925				} else {
72926					yyv4 := &yyv1[yyj1]
72927					yyv4.CodecDecodeSelf(d)
72928				}
72929
72930			} else {
72931				z.DecSwallow()
72932			}
72933
72934		}
72935		if yyj1 < len(yyv1) {
72936			yyv1 = yyv1[:yyj1]
72937			yyc1 = true
72938		} else if yyj1 == 0 && yyv1 == nil {
72939			yyv1 = []ResourceQuotaScope{}
72940			yyc1 = true
72941		}
72942	}
72943	yyh1.End()
72944	if yyc1 {
72945		*v = yyv1
72946	}
72947}
72948
72949func (x codecSelfer1234) encSliceResourceQuota(v []ResourceQuota, e *codec1978.Encoder) {
72950	var h codecSelfer1234
72951	z, r := codec1978.GenHelperEncoder(e)
72952	_, _, _ = h, z, r
72953	r.EncodeArrayStart(len(v))
72954	for _, yyv1 := range v {
72955		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
72956		yy2 := &yyv1
72957		yy2.CodecEncodeSelf(e)
72958	}
72959	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
72960}
72961
72962func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978.Decoder) {
72963	var h codecSelfer1234
72964	z, r := codec1978.GenHelperDecoder(d)
72965	_, _, _ = h, z, r
72966
72967	yyv1 := *v
72968	yyh1, yyl1 := z.DecSliceHelperStart()
72969	var yyc1 bool
72970	_ = yyc1
72971	if yyl1 == 0 {
72972		if yyv1 == nil {
72973			yyv1 = []ResourceQuota{}
72974			yyc1 = true
72975		} else if len(yyv1) != 0 {
72976			yyv1 = yyv1[:0]
72977			yyc1 = true
72978		}
72979	} else if yyl1 > 0 {
72980		var yyrr1, yyrl1 int
72981		var yyrt1 bool
72982		_, _ = yyrl1, yyrt1
72983		yyrr1 = yyl1 // len(yyv1)
72984		if yyl1 > cap(yyv1) {
72985
72986			yyrg1 := len(yyv1) > 0
72987			yyv21 := yyv1
72988			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 304)
72989			if yyrt1 {
72990				if yyrl1 <= cap(yyv1) {
72991					yyv1 = yyv1[:yyrl1]
72992				} else {
72993					yyv1 = make([]ResourceQuota, yyrl1)
72994				}
72995			} else {
72996				yyv1 = make([]ResourceQuota, yyrl1)
72997			}
72998			yyc1 = true
72999			yyrr1 = len(yyv1)
73000			if yyrg1 {
73001				copy(yyv1, yyv21)
73002			}
73003		} else if yyl1 != len(yyv1) {
73004			yyv1 = yyv1[:yyl1]
73005			yyc1 = true
73006		}
73007		yyj1 := 0
73008		for ; yyj1 < yyrr1; yyj1++ {
73009			yyh1.ElemContainerState(yyj1)
73010			if r.TryDecodeAsNil() {
73011				yyv1[yyj1] = ResourceQuota{}
73012			} else {
73013				yyv2 := &yyv1[yyj1]
73014				yyv2.CodecDecodeSelf(d)
73015			}
73016
73017		}
73018		if yyrt1 {
73019			for ; yyj1 < yyl1; yyj1++ {
73020				yyv1 = append(yyv1, ResourceQuota{})
73021				yyh1.ElemContainerState(yyj1)
73022				if r.TryDecodeAsNil() {
73023					yyv1[yyj1] = ResourceQuota{}
73024				} else {
73025					yyv3 := &yyv1[yyj1]
73026					yyv3.CodecDecodeSelf(d)
73027				}
73028
73029			}
73030		}
73031
73032	} else {
73033		yyj1 := 0
73034		for ; !r.CheckBreak(); yyj1++ {
73035
73036			if yyj1 >= len(yyv1) {
73037				yyv1 = append(yyv1, ResourceQuota{}) // var yyz1 ResourceQuota
73038				yyc1 = true
73039			}
73040			yyh1.ElemContainerState(yyj1)
73041			if yyj1 < len(yyv1) {
73042				if r.TryDecodeAsNil() {
73043					yyv1[yyj1] = ResourceQuota{}
73044				} else {
73045					yyv4 := &yyv1[yyj1]
73046					yyv4.CodecDecodeSelf(d)
73047				}
73048
73049			} else {
73050				z.DecSwallow()
73051			}
73052
73053		}
73054		if yyj1 < len(yyv1) {
73055			yyv1 = yyv1[:yyj1]
73056			yyc1 = true
73057		} else if yyj1 == 0 && yyv1 == nil {
73058			yyv1 = []ResourceQuota{}
73059			yyc1 = true
73060		}
73061	}
73062	yyh1.End()
73063	if yyc1 {
73064		*v = yyv1
73065	}
73066}
73067
73068func (x codecSelfer1234) encMapstringSliceuint8(v map[string][]uint8, e *codec1978.Encoder) {
73069	var h codecSelfer1234
73070	z, r := codec1978.GenHelperEncoder(e)
73071	_, _, _ = h, z, r
73072	r.EncodeMapStart(len(v))
73073	for yyk1, yyv1 := range v {
73074		z.EncSendContainerState(codecSelfer_containerMapKey1234)
73075		yym2 := z.EncBinary()
73076		_ = yym2
73077		if false {
73078		} else {
73079			r.EncodeString(codecSelferC_UTF81234, string(yyk1))
73080		}
73081		z.EncSendContainerState(codecSelfer_containerMapValue1234)
73082		if yyv1 == nil {
73083			r.EncodeNil()
73084		} else {
73085			yym3 := z.EncBinary()
73086			_ = yym3
73087			if false {
73088			} else {
73089				r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv1))
73090			}
73091		}
73092	}
73093	z.EncSendContainerState(codecSelfer_containerMapEnd1234)
73094}
73095
73096func (x codecSelfer1234) decMapstringSliceuint8(v *map[string][]uint8, d *codec1978.Decoder) {
73097	var h codecSelfer1234
73098	z, r := codec1978.GenHelperDecoder(d)
73099	_, _, _ = h, z, r
73100
73101	yyv1 := *v
73102	yyl1 := r.ReadMapStart()
73103	yybh1 := z.DecBasicHandle()
73104	if yyv1 == nil {
73105		yyrl1, _ := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40)
73106		yyv1 = make(map[string][]uint8, yyrl1)
73107		*v = yyv1
73108	}
73109	var yymk1 string
73110	var yymv1 []uint8
73111	var yymg1 bool
73112	if yybh1.MapValueReset {
73113		yymg1 = true
73114	}
73115	if yyl1 > 0 {
73116		for yyj1 := 0; yyj1 < yyl1; yyj1++ {
73117			z.DecSendContainerState(codecSelfer_containerMapKey1234)
73118			if r.TryDecodeAsNil() {
73119				yymk1 = ""
73120			} else {
73121				yyv2 := &yymk1
73122				yym3 := z.DecBinary()
73123				_ = yym3
73124				if false {
73125				} else {
73126					*((*string)(yyv2)) = r.DecodeString()
73127				}
73128			}
73129
73130			if yymg1 {
73131				yymv1 = yyv1[yymk1]
73132			} else {
73133				yymv1 = nil
73134			}
73135			z.DecSendContainerState(codecSelfer_containerMapValue1234)
73136			if r.TryDecodeAsNil() {
73137				yymv1 = nil
73138			} else {
73139				yyv4 := &yymv1
73140				yym5 := z.DecBinary()
73141				_ = yym5
73142				if false {
73143				} else {
73144					*yyv4 = r.DecodeBytes(*(*[]byte)(yyv4), false, false)
73145				}
73146			}
73147
73148			if yyv1 != nil {
73149				yyv1[yymk1] = yymv1
73150			}
73151		}
73152	} else if yyl1 < 0 {
73153		for yyj1 := 0; !r.CheckBreak(); yyj1++ {
73154			z.DecSendContainerState(codecSelfer_containerMapKey1234)
73155			if r.TryDecodeAsNil() {
73156				yymk1 = ""
73157			} else {
73158				yyv6 := &yymk1
73159				yym7 := z.DecBinary()
73160				_ = yym7
73161				if false {
73162				} else {
73163					*((*string)(yyv6)) = r.DecodeString()
73164				}
73165			}
73166
73167			if yymg1 {
73168				yymv1 = yyv1[yymk1]
73169			} else {
73170				yymv1 = nil
73171			}
73172			z.DecSendContainerState(codecSelfer_containerMapValue1234)
73173			if r.TryDecodeAsNil() {
73174				yymv1 = nil
73175			} else {
73176				yyv8 := &yymv1
73177				yym9 := z.DecBinary()
73178				_ = yym9
73179				if false {
73180				} else {
73181					*yyv8 = r.DecodeBytes(*(*[]byte)(yyv8), false, false)
73182				}
73183			}
73184
73185			if yyv1 != nil {
73186				yyv1[yymk1] = yymv1
73187			}
73188		}
73189	} // else len==0: TODO: Should we clear map entries?
73190	z.DecSendContainerState(codecSelfer_containerMapEnd1234)
73191}
73192
73193func (x codecSelfer1234) encSliceuint8(v []uint8, e *codec1978.Encoder) {
73194	var h codecSelfer1234
73195	z, r := codec1978.GenHelperEncoder(e)
73196	_, _, _ = h, z, r
73197	r.EncodeStringBytes(codecSelferC_RAW1234, []byte(v))
73198}
73199
73200func (x codecSelfer1234) decSliceuint8(v *[]uint8, d *codec1978.Decoder) {
73201	var h codecSelfer1234
73202	z, r := codec1978.GenHelperDecoder(d)
73203	_, _, _ = h, z, r
73204	*v = r.DecodeBytes(*((*[]byte)(v)), false, false)
73205}
73206
73207func (x codecSelfer1234) encSliceSecret(v []Secret, e *codec1978.Encoder) {
73208	var h codecSelfer1234
73209	z, r := codec1978.GenHelperEncoder(e)
73210	_, _, _ = h, z, r
73211	r.EncodeArrayStart(len(v))
73212	for _, yyv1 := range v {
73213		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
73214		yy2 := &yyv1
73215		yy2.CodecEncodeSelf(e)
73216	}
73217	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
73218}
73219
73220func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) {
73221	var h codecSelfer1234
73222	z, r := codec1978.GenHelperDecoder(d)
73223	_, _, _ = h, z, r
73224
73225	yyv1 := *v
73226	yyh1, yyl1 := z.DecSliceHelperStart()
73227	var yyc1 bool
73228	_ = yyc1
73229	if yyl1 == 0 {
73230		if yyv1 == nil {
73231			yyv1 = []Secret{}
73232			yyc1 = true
73233		} else if len(yyv1) != 0 {
73234			yyv1 = yyv1[:0]
73235			yyc1 = true
73236		}
73237	} else if yyl1 > 0 {
73238		var yyrr1, yyrl1 int
73239		var yyrt1 bool
73240		_, _ = yyrl1, yyrt1
73241		yyrr1 = yyl1 // len(yyv1)
73242		if yyl1 > cap(yyv1) {
73243
73244			yyrg1 := len(yyv1) > 0
73245			yyv21 := yyv1
73246			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 288)
73247			if yyrt1 {
73248				if yyrl1 <= cap(yyv1) {
73249					yyv1 = yyv1[:yyrl1]
73250				} else {
73251					yyv1 = make([]Secret, yyrl1)
73252				}
73253			} else {
73254				yyv1 = make([]Secret, yyrl1)
73255			}
73256			yyc1 = true
73257			yyrr1 = len(yyv1)
73258			if yyrg1 {
73259				copy(yyv1, yyv21)
73260			}
73261		} else if yyl1 != len(yyv1) {
73262			yyv1 = yyv1[:yyl1]
73263			yyc1 = true
73264		}
73265		yyj1 := 0
73266		for ; yyj1 < yyrr1; yyj1++ {
73267			yyh1.ElemContainerState(yyj1)
73268			if r.TryDecodeAsNil() {
73269				yyv1[yyj1] = Secret{}
73270			} else {
73271				yyv2 := &yyv1[yyj1]
73272				yyv2.CodecDecodeSelf(d)
73273			}
73274
73275		}
73276		if yyrt1 {
73277			for ; yyj1 < yyl1; yyj1++ {
73278				yyv1 = append(yyv1, Secret{})
73279				yyh1.ElemContainerState(yyj1)
73280				if r.TryDecodeAsNil() {
73281					yyv1[yyj1] = Secret{}
73282				} else {
73283					yyv3 := &yyv1[yyj1]
73284					yyv3.CodecDecodeSelf(d)
73285				}
73286
73287			}
73288		}
73289
73290	} else {
73291		yyj1 := 0
73292		for ; !r.CheckBreak(); yyj1++ {
73293
73294			if yyj1 >= len(yyv1) {
73295				yyv1 = append(yyv1, Secret{}) // var yyz1 Secret
73296				yyc1 = true
73297			}
73298			yyh1.ElemContainerState(yyj1)
73299			if yyj1 < len(yyv1) {
73300				if r.TryDecodeAsNil() {
73301					yyv1[yyj1] = Secret{}
73302				} else {
73303					yyv4 := &yyv1[yyj1]
73304					yyv4.CodecDecodeSelf(d)
73305				}
73306
73307			} else {
73308				z.DecSwallow()
73309			}
73310
73311		}
73312		if yyj1 < len(yyv1) {
73313			yyv1 = yyv1[:yyj1]
73314			yyc1 = true
73315		} else if yyj1 == 0 && yyv1 == nil {
73316			yyv1 = []Secret{}
73317			yyc1 = true
73318		}
73319	}
73320	yyh1.End()
73321	if yyc1 {
73322		*v = yyv1
73323	}
73324}
73325
73326func (x codecSelfer1234) encSliceConfigMap(v []ConfigMap, e *codec1978.Encoder) {
73327	var h codecSelfer1234
73328	z, r := codec1978.GenHelperEncoder(e)
73329	_, _, _ = h, z, r
73330	r.EncodeArrayStart(len(v))
73331	for _, yyv1 := range v {
73332		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
73333		yy2 := &yyv1
73334		yy2.CodecEncodeSelf(e)
73335	}
73336	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
73337}
73338
73339func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) {
73340	var h codecSelfer1234
73341	z, r := codec1978.GenHelperDecoder(d)
73342	_, _, _ = h, z, r
73343
73344	yyv1 := *v
73345	yyh1, yyl1 := z.DecSliceHelperStart()
73346	var yyc1 bool
73347	_ = yyc1
73348	if yyl1 == 0 {
73349		if yyv1 == nil {
73350			yyv1 = []ConfigMap{}
73351			yyc1 = true
73352		} else if len(yyv1) != 0 {
73353			yyv1 = yyv1[:0]
73354			yyc1 = true
73355		}
73356	} else if yyl1 > 0 {
73357		var yyrr1, yyrl1 int
73358		var yyrt1 bool
73359		_, _ = yyrl1, yyrt1
73360		yyrr1 = yyl1 // len(yyv1)
73361		if yyl1 > cap(yyv1) {
73362
73363			yyrg1 := len(yyv1) > 0
73364			yyv21 := yyv1
73365			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 264)
73366			if yyrt1 {
73367				if yyrl1 <= cap(yyv1) {
73368					yyv1 = yyv1[:yyrl1]
73369				} else {
73370					yyv1 = make([]ConfigMap, yyrl1)
73371				}
73372			} else {
73373				yyv1 = make([]ConfigMap, yyrl1)
73374			}
73375			yyc1 = true
73376			yyrr1 = len(yyv1)
73377			if yyrg1 {
73378				copy(yyv1, yyv21)
73379			}
73380		} else if yyl1 != len(yyv1) {
73381			yyv1 = yyv1[:yyl1]
73382			yyc1 = true
73383		}
73384		yyj1 := 0
73385		for ; yyj1 < yyrr1; yyj1++ {
73386			yyh1.ElemContainerState(yyj1)
73387			if r.TryDecodeAsNil() {
73388				yyv1[yyj1] = ConfigMap{}
73389			} else {
73390				yyv2 := &yyv1[yyj1]
73391				yyv2.CodecDecodeSelf(d)
73392			}
73393
73394		}
73395		if yyrt1 {
73396			for ; yyj1 < yyl1; yyj1++ {
73397				yyv1 = append(yyv1, ConfigMap{})
73398				yyh1.ElemContainerState(yyj1)
73399				if r.TryDecodeAsNil() {
73400					yyv1[yyj1] = ConfigMap{}
73401				} else {
73402					yyv3 := &yyv1[yyj1]
73403					yyv3.CodecDecodeSelf(d)
73404				}
73405
73406			}
73407		}
73408
73409	} else {
73410		yyj1 := 0
73411		for ; !r.CheckBreak(); yyj1++ {
73412
73413			if yyj1 >= len(yyv1) {
73414				yyv1 = append(yyv1, ConfigMap{}) // var yyz1 ConfigMap
73415				yyc1 = true
73416			}
73417			yyh1.ElemContainerState(yyj1)
73418			if yyj1 < len(yyv1) {
73419				if r.TryDecodeAsNil() {
73420					yyv1[yyj1] = ConfigMap{}
73421				} else {
73422					yyv4 := &yyv1[yyj1]
73423					yyv4.CodecDecodeSelf(d)
73424				}
73425
73426			} else {
73427				z.DecSwallow()
73428			}
73429
73430		}
73431		if yyj1 < len(yyv1) {
73432			yyv1 = yyv1[:yyj1]
73433			yyc1 = true
73434		} else if yyj1 == 0 && yyv1 == nil {
73435			yyv1 = []ConfigMap{}
73436			yyc1 = true
73437		}
73438	}
73439	yyh1.End()
73440	if yyc1 {
73441		*v = yyv1
73442	}
73443}
73444
73445func (x codecSelfer1234) encSliceComponentCondition(v []ComponentCondition, e *codec1978.Encoder) {
73446	var h codecSelfer1234
73447	z, r := codec1978.GenHelperEncoder(e)
73448	_, _, _ = h, z, r
73449	r.EncodeArrayStart(len(v))
73450	for _, yyv1 := range v {
73451		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
73452		yy2 := &yyv1
73453		yy2.CodecEncodeSelf(e)
73454	}
73455	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
73456}
73457
73458func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d *codec1978.Decoder) {
73459	var h codecSelfer1234
73460	z, r := codec1978.GenHelperDecoder(d)
73461	_, _, _ = h, z, r
73462
73463	yyv1 := *v
73464	yyh1, yyl1 := z.DecSliceHelperStart()
73465	var yyc1 bool
73466	_ = yyc1
73467	if yyl1 == 0 {
73468		if yyv1 == nil {
73469			yyv1 = []ComponentCondition{}
73470			yyc1 = true
73471		} else if len(yyv1) != 0 {
73472			yyv1 = yyv1[:0]
73473			yyc1 = true
73474		}
73475	} else if yyl1 > 0 {
73476		var yyrr1, yyrl1 int
73477		var yyrt1 bool
73478		_, _ = yyrl1, yyrt1
73479		yyrr1 = yyl1 // len(yyv1)
73480		if yyl1 > cap(yyv1) {
73481
73482			yyrg1 := len(yyv1) > 0
73483			yyv21 := yyv1
73484			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 64)
73485			if yyrt1 {
73486				if yyrl1 <= cap(yyv1) {
73487					yyv1 = yyv1[:yyrl1]
73488				} else {
73489					yyv1 = make([]ComponentCondition, yyrl1)
73490				}
73491			} else {
73492				yyv1 = make([]ComponentCondition, yyrl1)
73493			}
73494			yyc1 = true
73495			yyrr1 = len(yyv1)
73496			if yyrg1 {
73497				copy(yyv1, yyv21)
73498			}
73499		} else if yyl1 != len(yyv1) {
73500			yyv1 = yyv1[:yyl1]
73501			yyc1 = true
73502		}
73503		yyj1 := 0
73504		for ; yyj1 < yyrr1; yyj1++ {
73505			yyh1.ElemContainerState(yyj1)
73506			if r.TryDecodeAsNil() {
73507				yyv1[yyj1] = ComponentCondition{}
73508			} else {
73509				yyv2 := &yyv1[yyj1]
73510				yyv2.CodecDecodeSelf(d)
73511			}
73512
73513		}
73514		if yyrt1 {
73515			for ; yyj1 < yyl1; yyj1++ {
73516				yyv1 = append(yyv1, ComponentCondition{})
73517				yyh1.ElemContainerState(yyj1)
73518				if r.TryDecodeAsNil() {
73519					yyv1[yyj1] = ComponentCondition{}
73520				} else {
73521					yyv3 := &yyv1[yyj1]
73522					yyv3.CodecDecodeSelf(d)
73523				}
73524
73525			}
73526		}
73527
73528	} else {
73529		yyj1 := 0
73530		for ; !r.CheckBreak(); yyj1++ {
73531
73532			if yyj1 >= len(yyv1) {
73533				yyv1 = append(yyv1, ComponentCondition{}) // var yyz1 ComponentCondition
73534				yyc1 = true
73535			}
73536			yyh1.ElemContainerState(yyj1)
73537			if yyj1 < len(yyv1) {
73538				if r.TryDecodeAsNil() {
73539					yyv1[yyj1] = ComponentCondition{}
73540				} else {
73541					yyv4 := &yyv1[yyj1]
73542					yyv4.CodecDecodeSelf(d)
73543				}
73544
73545			} else {
73546				z.DecSwallow()
73547			}
73548
73549		}
73550		if yyj1 < len(yyv1) {
73551			yyv1 = yyv1[:yyj1]
73552			yyc1 = true
73553		} else if yyj1 == 0 && yyv1 == nil {
73554			yyv1 = []ComponentCondition{}
73555			yyc1 = true
73556		}
73557	}
73558	yyh1.End()
73559	if yyc1 {
73560		*v = yyv1
73561	}
73562}
73563
73564func (x codecSelfer1234) encSliceComponentStatus(v []ComponentStatus, e *codec1978.Encoder) {
73565	var h codecSelfer1234
73566	z, r := codec1978.GenHelperEncoder(e)
73567	_, _, _ = h, z, r
73568	r.EncodeArrayStart(len(v))
73569	for _, yyv1 := range v {
73570		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
73571		yy2 := &yyv1
73572		yy2.CodecEncodeSelf(e)
73573	}
73574	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
73575}
73576
73577func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1978.Decoder) {
73578	var h codecSelfer1234
73579	z, r := codec1978.GenHelperDecoder(d)
73580	_, _, _ = h, z, r
73581
73582	yyv1 := *v
73583	yyh1, yyl1 := z.DecSliceHelperStart()
73584	var yyc1 bool
73585	_ = yyc1
73586	if yyl1 == 0 {
73587		if yyv1 == nil {
73588			yyv1 = []ComponentStatus{}
73589			yyc1 = true
73590		} else if len(yyv1) != 0 {
73591			yyv1 = yyv1[:0]
73592			yyc1 = true
73593		}
73594	} else if yyl1 > 0 {
73595		var yyrr1, yyrl1 int
73596		var yyrt1 bool
73597		_, _ = yyrl1, yyrt1
73598		yyrr1 = yyl1 // len(yyv1)
73599		if yyl1 > cap(yyv1) {
73600
73601			yyrg1 := len(yyv1) > 0
73602			yyv21 := yyv1
73603			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 280)
73604			if yyrt1 {
73605				if yyrl1 <= cap(yyv1) {
73606					yyv1 = yyv1[:yyrl1]
73607				} else {
73608					yyv1 = make([]ComponentStatus, yyrl1)
73609				}
73610			} else {
73611				yyv1 = make([]ComponentStatus, yyrl1)
73612			}
73613			yyc1 = true
73614			yyrr1 = len(yyv1)
73615			if yyrg1 {
73616				copy(yyv1, yyv21)
73617			}
73618		} else if yyl1 != len(yyv1) {
73619			yyv1 = yyv1[:yyl1]
73620			yyc1 = true
73621		}
73622		yyj1 := 0
73623		for ; yyj1 < yyrr1; yyj1++ {
73624			yyh1.ElemContainerState(yyj1)
73625			if r.TryDecodeAsNil() {
73626				yyv1[yyj1] = ComponentStatus{}
73627			} else {
73628				yyv2 := &yyv1[yyj1]
73629				yyv2.CodecDecodeSelf(d)
73630			}
73631
73632		}
73633		if yyrt1 {
73634			for ; yyj1 < yyl1; yyj1++ {
73635				yyv1 = append(yyv1, ComponentStatus{})
73636				yyh1.ElemContainerState(yyj1)
73637				if r.TryDecodeAsNil() {
73638					yyv1[yyj1] = ComponentStatus{}
73639				} else {
73640					yyv3 := &yyv1[yyj1]
73641					yyv3.CodecDecodeSelf(d)
73642				}
73643
73644			}
73645		}
73646
73647	} else {
73648		yyj1 := 0
73649		for ; !r.CheckBreak(); yyj1++ {
73650
73651			if yyj1 >= len(yyv1) {
73652				yyv1 = append(yyv1, ComponentStatus{}) // var yyz1 ComponentStatus
73653				yyc1 = true
73654			}
73655			yyh1.ElemContainerState(yyj1)
73656			if yyj1 < len(yyv1) {
73657				if r.TryDecodeAsNil() {
73658					yyv1[yyj1] = ComponentStatus{}
73659				} else {
73660					yyv4 := &yyv1[yyj1]
73661					yyv4.CodecDecodeSelf(d)
73662				}
73663
73664			} else {
73665				z.DecSwallow()
73666			}
73667
73668		}
73669		if yyj1 < len(yyv1) {
73670			yyv1 = yyv1[:yyj1]
73671			yyc1 = true
73672		} else if yyj1 == 0 && yyv1 == nil {
73673			yyv1 = []ComponentStatus{}
73674			yyc1 = true
73675		}
73676	}
73677	yyh1.End()
73678	if yyc1 {
73679		*v = yyv1
73680	}
73681}
73682
73683func (x codecSelfer1234) encSliceDownwardAPIVolumeFile(v []DownwardAPIVolumeFile, e *codec1978.Encoder) {
73684	var h codecSelfer1234
73685	z, r := codec1978.GenHelperEncoder(e)
73686	_, _, _ = h, z, r
73687	r.EncodeArrayStart(len(v))
73688	for _, yyv1 := range v {
73689		z.EncSendContainerState(codecSelfer_containerArrayElem1234)
73690		yy2 := &yyv1
73691		yy2.CodecEncodeSelf(e)
73692	}
73693	z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
73694}
73695
73696func (x codecSelfer1234) decSliceDownwardAPIVolumeFile(v *[]DownwardAPIVolumeFile, d *codec1978.Decoder) {
73697	var h codecSelfer1234
73698	z, r := codec1978.GenHelperDecoder(d)
73699	_, _, _ = h, z, r
73700
73701	yyv1 := *v
73702	yyh1, yyl1 := z.DecSliceHelperStart()
73703	var yyc1 bool
73704	_ = yyc1
73705	if yyl1 == 0 {
73706		if yyv1 == nil {
73707			yyv1 = []DownwardAPIVolumeFile{}
73708			yyc1 = true
73709		} else if len(yyv1) != 0 {
73710			yyv1 = yyv1[:0]
73711			yyc1 = true
73712		}
73713	} else if yyl1 > 0 {
73714		var yyrr1, yyrl1 int
73715		var yyrt1 bool
73716		_, _ = yyrl1, yyrt1
73717		yyrr1 = yyl1 // len(yyv1)
73718		if yyl1 > cap(yyv1) {
73719
73720			yyrg1 := len(yyv1) > 0
73721			yyv21 := yyv1
73722			yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40)
73723			if yyrt1 {
73724				if yyrl1 <= cap(yyv1) {
73725					yyv1 = yyv1[:yyrl1]
73726				} else {
73727					yyv1 = make([]DownwardAPIVolumeFile, yyrl1)
73728				}
73729			} else {
73730				yyv1 = make([]DownwardAPIVolumeFile, yyrl1)
73731			}
73732			yyc1 = true
73733			yyrr1 = len(yyv1)
73734			if yyrg1 {
73735				copy(yyv1, yyv21)
73736			}
73737		} else if yyl1 != len(yyv1) {
73738			yyv1 = yyv1[:yyl1]
73739			yyc1 = true
73740		}
73741		yyj1 := 0
73742		for ; yyj1 < yyrr1; yyj1++ {
73743			yyh1.ElemContainerState(yyj1)
73744			if r.TryDecodeAsNil() {
73745				yyv1[yyj1] = DownwardAPIVolumeFile{}
73746			} else {
73747				yyv2 := &yyv1[yyj1]
73748				yyv2.CodecDecodeSelf(d)
73749			}
73750
73751		}
73752		if yyrt1 {
73753			for ; yyj1 < yyl1; yyj1++ {
73754				yyv1 = append(yyv1, DownwardAPIVolumeFile{})
73755				yyh1.ElemContainerState(yyj1)
73756				if r.TryDecodeAsNil() {
73757					yyv1[yyj1] = DownwardAPIVolumeFile{}
73758				} else {
73759					yyv3 := &yyv1[yyj1]
73760					yyv3.CodecDecodeSelf(d)
73761				}
73762
73763			}
73764		}
73765
73766	} else {
73767		yyj1 := 0
73768		for ; !r.CheckBreak(); yyj1++ {
73769
73770			if yyj1 >= len(yyv1) {
73771				yyv1 = append(yyv1, DownwardAPIVolumeFile{}) // var yyz1 DownwardAPIVolumeFile
73772				yyc1 = true
73773			}
73774			yyh1.ElemContainerState(yyj1)
73775			if yyj1 < len(yyv1) {
73776				if r.TryDecodeAsNil() {
73777					yyv1[yyj1] = DownwardAPIVolumeFile{}
73778				} else {
73779					yyv4 := &yyv1[yyj1]
73780					yyv4.CodecDecodeSelf(d)
73781				}
73782
73783			} else {
73784				z.DecSwallow()
73785			}
73786
73787		}
73788		if yyj1 < len(yyv1) {
73789			yyv1 = yyv1[:yyj1]
73790			yyc1 = true
73791		} else if yyj1 == 0 && yyv1 == nil {
73792			yyv1 = []DownwardAPIVolumeFile{}
73793			yyc1 = true
73794		}
73795	}
73796	yyh1.End()
73797	if yyc1 {
73798		*v = yyv1
73799	}
73800}
73801