/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // ************************************************************ // DO NOT EDIT. // THIS FILE IS AUTO-GENERATED BY codecgen. // ************************************************************ package api import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" pkg3_resource "k8s.io/kubernetes/pkg/api/resource" pkg2_unversioned "k8s.io/kubernetes/pkg/api/unversioned" pkg6_fields "k8s.io/kubernetes/pkg/fields" pkg5_labels "k8s.io/kubernetes/pkg/labels" pkg7_runtime "k8s.io/kubernetes/pkg/runtime" pkg1_types "k8s.io/kubernetes/pkg/types" pkg4_intstr "k8s.io/kubernetes/pkg/util/intstr" "reflect" "runtime" time "time" ) const ( // ----- content types ---- codecSelferC_UTF81234 = 1 codecSelferC_RAW1234 = 0 // ----- value types used ---- codecSelferValueTypeArray1234 = 10 codecSelferValueTypeMap1234 = 9 // ----- containerStateValues ---- codecSelfer_containerMapKey1234 = 2 codecSelfer_containerMapValue1234 = 3 codecSelfer_containerMapEnd1234 = 4 codecSelfer_containerArrayElem1234 = 6 codecSelfer_containerArrayEnd1234 = 7 ) var ( codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits()) codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`) ) type codecSelfer1234 struct{} func init() { if codec1978.GenVersion != 5 { _, file, _, _ := runtime.Caller(0) err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", 5, codec1978.GenVersion, file) panic(err) } if false { // reference the types, but skip this branch at build/run time var v0 pkg3_resource.Quantity var v1 pkg2_unversioned.Time var v2 pkg6_fields.Selector var v3 pkg5_labels.Selector var v4 pkg7_runtime.Object var v5 pkg1_types.UID var v6 pkg4_intstr.IntOrString var v7 time.Time _, _, _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5, v6, v7 } } func (x *ObjectMeta) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [14]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false yyq2[0] = x.Name != "" yyq2[1] = x.GenerateName != "" yyq2[2] = x.Namespace != "" yyq2[3] = x.SelfLink != "" yyq2[4] = x.UID != "" yyq2[5] = x.ResourceVersion != "" yyq2[6] = x.Generation != 0 yyq2[7] = true yyq2[8] = x.DeletionTimestamp != nil yyq2[9] = x.DeletionGracePeriodSeconds != nil yyq2[10] = len(x.Labels) != 0 yyq2[11] = len(x.Annotations) != 0 yyq2[12] = len(x.OwnerReferences) != 0 yyq2[13] = len(x.Finalizers) != 0 var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(14) } else { yynn2 = 0 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[0] { yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[1] { yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("generateName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[2] { yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[3] { yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selfLink")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[4] { yym16 := z.EncBinary() _ = yym16 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym17 := z.EncBinary() _ = yym17 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[5] { yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[6] { yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeInt(int64(x.Generation)) } } else { r.EncodeInt(0) } } else { if yyq2[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("generation")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeInt(int64(x.Generation)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[7] { yy25 := &x.CreationTimestamp yym26 := z.EncBinary() _ = yym26 if false { } else if z.HasExtensions() && z.EncExt(yy25) { } else if yym26 { z.EncBinaryMarshal(yy25) } else if !yym26 && z.IsJSONHandle() { z.EncJSONMarshal(yy25) } else { z.EncFallback(yy25) } } else { r.EncodeNil() } } else { if yyq2[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy27 := &x.CreationTimestamp yym28 := z.EncBinary() _ = yym28 if false { } else if z.HasExtensions() && z.EncExt(yy27) { } else if yym28 { z.EncBinaryMarshal(yy27) } else if !yym28 && z.IsJSONHandle() { z.EncJSONMarshal(yy27) } else { z.EncFallback(yy27) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[8] { if x.DeletionTimestamp == nil { r.EncodeNil() } else { yym30 := z.EncBinary() _ = yym30 if false { } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { } else if yym30 { z.EncBinaryMarshal(x.DeletionTimestamp) } else if !yym30 && z.IsJSONHandle() { z.EncJSONMarshal(x.DeletionTimestamp) } else { z.EncFallback(x.DeletionTimestamp) } } } else { r.EncodeNil() } } else { if yyq2[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DeletionTimestamp == nil { r.EncodeNil() } else { yym31 := z.EncBinary() _ = yym31 if false { } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { } else if yym31 { z.EncBinaryMarshal(x.DeletionTimestamp) } else if !yym31 && z.IsJSONHandle() { z.EncJSONMarshal(x.DeletionTimestamp) } else { z.EncFallback(x.DeletionTimestamp) } } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[9] { if x.DeletionGracePeriodSeconds == nil { r.EncodeNil() } else { yy33 := *x.DeletionGracePeriodSeconds yym34 := z.EncBinary() _ = yym34 if false { } else { r.EncodeInt(int64(yy33)) } } } else { r.EncodeNil() } } else { if yyq2[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DeletionGracePeriodSeconds == nil { r.EncodeNil() } else { yy35 := *x.DeletionGracePeriodSeconds yym36 := z.EncBinary() _ = yym36 if false { } else { r.EncodeInt(int64(yy35)) } } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[10] { if x.Labels == nil { r.EncodeNil() } else { yym38 := z.EncBinary() _ = yym38 if false { } else { z.F.EncMapStringStringV(x.Labels, false, e) } } } else { r.EncodeNil() } } else { if yyq2[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("labels")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Labels == nil { r.EncodeNil() } else { yym39 := z.EncBinary() _ = yym39 if false { } else { z.F.EncMapStringStringV(x.Labels, false, e) } } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[11] { if x.Annotations == nil { r.EncodeNil() } else { yym41 := z.EncBinary() _ = yym41 if false { } else { z.F.EncMapStringStringV(x.Annotations, false, e) } } } else { r.EncodeNil() } } else { if yyq2[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("annotations")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Annotations == nil { r.EncodeNil() } else { yym42 := z.EncBinary() _ = yym42 if false { } else { z.F.EncMapStringStringV(x.Annotations, false, e) } } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[12] { if x.OwnerReferences == nil { r.EncodeNil() } else { yym44 := z.EncBinary() _ = yym44 if false { } else { h.encSliceOwnerReference(([]OwnerReference)(x.OwnerReferences), e) } } } else { r.EncodeNil() } } else { if yyq2[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ownerReferences")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.OwnerReferences == nil { r.EncodeNil() } else { yym45 := z.EncBinary() _ = yym45 if false { } else { h.encSliceOwnerReference(([]OwnerReference)(x.OwnerReferences), e) } } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[13] { if x.Finalizers == nil { r.EncodeNil() } else { yym47 := z.EncBinary() _ = yym47 if false { } else { z.F.EncSliceStringV(x.Finalizers, false, e) } } } else { r.EncodeNil() } } else { if yyq2[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finalizers")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Finalizers == nil { r.EncodeNil() } else { yym48 := z.EncBinary() _ = yym48 if false { } else { z.F.EncSliceStringV(x.Finalizers, false, e) } } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ObjectMeta) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym49 := z.DecBinary() _ = yym49 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct50 := r.ContainerType() if yyct50 == codecSelferValueTypeMap1234 { yyl50 := r.ReadMapStart() if yyl50 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl50, d) } } else if yyct50 == codecSelferValueTypeArray1234 { yyl50 := r.ReadArrayStart() if yyl50 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl50, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys51Slc = z.DecScratchBuffer() // default slice to decode into _ = yys51Slc var yyhl51 bool = l >= 0 for yyj51 := 0; ; yyj51++ { if yyhl51 { if yyj51 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys51Slc = r.DecodeBytes(yys51Slc, true, true) yys51 := string(yys51Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys51 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "generateName": if r.TryDecodeAsNil() { x.GenerateName = "" } else { x.GenerateName = string(r.DecodeString()) } case "namespace": if r.TryDecodeAsNil() { x.Namespace = "" } else { x.Namespace = string(r.DecodeString()) } case "selfLink": if r.TryDecodeAsNil() { x.SelfLink = "" } else { x.SelfLink = string(r.DecodeString()) } case "uid": if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } case "resourceVersion": if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } case "generation": if r.TryDecodeAsNil() { x.Generation = 0 } else { x.Generation = int64(r.DecodeInt(64)) } case "creationTimestamp": if r.TryDecodeAsNil() { x.CreationTimestamp = pkg2_unversioned.Time{} } else { yyv59 := &x.CreationTimestamp yym60 := z.DecBinary() _ = yym60 if false { } else if z.HasExtensions() && z.DecExt(yyv59) { } else if yym60 { z.DecBinaryUnmarshal(yyv59) } else if !yym60 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv59) } else { z.DecFallback(yyv59, false) } } case "deletionTimestamp": if r.TryDecodeAsNil() { if x.DeletionTimestamp != nil { x.DeletionTimestamp = nil } } else { if x.DeletionTimestamp == nil { x.DeletionTimestamp = new(pkg2_unversioned.Time) } yym62 := z.DecBinary() _ = yym62 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { } else if yym62 { z.DecBinaryUnmarshal(x.DeletionTimestamp) } else if !yym62 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) } } case "deletionGracePeriodSeconds": if r.TryDecodeAsNil() { if x.DeletionGracePeriodSeconds != nil { x.DeletionGracePeriodSeconds = nil } } else { if x.DeletionGracePeriodSeconds == nil { x.DeletionGracePeriodSeconds = new(int64) } yym64 := z.DecBinary() _ = yym64 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } case "labels": if r.TryDecodeAsNil() { x.Labels = nil } else { yyv65 := &x.Labels yym66 := z.DecBinary() _ = yym66 if false { } else { z.F.DecMapStringStringX(yyv65, false, d) } } case "annotations": if r.TryDecodeAsNil() { x.Annotations = nil } else { yyv67 := &x.Annotations yym68 := z.DecBinary() _ = yym68 if false { } else { z.F.DecMapStringStringX(yyv67, false, d) } } case "ownerReferences": if r.TryDecodeAsNil() { x.OwnerReferences = nil } else { yyv69 := &x.OwnerReferences yym70 := z.DecBinary() _ = yym70 if false { } else { h.decSliceOwnerReference((*[]OwnerReference)(yyv69), d) } } case "finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv71 := &x.Finalizers yym72 := z.DecBinary() _ = yym72 if false { } else { z.F.DecSliceStringX(yyv71, false, d) } } default: z.DecStructFieldNotFound(-1, yys51) } // end switch yys51 } // end for yyj51 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj73 int var yyb73 bool var yyhl73 bool = l >= 0 yyj73++ if yyhl73 { yyb73 = yyj73 > l } else { yyb73 = r.CheckBreak() } if yyb73 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj73++ if yyhl73 { yyb73 = yyj73 > l } else { yyb73 = r.CheckBreak() } if yyb73 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.GenerateName = "" } else { x.GenerateName = string(r.DecodeString()) } yyj73++ if yyhl73 { yyb73 = yyj73 > l } else { yyb73 = r.CheckBreak() } if yyb73 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Namespace = "" } else { x.Namespace = string(r.DecodeString()) } yyj73++ if yyhl73 { yyb73 = yyj73 > l } else { yyb73 = r.CheckBreak() } if yyb73 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SelfLink = "" } else { x.SelfLink = string(r.DecodeString()) } yyj73++ if yyhl73 { yyb73 = yyj73 > l } else { yyb73 = r.CheckBreak() } if yyb73 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } yyj73++ if yyhl73 { yyb73 = yyj73 > l } else { yyb73 = r.CheckBreak() } if yyb73 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj73++ if yyhl73 { yyb73 = yyj73 > l } else { yyb73 = r.CheckBreak() } if yyb73 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Generation = 0 } else { x.Generation = int64(r.DecodeInt(64)) } yyj73++ if yyhl73 { yyb73 = yyj73 > l } else { yyb73 = r.CheckBreak() } if yyb73 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.CreationTimestamp = pkg2_unversioned.Time{} } else { yyv81 := &x.CreationTimestamp yym82 := z.DecBinary() _ = yym82 if false { } else if z.HasExtensions() && z.DecExt(yyv81) { } else if yym82 { z.DecBinaryUnmarshal(yyv81) } else if !yym82 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv81) } else { z.DecFallback(yyv81, false) } } yyj73++ if yyhl73 { yyb73 = yyj73 > l } else { yyb73 = r.CheckBreak() } if yyb73 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.DeletionTimestamp != nil { x.DeletionTimestamp = nil } } else { if x.DeletionTimestamp == nil { x.DeletionTimestamp = new(pkg2_unversioned.Time) } yym84 := z.DecBinary() _ = yym84 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { } else if yym84 { z.DecBinaryUnmarshal(x.DeletionTimestamp) } else if !yym84 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) } } yyj73++ if yyhl73 { yyb73 = yyj73 > l } else { yyb73 = r.CheckBreak() } if yyb73 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.DeletionGracePeriodSeconds != nil { x.DeletionGracePeriodSeconds = nil } } else { if x.DeletionGracePeriodSeconds == nil { x.DeletionGracePeriodSeconds = new(int64) } yym86 := z.DecBinary() _ = yym86 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } yyj73++ if yyhl73 { yyb73 = yyj73 > l } else { yyb73 = r.CheckBreak() } if yyb73 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Labels = nil } else { yyv87 := &x.Labels yym88 := z.DecBinary() _ = yym88 if false { } else { z.F.DecMapStringStringX(yyv87, false, d) } } yyj73++ if yyhl73 { yyb73 = yyj73 > l } else { yyb73 = r.CheckBreak() } if yyb73 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Annotations = nil } else { yyv89 := &x.Annotations yym90 := z.DecBinary() _ = yym90 if false { } else { z.F.DecMapStringStringX(yyv89, false, d) } } yyj73++ if yyhl73 { yyb73 = yyj73 > l } else { yyb73 = r.CheckBreak() } if yyb73 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.OwnerReferences = nil } else { yyv91 := &x.OwnerReferences yym92 := z.DecBinary() _ = yym92 if false { } else { h.decSliceOwnerReference((*[]OwnerReference)(yyv91), d) } } yyj73++ if yyhl73 { yyb73 = yyj73 > l } else { yyb73 = r.CheckBreak() } if yyb73 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv93 := &x.Finalizers yym94 := z.DecBinary() _ = yym94 if false { } else { z.F.DecSliceStringX(yyv93, false, d) } } for { yyj73++ if yyhl73 { yyb73 = yyj73 > l } else { yyb73 = r.CheckBreak() } if yyb73 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj73-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym95 := z.EncBinary() _ = yym95 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep96 := !z.EncBinary() yy2arr96 := z.EncBasicHandle().StructToArray var yyq96 [21]bool _, _, _ = yysep96, yyq96, yy2arr96 const yyr96 bool = false yyq96[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil yyq96[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil yyq96[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil yyq96[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil yyq96[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil yyq96[6] = x.VolumeSource.Secret != nil && x.Secret != nil yyq96[7] = x.VolumeSource.NFS != nil && x.NFS != nil yyq96[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil yyq96[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil yyq96[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil yyq96[11] = x.VolumeSource.RBD != nil && x.RBD != nil yyq96[12] = x.VolumeSource.FlexVolume != nil && x.FlexVolume != nil yyq96[13] = x.VolumeSource.Cinder != nil && x.Cinder != nil yyq96[14] = x.VolumeSource.CephFS != nil && x.CephFS != nil yyq96[15] = x.VolumeSource.Flocker != nil && x.Flocker != nil yyq96[16] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil yyq96[17] = x.VolumeSource.FC != nil && x.FC != nil yyq96[18] = x.VolumeSource.AzureFile != nil && x.AzureFile != nil yyq96[19] = x.VolumeSource.ConfigMap != nil && x.ConfigMap != nil yyq96[20] = x.VolumeSource.VsphereVolume != nil && x.VsphereVolume != nil var yynn96 int if yyr96 || yy2arr96 { r.EncodeArrayStart(21) } else { yynn96 = 1 for _, b := range yyq96 { if b { yynn96++ } } r.EncodeMapStart(yynn96) yynn96 = 0 } if yyr96 || yy2arr96 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym98 := z.EncBinary() _ = yym98 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym99 := z.EncBinary() _ = yym99 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } var yyn100 bool if x.VolumeSource.HostPath == nil { yyn100 = true goto LABEL100 } LABEL100: if yyr96 || yy2arr96 { if yyn100 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[1] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn100 { r.EncodeNil() } else { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } } } var yyn101 bool if x.VolumeSource.EmptyDir == nil { yyn101 = true goto LABEL101 } LABEL101: if yyr96 || yy2arr96 { if yyn101 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[2] { if x.EmptyDir == nil { r.EncodeNil() } else { x.EmptyDir.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn101 { r.EncodeNil() } else { if x.EmptyDir == nil { r.EncodeNil() } else { x.EmptyDir.CodecEncodeSelf(e) } } } } var yyn102 bool if x.VolumeSource.GCEPersistentDisk == nil { yyn102 = true goto LABEL102 } LABEL102: if yyr96 || yy2arr96 { if yyn102 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[3] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn102 { r.EncodeNil() } else { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } } } var yyn103 bool if x.VolumeSource.AWSElasticBlockStore == nil { yyn103 = true goto LABEL103 } LABEL103: if yyr96 || yy2arr96 { if yyn103 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[4] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn103 { r.EncodeNil() } else { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } } var yyn104 bool if x.VolumeSource.GitRepo == nil { yyn104 = true goto LABEL104 } LABEL104: if yyr96 || yy2arr96 { if yyn104 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[5] { if x.GitRepo == nil { r.EncodeNil() } else { x.GitRepo.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn104 { r.EncodeNil() } else { if x.GitRepo == nil { r.EncodeNil() } else { x.GitRepo.CodecEncodeSelf(e) } } } } var yyn105 bool if x.VolumeSource.Secret == nil { yyn105 = true goto LABEL105 } LABEL105: if yyr96 || yy2arr96 { if yyn105 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[6] { if x.Secret == nil { r.EncodeNil() } else { x.Secret.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secret")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn105 { r.EncodeNil() } else { if x.Secret == nil { r.EncodeNil() } else { x.Secret.CodecEncodeSelf(e) } } } } var yyn106 bool if x.VolumeSource.NFS == nil { yyn106 = true goto LABEL106 } LABEL106: if yyr96 || yy2arr96 { if yyn106 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[7] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn106 { r.EncodeNil() } else { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } } } var yyn107 bool if x.VolumeSource.ISCSI == nil { yyn107 = true goto LABEL107 } LABEL107: if yyr96 || yy2arr96 { if yyn107 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[8] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn107 { r.EncodeNil() } else { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } } } var yyn108 bool if x.VolumeSource.Glusterfs == nil { yyn108 = true goto LABEL108 } LABEL108: if yyr96 || yy2arr96 { if yyn108 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[9] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn108 { r.EncodeNil() } else { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } } } var yyn109 bool if x.VolumeSource.PersistentVolumeClaim == nil { yyn109 = true goto LABEL109 } LABEL109: if yyr96 || yy2arr96 { if yyn109 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[10] { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { x.PersistentVolumeClaim.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn109 { r.EncodeNil() } else { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { x.PersistentVolumeClaim.CodecEncodeSelf(e) } } } } var yyn110 bool if x.VolumeSource.RBD == nil { yyn110 = true goto LABEL110 } LABEL110: if yyr96 || yy2arr96 { if yyn110 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[11] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn110 { r.EncodeNil() } else { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } } } var yyn111 bool if x.VolumeSource.FlexVolume == nil { yyn111 = true goto LABEL111 } LABEL111: if yyr96 || yy2arr96 { if yyn111 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[12] { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn111 { r.EncodeNil() } else { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } } } var yyn112 bool if x.VolumeSource.Cinder == nil { yyn112 = true goto LABEL112 } LABEL112: if yyr96 || yy2arr96 { if yyn112 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[13] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn112 { r.EncodeNil() } else { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } } } var yyn113 bool if x.VolumeSource.CephFS == nil { yyn113 = true goto LABEL113 } LABEL113: if yyr96 || yy2arr96 { if yyn113 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[14] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn113 { r.EncodeNil() } else { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } } } var yyn114 bool if x.VolumeSource.Flocker == nil { yyn114 = true goto LABEL114 } LABEL114: if yyr96 || yy2arr96 { if yyn114 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[15] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn114 { r.EncodeNil() } else { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } } } var yyn115 bool if x.VolumeSource.DownwardAPI == nil { yyn115 = true goto LABEL115 } LABEL115: if yyr96 || yy2arr96 { if yyn115 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[16] { if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn115 { r.EncodeNil() } else { if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } } } var yyn116 bool if x.VolumeSource.FC == nil { yyn116 = true goto LABEL116 } LABEL116: if yyr96 || yy2arr96 { if yyn116 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[17] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn116 { r.EncodeNil() } else { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } } } var yyn117 bool if x.VolumeSource.AzureFile == nil { yyn117 = true goto LABEL117 } LABEL117: if yyr96 || yy2arr96 { if yyn117 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[18] { if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[18] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn117 { r.EncodeNil() } else { if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } } } var yyn118 bool if x.VolumeSource.ConfigMap == nil { yyn118 = true goto LABEL118 } LABEL118: if yyr96 || yy2arr96 { if yyn118 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[19] { if x.ConfigMap == nil { r.EncodeNil() } else { x.ConfigMap.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[19] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configMap")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn118 { r.EncodeNil() } else { if x.ConfigMap == nil { r.EncodeNil() } else { x.ConfigMap.CodecEncodeSelf(e) } } } } var yyn119 bool if x.VolumeSource.VsphereVolume == nil { yyn119 = true goto LABEL119 } LABEL119: if yyr96 || yy2arr96 { if yyn119 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq96[20] { if x.VsphereVolume == nil { r.EncodeNil() } else { x.VsphereVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq96[20] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn119 { r.EncodeNil() } else { if x.VsphereVolume == nil { r.EncodeNil() } else { x.VsphereVolume.CodecEncodeSelf(e) } } } } if yyr96 || yy2arr96 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Volume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym120 := z.DecBinary() _ = yym120 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct121 := r.ContainerType() if yyct121 == codecSelferValueTypeMap1234 { yyl121 := r.ReadMapStart() if yyl121 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl121, d) } } else if yyct121 == codecSelferValueTypeArray1234 { yyl121 := r.ReadArrayStart() if yyl121 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl121, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys122Slc = z.DecScratchBuffer() // default slice to decode into _ = yys122Slc var yyhl122 bool = l >= 0 for yyj122 := 0; ; yyj122++ { if yyhl122 { if yyj122 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys122Slc = r.DecodeBytes(yys122Slc, true, true) yys122 := string(yys122Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys122 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "hostPath": if x.VolumeSource.HostPath == nil { x.VolumeSource.HostPath = new(HostPathVolumeSource) } if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } case "emptyDir": if x.VolumeSource.EmptyDir == nil { x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource) } if r.TryDecodeAsNil() { if x.EmptyDir != nil { x.EmptyDir = nil } } else { if x.EmptyDir == nil { x.EmptyDir = new(EmptyDirVolumeSource) } x.EmptyDir.CodecDecodeSelf(d) } case "gcePersistentDisk": if x.VolumeSource.GCEPersistentDisk == nil { x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } case "awsElasticBlockStore": if x.VolumeSource.AWSElasticBlockStore == nil { x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } case "gitRepo": if x.VolumeSource.GitRepo == nil { x.VolumeSource.GitRepo = new(GitRepoVolumeSource) } if r.TryDecodeAsNil() { if x.GitRepo != nil { x.GitRepo = nil } } else { if x.GitRepo == nil { x.GitRepo = new(GitRepoVolumeSource) } x.GitRepo.CodecDecodeSelf(d) } case "secret": if x.VolumeSource.Secret == nil { x.VolumeSource.Secret = new(SecretVolumeSource) } if r.TryDecodeAsNil() { if x.Secret != nil { x.Secret = nil } } else { if x.Secret == nil { x.Secret = new(SecretVolumeSource) } x.Secret.CodecDecodeSelf(d) } case "nfs": if x.VolumeSource.NFS == nil { x.VolumeSource.NFS = new(NFSVolumeSource) } if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } case "iscsi": if x.VolumeSource.ISCSI == nil { x.VolumeSource.ISCSI = new(ISCSIVolumeSource) } if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } case "glusterfs": if x.VolumeSource.Glusterfs == nil { x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource) } if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } case "persistentVolumeClaim": if x.VolumeSource.PersistentVolumeClaim == nil { x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } if r.TryDecodeAsNil() { if x.PersistentVolumeClaim != nil { x.PersistentVolumeClaim = nil } } else { if x.PersistentVolumeClaim == nil { x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } x.PersistentVolumeClaim.CodecDecodeSelf(d) } case "rbd": if x.VolumeSource.RBD == nil { x.VolumeSource.RBD = new(RBDVolumeSource) } if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } case "flexVolume": if x.VolumeSource.FlexVolume == nil { x.VolumeSource.FlexVolume = new(FlexVolumeSource) } if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } case "cinder": if x.VolumeSource.Cinder == nil { x.VolumeSource.Cinder = new(CinderVolumeSource) } if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } case "cephfs": if x.VolumeSource.CephFS == nil { x.VolumeSource.CephFS = new(CephFSVolumeSource) } if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } case "flocker": if x.VolumeSource.Flocker == nil { x.VolumeSource.Flocker = new(FlockerVolumeSource) } if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } case "downwardAPI": if x.VolumeSource.DownwardAPI == nil { x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource) } if r.TryDecodeAsNil() { if x.DownwardAPI != nil { x.DownwardAPI = nil } } else { if x.DownwardAPI == nil { x.DownwardAPI = new(DownwardAPIVolumeSource) } x.DownwardAPI.CodecDecodeSelf(d) } case "fc": if x.VolumeSource.FC == nil { x.VolumeSource.FC = new(FCVolumeSource) } if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } case "azureFile": if x.VolumeSource.AzureFile == nil { x.VolumeSource.AzureFile = new(AzureFileVolumeSource) } if r.TryDecodeAsNil() { if x.AzureFile != nil { x.AzureFile = nil } } else { if x.AzureFile == nil { x.AzureFile = new(AzureFileVolumeSource) } x.AzureFile.CodecDecodeSelf(d) } case "configMap": if x.VolumeSource.ConfigMap == nil { x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource) } if r.TryDecodeAsNil() { if x.ConfigMap != nil { x.ConfigMap = nil } } else { if x.ConfigMap == nil { x.ConfigMap = new(ConfigMapVolumeSource) } x.ConfigMap.CodecDecodeSelf(d) } case "vsphereVolume": if x.VolumeSource.VsphereVolume == nil { x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } if r.TryDecodeAsNil() { if x.VsphereVolume != nil { x.VsphereVolume = nil } } else { if x.VsphereVolume == nil { x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } x.VsphereVolume.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys122) } // end switch yys122 } // end for yyj122 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj144 int var yyb144 bool var yyhl144 bool = l >= 0 yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } if x.VolumeSource.HostPath == nil { x.VolumeSource.HostPath = new(HostPathVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } if x.VolumeSource.EmptyDir == nil { x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.EmptyDir != nil { x.EmptyDir = nil } } else { if x.EmptyDir == nil { x.EmptyDir = new(EmptyDirVolumeSource) } x.EmptyDir.CodecDecodeSelf(d) } if x.VolumeSource.GCEPersistentDisk == nil { x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } if x.VolumeSource.AWSElasticBlockStore == nil { x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } if x.VolumeSource.GitRepo == nil { x.VolumeSource.GitRepo = new(GitRepoVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.GitRepo != nil { x.GitRepo = nil } } else { if x.GitRepo == nil { x.GitRepo = new(GitRepoVolumeSource) } x.GitRepo.CodecDecodeSelf(d) } if x.VolumeSource.Secret == nil { x.VolumeSource.Secret = new(SecretVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Secret != nil { x.Secret = nil } } else { if x.Secret == nil { x.Secret = new(SecretVolumeSource) } x.Secret.CodecDecodeSelf(d) } if x.VolumeSource.NFS == nil { x.VolumeSource.NFS = new(NFSVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } if x.VolumeSource.ISCSI == nil { x.VolumeSource.ISCSI = new(ISCSIVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } if x.VolumeSource.Glusterfs == nil { x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } if x.VolumeSource.PersistentVolumeClaim == nil { x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.PersistentVolumeClaim != nil { x.PersistentVolumeClaim = nil } } else { if x.PersistentVolumeClaim == nil { x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } x.PersistentVolumeClaim.CodecDecodeSelf(d) } if x.VolumeSource.RBD == nil { x.VolumeSource.RBD = new(RBDVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } if x.VolumeSource.FlexVolume == nil { x.VolumeSource.FlexVolume = new(FlexVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } if x.VolumeSource.Cinder == nil { x.VolumeSource.Cinder = new(CinderVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } if x.VolumeSource.CephFS == nil { x.VolumeSource.CephFS = new(CephFSVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } if x.VolumeSource.Flocker == nil { x.VolumeSource.Flocker = new(FlockerVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } if x.VolumeSource.DownwardAPI == nil { x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.DownwardAPI != nil { x.DownwardAPI = nil } } else { if x.DownwardAPI == nil { x.DownwardAPI = new(DownwardAPIVolumeSource) } x.DownwardAPI.CodecDecodeSelf(d) } if x.VolumeSource.FC == nil { x.VolumeSource.FC = new(FCVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } if x.VolumeSource.AzureFile == nil { x.VolumeSource.AzureFile = new(AzureFileVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AzureFile != nil { x.AzureFile = nil } } else { if x.AzureFile == nil { x.AzureFile = new(AzureFileVolumeSource) } x.AzureFile.CodecDecodeSelf(d) } if x.VolumeSource.ConfigMap == nil { x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ConfigMap != nil { x.ConfigMap = nil } } else { if x.ConfigMap == nil { x.ConfigMap = new(ConfigMapVolumeSource) } x.ConfigMap.CodecDecodeSelf(d) } if x.VolumeSource.VsphereVolume == nil { x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.VsphereVolume != nil { x.VsphereVolume = nil } } else { if x.VsphereVolume == nil { x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } x.VsphereVolume.CodecDecodeSelf(d) } for { yyj144++ if yyhl144 { yyb144 = yyj144 > l } else { yyb144 = r.CheckBreak() } if yyb144 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj144-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym166 := z.EncBinary() _ = yym166 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep167 := !z.EncBinary() yy2arr167 := z.EncBasicHandle().StructToArray var yyq167 [20]bool _, _, _ = yysep167, yyq167, yy2arr167 const yyr167 bool = false yyq167[0] = x.HostPath != nil yyq167[1] = x.EmptyDir != nil yyq167[2] = x.GCEPersistentDisk != nil yyq167[3] = x.AWSElasticBlockStore != nil yyq167[4] = x.GitRepo != nil yyq167[5] = x.Secret != nil yyq167[6] = x.NFS != nil yyq167[7] = x.ISCSI != nil yyq167[8] = x.Glusterfs != nil yyq167[9] = x.PersistentVolumeClaim != nil yyq167[10] = x.RBD != nil yyq167[11] = x.FlexVolume != nil yyq167[12] = x.Cinder != nil yyq167[13] = x.CephFS != nil yyq167[14] = x.Flocker != nil yyq167[15] = x.DownwardAPI != nil yyq167[16] = x.FC != nil yyq167[17] = x.AzureFile != nil yyq167[18] = x.ConfigMap != nil yyq167[19] = x.VsphereVolume != nil var yynn167 int if yyr167 || yy2arr167 { r.EncodeArrayStart(20) } else { yynn167 = 0 for _, b := range yyq167 { if b { yynn167++ } } r.EncodeMapStart(yynn167) yynn167 = 0 } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[0] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[1] { if x.EmptyDir == nil { r.EncodeNil() } else { x.EmptyDir.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.EmptyDir == nil { r.EncodeNil() } else { x.EmptyDir.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[2] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[3] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[4] { if x.GitRepo == nil { r.EncodeNil() } else { x.GitRepo.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.GitRepo == nil { r.EncodeNil() } else { x.GitRepo.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[5] { if x.Secret == nil { r.EncodeNil() } else { x.Secret.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secret")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Secret == nil { r.EncodeNil() } else { x.Secret.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[6] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[7] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[8] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[9] { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { x.PersistentVolumeClaim.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { x.PersistentVolumeClaim.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[10] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[11] { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[12] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[13] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[14] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[15] { if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[16] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[17] { if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[18] { if x.ConfigMap == nil { r.EncodeNil() } else { x.ConfigMap.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[18] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configMap")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ConfigMap == nil { r.EncodeNil() } else { x.ConfigMap.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq167[19] { if x.VsphereVolume == nil { r.EncodeNil() } else { x.VsphereVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq167[19] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VsphereVolume == nil { r.EncodeNil() } else { x.VsphereVolume.CodecEncodeSelf(e) } } } if yyr167 || yy2arr167 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *VolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym188 := z.DecBinary() _ = yym188 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct189 := r.ContainerType() if yyct189 == codecSelferValueTypeMap1234 { yyl189 := r.ReadMapStart() if yyl189 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl189, d) } } else if yyct189 == codecSelferValueTypeArray1234 { yyl189 := r.ReadArrayStart() if yyl189 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl189, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys190Slc = z.DecScratchBuffer() // default slice to decode into _ = yys190Slc var yyhl190 bool = l >= 0 for yyj190 := 0; ; yyj190++ { if yyhl190 { if yyj190 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys190Slc = r.DecodeBytes(yys190Slc, true, true) yys190 := string(yys190Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys190 { case "hostPath": if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } case "emptyDir": if r.TryDecodeAsNil() { if x.EmptyDir != nil { x.EmptyDir = nil } } else { if x.EmptyDir == nil { x.EmptyDir = new(EmptyDirVolumeSource) } x.EmptyDir.CodecDecodeSelf(d) } case "gcePersistentDisk": if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } case "awsElasticBlockStore": if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } case "gitRepo": if r.TryDecodeAsNil() { if x.GitRepo != nil { x.GitRepo = nil } } else { if x.GitRepo == nil { x.GitRepo = new(GitRepoVolumeSource) } x.GitRepo.CodecDecodeSelf(d) } case "secret": if r.TryDecodeAsNil() { if x.Secret != nil { x.Secret = nil } } else { if x.Secret == nil { x.Secret = new(SecretVolumeSource) } x.Secret.CodecDecodeSelf(d) } case "nfs": if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } case "iscsi": if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } case "glusterfs": if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } case "persistentVolumeClaim": if r.TryDecodeAsNil() { if x.PersistentVolumeClaim != nil { x.PersistentVolumeClaim = nil } } else { if x.PersistentVolumeClaim == nil { x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } x.PersistentVolumeClaim.CodecDecodeSelf(d) } case "rbd": if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } case "flexVolume": if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } case "cinder": if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } case "cephfs": if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } case "flocker": if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } case "downwardAPI": if r.TryDecodeAsNil() { if x.DownwardAPI != nil { x.DownwardAPI = nil } } else { if x.DownwardAPI == nil { x.DownwardAPI = new(DownwardAPIVolumeSource) } x.DownwardAPI.CodecDecodeSelf(d) } case "fc": if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } case "azureFile": if r.TryDecodeAsNil() { if x.AzureFile != nil { x.AzureFile = nil } } else { if x.AzureFile == nil { x.AzureFile = new(AzureFileVolumeSource) } x.AzureFile.CodecDecodeSelf(d) } case "configMap": if r.TryDecodeAsNil() { if x.ConfigMap != nil { x.ConfigMap = nil } } else { if x.ConfigMap == nil { x.ConfigMap = new(ConfigMapVolumeSource) } x.ConfigMap.CodecDecodeSelf(d) } case "vsphereVolume": if r.TryDecodeAsNil() { if x.VsphereVolume != nil { x.VsphereVolume = nil } } else { if x.VsphereVolume == nil { x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } x.VsphereVolume.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys190) } // end switch yys190 } // end for yyj190 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj211 int var yyb211 bool var yyhl211 bool = l >= 0 yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.EmptyDir != nil { x.EmptyDir = nil } } else { if x.EmptyDir == nil { x.EmptyDir = new(EmptyDirVolumeSource) } x.EmptyDir.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.GitRepo != nil { x.GitRepo = nil } } else { if x.GitRepo == nil { x.GitRepo = new(GitRepoVolumeSource) } x.GitRepo.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Secret != nil { x.Secret = nil } } else { if x.Secret == nil { x.Secret = new(SecretVolumeSource) } x.Secret.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.PersistentVolumeClaim != nil { x.PersistentVolumeClaim = nil } } else { if x.PersistentVolumeClaim == nil { x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } x.PersistentVolumeClaim.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.DownwardAPI != nil { x.DownwardAPI = nil } } else { if x.DownwardAPI == nil { x.DownwardAPI = new(DownwardAPIVolumeSource) } x.DownwardAPI.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AzureFile != nil { x.AzureFile = nil } } else { if x.AzureFile == nil { x.AzureFile = new(AzureFileVolumeSource) } x.AzureFile.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ConfigMap != nil { x.ConfigMap = nil } } else { if x.ConfigMap == nil { x.ConfigMap = new(ConfigMapVolumeSource) } x.ConfigMap.CodecDecodeSelf(d) } yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.VsphereVolume != nil { x.VsphereVolume = nil } } else { if x.VsphereVolume == nil { x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } x.VsphereVolume.CodecDecodeSelf(d) } for { yyj211++ if yyhl211 { yyb211 = yyj211 > l } else { yyb211 = r.CheckBreak() } if yyb211 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj211-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym232 := z.EncBinary() _ = yym232 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep233 := !z.EncBinary() yy2arr233 := z.EncBasicHandle().StructToArray var yyq233 [14]bool _, _, _ = yysep233, yyq233, yy2arr233 const yyr233 bool = false yyq233[0] = x.GCEPersistentDisk != nil yyq233[1] = x.AWSElasticBlockStore != nil yyq233[2] = x.HostPath != nil yyq233[3] = x.Glusterfs != nil yyq233[4] = x.NFS != nil yyq233[5] = x.RBD != nil yyq233[6] = x.ISCSI != nil yyq233[7] = x.FlexVolume != nil yyq233[8] = x.Cinder != nil yyq233[9] = x.CephFS != nil yyq233[10] = x.FC != nil yyq233[11] = x.Flocker != nil yyq233[12] = x.AzureFile != nil yyq233[13] = x.VsphereVolume != nil var yynn233 int if yyr233 || yy2arr233 { r.EncodeArrayStart(14) } else { yynn233 = 0 for _, b := range yyq233 { if b { yynn233++ } } r.EncodeMapStart(yynn233) yynn233 = 0 } if yyr233 || yy2arr233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq233[0] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq233[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } } if yyr233 || yy2arr233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq233[1] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq233[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } if yyr233 || yy2arr233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq233[2] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq233[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } } if yyr233 || yy2arr233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq233[3] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq233[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } } if yyr233 || yy2arr233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq233[4] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq233[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } } if yyr233 || yy2arr233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq233[5] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq233[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } } if yyr233 || yy2arr233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq233[6] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq233[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } } if yyr233 || yy2arr233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq233[7] { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq233[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } } if yyr233 || yy2arr233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq233[8] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq233[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } } if yyr233 || yy2arr233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq233[9] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq233[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } } if yyr233 || yy2arr233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq233[10] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq233[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } } if yyr233 || yy2arr233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq233[11] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq233[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } } if yyr233 || yy2arr233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq233[12] { if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq233[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } } if yyr233 || yy2arr233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq233[13] { if x.VsphereVolume == nil { r.EncodeNil() } else { x.VsphereVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq233[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VsphereVolume == nil { r.EncodeNil() } else { x.VsphereVolume.CodecEncodeSelf(e) } } } if yyr233 || yy2arr233 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym248 := z.DecBinary() _ = yym248 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct249 := r.ContainerType() if yyct249 == codecSelferValueTypeMap1234 { yyl249 := r.ReadMapStart() if yyl249 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl249, d) } } else if yyct249 == codecSelferValueTypeArray1234 { yyl249 := r.ReadArrayStart() if yyl249 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl249, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys250Slc = z.DecScratchBuffer() // default slice to decode into _ = yys250Slc var yyhl250 bool = l >= 0 for yyj250 := 0; ; yyj250++ { if yyhl250 { if yyj250 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys250Slc = r.DecodeBytes(yys250Slc, true, true) yys250 := string(yys250Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys250 { case "gcePersistentDisk": if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } case "awsElasticBlockStore": if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } case "hostPath": if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } case "glusterfs": if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } case "nfs": if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } case "rbd": if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } case "iscsi": if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } case "flexVolume": if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } case "cinder": if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } case "cephfs": if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } case "fc": if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } case "flocker": if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } case "azureFile": if r.TryDecodeAsNil() { if x.AzureFile != nil { x.AzureFile = nil } } else { if x.AzureFile == nil { x.AzureFile = new(AzureFileVolumeSource) } x.AzureFile.CodecDecodeSelf(d) } case "vsphereVolume": if r.TryDecodeAsNil() { if x.VsphereVolume != nil { x.VsphereVolume = nil } } else { if x.VsphereVolume == nil { x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } x.VsphereVolume.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys250) } // end switch yys250 } // end for yyj250 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj265 int var yyb265 bool var yyhl265 bool = l >= 0 yyj265++ if yyhl265 { yyb265 = yyj265 > l } else { yyb265 = r.CheckBreak() } if yyb265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } yyj265++ if yyhl265 { yyb265 = yyj265 > l } else { yyb265 = r.CheckBreak() } if yyb265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } yyj265++ if yyhl265 { yyb265 = yyj265 > l } else { yyb265 = r.CheckBreak() } if yyb265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } yyj265++ if yyhl265 { yyb265 = yyj265 > l } else { yyb265 = r.CheckBreak() } if yyb265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } yyj265++ if yyhl265 { yyb265 = yyj265 > l } else { yyb265 = r.CheckBreak() } if yyb265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } yyj265++ if yyhl265 { yyb265 = yyj265 > l } else { yyb265 = r.CheckBreak() } if yyb265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } yyj265++ if yyhl265 { yyb265 = yyj265 > l } else { yyb265 = r.CheckBreak() } if yyb265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } yyj265++ if yyhl265 { yyb265 = yyj265 > l } else { yyb265 = r.CheckBreak() } if yyb265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } yyj265++ if yyhl265 { yyb265 = yyj265 > l } else { yyb265 = r.CheckBreak() } if yyb265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } yyj265++ if yyhl265 { yyb265 = yyj265 > l } else { yyb265 = r.CheckBreak() } if yyb265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } yyj265++ if yyhl265 { yyb265 = yyj265 > l } else { yyb265 = r.CheckBreak() } if yyb265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } yyj265++ if yyhl265 { yyb265 = yyj265 > l } else { yyb265 = r.CheckBreak() } if yyb265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } yyj265++ if yyhl265 { yyb265 = yyj265 > l } else { yyb265 = r.CheckBreak() } if yyb265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AzureFile != nil { x.AzureFile = nil } } else { if x.AzureFile == nil { x.AzureFile = new(AzureFileVolumeSource) } x.AzureFile.CodecDecodeSelf(d) } yyj265++ if yyhl265 { yyb265 = yyj265 > l } else { yyb265 = r.CheckBreak() } if yyb265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.VsphereVolume != nil { x.VsphereVolume = nil } } else { if x.VsphereVolume == nil { x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } x.VsphereVolume.CodecDecodeSelf(d) } for { yyj265++ if yyhl265 { yyb265 = yyj265 > l } else { yyb265 = r.CheckBreak() } if yyb265 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj265-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym280 := z.EncBinary() _ = yym280 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep281 := !z.EncBinary() yy2arr281 := z.EncBasicHandle().StructToArray var yyq281 [2]bool _, _, _ = yysep281, yyq281, yy2arr281 const yyr281 bool = false yyq281[1] = x.ReadOnly != false var yynn281 int if yyr281 || yy2arr281 { r.EncodeArrayStart(2) } else { yynn281 = 1 for _, b := range yyq281 { if b { yynn281++ } } r.EncodeMapStart(yynn281) yynn281 = 0 } if yyr281 || yy2arr281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym283 := z.EncBinary() _ = yym283 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("claimName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym284 := z.EncBinary() _ = yym284 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) } } if yyr281 || yy2arr281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[1] { yym286 := z.EncBinary() _ = yym286 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq281[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym287 := z.EncBinary() _ = yym287 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr281 || yy2arr281 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolumeClaimVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym288 := z.DecBinary() _ = yym288 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct289 := r.ContainerType() if yyct289 == codecSelferValueTypeMap1234 { yyl289 := r.ReadMapStart() if yyl289 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl289, d) } } else if yyct289 == codecSelferValueTypeArray1234 { yyl289 := r.ReadArrayStart() if yyl289 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl289, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys290Slc = z.DecScratchBuffer() // default slice to decode into _ = yys290Slc var yyhl290 bool = l >= 0 for yyj290 := 0; ; yyj290++ { if yyhl290 { if yyj290 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys290Slc = r.DecodeBytes(yys290Slc, true, true) yys290 := string(yys290Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys290 { case "claimName": if r.TryDecodeAsNil() { x.ClaimName = "" } else { x.ClaimName = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys290) } // end switch yys290 } // end for yyj290 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj293 int var yyb293 bool var yyhl293 bool = l >= 0 yyj293++ if yyhl293 { yyb293 = yyj293 > l } else { yyb293 = r.CheckBreak() } if yyb293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ClaimName = "" } else { x.ClaimName = string(r.DecodeString()) } yyj293++ if yyhl293 { yyb293 = yyj293 > l } else { yyb293 = r.CheckBreak() } if yyb293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj293++ if yyhl293 { yyb293 = yyj293 > l } else { yyb293 = r.CheckBreak() } if yyb293 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj293-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym296 := z.EncBinary() _ = yym296 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep297 := !z.EncBinary() yy2arr297 := z.EncBasicHandle().StructToArray var yyq297 [5]bool _, _, _ = yysep297, yyq297, yy2arr297 const yyr297 bool = false yyq297[0] = x.Kind != "" yyq297[1] = x.APIVersion != "" yyq297[2] = true yyq297[3] = true yyq297[4] = true var yynn297 int if yyr297 || yy2arr297 { r.EncodeArrayStart(5) } else { yynn297 = 0 for _, b := range yyq297 { if b { yynn297++ } } r.EncodeMapStart(yynn297) yynn297 = 0 } if yyr297 || yy2arr297 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq297[0] { yym299 := z.EncBinary() _ = yym299 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq297[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym300 := z.EncBinary() _ = yym300 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr297 || yy2arr297 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq297[1] { yym302 := z.EncBinary() _ = yym302 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq297[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym303 := z.EncBinary() _ = yym303 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr297 || yy2arr297 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq297[2] { yy305 := &x.ObjectMeta yy305.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq297[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy306 := &x.ObjectMeta yy306.CodecEncodeSelf(e) } } if yyr297 || yy2arr297 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq297[3] { yy308 := &x.Spec yy308.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq297[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy309 := &x.Spec yy309.CodecEncodeSelf(e) } } if yyr297 || yy2arr297 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq297[4] { yy311 := &x.Status yy311.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq297[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy312 := &x.Status yy312.CodecEncodeSelf(e) } } if yyr297 || yy2arr297 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym313 := z.DecBinary() _ = yym313 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct314 := r.ContainerType() if yyct314 == codecSelferValueTypeMap1234 { yyl314 := r.ReadMapStart() if yyl314 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl314, d) } } else if yyct314 == codecSelferValueTypeArray1234 { yyl314 := r.ReadArrayStart() if yyl314 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl314, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys315Slc = z.DecScratchBuffer() // default slice to decode into _ = yys315Slc var yyhl315 bool = l >= 0 for yyj315 := 0; ; yyj315++ { if yyhl315 { if yyj315 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys315Slc = r.DecodeBytes(yys315Slc, true, true) yys315 := string(yys315Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys315 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv318 := &x.ObjectMeta yyv318.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { yyv319 := &x.Spec yyv319.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { yyv320 := &x.Status yyv320.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys315) } // end switch yys315 } // end for yyj315 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj321 int var yyb321 bool var yyhl321 bool = l >= 0 yyj321++ if yyhl321 { yyb321 = yyj321 > l } else { yyb321 = r.CheckBreak() } if yyb321 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj321++ if yyhl321 { yyb321 = yyj321 > l } else { yyb321 = r.CheckBreak() } if yyb321 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj321++ if yyhl321 { yyb321 = yyj321 > l } else { yyb321 = r.CheckBreak() } if yyb321 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv324 := &x.ObjectMeta yyv324.CodecDecodeSelf(d) } yyj321++ if yyhl321 { yyb321 = yyj321 > l } else { yyb321 = r.CheckBreak() } if yyb321 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { yyv325 := &x.Spec yyv325.CodecDecodeSelf(d) } yyj321++ if yyhl321 { yyb321 = yyj321 > l } else { yyb321 = r.CheckBreak() } if yyb321 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { yyv326 := &x.Status yyv326.CodecDecodeSelf(d) } for { yyj321++ if yyhl321 { yyb321 = yyj321 > l } else { yyb321 = r.CheckBreak() } if yyb321 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj321-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym327 := z.EncBinary() _ = yym327 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep328 := !z.EncBinary() yy2arr328 := z.EncBasicHandle().StructToArray var yyq328 [18]bool _, _, _ = yysep328, yyq328, yy2arr328 const yyr328 bool = false yyq328[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil yyq328[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil yyq328[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil yyq328[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil yyq328[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil yyq328[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil yyq328[7] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil yyq328[8] = x.PersistentVolumeSource.FlexVolume != nil && x.FlexVolume != nil yyq328[9] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil yyq328[10] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil yyq328[11] = x.PersistentVolumeSource.FC != nil && x.FC != nil yyq328[12] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil yyq328[13] = x.PersistentVolumeSource.AzureFile != nil && x.AzureFile != nil yyq328[14] = x.PersistentVolumeSource.VsphereVolume != nil && x.VsphereVolume != nil yyq328[15] = len(x.AccessModes) != 0 yyq328[16] = x.ClaimRef != nil yyq328[17] = x.PersistentVolumeReclaimPolicy != "" var yynn328 int if yyr328 || yy2arr328 { r.EncodeArrayStart(18) } else { yynn328 = 1 for _, b := range yyq328 { if b { yynn328++ } } r.EncodeMapStart(yynn328) yynn328 = 0 } if yyr328 || yy2arr328 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } var yyn330 bool if x.PersistentVolumeSource.GCEPersistentDisk == nil { yyn330 = true goto LABEL330 } LABEL330: if yyr328 || yy2arr328 { if yyn330 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq328[1] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq328[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn330 { r.EncodeNil() } else { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } } } var yyn331 bool if x.PersistentVolumeSource.AWSElasticBlockStore == nil { yyn331 = true goto LABEL331 } LABEL331: if yyr328 || yy2arr328 { if yyn331 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq328[2] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq328[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn331 { r.EncodeNil() } else { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } } var yyn332 bool if x.PersistentVolumeSource.HostPath == nil { yyn332 = true goto LABEL332 } LABEL332: if yyr328 || yy2arr328 { if yyn332 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq328[3] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq328[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn332 { r.EncodeNil() } else { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } } } var yyn333 bool if x.PersistentVolumeSource.Glusterfs == nil { yyn333 = true goto LABEL333 } LABEL333: if yyr328 || yy2arr328 { if yyn333 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq328[4] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq328[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn333 { r.EncodeNil() } else { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } } } var yyn334 bool if x.PersistentVolumeSource.NFS == nil { yyn334 = true goto LABEL334 } LABEL334: if yyr328 || yy2arr328 { if yyn334 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq328[5] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq328[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn334 { r.EncodeNil() } else { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } } } var yyn335 bool if x.PersistentVolumeSource.RBD == nil { yyn335 = true goto LABEL335 } LABEL335: if yyr328 || yy2arr328 { if yyn335 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq328[6] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq328[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn335 { r.EncodeNil() } else { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } } } var yyn336 bool if x.PersistentVolumeSource.ISCSI == nil { yyn336 = true goto LABEL336 } LABEL336: if yyr328 || yy2arr328 { if yyn336 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq328[7] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq328[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn336 { r.EncodeNil() } else { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } } } var yyn337 bool if x.PersistentVolumeSource.FlexVolume == nil { yyn337 = true goto LABEL337 } LABEL337: if yyr328 || yy2arr328 { if yyn337 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq328[8] { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq328[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn337 { r.EncodeNil() } else { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } } } var yyn338 bool if x.PersistentVolumeSource.Cinder == nil { yyn338 = true goto LABEL338 } LABEL338: if yyr328 || yy2arr328 { if yyn338 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq328[9] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq328[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn338 { r.EncodeNil() } else { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } } } var yyn339 bool if x.PersistentVolumeSource.CephFS == nil { yyn339 = true goto LABEL339 } LABEL339: if yyr328 || yy2arr328 { if yyn339 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq328[10] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq328[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn339 { r.EncodeNil() } else { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } } } var yyn340 bool if x.PersistentVolumeSource.FC == nil { yyn340 = true goto LABEL340 } LABEL340: if yyr328 || yy2arr328 { if yyn340 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq328[11] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq328[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn340 { r.EncodeNil() } else { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } } } var yyn341 bool if x.PersistentVolumeSource.Flocker == nil { yyn341 = true goto LABEL341 } LABEL341: if yyr328 || yy2arr328 { if yyn341 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq328[12] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq328[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn341 { r.EncodeNil() } else { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } } } var yyn342 bool if x.PersistentVolumeSource.AzureFile == nil { yyn342 = true goto LABEL342 } LABEL342: if yyr328 || yy2arr328 { if yyn342 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq328[13] { if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq328[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn342 { r.EncodeNil() } else { if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } } } var yyn343 bool if x.PersistentVolumeSource.VsphereVolume == nil { yyn343 = true goto LABEL343 } LABEL343: if yyr328 || yy2arr328 { if yyn343 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq328[14] { if x.VsphereVolume == nil { r.EncodeNil() } else { x.VsphereVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq328[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn343 { r.EncodeNil() } else { if x.VsphereVolume == nil { r.EncodeNil() } else { x.VsphereVolume.CodecEncodeSelf(e) } } } } if yyr328 || yy2arr328 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq328[15] { if x.AccessModes == nil { r.EncodeNil() } else { yym345 := z.EncBinary() _ = yym345 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } else { r.EncodeNil() } } else { if yyq328[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { yym346 := z.EncBinary() _ = yym346 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } } if yyr328 || yy2arr328 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq328[16] { if x.ClaimRef == nil { r.EncodeNil() } else { x.ClaimRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq328[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("claimRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ClaimRef == nil { r.EncodeNil() } else { x.ClaimRef.CodecEncodeSelf(e) } } } if yyr328 || yy2arr328 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq328[17] { x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq328[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } } if yyr328 || yy2arr328 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolumeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym349 := z.DecBinary() _ = yym349 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct350 := r.ContainerType() if yyct350 == codecSelferValueTypeMap1234 { yyl350 := r.ReadMapStart() if yyl350 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl350, d) } } else if yyct350 == codecSelferValueTypeArray1234 { yyl350 := r.ReadArrayStart() if yyl350 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl350, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys351Slc = z.DecScratchBuffer() // default slice to decode into _ = yys351Slc var yyhl351 bool = l >= 0 for yyj351 := 0; ; yyj351++ { if yyhl351 { if yyj351 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys351Slc = r.DecodeBytes(yys351Slc, true, true) yys351 := string(yys351Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys351 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv352 := &x.Capacity yyv352.CodecDecodeSelf(d) } case "gcePersistentDisk": if x.PersistentVolumeSource.GCEPersistentDisk == nil { x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } case "awsElasticBlockStore": if x.PersistentVolumeSource.AWSElasticBlockStore == nil { x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } case "hostPath": if x.PersistentVolumeSource.HostPath == nil { x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource) } if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } case "glusterfs": if x.PersistentVolumeSource.Glusterfs == nil { x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource) } if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } case "nfs": if x.PersistentVolumeSource.NFS == nil { x.PersistentVolumeSource.NFS = new(NFSVolumeSource) } if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } case "rbd": if x.PersistentVolumeSource.RBD == nil { x.PersistentVolumeSource.RBD = new(RBDVolumeSource) } if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } case "iscsi": if x.PersistentVolumeSource.ISCSI == nil { x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) } if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } case "flexVolume": if x.PersistentVolumeSource.FlexVolume == nil { x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource) } if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } case "cinder": if x.PersistentVolumeSource.Cinder == nil { x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) } if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } case "cephfs": if x.PersistentVolumeSource.CephFS == nil { x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource) } if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } case "fc": if x.PersistentVolumeSource.FC == nil { x.PersistentVolumeSource.FC = new(FCVolumeSource) } if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } case "flocker": if x.PersistentVolumeSource.Flocker == nil { x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource) } if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } case "azureFile": if x.PersistentVolumeSource.AzureFile == nil { x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource) } if r.TryDecodeAsNil() { if x.AzureFile != nil { x.AzureFile = nil } } else { if x.AzureFile == nil { x.AzureFile = new(AzureFileVolumeSource) } x.AzureFile.CodecDecodeSelf(d) } case "vsphereVolume": if x.PersistentVolumeSource.VsphereVolume == nil { x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } if r.TryDecodeAsNil() { if x.VsphereVolume != nil { x.VsphereVolume = nil } } else { if x.VsphereVolume == nil { x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } x.VsphereVolume.CodecDecodeSelf(d) } case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv367 := &x.AccessModes yym368 := z.DecBinary() _ = yym368 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv367), d) } } case "claimRef": if r.TryDecodeAsNil() { if x.ClaimRef != nil { x.ClaimRef = nil } } else { if x.ClaimRef == nil { x.ClaimRef = new(ObjectReference) } x.ClaimRef.CodecDecodeSelf(d) } case "persistentVolumeReclaimPolicy": if r.TryDecodeAsNil() { x.PersistentVolumeReclaimPolicy = "" } else { x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys351) } // end switch yys351 } // end for yyj351 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj371 int var yyb371 bool var yyhl371 bool = l >= 0 yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv372 := &x.Capacity yyv372.CodecDecodeSelf(d) } if x.PersistentVolumeSource.GCEPersistentDisk == nil { x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } if x.PersistentVolumeSource.AWSElasticBlockStore == nil { x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } if x.PersistentVolumeSource.HostPath == nil { x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource) } yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } if x.PersistentVolumeSource.Glusterfs == nil { x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource) } yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } if x.PersistentVolumeSource.NFS == nil { x.PersistentVolumeSource.NFS = new(NFSVolumeSource) } yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } if x.PersistentVolumeSource.RBD == nil { x.PersistentVolumeSource.RBD = new(RBDVolumeSource) } yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } if x.PersistentVolumeSource.ISCSI == nil { x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) } yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } if x.PersistentVolumeSource.FlexVolume == nil { x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource) } yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } if x.PersistentVolumeSource.Cinder == nil { x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) } yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } if x.PersistentVolumeSource.CephFS == nil { x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource) } yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } if x.PersistentVolumeSource.FC == nil { x.PersistentVolumeSource.FC = new(FCVolumeSource) } yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } if x.PersistentVolumeSource.Flocker == nil { x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource) } yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } if x.PersistentVolumeSource.AzureFile == nil { x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource) } yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AzureFile != nil { x.AzureFile = nil } } else { if x.AzureFile == nil { x.AzureFile = new(AzureFileVolumeSource) } x.AzureFile.CodecDecodeSelf(d) } if x.PersistentVolumeSource.VsphereVolume == nil { x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.VsphereVolume != nil { x.VsphereVolume = nil } } else { if x.VsphereVolume == nil { x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } x.VsphereVolume.CodecDecodeSelf(d) } yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv387 := &x.AccessModes yym388 := z.DecBinary() _ = yym388 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv387), d) } } yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ClaimRef != nil { x.ClaimRef = nil } } else { if x.ClaimRef == nil { x.ClaimRef = new(ObjectReference) } x.ClaimRef.CodecDecodeSelf(d) } yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PersistentVolumeReclaimPolicy = "" } else { x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) } for { yyj371++ if yyhl371 { yyb371 = yyj371 > l } else { yyb371 = r.CheckBreak() } if yyb371 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj371-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym391 := z.EncBinary() _ = yym391 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *PersistentVolumeReclaimPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym392 := z.DecBinary() _ = yym392 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym393 := z.EncBinary() _ = yym393 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep394 := !z.EncBinary() yy2arr394 := z.EncBasicHandle().StructToArray var yyq394 [3]bool _, _, _ = yysep394, yyq394, yy2arr394 const yyr394 bool = false yyq394[0] = x.Phase != "" yyq394[1] = x.Message != "" yyq394[2] = x.Reason != "" var yynn394 int if yyr394 || yy2arr394 { r.EncodeArrayStart(3) } else { yynn394 = 0 for _, b := range yyq394 { if b { yynn394++ } } r.EncodeMapStart(yynn394) yynn394 = 0 } if yyr394 || yy2arr394 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq394[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq394[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr394 || yy2arr394 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq394[1] { yym397 := z.EncBinary() _ = yym397 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq394[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym398 := z.EncBinary() _ = yym398 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr394 || yy2arr394 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq394[2] { yym400 := z.EncBinary() _ = yym400 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq394[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym401 := z.EncBinary() _ = yym401 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr394 || yy2arr394 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolumeStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym402 := z.DecBinary() _ = yym402 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct403 := r.ContainerType() if yyct403 == codecSelferValueTypeMap1234 { yyl403 := r.ReadMapStart() if yyl403 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl403, d) } } else if yyct403 == codecSelferValueTypeArray1234 { yyl403 := r.ReadArrayStart() if yyl403 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl403, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys404Slc = z.DecScratchBuffer() // default slice to decode into _ = yys404Slc var yyhl404 bool = l >= 0 for yyj404 := 0; ; yyj404++ { if yyhl404 { if yyj404 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys404Slc = r.DecodeBytes(yys404Slc, true, true) yys404 := string(yys404Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys404 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumePhase(r.DecodeString()) } case "message": if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } case "reason": if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys404) } // end switch yys404 } // end for yyj404 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj408 int var yyb408 bool var yyhl408 bool = l >= 0 yyj408++ if yyhl408 { yyb408 = yyj408 > l } else { yyb408 = r.CheckBreak() } if yyb408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumePhase(r.DecodeString()) } yyj408++ if yyhl408 { yyb408 = yyj408 > l } else { yyb408 = r.CheckBreak() } if yyb408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj408++ if yyhl408 { yyb408 = yyj408 > l } else { yyb408 = r.CheckBreak() } if yyb408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } for { yyj408++ if yyhl408 { yyb408 = yyj408 > l } else { yyb408 = r.CheckBreak() } if yyb408 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj408-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym412 := z.EncBinary() _ = yym412 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep413 := !z.EncBinary() yy2arr413 := z.EncBasicHandle().StructToArray var yyq413 [4]bool _, _, _ = yysep413, yyq413, yy2arr413 const yyr413 bool = false yyq413[0] = x.Kind != "" yyq413[1] = x.APIVersion != "" yyq413[2] = true var yynn413 int if yyr413 || yy2arr413 { r.EncodeArrayStart(4) } else { yynn413 = 1 for _, b := range yyq413 { if b { yynn413++ } } r.EncodeMapStart(yynn413) yynn413 = 0 } if yyr413 || yy2arr413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq413[0] { yym415 := z.EncBinary() _ = yym415 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq413[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym416 := z.EncBinary() _ = yym416 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr413 || yy2arr413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq413[1] { yym418 := z.EncBinary() _ = yym418 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq413[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym419 := z.EncBinary() _ = yym419 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr413 || yy2arr413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq413[2] { yy421 := &x.ListMeta yym422 := z.EncBinary() _ = yym422 if false { } else if z.HasExtensions() && z.EncExt(yy421) { } else { z.EncFallback(yy421) } } else { r.EncodeNil() } } else { if yyq413[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy423 := &x.ListMeta yym424 := z.EncBinary() _ = yym424 if false { } else if z.HasExtensions() && z.EncExt(yy423) { } else { z.EncFallback(yy423) } } } if yyr413 || yy2arr413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym426 := z.EncBinary() _ = yym426 if false { } else { h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym427 := z.EncBinary() _ = yym427 if false { } else { h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) } } } if yyr413 || yy2arr413 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolumeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym428 := z.DecBinary() _ = yym428 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct429 := r.ContainerType() if yyct429 == codecSelferValueTypeMap1234 { yyl429 := r.ReadMapStart() if yyl429 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl429, d) } } else if yyct429 == codecSelferValueTypeArray1234 { yyl429 := r.ReadArrayStart() if yyl429 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl429, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys430Slc = z.DecScratchBuffer() // default slice to decode into _ = yys430Slc var yyhl430 bool = l >= 0 for yyj430 := 0; ; yyj430++ { if yyhl430 { if yyj430 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys430Slc = r.DecodeBytes(yys430Slc, true, true) yys430 := string(yys430Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys430 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv433 := &x.ListMeta yym434 := z.DecBinary() _ = yym434 if false { } else if z.HasExtensions() && z.DecExt(yyv433) { } else { z.DecFallback(yyv433, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv435 := &x.Items yym436 := z.DecBinary() _ = yym436 if false { } else { h.decSlicePersistentVolume((*[]PersistentVolume)(yyv435), d) } } default: z.DecStructFieldNotFound(-1, yys430) } // end switch yys430 } // end for yyj430 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj437 int var yyb437 bool var yyhl437 bool = l >= 0 yyj437++ if yyhl437 { yyb437 = yyj437 > l } else { yyb437 = r.CheckBreak() } if yyb437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj437++ if yyhl437 { yyb437 = yyj437 > l } else { yyb437 = r.CheckBreak() } if yyb437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj437++ if yyhl437 { yyb437 = yyj437 > l } else { yyb437 = r.CheckBreak() } if yyb437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv440 := &x.ListMeta yym441 := z.DecBinary() _ = yym441 if false { } else if z.HasExtensions() && z.DecExt(yyv440) { } else { z.DecFallback(yyv440, false) } } yyj437++ if yyhl437 { yyb437 = yyj437 > l } else { yyb437 = r.CheckBreak() } if yyb437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv442 := &x.Items yym443 := z.DecBinary() _ = yym443 if false { } else { h.decSlicePersistentVolume((*[]PersistentVolume)(yyv442), d) } } for { yyj437++ if yyhl437 { yyb437 = yyj437 > l } else { yyb437 = r.CheckBreak() } if yyb437 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj437-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym444 := z.EncBinary() _ = yym444 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep445 := !z.EncBinary() yy2arr445 := z.EncBasicHandle().StructToArray var yyq445 [5]bool _, _, _ = yysep445, yyq445, yy2arr445 const yyr445 bool = false yyq445[0] = x.Kind != "" yyq445[1] = x.APIVersion != "" yyq445[2] = true yyq445[3] = true yyq445[4] = true var yynn445 int if yyr445 || yy2arr445 { r.EncodeArrayStart(5) } else { yynn445 = 0 for _, b := range yyq445 { if b { yynn445++ } } r.EncodeMapStart(yynn445) yynn445 = 0 } if yyr445 || yy2arr445 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq445[0] { yym447 := z.EncBinary() _ = yym447 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq445[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym448 := z.EncBinary() _ = yym448 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr445 || yy2arr445 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq445[1] { yym450 := z.EncBinary() _ = yym450 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq445[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym451 := z.EncBinary() _ = yym451 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr445 || yy2arr445 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq445[2] { yy453 := &x.ObjectMeta yy453.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq445[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy454 := &x.ObjectMeta yy454.CodecEncodeSelf(e) } } if yyr445 || yy2arr445 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq445[3] { yy456 := &x.Spec yy456.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq445[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy457 := &x.Spec yy457.CodecEncodeSelf(e) } } if yyr445 || yy2arr445 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq445[4] { yy459 := &x.Status yy459.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq445[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy460 := &x.Status yy460.CodecEncodeSelf(e) } } if yyr445 || yy2arr445 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolumeClaim) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym461 := z.DecBinary() _ = yym461 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct462 := r.ContainerType() if yyct462 == codecSelferValueTypeMap1234 { yyl462 := r.ReadMapStart() if yyl462 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl462, d) } } else if yyct462 == codecSelferValueTypeArray1234 { yyl462 := r.ReadArrayStart() if yyl462 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl462, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys463Slc = z.DecScratchBuffer() // default slice to decode into _ = yys463Slc var yyhl463 bool = l >= 0 for yyj463 := 0; ; yyj463++ { if yyhl463 { if yyj463 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys463Slc = r.DecodeBytes(yys463Slc, true, true) yys463 := string(yys463Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys463 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv466 := &x.ObjectMeta yyv466.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PersistentVolumeClaimSpec{} } else { yyv467 := &x.Spec yyv467.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PersistentVolumeClaimStatus{} } else { yyv468 := &x.Status yyv468.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys463) } // end switch yys463 } // end for yyj463 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj469 int var yyb469 bool var yyhl469 bool = l >= 0 yyj469++ if yyhl469 { yyb469 = yyj469 > l } else { yyb469 = r.CheckBreak() } if yyb469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj469++ if yyhl469 { yyb469 = yyj469 > l } else { yyb469 = r.CheckBreak() } if yyb469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj469++ if yyhl469 { yyb469 = yyj469 > l } else { yyb469 = r.CheckBreak() } if yyb469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv472 := &x.ObjectMeta yyv472.CodecDecodeSelf(d) } yyj469++ if yyhl469 { yyb469 = yyj469 > l } else { yyb469 = r.CheckBreak() } if yyb469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PersistentVolumeClaimSpec{} } else { yyv473 := &x.Spec yyv473.CodecDecodeSelf(d) } yyj469++ if yyhl469 { yyb469 = yyj469 > l } else { yyb469 = r.CheckBreak() } if yyb469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PersistentVolumeClaimStatus{} } else { yyv474 := &x.Status yyv474.CodecDecodeSelf(d) } for { yyj469++ if yyhl469 { yyb469 = yyj469 > l } else { yyb469 = r.CheckBreak() } if yyb469 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj469-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym475 := z.EncBinary() _ = yym475 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep476 := !z.EncBinary() yy2arr476 := z.EncBasicHandle().StructToArray var yyq476 [4]bool _, _, _ = yysep476, yyq476, yy2arr476 const yyr476 bool = false yyq476[0] = x.Kind != "" yyq476[1] = x.APIVersion != "" yyq476[2] = true var yynn476 int if yyr476 || yy2arr476 { r.EncodeArrayStart(4) } else { yynn476 = 1 for _, b := range yyq476 { if b { yynn476++ } } r.EncodeMapStart(yynn476) yynn476 = 0 } if yyr476 || yy2arr476 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq476[0] { yym478 := z.EncBinary() _ = yym478 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq476[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym479 := z.EncBinary() _ = yym479 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr476 || yy2arr476 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq476[1] { yym481 := z.EncBinary() _ = yym481 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq476[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym482 := z.EncBinary() _ = yym482 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr476 || yy2arr476 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq476[2] { yy484 := &x.ListMeta yym485 := z.EncBinary() _ = yym485 if false { } else if z.HasExtensions() && z.EncExt(yy484) { } else { z.EncFallback(yy484) } } else { r.EncodeNil() } } else { if yyq476[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy486 := &x.ListMeta yym487 := z.EncBinary() _ = yym487 if false { } else if z.HasExtensions() && z.EncExt(yy486) { } else { z.EncFallback(yy486) } } } if yyr476 || yy2arr476 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym489 := z.EncBinary() _ = yym489 if false { } else { h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym490 := z.EncBinary() _ = yym490 if false { } else { h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) } } } if yyr476 || yy2arr476 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolumeClaimList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym491 := z.DecBinary() _ = yym491 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct492 := r.ContainerType() if yyct492 == codecSelferValueTypeMap1234 { yyl492 := r.ReadMapStart() if yyl492 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl492, d) } } else if yyct492 == codecSelferValueTypeArray1234 { yyl492 := r.ReadArrayStart() if yyl492 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl492, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys493Slc = z.DecScratchBuffer() // default slice to decode into _ = yys493Slc var yyhl493 bool = l >= 0 for yyj493 := 0; ; yyj493++ { if yyhl493 { if yyj493 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys493Slc = r.DecodeBytes(yys493Slc, true, true) yys493 := string(yys493Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys493 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv496 := &x.ListMeta yym497 := z.DecBinary() _ = yym497 if false { } else if z.HasExtensions() && z.DecExt(yyv496) { } else { z.DecFallback(yyv496, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv498 := &x.Items yym499 := z.DecBinary() _ = yym499 if false { } else { h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv498), d) } } default: z.DecStructFieldNotFound(-1, yys493) } // end switch yys493 } // end for yyj493 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj500 int var yyb500 bool var yyhl500 bool = l >= 0 yyj500++ if yyhl500 { yyb500 = yyj500 > l } else { yyb500 = r.CheckBreak() } if yyb500 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj500++ if yyhl500 { yyb500 = yyj500 > l } else { yyb500 = r.CheckBreak() } if yyb500 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj500++ if yyhl500 { yyb500 = yyj500 > l } else { yyb500 = r.CheckBreak() } if yyb500 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv503 := &x.ListMeta yym504 := z.DecBinary() _ = yym504 if false { } else if z.HasExtensions() && z.DecExt(yyv503) { } else { z.DecFallback(yyv503, false) } } yyj500++ if yyhl500 { yyb500 = yyj500 > l } else { yyb500 = r.CheckBreak() } if yyb500 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv505 := &x.Items yym506 := z.DecBinary() _ = yym506 if false { } else { h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv505), d) } } for { yyj500++ if yyhl500 { yyb500 = yyj500 > l } else { yyb500 = r.CheckBreak() } if yyb500 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj500-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym507 := z.EncBinary() _ = yym507 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep508 := !z.EncBinary() yy2arr508 := z.EncBasicHandle().StructToArray var yyq508 [4]bool _, _, _ = yysep508, yyq508, yy2arr508 const yyr508 bool = false yyq508[0] = len(x.AccessModes) != 0 yyq508[1] = x.Selector != nil yyq508[2] = true yyq508[3] = x.VolumeName != "" var yynn508 int if yyr508 || yy2arr508 { r.EncodeArrayStart(4) } else { yynn508 = 0 for _, b := range yyq508 { if b { yynn508++ } } r.EncodeMapStart(yynn508) yynn508 = 0 } if yyr508 || yy2arr508 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq508[0] { if x.AccessModes == nil { r.EncodeNil() } else { yym510 := z.EncBinary() _ = yym510 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } else { r.EncodeNil() } } else { if yyq508[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { yym511 := z.EncBinary() _ = yym511 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } } if yyr508 || yy2arr508 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq508[1] { if x.Selector == nil { r.EncodeNil() } else { yym513 := z.EncBinary() _ = yym513 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { z.EncFallback(x.Selector) } } } else { r.EncodeNil() } } else { if yyq508[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { yym514 := z.EncBinary() _ = yym514 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { z.EncFallback(x.Selector) } } } } if yyr508 || yy2arr508 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq508[2] { yy516 := &x.Resources yy516.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq508[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy517 := &x.Resources yy517.CodecEncodeSelf(e) } } if yyr508 || yy2arr508 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq508[3] { yym519 := z.EncBinary() _ = yym519 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq508[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym520 := z.EncBinary() _ = yym520 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) } } } if yyr508 || yy2arr508 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolumeClaimSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym521 := z.DecBinary() _ = yym521 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct522 := r.ContainerType() if yyct522 == codecSelferValueTypeMap1234 { yyl522 := r.ReadMapStart() if yyl522 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl522, d) } } else if yyct522 == codecSelferValueTypeArray1234 { yyl522 := r.ReadArrayStart() if yyl522 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl522, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys523Slc = z.DecScratchBuffer() // default slice to decode into _ = yys523Slc var yyhl523 bool = l >= 0 for yyj523 := 0; ; yyj523++ { if yyhl523 { if yyj523 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys523Slc = r.DecodeBytes(yys523Slc, true, true) yys523 := string(yys523Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys523 { case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv524 := &x.AccessModes yym525 := z.DecBinary() _ = yym525 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv524), d) } } case "selector": if r.TryDecodeAsNil() { if x.Selector != nil { x.Selector = nil } } else { if x.Selector == nil { x.Selector = new(pkg2_unversioned.LabelSelector) } yym527 := z.DecBinary() _ = yym527 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv528 := &x.Resources yyv528.CodecDecodeSelf(d) } case "volumeName": if r.TryDecodeAsNil() { x.VolumeName = "" } else { x.VolumeName = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys523) } // end switch yys523 } // end for yyj523 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj530 int var yyb530 bool var yyhl530 bool = l >= 0 yyj530++ if yyhl530 { yyb530 = yyj530 > l } else { yyb530 = r.CheckBreak() } if yyb530 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv531 := &x.AccessModes yym532 := z.DecBinary() _ = yym532 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv531), d) } } yyj530++ if yyhl530 { yyb530 = yyj530 > l } else { yyb530 = r.CheckBreak() } if yyb530 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Selector != nil { x.Selector = nil } } else { if x.Selector == nil { x.Selector = new(pkg2_unversioned.LabelSelector) } yym534 := z.DecBinary() _ = yym534 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } yyj530++ if yyhl530 { yyb530 = yyj530 > l } else { yyb530 = r.CheckBreak() } if yyb530 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv535 := &x.Resources yyv535.CodecDecodeSelf(d) } yyj530++ if yyhl530 { yyb530 = yyj530 > l } else { yyb530 = r.CheckBreak() } if yyb530 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeName = "" } else { x.VolumeName = string(r.DecodeString()) } for { yyj530++ if yyhl530 { yyb530 = yyj530 > l } else { yyb530 = r.CheckBreak() } if yyb530 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj530-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym537 := z.EncBinary() _ = yym537 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep538 := !z.EncBinary() yy2arr538 := z.EncBasicHandle().StructToArray var yyq538 [3]bool _, _, _ = yysep538, yyq538, yy2arr538 const yyr538 bool = false yyq538[0] = x.Phase != "" yyq538[1] = len(x.AccessModes) != 0 yyq538[2] = len(x.Capacity) != 0 var yynn538 int if yyr538 || yy2arr538 { r.EncodeArrayStart(3) } else { yynn538 = 0 for _, b := range yyq538 { if b { yynn538++ } } r.EncodeMapStart(yynn538) yynn538 = 0 } if yyr538 || yy2arr538 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq538[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq538[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr538 || yy2arr538 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq538[1] { if x.AccessModes == nil { r.EncodeNil() } else { yym541 := z.EncBinary() _ = yym541 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } else { r.EncodeNil() } } else { if yyq538[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { yym542 := z.EncBinary() _ = yym542 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } } if yyr538 || yy2arr538 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq538[2] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq538[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } } if yyr538 || yy2arr538 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolumeClaimStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym544 := z.DecBinary() _ = yym544 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct545 := r.ContainerType() if yyct545 == codecSelferValueTypeMap1234 { yyl545 := r.ReadMapStart() if yyl545 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl545, d) } } else if yyct545 == codecSelferValueTypeArray1234 { yyl545 := r.ReadArrayStart() if yyl545 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl545, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys546Slc = z.DecScratchBuffer() // default slice to decode into _ = yys546Slc var yyhl546 bool = l >= 0 for yyj546 := 0; ; yyj546++ { if yyhl546 { if yyj546 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys546Slc = r.DecodeBytes(yys546Slc, true, true) yys546 := string(yys546Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys546 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) } case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv548 := &x.AccessModes yym549 := z.DecBinary() _ = yym549 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv548), d) } } case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv550 := &x.Capacity yyv550.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys546) } // end switch yys546 } // end for yyj546 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj551 int var yyb551 bool var yyhl551 bool = l >= 0 yyj551++ if yyhl551 { yyb551 = yyj551 > l } else { yyb551 = r.CheckBreak() } if yyb551 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) } yyj551++ if yyhl551 { yyb551 = yyj551 > l } else { yyb551 = r.CheckBreak() } if yyb551 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv553 := &x.AccessModes yym554 := z.DecBinary() _ = yym554 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv553), d) } } yyj551++ if yyhl551 { yyb551 = yyj551 > l } else { yyb551 = r.CheckBreak() } if yyb551 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv555 := &x.Capacity yyv555.CodecDecodeSelf(d) } for { yyj551++ if yyhl551 { yyb551 = yyj551 > l } else { yyb551 = r.CheckBreak() } if yyb551 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj551-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym556 := z.EncBinary() _ = yym556 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *PersistentVolumeAccessMode) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym557 := z.DecBinary() _ = yym557 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x PersistentVolumePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym558 := z.EncBinary() _ = yym558 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *PersistentVolumePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym559 := z.DecBinary() _ = yym559 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x PersistentVolumeClaimPhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym560 := z.EncBinary() _ = yym560 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *PersistentVolumeClaimPhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym561 := z.DecBinary() _ = yym561 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *HostPathVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym562 := z.EncBinary() _ = yym562 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep563 := !z.EncBinary() yy2arr563 := z.EncBasicHandle().StructToArray var yyq563 [1]bool _, _, _ = yysep563, yyq563, yy2arr563 const yyr563 bool = false var yynn563 int if yyr563 || yy2arr563 { r.EncodeArrayStart(1) } else { yynn563 = 1 for _, b := range yyq563 { if b { yynn563++ } } r.EncodeMapStart(yynn563) yynn563 = 0 } if yyr563 || yy2arr563 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym565 := z.EncBinary() _ = yym565 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym566 := z.EncBinary() _ = yym566 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr563 || yy2arr563 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *HostPathVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym567 := z.DecBinary() _ = yym567 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct568 := r.ContainerType() if yyct568 == codecSelferValueTypeMap1234 { yyl568 := r.ReadMapStart() if yyl568 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl568, d) } } else if yyct568 == codecSelferValueTypeArray1234 { yyl568 := r.ReadArrayStart() if yyl568 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl568, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys569Slc = z.DecScratchBuffer() // default slice to decode into _ = yys569Slc var yyhl569 bool = l >= 0 for yyj569 := 0; ; yyj569++ { if yyhl569 { if yyj569 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys569Slc = r.DecodeBytes(yys569Slc, true, true) yys569 := string(yys569Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys569 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys569) } // end switch yys569 } // end for yyj569 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *HostPathVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj571 int var yyb571 bool var yyhl571 bool = l >= 0 yyj571++ if yyhl571 { yyb571 = yyj571 > l } else { yyb571 = r.CheckBreak() } if yyb571 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj571++ if yyhl571 { yyb571 = yyj571 > l } else { yyb571 = r.CheckBreak() } if yyb571 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj571-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EmptyDirVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym573 := z.EncBinary() _ = yym573 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep574 := !z.EncBinary() yy2arr574 := z.EncBasicHandle().StructToArray var yyq574 [1]bool _, _, _ = yysep574, yyq574, yy2arr574 const yyr574 bool = false yyq574[0] = x.Medium != "" var yynn574 int if yyr574 || yy2arr574 { r.EncodeArrayStart(1) } else { yynn574 = 0 for _, b := range yyq574 { if b { yynn574++ } } r.EncodeMapStart(yynn574) yynn574 = 0 } if yyr574 || yy2arr574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq574[0] { x.Medium.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq574[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("medium")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Medium.CodecEncodeSelf(e) } } if yyr574 || yy2arr574 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *EmptyDirVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym576 := z.DecBinary() _ = yym576 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct577 := r.ContainerType() if yyct577 == codecSelferValueTypeMap1234 { yyl577 := r.ReadMapStart() if yyl577 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl577, d) } } else if yyct577 == codecSelferValueTypeArray1234 { yyl577 := r.ReadArrayStart() if yyl577 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl577, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys578Slc = z.DecScratchBuffer() // default slice to decode into _ = yys578Slc var yyhl578 bool = l >= 0 for yyj578 := 0; ; yyj578++ { if yyhl578 { if yyj578 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys578Slc = r.DecodeBytes(yys578Slc, true, true) yys578 := string(yys578Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys578 { case "medium": if r.TryDecodeAsNil() { x.Medium = "" } else { x.Medium = StorageMedium(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys578) } // end switch yys578 } // end for yyj578 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj580 int var yyb580 bool var yyhl580 bool = l >= 0 yyj580++ if yyhl580 { yyb580 = yyj580 > l } else { yyb580 = r.CheckBreak() } if yyb580 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Medium = "" } else { x.Medium = StorageMedium(r.DecodeString()) } for { yyj580++ if yyhl580 { yyb580 = yyj580 > l } else { yyb580 = r.CheckBreak() } if yyb580 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj580-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym582 := z.EncBinary() _ = yym582 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *StorageMedium) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym583 := z.DecBinary() _ = yym583 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x Protocol) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym584 := z.EncBinary() _ = yym584 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *Protocol) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym585 := z.DecBinary() _ = yym585 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym586 := z.EncBinary() _ = yym586 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep587 := !z.EncBinary() yy2arr587 := z.EncBasicHandle().StructToArray var yyq587 [4]bool _, _, _ = yysep587, yyq587, yy2arr587 const yyr587 bool = false yyq587[1] = x.FSType != "" yyq587[2] = x.Partition != 0 yyq587[3] = x.ReadOnly != false var yynn587 int if yyr587 || yy2arr587 { r.EncodeArrayStart(4) } else { yynn587 = 1 for _, b := range yyq587 { if b { yynn587++ } } r.EncodeMapStart(yynn587) yynn587 = 0 } if yyr587 || yy2arr587 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym589 := z.EncBinary() _ = yym589 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pdName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym590 := z.EncBinary() _ = yym590 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) } } if yyr587 || yy2arr587 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq587[1] { yym592 := z.EncBinary() _ = yym592 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq587[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym593 := z.EncBinary() _ = yym593 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr587 || yy2arr587 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq587[2] { yym595 := z.EncBinary() _ = yym595 if false { } else { r.EncodeInt(int64(x.Partition)) } } else { r.EncodeInt(0) } } else { if yyq587[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym596 := z.EncBinary() _ = yym596 if false { } else { r.EncodeInt(int64(x.Partition)) } } } if yyr587 || yy2arr587 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq587[3] { yym598 := z.EncBinary() _ = yym598 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq587[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym599 := z.EncBinary() _ = yym599 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr587 || yy2arr587 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *GCEPersistentDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym600 := z.DecBinary() _ = yym600 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct601 := r.ContainerType() if yyct601 == codecSelferValueTypeMap1234 { yyl601 := r.ReadMapStart() if yyl601 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl601, d) } } else if yyct601 == codecSelferValueTypeArray1234 { yyl601 := r.ReadArrayStart() if yyl601 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl601, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys602Slc = z.DecScratchBuffer() // default slice to decode into _ = yys602Slc var yyhl602 bool = l >= 0 for yyj602 := 0; ; yyj602++ { if yyhl602 { if yyj602 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys602Slc = r.DecodeBytes(yys602Slc, true, true) yys602 := string(yys602Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys602 { case "pdName": if r.TryDecodeAsNil() { x.PDName = "" } else { x.PDName = string(r.DecodeString()) } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } case "partition": if r.TryDecodeAsNil() { x.Partition = 0 } else { x.Partition = int32(r.DecodeInt(32)) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys602) } // end switch yys602 } // end for yyj602 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj607 int var yyb607 bool var yyhl607 bool = l >= 0 yyj607++ if yyhl607 { yyb607 = yyj607 > l } else { yyb607 = r.CheckBreak() } if yyb607 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PDName = "" } else { x.PDName = string(r.DecodeString()) } yyj607++ if yyhl607 { yyb607 = yyj607 > l } else { yyb607 = r.CheckBreak() } if yyb607 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj607++ if yyhl607 { yyb607 = yyj607 > l } else { yyb607 = r.CheckBreak() } if yyb607 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Partition = 0 } else { x.Partition = int32(r.DecodeInt(32)) } yyj607++ if yyhl607 { yyb607 = yyj607 > l } else { yyb607 = r.CheckBreak() } if yyb607 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj607++ if yyhl607 { yyb607 = yyj607 > l } else { yyb607 = r.CheckBreak() } if yyb607 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj607-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym612 := z.EncBinary() _ = yym612 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep613 := !z.EncBinary() yy2arr613 := z.EncBasicHandle().StructToArray var yyq613 [6]bool _, _, _ = yysep613, yyq613, yy2arr613 const yyr613 bool = false yyq613[0] = x.TargetPortal != "" yyq613[1] = x.IQN != "" yyq613[2] = x.Lun != 0 yyq613[3] = x.ISCSIInterface != "" yyq613[4] = x.FSType != "" yyq613[5] = x.ReadOnly != false var yynn613 int if yyr613 || yy2arr613 { r.EncodeArrayStart(6) } else { yynn613 = 0 for _, b := range yyq613 { if b { yynn613++ } } r.EncodeMapStart(yynn613) yynn613 = 0 } if yyr613 || yy2arr613 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq613[0] { yym615 := z.EncBinary() _ = yym615 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq613[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPortal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym616 := z.EncBinary() _ = yym616 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) } } } if yyr613 || yy2arr613 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq613[1] { yym618 := z.EncBinary() _ = yym618 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq613[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iqn")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym619 := z.EncBinary() _ = yym619 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) } } } if yyr613 || yy2arr613 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq613[2] { yym621 := z.EncBinary() _ = yym621 if false { } else { r.EncodeInt(int64(x.Lun)) } } else { r.EncodeInt(0) } } else { if yyq613[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lun")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym622 := z.EncBinary() _ = yym622 if false { } else { r.EncodeInt(int64(x.Lun)) } } } if yyr613 || yy2arr613 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq613[3] { yym624 := z.EncBinary() _ = yym624 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq613[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym625 := z.EncBinary() _ = yym625 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) } } } if yyr613 || yy2arr613 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq613[4] { yym627 := z.EncBinary() _ = yym627 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq613[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym628 := z.EncBinary() _ = yym628 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr613 || yy2arr613 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq613[5] { yym630 := z.EncBinary() _ = yym630 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq613[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym631 := z.EncBinary() _ = yym631 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr613 || yy2arr613 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ISCSIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym632 := z.DecBinary() _ = yym632 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct633 := r.ContainerType() if yyct633 == codecSelferValueTypeMap1234 { yyl633 := r.ReadMapStart() if yyl633 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl633, d) } } else if yyct633 == codecSelferValueTypeArray1234 { yyl633 := r.ReadArrayStart() if yyl633 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl633, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys634Slc = z.DecScratchBuffer() // default slice to decode into _ = yys634Slc var yyhl634 bool = l >= 0 for yyj634 := 0; ; yyj634++ { if yyhl634 { if yyj634 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys634Slc = r.DecodeBytes(yys634Slc, true, true) yys634 := string(yys634Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys634 { case "targetPortal": if r.TryDecodeAsNil() { x.TargetPortal = "" } else { x.TargetPortal = string(r.DecodeString()) } case "iqn": if r.TryDecodeAsNil() { x.IQN = "" } else { x.IQN = string(r.DecodeString()) } case "lun": if r.TryDecodeAsNil() { x.Lun = 0 } else { x.Lun = int32(r.DecodeInt(32)) } case "iscsiInterface": if r.TryDecodeAsNil() { x.ISCSIInterface = "" } else { x.ISCSIInterface = string(r.DecodeString()) } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys634) } // end switch yys634 } // end for yyj634 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj641 int var yyb641 bool var yyhl641 bool = l >= 0 yyj641++ if yyhl641 { yyb641 = yyj641 > l } else { yyb641 = r.CheckBreak() } if yyb641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetPortal = "" } else { x.TargetPortal = string(r.DecodeString()) } yyj641++ if yyhl641 { yyb641 = yyj641 > l } else { yyb641 = r.CheckBreak() } if yyb641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IQN = "" } else { x.IQN = string(r.DecodeString()) } yyj641++ if yyhl641 { yyb641 = yyj641 > l } else { yyb641 = r.CheckBreak() } if yyb641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Lun = 0 } else { x.Lun = int32(r.DecodeInt(32)) } yyj641++ if yyhl641 { yyb641 = yyj641 > l } else { yyb641 = r.CheckBreak() } if yyb641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ISCSIInterface = "" } else { x.ISCSIInterface = string(r.DecodeString()) } yyj641++ if yyhl641 { yyb641 = yyj641 > l } else { yyb641 = r.CheckBreak() } if yyb641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj641++ if yyhl641 { yyb641 = yyj641 > l } else { yyb641 = r.CheckBreak() } if yyb641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj641++ if yyhl641 { yyb641 = yyj641 > l } else { yyb641 = r.CheckBreak() } if yyb641 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj641-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym648 := z.EncBinary() _ = yym648 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep649 := !z.EncBinary() yy2arr649 := z.EncBasicHandle().StructToArray var yyq649 [4]bool _, _, _ = yysep649, yyq649, yy2arr649 const yyr649 bool = false yyq649[2] = x.FSType != "" yyq649[3] = x.ReadOnly != false var yynn649 int if yyr649 || yy2arr649 { r.EncodeArrayStart(4) } else { yynn649 = 2 for _, b := range yyq649 { if b { yynn649++ } } r.EncodeMapStart(yynn649) yynn649 = 0 } if yyr649 || yy2arr649 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TargetWWNs == nil { r.EncodeNil() } else { yym651 := z.EncBinary() _ = yym651 if false { } else { z.F.EncSliceStringV(x.TargetWWNs, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetWWNs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TargetWWNs == nil { r.EncodeNil() } else { yym652 := z.EncBinary() _ = yym652 if false { } else { z.F.EncSliceStringV(x.TargetWWNs, false, e) } } } if yyr649 || yy2arr649 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Lun == nil { r.EncodeNil() } else { yy654 := *x.Lun yym655 := z.EncBinary() _ = yym655 if false { } else { r.EncodeInt(int64(yy654)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lun")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Lun == nil { r.EncodeNil() } else { yy656 := *x.Lun yym657 := z.EncBinary() _ = yym657 if false { } else { r.EncodeInt(int64(yy656)) } } } if yyr649 || yy2arr649 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq649[2] { yym659 := z.EncBinary() _ = yym659 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq649[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym660 := z.EncBinary() _ = yym660 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr649 || yy2arr649 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq649[3] { yym662 := z.EncBinary() _ = yym662 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq649[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym663 := z.EncBinary() _ = yym663 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr649 || yy2arr649 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *FCVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym664 := z.DecBinary() _ = yym664 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct665 := r.ContainerType() if yyct665 == codecSelferValueTypeMap1234 { yyl665 := r.ReadMapStart() if yyl665 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl665, d) } } else if yyct665 == codecSelferValueTypeArray1234 { yyl665 := r.ReadArrayStart() if yyl665 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl665, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys666Slc = z.DecScratchBuffer() // default slice to decode into _ = yys666Slc var yyhl666 bool = l >= 0 for yyj666 := 0; ; yyj666++ { if yyhl666 { if yyj666 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys666Slc = r.DecodeBytes(yys666Slc, true, true) yys666 := string(yys666Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys666 { case "targetWWNs": if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { yyv667 := &x.TargetWWNs yym668 := z.DecBinary() _ = yym668 if false { } else { z.F.DecSliceStringX(yyv667, false, d) } } case "lun": if r.TryDecodeAsNil() { if x.Lun != nil { x.Lun = nil } } else { if x.Lun == nil { x.Lun = new(int32) } yym670 := z.DecBinary() _ = yym670 if false { } else { *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) } } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys666) } // end switch yys666 } // end for yyj666 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj673 int var yyb673 bool var yyhl673 bool = l >= 0 yyj673++ if yyhl673 { yyb673 = yyj673 > l } else { yyb673 = r.CheckBreak() } if yyb673 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { yyv674 := &x.TargetWWNs yym675 := z.DecBinary() _ = yym675 if false { } else { z.F.DecSliceStringX(yyv674, false, d) } } yyj673++ if yyhl673 { yyb673 = yyj673 > l } else { yyb673 = r.CheckBreak() } if yyb673 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Lun != nil { x.Lun = nil } } else { if x.Lun == nil { x.Lun = new(int32) } yym677 := z.DecBinary() _ = yym677 if false { } else { *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) } } yyj673++ if yyhl673 { yyb673 = yyj673 > l } else { yyb673 = r.CheckBreak() } if yyb673 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj673++ if yyhl673 { yyb673 = yyj673 > l } else { yyb673 = r.CheckBreak() } if yyb673 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj673++ if yyhl673 { yyb673 = yyj673 > l } else { yyb673 = r.CheckBreak() } if yyb673 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj673-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym680 := z.EncBinary() _ = yym680 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep681 := !z.EncBinary() yy2arr681 := z.EncBasicHandle().StructToArray var yyq681 [5]bool _, _, _ = yysep681, yyq681, yy2arr681 const yyr681 bool = false yyq681[1] = x.FSType != "" yyq681[2] = x.SecretRef != nil yyq681[3] = x.ReadOnly != false yyq681[4] = len(x.Options) != 0 var yynn681 int if yyr681 || yy2arr681 { r.EncodeArrayStart(5) } else { yynn681 = 1 for _, b := range yyq681 { if b { yynn681++ } } r.EncodeMapStart(yynn681) yynn681 = 0 } if yyr681 || yy2arr681 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym683 := z.EncBinary() _ = yym683 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("driver")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym684 := z.EncBinary() _ = yym684 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) } } if yyr681 || yy2arr681 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq681[1] { yym686 := z.EncBinary() _ = yym686 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq681[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym687 := z.EncBinary() _ = yym687 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr681 || yy2arr681 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq681[2] { if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq681[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } } if yyr681 || yy2arr681 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq681[3] { yym690 := z.EncBinary() _ = yym690 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq681[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym691 := z.EncBinary() _ = yym691 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr681 || yy2arr681 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq681[4] { if x.Options == nil { r.EncodeNil() } else { yym693 := z.EncBinary() _ = yym693 if false { } else { z.F.EncMapStringStringV(x.Options, false, e) } } } else { r.EncodeNil() } } else { if yyq681[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("options")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Options == nil { r.EncodeNil() } else { yym694 := z.EncBinary() _ = yym694 if false { } else { z.F.EncMapStringStringV(x.Options, false, e) } } } } if yyr681 || yy2arr681 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *FlexVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym695 := z.DecBinary() _ = yym695 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct696 := r.ContainerType() if yyct696 == codecSelferValueTypeMap1234 { yyl696 := r.ReadMapStart() if yyl696 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl696, d) } } else if yyct696 == codecSelferValueTypeArray1234 { yyl696 := r.ReadArrayStart() if yyl696 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl696, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys697Slc = z.DecScratchBuffer() // default slice to decode into _ = yys697Slc var yyhl697 bool = l >= 0 for yyj697 := 0; ; yyj697++ { if yyhl697 { if yyj697 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys697Slc = r.DecodeBytes(yys697Slc, true, true) yys697 := string(yys697Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys697 { case "driver": if r.TryDecodeAsNil() { x.Driver = "" } else { x.Driver = string(r.DecodeString()) } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } case "secretRef": if r.TryDecodeAsNil() { if x.SecretRef != nil { x.SecretRef = nil } } else { if x.SecretRef == nil { x.SecretRef = new(LocalObjectReference) } x.SecretRef.CodecDecodeSelf(d) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } case "options": if r.TryDecodeAsNil() { x.Options = nil } else { yyv702 := &x.Options yym703 := z.DecBinary() _ = yym703 if false { } else { z.F.DecMapStringStringX(yyv702, false, d) } } default: z.DecStructFieldNotFound(-1, yys697) } // end switch yys697 } // end for yyj697 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj704 int var yyb704 bool var yyhl704 bool = l >= 0 yyj704++ if yyhl704 { yyb704 = yyj704 > l } else { yyb704 = r.CheckBreak() } if yyb704 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Driver = "" } else { x.Driver = string(r.DecodeString()) } yyj704++ if yyhl704 { yyb704 = yyj704 > l } else { yyb704 = r.CheckBreak() } if yyb704 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj704++ if yyhl704 { yyb704 = yyj704 > l } else { yyb704 = r.CheckBreak() } if yyb704 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SecretRef != nil { x.SecretRef = nil } } else { if x.SecretRef == nil { x.SecretRef = new(LocalObjectReference) } x.SecretRef.CodecDecodeSelf(d) } yyj704++ if yyhl704 { yyb704 = yyj704 > l } else { yyb704 = r.CheckBreak() } if yyb704 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } yyj704++ if yyhl704 { yyb704 = yyj704 > l } else { yyb704 = r.CheckBreak() } if yyb704 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Options = nil } else { yyv709 := &x.Options yym710 := z.DecBinary() _ = yym710 if false { } else { z.F.DecMapStringStringX(yyv709, false, d) } } for { yyj704++ if yyhl704 { yyb704 = yyj704 > l } else { yyb704 = r.CheckBreak() } if yyb704 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj704-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym711 := z.EncBinary() _ = yym711 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep712 := !z.EncBinary() yy2arr712 := z.EncBasicHandle().StructToArray var yyq712 [4]bool _, _, _ = yysep712, yyq712, yy2arr712 const yyr712 bool = false yyq712[1] = x.FSType != "" yyq712[2] = x.Partition != 0 yyq712[3] = x.ReadOnly != false var yynn712 int if yyr712 || yy2arr712 { r.EncodeArrayStart(4) } else { yynn712 = 1 for _, b := range yyq712 { if b { yynn712++ } } r.EncodeMapStart(yynn712) yynn712 = 0 } if yyr712 || yy2arr712 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym714 := z.EncBinary() _ = yym714 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym715 := z.EncBinary() _ = yym715 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } if yyr712 || yy2arr712 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq712[1] { yym717 := z.EncBinary() _ = yym717 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq712[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym718 := z.EncBinary() _ = yym718 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr712 || yy2arr712 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq712[2] { yym720 := z.EncBinary() _ = yym720 if false { } else { r.EncodeInt(int64(x.Partition)) } } else { r.EncodeInt(0) } } else { if yyq712[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym721 := z.EncBinary() _ = yym721 if false { } else { r.EncodeInt(int64(x.Partition)) } } } if yyr712 || yy2arr712 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq712[3] { yym723 := z.EncBinary() _ = yym723 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq712[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym724 := z.EncBinary() _ = yym724 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr712 || yy2arr712 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *AWSElasticBlockStoreVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym725 := z.DecBinary() _ = yym725 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct726 := r.ContainerType() if yyct726 == codecSelferValueTypeMap1234 { yyl726 := r.ReadMapStart() if yyl726 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl726, d) } } else if yyct726 == codecSelferValueTypeArray1234 { yyl726 := r.ReadArrayStart() if yyl726 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl726, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys727Slc = z.DecScratchBuffer() // default slice to decode into _ = yys727Slc var yyhl727 bool = l >= 0 for yyj727 := 0; ; yyj727++ { if yyhl727 { if yyj727 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys727Slc = r.DecodeBytes(yys727Slc, true, true) yys727 := string(yys727Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys727 { case "volumeID": if r.TryDecodeAsNil() { x.VolumeID = "" } else { x.VolumeID = string(r.DecodeString()) } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } case "partition": if r.TryDecodeAsNil() { x.Partition = 0 } else { x.Partition = int32(r.DecodeInt(32)) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys727) } // end switch yys727 } // end for yyj727 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj732 int var yyb732 bool var yyhl732 bool = l >= 0 yyj732++ if yyhl732 { yyb732 = yyj732 > l } else { yyb732 = r.CheckBreak() } if yyb732 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeID = "" } else { x.VolumeID = string(r.DecodeString()) } yyj732++ if yyhl732 { yyb732 = yyj732 > l } else { yyb732 = r.CheckBreak() } if yyb732 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj732++ if yyhl732 { yyb732 = yyj732 > l } else { yyb732 = r.CheckBreak() } if yyb732 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Partition = 0 } else { x.Partition = int32(r.DecodeInt(32)) } yyj732++ if yyhl732 { yyb732 = yyj732 > l } else { yyb732 = r.CheckBreak() } if yyb732 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj732++ if yyhl732 { yyb732 = yyj732 > l } else { yyb732 = r.CheckBreak() } if yyb732 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj732-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym737 := z.EncBinary() _ = yym737 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep738 := !z.EncBinary() yy2arr738 := z.EncBasicHandle().StructToArray var yyq738 [3]bool _, _, _ = yysep738, yyq738, yy2arr738 const yyr738 bool = false yyq738[1] = x.Revision != "" yyq738[2] = x.Directory != "" var yynn738 int if yyr738 || yy2arr738 { r.EncodeArrayStart(3) } else { yynn738 = 1 for _, b := range yyq738 { if b { yynn738++ } } r.EncodeMapStart(yynn738) yynn738 = 0 } if yyr738 || yy2arr738 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym740 := z.EncBinary() _ = yym740 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("repository")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym741 := z.EncBinary() _ = yym741 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) } } if yyr738 || yy2arr738 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq738[1] { yym743 := z.EncBinary() _ = yym743 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq738[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("revision")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym744 := z.EncBinary() _ = yym744 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) } } } if yyr738 || yy2arr738 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq738[2] { yym746 := z.EncBinary() _ = yym746 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq738[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("directory")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym747 := z.EncBinary() _ = yym747 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) } } } if yyr738 || yy2arr738 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *GitRepoVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym748 := z.DecBinary() _ = yym748 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct749 := r.ContainerType() if yyct749 == codecSelferValueTypeMap1234 { yyl749 := r.ReadMapStart() if yyl749 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl749, d) } } else if yyct749 == codecSelferValueTypeArray1234 { yyl749 := r.ReadArrayStart() if yyl749 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl749, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *GitRepoVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys750Slc = z.DecScratchBuffer() // default slice to decode into _ = yys750Slc var yyhl750 bool = l >= 0 for yyj750 := 0; ; yyj750++ { if yyhl750 { if yyj750 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys750Slc = r.DecodeBytes(yys750Slc, true, true) yys750 := string(yys750Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys750 { case "repository": if r.TryDecodeAsNil() { x.Repository = "" } else { x.Repository = string(r.DecodeString()) } case "revision": if r.TryDecodeAsNil() { x.Revision = "" } else { x.Revision = string(r.DecodeString()) } case "directory": if r.TryDecodeAsNil() { x.Directory = "" } else { x.Directory = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys750) } // end switch yys750 } // end for yyj750 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj754 int var yyb754 bool var yyhl754 bool = l >= 0 yyj754++ if yyhl754 { yyb754 = yyj754 > l } else { yyb754 = r.CheckBreak() } if yyb754 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Repository = "" } else { x.Repository = string(r.DecodeString()) } yyj754++ if yyhl754 { yyb754 = yyj754 > l } else { yyb754 = r.CheckBreak() } if yyb754 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Revision = "" } else { x.Revision = string(r.DecodeString()) } yyj754++ if yyhl754 { yyb754 = yyj754 > l } else { yyb754 = r.CheckBreak() } if yyb754 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Directory = "" } else { x.Directory = string(r.DecodeString()) } for { yyj754++ if yyhl754 { yyb754 = yyj754 > l } else { yyb754 = r.CheckBreak() } if yyb754 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj754-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym758 := z.EncBinary() _ = yym758 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep759 := !z.EncBinary() yy2arr759 := z.EncBasicHandle().StructToArray var yyq759 [3]bool _, _, _ = yysep759, yyq759, yy2arr759 const yyr759 bool = false yyq759[0] = x.SecretName != "" yyq759[1] = len(x.Items) != 0 yyq759[2] = x.DefaultMode != nil var yynn759 int if yyr759 || yy2arr759 { r.EncodeArrayStart(3) } else { yynn759 = 0 for _, b := range yyq759 { if b { yynn759++ } } r.EncodeMapStart(yynn759) yynn759 = 0 } if yyr759 || yy2arr759 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq759[0] { yym761 := z.EncBinary() _ = yym761 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq759[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym762 := z.EncBinary() _ = yym762 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } } if yyr759 || yy2arr759 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq759[1] { if x.Items == nil { r.EncodeNil() } else { yym764 := z.EncBinary() _ = yym764 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) } } } else { r.EncodeNil() } } else { if yyq759[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym765 := z.EncBinary() _ = yym765 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) } } } } if yyr759 || yy2arr759 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq759[2] { if x.DefaultMode == nil { r.EncodeNil() } else { yy767 := *x.DefaultMode yym768 := z.EncBinary() _ = yym768 if false { } else { r.EncodeInt(int64(yy767)) } } } else { r.EncodeNil() } } else { if yyq759[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("defaultMode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DefaultMode == nil { r.EncodeNil() } else { yy769 := *x.DefaultMode yym770 := z.EncBinary() _ = yym770 if false { } else { r.EncodeInt(int64(yy769)) } } } } if yyr759 || yy2arr759 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *SecretVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym771 := z.DecBinary() _ = yym771 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct772 := r.ContainerType() if yyct772 == codecSelferValueTypeMap1234 { yyl772 := r.ReadMapStart() if yyl772 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl772, d) } } else if yyct772 == codecSelferValueTypeArray1234 { yyl772 := r.ReadArrayStart() if yyl772 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl772, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys773Slc = z.DecScratchBuffer() // default slice to decode into _ = yys773Slc var yyhl773 bool = l >= 0 for yyj773 := 0; ; yyj773++ { if yyhl773 { if yyj773 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys773Slc = r.DecodeBytes(yys773Slc, true, true) yys773 := string(yys773Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys773 { case "secretName": if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv775 := &x.Items yym776 := z.DecBinary() _ = yym776 if false { } else { h.decSliceKeyToPath((*[]KeyToPath)(yyv775), d) } } case "defaultMode": if r.TryDecodeAsNil() { if x.DefaultMode != nil { x.DefaultMode = nil } } else { if x.DefaultMode == nil { x.DefaultMode = new(int32) } yym778 := z.DecBinary() _ = yym778 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: z.DecStructFieldNotFound(-1, yys773) } // end switch yys773 } // end for yyj773 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj779 int var yyb779 bool var yyhl779 bool = l >= 0 yyj779++ if yyhl779 { yyb779 = yyj779 > l } else { yyb779 = r.CheckBreak() } if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } yyj779++ if yyhl779 { yyb779 = yyj779 > l } else { yyb779 = r.CheckBreak() } if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv781 := &x.Items yym782 := z.DecBinary() _ = yym782 if false { } else { h.decSliceKeyToPath((*[]KeyToPath)(yyv781), d) } } yyj779++ if yyhl779 { yyb779 = yyj779 > l } else { yyb779 = r.CheckBreak() } if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.DefaultMode != nil { x.DefaultMode = nil } } else { if x.DefaultMode == nil { x.DefaultMode = new(int32) } yym784 := z.DecBinary() _ = yym784 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { yyj779++ if yyhl779 { yyb779 = yyj779 > l } else { yyb779 = r.CheckBreak() } if yyb779 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj779-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym785 := z.EncBinary() _ = yym785 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep786 := !z.EncBinary() yy2arr786 := z.EncBasicHandle().StructToArray var yyq786 [3]bool _, _, _ = yysep786, yyq786, yy2arr786 const yyr786 bool = false yyq786[2] = x.ReadOnly != false var yynn786 int if yyr786 || yy2arr786 { r.EncodeArrayStart(3) } else { yynn786 = 2 for _, b := range yyq786 { if b { yynn786++ } } r.EncodeMapStart(yynn786) yynn786 = 0 } if yyr786 || yy2arr786 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym788 := z.EncBinary() _ = yym788 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("server")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym789 := z.EncBinary() _ = yym789 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) } } if yyr786 || yy2arr786 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym791 := z.EncBinary() _ = yym791 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym792 := z.EncBinary() _ = yym792 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr786 || yy2arr786 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq786[2] { yym794 := z.EncBinary() _ = yym794 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq786[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym795 := z.EncBinary() _ = yym795 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr786 || yy2arr786 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym796 := z.DecBinary() _ = yym796 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct797 := r.ContainerType() if yyct797 == codecSelferValueTypeMap1234 { yyl797 := r.ReadMapStart() if yyl797 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl797, d) } } else if yyct797 == codecSelferValueTypeArray1234 { yyl797 := r.ReadArrayStart() if yyl797 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl797, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys798Slc = z.DecScratchBuffer() // default slice to decode into _ = yys798Slc var yyhl798 bool = l >= 0 for yyj798 := 0; ; yyj798++ { if yyhl798 { if yyj798 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys798Slc = r.DecodeBytes(yys798Slc, true, true) yys798 := string(yys798Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys798 { case "server": if r.TryDecodeAsNil() { x.Server = "" } else { x.Server = string(r.DecodeString()) } case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys798) } // end switch yys798 } // end for yyj798 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj802 int var yyb802 bool var yyhl802 bool = l >= 0 yyj802++ if yyhl802 { yyb802 = yyj802 > l } else { yyb802 = r.CheckBreak() } if yyb802 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Server = "" } else { x.Server = string(r.DecodeString()) } yyj802++ if yyhl802 { yyb802 = yyj802 > l } else { yyb802 = r.CheckBreak() } if yyb802 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj802++ if yyhl802 { yyb802 = yyj802 > l } else { yyb802 = r.CheckBreak() } if yyb802 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj802++ if yyhl802 { yyb802 = yyj802 > l } else { yyb802 = r.CheckBreak() } if yyb802 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj802-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym806 := z.EncBinary() _ = yym806 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep807 := !z.EncBinary() yy2arr807 := z.EncBasicHandle().StructToArray var yyq807 [3]bool _, _, _ = yysep807, yyq807, yy2arr807 const yyr807 bool = false yyq807[2] = x.ReadOnly != false var yynn807 int if yyr807 || yy2arr807 { r.EncodeArrayStart(3) } else { yynn807 = 2 for _, b := range yyq807 { if b { yynn807++ } } r.EncodeMapStart(yynn807) yynn807 = 0 } if yyr807 || yy2arr807 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym809 := z.EncBinary() _ = yym809 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("endpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym810 := z.EncBinary() _ = yym810 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) } } if yyr807 || yy2arr807 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym812 := z.EncBinary() _ = yym812 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym813 := z.EncBinary() _ = yym813 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr807 || yy2arr807 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq807[2] { yym815 := z.EncBinary() _ = yym815 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq807[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym816 := z.EncBinary() _ = yym816 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr807 || yy2arr807 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *GlusterfsVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym817 := z.DecBinary() _ = yym817 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct818 := r.ContainerType() if yyct818 == codecSelferValueTypeMap1234 { yyl818 := r.ReadMapStart() if yyl818 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl818, d) } } else if yyct818 == codecSelferValueTypeArray1234 { yyl818 := r.ReadArrayStart() if yyl818 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl818, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys819Slc = z.DecScratchBuffer() // default slice to decode into _ = yys819Slc var yyhl819 bool = l >= 0 for yyj819 := 0; ; yyj819++ { if yyhl819 { if yyj819 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys819Slc = r.DecodeBytes(yys819Slc, true, true) yys819 := string(yys819Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys819 { case "endpoints": if r.TryDecodeAsNil() { x.EndpointsName = "" } else { x.EndpointsName = string(r.DecodeString()) } case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys819) } // end switch yys819 } // end for yyj819 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj823 int var yyb823 bool var yyhl823 bool = l >= 0 yyj823++ if yyhl823 { yyb823 = yyj823 > l } else { yyb823 = r.CheckBreak() } if yyb823 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.EndpointsName = "" } else { x.EndpointsName = string(r.DecodeString()) } yyj823++ if yyhl823 { yyb823 = yyj823 > l } else { yyb823 = r.CheckBreak() } if yyb823 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj823++ if yyhl823 { yyb823 = yyj823 > l } else { yyb823 = r.CheckBreak() } if yyb823 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj823++ if yyhl823 { yyb823 = yyj823 > l } else { yyb823 = r.CheckBreak() } if yyb823 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj823-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym827 := z.EncBinary() _ = yym827 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep828 := !z.EncBinary() yy2arr828 := z.EncBasicHandle().StructToArray var yyq828 [8]bool _, _, _ = yysep828, yyq828, yy2arr828 const yyr828 bool = false yyq828[2] = x.FSType != "" yyq828[3] = x.RBDPool != "" yyq828[4] = x.RadosUser != "" yyq828[5] = x.Keyring != "" yyq828[6] = x.SecretRef != nil yyq828[7] = x.ReadOnly != false var yynn828 int if yyr828 || yy2arr828 { r.EncodeArrayStart(8) } else { yynn828 = 2 for _, b := range yyq828 { if b { yynn828++ } } r.EncodeMapStart(yynn828) yynn828 = 0 } if yyr828 || yy2arr828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.CephMonitors == nil { r.EncodeNil() } else { yym830 := z.EncBinary() _ = yym830 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("monitors")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.CephMonitors == nil { r.EncodeNil() } else { yym831 := z.EncBinary() _ = yym831 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) } } } if yyr828 || yy2arr828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym833 := z.EncBinary() _ = yym833 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym834 := z.EncBinary() _ = yym834 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) } } if yyr828 || yy2arr828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq828[2] { yym836 := z.EncBinary() _ = yym836 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq828[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym837 := z.EncBinary() _ = yym837 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr828 || yy2arr828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq828[3] { yym839 := z.EncBinary() _ = yym839 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq828[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pool")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym840 := z.EncBinary() _ = yym840 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) } } } if yyr828 || yy2arr828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq828[4] { yym842 := z.EncBinary() _ = yym842 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq828[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym843 := z.EncBinary() _ = yym843 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) } } } if yyr828 || yy2arr828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq828[5] { yym845 := z.EncBinary() _ = yym845 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq828[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("keyring")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym846 := z.EncBinary() _ = yym846 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) } } } if yyr828 || yy2arr828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq828[6] { if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq828[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } } if yyr828 || yy2arr828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq828[7] { yym849 := z.EncBinary() _ = yym849 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq828[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym850 := z.EncBinary() _ = yym850 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr828 || yy2arr828 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *RBDVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym851 := z.DecBinary() _ = yym851 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct852 := r.ContainerType() if yyct852 == codecSelferValueTypeMap1234 { yyl852 := r.ReadMapStart() if yyl852 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl852, d) } } else if yyct852 == codecSelferValueTypeArray1234 { yyl852 := r.ReadArrayStart() if yyl852 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl852, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys853Slc = z.DecScratchBuffer() // default slice to decode into _ = yys853Slc var yyhl853 bool = l >= 0 for yyj853 := 0; ; yyj853++ { if yyhl853 { if yyj853 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys853Slc = r.DecodeBytes(yys853Slc, true, true) yys853 := string(yys853Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys853 { case "monitors": if r.TryDecodeAsNil() { x.CephMonitors = nil } else { yyv854 := &x.CephMonitors yym855 := z.DecBinary() _ = yym855 if false { } else { z.F.DecSliceStringX(yyv854, false, d) } } case "image": if r.TryDecodeAsNil() { x.RBDImage = "" } else { x.RBDImage = string(r.DecodeString()) } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } case "pool": if r.TryDecodeAsNil() { x.RBDPool = "" } else { x.RBDPool = string(r.DecodeString()) } case "user": if r.TryDecodeAsNil() { x.RadosUser = "" } else { x.RadosUser = string(r.DecodeString()) } case "keyring": if r.TryDecodeAsNil() { x.Keyring = "" } else { x.Keyring = string(r.DecodeString()) } case "secretRef": if r.TryDecodeAsNil() { if x.SecretRef != nil { x.SecretRef = nil } } else { if x.SecretRef == nil { x.SecretRef = new(LocalObjectReference) } x.SecretRef.CodecDecodeSelf(d) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys853) } // end switch yys853 } // end for yyj853 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj863 int var yyb863 bool var yyhl863 bool = l >= 0 yyj863++ if yyhl863 { yyb863 = yyj863 > l } else { yyb863 = r.CheckBreak() } if yyb863 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.CephMonitors = nil } else { yyv864 := &x.CephMonitors yym865 := z.DecBinary() _ = yym865 if false { } else { z.F.DecSliceStringX(yyv864, false, d) } } yyj863++ if yyhl863 { yyb863 = yyj863 > l } else { yyb863 = r.CheckBreak() } if yyb863 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RBDImage = "" } else { x.RBDImage = string(r.DecodeString()) } yyj863++ if yyhl863 { yyb863 = yyj863 > l } else { yyb863 = r.CheckBreak() } if yyb863 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj863++ if yyhl863 { yyb863 = yyj863 > l } else { yyb863 = r.CheckBreak() } if yyb863 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RBDPool = "" } else { x.RBDPool = string(r.DecodeString()) } yyj863++ if yyhl863 { yyb863 = yyj863 > l } else { yyb863 = r.CheckBreak() } if yyb863 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RadosUser = "" } else { x.RadosUser = string(r.DecodeString()) } yyj863++ if yyhl863 { yyb863 = yyj863 > l } else { yyb863 = r.CheckBreak() } if yyb863 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Keyring = "" } else { x.Keyring = string(r.DecodeString()) } yyj863++ if yyhl863 { yyb863 = yyj863 > l } else { yyb863 = r.CheckBreak() } if yyb863 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SecretRef != nil { x.SecretRef = nil } } else { if x.SecretRef == nil { x.SecretRef = new(LocalObjectReference) } x.SecretRef.CodecDecodeSelf(d) } yyj863++ if yyhl863 { yyb863 = yyj863 > l } else { yyb863 = r.CheckBreak() } if yyb863 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj863++ if yyhl863 { yyb863 = yyj863 > l } else { yyb863 = r.CheckBreak() } if yyb863 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj863-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym873 := z.EncBinary() _ = yym873 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep874 := !z.EncBinary() yy2arr874 := z.EncBasicHandle().StructToArray var yyq874 [3]bool _, _, _ = yysep874, yyq874, yy2arr874 const yyr874 bool = false yyq874[1] = x.FSType != "" yyq874[2] = x.ReadOnly != false var yynn874 int if yyr874 || yy2arr874 { r.EncodeArrayStart(3) } else { yynn874 = 1 for _, b := range yyq874 { if b { yynn874++ } } r.EncodeMapStart(yynn874) yynn874 = 0 } if yyr874 || yy2arr874 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym876 := z.EncBinary() _ = yym876 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym877 := z.EncBinary() _ = yym877 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } if yyr874 || yy2arr874 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq874[1] { yym879 := z.EncBinary() _ = yym879 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq874[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym880 := z.EncBinary() _ = yym880 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr874 || yy2arr874 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq874[2] { yym882 := z.EncBinary() _ = yym882 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq874[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym883 := z.EncBinary() _ = yym883 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr874 || yy2arr874 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *CinderVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym884 := z.DecBinary() _ = yym884 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct885 := r.ContainerType() if yyct885 == codecSelferValueTypeMap1234 { yyl885 := r.ReadMapStart() if yyl885 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl885, d) } } else if yyct885 == codecSelferValueTypeArray1234 { yyl885 := r.ReadArrayStart() if yyl885 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl885, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys886Slc = z.DecScratchBuffer() // default slice to decode into _ = yys886Slc var yyhl886 bool = l >= 0 for yyj886 := 0; ; yyj886++ { if yyhl886 { if yyj886 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys886Slc = r.DecodeBytes(yys886Slc, true, true) yys886 := string(yys886Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys886 { case "volumeID": if r.TryDecodeAsNil() { x.VolumeID = "" } else { x.VolumeID = string(r.DecodeString()) } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys886) } // end switch yys886 } // end for yyj886 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj890 int var yyb890 bool var yyhl890 bool = l >= 0 yyj890++ if yyhl890 { yyb890 = yyj890 > l } else { yyb890 = r.CheckBreak() } if yyb890 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeID = "" } else { x.VolumeID = string(r.DecodeString()) } yyj890++ if yyhl890 { yyb890 = yyj890 > l } else { yyb890 = r.CheckBreak() } if yyb890 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj890++ if yyhl890 { yyb890 = yyj890 > l } else { yyb890 = r.CheckBreak() } if yyb890 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj890++ if yyhl890 { yyb890 = yyj890 > l } else { yyb890 = r.CheckBreak() } if yyb890 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj890-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym894 := z.EncBinary() _ = yym894 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep895 := !z.EncBinary() yy2arr895 := z.EncBasicHandle().StructToArray var yyq895 [6]bool _, _, _ = yysep895, yyq895, yy2arr895 const yyr895 bool = false yyq895[1] = x.Path != "" yyq895[2] = x.User != "" yyq895[3] = x.SecretFile != "" yyq895[4] = x.SecretRef != nil yyq895[5] = x.ReadOnly != false var yynn895 int if yyr895 || yy2arr895 { r.EncodeArrayStart(6) } else { yynn895 = 1 for _, b := range yyq895 { if b { yynn895++ } } r.EncodeMapStart(yynn895) yynn895 = 0 } if yyr895 || yy2arr895 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Monitors == nil { r.EncodeNil() } else { yym897 := z.EncBinary() _ = yym897 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("monitors")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Monitors == nil { r.EncodeNil() } else { yym898 := z.EncBinary() _ = yym898 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) } } } if yyr895 || yy2arr895 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq895[1] { yym900 := z.EncBinary() _ = yym900 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq895[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym901 := z.EncBinary() _ = yym901 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } if yyr895 || yy2arr895 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq895[2] { yym903 := z.EncBinary() _ = yym903 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq895[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym904 := z.EncBinary() _ = yym904 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } if yyr895 || yy2arr895 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq895[3] { yym906 := z.EncBinary() _ = yym906 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq895[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym907 := z.EncBinary() _ = yym907 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } } if yyr895 || yy2arr895 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq895[4] { if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq895[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } } if yyr895 || yy2arr895 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq895[5] { yym910 := z.EncBinary() _ = yym910 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq895[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym911 := z.EncBinary() _ = yym911 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr895 || yy2arr895 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *CephFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym912 := z.DecBinary() _ = yym912 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct913 := r.ContainerType() if yyct913 == codecSelferValueTypeMap1234 { yyl913 := r.ReadMapStart() if yyl913 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl913, d) } } else if yyct913 == codecSelferValueTypeArray1234 { yyl913 := r.ReadArrayStart() if yyl913 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl913, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *CephFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys914Slc = z.DecScratchBuffer() // default slice to decode into _ = yys914Slc var yyhl914 bool = l >= 0 for yyj914 := 0; ; yyj914++ { if yyhl914 { if yyj914 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys914Slc = r.DecodeBytes(yys914Slc, true, true) yys914 := string(yys914Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys914 { case "monitors": if r.TryDecodeAsNil() { x.Monitors = nil } else { yyv915 := &x.Monitors yym916 := z.DecBinary() _ = yym916 if false { } else { z.F.DecSliceStringX(yyv915, false, d) } } case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "user": if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } case "secretFile": if r.TryDecodeAsNil() { x.SecretFile = "" } else { x.SecretFile = string(r.DecodeString()) } case "secretRef": if r.TryDecodeAsNil() { if x.SecretRef != nil { x.SecretRef = nil } } else { if x.SecretRef == nil { x.SecretRef = new(LocalObjectReference) } x.SecretRef.CodecDecodeSelf(d) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys914) } // end switch yys914 } // end for yyj914 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj922 int var yyb922 bool var yyhl922 bool = l >= 0 yyj922++ if yyhl922 { yyb922 = yyj922 > l } else { yyb922 = r.CheckBreak() } if yyb922 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Monitors = nil } else { yyv923 := &x.Monitors yym924 := z.DecBinary() _ = yym924 if false { } else { z.F.DecSliceStringX(yyv923, false, d) } } yyj922++ if yyhl922 { yyb922 = yyj922 > l } else { yyb922 = r.CheckBreak() } if yyb922 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj922++ if yyhl922 { yyb922 = yyj922 > l } else { yyb922 = r.CheckBreak() } if yyb922 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } yyj922++ if yyhl922 { yyb922 = yyj922 > l } else { yyb922 = r.CheckBreak() } if yyb922 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SecretFile = "" } else { x.SecretFile = string(r.DecodeString()) } yyj922++ if yyhl922 { yyb922 = yyj922 > l } else { yyb922 = r.CheckBreak() } if yyb922 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SecretRef != nil { x.SecretRef = nil } } else { if x.SecretRef == nil { x.SecretRef = new(LocalObjectReference) } x.SecretRef.CodecDecodeSelf(d) } yyj922++ if yyhl922 { yyb922 = yyj922 > l } else { yyb922 = r.CheckBreak() } if yyb922 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj922++ if yyhl922 { yyb922 = yyj922 > l } else { yyb922 = r.CheckBreak() } if yyb922 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj922-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *FlockerVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym930 := z.EncBinary() _ = yym930 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep931 := !z.EncBinary() yy2arr931 := z.EncBasicHandle().StructToArray var yyq931 [1]bool _, _, _ = yysep931, yyq931, yy2arr931 const yyr931 bool = false var yynn931 int if yyr931 || yy2arr931 { r.EncodeArrayStart(1) } else { yynn931 = 1 for _, b := range yyq931 { if b { yynn931++ } } r.EncodeMapStart(yynn931) yynn931 = 0 } if yyr931 || yy2arr931 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym933 := z.EncBinary() _ = yym933 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("datasetName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym934 := z.EncBinary() _ = yym934 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) } } if yyr931 || yy2arr931 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *FlockerVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym935 := z.DecBinary() _ = yym935 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct936 := r.ContainerType() if yyct936 == codecSelferValueTypeMap1234 { yyl936 := r.ReadMapStart() if yyl936 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl936, d) } } else if yyct936 == codecSelferValueTypeArray1234 { yyl936 := r.ReadArrayStart() if yyl936 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl936, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *FlockerVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys937Slc = z.DecScratchBuffer() // default slice to decode into _ = yys937Slc var yyhl937 bool = l >= 0 for yyj937 := 0; ; yyj937++ { if yyhl937 { if yyj937 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys937Slc = r.DecodeBytes(yys937Slc, true, true) yys937 := string(yys937Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys937 { case "datasetName": if r.TryDecodeAsNil() { x.DatasetName = "" } else { x.DatasetName = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys937) } // end switch yys937 } // end for yyj937 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *FlockerVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj939 int var yyb939 bool var yyhl939 bool = l >= 0 yyj939++ if yyhl939 { yyb939 = yyj939 > l } else { yyb939 = r.CheckBreak() } if yyb939 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DatasetName = "" } else { x.DatasetName = string(r.DecodeString()) } for { yyj939++ if yyhl939 { yyb939 = yyj939 > l } else { yyb939 = r.CheckBreak() } if yyb939 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj939-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym941 := z.EncBinary() _ = yym941 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep942 := !z.EncBinary() yy2arr942 := z.EncBasicHandle().StructToArray var yyq942 [2]bool _, _, _ = yysep942, yyq942, yy2arr942 const yyr942 bool = false yyq942[0] = len(x.Items) != 0 yyq942[1] = x.DefaultMode != nil var yynn942 int if yyr942 || yy2arr942 { r.EncodeArrayStart(2) } else { yynn942 = 0 for _, b := range yyq942 { if b { yynn942++ } } r.EncodeMapStart(yynn942) yynn942 = 0 } if yyr942 || yy2arr942 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq942[0] { if x.Items == nil { r.EncodeNil() } else { yym944 := z.EncBinary() _ = yym944 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) } } } else { r.EncodeNil() } } else { if yyq942[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym945 := z.EncBinary() _ = yym945 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) } } } } if yyr942 || yy2arr942 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq942[1] { if x.DefaultMode == nil { r.EncodeNil() } else { yy947 := *x.DefaultMode yym948 := z.EncBinary() _ = yym948 if false { } else { r.EncodeInt(int64(yy947)) } } } else { r.EncodeNil() } } else { if yyq942[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("defaultMode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DefaultMode == nil { r.EncodeNil() } else { yy949 := *x.DefaultMode yym950 := z.EncBinary() _ = yym950 if false { } else { r.EncodeInt(int64(yy949)) } } } } if yyr942 || yy2arr942 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *DownwardAPIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym951 := z.DecBinary() _ = yym951 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct952 := r.ContainerType() if yyct952 == codecSelferValueTypeMap1234 { yyl952 := r.ReadMapStart() if yyl952 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl952, d) } } else if yyct952 == codecSelferValueTypeArray1234 { yyl952 := r.ReadArrayStart() if yyl952 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl952, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys953Slc = z.DecScratchBuffer() // default slice to decode into _ = yys953Slc var yyhl953 bool = l >= 0 for yyj953 := 0; ; yyj953++ { if yyhl953 { if yyj953 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys953Slc = r.DecodeBytes(yys953Slc, true, true) yys953 := string(yys953Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys953 { case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv954 := &x.Items yym955 := z.DecBinary() _ = yym955 if false { } else { h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv954), d) } } case "defaultMode": if r.TryDecodeAsNil() { if x.DefaultMode != nil { x.DefaultMode = nil } } else { if x.DefaultMode == nil { x.DefaultMode = new(int32) } yym957 := z.DecBinary() _ = yym957 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: z.DecStructFieldNotFound(-1, yys953) } // end switch yys953 } // end for yyj953 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj958 int var yyb958 bool var yyhl958 bool = l >= 0 yyj958++ if yyhl958 { yyb958 = yyj958 > l } else { yyb958 = r.CheckBreak() } if yyb958 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv959 := &x.Items yym960 := z.DecBinary() _ = yym960 if false { } else { h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv959), d) } } yyj958++ if yyhl958 { yyb958 = yyj958 > l } else { yyb958 = r.CheckBreak() } if yyb958 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.DefaultMode != nil { x.DefaultMode = nil } } else { if x.DefaultMode == nil { x.DefaultMode = new(int32) } yym962 := z.DecBinary() _ = yym962 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { yyj958++ if yyhl958 { yyb958 = yyj958 > l } else { yyb958 = r.CheckBreak() } if yyb958 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj958-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym963 := z.EncBinary() _ = yym963 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep964 := !z.EncBinary() yy2arr964 := z.EncBasicHandle().StructToArray var yyq964 [4]bool _, _, _ = yysep964, yyq964, yy2arr964 const yyr964 bool = false yyq964[1] = x.FieldRef != nil yyq964[2] = x.ResourceFieldRef != nil yyq964[3] = x.Mode != nil var yynn964 int if yyr964 || yy2arr964 { r.EncodeArrayStart(4) } else { yynn964 = 1 for _, b := range yyq964 { if b { yynn964++ } } r.EncodeMapStart(yynn964) yynn964 = 0 } if yyr964 || yy2arr964 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym966 := z.EncBinary() _ = yym966 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym967 := z.EncBinary() _ = yym967 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr964 || yy2arr964 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq964[1] { if x.FieldRef == nil { r.EncodeNil() } else { x.FieldRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq964[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FieldRef == nil { r.EncodeNil() } else { x.FieldRef.CodecEncodeSelf(e) } } } if yyr964 || yy2arr964 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq964[2] { if x.ResourceFieldRef == nil { r.EncodeNil() } else { x.ResourceFieldRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq964[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ResourceFieldRef == nil { r.EncodeNil() } else { x.ResourceFieldRef.CodecEncodeSelf(e) } } } if yyr964 || yy2arr964 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq964[3] { if x.Mode == nil { r.EncodeNil() } else { yy971 := *x.Mode yym972 := z.EncBinary() _ = yym972 if false { } else { r.EncodeInt(int64(yy971)) } } } else { r.EncodeNil() } } else { if yyq964[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("mode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Mode == nil { r.EncodeNil() } else { yy973 := *x.Mode yym974 := z.EncBinary() _ = yym974 if false { } else { r.EncodeInt(int64(yy973)) } } } } if yyr964 || yy2arr964 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *DownwardAPIVolumeFile) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym975 := z.DecBinary() _ = yym975 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct976 := r.ContainerType() if yyct976 == codecSelferValueTypeMap1234 { yyl976 := r.ReadMapStart() if yyl976 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl976, d) } } else if yyct976 == codecSelferValueTypeArray1234 { yyl976 := r.ReadArrayStart() if yyl976 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl976, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys977Slc = z.DecScratchBuffer() // default slice to decode into _ = yys977Slc var yyhl977 bool = l >= 0 for yyj977 := 0; ; yyj977++ { if yyhl977 { if yyj977 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys977Slc = r.DecodeBytes(yys977Slc, true, true) yys977 := string(yys977Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys977 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "fieldRef": if r.TryDecodeAsNil() { if x.FieldRef != nil { x.FieldRef = nil } } else { if x.FieldRef == nil { x.FieldRef = new(ObjectFieldSelector) } x.FieldRef.CodecDecodeSelf(d) } case "resourceFieldRef": if r.TryDecodeAsNil() { if x.ResourceFieldRef != nil { x.ResourceFieldRef = nil } } else { if x.ResourceFieldRef == nil { x.ResourceFieldRef = new(ResourceFieldSelector) } x.ResourceFieldRef.CodecDecodeSelf(d) } case "mode": if r.TryDecodeAsNil() { if x.Mode != nil { x.Mode = nil } } else { if x.Mode == nil { x.Mode = new(int32) } yym982 := z.DecBinary() _ = yym982 if false { } else { *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) } } default: z.DecStructFieldNotFound(-1, yys977) } // end switch yys977 } // end for yyj977 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj983 int var yyb983 bool var yyhl983 bool = l >= 0 yyj983++ if yyhl983 { yyb983 = yyj983 > l } else { yyb983 = r.CheckBreak() } if yyb983 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj983++ if yyhl983 { yyb983 = yyj983 > l } else { yyb983 = r.CheckBreak() } if yyb983 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FieldRef != nil { x.FieldRef = nil } } else { if x.FieldRef == nil { x.FieldRef = new(ObjectFieldSelector) } x.FieldRef.CodecDecodeSelf(d) } yyj983++ if yyhl983 { yyb983 = yyj983 > l } else { yyb983 = r.CheckBreak() } if yyb983 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ResourceFieldRef != nil { x.ResourceFieldRef = nil } } else { if x.ResourceFieldRef == nil { x.ResourceFieldRef = new(ResourceFieldSelector) } x.ResourceFieldRef.CodecDecodeSelf(d) } yyj983++ if yyhl983 { yyb983 = yyj983 > l } else { yyb983 = r.CheckBreak() } if yyb983 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Mode != nil { x.Mode = nil } } else { if x.Mode == nil { x.Mode = new(int32) } yym988 := z.DecBinary() _ = yym988 if false { } else { *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) } } for { yyj983++ if yyhl983 { yyb983 = yyj983 > l } else { yyb983 = r.CheckBreak() } if yyb983 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj983-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym989 := z.EncBinary() _ = yym989 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep990 := !z.EncBinary() yy2arr990 := z.EncBasicHandle().StructToArray var yyq990 [3]bool _, _, _ = yysep990, yyq990, yy2arr990 const yyr990 bool = false yyq990[2] = x.ReadOnly != false var yynn990 int if yyr990 || yy2arr990 { r.EncodeArrayStart(3) } else { yynn990 = 2 for _, b := range yyq990 { if b { yynn990++ } } r.EncodeMapStart(yynn990) yynn990 = 0 } if yyr990 || yy2arr990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym992 := z.EncBinary() _ = yym992 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym993 := z.EncBinary() _ = yym993 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } if yyr990 || yy2arr990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym995 := z.EncBinary() _ = yym995 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("shareName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym996 := z.EncBinary() _ = yym996 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) } } if yyr990 || yy2arr990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq990[2] { yym998 := z.EncBinary() _ = yym998 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq990[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym999 := z.EncBinary() _ = yym999 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr990 || yy2arr990 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *AzureFileVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1000 := z.DecBinary() _ = yym1000 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1001 := r.ContainerType() if yyct1001 == codecSelferValueTypeMap1234 { yyl1001 := r.ReadMapStart() if yyl1001 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1001, d) } } else if yyct1001 == codecSelferValueTypeArray1234 { yyl1001 := r.ReadArrayStart() if yyl1001 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1001, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1002Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1002Slc var yyhl1002 bool = l >= 0 for yyj1002 := 0; ; yyj1002++ { if yyhl1002 { if yyj1002 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1002Slc = r.DecodeBytes(yys1002Slc, true, true) yys1002 := string(yys1002Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1002 { case "secretName": if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } case "shareName": if r.TryDecodeAsNil() { x.ShareName = "" } else { x.ShareName = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys1002) } // end switch yys1002 } // end for yyj1002 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *AzureFileVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1006 int var yyb1006 bool var yyhl1006 bool = l >= 0 yyj1006++ if yyhl1006 { yyb1006 = yyj1006 > l } else { yyb1006 = r.CheckBreak() } if yyb1006 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } yyj1006++ if yyhl1006 { yyb1006 = yyj1006 > l } else { yyb1006 = r.CheckBreak() } if yyb1006 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ShareName = "" } else { x.ShareName = string(r.DecodeString()) } yyj1006++ if yyhl1006 { yyb1006 = yyj1006 > l } else { yyb1006 = r.CheckBreak() } if yyb1006 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj1006++ if yyhl1006 { yyb1006 = yyj1006 > l } else { yyb1006 = r.CheckBreak() } if yyb1006 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1006-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *VsphereVirtualDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1010 := z.EncBinary() _ = yym1010 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1011 := !z.EncBinary() yy2arr1011 := z.EncBasicHandle().StructToArray var yyq1011 [2]bool _, _, _ = yysep1011, yyq1011, yy2arr1011 const yyr1011 bool = false yyq1011[1] = x.FSType != "" var yynn1011 int if yyr1011 || yy2arr1011 { r.EncodeArrayStart(2) } else { yynn1011 = 1 for _, b := range yyq1011 { if b { yynn1011++ } } r.EncodeMapStart(yynn1011) yynn1011 = 0 } if yyr1011 || yy2arr1011 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1013 := z.EncBinary() _ = yym1013 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1014 := z.EncBinary() _ = yym1014 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) } } if yyr1011 || yy2arr1011 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1011[1] { yym1016 := z.EncBinary() _ = yym1016 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1011[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1017 := z.EncBinary() _ = yym1017 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr1011 || yy2arr1011 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *VsphereVirtualDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1018 := z.DecBinary() _ = yym1018 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1019 := r.ContainerType() if yyct1019 == codecSelferValueTypeMap1234 { yyl1019 := r.ReadMapStart() if yyl1019 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1019, d) } } else if yyct1019 == codecSelferValueTypeArray1234 { yyl1019 := r.ReadArrayStart() if yyl1019 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1019, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1020Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1020Slc var yyhl1020 bool = l >= 0 for yyj1020 := 0; ; yyj1020++ { if yyhl1020 { if yyj1020 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1020Slc = r.DecodeBytes(yys1020Slc, true, true) yys1020 := string(yys1020Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1020 { case "volumePath": if r.TryDecodeAsNil() { x.VolumePath = "" } else { x.VolumePath = string(r.DecodeString()) } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1020) } // end switch yys1020 } // end for yyj1020 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1023 int var yyb1023 bool var yyhl1023 bool = l >= 0 yyj1023++ if yyhl1023 { yyb1023 = yyj1023 > l } else { yyb1023 = r.CheckBreak() } if yyb1023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumePath = "" } else { x.VolumePath = string(r.DecodeString()) } yyj1023++ if yyhl1023 { yyb1023 = yyj1023 > l } else { yyb1023 = r.CheckBreak() } if yyb1023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } for { yyj1023++ if yyhl1023 { yyb1023 = yyj1023 > l } else { yyb1023 = r.CheckBreak() } if yyb1023 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1023-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1026 := z.EncBinary() _ = yym1026 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1027 := !z.EncBinary() yy2arr1027 := z.EncBasicHandle().StructToArray var yyq1027 [3]bool _, _, _ = yysep1027, yyq1027, yy2arr1027 const yyr1027 bool = false yyq1027[1] = len(x.Items) != 0 yyq1027[2] = x.DefaultMode != nil var yynn1027 int if yyr1027 || yy2arr1027 { r.EncodeArrayStart(3) } else { yynn1027 = 1 for _, b := range yyq1027 { if b { yynn1027++ } } r.EncodeMapStart(yynn1027) yynn1027 = 0 } if yyr1027 || yy2arr1027 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1029 := z.EncBinary() _ = yym1029 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1030 := z.EncBinary() _ = yym1030 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1027 || yy2arr1027 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1027[1] { if x.Items == nil { r.EncodeNil() } else { yym1032 := z.EncBinary() _ = yym1032 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) } } } else { r.EncodeNil() } } else { if yyq1027[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym1033 := z.EncBinary() _ = yym1033 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) } } } } if yyr1027 || yy2arr1027 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1027[2] { if x.DefaultMode == nil { r.EncodeNil() } else { yy1035 := *x.DefaultMode yym1036 := z.EncBinary() _ = yym1036 if false { } else { r.EncodeInt(int64(yy1035)) } } } else { r.EncodeNil() } } else { if yyq1027[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("defaultMode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DefaultMode == nil { r.EncodeNil() } else { yy1037 := *x.DefaultMode yym1038 := z.EncBinary() _ = yym1038 if false { } else { r.EncodeInt(int64(yy1037)) } } } } if yyr1027 || yy2arr1027 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ConfigMapVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1039 := z.DecBinary() _ = yym1039 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1040 := r.ContainerType() if yyct1040 == codecSelferValueTypeMap1234 { yyl1040 := r.ReadMapStart() if yyl1040 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1040, d) } } else if yyct1040 == codecSelferValueTypeArray1234 { yyl1040 := r.ReadArrayStart() if yyl1040 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1040, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1041Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1041Slc var yyhl1041 bool = l >= 0 for yyj1041 := 0; ; yyj1041++ { if yyhl1041 { if yyj1041 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1041Slc = r.DecodeBytes(yys1041Slc, true, true) yys1041 := string(yys1041Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1041 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1043 := &x.Items yym1044 := z.DecBinary() _ = yym1044 if false { } else { h.decSliceKeyToPath((*[]KeyToPath)(yyv1043), d) } } case "defaultMode": if r.TryDecodeAsNil() { if x.DefaultMode != nil { x.DefaultMode = nil } } else { if x.DefaultMode == nil { x.DefaultMode = new(int32) } yym1046 := z.DecBinary() _ = yym1046 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: z.DecStructFieldNotFound(-1, yys1041) } // end switch yys1041 } // end for yyj1041 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1047 int var yyb1047 bool var yyhl1047 bool = l >= 0 yyj1047++ if yyhl1047 { yyb1047 = yyj1047 > l } else { yyb1047 = r.CheckBreak() } if yyb1047 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1047++ if yyhl1047 { yyb1047 = yyj1047 > l } else { yyb1047 = r.CheckBreak() } if yyb1047 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1049 := &x.Items yym1050 := z.DecBinary() _ = yym1050 if false { } else { h.decSliceKeyToPath((*[]KeyToPath)(yyv1049), d) } } yyj1047++ if yyhl1047 { yyb1047 = yyj1047 > l } else { yyb1047 = r.CheckBreak() } if yyb1047 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.DefaultMode != nil { x.DefaultMode = nil } } else { if x.DefaultMode == nil { x.DefaultMode = new(int32) } yym1052 := z.DecBinary() _ = yym1052 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { yyj1047++ if yyhl1047 { yyb1047 = yyj1047 > l } else { yyb1047 = r.CheckBreak() } if yyb1047 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1047-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1053 := z.EncBinary() _ = yym1053 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1054 := !z.EncBinary() yy2arr1054 := z.EncBasicHandle().StructToArray var yyq1054 [3]bool _, _, _ = yysep1054, yyq1054, yy2arr1054 const yyr1054 bool = false yyq1054[2] = x.Mode != nil var yynn1054 int if yyr1054 || yy2arr1054 { r.EncodeArrayStart(3) } else { yynn1054 = 2 for _, b := range yyq1054 { if b { yynn1054++ } } r.EncodeMapStart(yynn1054) yynn1054 = 0 } if yyr1054 || yy2arr1054 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1056 := z.EncBinary() _ = yym1056 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1057 := z.EncBinary() _ = yym1057 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1054 || yy2arr1054 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1059 := z.EncBinary() _ = yym1059 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1060 := z.EncBinary() _ = yym1060 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr1054 || yy2arr1054 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1054[2] { if x.Mode == nil { r.EncodeNil() } else { yy1062 := *x.Mode yym1063 := z.EncBinary() _ = yym1063 if false { } else { r.EncodeInt(int64(yy1062)) } } } else { r.EncodeNil() } } else { if yyq1054[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("mode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Mode == nil { r.EncodeNil() } else { yy1064 := *x.Mode yym1065 := z.EncBinary() _ = yym1065 if false { } else { r.EncodeInt(int64(yy1064)) } } } } if yyr1054 || yy2arr1054 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *KeyToPath) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1066 := z.DecBinary() _ = yym1066 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1067 := r.ContainerType() if yyct1067 == codecSelferValueTypeMap1234 { yyl1067 := r.ReadMapStart() if yyl1067 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1067, d) } } else if yyct1067 == codecSelferValueTypeArray1234 { yyl1067 := r.ReadArrayStart() if yyl1067 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1067, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1068Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1068Slc var yyhl1068 bool = l >= 0 for yyj1068 := 0; ; yyj1068++ { if yyhl1068 { if yyj1068 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1068Slc = r.DecodeBytes(yys1068Slc, true, true) yys1068 := string(yys1068Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1068 { case "key": if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "mode": if r.TryDecodeAsNil() { if x.Mode != nil { x.Mode = nil } } else { if x.Mode == nil { x.Mode = new(int32) } yym1072 := z.DecBinary() _ = yym1072 if false { } else { *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) } } default: z.DecStructFieldNotFound(-1, yys1068) } // end switch yys1068 } // end for yyj1068 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1073 int var yyb1073 bool var yyhl1073 bool = l >= 0 yyj1073++ if yyhl1073 { yyb1073 = yyj1073 > l } else { yyb1073 = r.CheckBreak() } if yyb1073 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } yyj1073++ if yyhl1073 { yyb1073 = yyj1073 > l } else { yyb1073 = r.CheckBreak() } if yyb1073 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj1073++ if yyhl1073 { yyb1073 = yyj1073 > l } else { yyb1073 = r.CheckBreak() } if yyb1073 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Mode != nil { x.Mode = nil } } else { if x.Mode == nil { x.Mode = new(int32) } yym1077 := z.DecBinary() _ = yym1077 if false { } else { *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) } } for { yyj1073++ if yyhl1073 { yyb1073 = yyj1073 > l } else { yyb1073 = r.CheckBreak() } if yyb1073 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1073-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1078 := z.EncBinary() _ = yym1078 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1079 := !z.EncBinary() yy2arr1079 := z.EncBasicHandle().StructToArray var yyq1079 [5]bool _, _, _ = yysep1079, yyq1079, yy2arr1079 const yyr1079 bool = false yyq1079[0] = x.Name != "" yyq1079[1] = x.HostPort != 0 yyq1079[3] = x.Protocol != "" yyq1079[4] = x.HostIP != "" var yynn1079 int if yyr1079 || yy2arr1079 { r.EncodeArrayStart(5) } else { yynn1079 = 1 for _, b := range yyq1079 { if b { yynn1079++ } } r.EncodeMapStart(yynn1079) yynn1079 = 0 } if yyr1079 || yy2arr1079 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1079[0] { yym1081 := z.EncBinary() _ = yym1081 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1079[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1082 := z.EncBinary() _ = yym1082 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } if yyr1079 || yy2arr1079 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1079[1] { yym1084 := z.EncBinary() _ = yym1084 if false { } else { r.EncodeInt(int64(x.HostPort)) } } else { r.EncodeInt(0) } } else { if yyq1079[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1085 := z.EncBinary() _ = yym1085 if false { } else { r.EncodeInt(int64(x.HostPort)) } } } if yyr1079 || yy2arr1079 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1087 := z.EncBinary() _ = yym1087 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1088 := z.EncBinary() _ = yym1088 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } if yyr1079 || yy2arr1079 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1079[3] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1079[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } if yyr1079 || yy2arr1079 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1079[4] { yym1091 := z.EncBinary() _ = yym1091 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1079[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1092 := z.EncBinary() _ = yym1092 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } if yyr1079 || yy2arr1079 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ContainerPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1093 := z.DecBinary() _ = yym1093 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1094 := r.ContainerType() if yyct1094 == codecSelferValueTypeMap1234 { yyl1094 := r.ReadMapStart() if yyl1094 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1094, d) } } else if yyct1094 == codecSelferValueTypeArray1234 { yyl1094 := r.ReadArrayStart() if yyl1094 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1094, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1095Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1095Slc var yyhl1095 bool = l >= 0 for yyj1095 := 0; ; yyj1095++ { if yyhl1095 { if yyj1095 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1095Slc = r.DecodeBytes(yys1095Slc, true, true) yys1095 := string(yys1095Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1095 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "hostPort": if r.TryDecodeAsNil() { x.HostPort = 0 } else { x.HostPort = int32(r.DecodeInt(32)) } case "containerPort": if r.TryDecodeAsNil() { x.ContainerPort = 0 } else { x.ContainerPort = int32(r.DecodeInt(32)) } case "protocol": if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } case "hostIP": if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1095) } // end switch yys1095 } // end for yyj1095 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1101 int var yyb1101 bool var yyhl1101 bool = l >= 0 yyj1101++ if yyhl1101 { yyb1101 = yyj1101 > l } else { yyb1101 = r.CheckBreak() } if yyb1101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1101++ if yyhl1101 { yyb1101 = yyj1101 > l } else { yyb1101 = r.CheckBreak() } if yyb1101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostPort = 0 } else { x.HostPort = int32(r.DecodeInt(32)) } yyj1101++ if yyhl1101 { yyb1101 = yyj1101 > l } else { yyb1101 = r.CheckBreak() } if yyb1101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerPort = 0 } else { x.ContainerPort = int32(r.DecodeInt(32)) } yyj1101++ if yyhl1101 { yyb1101 = yyj1101 > l } else { yyb1101 = r.CheckBreak() } if yyb1101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } yyj1101++ if yyhl1101 { yyb1101 = yyj1101 > l } else { yyb1101 = r.CheckBreak() } if yyb1101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } for { yyj1101++ if yyhl1101 { yyb1101 = yyj1101 > l } else { yyb1101 = r.CheckBreak() } if yyb1101 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1101-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1107 := z.EncBinary() _ = yym1107 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1108 := !z.EncBinary() yy2arr1108 := z.EncBasicHandle().StructToArray var yyq1108 [4]bool _, _, _ = yysep1108, yyq1108, yy2arr1108 const yyr1108 bool = false yyq1108[1] = x.ReadOnly != false yyq1108[3] = x.SubPath != "" var yynn1108 int if yyr1108 || yy2arr1108 { r.EncodeArrayStart(4) } else { yynn1108 = 2 for _, b := range yyq1108 { if b { yynn1108++ } } r.EncodeMapStart(yynn1108) yynn1108 = 0 } if yyr1108 || yy2arr1108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1110 := z.EncBinary() _ = yym1110 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1111 := z.EncBinary() _ = yym1111 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1108 || yy2arr1108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1108[1] { yym1113 := z.EncBinary() _ = yym1113 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq1108[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1114 := z.EncBinary() _ = yym1114 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr1108 || yy2arr1108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1116 := z.EncBinary() _ = yym1116 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("mountPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1117 := z.EncBinary() _ = yym1117 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) } } if yyr1108 || yy2arr1108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1108[3] { yym1119 := z.EncBinary() _ = yym1119 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1108[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1120 := z.EncBinary() _ = yym1120 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) } } } if yyr1108 || yy2arr1108 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *VolumeMount) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1121 := z.DecBinary() _ = yym1121 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1122 := r.ContainerType() if yyct1122 == codecSelferValueTypeMap1234 { yyl1122 := r.ReadMapStart() if yyl1122 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1122, d) } } else if yyct1122 == codecSelferValueTypeArray1234 { yyl1122 := r.ReadArrayStart() if yyl1122 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1122, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1123Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1123Slc var yyhl1123 bool = l >= 0 for yyj1123 := 0; ; yyj1123++ { if yyhl1123 { if yyj1123 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1123Slc = r.DecodeBytes(yys1123Slc, true, true) yys1123 := string(yys1123Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1123 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } case "mountPath": if r.TryDecodeAsNil() { x.MountPath = "" } else { x.MountPath = string(r.DecodeString()) } case "subPath": if r.TryDecodeAsNil() { x.SubPath = "" } else { x.SubPath = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1123) } // end switch yys1123 } // end for yyj1123 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1128 int var yyb1128 bool var yyhl1128 bool = l >= 0 yyj1128++ if yyhl1128 { yyb1128 = yyj1128 > l } else { yyb1128 = r.CheckBreak() } if yyb1128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1128++ if yyhl1128 { yyb1128 = yyj1128 > l } else { yyb1128 = r.CheckBreak() } if yyb1128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } yyj1128++ if yyhl1128 { yyb1128 = yyj1128 > l } else { yyb1128 = r.CheckBreak() } if yyb1128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MountPath = "" } else { x.MountPath = string(r.DecodeString()) } yyj1128++ if yyhl1128 { yyb1128 = yyj1128 > l } else { yyb1128 = r.CheckBreak() } if yyb1128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SubPath = "" } else { x.SubPath = string(r.DecodeString()) } for { yyj1128++ if yyhl1128 { yyb1128 = yyj1128 > l } else { yyb1128 = r.CheckBreak() } if yyb1128 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1128-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1133 := z.EncBinary() _ = yym1133 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1134 := !z.EncBinary() yy2arr1134 := z.EncBasicHandle().StructToArray var yyq1134 [3]bool _, _, _ = yysep1134, yyq1134, yy2arr1134 const yyr1134 bool = false yyq1134[1] = x.Value != "" yyq1134[2] = x.ValueFrom != nil var yynn1134 int if yyr1134 || yy2arr1134 { r.EncodeArrayStart(3) } else { yynn1134 = 1 for _, b := range yyq1134 { if b { yynn1134++ } } r.EncodeMapStart(yynn1134) yynn1134 = 0 } if yyr1134 || yy2arr1134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1136 := z.EncBinary() _ = yym1136 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1137 := z.EncBinary() _ = yym1137 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1134 || yy2arr1134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1134[1] { yym1139 := z.EncBinary() _ = yym1139 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1134[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1140 := z.EncBinary() _ = yym1140 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } if yyr1134 || yy2arr1134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1134[2] { if x.ValueFrom == nil { r.EncodeNil() } else { x.ValueFrom.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1134[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("valueFrom")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ValueFrom == nil { r.EncodeNil() } else { x.ValueFrom.CodecEncodeSelf(e) } } } if yyr1134 || yy2arr1134 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *EnvVar) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1142 := z.DecBinary() _ = yym1142 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1143 := r.ContainerType() if yyct1143 == codecSelferValueTypeMap1234 { yyl1143 := r.ReadMapStart() if yyl1143 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1143, d) } } else if yyct1143 == codecSelferValueTypeArray1234 { yyl1143 := r.ReadArrayStart() if yyl1143 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1143, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *EnvVar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1144Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1144Slc var yyhl1144 bool = l >= 0 for yyj1144 := 0; ; yyj1144++ { if yyhl1144 { if yyj1144 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1144Slc = r.DecodeBytes(yys1144Slc, true, true) yys1144 := string(yys1144Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1144 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "value": if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } case "valueFrom": if r.TryDecodeAsNil() { if x.ValueFrom != nil { x.ValueFrom = nil } } else { if x.ValueFrom == nil { x.ValueFrom = new(EnvVarSource) } x.ValueFrom.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1144) } // end switch yys1144 } // end for yyj1144 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1148 int var yyb1148 bool var yyhl1148 bool = l >= 0 yyj1148++ if yyhl1148 { yyb1148 = yyj1148 > l } else { yyb1148 = r.CheckBreak() } if yyb1148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1148++ if yyhl1148 { yyb1148 = yyj1148 > l } else { yyb1148 = r.CheckBreak() } if yyb1148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } yyj1148++ if yyhl1148 { yyb1148 = yyj1148 > l } else { yyb1148 = r.CheckBreak() } if yyb1148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ValueFrom != nil { x.ValueFrom = nil } } else { if x.ValueFrom == nil { x.ValueFrom = new(EnvVarSource) } x.ValueFrom.CodecDecodeSelf(d) } for { yyj1148++ if yyhl1148 { yyb1148 = yyj1148 > l } else { yyb1148 = r.CheckBreak() } if yyb1148 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1148-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1152 := z.EncBinary() _ = yym1152 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1153 := !z.EncBinary() yy2arr1153 := z.EncBasicHandle().StructToArray var yyq1153 [4]bool _, _, _ = yysep1153, yyq1153, yy2arr1153 const yyr1153 bool = false yyq1153[0] = x.FieldRef != nil yyq1153[1] = x.ResourceFieldRef != nil yyq1153[2] = x.ConfigMapKeyRef != nil yyq1153[3] = x.SecretKeyRef != nil var yynn1153 int if yyr1153 || yy2arr1153 { r.EncodeArrayStart(4) } else { yynn1153 = 0 for _, b := range yyq1153 { if b { yynn1153++ } } r.EncodeMapStart(yynn1153) yynn1153 = 0 } if yyr1153 || yy2arr1153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1153[0] { if x.FieldRef == nil { r.EncodeNil() } else { x.FieldRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1153[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FieldRef == nil { r.EncodeNil() } else { x.FieldRef.CodecEncodeSelf(e) } } } if yyr1153 || yy2arr1153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1153[1] { if x.ResourceFieldRef == nil { r.EncodeNil() } else { x.ResourceFieldRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1153[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ResourceFieldRef == nil { r.EncodeNil() } else { x.ResourceFieldRef.CodecEncodeSelf(e) } } } if yyr1153 || yy2arr1153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1153[2] { if x.ConfigMapKeyRef == nil { r.EncodeNil() } else { x.ConfigMapKeyRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1153[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configMapKeyRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ConfigMapKeyRef == nil { r.EncodeNil() } else { x.ConfigMapKeyRef.CodecEncodeSelf(e) } } } if yyr1153 || yy2arr1153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1153[3] { if x.SecretKeyRef == nil { r.EncodeNil() } else { x.SecretKeyRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1153[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretKeyRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SecretKeyRef == nil { r.EncodeNil() } else { x.SecretKeyRef.CodecEncodeSelf(e) } } } if yyr1153 || yy2arr1153 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *EnvVarSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1158 := z.DecBinary() _ = yym1158 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1159 := r.ContainerType() if yyct1159 == codecSelferValueTypeMap1234 { yyl1159 := r.ReadMapStart() if yyl1159 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1159, d) } } else if yyct1159 == codecSelferValueTypeArray1234 { yyl1159 := r.ReadArrayStart() if yyl1159 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1159, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *EnvVarSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1160Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1160Slc var yyhl1160 bool = l >= 0 for yyj1160 := 0; ; yyj1160++ { if yyhl1160 { if yyj1160 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1160Slc = r.DecodeBytes(yys1160Slc, true, true) yys1160 := string(yys1160Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1160 { case "fieldRef": if r.TryDecodeAsNil() { if x.FieldRef != nil { x.FieldRef = nil } } else { if x.FieldRef == nil { x.FieldRef = new(ObjectFieldSelector) } x.FieldRef.CodecDecodeSelf(d) } case "resourceFieldRef": if r.TryDecodeAsNil() { if x.ResourceFieldRef != nil { x.ResourceFieldRef = nil } } else { if x.ResourceFieldRef == nil { x.ResourceFieldRef = new(ResourceFieldSelector) } x.ResourceFieldRef.CodecDecodeSelf(d) } case "configMapKeyRef": if r.TryDecodeAsNil() { if x.ConfigMapKeyRef != nil { x.ConfigMapKeyRef = nil } } else { if x.ConfigMapKeyRef == nil { x.ConfigMapKeyRef = new(ConfigMapKeySelector) } x.ConfigMapKeyRef.CodecDecodeSelf(d) } case "secretKeyRef": if r.TryDecodeAsNil() { if x.SecretKeyRef != nil { x.SecretKeyRef = nil } } else { if x.SecretKeyRef == nil { x.SecretKeyRef = new(SecretKeySelector) } x.SecretKeyRef.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1160) } // end switch yys1160 } // end for yyj1160 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1165 int var yyb1165 bool var yyhl1165 bool = l >= 0 yyj1165++ if yyhl1165 { yyb1165 = yyj1165 > l } else { yyb1165 = r.CheckBreak() } if yyb1165 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FieldRef != nil { x.FieldRef = nil } } else { if x.FieldRef == nil { x.FieldRef = new(ObjectFieldSelector) } x.FieldRef.CodecDecodeSelf(d) } yyj1165++ if yyhl1165 { yyb1165 = yyj1165 > l } else { yyb1165 = r.CheckBreak() } if yyb1165 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ResourceFieldRef != nil { x.ResourceFieldRef = nil } } else { if x.ResourceFieldRef == nil { x.ResourceFieldRef = new(ResourceFieldSelector) } x.ResourceFieldRef.CodecDecodeSelf(d) } yyj1165++ if yyhl1165 { yyb1165 = yyj1165 > l } else { yyb1165 = r.CheckBreak() } if yyb1165 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ConfigMapKeyRef != nil { x.ConfigMapKeyRef = nil } } else { if x.ConfigMapKeyRef == nil { x.ConfigMapKeyRef = new(ConfigMapKeySelector) } x.ConfigMapKeyRef.CodecDecodeSelf(d) } yyj1165++ if yyhl1165 { yyb1165 = yyj1165 > l } else { yyb1165 = r.CheckBreak() } if yyb1165 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SecretKeyRef != nil { x.SecretKeyRef = nil } } else { if x.SecretKeyRef == nil { x.SecretKeyRef = new(SecretKeySelector) } x.SecretKeyRef.CodecDecodeSelf(d) } for { yyj1165++ if yyhl1165 { yyb1165 = yyj1165 > l } else { yyb1165 = r.CheckBreak() } if yyb1165 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1165-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1170 := z.EncBinary() _ = yym1170 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1171 := !z.EncBinary() yy2arr1171 := z.EncBasicHandle().StructToArray var yyq1171 [2]bool _, _, _ = yysep1171, yyq1171, yy2arr1171 const yyr1171 bool = false var yynn1171 int if yyr1171 || yy2arr1171 { r.EncodeArrayStart(2) } else { yynn1171 = 2 for _, b := range yyq1171 { if b { yynn1171++ } } r.EncodeMapStart(yynn1171) yynn1171 = 0 } if yyr1171 || yy2arr1171 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1173 := z.EncBinary() _ = yym1173 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1174 := z.EncBinary() _ = yym1174 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } if yyr1171 || yy2arr1171 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1176 := z.EncBinary() _ = yym1176 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1177 := z.EncBinary() _ = yym1177 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } if yyr1171 || yy2arr1171 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ObjectFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1178 := z.DecBinary() _ = yym1178 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1179 := r.ContainerType() if yyct1179 == codecSelferValueTypeMap1234 { yyl1179 := r.ReadMapStart() if yyl1179 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1179, d) } } else if yyct1179 == codecSelferValueTypeArray1234 { yyl1179 := r.ReadArrayStart() if yyl1179 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1179, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1180Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1180Slc var yyhl1180 bool = l >= 0 for yyj1180 := 0; ; yyj1180++ { if yyhl1180 { if yyj1180 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1180Slc = r.DecodeBytes(yys1180Slc, true, true) yys1180 := string(yys1180Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1180 { case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "fieldPath": if r.TryDecodeAsNil() { x.FieldPath = "" } else { x.FieldPath = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1180) } // end switch yys1180 } // end for yyj1180 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1183 int var yyb1183 bool var yyhl1183 bool = l >= 0 yyj1183++ if yyhl1183 { yyb1183 = yyj1183 > l } else { yyb1183 = r.CheckBreak() } if yyb1183 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1183++ if yyhl1183 { yyb1183 = yyj1183 > l } else { yyb1183 = r.CheckBreak() } if yyb1183 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldPath = "" } else { x.FieldPath = string(r.DecodeString()) } for { yyj1183++ if yyhl1183 { yyb1183 = yyj1183 > l } else { yyb1183 = r.CheckBreak() } if yyb1183 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1183-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1186 := z.EncBinary() _ = yym1186 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1187 := !z.EncBinary() yy2arr1187 := z.EncBasicHandle().StructToArray var yyq1187 [3]bool _, _, _ = yysep1187, yyq1187, yy2arr1187 const yyr1187 bool = false yyq1187[0] = x.ContainerName != "" yyq1187[2] = true var yynn1187 int if yyr1187 || yy2arr1187 { r.EncodeArrayStart(3) } else { yynn1187 = 1 for _, b := range yyq1187 { if b { yynn1187++ } } r.EncodeMapStart(yynn1187) yynn1187 = 0 } if yyr1187 || yy2arr1187 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1187[0] { yym1189 := z.EncBinary() _ = yym1189 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1187[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1190 := z.EncBinary() _ = yym1190 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) } } } if yyr1187 || yy2arr1187 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1192 := z.EncBinary() _ = yym1192 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resource")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1193 := z.EncBinary() _ = yym1193 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) } } if yyr1187 || yy2arr1187 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1187[2] { yy1195 := &x.Divisor yym1196 := z.EncBinary() _ = yym1196 if false { } else if z.HasExtensions() && z.EncExt(yy1195) { } else if !yym1196 && z.IsJSONHandle() { z.EncJSONMarshal(yy1195) } else { z.EncFallback(yy1195) } } else { r.EncodeNil() } } else { if yyq1187[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("divisor")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1197 := &x.Divisor yym1198 := z.EncBinary() _ = yym1198 if false { } else if z.HasExtensions() && z.EncExt(yy1197) { } else if !yym1198 && z.IsJSONHandle() { z.EncJSONMarshal(yy1197) } else { z.EncFallback(yy1197) } } } if yyr1187 || yy2arr1187 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ResourceFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1199 := z.DecBinary() _ = yym1199 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1200 := r.ContainerType() if yyct1200 == codecSelferValueTypeMap1234 { yyl1200 := r.ReadMapStart() if yyl1200 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1200, d) } } else if yyct1200 == codecSelferValueTypeArray1234 { yyl1200 := r.ReadArrayStart() if yyl1200 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1200, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1201Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1201Slc var yyhl1201 bool = l >= 0 for yyj1201 := 0; ; yyj1201++ { if yyhl1201 { if yyj1201 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1201Slc = r.DecodeBytes(yys1201Slc, true, true) yys1201 := string(yys1201Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1201 { case "containerName": if r.TryDecodeAsNil() { x.ContainerName = "" } else { x.ContainerName = string(r.DecodeString()) } case "resource": if r.TryDecodeAsNil() { x.Resource = "" } else { x.Resource = string(r.DecodeString()) } case "divisor": if r.TryDecodeAsNil() { x.Divisor = pkg3_resource.Quantity{} } else { yyv1204 := &x.Divisor yym1205 := z.DecBinary() _ = yym1205 if false { } else if z.HasExtensions() && z.DecExt(yyv1204) { } else if !yym1205 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1204) } else { z.DecFallback(yyv1204, false) } } default: z.DecStructFieldNotFound(-1, yys1201) } // end switch yys1201 } // end for yyj1201 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1206 int var yyb1206 bool var yyhl1206 bool = l >= 0 yyj1206++ if yyhl1206 { yyb1206 = yyj1206 > l } else { yyb1206 = r.CheckBreak() } if yyb1206 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerName = "" } else { x.ContainerName = string(r.DecodeString()) } yyj1206++ if yyhl1206 { yyb1206 = yyj1206 > l } else { yyb1206 = r.CheckBreak() } if yyb1206 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Resource = "" } else { x.Resource = string(r.DecodeString()) } yyj1206++ if yyhl1206 { yyb1206 = yyj1206 > l } else { yyb1206 = r.CheckBreak() } if yyb1206 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Divisor = pkg3_resource.Quantity{} } else { yyv1209 := &x.Divisor yym1210 := z.DecBinary() _ = yym1210 if false { } else if z.HasExtensions() && z.DecExt(yyv1209) { } else if !yym1210 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1209) } else { z.DecFallback(yyv1209, false) } } for { yyj1206++ if yyhl1206 { yyb1206 = yyj1206 > l } else { yyb1206 = r.CheckBreak() } if yyb1206 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1206-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1211 := z.EncBinary() _ = yym1211 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1212 := !z.EncBinary() yy2arr1212 := z.EncBasicHandle().StructToArray var yyq1212 [2]bool _, _, _ = yysep1212, yyq1212, yy2arr1212 const yyr1212 bool = false var yynn1212 int if yyr1212 || yy2arr1212 { r.EncodeArrayStart(2) } else { yynn1212 = 2 for _, b := range yyq1212 { if b { yynn1212++ } } r.EncodeMapStart(yynn1212) yynn1212 = 0 } if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1214 := z.EncBinary() _ = yym1214 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1215 := z.EncBinary() _ = yym1215 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1217 := z.EncBinary() _ = yym1217 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1218 := z.EncBinary() _ = yym1218 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ConfigMapKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1219 := z.DecBinary() _ = yym1219 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1220 := r.ContainerType() if yyct1220 == codecSelferValueTypeMap1234 { yyl1220 := r.ReadMapStart() if yyl1220 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1220, d) } } else if yyct1220 == codecSelferValueTypeArray1234 { yyl1220 := r.ReadArrayStart() if yyl1220 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1220, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1221Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1221Slc var yyhl1221 bool = l >= 0 for yyj1221 := 0; ; yyj1221++ { if yyhl1221 { if yyj1221 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1221Slc = r.DecodeBytes(yys1221Slc, true, true) yys1221 := string(yys1221Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1221 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "key": if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1221) } // end switch yys1221 } // end for yyj1221 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1224 int var yyb1224 bool var yyhl1224 bool = l >= 0 yyj1224++ if yyhl1224 { yyb1224 = yyj1224 > l } else { yyb1224 = r.CheckBreak() } if yyb1224 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1224++ if yyhl1224 { yyb1224 = yyj1224 > l } else { yyb1224 = r.CheckBreak() } if yyb1224 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } for { yyj1224++ if yyhl1224 { yyb1224 = yyj1224 > l } else { yyb1224 = r.CheckBreak() } if yyb1224 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1224-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1227 := z.EncBinary() _ = yym1227 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1228 := !z.EncBinary() yy2arr1228 := z.EncBasicHandle().StructToArray var yyq1228 [2]bool _, _, _ = yysep1228, yyq1228, yy2arr1228 const yyr1228 bool = false var yynn1228 int if yyr1228 || yy2arr1228 { r.EncodeArrayStart(2) } else { yynn1228 = 2 for _, b := range yyq1228 { if b { yynn1228++ } } r.EncodeMapStart(yynn1228) yynn1228 = 0 } if yyr1228 || yy2arr1228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1230 := z.EncBinary() _ = yym1230 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1231 := z.EncBinary() _ = yym1231 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1228 || yy2arr1228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1233 := z.EncBinary() _ = yym1233 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1234 := z.EncBinary() _ = yym1234 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1228 || yy2arr1228 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *SecretKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1235 := z.DecBinary() _ = yym1235 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1236 := r.ContainerType() if yyct1236 == codecSelferValueTypeMap1234 { yyl1236 := r.ReadMapStart() if yyl1236 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1236, d) } } else if yyct1236 == codecSelferValueTypeArray1234 { yyl1236 := r.ReadArrayStart() if yyl1236 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1236, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1237Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1237Slc var yyhl1237 bool = l >= 0 for yyj1237 := 0; ; yyj1237++ { if yyhl1237 { if yyj1237 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1237Slc = r.DecodeBytes(yys1237Slc, true, true) yys1237 := string(yys1237Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1237 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "key": if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1237) } // end switch yys1237 } // end for yyj1237 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1240 int var yyb1240 bool var yyhl1240 bool = l >= 0 yyj1240++ if yyhl1240 { yyb1240 = yyj1240 > l } else { yyb1240 = r.CheckBreak() } if yyb1240 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1240++ if yyhl1240 { yyb1240 = yyj1240 > l } else { yyb1240 = r.CheckBreak() } if yyb1240 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } for { yyj1240++ if yyhl1240 { yyb1240 = yyj1240 > l } else { yyb1240 = r.CheckBreak() } if yyb1240 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1240-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1243 := z.EncBinary() _ = yym1243 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1244 := !z.EncBinary() yy2arr1244 := z.EncBasicHandle().StructToArray var yyq1244 [2]bool _, _, _ = yysep1244, yyq1244, yy2arr1244 const yyr1244 bool = false var yynn1244 int if yyr1244 || yy2arr1244 { r.EncodeArrayStart(2) } else { yynn1244 = 2 for _, b := range yyq1244 { if b { yynn1244++ } } r.EncodeMapStart(yynn1244) yynn1244 = 0 } if yyr1244 || yy2arr1244 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1246 := z.EncBinary() _ = yym1246 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1247 := z.EncBinary() _ = yym1247 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1244 || yy2arr1244 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1249 := z.EncBinary() _ = yym1249 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1250 := z.EncBinary() _ = yym1250 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } if yyr1244 || yy2arr1244 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *HTTPHeader) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1251 := z.DecBinary() _ = yym1251 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1252 := r.ContainerType() if yyct1252 == codecSelferValueTypeMap1234 { yyl1252 := r.ReadMapStart() if yyl1252 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1252, d) } } else if yyct1252 == codecSelferValueTypeArray1234 { yyl1252 := r.ReadArrayStart() if yyl1252 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1252, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1253Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1253Slc var yyhl1253 bool = l >= 0 for yyj1253 := 0; ; yyj1253++ { if yyhl1253 { if yyj1253 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1253Slc = r.DecodeBytes(yys1253Slc, true, true) yys1253 := string(yys1253Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1253 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "value": if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1253) } // end switch yys1253 } // end for yyj1253 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1256 int var yyb1256 bool var yyhl1256 bool = l >= 0 yyj1256++ if yyhl1256 { yyb1256 = yyj1256 > l } else { yyb1256 = r.CheckBreak() } if yyb1256 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1256++ if yyhl1256 { yyb1256 = yyj1256 > l } else { yyb1256 = r.CheckBreak() } if yyb1256 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } for { yyj1256++ if yyhl1256 { yyb1256 = yyj1256 > l } else { yyb1256 = r.CheckBreak() } if yyb1256 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1256-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1259 := z.EncBinary() _ = yym1259 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1260 := !z.EncBinary() yy2arr1260 := z.EncBasicHandle().StructToArray var yyq1260 [5]bool _, _, _ = yysep1260, yyq1260, yy2arr1260 const yyr1260 bool = false yyq1260[0] = x.Path != "" yyq1260[1] = true yyq1260[2] = x.Host != "" yyq1260[3] = x.Scheme != "" yyq1260[4] = len(x.HTTPHeaders) != 0 var yynn1260 int if yyr1260 || yy2arr1260 { r.EncodeArrayStart(5) } else { yynn1260 = 0 for _, b := range yyq1260 { if b { yynn1260++ } } r.EncodeMapStart(yynn1260) yynn1260 = 0 } if yyr1260 || yy2arr1260 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1260[0] { yym1262 := z.EncBinary() _ = yym1262 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1260[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1263 := z.EncBinary() _ = yym1263 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } if yyr1260 || yy2arr1260 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1260[1] { yy1265 := &x.Port yym1266 := z.EncBinary() _ = yym1266 if false { } else if z.HasExtensions() && z.EncExt(yy1265) { } else if !yym1266 && z.IsJSONHandle() { z.EncJSONMarshal(yy1265) } else { z.EncFallback(yy1265) } } else { r.EncodeNil() } } else { if yyq1260[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1267 := &x.Port yym1268 := z.EncBinary() _ = yym1268 if false { } else if z.HasExtensions() && z.EncExt(yy1267) { } else if !yym1268 && z.IsJSONHandle() { z.EncJSONMarshal(yy1267) } else { z.EncFallback(yy1267) } } } if yyr1260 || yy2arr1260 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1260[2] { yym1270 := z.EncBinary() _ = yym1270 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1260[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1271 := z.EncBinary() _ = yym1271 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } if yyr1260 || yy2arr1260 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1260[3] { x.Scheme.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1260[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scheme")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Scheme.CodecEncodeSelf(e) } } if yyr1260 || yy2arr1260 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1260[4] { if x.HTTPHeaders == nil { r.EncodeNil() } else { yym1274 := z.EncBinary() _ = yym1274 if false { } else { h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) } } } else { r.EncodeNil() } } else { if yyq1260[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpHeaders")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HTTPHeaders == nil { r.EncodeNil() } else { yym1275 := z.EncBinary() _ = yym1275 if false { } else { h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) } } } } if yyr1260 || yy2arr1260 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *HTTPGetAction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1276 := z.DecBinary() _ = yym1276 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1277 := r.ContainerType() if yyct1277 == codecSelferValueTypeMap1234 { yyl1277 := r.ReadMapStart() if yyl1277 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1277, d) } } else if yyct1277 == codecSelferValueTypeArray1234 { yyl1277 := r.ReadArrayStart() if yyl1277 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1277, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1278Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1278Slc var yyhl1278 bool = l >= 0 for yyj1278 := 0; ; yyj1278++ { if yyhl1278 { if yyj1278 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1278Slc = r.DecodeBytes(yys1278Slc, true, true) yys1278 := string(yys1278Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1278 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "port": if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { yyv1280 := &x.Port yym1281 := z.DecBinary() _ = yym1281 if false { } else if z.HasExtensions() && z.DecExt(yyv1280) { } else if !yym1281 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1280) } else { z.DecFallback(yyv1280, false) } } case "host": if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } case "scheme": if r.TryDecodeAsNil() { x.Scheme = "" } else { x.Scheme = URIScheme(r.DecodeString()) } case "httpHeaders": if r.TryDecodeAsNil() { x.HTTPHeaders = nil } else { yyv1284 := &x.HTTPHeaders yym1285 := z.DecBinary() _ = yym1285 if false { } else { h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1284), d) } } default: z.DecStructFieldNotFound(-1, yys1278) } // end switch yys1278 } // end for yyj1278 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1286 int var yyb1286 bool var yyhl1286 bool = l >= 0 yyj1286++ if yyhl1286 { yyb1286 = yyj1286 > l } else { yyb1286 = r.CheckBreak() } if yyb1286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj1286++ if yyhl1286 { yyb1286 = yyj1286 > l } else { yyb1286 = r.CheckBreak() } if yyb1286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { yyv1288 := &x.Port yym1289 := z.DecBinary() _ = yym1289 if false { } else if z.HasExtensions() && z.DecExt(yyv1288) { } else if !yym1289 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1288) } else { z.DecFallback(yyv1288, false) } } yyj1286++ if yyhl1286 { yyb1286 = yyj1286 > l } else { yyb1286 = r.CheckBreak() } if yyb1286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } yyj1286++ if yyhl1286 { yyb1286 = yyj1286 > l } else { yyb1286 = r.CheckBreak() } if yyb1286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Scheme = "" } else { x.Scheme = URIScheme(r.DecodeString()) } yyj1286++ if yyhl1286 { yyb1286 = yyj1286 > l } else { yyb1286 = r.CheckBreak() } if yyb1286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HTTPHeaders = nil } else { yyv1292 := &x.HTTPHeaders yym1293 := z.DecBinary() _ = yym1293 if false { } else { h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1292), d) } } for { yyj1286++ if yyhl1286 { yyb1286 = yyj1286 > l } else { yyb1286 = r.CheckBreak() } if yyb1286 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1286-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1294 := z.EncBinary() _ = yym1294 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *URIScheme) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1295 := z.DecBinary() _ = yym1295 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *TCPSocketAction) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1296 := z.EncBinary() _ = yym1296 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1297 := !z.EncBinary() yy2arr1297 := z.EncBasicHandle().StructToArray var yyq1297 [1]bool _, _, _ = yysep1297, yyq1297, yy2arr1297 const yyr1297 bool = false yyq1297[0] = true var yynn1297 int if yyr1297 || yy2arr1297 { r.EncodeArrayStart(1) } else { yynn1297 = 0 for _, b := range yyq1297 { if b { yynn1297++ } } r.EncodeMapStart(yynn1297) yynn1297 = 0 } if yyr1297 || yy2arr1297 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1297[0] { yy1299 := &x.Port yym1300 := z.EncBinary() _ = yym1300 if false { } else if z.HasExtensions() && z.EncExt(yy1299) { } else if !yym1300 && z.IsJSONHandle() { z.EncJSONMarshal(yy1299) } else { z.EncFallback(yy1299) } } else { r.EncodeNil() } } else { if yyq1297[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1301 := &x.Port yym1302 := z.EncBinary() _ = yym1302 if false { } else if z.HasExtensions() && z.EncExt(yy1301) { } else if !yym1302 && z.IsJSONHandle() { z.EncJSONMarshal(yy1301) } else { z.EncFallback(yy1301) } } } if yyr1297 || yy2arr1297 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *TCPSocketAction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1303 := z.DecBinary() _ = yym1303 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1304 := r.ContainerType() if yyct1304 == codecSelferValueTypeMap1234 { yyl1304 := r.ReadMapStart() if yyl1304 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1304, d) } } else if yyct1304 == codecSelferValueTypeArray1234 { yyl1304 := r.ReadArrayStart() if yyl1304 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1304, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *TCPSocketAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1305Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1305Slc var yyhl1305 bool = l >= 0 for yyj1305 := 0; ; yyj1305++ { if yyhl1305 { if yyj1305 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1305Slc = r.DecodeBytes(yys1305Slc, true, true) yys1305 := string(yys1305Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1305 { case "port": if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { yyv1306 := &x.Port yym1307 := z.DecBinary() _ = yym1307 if false { } else if z.HasExtensions() && z.DecExt(yyv1306) { } else if !yym1307 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1306) } else { z.DecFallback(yyv1306, false) } } default: z.DecStructFieldNotFound(-1, yys1305) } // end switch yys1305 } // end for yyj1305 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *TCPSocketAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1308 int var yyb1308 bool var yyhl1308 bool = l >= 0 yyj1308++ if yyhl1308 { yyb1308 = yyj1308 > l } else { yyb1308 = r.CheckBreak() } if yyb1308 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { yyv1309 := &x.Port yym1310 := z.DecBinary() _ = yym1310 if false { } else if z.HasExtensions() && z.DecExt(yyv1309) { } else if !yym1310 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1309) } else { z.DecFallback(yyv1309, false) } } for { yyj1308++ if yyhl1308 { yyb1308 = yyj1308 > l } else { yyb1308 = r.CheckBreak() } if yyb1308 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1308-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1311 := z.EncBinary() _ = yym1311 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1312 := !z.EncBinary() yy2arr1312 := z.EncBasicHandle().StructToArray var yyq1312 [1]bool _, _, _ = yysep1312, yyq1312, yy2arr1312 const yyr1312 bool = false yyq1312[0] = len(x.Command) != 0 var yynn1312 int if yyr1312 || yy2arr1312 { r.EncodeArrayStart(1) } else { yynn1312 = 0 for _, b := range yyq1312 { if b { yynn1312++ } } r.EncodeMapStart(yynn1312) yynn1312 = 0 } if yyr1312 || yy2arr1312 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1312[0] { if x.Command == nil { r.EncodeNil() } else { yym1314 := z.EncBinary() _ = yym1314 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } else { r.EncodeNil() } } else { if yyq1312[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { yym1315 := z.EncBinary() _ = yym1315 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } } if yyr1312 || yy2arr1312 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ExecAction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1316 := z.DecBinary() _ = yym1316 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1317 := r.ContainerType() if yyct1317 == codecSelferValueTypeMap1234 { yyl1317 := r.ReadMapStart() if yyl1317 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1317, d) } } else if yyct1317 == codecSelferValueTypeArray1234 { yyl1317 := r.ReadArrayStart() if yyl1317 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1317, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ExecAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1318Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1318Slc var yyhl1318 bool = l >= 0 for yyj1318 := 0; ; yyj1318++ { if yyhl1318 { if yyj1318 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1318Slc = r.DecodeBytes(yys1318Slc, true, true) yys1318 := string(yys1318Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1318 { case "command": if r.TryDecodeAsNil() { x.Command = nil } else { yyv1319 := &x.Command yym1320 := z.DecBinary() _ = yym1320 if false { } else { z.F.DecSliceStringX(yyv1319, false, d) } } default: z.DecStructFieldNotFound(-1, yys1318) } // end switch yys1318 } // end for yyj1318 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ExecAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1321 int var yyb1321 bool var yyhl1321 bool = l >= 0 yyj1321++ if yyhl1321 { yyb1321 = yyj1321 > l } else { yyb1321 = r.CheckBreak() } if yyb1321 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv1322 := &x.Command yym1323 := z.DecBinary() _ = yym1323 if false { } else { z.F.DecSliceStringX(yyv1322, false, d) } } for { yyj1321++ if yyhl1321 { yyb1321 = yyj1321 > l } else { yyb1321 = r.CheckBreak() } if yyb1321 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1321-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1324 := z.EncBinary() _ = yym1324 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1325 := !z.EncBinary() yy2arr1325 := z.EncBasicHandle().StructToArray var yyq1325 [8]bool _, _, _ = yysep1325, yyq1325, yy2arr1325 const yyr1325 bool = false yyq1325[0] = x.Handler.Exec != nil && x.Exec != nil yyq1325[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil yyq1325[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil yyq1325[3] = x.InitialDelaySeconds != 0 yyq1325[4] = x.TimeoutSeconds != 0 yyq1325[5] = x.PeriodSeconds != 0 yyq1325[6] = x.SuccessThreshold != 0 yyq1325[7] = x.FailureThreshold != 0 var yynn1325 int if yyr1325 || yy2arr1325 { r.EncodeArrayStart(8) } else { yynn1325 = 0 for _, b := range yyq1325 { if b { yynn1325++ } } r.EncodeMapStart(yynn1325) yynn1325 = 0 } var yyn1326 bool if x.Handler.Exec == nil { yyn1326 = true goto LABEL1326 } LABEL1326: if yyr1325 || yy2arr1325 { if yyn1326 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1325[0] { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq1325[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1326 { r.EncodeNil() } else { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } } } var yyn1327 bool if x.Handler.HTTPGet == nil { yyn1327 = true goto LABEL1327 } LABEL1327: if yyr1325 || yy2arr1325 { if yyn1327 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1325[1] { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq1325[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1327 { r.EncodeNil() } else { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } } } var yyn1328 bool if x.Handler.TCPSocket == nil { yyn1328 = true goto LABEL1328 } LABEL1328: if yyr1325 || yy2arr1325 { if yyn1328 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1325[2] { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq1325[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1328 { r.EncodeNil() } else { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } } } if yyr1325 || yy2arr1325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1325[3] { yym1330 := z.EncBinary() _ = yym1330 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } else { r.EncodeInt(0) } } else { if yyq1325[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1331 := z.EncBinary() _ = yym1331 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } } if yyr1325 || yy2arr1325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1325[4] { yym1333 := z.EncBinary() _ = yym1333 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } else { r.EncodeInt(0) } } else { if yyq1325[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1334 := z.EncBinary() _ = yym1334 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } } if yyr1325 || yy2arr1325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1325[5] { yym1336 := z.EncBinary() _ = yym1336 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } else { r.EncodeInt(0) } } else { if yyq1325[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1337 := z.EncBinary() _ = yym1337 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } } if yyr1325 || yy2arr1325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1325[6] { yym1339 := z.EncBinary() _ = yym1339 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } else { r.EncodeInt(0) } } else { if yyq1325[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1340 := z.EncBinary() _ = yym1340 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } } if yyr1325 || yy2arr1325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1325[7] { yym1342 := z.EncBinary() _ = yym1342 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } else { r.EncodeInt(0) } } else { if yyq1325[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1343 := z.EncBinary() _ = yym1343 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } } if yyr1325 || yy2arr1325 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Probe) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1344 := z.DecBinary() _ = yym1344 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1345 := r.ContainerType() if yyct1345 == codecSelferValueTypeMap1234 { yyl1345 := r.ReadMapStart() if yyl1345 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1345, d) } } else if yyct1345 == codecSelferValueTypeArray1234 { yyl1345 := r.ReadArrayStart() if yyl1345 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1345, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1346Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1346Slc var yyhl1346 bool = l >= 0 for yyj1346 := 0; ; yyj1346++ { if yyhl1346 { if yyj1346 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1346Slc = r.DecodeBytes(yys1346Slc, true, true) yys1346 := string(yys1346Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1346 { case "exec": if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) } if r.TryDecodeAsNil() { if x.Exec != nil { x.Exec = nil } } else { if x.Exec == nil { x.Exec = new(ExecAction) } x.Exec.CodecDecodeSelf(d) } case "httpGet": if x.Handler.HTTPGet == nil { x.Handler.HTTPGet = new(HTTPGetAction) } if r.TryDecodeAsNil() { if x.HTTPGet != nil { x.HTTPGet = nil } } else { if x.HTTPGet == nil { x.HTTPGet = new(HTTPGetAction) } x.HTTPGet.CodecDecodeSelf(d) } case "tcpSocket": if x.Handler.TCPSocket == nil { x.Handler.TCPSocket = new(TCPSocketAction) } if r.TryDecodeAsNil() { if x.TCPSocket != nil { x.TCPSocket = nil } } else { if x.TCPSocket == nil { x.TCPSocket = new(TCPSocketAction) } x.TCPSocket.CodecDecodeSelf(d) } case "initialDelaySeconds": if r.TryDecodeAsNil() { x.InitialDelaySeconds = 0 } else { x.InitialDelaySeconds = int32(r.DecodeInt(32)) } case "timeoutSeconds": if r.TryDecodeAsNil() { x.TimeoutSeconds = 0 } else { x.TimeoutSeconds = int32(r.DecodeInt(32)) } case "periodSeconds": if r.TryDecodeAsNil() { x.PeriodSeconds = 0 } else { x.PeriodSeconds = int32(r.DecodeInt(32)) } case "successThreshold": if r.TryDecodeAsNil() { x.SuccessThreshold = 0 } else { x.SuccessThreshold = int32(r.DecodeInt(32)) } case "failureThreshold": if r.TryDecodeAsNil() { x.FailureThreshold = 0 } else { x.FailureThreshold = int32(r.DecodeInt(32)) } default: z.DecStructFieldNotFound(-1, yys1346) } // end switch yys1346 } // end for yyj1346 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1355 int var yyb1355 bool var yyhl1355 bool = l >= 0 if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) } yyj1355++ if yyhl1355 { yyb1355 = yyj1355 > l } else { yyb1355 = r.CheckBreak() } if yyb1355 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Exec != nil { x.Exec = nil } } else { if x.Exec == nil { x.Exec = new(ExecAction) } x.Exec.CodecDecodeSelf(d) } if x.Handler.HTTPGet == nil { x.Handler.HTTPGet = new(HTTPGetAction) } yyj1355++ if yyhl1355 { yyb1355 = yyj1355 > l } else { yyb1355 = r.CheckBreak() } if yyb1355 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.HTTPGet != nil { x.HTTPGet = nil } } else { if x.HTTPGet == nil { x.HTTPGet = new(HTTPGetAction) } x.HTTPGet.CodecDecodeSelf(d) } if x.Handler.TCPSocket == nil { x.Handler.TCPSocket = new(TCPSocketAction) } yyj1355++ if yyhl1355 { yyb1355 = yyj1355 > l } else { yyb1355 = r.CheckBreak() } if yyb1355 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.TCPSocket != nil { x.TCPSocket = nil } } else { if x.TCPSocket == nil { x.TCPSocket = new(TCPSocketAction) } x.TCPSocket.CodecDecodeSelf(d) } yyj1355++ if yyhl1355 { yyb1355 = yyj1355 > l } else { yyb1355 = r.CheckBreak() } if yyb1355 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.InitialDelaySeconds = 0 } else { x.InitialDelaySeconds = int32(r.DecodeInt(32)) } yyj1355++ if yyhl1355 { yyb1355 = yyj1355 > l } else { yyb1355 = r.CheckBreak() } if yyb1355 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TimeoutSeconds = 0 } else { x.TimeoutSeconds = int32(r.DecodeInt(32)) } yyj1355++ if yyhl1355 { yyb1355 = yyj1355 > l } else { yyb1355 = r.CheckBreak() } if yyb1355 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PeriodSeconds = 0 } else { x.PeriodSeconds = int32(r.DecodeInt(32)) } yyj1355++ if yyhl1355 { yyb1355 = yyj1355 > l } else { yyb1355 = r.CheckBreak() } if yyb1355 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SuccessThreshold = 0 } else { x.SuccessThreshold = int32(r.DecodeInt(32)) } yyj1355++ if yyhl1355 { yyb1355 = yyj1355 > l } else { yyb1355 = r.CheckBreak() } if yyb1355 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FailureThreshold = 0 } else { x.FailureThreshold = int32(r.DecodeInt(32)) } for { yyj1355++ if yyhl1355 { yyb1355 = yyj1355 > l } else { yyb1355 = r.CheckBreak() } if yyb1355 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1355-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1364 := z.EncBinary() _ = yym1364 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *PullPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1365 := z.DecBinary() _ = yym1365 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x Capability) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1366 := z.EncBinary() _ = yym1366 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *Capability) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1367 := z.DecBinary() _ = yym1367 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1368 := z.EncBinary() _ = yym1368 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1369 := !z.EncBinary() yy2arr1369 := z.EncBasicHandle().StructToArray var yyq1369 [2]bool _, _, _ = yysep1369, yyq1369, yy2arr1369 const yyr1369 bool = false yyq1369[0] = len(x.Add) != 0 yyq1369[1] = len(x.Drop) != 0 var yynn1369 int if yyr1369 || yy2arr1369 { r.EncodeArrayStart(2) } else { yynn1369 = 0 for _, b := range yyq1369 { if b { yynn1369++ } } r.EncodeMapStart(yynn1369) yynn1369 = 0 } if yyr1369 || yy2arr1369 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1369[0] { if x.Add == nil { r.EncodeNil() } else { yym1371 := z.EncBinary() _ = yym1371 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) } } } else { r.EncodeNil() } } else { if yyq1369[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("add")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Add == nil { r.EncodeNil() } else { yym1372 := z.EncBinary() _ = yym1372 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) } } } } if yyr1369 || yy2arr1369 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1369[1] { if x.Drop == nil { r.EncodeNil() } else { yym1374 := z.EncBinary() _ = yym1374 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) } } } else { r.EncodeNil() } } else { if yyq1369[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("drop")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Drop == nil { r.EncodeNil() } else { yym1375 := z.EncBinary() _ = yym1375 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) } } } } if yyr1369 || yy2arr1369 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Capabilities) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1376 := z.DecBinary() _ = yym1376 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1377 := r.ContainerType() if yyct1377 == codecSelferValueTypeMap1234 { yyl1377 := r.ReadMapStart() if yyl1377 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1377, d) } } else if yyct1377 == codecSelferValueTypeArray1234 { yyl1377 := r.ReadArrayStart() if yyl1377 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1377, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Capabilities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1378Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1378Slc var yyhl1378 bool = l >= 0 for yyj1378 := 0; ; yyj1378++ { if yyhl1378 { if yyj1378 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1378Slc = r.DecodeBytes(yys1378Slc, true, true) yys1378 := string(yys1378Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1378 { case "add": if r.TryDecodeAsNil() { x.Add = nil } else { yyv1379 := &x.Add yym1380 := z.DecBinary() _ = yym1380 if false { } else { h.decSliceCapability((*[]Capability)(yyv1379), d) } } case "drop": if r.TryDecodeAsNil() { x.Drop = nil } else { yyv1381 := &x.Drop yym1382 := z.DecBinary() _ = yym1382 if false { } else { h.decSliceCapability((*[]Capability)(yyv1381), d) } } default: z.DecStructFieldNotFound(-1, yys1378) } // end switch yys1378 } // end for yyj1378 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Capabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1383 int var yyb1383 bool var yyhl1383 bool = l >= 0 yyj1383++ if yyhl1383 { yyb1383 = yyj1383 > l } else { yyb1383 = r.CheckBreak() } if yyb1383 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Add = nil } else { yyv1384 := &x.Add yym1385 := z.DecBinary() _ = yym1385 if false { } else { h.decSliceCapability((*[]Capability)(yyv1384), d) } } yyj1383++ if yyhl1383 { yyb1383 = yyj1383 > l } else { yyb1383 = r.CheckBreak() } if yyb1383 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Drop = nil } else { yyv1386 := &x.Drop yym1387 := z.DecBinary() _ = yym1387 if false { } else { h.decSliceCapability((*[]Capability)(yyv1386), d) } } for { yyj1383++ if yyhl1383 { yyb1383 = yyj1383 > l } else { yyb1383 = r.CheckBreak() } if yyb1383 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1383-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1388 := z.EncBinary() _ = yym1388 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1389 := !z.EncBinary() yy2arr1389 := z.EncBasicHandle().StructToArray var yyq1389 [2]bool _, _, _ = yysep1389, yyq1389, yy2arr1389 const yyr1389 bool = false yyq1389[0] = len(x.Limits) != 0 yyq1389[1] = len(x.Requests) != 0 var yynn1389 int if yyr1389 || yy2arr1389 { r.EncodeArrayStart(2) } else { yynn1389 = 0 for _, b := range yyq1389 { if b { yynn1389++ } } r.EncodeMapStart(yynn1389) yynn1389 = 0 } if yyr1389 || yy2arr1389 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1389[0] { if x.Limits == nil { r.EncodeNil() } else { x.Limits.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1389[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("limits")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Limits == nil { r.EncodeNil() } else { x.Limits.CodecEncodeSelf(e) } } } if yyr1389 || yy2arr1389 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1389[1] { if x.Requests == nil { r.EncodeNil() } else { x.Requests.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1389[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requests")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Requests == nil { r.EncodeNil() } else { x.Requests.CodecEncodeSelf(e) } } } if yyr1389 || yy2arr1389 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ResourceRequirements) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1392 := z.DecBinary() _ = yym1392 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1393 := r.ContainerType() if yyct1393 == codecSelferValueTypeMap1234 { yyl1393 := r.ReadMapStart() if yyl1393 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1393, d) } } else if yyct1393 == codecSelferValueTypeArray1234 { yyl1393 := r.ReadArrayStart() if yyl1393 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1393, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ResourceRequirements) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1394Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1394Slc var yyhl1394 bool = l >= 0 for yyj1394 := 0; ; yyj1394++ { if yyhl1394 { if yyj1394 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1394Slc = r.DecodeBytes(yys1394Slc, true, true) yys1394 := string(yys1394Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1394 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { yyv1395 := &x.Limits yyv1395.CodecDecodeSelf(d) } case "requests": if r.TryDecodeAsNil() { x.Requests = nil } else { yyv1396 := &x.Requests yyv1396.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1394) } // end switch yys1394 } // end for yyj1394 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1397 int var yyb1397 bool var yyhl1397 bool = l >= 0 yyj1397++ if yyhl1397 { yyb1397 = yyj1397 > l } else { yyb1397 = r.CheckBreak() } if yyb1397 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Limits = nil } else { yyv1398 := &x.Limits yyv1398.CodecDecodeSelf(d) } yyj1397++ if yyhl1397 { yyb1397 = yyj1397 > l } else { yyb1397 = r.CheckBreak() } if yyb1397 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Requests = nil } else { yyv1399 := &x.Requests yyv1399.CodecDecodeSelf(d) } for { yyj1397++ if yyhl1397 { yyb1397 = yyj1397 > l } else { yyb1397 = r.CheckBreak() } if yyb1397 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1397-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1400 := z.EncBinary() _ = yym1400 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1401 := !z.EncBinary() yy2arr1401 := z.EncBasicHandle().StructToArray var yyq1401 [18]bool _, _, _ = yysep1401, yyq1401, yy2arr1401 const yyr1401 bool = false yyq1401[2] = len(x.Command) != 0 yyq1401[3] = len(x.Args) != 0 yyq1401[4] = x.WorkingDir != "" yyq1401[5] = len(x.Ports) != 0 yyq1401[6] = len(x.Env) != 0 yyq1401[7] = true yyq1401[8] = len(x.VolumeMounts) != 0 yyq1401[9] = x.LivenessProbe != nil yyq1401[10] = x.ReadinessProbe != nil yyq1401[11] = x.Lifecycle != nil yyq1401[12] = x.TerminationMessagePath != "" yyq1401[14] = x.SecurityContext != nil yyq1401[15] = x.Stdin != false yyq1401[16] = x.StdinOnce != false yyq1401[17] = x.TTY != false var yynn1401 int if yyr1401 || yy2arr1401 { r.EncodeArrayStart(18) } else { yynn1401 = 3 for _, b := range yyq1401 { if b { yynn1401++ } } r.EncodeMapStart(yynn1401) yynn1401 = 0 } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1403 := z.EncBinary() _ = yym1403 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1404 := z.EncBinary() _ = yym1404 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1406 := z.EncBinary() _ = yym1406 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1407 := z.EncBinary() _ = yym1407 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1401[2] { if x.Command == nil { r.EncodeNil() } else { yym1409 := z.EncBinary() _ = yym1409 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } else { r.EncodeNil() } } else { if yyq1401[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { yym1410 := z.EncBinary() _ = yym1410 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1401[3] { if x.Args == nil { r.EncodeNil() } else { yym1412 := z.EncBinary() _ = yym1412 if false { } else { z.F.EncSliceStringV(x.Args, false, e) } } } else { r.EncodeNil() } } else { if yyq1401[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("args")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Args == nil { r.EncodeNil() } else { yym1413 := z.EncBinary() _ = yym1413 if false { } else { z.F.EncSliceStringV(x.Args, false, e) } } } } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1401[4] { yym1415 := z.EncBinary() _ = yym1415 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1401[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("workingDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1416 := z.EncBinary() _ = yym1416 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1401[5] { if x.Ports == nil { r.EncodeNil() } else { yym1418 := z.EncBinary() _ = yym1418 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) } } } else { r.EncodeNil() } } else { if yyq1401[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { yym1419 := z.EncBinary() _ = yym1419 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) } } } } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1401[6] { if x.Env == nil { r.EncodeNil() } else { yym1421 := z.EncBinary() _ = yym1421 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) } } } else { r.EncodeNil() } } else { if yyq1401[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("env")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Env == nil { r.EncodeNil() } else { yym1422 := z.EncBinary() _ = yym1422 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) } } } } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1401[7] { yy1424 := &x.Resources yy1424.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1401[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1425 := &x.Resources yy1425.CodecEncodeSelf(e) } } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1401[8] { if x.VolumeMounts == nil { r.EncodeNil() } else { yym1427 := z.EncBinary() _ = yym1427 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) } } } else { r.EncodeNil() } } else { if yyq1401[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeMounts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumeMounts == nil { r.EncodeNil() } else { yym1428 := z.EncBinary() _ = yym1428 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) } } } } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1401[9] { if x.LivenessProbe == nil { r.EncodeNil() } else { x.LivenessProbe.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1401[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("livenessProbe")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LivenessProbe == nil { r.EncodeNil() } else { x.LivenessProbe.CodecEncodeSelf(e) } } } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1401[10] { if x.ReadinessProbe == nil { r.EncodeNil() } else { x.ReadinessProbe.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1401[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readinessProbe")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ReadinessProbe == nil { r.EncodeNil() } else { x.ReadinessProbe.CodecEncodeSelf(e) } } } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1401[11] { if x.Lifecycle == nil { r.EncodeNil() } else { x.Lifecycle.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1401[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lifecycle")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Lifecycle == nil { r.EncodeNil() } else { x.Lifecycle.CodecEncodeSelf(e) } } } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1401[12] { yym1433 := z.EncBinary() _ = yym1433 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1401[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1434 := z.EncBinary() _ = yym1434 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.ImagePullPolicy.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.ImagePullPolicy.CodecEncodeSelf(e) } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1401[14] { if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1401[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("securityContext")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1401[15] { yym1438 := z.EncBinary() _ = yym1438 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { if yyq1401[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1439 := z.EncBinary() _ = yym1439 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1401[16] { yym1441 := z.EncBinary() _ = yym1441 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } else { r.EncodeBool(false) } } else { if yyq1401[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdinOnce")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1442 := z.EncBinary() _ = yym1442 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1401[17] { yym1444 := z.EncBinary() _ = yym1444 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { r.EncodeBool(false) } } else { if yyq1401[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1445 := z.EncBinary() _ = yym1445 if false { } else { r.EncodeBool(bool(x.TTY)) } } } if yyr1401 || yy2arr1401 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Container) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1446 := z.DecBinary() _ = yym1446 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1447 := r.ContainerType() if yyct1447 == codecSelferValueTypeMap1234 { yyl1447 := r.ReadMapStart() if yyl1447 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1447, d) } } else if yyct1447 == codecSelferValueTypeArray1234 { yyl1447 := r.ReadArrayStart() if yyl1447 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1447, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1448Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1448Slc var yyhl1448 bool = l >= 0 for yyj1448 := 0; ; yyj1448++ { if yyhl1448 { if yyj1448 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1448Slc = r.DecodeBytes(yys1448Slc, true, true) yys1448 := string(yys1448Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1448 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "image": if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } case "command": if r.TryDecodeAsNil() { x.Command = nil } else { yyv1451 := &x.Command yym1452 := z.DecBinary() _ = yym1452 if false { } else { z.F.DecSliceStringX(yyv1451, false, d) } } case "args": if r.TryDecodeAsNil() { x.Args = nil } else { yyv1453 := &x.Args yym1454 := z.DecBinary() _ = yym1454 if false { } else { z.F.DecSliceStringX(yyv1453, false, d) } } case "workingDir": if r.TryDecodeAsNil() { x.WorkingDir = "" } else { x.WorkingDir = string(r.DecodeString()) } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1456 := &x.Ports yym1457 := z.DecBinary() _ = yym1457 if false { } else { h.decSliceContainerPort((*[]ContainerPort)(yyv1456), d) } } case "env": if r.TryDecodeAsNil() { x.Env = nil } else { yyv1458 := &x.Env yym1459 := z.DecBinary() _ = yym1459 if false { } else { h.decSliceEnvVar((*[]EnvVar)(yyv1458), d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv1460 := &x.Resources yyv1460.CodecDecodeSelf(d) } case "volumeMounts": if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { yyv1461 := &x.VolumeMounts yym1462 := z.DecBinary() _ = yym1462 if false { } else { h.decSliceVolumeMount((*[]VolumeMount)(yyv1461), d) } } case "livenessProbe": if r.TryDecodeAsNil() { if x.LivenessProbe != nil { x.LivenessProbe = nil } } else { if x.LivenessProbe == nil { x.LivenessProbe = new(Probe) } x.LivenessProbe.CodecDecodeSelf(d) } case "readinessProbe": if r.TryDecodeAsNil() { if x.ReadinessProbe != nil { x.ReadinessProbe = nil } } else { if x.ReadinessProbe == nil { x.ReadinessProbe = new(Probe) } x.ReadinessProbe.CodecDecodeSelf(d) } case "lifecycle": if r.TryDecodeAsNil() { if x.Lifecycle != nil { x.Lifecycle = nil } } else { if x.Lifecycle == nil { x.Lifecycle = new(Lifecycle) } x.Lifecycle.CodecDecodeSelf(d) } case "terminationMessagePath": if r.TryDecodeAsNil() { x.TerminationMessagePath = "" } else { x.TerminationMessagePath = string(r.DecodeString()) } case "imagePullPolicy": if r.TryDecodeAsNil() { x.ImagePullPolicy = "" } else { x.ImagePullPolicy = PullPolicy(r.DecodeString()) } case "securityContext": if r.TryDecodeAsNil() { if x.SecurityContext != nil { x.SecurityContext = nil } } else { if x.SecurityContext == nil { x.SecurityContext = new(SecurityContext) } x.SecurityContext.CodecDecodeSelf(d) } case "stdin": if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } case "stdinOnce": if r.TryDecodeAsNil() { x.StdinOnce = false } else { x.StdinOnce = bool(r.DecodeBool()) } case "tty": if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys1448) } // end switch yys1448 } // end for yyj1448 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1472 int var yyb1472 bool var yyhl1472 bool = l >= 0 yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv1475 := &x.Command yym1476 := z.DecBinary() _ = yym1476 if false { } else { z.F.DecSliceStringX(yyv1475, false, d) } } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Args = nil } else { yyv1477 := &x.Args yym1478 := z.DecBinary() _ = yym1478 if false { } else { z.F.DecSliceStringX(yyv1477, false, d) } } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.WorkingDir = "" } else { x.WorkingDir = string(r.DecodeString()) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1480 := &x.Ports yym1481 := z.DecBinary() _ = yym1481 if false { } else { h.decSliceContainerPort((*[]ContainerPort)(yyv1480), d) } } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Env = nil } else { yyv1482 := &x.Env yym1483 := z.DecBinary() _ = yym1483 if false { } else { h.decSliceEnvVar((*[]EnvVar)(yyv1482), d) } } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv1484 := &x.Resources yyv1484.CodecDecodeSelf(d) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { yyv1485 := &x.VolumeMounts yym1486 := z.DecBinary() _ = yym1486 if false { } else { h.decSliceVolumeMount((*[]VolumeMount)(yyv1485), d) } } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.LivenessProbe != nil { x.LivenessProbe = nil } } else { if x.LivenessProbe == nil { x.LivenessProbe = new(Probe) } x.LivenessProbe.CodecDecodeSelf(d) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ReadinessProbe != nil { x.ReadinessProbe = nil } } else { if x.ReadinessProbe == nil { x.ReadinessProbe = new(Probe) } x.ReadinessProbe.CodecDecodeSelf(d) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Lifecycle != nil { x.Lifecycle = nil } } else { if x.Lifecycle == nil { x.Lifecycle = new(Lifecycle) } x.Lifecycle.CodecDecodeSelf(d) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TerminationMessagePath = "" } else { x.TerminationMessagePath = string(r.DecodeString()) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullPolicy = "" } else { x.ImagePullPolicy = PullPolicy(r.DecodeString()) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SecurityContext != nil { x.SecurityContext = nil } } else { if x.SecurityContext == nil { x.SecurityContext = new(SecurityContext) } x.SecurityContext.CodecDecodeSelf(d) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StdinOnce = false } else { x.StdinOnce = bool(r.DecodeBool()) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } for { yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1472-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1496 := z.EncBinary() _ = yym1496 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1497 := !z.EncBinary() yy2arr1497 := z.EncBasicHandle().StructToArray var yyq1497 [3]bool _, _, _ = yysep1497, yyq1497, yy2arr1497 const yyr1497 bool = false yyq1497[0] = x.Exec != nil yyq1497[1] = x.HTTPGet != nil yyq1497[2] = x.TCPSocket != nil var yynn1497 int if yyr1497 || yy2arr1497 { r.EncodeArrayStart(3) } else { yynn1497 = 0 for _, b := range yyq1497 { if b { yynn1497++ } } r.EncodeMapStart(yynn1497) yynn1497 = 0 } if yyr1497 || yy2arr1497 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1497[0] { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1497[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } } if yyr1497 || yy2arr1497 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1497[1] { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1497[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } } if yyr1497 || yy2arr1497 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1497[2] { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1497[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } } if yyr1497 || yy2arr1497 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Handler) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1501 := z.DecBinary() _ = yym1501 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1502 := r.ContainerType() if yyct1502 == codecSelferValueTypeMap1234 { yyl1502 := r.ReadMapStart() if yyl1502 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1502, d) } } else if yyct1502 == codecSelferValueTypeArray1234 { yyl1502 := r.ReadArrayStart() if yyl1502 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1502, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1503Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1503Slc var yyhl1503 bool = l >= 0 for yyj1503 := 0; ; yyj1503++ { if yyhl1503 { if yyj1503 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1503Slc = r.DecodeBytes(yys1503Slc, true, true) yys1503 := string(yys1503Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1503 { case "exec": if r.TryDecodeAsNil() { if x.Exec != nil { x.Exec = nil } } else { if x.Exec == nil { x.Exec = new(ExecAction) } x.Exec.CodecDecodeSelf(d) } case "httpGet": if r.TryDecodeAsNil() { if x.HTTPGet != nil { x.HTTPGet = nil } } else { if x.HTTPGet == nil { x.HTTPGet = new(HTTPGetAction) } x.HTTPGet.CodecDecodeSelf(d) } case "tcpSocket": if r.TryDecodeAsNil() { if x.TCPSocket != nil { x.TCPSocket = nil } } else { if x.TCPSocket == nil { x.TCPSocket = new(TCPSocketAction) } x.TCPSocket.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1503) } // end switch yys1503 } // end for yyj1503 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1507 int var yyb1507 bool var yyhl1507 bool = l >= 0 yyj1507++ if yyhl1507 { yyb1507 = yyj1507 > l } else { yyb1507 = r.CheckBreak() } if yyb1507 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Exec != nil { x.Exec = nil } } else { if x.Exec == nil { x.Exec = new(ExecAction) } x.Exec.CodecDecodeSelf(d) } yyj1507++ if yyhl1507 { yyb1507 = yyj1507 > l } else { yyb1507 = r.CheckBreak() } if yyb1507 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.HTTPGet != nil { x.HTTPGet = nil } } else { if x.HTTPGet == nil { x.HTTPGet = new(HTTPGetAction) } x.HTTPGet.CodecDecodeSelf(d) } yyj1507++ if yyhl1507 { yyb1507 = yyj1507 > l } else { yyb1507 = r.CheckBreak() } if yyb1507 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.TCPSocket != nil { x.TCPSocket = nil } } else { if x.TCPSocket == nil { x.TCPSocket = new(TCPSocketAction) } x.TCPSocket.CodecDecodeSelf(d) } for { yyj1507++ if yyhl1507 { yyb1507 = yyj1507 > l } else { yyb1507 = r.CheckBreak() } if yyb1507 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1507-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1511 := z.EncBinary() _ = yym1511 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1512 := !z.EncBinary() yy2arr1512 := z.EncBasicHandle().StructToArray var yyq1512 [2]bool _, _, _ = yysep1512, yyq1512, yy2arr1512 const yyr1512 bool = false yyq1512[0] = x.PostStart != nil yyq1512[1] = x.PreStop != nil var yynn1512 int if yyr1512 || yy2arr1512 { r.EncodeArrayStart(2) } else { yynn1512 = 0 for _, b := range yyq1512 { if b { yynn1512++ } } r.EncodeMapStart(yynn1512) yynn1512 = 0 } if yyr1512 || yy2arr1512 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1512[0] { if x.PostStart == nil { r.EncodeNil() } else { x.PostStart.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1512[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("postStart")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PostStart == nil { r.EncodeNil() } else { x.PostStart.CodecEncodeSelf(e) } } } if yyr1512 || yy2arr1512 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1512[1] { if x.PreStop == nil { r.EncodeNil() } else { x.PreStop.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1512[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preStop")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreStop == nil { r.EncodeNil() } else { x.PreStop.CodecEncodeSelf(e) } } } if yyr1512 || yy2arr1512 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Lifecycle) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1515 := z.DecBinary() _ = yym1515 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1516 := r.ContainerType() if yyct1516 == codecSelferValueTypeMap1234 { yyl1516 := r.ReadMapStart() if yyl1516 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1516, d) } } else if yyct1516 == codecSelferValueTypeArray1234 { yyl1516 := r.ReadArrayStart() if yyl1516 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1516, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Lifecycle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1517Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1517Slc var yyhl1517 bool = l >= 0 for yyj1517 := 0; ; yyj1517++ { if yyhl1517 { if yyj1517 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1517Slc = r.DecodeBytes(yys1517Slc, true, true) yys1517 := string(yys1517Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1517 { case "postStart": if r.TryDecodeAsNil() { if x.PostStart != nil { x.PostStart = nil } } else { if x.PostStart == nil { x.PostStart = new(Handler) } x.PostStart.CodecDecodeSelf(d) } case "preStop": if r.TryDecodeAsNil() { if x.PreStop != nil { x.PreStop = nil } } else { if x.PreStop == nil { x.PreStop = new(Handler) } x.PreStop.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1517) } // end switch yys1517 } // end for yyj1517 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Lifecycle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1520 int var yyb1520 bool var yyhl1520 bool = l >= 0 yyj1520++ if yyhl1520 { yyb1520 = yyj1520 > l } else { yyb1520 = r.CheckBreak() } if yyb1520 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.PostStart != nil { x.PostStart = nil } } else { if x.PostStart == nil { x.PostStart = new(Handler) } x.PostStart.CodecDecodeSelf(d) } yyj1520++ if yyhl1520 { yyb1520 = yyj1520 > l } else { yyb1520 = r.CheckBreak() } if yyb1520 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.PreStop != nil { x.PreStop = nil } } else { if x.PreStop == nil { x.PreStop = new(Handler) } x.PreStop.CodecDecodeSelf(d) } for { yyj1520++ if yyhl1520 { yyb1520 = yyj1520 > l } else { yyb1520 = r.CheckBreak() } if yyb1520 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1520-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1523 := z.EncBinary() _ = yym1523 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *ConditionStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1524 := z.DecBinary() _ = yym1524 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *ContainerStateWaiting) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1525 := z.EncBinary() _ = yym1525 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1526 := !z.EncBinary() yy2arr1526 := z.EncBasicHandle().StructToArray var yyq1526 [2]bool _, _, _ = yysep1526, yyq1526, yy2arr1526 const yyr1526 bool = false yyq1526[0] = x.Reason != "" yyq1526[1] = x.Message != "" var yynn1526 int if yyr1526 || yy2arr1526 { r.EncodeArrayStart(2) } else { yynn1526 = 0 for _, b := range yyq1526 { if b { yynn1526++ } } r.EncodeMapStart(yynn1526) yynn1526 = 0 } if yyr1526 || yy2arr1526 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1526[0] { yym1528 := z.EncBinary() _ = yym1528 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1526[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1529 := z.EncBinary() _ = yym1529 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1526 || yy2arr1526 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1526[1] { yym1531 := z.EncBinary() _ = yym1531 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1526[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1532 := z.EncBinary() _ = yym1532 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1526 || yy2arr1526 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ContainerStateWaiting) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1533 := z.DecBinary() _ = yym1533 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1534 := r.ContainerType() if yyct1534 == codecSelferValueTypeMap1234 { yyl1534 := r.ReadMapStart() if yyl1534 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1534, d) } } else if yyct1534 == codecSelferValueTypeArray1234 { yyl1534 := r.ReadArrayStart() if yyl1534 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1534, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ContainerStateWaiting) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1535Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1535Slc var yyhl1535 bool = l >= 0 for yyj1535 := 0; ; yyj1535++ { if yyhl1535 { if yyj1535 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1535Slc = r.DecodeBytes(yys1535Slc, true, true) yys1535 := string(yys1535Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1535 { case "reason": if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } case "message": if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1535) } // end switch yys1535 } // end for yyj1535 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ContainerStateWaiting) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1538 int var yyb1538 bool var yyhl1538 bool = l >= 0 yyj1538++ if yyhl1538 { yyb1538 = yyj1538 > l } else { yyb1538 = r.CheckBreak() } if yyb1538 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1538++ if yyhl1538 { yyb1538 = yyj1538 > l } else { yyb1538 = r.CheckBreak() } if yyb1538 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj1538++ if yyhl1538 { yyb1538 = yyj1538 > l } else { yyb1538 = r.CheckBreak() } if yyb1538 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1538-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ContainerStateRunning) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1541 := z.EncBinary() _ = yym1541 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1542 := !z.EncBinary() yy2arr1542 := z.EncBasicHandle().StructToArray var yyq1542 [1]bool _, _, _ = yysep1542, yyq1542, yy2arr1542 const yyr1542 bool = false yyq1542[0] = true var yynn1542 int if yyr1542 || yy2arr1542 { r.EncodeArrayStart(1) } else { yynn1542 = 0 for _, b := range yyq1542 { if b { yynn1542++ } } r.EncodeMapStart(yynn1542) yynn1542 = 0 } if yyr1542 || yy2arr1542 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1542[0] { yy1544 := &x.StartedAt yym1545 := z.EncBinary() _ = yym1545 if false { } else if z.HasExtensions() && z.EncExt(yy1544) { } else if yym1545 { z.EncBinaryMarshal(yy1544) } else if !yym1545 && z.IsJSONHandle() { z.EncJSONMarshal(yy1544) } else { z.EncFallback(yy1544) } } else { r.EncodeNil() } } else { if yyq1542[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1546 := &x.StartedAt yym1547 := z.EncBinary() _ = yym1547 if false { } else if z.HasExtensions() && z.EncExt(yy1546) { } else if yym1547 { z.EncBinaryMarshal(yy1546) } else if !yym1547 && z.IsJSONHandle() { z.EncJSONMarshal(yy1546) } else { z.EncFallback(yy1546) } } } if yyr1542 || yy2arr1542 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ContainerStateRunning) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1548 := z.DecBinary() _ = yym1548 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1549 := r.ContainerType() if yyct1549 == codecSelferValueTypeMap1234 { yyl1549 := r.ReadMapStart() if yyl1549 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1549, d) } } else if yyct1549 == codecSelferValueTypeArray1234 { yyl1549 := r.ReadArrayStart() if yyl1549 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1549, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1550Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1550Slc var yyhl1550 bool = l >= 0 for yyj1550 := 0; ; yyj1550++ { if yyhl1550 { if yyj1550 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1550Slc = r.DecodeBytes(yys1550Slc, true, true) yys1550 := string(yys1550Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1550 { case "startedAt": if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1551 := &x.StartedAt yym1552 := z.DecBinary() _ = yym1552 if false { } else if z.HasExtensions() && z.DecExt(yyv1551) { } else if yym1552 { z.DecBinaryUnmarshal(yyv1551) } else if !yym1552 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1551) } else { z.DecFallback(yyv1551, false) } } default: z.DecStructFieldNotFound(-1, yys1550) } // end switch yys1550 } // end for yyj1550 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ContainerStateRunning) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1553 int var yyb1553 bool var yyhl1553 bool = l >= 0 yyj1553++ if yyhl1553 { yyb1553 = yyj1553 > l } else { yyb1553 = r.CheckBreak() } if yyb1553 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1554 := &x.StartedAt yym1555 := z.DecBinary() _ = yym1555 if false { } else if z.HasExtensions() && z.DecExt(yyv1554) { } else if yym1555 { z.DecBinaryUnmarshal(yyv1554) } else if !yym1555 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1554) } else { z.DecFallback(yyv1554, false) } } for { yyj1553++ if yyhl1553 { yyb1553 = yyj1553 > l } else { yyb1553 = r.CheckBreak() } if yyb1553 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1553-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1556 := z.EncBinary() _ = yym1556 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1557 := !z.EncBinary() yy2arr1557 := z.EncBasicHandle().StructToArray var yyq1557 [7]bool _, _, _ = yysep1557, yyq1557, yy2arr1557 const yyr1557 bool = false yyq1557[1] = x.Signal != 0 yyq1557[2] = x.Reason != "" yyq1557[3] = x.Message != "" yyq1557[4] = true yyq1557[5] = true yyq1557[6] = x.ContainerID != "" var yynn1557 int if yyr1557 || yy2arr1557 { r.EncodeArrayStart(7) } else { yynn1557 = 1 for _, b := range yyq1557 { if b { yynn1557++ } } r.EncodeMapStart(yynn1557) yynn1557 = 0 } if yyr1557 || yy2arr1557 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1559 := z.EncBinary() _ = yym1559 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exitCode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1560 := z.EncBinary() _ = yym1560 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } if yyr1557 || yy2arr1557 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1557[1] { yym1562 := z.EncBinary() _ = yym1562 if false { } else { r.EncodeInt(int64(x.Signal)) } } else { r.EncodeInt(0) } } else { if yyq1557[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("signal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1563 := z.EncBinary() _ = yym1563 if false { } else { r.EncodeInt(int64(x.Signal)) } } } if yyr1557 || yy2arr1557 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1557[2] { yym1565 := z.EncBinary() _ = yym1565 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1557[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1566 := z.EncBinary() _ = yym1566 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1557 || yy2arr1557 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1557[3] { yym1568 := z.EncBinary() _ = yym1568 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1557[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1569 := z.EncBinary() _ = yym1569 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1557 || yy2arr1557 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1557[4] { yy1571 := &x.StartedAt yym1572 := z.EncBinary() _ = yym1572 if false { } else if z.HasExtensions() && z.EncExt(yy1571) { } else if yym1572 { z.EncBinaryMarshal(yy1571) } else if !yym1572 && z.IsJSONHandle() { z.EncJSONMarshal(yy1571) } else { z.EncFallback(yy1571) } } else { r.EncodeNil() } } else { if yyq1557[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1573 := &x.StartedAt yym1574 := z.EncBinary() _ = yym1574 if false { } else if z.HasExtensions() && z.EncExt(yy1573) { } else if yym1574 { z.EncBinaryMarshal(yy1573) } else if !yym1574 && z.IsJSONHandle() { z.EncJSONMarshal(yy1573) } else { z.EncFallback(yy1573) } } } if yyr1557 || yy2arr1557 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1557[5] { yy1576 := &x.FinishedAt yym1577 := z.EncBinary() _ = yym1577 if false { } else if z.HasExtensions() && z.EncExt(yy1576) { } else if yym1577 { z.EncBinaryMarshal(yy1576) } else if !yym1577 && z.IsJSONHandle() { z.EncJSONMarshal(yy1576) } else { z.EncFallback(yy1576) } } else { r.EncodeNil() } } else { if yyq1557[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finishedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1578 := &x.FinishedAt yym1579 := z.EncBinary() _ = yym1579 if false { } else if z.HasExtensions() && z.EncExt(yy1578) { } else if yym1579 { z.EncBinaryMarshal(yy1578) } else if !yym1579 && z.IsJSONHandle() { z.EncJSONMarshal(yy1578) } else { z.EncFallback(yy1578) } } } if yyr1557 || yy2arr1557 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1557[6] { yym1581 := z.EncBinary() _ = yym1581 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1557[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1582 := z.EncBinary() _ = yym1582 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } if yyr1557 || yy2arr1557 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ContainerStateTerminated) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1583 := z.DecBinary() _ = yym1583 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1584 := r.ContainerType() if yyct1584 == codecSelferValueTypeMap1234 { yyl1584 := r.ReadMapStart() if yyl1584 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1584, d) } } else if yyct1584 == codecSelferValueTypeArray1234 { yyl1584 := r.ReadArrayStart() if yyl1584 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1584, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1585Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1585Slc var yyhl1585 bool = l >= 0 for yyj1585 := 0; ; yyj1585++ { if yyhl1585 { if yyj1585 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1585Slc = r.DecodeBytes(yys1585Slc, true, true) yys1585 := string(yys1585Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1585 { case "exitCode": if r.TryDecodeAsNil() { x.ExitCode = 0 } else { x.ExitCode = int32(r.DecodeInt(32)) } case "signal": if r.TryDecodeAsNil() { x.Signal = 0 } else { x.Signal = int32(r.DecodeInt(32)) } case "reason": if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } case "message": if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } case "startedAt": if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1590 := &x.StartedAt yym1591 := z.DecBinary() _ = yym1591 if false { } else if z.HasExtensions() && z.DecExt(yyv1590) { } else if yym1591 { z.DecBinaryUnmarshal(yyv1590) } else if !yym1591 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1590) } else { z.DecFallback(yyv1590, false) } } case "finishedAt": if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { yyv1592 := &x.FinishedAt yym1593 := z.DecBinary() _ = yym1593 if false { } else if z.HasExtensions() && z.DecExt(yyv1592) { } else if yym1593 { z.DecBinaryUnmarshal(yyv1592) } else if !yym1593 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1592) } else { z.DecFallback(yyv1592, false) } } case "containerID": if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1585) } // end switch yys1585 } // end for yyj1585 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1595 int var yyb1595 bool var yyhl1595 bool = l >= 0 yyj1595++ if yyhl1595 { yyb1595 = yyj1595 > l } else { yyb1595 = r.CheckBreak() } if yyb1595 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExitCode = 0 } else { x.ExitCode = int32(r.DecodeInt(32)) } yyj1595++ if yyhl1595 { yyb1595 = yyj1595 > l } else { yyb1595 = r.CheckBreak() } if yyb1595 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Signal = 0 } else { x.Signal = int32(r.DecodeInt(32)) } yyj1595++ if yyhl1595 { yyb1595 = yyj1595 > l } else { yyb1595 = r.CheckBreak() } if yyb1595 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1595++ if yyhl1595 { yyb1595 = yyj1595 > l } else { yyb1595 = r.CheckBreak() } if yyb1595 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj1595++ if yyhl1595 { yyb1595 = yyj1595 > l } else { yyb1595 = r.CheckBreak() } if yyb1595 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1600 := &x.StartedAt yym1601 := z.DecBinary() _ = yym1601 if false { } else if z.HasExtensions() && z.DecExt(yyv1600) { } else if yym1601 { z.DecBinaryUnmarshal(yyv1600) } else if !yym1601 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1600) } else { z.DecFallback(yyv1600, false) } } yyj1595++ if yyhl1595 { yyb1595 = yyj1595 > l } else { yyb1595 = r.CheckBreak() } if yyb1595 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { yyv1602 := &x.FinishedAt yym1603 := z.DecBinary() _ = yym1603 if false { } else if z.HasExtensions() && z.DecExt(yyv1602) { } else if yym1603 { z.DecBinaryUnmarshal(yyv1602) } else if !yym1603 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1602) } else { z.DecFallback(yyv1602, false) } } yyj1595++ if yyhl1595 { yyb1595 = yyj1595 > l } else { yyb1595 = r.CheckBreak() } if yyb1595 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } for { yyj1595++ if yyhl1595 { yyb1595 = yyj1595 > l } else { yyb1595 = r.CheckBreak() } if yyb1595 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1595-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1605 := z.EncBinary() _ = yym1605 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1606 := !z.EncBinary() yy2arr1606 := z.EncBasicHandle().StructToArray var yyq1606 [3]bool _, _, _ = yysep1606, yyq1606, yy2arr1606 const yyr1606 bool = false yyq1606[0] = x.Waiting != nil yyq1606[1] = x.Running != nil yyq1606[2] = x.Terminated != nil var yynn1606 int if yyr1606 || yy2arr1606 { r.EncodeArrayStart(3) } else { yynn1606 = 0 for _, b := range yyq1606 { if b { yynn1606++ } } r.EncodeMapStart(yynn1606) yynn1606 = 0 } if yyr1606 || yy2arr1606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1606[0] { if x.Waiting == nil { r.EncodeNil() } else { x.Waiting.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1606[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("waiting")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Waiting == nil { r.EncodeNil() } else { x.Waiting.CodecEncodeSelf(e) } } } if yyr1606 || yy2arr1606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1606[1] { if x.Running == nil { r.EncodeNil() } else { x.Running.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1606[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("running")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Running == nil { r.EncodeNil() } else { x.Running.CodecEncodeSelf(e) } } } if yyr1606 || yy2arr1606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1606[2] { if x.Terminated == nil { r.EncodeNil() } else { x.Terminated.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1606[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminated")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Terminated == nil { r.EncodeNil() } else { x.Terminated.CodecEncodeSelf(e) } } } if yyr1606 || yy2arr1606 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ContainerState) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1610 := z.DecBinary() _ = yym1610 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1611 := r.ContainerType() if yyct1611 == codecSelferValueTypeMap1234 { yyl1611 := r.ReadMapStart() if yyl1611 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1611, d) } } else if yyct1611 == codecSelferValueTypeArray1234 { yyl1611 := r.ReadArrayStart() if yyl1611 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1611, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1612Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1612Slc var yyhl1612 bool = l >= 0 for yyj1612 := 0; ; yyj1612++ { if yyhl1612 { if yyj1612 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1612Slc = r.DecodeBytes(yys1612Slc, true, true) yys1612 := string(yys1612Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1612 { case "waiting": if r.TryDecodeAsNil() { if x.Waiting != nil { x.Waiting = nil } } else { if x.Waiting == nil { x.Waiting = new(ContainerStateWaiting) } x.Waiting.CodecDecodeSelf(d) } case "running": if r.TryDecodeAsNil() { if x.Running != nil { x.Running = nil } } else { if x.Running == nil { x.Running = new(ContainerStateRunning) } x.Running.CodecDecodeSelf(d) } case "terminated": if r.TryDecodeAsNil() { if x.Terminated != nil { x.Terminated = nil } } else { if x.Terminated == nil { x.Terminated = new(ContainerStateTerminated) } x.Terminated.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1612) } // end switch yys1612 } // end for yyj1612 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1616 int var yyb1616 bool var yyhl1616 bool = l >= 0 yyj1616++ if yyhl1616 { yyb1616 = yyj1616 > l } else { yyb1616 = r.CheckBreak() } if yyb1616 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Waiting != nil { x.Waiting = nil } } else { if x.Waiting == nil { x.Waiting = new(ContainerStateWaiting) } x.Waiting.CodecDecodeSelf(d) } yyj1616++ if yyhl1616 { yyb1616 = yyj1616 > l } else { yyb1616 = r.CheckBreak() } if yyb1616 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Running != nil { x.Running = nil } } else { if x.Running == nil { x.Running = new(ContainerStateRunning) } x.Running.CodecDecodeSelf(d) } yyj1616++ if yyhl1616 { yyb1616 = yyj1616 > l } else { yyb1616 = r.CheckBreak() } if yyb1616 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Terminated != nil { x.Terminated = nil } } else { if x.Terminated == nil { x.Terminated = new(ContainerStateTerminated) } x.Terminated.CodecDecodeSelf(d) } for { yyj1616++ if yyhl1616 { yyb1616 = yyj1616 > l } else { yyb1616 = r.CheckBreak() } if yyb1616 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1616-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1620 := z.EncBinary() _ = yym1620 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1621 := !z.EncBinary() yy2arr1621 := z.EncBasicHandle().StructToArray var yyq1621 [8]bool _, _, _ = yysep1621, yyq1621, yy2arr1621 const yyr1621 bool = false yyq1621[1] = true yyq1621[2] = true yyq1621[7] = x.ContainerID != "" var yynn1621 int if yyr1621 || yy2arr1621 { r.EncodeArrayStart(8) } else { yynn1621 = 5 for _, b := range yyq1621 { if b { yynn1621++ } } r.EncodeMapStart(yynn1621) yynn1621 = 0 } if yyr1621 || yy2arr1621 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1623 := z.EncBinary() _ = yym1623 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1624 := z.EncBinary() _ = yym1624 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1621 || yy2arr1621 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1621[1] { yy1626 := &x.State yy1626.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1621[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("state")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1627 := &x.State yy1627.CodecEncodeSelf(e) } } if yyr1621 || yy2arr1621 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1621[2] { yy1629 := &x.LastTerminationState yy1629.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1621[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastState")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1630 := &x.LastTerminationState yy1630.CodecEncodeSelf(e) } } if yyr1621 || yy2arr1621 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1632 := z.EncBinary() _ = yym1632 if false { } else { r.EncodeBool(bool(x.Ready)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ready")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1633 := z.EncBinary() _ = yym1633 if false { } else { r.EncodeBool(bool(x.Ready)) } } if yyr1621 || yy2arr1621 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1635 := z.EncBinary() _ = yym1635 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartCount")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1636 := z.EncBinary() _ = yym1636 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } if yyr1621 || yy2arr1621 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1638 := z.EncBinary() _ = yym1638 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1639 := z.EncBinary() _ = yym1639 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } if yyr1621 || yy2arr1621 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1641 := z.EncBinary() _ = yym1641 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imageID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1642 := z.EncBinary() _ = yym1642 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) } } if yyr1621 || yy2arr1621 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1621[7] { yym1644 := z.EncBinary() _ = yym1644 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1621[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1645 := z.EncBinary() _ = yym1645 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } if yyr1621 || yy2arr1621 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ContainerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1646 := z.DecBinary() _ = yym1646 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1647 := r.ContainerType() if yyct1647 == codecSelferValueTypeMap1234 { yyl1647 := r.ReadMapStart() if yyl1647 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1647, d) } } else if yyct1647 == codecSelferValueTypeArray1234 { yyl1647 := r.ReadArrayStart() if yyl1647 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1647, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1648Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1648Slc var yyhl1648 bool = l >= 0 for yyj1648 := 0; ; yyj1648++ { if yyhl1648 { if yyj1648 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1648Slc = r.DecodeBytes(yys1648Slc, true, true) yys1648 := string(yys1648Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1648 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "state": if r.TryDecodeAsNil() { x.State = ContainerState{} } else { yyv1650 := &x.State yyv1650.CodecDecodeSelf(d) } case "lastState": if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { yyv1651 := &x.LastTerminationState yyv1651.CodecDecodeSelf(d) } case "ready": if r.TryDecodeAsNil() { x.Ready = false } else { x.Ready = bool(r.DecodeBool()) } case "restartCount": if r.TryDecodeAsNil() { x.RestartCount = 0 } else { x.RestartCount = int32(r.DecodeInt(32)) } case "image": if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } case "imageID": if r.TryDecodeAsNil() { x.ImageID = "" } else { x.ImageID = string(r.DecodeString()) } case "containerID": if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1648) } // end switch yys1648 } // end for yyj1648 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1657 int var yyb1657 bool var yyhl1657 bool = l >= 0 yyj1657++ if yyhl1657 { yyb1657 = yyj1657 > l } else { yyb1657 = r.CheckBreak() } if yyb1657 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1657++ if yyhl1657 { yyb1657 = yyj1657 > l } else { yyb1657 = r.CheckBreak() } if yyb1657 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.State = ContainerState{} } else { yyv1659 := &x.State yyv1659.CodecDecodeSelf(d) } yyj1657++ if yyhl1657 { yyb1657 = yyj1657 > l } else { yyb1657 = r.CheckBreak() } if yyb1657 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { yyv1660 := &x.LastTerminationState yyv1660.CodecDecodeSelf(d) } yyj1657++ if yyhl1657 { yyb1657 = yyj1657 > l } else { yyb1657 = r.CheckBreak() } if yyb1657 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ready = false } else { x.Ready = bool(r.DecodeBool()) } yyj1657++ if yyhl1657 { yyb1657 = yyj1657 > l } else { yyb1657 = r.CheckBreak() } if yyb1657 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RestartCount = 0 } else { x.RestartCount = int32(r.DecodeInt(32)) } yyj1657++ if yyhl1657 { yyb1657 = yyj1657 > l } else { yyb1657 = r.CheckBreak() } if yyb1657 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } yyj1657++ if yyhl1657 { yyb1657 = yyj1657 > l } else { yyb1657 = r.CheckBreak() } if yyb1657 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImageID = "" } else { x.ImageID = string(r.DecodeString()) } yyj1657++ if yyhl1657 { yyb1657 = yyj1657 > l } else { yyb1657 = r.CheckBreak() } if yyb1657 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } for { yyj1657++ if yyhl1657 { yyb1657 = yyj1657 > l } else { yyb1657 = r.CheckBreak() } if yyb1657 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1657-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1666 := z.EncBinary() _ = yym1666 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *PodPhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1667 := z.DecBinary() _ = yym1667 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x PodConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1668 := z.EncBinary() _ = yym1668 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *PodConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1669 := z.DecBinary() _ = yym1669 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1670 := z.EncBinary() _ = yym1670 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1671 := !z.EncBinary() yy2arr1671 := z.EncBasicHandle().StructToArray var yyq1671 [6]bool _, _, _ = yysep1671, yyq1671, yy2arr1671 const yyr1671 bool = false yyq1671[2] = true yyq1671[3] = true yyq1671[4] = x.Reason != "" yyq1671[5] = x.Message != "" var yynn1671 int if yyr1671 || yy2arr1671 { r.EncodeArrayStart(6) } else { yynn1671 = 2 for _, b := range yyq1671 { if b { yynn1671++ } } r.EncodeMapStart(yynn1671) yynn1671 = 0 } if yyr1671 || yy2arr1671 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } if yyr1671 || yy2arr1671 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } if yyr1671 || yy2arr1671 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1671[2] { yy1675 := &x.LastProbeTime yym1676 := z.EncBinary() _ = yym1676 if false { } else if z.HasExtensions() && z.EncExt(yy1675) { } else if yym1676 { z.EncBinaryMarshal(yy1675) } else if !yym1676 && z.IsJSONHandle() { z.EncJSONMarshal(yy1675) } else { z.EncFallback(yy1675) } } else { r.EncodeNil() } } else { if yyq1671[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1677 := &x.LastProbeTime yym1678 := z.EncBinary() _ = yym1678 if false { } else if z.HasExtensions() && z.EncExt(yy1677) { } else if yym1678 { z.EncBinaryMarshal(yy1677) } else if !yym1678 && z.IsJSONHandle() { z.EncJSONMarshal(yy1677) } else { z.EncFallback(yy1677) } } } if yyr1671 || yy2arr1671 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1671[3] { yy1680 := &x.LastTransitionTime yym1681 := z.EncBinary() _ = yym1681 if false { } else if z.HasExtensions() && z.EncExt(yy1680) { } else if yym1681 { z.EncBinaryMarshal(yy1680) } else if !yym1681 && z.IsJSONHandle() { z.EncJSONMarshal(yy1680) } else { z.EncFallback(yy1680) } } else { r.EncodeNil() } } else { if yyq1671[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1682 := &x.LastTransitionTime yym1683 := z.EncBinary() _ = yym1683 if false { } else if z.HasExtensions() && z.EncExt(yy1682) { } else if yym1683 { z.EncBinaryMarshal(yy1682) } else if !yym1683 && z.IsJSONHandle() { z.EncJSONMarshal(yy1682) } else { z.EncFallback(yy1682) } } } if yyr1671 || yy2arr1671 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1671[4] { yym1685 := z.EncBinary() _ = yym1685 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1671[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1686 := z.EncBinary() _ = yym1686 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1671 || yy2arr1671 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1671[5] { yym1688 := z.EncBinary() _ = yym1688 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1671[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1689 := z.EncBinary() _ = yym1689 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1671 || yy2arr1671 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1690 := z.DecBinary() _ = yym1690 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1691 := r.ContainerType() if yyct1691 == codecSelferValueTypeMap1234 { yyl1691 := r.ReadMapStart() if yyl1691 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1691, d) } } else if yyct1691 == codecSelferValueTypeArray1234 { yyl1691 := r.ReadArrayStart() if yyl1691 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1691, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1692Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1692Slc var yyhl1692 bool = l >= 0 for yyj1692 := 0; ; yyj1692++ { if yyhl1692 { if yyj1692 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1692Slc = r.DecodeBytes(yys1692Slc, true, true) yys1692 := string(yys1692Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1692 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = PodConditionType(r.DecodeString()) } case "status": if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } case "lastProbeTime": if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { yyv1695 := &x.LastProbeTime yym1696 := z.DecBinary() _ = yym1696 if false { } else if z.HasExtensions() && z.DecExt(yyv1695) { } else if yym1696 { z.DecBinaryUnmarshal(yyv1695) } else if !yym1696 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1695) } else { z.DecFallback(yyv1695, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv1697 := &x.LastTransitionTime yym1698 := z.DecBinary() _ = yym1698 if false { } else if z.HasExtensions() && z.DecExt(yyv1697) { } else if yym1698 { z.DecBinaryUnmarshal(yyv1697) } else if !yym1698 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1697) } else { z.DecFallback(yyv1697, false) } } case "reason": if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } case "message": if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1692) } // end switch yys1692 } // end for yyj1692 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1701 int var yyb1701 bool var yyhl1701 bool = l >= 0 yyj1701++ if yyhl1701 { yyb1701 = yyj1701 > l } else { yyb1701 = r.CheckBreak() } if yyb1701 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = PodConditionType(r.DecodeString()) } yyj1701++ if yyhl1701 { yyb1701 = yyj1701 > l } else { yyb1701 = r.CheckBreak() } if yyb1701 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj1701++ if yyhl1701 { yyb1701 = yyj1701 > l } else { yyb1701 = r.CheckBreak() } if yyb1701 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { yyv1704 := &x.LastProbeTime yym1705 := z.DecBinary() _ = yym1705 if false { } else if z.HasExtensions() && z.DecExt(yyv1704) { } else if yym1705 { z.DecBinaryUnmarshal(yyv1704) } else if !yym1705 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1704) } else { z.DecFallback(yyv1704, false) } } yyj1701++ if yyhl1701 { yyb1701 = yyj1701 > l } else { yyb1701 = r.CheckBreak() } if yyb1701 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv1706 := &x.LastTransitionTime yym1707 := z.DecBinary() _ = yym1707 if false { } else if z.HasExtensions() && z.DecExt(yyv1706) { } else if yym1707 { z.DecBinaryUnmarshal(yyv1706) } else if !yym1707 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1706) } else { z.DecFallback(yyv1706, false) } } yyj1701++ if yyhl1701 { yyb1701 = yyj1701 > l } else { yyb1701 = r.CheckBreak() } if yyb1701 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1701++ if yyhl1701 { yyb1701 = yyj1701 > l } else { yyb1701 = r.CheckBreak() } if yyb1701 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj1701++ if yyhl1701 { yyb1701 = yyj1701 > l } else { yyb1701 = r.CheckBreak() } if yyb1701 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1701-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1710 := z.EncBinary() _ = yym1710 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *RestartPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1711 := z.DecBinary() _ = yym1711 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1712 := z.EncBinary() _ = yym1712 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1713 := !z.EncBinary() yy2arr1713 := z.EncBasicHandle().StructToArray var yyq1713 [4]bool _, _, _ = yysep1713, yyq1713, yy2arr1713 const yyr1713 bool = false yyq1713[0] = x.Kind != "" yyq1713[1] = x.APIVersion != "" yyq1713[2] = true var yynn1713 int if yyr1713 || yy2arr1713 { r.EncodeArrayStart(4) } else { yynn1713 = 1 for _, b := range yyq1713 { if b { yynn1713++ } } r.EncodeMapStart(yynn1713) yynn1713 = 0 } if yyr1713 || yy2arr1713 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1713[0] { yym1715 := z.EncBinary() _ = yym1715 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1713[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1716 := z.EncBinary() _ = yym1716 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1713 || yy2arr1713 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1713[1] { yym1718 := z.EncBinary() _ = yym1718 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1713[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1719 := z.EncBinary() _ = yym1719 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1713 || yy2arr1713 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1713[2] { yy1721 := &x.ListMeta yym1722 := z.EncBinary() _ = yym1722 if false { } else if z.HasExtensions() && z.EncExt(yy1721) { } else { z.EncFallback(yy1721) } } else { r.EncodeNil() } } else { if yyq1713[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1723 := &x.ListMeta yym1724 := z.EncBinary() _ = yym1724 if false { } else if z.HasExtensions() && z.EncExt(yy1723) { } else { z.EncFallback(yy1723) } } } if yyr1713 || yy2arr1713 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1726 := z.EncBinary() _ = yym1726 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym1727 := z.EncBinary() _ = yym1727 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) } } } if yyr1713 || yy2arr1713 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1728 := z.DecBinary() _ = yym1728 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1729 := r.ContainerType() if yyct1729 == codecSelferValueTypeMap1234 { yyl1729 := r.ReadMapStart() if yyl1729 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1729, d) } } else if yyct1729 == codecSelferValueTypeArray1234 { yyl1729 := r.ReadArrayStart() if yyl1729 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1729, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1730Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1730Slc var yyhl1730 bool = l >= 0 for yyj1730 := 0; ; yyj1730++ { if yyhl1730 { if yyj1730 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1730Slc = r.DecodeBytes(yys1730Slc, true, true) yys1730 := string(yys1730Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1730 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1733 := &x.ListMeta yym1734 := z.DecBinary() _ = yym1734 if false { } else if z.HasExtensions() && z.DecExt(yyv1733) { } else { z.DecFallback(yyv1733, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1735 := &x.Items yym1736 := z.DecBinary() _ = yym1736 if false { } else { h.decSlicePod((*[]Pod)(yyv1735), d) } } default: z.DecStructFieldNotFound(-1, yys1730) } // end switch yys1730 } // end for yyj1730 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1737 int var yyb1737 bool var yyhl1737 bool = l >= 0 yyj1737++ if yyhl1737 { yyb1737 = yyj1737 > l } else { yyb1737 = r.CheckBreak() } if yyb1737 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1737++ if yyhl1737 { yyb1737 = yyj1737 > l } else { yyb1737 = r.CheckBreak() } if yyb1737 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1737++ if yyhl1737 { yyb1737 = yyj1737 > l } else { yyb1737 = r.CheckBreak() } if yyb1737 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1740 := &x.ListMeta yym1741 := z.DecBinary() _ = yym1741 if false { } else if z.HasExtensions() && z.DecExt(yyv1740) { } else { z.DecFallback(yyv1740, false) } } yyj1737++ if yyhl1737 { yyb1737 = yyj1737 > l } else { yyb1737 = r.CheckBreak() } if yyb1737 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1742 := &x.Items yym1743 := z.DecBinary() _ = yym1743 if false { } else { h.decSlicePod((*[]Pod)(yyv1742), d) } } for { yyj1737++ if yyhl1737 { yyb1737 = yyj1737 > l } else { yyb1737 = r.CheckBreak() } if yyb1737 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1737-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1744 := z.EncBinary() _ = yym1744 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *DNSPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1745 := z.DecBinary() _ = yym1745 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1746 := z.EncBinary() _ = yym1746 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1747 := !z.EncBinary() yy2arr1747 := z.EncBasicHandle().StructToArray var yyq1747 [1]bool _, _, _ = yysep1747, yyq1747, yy2arr1747 const yyr1747 bool = false var yynn1747 int if yyr1747 || yy2arr1747 { r.EncodeArrayStart(1) } else { yynn1747 = 1 for _, b := range yyq1747 { if b { yynn1747++ } } r.EncodeMapStart(yynn1747) yynn1747 = 0 } if yyr1747 || yy2arr1747 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NodeSelectorTerms == nil { r.EncodeNil() } else { yym1749 := z.EncBinary() _ = yym1749 if false { } else { h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeSelectorTerms")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeSelectorTerms == nil { r.EncodeNil() } else { yym1750 := z.EncBinary() _ = yym1750 if false { } else { h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) } } } if yyr1747 || yy2arr1747 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1751 := z.DecBinary() _ = yym1751 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1752 := r.ContainerType() if yyct1752 == codecSelferValueTypeMap1234 { yyl1752 := r.ReadMapStart() if yyl1752 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1752, d) } } else if yyct1752 == codecSelferValueTypeArray1234 { yyl1752 := r.ReadArrayStart() if yyl1752 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1752, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1753Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1753Slc var yyhl1753 bool = l >= 0 for yyj1753 := 0; ; yyj1753++ { if yyhl1753 { if yyj1753 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1753Slc = r.DecodeBytes(yys1753Slc, true, true) yys1753 := string(yys1753Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1753 { case "nodeSelectorTerms": if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { yyv1754 := &x.NodeSelectorTerms yym1755 := z.DecBinary() _ = yym1755 if false { } else { h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1754), d) } } default: z.DecStructFieldNotFound(-1, yys1753) } // end switch yys1753 } // end for yyj1753 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1756 int var yyb1756 bool var yyhl1756 bool = l >= 0 yyj1756++ if yyhl1756 { yyb1756 = yyj1756 > l } else { yyb1756 = r.CheckBreak() } if yyb1756 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { yyv1757 := &x.NodeSelectorTerms yym1758 := z.DecBinary() _ = yym1758 if false { } else { h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1757), d) } } for { yyj1756++ if yyhl1756 { yyb1756 = yyj1756 > l } else { yyb1756 = r.CheckBreak() } if yyb1756 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1756-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeSelectorTerm) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1759 := z.EncBinary() _ = yym1759 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1760 := !z.EncBinary() yy2arr1760 := z.EncBasicHandle().StructToArray var yyq1760 [1]bool _, _, _ = yysep1760, yyq1760, yy2arr1760 const yyr1760 bool = false var yynn1760 int if yyr1760 || yy2arr1760 { r.EncodeArrayStart(1) } else { yynn1760 = 1 for _, b := range yyq1760 { if b { yynn1760++ } } r.EncodeMapStart(yynn1760) yynn1760 = 0 } if yyr1760 || yy2arr1760 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.MatchExpressions == nil { r.EncodeNil() } else { yym1762 := z.EncBinary() _ = yym1762 if false { } else { h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("matchExpressions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.MatchExpressions == nil { r.EncodeNil() } else { yym1763 := z.EncBinary() _ = yym1763 if false { } else { h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) } } } if yyr1760 || yy2arr1760 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeSelectorTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1764 := z.DecBinary() _ = yym1764 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1765 := r.ContainerType() if yyct1765 == codecSelferValueTypeMap1234 { yyl1765 := r.ReadMapStart() if yyl1765 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1765, d) } } else if yyct1765 == codecSelferValueTypeArray1234 { yyl1765 := r.ReadArrayStart() if yyl1765 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1765, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeSelectorTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1766Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1766Slc var yyhl1766 bool = l >= 0 for yyj1766 := 0; ; yyj1766++ { if yyhl1766 { if yyj1766 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1766Slc = r.DecodeBytes(yys1766Slc, true, true) yys1766 := string(yys1766Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1766 { case "matchExpressions": if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { yyv1767 := &x.MatchExpressions yym1768 := z.DecBinary() _ = yym1768 if false { } else { h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1767), d) } } default: z.DecStructFieldNotFound(-1, yys1766) } // end switch yys1766 } // end for yyj1766 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeSelectorTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1769 int var yyb1769 bool var yyhl1769 bool = l >= 0 yyj1769++ if yyhl1769 { yyb1769 = yyj1769 > l } else { yyb1769 = r.CheckBreak() } if yyb1769 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { yyv1770 := &x.MatchExpressions yym1771 := z.DecBinary() _ = yym1771 if false { } else { h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1770), d) } } for { yyj1769++ if yyhl1769 { yyb1769 = yyj1769 > l } else { yyb1769 = r.CheckBreak() } if yyb1769 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1769-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1772 := z.EncBinary() _ = yym1772 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1773 := !z.EncBinary() yy2arr1773 := z.EncBasicHandle().StructToArray var yyq1773 [3]bool _, _, _ = yysep1773, yyq1773, yy2arr1773 const yyr1773 bool = false yyq1773[2] = len(x.Values) != 0 var yynn1773 int if yyr1773 || yy2arr1773 { r.EncodeArrayStart(3) } else { yynn1773 = 2 for _, b := range yyq1773 { if b { yynn1773++ } } r.EncodeMapStart(yynn1773) yynn1773 = 0 } if yyr1773 || yy2arr1773 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1775 := z.EncBinary() _ = yym1775 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1776 := z.EncBinary() _ = yym1776 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1773 || yy2arr1773 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Operator.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operator")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } if yyr1773 || yy2arr1773 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1773[2] { if x.Values == nil { r.EncodeNil() } else { yym1779 := z.EncBinary() _ = yym1779 if false { } else { z.F.EncSliceStringV(x.Values, false, e) } } } else { r.EncodeNil() } } else { if yyq1773[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("values")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Values == nil { r.EncodeNil() } else { yym1780 := z.EncBinary() _ = yym1780 if false { } else { z.F.EncSliceStringV(x.Values, false, e) } } } } if yyr1773 || yy2arr1773 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1781 := z.DecBinary() _ = yym1781 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1782 := r.ContainerType() if yyct1782 == codecSelferValueTypeMap1234 { yyl1782 := r.ReadMapStart() if yyl1782 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1782, d) } } else if yyct1782 == codecSelferValueTypeArray1234 { yyl1782 := r.ReadArrayStart() if yyl1782 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1782, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1783Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1783Slc var yyhl1783 bool = l >= 0 for yyj1783 := 0; ; yyj1783++ { if yyhl1783 { if yyj1783 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1783Slc = r.DecodeBytes(yys1783Slc, true, true) yys1783 := string(yys1783Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1783 { case "key": if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } case "operator": if r.TryDecodeAsNil() { x.Operator = "" } else { x.Operator = NodeSelectorOperator(r.DecodeString()) } case "values": if r.TryDecodeAsNil() { x.Values = nil } else { yyv1786 := &x.Values yym1787 := z.DecBinary() _ = yym1787 if false { } else { z.F.DecSliceStringX(yyv1786, false, d) } } default: z.DecStructFieldNotFound(-1, yys1783) } // end switch yys1783 } // end for yyj1783 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1788 int var yyb1788 bool var yyhl1788 bool = l >= 0 yyj1788++ if yyhl1788 { yyb1788 = yyj1788 > l } else { yyb1788 = r.CheckBreak() } if yyb1788 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } yyj1788++ if yyhl1788 { yyb1788 = yyj1788 > l } else { yyb1788 = r.CheckBreak() } if yyb1788 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Operator = "" } else { x.Operator = NodeSelectorOperator(r.DecodeString()) } yyj1788++ if yyhl1788 { yyb1788 = yyj1788 > l } else { yyb1788 = r.CheckBreak() } if yyb1788 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Values = nil } else { yyv1791 := &x.Values yym1792 := z.DecBinary() _ = yym1792 if false { } else { z.F.DecSliceStringX(yyv1791, false, d) } } for { yyj1788++ if yyhl1788 { yyb1788 = yyj1788 > l } else { yyb1788 = r.CheckBreak() } if yyb1788 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1788-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodeSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1793 := z.EncBinary() _ = yym1793 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *NodeSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1794 := z.DecBinary() _ = yym1794 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1795 := z.EncBinary() _ = yym1795 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1796 := !z.EncBinary() yy2arr1796 := z.EncBasicHandle().StructToArray var yyq1796 [3]bool _, _, _ = yysep1796, yyq1796, yy2arr1796 const yyr1796 bool = false yyq1796[0] = x.NodeAffinity != nil yyq1796[1] = x.PodAffinity != nil yyq1796[2] = x.PodAntiAffinity != nil var yynn1796 int if yyr1796 || yy2arr1796 { r.EncodeArrayStart(3) } else { yynn1796 = 0 for _, b := range yyq1796 { if b { yynn1796++ } } r.EncodeMapStart(yynn1796) yynn1796 = 0 } if yyr1796 || yy2arr1796 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1796[0] { if x.NodeAffinity == nil { r.EncodeNil() } else { x.NodeAffinity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1796[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeAffinity == nil { r.EncodeNil() } else { x.NodeAffinity.CodecEncodeSelf(e) } } } if yyr1796 || yy2arr1796 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1796[1] { if x.PodAffinity == nil { r.EncodeNil() } else { x.PodAffinity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1796[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PodAffinity == nil { r.EncodeNil() } else { x.PodAffinity.CodecEncodeSelf(e) } } } if yyr1796 || yy2arr1796 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1796[2] { if x.PodAntiAffinity == nil { r.EncodeNil() } else { x.PodAntiAffinity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1796[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAntiAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PodAntiAffinity == nil { r.EncodeNil() } else { x.PodAntiAffinity.CodecEncodeSelf(e) } } } if yyr1796 || yy2arr1796 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Affinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1800 := z.DecBinary() _ = yym1800 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1801 := r.ContainerType() if yyct1801 == codecSelferValueTypeMap1234 { yyl1801 := r.ReadMapStart() if yyl1801 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1801, d) } } else if yyct1801 == codecSelferValueTypeArray1234 { yyl1801 := r.ReadArrayStart() if yyl1801 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1801, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1802Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1802Slc var yyhl1802 bool = l >= 0 for yyj1802 := 0; ; yyj1802++ { if yyhl1802 { if yyj1802 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1802Slc = r.DecodeBytes(yys1802Slc, true, true) yys1802 := string(yys1802Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1802 { case "nodeAffinity": if r.TryDecodeAsNil() { if x.NodeAffinity != nil { x.NodeAffinity = nil } } else { if x.NodeAffinity == nil { x.NodeAffinity = new(NodeAffinity) } x.NodeAffinity.CodecDecodeSelf(d) } case "podAffinity": if r.TryDecodeAsNil() { if x.PodAffinity != nil { x.PodAffinity = nil } } else { if x.PodAffinity == nil { x.PodAffinity = new(PodAffinity) } x.PodAffinity.CodecDecodeSelf(d) } case "podAntiAffinity": if r.TryDecodeAsNil() { if x.PodAntiAffinity != nil { x.PodAntiAffinity = nil } } else { if x.PodAntiAffinity == nil { x.PodAntiAffinity = new(PodAntiAffinity) } x.PodAntiAffinity.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1802) } // end switch yys1802 } // end for yyj1802 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1806 int var yyb1806 bool var yyhl1806 bool = l >= 0 yyj1806++ if yyhl1806 { yyb1806 = yyj1806 > l } else { yyb1806 = r.CheckBreak() } if yyb1806 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.NodeAffinity != nil { x.NodeAffinity = nil } } else { if x.NodeAffinity == nil { x.NodeAffinity = new(NodeAffinity) } x.NodeAffinity.CodecDecodeSelf(d) } yyj1806++ if yyhl1806 { yyb1806 = yyj1806 > l } else { yyb1806 = r.CheckBreak() } if yyb1806 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.PodAffinity != nil { x.PodAffinity = nil } } else { if x.PodAffinity == nil { x.PodAffinity = new(PodAffinity) } x.PodAffinity.CodecDecodeSelf(d) } yyj1806++ if yyhl1806 { yyb1806 = yyj1806 > l } else { yyb1806 = r.CheckBreak() } if yyb1806 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.PodAntiAffinity != nil { x.PodAntiAffinity = nil } } else { if x.PodAntiAffinity == nil { x.PodAntiAffinity = new(PodAntiAffinity) } x.PodAntiAffinity.CodecDecodeSelf(d) } for { yyj1806++ if yyhl1806 { yyb1806 = yyj1806 > l } else { yyb1806 = r.CheckBreak() } if yyb1806 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1806-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1810 := z.EncBinary() _ = yym1810 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1811 := !z.EncBinary() yy2arr1811 := z.EncBasicHandle().StructToArray var yyq1811 [2]bool _, _, _ = yysep1811, yyq1811, yy2arr1811 const yyr1811 bool = false yyq1811[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 yyq1811[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 var yynn1811 int if yyr1811 || yy2arr1811 { r.EncodeArrayStart(2) } else { yynn1811 = 0 for _, b := range yyq1811 { if b { yynn1811++ } } r.EncodeMapStart(yynn1811) yynn1811 = 0 } if yyr1811 || yy2arr1811 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1811[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1813 := z.EncBinary() _ = yym1813 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) } } } else { r.EncodeNil() } } else { if yyq1811[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1814 := z.EncBinary() _ = yym1814 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) } } } } if yyr1811 || yy2arr1811 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1811[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1816 := z.EncBinary() _ = yym1816 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } else { r.EncodeNil() } } else { if yyq1811[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1817 := z.EncBinary() _ = yym1817 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } } if yyr1811 || yy2arr1811 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1818 := z.DecBinary() _ = yym1818 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1819 := r.ContainerType() if yyct1819 == codecSelferValueTypeMap1234 { yyl1819 := r.ReadMapStart() if yyl1819 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1819, d) } } else if yyct1819 == codecSelferValueTypeArray1234 { yyl1819 := r.ReadArrayStart() if yyl1819 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1819, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1820Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1820Slc var yyhl1820 bool = l >= 0 for yyj1820 := 0; ; yyj1820++ { if yyhl1820 { if yyj1820 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1820Slc = r.DecodeBytes(yys1820Slc, true, true) yys1820 := string(yys1820Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1820 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1821 := &x.RequiredDuringSchedulingIgnoredDuringExecution yym1822 := z.DecBinary() _ = yym1822 if false { } else { h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1821), d) } } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1823 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1824 := z.DecBinary() _ = yym1824 if false { } else { h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1823), d) } } default: z.DecStructFieldNotFound(-1, yys1820) } // end switch yys1820 } // end for yyj1820 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1825 int var yyb1825 bool var yyhl1825 bool = l >= 0 yyj1825++ if yyhl1825 { yyb1825 = yyj1825 > l } else { yyb1825 = r.CheckBreak() } if yyb1825 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1826 := &x.RequiredDuringSchedulingIgnoredDuringExecution yym1827 := z.DecBinary() _ = yym1827 if false { } else { h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1826), d) } } yyj1825++ if yyhl1825 { yyb1825 = yyj1825 > l } else { yyb1825 = r.CheckBreak() } if yyb1825 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1828 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1829 := z.DecBinary() _ = yym1829 if false { } else { h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1828), d) } } for { yyj1825++ if yyhl1825 { yyb1825 = yyj1825 > l } else { yyb1825 = r.CheckBreak() } if yyb1825 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1825-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1830 := z.EncBinary() _ = yym1830 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1831 := !z.EncBinary() yy2arr1831 := z.EncBasicHandle().StructToArray var yyq1831 [2]bool _, _, _ = yysep1831, yyq1831, yy2arr1831 const yyr1831 bool = false yyq1831[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 yyq1831[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 var yynn1831 int if yyr1831 || yy2arr1831 { r.EncodeArrayStart(2) } else { yynn1831 = 0 for _, b := range yyq1831 { if b { yynn1831++ } } r.EncodeMapStart(yynn1831) yynn1831 = 0 } if yyr1831 || yy2arr1831 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1831[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1833 := z.EncBinary() _ = yym1833 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) } } } else { r.EncodeNil() } } else { if yyq1831[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1834 := z.EncBinary() _ = yym1834 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) } } } } if yyr1831 || yy2arr1831 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1831[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1836 := z.EncBinary() _ = yym1836 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } else { r.EncodeNil() } } else { if yyq1831[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1837 := z.EncBinary() _ = yym1837 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } } if yyr1831 || yy2arr1831 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodAntiAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1838 := z.DecBinary() _ = yym1838 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1839 := r.ContainerType() if yyct1839 == codecSelferValueTypeMap1234 { yyl1839 := r.ReadMapStart() if yyl1839 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1839, d) } } else if yyct1839 == codecSelferValueTypeArray1234 { yyl1839 := r.ReadArrayStart() if yyl1839 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1839, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodAntiAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1840Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1840Slc var yyhl1840 bool = l >= 0 for yyj1840 := 0; ; yyj1840++ { if yyhl1840 { if yyj1840 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1840Slc = r.DecodeBytes(yys1840Slc, true, true) yys1840 := string(yys1840Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1840 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1841 := &x.RequiredDuringSchedulingIgnoredDuringExecution yym1842 := z.DecBinary() _ = yym1842 if false { } else { h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1841), d) } } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1843 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1844 := z.DecBinary() _ = yym1844 if false { } else { h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1843), d) } } default: z.DecStructFieldNotFound(-1, yys1840) } // end switch yys1840 } // end for yyj1840 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1845 int var yyb1845 bool var yyhl1845 bool = l >= 0 yyj1845++ if yyhl1845 { yyb1845 = yyj1845 > l } else { yyb1845 = r.CheckBreak() } if yyb1845 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1846 := &x.RequiredDuringSchedulingIgnoredDuringExecution yym1847 := z.DecBinary() _ = yym1847 if false { } else { h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1846), d) } } yyj1845++ if yyhl1845 { yyb1845 = yyj1845 > l } else { yyb1845 = r.CheckBreak() } if yyb1845 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1848 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1849 := z.DecBinary() _ = yym1849 if false { } else { h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1848), d) } } for { yyj1845++ if yyhl1845 { yyb1845 = yyj1845 > l } else { yyb1845 = r.CheckBreak() } if yyb1845 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1845-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *WeightedPodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1850 := z.EncBinary() _ = yym1850 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1851 := !z.EncBinary() yy2arr1851 := z.EncBasicHandle().StructToArray var yyq1851 [2]bool _, _, _ = yysep1851, yyq1851, yy2arr1851 const yyr1851 bool = false var yynn1851 int if yyr1851 || yy2arr1851 { r.EncodeArrayStart(2) } else { yynn1851 = 2 for _, b := range yyq1851 { if b { yynn1851++ } } r.EncodeMapStart(yynn1851) yynn1851 = 0 } if yyr1851 || yy2arr1851 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1853 := z.EncBinary() _ = yym1853 if false { } else { r.EncodeInt(int64(x.Weight)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("weight")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1854 := z.EncBinary() _ = yym1854 if false { } else { r.EncodeInt(int64(x.Weight)) } } if yyr1851 || yy2arr1851 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy1856 := &x.PodAffinityTerm yy1856.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAffinityTerm")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1857 := &x.PodAffinityTerm yy1857.CodecEncodeSelf(e) } if yyr1851 || yy2arr1851 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *WeightedPodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1858 := z.DecBinary() _ = yym1858 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1859 := r.ContainerType() if yyct1859 == codecSelferValueTypeMap1234 { yyl1859 := r.ReadMapStart() if yyl1859 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1859, d) } } else if yyct1859 == codecSelferValueTypeArray1234 { yyl1859 := r.ReadArrayStart() if yyl1859 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1859, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1860Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1860Slc var yyhl1860 bool = l >= 0 for yyj1860 := 0; ; yyj1860++ { if yyhl1860 { if yyj1860 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1860Slc = r.DecodeBytes(yys1860Slc, true, true) yys1860 := string(yys1860Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1860 { case "weight": if r.TryDecodeAsNil() { x.Weight = 0 } else { x.Weight = int(r.DecodeInt(codecSelferBitsize1234)) } case "podAffinityTerm": if r.TryDecodeAsNil() { x.PodAffinityTerm = PodAffinityTerm{} } else { yyv1862 := &x.PodAffinityTerm yyv1862.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1860) } // end switch yys1860 } // end for yyj1860 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1863 int var yyb1863 bool var yyhl1863 bool = l >= 0 yyj1863++ if yyhl1863 { yyb1863 = yyj1863 > l } else { yyb1863 = r.CheckBreak() } if yyb1863 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Weight = 0 } else { x.Weight = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1863++ if yyhl1863 { yyb1863 = yyj1863 > l } else { yyb1863 = r.CheckBreak() } if yyb1863 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodAffinityTerm = PodAffinityTerm{} } else { yyv1865 := &x.PodAffinityTerm yyv1865.CodecDecodeSelf(d) } for { yyj1863++ if yyhl1863 { yyb1863 = yyj1863 > l } else { yyb1863 = r.CheckBreak() } if yyb1863 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1863-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1866 := z.EncBinary() _ = yym1866 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1867 := !z.EncBinary() yy2arr1867 := z.EncBasicHandle().StructToArray var yyq1867 [3]bool _, _, _ = yysep1867, yyq1867, yy2arr1867 const yyr1867 bool = false yyq1867[0] = x.LabelSelector != nil yyq1867[2] = x.TopologyKey != "" var yynn1867 int if yyr1867 || yy2arr1867 { r.EncodeArrayStart(3) } else { yynn1867 = 1 for _, b := range yyq1867 { if b { yynn1867++ } } r.EncodeMapStart(yynn1867) yynn1867 = 0 } if yyr1867 || yy2arr1867 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1867[0] { if x.LabelSelector == nil { r.EncodeNil() } else { yym1869 := z.EncBinary() _ = yym1869 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { z.EncFallback(x.LabelSelector) } } } else { r.EncodeNil() } } else { if yyq1867[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("labelSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LabelSelector == nil { r.EncodeNil() } else { yym1870 := z.EncBinary() _ = yym1870 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { z.EncFallback(x.LabelSelector) } } } } if yyr1867 || yy2arr1867 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Namespaces == nil { r.EncodeNil() } else { yym1872 := z.EncBinary() _ = yym1872 if false { } else { z.F.EncSliceStringV(x.Namespaces, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespaces")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Namespaces == nil { r.EncodeNil() } else { yym1873 := z.EncBinary() _ = yym1873 if false { } else { z.F.EncSliceStringV(x.Namespaces, false, e) } } } if yyr1867 || yy2arr1867 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1867[2] { yym1875 := z.EncBinary() _ = yym1875 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1867[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("topologyKey")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1876 := z.EncBinary() _ = yym1876 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) } } } if yyr1867 || yy2arr1867 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1877 := z.DecBinary() _ = yym1877 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1878 := r.ContainerType() if yyct1878 == codecSelferValueTypeMap1234 { yyl1878 := r.ReadMapStart() if yyl1878 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1878, d) } } else if yyct1878 == codecSelferValueTypeArray1234 { yyl1878 := r.ReadArrayStart() if yyl1878 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1878, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1879Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1879Slc var yyhl1879 bool = l >= 0 for yyj1879 := 0; ; yyj1879++ { if yyhl1879 { if yyj1879 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1879Slc = r.DecodeBytes(yys1879Slc, true, true) yys1879 := string(yys1879Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1879 { case "labelSelector": if r.TryDecodeAsNil() { if x.LabelSelector != nil { x.LabelSelector = nil } } else { if x.LabelSelector == nil { x.LabelSelector = new(pkg2_unversioned.LabelSelector) } yym1881 := z.DecBinary() _ = yym1881 if false { } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { } else { z.DecFallback(x.LabelSelector, false) } } case "namespaces": if r.TryDecodeAsNil() { x.Namespaces = nil } else { yyv1882 := &x.Namespaces yym1883 := z.DecBinary() _ = yym1883 if false { } else { z.F.DecSliceStringX(yyv1882, false, d) } } case "topologyKey": if r.TryDecodeAsNil() { x.TopologyKey = "" } else { x.TopologyKey = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1879) } // end switch yys1879 } // end for yyj1879 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1885 int var yyb1885 bool var yyhl1885 bool = l >= 0 yyj1885++ if yyhl1885 { yyb1885 = yyj1885 > l } else { yyb1885 = r.CheckBreak() } if yyb1885 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.LabelSelector != nil { x.LabelSelector = nil } } else { if x.LabelSelector == nil { x.LabelSelector = new(pkg2_unversioned.LabelSelector) } yym1887 := z.DecBinary() _ = yym1887 if false { } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { } else { z.DecFallback(x.LabelSelector, false) } } yyj1885++ if yyhl1885 { yyb1885 = yyj1885 > l } else { yyb1885 = r.CheckBreak() } if yyb1885 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Namespaces = nil } else { yyv1888 := &x.Namespaces yym1889 := z.DecBinary() _ = yym1889 if false { } else { z.F.DecSliceStringX(yyv1888, false, d) } } yyj1885++ if yyhl1885 { yyb1885 = yyj1885 > l } else { yyb1885 = r.CheckBreak() } if yyb1885 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TopologyKey = "" } else { x.TopologyKey = string(r.DecodeString()) } for { yyj1885++ if yyhl1885 { yyb1885 = yyj1885 > l } else { yyb1885 = r.CheckBreak() } if yyb1885 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1885-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1891 := z.EncBinary() _ = yym1891 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1892 := !z.EncBinary() yy2arr1892 := z.EncBasicHandle().StructToArray var yyq1892 [2]bool _, _, _ = yysep1892, yyq1892, yy2arr1892 const yyr1892 bool = false yyq1892[0] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil yyq1892[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 var yynn1892 int if yyr1892 || yy2arr1892 { r.EncodeArrayStart(2) } else { yynn1892 = 0 for _, b := range yyq1892 { if b { yynn1892++ } } r.EncodeMapStart(yynn1892) yynn1892 = 0 } if yyr1892 || yy2arr1892 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1892[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1892[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e) } } } if yyr1892 || yy2arr1892 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1892[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1895 := z.EncBinary() _ = yym1895 if false { } else { h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } else { r.EncodeNil() } } else { if yyq1892[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1896 := z.EncBinary() _ = yym1896 if false { } else { h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } } if yyr1892 || yy2arr1892 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1897 := z.DecBinary() _ = yym1897 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1898 := r.ContainerType() if yyct1898 == codecSelferValueTypeMap1234 { yyl1898 := r.ReadMapStart() if yyl1898 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1898, d) } } else if yyct1898 == codecSelferValueTypeArray1234 { yyl1898 := r.ReadArrayStart() if yyl1898 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1898, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1899Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1899Slc var yyhl1899 bool = l >= 0 for yyj1899 := 0; ; yyj1899++ { if yyhl1899 { if yyj1899 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1899Slc = r.DecodeBytes(yys1899Slc, true, true) yys1899 := string(yys1899Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1899 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { if x.RequiredDuringSchedulingIgnoredDuringExecution != nil { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } } else { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector) } x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d) } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1901 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1902 := z.DecBinary() _ = yym1902 if false { } else { h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1901), d) } } default: z.DecStructFieldNotFound(-1, yys1899) } // end switch yys1899 } // end for yyj1899 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1903 int var yyb1903 bool var yyhl1903 bool = l >= 0 yyj1903++ if yyhl1903 { yyb1903 = yyj1903 > l } else { yyb1903 = r.CheckBreak() } if yyb1903 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RequiredDuringSchedulingIgnoredDuringExecution != nil { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } } else { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector) } x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d) } yyj1903++ if yyhl1903 { yyb1903 = yyj1903 > l } else { yyb1903 = r.CheckBreak() } if yyb1903 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1905 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1906 := z.DecBinary() _ = yym1906 if false { } else { h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1905), d) } } for { yyj1903++ if yyhl1903 { yyb1903 = yyj1903 > l } else { yyb1903 = r.CheckBreak() } if yyb1903 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1903-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1907 := z.EncBinary() _ = yym1907 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1908 := !z.EncBinary() yy2arr1908 := z.EncBasicHandle().StructToArray var yyq1908 [2]bool _, _, _ = yysep1908, yyq1908, yy2arr1908 const yyr1908 bool = false var yynn1908 int if yyr1908 || yy2arr1908 { r.EncodeArrayStart(2) } else { yynn1908 = 2 for _, b := range yyq1908 { if b { yynn1908++ } } r.EncodeMapStart(yynn1908) yynn1908 = 0 } if yyr1908 || yy2arr1908 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1910 := z.EncBinary() _ = yym1910 if false { } else { r.EncodeInt(int64(x.Weight)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("weight")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1911 := z.EncBinary() _ = yym1911 if false { } else { r.EncodeInt(int64(x.Weight)) } } if yyr1908 || yy2arr1908 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy1913 := &x.Preference yy1913.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1914 := &x.Preference yy1914.CodecEncodeSelf(e) } if yyr1908 || yy2arr1908 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PreferredSchedulingTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1915 := z.DecBinary() _ = yym1915 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1916 := r.ContainerType() if yyct1916 == codecSelferValueTypeMap1234 { yyl1916 := r.ReadMapStart() if yyl1916 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1916, d) } } else if yyct1916 == codecSelferValueTypeArray1234 { yyl1916 := r.ReadArrayStart() if yyl1916 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1916, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1917Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1917Slc var yyhl1917 bool = l >= 0 for yyj1917 := 0; ; yyj1917++ { if yyhl1917 { if yyj1917 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1917Slc = r.DecodeBytes(yys1917Slc, true, true) yys1917 := string(yys1917Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1917 { case "weight": if r.TryDecodeAsNil() { x.Weight = 0 } else { x.Weight = int32(r.DecodeInt(32)) } case "preference": if r.TryDecodeAsNil() { x.Preference = NodeSelectorTerm{} } else { yyv1919 := &x.Preference yyv1919.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1917) } // end switch yys1917 } // end for yyj1917 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1920 int var yyb1920 bool var yyhl1920 bool = l >= 0 yyj1920++ if yyhl1920 { yyb1920 = yyj1920 > l } else { yyb1920 = r.CheckBreak() } if yyb1920 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Weight = 0 } else { x.Weight = int32(r.DecodeInt(32)) } yyj1920++ if yyhl1920 { yyb1920 = yyj1920 > l } else { yyb1920 = r.CheckBreak() } if yyb1920 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Preference = NodeSelectorTerm{} } else { yyv1922 := &x.Preference yyv1922.CodecDecodeSelf(d) } for { yyj1920++ if yyhl1920 { yyb1920 = yyj1920 > l } else { yyb1920 = r.CheckBreak() } if yyb1920 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1920-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1923 := z.EncBinary() _ = yym1923 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1924 := !z.EncBinary() yy2arr1924 := z.EncBasicHandle().StructToArray var yyq1924 [3]bool _, _, _ = yysep1924, yyq1924, yy2arr1924 const yyr1924 bool = false yyq1924[1] = x.Value != "" var yynn1924 int if yyr1924 || yy2arr1924 { r.EncodeArrayStart(3) } else { yynn1924 = 2 for _, b := range yyq1924 { if b { yynn1924++ } } r.EncodeMapStart(yynn1924) yynn1924 = 0 } if yyr1924 || yy2arr1924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1926 := z.EncBinary() _ = yym1926 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1927 := z.EncBinary() _ = yym1927 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1924 || yy2arr1924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1924[1] { yym1929 := z.EncBinary() _ = yym1929 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1924[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1930 := z.EncBinary() _ = yym1930 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } if yyr1924 || yy2arr1924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Effect.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("effect")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Effect.CodecEncodeSelf(e) } if yyr1924 || yy2arr1924 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Taint) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1932 := z.DecBinary() _ = yym1932 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1933 := r.ContainerType() if yyct1933 == codecSelferValueTypeMap1234 { yyl1933 := r.ReadMapStart() if yyl1933 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1933, d) } } else if yyct1933 == codecSelferValueTypeArray1234 { yyl1933 := r.ReadArrayStart() if yyl1933 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1933, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Taint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1934Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1934Slc var yyhl1934 bool = l >= 0 for yyj1934 := 0; ; yyj1934++ { if yyhl1934 { if yyj1934 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1934Slc = r.DecodeBytes(yys1934Slc, true, true) yys1934 := string(yys1934Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1934 { case "key": if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } case "value": if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } case "effect": if r.TryDecodeAsNil() { x.Effect = "" } else { x.Effect = TaintEffect(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1934) } // end switch yys1934 } // end for yyj1934 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1938 int var yyb1938 bool var yyhl1938 bool = l >= 0 yyj1938++ if yyhl1938 { yyb1938 = yyj1938 > l } else { yyb1938 = r.CheckBreak() } if yyb1938 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } yyj1938++ if yyhl1938 { yyb1938 = yyj1938 > l } else { yyb1938 = r.CheckBreak() } if yyb1938 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } yyj1938++ if yyhl1938 { yyb1938 = yyj1938 > l } else { yyb1938 = r.CheckBreak() } if yyb1938 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Effect = "" } else { x.Effect = TaintEffect(r.DecodeString()) } for { yyj1938++ if yyhl1938 { yyb1938 = yyj1938 > l } else { yyb1938 = r.CheckBreak() } if yyb1938 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1938-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x TaintEffect) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1942 := z.EncBinary() _ = yym1942 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *TaintEffect) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1943 := z.DecBinary() _ = yym1943 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1944 := z.EncBinary() _ = yym1944 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1945 := !z.EncBinary() yy2arr1945 := z.EncBasicHandle().StructToArray var yyq1945 [4]bool _, _, _ = yysep1945, yyq1945, yy2arr1945 const yyr1945 bool = false yyq1945[0] = x.Key != "" yyq1945[1] = x.Operator != "" yyq1945[2] = x.Value != "" yyq1945[3] = x.Effect != "" var yynn1945 int if yyr1945 || yy2arr1945 { r.EncodeArrayStart(4) } else { yynn1945 = 0 for _, b := range yyq1945 { if b { yynn1945++ } } r.EncodeMapStart(yynn1945) yynn1945 = 0 } if yyr1945 || yy2arr1945 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1945[0] { yym1947 := z.EncBinary() _ = yym1947 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1945[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1948 := z.EncBinary() _ = yym1948 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } } if yyr1945 || yy2arr1945 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1945[1] { x.Operator.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1945[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operator")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } } if yyr1945 || yy2arr1945 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1945[2] { yym1951 := z.EncBinary() _ = yym1951 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1945[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1952 := z.EncBinary() _ = yym1952 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } if yyr1945 || yy2arr1945 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1945[3] { x.Effect.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1945[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("effect")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Effect.CodecEncodeSelf(e) } } if yyr1945 || yy2arr1945 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Toleration) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1954 := z.DecBinary() _ = yym1954 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1955 := r.ContainerType() if yyct1955 == codecSelferValueTypeMap1234 { yyl1955 := r.ReadMapStart() if yyl1955 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1955, d) } } else if yyct1955 == codecSelferValueTypeArray1234 { yyl1955 := r.ReadArrayStart() if yyl1955 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1955, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1956Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1956Slc var yyhl1956 bool = l >= 0 for yyj1956 := 0; ; yyj1956++ { if yyhl1956 { if yyj1956 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1956Slc = r.DecodeBytes(yys1956Slc, true, true) yys1956 := string(yys1956Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1956 { case "key": if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } case "operator": if r.TryDecodeAsNil() { x.Operator = "" } else { x.Operator = TolerationOperator(r.DecodeString()) } case "value": if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } case "effect": if r.TryDecodeAsNil() { x.Effect = "" } else { x.Effect = TaintEffect(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1956) } // end switch yys1956 } // end for yyj1956 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1961 int var yyb1961 bool var yyhl1961 bool = l >= 0 yyj1961++ if yyhl1961 { yyb1961 = yyj1961 > l } else { yyb1961 = r.CheckBreak() } if yyb1961 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } yyj1961++ if yyhl1961 { yyb1961 = yyj1961 > l } else { yyb1961 = r.CheckBreak() } if yyb1961 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Operator = "" } else { x.Operator = TolerationOperator(r.DecodeString()) } yyj1961++ if yyhl1961 { yyb1961 = yyj1961 > l } else { yyb1961 = r.CheckBreak() } if yyb1961 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } yyj1961++ if yyhl1961 { yyb1961 = yyj1961 > l } else { yyb1961 = r.CheckBreak() } if yyb1961 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Effect = "" } else { x.Effect = TaintEffect(r.DecodeString()) } for { yyj1961++ if yyhl1961 { yyb1961 = yyj1961 > l } else { yyb1961 = r.CheckBreak() } if yyb1961 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1961-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x TolerationOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1966 := z.EncBinary() _ = yym1966 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *TolerationOperator) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1967 := z.DecBinary() _ = yym1967 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1968 := z.EncBinary() _ = yym1968 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1969 := !z.EncBinary() yy2arr1969 := z.EncBasicHandle().StructToArray var yyq1969 [13]bool _, _, _ = yysep1969, yyq1969, yy2arr1969 const yyr1969 bool = false yyq1969[2] = x.RestartPolicy != "" yyq1969[3] = x.TerminationGracePeriodSeconds != nil yyq1969[4] = x.ActiveDeadlineSeconds != nil yyq1969[5] = x.DNSPolicy != "" yyq1969[6] = len(x.NodeSelector) != 0 yyq1969[8] = x.NodeName != "" yyq1969[9] = x.SecurityContext != nil yyq1969[10] = len(x.ImagePullSecrets) != 0 yyq1969[11] = x.Hostname != "" yyq1969[12] = x.Subdomain != "" var yynn1969 int if yyr1969 || yy2arr1969 { r.EncodeArrayStart(13) } else { yynn1969 = 3 for _, b := range yyq1969 { if b { yynn1969++ } } r.EncodeMapStart(yynn1969) yynn1969 = 0 } if yyr1969 || yy2arr1969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Volumes == nil { r.EncodeNil() } else { yym1971 := z.EncBinary() _ = yym1971 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Volumes == nil { r.EncodeNil() } else { yym1972 := z.EncBinary() _ = yym1972 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) } } } if yyr1969 || yy2arr1969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Containers == nil { r.EncodeNil() } else { yym1974 := z.EncBinary() _ = yym1974 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containers")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Containers == nil { r.EncodeNil() } else { yym1975 := z.EncBinary() _ = yym1975 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) } } } if yyr1969 || yy2arr1969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1969[2] { x.RestartPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1969[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.RestartPolicy.CodecEncodeSelf(e) } } if yyr1969 || yy2arr1969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1969[3] { if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { yy1978 := *x.TerminationGracePeriodSeconds yym1979 := z.EncBinary() _ = yym1979 if false { } else { r.EncodeInt(int64(yy1978)) } } } else { r.EncodeNil() } } else { if yyq1969[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { yy1980 := *x.TerminationGracePeriodSeconds yym1981 := z.EncBinary() _ = yym1981 if false { } else { r.EncodeInt(int64(yy1980)) } } } } if yyr1969 || yy2arr1969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1969[4] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { yy1983 := *x.ActiveDeadlineSeconds yym1984 := z.EncBinary() _ = yym1984 if false { } else { r.EncodeInt(int64(yy1983)) } } } else { r.EncodeNil() } } else { if yyq1969[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { yy1985 := *x.ActiveDeadlineSeconds yym1986 := z.EncBinary() _ = yym1986 if false { } else { r.EncodeInt(int64(yy1985)) } } } } if yyr1969 || yy2arr1969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1969[5] { x.DNSPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1969[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.DNSPolicy.CodecEncodeSelf(e) } } if yyr1969 || yy2arr1969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1969[6] { if x.NodeSelector == nil { r.EncodeNil() } else { yym1989 := z.EncBinary() _ = yym1989 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) } } } else { r.EncodeNil() } } else { if yyq1969[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeSelector == nil { r.EncodeNil() } else { yym1990 := z.EncBinary() _ = yym1990 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) } } } } if yyr1969 || yy2arr1969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1992 := z.EncBinary() _ = yym1992 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceAccountName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1993 := z.EncBinary() _ = yym1993 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) } } if yyr1969 || yy2arr1969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1969[8] { yym1995 := z.EncBinary() _ = yym1995 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1969[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1996 := z.EncBinary() _ = yym1996 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } } if yyr1969 || yy2arr1969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1969[9] { if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1969[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("securityContext")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } } if yyr1969 || yy2arr1969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1969[10] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym1999 := z.EncBinary() _ = yym1999 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } else { r.EncodeNil() } } else { if yyq1969[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2000 := z.EncBinary() _ = yym2000 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } } if yyr1969 || yy2arr1969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1969[11] { yym2002 := z.EncBinary() _ = yym2002 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1969[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2003 := z.EncBinary() _ = yym2003 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } if yyr1969 || yy2arr1969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1969[12] { yym2005 := z.EncBinary() _ = yym2005 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1969[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subdomain")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2006 := z.EncBinary() _ = yym2006 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) } } } if yyr1969 || yy2arr1969 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2007 := z.DecBinary() _ = yym2007 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2008 := r.ContainerType() if yyct2008 == codecSelferValueTypeMap1234 { yyl2008 := r.ReadMapStart() if yyl2008 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2008, d) } } else if yyct2008 == codecSelferValueTypeArray1234 { yyl2008 := r.ReadArrayStart() if yyl2008 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2008, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2009Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2009Slc var yyhl2009 bool = l >= 0 for yyj2009 := 0; ; yyj2009++ { if yyhl2009 { if yyj2009 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2009Slc = r.DecodeBytes(yys2009Slc, true, true) yys2009 := string(yys2009Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2009 { case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { yyv2010 := &x.Volumes yym2011 := z.DecBinary() _ = yym2011 if false { } else { h.decSliceVolume((*[]Volume)(yyv2010), d) } } case "containers": if r.TryDecodeAsNil() { x.Containers = nil } else { yyv2012 := &x.Containers yym2013 := z.DecBinary() _ = yym2013 if false { } else { h.decSliceContainer((*[]Container)(yyv2012), d) } } case "restartPolicy": if r.TryDecodeAsNil() { x.RestartPolicy = "" } else { x.RestartPolicy = RestartPolicy(r.DecodeString()) } case "terminationGracePeriodSeconds": if r.TryDecodeAsNil() { if x.TerminationGracePeriodSeconds != nil { x.TerminationGracePeriodSeconds = nil } } else { if x.TerminationGracePeriodSeconds == nil { x.TerminationGracePeriodSeconds = new(int64) } yym2016 := z.DecBinary() _ = yym2016 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } case "activeDeadlineSeconds": if r.TryDecodeAsNil() { if x.ActiveDeadlineSeconds != nil { x.ActiveDeadlineSeconds = nil } } else { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } yym2018 := z.DecBinary() _ = yym2018 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } case "dnsPolicy": if r.TryDecodeAsNil() { x.DNSPolicy = "" } else { x.DNSPolicy = DNSPolicy(r.DecodeString()) } case "nodeSelector": if r.TryDecodeAsNil() { x.NodeSelector = nil } else { yyv2020 := &x.NodeSelector yym2021 := z.DecBinary() _ = yym2021 if false { } else { z.F.DecMapStringStringX(yyv2020, false, d) } } case "serviceAccountName": if r.TryDecodeAsNil() { x.ServiceAccountName = "" } else { x.ServiceAccountName = string(r.DecodeString()) } case "nodeName": if r.TryDecodeAsNil() { x.NodeName = "" } else { x.NodeName = string(r.DecodeString()) } case "securityContext": if r.TryDecodeAsNil() { if x.SecurityContext != nil { x.SecurityContext = nil } } else { if x.SecurityContext == nil { x.SecurityContext = new(PodSecurityContext) } x.SecurityContext.CodecDecodeSelf(d) } case "imagePullSecrets": if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2025 := &x.ImagePullSecrets yym2026 := z.DecBinary() _ = yym2026 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2025), d) } } case "hostname": if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } case "subdomain": if r.TryDecodeAsNil() { x.Subdomain = "" } else { x.Subdomain = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2009) } // end switch yys2009 } // end for yyj2009 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2029 int var yyb2029 bool var yyhl2029 bool = l >= 0 yyj2029++ if yyhl2029 { yyb2029 = yyj2029 > l } else { yyb2029 = r.CheckBreak() } if yyb2029 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Volumes = nil } else { yyv2030 := &x.Volumes yym2031 := z.DecBinary() _ = yym2031 if false { } else { h.decSliceVolume((*[]Volume)(yyv2030), d) } } yyj2029++ if yyhl2029 { yyb2029 = yyj2029 > l } else { yyb2029 = r.CheckBreak() } if yyb2029 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Containers = nil } else { yyv2032 := &x.Containers yym2033 := z.DecBinary() _ = yym2033 if false { } else { h.decSliceContainer((*[]Container)(yyv2032), d) } } yyj2029++ if yyhl2029 { yyb2029 = yyj2029 > l } else { yyb2029 = r.CheckBreak() } if yyb2029 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RestartPolicy = "" } else { x.RestartPolicy = RestartPolicy(r.DecodeString()) } yyj2029++ if yyhl2029 { yyb2029 = yyj2029 > l } else { yyb2029 = r.CheckBreak() } if yyb2029 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.TerminationGracePeriodSeconds != nil { x.TerminationGracePeriodSeconds = nil } } else { if x.TerminationGracePeriodSeconds == nil { x.TerminationGracePeriodSeconds = new(int64) } yym2036 := z.DecBinary() _ = yym2036 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } yyj2029++ if yyhl2029 { yyb2029 = yyj2029 > l } else { yyb2029 = r.CheckBreak() } if yyb2029 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ActiveDeadlineSeconds != nil { x.ActiveDeadlineSeconds = nil } } else { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } yym2038 := z.DecBinary() _ = yym2038 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } yyj2029++ if yyhl2029 { yyb2029 = yyj2029 > l } else { yyb2029 = r.CheckBreak() } if yyb2029 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DNSPolicy = "" } else { x.DNSPolicy = DNSPolicy(r.DecodeString()) } yyj2029++ if yyhl2029 { yyb2029 = yyj2029 > l } else { yyb2029 = r.CheckBreak() } if yyb2029 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeSelector = nil } else { yyv2040 := &x.NodeSelector yym2041 := z.DecBinary() _ = yym2041 if false { } else { z.F.DecMapStringStringX(yyv2040, false, d) } } yyj2029++ if yyhl2029 { yyb2029 = yyj2029 > l } else { yyb2029 = r.CheckBreak() } if yyb2029 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ServiceAccountName = "" } else { x.ServiceAccountName = string(r.DecodeString()) } yyj2029++ if yyhl2029 { yyb2029 = yyj2029 > l } else { yyb2029 = r.CheckBreak() } if yyb2029 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeName = "" } else { x.NodeName = string(r.DecodeString()) } yyj2029++ if yyhl2029 { yyb2029 = yyj2029 > l } else { yyb2029 = r.CheckBreak() } if yyb2029 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SecurityContext != nil { x.SecurityContext = nil } } else { if x.SecurityContext == nil { x.SecurityContext = new(PodSecurityContext) } x.SecurityContext.CodecDecodeSelf(d) } yyj2029++ if yyhl2029 { yyb2029 = yyj2029 > l } else { yyb2029 = r.CheckBreak() } if yyb2029 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2045 := &x.ImagePullSecrets yym2046 := z.DecBinary() _ = yym2046 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2045), d) } } yyj2029++ if yyhl2029 { yyb2029 = yyj2029 > l } else { yyb2029 = r.CheckBreak() } if yyb2029 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } yyj2029++ if yyhl2029 { yyb2029 = yyj2029 > l } else { yyb2029 = r.CheckBreak() } if yyb2029 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Subdomain = "" } else { x.Subdomain = string(r.DecodeString()) } for { yyj2029++ if yyhl2029 { yyb2029 = yyj2029 > l } else { yyb2029 = r.CheckBreak() } if yyb2029 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2029-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2049 := z.EncBinary() _ = yym2049 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2050 := !z.EncBinary() yy2arr2050 := z.EncBasicHandle().StructToArray var yyq2050 [8]bool _, _, _ = yysep2050, yyq2050, yy2arr2050 const yyr2050 bool = false yyq2050[0] = x.HostNetwork != false yyq2050[1] = x.HostPID != false yyq2050[2] = x.HostIPC != false yyq2050[3] = x.SELinuxOptions != nil yyq2050[4] = x.RunAsUser != nil yyq2050[5] = x.RunAsNonRoot != nil yyq2050[6] = len(x.SupplementalGroups) != 0 yyq2050[7] = x.FSGroup != nil var yynn2050 int if yyr2050 || yy2arr2050 { r.EncodeArrayStart(8) } else { yynn2050 = 0 for _, b := range yyq2050 { if b { yynn2050++ } } r.EncodeMapStart(yynn2050) yynn2050 = 0 } if yyr2050 || yy2arr2050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2050[0] { yym2052 := z.EncBinary() _ = yym2052 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } else { r.EncodeBool(false) } } else { if yyq2050[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2053 := z.EncBinary() _ = yym2053 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } if yyr2050 || yy2arr2050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2050[1] { yym2055 := z.EncBinary() _ = yym2055 if false { } else { r.EncodeBool(bool(x.HostPID)) } } else { r.EncodeBool(false) } } else { if yyq2050[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2056 := z.EncBinary() _ = yym2056 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } if yyr2050 || yy2arr2050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2050[2] { yym2058 := z.EncBinary() _ = yym2058 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } else { r.EncodeBool(false) } } else { if yyq2050[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2059 := z.EncBinary() _ = yym2059 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } if yyr2050 || yy2arr2050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2050[3] { if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2050[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } } if yyr2050 || yy2arr2050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2050[4] { if x.RunAsUser == nil { r.EncodeNil() } else { yy2062 := *x.RunAsUser yym2063 := z.EncBinary() _ = yym2063 if false { } else { r.EncodeInt(int64(yy2062)) } } } else { r.EncodeNil() } } else { if yyq2050[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { yy2064 := *x.RunAsUser yym2065 := z.EncBinary() _ = yym2065 if false { } else { r.EncodeInt(int64(yy2064)) } } } } if yyr2050 || yy2arr2050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2050[5] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy2067 := *x.RunAsNonRoot yym2068 := z.EncBinary() _ = yym2068 if false { } else { r.EncodeBool(bool(yy2067)) } } } else { r.EncodeNil() } } else { if yyq2050[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy2069 := *x.RunAsNonRoot yym2070 := z.EncBinary() _ = yym2070 if false { } else { r.EncodeBool(bool(yy2069)) } } } } if yyr2050 || yy2arr2050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2050[6] { if x.SupplementalGroups == nil { r.EncodeNil() } else { yym2072 := z.EncBinary() _ = yym2072 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) } } } else { r.EncodeNil() } } else { if yyq2050[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SupplementalGroups == nil { r.EncodeNil() } else { yym2073 := z.EncBinary() _ = yym2073 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) } } } } if yyr2050 || yy2arr2050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2050[7] { if x.FSGroup == nil { r.EncodeNil() } else { yy2075 := *x.FSGroup yym2076 := z.EncBinary() _ = yym2076 if false { } else { r.EncodeInt(int64(yy2075)) } } } else { r.EncodeNil() } } else { if yyq2050[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FSGroup == nil { r.EncodeNil() } else { yy2077 := *x.FSGroup yym2078 := z.EncBinary() _ = yym2078 if false { } else { r.EncodeInt(int64(yy2077)) } } } } if yyr2050 || yy2arr2050 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodSecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2079 := z.DecBinary() _ = yym2079 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2080 := r.ContainerType() if yyct2080 == codecSelferValueTypeMap1234 { yyl2080 := r.ReadMapStart() if yyl2080 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2080, d) } } else if yyct2080 == codecSelferValueTypeArray1234 { yyl2080 := r.ReadArrayStart() if yyl2080 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2080, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2081Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2081Slc var yyhl2081 bool = l >= 0 for yyj2081 := 0; ; yyj2081++ { if yyhl2081 { if yyj2081 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2081Slc = r.DecodeBytes(yys2081Slc, true, true) yys2081 := string(yys2081Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2081 { case "hostNetwork": if r.TryDecodeAsNil() { x.HostNetwork = false } else { x.HostNetwork = bool(r.DecodeBool()) } case "hostPID": if r.TryDecodeAsNil() { x.HostPID = false } else { x.HostPID = bool(r.DecodeBool()) } case "hostIPC": if r.TryDecodeAsNil() { x.HostIPC = false } else { x.HostIPC = bool(r.DecodeBool()) } case "seLinuxOptions": if r.TryDecodeAsNil() { if x.SELinuxOptions != nil { x.SELinuxOptions = nil } } else { if x.SELinuxOptions == nil { x.SELinuxOptions = new(SELinuxOptions) } x.SELinuxOptions.CodecDecodeSelf(d) } case "runAsUser": if r.TryDecodeAsNil() { if x.RunAsUser != nil { x.RunAsUser = nil } } else { if x.RunAsUser == nil { x.RunAsUser = new(int64) } yym2087 := z.DecBinary() _ = yym2087 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } case "runAsNonRoot": if r.TryDecodeAsNil() { if x.RunAsNonRoot != nil { x.RunAsNonRoot = nil } } else { if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } yym2089 := z.DecBinary() _ = yym2089 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } case "supplementalGroups": if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { yyv2090 := &x.SupplementalGroups yym2091 := z.DecBinary() _ = yym2091 if false { } else { z.F.DecSliceInt64X(yyv2090, false, d) } } case "fsGroup": if r.TryDecodeAsNil() { if x.FSGroup != nil { x.FSGroup = nil } } else { if x.FSGroup == nil { x.FSGroup = new(int64) } yym2093 := z.DecBinary() _ = yym2093 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys2081) } // end switch yys2081 } // end for yyj2081 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2094 int var yyb2094 bool var yyhl2094 bool = l >= 0 yyj2094++ if yyhl2094 { yyb2094 = yyj2094 > l } else { yyb2094 = r.CheckBreak() } if yyb2094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostNetwork = false } else { x.HostNetwork = bool(r.DecodeBool()) } yyj2094++ if yyhl2094 { yyb2094 = yyj2094 > l } else { yyb2094 = r.CheckBreak() } if yyb2094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostPID = false } else { x.HostPID = bool(r.DecodeBool()) } yyj2094++ if yyhl2094 { yyb2094 = yyj2094 > l } else { yyb2094 = r.CheckBreak() } if yyb2094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIPC = false } else { x.HostIPC = bool(r.DecodeBool()) } yyj2094++ if yyhl2094 { yyb2094 = yyj2094 > l } else { yyb2094 = r.CheckBreak() } if yyb2094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SELinuxOptions != nil { x.SELinuxOptions = nil } } else { if x.SELinuxOptions == nil { x.SELinuxOptions = new(SELinuxOptions) } x.SELinuxOptions.CodecDecodeSelf(d) } yyj2094++ if yyhl2094 { yyb2094 = yyj2094 > l } else { yyb2094 = r.CheckBreak() } if yyb2094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RunAsUser != nil { x.RunAsUser = nil } } else { if x.RunAsUser == nil { x.RunAsUser = new(int64) } yym2100 := z.DecBinary() _ = yym2100 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } yyj2094++ if yyhl2094 { yyb2094 = yyj2094 > l } else { yyb2094 = r.CheckBreak() } if yyb2094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RunAsNonRoot != nil { x.RunAsNonRoot = nil } } else { if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } yym2102 := z.DecBinary() _ = yym2102 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } yyj2094++ if yyhl2094 { yyb2094 = yyj2094 > l } else { yyb2094 = r.CheckBreak() } if yyb2094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { yyv2103 := &x.SupplementalGroups yym2104 := z.DecBinary() _ = yym2104 if false { } else { z.F.DecSliceInt64X(yyv2103, false, d) } } yyj2094++ if yyhl2094 { yyb2094 = yyj2094 > l } else { yyb2094 = r.CheckBreak() } if yyb2094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FSGroup != nil { x.FSGroup = nil } } else { if x.FSGroup == nil { x.FSGroup = new(int64) } yym2106 := z.DecBinary() _ = yym2106 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } for { yyj2094++ if yyhl2094 { yyb2094 = yyj2094 > l } else { yyb2094 = r.CheckBreak() } if yyb2094 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2094-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2107 := z.EncBinary() _ = yym2107 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2108 := !z.EncBinary() yy2arr2108 := z.EncBasicHandle().StructToArray var yyq2108 [8]bool _, _, _ = yysep2108, yyq2108, yy2arr2108 const yyr2108 bool = false yyq2108[0] = x.Phase != "" yyq2108[1] = len(x.Conditions) != 0 yyq2108[2] = x.Message != "" yyq2108[3] = x.Reason != "" yyq2108[4] = x.HostIP != "" yyq2108[5] = x.PodIP != "" yyq2108[6] = x.StartTime != nil yyq2108[7] = len(x.ContainerStatuses) != 0 var yynn2108 int if yyr2108 || yy2arr2108 { r.EncodeArrayStart(8) } else { yynn2108 = 0 for _, b := range yyq2108 { if b { yynn2108++ } } r.EncodeMapStart(yynn2108) yynn2108 = 0 } if yyr2108 || yy2arr2108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2108[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2108[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr2108 || yy2arr2108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2108[1] { if x.Conditions == nil { r.EncodeNil() } else { yym2111 := z.EncBinary() _ = yym2111 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq2108[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym2112 := z.EncBinary() _ = yym2112 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) } } } } if yyr2108 || yy2arr2108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2108[2] { yym2114 := z.EncBinary() _ = yym2114 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2108[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2115 := z.EncBinary() _ = yym2115 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr2108 || yy2arr2108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2108[3] { yym2117 := z.EncBinary() _ = yym2117 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2108[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2118 := z.EncBinary() _ = yym2118 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr2108 || yy2arr2108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2108[4] { yym2120 := z.EncBinary() _ = yym2120 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2108[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2121 := z.EncBinary() _ = yym2121 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } if yyr2108 || yy2arr2108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2108[5] { yym2123 := z.EncBinary() _ = yym2123 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2108[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2124 := z.EncBinary() _ = yym2124 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } } if yyr2108 || yy2arr2108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2108[6] { if x.StartTime == nil { r.EncodeNil() } else { yym2126 := z.EncBinary() _ = yym2126 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { } else if yym2126 { z.EncBinaryMarshal(x.StartTime) } else if !yym2126 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) } } } else { r.EncodeNil() } } else { if yyq2108[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { yym2127 := z.EncBinary() _ = yym2127 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { } else if yym2127 { z.EncBinaryMarshal(x.StartTime) } else if !yym2127 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) } } } } if yyr2108 || yy2arr2108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2108[7] { if x.ContainerStatuses == nil { r.EncodeNil() } else { yym2129 := z.EncBinary() _ = yym2129 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) } } } else { r.EncodeNil() } } else { if yyq2108[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerStatuses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ContainerStatuses == nil { r.EncodeNil() } else { yym2130 := z.EncBinary() _ = yym2130 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) } } } } if yyr2108 || yy2arr2108 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2131 := z.DecBinary() _ = yym2131 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2132 := r.ContainerType() if yyct2132 == codecSelferValueTypeMap1234 { yyl2132 := r.ReadMapStart() if yyl2132 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2132, d) } } else if yyct2132 == codecSelferValueTypeArray1234 { yyl2132 := r.ReadArrayStart() if yyl2132 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2132, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2133Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2133Slc var yyhl2133 bool = l >= 0 for yyj2133 := 0; ; yyj2133++ { if yyhl2133 { if yyj2133 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2133Slc = r.DecodeBytes(yys2133Slc, true, true) yys2133 := string(yys2133Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2133 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PodPhase(r.DecodeString()) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2135 := &x.Conditions yym2136 := z.DecBinary() _ = yym2136 if false { } else { h.decSlicePodCondition((*[]PodCondition)(yyv2135), d) } } case "message": if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } case "reason": if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } case "hostIP": if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } case "podIP": if r.TryDecodeAsNil() { x.PodIP = "" } else { x.PodIP = string(r.DecodeString()) } case "startTime": if r.TryDecodeAsNil() { if x.StartTime != nil { x.StartTime = nil } } else { if x.StartTime == nil { x.StartTime = new(pkg2_unversioned.Time) } yym2142 := z.DecBinary() _ = yym2142 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { } else if yym2142 { z.DecBinaryUnmarshal(x.StartTime) } else if !yym2142 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } case "containerStatuses": if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { yyv2143 := &x.ContainerStatuses yym2144 := z.DecBinary() _ = yym2144 if false { } else { h.decSliceContainerStatus((*[]ContainerStatus)(yyv2143), d) } } default: z.DecStructFieldNotFound(-1, yys2133) } // end switch yys2133 } // end for yyj2133 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2145 int var yyb2145 bool var yyhl2145 bool = l >= 0 yyj2145++ if yyhl2145 { yyb2145 = yyj2145 > l } else { yyb2145 = r.CheckBreak() } if yyb2145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PodPhase(r.DecodeString()) } yyj2145++ if yyhl2145 { yyb2145 = yyj2145 > l } else { yyb2145 = r.CheckBreak() } if yyb2145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2147 := &x.Conditions yym2148 := z.DecBinary() _ = yym2148 if false { } else { h.decSlicePodCondition((*[]PodCondition)(yyv2147), d) } } yyj2145++ if yyhl2145 { yyb2145 = yyj2145 > l } else { yyb2145 = r.CheckBreak() } if yyb2145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj2145++ if yyhl2145 { yyb2145 = yyj2145 > l } else { yyb2145 = r.CheckBreak() } if yyb2145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj2145++ if yyhl2145 { yyb2145 = yyj2145 > l } else { yyb2145 = r.CheckBreak() } if yyb2145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } yyj2145++ if yyhl2145 { yyb2145 = yyj2145 > l } else { yyb2145 = r.CheckBreak() } if yyb2145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodIP = "" } else { x.PodIP = string(r.DecodeString()) } yyj2145++ if yyhl2145 { yyb2145 = yyj2145 > l } else { yyb2145 = r.CheckBreak() } if yyb2145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.StartTime != nil { x.StartTime = nil } } else { if x.StartTime == nil { x.StartTime = new(pkg2_unversioned.Time) } yym2154 := z.DecBinary() _ = yym2154 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { } else if yym2154 { z.DecBinaryUnmarshal(x.StartTime) } else if !yym2154 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } yyj2145++ if yyhl2145 { yyb2145 = yyj2145 > l } else { yyb2145 = r.CheckBreak() } if yyb2145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { yyv2155 := &x.ContainerStatuses yym2156 := z.DecBinary() _ = yym2156 if false { } else { h.decSliceContainerStatus((*[]ContainerStatus)(yyv2155), d) } } for { yyj2145++ if yyhl2145 { yyb2145 = yyj2145 > l } else { yyb2145 = r.CheckBreak() } if yyb2145 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2145-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2157 := z.EncBinary() _ = yym2157 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2158 := !z.EncBinary() yy2arr2158 := z.EncBasicHandle().StructToArray var yyq2158 [4]bool _, _, _ = yysep2158, yyq2158, yy2arr2158 const yyr2158 bool = false yyq2158[0] = x.Kind != "" yyq2158[1] = x.APIVersion != "" yyq2158[2] = true yyq2158[3] = true var yynn2158 int if yyr2158 || yy2arr2158 { r.EncodeArrayStart(4) } else { yynn2158 = 0 for _, b := range yyq2158 { if b { yynn2158++ } } r.EncodeMapStart(yynn2158) yynn2158 = 0 } if yyr2158 || yy2arr2158 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2158[0] { yym2160 := z.EncBinary() _ = yym2160 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2158[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2161 := z.EncBinary() _ = yym2161 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2158 || yy2arr2158 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2158[1] { yym2163 := z.EncBinary() _ = yym2163 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2158[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2164 := z.EncBinary() _ = yym2164 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2158 || yy2arr2158 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2158[2] { yy2166 := &x.ObjectMeta yy2166.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2158[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2167 := &x.ObjectMeta yy2167.CodecEncodeSelf(e) } } if yyr2158 || yy2arr2158 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2158[3] { yy2169 := &x.Status yy2169.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2158[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2170 := &x.Status yy2170.CodecEncodeSelf(e) } } if yyr2158 || yy2arr2158 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodStatusResult) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2171 := z.DecBinary() _ = yym2171 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2172 := r.ContainerType() if yyct2172 == codecSelferValueTypeMap1234 { yyl2172 := r.ReadMapStart() if yyl2172 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2172, d) } } else if yyct2172 == codecSelferValueTypeArray1234 { yyl2172 := r.ReadArrayStart() if yyl2172 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2172, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodStatusResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2173Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2173Slc var yyhl2173 bool = l >= 0 for yyj2173 := 0; ; yyj2173++ { if yyhl2173 { if yyj2173 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2173Slc = r.DecodeBytes(yys2173Slc, true, true) yys2173 := string(yys2173Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2173 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2176 := &x.ObjectMeta yyv2176.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv2177 := &x.Status yyv2177.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2173) } // end switch yys2173 } // end for yyj2173 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2178 int var yyb2178 bool var yyhl2178 bool = l >= 0 yyj2178++ if yyhl2178 { yyb2178 = yyj2178 > l } else { yyb2178 = r.CheckBreak() } if yyb2178 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2178++ if yyhl2178 { yyb2178 = yyj2178 > l } else { yyb2178 = r.CheckBreak() } if yyb2178 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2178++ if yyhl2178 { yyb2178 = yyj2178 > l } else { yyb2178 = r.CheckBreak() } if yyb2178 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2181 := &x.ObjectMeta yyv2181.CodecDecodeSelf(d) } yyj2178++ if yyhl2178 { yyb2178 = yyj2178 > l } else { yyb2178 = r.CheckBreak() } if yyb2178 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv2182 := &x.Status yyv2182.CodecDecodeSelf(d) } for { yyj2178++ if yyhl2178 { yyb2178 = yyj2178 > l } else { yyb2178 = r.CheckBreak() } if yyb2178 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2178-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2183 := z.EncBinary() _ = yym2183 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2184 := !z.EncBinary() yy2arr2184 := z.EncBasicHandle().StructToArray var yyq2184 [5]bool _, _, _ = yysep2184, yyq2184, yy2arr2184 const yyr2184 bool = false yyq2184[0] = x.Kind != "" yyq2184[1] = x.APIVersion != "" yyq2184[2] = true yyq2184[3] = true yyq2184[4] = true var yynn2184 int if yyr2184 || yy2arr2184 { r.EncodeArrayStart(5) } else { yynn2184 = 0 for _, b := range yyq2184 { if b { yynn2184++ } } r.EncodeMapStart(yynn2184) yynn2184 = 0 } if yyr2184 || yy2arr2184 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2184[0] { yym2186 := z.EncBinary() _ = yym2186 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2184[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2187 := z.EncBinary() _ = yym2187 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2184 || yy2arr2184 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2184[1] { yym2189 := z.EncBinary() _ = yym2189 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2184[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2190 := z.EncBinary() _ = yym2190 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2184 || yy2arr2184 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2184[2] { yy2192 := &x.ObjectMeta yy2192.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2184[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2193 := &x.ObjectMeta yy2193.CodecEncodeSelf(e) } } if yyr2184 || yy2arr2184 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2184[3] { yy2195 := &x.Spec yy2195.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2184[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2196 := &x.Spec yy2196.CodecEncodeSelf(e) } } if yyr2184 || yy2arr2184 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2184[4] { yy2198 := &x.Status yy2198.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2184[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2199 := &x.Status yy2199.CodecEncodeSelf(e) } } if yyr2184 || yy2arr2184 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Pod) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2200 := z.DecBinary() _ = yym2200 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2201 := r.ContainerType() if yyct2201 == codecSelferValueTypeMap1234 { yyl2201 := r.ReadMapStart() if yyl2201 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2201, d) } } else if yyct2201 == codecSelferValueTypeArray1234 { yyl2201 := r.ReadArrayStart() if yyl2201 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2201, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2202Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2202Slc var yyhl2202 bool = l >= 0 for yyj2202 := 0; ; yyj2202++ { if yyhl2202 { if yyj2202 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2202Slc = r.DecodeBytes(yys2202Slc, true, true) yys2202 := string(yys2202Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2202 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2205 := &x.ObjectMeta yyv2205.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv2206 := &x.Spec yyv2206.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv2207 := &x.Status yyv2207.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2202) } // end switch yys2202 } // end for yyj2202 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2208 int var yyb2208 bool var yyhl2208 bool = l >= 0 yyj2208++ if yyhl2208 { yyb2208 = yyj2208 > l } else { yyb2208 = r.CheckBreak() } if yyb2208 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2208++ if yyhl2208 { yyb2208 = yyj2208 > l } else { yyb2208 = r.CheckBreak() } if yyb2208 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2208++ if yyhl2208 { yyb2208 = yyj2208 > l } else { yyb2208 = r.CheckBreak() } if yyb2208 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2211 := &x.ObjectMeta yyv2211.CodecDecodeSelf(d) } yyj2208++ if yyhl2208 { yyb2208 = yyj2208 > l } else { yyb2208 = r.CheckBreak() } if yyb2208 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv2212 := &x.Spec yyv2212.CodecDecodeSelf(d) } yyj2208++ if yyhl2208 { yyb2208 = yyj2208 > l } else { yyb2208 = r.CheckBreak() } if yyb2208 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv2213 := &x.Status yyv2213.CodecDecodeSelf(d) } for { yyj2208++ if yyhl2208 { yyb2208 = yyj2208 > l } else { yyb2208 = r.CheckBreak() } if yyb2208 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2208-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2214 := z.EncBinary() _ = yym2214 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2215 := !z.EncBinary() yy2arr2215 := z.EncBasicHandle().StructToArray var yyq2215 [2]bool _, _, _ = yysep2215, yyq2215, yy2arr2215 const yyr2215 bool = false yyq2215[0] = true yyq2215[1] = true var yynn2215 int if yyr2215 || yy2arr2215 { r.EncodeArrayStart(2) } else { yynn2215 = 0 for _, b := range yyq2215 { if b { yynn2215++ } } r.EncodeMapStart(yynn2215) yynn2215 = 0 } if yyr2215 || yy2arr2215 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2215[0] { yy2217 := &x.ObjectMeta yy2217.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2215[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2218 := &x.ObjectMeta yy2218.CodecEncodeSelf(e) } } if yyr2215 || yy2arr2215 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2215[1] { yy2220 := &x.Spec yy2220.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2215[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2221 := &x.Spec yy2221.CodecEncodeSelf(e) } } if yyr2215 || yy2arr2215 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodTemplateSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2222 := z.DecBinary() _ = yym2222 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2223 := r.ContainerType() if yyct2223 == codecSelferValueTypeMap1234 { yyl2223 := r.ReadMapStart() if yyl2223 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2223, d) } } else if yyct2223 == codecSelferValueTypeArray1234 { yyl2223 := r.ReadArrayStart() if yyl2223 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2223, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2224Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2224Slc var yyhl2224 bool = l >= 0 for yyj2224 := 0; ; yyj2224++ { if yyhl2224 { if yyj2224 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2224Slc = r.DecodeBytes(yys2224Slc, true, true) yys2224 := string(yys2224Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2224 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2225 := &x.ObjectMeta yyv2225.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv2226 := &x.Spec yyv2226.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2224) } // end switch yys2224 } // end for yyj2224 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2227 int var yyb2227 bool var yyhl2227 bool = l >= 0 yyj2227++ if yyhl2227 { yyb2227 = yyj2227 > l } else { yyb2227 = r.CheckBreak() } if yyb2227 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2228 := &x.ObjectMeta yyv2228.CodecDecodeSelf(d) } yyj2227++ if yyhl2227 { yyb2227 = yyj2227 > l } else { yyb2227 = r.CheckBreak() } if yyb2227 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv2229 := &x.Spec yyv2229.CodecDecodeSelf(d) } for { yyj2227++ if yyhl2227 { yyb2227 = yyj2227 > l } else { yyb2227 = r.CheckBreak() } if yyb2227 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2227-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2230 := z.EncBinary() _ = yym2230 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2231 := !z.EncBinary() yy2arr2231 := z.EncBasicHandle().StructToArray var yyq2231 [4]bool _, _, _ = yysep2231, yyq2231, yy2arr2231 const yyr2231 bool = false yyq2231[0] = x.Kind != "" yyq2231[1] = x.APIVersion != "" yyq2231[2] = true yyq2231[3] = true var yynn2231 int if yyr2231 || yy2arr2231 { r.EncodeArrayStart(4) } else { yynn2231 = 0 for _, b := range yyq2231 { if b { yynn2231++ } } r.EncodeMapStart(yynn2231) yynn2231 = 0 } if yyr2231 || yy2arr2231 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2231[0] { yym2233 := z.EncBinary() _ = yym2233 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2231[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2234 := z.EncBinary() _ = yym2234 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2231 || yy2arr2231 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2231[1] { yym2236 := z.EncBinary() _ = yym2236 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2231[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2237 := z.EncBinary() _ = yym2237 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2231 || yy2arr2231 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2231[2] { yy2239 := &x.ObjectMeta yy2239.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2231[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2240 := &x.ObjectMeta yy2240.CodecEncodeSelf(e) } } if yyr2231 || yy2arr2231 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2231[3] { yy2242 := &x.Template yy2242.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2231[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2243 := &x.Template yy2243.CodecEncodeSelf(e) } } if yyr2231 || yy2arr2231 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodTemplate) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2244 := z.DecBinary() _ = yym2244 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2245 := r.ContainerType() if yyct2245 == codecSelferValueTypeMap1234 { yyl2245 := r.ReadMapStart() if yyl2245 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2245, d) } } else if yyct2245 == codecSelferValueTypeArray1234 { yyl2245 := r.ReadArrayStart() if yyl2245 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2245, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2246Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2246Slc var yyhl2246 bool = l >= 0 for yyj2246 := 0; ; yyj2246++ { if yyhl2246 { if yyj2246 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2246Slc = r.DecodeBytes(yys2246Slc, true, true) yys2246 := string(yys2246Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2246 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2249 := &x.ObjectMeta yyv2249.CodecDecodeSelf(d) } case "template": if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { yyv2250 := &x.Template yyv2250.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2246) } // end switch yys2246 } // end for yyj2246 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2251 int var yyb2251 bool var yyhl2251 bool = l >= 0 yyj2251++ if yyhl2251 { yyb2251 = yyj2251 > l } else { yyb2251 = r.CheckBreak() } if yyb2251 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2251++ if yyhl2251 { yyb2251 = yyj2251 > l } else { yyb2251 = r.CheckBreak() } if yyb2251 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2251++ if yyhl2251 { yyb2251 = yyj2251 > l } else { yyb2251 = r.CheckBreak() } if yyb2251 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2254 := &x.ObjectMeta yyv2254.CodecDecodeSelf(d) } yyj2251++ if yyhl2251 { yyb2251 = yyj2251 > l } else { yyb2251 = r.CheckBreak() } if yyb2251 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { yyv2255 := &x.Template yyv2255.CodecDecodeSelf(d) } for { yyj2251++ if yyhl2251 { yyb2251 = yyj2251 > l } else { yyb2251 = r.CheckBreak() } if yyb2251 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2251-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2256 := z.EncBinary() _ = yym2256 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2257 := !z.EncBinary() yy2arr2257 := z.EncBasicHandle().StructToArray var yyq2257 [4]bool _, _, _ = yysep2257, yyq2257, yy2arr2257 const yyr2257 bool = false yyq2257[0] = x.Kind != "" yyq2257[1] = x.APIVersion != "" yyq2257[2] = true var yynn2257 int if yyr2257 || yy2arr2257 { r.EncodeArrayStart(4) } else { yynn2257 = 1 for _, b := range yyq2257 { if b { yynn2257++ } } r.EncodeMapStart(yynn2257) yynn2257 = 0 } if yyr2257 || yy2arr2257 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2257[0] { yym2259 := z.EncBinary() _ = yym2259 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2257[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2260 := z.EncBinary() _ = yym2260 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2257 || yy2arr2257 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2257[1] { yym2262 := z.EncBinary() _ = yym2262 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2257[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2263 := z.EncBinary() _ = yym2263 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2257 || yy2arr2257 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2257[2] { yy2265 := &x.ListMeta yym2266 := z.EncBinary() _ = yym2266 if false { } else if z.HasExtensions() && z.EncExt(yy2265) { } else { z.EncFallback(yy2265) } } else { r.EncodeNil() } } else { if yyq2257[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2267 := &x.ListMeta yym2268 := z.EncBinary() _ = yym2268 if false { } else if z.HasExtensions() && z.EncExt(yy2267) { } else { z.EncFallback(yy2267) } } } if yyr2257 || yy2arr2257 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2270 := z.EncBinary() _ = yym2270 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym2271 := z.EncBinary() _ = yym2271 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } } } if yyr2257 || yy2arr2257 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodTemplateList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2272 := z.DecBinary() _ = yym2272 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2273 := r.ContainerType() if yyct2273 == codecSelferValueTypeMap1234 { yyl2273 := r.ReadMapStart() if yyl2273 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2273, d) } } else if yyct2273 == codecSelferValueTypeArray1234 { yyl2273 := r.ReadArrayStart() if yyl2273 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2273, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2274Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2274Slc var yyhl2274 bool = l >= 0 for yyj2274 := 0; ; yyj2274++ { if yyhl2274 { if yyj2274 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2274Slc = r.DecodeBytes(yys2274Slc, true, true) yys2274 := string(yys2274Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2274 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2277 := &x.ListMeta yym2278 := z.DecBinary() _ = yym2278 if false { } else if z.HasExtensions() && z.DecExt(yyv2277) { } else { z.DecFallback(yyv2277, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2279 := &x.Items yym2280 := z.DecBinary() _ = yym2280 if false { } else { h.decSlicePodTemplate((*[]PodTemplate)(yyv2279), d) } } default: z.DecStructFieldNotFound(-1, yys2274) } // end switch yys2274 } // end for yyj2274 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2281 int var yyb2281 bool var yyhl2281 bool = l >= 0 yyj2281++ if yyhl2281 { yyb2281 = yyj2281 > l } else { yyb2281 = r.CheckBreak() } if yyb2281 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2281++ if yyhl2281 { yyb2281 = yyj2281 > l } else { yyb2281 = r.CheckBreak() } if yyb2281 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2281++ if yyhl2281 { yyb2281 = yyj2281 > l } else { yyb2281 = r.CheckBreak() } if yyb2281 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2284 := &x.ListMeta yym2285 := z.DecBinary() _ = yym2285 if false { } else if z.HasExtensions() && z.DecExt(yyv2284) { } else { z.DecFallback(yyv2284, false) } } yyj2281++ if yyhl2281 { yyb2281 = yyj2281 > l } else { yyb2281 = r.CheckBreak() } if yyb2281 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2286 := &x.Items yym2287 := z.DecBinary() _ = yym2287 if false { } else { h.decSlicePodTemplate((*[]PodTemplate)(yyv2286), d) } } for { yyj2281++ if yyhl2281 { yyb2281 = yyj2281 > l } else { yyb2281 = r.CheckBreak() } if yyb2281 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2281-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2288 := z.EncBinary() _ = yym2288 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2289 := !z.EncBinary() yy2arr2289 := z.EncBasicHandle().StructToArray var yyq2289 [3]bool _, _, _ = yysep2289, yyq2289, yy2arr2289 const yyr2289 bool = false yyq2289[2] = x.Template != nil var yynn2289 int if yyr2289 || yy2arr2289 { r.EncodeArrayStart(3) } else { yynn2289 = 2 for _, b := range yyq2289 { if b { yynn2289++ } } r.EncodeMapStart(yynn2289) yynn2289 = 0 } if yyr2289 || yy2arr2289 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2291 := z.EncBinary() _ = yym2291 if false { } else { r.EncodeInt(int64(x.Replicas)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2292 := z.EncBinary() _ = yym2292 if false { } else { r.EncodeInt(int64(x.Replicas)) } } if yyr2289 || yy2arr2289 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { yym2294 := z.EncBinary() _ = yym2294 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { yym2295 := z.EncBinary() _ = yym2295 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } if yyr2289 || yy2arr2289 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2289[2] { if x.Template == nil { r.EncodeNil() } else { x.Template.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2289[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Template == nil { r.EncodeNil() } else { x.Template.CodecEncodeSelf(e) } } } if yyr2289 || yy2arr2289 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ReplicationControllerSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2297 := z.DecBinary() _ = yym2297 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2298 := r.ContainerType() if yyct2298 == codecSelferValueTypeMap1234 { yyl2298 := r.ReadMapStart() if yyl2298 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2298, d) } } else if yyct2298 == codecSelferValueTypeArray1234 { yyl2298 := r.ReadArrayStart() if yyl2298 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2298, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2299Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2299Slc var yyhl2299 bool = l >= 0 for yyj2299 := 0; ; yyj2299++ { if yyhl2299 { if yyj2299 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2299Slc = r.DecodeBytes(yys2299Slc, true, true) yys2299 := string(yys2299Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2299 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int32(r.DecodeInt(32)) } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { yyv2301 := &x.Selector yym2302 := z.DecBinary() _ = yym2302 if false { } else { z.F.DecMapStringStringX(yyv2301, false, d) } } case "template": if r.TryDecodeAsNil() { if x.Template != nil { x.Template = nil } } else { if x.Template == nil { x.Template = new(PodTemplateSpec) } x.Template.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2299) } // end switch yys2299 } // end for yyj2299 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2304 int var yyb2304 bool var yyhl2304 bool = l >= 0 yyj2304++ if yyhl2304 { yyb2304 = yyj2304 > l } else { yyb2304 = r.CheckBreak() } if yyb2304 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int32(r.DecodeInt(32)) } yyj2304++ if yyhl2304 { yyb2304 = yyj2304 > l } else { yyb2304 = r.CheckBreak() } if yyb2304 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Selector = nil } else { yyv2306 := &x.Selector yym2307 := z.DecBinary() _ = yym2307 if false { } else { z.F.DecMapStringStringX(yyv2306, false, d) } } yyj2304++ if yyhl2304 { yyb2304 = yyj2304 > l } else { yyb2304 = r.CheckBreak() } if yyb2304 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Template != nil { x.Template = nil } } else { if x.Template == nil { x.Template = new(PodTemplateSpec) } x.Template.CodecDecodeSelf(d) } for { yyj2304++ if yyhl2304 { yyb2304 = yyj2304 > l } else { yyb2304 = r.CheckBreak() } if yyb2304 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2304-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2309 := z.EncBinary() _ = yym2309 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2310 := !z.EncBinary() yy2arr2310 := z.EncBasicHandle().StructToArray var yyq2310 [3]bool _, _, _ = yysep2310, yyq2310, yy2arr2310 const yyr2310 bool = false yyq2310[1] = x.FullyLabeledReplicas != 0 yyq2310[2] = x.ObservedGeneration != 0 var yynn2310 int if yyr2310 || yy2arr2310 { r.EncodeArrayStart(3) } else { yynn2310 = 1 for _, b := range yyq2310 { if b { yynn2310++ } } r.EncodeMapStart(yynn2310) yynn2310 = 0 } if yyr2310 || yy2arr2310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2312 := z.EncBinary() _ = yym2312 if false { } else { r.EncodeInt(int64(x.Replicas)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2313 := z.EncBinary() _ = yym2313 if false { } else { r.EncodeInt(int64(x.Replicas)) } } if yyr2310 || yy2arr2310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2310[1] { yym2315 := z.EncBinary() _ = yym2315 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) } } else { r.EncodeInt(0) } } else { if yyq2310[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2316 := z.EncBinary() _ = yym2316 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) } } } if yyr2310 || yy2arr2310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2310[2] { yym2318 := z.EncBinary() _ = yym2318 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } else { r.EncodeInt(0) } } else { if yyq2310[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2319 := z.EncBinary() _ = yym2319 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } if yyr2310 || yy2arr2310 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ReplicationControllerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2320 := z.DecBinary() _ = yym2320 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2321 := r.ContainerType() if yyct2321 == codecSelferValueTypeMap1234 { yyl2321 := r.ReadMapStart() if yyl2321 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2321, d) } } else if yyct2321 == codecSelferValueTypeArray1234 { yyl2321 := r.ReadArrayStart() if yyl2321 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2321, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2322Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2322Slc var yyhl2322 bool = l >= 0 for yyj2322 := 0; ; yyj2322++ { if yyhl2322 { if yyj2322 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2322Slc = r.DecodeBytes(yys2322Slc, true, true) yys2322 := string(yys2322Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2322 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int32(r.DecodeInt(32)) } case "fullyLabeledReplicas": if r.TryDecodeAsNil() { x.FullyLabeledReplicas = 0 } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } case "observedGeneration": if r.TryDecodeAsNil() { x.ObservedGeneration = 0 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } default: z.DecStructFieldNotFound(-1, yys2322) } // end switch yys2322 } // end for yyj2322 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2326 int var yyb2326 bool var yyhl2326 bool = l >= 0 yyj2326++ if yyhl2326 { yyb2326 = yyj2326 > l } else { yyb2326 = r.CheckBreak() } if yyb2326 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int32(r.DecodeInt(32)) } yyj2326++ if yyhl2326 { yyb2326 = yyj2326 > l } else { yyb2326 = r.CheckBreak() } if yyb2326 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FullyLabeledReplicas = 0 } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } yyj2326++ if yyhl2326 { yyb2326 = yyj2326 > l } else { yyb2326 = r.CheckBreak() } if yyb2326 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObservedGeneration = 0 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } for { yyj2326++ if yyhl2326 { yyb2326 = yyj2326 > l } else { yyb2326 = r.CheckBreak() } if yyb2326 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2326-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2330 := z.EncBinary() _ = yym2330 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2331 := !z.EncBinary() yy2arr2331 := z.EncBasicHandle().StructToArray var yyq2331 [5]bool _, _, _ = yysep2331, yyq2331, yy2arr2331 const yyr2331 bool = false yyq2331[0] = x.Kind != "" yyq2331[1] = x.APIVersion != "" yyq2331[2] = true yyq2331[3] = true yyq2331[4] = true var yynn2331 int if yyr2331 || yy2arr2331 { r.EncodeArrayStart(5) } else { yynn2331 = 0 for _, b := range yyq2331 { if b { yynn2331++ } } r.EncodeMapStart(yynn2331) yynn2331 = 0 } if yyr2331 || yy2arr2331 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2331[0] { yym2333 := z.EncBinary() _ = yym2333 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2331[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2334 := z.EncBinary() _ = yym2334 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2331 || yy2arr2331 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2331[1] { yym2336 := z.EncBinary() _ = yym2336 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2331[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2337 := z.EncBinary() _ = yym2337 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2331 || yy2arr2331 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2331[2] { yy2339 := &x.ObjectMeta yy2339.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2331[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2340 := &x.ObjectMeta yy2340.CodecEncodeSelf(e) } } if yyr2331 || yy2arr2331 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2331[3] { yy2342 := &x.Spec yy2342.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2331[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2343 := &x.Spec yy2343.CodecEncodeSelf(e) } } if yyr2331 || yy2arr2331 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2331[4] { yy2345 := &x.Status yy2345.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2331[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2346 := &x.Status yy2346.CodecEncodeSelf(e) } } if yyr2331 || yy2arr2331 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ReplicationController) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2347 := z.DecBinary() _ = yym2347 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2348 := r.ContainerType() if yyct2348 == codecSelferValueTypeMap1234 { yyl2348 := r.ReadMapStart() if yyl2348 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2348, d) } } else if yyct2348 == codecSelferValueTypeArray1234 { yyl2348 := r.ReadArrayStart() if yyl2348 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2348, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2349Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2349Slc var yyhl2349 bool = l >= 0 for yyj2349 := 0; ; yyj2349++ { if yyhl2349 { if yyj2349 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2349Slc = r.DecodeBytes(yys2349Slc, true, true) yys2349 := string(yys2349Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2349 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2352 := &x.ObjectMeta yyv2352.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { yyv2353 := &x.Spec yyv2353.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { yyv2354 := &x.Status yyv2354.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2349) } // end switch yys2349 } // end for yyj2349 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2355 int var yyb2355 bool var yyhl2355 bool = l >= 0 yyj2355++ if yyhl2355 { yyb2355 = yyj2355 > l } else { yyb2355 = r.CheckBreak() } if yyb2355 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2355++ if yyhl2355 { yyb2355 = yyj2355 > l } else { yyb2355 = r.CheckBreak() } if yyb2355 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2355++ if yyhl2355 { yyb2355 = yyj2355 > l } else { yyb2355 = r.CheckBreak() } if yyb2355 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2358 := &x.ObjectMeta yyv2358.CodecDecodeSelf(d) } yyj2355++ if yyhl2355 { yyb2355 = yyj2355 > l } else { yyb2355 = r.CheckBreak() } if yyb2355 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { yyv2359 := &x.Spec yyv2359.CodecDecodeSelf(d) } yyj2355++ if yyhl2355 { yyb2355 = yyj2355 > l } else { yyb2355 = r.CheckBreak() } if yyb2355 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { yyv2360 := &x.Status yyv2360.CodecDecodeSelf(d) } for { yyj2355++ if yyhl2355 { yyb2355 = yyj2355 > l } else { yyb2355 = r.CheckBreak() } if yyb2355 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2355-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2361 := z.EncBinary() _ = yym2361 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2362 := !z.EncBinary() yy2arr2362 := z.EncBasicHandle().StructToArray var yyq2362 [4]bool _, _, _ = yysep2362, yyq2362, yy2arr2362 const yyr2362 bool = false yyq2362[0] = x.Kind != "" yyq2362[1] = x.APIVersion != "" yyq2362[2] = true var yynn2362 int if yyr2362 || yy2arr2362 { r.EncodeArrayStart(4) } else { yynn2362 = 1 for _, b := range yyq2362 { if b { yynn2362++ } } r.EncodeMapStart(yynn2362) yynn2362 = 0 } if yyr2362 || yy2arr2362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2362[0] { yym2364 := z.EncBinary() _ = yym2364 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2362[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2365 := z.EncBinary() _ = yym2365 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2362 || yy2arr2362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2362[1] { yym2367 := z.EncBinary() _ = yym2367 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2362[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2368 := z.EncBinary() _ = yym2368 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2362 || yy2arr2362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2362[2] { yy2370 := &x.ListMeta yym2371 := z.EncBinary() _ = yym2371 if false { } else if z.HasExtensions() && z.EncExt(yy2370) { } else { z.EncFallback(yy2370) } } else { r.EncodeNil() } } else { if yyq2362[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2372 := &x.ListMeta yym2373 := z.EncBinary() _ = yym2373 if false { } else if z.HasExtensions() && z.EncExt(yy2372) { } else { z.EncFallback(yy2372) } } } if yyr2362 || yy2arr2362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2375 := z.EncBinary() _ = yym2375 if false { } else { h.encSliceReplicationController(([]ReplicationController)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym2376 := z.EncBinary() _ = yym2376 if false { } else { h.encSliceReplicationController(([]ReplicationController)(x.Items), e) } } } if yyr2362 || yy2arr2362 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ReplicationControllerList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2377 := z.DecBinary() _ = yym2377 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2378 := r.ContainerType() if yyct2378 == codecSelferValueTypeMap1234 { yyl2378 := r.ReadMapStart() if yyl2378 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2378, d) } } else if yyct2378 == codecSelferValueTypeArray1234 { yyl2378 := r.ReadArrayStart() if yyl2378 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2378, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2379Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2379Slc var yyhl2379 bool = l >= 0 for yyj2379 := 0; ; yyj2379++ { if yyhl2379 { if yyj2379 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2379Slc = r.DecodeBytes(yys2379Slc, true, true) yys2379 := string(yys2379Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2379 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2382 := &x.ListMeta yym2383 := z.DecBinary() _ = yym2383 if false { } else if z.HasExtensions() && z.DecExt(yyv2382) { } else { z.DecFallback(yyv2382, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2384 := &x.Items yym2385 := z.DecBinary() _ = yym2385 if false { } else { h.decSliceReplicationController((*[]ReplicationController)(yyv2384), d) } } default: z.DecStructFieldNotFound(-1, yys2379) } // end switch yys2379 } // end for yyj2379 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2386 int var yyb2386 bool var yyhl2386 bool = l >= 0 yyj2386++ if yyhl2386 { yyb2386 = yyj2386 > l } else { yyb2386 = r.CheckBreak() } if yyb2386 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2386++ if yyhl2386 { yyb2386 = yyj2386 > l } else { yyb2386 = r.CheckBreak() } if yyb2386 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2386++ if yyhl2386 { yyb2386 = yyj2386 > l } else { yyb2386 = r.CheckBreak() } if yyb2386 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2389 := &x.ListMeta yym2390 := z.DecBinary() _ = yym2390 if false { } else if z.HasExtensions() && z.DecExt(yyv2389) { } else { z.DecFallback(yyv2389, false) } } yyj2386++ if yyhl2386 { yyb2386 = yyj2386 > l } else { yyb2386 = r.CheckBreak() } if yyb2386 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2391 := &x.Items yym2392 := z.DecBinary() _ = yym2392 if false { } else { h.decSliceReplicationController((*[]ReplicationController)(yyv2391), d) } } for { yyj2386++ if yyhl2386 { yyb2386 = yyj2386 > l } else { yyb2386 = r.CheckBreak() } if yyb2386 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2386-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2393 := z.EncBinary() _ = yym2393 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2394 := !z.EncBinary() yy2arr2394 := z.EncBasicHandle().StructToArray var yyq2394 [4]bool _, _, _ = yysep2394, yyq2394, yy2arr2394 const yyr2394 bool = false yyq2394[0] = x.Kind != "" yyq2394[1] = x.APIVersion != "" yyq2394[2] = true var yynn2394 int if yyr2394 || yy2arr2394 { r.EncodeArrayStart(4) } else { yynn2394 = 1 for _, b := range yyq2394 { if b { yynn2394++ } } r.EncodeMapStart(yynn2394) yynn2394 = 0 } if yyr2394 || yy2arr2394 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2394[0] { yym2396 := z.EncBinary() _ = yym2396 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2394[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2397 := z.EncBinary() _ = yym2397 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2394 || yy2arr2394 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2394[1] { yym2399 := z.EncBinary() _ = yym2399 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2394[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2400 := z.EncBinary() _ = yym2400 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2394 || yy2arr2394 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2394[2] { yy2402 := &x.ListMeta yym2403 := z.EncBinary() _ = yym2403 if false { } else if z.HasExtensions() && z.EncExt(yy2402) { } else { z.EncFallback(yy2402) } } else { r.EncodeNil() } } else { if yyq2394[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2404 := &x.ListMeta yym2405 := z.EncBinary() _ = yym2405 if false { } else if z.HasExtensions() && z.EncExt(yy2404) { } else { z.EncFallback(yy2404) } } } if yyr2394 || yy2arr2394 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2407 := z.EncBinary() _ = yym2407 if false { } else { h.encSliceService(([]Service)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym2408 := z.EncBinary() _ = yym2408 if false { } else { h.encSliceService(([]Service)(x.Items), e) } } } if yyr2394 || yy2arr2394 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ServiceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2409 := z.DecBinary() _ = yym2409 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2410 := r.ContainerType() if yyct2410 == codecSelferValueTypeMap1234 { yyl2410 := r.ReadMapStart() if yyl2410 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2410, d) } } else if yyct2410 == codecSelferValueTypeArray1234 { yyl2410 := r.ReadArrayStart() if yyl2410 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2410, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2411Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2411Slc var yyhl2411 bool = l >= 0 for yyj2411 := 0; ; yyj2411++ { if yyhl2411 { if yyj2411 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2411Slc = r.DecodeBytes(yys2411Slc, true, true) yys2411 := string(yys2411Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2411 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2414 := &x.ListMeta yym2415 := z.DecBinary() _ = yym2415 if false { } else if z.HasExtensions() && z.DecExt(yyv2414) { } else { z.DecFallback(yyv2414, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2416 := &x.Items yym2417 := z.DecBinary() _ = yym2417 if false { } else { h.decSliceService((*[]Service)(yyv2416), d) } } default: z.DecStructFieldNotFound(-1, yys2411) } // end switch yys2411 } // end for yyj2411 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2418 int var yyb2418 bool var yyhl2418 bool = l >= 0 yyj2418++ if yyhl2418 { yyb2418 = yyj2418 > l } else { yyb2418 = r.CheckBreak() } if yyb2418 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2418++ if yyhl2418 { yyb2418 = yyj2418 > l } else { yyb2418 = r.CheckBreak() } if yyb2418 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2418++ if yyhl2418 { yyb2418 = yyj2418 > l } else { yyb2418 = r.CheckBreak() } if yyb2418 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2421 := &x.ListMeta yym2422 := z.DecBinary() _ = yym2422 if false { } else if z.HasExtensions() && z.DecExt(yyv2421) { } else { z.DecFallback(yyv2421, false) } } yyj2418++ if yyhl2418 { yyb2418 = yyj2418 > l } else { yyb2418 = r.CheckBreak() } if yyb2418 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2423 := &x.Items yym2424 := z.DecBinary() _ = yym2424 if false { } else { h.decSliceService((*[]Service)(yyv2423), d) } } for { yyj2418++ if yyhl2418 { yyb2418 = yyj2418 > l } else { yyb2418 = r.CheckBreak() } if yyb2418 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2418-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2425 := z.EncBinary() _ = yym2425 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *ServiceAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2426 := z.DecBinary() _ = yym2426 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x ServiceType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2427 := z.EncBinary() _ = yym2427 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *ServiceType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2428 := z.DecBinary() _ = yym2428 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *ServiceStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2429 := z.EncBinary() _ = yym2429 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2430 := !z.EncBinary() yy2arr2430 := z.EncBasicHandle().StructToArray var yyq2430 [1]bool _, _, _ = yysep2430, yyq2430, yy2arr2430 const yyr2430 bool = false yyq2430[0] = true var yynn2430 int if yyr2430 || yy2arr2430 { r.EncodeArrayStart(1) } else { yynn2430 = 0 for _, b := range yyq2430 { if b { yynn2430++ } } r.EncodeMapStart(yynn2430) yynn2430 = 0 } if yyr2430 || yy2arr2430 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2430[0] { yy2432 := &x.LoadBalancer yy2432.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2430[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2433 := &x.LoadBalancer yy2433.CodecEncodeSelf(e) } } if yyr2430 || yy2arr2430 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ServiceStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2434 := z.DecBinary() _ = yym2434 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2435 := r.ContainerType() if yyct2435 == codecSelferValueTypeMap1234 { yyl2435 := r.ReadMapStart() if yyl2435 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2435, d) } } else if yyct2435 == codecSelferValueTypeArray1234 { yyl2435 := r.ReadArrayStart() if yyl2435 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2435, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ServiceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2436Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2436Slc var yyhl2436 bool = l >= 0 for yyj2436 := 0; ; yyj2436++ { if yyhl2436 { if yyj2436 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2436Slc = r.DecodeBytes(yys2436Slc, true, true) yys2436 := string(yys2436Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2436 { case "loadBalancer": if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { yyv2437 := &x.LoadBalancer yyv2437.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2436) } // end switch yys2436 } // end for yyj2436 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ServiceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2438 int var yyb2438 bool var yyhl2438 bool = l >= 0 yyj2438++ if yyhl2438 { yyb2438 = yyj2438 > l } else { yyb2438 = r.CheckBreak() } if yyb2438 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { yyv2439 := &x.LoadBalancer yyv2439.CodecDecodeSelf(d) } for { yyj2438++ if yyhl2438 { yyb2438 = yyj2438 > l } else { yyb2438 = r.CheckBreak() } if yyb2438 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2438-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2440 := z.EncBinary() _ = yym2440 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2441 := !z.EncBinary() yy2arr2441 := z.EncBasicHandle().StructToArray var yyq2441 [1]bool _, _, _ = yysep2441, yyq2441, yy2arr2441 const yyr2441 bool = false yyq2441[0] = len(x.Ingress) != 0 var yynn2441 int if yyr2441 || yy2arr2441 { r.EncodeArrayStart(1) } else { yynn2441 = 0 for _, b := range yyq2441 { if b { yynn2441++ } } r.EncodeMapStart(yynn2441) yynn2441 = 0 } if yyr2441 || yy2arr2441 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2441[0] { if x.Ingress == nil { r.EncodeNil() } else { yym2443 := z.EncBinary() _ = yym2443 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) } } } else { r.EncodeNil() } } else { if yyq2441[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ingress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ingress == nil { r.EncodeNil() } else { yym2444 := z.EncBinary() _ = yym2444 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) } } } } if yyr2441 || yy2arr2441 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *LoadBalancerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2445 := z.DecBinary() _ = yym2445 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2446 := r.ContainerType() if yyct2446 == codecSelferValueTypeMap1234 { yyl2446 := r.ReadMapStart() if yyl2446 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2446, d) } } else if yyct2446 == codecSelferValueTypeArray1234 { yyl2446 := r.ReadArrayStart() if yyl2446 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2446, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *LoadBalancerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2447Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2447Slc var yyhl2447 bool = l >= 0 for yyj2447 := 0; ; yyj2447++ { if yyhl2447 { if yyj2447 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2447Slc = r.DecodeBytes(yys2447Slc, true, true) yys2447 := string(yys2447Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2447 { case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { yyv2448 := &x.Ingress yym2449 := z.DecBinary() _ = yym2449 if false { } else { h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2448), d) } } default: z.DecStructFieldNotFound(-1, yys2447) } // end switch yys2447 } // end for yyj2447 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *LoadBalancerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2450 int var yyb2450 bool var yyhl2450 bool = l >= 0 yyj2450++ if yyhl2450 { yyb2450 = yyj2450 > l } else { yyb2450 = r.CheckBreak() } if yyb2450 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ingress = nil } else { yyv2451 := &x.Ingress yym2452 := z.DecBinary() _ = yym2452 if false { } else { h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2451), d) } } for { yyj2450++ if yyhl2450 { yyb2450 = yyj2450 > l } else { yyb2450 = r.CheckBreak() } if yyb2450 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2450-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2453 := z.EncBinary() _ = yym2453 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2454 := !z.EncBinary() yy2arr2454 := z.EncBasicHandle().StructToArray var yyq2454 [2]bool _, _, _ = yysep2454, yyq2454, yy2arr2454 const yyr2454 bool = false yyq2454[0] = x.IP != "" yyq2454[1] = x.Hostname != "" var yynn2454 int if yyr2454 || yy2arr2454 { r.EncodeArrayStart(2) } else { yynn2454 = 0 for _, b := range yyq2454 { if b { yynn2454++ } } r.EncodeMapStart(yynn2454) yynn2454 = 0 } if yyr2454 || yy2arr2454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2454[0] { yym2456 := z.EncBinary() _ = yym2456 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2454[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ip")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2457 := z.EncBinary() _ = yym2457 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } } if yyr2454 || yy2arr2454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2454[1] { yym2459 := z.EncBinary() _ = yym2459 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2454[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2460 := z.EncBinary() _ = yym2460 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } if yyr2454 || yy2arr2454 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *LoadBalancerIngress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2461 := z.DecBinary() _ = yym2461 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2462 := r.ContainerType() if yyct2462 == codecSelferValueTypeMap1234 { yyl2462 := r.ReadMapStart() if yyl2462 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2462, d) } } else if yyct2462 == codecSelferValueTypeArray1234 { yyl2462 := r.ReadArrayStart() if yyl2462 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2462, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2463Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2463Slc var yyhl2463 bool = l >= 0 for yyj2463 := 0; ; yyj2463++ { if yyhl2463 { if yyj2463 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2463Slc = r.DecodeBytes(yys2463Slc, true, true) yys2463 := string(yys2463Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2463 { case "ip": if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } case "hostname": if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2463) } // end switch yys2463 } // end for yyj2463 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2466 int var yyb2466 bool var yyhl2466 bool = l >= 0 yyj2466++ if yyhl2466 { yyb2466 = yyj2466 > l } else { yyb2466 = r.CheckBreak() } if yyb2466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } yyj2466++ if yyhl2466 { yyb2466 = yyj2466 > l } else { yyb2466 = r.CheckBreak() } if yyb2466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } for { yyj2466++ if yyhl2466 { yyb2466 = yyj2466 > l } else { yyb2466 = r.CheckBreak() } if yyb2466 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2466-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2469 := z.EncBinary() _ = yym2469 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2470 := !z.EncBinary() yy2arr2470 := z.EncBasicHandle().StructToArray var yyq2470 [8]bool _, _, _ = yysep2470, yyq2470, yy2arr2470 const yyr2470 bool = false yyq2470[0] = x.Type != "" yyq2470[3] = x.ClusterIP != "" yyq2470[4] = len(x.ExternalIPs) != 0 yyq2470[5] = x.LoadBalancerIP != "" yyq2470[6] = x.SessionAffinity != "" yyq2470[7] = len(x.LoadBalancerSourceRanges) != 0 var yynn2470 int if yyr2470 || yy2arr2470 { r.EncodeArrayStart(8) } else { yynn2470 = 2 for _, b := range yyq2470 { if b { yynn2470++ } } r.EncodeMapStart(yynn2470) yynn2470 = 0 } if yyr2470 || yy2arr2470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2470[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2470[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr2470 || yy2arr2470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { yym2473 := z.EncBinary() _ = yym2473 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { yym2474 := z.EncBinary() _ = yym2474 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) } } } if yyr2470 || yy2arr2470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { yym2476 := z.EncBinary() _ = yym2476 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { yym2477 := z.EncBinary() _ = yym2477 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } if yyr2470 || yy2arr2470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2470[3] { yym2479 := z.EncBinary() _ = yym2479 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2470[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2480 := z.EncBinary() _ = yym2480 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } } if yyr2470 || yy2arr2470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2470[4] { if x.ExternalIPs == nil { r.EncodeNil() } else { yym2482 := z.EncBinary() _ = yym2482 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) } } } else { r.EncodeNil() } } else { if yyq2470[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalIPs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ExternalIPs == nil { r.EncodeNil() } else { yym2483 := z.EncBinary() _ = yym2483 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) } } } } if yyr2470 || yy2arr2470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2470[5] { yym2485 := z.EncBinary() _ = yym2485 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2470[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2486 := z.EncBinary() _ = yym2486 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } } if yyr2470 || yy2arr2470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2470[6] { x.SessionAffinity.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2470[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.SessionAffinity.CodecEncodeSelf(e) } } if yyr2470 || yy2arr2470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2470[7] { if x.LoadBalancerSourceRanges == nil { r.EncodeNil() } else { yym2489 := z.EncBinary() _ = yym2489 if false { } else { z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) } } } else { r.EncodeNil() } } else { if yyq2470[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerSourceRanges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LoadBalancerSourceRanges == nil { r.EncodeNil() } else { yym2490 := z.EncBinary() _ = yym2490 if false { } else { z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) } } } } if yyr2470 || yy2arr2470 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ServiceSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2491 := z.DecBinary() _ = yym2491 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2492 := r.ContainerType() if yyct2492 == codecSelferValueTypeMap1234 { yyl2492 := r.ReadMapStart() if yyl2492 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2492, d) } } else if yyct2492 == codecSelferValueTypeArray1234 { yyl2492 := r.ReadArrayStart() if yyl2492 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2492, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2493Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2493Slc var yyhl2493 bool = l >= 0 for yyj2493 := 0; ; yyj2493++ { if yyhl2493 { if yyj2493 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2493Slc = r.DecodeBytes(yys2493Slc, true, true) yys2493 := string(yys2493Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2493 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ServiceType(r.DecodeString()) } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2495 := &x.Ports yym2496 := z.DecBinary() _ = yym2496 if false { } else { h.decSliceServicePort((*[]ServicePort)(yyv2495), d) } } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { yyv2497 := &x.Selector yym2498 := z.DecBinary() _ = yym2498 if false { } else { z.F.DecMapStringStringX(yyv2497, false, d) } } case "clusterIP": if r.TryDecodeAsNil() { x.ClusterIP = "" } else { x.ClusterIP = string(r.DecodeString()) } case "externalIPs": if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { yyv2500 := &x.ExternalIPs yym2501 := z.DecBinary() _ = yym2501 if false { } else { z.F.DecSliceStringX(yyv2500, false, d) } } case "loadBalancerIP": if r.TryDecodeAsNil() { x.LoadBalancerIP = "" } else { x.LoadBalancerIP = string(r.DecodeString()) } case "sessionAffinity": if r.TryDecodeAsNil() { x.SessionAffinity = "" } else { x.SessionAffinity = ServiceAffinity(r.DecodeString()) } case "loadBalancerSourceRanges": if r.TryDecodeAsNil() { x.LoadBalancerSourceRanges = nil } else { yyv2504 := &x.LoadBalancerSourceRanges yym2505 := z.DecBinary() _ = yym2505 if false { } else { z.F.DecSliceStringX(yyv2504, false, d) } } default: z.DecStructFieldNotFound(-1, yys2493) } // end switch yys2493 } // end for yyj2493 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2506 int var yyb2506 bool var yyhl2506 bool = l >= 0 yyj2506++ if yyhl2506 { yyb2506 = yyj2506 > l } else { yyb2506 = r.CheckBreak() } if yyb2506 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ServiceType(r.DecodeString()) } yyj2506++ if yyhl2506 { yyb2506 = yyj2506 > l } else { yyb2506 = r.CheckBreak() } if yyb2506 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2508 := &x.Ports yym2509 := z.DecBinary() _ = yym2509 if false { } else { h.decSliceServicePort((*[]ServicePort)(yyv2508), d) } } yyj2506++ if yyhl2506 { yyb2506 = yyj2506 > l } else { yyb2506 = r.CheckBreak() } if yyb2506 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Selector = nil } else { yyv2510 := &x.Selector yym2511 := z.DecBinary() _ = yym2511 if false { } else { z.F.DecMapStringStringX(yyv2510, false, d) } } yyj2506++ if yyhl2506 { yyb2506 = yyj2506 > l } else { yyb2506 = r.CheckBreak() } if yyb2506 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ClusterIP = "" } else { x.ClusterIP = string(r.DecodeString()) } yyj2506++ if yyhl2506 { yyb2506 = yyj2506 > l } else { yyb2506 = r.CheckBreak() } if yyb2506 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { yyv2513 := &x.ExternalIPs yym2514 := z.DecBinary() _ = yym2514 if false { } else { z.F.DecSliceStringX(yyv2513, false, d) } } yyj2506++ if yyhl2506 { yyb2506 = yyj2506 > l } else { yyb2506 = r.CheckBreak() } if yyb2506 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LoadBalancerIP = "" } else { x.LoadBalancerIP = string(r.DecodeString()) } yyj2506++ if yyhl2506 { yyb2506 = yyj2506 > l } else { yyb2506 = r.CheckBreak() } if yyb2506 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SessionAffinity = "" } else { x.SessionAffinity = ServiceAffinity(r.DecodeString()) } yyj2506++ if yyhl2506 { yyb2506 = yyj2506 > l } else { yyb2506 = r.CheckBreak() } if yyb2506 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LoadBalancerSourceRanges = nil } else { yyv2517 := &x.LoadBalancerSourceRanges yym2518 := z.DecBinary() _ = yym2518 if false { } else { z.F.DecSliceStringX(yyv2517, false, d) } } for { yyj2506++ if yyhl2506 { yyb2506 = yyj2506 > l } else { yyb2506 = r.CheckBreak() } if yyb2506 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2506-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2519 := z.EncBinary() _ = yym2519 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2520 := !z.EncBinary() yy2arr2520 := z.EncBasicHandle().StructToArray var yyq2520 [5]bool _, _, _ = yysep2520, yyq2520, yy2arr2520 const yyr2520 bool = false var yynn2520 int if yyr2520 || yy2arr2520 { r.EncodeArrayStart(5) } else { yynn2520 = 5 for _, b := range yyq2520 { if b { yynn2520++ } } r.EncodeMapStart(yynn2520) yynn2520 = 0 } if yyr2520 || yy2arr2520 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2522 := z.EncBinary() _ = yym2522 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2523 := z.EncBinary() _ = yym2523 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr2520 || yy2arr2520 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Protocol.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } if yyr2520 || yy2arr2520 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2526 := z.EncBinary() _ = yym2526 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2527 := z.EncBinary() _ = yym2527 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2520 || yy2arr2520 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy2529 := &x.TargetPort yym2530 := z.EncBinary() _ = yym2530 if false { } else if z.HasExtensions() && z.EncExt(yy2529) { } else if !yym2530 && z.IsJSONHandle() { z.EncJSONMarshal(yy2529) } else { z.EncFallback(yy2529) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2531 := &x.TargetPort yym2532 := z.EncBinary() _ = yym2532 if false { } else if z.HasExtensions() && z.EncExt(yy2531) { } else if !yym2532 && z.IsJSONHandle() { z.EncJSONMarshal(yy2531) } else { z.EncFallback(yy2531) } } if yyr2520 || yy2arr2520 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2534 := z.EncBinary() _ = yym2534 if false { } else { r.EncodeInt(int64(x.NodePort)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2535 := z.EncBinary() _ = yym2535 if false { } else { r.EncodeInt(int64(x.NodePort)) } } if yyr2520 || yy2arr2520 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ServicePort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2536 := z.DecBinary() _ = yym2536 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2537 := r.ContainerType() if yyct2537 == codecSelferValueTypeMap1234 { yyl2537 := r.ReadMapStart() if yyl2537 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2537, d) } } else if yyct2537 == codecSelferValueTypeArray1234 { yyl2537 := r.ReadArrayStart() if yyl2537 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2537, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2538Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2538Slc var yyhl2538 bool = l >= 0 for yyj2538 := 0; ; yyj2538++ { if yyhl2538 { if yyj2538 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2538Slc = r.DecodeBytes(yys2538Slc, true, true) yys2538 := string(yys2538Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2538 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "protocol": if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } case "port": if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int32(r.DecodeInt(32)) } case "targetPort": if r.TryDecodeAsNil() { x.TargetPort = pkg4_intstr.IntOrString{} } else { yyv2542 := &x.TargetPort yym2543 := z.DecBinary() _ = yym2543 if false { } else if z.HasExtensions() && z.DecExt(yyv2542) { } else if !yym2543 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2542) } else { z.DecFallback(yyv2542, false) } } case "nodePort": if r.TryDecodeAsNil() { x.NodePort = 0 } else { x.NodePort = int32(r.DecodeInt(32)) } default: z.DecStructFieldNotFound(-1, yys2538) } // end switch yys2538 } // end for yyj2538 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2545 int var yyb2545 bool var yyhl2545 bool = l >= 0 yyj2545++ if yyhl2545 { yyb2545 = yyj2545 > l } else { yyb2545 = r.CheckBreak() } if yyb2545 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj2545++ if yyhl2545 { yyb2545 = yyj2545 > l } else { yyb2545 = r.CheckBreak() } if yyb2545 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } yyj2545++ if yyhl2545 { yyb2545 = yyj2545 > l } else { yyb2545 = r.CheckBreak() } if yyb2545 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int32(r.DecodeInt(32)) } yyj2545++ if yyhl2545 { yyb2545 = yyj2545 > l } else { yyb2545 = r.CheckBreak() } if yyb2545 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetPort = pkg4_intstr.IntOrString{} } else { yyv2549 := &x.TargetPort yym2550 := z.DecBinary() _ = yym2550 if false { } else if z.HasExtensions() && z.DecExt(yyv2549) { } else if !yym2550 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2549) } else { z.DecFallback(yyv2549, false) } } yyj2545++ if yyhl2545 { yyb2545 = yyj2545 > l } else { yyb2545 = r.CheckBreak() } if yyb2545 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodePort = 0 } else { x.NodePort = int32(r.DecodeInt(32)) } for { yyj2545++ if yyhl2545 { yyb2545 = yyj2545 > l } else { yyb2545 = r.CheckBreak() } if yyb2545 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2545-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2552 := z.EncBinary() _ = yym2552 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2553 := !z.EncBinary() yy2arr2553 := z.EncBasicHandle().StructToArray var yyq2553 [5]bool _, _, _ = yysep2553, yyq2553, yy2arr2553 const yyr2553 bool = false yyq2553[0] = x.Kind != "" yyq2553[1] = x.APIVersion != "" yyq2553[2] = true yyq2553[3] = true yyq2553[4] = true var yynn2553 int if yyr2553 || yy2arr2553 { r.EncodeArrayStart(5) } else { yynn2553 = 0 for _, b := range yyq2553 { if b { yynn2553++ } } r.EncodeMapStart(yynn2553) yynn2553 = 0 } if yyr2553 || yy2arr2553 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2553[0] { yym2555 := z.EncBinary() _ = yym2555 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2553[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2556 := z.EncBinary() _ = yym2556 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2553 || yy2arr2553 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2553[1] { yym2558 := z.EncBinary() _ = yym2558 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2553[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2559 := z.EncBinary() _ = yym2559 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2553 || yy2arr2553 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2553[2] { yy2561 := &x.ObjectMeta yy2561.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2553[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2562 := &x.ObjectMeta yy2562.CodecEncodeSelf(e) } } if yyr2553 || yy2arr2553 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2553[3] { yy2564 := &x.Spec yy2564.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2553[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2565 := &x.Spec yy2565.CodecEncodeSelf(e) } } if yyr2553 || yy2arr2553 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2553[4] { yy2567 := &x.Status yy2567.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2553[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2568 := &x.Status yy2568.CodecEncodeSelf(e) } } if yyr2553 || yy2arr2553 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Service) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2569 := z.DecBinary() _ = yym2569 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2570 := r.ContainerType() if yyct2570 == codecSelferValueTypeMap1234 { yyl2570 := r.ReadMapStart() if yyl2570 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2570, d) } } else if yyct2570 == codecSelferValueTypeArray1234 { yyl2570 := r.ReadArrayStart() if yyl2570 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2570, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2571Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2571Slc var yyhl2571 bool = l >= 0 for yyj2571 := 0; ; yyj2571++ { if yyhl2571 { if yyj2571 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2571Slc = r.DecodeBytes(yys2571Slc, true, true) yys2571 := string(yys2571Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2571 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2574 := &x.ObjectMeta yyv2574.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { yyv2575 := &x.Spec yyv2575.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { yyv2576 := &x.Status yyv2576.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2571) } // end switch yys2571 } // end for yyj2571 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2577 int var yyb2577 bool var yyhl2577 bool = l >= 0 yyj2577++ if yyhl2577 { yyb2577 = yyj2577 > l } else { yyb2577 = r.CheckBreak() } if yyb2577 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2577++ if yyhl2577 { yyb2577 = yyj2577 > l } else { yyb2577 = r.CheckBreak() } if yyb2577 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2577++ if yyhl2577 { yyb2577 = yyj2577 > l } else { yyb2577 = r.CheckBreak() } if yyb2577 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2580 := &x.ObjectMeta yyv2580.CodecDecodeSelf(d) } yyj2577++ if yyhl2577 { yyb2577 = yyj2577 > l } else { yyb2577 = r.CheckBreak() } if yyb2577 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { yyv2581 := &x.Spec yyv2581.CodecDecodeSelf(d) } yyj2577++ if yyhl2577 { yyb2577 = yyj2577 > l } else { yyb2577 = r.CheckBreak() } if yyb2577 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { yyv2582 := &x.Status yyv2582.CodecDecodeSelf(d) } for { yyj2577++ if yyhl2577 { yyb2577 = yyj2577 > l } else { yyb2577 = r.CheckBreak() } if yyb2577 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2577-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2583 := z.EncBinary() _ = yym2583 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2584 := !z.EncBinary() yy2arr2584 := z.EncBasicHandle().StructToArray var yyq2584 [5]bool _, _, _ = yysep2584, yyq2584, yy2arr2584 const yyr2584 bool = false yyq2584[0] = x.Kind != "" yyq2584[1] = x.APIVersion != "" yyq2584[2] = true yyq2584[4] = len(x.ImagePullSecrets) != 0 var yynn2584 int if yyr2584 || yy2arr2584 { r.EncodeArrayStart(5) } else { yynn2584 = 1 for _, b := range yyq2584 { if b { yynn2584++ } } r.EncodeMapStart(yynn2584) yynn2584 = 0 } if yyr2584 || yy2arr2584 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2584[0] { yym2586 := z.EncBinary() _ = yym2586 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2584[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2587 := z.EncBinary() _ = yym2587 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2584 || yy2arr2584 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2584[1] { yym2589 := z.EncBinary() _ = yym2589 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2584[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2590 := z.EncBinary() _ = yym2590 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2584 || yy2arr2584 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2584[2] { yy2592 := &x.ObjectMeta yy2592.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2584[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2593 := &x.ObjectMeta yy2593.CodecEncodeSelf(e) } } if yyr2584 || yy2arr2584 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Secrets == nil { r.EncodeNil() } else { yym2595 := z.EncBinary() _ = yym2595 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Secrets == nil { r.EncodeNil() } else { yym2596 := z.EncBinary() _ = yym2596 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) } } } if yyr2584 || yy2arr2584 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2584[4] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2598 := z.EncBinary() _ = yym2598 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } else { r.EncodeNil() } } else { if yyq2584[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2599 := z.EncBinary() _ = yym2599 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } } if yyr2584 || yy2arr2584 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ServiceAccount) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2600 := z.DecBinary() _ = yym2600 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2601 := r.ContainerType() if yyct2601 == codecSelferValueTypeMap1234 { yyl2601 := r.ReadMapStart() if yyl2601 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2601, d) } } else if yyct2601 == codecSelferValueTypeArray1234 { yyl2601 := r.ReadArrayStart() if yyl2601 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2601, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2602Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2602Slc var yyhl2602 bool = l >= 0 for yyj2602 := 0; ; yyj2602++ { if yyhl2602 { if yyj2602 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2602Slc = r.DecodeBytes(yys2602Slc, true, true) yys2602 := string(yys2602Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2602 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2605 := &x.ObjectMeta yyv2605.CodecDecodeSelf(d) } case "secrets": if r.TryDecodeAsNil() { x.Secrets = nil } else { yyv2606 := &x.Secrets yym2607 := z.DecBinary() _ = yym2607 if false { } else { h.decSliceObjectReference((*[]ObjectReference)(yyv2606), d) } } case "imagePullSecrets": if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2608 := &x.ImagePullSecrets yym2609 := z.DecBinary() _ = yym2609 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2608), d) } } default: z.DecStructFieldNotFound(-1, yys2602) } // end switch yys2602 } // end for yyj2602 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2610 int var yyb2610 bool var yyhl2610 bool = l >= 0 yyj2610++ if yyhl2610 { yyb2610 = yyj2610 > l } else { yyb2610 = r.CheckBreak() } if yyb2610 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2610++ if yyhl2610 { yyb2610 = yyj2610 > l } else { yyb2610 = r.CheckBreak() } if yyb2610 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2610++ if yyhl2610 { yyb2610 = yyj2610 > l } else { yyb2610 = r.CheckBreak() } if yyb2610 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2613 := &x.ObjectMeta yyv2613.CodecDecodeSelf(d) } yyj2610++ if yyhl2610 { yyb2610 = yyj2610 > l } else { yyb2610 = r.CheckBreak() } if yyb2610 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Secrets = nil } else { yyv2614 := &x.Secrets yym2615 := z.DecBinary() _ = yym2615 if false { } else { h.decSliceObjectReference((*[]ObjectReference)(yyv2614), d) } } yyj2610++ if yyhl2610 { yyb2610 = yyj2610 > l } else { yyb2610 = r.CheckBreak() } if yyb2610 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2616 := &x.ImagePullSecrets yym2617 := z.DecBinary() _ = yym2617 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2616), d) } } for { yyj2610++ if yyhl2610 { yyb2610 = yyj2610 > l } else { yyb2610 = r.CheckBreak() } if yyb2610 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2610-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2618 := z.EncBinary() _ = yym2618 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2619 := !z.EncBinary() yy2arr2619 := z.EncBasicHandle().StructToArray var yyq2619 [4]bool _, _, _ = yysep2619, yyq2619, yy2arr2619 const yyr2619 bool = false yyq2619[0] = x.Kind != "" yyq2619[1] = x.APIVersion != "" yyq2619[2] = true var yynn2619 int if yyr2619 || yy2arr2619 { r.EncodeArrayStart(4) } else { yynn2619 = 1 for _, b := range yyq2619 { if b { yynn2619++ } } r.EncodeMapStart(yynn2619) yynn2619 = 0 } if yyr2619 || yy2arr2619 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2619[0] { yym2621 := z.EncBinary() _ = yym2621 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2619[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2622 := z.EncBinary() _ = yym2622 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2619 || yy2arr2619 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2619[1] { yym2624 := z.EncBinary() _ = yym2624 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2619[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2625 := z.EncBinary() _ = yym2625 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2619 || yy2arr2619 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2619[2] { yy2627 := &x.ListMeta yym2628 := z.EncBinary() _ = yym2628 if false { } else if z.HasExtensions() && z.EncExt(yy2627) { } else { z.EncFallback(yy2627) } } else { r.EncodeNil() } } else { if yyq2619[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2629 := &x.ListMeta yym2630 := z.EncBinary() _ = yym2630 if false { } else if z.HasExtensions() && z.EncExt(yy2629) { } else { z.EncFallback(yy2629) } } } if yyr2619 || yy2arr2619 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2632 := z.EncBinary() _ = yym2632 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym2633 := z.EncBinary() _ = yym2633 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } } } if yyr2619 || yy2arr2619 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ServiceAccountList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2634 := z.DecBinary() _ = yym2634 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2635 := r.ContainerType() if yyct2635 == codecSelferValueTypeMap1234 { yyl2635 := r.ReadMapStart() if yyl2635 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2635, d) } } else if yyct2635 == codecSelferValueTypeArray1234 { yyl2635 := r.ReadArrayStart() if yyl2635 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2635, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2636Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2636Slc var yyhl2636 bool = l >= 0 for yyj2636 := 0; ; yyj2636++ { if yyhl2636 { if yyj2636 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2636Slc = r.DecodeBytes(yys2636Slc, true, true) yys2636 := string(yys2636Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2636 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2639 := &x.ListMeta yym2640 := z.DecBinary() _ = yym2640 if false { } else if z.HasExtensions() && z.DecExt(yyv2639) { } else { z.DecFallback(yyv2639, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2641 := &x.Items yym2642 := z.DecBinary() _ = yym2642 if false { } else { h.decSliceServiceAccount((*[]ServiceAccount)(yyv2641), d) } } default: z.DecStructFieldNotFound(-1, yys2636) } // end switch yys2636 } // end for yyj2636 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2643 int var yyb2643 bool var yyhl2643 bool = l >= 0 yyj2643++ if yyhl2643 { yyb2643 = yyj2643 > l } else { yyb2643 = r.CheckBreak() } if yyb2643 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2643++ if yyhl2643 { yyb2643 = yyj2643 > l } else { yyb2643 = r.CheckBreak() } if yyb2643 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2643++ if yyhl2643 { yyb2643 = yyj2643 > l } else { yyb2643 = r.CheckBreak() } if yyb2643 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2646 := &x.ListMeta yym2647 := z.DecBinary() _ = yym2647 if false { } else if z.HasExtensions() && z.DecExt(yyv2646) { } else { z.DecFallback(yyv2646, false) } } yyj2643++ if yyhl2643 { yyb2643 = yyj2643 > l } else { yyb2643 = r.CheckBreak() } if yyb2643 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2648 := &x.Items yym2649 := z.DecBinary() _ = yym2649 if false { } else { h.decSliceServiceAccount((*[]ServiceAccount)(yyv2648), d) } } for { yyj2643++ if yyhl2643 { yyb2643 = yyj2643 > l } else { yyb2643 = r.CheckBreak() } if yyb2643 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2643-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2650 := z.EncBinary() _ = yym2650 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2651 := !z.EncBinary() yy2arr2651 := z.EncBasicHandle().StructToArray var yyq2651 [4]bool _, _, _ = yysep2651, yyq2651, yy2arr2651 const yyr2651 bool = false yyq2651[0] = x.Kind != "" yyq2651[1] = x.APIVersion != "" yyq2651[2] = true var yynn2651 int if yyr2651 || yy2arr2651 { r.EncodeArrayStart(4) } else { yynn2651 = 1 for _, b := range yyq2651 { if b { yynn2651++ } } r.EncodeMapStart(yynn2651) yynn2651 = 0 } if yyr2651 || yy2arr2651 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2651[0] { yym2653 := z.EncBinary() _ = yym2653 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2651[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2654 := z.EncBinary() _ = yym2654 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2651 || yy2arr2651 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2651[1] { yym2656 := z.EncBinary() _ = yym2656 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2651[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2657 := z.EncBinary() _ = yym2657 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2651 || yy2arr2651 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2651[2] { yy2659 := &x.ObjectMeta yy2659.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2651[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2660 := &x.ObjectMeta yy2660.CodecEncodeSelf(e) } } if yyr2651 || yy2arr2651 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Subsets == nil { r.EncodeNil() } else { yym2662 := z.EncBinary() _ = yym2662 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Subsets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Subsets == nil { r.EncodeNil() } else { yym2663 := z.EncBinary() _ = yym2663 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) } } } if yyr2651 || yy2arr2651 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Endpoints) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2664 := z.DecBinary() _ = yym2664 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2665 := r.ContainerType() if yyct2665 == codecSelferValueTypeMap1234 { yyl2665 := r.ReadMapStart() if yyl2665 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2665, d) } } else if yyct2665 == codecSelferValueTypeArray1234 { yyl2665 := r.ReadArrayStart() if yyl2665 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2665, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2666Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2666Slc var yyhl2666 bool = l >= 0 for yyj2666 := 0; ; yyj2666++ { if yyhl2666 { if yyj2666 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2666Slc = r.DecodeBytes(yys2666Slc, true, true) yys2666 := string(yys2666Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2666 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2669 := &x.ObjectMeta yyv2669.CodecDecodeSelf(d) } case "Subsets": if r.TryDecodeAsNil() { x.Subsets = nil } else { yyv2670 := &x.Subsets yym2671 := z.DecBinary() _ = yym2671 if false { } else { h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2670), d) } } default: z.DecStructFieldNotFound(-1, yys2666) } // end switch yys2666 } // end for yyj2666 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2672 int var yyb2672 bool var yyhl2672 bool = l >= 0 yyj2672++ if yyhl2672 { yyb2672 = yyj2672 > l } else { yyb2672 = r.CheckBreak() } if yyb2672 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2672++ if yyhl2672 { yyb2672 = yyj2672 > l } else { yyb2672 = r.CheckBreak() } if yyb2672 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2672++ if yyhl2672 { yyb2672 = yyj2672 > l } else { yyb2672 = r.CheckBreak() } if yyb2672 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2675 := &x.ObjectMeta yyv2675.CodecDecodeSelf(d) } yyj2672++ if yyhl2672 { yyb2672 = yyj2672 > l } else { yyb2672 = r.CheckBreak() } if yyb2672 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Subsets = nil } else { yyv2676 := &x.Subsets yym2677 := z.DecBinary() _ = yym2677 if false { } else { h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2676), d) } } for { yyj2672++ if yyhl2672 { yyb2672 = yyj2672 > l } else { yyb2672 = r.CheckBreak() } if yyb2672 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2672-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2678 := z.EncBinary() _ = yym2678 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2679 := !z.EncBinary() yy2arr2679 := z.EncBasicHandle().StructToArray var yyq2679 [3]bool _, _, _ = yysep2679, yyq2679, yy2arr2679 const yyr2679 bool = false var yynn2679 int if yyr2679 || yy2arr2679 { r.EncodeArrayStart(3) } else { yynn2679 = 3 for _, b := range yyq2679 { if b { yynn2679++ } } r.EncodeMapStart(yynn2679) yynn2679 = 0 } if yyr2679 || yy2arr2679 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Addresses == nil { r.EncodeNil() } else { yym2681 := z.EncBinary() _ = yym2681 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Addresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Addresses == nil { r.EncodeNil() } else { yym2682 := z.EncBinary() _ = yym2682 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) } } } if yyr2679 || yy2arr2679 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NotReadyAddresses == nil { r.EncodeNil() } else { yym2684 := z.EncBinary() _ = yym2684 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("NotReadyAddresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NotReadyAddresses == nil { r.EncodeNil() } else { yym2685 := z.EncBinary() _ = yym2685 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) } } } if yyr2679 || yy2arr2679 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { yym2687 := z.EncBinary() _ = yym2687 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { yym2688 := z.EncBinary() _ = yym2688 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) } } } if yyr2679 || yy2arr2679 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *EndpointSubset) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2689 := z.DecBinary() _ = yym2689 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2690 := r.ContainerType() if yyct2690 == codecSelferValueTypeMap1234 { yyl2690 := r.ReadMapStart() if yyl2690 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2690, d) } } else if yyct2690 == codecSelferValueTypeArray1234 { yyl2690 := r.ReadArrayStart() if yyl2690 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2690, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2691Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2691Slc var yyhl2691 bool = l >= 0 for yyj2691 := 0; ; yyj2691++ { if yyhl2691 { if yyj2691 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2691Slc = r.DecodeBytes(yys2691Slc, true, true) yys2691 := string(yys2691Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2691 { case "Addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2692 := &x.Addresses yym2693 := z.DecBinary() _ = yym2693 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2692), d) } } case "NotReadyAddresses": if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { yyv2694 := &x.NotReadyAddresses yym2695 := z.DecBinary() _ = yym2695 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2694), d) } } case "Ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2696 := &x.Ports yym2697 := z.DecBinary() _ = yym2697 if false { } else { h.decSliceEndpointPort((*[]EndpointPort)(yyv2696), d) } } default: z.DecStructFieldNotFound(-1, yys2691) } // end switch yys2691 } // end for yyj2691 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2698 int var yyb2698 bool var yyhl2698 bool = l >= 0 yyj2698++ if yyhl2698 { yyb2698 = yyj2698 > l } else { yyb2698 = r.CheckBreak() } if yyb2698 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2699 := &x.Addresses yym2700 := z.DecBinary() _ = yym2700 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2699), d) } } yyj2698++ if yyhl2698 { yyb2698 = yyj2698 > l } else { yyb2698 = r.CheckBreak() } if yyb2698 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { yyv2701 := &x.NotReadyAddresses yym2702 := z.DecBinary() _ = yym2702 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2701), d) } } yyj2698++ if yyhl2698 { yyb2698 = yyj2698 > l } else { yyb2698 = r.CheckBreak() } if yyb2698 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2703 := &x.Ports yym2704 := z.DecBinary() _ = yym2704 if false { } else { h.decSliceEndpointPort((*[]EndpointPort)(yyv2703), d) } } for { yyj2698++ if yyhl2698 { yyb2698 = yyj2698 > l } else { yyb2698 = r.CheckBreak() } if yyb2698 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2698-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2705 := z.EncBinary() _ = yym2705 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2706 := !z.EncBinary() yy2arr2706 := z.EncBasicHandle().StructToArray var yyq2706 [4]bool _, _, _ = yysep2706, yyq2706, yy2arr2706 const yyr2706 bool = false yyq2706[1] = x.Hostname != "" yyq2706[2] = x.NodeName != nil var yynn2706 int if yyr2706 || yy2arr2706 { r.EncodeArrayStart(4) } else { yynn2706 = 2 for _, b := range yyq2706 { if b { yynn2706++ } } r.EncodeMapStart(yynn2706) yynn2706 = 0 } if yyr2706 || yy2arr2706 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2708 := z.EncBinary() _ = yym2708 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("IP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2709 := z.EncBinary() _ = yym2709 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } if yyr2706 || yy2arr2706 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2706[1] { yym2711 := z.EncBinary() _ = yym2711 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2706[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2712 := z.EncBinary() _ = yym2712 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } if yyr2706 || yy2arr2706 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2706[2] { if x.NodeName == nil { r.EncodeNil() } else { yy2714 := *x.NodeName yym2715 := z.EncBinary() _ = yym2715 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(yy2714)) } } } else { r.EncodeNil() } } else { if yyq2706[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeName == nil { r.EncodeNil() } else { yy2716 := *x.NodeName yym2717 := z.EncBinary() _ = yym2717 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(yy2716)) } } } } if yyr2706 || yy2arr2706 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TargetRef == nil { r.EncodeNil() } else { x.TargetRef.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TargetRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TargetRef == nil { r.EncodeNil() } else { x.TargetRef.CodecEncodeSelf(e) } } if yyr2706 || yy2arr2706 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *EndpointAddress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2719 := z.DecBinary() _ = yym2719 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2720 := r.ContainerType() if yyct2720 == codecSelferValueTypeMap1234 { yyl2720 := r.ReadMapStart() if yyl2720 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2720, d) } } else if yyct2720 == codecSelferValueTypeArray1234 { yyl2720 := r.ReadArrayStart() if yyl2720 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2720, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2721Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2721Slc var yyhl2721 bool = l >= 0 for yyj2721 := 0; ; yyj2721++ { if yyhl2721 { if yyj2721 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2721Slc = r.DecodeBytes(yys2721Slc, true, true) yys2721 := string(yys2721Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2721 { case "IP": if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } case "hostname": if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } case "nodeName": if r.TryDecodeAsNil() { if x.NodeName != nil { x.NodeName = nil } } else { if x.NodeName == nil { x.NodeName = new(string) } yym2725 := z.DecBinary() _ = yym2725 if false { } else { *((*string)(x.NodeName)) = r.DecodeString() } } case "TargetRef": if r.TryDecodeAsNil() { if x.TargetRef != nil { x.TargetRef = nil } } else { if x.TargetRef == nil { x.TargetRef = new(ObjectReference) } x.TargetRef.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2721) } // end switch yys2721 } // end for yyj2721 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2727 int var yyb2727 bool var yyhl2727 bool = l >= 0 yyj2727++ if yyhl2727 { yyb2727 = yyj2727 > l } else { yyb2727 = r.CheckBreak() } if yyb2727 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } yyj2727++ if yyhl2727 { yyb2727 = yyj2727 > l } else { yyb2727 = r.CheckBreak() } if yyb2727 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } yyj2727++ if yyhl2727 { yyb2727 = yyj2727 > l } else { yyb2727 = r.CheckBreak() } if yyb2727 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.NodeName != nil { x.NodeName = nil } } else { if x.NodeName == nil { x.NodeName = new(string) } yym2731 := z.DecBinary() _ = yym2731 if false { } else { *((*string)(x.NodeName)) = r.DecodeString() } } yyj2727++ if yyhl2727 { yyb2727 = yyj2727 > l } else { yyb2727 = r.CheckBreak() } if yyb2727 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.TargetRef != nil { x.TargetRef = nil } } else { if x.TargetRef == nil { x.TargetRef = new(ObjectReference) } x.TargetRef.CodecDecodeSelf(d) } for { yyj2727++ if yyhl2727 { yyb2727 = yyj2727 > l } else { yyb2727 = r.CheckBreak() } if yyb2727 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2727-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2733 := z.EncBinary() _ = yym2733 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2734 := !z.EncBinary() yy2arr2734 := z.EncBasicHandle().StructToArray var yyq2734 [3]bool _, _, _ = yysep2734, yyq2734, yy2arr2734 const yyr2734 bool = false var yynn2734 int if yyr2734 || yy2arr2734 { r.EncodeArrayStart(3) } else { yynn2734 = 3 for _, b := range yyq2734 { if b { yynn2734++ } } r.EncodeMapStart(yynn2734) yynn2734 = 0 } if yyr2734 || yy2arr2734 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2736 := z.EncBinary() _ = yym2736 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2737 := z.EncBinary() _ = yym2737 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr2734 || yy2arr2734 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2739 := z.EncBinary() _ = yym2739 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2740 := z.EncBinary() _ = yym2740 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2734 || yy2arr2734 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Protocol.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } if yyr2734 || yy2arr2734 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *EndpointPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2742 := z.DecBinary() _ = yym2742 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2743 := r.ContainerType() if yyct2743 == codecSelferValueTypeMap1234 { yyl2743 := r.ReadMapStart() if yyl2743 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2743, d) } } else if yyct2743 == codecSelferValueTypeArray1234 { yyl2743 := r.ReadArrayStart() if yyl2743 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2743, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2744Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2744Slc var yyhl2744 bool = l >= 0 for yyj2744 := 0; ; yyj2744++ { if yyhl2744 { if yyj2744 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2744Slc = r.DecodeBytes(yys2744Slc, true, true) yys2744 := string(yys2744Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2744 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "Port": if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int32(r.DecodeInt(32)) } case "Protocol": if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2744) } // end switch yys2744 } // end for yyj2744 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2748 int var yyb2748 bool var yyhl2748 bool = l >= 0 yyj2748++ if yyhl2748 { yyb2748 = yyj2748 > l } else { yyb2748 = r.CheckBreak() } if yyb2748 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj2748++ if yyhl2748 { yyb2748 = yyj2748 > l } else { yyb2748 = r.CheckBreak() } if yyb2748 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int32(r.DecodeInt(32)) } yyj2748++ if yyhl2748 { yyb2748 = yyj2748 > l } else { yyb2748 = r.CheckBreak() } if yyb2748 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } for { yyj2748++ if yyhl2748 { yyb2748 = yyj2748 > l } else { yyb2748 = r.CheckBreak() } if yyb2748 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2748-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2752 := z.EncBinary() _ = yym2752 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2753 := !z.EncBinary() yy2arr2753 := z.EncBasicHandle().StructToArray var yyq2753 [4]bool _, _, _ = yysep2753, yyq2753, yy2arr2753 const yyr2753 bool = false yyq2753[0] = x.Kind != "" yyq2753[1] = x.APIVersion != "" yyq2753[2] = true var yynn2753 int if yyr2753 || yy2arr2753 { r.EncodeArrayStart(4) } else { yynn2753 = 1 for _, b := range yyq2753 { if b { yynn2753++ } } r.EncodeMapStart(yynn2753) yynn2753 = 0 } if yyr2753 || yy2arr2753 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2753[0] { yym2755 := z.EncBinary() _ = yym2755 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2753[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2756 := z.EncBinary() _ = yym2756 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2753 || yy2arr2753 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2753[1] { yym2758 := z.EncBinary() _ = yym2758 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2753[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2759 := z.EncBinary() _ = yym2759 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2753 || yy2arr2753 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2753[2] { yy2761 := &x.ListMeta yym2762 := z.EncBinary() _ = yym2762 if false { } else if z.HasExtensions() && z.EncExt(yy2761) { } else { z.EncFallback(yy2761) } } else { r.EncodeNil() } } else { if yyq2753[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2763 := &x.ListMeta yym2764 := z.EncBinary() _ = yym2764 if false { } else if z.HasExtensions() && z.EncExt(yy2763) { } else { z.EncFallback(yy2763) } } } if yyr2753 || yy2arr2753 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2766 := z.EncBinary() _ = yym2766 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym2767 := z.EncBinary() _ = yym2767 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) } } } if yyr2753 || yy2arr2753 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *EndpointsList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2768 := z.DecBinary() _ = yym2768 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2769 := r.ContainerType() if yyct2769 == codecSelferValueTypeMap1234 { yyl2769 := r.ReadMapStart() if yyl2769 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2769, d) } } else if yyct2769 == codecSelferValueTypeArray1234 { yyl2769 := r.ReadArrayStart() if yyl2769 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2769, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2770Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2770Slc var yyhl2770 bool = l >= 0 for yyj2770 := 0; ; yyj2770++ { if yyhl2770 { if yyj2770 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2770Slc = r.DecodeBytes(yys2770Slc, true, true) yys2770 := string(yys2770Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2770 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2773 := &x.ListMeta yym2774 := z.DecBinary() _ = yym2774 if false { } else if z.HasExtensions() && z.DecExt(yyv2773) { } else { z.DecFallback(yyv2773, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2775 := &x.Items yym2776 := z.DecBinary() _ = yym2776 if false { } else { h.decSliceEndpoints((*[]Endpoints)(yyv2775), d) } } default: z.DecStructFieldNotFound(-1, yys2770) } // end switch yys2770 } // end for yyj2770 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2777 int var yyb2777 bool var yyhl2777 bool = l >= 0 yyj2777++ if yyhl2777 { yyb2777 = yyj2777 > l } else { yyb2777 = r.CheckBreak() } if yyb2777 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2777++ if yyhl2777 { yyb2777 = yyj2777 > l } else { yyb2777 = r.CheckBreak() } if yyb2777 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2777++ if yyhl2777 { yyb2777 = yyj2777 > l } else { yyb2777 = r.CheckBreak() } if yyb2777 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2780 := &x.ListMeta yym2781 := z.DecBinary() _ = yym2781 if false { } else if z.HasExtensions() && z.DecExt(yyv2780) { } else { z.DecFallback(yyv2780, false) } } yyj2777++ if yyhl2777 { yyb2777 = yyj2777 > l } else { yyb2777 = r.CheckBreak() } if yyb2777 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2782 := &x.Items yym2783 := z.DecBinary() _ = yym2783 if false { } else { h.decSliceEndpoints((*[]Endpoints)(yyv2782), d) } } for { yyj2777++ if yyhl2777 { yyb2777 = yyj2777 > l } else { yyb2777 = r.CheckBreak() } if yyb2777 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2777-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2784 := z.EncBinary() _ = yym2784 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2785 := !z.EncBinary() yy2arr2785 := z.EncBasicHandle().StructToArray var yyq2785 [4]bool _, _, _ = yysep2785, yyq2785, yy2arr2785 const yyr2785 bool = false yyq2785[0] = x.PodCIDR != "" yyq2785[1] = x.ExternalID != "" yyq2785[2] = x.ProviderID != "" yyq2785[3] = x.Unschedulable != false var yynn2785 int if yyr2785 || yy2arr2785 { r.EncodeArrayStart(4) } else { yynn2785 = 0 for _, b := range yyq2785 { if b { yynn2785++ } } r.EncodeMapStart(yynn2785) yynn2785 = 0 } if yyr2785 || yy2arr2785 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2785[0] { yym2787 := z.EncBinary() _ = yym2787 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2785[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2788 := z.EncBinary() _ = yym2788 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } } if yyr2785 || yy2arr2785 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2785[1] { yym2790 := z.EncBinary() _ = yym2790 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2785[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2791 := z.EncBinary() _ = yym2791 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } } if yyr2785 || yy2arr2785 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2785[2] { yym2793 := z.EncBinary() _ = yym2793 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2785[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("providerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2794 := z.EncBinary() _ = yym2794 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } } if yyr2785 || yy2arr2785 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2785[3] { yym2796 := z.EncBinary() _ = yym2796 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } else { r.EncodeBool(false) } } else { if yyq2785[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("unschedulable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2797 := z.EncBinary() _ = yym2797 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } } if yyr2785 || yy2arr2785 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2798 := z.DecBinary() _ = yym2798 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2799 := r.ContainerType() if yyct2799 == codecSelferValueTypeMap1234 { yyl2799 := r.ReadMapStart() if yyl2799 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2799, d) } } else if yyct2799 == codecSelferValueTypeArray1234 { yyl2799 := r.ReadArrayStart() if yyl2799 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2799, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2800Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2800Slc var yyhl2800 bool = l >= 0 for yyj2800 := 0; ; yyj2800++ { if yyhl2800 { if yyj2800 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2800Slc = r.DecodeBytes(yys2800Slc, true, true) yys2800 := string(yys2800Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2800 { case "podCIDR": if r.TryDecodeAsNil() { x.PodCIDR = "" } else { x.PodCIDR = string(r.DecodeString()) } case "externalID": if r.TryDecodeAsNil() { x.ExternalID = "" } else { x.ExternalID = string(r.DecodeString()) } case "providerID": if r.TryDecodeAsNil() { x.ProviderID = "" } else { x.ProviderID = string(r.DecodeString()) } case "unschedulable": if r.TryDecodeAsNil() { x.Unschedulable = false } else { x.Unschedulable = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys2800) } // end switch yys2800 } // end for yyj2800 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2805 int var yyb2805 bool var yyhl2805 bool = l >= 0 yyj2805++ if yyhl2805 { yyb2805 = yyj2805 > l } else { yyb2805 = r.CheckBreak() } if yyb2805 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodCIDR = "" } else { x.PodCIDR = string(r.DecodeString()) } yyj2805++ if yyhl2805 { yyb2805 = yyj2805 > l } else { yyb2805 = r.CheckBreak() } if yyb2805 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExternalID = "" } else { x.ExternalID = string(r.DecodeString()) } yyj2805++ if yyhl2805 { yyb2805 = yyj2805 > l } else { yyb2805 = r.CheckBreak() } if yyb2805 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ProviderID = "" } else { x.ProviderID = string(r.DecodeString()) } yyj2805++ if yyhl2805 { yyb2805 = yyj2805 > l } else { yyb2805 = r.CheckBreak() } if yyb2805 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Unschedulable = false } else { x.Unschedulable = bool(r.DecodeBool()) } for { yyj2805++ if yyhl2805 { yyb2805 = yyj2805 > l } else { yyb2805 = r.CheckBreak() } if yyb2805 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2805-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2810 := z.EncBinary() _ = yym2810 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2811 := !z.EncBinary() yy2arr2811 := z.EncBasicHandle().StructToArray var yyq2811 [1]bool _, _, _ = yysep2811, yyq2811, yy2arr2811 const yyr2811 bool = false var yynn2811 int if yyr2811 || yy2arr2811 { r.EncodeArrayStart(1) } else { yynn2811 = 1 for _, b := range yyq2811 { if b { yynn2811++ } } r.EncodeMapStart(yynn2811) yynn2811 = 0 } if yyr2811 || yy2arr2811 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2813 := z.EncBinary() _ = yym2813 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2814 := z.EncBinary() _ = yym2814 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2811 || yy2arr2811 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *DaemonEndpoint) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2815 := z.DecBinary() _ = yym2815 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2816 := r.ContainerType() if yyct2816 == codecSelferValueTypeMap1234 { yyl2816 := r.ReadMapStart() if yyl2816 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2816, d) } } else if yyct2816 == codecSelferValueTypeArray1234 { yyl2816 := r.ReadArrayStart() if yyl2816 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2816, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2817Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2817Slc var yyhl2817 bool = l >= 0 for yyj2817 := 0; ; yyj2817++ { if yyhl2817 { if yyj2817 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2817Slc = r.DecodeBytes(yys2817Slc, true, true) yys2817 := string(yys2817Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2817 { case "Port": if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int32(r.DecodeInt(32)) } default: z.DecStructFieldNotFound(-1, yys2817) } // end switch yys2817 } // end for yyj2817 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2819 int var yyb2819 bool var yyhl2819 bool = l >= 0 yyj2819++ if yyhl2819 { yyb2819 = yyj2819 > l } else { yyb2819 = r.CheckBreak() } if yyb2819 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int32(r.DecodeInt(32)) } for { yyj2819++ if yyhl2819 { yyb2819 = yyj2819 > l } else { yyb2819 = r.CheckBreak() } if yyb2819 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2819-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeDaemonEndpoints) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2821 := z.EncBinary() _ = yym2821 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2822 := !z.EncBinary() yy2arr2822 := z.EncBasicHandle().StructToArray var yyq2822 [1]bool _, _, _ = yysep2822, yyq2822, yy2arr2822 const yyr2822 bool = false yyq2822[0] = true var yynn2822 int if yyr2822 || yy2arr2822 { r.EncodeArrayStart(1) } else { yynn2822 = 0 for _, b := range yyq2822 { if b { yynn2822++ } } r.EncodeMapStart(yynn2822) yynn2822 = 0 } if yyr2822 || yy2arr2822 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2822[0] { yy2824 := &x.KubeletEndpoint yy2824.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2822[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2825 := &x.KubeletEndpoint yy2825.CodecEncodeSelf(e) } } if yyr2822 || yy2arr2822 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeDaemonEndpoints) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2826 := z.DecBinary() _ = yym2826 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2827 := r.ContainerType() if yyct2827 == codecSelferValueTypeMap1234 { yyl2827 := r.ReadMapStart() if yyl2827 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2827, d) } } else if yyct2827 == codecSelferValueTypeArray1234 { yyl2827 := r.ReadArrayStart() if yyl2827 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2827, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2828Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2828Slc var yyhl2828 bool = l >= 0 for yyj2828 := 0; ; yyj2828++ { if yyhl2828 { if yyj2828 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2828Slc = r.DecodeBytes(yys2828Slc, true, true) yys2828 := string(yys2828Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2828 { case "kubeletEndpoint": if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { yyv2829 := &x.KubeletEndpoint yyv2829.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2828) } // end switch yys2828 } // end for yyj2828 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2830 int var yyb2830 bool var yyhl2830 bool = l >= 0 yyj2830++ if yyhl2830 { yyb2830 = yyj2830 > l } else { yyb2830 = r.CheckBreak() } if yyb2830 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { yyv2831 := &x.KubeletEndpoint yyv2831.CodecDecodeSelf(d) } for { yyj2830++ if yyhl2830 { yyb2830 = yyj2830 > l } else { yyb2830 = r.CheckBreak() } if yyb2830 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2830-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2832 := z.EncBinary() _ = yym2832 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2833 := !z.EncBinary() yy2arr2833 := z.EncBasicHandle().StructToArray var yyq2833 [10]bool _, _, _ = yysep2833, yyq2833, yy2arr2833 const yyr2833 bool = false var yynn2833 int if yyr2833 || yy2arr2833 { r.EncodeArrayStart(10) } else { yynn2833 = 10 for _, b := range yyq2833 { if b { yynn2833++ } } r.EncodeMapStart(yynn2833) yynn2833 = 0 } if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2835 := z.EncBinary() _ = yym2835 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("machineID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2836 := z.EncBinary() _ = yym2836 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) } } if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2838 := z.EncBinary() _ = yym2838 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("systemUUID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2839 := z.EncBinary() _ = yym2839 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) } } if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2841 := z.EncBinary() _ = yym2841 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("bootID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2842 := z.EncBinary() _ = yym2842 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) } } if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2844 := z.EncBinary() _ = yym2844 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kernelVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2845 := z.EncBinary() _ = yym2845 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) } } if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2847 := z.EncBinary() _ = yym2847 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("osImage")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2848 := z.EncBinary() _ = yym2848 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) } } if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2850 := z.EncBinary() _ = yym2850 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerRuntimeVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2851 := z.EncBinary() _ = yym2851 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) } } if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2853 := z.EncBinary() _ = yym2853 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2854 := z.EncBinary() _ = yym2854 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) } } if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2856 := z.EncBinary() _ = yym2856 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeProxyVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2857 := z.EncBinary() _ = yym2857 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) } } if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2859 := z.EncBinary() _ = yym2859 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operatingSystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2860 := z.EncBinary() _ = yym2860 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) } } if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2862 := z.EncBinary() _ = yym2862 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("architecture")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2863 := z.EncBinary() _ = yym2863 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) } } if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeSystemInfo) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2864 := z.DecBinary() _ = yym2864 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2865 := r.ContainerType() if yyct2865 == codecSelferValueTypeMap1234 { yyl2865 := r.ReadMapStart() if yyl2865 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2865, d) } } else if yyct2865 == codecSelferValueTypeArray1234 { yyl2865 := r.ReadArrayStart() if yyl2865 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2865, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2866Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2866Slc var yyhl2866 bool = l >= 0 for yyj2866 := 0; ; yyj2866++ { if yyhl2866 { if yyj2866 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2866Slc = r.DecodeBytes(yys2866Slc, true, true) yys2866 := string(yys2866Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2866 { case "machineID": if r.TryDecodeAsNil() { x.MachineID = "" } else { x.MachineID = string(r.DecodeString()) } case "systemUUID": if r.TryDecodeAsNil() { x.SystemUUID = "" } else { x.SystemUUID = string(r.DecodeString()) } case "bootID": if r.TryDecodeAsNil() { x.BootID = "" } else { x.BootID = string(r.DecodeString()) } case "kernelVersion": if r.TryDecodeAsNil() { x.KernelVersion = "" } else { x.KernelVersion = string(r.DecodeString()) } case "osImage": if r.TryDecodeAsNil() { x.OSImage = "" } else { x.OSImage = string(r.DecodeString()) } case "containerRuntimeVersion": if r.TryDecodeAsNil() { x.ContainerRuntimeVersion = "" } else { x.ContainerRuntimeVersion = string(r.DecodeString()) } case "kubeletVersion": if r.TryDecodeAsNil() { x.KubeletVersion = "" } else { x.KubeletVersion = string(r.DecodeString()) } case "kubeProxyVersion": if r.TryDecodeAsNil() { x.KubeProxyVersion = "" } else { x.KubeProxyVersion = string(r.DecodeString()) } case "operatingSystem": if r.TryDecodeAsNil() { x.OperatingSystem = "" } else { x.OperatingSystem = string(r.DecodeString()) } case "architecture": if r.TryDecodeAsNil() { x.Architecture = "" } else { x.Architecture = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2866) } // end switch yys2866 } // end for yyj2866 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2877 int var yyb2877 bool var yyhl2877 bool = l >= 0 yyj2877++ if yyhl2877 { yyb2877 = yyj2877 > l } else { yyb2877 = r.CheckBreak() } if yyb2877 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MachineID = "" } else { x.MachineID = string(r.DecodeString()) } yyj2877++ if yyhl2877 { yyb2877 = yyj2877 > l } else { yyb2877 = r.CheckBreak() } if yyb2877 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SystemUUID = "" } else { x.SystemUUID = string(r.DecodeString()) } yyj2877++ if yyhl2877 { yyb2877 = yyj2877 > l } else { yyb2877 = r.CheckBreak() } if yyb2877 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.BootID = "" } else { x.BootID = string(r.DecodeString()) } yyj2877++ if yyhl2877 { yyb2877 = yyj2877 > l } else { yyb2877 = r.CheckBreak() } if yyb2877 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KernelVersion = "" } else { x.KernelVersion = string(r.DecodeString()) } yyj2877++ if yyhl2877 { yyb2877 = yyj2877 > l } else { yyb2877 = r.CheckBreak() } if yyb2877 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.OSImage = "" } else { x.OSImage = string(r.DecodeString()) } yyj2877++ if yyhl2877 { yyb2877 = yyj2877 > l } else { yyb2877 = r.CheckBreak() } if yyb2877 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerRuntimeVersion = "" } else { x.ContainerRuntimeVersion = string(r.DecodeString()) } yyj2877++ if yyhl2877 { yyb2877 = yyj2877 > l } else { yyb2877 = r.CheckBreak() } if yyb2877 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeletVersion = "" } else { x.KubeletVersion = string(r.DecodeString()) } yyj2877++ if yyhl2877 { yyb2877 = yyj2877 > l } else { yyb2877 = r.CheckBreak() } if yyb2877 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeProxyVersion = "" } else { x.KubeProxyVersion = string(r.DecodeString()) } yyj2877++ if yyhl2877 { yyb2877 = yyj2877 > l } else { yyb2877 = r.CheckBreak() } if yyb2877 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.OperatingSystem = "" } else { x.OperatingSystem = string(r.DecodeString()) } yyj2877++ if yyhl2877 { yyb2877 = yyj2877 > l } else { yyb2877 = r.CheckBreak() } if yyb2877 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Architecture = "" } else { x.Architecture = string(r.DecodeString()) } for { yyj2877++ if yyhl2877 { yyb2877 = yyj2877 > l } else { yyb2877 = r.CheckBreak() } if yyb2877 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2877-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2888 := z.EncBinary() _ = yym2888 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2889 := !z.EncBinary() yy2arr2889 := z.EncBasicHandle().StructToArray var yyq2889 [10]bool _, _, _ = yysep2889, yyq2889, yy2arr2889 const yyr2889 bool = false yyq2889[0] = len(x.Capacity) != 0 yyq2889[1] = len(x.Allocatable) != 0 yyq2889[2] = x.Phase != "" yyq2889[3] = len(x.Conditions) != 0 yyq2889[4] = len(x.Addresses) != 0 yyq2889[5] = true yyq2889[6] = true yyq2889[7] = len(x.Images) != 0 yyq2889[8] = len(x.VolumesInUse) != 0 yyq2889[9] = len(x.VolumesAttached) != 0 var yynn2889 int if yyr2889 || yy2arr2889 { r.EncodeArrayStart(10) } else { yynn2889 = 0 for _, b := range yyq2889 { if b { yynn2889++ } } r.EncodeMapStart(yynn2889) yynn2889 = 0 } if yyr2889 || yy2arr2889 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2889[0] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2889[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } } if yyr2889 || yy2arr2889 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2889[1] { if x.Allocatable == nil { r.EncodeNil() } else { x.Allocatable.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2889[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allocatable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Allocatable == nil { r.EncodeNil() } else { x.Allocatable.CodecEncodeSelf(e) } } } if yyr2889 || yy2arr2889 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2889[2] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2889[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr2889 || yy2arr2889 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2889[3] { if x.Conditions == nil { r.EncodeNil() } else { yym2894 := z.EncBinary() _ = yym2894 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq2889[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym2895 := z.EncBinary() _ = yym2895 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) } } } } if yyr2889 || yy2arr2889 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2889[4] { if x.Addresses == nil { r.EncodeNil() } else { yym2897 := z.EncBinary() _ = yym2897 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) } } } else { r.EncodeNil() } } else { if yyq2889[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("addresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Addresses == nil { r.EncodeNil() } else { yym2898 := z.EncBinary() _ = yym2898 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) } } } } if yyr2889 || yy2arr2889 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2889[5] { yy2900 := &x.DaemonEndpoints yy2900.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2889[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2901 := &x.DaemonEndpoints yy2901.CodecEncodeSelf(e) } } if yyr2889 || yy2arr2889 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2889[6] { yy2903 := &x.NodeInfo yy2903.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2889[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeInfo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2904 := &x.NodeInfo yy2904.CodecEncodeSelf(e) } } if yyr2889 || yy2arr2889 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2889[7] { if x.Images == nil { r.EncodeNil() } else { yym2906 := z.EncBinary() _ = yym2906 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) } } } else { r.EncodeNil() } } else { if yyq2889[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("images")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Images == nil { r.EncodeNil() } else { yym2907 := z.EncBinary() _ = yym2907 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) } } } } if yyr2889 || yy2arr2889 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2889[8] { if x.VolumesInUse == nil { r.EncodeNil() } else { yym2909 := z.EncBinary() _ = yym2909 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) } } } else { r.EncodeNil() } } else { if yyq2889[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumesInUse")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumesInUse == nil { r.EncodeNil() } else { yym2910 := z.EncBinary() _ = yym2910 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) } } } } if yyr2889 || yy2arr2889 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2889[9] { if x.VolumesAttached == nil { r.EncodeNil() } else { yym2912 := z.EncBinary() _ = yym2912 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) } } } else { r.EncodeNil() } } else { if yyq2889[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumesAttached")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumesAttached == nil { r.EncodeNil() } else { yym2913 := z.EncBinary() _ = yym2913 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) } } } } if yyr2889 || yy2arr2889 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2914 := z.DecBinary() _ = yym2914 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2915 := r.ContainerType() if yyct2915 == codecSelferValueTypeMap1234 { yyl2915 := r.ReadMapStart() if yyl2915 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2915, d) } } else if yyct2915 == codecSelferValueTypeArray1234 { yyl2915 := r.ReadArrayStart() if yyl2915 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2915, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2916Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2916Slc var yyhl2916 bool = l >= 0 for yyj2916 := 0; ; yyj2916++ { if yyhl2916 { if yyj2916 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2916Slc = r.DecodeBytes(yys2916Slc, true, true) yys2916 := string(yys2916Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2916 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2917 := &x.Capacity yyv2917.CodecDecodeSelf(d) } case "allocatable": if r.TryDecodeAsNil() { x.Allocatable = nil } else { yyv2918 := &x.Allocatable yyv2918.CodecDecodeSelf(d) } case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NodePhase(r.DecodeString()) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2920 := &x.Conditions yym2921 := z.DecBinary() _ = yym2921 if false { } else { h.decSliceNodeCondition((*[]NodeCondition)(yyv2920), d) } } case "addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2922 := &x.Addresses yym2923 := z.DecBinary() _ = yym2923 if false { } else { h.decSliceNodeAddress((*[]NodeAddress)(yyv2922), d) } } case "daemonEndpoints": if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { yyv2924 := &x.DaemonEndpoints yyv2924.CodecDecodeSelf(d) } case "nodeInfo": if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { yyv2925 := &x.NodeInfo yyv2925.CodecDecodeSelf(d) } case "images": if r.TryDecodeAsNil() { x.Images = nil } else { yyv2926 := &x.Images yym2927 := z.DecBinary() _ = yym2927 if false { } else { h.decSliceContainerImage((*[]ContainerImage)(yyv2926), d) } } case "volumesInUse": if r.TryDecodeAsNil() { x.VolumesInUse = nil } else { yyv2928 := &x.VolumesInUse yym2929 := z.DecBinary() _ = yym2929 if false { } else { h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv2928), d) } } case "volumesAttached": if r.TryDecodeAsNil() { x.VolumesAttached = nil } else { yyv2930 := &x.VolumesAttached yym2931 := z.DecBinary() _ = yym2931 if false { } else { h.decSliceAttachedVolume((*[]AttachedVolume)(yyv2930), d) } } default: z.DecStructFieldNotFound(-1, yys2916) } // end switch yys2916 } // end for yyj2916 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2932 int var yyb2932 bool var yyhl2932 bool = l >= 0 yyj2932++ if yyhl2932 { yyb2932 = yyj2932 > l } else { yyb2932 = r.CheckBreak() } if yyb2932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2933 := &x.Capacity yyv2933.CodecDecodeSelf(d) } yyj2932++ if yyhl2932 { yyb2932 = yyj2932 > l } else { yyb2932 = r.CheckBreak() } if yyb2932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Allocatable = nil } else { yyv2934 := &x.Allocatable yyv2934.CodecDecodeSelf(d) } yyj2932++ if yyhl2932 { yyb2932 = yyj2932 > l } else { yyb2932 = r.CheckBreak() } if yyb2932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NodePhase(r.DecodeString()) } yyj2932++ if yyhl2932 { yyb2932 = yyj2932 > l } else { yyb2932 = r.CheckBreak() } if yyb2932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2936 := &x.Conditions yym2937 := z.DecBinary() _ = yym2937 if false { } else { h.decSliceNodeCondition((*[]NodeCondition)(yyv2936), d) } } yyj2932++ if yyhl2932 { yyb2932 = yyj2932 > l } else { yyb2932 = r.CheckBreak() } if yyb2932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2938 := &x.Addresses yym2939 := z.DecBinary() _ = yym2939 if false { } else { h.decSliceNodeAddress((*[]NodeAddress)(yyv2938), d) } } yyj2932++ if yyhl2932 { yyb2932 = yyj2932 > l } else { yyb2932 = r.CheckBreak() } if yyb2932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { yyv2940 := &x.DaemonEndpoints yyv2940.CodecDecodeSelf(d) } yyj2932++ if yyhl2932 { yyb2932 = yyj2932 > l } else { yyb2932 = r.CheckBreak() } if yyb2932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { yyv2941 := &x.NodeInfo yyv2941.CodecDecodeSelf(d) } yyj2932++ if yyhl2932 { yyb2932 = yyj2932 > l } else { yyb2932 = r.CheckBreak() } if yyb2932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Images = nil } else { yyv2942 := &x.Images yym2943 := z.DecBinary() _ = yym2943 if false { } else { h.decSliceContainerImage((*[]ContainerImage)(yyv2942), d) } } yyj2932++ if yyhl2932 { yyb2932 = yyj2932 > l } else { yyb2932 = r.CheckBreak() } if yyb2932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumesInUse = nil } else { yyv2944 := &x.VolumesInUse yym2945 := z.DecBinary() _ = yym2945 if false { } else { h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv2944), d) } } yyj2932++ if yyhl2932 { yyb2932 = yyj2932 > l } else { yyb2932 = r.CheckBreak() } if yyb2932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumesAttached = nil } else { yyv2946 := &x.VolumesAttached yym2947 := z.DecBinary() _ = yym2947 if false { } else { h.decSliceAttachedVolume((*[]AttachedVolume)(yyv2946), d) } } for { yyj2932++ if yyhl2932 { yyb2932 = yyj2932 > l } else { yyb2932 = r.CheckBreak() } if yyb2932 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2932-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2948 := z.EncBinary() _ = yym2948 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *UniqueVolumeName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2949 := z.DecBinary() _ = yym2949 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2950 := z.EncBinary() _ = yym2950 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2951 := !z.EncBinary() yy2arr2951 := z.EncBasicHandle().StructToArray var yyq2951 [2]bool _, _, _ = yysep2951, yyq2951, yy2arr2951 const yyr2951 bool = false var yynn2951 int if yyr2951 || yy2arr2951 { r.EncodeArrayStart(2) } else { yynn2951 = 2 for _, b := range yyq2951 { if b { yynn2951++ } } r.EncodeMapStart(yynn2951) yynn2951 = 0 } if yyr2951 || yy2arr2951 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Name.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Name.CodecEncodeSelf(e) } if yyr2951 || yy2arr2951 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2954 := z.EncBinary() _ = yym2954 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("devicePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2955 := z.EncBinary() _ = yym2955 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) } } if yyr2951 || yy2arr2951 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *AttachedVolume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2956 := z.DecBinary() _ = yym2956 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2957 := r.ContainerType() if yyct2957 == codecSelferValueTypeMap1234 { yyl2957 := r.ReadMapStart() if yyl2957 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2957, d) } } else if yyct2957 == codecSelferValueTypeArray1234 { yyl2957 := r.ReadArrayStart() if yyl2957 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2957, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2958Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2958Slc var yyhl2958 bool = l >= 0 for yyj2958 := 0; ; yyj2958++ { if yyhl2958 { if yyj2958 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2958Slc = r.DecodeBytes(yys2958Slc, true, true) yys2958 := string(yys2958Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2958 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = UniqueVolumeName(r.DecodeString()) } case "devicePath": if r.TryDecodeAsNil() { x.DevicePath = "" } else { x.DevicePath = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2958) } // end switch yys2958 } // end for yyj2958 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2961 int var yyb2961 bool var yyhl2961 bool = l >= 0 yyj2961++ if yyhl2961 { yyb2961 = yyj2961 > l } else { yyb2961 = r.CheckBreak() } if yyb2961 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = UniqueVolumeName(r.DecodeString()) } yyj2961++ if yyhl2961 { yyb2961 = yyj2961 > l } else { yyb2961 = r.CheckBreak() } if yyb2961 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DevicePath = "" } else { x.DevicePath = string(r.DecodeString()) } for { yyj2961++ if yyhl2961 { yyb2961 = yyj2961 > l } else { yyb2961 = r.CheckBreak() } if yyb2961 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2961-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2964 := z.EncBinary() _ = yym2964 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2965 := !z.EncBinary() yy2arr2965 := z.EncBasicHandle().StructToArray var yyq2965 [1]bool _, _, _ = yysep2965, yyq2965, yy2arr2965 const yyr2965 bool = false yyq2965[0] = len(x.PreferAvoidPods) != 0 var yynn2965 int if yyr2965 || yy2arr2965 { r.EncodeArrayStart(1) } else { yynn2965 = 0 for _, b := range yyq2965 { if b { yynn2965++ } } r.EncodeMapStart(yynn2965) yynn2965 = 0 } if yyr2965 || yy2arr2965 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2965[0] { if x.PreferAvoidPods == nil { r.EncodeNil() } else { yym2967 := z.EncBinary() _ = yym2967 if false { } else { h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) } } } else { r.EncodeNil() } } else { if yyq2965[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferAvoidPods == nil { r.EncodeNil() } else { yym2968 := z.EncBinary() _ = yym2968 if false { } else { h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) } } } } if yyr2965 || yy2arr2965 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *AvoidPods) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2969 := z.DecBinary() _ = yym2969 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2970 := r.ContainerType() if yyct2970 == codecSelferValueTypeMap1234 { yyl2970 := r.ReadMapStart() if yyl2970 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2970, d) } } else if yyct2970 == codecSelferValueTypeArray1234 { yyl2970 := r.ReadArrayStart() if yyl2970 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2970, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2971Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2971Slc var yyhl2971 bool = l >= 0 for yyj2971 := 0; ; yyj2971++ { if yyhl2971 { if yyj2971 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2971Slc = r.DecodeBytes(yys2971Slc, true, true) yys2971 := string(yys2971Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2971 { case "preferAvoidPods": if r.TryDecodeAsNil() { x.PreferAvoidPods = nil } else { yyv2972 := &x.PreferAvoidPods yym2973 := z.DecBinary() _ = yym2973 if false { } else { h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv2972), d) } } default: z.DecStructFieldNotFound(-1, yys2971) } // end switch yys2971 } // end for yyj2971 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *AvoidPods) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2974 int var yyb2974 bool var yyhl2974 bool = l >= 0 yyj2974++ if yyhl2974 { yyb2974 = yyj2974 > l } else { yyb2974 = r.CheckBreak() } if yyb2974 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PreferAvoidPods = nil } else { yyv2975 := &x.PreferAvoidPods yym2976 := z.DecBinary() _ = yym2976 if false { } else { h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv2975), d) } } for { yyj2974++ if yyhl2974 { yyb2974 = yyj2974 > l } else { yyb2974 = r.CheckBreak() } if yyb2974 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2974-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2977 := z.EncBinary() _ = yym2977 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2978 := !z.EncBinary() yy2arr2978 := z.EncBasicHandle().StructToArray var yyq2978 [4]bool _, _, _ = yysep2978, yyq2978, yy2arr2978 const yyr2978 bool = false yyq2978[1] = true yyq2978[2] = x.Reason != "" yyq2978[3] = x.Message != "" var yynn2978 int if yyr2978 || yy2arr2978 { r.EncodeArrayStart(4) } else { yynn2978 = 1 for _, b := range yyq2978 { if b { yynn2978++ } } r.EncodeMapStart(yynn2978) yynn2978 = 0 } if yyr2978 || yy2arr2978 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy2980 := &x.PodSignature yy2980.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSignature")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2981 := &x.PodSignature yy2981.CodecEncodeSelf(e) } if yyr2978 || yy2arr2978 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2978[1] { yy2983 := &x.EvictionTime yym2984 := z.EncBinary() _ = yym2984 if false { } else if z.HasExtensions() && z.EncExt(yy2983) { } else if yym2984 { z.EncBinaryMarshal(yy2983) } else if !yym2984 && z.IsJSONHandle() { z.EncJSONMarshal(yy2983) } else { z.EncFallback(yy2983) } } else { r.EncodeNil() } } else { if yyq2978[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("evictionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2985 := &x.EvictionTime yym2986 := z.EncBinary() _ = yym2986 if false { } else if z.HasExtensions() && z.EncExt(yy2985) { } else if yym2986 { z.EncBinaryMarshal(yy2985) } else if !yym2986 && z.IsJSONHandle() { z.EncJSONMarshal(yy2985) } else { z.EncFallback(yy2985) } } } if yyr2978 || yy2arr2978 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2978[2] { yym2988 := z.EncBinary() _ = yym2988 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2978[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2989 := z.EncBinary() _ = yym2989 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr2978 || yy2arr2978 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2978[3] { yym2991 := z.EncBinary() _ = yym2991 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2978[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2992 := z.EncBinary() _ = yym2992 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr2978 || yy2arr2978 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PreferAvoidPodsEntry) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2993 := z.DecBinary() _ = yym2993 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2994 := r.ContainerType() if yyct2994 == codecSelferValueTypeMap1234 { yyl2994 := r.ReadMapStart() if yyl2994 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2994, d) } } else if yyct2994 == codecSelferValueTypeArray1234 { yyl2994 := r.ReadArrayStart() if yyl2994 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2994, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2995Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2995Slc var yyhl2995 bool = l >= 0 for yyj2995 := 0; ; yyj2995++ { if yyhl2995 { if yyj2995 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2995Slc = r.DecodeBytes(yys2995Slc, true, true) yys2995 := string(yys2995Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2995 { case "podSignature": if r.TryDecodeAsNil() { x.PodSignature = PodSignature{} } else { yyv2996 := &x.PodSignature yyv2996.CodecDecodeSelf(d) } case "evictionTime": if r.TryDecodeAsNil() { x.EvictionTime = pkg2_unversioned.Time{} } else { yyv2997 := &x.EvictionTime yym2998 := z.DecBinary() _ = yym2998 if false { } else if z.HasExtensions() && z.DecExt(yyv2997) { } else if yym2998 { z.DecBinaryUnmarshal(yyv2997) } else if !yym2998 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2997) } else { z.DecFallback(yyv2997, false) } } case "reason": if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } case "message": if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2995) } // end switch yys2995 } // end for yyj2995 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3001 int var yyb3001 bool var yyhl3001 bool = l >= 0 yyj3001++ if yyhl3001 { yyb3001 = yyj3001 > l } else { yyb3001 = r.CheckBreak() } if yyb3001 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodSignature = PodSignature{} } else { yyv3002 := &x.PodSignature yyv3002.CodecDecodeSelf(d) } yyj3001++ if yyhl3001 { yyb3001 = yyj3001 > l } else { yyb3001 = r.CheckBreak() } if yyb3001 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.EvictionTime = pkg2_unversioned.Time{} } else { yyv3003 := &x.EvictionTime yym3004 := z.DecBinary() _ = yym3004 if false { } else if z.HasExtensions() && z.DecExt(yyv3003) { } else if yym3004 { z.DecBinaryUnmarshal(yyv3003) } else if !yym3004 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3003) } else { z.DecFallback(yyv3003, false) } } yyj3001++ if yyhl3001 { yyb3001 = yyj3001 > l } else { yyb3001 = r.CheckBreak() } if yyb3001 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj3001++ if yyhl3001 { yyb3001 = yyj3001 > l } else { yyb3001 = r.CheckBreak() } if yyb3001 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj3001++ if yyhl3001 { yyb3001 = yyj3001 > l } else { yyb3001 = r.CheckBreak() } if yyb3001 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3001-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3007 := z.EncBinary() _ = yym3007 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3008 := !z.EncBinary() yy2arr3008 := z.EncBasicHandle().StructToArray var yyq3008 [1]bool _, _, _ = yysep3008, yyq3008, yy2arr3008 const yyr3008 bool = false yyq3008[0] = x.PodController != nil var yynn3008 int if yyr3008 || yy2arr3008 { r.EncodeArrayStart(1) } else { yynn3008 = 0 for _, b := range yyq3008 { if b { yynn3008++ } } r.EncodeMapStart(yynn3008) yynn3008 = 0 } if yyr3008 || yy2arr3008 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3008[0] { if x.PodController == nil { r.EncodeNil() } else { x.PodController.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3008[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podController")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PodController == nil { r.EncodeNil() } else { x.PodController.CodecEncodeSelf(e) } } } if yyr3008 || yy2arr3008 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodSignature) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3010 := z.DecBinary() _ = yym3010 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3011 := r.ContainerType() if yyct3011 == codecSelferValueTypeMap1234 { yyl3011 := r.ReadMapStart() if yyl3011 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3011, d) } } else if yyct3011 == codecSelferValueTypeArray1234 { yyl3011 := r.ReadArrayStart() if yyl3011 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3011, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3012Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3012Slc var yyhl3012 bool = l >= 0 for yyj3012 := 0; ; yyj3012++ { if yyhl3012 { if yyj3012 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3012Slc = r.DecodeBytes(yys3012Slc, true, true) yys3012 := string(yys3012Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3012 { case "podController": if r.TryDecodeAsNil() { if x.PodController != nil { x.PodController = nil } } else { if x.PodController == nil { x.PodController = new(OwnerReference) } x.PodController.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3012) } // end switch yys3012 } // end for yyj3012 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodSignature) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3014 int var yyb3014 bool var yyhl3014 bool = l >= 0 yyj3014++ if yyhl3014 { yyb3014 = yyj3014 > l } else { yyb3014 = r.CheckBreak() } if yyb3014 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.PodController != nil { x.PodController = nil } } else { if x.PodController == nil { x.PodController = new(OwnerReference) } x.PodController.CodecDecodeSelf(d) } for { yyj3014++ if yyhl3014 { yyb3014 = yyj3014 > l } else { yyb3014 = r.CheckBreak() } if yyb3014 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3014-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3016 := z.EncBinary() _ = yym3016 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3017 := !z.EncBinary() yy2arr3017 := z.EncBasicHandle().StructToArray var yyq3017 [2]bool _, _, _ = yysep3017, yyq3017, yy2arr3017 const yyr3017 bool = false yyq3017[1] = x.SizeBytes != 0 var yynn3017 int if yyr3017 || yy2arr3017 { r.EncodeArrayStart(2) } else { yynn3017 = 1 for _, b := range yyq3017 { if b { yynn3017++ } } r.EncodeMapStart(yynn3017) yynn3017 = 0 } if yyr3017 || yy2arr3017 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Names == nil { r.EncodeNil() } else { yym3019 := z.EncBinary() _ = yym3019 if false { } else { z.F.EncSliceStringV(x.Names, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("names")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Names == nil { r.EncodeNil() } else { yym3020 := z.EncBinary() _ = yym3020 if false { } else { z.F.EncSliceStringV(x.Names, false, e) } } } if yyr3017 || yy2arr3017 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3017[1] { yym3022 := z.EncBinary() _ = yym3022 if false { } else { r.EncodeInt(int64(x.SizeBytes)) } } else { r.EncodeInt(0) } } else { if yyq3017[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sizeBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3023 := z.EncBinary() _ = yym3023 if false { } else { r.EncodeInt(int64(x.SizeBytes)) } } } if yyr3017 || yy2arr3017 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ContainerImage) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3024 := z.DecBinary() _ = yym3024 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3025 := r.ContainerType() if yyct3025 == codecSelferValueTypeMap1234 { yyl3025 := r.ReadMapStart() if yyl3025 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3025, d) } } else if yyct3025 == codecSelferValueTypeArray1234 { yyl3025 := r.ReadArrayStart() if yyl3025 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3025, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3026Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3026Slc var yyhl3026 bool = l >= 0 for yyj3026 := 0; ; yyj3026++ { if yyhl3026 { if yyj3026 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3026Slc = r.DecodeBytes(yys3026Slc, true, true) yys3026 := string(yys3026Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3026 { case "names": if r.TryDecodeAsNil() { x.Names = nil } else { yyv3027 := &x.Names yym3028 := z.DecBinary() _ = yym3028 if false { } else { z.F.DecSliceStringX(yyv3027, false, d) } } case "sizeBytes": if r.TryDecodeAsNil() { x.SizeBytes = 0 } else { x.SizeBytes = int64(r.DecodeInt(64)) } default: z.DecStructFieldNotFound(-1, yys3026) } // end switch yys3026 } // end for yyj3026 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3030 int var yyb3030 bool var yyhl3030 bool = l >= 0 yyj3030++ if yyhl3030 { yyb3030 = yyj3030 > l } else { yyb3030 = r.CheckBreak() } if yyb3030 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Names = nil } else { yyv3031 := &x.Names yym3032 := z.DecBinary() _ = yym3032 if false { } else { z.F.DecSliceStringX(yyv3031, false, d) } } yyj3030++ if yyhl3030 { yyb3030 = yyj3030 > l } else { yyb3030 = r.CheckBreak() } if yyb3030 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SizeBytes = 0 } else { x.SizeBytes = int64(r.DecodeInt(64)) } for { yyj3030++ if yyhl3030 { yyb3030 = yyj3030 > l } else { yyb3030 = r.CheckBreak() } if yyb3030 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3030-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3034 := z.EncBinary() _ = yym3034 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *NodePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3035 := z.DecBinary() _ = yym3035 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x NodeConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3036 := z.EncBinary() _ = yym3036 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *NodeConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3037 := z.DecBinary() _ = yym3037 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3038 := z.EncBinary() _ = yym3038 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3039 := !z.EncBinary() yy2arr3039 := z.EncBasicHandle().StructToArray var yyq3039 [6]bool _, _, _ = yysep3039, yyq3039, yy2arr3039 const yyr3039 bool = false yyq3039[2] = true yyq3039[3] = true yyq3039[4] = x.Reason != "" yyq3039[5] = x.Message != "" var yynn3039 int if yyr3039 || yy2arr3039 { r.EncodeArrayStart(6) } else { yynn3039 = 2 for _, b := range yyq3039 { if b { yynn3039++ } } r.EncodeMapStart(yynn3039) yynn3039 = 0 } if yyr3039 || yy2arr3039 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } if yyr3039 || yy2arr3039 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } if yyr3039 || yy2arr3039 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3039[2] { yy3043 := &x.LastHeartbeatTime yym3044 := z.EncBinary() _ = yym3044 if false { } else if z.HasExtensions() && z.EncExt(yy3043) { } else if yym3044 { z.EncBinaryMarshal(yy3043) } else if !yym3044 && z.IsJSONHandle() { z.EncJSONMarshal(yy3043) } else { z.EncFallback(yy3043) } } else { r.EncodeNil() } } else { if yyq3039[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3045 := &x.LastHeartbeatTime yym3046 := z.EncBinary() _ = yym3046 if false { } else if z.HasExtensions() && z.EncExt(yy3045) { } else if yym3046 { z.EncBinaryMarshal(yy3045) } else if !yym3046 && z.IsJSONHandle() { z.EncJSONMarshal(yy3045) } else { z.EncFallback(yy3045) } } } if yyr3039 || yy2arr3039 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3039[3] { yy3048 := &x.LastTransitionTime yym3049 := z.EncBinary() _ = yym3049 if false { } else if z.HasExtensions() && z.EncExt(yy3048) { } else if yym3049 { z.EncBinaryMarshal(yy3048) } else if !yym3049 && z.IsJSONHandle() { z.EncJSONMarshal(yy3048) } else { z.EncFallback(yy3048) } } else { r.EncodeNil() } } else { if yyq3039[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3050 := &x.LastTransitionTime yym3051 := z.EncBinary() _ = yym3051 if false { } else if z.HasExtensions() && z.EncExt(yy3050) { } else if yym3051 { z.EncBinaryMarshal(yy3050) } else if !yym3051 && z.IsJSONHandle() { z.EncJSONMarshal(yy3050) } else { z.EncFallback(yy3050) } } } if yyr3039 || yy2arr3039 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3039[4] { yym3053 := z.EncBinary() _ = yym3053 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3039[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3054 := z.EncBinary() _ = yym3054 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr3039 || yy2arr3039 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3039[5] { yym3056 := z.EncBinary() _ = yym3056 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3039[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3057 := z.EncBinary() _ = yym3057 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr3039 || yy2arr3039 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3058 := z.DecBinary() _ = yym3058 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3059 := r.ContainerType() if yyct3059 == codecSelferValueTypeMap1234 { yyl3059 := r.ReadMapStart() if yyl3059 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3059, d) } } else if yyct3059 == codecSelferValueTypeArray1234 { yyl3059 := r.ReadArrayStart() if yyl3059 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3059, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3060Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3060Slc var yyhl3060 bool = l >= 0 for yyj3060 := 0; ; yyj3060++ { if yyhl3060 { if yyj3060 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3060Slc = r.DecodeBytes(yys3060Slc, true, true) yys3060 := string(yys3060Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3060 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeConditionType(r.DecodeString()) } case "status": if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } case "lastHeartbeatTime": if r.TryDecodeAsNil() { x.LastHeartbeatTime = pkg2_unversioned.Time{} } else { yyv3063 := &x.LastHeartbeatTime yym3064 := z.DecBinary() _ = yym3064 if false { } else if z.HasExtensions() && z.DecExt(yyv3063) { } else if yym3064 { z.DecBinaryUnmarshal(yyv3063) } else if !yym3064 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3063) } else { z.DecFallback(yyv3063, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv3065 := &x.LastTransitionTime yym3066 := z.DecBinary() _ = yym3066 if false { } else if z.HasExtensions() && z.DecExt(yyv3065) { } else if yym3066 { z.DecBinaryUnmarshal(yyv3065) } else if !yym3066 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3065) } else { z.DecFallback(yyv3065, false) } } case "reason": if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } case "message": if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3060) } // end switch yys3060 } // end for yyj3060 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3069 int var yyb3069 bool var yyhl3069 bool = l >= 0 yyj3069++ if yyhl3069 { yyb3069 = yyj3069 > l } else { yyb3069 = r.CheckBreak() } if yyb3069 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeConditionType(r.DecodeString()) } yyj3069++ if yyhl3069 { yyb3069 = yyj3069 > l } else { yyb3069 = r.CheckBreak() } if yyb3069 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj3069++ if yyhl3069 { yyb3069 = yyj3069 > l } else { yyb3069 = r.CheckBreak() } if yyb3069 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastHeartbeatTime = pkg2_unversioned.Time{} } else { yyv3072 := &x.LastHeartbeatTime yym3073 := z.DecBinary() _ = yym3073 if false { } else if z.HasExtensions() && z.DecExt(yyv3072) { } else if yym3073 { z.DecBinaryUnmarshal(yyv3072) } else if !yym3073 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3072) } else { z.DecFallback(yyv3072, false) } } yyj3069++ if yyhl3069 { yyb3069 = yyj3069 > l } else { yyb3069 = r.CheckBreak() } if yyb3069 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv3074 := &x.LastTransitionTime yym3075 := z.DecBinary() _ = yym3075 if false { } else if z.HasExtensions() && z.DecExt(yyv3074) { } else if yym3075 { z.DecBinaryUnmarshal(yyv3074) } else if !yym3075 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3074) } else { z.DecFallback(yyv3074, false) } } yyj3069++ if yyhl3069 { yyb3069 = yyj3069 > l } else { yyb3069 = r.CheckBreak() } if yyb3069 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj3069++ if yyhl3069 { yyb3069 = yyj3069 > l } else { yyb3069 = r.CheckBreak() } if yyb3069 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj3069++ if yyhl3069 { yyb3069 = yyj3069 > l } else { yyb3069 = r.CheckBreak() } if yyb3069 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3069-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3078 := z.EncBinary() _ = yym3078 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *NodeAddressType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3079 := z.DecBinary() _ = yym3079 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3080 := z.EncBinary() _ = yym3080 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3081 := !z.EncBinary() yy2arr3081 := z.EncBasicHandle().StructToArray var yyq3081 [2]bool _, _, _ = yysep3081, yyq3081, yy2arr3081 const yyr3081 bool = false var yynn3081 int if yyr3081 || yy2arr3081 { r.EncodeArrayStart(2) } else { yynn3081 = 2 for _, b := range yyq3081 { if b { yynn3081++ } } r.EncodeMapStart(yynn3081) yynn3081 = 0 } if yyr3081 || yy2arr3081 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } if yyr3081 || yy2arr3081 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3084 := z.EncBinary() _ = yym3084 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("address")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3085 := z.EncBinary() _ = yym3085 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } if yyr3081 || yy2arr3081 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeAddress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3086 := z.DecBinary() _ = yym3086 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3087 := r.ContainerType() if yyct3087 == codecSelferValueTypeMap1234 { yyl3087 := r.ReadMapStart() if yyl3087 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3087, d) } } else if yyct3087 == codecSelferValueTypeArray1234 { yyl3087 := r.ReadArrayStart() if yyl3087 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3087, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3088Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3088Slc var yyhl3088 bool = l >= 0 for yyj3088 := 0; ; yyj3088++ { if yyhl3088 { if yyj3088 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3088Slc = r.DecodeBytes(yys3088Slc, true, true) yys3088 := string(yys3088Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3088 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeAddressType(r.DecodeString()) } case "address": if r.TryDecodeAsNil() { x.Address = "" } else { x.Address = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3088) } // end switch yys3088 } // end for yyj3088 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3091 int var yyb3091 bool var yyhl3091 bool = l >= 0 yyj3091++ if yyhl3091 { yyb3091 = yyj3091 > l } else { yyb3091 = r.CheckBreak() } if yyb3091 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeAddressType(r.DecodeString()) } yyj3091++ if yyhl3091 { yyb3091 = yyj3091 > l } else { yyb3091 = r.CheckBreak() } if yyb3091 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Address = "" } else { x.Address = string(r.DecodeString()) } for { yyj3091++ if yyhl3091 { yyb3091 = yyj3091 > l } else { yyb3091 = r.CheckBreak() } if yyb3091 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3091-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3094 := z.EncBinary() _ = yym3094 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3095 := !z.EncBinary() yy2arr3095 := z.EncBasicHandle().StructToArray var yyq3095 [1]bool _, _, _ = yysep3095, yyq3095, yy2arr3095 const yyr3095 bool = false yyq3095[0] = len(x.Capacity) != 0 var yynn3095 int if yyr3095 || yy2arr3095 { r.EncodeArrayStart(1) } else { yynn3095 = 0 for _, b := range yyq3095 { if b { yynn3095++ } } r.EncodeMapStart(yynn3095) yynn3095 = 0 } if yyr3095 || yy2arr3095 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3095[0] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3095[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } } if yyr3095 || yy2arr3095 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeResources) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3097 := z.DecBinary() _ = yym3097 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3098 := r.ContainerType() if yyct3098 == codecSelferValueTypeMap1234 { yyl3098 := r.ReadMapStart() if yyl3098 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3098, d) } } else if yyct3098 == codecSelferValueTypeArray1234 { yyl3098 := r.ReadArrayStart() if yyl3098 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3098, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3099Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3099Slc var yyhl3099 bool = l >= 0 for yyj3099 := 0; ; yyj3099++ { if yyhl3099 { if yyj3099 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3099Slc = r.DecodeBytes(yys3099Slc, true, true) yys3099 := string(yys3099Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3099 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv3100 := &x.Capacity yyv3100.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3099) } // end switch yys3099 } // end for yyj3099 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3101 int var yyb3101 bool var yyhl3101 bool = l >= 0 yyj3101++ if yyhl3101 { yyb3101 = yyj3101 > l } else { yyb3101 = r.CheckBreak() } if yyb3101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv3102 := &x.Capacity yyv3102.CodecDecodeSelf(d) } for { yyj3101++ if yyhl3101 { yyb3101 = yyj3101 > l } else { yyb3101 = r.CheckBreak() } if yyb3101 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3101-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3103 := z.EncBinary() _ = yym3103 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *ResourceName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3104 := z.DecBinary() _ = yym3104 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x ResourceList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3105 := z.EncBinary() _ = yym3105 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { h.encResourceList((ResourceList)(x), e) } } } func (x *ResourceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3106 := z.DecBinary() _ = yym3106 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { h.decResourceList((*ResourceList)(x), d) } } func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3107 := z.EncBinary() _ = yym3107 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3108 := !z.EncBinary() yy2arr3108 := z.EncBasicHandle().StructToArray var yyq3108 [5]bool _, _, _ = yysep3108, yyq3108, yy2arr3108 const yyr3108 bool = false yyq3108[0] = x.Kind != "" yyq3108[1] = x.APIVersion != "" yyq3108[2] = true yyq3108[3] = true yyq3108[4] = true var yynn3108 int if yyr3108 || yy2arr3108 { r.EncodeArrayStart(5) } else { yynn3108 = 0 for _, b := range yyq3108 { if b { yynn3108++ } } r.EncodeMapStart(yynn3108) yynn3108 = 0 } if yyr3108 || yy2arr3108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3108[0] { yym3110 := z.EncBinary() _ = yym3110 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3108[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3111 := z.EncBinary() _ = yym3111 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3108 || yy2arr3108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3108[1] { yym3113 := z.EncBinary() _ = yym3113 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3108[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3114 := z.EncBinary() _ = yym3114 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3108 || yy2arr3108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3108[2] { yy3116 := &x.ObjectMeta yy3116.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3108[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3117 := &x.ObjectMeta yy3117.CodecEncodeSelf(e) } } if yyr3108 || yy2arr3108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3108[3] { yy3119 := &x.Spec yy3119.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3108[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3120 := &x.Spec yy3120.CodecEncodeSelf(e) } } if yyr3108 || yy2arr3108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3108[4] { yy3122 := &x.Status yy3122.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3108[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3123 := &x.Status yy3123.CodecEncodeSelf(e) } } if yyr3108 || yy2arr3108 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3124 := z.DecBinary() _ = yym3124 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3125 := r.ContainerType() if yyct3125 == codecSelferValueTypeMap1234 { yyl3125 := r.ReadMapStart() if yyl3125 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3125, d) } } else if yyct3125 == codecSelferValueTypeArray1234 { yyl3125 := r.ReadArrayStart() if yyl3125 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3125, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3126Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3126Slc var yyhl3126 bool = l >= 0 for yyj3126 := 0; ; yyj3126++ { if yyhl3126 { if yyj3126 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3126Slc = r.DecodeBytes(yys3126Slc, true, true) yys3126 := string(yys3126Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3126 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3129 := &x.ObjectMeta yyv3129.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { yyv3130 := &x.Spec yyv3130.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { yyv3131 := &x.Status yyv3131.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3126) } // end switch yys3126 } // end for yyj3126 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3132 int var yyb3132 bool var yyhl3132 bool = l >= 0 yyj3132++ if yyhl3132 { yyb3132 = yyj3132 > l } else { yyb3132 = r.CheckBreak() } if yyb3132 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3132++ if yyhl3132 { yyb3132 = yyj3132 > l } else { yyb3132 = r.CheckBreak() } if yyb3132 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3132++ if yyhl3132 { yyb3132 = yyj3132 > l } else { yyb3132 = r.CheckBreak() } if yyb3132 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3135 := &x.ObjectMeta yyv3135.CodecDecodeSelf(d) } yyj3132++ if yyhl3132 { yyb3132 = yyj3132 > l } else { yyb3132 = r.CheckBreak() } if yyb3132 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { yyv3136 := &x.Spec yyv3136.CodecDecodeSelf(d) } yyj3132++ if yyhl3132 { yyb3132 = yyj3132 > l } else { yyb3132 = r.CheckBreak() } if yyb3132 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { yyv3137 := &x.Status yyv3137.CodecDecodeSelf(d) } for { yyj3132++ if yyhl3132 { yyb3132 = yyj3132 > l } else { yyb3132 = r.CheckBreak() } if yyb3132 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3132-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3138 := z.EncBinary() _ = yym3138 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3139 := !z.EncBinary() yy2arr3139 := z.EncBasicHandle().StructToArray var yyq3139 [4]bool _, _, _ = yysep3139, yyq3139, yy2arr3139 const yyr3139 bool = false yyq3139[0] = x.Kind != "" yyq3139[1] = x.APIVersion != "" yyq3139[2] = true var yynn3139 int if yyr3139 || yy2arr3139 { r.EncodeArrayStart(4) } else { yynn3139 = 1 for _, b := range yyq3139 { if b { yynn3139++ } } r.EncodeMapStart(yynn3139) yynn3139 = 0 } if yyr3139 || yy2arr3139 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3139[0] { yym3141 := z.EncBinary() _ = yym3141 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3139[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3142 := z.EncBinary() _ = yym3142 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3139 || yy2arr3139 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3139[1] { yym3144 := z.EncBinary() _ = yym3144 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3139[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3145 := z.EncBinary() _ = yym3145 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3139 || yy2arr3139 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3139[2] { yy3147 := &x.ListMeta yym3148 := z.EncBinary() _ = yym3148 if false { } else if z.HasExtensions() && z.EncExt(yy3147) { } else { z.EncFallback(yy3147) } } else { r.EncodeNil() } } else { if yyq3139[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3149 := &x.ListMeta yym3150 := z.EncBinary() _ = yym3150 if false { } else if z.HasExtensions() && z.EncExt(yy3149) { } else { z.EncFallback(yy3149) } } } if yyr3139 || yy2arr3139 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3152 := z.EncBinary() _ = yym3152 if false { } else { h.encSliceNode(([]Node)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym3153 := z.EncBinary() _ = yym3153 if false { } else { h.encSliceNode(([]Node)(x.Items), e) } } } if yyr3139 || yy2arr3139 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3154 := z.DecBinary() _ = yym3154 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3155 := r.ContainerType() if yyct3155 == codecSelferValueTypeMap1234 { yyl3155 := r.ReadMapStart() if yyl3155 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3155, d) } } else if yyct3155 == codecSelferValueTypeArray1234 { yyl3155 := r.ReadArrayStart() if yyl3155 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3155, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3156Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3156Slc var yyhl3156 bool = l >= 0 for yyj3156 := 0; ; yyj3156++ { if yyhl3156 { if yyj3156 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3156Slc = r.DecodeBytes(yys3156Slc, true, true) yys3156 := string(yys3156Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3156 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3159 := &x.ListMeta yym3160 := z.DecBinary() _ = yym3160 if false { } else if z.HasExtensions() && z.DecExt(yyv3159) { } else { z.DecFallback(yyv3159, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3161 := &x.Items yym3162 := z.DecBinary() _ = yym3162 if false { } else { h.decSliceNode((*[]Node)(yyv3161), d) } } default: z.DecStructFieldNotFound(-1, yys3156) } // end switch yys3156 } // end for yyj3156 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3163 int var yyb3163 bool var yyhl3163 bool = l >= 0 yyj3163++ if yyhl3163 { yyb3163 = yyj3163 > l } else { yyb3163 = r.CheckBreak() } if yyb3163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3163++ if yyhl3163 { yyb3163 = yyj3163 > l } else { yyb3163 = r.CheckBreak() } if yyb3163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3163++ if yyhl3163 { yyb3163 = yyj3163 > l } else { yyb3163 = r.CheckBreak() } if yyb3163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3166 := &x.ListMeta yym3167 := z.DecBinary() _ = yym3167 if false { } else if z.HasExtensions() && z.DecExt(yyv3166) { } else { z.DecFallback(yyv3166, false) } } yyj3163++ if yyhl3163 { yyb3163 = yyj3163 > l } else { yyb3163 = r.CheckBreak() } if yyb3163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3168 := &x.Items yym3169 := z.DecBinary() _ = yym3169 if false { } else { h.decSliceNode((*[]Node)(yyv3168), d) } } for { yyj3163++ if yyhl3163 { yyb3163 = yyj3163 > l } else { yyb3163 = r.CheckBreak() } if yyb3163 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3163-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3170 := z.EncBinary() _ = yym3170 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3171 := !z.EncBinary() yy2arr3171 := z.EncBasicHandle().StructToArray var yyq3171 [1]bool _, _, _ = yysep3171, yyq3171, yy2arr3171 const yyr3171 bool = false var yynn3171 int if yyr3171 || yy2arr3171 { r.EncodeArrayStart(1) } else { yynn3171 = 1 for _, b := range yyq3171 { if b { yynn3171++ } } r.EncodeMapStart(yynn3171) yynn3171 = 0 } if yyr3171 || yy2arr3171 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Finalizers == nil { r.EncodeNil() } else { yym3173 := z.EncBinary() _ = yym3173 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Finalizers")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Finalizers == nil { r.EncodeNil() } else { yym3174 := z.EncBinary() _ = yym3174 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) } } } if yyr3171 || yy2arr3171 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NamespaceSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3175 := z.DecBinary() _ = yym3175 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3176 := r.ContainerType() if yyct3176 == codecSelferValueTypeMap1234 { yyl3176 := r.ReadMapStart() if yyl3176 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3176, d) } } else if yyct3176 == codecSelferValueTypeArray1234 { yyl3176 := r.ReadArrayStart() if yyl3176 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3176, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3177Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3177Slc var yyhl3177 bool = l >= 0 for yyj3177 := 0; ; yyj3177++ { if yyhl3177 { if yyj3177 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3177Slc = r.DecodeBytes(yys3177Slc, true, true) yys3177 := string(yys3177Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3177 { case "Finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv3178 := &x.Finalizers yym3179 := z.DecBinary() _ = yym3179 if false { } else { h.decSliceFinalizerName((*[]FinalizerName)(yyv3178), d) } } default: z.DecStructFieldNotFound(-1, yys3177) } // end switch yys3177 } // end for yyj3177 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3180 int var yyb3180 bool var yyhl3180 bool = l >= 0 yyj3180++ if yyhl3180 { yyb3180 = yyj3180 > l } else { yyb3180 = r.CheckBreak() } if yyb3180 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv3181 := &x.Finalizers yym3182 := z.DecBinary() _ = yym3182 if false { } else { h.decSliceFinalizerName((*[]FinalizerName)(yyv3181), d) } } for { yyj3180++ if yyhl3180 { yyb3180 = yyj3180 > l } else { yyb3180 = r.CheckBreak() } if yyb3180 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3180-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3183 := z.EncBinary() _ = yym3183 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *FinalizerName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3184 := z.DecBinary() _ = yym3184 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *NamespaceStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3185 := z.EncBinary() _ = yym3185 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3186 := !z.EncBinary() yy2arr3186 := z.EncBasicHandle().StructToArray var yyq3186 [1]bool _, _, _ = yysep3186, yyq3186, yy2arr3186 const yyr3186 bool = false yyq3186[0] = x.Phase != "" var yynn3186 int if yyr3186 || yy2arr3186 { r.EncodeArrayStart(1) } else { yynn3186 = 0 for _, b := range yyq3186 { if b { yynn3186++ } } r.EncodeMapStart(yynn3186) yynn3186 = 0 } if yyr3186 || yy2arr3186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3186[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3186[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr3186 || yy2arr3186 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NamespaceStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3188 := z.DecBinary() _ = yym3188 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3189 := r.ContainerType() if yyct3189 == codecSelferValueTypeMap1234 { yyl3189 := r.ReadMapStart() if yyl3189 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3189, d) } } else if yyct3189 == codecSelferValueTypeArray1234 { yyl3189 := r.ReadArrayStart() if yyl3189 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3189, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3190Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3190Slc var yyhl3190 bool = l >= 0 for yyj3190 := 0; ; yyj3190++ { if yyhl3190 { if yyj3190 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3190Slc = r.DecodeBytes(yys3190Slc, true, true) yys3190 := string(yys3190Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3190 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NamespacePhase(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3190) } // end switch yys3190 } // end for yyj3190 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3192 int var yyb3192 bool var yyhl3192 bool = l >= 0 yyj3192++ if yyhl3192 { yyb3192 = yyj3192 > l } else { yyb3192 = r.CheckBreak() } if yyb3192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NamespacePhase(r.DecodeString()) } for { yyj3192++ if yyhl3192 { yyb3192 = yyj3192 > l } else { yyb3192 = r.CheckBreak() } if yyb3192 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3192-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3194 := z.EncBinary() _ = yym3194 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *NamespacePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3195 := z.DecBinary() _ = yym3195 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3196 := z.EncBinary() _ = yym3196 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3197 := !z.EncBinary() yy2arr3197 := z.EncBasicHandle().StructToArray var yyq3197 [5]bool _, _, _ = yysep3197, yyq3197, yy2arr3197 const yyr3197 bool = false yyq3197[0] = x.Kind != "" yyq3197[1] = x.APIVersion != "" yyq3197[2] = true yyq3197[3] = true yyq3197[4] = true var yynn3197 int if yyr3197 || yy2arr3197 { r.EncodeArrayStart(5) } else { yynn3197 = 0 for _, b := range yyq3197 { if b { yynn3197++ } } r.EncodeMapStart(yynn3197) yynn3197 = 0 } if yyr3197 || yy2arr3197 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3197[0] { yym3199 := z.EncBinary() _ = yym3199 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3197[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3200 := z.EncBinary() _ = yym3200 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3197 || yy2arr3197 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3197[1] { yym3202 := z.EncBinary() _ = yym3202 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3197[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3203 := z.EncBinary() _ = yym3203 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3197 || yy2arr3197 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3197[2] { yy3205 := &x.ObjectMeta yy3205.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3197[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3206 := &x.ObjectMeta yy3206.CodecEncodeSelf(e) } } if yyr3197 || yy2arr3197 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3197[3] { yy3208 := &x.Spec yy3208.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3197[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3209 := &x.Spec yy3209.CodecEncodeSelf(e) } } if yyr3197 || yy2arr3197 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3197[4] { yy3211 := &x.Status yy3211.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3197[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3212 := &x.Status yy3212.CodecEncodeSelf(e) } } if yyr3197 || yy2arr3197 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Namespace) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3213 := z.DecBinary() _ = yym3213 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3214 := r.ContainerType() if yyct3214 == codecSelferValueTypeMap1234 { yyl3214 := r.ReadMapStart() if yyl3214 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3214, d) } } else if yyct3214 == codecSelferValueTypeArray1234 { yyl3214 := r.ReadArrayStart() if yyl3214 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3214, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3215Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3215Slc var yyhl3215 bool = l >= 0 for yyj3215 := 0; ; yyj3215++ { if yyhl3215 { if yyj3215 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3215Slc = r.DecodeBytes(yys3215Slc, true, true) yys3215 := string(yys3215Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3215 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3218 := &x.ObjectMeta yyv3218.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { yyv3219 := &x.Spec yyv3219.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { yyv3220 := &x.Status yyv3220.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3215) } // end switch yys3215 } // end for yyj3215 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3221 int var yyb3221 bool var yyhl3221 bool = l >= 0 yyj3221++ if yyhl3221 { yyb3221 = yyj3221 > l } else { yyb3221 = r.CheckBreak() } if yyb3221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3221++ if yyhl3221 { yyb3221 = yyj3221 > l } else { yyb3221 = r.CheckBreak() } if yyb3221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3221++ if yyhl3221 { yyb3221 = yyj3221 > l } else { yyb3221 = r.CheckBreak() } if yyb3221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3224 := &x.ObjectMeta yyv3224.CodecDecodeSelf(d) } yyj3221++ if yyhl3221 { yyb3221 = yyj3221 > l } else { yyb3221 = r.CheckBreak() } if yyb3221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { yyv3225 := &x.Spec yyv3225.CodecDecodeSelf(d) } yyj3221++ if yyhl3221 { yyb3221 = yyj3221 > l } else { yyb3221 = r.CheckBreak() } if yyb3221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { yyv3226 := &x.Status yyv3226.CodecDecodeSelf(d) } for { yyj3221++ if yyhl3221 { yyb3221 = yyj3221 > l } else { yyb3221 = r.CheckBreak() } if yyb3221 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3221-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3227 := z.EncBinary() _ = yym3227 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3228 := !z.EncBinary() yy2arr3228 := z.EncBasicHandle().StructToArray var yyq3228 [4]bool _, _, _ = yysep3228, yyq3228, yy2arr3228 const yyr3228 bool = false yyq3228[0] = x.Kind != "" yyq3228[1] = x.APIVersion != "" yyq3228[2] = true var yynn3228 int if yyr3228 || yy2arr3228 { r.EncodeArrayStart(4) } else { yynn3228 = 1 for _, b := range yyq3228 { if b { yynn3228++ } } r.EncodeMapStart(yynn3228) yynn3228 = 0 } if yyr3228 || yy2arr3228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3228[0] { yym3230 := z.EncBinary() _ = yym3230 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3228[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3231 := z.EncBinary() _ = yym3231 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3228 || yy2arr3228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3228[1] { yym3233 := z.EncBinary() _ = yym3233 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3228[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3234 := z.EncBinary() _ = yym3234 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3228 || yy2arr3228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3228[2] { yy3236 := &x.ListMeta yym3237 := z.EncBinary() _ = yym3237 if false { } else if z.HasExtensions() && z.EncExt(yy3236) { } else { z.EncFallback(yy3236) } } else { r.EncodeNil() } } else { if yyq3228[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3238 := &x.ListMeta yym3239 := z.EncBinary() _ = yym3239 if false { } else if z.HasExtensions() && z.EncExt(yy3238) { } else { z.EncFallback(yy3238) } } } if yyr3228 || yy2arr3228 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3241 := z.EncBinary() _ = yym3241 if false { } else { h.encSliceNamespace(([]Namespace)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym3242 := z.EncBinary() _ = yym3242 if false { } else { h.encSliceNamespace(([]Namespace)(x.Items), e) } } } if yyr3228 || yy2arr3228 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NamespaceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3243 := z.DecBinary() _ = yym3243 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3244 := r.ContainerType() if yyct3244 == codecSelferValueTypeMap1234 { yyl3244 := r.ReadMapStart() if yyl3244 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3244, d) } } else if yyct3244 == codecSelferValueTypeArray1234 { yyl3244 := r.ReadArrayStart() if yyl3244 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3244, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3245Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3245Slc var yyhl3245 bool = l >= 0 for yyj3245 := 0; ; yyj3245++ { if yyhl3245 { if yyj3245 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3245Slc = r.DecodeBytes(yys3245Slc, true, true) yys3245 := string(yys3245Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3245 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3248 := &x.ListMeta yym3249 := z.DecBinary() _ = yym3249 if false { } else if z.HasExtensions() && z.DecExt(yyv3248) { } else { z.DecFallback(yyv3248, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3250 := &x.Items yym3251 := z.DecBinary() _ = yym3251 if false { } else { h.decSliceNamespace((*[]Namespace)(yyv3250), d) } } default: z.DecStructFieldNotFound(-1, yys3245) } // end switch yys3245 } // end for yyj3245 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3252 int var yyb3252 bool var yyhl3252 bool = l >= 0 yyj3252++ if yyhl3252 { yyb3252 = yyj3252 > l } else { yyb3252 = r.CheckBreak() } if yyb3252 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3252++ if yyhl3252 { yyb3252 = yyj3252 > l } else { yyb3252 = r.CheckBreak() } if yyb3252 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3252++ if yyhl3252 { yyb3252 = yyj3252 > l } else { yyb3252 = r.CheckBreak() } if yyb3252 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3255 := &x.ListMeta yym3256 := z.DecBinary() _ = yym3256 if false { } else if z.HasExtensions() && z.DecExt(yyv3255) { } else { z.DecFallback(yyv3255, false) } } yyj3252++ if yyhl3252 { yyb3252 = yyj3252 > l } else { yyb3252 = r.CheckBreak() } if yyb3252 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3257 := &x.Items yym3258 := z.DecBinary() _ = yym3258 if false { } else { h.decSliceNamespace((*[]Namespace)(yyv3257), d) } } for { yyj3252++ if yyhl3252 { yyb3252 = yyj3252 > l } else { yyb3252 = r.CheckBreak() } if yyb3252 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3252-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3259 := z.EncBinary() _ = yym3259 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3260 := !z.EncBinary() yy2arr3260 := z.EncBasicHandle().StructToArray var yyq3260 [4]bool _, _, _ = yysep3260, yyq3260, yy2arr3260 const yyr3260 bool = false yyq3260[0] = x.Kind != "" yyq3260[1] = x.APIVersion != "" yyq3260[2] = true var yynn3260 int if yyr3260 || yy2arr3260 { r.EncodeArrayStart(4) } else { yynn3260 = 1 for _, b := range yyq3260 { if b { yynn3260++ } } r.EncodeMapStart(yynn3260) yynn3260 = 0 } if yyr3260 || yy2arr3260 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3260[0] { yym3262 := z.EncBinary() _ = yym3262 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3260[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3263 := z.EncBinary() _ = yym3263 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3260 || yy2arr3260 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3260[1] { yym3265 := z.EncBinary() _ = yym3265 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3260[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3266 := z.EncBinary() _ = yym3266 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3260 || yy2arr3260 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3260[2] { yy3268 := &x.ObjectMeta yy3268.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3260[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3269 := &x.ObjectMeta yy3269.CodecEncodeSelf(e) } } if yyr3260 || yy2arr3260 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3271 := &x.Target yy3271.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("target")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3272 := &x.Target yy3272.CodecEncodeSelf(e) } if yyr3260 || yy2arr3260 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Binding) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3273 := z.DecBinary() _ = yym3273 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3274 := r.ContainerType() if yyct3274 == codecSelferValueTypeMap1234 { yyl3274 := r.ReadMapStart() if yyl3274 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3274, d) } } else if yyct3274 == codecSelferValueTypeArray1234 { yyl3274 := r.ReadArrayStart() if yyl3274 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3274, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3275Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3275Slc var yyhl3275 bool = l >= 0 for yyj3275 := 0; ; yyj3275++ { if yyhl3275 { if yyj3275 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3275Slc = r.DecodeBytes(yys3275Slc, true, true) yys3275 := string(yys3275Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3275 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3278 := &x.ObjectMeta yyv3278.CodecDecodeSelf(d) } case "target": if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { yyv3279 := &x.Target yyv3279.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3275) } // end switch yys3275 } // end for yyj3275 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3280 int var yyb3280 bool var yyhl3280 bool = l >= 0 yyj3280++ if yyhl3280 { yyb3280 = yyj3280 > l } else { yyb3280 = r.CheckBreak() } if yyb3280 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3280++ if yyhl3280 { yyb3280 = yyj3280 > l } else { yyb3280 = r.CheckBreak() } if yyb3280 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3280++ if yyhl3280 { yyb3280 = yyj3280 > l } else { yyb3280 = r.CheckBreak() } if yyb3280 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3283 := &x.ObjectMeta yyv3283.CodecDecodeSelf(d) } yyj3280++ if yyhl3280 { yyb3280 = yyj3280 > l } else { yyb3280 = r.CheckBreak() } if yyb3280 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { yyv3284 := &x.Target yyv3284.CodecDecodeSelf(d) } for { yyj3280++ if yyhl3280 { yyb3280 = yyj3280 > l } else { yyb3280 = r.CheckBreak() } if yyb3280 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3280-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Preconditions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3285 := z.EncBinary() _ = yym3285 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3286 := !z.EncBinary() yy2arr3286 := z.EncBasicHandle().StructToArray var yyq3286 [1]bool _, _, _ = yysep3286, yyq3286, yy2arr3286 const yyr3286 bool = false yyq3286[0] = x.UID != nil var yynn3286 int if yyr3286 || yy2arr3286 { r.EncodeArrayStart(1) } else { yynn3286 = 0 for _, b := range yyq3286 { if b { yynn3286++ } } r.EncodeMapStart(yynn3286) yynn3286 = 0 } if yyr3286 || yy2arr3286 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3286[0] { if x.UID == nil { r.EncodeNil() } else { yy3288 := *x.UID yym3289 := z.EncBinary() _ = yym3289 if false { } else if z.HasExtensions() && z.EncExt(yy3288) { } else { r.EncodeString(codecSelferC_UTF81234, string(yy3288)) } } } else { r.EncodeNil() } } else { if yyq3286[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.UID == nil { r.EncodeNil() } else { yy3290 := *x.UID yym3291 := z.EncBinary() _ = yym3291 if false { } else if z.HasExtensions() && z.EncExt(yy3290) { } else { r.EncodeString(codecSelferC_UTF81234, string(yy3290)) } } } } if yyr3286 || yy2arr3286 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Preconditions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3292 := z.DecBinary() _ = yym3292 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3293 := r.ContainerType() if yyct3293 == codecSelferValueTypeMap1234 { yyl3293 := r.ReadMapStart() if yyl3293 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3293, d) } } else if yyct3293 == codecSelferValueTypeArray1234 { yyl3293 := r.ReadArrayStart() if yyl3293 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3293, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3294Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3294Slc var yyhl3294 bool = l >= 0 for yyj3294 := 0; ; yyj3294++ { if yyhl3294 { if yyj3294 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3294Slc = r.DecodeBytes(yys3294Slc, true, true) yys3294 := string(yys3294Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3294 { case "uid": if r.TryDecodeAsNil() { if x.UID != nil { x.UID = nil } } else { if x.UID == nil { x.UID = new(pkg1_types.UID) } yym3296 := z.DecBinary() _ = yym3296 if false { } else if z.HasExtensions() && z.DecExt(x.UID) { } else { *((*string)(x.UID)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3294) } // end switch yys3294 } // end for yyj3294 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3297 int var yyb3297 bool var yyhl3297 bool = l >= 0 yyj3297++ if yyhl3297 { yyb3297 = yyj3297 > l } else { yyb3297 = r.CheckBreak() } if yyb3297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.UID != nil { x.UID = nil } } else { if x.UID == nil { x.UID = new(pkg1_types.UID) } yym3299 := z.DecBinary() _ = yym3299 if false { } else if z.HasExtensions() && z.DecExt(x.UID) { } else { *((*string)(x.UID)) = r.DecodeString() } } for { yyj3297++ if yyhl3297 { yyb3297 = yyj3297 > l } else { yyb3297 = r.CheckBreak() } if yyb3297 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3297-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3300 := z.EncBinary() _ = yym3300 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3301 := !z.EncBinary() yy2arr3301 := z.EncBasicHandle().StructToArray var yyq3301 [5]bool _, _, _ = yysep3301, yyq3301, yy2arr3301 const yyr3301 bool = false yyq3301[0] = x.Kind != "" yyq3301[1] = x.APIVersion != "" yyq3301[2] = x.GracePeriodSeconds != nil yyq3301[3] = x.Preconditions != nil yyq3301[4] = x.OrphanDependents != nil var yynn3301 int if yyr3301 || yy2arr3301 { r.EncodeArrayStart(5) } else { yynn3301 = 0 for _, b := range yyq3301 { if b { yynn3301++ } } r.EncodeMapStart(yynn3301) yynn3301 = 0 } if yyr3301 || yy2arr3301 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3301[0] { yym3303 := z.EncBinary() _ = yym3303 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3301[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3304 := z.EncBinary() _ = yym3304 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3301 || yy2arr3301 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3301[1] { yym3306 := z.EncBinary() _ = yym3306 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3301[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3307 := z.EncBinary() _ = yym3307 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3301 || yy2arr3301 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3301[2] { if x.GracePeriodSeconds == nil { r.EncodeNil() } else { yy3309 := *x.GracePeriodSeconds yym3310 := z.EncBinary() _ = yym3310 if false { } else { r.EncodeInt(int64(yy3309)) } } } else { r.EncodeNil() } } else { if yyq3301[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.GracePeriodSeconds == nil { r.EncodeNil() } else { yy3311 := *x.GracePeriodSeconds yym3312 := z.EncBinary() _ = yym3312 if false { } else { r.EncodeInt(int64(yy3311)) } } } } if yyr3301 || yy2arr3301 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3301[3] { if x.Preconditions == nil { r.EncodeNil() } else { x.Preconditions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3301[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preconditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Preconditions == nil { r.EncodeNil() } else { x.Preconditions.CodecEncodeSelf(e) } } } if yyr3301 || yy2arr3301 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3301[4] { if x.OrphanDependents == nil { r.EncodeNil() } else { yy3315 := *x.OrphanDependents yym3316 := z.EncBinary() _ = yym3316 if false { } else { r.EncodeBool(bool(yy3315)) } } } else { r.EncodeNil() } } else { if yyq3301[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("orphanDependents")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.OrphanDependents == nil { r.EncodeNil() } else { yy3317 := *x.OrphanDependents yym3318 := z.EncBinary() _ = yym3318 if false { } else { r.EncodeBool(bool(yy3317)) } } } } if yyr3301 || yy2arr3301 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *DeleteOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3319 := z.DecBinary() _ = yym3319 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3320 := r.ContainerType() if yyct3320 == codecSelferValueTypeMap1234 { yyl3320 := r.ReadMapStart() if yyl3320 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3320, d) } } else if yyct3320 == codecSelferValueTypeArray1234 { yyl3320 := r.ReadArrayStart() if yyl3320 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3320, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3321Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3321Slc var yyhl3321 bool = l >= 0 for yyj3321 := 0; ; yyj3321++ { if yyhl3321 { if yyj3321 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3321Slc = r.DecodeBytes(yys3321Slc, true, true) yys3321 := string(yys3321Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3321 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "gracePeriodSeconds": if r.TryDecodeAsNil() { if x.GracePeriodSeconds != nil { x.GracePeriodSeconds = nil } } else { if x.GracePeriodSeconds == nil { x.GracePeriodSeconds = new(int64) } yym3325 := z.DecBinary() _ = yym3325 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } case "preconditions": if r.TryDecodeAsNil() { if x.Preconditions != nil { x.Preconditions = nil } } else { if x.Preconditions == nil { x.Preconditions = new(Preconditions) } x.Preconditions.CodecDecodeSelf(d) } case "orphanDependents": if r.TryDecodeAsNil() { if x.OrphanDependents != nil { x.OrphanDependents = nil } } else { if x.OrphanDependents == nil { x.OrphanDependents = new(bool) } yym3328 := z.DecBinary() _ = yym3328 if false { } else { *((*bool)(x.OrphanDependents)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3321) } // end switch yys3321 } // end for yyj3321 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3329 int var yyb3329 bool var yyhl3329 bool = l >= 0 yyj3329++ if yyhl3329 { yyb3329 = yyj3329 > l } else { yyb3329 = r.CheckBreak() } if yyb3329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3329++ if yyhl3329 { yyb3329 = yyj3329 > l } else { yyb3329 = r.CheckBreak() } if yyb3329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3329++ if yyhl3329 { yyb3329 = yyj3329 > l } else { yyb3329 = r.CheckBreak() } if yyb3329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.GracePeriodSeconds != nil { x.GracePeriodSeconds = nil } } else { if x.GracePeriodSeconds == nil { x.GracePeriodSeconds = new(int64) } yym3333 := z.DecBinary() _ = yym3333 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } yyj3329++ if yyhl3329 { yyb3329 = yyj3329 > l } else { yyb3329 = r.CheckBreak() } if yyb3329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Preconditions != nil { x.Preconditions = nil } } else { if x.Preconditions == nil { x.Preconditions = new(Preconditions) } x.Preconditions.CodecDecodeSelf(d) } yyj3329++ if yyhl3329 { yyb3329 = yyj3329 > l } else { yyb3329 = r.CheckBreak() } if yyb3329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.OrphanDependents != nil { x.OrphanDependents = nil } } else { if x.OrphanDependents == nil { x.OrphanDependents = new(bool) } yym3336 := z.DecBinary() _ = yym3336 if false { } else { *((*bool)(x.OrphanDependents)) = r.DecodeBool() } } for { yyj3329++ if yyhl3329 { yyb3329 = yyj3329 > l } else { yyb3329 = r.CheckBreak() } if yyb3329 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3329-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3337 := z.EncBinary() _ = yym3337 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3338 := !z.EncBinary() yy2arr3338 := z.EncBasicHandle().StructToArray var yyq3338 [4]bool _, _, _ = yysep3338, yyq3338, yy2arr3338 const yyr3338 bool = false yyq3338[0] = x.Kind != "" yyq3338[1] = x.APIVersion != "" var yynn3338 int if yyr3338 || yy2arr3338 { r.EncodeArrayStart(4) } else { yynn3338 = 2 for _, b := range yyq3338 { if b { yynn3338++ } } r.EncodeMapStart(yynn3338) yynn3338 = 0 } if yyr3338 || yy2arr3338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3338[0] { yym3340 := z.EncBinary() _ = yym3340 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3338[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3341 := z.EncBinary() _ = yym3341 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3338 || yy2arr3338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3338[1] { yym3343 := z.EncBinary() _ = yym3343 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3338[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3344 := z.EncBinary() _ = yym3344 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3338 || yy2arr3338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3346 := z.EncBinary() _ = yym3346 if false { } else { r.EncodeBool(bool(x.Export)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("export")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3347 := z.EncBinary() _ = yym3347 if false { } else { r.EncodeBool(bool(x.Export)) } } if yyr3338 || yy2arr3338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3349 := z.EncBinary() _ = yym3349 if false { } else { r.EncodeBool(bool(x.Exact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exact")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3350 := z.EncBinary() _ = yym3350 if false { } else { r.EncodeBool(bool(x.Exact)) } } if yyr3338 || yy2arr3338 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ExportOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3351 := z.DecBinary() _ = yym3351 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3352 := r.ContainerType() if yyct3352 == codecSelferValueTypeMap1234 { yyl3352 := r.ReadMapStart() if yyl3352 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3352, d) } } else if yyct3352 == codecSelferValueTypeArray1234 { yyl3352 := r.ReadArrayStart() if yyl3352 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3352, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3353Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3353Slc var yyhl3353 bool = l >= 0 for yyj3353 := 0; ; yyj3353++ { if yyhl3353 { if yyj3353 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3353Slc = r.DecodeBytes(yys3353Slc, true, true) yys3353 := string(yys3353Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3353 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "export": if r.TryDecodeAsNil() { x.Export = false } else { x.Export = bool(r.DecodeBool()) } case "exact": if r.TryDecodeAsNil() { x.Exact = false } else { x.Exact = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys3353) } // end switch yys3353 } // end for yyj3353 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3358 int var yyb3358 bool var yyhl3358 bool = l >= 0 yyj3358++ if yyhl3358 { yyb3358 = yyj3358 > l } else { yyb3358 = r.CheckBreak() } if yyb3358 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3358++ if yyhl3358 { yyb3358 = yyj3358 > l } else { yyb3358 = r.CheckBreak() } if yyb3358 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3358++ if yyhl3358 { yyb3358 = yyj3358 > l } else { yyb3358 = r.CheckBreak() } if yyb3358 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Export = false } else { x.Export = bool(r.DecodeBool()) } yyj3358++ if yyhl3358 { yyb3358 = yyj3358 > l } else { yyb3358 = r.CheckBreak() } if yyb3358 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Exact = false } else { x.Exact = bool(r.DecodeBool()) } for { yyj3358++ if yyhl3358 { yyb3358 = yyj3358 > l } else { yyb3358 = r.CheckBreak() } if yyb3358 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3358-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3363 := z.EncBinary() _ = yym3363 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3364 := !z.EncBinary() yy2arr3364 := z.EncBasicHandle().StructToArray var yyq3364 [7]bool _, _, _ = yysep3364, yyq3364, yy2arr3364 const yyr3364 bool = false yyq3364[0] = x.Kind != "" yyq3364[1] = x.APIVersion != "" var yynn3364 int if yyr3364 || yy2arr3364 { r.EncodeArrayStart(7) } else { yynn3364 = 5 for _, b := range yyq3364 { if b { yynn3364++ } } r.EncodeMapStart(yynn3364) yynn3364 = 0 } if yyr3364 || yy2arr3364 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3364[0] { yym3366 := z.EncBinary() _ = yym3366 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3364[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3367 := z.EncBinary() _ = yym3367 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3364 || yy2arr3364 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3364[1] { yym3369 := z.EncBinary() _ = yym3369 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3364[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3370 := z.EncBinary() _ = yym3370 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3364 || yy2arr3364 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LabelSelector == nil { r.EncodeNil() } else { yym3372 := z.EncBinary() _ = yym3372 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { z.EncFallback(x.LabelSelector) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("LabelSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LabelSelector == nil { r.EncodeNil() } else { yym3373 := z.EncBinary() _ = yym3373 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { z.EncFallback(x.LabelSelector) } } } if yyr3364 || yy2arr3364 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.FieldSelector == nil { r.EncodeNil() } else { yym3375 := z.EncBinary() _ = yym3375 if false { } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { } else { z.EncFallback(x.FieldSelector) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("FieldSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FieldSelector == nil { r.EncodeNil() } else { yym3376 := z.EncBinary() _ = yym3376 if false { } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { } else { z.EncFallback(x.FieldSelector) } } } if yyr3364 || yy2arr3364 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3378 := z.EncBinary() _ = yym3378 if false { } else { r.EncodeBool(bool(x.Watch)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Watch")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3379 := z.EncBinary() _ = yym3379 if false { } else { r.EncodeBool(bool(x.Watch)) } } if yyr3364 || yy2arr3364 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3381 := z.EncBinary() _ = yym3381 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ResourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3382 := z.EncBinary() _ = yym3382 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } if yyr3364 || yy2arr3364 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { yy3384 := *x.TimeoutSeconds yym3385 := z.EncBinary() _ = yym3385 if false { } else { r.EncodeInt(int64(yy3384)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { yy3386 := *x.TimeoutSeconds yym3387 := z.EncBinary() _ = yym3387 if false { } else { r.EncodeInt(int64(yy3386)) } } } if yyr3364 || yy2arr3364 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ListOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3388 := z.DecBinary() _ = yym3388 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3389 := r.ContainerType() if yyct3389 == codecSelferValueTypeMap1234 { yyl3389 := r.ReadMapStart() if yyl3389 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3389, d) } } else if yyct3389 == codecSelferValueTypeArray1234 { yyl3389 := r.ReadArrayStart() if yyl3389 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3389, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3390Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3390Slc var yyhl3390 bool = l >= 0 for yyj3390 := 0; ; yyj3390++ { if yyhl3390 { if yyj3390 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3390Slc = r.DecodeBytes(yys3390Slc, true, true) yys3390 := string(yys3390Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3390 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "LabelSelector": if r.TryDecodeAsNil() { x.LabelSelector = nil } else { yyv3393 := &x.LabelSelector yym3394 := z.DecBinary() _ = yym3394 if false { } else if z.HasExtensions() && z.DecExt(yyv3393) { } else { z.DecFallback(yyv3393, true) } } case "FieldSelector": if r.TryDecodeAsNil() { x.FieldSelector = nil } else { yyv3395 := &x.FieldSelector yym3396 := z.DecBinary() _ = yym3396 if false { } else if z.HasExtensions() && z.DecExt(yyv3395) { } else { z.DecFallback(yyv3395, true) } } case "Watch": if r.TryDecodeAsNil() { x.Watch = false } else { x.Watch = bool(r.DecodeBool()) } case "ResourceVersion": if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } case "TimeoutSeconds": if r.TryDecodeAsNil() { if x.TimeoutSeconds != nil { x.TimeoutSeconds = nil } } else { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } yym3400 := z.DecBinary() _ = yym3400 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys3390) } // end switch yys3390 } // end for yyj3390 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3401 int var yyb3401 bool var yyhl3401 bool = l >= 0 yyj3401++ if yyhl3401 { yyb3401 = yyj3401 > l } else { yyb3401 = r.CheckBreak() } if yyb3401 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3401++ if yyhl3401 { yyb3401 = yyj3401 > l } else { yyb3401 = r.CheckBreak() } if yyb3401 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3401++ if yyhl3401 { yyb3401 = yyj3401 > l } else { yyb3401 = r.CheckBreak() } if yyb3401 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LabelSelector = nil } else { yyv3404 := &x.LabelSelector yym3405 := z.DecBinary() _ = yym3405 if false { } else if z.HasExtensions() && z.DecExt(yyv3404) { } else { z.DecFallback(yyv3404, true) } } yyj3401++ if yyhl3401 { yyb3401 = yyj3401 > l } else { yyb3401 = r.CheckBreak() } if yyb3401 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldSelector = nil } else { yyv3406 := &x.FieldSelector yym3407 := z.DecBinary() _ = yym3407 if false { } else if z.HasExtensions() && z.DecExt(yyv3406) { } else { z.DecFallback(yyv3406, true) } } yyj3401++ if yyhl3401 { yyb3401 = yyj3401 > l } else { yyb3401 = r.CheckBreak() } if yyb3401 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Watch = false } else { x.Watch = bool(r.DecodeBool()) } yyj3401++ if yyhl3401 { yyb3401 = yyj3401 > l } else { yyb3401 = r.CheckBreak() } if yyb3401 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj3401++ if yyhl3401 { yyb3401 = yyj3401 > l } else { yyb3401 = r.CheckBreak() } if yyb3401 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.TimeoutSeconds != nil { x.TimeoutSeconds = nil } } else { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } yym3411 := z.DecBinary() _ = yym3411 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } for { yyj3401++ if yyhl3401 { yyb3401 = yyj3401 > l } else { yyb3401 = r.CheckBreak() } if yyb3401 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3401-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3412 := z.EncBinary() _ = yym3412 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3413 := !z.EncBinary() yy2arr3413 := z.EncBasicHandle().StructToArray var yyq3413 [10]bool _, _, _ = yysep3413, yyq3413, yy2arr3413 const yyr3413 bool = false yyq3413[0] = x.Kind != "" yyq3413[1] = x.APIVersion != "" var yynn3413 int if yyr3413 || yy2arr3413 { r.EncodeArrayStart(10) } else { yynn3413 = 8 for _, b := range yyq3413 { if b { yynn3413++ } } r.EncodeMapStart(yynn3413) yynn3413 = 0 } if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3413[0] { yym3415 := z.EncBinary() _ = yym3415 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3413[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3416 := z.EncBinary() _ = yym3416 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3413[1] { yym3418 := z.EncBinary() _ = yym3418 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3413[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3419 := z.EncBinary() _ = yym3419 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3421 := z.EncBinary() _ = yym3421 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3422 := z.EncBinary() _ = yym3422 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3424 := z.EncBinary() _ = yym3424 if false { } else { r.EncodeBool(bool(x.Follow)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Follow")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3425 := z.EncBinary() _ = yym3425 if false { } else { r.EncodeBool(bool(x.Follow)) } } if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3427 := z.EncBinary() _ = yym3427 if false { } else { r.EncodeBool(bool(x.Previous)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Previous")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3428 := z.EncBinary() _ = yym3428 if false { } else { r.EncodeBool(bool(x.Previous)) } } if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceSeconds == nil { r.EncodeNil() } else { yy3430 := *x.SinceSeconds yym3431 := z.EncBinary() _ = yym3431 if false { } else { r.EncodeInt(int64(yy3430)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SinceSeconds == nil { r.EncodeNil() } else { yy3432 := *x.SinceSeconds yym3433 := z.EncBinary() _ = yym3433 if false { } else { r.EncodeInt(int64(yy3432)) } } } if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceTime == nil { r.EncodeNil() } else { yym3435 := z.EncBinary() _ = yym3435 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { } else if yym3435 { z.EncBinaryMarshal(x.SinceTime) } else if !yym3435 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("SinceTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SinceTime == nil { r.EncodeNil() } else { yym3436 := z.EncBinary() _ = yym3436 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { } else if yym3436 { z.EncBinaryMarshal(x.SinceTime) } else if !yym3436 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) } } } if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3438 := z.EncBinary() _ = yym3438 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Timestamps")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3439 := z.EncBinary() _ = yym3439 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TailLines == nil { r.EncodeNil() } else { yy3441 := *x.TailLines yym3442 := z.EncBinary() _ = yym3442 if false { } else { r.EncodeInt(int64(yy3441)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TailLines")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TailLines == nil { r.EncodeNil() } else { yy3443 := *x.TailLines yym3444 := z.EncBinary() _ = yym3444 if false { } else { r.EncodeInt(int64(yy3443)) } } } if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LimitBytes == nil { r.EncodeNil() } else { yy3446 := *x.LimitBytes yym3447 := z.EncBinary() _ = yym3447 if false { } else { r.EncodeInt(int64(yy3446)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("LimitBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LimitBytes == nil { r.EncodeNil() } else { yy3448 := *x.LimitBytes yym3449 := z.EncBinary() _ = yym3449 if false { } else { r.EncodeInt(int64(yy3448)) } } } if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodLogOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3450 := z.DecBinary() _ = yym3450 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3451 := r.ContainerType() if yyct3451 == codecSelferValueTypeMap1234 { yyl3451 := r.ReadMapStart() if yyl3451 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3451, d) } } else if yyct3451 == codecSelferValueTypeArray1234 { yyl3451 := r.ReadArrayStart() if yyl3451 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3451, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3452Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3452Slc var yyhl3452 bool = l >= 0 for yyj3452 := 0; ; yyj3452++ { if yyhl3452 { if yyj3452 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3452Slc = r.DecodeBytes(yys3452Slc, true, true) yys3452 := string(yys3452Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3452 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "Container": if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } case "Follow": if r.TryDecodeAsNil() { x.Follow = false } else { x.Follow = bool(r.DecodeBool()) } case "Previous": if r.TryDecodeAsNil() { x.Previous = false } else { x.Previous = bool(r.DecodeBool()) } case "SinceSeconds": if r.TryDecodeAsNil() { if x.SinceSeconds != nil { x.SinceSeconds = nil } } else { if x.SinceSeconds == nil { x.SinceSeconds = new(int64) } yym3459 := z.DecBinary() _ = yym3459 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) } } case "SinceTime": if r.TryDecodeAsNil() { if x.SinceTime != nil { x.SinceTime = nil } } else { if x.SinceTime == nil { x.SinceTime = new(pkg2_unversioned.Time) } yym3461 := z.DecBinary() _ = yym3461 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { } else if yym3461 { z.DecBinaryUnmarshal(x.SinceTime) } else if !yym3461 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) } } case "Timestamps": if r.TryDecodeAsNil() { x.Timestamps = false } else { x.Timestamps = bool(r.DecodeBool()) } case "TailLines": if r.TryDecodeAsNil() { if x.TailLines != nil { x.TailLines = nil } } else { if x.TailLines == nil { x.TailLines = new(int64) } yym3464 := z.DecBinary() _ = yym3464 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) } } case "LimitBytes": if r.TryDecodeAsNil() { if x.LimitBytes != nil { x.LimitBytes = nil } } else { if x.LimitBytes == nil { x.LimitBytes = new(int64) } yym3466 := z.DecBinary() _ = yym3466 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys3452) } // end switch yys3452 } // end for yyj3452 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3467 int var yyb3467 bool var yyhl3467 bool = l >= 0 yyj3467++ if yyhl3467 { yyb3467 = yyj3467 > l } else { yyb3467 = r.CheckBreak() } if yyb3467 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3467++ if yyhl3467 { yyb3467 = yyj3467 > l } else { yyb3467 = r.CheckBreak() } if yyb3467 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3467++ if yyhl3467 { yyb3467 = yyj3467 > l } else { yyb3467 = r.CheckBreak() } if yyb3467 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } yyj3467++ if yyhl3467 { yyb3467 = yyj3467 > l } else { yyb3467 = r.CheckBreak() } if yyb3467 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Follow = false } else { x.Follow = bool(r.DecodeBool()) } yyj3467++ if yyhl3467 { yyb3467 = yyj3467 > l } else { yyb3467 = r.CheckBreak() } if yyb3467 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Previous = false } else { x.Previous = bool(r.DecodeBool()) } yyj3467++ if yyhl3467 { yyb3467 = yyj3467 > l } else { yyb3467 = r.CheckBreak() } if yyb3467 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SinceSeconds != nil { x.SinceSeconds = nil } } else { if x.SinceSeconds == nil { x.SinceSeconds = new(int64) } yym3474 := z.DecBinary() _ = yym3474 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) } } yyj3467++ if yyhl3467 { yyb3467 = yyj3467 > l } else { yyb3467 = r.CheckBreak() } if yyb3467 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SinceTime != nil { x.SinceTime = nil } } else { if x.SinceTime == nil { x.SinceTime = new(pkg2_unversioned.Time) } yym3476 := z.DecBinary() _ = yym3476 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { } else if yym3476 { z.DecBinaryUnmarshal(x.SinceTime) } else if !yym3476 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) } } yyj3467++ if yyhl3467 { yyb3467 = yyj3467 > l } else { yyb3467 = r.CheckBreak() } if yyb3467 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Timestamps = false } else { x.Timestamps = bool(r.DecodeBool()) } yyj3467++ if yyhl3467 { yyb3467 = yyj3467 > l } else { yyb3467 = r.CheckBreak() } if yyb3467 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.TailLines != nil { x.TailLines = nil } } else { if x.TailLines == nil { x.TailLines = new(int64) } yym3479 := z.DecBinary() _ = yym3479 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) } } yyj3467++ if yyhl3467 { yyb3467 = yyj3467 > l } else { yyb3467 = r.CheckBreak() } if yyb3467 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.LimitBytes != nil { x.LimitBytes = nil } } else { if x.LimitBytes == nil { x.LimitBytes = new(int64) } yym3481 := z.DecBinary() _ = yym3481 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } for { yyj3467++ if yyhl3467 { yyb3467 = yyj3467 > l } else { yyb3467 = r.CheckBreak() } if yyb3467 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3467-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3482 := z.EncBinary() _ = yym3482 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3483 := !z.EncBinary() yy2arr3483 := z.EncBasicHandle().StructToArray var yyq3483 [7]bool _, _, _ = yysep3483, yyq3483, yy2arr3483 const yyr3483 bool = false yyq3483[0] = x.Kind != "" yyq3483[1] = x.APIVersion != "" yyq3483[2] = x.Stdin != false yyq3483[3] = x.Stdout != false yyq3483[4] = x.Stderr != false yyq3483[5] = x.TTY != false yyq3483[6] = x.Container != "" var yynn3483 int if yyr3483 || yy2arr3483 { r.EncodeArrayStart(7) } else { yynn3483 = 0 for _, b := range yyq3483 { if b { yynn3483++ } } r.EncodeMapStart(yynn3483) yynn3483 = 0 } if yyr3483 || yy2arr3483 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3483[0] { yym3485 := z.EncBinary() _ = yym3485 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3483[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3486 := z.EncBinary() _ = yym3486 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3483 || yy2arr3483 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3483[1] { yym3488 := z.EncBinary() _ = yym3488 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3483[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3489 := z.EncBinary() _ = yym3489 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3483 || yy2arr3483 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3483[2] { yym3491 := z.EncBinary() _ = yym3491 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { if yyq3483[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3492 := z.EncBinary() _ = yym3492 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } if yyr3483 || yy2arr3483 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3483[3] { yym3494 := z.EncBinary() _ = yym3494 if false { } else { r.EncodeBool(bool(x.Stdout)) } } else { r.EncodeBool(false) } } else { if yyq3483[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3495 := z.EncBinary() _ = yym3495 if false { } else { r.EncodeBool(bool(x.Stdout)) } } } if yyr3483 || yy2arr3483 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3483[4] { yym3497 := z.EncBinary() _ = yym3497 if false { } else { r.EncodeBool(bool(x.Stderr)) } } else { r.EncodeBool(false) } } else { if yyq3483[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3498 := z.EncBinary() _ = yym3498 if false { } else { r.EncodeBool(bool(x.Stderr)) } } } if yyr3483 || yy2arr3483 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3483[5] { yym3500 := z.EncBinary() _ = yym3500 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { r.EncodeBool(false) } } else { if yyq3483[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3501 := z.EncBinary() _ = yym3501 if false { } else { r.EncodeBool(bool(x.TTY)) } } } if yyr3483 || yy2arr3483 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3483[6] { yym3503 := z.EncBinary() _ = yym3503 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3483[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3504 := z.EncBinary() _ = yym3504 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } if yyr3483 || yy2arr3483 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodAttachOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3505 := z.DecBinary() _ = yym3505 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3506 := r.ContainerType() if yyct3506 == codecSelferValueTypeMap1234 { yyl3506 := r.ReadMapStart() if yyl3506 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3506, d) } } else if yyct3506 == codecSelferValueTypeArray1234 { yyl3506 := r.ReadArrayStart() if yyl3506 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3506, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3507Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3507Slc var yyhl3507 bool = l >= 0 for yyj3507 := 0; ; yyj3507++ { if yyhl3507 { if yyj3507 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3507Slc = r.DecodeBytes(yys3507Slc, true, true) yys3507 := string(yys3507Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3507 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "stdin": if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } case "stdout": if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } case "stderr": if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } case "tty": if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } case "container": if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3507) } // end switch yys3507 } // end for yyj3507 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3515 int var yyb3515 bool var yyhl3515 bool = l >= 0 yyj3515++ if yyhl3515 { yyb3515 = yyj3515 > l } else { yyb3515 = r.CheckBreak() } if yyb3515 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3515++ if yyhl3515 { yyb3515 = yyj3515 > l } else { yyb3515 = r.CheckBreak() } if yyb3515 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3515++ if yyhl3515 { yyb3515 = yyj3515 > l } else { yyb3515 = r.CheckBreak() } if yyb3515 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj3515++ if yyhl3515 { yyb3515 = yyj3515 > l } else { yyb3515 = r.CheckBreak() } if yyb3515 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } yyj3515++ if yyhl3515 { yyb3515 = yyj3515 > l } else { yyb3515 = r.CheckBreak() } if yyb3515 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } yyj3515++ if yyhl3515 { yyb3515 = yyj3515 > l } else { yyb3515 = r.CheckBreak() } if yyb3515 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } yyj3515++ if yyhl3515 { yyb3515 = yyj3515 > l } else { yyb3515 = r.CheckBreak() } if yyb3515 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } for { yyj3515++ if yyhl3515 { yyb3515 = yyj3515 > l } else { yyb3515 = r.CheckBreak() } if yyb3515 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3515-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3523 := z.EncBinary() _ = yym3523 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3524 := !z.EncBinary() yy2arr3524 := z.EncBasicHandle().StructToArray var yyq3524 [8]bool _, _, _ = yysep3524, yyq3524, yy2arr3524 const yyr3524 bool = false yyq3524[0] = x.Kind != "" yyq3524[1] = x.APIVersion != "" var yynn3524 int if yyr3524 || yy2arr3524 { r.EncodeArrayStart(8) } else { yynn3524 = 6 for _, b := range yyq3524 { if b { yynn3524++ } } r.EncodeMapStart(yynn3524) yynn3524 = 0 } if yyr3524 || yy2arr3524 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3524[0] { yym3526 := z.EncBinary() _ = yym3526 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3524[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3527 := z.EncBinary() _ = yym3527 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3524 || yy2arr3524 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3524[1] { yym3529 := z.EncBinary() _ = yym3529 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3524[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3530 := z.EncBinary() _ = yym3530 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3524 || yy2arr3524 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3532 := z.EncBinary() _ = yym3532 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3533 := z.EncBinary() _ = yym3533 if false { } else { r.EncodeBool(bool(x.Stdin)) } } if yyr3524 || yy2arr3524 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3535 := z.EncBinary() _ = yym3535 if false { } else { r.EncodeBool(bool(x.Stdout)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3536 := z.EncBinary() _ = yym3536 if false { } else { r.EncodeBool(bool(x.Stdout)) } } if yyr3524 || yy2arr3524 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3538 := z.EncBinary() _ = yym3538 if false { } else { r.EncodeBool(bool(x.Stderr)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3539 := z.EncBinary() _ = yym3539 if false { } else { r.EncodeBool(bool(x.Stderr)) } } if yyr3524 || yy2arr3524 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3541 := z.EncBinary() _ = yym3541 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TTY")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3542 := z.EncBinary() _ = yym3542 if false { } else { r.EncodeBool(bool(x.TTY)) } } if yyr3524 || yy2arr3524 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3544 := z.EncBinary() _ = yym3544 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3545 := z.EncBinary() _ = yym3545 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } if yyr3524 || yy2arr3524 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Command == nil { r.EncodeNil() } else { yym3547 := z.EncBinary() _ = yym3547 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { yym3548 := z.EncBinary() _ = yym3548 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } if yyr3524 || yy2arr3524 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodExecOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3549 := z.DecBinary() _ = yym3549 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3550 := r.ContainerType() if yyct3550 == codecSelferValueTypeMap1234 { yyl3550 := r.ReadMapStart() if yyl3550 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3550, d) } } else if yyct3550 == codecSelferValueTypeArray1234 { yyl3550 := r.ReadArrayStart() if yyl3550 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3550, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3551Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3551Slc var yyhl3551 bool = l >= 0 for yyj3551 := 0; ; yyj3551++ { if yyhl3551 { if yyj3551 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3551Slc = r.DecodeBytes(yys3551Slc, true, true) yys3551 := string(yys3551Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3551 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "Stdin": if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } case "Stdout": if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } case "Stderr": if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } case "TTY": if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } case "Container": if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } case "Command": if r.TryDecodeAsNil() { x.Command = nil } else { yyv3559 := &x.Command yym3560 := z.DecBinary() _ = yym3560 if false { } else { z.F.DecSliceStringX(yyv3559, false, d) } } default: z.DecStructFieldNotFound(-1, yys3551) } // end switch yys3551 } // end for yyj3551 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3561 int var yyb3561 bool var yyhl3561 bool = l >= 0 yyj3561++ if yyhl3561 { yyb3561 = yyj3561 > l } else { yyb3561 = r.CheckBreak() } if yyb3561 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3561++ if yyhl3561 { yyb3561 = yyj3561 > l } else { yyb3561 = r.CheckBreak() } if yyb3561 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3561++ if yyhl3561 { yyb3561 = yyj3561 > l } else { yyb3561 = r.CheckBreak() } if yyb3561 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj3561++ if yyhl3561 { yyb3561 = yyj3561 > l } else { yyb3561 = r.CheckBreak() } if yyb3561 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } yyj3561++ if yyhl3561 { yyb3561 = yyj3561 > l } else { yyb3561 = r.CheckBreak() } if yyb3561 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } yyj3561++ if yyhl3561 { yyb3561 = yyj3561 > l } else { yyb3561 = r.CheckBreak() } if yyb3561 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } yyj3561++ if yyhl3561 { yyb3561 = yyj3561 > l } else { yyb3561 = r.CheckBreak() } if yyb3561 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } yyj3561++ if yyhl3561 { yyb3561 = yyj3561 > l } else { yyb3561 = r.CheckBreak() } if yyb3561 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv3569 := &x.Command yym3570 := z.DecBinary() _ = yym3570 if false { } else { z.F.DecSliceStringX(yyv3569, false, d) } } for { yyj3561++ if yyhl3561 { yyb3561 = yyj3561 > l } else { yyb3561 = r.CheckBreak() } if yyb3561 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3561-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3571 := z.EncBinary() _ = yym3571 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3572 := !z.EncBinary() yy2arr3572 := z.EncBasicHandle().StructToArray var yyq3572 [3]bool _, _, _ = yysep3572, yyq3572, yy2arr3572 const yyr3572 bool = false yyq3572[0] = x.Kind != "" yyq3572[1] = x.APIVersion != "" var yynn3572 int if yyr3572 || yy2arr3572 { r.EncodeArrayStart(3) } else { yynn3572 = 1 for _, b := range yyq3572 { if b { yynn3572++ } } r.EncodeMapStart(yynn3572) yynn3572 = 0 } if yyr3572 || yy2arr3572 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3572[0] { yym3574 := z.EncBinary() _ = yym3574 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3572[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3575 := z.EncBinary() _ = yym3575 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3572 || yy2arr3572 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3572[1] { yym3577 := z.EncBinary() _ = yym3577 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3572[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3578 := z.EncBinary() _ = yym3578 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3572 || yy2arr3572 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3580 := z.EncBinary() _ = yym3580 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3581 := z.EncBinary() _ = yym3581 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr3572 || yy2arr3572 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3582 := z.DecBinary() _ = yym3582 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3583 := r.ContainerType() if yyct3583 == codecSelferValueTypeMap1234 { yyl3583 := r.ReadMapStart() if yyl3583 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3583, d) } } else if yyct3583 == codecSelferValueTypeArray1234 { yyl3583 := r.ReadArrayStart() if yyl3583 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3583, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3584Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3584Slc var yyhl3584 bool = l >= 0 for yyj3584 := 0; ; yyj3584++ { if yyhl3584 { if yyj3584 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3584Slc = r.DecodeBytes(yys3584Slc, true, true) yys3584 := string(yys3584Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3584 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "Path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3584) } // end switch yys3584 } // end for yyj3584 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3588 int var yyb3588 bool var yyhl3588 bool = l >= 0 yyj3588++ if yyhl3588 { yyb3588 = yyj3588 > l } else { yyb3588 = r.CheckBreak() } if yyb3588 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3588++ if yyhl3588 { yyb3588 = yyj3588 > l } else { yyb3588 = r.CheckBreak() } if yyb3588 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3588++ if yyhl3588 { yyb3588 = yyj3588 > l } else { yyb3588 = r.CheckBreak() } if yyb3588 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj3588++ if yyhl3588 { yyb3588 = yyj3588 > l } else { yyb3588 = r.CheckBreak() } if yyb3588 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3588-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3592 := z.EncBinary() _ = yym3592 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3593 := !z.EncBinary() yy2arr3593 := z.EncBasicHandle().StructToArray var yyq3593 [3]bool _, _, _ = yysep3593, yyq3593, yy2arr3593 const yyr3593 bool = false yyq3593[0] = x.Kind != "" yyq3593[1] = x.APIVersion != "" var yynn3593 int if yyr3593 || yy2arr3593 { r.EncodeArrayStart(3) } else { yynn3593 = 1 for _, b := range yyq3593 { if b { yynn3593++ } } r.EncodeMapStart(yynn3593) yynn3593 = 0 } if yyr3593 || yy2arr3593 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3593[0] { yym3595 := z.EncBinary() _ = yym3595 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3593[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3596 := z.EncBinary() _ = yym3596 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3593 || yy2arr3593 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3593[1] { yym3598 := z.EncBinary() _ = yym3598 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3593[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3599 := z.EncBinary() _ = yym3599 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3593 || yy2arr3593 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3601 := z.EncBinary() _ = yym3601 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3602 := z.EncBinary() _ = yym3602 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr3593 || yy2arr3593 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3603 := z.DecBinary() _ = yym3603 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3604 := r.ContainerType() if yyct3604 == codecSelferValueTypeMap1234 { yyl3604 := r.ReadMapStart() if yyl3604 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3604, d) } } else if yyct3604 == codecSelferValueTypeArray1234 { yyl3604 := r.ReadArrayStart() if yyl3604 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3604, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3605Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3605Slc var yyhl3605 bool = l >= 0 for yyj3605 := 0; ; yyj3605++ { if yyhl3605 { if yyj3605 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3605Slc = r.DecodeBytes(yys3605Slc, true, true) yys3605 := string(yys3605Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3605 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "Path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3605) } // end switch yys3605 } // end for yyj3605 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3609 int var yyb3609 bool var yyhl3609 bool = l >= 0 yyj3609++ if yyhl3609 { yyb3609 = yyj3609 > l } else { yyb3609 = r.CheckBreak() } if yyb3609 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3609++ if yyhl3609 { yyb3609 = yyj3609 > l } else { yyb3609 = r.CheckBreak() } if yyb3609 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3609++ if yyhl3609 { yyb3609 = yyj3609 > l } else { yyb3609 = r.CheckBreak() } if yyb3609 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj3609++ if yyhl3609 { yyb3609 = yyj3609 > l } else { yyb3609 = r.CheckBreak() } if yyb3609 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3609-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3613 := z.EncBinary() _ = yym3613 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3614 := !z.EncBinary() yy2arr3614 := z.EncBasicHandle().StructToArray var yyq3614 [3]bool _, _, _ = yysep3614, yyq3614, yy2arr3614 const yyr3614 bool = false yyq3614[0] = x.Kind != "" yyq3614[1] = x.APIVersion != "" var yynn3614 int if yyr3614 || yy2arr3614 { r.EncodeArrayStart(3) } else { yynn3614 = 1 for _, b := range yyq3614 { if b { yynn3614++ } } r.EncodeMapStart(yynn3614) yynn3614 = 0 } if yyr3614 || yy2arr3614 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3614[0] { yym3616 := z.EncBinary() _ = yym3616 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3614[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3617 := z.EncBinary() _ = yym3617 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3614 || yy2arr3614 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3614[1] { yym3619 := z.EncBinary() _ = yym3619 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3614[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3620 := z.EncBinary() _ = yym3620 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3614 || yy2arr3614 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3622 := z.EncBinary() _ = yym3622 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3623 := z.EncBinary() _ = yym3623 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr3614 || yy2arr3614 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ServiceProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3624 := z.DecBinary() _ = yym3624 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3625 := r.ContainerType() if yyct3625 == codecSelferValueTypeMap1234 { yyl3625 := r.ReadMapStart() if yyl3625 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3625, d) } } else if yyct3625 == codecSelferValueTypeArray1234 { yyl3625 := r.ReadArrayStart() if yyl3625 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3625, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3626Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3626Slc var yyhl3626 bool = l >= 0 for yyj3626 := 0; ; yyj3626++ { if yyhl3626 { if yyj3626 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3626Slc = r.DecodeBytes(yys3626Slc, true, true) yys3626 := string(yys3626Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3626 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "Path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3626) } // end switch yys3626 } // end for yyj3626 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3630 int var yyb3630 bool var yyhl3630 bool = l >= 0 yyj3630++ if yyhl3630 { yyb3630 = yyj3630 > l } else { yyb3630 = r.CheckBreak() } if yyb3630 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3630++ if yyhl3630 { yyb3630 = yyj3630 > l } else { yyb3630 = r.CheckBreak() } if yyb3630 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3630++ if yyhl3630 { yyb3630 = yyj3630 > l } else { yyb3630 = r.CheckBreak() } if yyb3630 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj3630++ if yyhl3630 { yyb3630 = yyj3630 > l } else { yyb3630 = r.CheckBreak() } if yyb3630 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3630-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3634 := z.EncBinary() _ = yym3634 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3635 := !z.EncBinary() yy2arr3635 := z.EncBasicHandle().StructToArray var yyq3635 [5]bool _, _, _ = yysep3635, yyq3635, yy2arr3635 const yyr3635 bool = false yyq3635[4] = x.Controller != nil var yynn3635 int if yyr3635 || yy2arr3635 { r.EncodeArrayStart(5) } else { yynn3635 = 4 for _, b := range yyq3635 { if b { yynn3635++ } } r.EncodeMapStart(yynn3635) yynn3635 = 0 } if yyr3635 || yy2arr3635 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3637 := z.EncBinary() _ = yym3637 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3638 := z.EncBinary() _ = yym3638 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } if yyr3635 || yy2arr3635 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3640 := z.EncBinary() _ = yym3640 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3641 := z.EncBinary() _ = yym3641 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } if yyr3635 || yy2arr3635 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3643 := z.EncBinary() _ = yym3643 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3644 := z.EncBinary() _ = yym3644 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr3635 || yy2arr3635 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3646 := z.EncBinary() _ = yym3646 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3647 := z.EncBinary() _ = yym3647 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } if yyr3635 || yy2arr3635 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3635[4] { if x.Controller == nil { r.EncodeNil() } else { yy3649 := *x.Controller yym3650 := z.EncBinary() _ = yym3650 if false { } else { r.EncodeBool(bool(yy3649)) } } } else { r.EncodeNil() } } else { if yyq3635[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("controller")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Controller == nil { r.EncodeNil() } else { yy3651 := *x.Controller yym3652 := z.EncBinary() _ = yym3652 if false { } else { r.EncodeBool(bool(yy3651)) } } } } if yyr3635 || yy2arr3635 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *OwnerReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3653 := z.DecBinary() _ = yym3653 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3654 := r.ContainerType() if yyct3654 == codecSelferValueTypeMap1234 { yyl3654 := r.ReadMapStart() if yyl3654 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3654, d) } } else if yyct3654 == codecSelferValueTypeArray1234 { yyl3654 := r.ReadArrayStart() if yyl3654 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3654, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3655Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3655Slc var yyhl3655 bool = l >= 0 for yyj3655 := 0; ; yyj3655++ { if yyhl3655 { if yyj3655 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3655Slc = r.DecodeBytes(yys3655Slc, true, true) yys3655 := string(yys3655Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3655 { case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "uid": if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } case "controller": if r.TryDecodeAsNil() { if x.Controller != nil { x.Controller = nil } } else { if x.Controller == nil { x.Controller = new(bool) } yym3661 := z.DecBinary() _ = yym3661 if false { } else { *((*bool)(x.Controller)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3655) } // end switch yys3655 } // end for yyj3655 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3662 int var yyb3662 bool var yyhl3662 bool = l >= 0 yyj3662++ if yyhl3662 { yyb3662 = yyj3662 > l } else { yyb3662 = r.CheckBreak() } if yyb3662 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3662++ if yyhl3662 { yyb3662 = yyj3662 > l } else { yyb3662 = r.CheckBreak() } if yyb3662 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3662++ if yyhl3662 { yyb3662 = yyj3662 > l } else { yyb3662 = r.CheckBreak() } if yyb3662 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj3662++ if yyhl3662 { yyb3662 = yyj3662 > l } else { yyb3662 = r.CheckBreak() } if yyb3662 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } yyj3662++ if yyhl3662 { yyb3662 = yyj3662 > l } else { yyb3662 = r.CheckBreak() } if yyb3662 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Controller != nil { x.Controller = nil } } else { if x.Controller == nil { x.Controller = new(bool) } yym3668 := z.DecBinary() _ = yym3668 if false { } else { *((*bool)(x.Controller)) = r.DecodeBool() } } for { yyj3662++ if yyhl3662 { yyb3662 = yyj3662 > l } else { yyb3662 = r.CheckBreak() } if yyb3662 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3662-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3669 := z.EncBinary() _ = yym3669 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3670 := !z.EncBinary() yy2arr3670 := z.EncBasicHandle().StructToArray var yyq3670 [7]bool _, _, _ = yysep3670, yyq3670, yy2arr3670 const yyr3670 bool = false yyq3670[0] = x.Kind != "" yyq3670[1] = x.Namespace != "" yyq3670[2] = x.Name != "" yyq3670[3] = x.UID != "" yyq3670[4] = x.APIVersion != "" yyq3670[5] = x.ResourceVersion != "" yyq3670[6] = x.FieldPath != "" var yynn3670 int if yyr3670 || yy2arr3670 { r.EncodeArrayStart(7) } else { yynn3670 = 0 for _, b := range yyq3670 { if b { yynn3670++ } } r.EncodeMapStart(yynn3670) yynn3670 = 0 } if yyr3670 || yy2arr3670 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3670[0] { yym3672 := z.EncBinary() _ = yym3672 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3670[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3673 := z.EncBinary() _ = yym3673 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3670 || yy2arr3670 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3670[1] { yym3675 := z.EncBinary() _ = yym3675 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3670[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3676 := z.EncBinary() _ = yym3676 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } } if yyr3670 || yy2arr3670 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3670[2] { yym3678 := z.EncBinary() _ = yym3678 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3670[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3679 := z.EncBinary() _ = yym3679 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } if yyr3670 || yy2arr3670 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3670[3] { yym3681 := z.EncBinary() _ = yym3681 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3670[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3682 := z.EncBinary() _ = yym3682 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } } if yyr3670 || yy2arr3670 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3670[4] { yym3684 := z.EncBinary() _ = yym3684 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3670[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3685 := z.EncBinary() _ = yym3685 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3670 || yy2arr3670 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3670[5] { yym3687 := z.EncBinary() _ = yym3687 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3670[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3688 := z.EncBinary() _ = yym3688 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } if yyr3670 || yy2arr3670 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3670[6] { yym3690 := z.EncBinary() _ = yym3690 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3670[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3691 := z.EncBinary() _ = yym3691 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } } if yyr3670 || yy2arr3670 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3692 := z.DecBinary() _ = yym3692 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3693 := r.ContainerType() if yyct3693 == codecSelferValueTypeMap1234 { yyl3693 := r.ReadMapStart() if yyl3693 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3693, d) } } else if yyct3693 == codecSelferValueTypeArray1234 { yyl3693 := r.ReadArrayStart() if yyl3693 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3693, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3694Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3694Slc var yyhl3694 bool = l >= 0 for yyj3694 := 0; ; yyj3694++ { if yyhl3694 { if yyj3694 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3694Slc = r.DecodeBytes(yys3694Slc, true, true) yys3694 := string(yys3694Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3694 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "namespace": if r.TryDecodeAsNil() { x.Namespace = "" } else { x.Namespace = string(r.DecodeString()) } case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "uid": if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "resourceVersion": if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } case "fieldPath": if r.TryDecodeAsNil() { x.FieldPath = "" } else { x.FieldPath = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3694) } // end switch yys3694 } // end for yyj3694 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3702 int var yyb3702 bool var yyhl3702 bool = l >= 0 yyj3702++ if yyhl3702 { yyb3702 = yyj3702 > l } else { yyb3702 = r.CheckBreak() } if yyb3702 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3702++ if yyhl3702 { yyb3702 = yyj3702 > l } else { yyb3702 = r.CheckBreak() } if yyb3702 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Namespace = "" } else { x.Namespace = string(r.DecodeString()) } yyj3702++ if yyhl3702 { yyb3702 = yyj3702 > l } else { yyb3702 = r.CheckBreak() } if yyb3702 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj3702++ if yyhl3702 { yyb3702 = yyj3702 > l } else { yyb3702 = r.CheckBreak() } if yyb3702 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } yyj3702++ if yyhl3702 { yyb3702 = yyj3702 > l } else { yyb3702 = r.CheckBreak() } if yyb3702 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3702++ if yyhl3702 { yyb3702 = yyj3702 > l } else { yyb3702 = r.CheckBreak() } if yyb3702 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj3702++ if yyhl3702 { yyb3702 = yyj3702 > l } else { yyb3702 = r.CheckBreak() } if yyb3702 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldPath = "" } else { x.FieldPath = string(r.DecodeString()) } for { yyj3702++ if yyhl3702 { yyb3702 = yyj3702 > l } else { yyb3702 = r.CheckBreak() } if yyb3702 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3702-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3710 := z.EncBinary() _ = yym3710 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3711 := !z.EncBinary() yy2arr3711 := z.EncBasicHandle().StructToArray var yyq3711 [1]bool _, _, _ = yysep3711, yyq3711, yy2arr3711 const yyr3711 bool = false var yynn3711 int if yyr3711 || yy2arr3711 { r.EncodeArrayStart(1) } else { yynn3711 = 1 for _, b := range yyq3711 { if b { yynn3711++ } } r.EncodeMapStart(yynn3711) yynn3711 = 0 } if yyr3711 || yy2arr3711 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3713 := z.EncBinary() _ = yym3713 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3714 := z.EncBinary() _ = yym3714 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr3711 || yy2arr3711 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *LocalObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3715 := z.DecBinary() _ = yym3715 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3716 := r.ContainerType() if yyct3716 == codecSelferValueTypeMap1234 { yyl3716 := r.ReadMapStart() if yyl3716 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3716, d) } } else if yyct3716 == codecSelferValueTypeArray1234 { yyl3716 := r.ReadArrayStart() if yyl3716 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3716, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3717Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3717Slc var yyhl3717 bool = l >= 0 for yyj3717 := 0; ; yyj3717++ { if yyhl3717 { if yyj3717 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3717Slc = r.DecodeBytes(yys3717Slc, true, true) yys3717 := string(yys3717Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3717 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3717) } // end switch yys3717 } // end for yyj3717 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3719 int var yyb3719 bool var yyhl3719 bool = l >= 0 yyj3719++ if yyhl3719 { yyb3719 = yyj3719 > l } else { yyb3719 = r.CheckBreak() } if yyb3719 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } for { yyj3719++ if yyhl3719 { yyb3719 = yyj3719 > l } else { yyb3719 = r.CheckBreak() } if yyb3719 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3719-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3721 := z.EncBinary() _ = yym3721 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3722 := !z.EncBinary() yy2arr3722 := z.EncBasicHandle().StructToArray var yyq3722 [3]bool _, _, _ = yysep3722, yyq3722, yy2arr3722 const yyr3722 bool = false yyq3722[0] = x.Kind != "" yyq3722[1] = x.APIVersion != "" yyq3722[2] = true var yynn3722 int if yyr3722 || yy2arr3722 { r.EncodeArrayStart(3) } else { yynn3722 = 0 for _, b := range yyq3722 { if b { yynn3722++ } } r.EncodeMapStart(yynn3722) yynn3722 = 0 } if yyr3722 || yy2arr3722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3722[0] { yym3724 := z.EncBinary() _ = yym3724 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3722[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3725 := z.EncBinary() _ = yym3725 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3722 || yy2arr3722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3722[1] { yym3727 := z.EncBinary() _ = yym3727 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3722[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3728 := z.EncBinary() _ = yym3728 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3722 || yy2arr3722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3722[2] { yy3730 := &x.Reference yy3730.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3722[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3731 := &x.Reference yy3731.CodecEncodeSelf(e) } } if yyr3722 || yy2arr3722 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *SerializedReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3732 := z.DecBinary() _ = yym3732 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3733 := r.ContainerType() if yyct3733 == codecSelferValueTypeMap1234 { yyl3733 := r.ReadMapStart() if yyl3733 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3733, d) } } else if yyct3733 == codecSelferValueTypeArray1234 { yyl3733 := r.ReadArrayStart() if yyl3733 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3733, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3734Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3734Slc var yyhl3734 bool = l >= 0 for yyj3734 := 0; ; yyj3734++ { if yyhl3734 { if yyj3734 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3734Slc = r.DecodeBytes(yys3734Slc, true, true) yys3734 := string(yys3734Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3734 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "reference": if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { yyv3737 := &x.Reference yyv3737.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3734) } // end switch yys3734 } // end for yyj3734 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3738 int var yyb3738 bool var yyhl3738 bool = l >= 0 yyj3738++ if yyhl3738 { yyb3738 = yyj3738 > l } else { yyb3738 = r.CheckBreak() } if yyb3738 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3738++ if yyhl3738 { yyb3738 = yyj3738 > l } else { yyb3738 = r.CheckBreak() } if yyb3738 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3738++ if yyhl3738 { yyb3738 = yyj3738 > l } else { yyb3738 = r.CheckBreak() } if yyb3738 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { yyv3741 := &x.Reference yyv3741.CodecDecodeSelf(d) } for { yyj3738++ if yyhl3738 { yyb3738 = yyj3738 > l } else { yyb3738 = r.CheckBreak() } if yyb3738 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3738-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3742 := z.EncBinary() _ = yym3742 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3743 := !z.EncBinary() yy2arr3743 := z.EncBasicHandle().StructToArray var yyq3743 [2]bool _, _, _ = yysep3743, yyq3743, yy2arr3743 const yyr3743 bool = false yyq3743[0] = x.Component != "" yyq3743[1] = x.Host != "" var yynn3743 int if yyr3743 || yy2arr3743 { r.EncodeArrayStart(2) } else { yynn3743 = 0 for _, b := range yyq3743 { if b { yynn3743++ } } r.EncodeMapStart(yynn3743) yynn3743 = 0 } if yyr3743 || yy2arr3743 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3743[0] { yym3745 := z.EncBinary() _ = yym3745 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3743[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("component")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3746 := z.EncBinary() _ = yym3746 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } } if yyr3743 || yy2arr3743 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3743[1] { yym3748 := z.EncBinary() _ = yym3748 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3743[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3749 := z.EncBinary() _ = yym3749 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } if yyr3743 || yy2arr3743 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *EventSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3750 := z.DecBinary() _ = yym3750 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3751 := r.ContainerType() if yyct3751 == codecSelferValueTypeMap1234 { yyl3751 := r.ReadMapStart() if yyl3751 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3751, d) } } else if yyct3751 == codecSelferValueTypeArray1234 { yyl3751 := r.ReadArrayStart() if yyl3751 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3751, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3752Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3752Slc var yyhl3752 bool = l >= 0 for yyj3752 := 0; ; yyj3752++ { if yyhl3752 { if yyj3752 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3752Slc = r.DecodeBytes(yys3752Slc, true, true) yys3752 := string(yys3752Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3752 { case "component": if r.TryDecodeAsNil() { x.Component = "" } else { x.Component = string(r.DecodeString()) } case "host": if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3752) } // end switch yys3752 } // end for yyj3752 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3755 int var yyb3755 bool var yyhl3755 bool = l >= 0 yyj3755++ if yyhl3755 { yyb3755 = yyj3755 > l } else { yyb3755 = r.CheckBreak() } if yyb3755 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Component = "" } else { x.Component = string(r.DecodeString()) } yyj3755++ if yyhl3755 { yyb3755 = yyj3755 > l } else { yyb3755 = r.CheckBreak() } if yyb3755 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } for { yyj3755++ if yyhl3755 { yyb3755 = yyj3755 > l } else { yyb3755 = r.CheckBreak() } if yyb3755 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3755-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3758 := z.EncBinary() _ = yym3758 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3759 := !z.EncBinary() yy2arr3759 := z.EncBasicHandle().StructToArray var yyq3759 [11]bool _, _, _ = yysep3759, yyq3759, yy2arr3759 const yyr3759 bool = false yyq3759[0] = x.Kind != "" yyq3759[1] = x.APIVersion != "" yyq3759[2] = true yyq3759[3] = true yyq3759[4] = x.Reason != "" yyq3759[5] = x.Message != "" yyq3759[6] = true yyq3759[7] = true yyq3759[8] = true yyq3759[9] = x.Count != 0 yyq3759[10] = x.Type != "" var yynn3759 int if yyr3759 || yy2arr3759 { r.EncodeArrayStart(11) } else { yynn3759 = 0 for _, b := range yyq3759 { if b { yynn3759++ } } r.EncodeMapStart(yynn3759) yynn3759 = 0 } if yyr3759 || yy2arr3759 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3759[0] { yym3761 := z.EncBinary() _ = yym3761 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3759[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3762 := z.EncBinary() _ = yym3762 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3759 || yy2arr3759 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3759[1] { yym3764 := z.EncBinary() _ = yym3764 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3759[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3765 := z.EncBinary() _ = yym3765 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3759 || yy2arr3759 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3759[2] { yy3767 := &x.ObjectMeta yy3767.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3759[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3768 := &x.ObjectMeta yy3768.CodecEncodeSelf(e) } } if yyr3759 || yy2arr3759 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3759[3] { yy3770 := &x.InvolvedObject yy3770.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3759[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3771 := &x.InvolvedObject yy3771.CodecEncodeSelf(e) } } if yyr3759 || yy2arr3759 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3759[4] { yym3773 := z.EncBinary() _ = yym3773 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3759[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3774 := z.EncBinary() _ = yym3774 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr3759 || yy2arr3759 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3759[5] { yym3776 := z.EncBinary() _ = yym3776 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3759[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3777 := z.EncBinary() _ = yym3777 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr3759 || yy2arr3759 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3759[6] { yy3779 := &x.Source yy3779.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3759[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("source")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3780 := &x.Source yy3780.CodecEncodeSelf(e) } } if yyr3759 || yy2arr3759 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3759[7] { yy3782 := &x.FirstTimestamp yym3783 := z.EncBinary() _ = yym3783 if false { } else if z.HasExtensions() && z.EncExt(yy3782) { } else if yym3783 { z.EncBinaryMarshal(yy3782) } else if !yym3783 && z.IsJSONHandle() { z.EncJSONMarshal(yy3782) } else { z.EncFallback(yy3782) } } else { r.EncodeNil() } } else { if yyq3759[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3784 := &x.FirstTimestamp yym3785 := z.EncBinary() _ = yym3785 if false { } else if z.HasExtensions() && z.EncExt(yy3784) { } else if yym3785 { z.EncBinaryMarshal(yy3784) } else if !yym3785 && z.IsJSONHandle() { z.EncJSONMarshal(yy3784) } else { z.EncFallback(yy3784) } } } if yyr3759 || yy2arr3759 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3759[8] { yy3787 := &x.LastTimestamp yym3788 := z.EncBinary() _ = yym3788 if false { } else if z.HasExtensions() && z.EncExt(yy3787) { } else if yym3788 { z.EncBinaryMarshal(yy3787) } else if !yym3788 && z.IsJSONHandle() { z.EncJSONMarshal(yy3787) } else { z.EncFallback(yy3787) } } else { r.EncodeNil() } } else { if yyq3759[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3789 := &x.LastTimestamp yym3790 := z.EncBinary() _ = yym3790 if false { } else if z.HasExtensions() && z.EncExt(yy3789) { } else if yym3790 { z.EncBinaryMarshal(yy3789) } else if !yym3790 && z.IsJSONHandle() { z.EncJSONMarshal(yy3789) } else { z.EncFallback(yy3789) } } } if yyr3759 || yy2arr3759 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3759[9] { yym3792 := z.EncBinary() _ = yym3792 if false { } else { r.EncodeInt(int64(x.Count)) } } else { r.EncodeInt(0) } } else { if yyq3759[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("count")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3793 := z.EncBinary() _ = yym3793 if false { } else { r.EncodeInt(int64(x.Count)) } } } if yyr3759 || yy2arr3759 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3759[10] { yym3795 := z.EncBinary() _ = yym3795 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3759[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3796 := z.EncBinary() _ = yym3796 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } if yyr3759 || yy2arr3759 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Event) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3797 := z.DecBinary() _ = yym3797 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3798 := r.ContainerType() if yyct3798 == codecSelferValueTypeMap1234 { yyl3798 := r.ReadMapStart() if yyl3798 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3798, d) } } else if yyct3798 == codecSelferValueTypeArray1234 { yyl3798 := r.ReadArrayStart() if yyl3798 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3798, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3799Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3799Slc var yyhl3799 bool = l >= 0 for yyj3799 := 0; ; yyj3799++ { if yyhl3799 { if yyj3799 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3799Slc = r.DecodeBytes(yys3799Slc, true, true) yys3799 := string(yys3799Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3799 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3802 := &x.ObjectMeta yyv3802.CodecDecodeSelf(d) } case "involvedObject": if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { yyv3803 := &x.InvolvedObject yyv3803.CodecDecodeSelf(d) } case "reason": if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } case "message": if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } case "source": if r.TryDecodeAsNil() { x.Source = EventSource{} } else { yyv3806 := &x.Source yyv3806.CodecDecodeSelf(d) } case "firstTimestamp": if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { yyv3807 := &x.FirstTimestamp yym3808 := z.DecBinary() _ = yym3808 if false { } else if z.HasExtensions() && z.DecExt(yyv3807) { } else if yym3808 { z.DecBinaryUnmarshal(yyv3807) } else if !yym3808 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3807) } else { z.DecFallback(yyv3807, false) } } case "lastTimestamp": if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { yyv3809 := &x.LastTimestamp yym3810 := z.DecBinary() _ = yym3810 if false { } else if z.HasExtensions() && z.DecExt(yyv3809) { } else if yym3810 { z.DecBinaryUnmarshal(yyv3809) } else if !yym3810 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3809) } else { z.DecFallback(yyv3809, false) } } case "count": if r.TryDecodeAsNil() { x.Count = 0 } else { x.Count = int32(r.DecodeInt(32)) } case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3799) } // end switch yys3799 } // end for yyj3799 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3813 int var yyb3813 bool var yyhl3813 bool = l >= 0 yyj3813++ if yyhl3813 { yyb3813 = yyj3813 > l } else { yyb3813 = r.CheckBreak() } if yyb3813 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3813++ if yyhl3813 { yyb3813 = yyj3813 > l } else { yyb3813 = r.CheckBreak() } if yyb3813 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3813++ if yyhl3813 { yyb3813 = yyj3813 > l } else { yyb3813 = r.CheckBreak() } if yyb3813 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3816 := &x.ObjectMeta yyv3816.CodecDecodeSelf(d) } yyj3813++ if yyhl3813 { yyb3813 = yyj3813 > l } else { yyb3813 = r.CheckBreak() } if yyb3813 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { yyv3817 := &x.InvolvedObject yyv3817.CodecDecodeSelf(d) } yyj3813++ if yyhl3813 { yyb3813 = yyj3813 > l } else { yyb3813 = r.CheckBreak() } if yyb3813 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj3813++ if yyhl3813 { yyb3813 = yyj3813 > l } else { yyb3813 = r.CheckBreak() } if yyb3813 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj3813++ if yyhl3813 { yyb3813 = yyj3813 > l } else { yyb3813 = r.CheckBreak() } if yyb3813 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Source = EventSource{} } else { yyv3820 := &x.Source yyv3820.CodecDecodeSelf(d) } yyj3813++ if yyhl3813 { yyb3813 = yyj3813 > l } else { yyb3813 = r.CheckBreak() } if yyb3813 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { yyv3821 := &x.FirstTimestamp yym3822 := z.DecBinary() _ = yym3822 if false { } else if z.HasExtensions() && z.DecExt(yyv3821) { } else if yym3822 { z.DecBinaryUnmarshal(yyv3821) } else if !yym3822 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3821) } else { z.DecFallback(yyv3821, false) } } yyj3813++ if yyhl3813 { yyb3813 = yyj3813 > l } else { yyb3813 = r.CheckBreak() } if yyb3813 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { yyv3823 := &x.LastTimestamp yym3824 := z.DecBinary() _ = yym3824 if false { } else if z.HasExtensions() && z.DecExt(yyv3823) { } else if yym3824 { z.DecBinaryUnmarshal(yyv3823) } else if !yym3824 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3823) } else { z.DecFallback(yyv3823, false) } } yyj3813++ if yyhl3813 { yyb3813 = yyj3813 > l } else { yyb3813 = r.CheckBreak() } if yyb3813 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Count = 0 } else { x.Count = int32(r.DecodeInt(32)) } yyj3813++ if yyhl3813 { yyb3813 = yyj3813 > l } else { yyb3813 = r.CheckBreak() } if yyb3813 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } for { yyj3813++ if yyhl3813 { yyb3813 = yyj3813 > l } else { yyb3813 = r.CheckBreak() } if yyb3813 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3813-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3827 := z.EncBinary() _ = yym3827 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3828 := !z.EncBinary() yy2arr3828 := z.EncBasicHandle().StructToArray var yyq3828 [4]bool _, _, _ = yysep3828, yyq3828, yy2arr3828 const yyr3828 bool = false yyq3828[0] = x.Kind != "" yyq3828[1] = x.APIVersion != "" yyq3828[2] = true var yynn3828 int if yyr3828 || yy2arr3828 { r.EncodeArrayStart(4) } else { yynn3828 = 1 for _, b := range yyq3828 { if b { yynn3828++ } } r.EncodeMapStart(yynn3828) yynn3828 = 0 } if yyr3828 || yy2arr3828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3828[0] { yym3830 := z.EncBinary() _ = yym3830 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3828[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3831 := z.EncBinary() _ = yym3831 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3828 || yy2arr3828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3828[1] { yym3833 := z.EncBinary() _ = yym3833 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3828[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3834 := z.EncBinary() _ = yym3834 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3828 || yy2arr3828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3828[2] { yy3836 := &x.ListMeta yym3837 := z.EncBinary() _ = yym3837 if false { } else if z.HasExtensions() && z.EncExt(yy3836) { } else { z.EncFallback(yy3836) } } else { r.EncodeNil() } } else { if yyq3828[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3838 := &x.ListMeta yym3839 := z.EncBinary() _ = yym3839 if false { } else if z.HasExtensions() && z.EncExt(yy3838) { } else { z.EncFallback(yy3838) } } } if yyr3828 || yy2arr3828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3841 := z.EncBinary() _ = yym3841 if false { } else { h.encSliceEvent(([]Event)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym3842 := z.EncBinary() _ = yym3842 if false { } else { h.encSliceEvent(([]Event)(x.Items), e) } } } if yyr3828 || yy2arr3828 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *EventList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3843 := z.DecBinary() _ = yym3843 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3844 := r.ContainerType() if yyct3844 == codecSelferValueTypeMap1234 { yyl3844 := r.ReadMapStart() if yyl3844 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3844, d) } } else if yyct3844 == codecSelferValueTypeArray1234 { yyl3844 := r.ReadArrayStart() if yyl3844 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3844, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3845Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3845Slc var yyhl3845 bool = l >= 0 for yyj3845 := 0; ; yyj3845++ { if yyhl3845 { if yyj3845 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3845Slc = r.DecodeBytes(yys3845Slc, true, true) yys3845 := string(yys3845Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3845 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3848 := &x.ListMeta yym3849 := z.DecBinary() _ = yym3849 if false { } else if z.HasExtensions() && z.DecExt(yyv3848) { } else { z.DecFallback(yyv3848, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3850 := &x.Items yym3851 := z.DecBinary() _ = yym3851 if false { } else { h.decSliceEvent((*[]Event)(yyv3850), d) } } default: z.DecStructFieldNotFound(-1, yys3845) } // end switch yys3845 } // end for yyj3845 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3852 int var yyb3852 bool var yyhl3852 bool = l >= 0 yyj3852++ if yyhl3852 { yyb3852 = yyj3852 > l } else { yyb3852 = r.CheckBreak() } if yyb3852 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3852++ if yyhl3852 { yyb3852 = yyj3852 > l } else { yyb3852 = r.CheckBreak() } if yyb3852 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3852++ if yyhl3852 { yyb3852 = yyj3852 > l } else { yyb3852 = r.CheckBreak() } if yyb3852 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3855 := &x.ListMeta yym3856 := z.DecBinary() _ = yym3856 if false { } else if z.HasExtensions() && z.DecExt(yyv3855) { } else { z.DecFallback(yyv3855, false) } } yyj3852++ if yyhl3852 { yyb3852 = yyj3852 > l } else { yyb3852 = r.CheckBreak() } if yyb3852 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3857 := &x.Items yym3858 := z.DecBinary() _ = yym3858 if false { } else { h.decSliceEvent((*[]Event)(yyv3857), d) } } for { yyj3852++ if yyhl3852 { yyb3852 = yyj3852 > l } else { yyb3852 = r.CheckBreak() } if yyb3852 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3852-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3859 := z.EncBinary() _ = yym3859 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3860 := !z.EncBinary() yy2arr3860 := z.EncBasicHandle().StructToArray var yyq3860 [4]bool _, _, _ = yysep3860, yyq3860, yy2arr3860 const yyr3860 bool = false yyq3860[0] = x.Kind != "" yyq3860[1] = x.APIVersion != "" yyq3860[2] = true var yynn3860 int if yyr3860 || yy2arr3860 { r.EncodeArrayStart(4) } else { yynn3860 = 1 for _, b := range yyq3860 { if b { yynn3860++ } } r.EncodeMapStart(yynn3860) yynn3860 = 0 } if yyr3860 || yy2arr3860 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3860[0] { yym3862 := z.EncBinary() _ = yym3862 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3860[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3863 := z.EncBinary() _ = yym3863 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3860 || yy2arr3860 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3860[1] { yym3865 := z.EncBinary() _ = yym3865 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3860[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3866 := z.EncBinary() _ = yym3866 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3860 || yy2arr3860 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3860[2] { yy3868 := &x.ListMeta yym3869 := z.EncBinary() _ = yym3869 if false { } else if z.HasExtensions() && z.EncExt(yy3868) { } else { z.EncFallback(yy3868) } } else { r.EncodeNil() } } else { if yyq3860[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3870 := &x.ListMeta yym3871 := z.EncBinary() _ = yym3871 if false { } else if z.HasExtensions() && z.EncExt(yy3870) { } else { z.EncFallback(yy3870) } } } if yyr3860 || yy2arr3860 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3873 := z.EncBinary() _ = yym3873 if false { } else { h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym3874 := z.EncBinary() _ = yym3874 if false { } else { h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e) } } } if yyr3860 || yy2arr3860 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *List) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3875 := z.DecBinary() _ = yym3875 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3876 := r.ContainerType() if yyct3876 == codecSelferValueTypeMap1234 { yyl3876 := r.ReadMapStart() if yyl3876 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3876, d) } } else if yyct3876 == codecSelferValueTypeArray1234 { yyl3876 := r.ReadArrayStart() if yyl3876 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3876, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3877Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3877Slc var yyhl3877 bool = l >= 0 for yyj3877 := 0; ; yyj3877++ { if yyhl3877 { if yyj3877 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3877Slc = r.DecodeBytes(yys3877Slc, true, true) yys3877 := string(yys3877Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3877 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3880 := &x.ListMeta yym3881 := z.DecBinary() _ = yym3881 if false { } else if z.HasExtensions() && z.DecExt(yyv3880) { } else { z.DecFallback(yyv3880, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3882 := &x.Items yym3883 := z.DecBinary() _ = yym3883 if false { } else { h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv3882), d) } } default: z.DecStructFieldNotFound(-1, yys3877) } // end switch yys3877 } // end for yyj3877 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3884 int var yyb3884 bool var yyhl3884 bool = l >= 0 yyj3884++ if yyhl3884 { yyb3884 = yyj3884 > l } else { yyb3884 = r.CheckBreak() } if yyb3884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3884++ if yyhl3884 { yyb3884 = yyj3884 > l } else { yyb3884 = r.CheckBreak() } if yyb3884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3884++ if yyhl3884 { yyb3884 = yyj3884 > l } else { yyb3884 = r.CheckBreak() } if yyb3884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3887 := &x.ListMeta yym3888 := z.DecBinary() _ = yym3888 if false { } else if z.HasExtensions() && z.DecExt(yyv3887) { } else { z.DecFallback(yyv3887, false) } } yyj3884++ if yyhl3884 { yyb3884 = yyj3884 > l } else { yyb3884 = r.CheckBreak() } if yyb3884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3889 := &x.Items yym3890 := z.DecBinary() _ = yym3890 if false { } else { h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv3889), d) } } for { yyj3884++ if yyhl3884 { yyb3884 = yyj3884 > l } else { yyb3884 = r.CheckBreak() } if yyb3884 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3884-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3891 := z.EncBinary() _ = yym3891 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *LimitType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3892 := z.DecBinary() _ = yym3892 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3893 := z.EncBinary() _ = yym3893 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3894 := !z.EncBinary() yy2arr3894 := z.EncBasicHandle().StructToArray var yyq3894 [6]bool _, _, _ = yysep3894, yyq3894, yy2arr3894 const yyr3894 bool = false yyq3894[0] = x.Type != "" yyq3894[1] = len(x.Max) != 0 yyq3894[2] = len(x.Min) != 0 yyq3894[3] = len(x.Default) != 0 yyq3894[4] = len(x.DefaultRequest) != 0 yyq3894[5] = len(x.MaxLimitRequestRatio) != 0 var yynn3894 int if yyr3894 || yy2arr3894 { r.EncodeArrayStart(6) } else { yynn3894 = 0 for _, b := range yyq3894 { if b { yynn3894++ } } r.EncodeMapStart(yynn3894) yynn3894 = 0 } if yyr3894 || yy2arr3894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3894[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3894[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr3894 || yy2arr3894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3894[1] { if x.Max == nil { r.EncodeNil() } else { x.Max.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3894[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("max")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Max == nil { r.EncodeNil() } else { x.Max.CodecEncodeSelf(e) } } } if yyr3894 || yy2arr3894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3894[2] { if x.Min == nil { r.EncodeNil() } else { x.Min.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3894[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("min")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Min == nil { r.EncodeNil() } else { x.Min.CodecEncodeSelf(e) } } } if yyr3894 || yy2arr3894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3894[3] { if x.Default == nil { r.EncodeNil() } else { x.Default.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3894[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("default")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Default == nil { r.EncodeNil() } else { x.Default.CodecEncodeSelf(e) } } } if yyr3894 || yy2arr3894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3894[4] { if x.DefaultRequest == nil { r.EncodeNil() } else { x.DefaultRequest.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3894[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("defaultRequest")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DefaultRequest == nil { r.EncodeNil() } else { x.DefaultRequest.CodecEncodeSelf(e) } } } if yyr3894 || yy2arr3894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3894[5] { if x.MaxLimitRequestRatio == nil { r.EncodeNil() } else { x.MaxLimitRequestRatio.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3894[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxLimitRequestRatio")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.MaxLimitRequestRatio == nil { r.EncodeNil() } else { x.MaxLimitRequestRatio.CodecEncodeSelf(e) } } } if yyr3894 || yy2arr3894 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *LimitRangeItem) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3901 := z.DecBinary() _ = yym3901 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3902 := r.ContainerType() if yyct3902 == codecSelferValueTypeMap1234 { yyl3902 := r.ReadMapStart() if yyl3902 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3902, d) } } else if yyct3902 == codecSelferValueTypeArray1234 { yyl3902 := r.ReadArrayStart() if yyl3902 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3902, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3903Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3903Slc var yyhl3903 bool = l >= 0 for yyj3903 := 0; ; yyj3903++ { if yyhl3903 { if yyj3903 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3903Slc = r.DecodeBytes(yys3903Slc, true, true) yys3903 := string(yys3903Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3903 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = LimitType(r.DecodeString()) } case "max": if r.TryDecodeAsNil() { x.Max = nil } else { yyv3905 := &x.Max yyv3905.CodecDecodeSelf(d) } case "min": if r.TryDecodeAsNil() { x.Min = nil } else { yyv3906 := &x.Min yyv3906.CodecDecodeSelf(d) } case "default": if r.TryDecodeAsNil() { x.Default = nil } else { yyv3907 := &x.Default yyv3907.CodecDecodeSelf(d) } case "defaultRequest": if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { yyv3908 := &x.DefaultRequest yyv3908.CodecDecodeSelf(d) } case "maxLimitRequestRatio": if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { yyv3909 := &x.MaxLimitRequestRatio yyv3909.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3903) } // end switch yys3903 } // end for yyj3903 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3910 int var yyb3910 bool var yyhl3910 bool = l >= 0 yyj3910++ if yyhl3910 { yyb3910 = yyj3910 > l } else { yyb3910 = r.CheckBreak() } if yyb3910 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = LimitType(r.DecodeString()) } yyj3910++ if yyhl3910 { yyb3910 = yyj3910 > l } else { yyb3910 = r.CheckBreak() } if yyb3910 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Max = nil } else { yyv3912 := &x.Max yyv3912.CodecDecodeSelf(d) } yyj3910++ if yyhl3910 { yyb3910 = yyj3910 > l } else { yyb3910 = r.CheckBreak() } if yyb3910 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Min = nil } else { yyv3913 := &x.Min yyv3913.CodecDecodeSelf(d) } yyj3910++ if yyhl3910 { yyb3910 = yyj3910 > l } else { yyb3910 = r.CheckBreak() } if yyb3910 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Default = nil } else { yyv3914 := &x.Default yyv3914.CodecDecodeSelf(d) } yyj3910++ if yyhl3910 { yyb3910 = yyj3910 > l } else { yyb3910 = r.CheckBreak() } if yyb3910 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { yyv3915 := &x.DefaultRequest yyv3915.CodecDecodeSelf(d) } yyj3910++ if yyhl3910 { yyb3910 = yyj3910 > l } else { yyb3910 = r.CheckBreak() } if yyb3910 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { yyv3916 := &x.MaxLimitRequestRatio yyv3916.CodecDecodeSelf(d) } for { yyj3910++ if yyhl3910 { yyb3910 = yyj3910 > l } else { yyb3910 = r.CheckBreak() } if yyb3910 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3910-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3917 := z.EncBinary() _ = yym3917 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3918 := !z.EncBinary() yy2arr3918 := z.EncBasicHandle().StructToArray var yyq3918 [1]bool _, _, _ = yysep3918, yyq3918, yy2arr3918 const yyr3918 bool = false var yynn3918 int if yyr3918 || yy2arr3918 { r.EncodeArrayStart(1) } else { yynn3918 = 1 for _, b := range yyq3918 { if b { yynn3918++ } } r.EncodeMapStart(yynn3918) yynn3918 = 0 } if yyr3918 || yy2arr3918 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Limits == nil { r.EncodeNil() } else { yym3920 := z.EncBinary() _ = yym3920 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("limits")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Limits == nil { r.EncodeNil() } else { yym3921 := z.EncBinary() _ = yym3921 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) } } } if yyr3918 || yy2arr3918 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *LimitRangeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3922 := z.DecBinary() _ = yym3922 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3923 := r.ContainerType() if yyct3923 == codecSelferValueTypeMap1234 { yyl3923 := r.ReadMapStart() if yyl3923 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3923, d) } } else if yyct3923 == codecSelferValueTypeArray1234 { yyl3923 := r.ReadArrayStart() if yyl3923 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3923, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3924Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3924Slc var yyhl3924 bool = l >= 0 for yyj3924 := 0; ; yyj3924++ { if yyhl3924 { if yyj3924 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3924Slc = r.DecodeBytes(yys3924Slc, true, true) yys3924 := string(yys3924Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3924 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { yyv3925 := &x.Limits yym3926 := z.DecBinary() _ = yym3926 if false { } else { h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3925), d) } } default: z.DecStructFieldNotFound(-1, yys3924) } // end switch yys3924 } // end for yyj3924 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3927 int var yyb3927 bool var yyhl3927 bool = l >= 0 yyj3927++ if yyhl3927 { yyb3927 = yyj3927 > l } else { yyb3927 = r.CheckBreak() } if yyb3927 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Limits = nil } else { yyv3928 := &x.Limits yym3929 := z.DecBinary() _ = yym3929 if false { } else { h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3928), d) } } for { yyj3927++ if yyhl3927 { yyb3927 = yyj3927 > l } else { yyb3927 = r.CheckBreak() } if yyb3927 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3927-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3930 := z.EncBinary() _ = yym3930 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3931 := !z.EncBinary() yy2arr3931 := z.EncBasicHandle().StructToArray var yyq3931 [4]bool _, _, _ = yysep3931, yyq3931, yy2arr3931 const yyr3931 bool = false yyq3931[0] = x.Kind != "" yyq3931[1] = x.APIVersion != "" yyq3931[2] = true yyq3931[3] = true var yynn3931 int if yyr3931 || yy2arr3931 { r.EncodeArrayStart(4) } else { yynn3931 = 0 for _, b := range yyq3931 { if b { yynn3931++ } } r.EncodeMapStart(yynn3931) yynn3931 = 0 } if yyr3931 || yy2arr3931 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3931[0] { yym3933 := z.EncBinary() _ = yym3933 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3931[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3934 := z.EncBinary() _ = yym3934 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3931 || yy2arr3931 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3931[1] { yym3936 := z.EncBinary() _ = yym3936 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3931[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3937 := z.EncBinary() _ = yym3937 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3931 || yy2arr3931 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3931[2] { yy3939 := &x.ObjectMeta yy3939.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3931[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3940 := &x.ObjectMeta yy3940.CodecEncodeSelf(e) } } if yyr3931 || yy2arr3931 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3931[3] { yy3942 := &x.Spec yy3942.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3931[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3943 := &x.Spec yy3943.CodecEncodeSelf(e) } } if yyr3931 || yy2arr3931 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *LimitRange) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3944 := z.DecBinary() _ = yym3944 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3945 := r.ContainerType() if yyct3945 == codecSelferValueTypeMap1234 { yyl3945 := r.ReadMapStart() if yyl3945 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3945, d) } } else if yyct3945 == codecSelferValueTypeArray1234 { yyl3945 := r.ReadArrayStart() if yyl3945 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3945, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3946Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3946Slc var yyhl3946 bool = l >= 0 for yyj3946 := 0; ; yyj3946++ { if yyhl3946 { if yyj3946 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3946Slc = r.DecodeBytes(yys3946Slc, true, true) yys3946 := string(yys3946Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3946 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3949 := &x.ObjectMeta yyv3949.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { yyv3950 := &x.Spec yyv3950.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3946) } // end switch yys3946 } // end for yyj3946 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3951 int var yyb3951 bool var yyhl3951 bool = l >= 0 yyj3951++ if yyhl3951 { yyb3951 = yyj3951 > l } else { yyb3951 = r.CheckBreak() } if yyb3951 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3951++ if yyhl3951 { yyb3951 = yyj3951 > l } else { yyb3951 = r.CheckBreak() } if yyb3951 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3951++ if yyhl3951 { yyb3951 = yyj3951 > l } else { yyb3951 = r.CheckBreak() } if yyb3951 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3954 := &x.ObjectMeta yyv3954.CodecDecodeSelf(d) } yyj3951++ if yyhl3951 { yyb3951 = yyj3951 > l } else { yyb3951 = r.CheckBreak() } if yyb3951 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { yyv3955 := &x.Spec yyv3955.CodecDecodeSelf(d) } for { yyj3951++ if yyhl3951 { yyb3951 = yyj3951 > l } else { yyb3951 = r.CheckBreak() } if yyb3951 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3951-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3956 := z.EncBinary() _ = yym3956 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3957 := !z.EncBinary() yy2arr3957 := z.EncBasicHandle().StructToArray var yyq3957 [4]bool _, _, _ = yysep3957, yyq3957, yy2arr3957 const yyr3957 bool = false yyq3957[0] = x.Kind != "" yyq3957[1] = x.APIVersion != "" yyq3957[2] = true var yynn3957 int if yyr3957 || yy2arr3957 { r.EncodeArrayStart(4) } else { yynn3957 = 1 for _, b := range yyq3957 { if b { yynn3957++ } } r.EncodeMapStart(yynn3957) yynn3957 = 0 } if yyr3957 || yy2arr3957 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3957[0] { yym3959 := z.EncBinary() _ = yym3959 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3957[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3960 := z.EncBinary() _ = yym3960 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3957 || yy2arr3957 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3957[1] { yym3962 := z.EncBinary() _ = yym3962 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3957[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3963 := z.EncBinary() _ = yym3963 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3957 || yy2arr3957 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3957[2] { yy3965 := &x.ListMeta yym3966 := z.EncBinary() _ = yym3966 if false { } else if z.HasExtensions() && z.EncExt(yy3965) { } else { z.EncFallback(yy3965) } } else { r.EncodeNil() } } else { if yyq3957[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3967 := &x.ListMeta yym3968 := z.EncBinary() _ = yym3968 if false { } else if z.HasExtensions() && z.EncExt(yy3967) { } else { z.EncFallback(yy3967) } } } if yyr3957 || yy2arr3957 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3970 := z.EncBinary() _ = yym3970 if false { } else { h.encSliceLimitRange(([]LimitRange)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym3971 := z.EncBinary() _ = yym3971 if false { } else { h.encSliceLimitRange(([]LimitRange)(x.Items), e) } } } if yyr3957 || yy2arr3957 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *LimitRangeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3972 := z.DecBinary() _ = yym3972 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3973 := r.ContainerType() if yyct3973 == codecSelferValueTypeMap1234 { yyl3973 := r.ReadMapStart() if yyl3973 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3973, d) } } else if yyct3973 == codecSelferValueTypeArray1234 { yyl3973 := r.ReadArrayStart() if yyl3973 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3973, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3974Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3974Slc var yyhl3974 bool = l >= 0 for yyj3974 := 0; ; yyj3974++ { if yyhl3974 { if yyj3974 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3974Slc = r.DecodeBytes(yys3974Slc, true, true) yys3974 := string(yys3974Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3974 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3977 := &x.ListMeta yym3978 := z.DecBinary() _ = yym3978 if false { } else if z.HasExtensions() && z.DecExt(yyv3977) { } else { z.DecFallback(yyv3977, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3979 := &x.Items yym3980 := z.DecBinary() _ = yym3980 if false { } else { h.decSliceLimitRange((*[]LimitRange)(yyv3979), d) } } default: z.DecStructFieldNotFound(-1, yys3974) } // end switch yys3974 } // end for yyj3974 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3981 int var yyb3981 bool var yyhl3981 bool = l >= 0 yyj3981++ if yyhl3981 { yyb3981 = yyj3981 > l } else { yyb3981 = r.CheckBreak() } if yyb3981 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3981++ if yyhl3981 { yyb3981 = yyj3981 > l } else { yyb3981 = r.CheckBreak() } if yyb3981 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3981++ if yyhl3981 { yyb3981 = yyj3981 > l } else { yyb3981 = r.CheckBreak() } if yyb3981 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3984 := &x.ListMeta yym3985 := z.DecBinary() _ = yym3985 if false { } else if z.HasExtensions() && z.DecExt(yyv3984) { } else { z.DecFallback(yyv3984, false) } } yyj3981++ if yyhl3981 { yyb3981 = yyj3981 > l } else { yyb3981 = r.CheckBreak() } if yyb3981 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3986 := &x.Items yym3987 := z.DecBinary() _ = yym3987 if false { } else { h.decSliceLimitRange((*[]LimitRange)(yyv3986), d) } } for { yyj3981++ if yyhl3981 { yyb3981 = yyj3981 > l } else { yyb3981 = r.CheckBreak() } if yyb3981 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3981-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3988 := z.EncBinary() _ = yym3988 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *ResourceQuotaScope) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3989 := z.DecBinary() _ = yym3989 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3990 := z.EncBinary() _ = yym3990 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3991 := !z.EncBinary() yy2arr3991 := z.EncBasicHandle().StructToArray var yyq3991 [2]bool _, _, _ = yysep3991, yyq3991, yy2arr3991 const yyr3991 bool = false yyq3991[0] = len(x.Hard) != 0 yyq3991[1] = len(x.Scopes) != 0 var yynn3991 int if yyr3991 || yy2arr3991 { r.EncodeArrayStart(2) } else { yynn3991 = 0 for _, b := range yyq3991 { if b { yynn3991++ } } r.EncodeMapStart(yynn3991) yynn3991 = 0 } if yyr3991 || yy2arr3991 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3991[0] { if x.Hard == nil { r.EncodeNil() } else { x.Hard.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3991[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hard")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Hard == nil { r.EncodeNil() } else { x.Hard.CodecEncodeSelf(e) } } } if yyr3991 || yy2arr3991 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3991[1] { if x.Scopes == nil { r.EncodeNil() } else { yym3994 := z.EncBinary() _ = yym3994 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) } } } else { r.EncodeNil() } } else { if yyq3991[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scopes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Scopes == nil { r.EncodeNil() } else { yym3995 := z.EncBinary() _ = yym3995 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) } } } } if yyr3991 || yy2arr3991 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ResourceQuotaSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3996 := z.DecBinary() _ = yym3996 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3997 := r.ContainerType() if yyct3997 == codecSelferValueTypeMap1234 { yyl3997 := r.ReadMapStart() if yyl3997 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3997, d) } } else if yyct3997 == codecSelferValueTypeArray1234 { yyl3997 := r.ReadArrayStart() if yyl3997 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3997, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3998Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3998Slc var yyhl3998 bool = l >= 0 for yyj3998 := 0; ; yyj3998++ { if yyhl3998 { if yyj3998 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3998Slc = r.DecodeBytes(yys3998Slc, true, true) yys3998 := string(yys3998Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3998 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3999 := &x.Hard yyv3999.CodecDecodeSelf(d) } case "scopes": if r.TryDecodeAsNil() { x.Scopes = nil } else { yyv4000 := &x.Scopes yym4001 := z.DecBinary() _ = yym4001 if false { } else { h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4000), d) } } default: z.DecStructFieldNotFound(-1, yys3998) } // end switch yys3998 } // end for yyj3998 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4002 int var yyb4002 bool var yyhl4002 bool = l >= 0 yyj4002++ if yyhl4002 { yyb4002 = yyj4002 > l } else { yyb4002 = r.CheckBreak() } if yyb4002 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hard = nil } else { yyv4003 := &x.Hard yyv4003.CodecDecodeSelf(d) } yyj4002++ if yyhl4002 { yyb4002 = yyj4002 > l } else { yyb4002 = r.CheckBreak() } if yyb4002 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Scopes = nil } else { yyv4004 := &x.Scopes yym4005 := z.DecBinary() _ = yym4005 if false { } else { h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4004), d) } } for { yyj4002++ if yyhl4002 { yyb4002 = yyj4002 > l } else { yyb4002 = r.CheckBreak() } if yyb4002 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4002-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym4006 := z.EncBinary() _ = yym4006 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4007 := !z.EncBinary() yy2arr4007 := z.EncBasicHandle().StructToArray var yyq4007 [2]bool _, _, _ = yysep4007, yyq4007, yy2arr4007 const yyr4007 bool = false yyq4007[0] = len(x.Hard) != 0 yyq4007[1] = len(x.Used) != 0 var yynn4007 int if yyr4007 || yy2arr4007 { r.EncodeArrayStart(2) } else { yynn4007 = 0 for _, b := range yyq4007 { if b { yynn4007++ } } r.EncodeMapStart(yynn4007) yynn4007 = 0 } if yyr4007 || yy2arr4007 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4007[0] { if x.Hard == nil { r.EncodeNil() } else { x.Hard.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq4007[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hard")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Hard == nil { r.EncodeNil() } else { x.Hard.CodecEncodeSelf(e) } } } if yyr4007 || yy2arr4007 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4007[1] { if x.Used == nil { r.EncodeNil() } else { x.Used.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq4007[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("used")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Used == nil { r.EncodeNil() } else { x.Used.CodecEncodeSelf(e) } } } if yyr4007 || yy2arr4007 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ResourceQuotaStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4010 := z.DecBinary() _ = yym4010 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4011 := r.ContainerType() if yyct4011 == codecSelferValueTypeMap1234 { yyl4011 := r.ReadMapStart() if yyl4011 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4011, d) } } else if yyct4011 == codecSelferValueTypeArray1234 { yyl4011 := r.ReadArrayStart() if yyl4011 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4011, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys4012Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4012Slc var yyhl4012 bool = l >= 0 for yyj4012 := 0; ; yyj4012++ { if yyhl4012 { if yyj4012 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4012Slc = r.DecodeBytes(yys4012Slc, true, true) yys4012 := string(yys4012Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4012 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { yyv4013 := &x.Hard yyv4013.CodecDecodeSelf(d) } case "used": if r.TryDecodeAsNil() { x.Used = nil } else { yyv4014 := &x.Used yyv4014.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys4012) } // end switch yys4012 } // end for yyj4012 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4015 int var yyb4015 bool var yyhl4015 bool = l >= 0 yyj4015++ if yyhl4015 { yyb4015 = yyj4015 > l } else { yyb4015 = r.CheckBreak() } if yyb4015 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hard = nil } else { yyv4016 := &x.Hard yyv4016.CodecDecodeSelf(d) } yyj4015++ if yyhl4015 { yyb4015 = yyj4015 > l } else { yyb4015 = r.CheckBreak() } if yyb4015 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Used = nil } else { yyv4017 := &x.Used yyv4017.CodecDecodeSelf(d) } for { yyj4015++ if yyhl4015 { yyb4015 = yyj4015 > l } else { yyb4015 = r.CheckBreak() } if yyb4015 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4015-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym4018 := z.EncBinary() _ = yym4018 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4019 := !z.EncBinary() yy2arr4019 := z.EncBasicHandle().StructToArray var yyq4019 [5]bool _, _, _ = yysep4019, yyq4019, yy2arr4019 const yyr4019 bool = false yyq4019[0] = x.Kind != "" yyq4019[1] = x.APIVersion != "" yyq4019[2] = true yyq4019[3] = true yyq4019[4] = true var yynn4019 int if yyr4019 || yy2arr4019 { r.EncodeArrayStart(5) } else { yynn4019 = 0 for _, b := range yyq4019 { if b { yynn4019++ } } r.EncodeMapStart(yynn4019) yynn4019 = 0 } if yyr4019 || yy2arr4019 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4019[0] { yym4021 := z.EncBinary() _ = yym4021 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4019[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4022 := z.EncBinary() _ = yym4022 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4019 || yy2arr4019 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4019[1] { yym4024 := z.EncBinary() _ = yym4024 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4019[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4025 := z.EncBinary() _ = yym4025 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4019 || yy2arr4019 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4019[2] { yy4027 := &x.ObjectMeta yy4027.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4019[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4028 := &x.ObjectMeta yy4028.CodecEncodeSelf(e) } } if yyr4019 || yy2arr4019 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4019[3] { yy4030 := &x.Spec yy4030.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4019[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4031 := &x.Spec yy4031.CodecEncodeSelf(e) } } if yyr4019 || yy2arr4019 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4019[4] { yy4033 := &x.Status yy4033.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4019[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4034 := &x.Status yy4034.CodecEncodeSelf(e) } } if yyr4019 || yy2arr4019 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ResourceQuota) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4035 := z.DecBinary() _ = yym4035 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4036 := r.ContainerType() if yyct4036 == codecSelferValueTypeMap1234 { yyl4036 := r.ReadMapStart() if yyl4036 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4036, d) } } else if yyct4036 == codecSelferValueTypeArray1234 { yyl4036 := r.ReadArrayStart() if yyl4036 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4036, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys4037Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4037Slc var yyhl4037 bool = l >= 0 for yyj4037 := 0; ; yyj4037++ { if yyhl4037 { if yyj4037 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4037Slc = r.DecodeBytes(yys4037Slc, true, true) yys4037 := string(yys4037Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4037 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4040 := &x.ObjectMeta yyv4040.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { yyv4041 := &x.Spec yyv4041.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { yyv4042 := &x.Status yyv4042.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys4037) } // end switch yys4037 } // end for yyj4037 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4043 int var yyb4043 bool var yyhl4043 bool = l >= 0 yyj4043++ if yyhl4043 { yyb4043 = yyj4043 > l } else { yyb4043 = r.CheckBreak() } if yyb4043 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4043++ if yyhl4043 { yyb4043 = yyj4043 > l } else { yyb4043 = r.CheckBreak() } if yyb4043 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4043++ if yyhl4043 { yyb4043 = yyj4043 > l } else { yyb4043 = r.CheckBreak() } if yyb4043 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4046 := &x.ObjectMeta yyv4046.CodecDecodeSelf(d) } yyj4043++ if yyhl4043 { yyb4043 = yyj4043 > l } else { yyb4043 = r.CheckBreak() } if yyb4043 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { yyv4047 := &x.Spec yyv4047.CodecDecodeSelf(d) } yyj4043++ if yyhl4043 { yyb4043 = yyj4043 > l } else { yyb4043 = r.CheckBreak() } if yyb4043 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { yyv4048 := &x.Status yyv4048.CodecDecodeSelf(d) } for { yyj4043++ if yyhl4043 { yyb4043 = yyj4043 > l } else { yyb4043 = r.CheckBreak() } if yyb4043 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4043-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym4049 := z.EncBinary() _ = yym4049 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4050 := !z.EncBinary() yy2arr4050 := z.EncBasicHandle().StructToArray var yyq4050 [4]bool _, _, _ = yysep4050, yyq4050, yy2arr4050 const yyr4050 bool = false yyq4050[0] = x.Kind != "" yyq4050[1] = x.APIVersion != "" yyq4050[2] = true var yynn4050 int if yyr4050 || yy2arr4050 { r.EncodeArrayStart(4) } else { yynn4050 = 1 for _, b := range yyq4050 { if b { yynn4050++ } } r.EncodeMapStart(yynn4050) yynn4050 = 0 } if yyr4050 || yy2arr4050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4050[0] { yym4052 := z.EncBinary() _ = yym4052 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4050[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4053 := z.EncBinary() _ = yym4053 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4050 || yy2arr4050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4050[1] { yym4055 := z.EncBinary() _ = yym4055 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4050[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4056 := z.EncBinary() _ = yym4056 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4050 || yy2arr4050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4050[2] { yy4058 := &x.ListMeta yym4059 := z.EncBinary() _ = yym4059 if false { } else if z.HasExtensions() && z.EncExt(yy4058) { } else { z.EncFallback(yy4058) } } else { r.EncodeNil() } } else { if yyq4050[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4060 := &x.ListMeta yym4061 := z.EncBinary() _ = yym4061 if false { } else if z.HasExtensions() && z.EncExt(yy4060) { } else { z.EncFallback(yy4060) } } } if yyr4050 || yy2arr4050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym4063 := z.EncBinary() _ = yym4063 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym4064 := z.EncBinary() _ = yym4064 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) } } } if yyr4050 || yy2arr4050 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ResourceQuotaList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4065 := z.DecBinary() _ = yym4065 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4066 := r.ContainerType() if yyct4066 == codecSelferValueTypeMap1234 { yyl4066 := r.ReadMapStart() if yyl4066 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4066, d) } } else if yyct4066 == codecSelferValueTypeArray1234 { yyl4066 := r.ReadArrayStart() if yyl4066 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4066, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys4067Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4067Slc var yyhl4067 bool = l >= 0 for yyj4067 := 0; ; yyj4067++ { if yyhl4067 { if yyj4067 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4067Slc = r.DecodeBytes(yys4067Slc, true, true) yys4067 := string(yys4067Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4067 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv4070 := &x.ListMeta yym4071 := z.DecBinary() _ = yym4071 if false { } else if z.HasExtensions() && z.DecExt(yyv4070) { } else { z.DecFallback(yyv4070, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv4072 := &x.Items yym4073 := z.DecBinary() _ = yym4073 if false { } else { h.decSliceResourceQuota((*[]ResourceQuota)(yyv4072), d) } } default: z.DecStructFieldNotFound(-1, yys4067) } // end switch yys4067 } // end for yyj4067 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4074 int var yyb4074 bool var yyhl4074 bool = l >= 0 yyj4074++ if yyhl4074 { yyb4074 = yyj4074 > l } else { yyb4074 = r.CheckBreak() } if yyb4074 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4074++ if yyhl4074 { yyb4074 = yyj4074 > l } else { yyb4074 = r.CheckBreak() } if yyb4074 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4074++ if yyhl4074 { yyb4074 = yyj4074 > l } else { yyb4074 = r.CheckBreak() } if yyb4074 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv4077 := &x.ListMeta yym4078 := z.DecBinary() _ = yym4078 if false { } else if z.HasExtensions() && z.DecExt(yyv4077) { } else { z.DecFallback(yyv4077, false) } } yyj4074++ if yyhl4074 { yyb4074 = yyj4074 > l } else { yyb4074 = r.CheckBreak() } if yyb4074 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv4079 := &x.Items yym4080 := z.DecBinary() _ = yym4080 if false { } else { h.decSliceResourceQuota((*[]ResourceQuota)(yyv4079), d) } } for { yyj4074++ if yyhl4074 { yyb4074 = yyj4074 > l } else { yyb4074 = r.CheckBreak() } if yyb4074 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4074-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym4081 := z.EncBinary() _ = yym4081 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4082 := !z.EncBinary() yy2arr4082 := z.EncBasicHandle().StructToArray var yyq4082 [5]bool _, _, _ = yysep4082, yyq4082, yy2arr4082 const yyr4082 bool = false yyq4082[0] = x.Kind != "" yyq4082[1] = x.APIVersion != "" yyq4082[2] = true yyq4082[3] = len(x.Data) != 0 yyq4082[4] = x.Type != "" var yynn4082 int if yyr4082 || yy2arr4082 { r.EncodeArrayStart(5) } else { yynn4082 = 0 for _, b := range yyq4082 { if b { yynn4082++ } } r.EncodeMapStart(yynn4082) yynn4082 = 0 } if yyr4082 || yy2arr4082 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4082[0] { yym4084 := z.EncBinary() _ = yym4084 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4082[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4085 := z.EncBinary() _ = yym4085 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4082 || yy2arr4082 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4082[1] { yym4087 := z.EncBinary() _ = yym4087 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4082[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4088 := z.EncBinary() _ = yym4088 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4082 || yy2arr4082 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4082[2] { yy4090 := &x.ObjectMeta yy4090.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4082[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4091 := &x.ObjectMeta yy4091.CodecEncodeSelf(e) } } if yyr4082 || yy2arr4082 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4082[3] { if x.Data == nil { r.EncodeNil() } else { yym4093 := z.EncBinary() _ = yym4093 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) } } } else { r.EncodeNil() } } else { if yyq4082[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { yym4094 := z.EncBinary() _ = yym4094 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) } } } } if yyr4082 || yy2arr4082 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4082[4] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4082[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr4082 || yy2arr4082 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Secret) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4096 := z.DecBinary() _ = yym4096 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4097 := r.ContainerType() if yyct4097 == codecSelferValueTypeMap1234 { yyl4097 := r.ReadMapStart() if yyl4097 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4097, d) } } else if yyct4097 == codecSelferValueTypeArray1234 { yyl4097 := r.ReadArrayStart() if yyl4097 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4097, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys4098Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4098Slc var yyhl4098 bool = l >= 0 for yyj4098 := 0; ; yyj4098++ { if yyhl4098 { if yyj4098 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4098Slc = r.DecodeBytes(yys4098Slc, true, true) yys4098 := string(yys4098Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4098 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4101 := &x.ObjectMeta yyv4101.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv4102 := &x.Data yym4103 := z.DecBinary() _ = yym4103 if false { } else { h.decMapstringSliceuint8((*map[string][]uint8)(yyv4102), d) } } case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = SecretType(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys4098) } // end switch yys4098 } // end for yyj4098 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4105 int var yyb4105 bool var yyhl4105 bool = l >= 0 yyj4105++ if yyhl4105 { yyb4105 = yyj4105 > l } else { yyb4105 = r.CheckBreak() } if yyb4105 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4105++ if yyhl4105 { yyb4105 = yyj4105 > l } else { yyb4105 = r.CheckBreak() } if yyb4105 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4105++ if yyhl4105 { yyb4105 = yyj4105 > l } else { yyb4105 = r.CheckBreak() } if yyb4105 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4108 := &x.ObjectMeta yyv4108.CodecDecodeSelf(d) } yyj4105++ if yyhl4105 { yyb4105 = yyj4105 > l } else { yyb4105 = r.CheckBreak() } if yyb4105 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv4109 := &x.Data yym4110 := z.DecBinary() _ = yym4110 if false { } else { h.decMapstringSliceuint8((*map[string][]uint8)(yyv4109), d) } } yyj4105++ if yyhl4105 { yyb4105 = yyj4105 > l } else { yyb4105 = r.CheckBreak() } if yyb4105 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = SecretType(r.DecodeString()) } for { yyj4105++ if yyhl4105 { yyb4105 = yyj4105 > l } else { yyb4105 = r.CheckBreak() } if yyb4105 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4105-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym4112 := z.EncBinary() _ = yym4112 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *SecretType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4113 := z.DecBinary() _ = yym4113 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym4114 := z.EncBinary() _ = yym4114 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4115 := !z.EncBinary() yy2arr4115 := z.EncBasicHandle().StructToArray var yyq4115 [4]bool _, _, _ = yysep4115, yyq4115, yy2arr4115 const yyr4115 bool = false yyq4115[0] = x.Kind != "" yyq4115[1] = x.APIVersion != "" yyq4115[2] = true var yynn4115 int if yyr4115 || yy2arr4115 { r.EncodeArrayStart(4) } else { yynn4115 = 1 for _, b := range yyq4115 { if b { yynn4115++ } } r.EncodeMapStart(yynn4115) yynn4115 = 0 } if yyr4115 || yy2arr4115 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4115[0] { yym4117 := z.EncBinary() _ = yym4117 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4115[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4118 := z.EncBinary() _ = yym4118 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4115 || yy2arr4115 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4115[1] { yym4120 := z.EncBinary() _ = yym4120 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4115[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4121 := z.EncBinary() _ = yym4121 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4115 || yy2arr4115 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4115[2] { yy4123 := &x.ListMeta yym4124 := z.EncBinary() _ = yym4124 if false { } else if z.HasExtensions() && z.EncExt(yy4123) { } else { z.EncFallback(yy4123) } } else { r.EncodeNil() } } else { if yyq4115[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4125 := &x.ListMeta yym4126 := z.EncBinary() _ = yym4126 if false { } else if z.HasExtensions() && z.EncExt(yy4125) { } else { z.EncFallback(yy4125) } } } if yyr4115 || yy2arr4115 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym4128 := z.EncBinary() _ = yym4128 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym4129 := z.EncBinary() _ = yym4129 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) } } } if yyr4115 || yy2arr4115 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *SecretList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4130 := z.DecBinary() _ = yym4130 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4131 := r.ContainerType() if yyct4131 == codecSelferValueTypeMap1234 { yyl4131 := r.ReadMapStart() if yyl4131 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4131, d) } } else if yyct4131 == codecSelferValueTypeArray1234 { yyl4131 := r.ReadArrayStart() if yyl4131 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4131, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys4132Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4132Slc var yyhl4132 bool = l >= 0 for yyj4132 := 0; ; yyj4132++ { if yyhl4132 { if yyj4132 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4132Slc = r.DecodeBytes(yys4132Slc, true, true) yys4132 := string(yys4132Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4132 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv4135 := &x.ListMeta yym4136 := z.DecBinary() _ = yym4136 if false { } else if z.HasExtensions() && z.DecExt(yyv4135) { } else { z.DecFallback(yyv4135, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv4137 := &x.Items yym4138 := z.DecBinary() _ = yym4138 if false { } else { h.decSliceSecret((*[]Secret)(yyv4137), d) } } default: z.DecStructFieldNotFound(-1, yys4132) } // end switch yys4132 } // end for yyj4132 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4139 int var yyb4139 bool var yyhl4139 bool = l >= 0 yyj4139++ if yyhl4139 { yyb4139 = yyj4139 > l } else { yyb4139 = r.CheckBreak() } if yyb4139 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4139++ if yyhl4139 { yyb4139 = yyj4139 > l } else { yyb4139 = r.CheckBreak() } if yyb4139 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4139++ if yyhl4139 { yyb4139 = yyj4139 > l } else { yyb4139 = r.CheckBreak() } if yyb4139 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv4142 := &x.ListMeta yym4143 := z.DecBinary() _ = yym4143 if false { } else if z.HasExtensions() && z.DecExt(yyv4142) { } else { z.DecFallback(yyv4142, false) } } yyj4139++ if yyhl4139 { yyb4139 = yyj4139 > l } else { yyb4139 = r.CheckBreak() } if yyb4139 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv4144 := &x.Items yym4145 := z.DecBinary() _ = yym4145 if false { } else { h.decSliceSecret((*[]Secret)(yyv4144), d) } } for { yyj4139++ if yyhl4139 { yyb4139 = yyj4139 > l } else { yyb4139 = r.CheckBreak() } if yyb4139 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4139-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym4146 := z.EncBinary() _ = yym4146 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4147 := !z.EncBinary() yy2arr4147 := z.EncBasicHandle().StructToArray var yyq4147 [4]bool _, _, _ = yysep4147, yyq4147, yy2arr4147 const yyr4147 bool = false yyq4147[0] = x.Kind != "" yyq4147[1] = x.APIVersion != "" yyq4147[2] = true yyq4147[3] = len(x.Data) != 0 var yynn4147 int if yyr4147 || yy2arr4147 { r.EncodeArrayStart(4) } else { yynn4147 = 0 for _, b := range yyq4147 { if b { yynn4147++ } } r.EncodeMapStart(yynn4147) yynn4147 = 0 } if yyr4147 || yy2arr4147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4147[0] { yym4149 := z.EncBinary() _ = yym4149 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4147[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4150 := z.EncBinary() _ = yym4150 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4147 || yy2arr4147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4147[1] { yym4152 := z.EncBinary() _ = yym4152 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4147[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4153 := z.EncBinary() _ = yym4153 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4147 || yy2arr4147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4147[2] { yy4155 := &x.ObjectMeta yy4155.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4147[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4156 := &x.ObjectMeta yy4156.CodecEncodeSelf(e) } } if yyr4147 || yy2arr4147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4147[3] { if x.Data == nil { r.EncodeNil() } else { yym4158 := z.EncBinary() _ = yym4158 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) } } } else { r.EncodeNil() } } else { if yyq4147[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { yym4159 := z.EncBinary() _ = yym4159 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) } } } } if yyr4147 || yy2arr4147 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ConfigMap) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4160 := z.DecBinary() _ = yym4160 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4161 := r.ContainerType() if yyct4161 == codecSelferValueTypeMap1234 { yyl4161 := r.ReadMapStart() if yyl4161 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4161, d) } } else if yyct4161 == codecSelferValueTypeArray1234 { yyl4161 := r.ReadArrayStart() if yyl4161 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4161, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys4162Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4162Slc var yyhl4162 bool = l >= 0 for yyj4162 := 0; ; yyj4162++ { if yyhl4162 { if yyj4162 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4162Slc = r.DecodeBytes(yys4162Slc, true, true) yys4162 := string(yys4162Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4162 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4165 := &x.ObjectMeta yyv4165.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv4166 := &x.Data yym4167 := z.DecBinary() _ = yym4167 if false { } else { z.F.DecMapStringStringX(yyv4166, false, d) } } default: z.DecStructFieldNotFound(-1, yys4162) } // end switch yys4162 } // end for yyj4162 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4168 int var yyb4168 bool var yyhl4168 bool = l >= 0 yyj4168++ if yyhl4168 { yyb4168 = yyj4168 > l } else { yyb4168 = r.CheckBreak() } if yyb4168 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4168++ if yyhl4168 { yyb4168 = yyj4168 > l } else { yyb4168 = r.CheckBreak() } if yyb4168 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4168++ if yyhl4168 { yyb4168 = yyj4168 > l } else { yyb4168 = r.CheckBreak() } if yyb4168 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4171 := &x.ObjectMeta yyv4171.CodecDecodeSelf(d) } yyj4168++ if yyhl4168 { yyb4168 = yyj4168 > l } else { yyb4168 = r.CheckBreak() } if yyb4168 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv4172 := &x.Data yym4173 := z.DecBinary() _ = yym4173 if false { } else { z.F.DecMapStringStringX(yyv4172, false, d) } } for { yyj4168++ if yyhl4168 { yyb4168 = yyj4168 > l } else { yyb4168 = r.CheckBreak() } if yyb4168 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4168-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym4174 := z.EncBinary() _ = yym4174 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4175 := !z.EncBinary() yy2arr4175 := z.EncBasicHandle().StructToArray var yyq4175 [4]bool _, _, _ = yysep4175, yyq4175, yy2arr4175 const yyr4175 bool = false yyq4175[0] = x.Kind != "" yyq4175[1] = x.APIVersion != "" yyq4175[2] = true var yynn4175 int if yyr4175 || yy2arr4175 { r.EncodeArrayStart(4) } else { yynn4175 = 1 for _, b := range yyq4175 { if b { yynn4175++ } } r.EncodeMapStart(yynn4175) yynn4175 = 0 } if yyr4175 || yy2arr4175 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4175[0] { yym4177 := z.EncBinary() _ = yym4177 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4175[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4178 := z.EncBinary() _ = yym4178 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4175 || yy2arr4175 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4175[1] { yym4180 := z.EncBinary() _ = yym4180 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4175[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4181 := z.EncBinary() _ = yym4181 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4175 || yy2arr4175 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4175[2] { yy4183 := &x.ListMeta yym4184 := z.EncBinary() _ = yym4184 if false { } else if z.HasExtensions() && z.EncExt(yy4183) { } else { z.EncFallback(yy4183) } } else { r.EncodeNil() } } else { if yyq4175[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4185 := &x.ListMeta yym4186 := z.EncBinary() _ = yym4186 if false { } else if z.HasExtensions() && z.EncExt(yy4185) { } else { z.EncFallback(yy4185) } } } if yyr4175 || yy2arr4175 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym4188 := z.EncBinary() _ = yym4188 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym4189 := z.EncBinary() _ = yym4189 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } if yyr4175 || yy2arr4175 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ConfigMapList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4190 := z.DecBinary() _ = yym4190 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4191 := r.ContainerType() if yyct4191 == codecSelferValueTypeMap1234 { yyl4191 := r.ReadMapStart() if yyl4191 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4191, d) } } else if yyct4191 == codecSelferValueTypeArray1234 { yyl4191 := r.ReadArrayStart() if yyl4191 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4191, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys4192Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4192Slc var yyhl4192 bool = l >= 0 for yyj4192 := 0; ; yyj4192++ { if yyhl4192 { if yyj4192 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4192Slc = r.DecodeBytes(yys4192Slc, true, true) yys4192 := string(yys4192Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4192 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv4195 := &x.ListMeta yym4196 := z.DecBinary() _ = yym4196 if false { } else if z.HasExtensions() && z.DecExt(yyv4195) { } else { z.DecFallback(yyv4195, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv4197 := &x.Items yym4198 := z.DecBinary() _ = yym4198 if false { } else { h.decSliceConfigMap((*[]ConfigMap)(yyv4197), d) } } default: z.DecStructFieldNotFound(-1, yys4192) } // end switch yys4192 } // end for yyj4192 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4199 int var yyb4199 bool var yyhl4199 bool = l >= 0 yyj4199++ if yyhl4199 { yyb4199 = yyj4199 > l } else { yyb4199 = r.CheckBreak() } if yyb4199 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4199++ if yyhl4199 { yyb4199 = yyj4199 > l } else { yyb4199 = r.CheckBreak() } if yyb4199 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4199++ if yyhl4199 { yyb4199 = yyj4199 > l } else { yyb4199 = r.CheckBreak() } if yyb4199 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv4202 := &x.ListMeta yym4203 := z.DecBinary() _ = yym4203 if false { } else if z.HasExtensions() && z.DecExt(yyv4202) { } else { z.DecFallback(yyv4202, false) } } yyj4199++ if yyhl4199 { yyb4199 = yyj4199 > l } else { yyb4199 = r.CheckBreak() } if yyb4199 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv4204 := &x.Items yym4205 := z.DecBinary() _ = yym4205 if false { } else { h.decSliceConfigMap((*[]ConfigMap)(yyv4204), d) } } for { yyj4199++ if yyhl4199 { yyb4199 = yyj4199 > l } else { yyb4199 = r.CheckBreak() } if yyb4199 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4199-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym4206 := z.EncBinary() _ = yym4206 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *PatchType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4207 := z.DecBinary() _ = yym4207 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x ComponentConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym4208 := z.EncBinary() _ = yym4208 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *ComponentConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4209 := z.DecBinary() _ = yym4209 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym4210 := z.EncBinary() _ = yym4210 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4211 := !z.EncBinary() yy2arr4211 := z.EncBasicHandle().StructToArray var yyq4211 [4]bool _, _, _ = yysep4211, yyq4211, yy2arr4211 const yyr4211 bool = false yyq4211[2] = x.Message != "" yyq4211[3] = x.Error != "" var yynn4211 int if yyr4211 || yy2arr4211 { r.EncodeArrayStart(4) } else { yynn4211 = 2 for _, b := range yyq4211 { if b { yynn4211++ } } r.EncodeMapStart(yynn4211) yynn4211 = 0 } if yyr4211 || yy2arr4211 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } if yyr4211 || yy2arr4211 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } if yyr4211 || yy2arr4211 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4211[2] { yym4215 := z.EncBinary() _ = yym4215 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4211[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4216 := z.EncBinary() _ = yym4216 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr4211 || yy2arr4211 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4211[3] { yym4218 := z.EncBinary() _ = yym4218 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4211[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("error")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4219 := z.EncBinary() _ = yym4219 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } } if yyr4211 || yy2arr4211 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ComponentCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4220 := z.DecBinary() _ = yym4220 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4221 := r.ContainerType() if yyct4221 == codecSelferValueTypeMap1234 { yyl4221 := r.ReadMapStart() if yyl4221 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4221, d) } } else if yyct4221 == codecSelferValueTypeArray1234 { yyl4221 := r.ReadArrayStart() if yyl4221 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4221, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys4222Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4222Slc var yyhl4222 bool = l >= 0 for yyj4222 := 0; ; yyj4222++ { if yyhl4222 { if yyj4222 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4222Slc = r.DecodeBytes(yys4222Slc, true, true) yys4222 := string(yys4222Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4222 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ComponentConditionType(r.DecodeString()) } case "status": if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } case "message": if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } case "error": if r.TryDecodeAsNil() { x.Error = "" } else { x.Error = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys4222) } // end switch yys4222 } // end for yyj4222 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4227 int var yyb4227 bool var yyhl4227 bool = l >= 0 yyj4227++ if yyhl4227 { yyb4227 = yyj4227 > l } else { yyb4227 = r.CheckBreak() } if yyb4227 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ComponentConditionType(r.DecodeString()) } yyj4227++ if yyhl4227 { yyb4227 = yyj4227 > l } else { yyb4227 = r.CheckBreak() } if yyb4227 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj4227++ if yyhl4227 { yyb4227 = yyj4227 > l } else { yyb4227 = r.CheckBreak() } if yyb4227 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj4227++ if yyhl4227 { yyb4227 = yyj4227 > l } else { yyb4227 = r.CheckBreak() } if yyb4227 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Error = "" } else { x.Error = string(r.DecodeString()) } for { yyj4227++ if yyhl4227 { yyb4227 = yyj4227 > l } else { yyb4227 = r.CheckBreak() } if yyb4227 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4227-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym4232 := z.EncBinary() _ = yym4232 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4233 := !z.EncBinary() yy2arr4233 := z.EncBasicHandle().StructToArray var yyq4233 [4]bool _, _, _ = yysep4233, yyq4233, yy2arr4233 const yyr4233 bool = false yyq4233[0] = x.Kind != "" yyq4233[1] = x.APIVersion != "" yyq4233[2] = true yyq4233[3] = len(x.Conditions) != 0 var yynn4233 int if yyr4233 || yy2arr4233 { r.EncodeArrayStart(4) } else { yynn4233 = 0 for _, b := range yyq4233 { if b { yynn4233++ } } r.EncodeMapStart(yynn4233) yynn4233 = 0 } if yyr4233 || yy2arr4233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4233[0] { yym4235 := z.EncBinary() _ = yym4235 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4233[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4236 := z.EncBinary() _ = yym4236 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4233 || yy2arr4233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4233[1] { yym4238 := z.EncBinary() _ = yym4238 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4233[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4239 := z.EncBinary() _ = yym4239 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4233 || yy2arr4233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4233[2] { yy4241 := &x.ObjectMeta yy4241.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4233[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4242 := &x.ObjectMeta yy4242.CodecEncodeSelf(e) } } if yyr4233 || yy2arr4233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4233[3] { if x.Conditions == nil { r.EncodeNil() } else { yym4244 := z.EncBinary() _ = yym4244 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq4233[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym4245 := z.EncBinary() _ = yym4245 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) } } } } if yyr4233 || yy2arr4233 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ComponentStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4246 := z.DecBinary() _ = yym4246 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4247 := r.ContainerType() if yyct4247 == codecSelferValueTypeMap1234 { yyl4247 := r.ReadMapStart() if yyl4247 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4247, d) } } else if yyct4247 == codecSelferValueTypeArray1234 { yyl4247 := r.ReadArrayStart() if yyl4247 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4247, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys4248Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4248Slc var yyhl4248 bool = l >= 0 for yyj4248 := 0; ; yyj4248++ { if yyhl4248 { if yyj4248 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4248Slc = r.DecodeBytes(yys4248Slc, true, true) yys4248 := string(yys4248Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4248 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4251 := &x.ObjectMeta yyv4251.CodecDecodeSelf(d) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv4252 := &x.Conditions yym4253 := z.DecBinary() _ = yym4253 if false { } else { h.decSliceComponentCondition((*[]ComponentCondition)(yyv4252), d) } } default: z.DecStructFieldNotFound(-1, yys4248) } // end switch yys4248 } // end for yyj4248 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4254 int var yyb4254 bool var yyhl4254 bool = l >= 0 yyj4254++ if yyhl4254 { yyb4254 = yyj4254 > l } else { yyb4254 = r.CheckBreak() } if yyb4254 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4254++ if yyhl4254 { yyb4254 = yyj4254 > l } else { yyb4254 = r.CheckBreak() } if yyb4254 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4254++ if yyhl4254 { yyb4254 = yyj4254 > l } else { yyb4254 = r.CheckBreak() } if yyb4254 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4257 := &x.ObjectMeta yyv4257.CodecDecodeSelf(d) } yyj4254++ if yyhl4254 { yyb4254 = yyj4254 > l } else { yyb4254 = r.CheckBreak() } if yyb4254 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv4258 := &x.Conditions yym4259 := z.DecBinary() _ = yym4259 if false { } else { h.decSliceComponentCondition((*[]ComponentCondition)(yyv4258), d) } } for { yyj4254++ if yyhl4254 { yyb4254 = yyj4254 > l } else { yyb4254 = r.CheckBreak() } if yyb4254 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4254-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym4260 := z.EncBinary() _ = yym4260 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4261 := !z.EncBinary() yy2arr4261 := z.EncBasicHandle().StructToArray var yyq4261 [4]bool _, _, _ = yysep4261, yyq4261, yy2arr4261 const yyr4261 bool = false yyq4261[0] = x.Kind != "" yyq4261[1] = x.APIVersion != "" yyq4261[2] = true var yynn4261 int if yyr4261 || yy2arr4261 { r.EncodeArrayStart(4) } else { yynn4261 = 1 for _, b := range yyq4261 { if b { yynn4261++ } } r.EncodeMapStart(yynn4261) yynn4261 = 0 } if yyr4261 || yy2arr4261 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4261[0] { yym4263 := z.EncBinary() _ = yym4263 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4261[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4264 := z.EncBinary() _ = yym4264 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4261 || yy2arr4261 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4261[1] { yym4266 := z.EncBinary() _ = yym4266 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4261[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4267 := z.EncBinary() _ = yym4267 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4261 || yy2arr4261 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4261[2] { yy4269 := &x.ListMeta yym4270 := z.EncBinary() _ = yym4270 if false { } else if z.HasExtensions() && z.EncExt(yy4269) { } else { z.EncFallback(yy4269) } } else { r.EncodeNil() } } else { if yyq4261[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4271 := &x.ListMeta yym4272 := z.EncBinary() _ = yym4272 if false { } else if z.HasExtensions() && z.EncExt(yy4271) { } else { z.EncFallback(yy4271) } } } if yyr4261 || yy2arr4261 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym4274 := z.EncBinary() _ = yym4274 if false { } else { h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym4275 := z.EncBinary() _ = yym4275 if false { } else { h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) } } } if yyr4261 || yy2arr4261 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ComponentStatusList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4276 := z.DecBinary() _ = yym4276 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4277 := r.ContainerType() if yyct4277 == codecSelferValueTypeMap1234 { yyl4277 := r.ReadMapStart() if yyl4277 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4277, d) } } else if yyct4277 == codecSelferValueTypeArray1234 { yyl4277 := r.ReadArrayStart() if yyl4277 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4277, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys4278Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4278Slc var yyhl4278 bool = l >= 0 for yyj4278 := 0; ; yyj4278++ { if yyhl4278 { if yyj4278 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4278Slc = r.DecodeBytes(yys4278Slc, true, true) yys4278 := string(yys4278Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4278 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv4281 := &x.ListMeta yym4282 := z.DecBinary() _ = yym4282 if false { } else if z.HasExtensions() && z.DecExt(yyv4281) { } else { z.DecFallback(yyv4281, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv4283 := &x.Items yym4284 := z.DecBinary() _ = yym4284 if false { } else { h.decSliceComponentStatus((*[]ComponentStatus)(yyv4283), d) } } default: z.DecStructFieldNotFound(-1, yys4278) } // end switch yys4278 } // end for yyj4278 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4285 int var yyb4285 bool var yyhl4285 bool = l >= 0 yyj4285++ if yyhl4285 { yyb4285 = yyj4285 > l } else { yyb4285 = r.CheckBreak() } if yyb4285 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4285++ if yyhl4285 { yyb4285 = yyj4285 > l } else { yyb4285 = r.CheckBreak() } if yyb4285 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4285++ if yyhl4285 { yyb4285 = yyj4285 > l } else { yyb4285 = r.CheckBreak() } if yyb4285 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv4288 := &x.ListMeta yym4289 := z.DecBinary() _ = yym4289 if false { } else if z.HasExtensions() && z.DecExt(yyv4288) { } else { z.DecFallback(yyv4288, false) } } yyj4285++ if yyhl4285 { yyb4285 = yyj4285 > l } else { yyb4285 = r.CheckBreak() } if yyb4285 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv4290 := &x.Items yym4291 := z.DecBinary() _ = yym4291 if false { } else { h.decSliceComponentStatus((*[]ComponentStatus)(yyv4290), d) } } for { yyj4285++ if yyhl4285 { yyb4285 = yyj4285 > l } else { yyb4285 = r.CheckBreak() } if yyb4285 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4285-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym4292 := z.EncBinary() _ = yym4292 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4293 := !z.EncBinary() yy2arr4293 := z.EncBasicHandle().StructToArray var yyq4293 [6]bool _, _, _ = yysep4293, yyq4293, yy2arr4293 const yyr4293 bool = false yyq4293[0] = x.Capabilities != nil yyq4293[1] = x.Privileged != nil yyq4293[2] = x.SELinuxOptions != nil yyq4293[3] = x.RunAsUser != nil yyq4293[4] = x.RunAsNonRoot != nil yyq4293[5] = x.ReadOnlyRootFilesystem != nil var yynn4293 int if yyr4293 || yy2arr4293 { r.EncodeArrayStart(6) } else { yynn4293 = 0 for _, b := range yyq4293 { if b { yynn4293++ } } r.EncodeMapStart(yynn4293) yynn4293 = 0 } if yyr4293 || yy2arr4293 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4293[0] { if x.Capabilities == nil { r.EncodeNil() } else { x.Capabilities.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq4293[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Capabilities == nil { r.EncodeNil() } else { x.Capabilities.CodecEncodeSelf(e) } } } if yyr4293 || yy2arr4293 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4293[1] { if x.Privileged == nil { r.EncodeNil() } else { yy4296 := *x.Privileged yym4297 := z.EncBinary() _ = yym4297 if false { } else { r.EncodeBool(bool(yy4296)) } } } else { r.EncodeNil() } } else { if yyq4293[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Privileged == nil { r.EncodeNil() } else { yy4298 := *x.Privileged yym4299 := z.EncBinary() _ = yym4299 if false { } else { r.EncodeBool(bool(yy4298)) } } } } if yyr4293 || yy2arr4293 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4293[2] { if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq4293[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } } if yyr4293 || yy2arr4293 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4293[3] { if x.RunAsUser == nil { r.EncodeNil() } else { yy4302 := *x.RunAsUser yym4303 := z.EncBinary() _ = yym4303 if false { } else { r.EncodeInt(int64(yy4302)) } } } else { r.EncodeNil() } } else { if yyq4293[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { yy4304 := *x.RunAsUser yym4305 := z.EncBinary() _ = yym4305 if false { } else { r.EncodeInt(int64(yy4304)) } } } } if yyr4293 || yy2arr4293 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4293[4] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy4307 := *x.RunAsNonRoot yym4308 := z.EncBinary() _ = yym4308 if false { } else { r.EncodeBool(bool(yy4307)) } } } else { r.EncodeNil() } } else { if yyq4293[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy4309 := *x.RunAsNonRoot yym4310 := z.EncBinary() _ = yym4310 if false { } else { r.EncodeBool(bool(yy4309)) } } } } if yyr4293 || yy2arr4293 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4293[5] { if x.ReadOnlyRootFilesystem == nil { r.EncodeNil() } else { yy4312 := *x.ReadOnlyRootFilesystem yym4313 := z.EncBinary() _ = yym4313 if false { } else { r.EncodeBool(bool(yy4312)) } } } else { r.EncodeNil() } } else { if yyq4293[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ReadOnlyRootFilesystem == nil { r.EncodeNil() } else { yy4314 := *x.ReadOnlyRootFilesystem yym4315 := z.EncBinary() _ = yym4315 if false { } else { r.EncodeBool(bool(yy4314)) } } } } if yyr4293 || yy2arr4293 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *SecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4316 := z.DecBinary() _ = yym4316 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4317 := r.ContainerType() if yyct4317 == codecSelferValueTypeMap1234 { yyl4317 := r.ReadMapStart() if yyl4317 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4317, d) } } else if yyct4317 == codecSelferValueTypeArray1234 { yyl4317 := r.ReadArrayStart() if yyl4317 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4317, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys4318Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4318Slc var yyhl4318 bool = l >= 0 for yyj4318 := 0; ; yyj4318++ { if yyhl4318 { if yyj4318 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4318Slc = r.DecodeBytes(yys4318Slc, true, true) yys4318 := string(yys4318Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4318 { case "capabilities": if r.TryDecodeAsNil() { if x.Capabilities != nil { x.Capabilities = nil } } else { if x.Capabilities == nil { x.Capabilities = new(Capabilities) } x.Capabilities.CodecDecodeSelf(d) } case "privileged": if r.TryDecodeAsNil() { if x.Privileged != nil { x.Privileged = nil } } else { if x.Privileged == nil { x.Privileged = new(bool) } yym4321 := z.DecBinary() _ = yym4321 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() } } case "seLinuxOptions": if r.TryDecodeAsNil() { if x.SELinuxOptions != nil { x.SELinuxOptions = nil } } else { if x.SELinuxOptions == nil { x.SELinuxOptions = new(SELinuxOptions) } x.SELinuxOptions.CodecDecodeSelf(d) } case "runAsUser": if r.TryDecodeAsNil() { if x.RunAsUser != nil { x.RunAsUser = nil } } else { if x.RunAsUser == nil { x.RunAsUser = new(int64) } yym4324 := z.DecBinary() _ = yym4324 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } case "runAsNonRoot": if r.TryDecodeAsNil() { if x.RunAsNonRoot != nil { x.RunAsNonRoot = nil } } else { if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } yym4326 := z.DecBinary() _ = yym4326 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } case "readOnlyRootFilesystem": if r.TryDecodeAsNil() { if x.ReadOnlyRootFilesystem != nil { x.ReadOnlyRootFilesystem = nil } } else { if x.ReadOnlyRootFilesystem == nil { x.ReadOnlyRootFilesystem = new(bool) } yym4328 := z.DecBinary() _ = yym4328 if false { } else { *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys4318) } // end switch yys4318 } // end for yyj4318 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4329 int var yyb4329 bool var yyhl4329 bool = l >= 0 yyj4329++ if yyhl4329 { yyb4329 = yyj4329 > l } else { yyb4329 = r.CheckBreak() } if yyb4329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Capabilities != nil { x.Capabilities = nil } } else { if x.Capabilities == nil { x.Capabilities = new(Capabilities) } x.Capabilities.CodecDecodeSelf(d) } yyj4329++ if yyhl4329 { yyb4329 = yyj4329 > l } else { yyb4329 = r.CheckBreak() } if yyb4329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Privileged != nil { x.Privileged = nil } } else { if x.Privileged == nil { x.Privileged = new(bool) } yym4332 := z.DecBinary() _ = yym4332 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() } } yyj4329++ if yyhl4329 { yyb4329 = yyj4329 > l } else { yyb4329 = r.CheckBreak() } if yyb4329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SELinuxOptions != nil { x.SELinuxOptions = nil } } else { if x.SELinuxOptions == nil { x.SELinuxOptions = new(SELinuxOptions) } x.SELinuxOptions.CodecDecodeSelf(d) } yyj4329++ if yyhl4329 { yyb4329 = yyj4329 > l } else { yyb4329 = r.CheckBreak() } if yyb4329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RunAsUser != nil { x.RunAsUser = nil } } else { if x.RunAsUser == nil { x.RunAsUser = new(int64) } yym4335 := z.DecBinary() _ = yym4335 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } yyj4329++ if yyhl4329 { yyb4329 = yyj4329 > l } else { yyb4329 = r.CheckBreak() } if yyb4329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RunAsNonRoot != nil { x.RunAsNonRoot = nil } } else { if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } yym4337 := z.DecBinary() _ = yym4337 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } yyj4329++ if yyhl4329 { yyb4329 = yyj4329 > l } else { yyb4329 = r.CheckBreak() } if yyb4329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ReadOnlyRootFilesystem != nil { x.ReadOnlyRootFilesystem = nil } } else { if x.ReadOnlyRootFilesystem == nil { x.ReadOnlyRootFilesystem = new(bool) } yym4339 := z.DecBinary() _ = yym4339 if false { } else { *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() } } for { yyj4329++ if yyhl4329 { yyb4329 = yyj4329 > l } else { yyb4329 = r.CheckBreak() } if yyb4329 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4329-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym4340 := z.EncBinary() _ = yym4340 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4341 := !z.EncBinary() yy2arr4341 := z.EncBasicHandle().StructToArray var yyq4341 [4]bool _, _, _ = yysep4341, yyq4341, yy2arr4341 const yyr4341 bool = false yyq4341[0] = x.User != "" yyq4341[1] = x.Role != "" yyq4341[2] = x.Type != "" yyq4341[3] = x.Level != "" var yynn4341 int if yyr4341 || yy2arr4341 { r.EncodeArrayStart(4) } else { yynn4341 = 0 for _, b := range yyq4341 { if b { yynn4341++ } } r.EncodeMapStart(yynn4341) yynn4341 = 0 } if yyr4341 || yy2arr4341 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4341[0] { yym4343 := z.EncBinary() _ = yym4343 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4341[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4344 := z.EncBinary() _ = yym4344 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } if yyr4341 || yy2arr4341 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4341[1] { yym4346 := z.EncBinary() _ = yym4346 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4341[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("role")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4347 := z.EncBinary() _ = yym4347 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } } if yyr4341 || yy2arr4341 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4341[2] { yym4349 := z.EncBinary() _ = yym4349 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4341[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4350 := z.EncBinary() _ = yym4350 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } if yyr4341 || yy2arr4341 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4341[3] { yym4352 := z.EncBinary() _ = yym4352 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4341[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("level")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4353 := z.EncBinary() _ = yym4353 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } } if yyr4341 || yy2arr4341 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *SELinuxOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4354 := z.DecBinary() _ = yym4354 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4355 := r.ContainerType() if yyct4355 == codecSelferValueTypeMap1234 { yyl4355 := r.ReadMapStart() if yyl4355 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4355, d) } } else if yyct4355 == codecSelferValueTypeArray1234 { yyl4355 := r.ReadArrayStart() if yyl4355 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4355, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys4356Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4356Slc var yyhl4356 bool = l >= 0 for yyj4356 := 0; ; yyj4356++ { if yyhl4356 { if yyj4356 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4356Slc = r.DecodeBytes(yys4356Slc, true, true) yys4356 := string(yys4356Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4356 { case "user": if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } case "role": if r.TryDecodeAsNil() { x.Role = "" } else { x.Role = string(r.DecodeString()) } case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } case "level": if r.TryDecodeAsNil() { x.Level = "" } else { x.Level = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys4356) } // end switch yys4356 } // end for yyj4356 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4361 int var yyb4361 bool var yyhl4361 bool = l >= 0 yyj4361++ if yyhl4361 { yyb4361 = yyj4361 > l } else { yyb4361 = r.CheckBreak() } if yyb4361 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } yyj4361++ if yyhl4361 { yyb4361 = yyj4361 > l } else { yyb4361 = r.CheckBreak() } if yyb4361 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Role = "" } else { x.Role = string(r.DecodeString()) } yyj4361++ if yyhl4361 { yyb4361 = yyj4361 > l } else { yyb4361 = r.CheckBreak() } if yyb4361 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } yyj4361++ if yyhl4361 { yyb4361 = yyj4361 > l } else { yyb4361 = r.CheckBreak() } if yyb4361 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Level = "" } else { x.Level = string(r.DecodeString()) } for { yyj4361++ if yyhl4361 { yyb4361 = yyj4361 > l } else { yyb4361 = r.CheckBreak() } if yyb4361 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4361-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym4366 := z.EncBinary() _ = yym4366 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4367 := !z.EncBinary() yy2arr4367 := z.EncBasicHandle().StructToArray var yyq4367 [5]bool _, _, _ = yysep4367, yyq4367, yy2arr4367 const yyr4367 bool = false yyq4367[0] = x.Kind != "" yyq4367[1] = x.APIVersion != "" yyq4367[2] = true var yynn4367 int if yyr4367 || yy2arr4367 { r.EncodeArrayStart(5) } else { yynn4367 = 2 for _, b := range yyq4367 { if b { yynn4367++ } } r.EncodeMapStart(yynn4367) yynn4367 = 0 } if yyr4367 || yy2arr4367 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4367[0] { yym4369 := z.EncBinary() _ = yym4369 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4367[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4370 := z.EncBinary() _ = yym4370 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4367 || yy2arr4367 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4367[1] { yym4372 := z.EncBinary() _ = yym4372 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4367[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4373 := z.EncBinary() _ = yym4373 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4367 || yy2arr4367 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4367[2] { yy4375 := &x.ObjectMeta yy4375.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4367[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4376 := &x.ObjectMeta yy4376.CodecEncodeSelf(e) } } if yyr4367 || yy2arr4367 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym4378 := z.EncBinary() _ = yym4378 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("range")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4379 := z.EncBinary() _ = yym4379 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) } } if yyr4367 || yy2arr4367 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Data == nil { r.EncodeNil() } else { yym4381 := z.EncBinary() _ = yym4381 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { yym4382 := z.EncBinary() _ = yym4382 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) } } } if yyr4367 || yy2arr4367 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *RangeAllocation) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4383 := z.DecBinary() _ = yym4383 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4384 := r.ContainerType() if yyct4384 == codecSelferValueTypeMap1234 { yyl4384 := r.ReadMapStart() if yyl4384 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4384, d) } } else if yyct4384 == codecSelferValueTypeArray1234 { yyl4384 := r.ReadArrayStart() if yyl4384 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4384, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys4385Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4385Slc var yyhl4385 bool = l >= 0 for yyj4385 := 0; ; yyj4385++ { if yyhl4385 { if yyj4385 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4385Slc = r.DecodeBytes(yys4385Slc, true, true) yys4385 := string(yys4385Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4385 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4388 := &x.ObjectMeta yyv4388.CodecDecodeSelf(d) } case "range": if r.TryDecodeAsNil() { x.Range = "" } else { x.Range = string(r.DecodeString()) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv4390 := &x.Data yym4391 := z.DecBinary() _ = yym4391 if false { } else { *yyv4390 = r.DecodeBytes(*(*[]byte)(yyv4390), false, false) } } default: z.DecStructFieldNotFound(-1, yys4385) } // end switch yys4385 } // end for yyj4385 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4392 int var yyb4392 bool var yyhl4392 bool = l >= 0 yyj4392++ if yyhl4392 { yyb4392 = yyj4392 > l } else { yyb4392 = r.CheckBreak() } if yyb4392 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4392++ if yyhl4392 { yyb4392 = yyj4392 > l } else { yyb4392 = r.CheckBreak() } if yyb4392 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4392++ if yyhl4392 { yyb4392 = yyj4392 > l } else { yyb4392 = r.CheckBreak() } if yyb4392 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4395 := &x.ObjectMeta yyv4395.CodecDecodeSelf(d) } yyj4392++ if yyhl4392 { yyb4392 = yyj4392 > l } else { yyb4392 = r.CheckBreak() } if yyb4392 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Range = "" } else { x.Range = string(r.DecodeString()) } yyj4392++ if yyhl4392 { yyb4392 = yyj4392 > l } else { yyb4392 = r.CheckBreak() } if yyb4392 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv4397 := &x.Data yym4398 := z.DecBinary() _ = yym4398 if false { } else { *yyv4397 = r.DecodeBytes(*(*[]byte)(yyv4397), false, false) } } for { yyj4392++ if yyhl4392 { yyb4392 = yyj4392 > l } else { yyb4392 = r.CheckBreak() } if yyb4392 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4392-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) encSliceOwnerReference(v []OwnerReference, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4399 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4400 := &yyv4399 yy4400.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceOwnerReference(v *[]OwnerReference, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4401 := *v yyh4401, yyl4401 := z.DecSliceHelperStart() var yyc4401 bool if yyl4401 == 0 { if yyv4401 == nil { yyv4401 = []OwnerReference{} yyc4401 = true } else if len(yyv4401) != 0 { yyv4401 = yyv4401[:0] yyc4401 = true } } else if yyl4401 > 0 { var yyrr4401, yyrl4401 int var yyrt4401 bool if yyl4401 > cap(yyv4401) { yyrg4401 := len(yyv4401) > 0 yyv24401 := yyv4401 yyrl4401, yyrt4401 = z.DecInferLen(yyl4401, z.DecBasicHandle().MaxInitLen, 72) if yyrt4401 { if yyrl4401 <= cap(yyv4401) { yyv4401 = yyv4401[:yyrl4401] } else { yyv4401 = make([]OwnerReference, yyrl4401) } } else { yyv4401 = make([]OwnerReference, yyrl4401) } yyc4401 = true yyrr4401 = len(yyv4401) if yyrg4401 { copy(yyv4401, yyv24401) } } else if yyl4401 != len(yyv4401) { yyv4401 = yyv4401[:yyl4401] yyc4401 = true } yyj4401 := 0 for ; yyj4401 < yyrr4401; yyj4401++ { yyh4401.ElemContainerState(yyj4401) if r.TryDecodeAsNil() { yyv4401[yyj4401] = OwnerReference{} } else { yyv4402 := &yyv4401[yyj4401] yyv4402.CodecDecodeSelf(d) } } if yyrt4401 { for ; yyj4401 < yyl4401; yyj4401++ { yyv4401 = append(yyv4401, OwnerReference{}) yyh4401.ElemContainerState(yyj4401) if r.TryDecodeAsNil() { yyv4401[yyj4401] = OwnerReference{} } else { yyv4403 := &yyv4401[yyj4401] yyv4403.CodecDecodeSelf(d) } } } } else { yyj4401 := 0 for ; !r.CheckBreak(); yyj4401++ { if yyj4401 >= len(yyv4401) { yyv4401 = append(yyv4401, OwnerReference{}) // var yyz4401 OwnerReference yyc4401 = true } yyh4401.ElemContainerState(yyj4401) if yyj4401 < len(yyv4401) { if r.TryDecodeAsNil() { yyv4401[yyj4401] = OwnerReference{} } else { yyv4404 := &yyv4401[yyj4401] yyv4404.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4401 < len(yyv4401) { yyv4401 = yyv4401[:yyj4401] yyc4401 = true } else if yyj4401 == 0 && yyv4401 == nil { yyv4401 = []OwnerReference{} yyc4401 = true } } yyh4401.End() if yyc4401 { *v = yyv4401 } } func (x codecSelfer1234) encSlicePersistentVolumeAccessMode(v []PersistentVolumeAccessMode, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4405 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv4405.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolumeAccessMode, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4406 := *v yyh4406, yyl4406 := z.DecSliceHelperStart() var yyc4406 bool if yyl4406 == 0 { if yyv4406 == nil { yyv4406 = []PersistentVolumeAccessMode{} yyc4406 = true } else if len(yyv4406) != 0 { yyv4406 = yyv4406[:0] yyc4406 = true } } else if yyl4406 > 0 { var yyrr4406, yyrl4406 int var yyrt4406 bool if yyl4406 > cap(yyv4406) { yyrl4406, yyrt4406 = z.DecInferLen(yyl4406, z.DecBasicHandle().MaxInitLen, 16) if yyrt4406 { if yyrl4406 <= cap(yyv4406) { yyv4406 = yyv4406[:yyrl4406] } else { yyv4406 = make([]PersistentVolumeAccessMode, yyrl4406) } } else { yyv4406 = make([]PersistentVolumeAccessMode, yyrl4406) } yyc4406 = true yyrr4406 = len(yyv4406) } else if yyl4406 != len(yyv4406) { yyv4406 = yyv4406[:yyl4406] yyc4406 = true } yyj4406 := 0 for ; yyj4406 < yyrr4406; yyj4406++ { yyh4406.ElemContainerState(yyj4406) if r.TryDecodeAsNil() { yyv4406[yyj4406] = "" } else { yyv4406[yyj4406] = PersistentVolumeAccessMode(r.DecodeString()) } } if yyrt4406 { for ; yyj4406 < yyl4406; yyj4406++ { yyv4406 = append(yyv4406, "") yyh4406.ElemContainerState(yyj4406) if r.TryDecodeAsNil() { yyv4406[yyj4406] = "" } else { yyv4406[yyj4406] = PersistentVolumeAccessMode(r.DecodeString()) } } } } else { yyj4406 := 0 for ; !r.CheckBreak(); yyj4406++ { if yyj4406 >= len(yyv4406) { yyv4406 = append(yyv4406, "") // var yyz4406 PersistentVolumeAccessMode yyc4406 = true } yyh4406.ElemContainerState(yyj4406) if yyj4406 < len(yyv4406) { if r.TryDecodeAsNil() { yyv4406[yyj4406] = "" } else { yyv4406[yyj4406] = PersistentVolumeAccessMode(r.DecodeString()) } } else { z.DecSwallow() } } if yyj4406 < len(yyv4406) { yyv4406 = yyv4406[:yyj4406] yyc4406 = true } else if yyj4406 == 0 && yyv4406 == nil { yyv4406 = []PersistentVolumeAccessMode{} yyc4406 = true } } yyh4406.End() if yyc4406 { *v = yyv4406 } } func (x codecSelfer1234) encSlicePersistentVolume(v []PersistentVolume, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4410 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4411 := &yyv4410 yy4411.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSlicePersistentVolume(v *[]PersistentVolume, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4412 := *v yyh4412, yyl4412 := z.DecSliceHelperStart() var yyc4412 bool if yyl4412 == 0 { if yyv4412 == nil { yyv4412 = []PersistentVolume{} yyc4412 = true } else if len(yyv4412) != 0 { yyv4412 = yyv4412[:0] yyc4412 = true } } else if yyl4412 > 0 { var yyrr4412, yyrl4412 int var yyrt4412 bool if yyl4412 > cap(yyv4412) { yyrg4412 := len(yyv4412) > 0 yyv24412 := yyv4412 yyrl4412, yyrt4412 = z.DecInferLen(yyl4412, z.DecBasicHandle().MaxInitLen, 456) if yyrt4412 { if yyrl4412 <= cap(yyv4412) { yyv4412 = yyv4412[:yyrl4412] } else { yyv4412 = make([]PersistentVolume, yyrl4412) } } else { yyv4412 = make([]PersistentVolume, yyrl4412) } yyc4412 = true yyrr4412 = len(yyv4412) if yyrg4412 { copy(yyv4412, yyv24412) } } else if yyl4412 != len(yyv4412) { yyv4412 = yyv4412[:yyl4412] yyc4412 = true } yyj4412 := 0 for ; yyj4412 < yyrr4412; yyj4412++ { yyh4412.ElemContainerState(yyj4412) if r.TryDecodeAsNil() { yyv4412[yyj4412] = PersistentVolume{} } else { yyv4413 := &yyv4412[yyj4412] yyv4413.CodecDecodeSelf(d) } } if yyrt4412 { for ; yyj4412 < yyl4412; yyj4412++ { yyv4412 = append(yyv4412, PersistentVolume{}) yyh4412.ElemContainerState(yyj4412) if r.TryDecodeAsNil() { yyv4412[yyj4412] = PersistentVolume{} } else { yyv4414 := &yyv4412[yyj4412] yyv4414.CodecDecodeSelf(d) } } } } else { yyj4412 := 0 for ; !r.CheckBreak(); yyj4412++ { if yyj4412 >= len(yyv4412) { yyv4412 = append(yyv4412, PersistentVolume{}) // var yyz4412 PersistentVolume yyc4412 = true } yyh4412.ElemContainerState(yyj4412) if yyj4412 < len(yyv4412) { if r.TryDecodeAsNil() { yyv4412[yyj4412] = PersistentVolume{} } else { yyv4415 := &yyv4412[yyj4412] yyv4415.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4412 < len(yyv4412) { yyv4412 = yyv4412[:yyj4412] yyc4412 = true } else if yyj4412 == 0 && yyv4412 == nil { yyv4412 = []PersistentVolume{} yyc4412 = true } } yyh4412.End() if yyc4412 { *v = yyv4412 } } func (x codecSelfer1234) encSlicePersistentVolumeClaim(v []PersistentVolumeClaim, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4416 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4417 := &yyv4416 yy4417.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSlicePersistentVolumeClaim(v *[]PersistentVolumeClaim, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4418 := *v yyh4418, yyl4418 := z.DecSliceHelperStart() var yyc4418 bool if yyl4418 == 0 { if yyv4418 == nil { yyv4418 = []PersistentVolumeClaim{} yyc4418 = true } else if len(yyv4418) != 0 { yyv4418 = yyv4418[:0] yyc4418 = true } } else if yyl4418 > 0 { var yyrr4418, yyrl4418 int var yyrt4418 bool if yyl4418 > cap(yyv4418) { yyrg4418 := len(yyv4418) > 0 yyv24418 := yyv4418 yyrl4418, yyrt4418 = z.DecInferLen(yyl4418, z.DecBasicHandle().MaxInitLen, 352) if yyrt4418 { if yyrl4418 <= cap(yyv4418) { yyv4418 = yyv4418[:yyrl4418] } else { yyv4418 = make([]PersistentVolumeClaim, yyrl4418) } } else { yyv4418 = make([]PersistentVolumeClaim, yyrl4418) } yyc4418 = true yyrr4418 = len(yyv4418) if yyrg4418 { copy(yyv4418, yyv24418) } } else if yyl4418 != len(yyv4418) { yyv4418 = yyv4418[:yyl4418] yyc4418 = true } yyj4418 := 0 for ; yyj4418 < yyrr4418; yyj4418++ { yyh4418.ElemContainerState(yyj4418) if r.TryDecodeAsNil() { yyv4418[yyj4418] = PersistentVolumeClaim{} } else { yyv4419 := &yyv4418[yyj4418] yyv4419.CodecDecodeSelf(d) } } if yyrt4418 { for ; yyj4418 < yyl4418; yyj4418++ { yyv4418 = append(yyv4418, PersistentVolumeClaim{}) yyh4418.ElemContainerState(yyj4418) if r.TryDecodeAsNil() { yyv4418[yyj4418] = PersistentVolumeClaim{} } else { yyv4420 := &yyv4418[yyj4418] yyv4420.CodecDecodeSelf(d) } } } } else { yyj4418 := 0 for ; !r.CheckBreak(); yyj4418++ { if yyj4418 >= len(yyv4418) { yyv4418 = append(yyv4418, PersistentVolumeClaim{}) // var yyz4418 PersistentVolumeClaim yyc4418 = true } yyh4418.ElemContainerState(yyj4418) if yyj4418 < len(yyv4418) { if r.TryDecodeAsNil() { yyv4418[yyj4418] = PersistentVolumeClaim{} } else { yyv4421 := &yyv4418[yyj4418] yyv4421.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4418 < len(yyv4418) { yyv4418 = yyv4418[:yyj4418] yyc4418 = true } else if yyj4418 == 0 && yyv4418 == nil { yyv4418 = []PersistentVolumeClaim{} yyc4418 = true } } yyh4418.End() if yyc4418 { *v = yyv4418 } } func (x codecSelfer1234) encSliceKeyToPath(v []KeyToPath, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4422 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4423 := &yyv4422 yy4423.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceKeyToPath(v *[]KeyToPath, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4424 := *v yyh4424, yyl4424 := z.DecSliceHelperStart() var yyc4424 bool if yyl4424 == 0 { if yyv4424 == nil { yyv4424 = []KeyToPath{} yyc4424 = true } else if len(yyv4424) != 0 { yyv4424 = yyv4424[:0] yyc4424 = true } } else if yyl4424 > 0 { var yyrr4424, yyrl4424 int var yyrt4424 bool if yyl4424 > cap(yyv4424) { yyrg4424 := len(yyv4424) > 0 yyv24424 := yyv4424 yyrl4424, yyrt4424 = z.DecInferLen(yyl4424, z.DecBasicHandle().MaxInitLen, 40) if yyrt4424 { if yyrl4424 <= cap(yyv4424) { yyv4424 = yyv4424[:yyrl4424] } else { yyv4424 = make([]KeyToPath, yyrl4424) } } else { yyv4424 = make([]KeyToPath, yyrl4424) } yyc4424 = true yyrr4424 = len(yyv4424) if yyrg4424 { copy(yyv4424, yyv24424) } } else if yyl4424 != len(yyv4424) { yyv4424 = yyv4424[:yyl4424] yyc4424 = true } yyj4424 := 0 for ; yyj4424 < yyrr4424; yyj4424++ { yyh4424.ElemContainerState(yyj4424) if r.TryDecodeAsNil() { yyv4424[yyj4424] = KeyToPath{} } else { yyv4425 := &yyv4424[yyj4424] yyv4425.CodecDecodeSelf(d) } } if yyrt4424 { for ; yyj4424 < yyl4424; yyj4424++ { yyv4424 = append(yyv4424, KeyToPath{}) yyh4424.ElemContainerState(yyj4424) if r.TryDecodeAsNil() { yyv4424[yyj4424] = KeyToPath{} } else { yyv4426 := &yyv4424[yyj4424] yyv4426.CodecDecodeSelf(d) } } } } else { yyj4424 := 0 for ; !r.CheckBreak(); yyj4424++ { if yyj4424 >= len(yyv4424) { yyv4424 = append(yyv4424, KeyToPath{}) // var yyz4424 KeyToPath yyc4424 = true } yyh4424.ElemContainerState(yyj4424) if yyj4424 < len(yyv4424) { if r.TryDecodeAsNil() { yyv4424[yyj4424] = KeyToPath{} } else { yyv4427 := &yyv4424[yyj4424] yyv4427.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4424 < len(yyv4424) { yyv4424 = yyv4424[:yyj4424] yyc4424 = true } else if yyj4424 == 0 && yyv4424 == nil { yyv4424 = []KeyToPath{} yyc4424 = true } } yyh4424.End() if yyc4424 { *v = yyv4424 } } func (x codecSelfer1234) encSliceDownwardAPIVolumeFile(v []DownwardAPIVolumeFile, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4428 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4429 := &yyv4428 yy4429.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceDownwardAPIVolumeFile(v *[]DownwardAPIVolumeFile, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4430 := *v yyh4430, yyl4430 := z.DecSliceHelperStart() var yyc4430 bool if yyl4430 == 0 { if yyv4430 == nil { yyv4430 = []DownwardAPIVolumeFile{} yyc4430 = true } else if len(yyv4430) != 0 { yyv4430 = yyv4430[:0] yyc4430 = true } } else if yyl4430 > 0 { var yyrr4430, yyrl4430 int var yyrt4430 bool if yyl4430 > cap(yyv4430) { yyrg4430 := len(yyv4430) > 0 yyv24430 := yyv4430 yyrl4430, yyrt4430 = z.DecInferLen(yyl4430, z.DecBasicHandle().MaxInitLen, 40) if yyrt4430 { if yyrl4430 <= cap(yyv4430) { yyv4430 = yyv4430[:yyrl4430] } else { yyv4430 = make([]DownwardAPIVolumeFile, yyrl4430) } } else { yyv4430 = make([]DownwardAPIVolumeFile, yyrl4430) } yyc4430 = true yyrr4430 = len(yyv4430) if yyrg4430 { copy(yyv4430, yyv24430) } } else if yyl4430 != len(yyv4430) { yyv4430 = yyv4430[:yyl4430] yyc4430 = true } yyj4430 := 0 for ; yyj4430 < yyrr4430; yyj4430++ { yyh4430.ElemContainerState(yyj4430) if r.TryDecodeAsNil() { yyv4430[yyj4430] = DownwardAPIVolumeFile{} } else { yyv4431 := &yyv4430[yyj4430] yyv4431.CodecDecodeSelf(d) } } if yyrt4430 { for ; yyj4430 < yyl4430; yyj4430++ { yyv4430 = append(yyv4430, DownwardAPIVolumeFile{}) yyh4430.ElemContainerState(yyj4430) if r.TryDecodeAsNil() { yyv4430[yyj4430] = DownwardAPIVolumeFile{} } else { yyv4432 := &yyv4430[yyj4430] yyv4432.CodecDecodeSelf(d) } } } } else { yyj4430 := 0 for ; !r.CheckBreak(); yyj4430++ { if yyj4430 >= len(yyv4430) { yyv4430 = append(yyv4430, DownwardAPIVolumeFile{}) // var yyz4430 DownwardAPIVolumeFile yyc4430 = true } yyh4430.ElemContainerState(yyj4430) if yyj4430 < len(yyv4430) { if r.TryDecodeAsNil() { yyv4430[yyj4430] = DownwardAPIVolumeFile{} } else { yyv4433 := &yyv4430[yyj4430] yyv4433.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4430 < len(yyv4430) { yyv4430 = yyv4430[:yyj4430] yyc4430 = true } else if yyj4430 == 0 && yyv4430 == nil { yyv4430 = []DownwardAPIVolumeFile{} yyc4430 = true } } yyh4430.End() if yyc4430 { *v = yyv4430 } } func (x codecSelfer1234) encSliceHTTPHeader(v []HTTPHeader, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4434 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4435 := &yyv4434 yy4435.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4436 := *v yyh4436, yyl4436 := z.DecSliceHelperStart() var yyc4436 bool if yyl4436 == 0 { if yyv4436 == nil { yyv4436 = []HTTPHeader{} yyc4436 = true } else if len(yyv4436) != 0 { yyv4436 = yyv4436[:0] yyc4436 = true } } else if yyl4436 > 0 { var yyrr4436, yyrl4436 int var yyrt4436 bool if yyl4436 > cap(yyv4436) { yyrg4436 := len(yyv4436) > 0 yyv24436 := yyv4436 yyrl4436, yyrt4436 = z.DecInferLen(yyl4436, z.DecBasicHandle().MaxInitLen, 32) if yyrt4436 { if yyrl4436 <= cap(yyv4436) { yyv4436 = yyv4436[:yyrl4436] } else { yyv4436 = make([]HTTPHeader, yyrl4436) } } else { yyv4436 = make([]HTTPHeader, yyrl4436) } yyc4436 = true yyrr4436 = len(yyv4436) if yyrg4436 { copy(yyv4436, yyv24436) } } else if yyl4436 != len(yyv4436) { yyv4436 = yyv4436[:yyl4436] yyc4436 = true } yyj4436 := 0 for ; yyj4436 < yyrr4436; yyj4436++ { yyh4436.ElemContainerState(yyj4436) if r.TryDecodeAsNil() { yyv4436[yyj4436] = HTTPHeader{} } else { yyv4437 := &yyv4436[yyj4436] yyv4437.CodecDecodeSelf(d) } } if yyrt4436 { for ; yyj4436 < yyl4436; yyj4436++ { yyv4436 = append(yyv4436, HTTPHeader{}) yyh4436.ElemContainerState(yyj4436) if r.TryDecodeAsNil() { yyv4436[yyj4436] = HTTPHeader{} } else { yyv4438 := &yyv4436[yyj4436] yyv4438.CodecDecodeSelf(d) } } } } else { yyj4436 := 0 for ; !r.CheckBreak(); yyj4436++ { if yyj4436 >= len(yyv4436) { yyv4436 = append(yyv4436, HTTPHeader{}) // var yyz4436 HTTPHeader yyc4436 = true } yyh4436.ElemContainerState(yyj4436) if yyj4436 < len(yyv4436) { if r.TryDecodeAsNil() { yyv4436[yyj4436] = HTTPHeader{} } else { yyv4439 := &yyv4436[yyj4436] yyv4439.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4436 < len(yyv4436) { yyv4436 = yyv4436[:yyj4436] yyc4436 = true } else if yyj4436 == 0 && yyv4436 == nil { yyv4436 = []HTTPHeader{} yyc4436 = true } } yyh4436.End() if yyc4436 { *v = yyv4436 } } func (x codecSelfer1234) encSliceCapability(v []Capability, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4440 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv4440.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceCapability(v *[]Capability, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4441 := *v yyh4441, yyl4441 := z.DecSliceHelperStart() var yyc4441 bool if yyl4441 == 0 { if yyv4441 == nil { yyv4441 = []Capability{} yyc4441 = true } else if len(yyv4441) != 0 { yyv4441 = yyv4441[:0] yyc4441 = true } } else if yyl4441 > 0 { var yyrr4441, yyrl4441 int var yyrt4441 bool if yyl4441 > cap(yyv4441) { yyrl4441, yyrt4441 = z.DecInferLen(yyl4441, z.DecBasicHandle().MaxInitLen, 16) if yyrt4441 { if yyrl4441 <= cap(yyv4441) { yyv4441 = yyv4441[:yyrl4441] } else { yyv4441 = make([]Capability, yyrl4441) } } else { yyv4441 = make([]Capability, yyrl4441) } yyc4441 = true yyrr4441 = len(yyv4441) } else if yyl4441 != len(yyv4441) { yyv4441 = yyv4441[:yyl4441] yyc4441 = true } yyj4441 := 0 for ; yyj4441 < yyrr4441; yyj4441++ { yyh4441.ElemContainerState(yyj4441) if r.TryDecodeAsNil() { yyv4441[yyj4441] = "" } else { yyv4441[yyj4441] = Capability(r.DecodeString()) } } if yyrt4441 { for ; yyj4441 < yyl4441; yyj4441++ { yyv4441 = append(yyv4441, "") yyh4441.ElemContainerState(yyj4441) if r.TryDecodeAsNil() { yyv4441[yyj4441] = "" } else { yyv4441[yyj4441] = Capability(r.DecodeString()) } } } } else { yyj4441 := 0 for ; !r.CheckBreak(); yyj4441++ { if yyj4441 >= len(yyv4441) { yyv4441 = append(yyv4441, "") // var yyz4441 Capability yyc4441 = true } yyh4441.ElemContainerState(yyj4441) if yyj4441 < len(yyv4441) { if r.TryDecodeAsNil() { yyv4441[yyj4441] = "" } else { yyv4441[yyj4441] = Capability(r.DecodeString()) } } else { z.DecSwallow() } } if yyj4441 < len(yyv4441) { yyv4441 = yyv4441[:yyj4441] yyc4441 = true } else if yyj4441 == 0 && yyv4441 == nil { yyv4441 = []Capability{} yyc4441 = true } } yyh4441.End() if yyc4441 { *v = yyv4441 } } func (x codecSelfer1234) encSliceContainerPort(v []ContainerPort, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4445 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4446 := &yyv4445 yy4446.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceContainerPort(v *[]ContainerPort, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4447 := *v yyh4447, yyl4447 := z.DecSliceHelperStart() var yyc4447 bool if yyl4447 == 0 { if yyv4447 == nil { yyv4447 = []ContainerPort{} yyc4447 = true } else if len(yyv4447) != 0 { yyv4447 = yyv4447[:0] yyc4447 = true } } else if yyl4447 > 0 { var yyrr4447, yyrl4447 int var yyrt4447 bool if yyl4447 > cap(yyv4447) { yyrg4447 := len(yyv4447) > 0 yyv24447 := yyv4447 yyrl4447, yyrt4447 = z.DecInferLen(yyl4447, z.DecBasicHandle().MaxInitLen, 56) if yyrt4447 { if yyrl4447 <= cap(yyv4447) { yyv4447 = yyv4447[:yyrl4447] } else { yyv4447 = make([]ContainerPort, yyrl4447) } } else { yyv4447 = make([]ContainerPort, yyrl4447) } yyc4447 = true yyrr4447 = len(yyv4447) if yyrg4447 { copy(yyv4447, yyv24447) } } else if yyl4447 != len(yyv4447) { yyv4447 = yyv4447[:yyl4447] yyc4447 = true } yyj4447 := 0 for ; yyj4447 < yyrr4447; yyj4447++ { yyh4447.ElemContainerState(yyj4447) if r.TryDecodeAsNil() { yyv4447[yyj4447] = ContainerPort{} } else { yyv4448 := &yyv4447[yyj4447] yyv4448.CodecDecodeSelf(d) } } if yyrt4447 { for ; yyj4447 < yyl4447; yyj4447++ { yyv4447 = append(yyv4447, ContainerPort{}) yyh4447.ElemContainerState(yyj4447) if r.TryDecodeAsNil() { yyv4447[yyj4447] = ContainerPort{} } else { yyv4449 := &yyv4447[yyj4447] yyv4449.CodecDecodeSelf(d) } } } } else { yyj4447 := 0 for ; !r.CheckBreak(); yyj4447++ { if yyj4447 >= len(yyv4447) { yyv4447 = append(yyv4447, ContainerPort{}) // var yyz4447 ContainerPort yyc4447 = true } yyh4447.ElemContainerState(yyj4447) if yyj4447 < len(yyv4447) { if r.TryDecodeAsNil() { yyv4447[yyj4447] = ContainerPort{} } else { yyv4450 := &yyv4447[yyj4447] yyv4450.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4447 < len(yyv4447) { yyv4447 = yyv4447[:yyj4447] yyc4447 = true } else if yyj4447 == 0 && yyv4447 == nil { yyv4447 = []ContainerPort{} yyc4447 = true } } yyh4447.End() if yyc4447 { *v = yyv4447 } } func (x codecSelfer1234) encSliceEnvVar(v []EnvVar, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4451 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4452 := &yyv4451 yy4452.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceEnvVar(v *[]EnvVar, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4453 := *v yyh4453, yyl4453 := z.DecSliceHelperStart() var yyc4453 bool if yyl4453 == 0 { if yyv4453 == nil { yyv4453 = []EnvVar{} yyc4453 = true } else if len(yyv4453) != 0 { yyv4453 = yyv4453[:0] yyc4453 = true } } else if yyl4453 > 0 { var yyrr4453, yyrl4453 int var yyrt4453 bool if yyl4453 > cap(yyv4453) { yyrg4453 := len(yyv4453) > 0 yyv24453 := yyv4453 yyrl4453, yyrt4453 = z.DecInferLen(yyl4453, z.DecBasicHandle().MaxInitLen, 40) if yyrt4453 { if yyrl4453 <= cap(yyv4453) { yyv4453 = yyv4453[:yyrl4453] } else { yyv4453 = make([]EnvVar, yyrl4453) } } else { yyv4453 = make([]EnvVar, yyrl4453) } yyc4453 = true yyrr4453 = len(yyv4453) if yyrg4453 { copy(yyv4453, yyv24453) } } else if yyl4453 != len(yyv4453) { yyv4453 = yyv4453[:yyl4453] yyc4453 = true } yyj4453 := 0 for ; yyj4453 < yyrr4453; yyj4453++ { yyh4453.ElemContainerState(yyj4453) if r.TryDecodeAsNil() { yyv4453[yyj4453] = EnvVar{} } else { yyv4454 := &yyv4453[yyj4453] yyv4454.CodecDecodeSelf(d) } } if yyrt4453 { for ; yyj4453 < yyl4453; yyj4453++ { yyv4453 = append(yyv4453, EnvVar{}) yyh4453.ElemContainerState(yyj4453) if r.TryDecodeAsNil() { yyv4453[yyj4453] = EnvVar{} } else { yyv4455 := &yyv4453[yyj4453] yyv4455.CodecDecodeSelf(d) } } } } else { yyj4453 := 0 for ; !r.CheckBreak(); yyj4453++ { if yyj4453 >= len(yyv4453) { yyv4453 = append(yyv4453, EnvVar{}) // var yyz4453 EnvVar yyc4453 = true } yyh4453.ElemContainerState(yyj4453) if yyj4453 < len(yyv4453) { if r.TryDecodeAsNil() { yyv4453[yyj4453] = EnvVar{} } else { yyv4456 := &yyv4453[yyj4453] yyv4456.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4453 < len(yyv4453) { yyv4453 = yyv4453[:yyj4453] yyc4453 = true } else if yyj4453 == 0 && yyv4453 == nil { yyv4453 = []EnvVar{} yyc4453 = true } } yyh4453.End() if yyc4453 { *v = yyv4453 } } func (x codecSelfer1234) encSliceVolumeMount(v []VolumeMount, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4457 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4458 := &yyv4457 yy4458.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceVolumeMount(v *[]VolumeMount, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4459 := *v yyh4459, yyl4459 := z.DecSliceHelperStart() var yyc4459 bool if yyl4459 == 0 { if yyv4459 == nil { yyv4459 = []VolumeMount{} yyc4459 = true } else if len(yyv4459) != 0 { yyv4459 = yyv4459[:0] yyc4459 = true } } else if yyl4459 > 0 { var yyrr4459, yyrl4459 int var yyrt4459 bool if yyl4459 > cap(yyv4459) { yyrg4459 := len(yyv4459) > 0 yyv24459 := yyv4459 yyrl4459, yyrt4459 = z.DecInferLen(yyl4459, z.DecBasicHandle().MaxInitLen, 56) if yyrt4459 { if yyrl4459 <= cap(yyv4459) { yyv4459 = yyv4459[:yyrl4459] } else { yyv4459 = make([]VolumeMount, yyrl4459) } } else { yyv4459 = make([]VolumeMount, yyrl4459) } yyc4459 = true yyrr4459 = len(yyv4459) if yyrg4459 { copy(yyv4459, yyv24459) } } else if yyl4459 != len(yyv4459) { yyv4459 = yyv4459[:yyl4459] yyc4459 = true } yyj4459 := 0 for ; yyj4459 < yyrr4459; yyj4459++ { yyh4459.ElemContainerState(yyj4459) if r.TryDecodeAsNil() { yyv4459[yyj4459] = VolumeMount{} } else { yyv4460 := &yyv4459[yyj4459] yyv4460.CodecDecodeSelf(d) } } if yyrt4459 { for ; yyj4459 < yyl4459; yyj4459++ { yyv4459 = append(yyv4459, VolumeMount{}) yyh4459.ElemContainerState(yyj4459) if r.TryDecodeAsNil() { yyv4459[yyj4459] = VolumeMount{} } else { yyv4461 := &yyv4459[yyj4459] yyv4461.CodecDecodeSelf(d) } } } } else { yyj4459 := 0 for ; !r.CheckBreak(); yyj4459++ { if yyj4459 >= len(yyv4459) { yyv4459 = append(yyv4459, VolumeMount{}) // var yyz4459 VolumeMount yyc4459 = true } yyh4459.ElemContainerState(yyj4459) if yyj4459 < len(yyv4459) { if r.TryDecodeAsNil() { yyv4459[yyj4459] = VolumeMount{} } else { yyv4462 := &yyv4459[yyj4459] yyv4462.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4459 < len(yyv4459) { yyv4459 = yyv4459[:yyj4459] yyc4459 = true } else if yyj4459 == 0 && yyv4459 == nil { yyv4459 = []VolumeMount{} yyc4459 = true } } yyh4459.End() if yyc4459 { *v = yyv4459 } } func (x codecSelfer1234) encSlicePod(v []Pod, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4463 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4464 := &yyv4463 yy4464.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSlicePod(v *[]Pod, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4465 := *v yyh4465, yyl4465 := z.DecSliceHelperStart() var yyc4465 bool if yyl4465 == 0 { if yyv4465 == nil { yyv4465 = []Pod{} yyc4465 = true } else if len(yyv4465) != 0 { yyv4465 = yyv4465[:0] yyc4465 = true } } else if yyl4465 > 0 { var yyrr4465, yyrl4465 int var yyrt4465 bool if yyl4465 > cap(yyv4465) { yyrg4465 := len(yyv4465) > 0 yyv24465 := yyv4465 yyrl4465, yyrt4465 = z.DecInferLen(yyl4465, z.DecBasicHandle().MaxInitLen, 624) if yyrt4465 { if yyrl4465 <= cap(yyv4465) { yyv4465 = yyv4465[:yyrl4465] } else { yyv4465 = make([]Pod, yyrl4465) } } else { yyv4465 = make([]Pod, yyrl4465) } yyc4465 = true yyrr4465 = len(yyv4465) if yyrg4465 { copy(yyv4465, yyv24465) } } else if yyl4465 != len(yyv4465) { yyv4465 = yyv4465[:yyl4465] yyc4465 = true } yyj4465 := 0 for ; yyj4465 < yyrr4465; yyj4465++ { yyh4465.ElemContainerState(yyj4465) if r.TryDecodeAsNil() { yyv4465[yyj4465] = Pod{} } else { yyv4466 := &yyv4465[yyj4465] yyv4466.CodecDecodeSelf(d) } } if yyrt4465 { for ; yyj4465 < yyl4465; yyj4465++ { yyv4465 = append(yyv4465, Pod{}) yyh4465.ElemContainerState(yyj4465) if r.TryDecodeAsNil() { yyv4465[yyj4465] = Pod{} } else { yyv4467 := &yyv4465[yyj4465] yyv4467.CodecDecodeSelf(d) } } } } else { yyj4465 := 0 for ; !r.CheckBreak(); yyj4465++ { if yyj4465 >= len(yyv4465) { yyv4465 = append(yyv4465, Pod{}) // var yyz4465 Pod yyc4465 = true } yyh4465.ElemContainerState(yyj4465) if yyj4465 < len(yyv4465) { if r.TryDecodeAsNil() { yyv4465[yyj4465] = Pod{} } else { yyv4468 := &yyv4465[yyj4465] yyv4468.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4465 < len(yyv4465) { yyv4465 = yyv4465[:yyj4465] yyc4465 = true } else if yyj4465 == 0 && yyv4465 == nil { yyv4465 = []Pod{} yyc4465 = true } } yyh4465.End() if yyc4465 { *v = yyv4465 } } func (x codecSelfer1234) encSliceNodeSelectorTerm(v []NodeSelectorTerm, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4469 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4470 := &yyv4469 yy4470.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceNodeSelectorTerm(v *[]NodeSelectorTerm, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4471 := *v yyh4471, yyl4471 := z.DecSliceHelperStart() var yyc4471 bool if yyl4471 == 0 { if yyv4471 == nil { yyv4471 = []NodeSelectorTerm{} yyc4471 = true } else if len(yyv4471) != 0 { yyv4471 = yyv4471[:0] yyc4471 = true } } else if yyl4471 > 0 { var yyrr4471, yyrl4471 int var yyrt4471 bool if yyl4471 > cap(yyv4471) { yyrg4471 := len(yyv4471) > 0 yyv24471 := yyv4471 yyrl4471, yyrt4471 = z.DecInferLen(yyl4471, z.DecBasicHandle().MaxInitLen, 24) if yyrt4471 { if yyrl4471 <= cap(yyv4471) { yyv4471 = yyv4471[:yyrl4471] } else { yyv4471 = make([]NodeSelectorTerm, yyrl4471) } } else { yyv4471 = make([]NodeSelectorTerm, yyrl4471) } yyc4471 = true yyrr4471 = len(yyv4471) if yyrg4471 { copy(yyv4471, yyv24471) } } else if yyl4471 != len(yyv4471) { yyv4471 = yyv4471[:yyl4471] yyc4471 = true } yyj4471 := 0 for ; yyj4471 < yyrr4471; yyj4471++ { yyh4471.ElemContainerState(yyj4471) if r.TryDecodeAsNil() { yyv4471[yyj4471] = NodeSelectorTerm{} } else { yyv4472 := &yyv4471[yyj4471] yyv4472.CodecDecodeSelf(d) } } if yyrt4471 { for ; yyj4471 < yyl4471; yyj4471++ { yyv4471 = append(yyv4471, NodeSelectorTerm{}) yyh4471.ElemContainerState(yyj4471) if r.TryDecodeAsNil() { yyv4471[yyj4471] = NodeSelectorTerm{} } else { yyv4473 := &yyv4471[yyj4471] yyv4473.CodecDecodeSelf(d) } } } } else { yyj4471 := 0 for ; !r.CheckBreak(); yyj4471++ { if yyj4471 >= len(yyv4471) { yyv4471 = append(yyv4471, NodeSelectorTerm{}) // var yyz4471 NodeSelectorTerm yyc4471 = true } yyh4471.ElemContainerState(yyj4471) if yyj4471 < len(yyv4471) { if r.TryDecodeAsNil() { yyv4471[yyj4471] = NodeSelectorTerm{} } else { yyv4474 := &yyv4471[yyj4471] yyv4474.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4471 < len(yyv4471) { yyv4471 = yyv4471[:yyj4471] yyc4471 = true } else if yyj4471 == 0 && yyv4471 == nil { yyv4471 = []NodeSelectorTerm{} yyc4471 = true } } yyh4471.End() if yyc4471 { *v = yyv4471 } } func (x codecSelfer1234) encSliceNodeSelectorRequirement(v []NodeSelectorRequirement, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4475 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4476 := &yyv4475 yy4476.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceNodeSelectorRequirement(v *[]NodeSelectorRequirement, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4477 := *v yyh4477, yyl4477 := z.DecSliceHelperStart() var yyc4477 bool if yyl4477 == 0 { if yyv4477 == nil { yyv4477 = []NodeSelectorRequirement{} yyc4477 = true } else if len(yyv4477) != 0 { yyv4477 = yyv4477[:0] yyc4477 = true } } else if yyl4477 > 0 { var yyrr4477, yyrl4477 int var yyrt4477 bool if yyl4477 > cap(yyv4477) { yyrg4477 := len(yyv4477) > 0 yyv24477 := yyv4477 yyrl4477, yyrt4477 = z.DecInferLen(yyl4477, z.DecBasicHandle().MaxInitLen, 56) if yyrt4477 { if yyrl4477 <= cap(yyv4477) { yyv4477 = yyv4477[:yyrl4477] } else { yyv4477 = make([]NodeSelectorRequirement, yyrl4477) } } else { yyv4477 = make([]NodeSelectorRequirement, yyrl4477) } yyc4477 = true yyrr4477 = len(yyv4477) if yyrg4477 { copy(yyv4477, yyv24477) } } else if yyl4477 != len(yyv4477) { yyv4477 = yyv4477[:yyl4477] yyc4477 = true } yyj4477 := 0 for ; yyj4477 < yyrr4477; yyj4477++ { yyh4477.ElemContainerState(yyj4477) if r.TryDecodeAsNil() { yyv4477[yyj4477] = NodeSelectorRequirement{} } else { yyv4478 := &yyv4477[yyj4477] yyv4478.CodecDecodeSelf(d) } } if yyrt4477 { for ; yyj4477 < yyl4477; yyj4477++ { yyv4477 = append(yyv4477, NodeSelectorRequirement{}) yyh4477.ElemContainerState(yyj4477) if r.TryDecodeAsNil() { yyv4477[yyj4477] = NodeSelectorRequirement{} } else { yyv4479 := &yyv4477[yyj4477] yyv4479.CodecDecodeSelf(d) } } } } else { yyj4477 := 0 for ; !r.CheckBreak(); yyj4477++ { if yyj4477 >= len(yyv4477) { yyv4477 = append(yyv4477, NodeSelectorRequirement{}) // var yyz4477 NodeSelectorRequirement yyc4477 = true } yyh4477.ElemContainerState(yyj4477) if yyj4477 < len(yyv4477) { if r.TryDecodeAsNil() { yyv4477[yyj4477] = NodeSelectorRequirement{} } else { yyv4480 := &yyv4477[yyj4477] yyv4480.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4477 < len(yyv4477) { yyv4477 = yyv4477[:yyj4477] yyc4477 = true } else if yyj4477 == 0 && yyv4477 == nil { yyv4477 = []NodeSelectorRequirement{} yyc4477 = true } } yyh4477.End() if yyc4477 { *v = yyv4477 } } func (x codecSelfer1234) encSlicePodAffinityTerm(v []PodAffinityTerm, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4481 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4482 := &yyv4481 yy4482.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSlicePodAffinityTerm(v *[]PodAffinityTerm, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4483 := *v yyh4483, yyl4483 := z.DecSliceHelperStart() var yyc4483 bool if yyl4483 == 0 { if yyv4483 == nil { yyv4483 = []PodAffinityTerm{} yyc4483 = true } else if len(yyv4483) != 0 { yyv4483 = yyv4483[:0] yyc4483 = true } } else if yyl4483 > 0 { var yyrr4483, yyrl4483 int var yyrt4483 bool if yyl4483 > cap(yyv4483) { yyrg4483 := len(yyv4483) > 0 yyv24483 := yyv4483 yyrl4483, yyrt4483 = z.DecInferLen(yyl4483, z.DecBasicHandle().MaxInitLen, 48) if yyrt4483 { if yyrl4483 <= cap(yyv4483) { yyv4483 = yyv4483[:yyrl4483] } else { yyv4483 = make([]PodAffinityTerm, yyrl4483) } } else { yyv4483 = make([]PodAffinityTerm, yyrl4483) } yyc4483 = true yyrr4483 = len(yyv4483) if yyrg4483 { copy(yyv4483, yyv24483) } } else if yyl4483 != len(yyv4483) { yyv4483 = yyv4483[:yyl4483] yyc4483 = true } yyj4483 := 0 for ; yyj4483 < yyrr4483; yyj4483++ { yyh4483.ElemContainerState(yyj4483) if r.TryDecodeAsNil() { yyv4483[yyj4483] = PodAffinityTerm{} } else { yyv4484 := &yyv4483[yyj4483] yyv4484.CodecDecodeSelf(d) } } if yyrt4483 { for ; yyj4483 < yyl4483; yyj4483++ { yyv4483 = append(yyv4483, PodAffinityTerm{}) yyh4483.ElemContainerState(yyj4483) if r.TryDecodeAsNil() { yyv4483[yyj4483] = PodAffinityTerm{} } else { yyv4485 := &yyv4483[yyj4483] yyv4485.CodecDecodeSelf(d) } } } } else { yyj4483 := 0 for ; !r.CheckBreak(); yyj4483++ { if yyj4483 >= len(yyv4483) { yyv4483 = append(yyv4483, PodAffinityTerm{}) // var yyz4483 PodAffinityTerm yyc4483 = true } yyh4483.ElemContainerState(yyj4483) if yyj4483 < len(yyv4483) { if r.TryDecodeAsNil() { yyv4483[yyj4483] = PodAffinityTerm{} } else { yyv4486 := &yyv4483[yyj4483] yyv4486.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4483 < len(yyv4483) { yyv4483 = yyv4483[:yyj4483] yyc4483 = true } else if yyj4483 == 0 && yyv4483 == nil { yyv4483 = []PodAffinityTerm{} yyc4483 = true } } yyh4483.End() if yyc4483 { *v = yyv4483 } } func (x codecSelfer1234) encSliceWeightedPodAffinityTerm(v []WeightedPodAffinityTerm, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4487 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4488 := &yyv4487 yy4488.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinityTerm, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4489 := *v yyh4489, yyl4489 := z.DecSliceHelperStart() var yyc4489 bool if yyl4489 == 0 { if yyv4489 == nil { yyv4489 = []WeightedPodAffinityTerm{} yyc4489 = true } else if len(yyv4489) != 0 { yyv4489 = yyv4489[:0] yyc4489 = true } } else if yyl4489 > 0 { var yyrr4489, yyrl4489 int var yyrt4489 bool if yyl4489 > cap(yyv4489) { yyrg4489 := len(yyv4489) > 0 yyv24489 := yyv4489 yyrl4489, yyrt4489 = z.DecInferLen(yyl4489, z.DecBasicHandle().MaxInitLen, 56) if yyrt4489 { if yyrl4489 <= cap(yyv4489) { yyv4489 = yyv4489[:yyrl4489] } else { yyv4489 = make([]WeightedPodAffinityTerm, yyrl4489) } } else { yyv4489 = make([]WeightedPodAffinityTerm, yyrl4489) } yyc4489 = true yyrr4489 = len(yyv4489) if yyrg4489 { copy(yyv4489, yyv24489) } } else if yyl4489 != len(yyv4489) { yyv4489 = yyv4489[:yyl4489] yyc4489 = true } yyj4489 := 0 for ; yyj4489 < yyrr4489; yyj4489++ { yyh4489.ElemContainerState(yyj4489) if r.TryDecodeAsNil() { yyv4489[yyj4489] = WeightedPodAffinityTerm{} } else { yyv4490 := &yyv4489[yyj4489] yyv4490.CodecDecodeSelf(d) } } if yyrt4489 { for ; yyj4489 < yyl4489; yyj4489++ { yyv4489 = append(yyv4489, WeightedPodAffinityTerm{}) yyh4489.ElemContainerState(yyj4489) if r.TryDecodeAsNil() { yyv4489[yyj4489] = WeightedPodAffinityTerm{} } else { yyv4491 := &yyv4489[yyj4489] yyv4491.CodecDecodeSelf(d) } } } } else { yyj4489 := 0 for ; !r.CheckBreak(); yyj4489++ { if yyj4489 >= len(yyv4489) { yyv4489 = append(yyv4489, WeightedPodAffinityTerm{}) // var yyz4489 WeightedPodAffinityTerm yyc4489 = true } yyh4489.ElemContainerState(yyj4489) if yyj4489 < len(yyv4489) { if r.TryDecodeAsNil() { yyv4489[yyj4489] = WeightedPodAffinityTerm{} } else { yyv4492 := &yyv4489[yyj4489] yyv4492.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4489 < len(yyv4489) { yyv4489 = yyv4489[:yyj4489] yyc4489 = true } else if yyj4489 == 0 && yyv4489 == nil { yyv4489 = []WeightedPodAffinityTerm{} yyc4489 = true } } yyh4489.End() if yyc4489 { *v = yyv4489 } } func (x codecSelfer1234) encSlicePreferredSchedulingTerm(v []PreferredSchedulingTerm, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4493 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4494 := &yyv4493 yy4494.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulingTerm, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4495 := *v yyh4495, yyl4495 := z.DecSliceHelperStart() var yyc4495 bool if yyl4495 == 0 { if yyv4495 == nil { yyv4495 = []PreferredSchedulingTerm{} yyc4495 = true } else if len(yyv4495) != 0 { yyv4495 = yyv4495[:0] yyc4495 = true } } else if yyl4495 > 0 { var yyrr4495, yyrl4495 int var yyrt4495 bool if yyl4495 > cap(yyv4495) { yyrg4495 := len(yyv4495) > 0 yyv24495 := yyv4495 yyrl4495, yyrt4495 = z.DecInferLen(yyl4495, z.DecBasicHandle().MaxInitLen, 32) if yyrt4495 { if yyrl4495 <= cap(yyv4495) { yyv4495 = yyv4495[:yyrl4495] } else { yyv4495 = make([]PreferredSchedulingTerm, yyrl4495) } } else { yyv4495 = make([]PreferredSchedulingTerm, yyrl4495) } yyc4495 = true yyrr4495 = len(yyv4495) if yyrg4495 { copy(yyv4495, yyv24495) } } else if yyl4495 != len(yyv4495) { yyv4495 = yyv4495[:yyl4495] yyc4495 = true } yyj4495 := 0 for ; yyj4495 < yyrr4495; yyj4495++ { yyh4495.ElemContainerState(yyj4495) if r.TryDecodeAsNil() { yyv4495[yyj4495] = PreferredSchedulingTerm{} } else { yyv4496 := &yyv4495[yyj4495] yyv4496.CodecDecodeSelf(d) } } if yyrt4495 { for ; yyj4495 < yyl4495; yyj4495++ { yyv4495 = append(yyv4495, PreferredSchedulingTerm{}) yyh4495.ElemContainerState(yyj4495) if r.TryDecodeAsNil() { yyv4495[yyj4495] = PreferredSchedulingTerm{} } else { yyv4497 := &yyv4495[yyj4495] yyv4497.CodecDecodeSelf(d) } } } } else { yyj4495 := 0 for ; !r.CheckBreak(); yyj4495++ { if yyj4495 >= len(yyv4495) { yyv4495 = append(yyv4495, PreferredSchedulingTerm{}) // var yyz4495 PreferredSchedulingTerm yyc4495 = true } yyh4495.ElemContainerState(yyj4495) if yyj4495 < len(yyv4495) { if r.TryDecodeAsNil() { yyv4495[yyj4495] = PreferredSchedulingTerm{} } else { yyv4498 := &yyv4495[yyj4495] yyv4498.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4495 < len(yyv4495) { yyv4495 = yyv4495[:yyj4495] yyc4495 = true } else if yyj4495 == 0 && yyv4495 == nil { yyv4495 = []PreferredSchedulingTerm{} yyc4495 = true } } yyh4495.End() if yyc4495 { *v = yyv4495 } } func (x codecSelfer1234) encSliceVolume(v []Volume, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4499 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4500 := &yyv4499 yy4500.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4501 := *v yyh4501, yyl4501 := z.DecSliceHelperStart() var yyc4501 bool if yyl4501 == 0 { if yyv4501 == nil { yyv4501 = []Volume{} yyc4501 = true } else if len(yyv4501) != 0 { yyv4501 = yyv4501[:0] yyc4501 = true } } else if yyl4501 > 0 { var yyrr4501, yyrl4501 int var yyrt4501 bool if yyl4501 > cap(yyv4501) { yyrg4501 := len(yyv4501) > 0 yyv24501 := yyv4501 yyrl4501, yyrt4501 = z.DecInferLen(yyl4501, z.DecBasicHandle().MaxInitLen, 176) if yyrt4501 { if yyrl4501 <= cap(yyv4501) { yyv4501 = yyv4501[:yyrl4501] } else { yyv4501 = make([]Volume, yyrl4501) } } else { yyv4501 = make([]Volume, yyrl4501) } yyc4501 = true yyrr4501 = len(yyv4501) if yyrg4501 { copy(yyv4501, yyv24501) } } else if yyl4501 != len(yyv4501) { yyv4501 = yyv4501[:yyl4501] yyc4501 = true } yyj4501 := 0 for ; yyj4501 < yyrr4501; yyj4501++ { yyh4501.ElemContainerState(yyj4501) if r.TryDecodeAsNil() { yyv4501[yyj4501] = Volume{} } else { yyv4502 := &yyv4501[yyj4501] yyv4502.CodecDecodeSelf(d) } } if yyrt4501 { for ; yyj4501 < yyl4501; yyj4501++ { yyv4501 = append(yyv4501, Volume{}) yyh4501.ElemContainerState(yyj4501) if r.TryDecodeAsNil() { yyv4501[yyj4501] = Volume{} } else { yyv4503 := &yyv4501[yyj4501] yyv4503.CodecDecodeSelf(d) } } } } else { yyj4501 := 0 for ; !r.CheckBreak(); yyj4501++ { if yyj4501 >= len(yyv4501) { yyv4501 = append(yyv4501, Volume{}) // var yyz4501 Volume yyc4501 = true } yyh4501.ElemContainerState(yyj4501) if yyj4501 < len(yyv4501) { if r.TryDecodeAsNil() { yyv4501[yyj4501] = Volume{} } else { yyv4504 := &yyv4501[yyj4501] yyv4504.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4501 < len(yyv4501) { yyv4501 = yyv4501[:yyj4501] yyc4501 = true } else if yyj4501 == 0 && yyv4501 == nil { yyv4501 = []Volume{} yyc4501 = true } } yyh4501.End() if yyc4501 { *v = yyv4501 } } func (x codecSelfer1234) encSliceContainer(v []Container, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4505 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4506 := &yyv4505 yy4506.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4507 := *v yyh4507, yyl4507 := z.DecSliceHelperStart() var yyc4507 bool if yyl4507 == 0 { if yyv4507 == nil { yyv4507 = []Container{} yyc4507 = true } else if len(yyv4507) != 0 { yyv4507 = yyv4507[:0] yyc4507 = true } } else if yyl4507 > 0 { var yyrr4507, yyrl4507 int var yyrt4507 bool if yyl4507 > cap(yyv4507) { yyrg4507 := len(yyv4507) > 0 yyv24507 := yyv4507 yyrl4507, yyrt4507 = z.DecInferLen(yyl4507, z.DecBasicHandle().MaxInitLen, 256) if yyrt4507 { if yyrl4507 <= cap(yyv4507) { yyv4507 = yyv4507[:yyrl4507] } else { yyv4507 = make([]Container, yyrl4507) } } else { yyv4507 = make([]Container, yyrl4507) } yyc4507 = true yyrr4507 = len(yyv4507) if yyrg4507 { copy(yyv4507, yyv24507) } } else if yyl4507 != len(yyv4507) { yyv4507 = yyv4507[:yyl4507] yyc4507 = true } yyj4507 := 0 for ; yyj4507 < yyrr4507; yyj4507++ { yyh4507.ElemContainerState(yyj4507) if r.TryDecodeAsNil() { yyv4507[yyj4507] = Container{} } else { yyv4508 := &yyv4507[yyj4507] yyv4508.CodecDecodeSelf(d) } } if yyrt4507 { for ; yyj4507 < yyl4507; yyj4507++ { yyv4507 = append(yyv4507, Container{}) yyh4507.ElemContainerState(yyj4507) if r.TryDecodeAsNil() { yyv4507[yyj4507] = Container{} } else { yyv4509 := &yyv4507[yyj4507] yyv4509.CodecDecodeSelf(d) } } } } else { yyj4507 := 0 for ; !r.CheckBreak(); yyj4507++ { if yyj4507 >= len(yyv4507) { yyv4507 = append(yyv4507, Container{}) // var yyz4507 Container yyc4507 = true } yyh4507.ElemContainerState(yyj4507) if yyj4507 < len(yyv4507) { if r.TryDecodeAsNil() { yyv4507[yyj4507] = Container{} } else { yyv4510 := &yyv4507[yyj4507] yyv4510.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4507 < len(yyv4507) { yyv4507 = yyv4507[:yyj4507] yyc4507 = true } else if yyj4507 == 0 && yyv4507 == nil { yyv4507 = []Container{} yyc4507 = true } } yyh4507.End() if yyc4507 { *v = yyv4507 } } func (x codecSelfer1234) encSliceLocalObjectReference(v []LocalObjectReference, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4511 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4512 := &yyv4511 yy4512.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4513 := *v yyh4513, yyl4513 := z.DecSliceHelperStart() var yyc4513 bool if yyl4513 == 0 { if yyv4513 == nil { yyv4513 = []LocalObjectReference{} yyc4513 = true } else if len(yyv4513) != 0 { yyv4513 = yyv4513[:0] yyc4513 = true } } else if yyl4513 > 0 { var yyrr4513, yyrl4513 int var yyrt4513 bool if yyl4513 > cap(yyv4513) { yyrg4513 := len(yyv4513) > 0 yyv24513 := yyv4513 yyrl4513, yyrt4513 = z.DecInferLen(yyl4513, z.DecBasicHandle().MaxInitLen, 16) if yyrt4513 { if yyrl4513 <= cap(yyv4513) { yyv4513 = yyv4513[:yyrl4513] } else { yyv4513 = make([]LocalObjectReference, yyrl4513) } } else { yyv4513 = make([]LocalObjectReference, yyrl4513) } yyc4513 = true yyrr4513 = len(yyv4513) if yyrg4513 { copy(yyv4513, yyv24513) } } else if yyl4513 != len(yyv4513) { yyv4513 = yyv4513[:yyl4513] yyc4513 = true } yyj4513 := 0 for ; yyj4513 < yyrr4513; yyj4513++ { yyh4513.ElemContainerState(yyj4513) if r.TryDecodeAsNil() { yyv4513[yyj4513] = LocalObjectReference{} } else { yyv4514 := &yyv4513[yyj4513] yyv4514.CodecDecodeSelf(d) } } if yyrt4513 { for ; yyj4513 < yyl4513; yyj4513++ { yyv4513 = append(yyv4513, LocalObjectReference{}) yyh4513.ElemContainerState(yyj4513) if r.TryDecodeAsNil() { yyv4513[yyj4513] = LocalObjectReference{} } else { yyv4515 := &yyv4513[yyj4513] yyv4515.CodecDecodeSelf(d) } } } } else { yyj4513 := 0 for ; !r.CheckBreak(); yyj4513++ { if yyj4513 >= len(yyv4513) { yyv4513 = append(yyv4513, LocalObjectReference{}) // var yyz4513 LocalObjectReference yyc4513 = true } yyh4513.ElemContainerState(yyj4513) if yyj4513 < len(yyv4513) { if r.TryDecodeAsNil() { yyv4513[yyj4513] = LocalObjectReference{} } else { yyv4516 := &yyv4513[yyj4513] yyv4516.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4513 < len(yyv4513) { yyv4513 = yyv4513[:yyj4513] yyc4513 = true } else if yyj4513 == 0 && yyv4513 == nil { yyv4513 = []LocalObjectReference{} yyc4513 = true } } yyh4513.End() if yyc4513 { *v = yyv4513 } } func (x codecSelfer1234) encSlicePodCondition(v []PodCondition, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4517 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4518 := &yyv4517 yy4518.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4519 := *v yyh4519, yyl4519 := z.DecSliceHelperStart() var yyc4519 bool if yyl4519 == 0 { if yyv4519 == nil { yyv4519 = []PodCondition{} yyc4519 = true } else if len(yyv4519) != 0 { yyv4519 = yyv4519[:0] yyc4519 = true } } else if yyl4519 > 0 { var yyrr4519, yyrl4519 int var yyrt4519 bool if yyl4519 > cap(yyv4519) { yyrg4519 := len(yyv4519) > 0 yyv24519 := yyv4519 yyrl4519, yyrt4519 = z.DecInferLen(yyl4519, z.DecBasicHandle().MaxInitLen, 112) if yyrt4519 { if yyrl4519 <= cap(yyv4519) { yyv4519 = yyv4519[:yyrl4519] } else { yyv4519 = make([]PodCondition, yyrl4519) } } else { yyv4519 = make([]PodCondition, yyrl4519) } yyc4519 = true yyrr4519 = len(yyv4519) if yyrg4519 { copy(yyv4519, yyv24519) } } else if yyl4519 != len(yyv4519) { yyv4519 = yyv4519[:yyl4519] yyc4519 = true } yyj4519 := 0 for ; yyj4519 < yyrr4519; yyj4519++ { yyh4519.ElemContainerState(yyj4519) if r.TryDecodeAsNil() { yyv4519[yyj4519] = PodCondition{} } else { yyv4520 := &yyv4519[yyj4519] yyv4520.CodecDecodeSelf(d) } } if yyrt4519 { for ; yyj4519 < yyl4519; yyj4519++ { yyv4519 = append(yyv4519, PodCondition{}) yyh4519.ElemContainerState(yyj4519) if r.TryDecodeAsNil() { yyv4519[yyj4519] = PodCondition{} } else { yyv4521 := &yyv4519[yyj4519] yyv4521.CodecDecodeSelf(d) } } } } else { yyj4519 := 0 for ; !r.CheckBreak(); yyj4519++ { if yyj4519 >= len(yyv4519) { yyv4519 = append(yyv4519, PodCondition{}) // var yyz4519 PodCondition yyc4519 = true } yyh4519.ElemContainerState(yyj4519) if yyj4519 < len(yyv4519) { if r.TryDecodeAsNil() { yyv4519[yyj4519] = PodCondition{} } else { yyv4522 := &yyv4519[yyj4519] yyv4522.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4519 < len(yyv4519) { yyv4519 = yyv4519[:yyj4519] yyc4519 = true } else if yyj4519 == 0 && yyv4519 == nil { yyv4519 = []PodCondition{} yyc4519 = true } } yyh4519.End() if yyc4519 { *v = yyv4519 } } func (x codecSelfer1234) encSliceContainerStatus(v []ContainerStatus, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4523 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4524 := &yyv4523 yy4524.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4525 := *v yyh4525, yyl4525 := z.DecSliceHelperStart() var yyc4525 bool if yyl4525 == 0 { if yyv4525 == nil { yyv4525 = []ContainerStatus{} yyc4525 = true } else if len(yyv4525) != 0 { yyv4525 = yyv4525[:0] yyc4525 = true } } else if yyl4525 > 0 { var yyrr4525, yyrl4525 int var yyrt4525 bool if yyl4525 > cap(yyv4525) { yyrg4525 := len(yyv4525) > 0 yyv24525 := yyv4525 yyrl4525, yyrt4525 = z.DecInferLen(yyl4525, z.DecBasicHandle().MaxInitLen, 120) if yyrt4525 { if yyrl4525 <= cap(yyv4525) { yyv4525 = yyv4525[:yyrl4525] } else { yyv4525 = make([]ContainerStatus, yyrl4525) } } else { yyv4525 = make([]ContainerStatus, yyrl4525) } yyc4525 = true yyrr4525 = len(yyv4525) if yyrg4525 { copy(yyv4525, yyv24525) } } else if yyl4525 != len(yyv4525) { yyv4525 = yyv4525[:yyl4525] yyc4525 = true } yyj4525 := 0 for ; yyj4525 < yyrr4525; yyj4525++ { yyh4525.ElemContainerState(yyj4525) if r.TryDecodeAsNil() { yyv4525[yyj4525] = ContainerStatus{} } else { yyv4526 := &yyv4525[yyj4525] yyv4526.CodecDecodeSelf(d) } } if yyrt4525 { for ; yyj4525 < yyl4525; yyj4525++ { yyv4525 = append(yyv4525, ContainerStatus{}) yyh4525.ElemContainerState(yyj4525) if r.TryDecodeAsNil() { yyv4525[yyj4525] = ContainerStatus{} } else { yyv4527 := &yyv4525[yyj4525] yyv4527.CodecDecodeSelf(d) } } } } else { yyj4525 := 0 for ; !r.CheckBreak(); yyj4525++ { if yyj4525 >= len(yyv4525) { yyv4525 = append(yyv4525, ContainerStatus{}) // var yyz4525 ContainerStatus yyc4525 = true } yyh4525.ElemContainerState(yyj4525) if yyj4525 < len(yyv4525) { if r.TryDecodeAsNil() { yyv4525[yyj4525] = ContainerStatus{} } else { yyv4528 := &yyv4525[yyj4525] yyv4528.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4525 < len(yyv4525) { yyv4525 = yyv4525[:yyj4525] yyc4525 = true } else if yyj4525 == 0 && yyv4525 == nil { yyv4525 = []ContainerStatus{} yyc4525 = true } } yyh4525.End() if yyc4525 { *v = yyv4525 } } func (x codecSelfer1234) encSlicePodTemplate(v []PodTemplate, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4529 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4530 := &yyv4529 yy4530.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSlicePodTemplate(v *[]PodTemplate, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4531 := *v yyh4531, yyl4531 := z.DecSliceHelperStart() var yyc4531 bool if yyl4531 == 0 { if yyv4531 == nil { yyv4531 = []PodTemplate{} yyc4531 = true } else if len(yyv4531) != 0 { yyv4531 = yyv4531[:0] yyc4531 = true } } else if yyl4531 > 0 { var yyrr4531, yyrl4531 int var yyrt4531 bool if yyl4531 > cap(yyv4531) { yyrg4531 := len(yyv4531) > 0 yyv24531 := yyv4531 yyrl4531, yyrt4531 = z.DecInferLen(yyl4531, z.DecBasicHandle().MaxInitLen, 672) if yyrt4531 { if yyrl4531 <= cap(yyv4531) { yyv4531 = yyv4531[:yyrl4531] } else { yyv4531 = make([]PodTemplate, yyrl4531) } } else { yyv4531 = make([]PodTemplate, yyrl4531) } yyc4531 = true yyrr4531 = len(yyv4531) if yyrg4531 { copy(yyv4531, yyv24531) } } else if yyl4531 != len(yyv4531) { yyv4531 = yyv4531[:yyl4531] yyc4531 = true } yyj4531 := 0 for ; yyj4531 < yyrr4531; yyj4531++ { yyh4531.ElemContainerState(yyj4531) if r.TryDecodeAsNil() { yyv4531[yyj4531] = PodTemplate{} } else { yyv4532 := &yyv4531[yyj4531] yyv4532.CodecDecodeSelf(d) } } if yyrt4531 { for ; yyj4531 < yyl4531; yyj4531++ { yyv4531 = append(yyv4531, PodTemplate{}) yyh4531.ElemContainerState(yyj4531) if r.TryDecodeAsNil() { yyv4531[yyj4531] = PodTemplate{} } else { yyv4533 := &yyv4531[yyj4531] yyv4533.CodecDecodeSelf(d) } } } } else { yyj4531 := 0 for ; !r.CheckBreak(); yyj4531++ { if yyj4531 >= len(yyv4531) { yyv4531 = append(yyv4531, PodTemplate{}) // var yyz4531 PodTemplate yyc4531 = true } yyh4531.ElemContainerState(yyj4531) if yyj4531 < len(yyv4531) { if r.TryDecodeAsNil() { yyv4531[yyj4531] = PodTemplate{} } else { yyv4534 := &yyv4531[yyj4531] yyv4534.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4531 < len(yyv4531) { yyv4531 = yyv4531[:yyj4531] yyc4531 = true } else if yyj4531 == 0 && yyv4531 == nil { yyv4531 = []PodTemplate{} yyc4531 = true } } yyh4531.End() if yyc4531 { *v = yyv4531 } } func (x codecSelfer1234) encSliceReplicationController(v []ReplicationController, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4535 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4536 := &yyv4535 yy4536.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationController, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4537 := *v yyh4537, yyl4537 := z.DecSliceHelperStart() var yyc4537 bool if yyl4537 == 0 { if yyv4537 == nil { yyv4537 = []ReplicationController{} yyc4537 = true } else if len(yyv4537) != 0 { yyv4537 = yyv4537[:0] yyc4537 = true } } else if yyl4537 > 0 { var yyrr4537, yyrl4537 int var yyrt4537 bool if yyl4537 > cap(yyv4537) { yyrg4537 := len(yyv4537) > 0 yyv24537 := yyv4537 yyrl4537, yyrt4537 = z.DecInferLen(yyl4537, z.DecBasicHandle().MaxInitLen, 280) if yyrt4537 { if yyrl4537 <= cap(yyv4537) { yyv4537 = yyv4537[:yyrl4537] } else { yyv4537 = make([]ReplicationController, yyrl4537) } } else { yyv4537 = make([]ReplicationController, yyrl4537) } yyc4537 = true yyrr4537 = len(yyv4537) if yyrg4537 { copy(yyv4537, yyv24537) } } else if yyl4537 != len(yyv4537) { yyv4537 = yyv4537[:yyl4537] yyc4537 = true } yyj4537 := 0 for ; yyj4537 < yyrr4537; yyj4537++ { yyh4537.ElemContainerState(yyj4537) if r.TryDecodeAsNil() { yyv4537[yyj4537] = ReplicationController{} } else { yyv4538 := &yyv4537[yyj4537] yyv4538.CodecDecodeSelf(d) } } if yyrt4537 { for ; yyj4537 < yyl4537; yyj4537++ { yyv4537 = append(yyv4537, ReplicationController{}) yyh4537.ElemContainerState(yyj4537) if r.TryDecodeAsNil() { yyv4537[yyj4537] = ReplicationController{} } else { yyv4539 := &yyv4537[yyj4537] yyv4539.CodecDecodeSelf(d) } } } } else { yyj4537 := 0 for ; !r.CheckBreak(); yyj4537++ { if yyj4537 >= len(yyv4537) { yyv4537 = append(yyv4537, ReplicationController{}) // var yyz4537 ReplicationController yyc4537 = true } yyh4537.ElemContainerState(yyj4537) if yyj4537 < len(yyv4537) { if r.TryDecodeAsNil() { yyv4537[yyj4537] = ReplicationController{} } else { yyv4540 := &yyv4537[yyj4537] yyv4540.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4537 < len(yyv4537) { yyv4537 = yyv4537[:yyj4537] yyc4537 = true } else if yyj4537 == 0 && yyv4537 == nil { yyv4537 = []ReplicationController{} yyc4537 = true } } yyh4537.End() if yyc4537 { *v = yyv4537 } } func (x codecSelfer1234) encSliceService(v []Service, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4541 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4542 := &yyv4541 yy4542.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4543 := *v yyh4543, yyl4543 := z.DecSliceHelperStart() var yyc4543 bool if yyl4543 == 0 { if yyv4543 == nil { yyv4543 = []Service{} yyc4543 = true } else if len(yyv4543) != 0 { yyv4543 = yyv4543[:0] yyc4543 = true } } else if yyl4543 > 0 { var yyrr4543, yyrl4543 int var yyrt4543 bool if yyl4543 > cap(yyv4543) { yyrg4543 := len(yyv4543) > 0 yyv24543 := yyv4543 yyrl4543, yyrt4543 = z.DecInferLen(yyl4543, z.DecBasicHandle().MaxInitLen, 408) if yyrt4543 { if yyrl4543 <= cap(yyv4543) { yyv4543 = yyv4543[:yyrl4543] } else { yyv4543 = make([]Service, yyrl4543) } } else { yyv4543 = make([]Service, yyrl4543) } yyc4543 = true yyrr4543 = len(yyv4543) if yyrg4543 { copy(yyv4543, yyv24543) } } else if yyl4543 != len(yyv4543) { yyv4543 = yyv4543[:yyl4543] yyc4543 = true } yyj4543 := 0 for ; yyj4543 < yyrr4543; yyj4543++ { yyh4543.ElemContainerState(yyj4543) if r.TryDecodeAsNil() { yyv4543[yyj4543] = Service{} } else { yyv4544 := &yyv4543[yyj4543] yyv4544.CodecDecodeSelf(d) } } if yyrt4543 { for ; yyj4543 < yyl4543; yyj4543++ { yyv4543 = append(yyv4543, Service{}) yyh4543.ElemContainerState(yyj4543) if r.TryDecodeAsNil() { yyv4543[yyj4543] = Service{} } else { yyv4545 := &yyv4543[yyj4543] yyv4545.CodecDecodeSelf(d) } } } } else { yyj4543 := 0 for ; !r.CheckBreak(); yyj4543++ { if yyj4543 >= len(yyv4543) { yyv4543 = append(yyv4543, Service{}) // var yyz4543 Service yyc4543 = true } yyh4543.ElemContainerState(yyj4543) if yyj4543 < len(yyv4543) { if r.TryDecodeAsNil() { yyv4543[yyj4543] = Service{} } else { yyv4546 := &yyv4543[yyj4543] yyv4546.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4543 < len(yyv4543) { yyv4543 = yyv4543[:yyj4543] yyc4543 = true } else if yyj4543 == 0 && yyv4543 == nil { yyv4543 = []Service{} yyc4543 = true } } yyh4543.End() if yyc4543 { *v = yyv4543 } } func (x codecSelfer1234) encSliceLoadBalancerIngress(v []LoadBalancerIngress, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4547 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4548 := &yyv4547 yy4548.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4549 := *v yyh4549, yyl4549 := z.DecSliceHelperStart() var yyc4549 bool if yyl4549 == 0 { if yyv4549 == nil { yyv4549 = []LoadBalancerIngress{} yyc4549 = true } else if len(yyv4549) != 0 { yyv4549 = yyv4549[:0] yyc4549 = true } } else if yyl4549 > 0 { var yyrr4549, yyrl4549 int var yyrt4549 bool if yyl4549 > cap(yyv4549) { yyrg4549 := len(yyv4549) > 0 yyv24549 := yyv4549 yyrl4549, yyrt4549 = z.DecInferLen(yyl4549, z.DecBasicHandle().MaxInitLen, 32) if yyrt4549 { if yyrl4549 <= cap(yyv4549) { yyv4549 = yyv4549[:yyrl4549] } else { yyv4549 = make([]LoadBalancerIngress, yyrl4549) } } else { yyv4549 = make([]LoadBalancerIngress, yyrl4549) } yyc4549 = true yyrr4549 = len(yyv4549) if yyrg4549 { copy(yyv4549, yyv24549) } } else if yyl4549 != len(yyv4549) { yyv4549 = yyv4549[:yyl4549] yyc4549 = true } yyj4549 := 0 for ; yyj4549 < yyrr4549; yyj4549++ { yyh4549.ElemContainerState(yyj4549) if r.TryDecodeAsNil() { yyv4549[yyj4549] = LoadBalancerIngress{} } else { yyv4550 := &yyv4549[yyj4549] yyv4550.CodecDecodeSelf(d) } } if yyrt4549 { for ; yyj4549 < yyl4549; yyj4549++ { yyv4549 = append(yyv4549, LoadBalancerIngress{}) yyh4549.ElemContainerState(yyj4549) if r.TryDecodeAsNil() { yyv4549[yyj4549] = LoadBalancerIngress{} } else { yyv4551 := &yyv4549[yyj4549] yyv4551.CodecDecodeSelf(d) } } } } else { yyj4549 := 0 for ; !r.CheckBreak(); yyj4549++ { if yyj4549 >= len(yyv4549) { yyv4549 = append(yyv4549, LoadBalancerIngress{}) // var yyz4549 LoadBalancerIngress yyc4549 = true } yyh4549.ElemContainerState(yyj4549) if yyj4549 < len(yyv4549) { if r.TryDecodeAsNil() { yyv4549[yyj4549] = LoadBalancerIngress{} } else { yyv4552 := &yyv4549[yyj4549] yyv4552.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4549 < len(yyv4549) { yyv4549 = yyv4549[:yyj4549] yyc4549 = true } else if yyj4549 == 0 && yyv4549 == nil { yyv4549 = []LoadBalancerIngress{} yyc4549 = true } } yyh4549.End() if yyc4549 { *v = yyv4549 } } func (x codecSelfer1234) encSliceServicePort(v []ServicePort, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4553 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4554 := &yyv4553 yy4554.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4555 := *v yyh4555, yyl4555 := z.DecSliceHelperStart() var yyc4555 bool if yyl4555 == 0 { if yyv4555 == nil { yyv4555 = []ServicePort{} yyc4555 = true } else if len(yyv4555) != 0 { yyv4555 = yyv4555[:0] yyc4555 = true } } else if yyl4555 > 0 { var yyrr4555, yyrl4555 int var yyrt4555 bool if yyl4555 > cap(yyv4555) { yyrg4555 := len(yyv4555) > 0 yyv24555 := yyv4555 yyrl4555, yyrt4555 = z.DecInferLen(yyl4555, z.DecBasicHandle().MaxInitLen, 80) if yyrt4555 { if yyrl4555 <= cap(yyv4555) { yyv4555 = yyv4555[:yyrl4555] } else { yyv4555 = make([]ServicePort, yyrl4555) } } else { yyv4555 = make([]ServicePort, yyrl4555) } yyc4555 = true yyrr4555 = len(yyv4555) if yyrg4555 { copy(yyv4555, yyv24555) } } else if yyl4555 != len(yyv4555) { yyv4555 = yyv4555[:yyl4555] yyc4555 = true } yyj4555 := 0 for ; yyj4555 < yyrr4555; yyj4555++ { yyh4555.ElemContainerState(yyj4555) if r.TryDecodeAsNil() { yyv4555[yyj4555] = ServicePort{} } else { yyv4556 := &yyv4555[yyj4555] yyv4556.CodecDecodeSelf(d) } } if yyrt4555 { for ; yyj4555 < yyl4555; yyj4555++ { yyv4555 = append(yyv4555, ServicePort{}) yyh4555.ElemContainerState(yyj4555) if r.TryDecodeAsNil() { yyv4555[yyj4555] = ServicePort{} } else { yyv4557 := &yyv4555[yyj4555] yyv4557.CodecDecodeSelf(d) } } } } else { yyj4555 := 0 for ; !r.CheckBreak(); yyj4555++ { if yyj4555 >= len(yyv4555) { yyv4555 = append(yyv4555, ServicePort{}) // var yyz4555 ServicePort yyc4555 = true } yyh4555.ElemContainerState(yyj4555) if yyj4555 < len(yyv4555) { if r.TryDecodeAsNil() { yyv4555[yyj4555] = ServicePort{} } else { yyv4558 := &yyv4555[yyj4555] yyv4558.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4555 < len(yyv4555) { yyv4555 = yyv4555[:yyj4555] yyc4555 = true } else if yyj4555 == 0 && yyv4555 == nil { yyv4555 = []ServicePort{} yyc4555 = true } } yyh4555.End() if yyc4555 { *v = yyv4555 } } func (x codecSelfer1234) encSliceObjectReference(v []ObjectReference, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4559 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4560 := &yyv4559 yy4560.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4561 := *v yyh4561, yyl4561 := z.DecSliceHelperStart() var yyc4561 bool if yyl4561 == 0 { if yyv4561 == nil { yyv4561 = []ObjectReference{} yyc4561 = true } else if len(yyv4561) != 0 { yyv4561 = yyv4561[:0] yyc4561 = true } } else if yyl4561 > 0 { var yyrr4561, yyrl4561 int var yyrt4561 bool if yyl4561 > cap(yyv4561) { yyrg4561 := len(yyv4561) > 0 yyv24561 := yyv4561 yyrl4561, yyrt4561 = z.DecInferLen(yyl4561, z.DecBasicHandle().MaxInitLen, 112) if yyrt4561 { if yyrl4561 <= cap(yyv4561) { yyv4561 = yyv4561[:yyrl4561] } else { yyv4561 = make([]ObjectReference, yyrl4561) } } else { yyv4561 = make([]ObjectReference, yyrl4561) } yyc4561 = true yyrr4561 = len(yyv4561) if yyrg4561 { copy(yyv4561, yyv24561) } } else if yyl4561 != len(yyv4561) { yyv4561 = yyv4561[:yyl4561] yyc4561 = true } yyj4561 := 0 for ; yyj4561 < yyrr4561; yyj4561++ { yyh4561.ElemContainerState(yyj4561) if r.TryDecodeAsNil() { yyv4561[yyj4561] = ObjectReference{} } else { yyv4562 := &yyv4561[yyj4561] yyv4562.CodecDecodeSelf(d) } } if yyrt4561 { for ; yyj4561 < yyl4561; yyj4561++ { yyv4561 = append(yyv4561, ObjectReference{}) yyh4561.ElemContainerState(yyj4561) if r.TryDecodeAsNil() { yyv4561[yyj4561] = ObjectReference{} } else { yyv4563 := &yyv4561[yyj4561] yyv4563.CodecDecodeSelf(d) } } } } else { yyj4561 := 0 for ; !r.CheckBreak(); yyj4561++ { if yyj4561 >= len(yyv4561) { yyv4561 = append(yyv4561, ObjectReference{}) // var yyz4561 ObjectReference yyc4561 = true } yyh4561.ElemContainerState(yyj4561) if yyj4561 < len(yyv4561) { if r.TryDecodeAsNil() { yyv4561[yyj4561] = ObjectReference{} } else { yyv4564 := &yyv4561[yyj4561] yyv4564.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4561 < len(yyv4561) { yyv4561 = yyv4561[:yyj4561] yyc4561 = true } else if yyj4561 == 0 && yyv4561 == nil { yyv4561 = []ObjectReference{} yyc4561 = true } } yyh4561.End() if yyc4561 { *v = yyv4561 } } func (x codecSelfer1234) encSliceServiceAccount(v []ServiceAccount, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4565 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4566 := &yyv4565 yy4566.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4567 := *v yyh4567, yyl4567 := z.DecSliceHelperStart() var yyc4567 bool if yyl4567 == 0 { if yyv4567 == nil { yyv4567 = []ServiceAccount{} yyc4567 = true } else if len(yyv4567) != 0 { yyv4567 = yyv4567[:0] yyc4567 = true } } else if yyl4567 > 0 { var yyrr4567, yyrl4567 int var yyrt4567 bool if yyl4567 > cap(yyv4567) { yyrg4567 := len(yyv4567) > 0 yyv24567 := yyv4567 yyrl4567, yyrt4567 = z.DecInferLen(yyl4567, z.DecBasicHandle().MaxInitLen, 288) if yyrt4567 { if yyrl4567 <= cap(yyv4567) { yyv4567 = yyv4567[:yyrl4567] } else { yyv4567 = make([]ServiceAccount, yyrl4567) } } else { yyv4567 = make([]ServiceAccount, yyrl4567) } yyc4567 = true yyrr4567 = len(yyv4567) if yyrg4567 { copy(yyv4567, yyv24567) } } else if yyl4567 != len(yyv4567) { yyv4567 = yyv4567[:yyl4567] yyc4567 = true } yyj4567 := 0 for ; yyj4567 < yyrr4567; yyj4567++ { yyh4567.ElemContainerState(yyj4567) if r.TryDecodeAsNil() { yyv4567[yyj4567] = ServiceAccount{} } else { yyv4568 := &yyv4567[yyj4567] yyv4568.CodecDecodeSelf(d) } } if yyrt4567 { for ; yyj4567 < yyl4567; yyj4567++ { yyv4567 = append(yyv4567, ServiceAccount{}) yyh4567.ElemContainerState(yyj4567) if r.TryDecodeAsNil() { yyv4567[yyj4567] = ServiceAccount{} } else { yyv4569 := &yyv4567[yyj4567] yyv4569.CodecDecodeSelf(d) } } } } else { yyj4567 := 0 for ; !r.CheckBreak(); yyj4567++ { if yyj4567 >= len(yyv4567) { yyv4567 = append(yyv4567, ServiceAccount{}) // var yyz4567 ServiceAccount yyc4567 = true } yyh4567.ElemContainerState(yyj4567) if yyj4567 < len(yyv4567) { if r.TryDecodeAsNil() { yyv4567[yyj4567] = ServiceAccount{} } else { yyv4570 := &yyv4567[yyj4567] yyv4570.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4567 < len(yyv4567) { yyv4567 = yyv4567[:yyj4567] yyc4567 = true } else if yyj4567 == 0 && yyv4567 == nil { yyv4567 = []ServiceAccount{} yyc4567 = true } } yyh4567.End() if yyc4567 { *v = yyv4567 } } func (x codecSelfer1234) encSliceEndpointSubset(v []EndpointSubset, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4571 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4572 := &yyv4571 yy4572.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4573 := *v yyh4573, yyl4573 := z.DecSliceHelperStart() var yyc4573 bool if yyl4573 == 0 { if yyv4573 == nil { yyv4573 = []EndpointSubset{} yyc4573 = true } else if len(yyv4573) != 0 { yyv4573 = yyv4573[:0] yyc4573 = true } } else if yyl4573 > 0 { var yyrr4573, yyrl4573 int var yyrt4573 bool if yyl4573 > cap(yyv4573) { yyrg4573 := len(yyv4573) > 0 yyv24573 := yyv4573 yyrl4573, yyrt4573 = z.DecInferLen(yyl4573, z.DecBasicHandle().MaxInitLen, 72) if yyrt4573 { if yyrl4573 <= cap(yyv4573) { yyv4573 = yyv4573[:yyrl4573] } else { yyv4573 = make([]EndpointSubset, yyrl4573) } } else { yyv4573 = make([]EndpointSubset, yyrl4573) } yyc4573 = true yyrr4573 = len(yyv4573) if yyrg4573 { copy(yyv4573, yyv24573) } } else if yyl4573 != len(yyv4573) { yyv4573 = yyv4573[:yyl4573] yyc4573 = true } yyj4573 := 0 for ; yyj4573 < yyrr4573; yyj4573++ { yyh4573.ElemContainerState(yyj4573) if r.TryDecodeAsNil() { yyv4573[yyj4573] = EndpointSubset{} } else { yyv4574 := &yyv4573[yyj4573] yyv4574.CodecDecodeSelf(d) } } if yyrt4573 { for ; yyj4573 < yyl4573; yyj4573++ { yyv4573 = append(yyv4573, EndpointSubset{}) yyh4573.ElemContainerState(yyj4573) if r.TryDecodeAsNil() { yyv4573[yyj4573] = EndpointSubset{} } else { yyv4575 := &yyv4573[yyj4573] yyv4575.CodecDecodeSelf(d) } } } } else { yyj4573 := 0 for ; !r.CheckBreak(); yyj4573++ { if yyj4573 >= len(yyv4573) { yyv4573 = append(yyv4573, EndpointSubset{}) // var yyz4573 EndpointSubset yyc4573 = true } yyh4573.ElemContainerState(yyj4573) if yyj4573 < len(yyv4573) { if r.TryDecodeAsNil() { yyv4573[yyj4573] = EndpointSubset{} } else { yyv4576 := &yyv4573[yyj4573] yyv4576.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4573 < len(yyv4573) { yyv4573 = yyv4573[:yyj4573] yyc4573 = true } else if yyj4573 == 0 && yyv4573 == nil { yyv4573 = []EndpointSubset{} yyc4573 = true } } yyh4573.End() if yyc4573 { *v = yyv4573 } } func (x codecSelfer1234) encSliceEndpointAddress(v []EndpointAddress, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4577 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4578 := &yyv4577 yy4578.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceEndpointAddress(v *[]EndpointAddress, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4579 := *v yyh4579, yyl4579 := z.DecSliceHelperStart() var yyc4579 bool if yyl4579 == 0 { if yyv4579 == nil { yyv4579 = []EndpointAddress{} yyc4579 = true } else if len(yyv4579) != 0 { yyv4579 = yyv4579[:0] yyc4579 = true } } else if yyl4579 > 0 { var yyrr4579, yyrl4579 int var yyrt4579 bool if yyl4579 > cap(yyv4579) { yyrg4579 := len(yyv4579) > 0 yyv24579 := yyv4579 yyrl4579, yyrt4579 = z.DecInferLen(yyl4579, z.DecBasicHandle().MaxInitLen, 48) if yyrt4579 { if yyrl4579 <= cap(yyv4579) { yyv4579 = yyv4579[:yyrl4579] } else { yyv4579 = make([]EndpointAddress, yyrl4579) } } else { yyv4579 = make([]EndpointAddress, yyrl4579) } yyc4579 = true yyrr4579 = len(yyv4579) if yyrg4579 { copy(yyv4579, yyv24579) } } else if yyl4579 != len(yyv4579) { yyv4579 = yyv4579[:yyl4579] yyc4579 = true } yyj4579 := 0 for ; yyj4579 < yyrr4579; yyj4579++ { yyh4579.ElemContainerState(yyj4579) if r.TryDecodeAsNil() { yyv4579[yyj4579] = EndpointAddress{} } else { yyv4580 := &yyv4579[yyj4579] yyv4580.CodecDecodeSelf(d) } } if yyrt4579 { for ; yyj4579 < yyl4579; yyj4579++ { yyv4579 = append(yyv4579, EndpointAddress{}) yyh4579.ElemContainerState(yyj4579) if r.TryDecodeAsNil() { yyv4579[yyj4579] = EndpointAddress{} } else { yyv4581 := &yyv4579[yyj4579] yyv4581.CodecDecodeSelf(d) } } } } else { yyj4579 := 0 for ; !r.CheckBreak(); yyj4579++ { if yyj4579 >= len(yyv4579) { yyv4579 = append(yyv4579, EndpointAddress{}) // var yyz4579 EndpointAddress yyc4579 = true } yyh4579.ElemContainerState(yyj4579) if yyj4579 < len(yyv4579) { if r.TryDecodeAsNil() { yyv4579[yyj4579] = EndpointAddress{} } else { yyv4582 := &yyv4579[yyj4579] yyv4582.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4579 < len(yyv4579) { yyv4579 = yyv4579[:yyj4579] yyc4579 = true } else if yyj4579 == 0 && yyv4579 == nil { yyv4579 = []EndpointAddress{} yyc4579 = true } } yyh4579.End() if yyc4579 { *v = yyv4579 } } func (x codecSelfer1234) encSliceEndpointPort(v []EndpointPort, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4583 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4584 := &yyv4583 yy4584.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceEndpointPort(v *[]EndpointPort, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4585 := *v yyh4585, yyl4585 := z.DecSliceHelperStart() var yyc4585 bool if yyl4585 == 0 { if yyv4585 == nil { yyv4585 = []EndpointPort{} yyc4585 = true } else if len(yyv4585) != 0 { yyv4585 = yyv4585[:0] yyc4585 = true } } else if yyl4585 > 0 { var yyrr4585, yyrl4585 int var yyrt4585 bool if yyl4585 > cap(yyv4585) { yyrg4585 := len(yyv4585) > 0 yyv24585 := yyv4585 yyrl4585, yyrt4585 = z.DecInferLen(yyl4585, z.DecBasicHandle().MaxInitLen, 40) if yyrt4585 { if yyrl4585 <= cap(yyv4585) { yyv4585 = yyv4585[:yyrl4585] } else { yyv4585 = make([]EndpointPort, yyrl4585) } } else { yyv4585 = make([]EndpointPort, yyrl4585) } yyc4585 = true yyrr4585 = len(yyv4585) if yyrg4585 { copy(yyv4585, yyv24585) } } else if yyl4585 != len(yyv4585) { yyv4585 = yyv4585[:yyl4585] yyc4585 = true } yyj4585 := 0 for ; yyj4585 < yyrr4585; yyj4585++ { yyh4585.ElemContainerState(yyj4585) if r.TryDecodeAsNil() { yyv4585[yyj4585] = EndpointPort{} } else { yyv4586 := &yyv4585[yyj4585] yyv4586.CodecDecodeSelf(d) } } if yyrt4585 { for ; yyj4585 < yyl4585; yyj4585++ { yyv4585 = append(yyv4585, EndpointPort{}) yyh4585.ElemContainerState(yyj4585) if r.TryDecodeAsNil() { yyv4585[yyj4585] = EndpointPort{} } else { yyv4587 := &yyv4585[yyj4585] yyv4587.CodecDecodeSelf(d) } } } } else { yyj4585 := 0 for ; !r.CheckBreak(); yyj4585++ { if yyj4585 >= len(yyv4585) { yyv4585 = append(yyv4585, EndpointPort{}) // var yyz4585 EndpointPort yyc4585 = true } yyh4585.ElemContainerState(yyj4585) if yyj4585 < len(yyv4585) { if r.TryDecodeAsNil() { yyv4585[yyj4585] = EndpointPort{} } else { yyv4588 := &yyv4585[yyj4585] yyv4588.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4585 < len(yyv4585) { yyv4585 = yyv4585[:yyj4585] yyc4585 = true } else if yyj4585 == 0 && yyv4585 == nil { yyv4585 = []EndpointPort{} yyc4585 = true } } yyh4585.End() if yyc4585 { *v = yyv4585 } } func (x codecSelfer1234) encSliceEndpoints(v []Endpoints, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4589 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4590 := &yyv4589 yy4590.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4591 := *v yyh4591, yyl4591 := z.DecSliceHelperStart() var yyc4591 bool if yyl4591 == 0 { if yyv4591 == nil { yyv4591 = []Endpoints{} yyc4591 = true } else if len(yyv4591) != 0 { yyv4591 = yyv4591[:0] yyc4591 = true } } else if yyl4591 > 0 { var yyrr4591, yyrl4591 int var yyrt4591 bool if yyl4591 > cap(yyv4591) { yyrg4591 := len(yyv4591) > 0 yyv24591 := yyv4591 yyrl4591, yyrt4591 = z.DecInferLen(yyl4591, z.DecBasicHandle().MaxInitLen, 264) if yyrt4591 { if yyrl4591 <= cap(yyv4591) { yyv4591 = yyv4591[:yyrl4591] } else { yyv4591 = make([]Endpoints, yyrl4591) } } else { yyv4591 = make([]Endpoints, yyrl4591) } yyc4591 = true yyrr4591 = len(yyv4591) if yyrg4591 { copy(yyv4591, yyv24591) } } else if yyl4591 != len(yyv4591) { yyv4591 = yyv4591[:yyl4591] yyc4591 = true } yyj4591 := 0 for ; yyj4591 < yyrr4591; yyj4591++ { yyh4591.ElemContainerState(yyj4591) if r.TryDecodeAsNil() { yyv4591[yyj4591] = Endpoints{} } else { yyv4592 := &yyv4591[yyj4591] yyv4592.CodecDecodeSelf(d) } } if yyrt4591 { for ; yyj4591 < yyl4591; yyj4591++ { yyv4591 = append(yyv4591, Endpoints{}) yyh4591.ElemContainerState(yyj4591) if r.TryDecodeAsNil() { yyv4591[yyj4591] = Endpoints{} } else { yyv4593 := &yyv4591[yyj4591] yyv4593.CodecDecodeSelf(d) } } } } else { yyj4591 := 0 for ; !r.CheckBreak(); yyj4591++ { if yyj4591 >= len(yyv4591) { yyv4591 = append(yyv4591, Endpoints{}) // var yyz4591 Endpoints yyc4591 = true } yyh4591.ElemContainerState(yyj4591) if yyj4591 < len(yyv4591) { if r.TryDecodeAsNil() { yyv4591[yyj4591] = Endpoints{} } else { yyv4594 := &yyv4591[yyj4591] yyv4594.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4591 < len(yyv4591) { yyv4591 = yyv4591[:yyj4591] yyc4591 = true } else if yyj4591 == 0 && yyv4591 == nil { yyv4591 = []Endpoints{} yyc4591 = true } } yyh4591.End() if yyc4591 { *v = yyv4591 } } func (x codecSelfer1234) encSliceNodeCondition(v []NodeCondition, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4595 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4596 := &yyv4595 yy4596.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4597 := *v yyh4597, yyl4597 := z.DecSliceHelperStart() var yyc4597 bool if yyl4597 == 0 { if yyv4597 == nil { yyv4597 = []NodeCondition{} yyc4597 = true } else if len(yyv4597) != 0 { yyv4597 = yyv4597[:0] yyc4597 = true } } else if yyl4597 > 0 { var yyrr4597, yyrl4597 int var yyrt4597 bool if yyl4597 > cap(yyv4597) { yyrg4597 := len(yyv4597) > 0 yyv24597 := yyv4597 yyrl4597, yyrt4597 = z.DecInferLen(yyl4597, z.DecBasicHandle().MaxInitLen, 112) if yyrt4597 { if yyrl4597 <= cap(yyv4597) { yyv4597 = yyv4597[:yyrl4597] } else { yyv4597 = make([]NodeCondition, yyrl4597) } } else { yyv4597 = make([]NodeCondition, yyrl4597) } yyc4597 = true yyrr4597 = len(yyv4597) if yyrg4597 { copy(yyv4597, yyv24597) } } else if yyl4597 != len(yyv4597) { yyv4597 = yyv4597[:yyl4597] yyc4597 = true } yyj4597 := 0 for ; yyj4597 < yyrr4597; yyj4597++ { yyh4597.ElemContainerState(yyj4597) if r.TryDecodeAsNil() { yyv4597[yyj4597] = NodeCondition{} } else { yyv4598 := &yyv4597[yyj4597] yyv4598.CodecDecodeSelf(d) } } if yyrt4597 { for ; yyj4597 < yyl4597; yyj4597++ { yyv4597 = append(yyv4597, NodeCondition{}) yyh4597.ElemContainerState(yyj4597) if r.TryDecodeAsNil() { yyv4597[yyj4597] = NodeCondition{} } else { yyv4599 := &yyv4597[yyj4597] yyv4599.CodecDecodeSelf(d) } } } } else { yyj4597 := 0 for ; !r.CheckBreak(); yyj4597++ { if yyj4597 >= len(yyv4597) { yyv4597 = append(yyv4597, NodeCondition{}) // var yyz4597 NodeCondition yyc4597 = true } yyh4597.ElemContainerState(yyj4597) if yyj4597 < len(yyv4597) { if r.TryDecodeAsNil() { yyv4597[yyj4597] = NodeCondition{} } else { yyv4600 := &yyv4597[yyj4597] yyv4600.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4597 < len(yyv4597) { yyv4597 = yyv4597[:yyj4597] yyc4597 = true } else if yyj4597 == 0 && yyv4597 == nil { yyv4597 = []NodeCondition{} yyc4597 = true } } yyh4597.End() if yyc4597 { *v = yyv4597 } } func (x codecSelfer1234) encSliceNodeAddress(v []NodeAddress, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4601 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4602 := &yyv4601 yy4602.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4603 := *v yyh4603, yyl4603 := z.DecSliceHelperStart() var yyc4603 bool if yyl4603 == 0 { if yyv4603 == nil { yyv4603 = []NodeAddress{} yyc4603 = true } else if len(yyv4603) != 0 { yyv4603 = yyv4603[:0] yyc4603 = true } } else if yyl4603 > 0 { var yyrr4603, yyrl4603 int var yyrt4603 bool if yyl4603 > cap(yyv4603) { yyrg4603 := len(yyv4603) > 0 yyv24603 := yyv4603 yyrl4603, yyrt4603 = z.DecInferLen(yyl4603, z.DecBasicHandle().MaxInitLen, 32) if yyrt4603 { if yyrl4603 <= cap(yyv4603) { yyv4603 = yyv4603[:yyrl4603] } else { yyv4603 = make([]NodeAddress, yyrl4603) } } else { yyv4603 = make([]NodeAddress, yyrl4603) } yyc4603 = true yyrr4603 = len(yyv4603) if yyrg4603 { copy(yyv4603, yyv24603) } } else if yyl4603 != len(yyv4603) { yyv4603 = yyv4603[:yyl4603] yyc4603 = true } yyj4603 := 0 for ; yyj4603 < yyrr4603; yyj4603++ { yyh4603.ElemContainerState(yyj4603) if r.TryDecodeAsNil() { yyv4603[yyj4603] = NodeAddress{} } else { yyv4604 := &yyv4603[yyj4603] yyv4604.CodecDecodeSelf(d) } } if yyrt4603 { for ; yyj4603 < yyl4603; yyj4603++ { yyv4603 = append(yyv4603, NodeAddress{}) yyh4603.ElemContainerState(yyj4603) if r.TryDecodeAsNil() { yyv4603[yyj4603] = NodeAddress{} } else { yyv4605 := &yyv4603[yyj4603] yyv4605.CodecDecodeSelf(d) } } } } else { yyj4603 := 0 for ; !r.CheckBreak(); yyj4603++ { if yyj4603 >= len(yyv4603) { yyv4603 = append(yyv4603, NodeAddress{}) // var yyz4603 NodeAddress yyc4603 = true } yyh4603.ElemContainerState(yyj4603) if yyj4603 < len(yyv4603) { if r.TryDecodeAsNil() { yyv4603[yyj4603] = NodeAddress{} } else { yyv4606 := &yyv4603[yyj4603] yyv4606.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4603 < len(yyv4603) { yyv4603 = yyv4603[:yyj4603] yyc4603 = true } else if yyj4603 == 0 && yyv4603 == nil { yyv4603 = []NodeAddress{} yyc4603 = true } } yyh4603.End() if yyc4603 { *v = yyv4603 } } func (x codecSelfer1234) encSliceContainerImage(v []ContainerImage, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4607 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4608 := &yyv4607 yy4608.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4609 := *v yyh4609, yyl4609 := z.DecSliceHelperStart() var yyc4609 bool if yyl4609 == 0 { if yyv4609 == nil { yyv4609 = []ContainerImage{} yyc4609 = true } else if len(yyv4609) != 0 { yyv4609 = yyv4609[:0] yyc4609 = true } } else if yyl4609 > 0 { var yyrr4609, yyrl4609 int var yyrt4609 bool if yyl4609 > cap(yyv4609) { yyrg4609 := len(yyv4609) > 0 yyv24609 := yyv4609 yyrl4609, yyrt4609 = z.DecInferLen(yyl4609, z.DecBasicHandle().MaxInitLen, 32) if yyrt4609 { if yyrl4609 <= cap(yyv4609) { yyv4609 = yyv4609[:yyrl4609] } else { yyv4609 = make([]ContainerImage, yyrl4609) } } else { yyv4609 = make([]ContainerImage, yyrl4609) } yyc4609 = true yyrr4609 = len(yyv4609) if yyrg4609 { copy(yyv4609, yyv24609) } } else if yyl4609 != len(yyv4609) { yyv4609 = yyv4609[:yyl4609] yyc4609 = true } yyj4609 := 0 for ; yyj4609 < yyrr4609; yyj4609++ { yyh4609.ElemContainerState(yyj4609) if r.TryDecodeAsNil() { yyv4609[yyj4609] = ContainerImage{} } else { yyv4610 := &yyv4609[yyj4609] yyv4610.CodecDecodeSelf(d) } } if yyrt4609 { for ; yyj4609 < yyl4609; yyj4609++ { yyv4609 = append(yyv4609, ContainerImage{}) yyh4609.ElemContainerState(yyj4609) if r.TryDecodeAsNil() { yyv4609[yyj4609] = ContainerImage{} } else { yyv4611 := &yyv4609[yyj4609] yyv4611.CodecDecodeSelf(d) } } } } else { yyj4609 := 0 for ; !r.CheckBreak(); yyj4609++ { if yyj4609 >= len(yyv4609) { yyv4609 = append(yyv4609, ContainerImage{}) // var yyz4609 ContainerImage yyc4609 = true } yyh4609.ElemContainerState(yyj4609) if yyj4609 < len(yyv4609) { if r.TryDecodeAsNil() { yyv4609[yyj4609] = ContainerImage{} } else { yyv4612 := &yyv4609[yyj4609] yyv4612.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4609 < len(yyv4609) { yyv4609 = yyv4609[:yyj4609] yyc4609 = true } else if yyj4609 == 0 && yyv4609 == nil { yyv4609 = []ContainerImage{} yyc4609 = true } } yyh4609.End() if yyc4609 { *v = yyv4609 } } func (x codecSelfer1234) encSliceUniqueVolumeName(v []UniqueVolumeName, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4613 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv4613.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4614 := *v yyh4614, yyl4614 := z.DecSliceHelperStart() var yyc4614 bool if yyl4614 == 0 { if yyv4614 == nil { yyv4614 = []UniqueVolumeName{} yyc4614 = true } else if len(yyv4614) != 0 { yyv4614 = yyv4614[:0] yyc4614 = true } } else if yyl4614 > 0 { var yyrr4614, yyrl4614 int var yyrt4614 bool if yyl4614 > cap(yyv4614) { yyrl4614, yyrt4614 = z.DecInferLen(yyl4614, z.DecBasicHandle().MaxInitLen, 16) if yyrt4614 { if yyrl4614 <= cap(yyv4614) { yyv4614 = yyv4614[:yyrl4614] } else { yyv4614 = make([]UniqueVolumeName, yyrl4614) } } else { yyv4614 = make([]UniqueVolumeName, yyrl4614) } yyc4614 = true yyrr4614 = len(yyv4614) } else if yyl4614 != len(yyv4614) { yyv4614 = yyv4614[:yyl4614] yyc4614 = true } yyj4614 := 0 for ; yyj4614 < yyrr4614; yyj4614++ { yyh4614.ElemContainerState(yyj4614) if r.TryDecodeAsNil() { yyv4614[yyj4614] = "" } else { yyv4614[yyj4614] = UniqueVolumeName(r.DecodeString()) } } if yyrt4614 { for ; yyj4614 < yyl4614; yyj4614++ { yyv4614 = append(yyv4614, "") yyh4614.ElemContainerState(yyj4614) if r.TryDecodeAsNil() { yyv4614[yyj4614] = "" } else { yyv4614[yyj4614] = UniqueVolumeName(r.DecodeString()) } } } } else { yyj4614 := 0 for ; !r.CheckBreak(); yyj4614++ { if yyj4614 >= len(yyv4614) { yyv4614 = append(yyv4614, "") // var yyz4614 UniqueVolumeName yyc4614 = true } yyh4614.ElemContainerState(yyj4614) if yyj4614 < len(yyv4614) { if r.TryDecodeAsNil() { yyv4614[yyj4614] = "" } else { yyv4614[yyj4614] = UniqueVolumeName(r.DecodeString()) } } else { z.DecSwallow() } } if yyj4614 < len(yyv4614) { yyv4614 = yyv4614[:yyj4614] yyc4614 = true } else if yyj4614 == 0 && yyv4614 == nil { yyv4614 = []UniqueVolumeName{} yyc4614 = true } } yyh4614.End() if yyc4614 { *v = yyv4614 } } func (x codecSelfer1234) encSliceAttachedVolume(v []AttachedVolume, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4618 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4619 := &yyv4618 yy4619.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4620 := *v yyh4620, yyl4620 := z.DecSliceHelperStart() var yyc4620 bool if yyl4620 == 0 { if yyv4620 == nil { yyv4620 = []AttachedVolume{} yyc4620 = true } else if len(yyv4620) != 0 { yyv4620 = yyv4620[:0] yyc4620 = true } } else if yyl4620 > 0 { var yyrr4620, yyrl4620 int var yyrt4620 bool if yyl4620 > cap(yyv4620) { yyrg4620 := len(yyv4620) > 0 yyv24620 := yyv4620 yyrl4620, yyrt4620 = z.DecInferLen(yyl4620, z.DecBasicHandle().MaxInitLen, 32) if yyrt4620 { if yyrl4620 <= cap(yyv4620) { yyv4620 = yyv4620[:yyrl4620] } else { yyv4620 = make([]AttachedVolume, yyrl4620) } } else { yyv4620 = make([]AttachedVolume, yyrl4620) } yyc4620 = true yyrr4620 = len(yyv4620) if yyrg4620 { copy(yyv4620, yyv24620) } } else if yyl4620 != len(yyv4620) { yyv4620 = yyv4620[:yyl4620] yyc4620 = true } yyj4620 := 0 for ; yyj4620 < yyrr4620; yyj4620++ { yyh4620.ElemContainerState(yyj4620) if r.TryDecodeAsNil() { yyv4620[yyj4620] = AttachedVolume{} } else { yyv4621 := &yyv4620[yyj4620] yyv4621.CodecDecodeSelf(d) } } if yyrt4620 { for ; yyj4620 < yyl4620; yyj4620++ { yyv4620 = append(yyv4620, AttachedVolume{}) yyh4620.ElemContainerState(yyj4620) if r.TryDecodeAsNil() { yyv4620[yyj4620] = AttachedVolume{} } else { yyv4622 := &yyv4620[yyj4620] yyv4622.CodecDecodeSelf(d) } } } } else { yyj4620 := 0 for ; !r.CheckBreak(); yyj4620++ { if yyj4620 >= len(yyv4620) { yyv4620 = append(yyv4620, AttachedVolume{}) // var yyz4620 AttachedVolume yyc4620 = true } yyh4620.ElemContainerState(yyj4620) if yyj4620 < len(yyv4620) { if r.TryDecodeAsNil() { yyv4620[yyj4620] = AttachedVolume{} } else { yyv4623 := &yyv4620[yyj4620] yyv4623.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4620 < len(yyv4620) { yyv4620 = yyv4620[:yyj4620] yyc4620 = true } else if yyj4620 == 0 && yyv4620 == nil { yyv4620 = []AttachedVolume{} yyc4620 = true } } yyh4620.End() if yyc4620 { *v = yyv4620 } } func (x codecSelfer1234) encSlicePreferAvoidPodsEntry(v []PreferAvoidPodsEntry, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4624 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4625 := &yyv4624 yy4625.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4626 := *v yyh4626, yyl4626 := z.DecSliceHelperStart() var yyc4626 bool if yyl4626 == 0 { if yyv4626 == nil { yyv4626 = []PreferAvoidPodsEntry{} yyc4626 = true } else if len(yyv4626) != 0 { yyv4626 = yyv4626[:0] yyc4626 = true } } else if yyl4626 > 0 { var yyrr4626, yyrl4626 int var yyrt4626 bool if yyl4626 > cap(yyv4626) { yyrg4626 := len(yyv4626) > 0 yyv24626 := yyv4626 yyrl4626, yyrt4626 = z.DecInferLen(yyl4626, z.DecBasicHandle().MaxInitLen, 64) if yyrt4626 { if yyrl4626 <= cap(yyv4626) { yyv4626 = yyv4626[:yyrl4626] } else { yyv4626 = make([]PreferAvoidPodsEntry, yyrl4626) } } else { yyv4626 = make([]PreferAvoidPodsEntry, yyrl4626) } yyc4626 = true yyrr4626 = len(yyv4626) if yyrg4626 { copy(yyv4626, yyv24626) } } else if yyl4626 != len(yyv4626) { yyv4626 = yyv4626[:yyl4626] yyc4626 = true } yyj4626 := 0 for ; yyj4626 < yyrr4626; yyj4626++ { yyh4626.ElemContainerState(yyj4626) if r.TryDecodeAsNil() { yyv4626[yyj4626] = PreferAvoidPodsEntry{} } else { yyv4627 := &yyv4626[yyj4626] yyv4627.CodecDecodeSelf(d) } } if yyrt4626 { for ; yyj4626 < yyl4626; yyj4626++ { yyv4626 = append(yyv4626, PreferAvoidPodsEntry{}) yyh4626.ElemContainerState(yyj4626) if r.TryDecodeAsNil() { yyv4626[yyj4626] = PreferAvoidPodsEntry{} } else { yyv4628 := &yyv4626[yyj4626] yyv4628.CodecDecodeSelf(d) } } } } else { yyj4626 := 0 for ; !r.CheckBreak(); yyj4626++ { if yyj4626 >= len(yyv4626) { yyv4626 = append(yyv4626, PreferAvoidPodsEntry{}) // var yyz4626 PreferAvoidPodsEntry yyc4626 = true } yyh4626.ElemContainerState(yyj4626) if yyj4626 < len(yyv4626) { if r.TryDecodeAsNil() { yyv4626[yyj4626] = PreferAvoidPodsEntry{} } else { yyv4629 := &yyv4626[yyj4626] yyv4629.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4626 < len(yyv4626) { yyv4626 = yyv4626[:yyj4626] yyc4626 = true } else if yyj4626 == 0 && yyv4626 == nil { yyv4626 = []PreferAvoidPodsEntry{} yyc4626 = true } } yyh4626.End() if yyc4626 { *v = yyv4626 } } func (x codecSelfer1234) encResourceList(v ResourceList, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) for yyk4630, yyv4630 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) yyk4630.CodecEncodeSelf(e) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4631 := &yyv4630 yym4632 := z.EncBinary() _ = yym4632 if false { } else if z.HasExtensions() && z.EncExt(yy4631) { } else if !yym4632 && z.IsJSONHandle() { z.EncJSONMarshal(yy4631) } else { z.EncFallback(yy4631) } } z.EncSendContainerState(codecSelfer_containerMapEnd1234) } func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4633 := *v yyl4633 := r.ReadMapStart() yybh4633 := z.DecBasicHandle() if yyv4633 == nil { yyrl4633, _ := z.DecInferLen(yyl4633, yybh4633.MaxInitLen, 72) yyv4633 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4633) *v = yyv4633 } var yymk4633 ResourceName var yymv4633 pkg3_resource.Quantity var yymg4633 bool if yybh4633.MapValueReset { yymg4633 = true } if yyl4633 > 0 { for yyj4633 := 0; yyj4633 < yyl4633; yyj4633++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4633 = "" } else { yymk4633 = ResourceName(r.DecodeString()) } if yymg4633 { yymv4633 = yyv4633[yymk4633] } else { yymv4633 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4633 = pkg3_resource.Quantity{} } else { yyv4635 := &yymv4633 yym4636 := z.DecBinary() _ = yym4636 if false { } else if z.HasExtensions() && z.DecExt(yyv4635) { } else if !yym4636 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv4635) } else { z.DecFallback(yyv4635, false) } } if yyv4633 != nil { yyv4633[yymk4633] = yymv4633 } } } else if yyl4633 < 0 { for yyj4633 := 0; !r.CheckBreak(); yyj4633++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4633 = "" } else { yymk4633 = ResourceName(r.DecodeString()) } if yymg4633 { yymv4633 = yyv4633[yymk4633] } else { yymv4633 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4633 = pkg3_resource.Quantity{} } else { yyv4638 := &yymv4633 yym4639 := z.DecBinary() _ = yym4639 if false { } else if z.HasExtensions() && z.DecExt(yyv4638) { } else if !yym4639 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv4638) } else { z.DecFallback(yyv4638, false) } } if yyv4633 != nil { yyv4633[yymk4633] = yymv4633 } } } // else len==0: TODO: Should we clear map entries? z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x codecSelfer1234) encSliceNode(v []Node, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4640 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4641 := &yyv4640 yy4641.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4642 := *v yyh4642, yyl4642 := z.DecSliceHelperStart() var yyc4642 bool if yyl4642 == 0 { if yyv4642 == nil { yyv4642 = []Node{} yyc4642 = true } else if len(yyv4642) != 0 { yyv4642 = yyv4642[:0] yyc4642 = true } } else if yyl4642 > 0 { var yyrr4642, yyrl4642 int var yyrt4642 bool if yyl4642 > cap(yyv4642) { yyrg4642 := len(yyv4642) > 0 yyv24642 := yyv4642 yyrl4642, yyrt4642 = z.DecInferLen(yyl4642, z.DecBasicHandle().MaxInitLen, 616) if yyrt4642 { if yyrl4642 <= cap(yyv4642) { yyv4642 = yyv4642[:yyrl4642] } else { yyv4642 = make([]Node, yyrl4642) } } else { yyv4642 = make([]Node, yyrl4642) } yyc4642 = true yyrr4642 = len(yyv4642) if yyrg4642 { copy(yyv4642, yyv24642) } } else if yyl4642 != len(yyv4642) { yyv4642 = yyv4642[:yyl4642] yyc4642 = true } yyj4642 := 0 for ; yyj4642 < yyrr4642; yyj4642++ { yyh4642.ElemContainerState(yyj4642) if r.TryDecodeAsNil() { yyv4642[yyj4642] = Node{} } else { yyv4643 := &yyv4642[yyj4642] yyv4643.CodecDecodeSelf(d) } } if yyrt4642 { for ; yyj4642 < yyl4642; yyj4642++ { yyv4642 = append(yyv4642, Node{}) yyh4642.ElemContainerState(yyj4642) if r.TryDecodeAsNil() { yyv4642[yyj4642] = Node{} } else { yyv4644 := &yyv4642[yyj4642] yyv4644.CodecDecodeSelf(d) } } } } else { yyj4642 := 0 for ; !r.CheckBreak(); yyj4642++ { if yyj4642 >= len(yyv4642) { yyv4642 = append(yyv4642, Node{}) // var yyz4642 Node yyc4642 = true } yyh4642.ElemContainerState(yyj4642) if yyj4642 < len(yyv4642) { if r.TryDecodeAsNil() { yyv4642[yyj4642] = Node{} } else { yyv4645 := &yyv4642[yyj4642] yyv4645.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4642 < len(yyv4642) { yyv4642 = yyv4642[:yyj4642] yyc4642 = true } else if yyj4642 == 0 && yyv4642 == nil { yyv4642 = []Node{} yyc4642 = true } } yyh4642.End() if yyc4642 { *v = yyv4642 } } func (x codecSelfer1234) encSliceFinalizerName(v []FinalizerName, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4646 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv4646.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4647 := *v yyh4647, yyl4647 := z.DecSliceHelperStart() var yyc4647 bool if yyl4647 == 0 { if yyv4647 == nil { yyv4647 = []FinalizerName{} yyc4647 = true } else if len(yyv4647) != 0 { yyv4647 = yyv4647[:0] yyc4647 = true } } else if yyl4647 > 0 { var yyrr4647, yyrl4647 int var yyrt4647 bool if yyl4647 > cap(yyv4647) { yyrl4647, yyrt4647 = z.DecInferLen(yyl4647, z.DecBasicHandle().MaxInitLen, 16) if yyrt4647 { if yyrl4647 <= cap(yyv4647) { yyv4647 = yyv4647[:yyrl4647] } else { yyv4647 = make([]FinalizerName, yyrl4647) } } else { yyv4647 = make([]FinalizerName, yyrl4647) } yyc4647 = true yyrr4647 = len(yyv4647) } else if yyl4647 != len(yyv4647) { yyv4647 = yyv4647[:yyl4647] yyc4647 = true } yyj4647 := 0 for ; yyj4647 < yyrr4647; yyj4647++ { yyh4647.ElemContainerState(yyj4647) if r.TryDecodeAsNil() { yyv4647[yyj4647] = "" } else { yyv4647[yyj4647] = FinalizerName(r.DecodeString()) } } if yyrt4647 { for ; yyj4647 < yyl4647; yyj4647++ { yyv4647 = append(yyv4647, "") yyh4647.ElemContainerState(yyj4647) if r.TryDecodeAsNil() { yyv4647[yyj4647] = "" } else { yyv4647[yyj4647] = FinalizerName(r.DecodeString()) } } } } else { yyj4647 := 0 for ; !r.CheckBreak(); yyj4647++ { if yyj4647 >= len(yyv4647) { yyv4647 = append(yyv4647, "") // var yyz4647 FinalizerName yyc4647 = true } yyh4647.ElemContainerState(yyj4647) if yyj4647 < len(yyv4647) { if r.TryDecodeAsNil() { yyv4647[yyj4647] = "" } else { yyv4647[yyj4647] = FinalizerName(r.DecodeString()) } } else { z.DecSwallow() } } if yyj4647 < len(yyv4647) { yyv4647 = yyv4647[:yyj4647] yyc4647 = true } else if yyj4647 == 0 && yyv4647 == nil { yyv4647 = []FinalizerName{} yyc4647 = true } } yyh4647.End() if yyc4647 { *v = yyv4647 } } func (x codecSelfer1234) encSliceNamespace(v []Namespace, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4651 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4652 := &yyv4651 yy4652.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4653 := *v yyh4653, yyl4653 := z.DecSliceHelperStart() var yyc4653 bool if yyl4653 == 0 { if yyv4653 == nil { yyv4653 = []Namespace{} yyc4653 = true } else if len(yyv4653) != 0 { yyv4653 = yyv4653[:0] yyc4653 = true } } else if yyl4653 > 0 { var yyrr4653, yyrl4653 int var yyrt4653 bool if yyl4653 > cap(yyv4653) { yyrg4653 := len(yyv4653) > 0 yyv24653 := yyv4653 yyrl4653, yyrt4653 = z.DecInferLen(yyl4653, z.DecBasicHandle().MaxInitLen, 280) if yyrt4653 { if yyrl4653 <= cap(yyv4653) { yyv4653 = yyv4653[:yyrl4653] } else { yyv4653 = make([]Namespace, yyrl4653) } } else { yyv4653 = make([]Namespace, yyrl4653) } yyc4653 = true yyrr4653 = len(yyv4653) if yyrg4653 { copy(yyv4653, yyv24653) } } else if yyl4653 != len(yyv4653) { yyv4653 = yyv4653[:yyl4653] yyc4653 = true } yyj4653 := 0 for ; yyj4653 < yyrr4653; yyj4653++ { yyh4653.ElemContainerState(yyj4653) if r.TryDecodeAsNil() { yyv4653[yyj4653] = Namespace{} } else { yyv4654 := &yyv4653[yyj4653] yyv4654.CodecDecodeSelf(d) } } if yyrt4653 { for ; yyj4653 < yyl4653; yyj4653++ { yyv4653 = append(yyv4653, Namespace{}) yyh4653.ElemContainerState(yyj4653) if r.TryDecodeAsNil() { yyv4653[yyj4653] = Namespace{} } else { yyv4655 := &yyv4653[yyj4653] yyv4655.CodecDecodeSelf(d) } } } } else { yyj4653 := 0 for ; !r.CheckBreak(); yyj4653++ { if yyj4653 >= len(yyv4653) { yyv4653 = append(yyv4653, Namespace{}) // var yyz4653 Namespace yyc4653 = true } yyh4653.ElemContainerState(yyj4653) if yyj4653 < len(yyv4653) { if r.TryDecodeAsNil() { yyv4653[yyj4653] = Namespace{} } else { yyv4656 := &yyv4653[yyj4653] yyv4656.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4653 < len(yyv4653) { yyv4653 = yyv4653[:yyj4653] yyc4653 = true } else if yyj4653 == 0 && yyv4653 == nil { yyv4653 = []Namespace{} yyc4653 = true } } yyh4653.End() if yyc4653 { *v = yyv4653 } } func (x codecSelfer1234) encSliceEvent(v []Event, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4657 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4658 := &yyv4657 yy4658.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4659 := *v yyh4659, yyl4659 := z.DecSliceHelperStart() var yyc4659 bool if yyl4659 == 0 { if yyv4659 == nil { yyv4659 = []Event{} yyc4659 = true } else if len(yyv4659) != 0 { yyv4659 = yyv4659[:0] yyc4659 = true } } else if yyl4659 > 0 { var yyrr4659, yyrl4659 int var yyrt4659 bool if yyl4659 > cap(yyv4659) { yyrg4659 := len(yyv4659) > 0 yyv24659 := yyv4659 yyrl4659, yyrt4659 = z.DecInferLen(yyl4659, z.DecBasicHandle().MaxInitLen, 488) if yyrt4659 { if yyrl4659 <= cap(yyv4659) { yyv4659 = yyv4659[:yyrl4659] } else { yyv4659 = make([]Event, yyrl4659) } } else { yyv4659 = make([]Event, yyrl4659) } yyc4659 = true yyrr4659 = len(yyv4659) if yyrg4659 { copy(yyv4659, yyv24659) } } else if yyl4659 != len(yyv4659) { yyv4659 = yyv4659[:yyl4659] yyc4659 = true } yyj4659 := 0 for ; yyj4659 < yyrr4659; yyj4659++ { yyh4659.ElemContainerState(yyj4659) if r.TryDecodeAsNil() { yyv4659[yyj4659] = Event{} } else { yyv4660 := &yyv4659[yyj4659] yyv4660.CodecDecodeSelf(d) } } if yyrt4659 { for ; yyj4659 < yyl4659; yyj4659++ { yyv4659 = append(yyv4659, Event{}) yyh4659.ElemContainerState(yyj4659) if r.TryDecodeAsNil() { yyv4659[yyj4659] = Event{} } else { yyv4661 := &yyv4659[yyj4659] yyv4661.CodecDecodeSelf(d) } } } } else { yyj4659 := 0 for ; !r.CheckBreak(); yyj4659++ { if yyj4659 >= len(yyv4659) { yyv4659 = append(yyv4659, Event{}) // var yyz4659 Event yyc4659 = true } yyh4659.ElemContainerState(yyj4659) if yyj4659 < len(yyv4659) { if r.TryDecodeAsNil() { yyv4659[yyj4659] = Event{} } else { yyv4662 := &yyv4659[yyj4659] yyv4662.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4659 < len(yyv4659) { yyv4659 = yyv4659[:yyj4659] yyc4659 = true } else if yyj4659 == 0 && yyv4659 == nil { yyv4659 = []Event{} yyc4659 = true } } yyh4659.End() if yyc4659 { *v = yyv4659 } } func (x codecSelfer1234) encSliceruntime_Object(v []pkg7_runtime.Object, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4663 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyv4663 == nil { r.EncodeNil() } else { yym4664 := z.EncBinary() _ = yym4664 if false { } else if z.HasExtensions() && z.EncExt(yyv4663) { } else { z.EncFallback(yyv4663) } } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg7_runtime.Object, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4665 := *v yyh4665, yyl4665 := z.DecSliceHelperStart() var yyc4665 bool if yyl4665 == 0 { if yyv4665 == nil { yyv4665 = []pkg7_runtime.Object{} yyc4665 = true } else if len(yyv4665) != 0 { yyv4665 = yyv4665[:0] yyc4665 = true } } else if yyl4665 > 0 { var yyrr4665, yyrl4665 int var yyrt4665 bool if yyl4665 > cap(yyv4665) { yyrg4665 := len(yyv4665) > 0 yyv24665 := yyv4665 yyrl4665, yyrt4665 = z.DecInferLen(yyl4665, z.DecBasicHandle().MaxInitLen, 16) if yyrt4665 { if yyrl4665 <= cap(yyv4665) { yyv4665 = yyv4665[:yyrl4665] } else { yyv4665 = make([]pkg7_runtime.Object, yyrl4665) } } else { yyv4665 = make([]pkg7_runtime.Object, yyrl4665) } yyc4665 = true yyrr4665 = len(yyv4665) if yyrg4665 { copy(yyv4665, yyv24665) } } else if yyl4665 != len(yyv4665) { yyv4665 = yyv4665[:yyl4665] yyc4665 = true } yyj4665 := 0 for ; yyj4665 < yyrr4665; yyj4665++ { yyh4665.ElemContainerState(yyj4665) if r.TryDecodeAsNil() { yyv4665[yyj4665] = nil } else { yyv4666 := &yyv4665[yyj4665] yym4667 := z.DecBinary() _ = yym4667 if false { } else if z.HasExtensions() && z.DecExt(yyv4666) { } else { z.DecFallback(yyv4666, true) } } } if yyrt4665 { for ; yyj4665 < yyl4665; yyj4665++ { yyv4665 = append(yyv4665, nil) yyh4665.ElemContainerState(yyj4665) if r.TryDecodeAsNil() { yyv4665[yyj4665] = nil } else { yyv4668 := &yyv4665[yyj4665] yym4669 := z.DecBinary() _ = yym4669 if false { } else if z.HasExtensions() && z.DecExt(yyv4668) { } else { z.DecFallback(yyv4668, true) } } } } } else { yyj4665 := 0 for ; !r.CheckBreak(); yyj4665++ { if yyj4665 >= len(yyv4665) { yyv4665 = append(yyv4665, nil) // var yyz4665 pkg7_runtime.Object yyc4665 = true } yyh4665.ElemContainerState(yyj4665) if yyj4665 < len(yyv4665) { if r.TryDecodeAsNil() { yyv4665[yyj4665] = nil } else { yyv4670 := &yyv4665[yyj4665] yym4671 := z.DecBinary() _ = yym4671 if false { } else if z.HasExtensions() && z.DecExt(yyv4670) { } else { z.DecFallback(yyv4670, true) } } } else { z.DecSwallow() } } if yyj4665 < len(yyv4665) { yyv4665 = yyv4665[:yyj4665] yyc4665 = true } else if yyj4665 == 0 && yyv4665 == nil { yyv4665 = []pkg7_runtime.Object{} yyc4665 = true } } yyh4665.End() if yyc4665 { *v = yyv4665 } } func (x codecSelfer1234) encSliceLimitRangeItem(v []LimitRangeItem, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4672 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4673 := &yyv4672 yy4673.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4674 := *v yyh4674, yyl4674 := z.DecSliceHelperStart() var yyc4674 bool if yyl4674 == 0 { if yyv4674 == nil { yyv4674 = []LimitRangeItem{} yyc4674 = true } else if len(yyv4674) != 0 { yyv4674 = yyv4674[:0] yyc4674 = true } } else if yyl4674 > 0 { var yyrr4674, yyrl4674 int var yyrt4674 bool if yyl4674 > cap(yyv4674) { yyrg4674 := len(yyv4674) > 0 yyv24674 := yyv4674 yyrl4674, yyrt4674 = z.DecInferLen(yyl4674, z.DecBasicHandle().MaxInitLen, 56) if yyrt4674 { if yyrl4674 <= cap(yyv4674) { yyv4674 = yyv4674[:yyrl4674] } else { yyv4674 = make([]LimitRangeItem, yyrl4674) } } else { yyv4674 = make([]LimitRangeItem, yyrl4674) } yyc4674 = true yyrr4674 = len(yyv4674) if yyrg4674 { copy(yyv4674, yyv24674) } } else if yyl4674 != len(yyv4674) { yyv4674 = yyv4674[:yyl4674] yyc4674 = true } yyj4674 := 0 for ; yyj4674 < yyrr4674; yyj4674++ { yyh4674.ElemContainerState(yyj4674) if r.TryDecodeAsNil() { yyv4674[yyj4674] = LimitRangeItem{} } else { yyv4675 := &yyv4674[yyj4674] yyv4675.CodecDecodeSelf(d) } } if yyrt4674 { for ; yyj4674 < yyl4674; yyj4674++ { yyv4674 = append(yyv4674, LimitRangeItem{}) yyh4674.ElemContainerState(yyj4674) if r.TryDecodeAsNil() { yyv4674[yyj4674] = LimitRangeItem{} } else { yyv4676 := &yyv4674[yyj4674] yyv4676.CodecDecodeSelf(d) } } } } else { yyj4674 := 0 for ; !r.CheckBreak(); yyj4674++ { if yyj4674 >= len(yyv4674) { yyv4674 = append(yyv4674, LimitRangeItem{}) // var yyz4674 LimitRangeItem yyc4674 = true } yyh4674.ElemContainerState(yyj4674) if yyj4674 < len(yyv4674) { if r.TryDecodeAsNil() { yyv4674[yyj4674] = LimitRangeItem{} } else { yyv4677 := &yyv4674[yyj4674] yyv4677.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4674 < len(yyv4674) { yyv4674 = yyv4674[:yyj4674] yyc4674 = true } else if yyj4674 == 0 && yyv4674 == nil { yyv4674 = []LimitRangeItem{} yyc4674 = true } } yyh4674.End() if yyc4674 { *v = yyv4674 } } func (x codecSelfer1234) encSliceLimitRange(v []LimitRange, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4678 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4679 := &yyv4678 yy4679.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4680 := *v yyh4680, yyl4680 := z.DecSliceHelperStart() var yyc4680 bool if yyl4680 == 0 { if yyv4680 == nil { yyv4680 = []LimitRange{} yyc4680 = true } else if len(yyv4680) != 0 { yyv4680 = yyv4680[:0] yyc4680 = true } } else if yyl4680 > 0 { var yyrr4680, yyrl4680 int var yyrt4680 bool if yyl4680 > cap(yyv4680) { yyrg4680 := len(yyv4680) > 0 yyv24680 := yyv4680 yyrl4680, yyrt4680 = z.DecInferLen(yyl4680, z.DecBasicHandle().MaxInitLen, 264) if yyrt4680 { if yyrl4680 <= cap(yyv4680) { yyv4680 = yyv4680[:yyrl4680] } else { yyv4680 = make([]LimitRange, yyrl4680) } } else { yyv4680 = make([]LimitRange, yyrl4680) } yyc4680 = true yyrr4680 = len(yyv4680) if yyrg4680 { copy(yyv4680, yyv24680) } } else if yyl4680 != len(yyv4680) { yyv4680 = yyv4680[:yyl4680] yyc4680 = true } yyj4680 := 0 for ; yyj4680 < yyrr4680; yyj4680++ { yyh4680.ElemContainerState(yyj4680) if r.TryDecodeAsNil() { yyv4680[yyj4680] = LimitRange{} } else { yyv4681 := &yyv4680[yyj4680] yyv4681.CodecDecodeSelf(d) } } if yyrt4680 { for ; yyj4680 < yyl4680; yyj4680++ { yyv4680 = append(yyv4680, LimitRange{}) yyh4680.ElemContainerState(yyj4680) if r.TryDecodeAsNil() { yyv4680[yyj4680] = LimitRange{} } else { yyv4682 := &yyv4680[yyj4680] yyv4682.CodecDecodeSelf(d) } } } } else { yyj4680 := 0 for ; !r.CheckBreak(); yyj4680++ { if yyj4680 >= len(yyv4680) { yyv4680 = append(yyv4680, LimitRange{}) // var yyz4680 LimitRange yyc4680 = true } yyh4680.ElemContainerState(yyj4680) if yyj4680 < len(yyv4680) { if r.TryDecodeAsNil() { yyv4680[yyj4680] = LimitRange{} } else { yyv4683 := &yyv4680[yyj4680] yyv4683.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4680 < len(yyv4680) { yyv4680 = yyv4680[:yyj4680] yyc4680 = true } else if yyj4680 == 0 && yyv4680 == nil { yyv4680 = []LimitRange{} yyc4680 = true } } yyh4680.End() if yyc4680 { *v = yyv4680 } } func (x codecSelfer1234) encSliceResourceQuotaScope(v []ResourceQuotaScope, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4684 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv4684.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4685 := *v yyh4685, yyl4685 := z.DecSliceHelperStart() var yyc4685 bool if yyl4685 == 0 { if yyv4685 == nil { yyv4685 = []ResourceQuotaScope{} yyc4685 = true } else if len(yyv4685) != 0 { yyv4685 = yyv4685[:0] yyc4685 = true } } else if yyl4685 > 0 { var yyrr4685, yyrl4685 int var yyrt4685 bool if yyl4685 > cap(yyv4685) { yyrl4685, yyrt4685 = z.DecInferLen(yyl4685, z.DecBasicHandle().MaxInitLen, 16) if yyrt4685 { if yyrl4685 <= cap(yyv4685) { yyv4685 = yyv4685[:yyrl4685] } else { yyv4685 = make([]ResourceQuotaScope, yyrl4685) } } else { yyv4685 = make([]ResourceQuotaScope, yyrl4685) } yyc4685 = true yyrr4685 = len(yyv4685) } else if yyl4685 != len(yyv4685) { yyv4685 = yyv4685[:yyl4685] yyc4685 = true } yyj4685 := 0 for ; yyj4685 < yyrr4685; yyj4685++ { yyh4685.ElemContainerState(yyj4685) if r.TryDecodeAsNil() { yyv4685[yyj4685] = "" } else { yyv4685[yyj4685] = ResourceQuotaScope(r.DecodeString()) } } if yyrt4685 { for ; yyj4685 < yyl4685; yyj4685++ { yyv4685 = append(yyv4685, "") yyh4685.ElemContainerState(yyj4685) if r.TryDecodeAsNil() { yyv4685[yyj4685] = "" } else { yyv4685[yyj4685] = ResourceQuotaScope(r.DecodeString()) } } } } else { yyj4685 := 0 for ; !r.CheckBreak(); yyj4685++ { if yyj4685 >= len(yyv4685) { yyv4685 = append(yyv4685, "") // var yyz4685 ResourceQuotaScope yyc4685 = true } yyh4685.ElemContainerState(yyj4685) if yyj4685 < len(yyv4685) { if r.TryDecodeAsNil() { yyv4685[yyj4685] = "" } else { yyv4685[yyj4685] = ResourceQuotaScope(r.DecodeString()) } } else { z.DecSwallow() } } if yyj4685 < len(yyv4685) { yyv4685 = yyv4685[:yyj4685] yyc4685 = true } else if yyj4685 == 0 && yyv4685 == nil { yyv4685 = []ResourceQuotaScope{} yyc4685 = true } } yyh4685.End() if yyc4685 { *v = yyv4685 } } func (x codecSelfer1234) encSliceResourceQuota(v []ResourceQuota, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4689 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4690 := &yyv4689 yy4690.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4691 := *v yyh4691, yyl4691 := z.DecSliceHelperStart() var yyc4691 bool if yyl4691 == 0 { if yyv4691 == nil { yyv4691 = []ResourceQuota{} yyc4691 = true } else if len(yyv4691) != 0 { yyv4691 = yyv4691[:0] yyc4691 = true } } else if yyl4691 > 0 { var yyrr4691, yyrl4691 int var yyrt4691 bool if yyl4691 > cap(yyv4691) { yyrg4691 := len(yyv4691) > 0 yyv24691 := yyv4691 yyrl4691, yyrt4691 = z.DecInferLen(yyl4691, z.DecBasicHandle().MaxInitLen, 288) if yyrt4691 { if yyrl4691 <= cap(yyv4691) { yyv4691 = yyv4691[:yyrl4691] } else { yyv4691 = make([]ResourceQuota, yyrl4691) } } else { yyv4691 = make([]ResourceQuota, yyrl4691) } yyc4691 = true yyrr4691 = len(yyv4691) if yyrg4691 { copy(yyv4691, yyv24691) } } else if yyl4691 != len(yyv4691) { yyv4691 = yyv4691[:yyl4691] yyc4691 = true } yyj4691 := 0 for ; yyj4691 < yyrr4691; yyj4691++ { yyh4691.ElemContainerState(yyj4691) if r.TryDecodeAsNil() { yyv4691[yyj4691] = ResourceQuota{} } else { yyv4692 := &yyv4691[yyj4691] yyv4692.CodecDecodeSelf(d) } } if yyrt4691 { for ; yyj4691 < yyl4691; yyj4691++ { yyv4691 = append(yyv4691, ResourceQuota{}) yyh4691.ElemContainerState(yyj4691) if r.TryDecodeAsNil() { yyv4691[yyj4691] = ResourceQuota{} } else { yyv4693 := &yyv4691[yyj4691] yyv4693.CodecDecodeSelf(d) } } } } else { yyj4691 := 0 for ; !r.CheckBreak(); yyj4691++ { if yyj4691 >= len(yyv4691) { yyv4691 = append(yyv4691, ResourceQuota{}) // var yyz4691 ResourceQuota yyc4691 = true } yyh4691.ElemContainerState(yyj4691) if yyj4691 < len(yyv4691) { if r.TryDecodeAsNil() { yyv4691[yyj4691] = ResourceQuota{} } else { yyv4694 := &yyv4691[yyj4691] yyv4694.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4691 < len(yyv4691) { yyv4691 = yyv4691[:yyj4691] yyc4691 = true } else if yyj4691 == 0 && yyv4691 == nil { yyv4691 = []ResourceQuota{} yyc4691 = true } } yyh4691.End() if yyc4691 { *v = yyv4691 } } func (x codecSelfer1234) encMapstringSliceuint8(v map[string][]uint8, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) for yyk4695, yyv4695 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) yym4696 := z.EncBinary() _ = yym4696 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(yyk4695)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyv4695 == nil { r.EncodeNil() } else { yym4697 := z.EncBinary() _ = yym4697 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4695)) } } } z.EncSendContainerState(codecSelfer_containerMapEnd1234) } func (x codecSelfer1234) decMapstringSliceuint8(v *map[string][]uint8, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4698 := *v yyl4698 := r.ReadMapStart() yybh4698 := z.DecBasicHandle() if yyv4698 == nil { yyrl4698, _ := z.DecInferLen(yyl4698, yybh4698.MaxInitLen, 40) yyv4698 = make(map[string][]uint8, yyrl4698) *v = yyv4698 } var yymk4698 string var yymv4698 []uint8 var yymg4698 bool if yybh4698.MapValueReset { yymg4698 = true } if yyl4698 > 0 { for yyj4698 := 0; yyj4698 < yyl4698; yyj4698++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4698 = "" } else { yymk4698 = string(r.DecodeString()) } if yymg4698 { yymv4698 = yyv4698[yymk4698] } else { yymv4698 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4698 = nil } else { yyv4700 := &yymv4698 yym4701 := z.DecBinary() _ = yym4701 if false { } else { *yyv4700 = r.DecodeBytes(*(*[]byte)(yyv4700), false, false) } } if yyv4698 != nil { yyv4698[yymk4698] = yymv4698 } } } else if yyl4698 < 0 { for yyj4698 := 0; !r.CheckBreak(); yyj4698++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4698 = "" } else { yymk4698 = string(r.DecodeString()) } if yymg4698 { yymv4698 = yyv4698[yymk4698] } else { yymv4698 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4698 = nil } else { yyv4703 := &yymv4698 yym4704 := z.DecBinary() _ = yym4704 if false { } else { *yyv4703 = r.DecodeBytes(*(*[]byte)(yyv4703), false, false) } } if yyv4698 != nil { yyv4698[yymk4698] = yymv4698 } } } // else len==0: TODO: Should we clear map entries? z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x codecSelfer1234) encSliceSecret(v []Secret, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4705 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4706 := &yyv4705 yy4706.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4707 := *v yyh4707, yyl4707 := z.DecSliceHelperStart() var yyc4707 bool if yyl4707 == 0 { if yyv4707 == nil { yyv4707 = []Secret{} yyc4707 = true } else if len(yyv4707) != 0 { yyv4707 = yyv4707[:0] yyc4707 = true } } else if yyl4707 > 0 { var yyrr4707, yyrl4707 int var yyrt4707 bool if yyl4707 > cap(yyv4707) { yyrg4707 := len(yyv4707) > 0 yyv24707 := yyv4707 yyrl4707, yyrt4707 = z.DecInferLen(yyl4707, z.DecBasicHandle().MaxInitLen, 264) if yyrt4707 { if yyrl4707 <= cap(yyv4707) { yyv4707 = yyv4707[:yyrl4707] } else { yyv4707 = make([]Secret, yyrl4707) } } else { yyv4707 = make([]Secret, yyrl4707) } yyc4707 = true yyrr4707 = len(yyv4707) if yyrg4707 { copy(yyv4707, yyv24707) } } else if yyl4707 != len(yyv4707) { yyv4707 = yyv4707[:yyl4707] yyc4707 = true } yyj4707 := 0 for ; yyj4707 < yyrr4707; yyj4707++ { yyh4707.ElemContainerState(yyj4707) if r.TryDecodeAsNil() { yyv4707[yyj4707] = Secret{} } else { yyv4708 := &yyv4707[yyj4707] yyv4708.CodecDecodeSelf(d) } } if yyrt4707 { for ; yyj4707 < yyl4707; yyj4707++ { yyv4707 = append(yyv4707, Secret{}) yyh4707.ElemContainerState(yyj4707) if r.TryDecodeAsNil() { yyv4707[yyj4707] = Secret{} } else { yyv4709 := &yyv4707[yyj4707] yyv4709.CodecDecodeSelf(d) } } } } else { yyj4707 := 0 for ; !r.CheckBreak(); yyj4707++ { if yyj4707 >= len(yyv4707) { yyv4707 = append(yyv4707, Secret{}) // var yyz4707 Secret yyc4707 = true } yyh4707.ElemContainerState(yyj4707) if yyj4707 < len(yyv4707) { if r.TryDecodeAsNil() { yyv4707[yyj4707] = Secret{} } else { yyv4710 := &yyv4707[yyj4707] yyv4710.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4707 < len(yyv4707) { yyv4707 = yyv4707[:yyj4707] yyc4707 = true } else if yyj4707 == 0 && yyv4707 == nil { yyv4707 = []Secret{} yyc4707 = true } } yyh4707.End() if yyc4707 { *v = yyv4707 } } func (x codecSelfer1234) encSliceConfigMap(v []ConfigMap, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4711 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4712 := &yyv4711 yy4712.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4713 := *v yyh4713, yyl4713 := z.DecSliceHelperStart() var yyc4713 bool if yyl4713 == 0 { if yyv4713 == nil { yyv4713 = []ConfigMap{} yyc4713 = true } else if len(yyv4713) != 0 { yyv4713 = yyv4713[:0] yyc4713 = true } } else if yyl4713 > 0 { var yyrr4713, yyrl4713 int var yyrt4713 bool if yyl4713 > cap(yyv4713) { yyrg4713 := len(yyv4713) > 0 yyv24713 := yyv4713 yyrl4713, yyrt4713 = z.DecInferLen(yyl4713, z.DecBasicHandle().MaxInitLen, 248) if yyrt4713 { if yyrl4713 <= cap(yyv4713) { yyv4713 = yyv4713[:yyrl4713] } else { yyv4713 = make([]ConfigMap, yyrl4713) } } else { yyv4713 = make([]ConfigMap, yyrl4713) } yyc4713 = true yyrr4713 = len(yyv4713) if yyrg4713 { copy(yyv4713, yyv24713) } } else if yyl4713 != len(yyv4713) { yyv4713 = yyv4713[:yyl4713] yyc4713 = true } yyj4713 := 0 for ; yyj4713 < yyrr4713; yyj4713++ { yyh4713.ElemContainerState(yyj4713) if r.TryDecodeAsNil() { yyv4713[yyj4713] = ConfigMap{} } else { yyv4714 := &yyv4713[yyj4713] yyv4714.CodecDecodeSelf(d) } } if yyrt4713 { for ; yyj4713 < yyl4713; yyj4713++ { yyv4713 = append(yyv4713, ConfigMap{}) yyh4713.ElemContainerState(yyj4713) if r.TryDecodeAsNil() { yyv4713[yyj4713] = ConfigMap{} } else { yyv4715 := &yyv4713[yyj4713] yyv4715.CodecDecodeSelf(d) } } } } else { yyj4713 := 0 for ; !r.CheckBreak(); yyj4713++ { if yyj4713 >= len(yyv4713) { yyv4713 = append(yyv4713, ConfigMap{}) // var yyz4713 ConfigMap yyc4713 = true } yyh4713.ElemContainerState(yyj4713) if yyj4713 < len(yyv4713) { if r.TryDecodeAsNil() { yyv4713[yyj4713] = ConfigMap{} } else { yyv4716 := &yyv4713[yyj4713] yyv4716.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4713 < len(yyv4713) { yyv4713 = yyv4713[:yyj4713] yyc4713 = true } else if yyj4713 == 0 && yyv4713 == nil { yyv4713 = []ConfigMap{} yyc4713 = true } } yyh4713.End() if yyc4713 { *v = yyv4713 } } func (x codecSelfer1234) encSliceComponentCondition(v []ComponentCondition, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4717 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4718 := &yyv4717 yy4718.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4719 := *v yyh4719, yyl4719 := z.DecSliceHelperStart() var yyc4719 bool if yyl4719 == 0 { if yyv4719 == nil { yyv4719 = []ComponentCondition{} yyc4719 = true } else if len(yyv4719) != 0 { yyv4719 = yyv4719[:0] yyc4719 = true } } else if yyl4719 > 0 { var yyrr4719, yyrl4719 int var yyrt4719 bool if yyl4719 > cap(yyv4719) { yyrg4719 := len(yyv4719) > 0 yyv24719 := yyv4719 yyrl4719, yyrt4719 = z.DecInferLen(yyl4719, z.DecBasicHandle().MaxInitLen, 64) if yyrt4719 { if yyrl4719 <= cap(yyv4719) { yyv4719 = yyv4719[:yyrl4719] } else { yyv4719 = make([]ComponentCondition, yyrl4719) } } else { yyv4719 = make([]ComponentCondition, yyrl4719) } yyc4719 = true yyrr4719 = len(yyv4719) if yyrg4719 { copy(yyv4719, yyv24719) } } else if yyl4719 != len(yyv4719) { yyv4719 = yyv4719[:yyl4719] yyc4719 = true } yyj4719 := 0 for ; yyj4719 < yyrr4719; yyj4719++ { yyh4719.ElemContainerState(yyj4719) if r.TryDecodeAsNil() { yyv4719[yyj4719] = ComponentCondition{} } else { yyv4720 := &yyv4719[yyj4719] yyv4720.CodecDecodeSelf(d) } } if yyrt4719 { for ; yyj4719 < yyl4719; yyj4719++ { yyv4719 = append(yyv4719, ComponentCondition{}) yyh4719.ElemContainerState(yyj4719) if r.TryDecodeAsNil() { yyv4719[yyj4719] = ComponentCondition{} } else { yyv4721 := &yyv4719[yyj4719] yyv4721.CodecDecodeSelf(d) } } } } else { yyj4719 := 0 for ; !r.CheckBreak(); yyj4719++ { if yyj4719 >= len(yyv4719) { yyv4719 = append(yyv4719, ComponentCondition{}) // var yyz4719 ComponentCondition yyc4719 = true } yyh4719.ElemContainerState(yyj4719) if yyj4719 < len(yyv4719) { if r.TryDecodeAsNil() { yyv4719[yyj4719] = ComponentCondition{} } else { yyv4722 := &yyv4719[yyj4719] yyv4722.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4719 < len(yyv4719) { yyv4719 = yyv4719[:yyj4719] yyc4719 = true } else if yyj4719 == 0 && yyv4719 == nil { yyv4719 = []ComponentCondition{} yyc4719 = true } } yyh4719.End() if yyc4719 { *v = yyv4719 } } func (x codecSelfer1234) encSliceComponentStatus(v []ComponentStatus, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4723 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4724 := &yyv4723 yy4724.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4725 := *v yyh4725, yyl4725 := z.DecSliceHelperStart() var yyc4725 bool if yyl4725 == 0 { if yyv4725 == nil { yyv4725 = []ComponentStatus{} yyc4725 = true } else if len(yyv4725) != 0 { yyv4725 = yyv4725[:0] yyc4725 = true } } else if yyl4725 > 0 { var yyrr4725, yyrl4725 int var yyrt4725 bool if yyl4725 > cap(yyv4725) { yyrg4725 := len(yyv4725) > 0 yyv24725 := yyv4725 yyrl4725, yyrt4725 = z.DecInferLen(yyl4725, z.DecBasicHandle().MaxInitLen, 264) if yyrt4725 { if yyrl4725 <= cap(yyv4725) { yyv4725 = yyv4725[:yyrl4725] } else { yyv4725 = make([]ComponentStatus, yyrl4725) } } else { yyv4725 = make([]ComponentStatus, yyrl4725) } yyc4725 = true yyrr4725 = len(yyv4725) if yyrg4725 { copy(yyv4725, yyv24725) } } else if yyl4725 != len(yyv4725) { yyv4725 = yyv4725[:yyl4725] yyc4725 = true } yyj4725 := 0 for ; yyj4725 < yyrr4725; yyj4725++ { yyh4725.ElemContainerState(yyj4725) if r.TryDecodeAsNil() { yyv4725[yyj4725] = ComponentStatus{} } else { yyv4726 := &yyv4725[yyj4725] yyv4726.CodecDecodeSelf(d) } } if yyrt4725 { for ; yyj4725 < yyl4725; yyj4725++ { yyv4725 = append(yyv4725, ComponentStatus{}) yyh4725.ElemContainerState(yyj4725) if r.TryDecodeAsNil() { yyv4725[yyj4725] = ComponentStatus{} } else { yyv4727 := &yyv4725[yyj4725] yyv4727.CodecDecodeSelf(d) } } } } else { yyj4725 := 0 for ; !r.CheckBreak(); yyj4725++ { if yyj4725 >= len(yyv4725) { yyv4725 = append(yyv4725, ComponentStatus{}) // var yyz4725 ComponentStatus yyc4725 = true } yyh4725.ElemContainerState(yyj4725) if yyj4725 < len(yyv4725) { if r.TryDecodeAsNil() { yyv4725[yyj4725] = ComponentStatus{} } else { yyv4728 := &yyv4725[yyj4725] yyv4728.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4725 < len(yyv4725) { yyv4725 = yyv4725[:yyj4725] yyc4725 = true } else if yyj4725 == 0 && yyv4725 == nil { yyv4725 = []ComponentStatus{} yyc4725 = true } } yyh4725.End() if yyc4725 { *v = yyv4725 } }