/* 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 [2]bool _, _, _ = yysep759, yyq759, yy2arr759 const yyr759 bool = false yyq759[0] = x.SecretName != "" yyq759[1] = len(x.Items) != 0 var yynn759 int if yyr759 || yy2arr759 { r.EncodeArrayStart(2) } 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_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *SecretVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym766 := z.DecBinary() _ = yym766 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct767 := r.ContainerType() if yyct767 == codecSelferValueTypeMap1234 { yyl767 := r.ReadMapStart() if yyl767 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl767, d) } } else if yyct767 == codecSelferValueTypeArray1234 { yyl767 := r.ReadArrayStart() if yyl767 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl767, 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 yys768Slc = z.DecScratchBuffer() // default slice to decode into _ = yys768Slc var yyhl768 bool = l >= 0 for yyj768 := 0; ; yyj768++ { if yyhl768 { if yyj768 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys768Slc = r.DecodeBytes(yys768Slc, true, true) yys768 := string(yys768Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys768 { case "secretName": if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv770 := &x.Items yym771 := z.DecBinary() _ = yym771 if false { } else { h.decSliceKeyToPath((*[]KeyToPath)(yyv770), d) } } default: z.DecStructFieldNotFound(-1, yys768) } // end switch yys768 } // end for yyj768 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 yyj772 int var yyb772 bool var yyhl772 bool = l >= 0 yyj772++ if yyhl772 { yyb772 = yyj772 > l } else { yyb772 = r.CheckBreak() } if yyb772 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } yyj772++ if yyhl772 { yyb772 = yyj772 > l } else { yyb772 = r.CheckBreak() } if yyb772 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv774 := &x.Items yym775 := z.DecBinary() _ = yym775 if false { } else { h.decSliceKeyToPath((*[]KeyToPath)(yyv774), d) } } for { yyj772++ if yyhl772 { yyb772 = yyj772 > l } else { yyb772 = r.CheckBreak() } if yyb772 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj772-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 { yym776 := z.EncBinary() _ = yym776 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep777 := !z.EncBinary() yy2arr777 := z.EncBasicHandle().StructToArray var yyq777 [3]bool _, _, _ = yysep777, yyq777, yy2arr777 const yyr777 bool = false yyq777[2] = x.ReadOnly != false var yynn777 int if yyr777 || yy2arr777 { r.EncodeArrayStart(3) } else { yynn777 = 2 for _, b := range yyq777 { if b { yynn777++ } } r.EncodeMapStart(yynn777) yynn777 = 0 } if yyr777 || yy2arr777 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym779 := z.EncBinary() _ = yym779 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) yym780 := z.EncBinary() _ = yym780 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) } } if yyr777 || yy2arr777 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym782 := z.EncBinary() _ = yym782 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) yym783 := z.EncBinary() _ = yym783 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr777 || yy2arr777 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq777[2] { yym785 := z.EncBinary() _ = yym785 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq777[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym786 := z.EncBinary() _ = yym786 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr777 || yy2arr777 { 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 yym787 := z.DecBinary() _ = yym787 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct788 := r.ContainerType() if yyct788 == codecSelferValueTypeMap1234 { yyl788 := r.ReadMapStart() if yyl788 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl788, d) } } else if yyct788 == codecSelferValueTypeArray1234 { yyl788 := r.ReadArrayStart() if yyl788 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl788, 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 yys789Slc = z.DecScratchBuffer() // default slice to decode into _ = yys789Slc var yyhl789 bool = l >= 0 for yyj789 := 0; ; yyj789++ { if yyhl789 { if yyj789 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys789Slc = r.DecodeBytes(yys789Slc, true, true) yys789 := string(yys789Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys789 { 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, yys789) } // end switch yys789 } // end for yyj789 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 yyj793 int var yyb793 bool var yyhl793 bool = l >= 0 yyj793++ if yyhl793 { yyb793 = yyj793 > l } else { yyb793 = r.CheckBreak() } if yyb793 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Server = "" } else { x.Server = string(r.DecodeString()) } yyj793++ if yyhl793 { yyb793 = yyj793 > l } else { yyb793 = r.CheckBreak() } if yyb793 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj793++ if yyhl793 { yyb793 = yyj793 > l } else { yyb793 = r.CheckBreak() } if yyb793 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj793++ if yyhl793 { yyb793 = yyj793 > l } else { yyb793 = r.CheckBreak() } if yyb793 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj793-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 { yym797 := z.EncBinary() _ = yym797 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep798 := !z.EncBinary() yy2arr798 := z.EncBasicHandle().StructToArray var yyq798 [3]bool _, _, _ = yysep798, yyq798, yy2arr798 const yyr798 bool = false yyq798[2] = x.ReadOnly != false var yynn798 int if yyr798 || yy2arr798 { r.EncodeArrayStart(3) } else { yynn798 = 2 for _, b := range yyq798 { if b { yynn798++ } } r.EncodeMapStart(yynn798) yynn798 = 0 } if yyr798 || yy2arr798 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym800 := z.EncBinary() _ = yym800 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) yym801 := z.EncBinary() _ = yym801 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) } } if yyr798 || yy2arr798 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym803 := z.EncBinary() _ = yym803 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) yym804 := z.EncBinary() _ = yym804 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr798 || yy2arr798 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq798[2] { yym806 := z.EncBinary() _ = yym806 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq798[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym807 := z.EncBinary() _ = yym807 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr798 || yy2arr798 { 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 yym808 := z.DecBinary() _ = yym808 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct809 := r.ContainerType() if yyct809 == codecSelferValueTypeMap1234 { yyl809 := r.ReadMapStart() if yyl809 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl809, d) } } else if yyct809 == codecSelferValueTypeArray1234 { yyl809 := r.ReadArrayStart() if yyl809 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl809, 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 yys810Slc = z.DecScratchBuffer() // default slice to decode into _ = yys810Slc var yyhl810 bool = l >= 0 for yyj810 := 0; ; yyj810++ { if yyhl810 { if yyj810 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys810Slc = r.DecodeBytes(yys810Slc, true, true) yys810 := string(yys810Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys810 { 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, yys810) } // end switch yys810 } // end for yyj810 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 yyj814 int var yyb814 bool var yyhl814 bool = l >= 0 yyj814++ if yyhl814 { yyb814 = yyj814 > l } else { yyb814 = r.CheckBreak() } if yyb814 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.EndpointsName = "" } else { x.EndpointsName = string(r.DecodeString()) } yyj814++ if yyhl814 { yyb814 = yyj814 > l } else { yyb814 = r.CheckBreak() } if yyb814 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj814++ if yyhl814 { yyb814 = yyj814 > l } else { yyb814 = r.CheckBreak() } if yyb814 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj814++ if yyhl814 { yyb814 = yyj814 > l } else { yyb814 = r.CheckBreak() } if yyb814 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj814-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 { yym818 := z.EncBinary() _ = yym818 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep819 := !z.EncBinary() yy2arr819 := z.EncBasicHandle().StructToArray var yyq819 [8]bool _, _, _ = yysep819, yyq819, yy2arr819 const yyr819 bool = false yyq819[2] = x.FSType != "" yyq819[3] = x.RBDPool != "" yyq819[4] = x.RadosUser != "" yyq819[5] = x.Keyring != "" yyq819[6] = x.SecretRef != nil yyq819[7] = x.ReadOnly != false var yynn819 int if yyr819 || yy2arr819 { r.EncodeArrayStart(8) } else { yynn819 = 2 for _, b := range yyq819 { if b { yynn819++ } } r.EncodeMapStart(yynn819) yynn819 = 0 } if yyr819 || yy2arr819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.CephMonitors == nil { r.EncodeNil() } else { yym821 := z.EncBinary() _ = yym821 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 { yym822 := z.EncBinary() _ = yym822 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) } } } if yyr819 || yy2arr819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym824 := z.EncBinary() _ = yym824 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) yym825 := z.EncBinary() _ = yym825 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) } } if yyr819 || yy2arr819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq819[2] { yym827 := z.EncBinary() _ = yym827 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq819[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym828 := z.EncBinary() _ = yym828 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr819 || yy2arr819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq819[3] { yym830 := z.EncBinary() _ = yym830 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq819[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pool")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym831 := z.EncBinary() _ = yym831 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) } } } if yyr819 || yy2arr819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq819[4] { yym833 := z.EncBinary() _ = yym833 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq819[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym834 := z.EncBinary() _ = yym834 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) } } } if yyr819 || yy2arr819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq819[5] { yym836 := z.EncBinary() _ = yym836 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq819[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("keyring")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym837 := z.EncBinary() _ = yym837 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) } } } if yyr819 || yy2arr819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq819[6] { if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq819[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 yyr819 || yy2arr819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq819[7] { yym840 := z.EncBinary() _ = yym840 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq819[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym841 := z.EncBinary() _ = yym841 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr819 || yy2arr819 { 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 yym842 := z.DecBinary() _ = yym842 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct843 := r.ContainerType() if yyct843 == codecSelferValueTypeMap1234 { yyl843 := r.ReadMapStart() if yyl843 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl843, d) } } else if yyct843 == codecSelferValueTypeArray1234 { yyl843 := r.ReadArrayStart() if yyl843 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl843, 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 yys844Slc = z.DecScratchBuffer() // default slice to decode into _ = yys844Slc var yyhl844 bool = l >= 0 for yyj844 := 0; ; yyj844++ { if yyhl844 { if yyj844 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys844Slc = r.DecodeBytes(yys844Slc, true, true) yys844 := string(yys844Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys844 { case "monitors": if r.TryDecodeAsNil() { x.CephMonitors = nil } else { yyv845 := &x.CephMonitors yym846 := z.DecBinary() _ = yym846 if false { } else { z.F.DecSliceStringX(yyv845, 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, yys844) } // end switch yys844 } // end for yyj844 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 yyj854 int var yyb854 bool var yyhl854 bool = l >= 0 yyj854++ if yyhl854 { yyb854 = yyj854 > l } else { yyb854 = r.CheckBreak() } if yyb854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.CephMonitors = nil } else { yyv855 := &x.CephMonitors yym856 := z.DecBinary() _ = yym856 if false { } else { z.F.DecSliceStringX(yyv855, false, d) } } yyj854++ if yyhl854 { yyb854 = yyj854 > l } else { yyb854 = r.CheckBreak() } if yyb854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RBDImage = "" } else { x.RBDImage = string(r.DecodeString()) } yyj854++ if yyhl854 { yyb854 = yyj854 > l } else { yyb854 = r.CheckBreak() } if yyb854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj854++ if yyhl854 { yyb854 = yyj854 > l } else { yyb854 = r.CheckBreak() } if yyb854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RBDPool = "" } else { x.RBDPool = string(r.DecodeString()) } yyj854++ if yyhl854 { yyb854 = yyj854 > l } else { yyb854 = r.CheckBreak() } if yyb854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RadosUser = "" } else { x.RadosUser = string(r.DecodeString()) } yyj854++ if yyhl854 { yyb854 = yyj854 > l } else { yyb854 = r.CheckBreak() } if yyb854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Keyring = "" } else { x.Keyring = string(r.DecodeString()) } yyj854++ if yyhl854 { yyb854 = yyj854 > l } else { yyb854 = r.CheckBreak() } if yyb854 { 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) } yyj854++ if yyhl854 { yyb854 = yyj854 > l } else { yyb854 = r.CheckBreak() } if yyb854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj854++ if yyhl854 { yyb854 = yyj854 > l } else { yyb854 = r.CheckBreak() } if yyb854 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj854-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 { yym864 := z.EncBinary() _ = yym864 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep865 := !z.EncBinary() yy2arr865 := z.EncBasicHandle().StructToArray var yyq865 [3]bool _, _, _ = yysep865, yyq865, yy2arr865 const yyr865 bool = false yyq865[1] = x.FSType != "" yyq865[2] = x.ReadOnly != false var yynn865 int if yyr865 || yy2arr865 { r.EncodeArrayStart(3) } else { yynn865 = 1 for _, b := range yyq865 { if b { yynn865++ } } r.EncodeMapStart(yynn865) yynn865 = 0 } if yyr865 || yy2arr865 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym867 := z.EncBinary() _ = yym867 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) yym868 := z.EncBinary() _ = yym868 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } if yyr865 || yy2arr865 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq865[1] { yym870 := z.EncBinary() _ = yym870 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq865[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym871 := z.EncBinary() _ = yym871 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr865 || yy2arr865 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq865[2] { yym873 := z.EncBinary() _ = yym873 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq865[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym874 := z.EncBinary() _ = yym874 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr865 || yy2arr865 { 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 yym875 := z.DecBinary() _ = yym875 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct876 := r.ContainerType() if yyct876 == codecSelferValueTypeMap1234 { yyl876 := r.ReadMapStart() if yyl876 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl876, d) } } else if yyct876 == codecSelferValueTypeArray1234 { yyl876 := r.ReadArrayStart() if yyl876 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl876, 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 yys877Slc = z.DecScratchBuffer() // default slice to decode into _ = yys877Slc var yyhl877 bool = l >= 0 for yyj877 := 0; ; yyj877++ { if yyhl877 { if yyj877 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys877Slc = r.DecodeBytes(yys877Slc, true, true) yys877 := string(yys877Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys877 { 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, yys877) } // end switch yys877 } // end for yyj877 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 yyj881 int var yyb881 bool var yyhl881 bool = l >= 0 yyj881++ if yyhl881 { yyb881 = yyj881 > l } else { yyb881 = r.CheckBreak() } if yyb881 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeID = "" } else { x.VolumeID = string(r.DecodeString()) } yyj881++ if yyhl881 { yyb881 = yyj881 > l } else { yyb881 = r.CheckBreak() } if yyb881 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj881++ if yyhl881 { yyb881 = yyj881 > l } else { yyb881 = r.CheckBreak() } if yyb881 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj881++ if yyhl881 { yyb881 = yyj881 > l } else { yyb881 = r.CheckBreak() } if yyb881 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj881-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 { yym885 := z.EncBinary() _ = yym885 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep886 := !z.EncBinary() yy2arr886 := z.EncBasicHandle().StructToArray var yyq886 [6]bool _, _, _ = yysep886, yyq886, yy2arr886 const yyr886 bool = false yyq886[1] = x.Path != "" yyq886[2] = x.User != "" yyq886[3] = x.SecretFile != "" yyq886[4] = x.SecretRef != nil yyq886[5] = x.ReadOnly != false var yynn886 int if yyr886 || yy2arr886 { r.EncodeArrayStart(6) } else { yynn886 = 1 for _, b := range yyq886 { if b { yynn886++ } } r.EncodeMapStart(yynn886) yynn886 = 0 } if yyr886 || yy2arr886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Monitors == nil { r.EncodeNil() } else { yym888 := z.EncBinary() _ = yym888 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 { yym889 := z.EncBinary() _ = yym889 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) } } } if yyr886 || yy2arr886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq886[1] { yym891 := z.EncBinary() _ = yym891 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq886[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym892 := z.EncBinary() _ = yym892 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } if yyr886 || yy2arr886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq886[2] { yym894 := z.EncBinary() _ = yym894 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq886[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym895 := z.EncBinary() _ = yym895 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } if yyr886 || yy2arr886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq886[3] { yym897 := z.EncBinary() _ = yym897 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq886[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym898 := z.EncBinary() _ = yym898 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } } if yyr886 || yy2arr886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq886[4] { if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq886[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 yyr886 || yy2arr886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq886[5] { yym901 := z.EncBinary() _ = yym901 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq886[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym902 := z.EncBinary() _ = yym902 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr886 || yy2arr886 { 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 yym903 := z.DecBinary() _ = yym903 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct904 := r.ContainerType() if yyct904 == codecSelferValueTypeMap1234 { yyl904 := r.ReadMapStart() if yyl904 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl904, d) } } else if yyct904 == codecSelferValueTypeArray1234 { yyl904 := r.ReadArrayStart() if yyl904 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl904, 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 yys905Slc = z.DecScratchBuffer() // default slice to decode into _ = yys905Slc var yyhl905 bool = l >= 0 for yyj905 := 0; ; yyj905++ { if yyhl905 { if yyj905 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys905Slc = r.DecodeBytes(yys905Slc, true, true) yys905 := string(yys905Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys905 { case "monitors": if r.TryDecodeAsNil() { x.Monitors = nil } else { yyv906 := &x.Monitors yym907 := z.DecBinary() _ = yym907 if false { } else { z.F.DecSliceStringX(yyv906, 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, yys905) } // end switch yys905 } // end for yyj905 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 yyj913 int var yyb913 bool var yyhl913 bool = l >= 0 yyj913++ if yyhl913 { yyb913 = yyj913 > l } else { yyb913 = r.CheckBreak() } if yyb913 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Monitors = nil } else { yyv914 := &x.Monitors yym915 := z.DecBinary() _ = yym915 if false { } else { z.F.DecSliceStringX(yyv914, false, d) } } yyj913++ if yyhl913 { yyb913 = yyj913 > l } else { yyb913 = r.CheckBreak() } if yyb913 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj913++ if yyhl913 { yyb913 = yyj913 > l } else { yyb913 = r.CheckBreak() } if yyb913 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } yyj913++ if yyhl913 { yyb913 = yyj913 > l } else { yyb913 = r.CheckBreak() } if yyb913 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SecretFile = "" } else { x.SecretFile = string(r.DecodeString()) } yyj913++ if yyhl913 { yyb913 = yyj913 > l } else { yyb913 = r.CheckBreak() } if yyb913 { 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) } yyj913++ if yyhl913 { yyb913 = yyj913 > l } else { yyb913 = r.CheckBreak() } if yyb913 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj913++ if yyhl913 { yyb913 = yyj913 > l } else { yyb913 = r.CheckBreak() } if yyb913 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj913-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 { yym921 := z.EncBinary() _ = yym921 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep922 := !z.EncBinary() yy2arr922 := z.EncBasicHandle().StructToArray var yyq922 [1]bool _, _, _ = yysep922, yyq922, yy2arr922 const yyr922 bool = false var yynn922 int if yyr922 || yy2arr922 { r.EncodeArrayStart(1) } else { yynn922 = 1 for _, b := range yyq922 { if b { yynn922++ } } r.EncodeMapStart(yynn922) yynn922 = 0 } if yyr922 || yy2arr922 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym924 := z.EncBinary() _ = yym924 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) yym925 := z.EncBinary() _ = yym925 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) } } if yyr922 || yy2arr922 { 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 yym926 := z.DecBinary() _ = yym926 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct927 := r.ContainerType() if yyct927 == codecSelferValueTypeMap1234 { yyl927 := r.ReadMapStart() if yyl927 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl927, d) } } else if yyct927 == codecSelferValueTypeArray1234 { yyl927 := r.ReadArrayStart() if yyl927 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl927, 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 yys928Slc = z.DecScratchBuffer() // default slice to decode into _ = yys928Slc var yyhl928 bool = l >= 0 for yyj928 := 0; ; yyj928++ { if yyhl928 { if yyj928 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys928Slc = r.DecodeBytes(yys928Slc, true, true) yys928 := string(yys928Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys928 { case "datasetName": if r.TryDecodeAsNil() { x.DatasetName = "" } else { x.DatasetName = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys928) } // end switch yys928 } // end for yyj928 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 yyj930 int var yyb930 bool var yyhl930 bool = l >= 0 yyj930++ if yyhl930 { yyb930 = yyj930 > l } else { yyb930 = r.CheckBreak() } if yyb930 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DatasetName = "" } else { x.DatasetName = string(r.DecodeString()) } for { yyj930++ if yyhl930 { yyb930 = yyj930 > l } else { yyb930 = r.CheckBreak() } if yyb930 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj930-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 { yym932 := z.EncBinary() _ = yym932 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep933 := !z.EncBinary() yy2arr933 := z.EncBasicHandle().StructToArray var yyq933 [1]bool _, _, _ = yysep933, yyq933, yy2arr933 const yyr933 bool = false yyq933[0] = len(x.Items) != 0 var yynn933 int if yyr933 || yy2arr933 { r.EncodeArrayStart(1) } else { yynn933 = 0 for _, b := range yyq933 { if b { yynn933++ } } r.EncodeMapStart(yynn933) yynn933 = 0 } if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq933[0] { if x.Items == nil { r.EncodeNil() } else { yym935 := z.EncBinary() _ = yym935 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) } } } else { r.EncodeNil() } } else { if yyq933[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym936 := z.EncBinary() _ = yym936 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) } } } } if yyr933 || yy2arr933 { 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 yym937 := z.DecBinary() _ = yym937 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct938 := r.ContainerType() if yyct938 == codecSelferValueTypeMap1234 { yyl938 := r.ReadMapStart() if yyl938 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl938, d) } } else if yyct938 == codecSelferValueTypeArray1234 { yyl938 := r.ReadArrayStart() if yyl938 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl938, 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 yys939Slc = z.DecScratchBuffer() // default slice to decode into _ = yys939Slc var yyhl939 bool = l >= 0 for yyj939 := 0; ; yyj939++ { if yyhl939 { if yyj939 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys939Slc = r.DecodeBytes(yys939Slc, true, true) yys939 := string(yys939Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys939 { case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv940 := &x.Items yym941 := z.DecBinary() _ = yym941 if false { } else { h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv940), d) } } default: z.DecStructFieldNotFound(-1, yys939) } // end switch yys939 } // end for yyj939 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 yyj942 int var yyb942 bool var yyhl942 bool = l >= 0 yyj942++ if yyhl942 { yyb942 = yyj942 > l } else { yyb942 = r.CheckBreak() } if yyb942 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv943 := &x.Items yym944 := z.DecBinary() _ = yym944 if false { } else { h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv943), d) } } for { yyj942++ if yyhl942 { yyb942 = yyj942 > l } else { yyb942 = r.CheckBreak() } if yyb942 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj942-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 { yym945 := z.EncBinary() _ = yym945 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep946 := !z.EncBinary() yy2arr946 := z.EncBasicHandle().StructToArray var yyq946 [3]bool _, _, _ = yysep946, yyq946, yy2arr946 const yyr946 bool = false yyq946[1] = x.FieldRef != nil yyq946[2] = x.ResourceFieldRef != nil var yynn946 int if yyr946 || yy2arr946 { r.EncodeArrayStart(3) } else { yynn946 = 1 for _, b := range yyq946 { if b { yynn946++ } } r.EncodeMapStart(yynn946) yynn946 = 0 } if yyr946 || yy2arr946 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym948 := z.EncBinary() _ = yym948 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) yym949 := z.EncBinary() _ = yym949 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr946 || yy2arr946 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq946[1] { if x.FieldRef == nil { r.EncodeNil() } else { x.FieldRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq946[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 yyr946 || yy2arr946 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq946[2] { if x.ResourceFieldRef == nil { r.EncodeNil() } else { x.ResourceFieldRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq946[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 yyr946 || yy2arr946 { 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 yym952 := z.DecBinary() _ = yym952 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct953 := r.ContainerType() if yyct953 == codecSelferValueTypeMap1234 { yyl953 := r.ReadMapStart() if yyl953 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl953, d) } } else if yyct953 == codecSelferValueTypeArray1234 { yyl953 := r.ReadArrayStart() if yyl953 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl953, 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 yys954Slc = z.DecScratchBuffer() // default slice to decode into _ = yys954Slc var yyhl954 bool = l >= 0 for yyj954 := 0; ; yyj954++ { if yyhl954 { if yyj954 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys954Slc = r.DecodeBytes(yys954Slc, true, true) yys954 := string(yys954Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys954 { 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) } default: z.DecStructFieldNotFound(-1, yys954) } // end switch yys954 } // end for yyj954 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 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.Path = "" } else { x.Path = string(r.DecodeString()) } 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.FieldRef != nil { x.FieldRef = nil } } else { if x.FieldRef == nil { x.FieldRef = new(ObjectFieldSelector) } x.FieldRef.CodecDecodeSelf(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.ResourceFieldRef != nil { x.ResourceFieldRef = nil } } else { if x.ResourceFieldRef == nil { x.ResourceFieldRef = new(ResourceFieldSelector) } x.ResourceFieldRef.CodecDecodeSelf(d) } 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 *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym962 := z.EncBinary() _ = yym962 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep963 := !z.EncBinary() yy2arr963 := z.EncBasicHandle().StructToArray var yyq963 [3]bool _, _, _ = yysep963, yyq963, yy2arr963 const yyr963 bool = false yyq963[2] = x.ReadOnly != false var yynn963 int if yyr963 || yy2arr963 { r.EncodeArrayStart(3) } else { yynn963 = 2 for _, b := range yyq963 { if b { yynn963++ } } r.EncodeMapStart(yynn963) yynn963 = 0 } if yyr963 || yy2arr963 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym965 := z.EncBinary() _ = yym965 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) yym966 := z.EncBinary() _ = yym966 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } if yyr963 || yy2arr963 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym968 := z.EncBinary() _ = yym968 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) yym969 := z.EncBinary() _ = yym969 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) } } if yyr963 || yy2arr963 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq963[2] { yym971 := z.EncBinary() _ = yym971 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq963[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym972 := z.EncBinary() _ = yym972 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr963 || yy2arr963 { 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 yym973 := z.DecBinary() _ = yym973 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct974 := r.ContainerType() if yyct974 == codecSelferValueTypeMap1234 { yyl974 := r.ReadMapStart() if yyl974 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl974, d) } } else if yyct974 == codecSelferValueTypeArray1234 { yyl974 := r.ReadArrayStart() if yyl974 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl974, 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 yys975Slc = z.DecScratchBuffer() // default slice to decode into _ = yys975Slc var yyhl975 bool = l >= 0 for yyj975 := 0; ; yyj975++ { if yyhl975 { if yyj975 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys975Slc = r.DecodeBytes(yys975Slc, true, true) yys975 := string(yys975Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys975 { 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, yys975) } // end switch yys975 } // end for yyj975 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 yyj979 int var yyb979 bool var yyhl979 bool = l >= 0 yyj979++ if yyhl979 { yyb979 = yyj979 > l } else { yyb979 = r.CheckBreak() } if yyb979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } yyj979++ if yyhl979 { yyb979 = yyj979 > l } else { yyb979 = r.CheckBreak() } if yyb979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ShareName = "" } else { x.ShareName = string(r.DecodeString()) } yyj979++ if yyhl979 { yyb979 = yyj979 > l } else { yyb979 = r.CheckBreak() } if yyb979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj979++ if yyhl979 { yyb979 = yyj979 > l } else { yyb979 = r.CheckBreak() } if yyb979 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj979-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 { yym983 := z.EncBinary() _ = yym983 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep984 := !z.EncBinary() yy2arr984 := z.EncBasicHandle().StructToArray var yyq984 [2]bool _, _, _ = yysep984, yyq984, yy2arr984 const yyr984 bool = false yyq984[1] = x.FSType != "" var yynn984 int if yyr984 || yy2arr984 { r.EncodeArrayStart(2) } else { yynn984 = 1 for _, b := range yyq984 { if b { yynn984++ } } r.EncodeMapStart(yynn984) yynn984 = 0 } if yyr984 || yy2arr984 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym986 := z.EncBinary() _ = yym986 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) yym987 := z.EncBinary() _ = yym987 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) } } if yyr984 || yy2arr984 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq984[1] { yym989 := z.EncBinary() _ = yym989 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq984[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym990 := z.EncBinary() _ = yym990 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr984 || yy2arr984 { 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 yym991 := z.DecBinary() _ = yym991 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct992 := r.ContainerType() if yyct992 == codecSelferValueTypeMap1234 { yyl992 := r.ReadMapStart() if yyl992 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl992, d) } } else if yyct992 == codecSelferValueTypeArray1234 { yyl992 := r.ReadArrayStart() if yyl992 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl992, 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 yys993Slc = z.DecScratchBuffer() // default slice to decode into _ = yys993Slc var yyhl993 bool = l >= 0 for yyj993 := 0; ; yyj993++ { if yyhl993 { if yyj993 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys993Slc = r.DecodeBytes(yys993Slc, true, true) yys993 := string(yys993Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys993 { 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, yys993) } // end switch yys993 } // end for yyj993 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 yyj996 int var yyb996 bool var yyhl996 bool = l >= 0 yyj996++ if yyhl996 { yyb996 = yyj996 > l } else { yyb996 = r.CheckBreak() } if yyb996 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumePath = "" } else { x.VolumePath = string(r.DecodeString()) } yyj996++ if yyhl996 { yyb996 = yyj996 > l } else { yyb996 = r.CheckBreak() } if yyb996 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } for { yyj996++ if yyhl996 { yyb996 = yyj996 > l } else { yyb996 = r.CheckBreak() } if yyb996 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj996-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 { yym999 := z.EncBinary() _ = yym999 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1000 := !z.EncBinary() yy2arr1000 := z.EncBasicHandle().StructToArray var yyq1000 [2]bool _, _, _ = yysep1000, yyq1000, yy2arr1000 const yyr1000 bool = false yyq1000[1] = len(x.Items) != 0 var yynn1000 int if yyr1000 || yy2arr1000 { r.EncodeArrayStart(2) } else { yynn1000 = 1 for _, b := range yyq1000 { if b { yynn1000++ } } r.EncodeMapStart(yynn1000) yynn1000 = 0 } if yyr1000 || yy2arr1000 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1002 := z.EncBinary() _ = yym1002 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) yym1003 := z.EncBinary() _ = yym1003 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1000 || yy2arr1000 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1000[1] { if x.Items == nil { r.EncodeNil() } else { yym1005 := z.EncBinary() _ = yym1005 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) } } } else { r.EncodeNil() } } else { if yyq1000[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym1006 := z.EncBinary() _ = yym1006 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) } } } } if yyr1000 || yy2arr1000 { 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 yym1007 := z.DecBinary() _ = yym1007 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1008 := r.ContainerType() if yyct1008 == codecSelferValueTypeMap1234 { yyl1008 := r.ReadMapStart() if yyl1008 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1008, d) } } else if yyct1008 == codecSelferValueTypeArray1234 { yyl1008 := r.ReadArrayStart() if yyl1008 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1008, 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 yys1009Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1009Slc var yyhl1009 bool = l >= 0 for yyj1009 := 0; ; yyj1009++ { if yyhl1009 { if yyj1009 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1009Slc = r.DecodeBytes(yys1009Slc, true, true) yys1009 := string(yys1009Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1009 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1011 := &x.Items yym1012 := z.DecBinary() _ = yym1012 if false { } else { h.decSliceKeyToPath((*[]KeyToPath)(yyv1011), d) } } default: z.DecStructFieldNotFound(-1, yys1009) } // end switch yys1009 } // end for yyj1009 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 yyj1013 int var yyb1013 bool var yyhl1013 bool = l >= 0 yyj1013++ if yyhl1013 { yyb1013 = yyj1013 > l } else { yyb1013 = r.CheckBreak() } if yyb1013 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1013++ if yyhl1013 { yyb1013 = yyj1013 > l } else { yyb1013 = r.CheckBreak() } if yyb1013 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1015 := &x.Items yym1016 := z.DecBinary() _ = yym1016 if false { } else { h.decSliceKeyToPath((*[]KeyToPath)(yyv1015), d) } } for { yyj1013++ if yyhl1013 { yyb1013 = yyj1013 > l } else { yyb1013 = r.CheckBreak() } if yyb1013 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1013-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 { yym1017 := z.EncBinary() _ = yym1017 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1018 := !z.EncBinary() yy2arr1018 := z.EncBasicHandle().StructToArray var yyq1018 [2]bool _, _, _ = yysep1018, yyq1018, yy2arr1018 const yyr1018 bool = false var yynn1018 int if yyr1018 || yy2arr1018 { r.EncodeArrayStart(2) } else { yynn1018 = 2 for _, b := range yyq1018 { if b { yynn1018++ } } r.EncodeMapStart(yynn1018) yynn1018 = 0 } if yyr1018 || yy2arr1018 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1020 := z.EncBinary() _ = yym1020 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) yym1021 := z.EncBinary() _ = yym1021 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1018 || yy2arr1018 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1023 := z.EncBinary() _ = yym1023 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) yym1024 := z.EncBinary() _ = yym1024 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr1018 || yy2arr1018 { 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 yym1025 := z.DecBinary() _ = yym1025 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1026 := r.ContainerType() if yyct1026 == codecSelferValueTypeMap1234 { yyl1026 := r.ReadMapStart() if yyl1026 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1026, d) } } else if yyct1026 == codecSelferValueTypeArray1234 { yyl1026 := r.ReadArrayStart() if yyl1026 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1026, 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 yys1027Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1027Slc var yyhl1027 bool = l >= 0 for yyj1027 := 0; ; yyj1027++ { if yyhl1027 { if yyj1027 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1027Slc = r.DecodeBytes(yys1027Slc, true, true) yys1027 := string(yys1027Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1027 { 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()) } default: z.DecStructFieldNotFound(-1, yys1027) } // end switch yys1027 } // end for yyj1027 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 yyj1030 int var yyb1030 bool var yyhl1030 bool = l >= 0 yyj1030++ if yyhl1030 { yyb1030 = yyj1030 > l } else { yyb1030 = r.CheckBreak() } if yyb1030 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } yyj1030++ if yyhl1030 { yyb1030 = yyj1030 > l } else { yyb1030 = r.CheckBreak() } if yyb1030 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj1030++ if yyhl1030 { yyb1030 = yyj1030 > l } else { yyb1030 = r.CheckBreak() } if yyb1030 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1030-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 { yym1033 := z.EncBinary() _ = yym1033 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1034 := !z.EncBinary() yy2arr1034 := z.EncBasicHandle().StructToArray var yyq1034 [5]bool _, _, _ = yysep1034, yyq1034, yy2arr1034 const yyr1034 bool = false yyq1034[0] = x.Name != "" yyq1034[1] = x.HostPort != 0 yyq1034[3] = x.Protocol != "" yyq1034[4] = x.HostIP != "" var yynn1034 int if yyr1034 || yy2arr1034 { r.EncodeArrayStart(5) } else { yynn1034 = 1 for _, b := range yyq1034 { if b { yynn1034++ } } r.EncodeMapStart(yynn1034) yynn1034 = 0 } if yyr1034 || yy2arr1034 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1034[0] { yym1036 := z.EncBinary() _ = yym1036 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1034[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1037 := z.EncBinary() _ = yym1037 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } if yyr1034 || yy2arr1034 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1034[1] { yym1039 := z.EncBinary() _ = yym1039 if false { } else { r.EncodeInt(int64(x.HostPort)) } } else { r.EncodeInt(0) } } else { if yyq1034[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1040 := z.EncBinary() _ = yym1040 if false { } else { r.EncodeInt(int64(x.HostPort)) } } } if yyr1034 || yy2arr1034 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1042 := z.EncBinary() _ = yym1042 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1043 := z.EncBinary() _ = yym1043 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } if yyr1034 || yy2arr1034 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1034[3] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1034[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } if yyr1034 || yy2arr1034 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1034[4] { yym1046 := z.EncBinary() _ = yym1046 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1034[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1047 := z.EncBinary() _ = yym1047 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } if yyr1034 || yy2arr1034 { 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 yym1048 := z.DecBinary() _ = yym1048 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1049 := r.ContainerType() if yyct1049 == codecSelferValueTypeMap1234 { yyl1049 := r.ReadMapStart() if yyl1049 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1049, d) } } else if yyct1049 == codecSelferValueTypeArray1234 { yyl1049 := r.ReadArrayStart() if yyl1049 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1049, 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 yys1050Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1050Slc var yyhl1050 bool = l >= 0 for yyj1050 := 0; ; yyj1050++ { if yyhl1050 { if yyj1050 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1050Slc = r.DecodeBytes(yys1050Slc, true, true) yys1050 := string(yys1050Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1050 { 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, yys1050) } // end switch yys1050 } // end for yyj1050 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 yyj1056 int var yyb1056 bool var yyhl1056 bool = l >= 0 yyj1056++ if yyhl1056 { yyb1056 = yyj1056 > l } else { yyb1056 = r.CheckBreak() } if yyb1056 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1056++ if yyhl1056 { yyb1056 = yyj1056 > l } else { yyb1056 = r.CheckBreak() } if yyb1056 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostPort = 0 } else { x.HostPort = int32(r.DecodeInt(32)) } yyj1056++ if yyhl1056 { yyb1056 = yyj1056 > l } else { yyb1056 = r.CheckBreak() } if yyb1056 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerPort = 0 } else { x.ContainerPort = int32(r.DecodeInt(32)) } yyj1056++ if yyhl1056 { yyb1056 = yyj1056 > l } else { yyb1056 = r.CheckBreak() } if yyb1056 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } yyj1056++ if yyhl1056 { yyb1056 = yyj1056 > l } else { yyb1056 = r.CheckBreak() } if yyb1056 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } for { yyj1056++ if yyhl1056 { yyb1056 = yyj1056 > l } else { yyb1056 = r.CheckBreak() } if yyb1056 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1056-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 { yym1062 := z.EncBinary() _ = yym1062 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1063 := !z.EncBinary() yy2arr1063 := z.EncBasicHandle().StructToArray var yyq1063 [4]bool _, _, _ = yysep1063, yyq1063, yy2arr1063 const yyr1063 bool = false yyq1063[1] = x.ReadOnly != false yyq1063[3] = x.SubPath != "" var yynn1063 int if yyr1063 || yy2arr1063 { r.EncodeArrayStart(4) } else { yynn1063 = 2 for _, b := range yyq1063 { if b { yynn1063++ } } r.EncodeMapStart(yynn1063) yynn1063 = 0 } if yyr1063 || yy2arr1063 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1065 := z.EncBinary() _ = yym1065 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) yym1066 := z.EncBinary() _ = yym1066 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1063 || yy2arr1063 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1063[1] { yym1068 := z.EncBinary() _ = yym1068 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq1063[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1069 := z.EncBinary() _ = yym1069 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr1063 || yy2arr1063 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1071 := z.EncBinary() _ = yym1071 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) yym1072 := z.EncBinary() _ = yym1072 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) } } if yyr1063 || yy2arr1063 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1063[3] { yym1074 := z.EncBinary() _ = yym1074 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1063[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1075 := z.EncBinary() _ = yym1075 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) } } } if yyr1063 || yy2arr1063 { 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 yym1076 := z.DecBinary() _ = yym1076 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1077 := r.ContainerType() if yyct1077 == codecSelferValueTypeMap1234 { yyl1077 := r.ReadMapStart() if yyl1077 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1077, d) } } else if yyct1077 == codecSelferValueTypeArray1234 { yyl1077 := r.ReadArrayStart() if yyl1077 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1077, 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 yys1078Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1078Slc var yyhl1078 bool = l >= 0 for yyj1078 := 0; ; yyj1078++ { if yyhl1078 { if yyj1078 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1078Slc = r.DecodeBytes(yys1078Slc, true, true) yys1078 := string(yys1078Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1078 { 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, yys1078) } // end switch yys1078 } // end for yyj1078 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 yyj1083 int var yyb1083 bool var yyhl1083 bool = l >= 0 yyj1083++ if yyhl1083 { yyb1083 = yyj1083 > l } else { yyb1083 = r.CheckBreak() } if yyb1083 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1083++ if yyhl1083 { yyb1083 = yyj1083 > l } else { yyb1083 = r.CheckBreak() } if yyb1083 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } yyj1083++ if yyhl1083 { yyb1083 = yyj1083 > l } else { yyb1083 = r.CheckBreak() } if yyb1083 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MountPath = "" } else { x.MountPath = string(r.DecodeString()) } yyj1083++ if yyhl1083 { yyb1083 = yyj1083 > l } else { yyb1083 = r.CheckBreak() } if yyb1083 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SubPath = "" } else { x.SubPath = string(r.DecodeString()) } for { yyj1083++ if yyhl1083 { yyb1083 = yyj1083 > l } else { yyb1083 = r.CheckBreak() } if yyb1083 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1083-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 { yym1088 := z.EncBinary() _ = yym1088 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1089 := !z.EncBinary() yy2arr1089 := z.EncBasicHandle().StructToArray var yyq1089 [3]bool _, _, _ = yysep1089, yyq1089, yy2arr1089 const yyr1089 bool = false yyq1089[1] = x.Value != "" yyq1089[2] = x.ValueFrom != nil var yynn1089 int if yyr1089 || yy2arr1089 { r.EncodeArrayStart(3) } else { yynn1089 = 1 for _, b := range yyq1089 { if b { yynn1089++ } } r.EncodeMapStart(yynn1089) yynn1089 = 0 } if yyr1089 || yy2arr1089 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1091 := z.EncBinary() _ = yym1091 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) yym1092 := z.EncBinary() _ = yym1092 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1089 || yy2arr1089 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1089[1] { yym1094 := z.EncBinary() _ = yym1094 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1089[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1095 := z.EncBinary() _ = yym1095 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } if yyr1089 || yy2arr1089 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1089[2] { if x.ValueFrom == nil { r.EncodeNil() } else { x.ValueFrom.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1089[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 yyr1089 || yy2arr1089 { 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 yym1097 := z.DecBinary() _ = yym1097 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1098 := r.ContainerType() if yyct1098 == codecSelferValueTypeMap1234 { yyl1098 := r.ReadMapStart() if yyl1098 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1098, d) } } else if yyct1098 == codecSelferValueTypeArray1234 { yyl1098 := r.ReadArrayStart() if yyl1098 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1098, 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 yys1099Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1099Slc var yyhl1099 bool = l >= 0 for yyj1099 := 0; ; yyj1099++ { if yyhl1099 { if yyj1099 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1099Slc = r.DecodeBytes(yys1099Slc, true, true) yys1099 := string(yys1099Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1099 { 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, yys1099) } // end switch yys1099 } // end for yyj1099 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 yyj1103 int var yyb1103 bool var yyhl1103 bool = l >= 0 yyj1103++ if yyhl1103 { yyb1103 = yyj1103 > l } else { yyb1103 = r.CheckBreak() } if yyb1103 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1103++ if yyhl1103 { yyb1103 = yyj1103 > l } else { yyb1103 = r.CheckBreak() } if yyb1103 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } yyj1103++ if yyhl1103 { yyb1103 = yyj1103 > l } else { yyb1103 = r.CheckBreak() } if yyb1103 { 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 { yyj1103++ if yyhl1103 { yyb1103 = yyj1103 > l } else { yyb1103 = r.CheckBreak() } if yyb1103 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1103-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 { 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[0] = x.FieldRef != nil yyq1108[1] = x.ResourceFieldRef != nil yyq1108[2] = x.ConfigMapKeyRef != nil yyq1108[3] = x.SecretKeyRef != nil var yynn1108 int if yyr1108 || yy2arr1108 { r.EncodeArrayStart(4) } else { yynn1108 = 0 for _, b := range yyq1108 { if b { yynn1108++ } } r.EncodeMapStart(yynn1108) yynn1108 = 0 } if yyr1108 || yy2arr1108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1108[0] { if x.FieldRef == nil { r.EncodeNil() } else { x.FieldRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1108[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 yyr1108 || yy2arr1108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1108[1] { if x.ResourceFieldRef == nil { r.EncodeNil() } else { x.ResourceFieldRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1108[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 yyr1108 || yy2arr1108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1108[2] { if x.ConfigMapKeyRef == nil { r.EncodeNil() } else { x.ConfigMapKeyRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1108[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 yyr1108 || yy2arr1108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1108[3] { if x.SecretKeyRef == nil { r.EncodeNil() } else { x.SecretKeyRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1108[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 yyr1108 || yy2arr1108 { 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 yym1113 := z.DecBinary() _ = yym1113 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1114 := r.ContainerType() if yyct1114 == codecSelferValueTypeMap1234 { yyl1114 := r.ReadMapStart() if yyl1114 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1114, d) } } else if yyct1114 == codecSelferValueTypeArray1234 { yyl1114 := r.ReadArrayStart() if yyl1114 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1114, 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 yys1115Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1115Slc var yyhl1115 bool = l >= 0 for yyj1115 := 0; ; yyj1115++ { if yyhl1115 { if yyj1115 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1115Slc = r.DecodeBytes(yys1115Slc, true, true) yys1115 := string(yys1115Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1115 { 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, yys1115) } // end switch yys1115 } // end for yyj1115 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 yyj1120 int var yyb1120 bool var yyhl1120 bool = l >= 0 yyj1120++ if yyhl1120 { yyb1120 = yyj1120 > l } else { yyb1120 = r.CheckBreak() } if yyb1120 { 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) } yyj1120++ if yyhl1120 { yyb1120 = yyj1120 > l } else { yyb1120 = r.CheckBreak() } if yyb1120 { 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) } yyj1120++ if yyhl1120 { yyb1120 = yyj1120 > l } else { yyb1120 = r.CheckBreak() } if yyb1120 { 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) } yyj1120++ if yyhl1120 { yyb1120 = yyj1120 > l } else { yyb1120 = r.CheckBreak() } if yyb1120 { 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 { yyj1120++ if yyhl1120 { yyb1120 = yyj1120 > l } else { yyb1120 = r.CheckBreak() } if yyb1120 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1120-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 { yym1125 := z.EncBinary() _ = yym1125 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1126 := !z.EncBinary() yy2arr1126 := z.EncBasicHandle().StructToArray var yyq1126 [2]bool _, _, _ = yysep1126, yyq1126, yy2arr1126 const yyr1126 bool = false var yynn1126 int if yyr1126 || yy2arr1126 { r.EncodeArrayStart(2) } else { yynn1126 = 2 for _, b := range yyq1126 { if b { yynn1126++ } } r.EncodeMapStart(yynn1126) yynn1126 = 0 } if yyr1126 || yy2arr1126 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1128 := z.EncBinary() _ = yym1128 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) yym1129 := z.EncBinary() _ = yym1129 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } if yyr1126 || yy2arr1126 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1131 := z.EncBinary() _ = yym1131 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) yym1132 := z.EncBinary() _ = yym1132 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } if yyr1126 || yy2arr1126 { 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 yym1133 := z.DecBinary() _ = yym1133 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1134 := r.ContainerType() if yyct1134 == codecSelferValueTypeMap1234 { yyl1134 := r.ReadMapStart() if yyl1134 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1134, d) } } else if yyct1134 == codecSelferValueTypeArray1234 { yyl1134 := r.ReadArrayStart() if yyl1134 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1134, 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 yys1135Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1135Slc var yyhl1135 bool = l >= 0 for yyj1135 := 0; ; yyj1135++ { if yyhl1135 { if yyj1135 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1135Slc = r.DecodeBytes(yys1135Slc, true, true) yys1135 := string(yys1135Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1135 { 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, yys1135) } // end switch yys1135 } // end for yyj1135 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 yyj1138 int var yyb1138 bool var yyhl1138 bool = l >= 0 yyj1138++ if yyhl1138 { yyb1138 = yyj1138 > l } else { yyb1138 = r.CheckBreak() } if yyb1138 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1138++ if yyhl1138 { yyb1138 = yyj1138 > l } else { yyb1138 = r.CheckBreak() } if yyb1138 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldPath = "" } else { x.FieldPath = string(r.DecodeString()) } for { yyj1138++ if yyhl1138 { yyb1138 = yyj1138 > l } else { yyb1138 = r.CheckBreak() } if yyb1138 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1138-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 { yym1141 := z.EncBinary() _ = yym1141 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1142 := !z.EncBinary() yy2arr1142 := z.EncBasicHandle().StructToArray var yyq1142 [3]bool _, _, _ = yysep1142, yyq1142, yy2arr1142 const yyr1142 bool = false yyq1142[0] = x.ContainerName != "" yyq1142[2] = true var yynn1142 int if yyr1142 || yy2arr1142 { r.EncodeArrayStart(3) } else { yynn1142 = 1 for _, b := range yyq1142 { if b { yynn1142++ } } r.EncodeMapStart(yynn1142) yynn1142 = 0 } if yyr1142 || yy2arr1142 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1142[0] { yym1144 := z.EncBinary() _ = yym1144 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1142[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1145 := z.EncBinary() _ = yym1145 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) } } } if yyr1142 || yy2arr1142 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1147 := z.EncBinary() _ = yym1147 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) yym1148 := z.EncBinary() _ = yym1148 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) } } if yyr1142 || yy2arr1142 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1142[2] { yy1150 := &x.Divisor yym1151 := z.EncBinary() _ = yym1151 if false { } else if z.HasExtensions() && z.EncExt(yy1150) { } else if !yym1151 && z.IsJSONHandle() { z.EncJSONMarshal(yy1150) } else { z.EncFallback(yy1150) } } else { r.EncodeNil() } } else { if yyq1142[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("divisor")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1152 := &x.Divisor yym1153 := z.EncBinary() _ = yym1153 if false { } else if z.HasExtensions() && z.EncExt(yy1152) { } else if !yym1153 && z.IsJSONHandle() { z.EncJSONMarshal(yy1152) } else { z.EncFallback(yy1152) } } } if yyr1142 || yy2arr1142 { 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 yym1154 := z.DecBinary() _ = yym1154 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1155 := r.ContainerType() if yyct1155 == codecSelferValueTypeMap1234 { yyl1155 := r.ReadMapStart() if yyl1155 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1155, d) } } else if yyct1155 == codecSelferValueTypeArray1234 { yyl1155 := r.ReadArrayStart() if yyl1155 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1155, 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 yys1156Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1156Slc var yyhl1156 bool = l >= 0 for yyj1156 := 0; ; yyj1156++ { if yyhl1156 { if yyj1156 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1156Slc = r.DecodeBytes(yys1156Slc, true, true) yys1156 := string(yys1156Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1156 { 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 { yyv1159 := &x.Divisor yym1160 := z.DecBinary() _ = yym1160 if false { } else if z.HasExtensions() && z.DecExt(yyv1159) { } else if !yym1160 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1159) } else { z.DecFallback(yyv1159, false) } } default: z.DecStructFieldNotFound(-1, yys1156) } // end switch yys1156 } // end for yyj1156 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 yyj1161 int var yyb1161 bool var yyhl1161 bool = l >= 0 yyj1161++ if yyhl1161 { yyb1161 = yyj1161 > l } else { yyb1161 = r.CheckBreak() } if yyb1161 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerName = "" } else { x.ContainerName = string(r.DecodeString()) } yyj1161++ if yyhl1161 { yyb1161 = yyj1161 > l } else { yyb1161 = r.CheckBreak() } if yyb1161 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Resource = "" } else { x.Resource = string(r.DecodeString()) } yyj1161++ if yyhl1161 { yyb1161 = yyj1161 > l } else { yyb1161 = r.CheckBreak() } if yyb1161 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Divisor = pkg3_resource.Quantity{} } else { yyv1164 := &x.Divisor yym1165 := z.DecBinary() _ = yym1165 if false { } else if z.HasExtensions() && z.DecExt(yyv1164) { } else if !yym1165 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1164) } else { z.DecFallback(yyv1164, false) } } for { yyj1161++ if yyhl1161 { yyb1161 = yyj1161 > l } else { yyb1161 = r.CheckBreak() } if yyb1161 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1161-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 { yym1166 := z.EncBinary() _ = yym1166 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1167 := !z.EncBinary() yy2arr1167 := z.EncBasicHandle().StructToArray var yyq1167 [2]bool _, _, _ = yysep1167, yyq1167, yy2arr1167 const yyr1167 bool = false var yynn1167 int if yyr1167 || yy2arr1167 { r.EncodeArrayStart(2) } else { yynn1167 = 2 for _, b := range yyq1167 { if b { yynn1167++ } } r.EncodeMapStart(yynn1167) yynn1167 = 0 } if yyr1167 || yy2arr1167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1169 := z.EncBinary() _ = yym1169 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) yym1170 := z.EncBinary() _ = yym1170 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1167 || yy2arr1167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1172 := z.EncBinary() _ = yym1172 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) yym1173 := z.EncBinary() _ = yym1173 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1167 || yy2arr1167 { 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 yym1174 := z.DecBinary() _ = yym1174 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1175 := r.ContainerType() if yyct1175 == codecSelferValueTypeMap1234 { yyl1175 := r.ReadMapStart() if yyl1175 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1175, d) } } else if yyct1175 == codecSelferValueTypeArray1234 { yyl1175 := r.ReadArrayStart() if yyl1175 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1175, 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 yys1176Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1176Slc var yyhl1176 bool = l >= 0 for yyj1176 := 0; ; yyj1176++ { if yyhl1176 { if yyj1176 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1176Slc = r.DecodeBytes(yys1176Slc, true, true) yys1176 := string(yys1176Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1176 { 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, yys1176) } // end switch yys1176 } // end for yyj1176 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 yyj1179 int var yyb1179 bool var yyhl1179 bool = l >= 0 yyj1179++ if yyhl1179 { yyb1179 = yyj1179 > l } else { yyb1179 = r.CheckBreak() } if yyb1179 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1179++ if yyhl1179 { yyb1179 = yyj1179 > l } else { yyb1179 = r.CheckBreak() } if yyb1179 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } for { yyj1179++ if yyhl1179 { yyb1179 = yyj1179 > l } else { yyb1179 = r.CheckBreak() } if yyb1179 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1179-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 { yym1182 := z.EncBinary() _ = yym1182 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1183 := !z.EncBinary() yy2arr1183 := z.EncBasicHandle().StructToArray var yyq1183 [2]bool _, _, _ = yysep1183, yyq1183, yy2arr1183 const yyr1183 bool = false var yynn1183 int if yyr1183 || yy2arr1183 { r.EncodeArrayStart(2) } else { yynn1183 = 2 for _, b := range yyq1183 { if b { yynn1183++ } } r.EncodeMapStart(yynn1183) yynn1183 = 0 } if yyr1183 || yy2arr1183 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1185 := z.EncBinary() _ = yym1185 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) yym1186 := z.EncBinary() _ = yym1186 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1183 || yy2arr1183 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1188 := z.EncBinary() _ = yym1188 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) yym1189 := z.EncBinary() _ = yym1189 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1183 || yy2arr1183 { 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 yym1190 := z.DecBinary() _ = yym1190 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1191 := r.ContainerType() if yyct1191 == codecSelferValueTypeMap1234 { yyl1191 := r.ReadMapStart() if yyl1191 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1191, d) } } else if yyct1191 == codecSelferValueTypeArray1234 { yyl1191 := r.ReadArrayStart() if yyl1191 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1191, 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 yys1192Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1192Slc var yyhl1192 bool = l >= 0 for yyj1192 := 0; ; yyj1192++ { if yyhl1192 { if yyj1192 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1192Slc = r.DecodeBytes(yys1192Slc, true, true) yys1192 := string(yys1192Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1192 { 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, yys1192) } // end switch yys1192 } // end for yyj1192 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 yyj1195 int var yyb1195 bool var yyhl1195 bool = l >= 0 yyj1195++ if yyhl1195 { yyb1195 = yyj1195 > l } else { yyb1195 = r.CheckBreak() } if yyb1195 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1195++ if yyhl1195 { yyb1195 = yyj1195 > l } else { yyb1195 = r.CheckBreak() } if yyb1195 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } for { yyj1195++ if yyhl1195 { yyb1195 = yyj1195 > l } else { yyb1195 = r.CheckBreak() } if yyb1195 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1195-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 { yym1198 := z.EncBinary() _ = yym1198 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1199 := !z.EncBinary() yy2arr1199 := z.EncBasicHandle().StructToArray var yyq1199 [2]bool _, _, _ = yysep1199, yyq1199, yy2arr1199 const yyr1199 bool = false var yynn1199 int if yyr1199 || yy2arr1199 { r.EncodeArrayStart(2) } else { yynn1199 = 2 for _, b := range yyq1199 { if b { yynn1199++ } } r.EncodeMapStart(yynn1199) yynn1199 = 0 } if yyr1199 || yy2arr1199 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1201 := z.EncBinary() _ = yym1201 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) yym1202 := z.EncBinary() _ = yym1202 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1199 || yy2arr1199 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1204 := z.EncBinary() _ = yym1204 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) yym1205 := z.EncBinary() _ = yym1205 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } if yyr1199 || yy2arr1199 { 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 yym1206 := z.DecBinary() _ = yym1206 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1207 := r.ContainerType() if yyct1207 == codecSelferValueTypeMap1234 { yyl1207 := r.ReadMapStart() if yyl1207 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1207, d) } } else if yyct1207 == codecSelferValueTypeArray1234 { yyl1207 := r.ReadArrayStart() if yyl1207 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1207, 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 yys1208Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1208Slc var yyhl1208 bool = l >= 0 for yyj1208 := 0; ; yyj1208++ { if yyhl1208 { if yyj1208 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1208Slc = r.DecodeBytes(yys1208Slc, true, true) yys1208 := string(yys1208Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1208 { 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, yys1208) } // end switch yys1208 } // end for yyj1208 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 yyj1211 int var yyb1211 bool var yyhl1211 bool = l >= 0 yyj1211++ if yyhl1211 { yyb1211 = yyj1211 > l } else { yyb1211 = r.CheckBreak() } if yyb1211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1211++ if yyhl1211 { yyb1211 = yyj1211 > l } else { yyb1211 = r.CheckBreak() } if yyb1211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } for { yyj1211++ if yyhl1211 { yyb1211 = yyj1211 > l } else { yyb1211 = r.CheckBreak() } if yyb1211 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1211-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 { yym1214 := z.EncBinary() _ = yym1214 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1215 := !z.EncBinary() yy2arr1215 := z.EncBasicHandle().StructToArray var yyq1215 [5]bool _, _, _ = yysep1215, yyq1215, yy2arr1215 const yyr1215 bool = false yyq1215[0] = x.Path != "" yyq1215[1] = true yyq1215[2] = x.Host != "" yyq1215[3] = x.Scheme != "" yyq1215[4] = len(x.HTTPHeaders) != 0 var yynn1215 int if yyr1215 || yy2arr1215 { r.EncodeArrayStart(5) } else { yynn1215 = 0 for _, b := range yyq1215 { if b { yynn1215++ } } r.EncodeMapStart(yynn1215) yynn1215 = 0 } if yyr1215 || yy2arr1215 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1215[0] { yym1217 := z.EncBinary() _ = yym1217 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1215[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1218 := z.EncBinary() _ = yym1218 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } if yyr1215 || yy2arr1215 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1215[1] { yy1220 := &x.Port yym1221 := z.EncBinary() _ = yym1221 if false { } else if z.HasExtensions() && z.EncExt(yy1220) { } else if !yym1221 && z.IsJSONHandle() { z.EncJSONMarshal(yy1220) } else { z.EncFallback(yy1220) } } else { r.EncodeNil() } } else { if yyq1215[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1222 := &x.Port yym1223 := z.EncBinary() _ = yym1223 if false { } else if z.HasExtensions() && z.EncExt(yy1222) { } else if !yym1223 && z.IsJSONHandle() { z.EncJSONMarshal(yy1222) } else { z.EncFallback(yy1222) } } } if yyr1215 || yy2arr1215 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1215[2] { yym1225 := z.EncBinary() _ = yym1225 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1215[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1226 := z.EncBinary() _ = yym1226 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } if yyr1215 || yy2arr1215 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1215[3] { x.Scheme.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1215[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scheme")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Scheme.CodecEncodeSelf(e) } } if yyr1215 || yy2arr1215 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1215[4] { if x.HTTPHeaders == nil { r.EncodeNil() } else { yym1229 := z.EncBinary() _ = yym1229 if false { } else { h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) } } } else { r.EncodeNil() } } else { if yyq1215[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpHeaders")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HTTPHeaders == nil { r.EncodeNil() } else { yym1230 := z.EncBinary() _ = yym1230 if false { } else { h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) } } } } if yyr1215 || yy2arr1215 { 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 yym1231 := z.DecBinary() _ = yym1231 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1232 := r.ContainerType() if yyct1232 == codecSelferValueTypeMap1234 { yyl1232 := r.ReadMapStart() if yyl1232 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1232, d) } } else if yyct1232 == codecSelferValueTypeArray1234 { yyl1232 := r.ReadArrayStart() if yyl1232 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1232, 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 yys1233Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1233Slc var yyhl1233 bool = l >= 0 for yyj1233 := 0; ; yyj1233++ { if yyhl1233 { if yyj1233 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1233Slc = r.DecodeBytes(yys1233Slc, true, true) yys1233 := string(yys1233Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1233 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "port": if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { yyv1235 := &x.Port yym1236 := z.DecBinary() _ = yym1236 if false { } else if z.HasExtensions() && z.DecExt(yyv1235) { } else if !yym1236 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1235) } else { z.DecFallback(yyv1235, 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 { yyv1239 := &x.HTTPHeaders yym1240 := z.DecBinary() _ = yym1240 if false { } else { h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1239), d) } } default: z.DecStructFieldNotFound(-1, yys1233) } // end switch yys1233 } // end for yyj1233 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 yyj1241 int var yyb1241 bool var yyhl1241 bool = l >= 0 yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { yyv1243 := &x.Port yym1244 := z.DecBinary() _ = yym1244 if false { } else if z.HasExtensions() && z.DecExt(yyv1243) { } else if !yym1244 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1243) } else { z.DecFallback(yyv1243, false) } } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Scheme = "" } else { x.Scheme = URIScheme(r.DecodeString()) } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HTTPHeaders = nil } else { yyv1247 := &x.HTTPHeaders yym1248 := z.DecBinary() _ = yym1248 if false { } else { h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1247), d) } } for { yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1241-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1249 := z.EncBinary() _ = yym1249 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 yym1250 := z.DecBinary() _ = yym1250 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 { yym1251 := z.EncBinary() _ = yym1251 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1252 := !z.EncBinary() yy2arr1252 := z.EncBasicHandle().StructToArray var yyq1252 [1]bool _, _, _ = yysep1252, yyq1252, yy2arr1252 const yyr1252 bool = false yyq1252[0] = true var yynn1252 int if yyr1252 || yy2arr1252 { r.EncodeArrayStart(1) } else { yynn1252 = 0 for _, b := range yyq1252 { if b { yynn1252++ } } r.EncodeMapStart(yynn1252) yynn1252 = 0 } if yyr1252 || yy2arr1252 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1252[0] { yy1254 := &x.Port yym1255 := z.EncBinary() _ = yym1255 if false { } else if z.HasExtensions() && z.EncExt(yy1254) { } else if !yym1255 && z.IsJSONHandle() { z.EncJSONMarshal(yy1254) } else { z.EncFallback(yy1254) } } else { r.EncodeNil() } } else { if yyq1252[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1256 := &x.Port yym1257 := z.EncBinary() _ = yym1257 if false { } else if z.HasExtensions() && z.EncExt(yy1256) { } else if !yym1257 && z.IsJSONHandle() { z.EncJSONMarshal(yy1256) } else { z.EncFallback(yy1256) } } } if yyr1252 || yy2arr1252 { 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 yym1258 := z.DecBinary() _ = yym1258 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1259 := r.ContainerType() if yyct1259 == codecSelferValueTypeMap1234 { yyl1259 := r.ReadMapStart() if yyl1259 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1259, d) } } else if yyct1259 == codecSelferValueTypeArray1234 { yyl1259 := r.ReadArrayStart() if yyl1259 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1259, 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 yys1260Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1260Slc var yyhl1260 bool = l >= 0 for yyj1260 := 0; ; yyj1260++ { if yyhl1260 { if yyj1260 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1260Slc = r.DecodeBytes(yys1260Slc, true, true) yys1260 := string(yys1260Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1260 { case "port": if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { yyv1261 := &x.Port yym1262 := z.DecBinary() _ = yym1262 if false { } else if z.HasExtensions() && z.DecExt(yyv1261) { } else if !yym1262 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1261) } else { z.DecFallback(yyv1261, false) } } default: z.DecStructFieldNotFound(-1, yys1260) } // end switch yys1260 } // end for yyj1260 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 yyj1263 int var yyb1263 bool var yyhl1263 bool = l >= 0 yyj1263++ if yyhl1263 { yyb1263 = yyj1263 > l } else { yyb1263 = r.CheckBreak() } if yyb1263 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { yyv1264 := &x.Port yym1265 := z.DecBinary() _ = yym1265 if false { } else if z.HasExtensions() && z.DecExt(yyv1264) { } else if !yym1265 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1264) } else { z.DecFallback(yyv1264, false) } } for { yyj1263++ if yyhl1263 { yyb1263 = yyj1263 > l } else { yyb1263 = r.CheckBreak() } if yyb1263 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1263-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 { yym1266 := z.EncBinary() _ = yym1266 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1267 := !z.EncBinary() yy2arr1267 := z.EncBasicHandle().StructToArray var yyq1267 [1]bool _, _, _ = yysep1267, yyq1267, yy2arr1267 const yyr1267 bool = false yyq1267[0] = len(x.Command) != 0 var yynn1267 int if yyr1267 || yy2arr1267 { r.EncodeArrayStart(1) } else { yynn1267 = 0 for _, b := range yyq1267 { if b { yynn1267++ } } r.EncodeMapStart(yynn1267) yynn1267 = 0 } if yyr1267 || yy2arr1267 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1267[0] { if x.Command == nil { r.EncodeNil() } else { yym1269 := z.EncBinary() _ = yym1269 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } else { r.EncodeNil() } } else { if yyq1267[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { yym1270 := z.EncBinary() _ = yym1270 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } } if yyr1267 || yy2arr1267 { 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 yym1271 := z.DecBinary() _ = yym1271 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1272 := r.ContainerType() if yyct1272 == codecSelferValueTypeMap1234 { yyl1272 := r.ReadMapStart() if yyl1272 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1272, d) } } else if yyct1272 == codecSelferValueTypeArray1234 { yyl1272 := r.ReadArrayStart() if yyl1272 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1272, 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 yys1273Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1273Slc var yyhl1273 bool = l >= 0 for yyj1273 := 0; ; yyj1273++ { if yyhl1273 { if yyj1273 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1273Slc = r.DecodeBytes(yys1273Slc, true, true) yys1273 := string(yys1273Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1273 { case "command": if r.TryDecodeAsNil() { x.Command = nil } else { yyv1274 := &x.Command yym1275 := z.DecBinary() _ = yym1275 if false { } else { z.F.DecSliceStringX(yyv1274, false, d) } } default: z.DecStructFieldNotFound(-1, yys1273) } // end switch yys1273 } // end for yyj1273 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 yyj1276 int var yyb1276 bool var yyhl1276 bool = l >= 0 yyj1276++ if yyhl1276 { yyb1276 = yyj1276 > l } else { yyb1276 = r.CheckBreak() } if yyb1276 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv1277 := &x.Command yym1278 := z.DecBinary() _ = yym1278 if false { } else { z.F.DecSliceStringX(yyv1277, false, d) } } for { yyj1276++ if yyhl1276 { yyb1276 = yyj1276 > l } else { yyb1276 = r.CheckBreak() } if yyb1276 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1276-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 { yym1279 := z.EncBinary() _ = yym1279 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1280 := !z.EncBinary() yy2arr1280 := z.EncBasicHandle().StructToArray var yyq1280 [8]bool _, _, _ = yysep1280, yyq1280, yy2arr1280 const yyr1280 bool = false yyq1280[0] = x.Handler.Exec != nil && x.Exec != nil yyq1280[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil yyq1280[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil yyq1280[3] = x.InitialDelaySeconds != 0 yyq1280[4] = x.TimeoutSeconds != 0 yyq1280[5] = x.PeriodSeconds != 0 yyq1280[6] = x.SuccessThreshold != 0 yyq1280[7] = x.FailureThreshold != 0 var yynn1280 int if yyr1280 || yy2arr1280 { r.EncodeArrayStart(8) } else { yynn1280 = 0 for _, b := range yyq1280 { if b { yynn1280++ } } r.EncodeMapStart(yynn1280) yynn1280 = 0 } var yyn1281 bool if x.Handler.Exec == nil { yyn1281 = true goto LABEL1281 } LABEL1281: if yyr1280 || yy2arr1280 { if yyn1281 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1280[0] { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq1280[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1281 { r.EncodeNil() } else { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } } } var yyn1282 bool if x.Handler.HTTPGet == nil { yyn1282 = true goto LABEL1282 } LABEL1282: if yyr1280 || yy2arr1280 { if yyn1282 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1280[1] { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq1280[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1282 { r.EncodeNil() } else { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } } } var yyn1283 bool if x.Handler.TCPSocket == nil { yyn1283 = true goto LABEL1283 } LABEL1283: if yyr1280 || yy2arr1280 { if yyn1283 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1280[2] { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq1280[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1283 { r.EncodeNil() } else { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } } } if yyr1280 || yy2arr1280 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1280[3] { yym1285 := z.EncBinary() _ = yym1285 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } else { r.EncodeInt(0) } } else { if yyq1280[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1286 := z.EncBinary() _ = yym1286 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } } if yyr1280 || yy2arr1280 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1280[4] { yym1288 := z.EncBinary() _ = yym1288 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } else { r.EncodeInt(0) } } else { if yyq1280[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1289 := z.EncBinary() _ = yym1289 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } } if yyr1280 || yy2arr1280 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1280[5] { yym1291 := z.EncBinary() _ = yym1291 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } else { r.EncodeInt(0) } } else { if yyq1280[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1292 := z.EncBinary() _ = yym1292 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } } if yyr1280 || yy2arr1280 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1280[6] { yym1294 := z.EncBinary() _ = yym1294 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } else { r.EncodeInt(0) } } else { if yyq1280[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1295 := z.EncBinary() _ = yym1295 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } } if yyr1280 || yy2arr1280 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1280[7] { yym1297 := z.EncBinary() _ = yym1297 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } else { r.EncodeInt(0) } } else { if yyq1280[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1298 := z.EncBinary() _ = yym1298 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } } if yyr1280 || yy2arr1280 { 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 yym1299 := z.DecBinary() _ = yym1299 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1300 := r.ContainerType() if yyct1300 == codecSelferValueTypeMap1234 { yyl1300 := r.ReadMapStart() if yyl1300 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1300, d) } } else if yyct1300 == codecSelferValueTypeArray1234 { yyl1300 := r.ReadArrayStart() if yyl1300 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1300, 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 yys1301Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1301Slc var yyhl1301 bool = l >= 0 for yyj1301 := 0; ; yyj1301++ { if yyhl1301 { if yyj1301 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1301Slc = r.DecodeBytes(yys1301Slc, true, true) yys1301 := string(yys1301Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1301 { 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, yys1301) } // end switch yys1301 } // end for yyj1301 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 yyj1310 int var yyb1310 bool var yyhl1310 bool = l >= 0 if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) } yyj1310++ if yyhl1310 { yyb1310 = yyj1310 > l } else { yyb1310 = r.CheckBreak() } if yyb1310 { 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) } yyj1310++ if yyhl1310 { yyb1310 = yyj1310 > l } else { yyb1310 = r.CheckBreak() } if yyb1310 { 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) } yyj1310++ if yyhl1310 { yyb1310 = yyj1310 > l } else { yyb1310 = r.CheckBreak() } if yyb1310 { 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) } yyj1310++ if yyhl1310 { yyb1310 = yyj1310 > l } else { yyb1310 = r.CheckBreak() } if yyb1310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.InitialDelaySeconds = 0 } else { x.InitialDelaySeconds = int32(r.DecodeInt(32)) } yyj1310++ if yyhl1310 { yyb1310 = yyj1310 > l } else { yyb1310 = r.CheckBreak() } if yyb1310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TimeoutSeconds = 0 } else { x.TimeoutSeconds = int32(r.DecodeInt(32)) } yyj1310++ if yyhl1310 { yyb1310 = yyj1310 > l } else { yyb1310 = r.CheckBreak() } if yyb1310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PeriodSeconds = 0 } else { x.PeriodSeconds = int32(r.DecodeInt(32)) } yyj1310++ if yyhl1310 { yyb1310 = yyj1310 > l } else { yyb1310 = r.CheckBreak() } if yyb1310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SuccessThreshold = 0 } else { x.SuccessThreshold = int32(r.DecodeInt(32)) } yyj1310++ if yyhl1310 { yyb1310 = yyj1310 > l } else { yyb1310 = r.CheckBreak() } if yyb1310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FailureThreshold = 0 } else { x.FailureThreshold = int32(r.DecodeInt(32)) } for { yyj1310++ if yyhl1310 { yyb1310 = yyj1310 > l } else { yyb1310 = r.CheckBreak() } if yyb1310 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1310-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1319 := z.EncBinary() _ = yym1319 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 yym1320 := z.DecBinary() _ = yym1320 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 yym1321 := z.EncBinary() _ = yym1321 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 yym1322 := z.DecBinary() _ = yym1322 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 { yym1323 := z.EncBinary() _ = yym1323 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1324 := !z.EncBinary() yy2arr1324 := z.EncBasicHandle().StructToArray var yyq1324 [2]bool _, _, _ = yysep1324, yyq1324, yy2arr1324 const yyr1324 bool = false yyq1324[0] = len(x.Add) != 0 yyq1324[1] = len(x.Drop) != 0 var yynn1324 int if yyr1324 || yy2arr1324 { r.EncodeArrayStart(2) } else { yynn1324 = 0 for _, b := range yyq1324 { if b { yynn1324++ } } r.EncodeMapStart(yynn1324) yynn1324 = 0 } if yyr1324 || yy2arr1324 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1324[0] { if x.Add == nil { r.EncodeNil() } else { yym1326 := z.EncBinary() _ = yym1326 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) } } } else { r.EncodeNil() } } else { if yyq1324[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("add")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Add == nil { r.EncodeNil() } else { yym1327 := z.EncBinary() _ = yym1327 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) } } } } if yyr1324 || yy2arr1324 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1324[1] { if x.Drop == nil { r.EncodeNil() } else { yym1329 := z.EncBinary() _ = yym1329 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) } } } else { r.EncodeNil() } } else { if yyq1324[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("drop")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Drop == nil { r.EncodeNil() } else { yym1330 := z.EncBinary() _ = yym1330 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) } } } } if yyr1324 || yy2arr1324 { 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 yym1331 := z.DecBinary() _ = yym1331 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1332 := r.ContainerType() if yyct1332 == codecSelferValueTypeMap1234 { yyl1332 := r.ReadMapStart() if yyl1332 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1332, d) } } else if yyct1332 == codecSelferValueTypeArray1234 { yyl1332 := r.ReadArrayStart() if yyl1332 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1332, 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 yys1333Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1333Slc var yyhl1333 bool = l >= 0 for yyj1333 := 0; ; yyj1333++ { if yyhl1333 { if yyj1333 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1333Slc = r.DecodeBytes(yys1333Slc, true, true) yys1333 := string(yys1333Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1333 { case "add": if r.TryDecodeAsNil() { x.Add = nil } else { yyv1334 := &x.Add yym1335 := z.DecBinary() _ = yym1335 if false { } else { h.decSliceCapability((*[]Capability)(yyv1334), d) } } case "drop": if r.TryDecodeAsNil() { x.Drop = nil } else { yyv1336 := &x.Drop yym1337 := z.DecBinary() _ = yym1337 if false { } else { h.decSliceCapability((*[]Capability)(yyv1336), d) } } default: z.DecStructFieldNotFound(-1, yys1333) } // end switch yys1333 } // end for yyj1333 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 yyj1338 int var yyb1338 bool var yyhl1338 bool = l >= 0 yyj1338++ if yyhl1338 { yyb1338 = yyj1338 > l } else { yyb1338 = r.CheckBreak() } if yyb1338 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Add = nil } else { yyv1339 := &x.Add yym1340 := z.DecBinary() _ = yym1340 if false { } else { h.decSliceCapability((*[]Capability)(yyv1339), d) } } yyj1338++ if yyhl1338 { yyb1338 = yyj1338 > l } else { yyb1338 = r.CheckBreak() } if yyb1338 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Drop = nil } else { yyv1341 := &x.Drop yym1342 := z.DecBinary() _ = yym1342 if false { } else { h.decSliceCapability((*[]Capability)(yyv1341), d) } } for { yyj1338++ if yyhl1338 { yyb1338 = yyj1338 > l } else { yyb1338 = r.CheckBreak() } if yyb1338 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1338-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 { yym1343 := z.EncBinary() _ = yym1343 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1344 := !z.EncBinary() yy2arr1344 := z.EncBasicHandle().StructToArray var yyq1344 [2]bool _, _, _ = yysep1344, yyq1344, yy2arr1344 const yyr1344 bool = false yyq1344[0] = len(x.Limits) != 0 yyq1344[1] = len(x.Requests) != 0 var yynn1344 int if yyr1344 || yy2arr1344 { r.EncodeArrayStart(2) } else { yynn1344 = 0 for _, b := range yyq1344 { if b { yynn1344++ } } r.EncodeMapStart(yynn1344) yynn1344 = 0 } if yyr1344 || yy2arr1344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1344[0] { if x.Limits == nil { r.EncodeNil() } else { x.Limits.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1344[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 yyr1344 || yy2arr1344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1344[1] { if x.Requests == nil { r.EncodeNil() } else { x.Requests.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1344[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 yyr1344 || yy2arr1344 { 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 yym1347 := z.DecBinary() _ = yym1347 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1348 := r.ContainerType() if yyct1348 == codecSelferValueTypeMap1234 { yyl1348 := r.ReadMapStart() if yyl1348 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1348, d) } } else if yyct1348 == codecSelferValueTypeArray1234 { yyl1348 := r.ReadArrayStart() if yyl1348 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1348, 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 yys1349Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1349Slc var yyhl1349 bool = l >= 0 for yyj1349 := 0; ; yyj1349++ { if yyhl1349 { if yyj1349 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1349Slc = r.DecodeBytes(yys1349Slc, true, true) yys1349 := string(yys1349Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1349 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { yyv1350 := &x.Limits yyv1350.CodecDecodeSelf(d) } case "requests": if r.TryDecodeAsNil() { x.Requests = nil } else { yyv1351 := &x.Requests yyv1351.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1349) } // end switch yys1349 } // end for yyj1349 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 yyj1352 int var yyb1352 bool var yyhl1352 bool = l >= 0 yyj1352++ if yyhl1352 { yyb1352 = yyj1352 > l } else { yyb1352 = r.CheckBreak() } if yyb1352 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Limits = nil } else { yyv1353 := &x.Limits yyv1353.CodecDecodeSelf(d) } yyj1352++ if yyhl1352 { yyb1352 = yyj1352 > l } else { yyb1352 = r.CheckBreak() } if yyb1352 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Requests = nil } else { yyv1354 := &x.Requests yyv1354.CodecDecodeSelf(d) } for { yyj1352++ if yyhl1352 { yyb1352 = yyj1352 > l } else { yyb1352 = r.CheckBreak() } if yyb1352 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1352-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 { yym1355 := z.EncBinary() _ = yym1355 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1356 := !z.EncBinary() yy2arr1356 := z.EncBasicHandle().StructToArray var yyq1356 [18]bool _, _, _ = yysep1356, yyq1356, yy2arr1356 const yyr1356 bool = false yyq1356[2] = len(x.Command) != 0 yyq1356[3] = len(x.Args) != 0 yyq1356[4] = x.WorkingDir != "" yyq1356[5] = len(x.Ports) != 0 yyq1356[6] = len(x.Env) != 0 yyq1356[7] = true yyq1356[8] = len(x.VolumeMounts) != 0 yyq1356[9] = x.LivenessProbe != nil yyq1356[10] = x.ReadinessProbe != nil yyq1356[11] = x.Lifecycle != nil yyq1356[12] = x.TerminationMessagePath != "" yyq1356[14] = x.SecurityContext != nil yyq1356[15] = x.Stdin != false yyq1356[16] = x.StdinOnce != false yyq1356[17] = x.TTY != false var yynn1356 int if yyr1356 || yy2arr1356 { r.EncodeArrayStart(18) } else { yynn1356 = 3 for _, b := range yyq1356 { if b { yynn1356++ } } r.EncodeMapStart(yynn1356) yynn1356 = 0 } if yyr1356 || yy2arr1356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1358 := z.EncBinary() _ = yym1358 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) yym1359 := z.EncBinary() _ = yym1359 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1356 || yy2arr1356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1361 := z.EncBinary() _ = yym1361 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) yym1362 := z.EncBinary() _ = yym1362 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } if yyr1356 || yy2arr1356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1356[2] { if x.Command == nil { r.EncodeNil() } else { yym1364 := z.EncBinary() _ = yym1364 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } else { r.EncodeNil() } } else { if yyq1356[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { yym1365 := z.EncBinary() _ = yym1365 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } } if yyr1356 || yy2arr1356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1356[3] { if x.Args == nil { r.EncodeNil() } else { yym1367 := z.EncBinary() _ = yym1367 if false { } else { z.F.EncSliceStringV(x.Args, false, e) } } } else { r.EncodeNil() } } else { if yyq1356[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("args")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Args == nil { r.EncodeNil() } else { yym1368 := z.EncBinary() _ = yym1368 if false { } else { z.F.EncSliceStringV(x.Args, false, e) } } } } if yyr1356 || yy2arr1356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1356[4] { yym1370 := z.EncBinary() _ = yym1370 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1356[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("workingDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1371 := z.EncBinary() _ = yym1371 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } } if yyr1356 || yy2arr1356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1356[5] { if x.Ports == nil { r.EncodeNil() } else { yym1373 := z.EncBinary() _ = yym1373 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) } } } else { r.EncodeNil() } } else { if yyq1356[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { yym1374 := z.EncBinary() _ = yym1374 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) } } } } if yyr1356 || yy2arr1356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1356[6] { if x.Env == nil { r.EncodeNil() } else { yym1376 := z.EncBinary() _ = yym1376 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) } } } else { r.EncodeNil() } } else { if yyq1356[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("env")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Env == nil { r.EncodeNil() } else { yym1377 := z.EncBinary() _ = yym1377 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) } } } } if yyr1356 || yy2arr1356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1356[7] { yy1379 := &x.Resources yy1379.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1356[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1380 := &x.Resources yy1380.CodecEncodeSelf(e) } } if yyr1356 || yy2arr1356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1356[8] { if x.VolumeMounts == nil { r.EncodeNil() } else { yym1382 := z.EncBinary() _ = yym1382 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) } } } else { r.EncodeNil() } } else { if yyq1356[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeMounts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumeMounts == nil { r.EncodeNil() } else { yym1383 := z.EncBinary() _ = yym1383 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) } } } } if yyr1356 || yy2arr1356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1356[9] { if x.LivenessProbe == nil { r.EncodeNil() } else { x.LivenessProbe.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1356[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 yyr1356 || yy2arr1356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1356[10] { if x.ReadinessProbe == nil { r.EncodeNil() } else { x.ReadinessProbe.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1356[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 yyr1356 || yy2arr1356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1356[11] { if x.Lifecycle == nil { r.EncodeNil() } else { x.Lifecycle.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1356[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 yyr1356 || yy2arr1356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1356[12] { yym1388 := z.EncBinary() _ = yym1388 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1356[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1389 := z.EncBinary() _ = yym1389 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } } if yyr1356 || yy2arr1356 { 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 yyr1356 || yy2arr1356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1356[14] { if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1356[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 yyr1356 || yy2arr1356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1356[15] { yym1393 := z.EncBinary() _ = yym1393 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { if yyq1356[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1394 := z.EncBinary() _ = yym1394 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } if yyr1356 || yy2arr1356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1356[16] { yym1396 := z.EncBinary() _ = yym1396 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } else { r.EncodeBool(false) } } else { if yyq1356[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdinOnce")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1397 := z.EncBinary() _ = yym1397 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } } if yyr1356 || yy2arr1356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1356[17] { yym1399 := z.EncBinary() _ = yym1399 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { r.EncodeBool(false) } } else { if yyq1356[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1400 := z.EncBinary() _ = yym1400 if false { } else { r.EncodeBool(bool(x.TTY)) } } } if yyr1356 || yy2arr1356 { 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 yym1401 := z.DecBinary() _ = yym1401 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1402 := r.ContainerType() if yyct1402 == codecSelferValueTypeMap1234 { yyl1402 := r.ReadMapStart() if yyl1402 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1402, d) } } else if yyct1402 == codecSelferValueTypeArray1234 { yyl1402 := r.ReadArrayStart() if yyl1402 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1402, 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 yys1403Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1403Slc var yyhl1403 bool = l >= 0 for yyj1403 := 0; ; yyj1403++ { if yyhl1403 { if yyj1403 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1403Slc = r.DecodeBytes(yys1403Slc, true, true) yys1403 := string(yys1403Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1403 { 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 { yyv1406 := &x.Command yym1407 := z.DecBinary() _ = yym1407 if false { } else { z.F.DecSliceStringX(yyv1406, false, d) } } case "args": if r.TryDecodeAsNil() { x.Args = nil } else { yyv1408 := &x.Args yym1409 := z.DecBinary() _ = yym1409 if false { } else { z.F.DecSliceStringX(yyv1408, false, d) } } case "workingDir": if r.TryDecodeAsNil() { x.WorkingDir = "" } else { x.WorkingDir = string(r.DecodeString()) } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1411 := &x.Ports yym1412 := z.DecBinary() _ = yym1412 if false { } else { h.decSliceContainerPort((*[]ContainerPort)(yyv1411), d) } } case "env": if r.TryDecodeAsNil() { x.Env = nil } else { yyv1413 := &x.Env yym1414 := z.DecBinary() _ = yym1414 if false { } else { h.decSliceEnvVar((*[]EnvVar)(yyv1413), d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv1415 := &x.Resources yyv1415.CodecDecodeSelf(d) } case "volumeMounts": if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { yyv1416 := &x.VolumeMounts yym1417 := z.DecBinary() _ = yym1417 if false { } else { h.decSliceVolumeMount((*[]VolumeMount)(yyv1416), 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, yys1403) } // end switch yys1403 } // end for yyj1403 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 yyj1427 int var yyb1427 bool var yyhl1427 bool = l >= 0 yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv1430 := &x.Command yym1431 := z.DecBinary() _ = yym1431 if false { } else { z.F.DecSliceStringX(yyv1430, false, d) } } yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Args = nil } else { yyv1432 := &x.Args yym1433 := z.DecBinary() _ = yym1433 if false { } else { z.F.DecSliceStringX(yyv1432, false, d) } } yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.WorkingDir = "" } else { x.WorkingDir = string(r.DecodeString()) } yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1435 := &x.Ports yym1436 := z.DecBinary() _ = yym1436 if false { } else { h.decSliceContainerPort((*[]ContainerPort)(yyv1435), d) } } yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Env = nil } else { yyv1437 := &x.Env yym1438 := z.DecBinary() _ = yym1438 if false { } else { h.decSliceEnvVar((*[]EnvVar)(yyv1437), d) } } yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv1439 := &x.Resources yyv1439.CodecDecodeSelf(d) } yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { yyv1440 := &x.VolumeMounts yym1441 := z.DecBinary() _ = yym1441 if false { } else { h.decSliceVolumeMount((*[]VolumeMount)(yyv1440), d) } } yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { 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) } yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { 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) } yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { 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) } yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TerminationMessagePath = "" } else { x.TerminationMessagePath = string(r.DecodeString()) } yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullPolicy = "" } else { x.ImagePullPolicy = PullPolicy(r.DecodeString()) } yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { 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) } yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StdinOnce = false } else { x.StdinOnce = bool(r.DecodeBool()) } yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } for { yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1427-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 { yym1451 := z.EncBinary() _ = yym1451 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1452 := !z.EncBinary() yy2arr1452 := z.EncBasicHandle().StructToArray var yyq1452 [3]bool _, _, _ = yysep1452, yyq1452, yy2arr1452 const yyr1452 bool = false yyq1452[0] = x.Exec != nil yyq1452[1] = x.HTTPGet != nil yyq1452[2] = x.TCPSocket != nil var yynn1452 int if yyr1452 || yy2arr1452 { r.EncodeArrayStart(3) } else { yynn1452 = 0 for _, b := range yyq1452 { if b { yynn1452++ } } r.EncodeMapStart(yynn1452) yynn1452 = 0 } if yyr1452 || yy2arr1452 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1452[0] { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1452[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 yyr1452 || yy2arr1452 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1452[1] { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1452[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 yyr1452 || yy2arr1452 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1452[2] { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1452[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 yyr1452 || yy2arr1452 { 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 yym1456 := z.DecBinary() _ = yym1456 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1457 := r.ContainerType() if yyct1457 == codecSelferValueTypeMap1234 { yyl1457 := r.ReadMapStart() if yyl1457 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1457, d) } } else if yyct1457 == codecSelferValueTypeArray1234 { yyl1457 := r.ReadArrayStart() if yyl1457 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1457, 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 yys1458Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1458Slc var yyhl1458 bool = l >= 0 for yyj1458 := 0; ; yyj1458++ { if yyhl1458 { if yyj1458 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1458Slc = r.DecodeBytes(yys1458Slc, true, true) yys1458 := string(yys1458Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1458 { 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, yys1458) } // end switch yys1458 } // end for yyj1458 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 yyj1462 int var yyb1462 bool var yyhl1462 bool = l >= 0 yyj1462++ if yyhl1462 { yyb1462 = yyj1462 > l } else { yyb1462 = r.CheckBreak() } if yyb1462 { 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) } yyj1462++ if yyhl1462 { yyb1462 = yyj1462 > l } else { yyb1462 = r.CheckBreak() } if yyb1462 { 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) } yyj1462++ if yyhl1462 { yyb1462 = yyj1462 > l } else { yyb1462 = r.CheckBreak() } if yyb1462 { 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 { yyj1462++ if yyhl1462 { yyb1462 = yyj1462 > l } else { yyb1462 = r.CheckBreak() } if yyb1462 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1462-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 { yym1466 := z.EncBinary() _ = yym1466 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1467 := !z.EncBinary() yy2arr1467 := z.EncBasicHandle().StructToArray var yyq1467 [2]bool _, _, _ = yysep1467, yyq1467, yy2arr1467 const yyr1467 bool = false yyq1467[0] = x.PostStart != nil yyq1467[1] = x.PreStop != nil var yynn1467 int if yyr1467 || yy2arr1467 { r.EncodeArrayStart(2) } else { yynn1467 = 0 for _, b := range yyq1467 { if b { yynn1467++ } } r.EncodeMapStart(yynn1467) yynn1467 = 0 } if yyr1467 || yy2arr1467 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1467[0] { if x.PostStart == nil { r.EncodeNil() } else { x.PostStart.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1467[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 yyr1467 || yy2arr1467 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1467[1] { if x.PreStop == nil { r.EncodeNil() } else { x.PreStop.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1467[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 yyr1467 || yy2arr1467 { 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 yym1470 := z.DecBinary() _ = yym1470 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1471 := r.ContainerType() if yyct1471 == codecSelferValueTypeMap1234 { yyl1471 := r.ReadMapStart() if yyl1471 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1471, d) } } else if yyct1471 == codecSelferValueTypeArray1234 { yyl1471 := r.ReadArrayStart() if yyl1471 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1471, 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 yys1472Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1472Slc var yyhl1472 bool = l >= 0 for yyj1472 := 0; ; yyj1472++ { if yyhl1472 { if yyj1472 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1472Slc = r.DecodeBytes(yys1472Slc, true, true) yys1472 := string(yys1472Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1472 { 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, yys1472) } // end switch yys1472 } // end for yyj1472 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 yyj1475 int var yyb1475 bool var yyhl1475 bool = l >= 0 yyj1475++ if yyhl1475 { yyb1475 = yyj1475 > l } else { yyb1475 = r.CheckBreak() } if yyb1475 { 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) } yyj1475++ if yyhl1475 { yyb1475 = yyj1475 > l } else { yyb1475 = r.CheckBreak() } if yyb1475 { 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 { yyj1475++ if yyhl1475 { yyb1475 = yyj1475 > l } else { yyb1475 = r.CheckBreak() } if yyb1475 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1475-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1478 := z.EncBinary() _ = yym1478 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 yym1479 := z.DecBinary() _ = yym1479 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 { yym1480 := z.EncBinary() _ = yym1480 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1481 := !z.EncBinary() yy2arr1481 := z.EncBasicHandle().StructToArray var yyq1481 [2]bool _, _, _ = yysep1481, yyq1481, yy2arr1481 const yyr1481 bool = false yyq1481[0] = x.Reason != "" yyq1481[1] = x.Message != "" var yynn1481 int if yyr1481 || yy2arr1481 { r.EncodeArrayStart(2) } else { yynn1481 = 0 for _, b := range yyq1481 { if b { yynn1481++ } } r.EncodeMapStart(yynn1481) yynn1481 = 0 } if yyr1481 || yy2arr1481 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1481[0] { yym1483 := z.EncBinary() _ = yym1483 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1481[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1484 := z.EncBinary() _ = yym1484 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1481 || yy2arr1481 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1481[1] { yym1486 := z.EncBinary() _ = yym1486 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1481[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1487 := z.EncBinary() _ = yym1487 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1481 || yy2arr1481 { 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 yym1488 := z.DecBinary() _ = yym1488 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1489 := r.ContainerType() if yyct1489 == codecSelferValueTypeMap1234 { yyl1489 := r.ReadMapStart() if yyl1489 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1489, d) } } else if yyct1489 == codecSelferValueTypeArray1234 { yyl1489 := r.ReadArrayStart() if yyl1489 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1489, 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 yys1490Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1490Slc var yyhl1490 bool = l >= 0 for yyj1490 := 0; ; yyj1490++ { if yyhl1490 { if yyj1490 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1490Slc = r.DecodeBytes(yys1490Slc, true, true) yys1490 := string(yys1490Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1490 { 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, yys1490) } // end switch yys1490 } // end for yyj1490 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 yyj1493 int var yyb1493 bool var yyhl1493 bool = l >= 0 yyj1493++ if yyhl1493 { yyb1493 = yyj1493 > l } else { yyb1493 = r.CheckBreak() } if yyb1493 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1493++ if yyhl1493 { yyb1493 = yyj1493 > l } else { yyb1493 = r.CheckBreak() } if yyb1493 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj1493++ if yyhl1493 { yyb1493 = yyj1493 > l } else { yyb1493 = r.CheckBreak() } if yyb1493 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1493-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 { yym1496 := z.EncBinary() _ = yym1496 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1497 := !z.EncBinary() yy2arr1497 := z.EncBasicHandle().StructToArray var yyq1497 [1]bool _, _, _ = yysep1497, yyq1497, yy2arr1497 const yyr1497 bool = false yyq1497[0] = true var yynn1497 int if yyr1497 || yy2arr1497 { r.EncodeArrayStart(1) } 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] { yy1499 := &x.StartedAt yym1500 := z.EncBinary() _ = yym1500 if false { } else if z.HasExtensions() && z.EncExt(yy1499) { } else if yym1500 { z.EncBinaryMarshal(yy1499) } else if !yym1500 && z.IsJSONHandle() { z.EncJSONMarshal(yy1499) } else { z.EncFallback(yy1499) } } else { r.EncodeNil() } } else { if yyq1497[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1501 := &x.StartedAt yym1502 := z.EncBinary() _ = yym1502 if false { } else if z.HasExtensions() && z.EncExt(yy1501) { } else if yym1502 { z.EncBinaryMarshal(yy1501) } else if !yym1502 && z.IsJSONHandle() { z.EncJSONMarshal(yy1501) } else { z.EncFallback(yy1501) } } } if yyr1497 || yy2arr1497 { 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 yym1503 := z.DecBinary() _ = yym1503 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1504 := r.ContainerType() if yyct1504 == codecSelferValueTypeMap1234 { yyl1504 := r.ReadMapStart() if yyl1504 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1504, d) } } else if yyct1504 == codecSelferValueTypeArray1234 { yyl1504 := r.ReadArrayStart() if yyl1504 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1504, 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 yys1505Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1505Slc var yyhl1505 bool = l >= 0 for yyj1505 := 0; ; yyj1505++ { if yyhl1505 { if yyj1505 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1505Slc = r.DecodeBytes(yys1505Slc, true, true) yys1505 := string(yys1505Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1505 { case "startedAt": if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1506 := &x.StartedAt yym1507 := z.DecBinary() _ = yym1507 if false { } else if z.HasExtensions() && z.DecExt(yyv1506) { } else if yym1507 { z.DecBinaryUnmarshal(yyv1506) } else if !yym1507 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1506) } else { z.DecFallback(yyv1506, false) } } default: z.DecStructFieldNotFound(-1, yys1505) } // end switch yys1505 } // end for yyj1505 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 yyj1508 int var yyb1508 bool var yyhl1508 bool = l >= 0 yyj1508++ if yyhl1508 { yyb1508 = yyj1508 > l } else { yyb1508 = r.CheckBreak() } if yyb1508 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1509 := &x.StartedAt yym1510 := z.DecBinary() _ = yym1510 if false { } else if z.HasExtensions() && z.DecExt(yyv1509) { } else if yym1510 { z.DecBinaryUnmarshal(yyv1509) } else if !yym1510 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1509) } else { z.DecFallback(yyv1509, false) } } for { yyj1508++ if yyhl1508 { yyb1508 = yyj1508 > l } else { yyb1508 = r.CheckBreak() } if yyb1508 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1508-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 { yym1511 := z.EncBinary() _ = yym1511 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1512 := !z.EncBinary() yy2arr1512 := z.EncBasicHandle().StructToArray var yyq1512 [7]bool _, _, _ = yysep1512, yyq1512, yy2arr1512 const yyr1512 bool = false yyq1512[1] = x.Signal != 0 yyq1512[2] = x.Reason != "" yyq1512[3] = x.Message != "" yyq1512[4] = true yyq1512[5] = true yyq1512[6] = x.ContainerID != "" var yynn1512 int if yyr1512 || yy2arr1512 { r.EncodeArrayStart(7) } else { yynn1512 = 1 for _, b := range yyq1512 { if b { yynn1512++ } } r.EncodeMapStart(yynn1512) yynn1512 = 0 } if yyr1512 || yy2arr1512 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1514 := z.EncBinary() _ = yym1514 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exitCode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1515 := z.EncBinary() _ = yym1515 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } if yyr1512 || yy2arr1512 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1512[1] { yym1517 := z.EncBinary() _ = yym1517 if false { } else { r.EncodeInt(int64(x.Signal)) } } else { r.EncodeInt(0) } } else { if yyq1512[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("signal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1518 := z.EncBinary() _ = yym1518 if false { } else { r.EncodeInt(int64(x.Signal)) } } } if yyr1512 || yy2arr1512 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1512[2] { yym1520 := z.EncBinary() _ = yym1520 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1512[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1521 := z.EncBinary() _ = yym1521 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1512 || yy2arr1512 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1512[3] { yym1523 := z.EncBinary() _ = yym1523 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1512[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1524 := z.EncBinary() _ = yym1524 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1512 || yy2arr1512 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1512[4] { yy1526 := &x.StartedAt yym1527 := z.EncBinary() _ = yym1527 if false { } else if z.HasExtensions() && z.EncExt(yy1526) { } else if yym1527 { z.EncBinaryMarshal(yy1526) } else if !yym1527 && z.IsJSONHandle() { z.EncJSONMarshal(yy1526) } else { z.EncFallback(yy1526) } } else { r.EncodeNil() } } else { if yyq1512[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1528 := &x.StartedAt yym1529 := z.EncBinary() _ = yym1529 if false { } else if z.HasExtensions() && z.EncExt(yy1528) { } else if yym1529 { z.EncBinaryMarshal(yy1528) } else if !yym1529 && z.IsJSONHandle() { z.EncJSONMarshal(yy1528) } else { z.EncFallback(yy1528) } } } if yyr1512 || yy2arr1512 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1512[5] { yy1531 := &x.FinishedAt yym1532 := z.EncBinary() _ = yym1532 if false { } else if z.HasExtensions() && z.EncExt(yy1531) { } else if yym1532 { z.EncBinaryMarshal(yy1531) } else if !yym1532 && z.IsJSONHandle() { z.EncJSONMarshal(yy1531) } else { z.EncFallback(yy1531) } } else { r.EncodeNil() } } else { if yyq1512[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finishedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1533 := &x.FinishedAt yym1534 := z.EncBinary() _ = yym1534 if false { } else if z.HasExtensions() && z.EncExt(yy1533) { } else if yym1534 { z.EncBinaryMarshal(yy1533) } else if !yym1534 && z.IsJSONHandle() { z.EncJSONMarshal(yy1533) } else { z.EncFallback(yy1533) } } } if yyr1512 || yy2arr1512 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1512[6] { yym1536 := z.EncBinary() _ = yym1536 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1512[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1537 := z.EncBinary() _ = yym1537 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } if yyr1512 || yy2arr1512 { 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 yym1538 := z.DecBinary() _ = yym1538 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1539 := r.ContainerType() if yyct1539 == codecSelferValueTypeMap1234 { yyl1539 := r.ReadMapStart() if yyl1539 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1539, d) } } else if yyct1539 == codecSelferValueTypeArray1234 { yyl1539 := r.ReadArrayStart() if yyl1539 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1539, 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 yys1540Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1540Slc var yyhl1540 bool = l >= 0 for yyj1540 := 0; ; yyj1540++ { if yyhl1540 { if yyj1540 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1540Slc = r.DecodeBytes(yys1540Slc, true, true) yys1540 := string(yys1540Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1540 { 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 { yyv1545 := &x.StartedAt yym1546 := z.DecBinary() _ = yym1546 if false { } else if z.HasExtensions() && z.DecExt(yyv1545) { } else if yym1546 { z.DecBinaryUnmarshal(yyv1545) } else if !yym1546 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1545) } else { z.DecFallback(yyv1545, false) } } case "finishedAt": if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { yyv1547 := &x.FinishedAt yym1548 := z.DecBinary() _ = yym1548 if false { } else if z.HasExtensions() && z.DecExt(yyv1547) { } else if yym1548 { z.DecBinaryUnmarshal(yyv1547) } else if !yym1548 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1547) } else { z.DecFallback(yyv1547, false) } } case "containerID": if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1540) } // end switch yys1540 } // end for yyj1540 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 yyj1550 int var yyb1550 bool var yyhl1550 bool = l >= 0 yyj1550++ if yyhl1550 { yyb1550 = yyj1550 > l } else { yyb1550 = r.CheckBreak() } if yyb1550 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExitCode = 0 } else { x.ExitCode = int32(r.DecodeInt(32)) } yyj1550++ if yyhl1550 { yyb1550 = yyj1550 > l } else { yyb1550 = r.CheckBreak() } if yyb1550 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Signal = 0 } else { x.Signal = int32(r.DecodeInt(32)) } yyj1550++ if yyhl1550 { yyb1550 = yyj1550 > l } else { yyb1550 = r.CheckBreak() } if yyb1550 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1550++ if yyhl1550 { yyb1550 = yyj1550 > l } else { yyb1550 = r.CheckBreak() } if yyb1550 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj1550++ if yyhl1550 { yyb1550 = yyj1550 > l } else { yyb1550 = r.CheckBreak() } if yyb1550 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1555 := &x.StartedAt yym1556 := z.DecBinary() _ = yym1556 if false { } else if z.HasExtensions() && z.DecExt(yyv1555) { } else if yym1556 { z.DecBinaryUnmarshal(yyv1555) } else if !yym1556 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1555) } else { z.DecFallback(yyv1555, false) } } yyj1550++ if yyhl1550 { yyb1550 = yyj1550 > l } else { yyb1550 = r.CheckBreak() } if yyb1550 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { yyv1557 := &x.FinishedAt yym1558 := z.DecBinary() _ = yym1558 if false { } else if z.HasExtensions() && z.DecExt(yyv1557) { } else if yym1558 { z.DecBinaryUnmarshal(yyv1557) } else if !yym1558 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1557) } else { z.DecFallback(yyv1557, false) } } yyj1550++ if yyhl1550 { yyb1550 = yyj1550 > l } else { yyb1550 = r.CheckBreak() } if yyb1550 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } for { yyj1550++ if yyhl1550 { yyb1550 = yyj1550 > l } else { yyb1550 = r.CheckBreak() } if yyb1550 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1550-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 { yym1560 := z.EncBinary() _ = yym1560 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1561 := !z.EncBinary() yy2arr1561 := z.EncBasicHandle().StructToArray var yyq1561 [3]bool _, _, _ = yysep1561, yyq1561, yy2arr1561 const yyr1561 bool = false yyq1561[0] = x.Waiting != nil yyq1561[1] = x.Running != nil yyq1561[2] = x.Terminated != nil var yynn1561 int if yyr1561 || yy2arr1561 { r.EncodeArrayStart(3) } else { yynn1561 = 0 for _, b := range yyq1561 { if b { yynn1561++ } } r.EncodeMapStart(yynn1561) yynn1561 = 0 } if yyr1561 || yy2arr1561 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1561[0] { if x.Waiting == nil { r.EncodeNil() } else { x.Waiting.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1561[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 yyr1561 || yy2arr1561 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1561[1] { if x.Running == nil { r.EncodeNil() } else { x.Running.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1561[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 yyr1561 || yy2arr1561 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1561[2] { if x.Terminated == nil { r.EncodeNil() } else { x.Terminated.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1561[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 yyr1561 || yy2arr1561 { 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 yym1565 := z.DecBinary() _ = yym1565 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1566 := r.ContainerType() if yyct1566 == codecSelferValueTypeMap1234 { yyl1566 := r.ReadMapStart() if yyl1566 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1566, d) } } else if yyct1566 == codecSelferValueTypeArray1234 { yyl1566 := r.ReadArrayStart() if yyl1566 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1566, 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 yys1567Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1567Slc var yyhl1567 bool = l >= 0 for yyj1567 := 0; ; yyj1567++ { if yyhl1567 { if yyj1567 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1567Slc = r.DecodeBytes(yys1567Slc, true, true) yys1567 := string(yys1567Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1567 { 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, yys1567) } // end switch yys1567 } // end for yyj1567 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 yyj1571 int var yyb1571 bool var yyhl1571 bool = l >= 0 yyj1571++ if yyhl1571 { yyb1571 = yyj1571 > l } else { yyb1571 = r.CheckBreak() } if yyb1571 { 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) } yyj1571++ if yyhl1571 { yyb1571 = yyj1571 > l } else { yyb1571 = r.CheckBreak() } if yyb1571 { 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) } yyj1571++ if yyhl1571 { yyb1571 = yyj1571 > l } else { yyb1571 = r.CheckBreak() } if yyb1571 { 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 { yyj1571++ if yyhl1571 { yyb1571 = yyj1571 > l } else { yyb1571 = r.CheckBreak() } if yyb1571 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1571-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 { yym1575 := z.EncBinary() _ = yym1575 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1576 := !z.EncBinary() yy2arr1576 := z.EncBasicHandle().StructToArray var yyq1576 [8]bool _, _, _ = yysep1576, yyq1576, yy2arr1576 const yyr1576 bool = false yyq1576[1] = true yyq1576[2] = true yyq1576[7] = x.ContainerID != "" var yynn1576 int if yyr1576 || yy2arr1576 { r.EncodeArrayStart(8) } else { yynn1576 = 5 for _, b := range yyq1576 { if b { yynn1576++ } } r.EncodeMapStart(yynn1576) yynn1576 = 0 } if yyr1576 || yy2arr1576 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1578 := z.EncBinary() _ = yym1578 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) yym1579 := z.EncBinary() _ = yym1579 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1576 || yy2arr1576 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1576[1] { yy1581 := &x.State yy1581.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1576[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("state")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1582 := &x.State yy1582.CodecEncodeSelf(e) } } if yyr1576 || yy2arr1576 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1576[2] { yy1584 := &x.LastTerminationState yy1584.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1576[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastState")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1585 := &x.LastTerminationState yy1585.CodecEncodeSelf(e) } } if yyr1576 || yy2arr1576 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1587 := z.EncBinary() _ = yym1587 if false { } else { r.EncodeBool(bool(x.Ready)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ready")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1588 := z.EncBinary() _ = yym1588 if false { } else { r.EncodeBool(bool(x.Ready)) } } if yyr1576 || yy2arr1576 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1590 := z.EncBinary() _ = yym1590 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartCount")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1591 := z.EncBinary() _ = yym1591 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } if yyr1576 || yy2arr1576 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1593 := z.EncBinary() _ = yym1593 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) yym1594 := z.EncBinary() _ = yym1594 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } if yyr1576 || yy2arr1576 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1596 := z.EncBinary() _ = yym1596 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) yym1597 := z.EncBinary() _ = yym1597 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) } } if yyr1576 || yy2arr1576 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1576[7] { yym1599 := z.EncBinary() _ = yym1599 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1576[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1600 := z.EncBinary() _ = yym1600 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } if yyr1576 || yy2arr1576 { 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 yym1601 := z.DecBinary() _ = yym1601 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1602 := r.ContainerType() if yyct1602 == codecSelferValueTypeMap1234 { yyl1602 := r.ReadMapStart() if yyl1602 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1602, d) } } else if yyct1602 == codecSelferValueTypeArray1234 { yyl1602 := r.ReadArrayStart() if yyl1602 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1602, 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 yys1603Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1603Slc var yyhl1603 bool = l >= 0 for yyj1603 := 0; ; yyj1603++ { if yyhl1603 { if yyj1603 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1603Slc = r.DecodeBytes(yys1603Slc, true, true) yys1603 := string(yys1603Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1603 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "state": if r.TryDecodeAsNil() { x.State = ContainerState{} } else { yyv1605 := &x.State yyv1605.CodecDecodeSelf(d) } case "lastState": if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { yyv1606 := &x.LastTerminationState yyv1606.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, yys1603) } // end switch yys1603 } // end for yyj1603 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 yyj1612 int var yyb1612 bool var yyhl1612 bool = l >= 0 yyj1612++ if yyhl1612 { yyb1612 = yyj1612 > l } else { yyb1612 = r.CheckBreak() } if yyb1612 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1612++ if yyhl1612 { yyb1612 = yyj1612 > l } else { yyb1612 = r.CheckBreak() } if yyb1612 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.State = ContainerState{} } else { yyv1614 := &x.State yyv1614.CodecDecodeSelf(d) } yyj1612++ if yyhl1612 { yyb1612 = yyj1612 > l } else { yyb1612 = r.CheckBreak() } if yyb1612 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { yyv1615 := &x.LastTerminationState yyv1615.CodecDecodeSelf(d) } yyj1612++ if yyhl1612 { yyb1612 = yyj1612 > l } else { yyb1612 = r.CheckBreak() } if yyb1612 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ready = false } else { x.Ready = bool(r.DecodeBool()) } yyj1612++ if yyhl1612 { yyb1612 = yyj1612 > l } else { yyb1612 = r.CheckBreak() } if yyb1612 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RestartCount = 0 } else { x.RestartCount = int32(r.DecodeInt(32)) } yyj1612++ if yyhl1612 { yyb1612 = yyj1612 > l } else { yyb1612 = r.CheckBreak() } if yyb1612 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } yyj1612++ if yyhl1612 { yyb1612 = yyj1612 > l } else { yyb1612 = r.CheckBreak() } if yyb1612 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImageID = "" } else { x.ImageID = string(r.DecodeString()) } yyj1612++ if yyhl1612 { yyb1612 = yyj1612 > l } else { yyb1612 = r.CheckBreak() } if yyb1612 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } for { yyj1612++ if yyhl1612 { yyb1612 = yyj1612 > l } else { yyb1612 = r.CheckBreak() } if yyb1612 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1612-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1621 := z.EncBinary() _ = yym1621 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 yym1622 := z.DecBinary() _ = yym1622 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 yym1623 := z.EncBinary() _ = yym1623 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 yym1624 := z.DecBinary() _ = yym1624 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 { yym1625 := z.EncBinary() _ = yym1625 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1626 := !z.EncBinary() yy2arr1626 := z.EncBasicHandle().StructToArray var yyq1626 [6]bool _, _, _ = yysep1626, yyq1626, yy2arr1626 const yyr1626 bool = false yyq1626[2] = true yyq1626[3] = true yyq1626[4] = x.Reason != "" yyq1626[5] = x.Message != "" var yynn1626 int if yyr1626 || yy2arr1626 { r.EncodeArrayStart(6) } else { yynn1626 = 2 for _, b := range yyq1626 { if b { yynn1626++ } } r.EncodeMapStart(yynn1626) yynn1626 = 0 } if yyr1626 || yy2arr1626 { 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 yyr1626 || yy2arr1626 { 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 yyr1626 || yy2arr1626 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1626[2] { yy1630 := &x.LastProbeTime yym1631 := z.EncBinary() _ = yym1631 if false { } else if z.HasExtensions() && z.EncExt(yy1630) { } else if yym1631 { z.EncBinaryMarshal(yy1630) } else if !yym1631 && z.IsJSONHandle() { z.EncJSONMarshal(yy1630) } else { z.EncFallback(yy1630) } } else { r.EncodeNil() } } else { if yyq1626[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1632 := &x.LastProbeTime yym1633 := z.EncBinary() _ = yym1633 if false { } else if z.HasExtensions() && z.EncExt(yy1632) { } else if yym1633 { z.EncBinaryMarshal(yy1632) } else if !yym1633 && z.IsJSONHandle() { z.EncJSONMarshal(yy1632) } else { z.EncFallback(yy1632) } } } if yyr1626 || yy2arr1626 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1626[3] { yy1635 := &x.LastTransitionTime yym1636 := z.EncBinary() _ = yym1636 if false { } else if z.HasExtensions() && z.EncExt(yy1635) { } else if yym1636 { z.EncBinaryMarshal(yy1635) } else if !yym1636 && z.IsJSONHandle() { z.EncJSONMarshal(yy1635) } else { z.EncFallback(yy1635) } } else { r.EncodeNil() } } else { if yyq1626[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1637 := &x.LastTransitionTime yym1638 := z.EncBinary() _ = yym1638 if false { } else if z.HasExtensions() && z.EncExt(yy1637) { } else if yym1638 { z.EncBinaryMarshal(yy1637) } else if !yym1638 && z.IsJSONHandle() { z.EncJSONMarshal(yy1637) } else { z.EncFallback(yy1637) } } } if yyr1626 || yy2arr1626 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1626[4] { yym1640 := z.EncBinary() _ = yym1640 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1626[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1641 := z.EncBinary() _ = yym1641 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1626 || yy2arr1626 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1626[5] { yym1643 := z.EncBinary() _ = yym1643 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1626[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1644 := z.EncBinary() _ = yym1644 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1626 || yy2arr1626 { 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 yym1645 := z.DecBinary() _ = yym1645 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1646 := r.ContainerType() if yyct1646 == codecSelferValueTypeMap1234 { yyl1646 := r.ReadMapStart() if yyl1646 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1646, d) } } else if yyct1646 == codecSelferValueTypeArray1234 { yyl1646 := r.ReadArrayStart() if yyl1646 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1646, 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 yys1647Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1647Slc var yyhl1647 bool = l >= 0 for yyj1647 := 0; ; yyj1647++ { if yyhl1647 { if yyj1647 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1647Slc = r.DecodeBytes(yys1647Slc, true, true) yys1647 := string(yys1647Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1647 { 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 { yyv1650 := &x.LastProbeTime yym1651 := z.DecBinary() _ = yym1651 if false { } else if z.HasExtensions() && z.DecExt(yyv1650) { } else if yym1651 { z.DecBinaryUnmarshal(yyv1650) } else if !yym1651 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1650) } else { z.DecFallback(yyv1650, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv1652 := &x.LastTransitionTime yym1653 := z.DecBinary() _ = yym1653 if false { } else if z.HasExtensions() && z.DecExt(yyv1652) { } else if yym1653 { z.DecBinaryUnmarshal(yyv1652) } else if !yym1653 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1652) } else { z.DecFallback(yyv1652, 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, yys1647) } // end switch yys1647 } // end for yyj1647 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 yyj1656 int var yyb1656 bool var yyhl1656 bool = l >= 0 yyj1656++ if yyhl1656 { yyb1656 = yyj1656 > l } else { yyb1656 = r.CheckBreak() } if yyb1656 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = PodConditionType(r.DecodeString()) } yyj1656++ if yyhl1656 { yyb1656 = yyj1656 > l } else { yyb1656 = r.CheckBreak() } if yyb1656 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj1656++ if yyhl1656 { yyb1656 = yyj1656 > l } else { yyb1656 = r.CheckBreak() } if yyb1656 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { yyv1659 := &x.LastProbeTime yym1660 := z.DecBinary() _ = yym1660 if false { } else if z.HasExtensions() && z.DecExt(yyv1659) { } else if yym1660 { z.DecBinaryUnmarshal(yyv1659) } else if !yym1660 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1659) } else { z.DecFallback(yyv1659, false) } } yyj1656++ if yyhl1656 { yyb1656 = yyj1656 > l } else { yyb1656 = r.CheckBreak() } if yyb1656 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv1661 := &x.LastTransitionTime yym1662 := z.DecBinary() _ = yym1662 if false { } else if z.HasExtensions() && z.DecExt(yyv1661) { } else if yym1662 { z.DecBinaryUnmarshal(yyv1661) } else if !yym1662 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1661) } else { z.DecFallback(yyv1661, false) } } yyj1656++ if yyhl1656 { yyb1656 = yyj1656 > l } else { yyb1656 = r.CheckBreak() } if yyb1656 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1656++ if yyhl1656 { yyb1656 = yyj1656 > l } else { yyb1656 = r.CheckBreak() } if yyb1656 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj1656++ if yyhl1656 { yyb1656 = yyj1656 > l } else { yyb1656 = r.CheckBreak() } if yyb1656 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1656-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1665 := z.EncBinary() _ = yym1665 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 yym1666 := z.DecBinary() _ = yym1666 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 { yym1667 := z.EncBinary() _ = yym1667 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1668 := !z.EncBinary() yy2arr1668 := z.EncBasicHandle().StructToArray var yyq1668 [4]bool _, _, _ = yysep1668, yyq1668, yy2arr1668 const yyr1668 bool = false yyq1668[0] = x.Kind != "" yyq1668[1] = x.APIVersion != "" yyq1668[2] = true var yynn1668 int if yyr1668 || yy2arr1668 { r.EncodeArrayStart(4) } else { yynn1668 = 1 for _, b := range yyq1668 { if b { yynn1668++ } } r.EncodeMapStart(yynn1668) yynn1668 = 0 } if yyr1668 || yy2arr1668 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1668[0] { yym1670 := z.EncBinary() _ = yym1670 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1668[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1671 := z.EncBinary() _ = yym1671 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1668 || yy2arr1668 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1668[1] { yym1673 := z.EncBinary() _ = yym1673 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1668[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1674 := z.EncBinary() _ = yym1674 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1668 || yy2arr1668 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1668[2] { yy1676 := &x.ListMeta yym1677 := z.EncBinary() _ = yym1677 if false { } else if z.HasExtensions() && z.EncExt(yy1676) { } else { z.EncFallback(yy1676) } } else { r.EncodeNil() } } else { if yyq1668[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1678 := &x.ListMeta yym1679 := z.EncBinary() _ = yym1679 if false { } else if z.HasExtensions() && z.EncExt(yy1678) { } else { z.EncFallback(yy1678) } } } if yyr1668 || yy2arr1668 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1681 := z.EncBinary() _ = yym1681 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 { yym1682 := z.EncBinary() _ = yym1682 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) } } } if yyr1668 || yy2arr1668 { 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 yym1683 := z.DecBinary() _ = yym1683 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1684 := r.ContainerType() if yyct1684 == codecSelferValueTypeMap1234 { yyl1684 := r.ReadMapStart() if yyl1684 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1684, d) } } else if yyct1684 == codecSelferValueTypeArray1234 { yyl1684 := r.ReadArrayStart() if yyl1684 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1684, 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 yys1685Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1685Slc var yyhl1685 bool = l >= 0 for yyj1685 := 0; ; yyj1685++ { if yyhl1685 { if yyj1685 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1685Slc = r.DecodeBytes(yys1685Slc, true, true) yys1685 := string(yys1685Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1685 { 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 { yyv1688 := &x.ListMeta yym1689 := z.DecBinary() _ = yym1689 if false { } else if z.HasExtensions() && z.DecExt(yyv1688) { } else { z.DecFallback(yyv1688, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1690 := &x.Items yym1691 := z.DecBinary() _ = yym1691 if false { } else { h.decSlicePod((*[]Pod)(yyv1690), d) } } default: z.DecStructFieldNotFound(-1, yys1685) } // end switch yys1685 } // end for yyj1685 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 yyj1692 int var yyb1692 bool var yyhl1692 bool = l >= 0 yyj1692++ if yyhl1692 { yyb1692 = yyj1692 > l } else { yyb1692 = r.CheckBreak() } if yyb1692 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1692++ if yyhl1692 { yyb1692 = yyj1692 > l } else { yyb1692 = r.CheckBreak() } if yyb1692 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1692++ if yyhl1692 { yyb1692 = yyj1692 > l } else { yyb1692 = r.CheckBreak() } if yyb1692 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1695 := &x.ListMeta yym1696 := z.DecBinary() _ = yym1696 if false { } else if z.HasExtensions() && z.DecExt(yyv1695) { } else { z.DecFallback(yyv1695, false) } } yyj1692++ if yyhl1692 { yyb1692 = yyj1692 > l } else { yyb1692 = r.CheckBreak() } if yyb1692 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1697 := &x.Items yym1698 := z.DecBinary() _ = yym1698 if false { } else { h.decSlicePod((*[]Pod)(yyv1697), d) } } for { yyj1692++ if yyhl1692 { yyb1692 = yyj1692 > l } else { yyb1692 = r.CheckBreak() } if yyb1692 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1692-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1699 := z.EncBinary() _ = yym1699 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 yym1700 := z.DecBinary() _ = yym1700 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 { yym1701 := z.EncBinary() _ = yym1701 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1702 := !z.EncBinary() yy2arr1702 := z.EncBasicHandle().StructToArray var yyq1702 [1]bool _, _, _ = yysep1702, yyq1702, yy2arr1702 const yyr1702 bool = false var yynn1702 int if yyr1702 || yy2arr1702 { r.EncodeArrayStart(1) } else { yynn1702 = 1 for _, b := range yyq1702 { if b { yynn1702++ } } r.EncodeMapStart(yynn1702) yynn1702 = 0 } if yyr1702 || yy2arr1702 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NodeSelectorTerms == nil { r.EncodeNil() } else { yym1704 := z.EncBinary() _ = yym1704 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 { yym1705 := z.EncBinary() _ = yym1705 if false { } else { h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) } } } if yyr1702 || yy2arr1702 { 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 yym1706 := z.DecBinary() _ = yym1706 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1707 := r.ContainerType() if yyct1707 == codecSelferValueTypeMap1234 { yyl1707 := r.ReadMapStart() if yyl1707 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1707, d) } } else if yyct1707 == codecSelferValueTypeArray1234 { yyl1707 := r.ReadArrayStart() if yyl1707 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1707, 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 yys1708Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1708Slc var yyhl1708 bool = l >= 0 for yyj1708 := 0; ; yyj1708++ { if yyhl1708 { if yyj1708 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1708Slc = r.DecodeBytes(yys1708Slc, true, true) yys1708 := string(yys1708Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1708 { case "nodeSelectorTerms": if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { yyv1709 := &x.NodeSelectorTerms yym1710 := z.DecBinary() _ = yym1710 if false { } else { h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1709), d) } } default: z.DecStructFieldNotFound(-1, yys1708) } // end switch yys1708 } // end for yyj1708 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 yyj1711 int var yyb1711 bool var yyhl1711 bool = l >= 0 yyj1711++ if yyhl1711 { yyb1711 = yyj1711 > l } else { yyb1711 = r.CheckBreak() } if yyb1711 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { yyv1712 := &x.NodeSelectorTerms yym1713 := z.DecBinary() _ = yym1713 if false { } else { h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1712), d) } } for { yyj1711++ if yyhl1711 { yyb1711 = yyj1711 > l } else { yyb1711 = r.CheckBreak() } if yyb1711 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1711-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 { yym1714 := z.EncBinary() _ = yym1714 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1715 := !z.EncBinary() yy2arr1715 := z.EncBasicHandle().StructToArray var yyq1715 [1]bool _, _, _ = yysep1715, yyq1715, yy2arr1715 const yyr1715 bool = false var yynn1715 int if yyr1715 || yy2arr1715 { r.EncodeArrayStart(1) } else { yynn1715 = 1 for _, b := range yyq1715 { if b { yynn1715++ } } r.EncodeMapStart(yynn1715) yynn1715 = 0 } if yyr1715 || yy2arr1715 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.MatchExpressions == nil { r.EncodeNil() } else { yym1717 := z.EncBinary() _ = yym1717 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 { yym1718 := z.EncBinary() _ = yym1718 if false { } else { h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) } } } if yyr1715 || yy2arr1715 { 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 yym1719 := z.DecBinary() _ = yym1719 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1720 := r.ContainerType() if yyct1720 == codecSelferValueTypeMap1234 { yyl1720 := r.ReadMapStart() if yyl1720 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1720, d) } } else if yyct1720 == codecSelferValueTypeArray1234 { yyl1720 := r.ReadArrayStart() if yyl1720 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1720, 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 yys1721Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1721Slc var yyhl1721 bool = l >= 0 for yyj1721 := 0; ; yyj1721++ { if yyhl1721 { if yyj1721 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1721Slc = r.DecodeBytes(yys1721Slc, true, true) yys1721 := string(yys1721Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1721 { case "matchExpressions": if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { yyv1722 := &x.MatchExpressions yym1723 := z.DecBinary() _ = yym1723 if false { } else { h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1722), d) } } default: z.DecStructFieldNotFound(-1, yys1721) } // end switch yys1721 } // end for yyj1721 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 yyj1724 int var yyb1724 bool var yyhl1724 bool = l >= 0 yyj1724++ if yyhl1724 { yyb1724 = yyj1724 > l } else { yyb1724 = r.CheckBreak() } if yyb1724 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { yyv1725 := &x.MatchExpressions yym1726 := z.DecBinary() _ = yym1726 if false { } else { h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1725), d) } } for { yyj1724++ if yyhl1724 { yyb1724 = yyj1724 > l } else { yyb1724 = r.CheckBreak() } if yyb1724 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1724-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 { yym1727 := z.EncBinary() _ = yym1727 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1728 := !z.EncBinary() yy2arr1728 := z.EncBasicHandle().StructToArray var yyq1728 [3]bool _, _, _ = yysep1728, yyq1728, yy2arr1728 const yyr1728 bool = false yyq1728[2] = len(x.Values) != 0 var yynn1728 int if yyr1728 || yy2arr1728 { r.EncodeArrayStart(3) } else { yynn1728 = 2 for _, b := range yyq1728 { if b { yynn1728++ } } r.EncodeMapStart(yynn1728) yynn1728 = 0 } if yyr1728 || yy2arr1728 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1730 := z.EncBinary() _ = yym1730 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) yym1731 := z.EncBinary() _ = yym1731 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1728 || yy2arr1728 { 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 yyr1728 || yy2arr1728 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1728[2] { if x.Values == nil { r.EncodeNil() } else { yym1734 := z.EncBinary() _ = yym1734 if false { } else { z.F.EncSliceStringV(x.Values, false, e) } } } else { r.EncodeNil() } } else { if yyq1728[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("values")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Values == nil { r.EncodeNil() } else { yym1735 := z.EncBinary() _ = yym1735 if false { } else { z.F.EncSliceStringV(x.Values, false, e) } } } } if yyr1728 || yy2arr1728 { 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 yym1736 := z.DecBinary() _ = yym1736 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1737 := r.ContainerType() if yyct1737 == codecSelferValueTypeMap1234 { yyl1737 := r.ReadMapStart() if yyl1737 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1737, d) } } else if yyct1737 == codecSelferValueTypeArray1234 { yyl1737 := r.ReadArrayStart() if yyl1737 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1737, 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 yys1738Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1738Slc var yyhl1738 bool = l >= 0 for yyj1738 := 0; ; yyj1738++ { if yyhl1738 { if yyj1738 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1738Slc = r.DecodeBytes(yys1738Slc, true, true) yys1738 := string(yys1738Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1738 { 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 { yyv1741 := &x.Values yym1742 := z.DecBinary() _ = yym1742 if false { } else { z.F.DecSliceStringX(yyv1741, false, d) } } default: z.DecStructFieldNotFound(-1, yys1738) } // end switch yys1738 } // end for yyj1738 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 yyj1743 int var yyb1743 bool var yyhl1743 bool = l >= 0 yyj1743++ if yyhl1743 { yyb1743 = yyj1743 > l } else { yyb1743 = r.CheckBreak() } if yyb1743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } yyj1743++ if yyhl1743 { yyb1743 = yyj1743 > l } else { yyb1743 = r.CheckBreak() } if yyb1743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Operator = "" } else { x.Operator = NodeSelectorOperator(r.DecodeString()) } yyj1743++ if yyhl1743 { yyb1743 = yyj1743 > l } else { yyb1743 = r.CheckBreak() } if yyb1743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Values = nil } else { yyv1746 := &x.Values yym1747 := z.DecBinary() _ = yym1747 if false { } else { z.F.DecSliceStringX(yyv1746, false, d) } } for { yyj1743++ if yyhl1743 { yyb1743 = yyj1743 > l } else { yyb1743 = r.CheckBreak() } if yyb1743 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1743-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodeSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1748 := z.EncBinary() _ = yym1748 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 yym1749 := z.DecBinary() _ = yym1749 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 { yym1750 := z.EncBinary() _ = yym1750 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1751 := !z.EncBinary() yy2arr1751 := z.EncBasicHandle().StructToArray var yyq1751 [3]bool _, _, _ = yysep1751, yyq1751, yy2arr1751 const yyr1751 bool = false yyq1751[0] = x.NodeAffinity != nil yyq1751[1] = x.PodAffinity != nil yyq1751[2] = x.PodAntiAffinity != nil var yynn1751 int if yyr1751 || yy2arr1751 { r.EncodeArrayStart(3) } else { yynn1751 = 0 for _, b := range yyq1751 { if b { yynn1751++ } } r.EncodeMapStart(yynn1751) yynn1751 = 0 } if yyr1751 || yy2arr1751 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1751[0] { if x.NodeAffinity == nil { r.EncodeNil() } else { x.NodeAffinity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1751[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 yyr1751 || yy2arr1751 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1751[1] { if x.PodAffinity == nil { r.EncodeNil() } else { x.PodAffinity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1751[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 yyr1751 || yy2arr1751 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1751[2] { if x.PodAntiAffinity == nil { r.EncodeNil() } else { x.PodAntiAffinity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1751[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 yyr1751 || yy2arr1751 { 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 yym1755 := z.DecBinary() _ = yym1755 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1756 := r.ContainerType() if yyct1756 == codecSelferValueTypeMap1234 { yyl1756 := r.ReadMapStart() if yyl1756 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1756, d) } } else if yyct1756 == codecSelferValueTypeArray1234 { yyl1756 := r.ReadArrayStart() if yyl1756 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1756, 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 yys1757Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1757Slc var yyhl1757 bool = l >= 0 for yyj1757 := 0; ; yyj1757++ { if yyhl1757 { if yyj1757 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1757Slc = r.DecodeBytes(yys1757Slc, true, true) yys1757 := string(yys1757Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1757 { 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, yys1757) } // end switch yys1757 } // end for yyj1757 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 yyj1761 int var yyb1761 bool var yyhl1761 bool = l >= 0 yyj1761++ if yyhl1761 { yyb1761 = yyj1761 > l } else { yyb1761 = r.CheckBreak() } if yyb1761 { 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) } yyj1761++ if yyhl1761 { yyb1761 = yyj1761 > l } else { yyb1761 = r.CheckBreak() } if yyb1761 { 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) } yyj1761++ if yyhl1761 { yyb1761 = yyj1761 > l } else { yyb1761 = r.CheckBreak() } if yyb1761 { 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 { yyj1761++ if yyhl1761 { yyb1761 = yyj1761 > l } else { yyb1761 = r.CheckBreak() } if yyb1761 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1761-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 { yym1765 := z.EncBinary() _ = yym1765 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1766 := !z.EncBinary() yy2arr1766 := z.EncBasicHandle().StructToArray var yyq1766 [2]bool _, _, _ = yysep1766, yyq1766, yy2arr1766 const yyr1766 bool = false yyq1766[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 yyq1766[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 var yynn1766 int if yyr1766 || yy2arr1766 { r.EncodeArrayStart(2) } else { yynn1766 = 0 for _, b := range yyq1766 { if b { yynn1766++ } } r.EncodeMapStart(yynn1766) yynn1766 = 0 } if yyr1766 || yy2arr1766 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1766[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1768 := z.EncBinary() _ = yym1768 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) } } } else { r.EncodeNil() } } else { if yyq1766[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1769 := z.EncBinary() _ = yym1769 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) } } } } if yyr1766 || yy2arr1766 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1766[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1771 := z.EncBinary() _ = yym1771 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } else { r.EncodeNil() } } else { if yyq1766[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1772 := z.EncBinary() _ = yym1772 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } } if yyr1766 || yy2arr1766 { 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 yym1773 := z.DecBinary() _ = yym1773 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1774 := r.ContainerType() if yyct1774 == codecSelferValueTypeMap1234 { yyl1774 := r.ReadMapStart() if yyl1774 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1774, d) } } else if yyct1774 == codecSelferValueTypeArray1234 { yyl1774 := r.ReadArrayStart() if yyl1774 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1774, 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 yys1775Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1775Slc var yyhl1775 bool = l >= 0 for yyj1775 := 0; ; yyj1775++ { if yyhl1775 { if yyj1775 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1775Slc = r.DecodeBytes(yys1775Slc, true, true) yys1775 := string(yys1775Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1775 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1776 := &x.RequiredDuringSchedulingIgnoredDuringExecution yym1777 := z.DecBinary() _ = yym1777 if false { } else { h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1776), d) } } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1778 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1779 := z.DecBinary() _ = yym1779 if false { } else { h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1778), d) } } default: z.DecStructFieldNotFound(-1, yys1775) } // end switch yys1775 } // end for yyj1775 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 yyj1780 int var yyb1780 bool var yyhl1780 bool = l >= 0 yyj1780++ if yyhl1780 { yyb1780 = yyj1780 > l } else { yyb1780 = r.CheckBreak() } if yyb1780 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1781 := &x.RequiredDuringSchedulingIgnoredDuringExecution yym1782 := z.DecBinary() _ = yym1782 if false { } else { h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1781), d) } } yyj1780++ if yyhl1780 { yyb1780 = yyj1780 > l } else { yyb1780 = r.CheckBreak() } if yyb1780 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1783 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1784 := z.DecBinary() _ = yym1784 if false { } else { h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1783), d) } } for { yyj1780++ if yyhl1780 { yyb1780 = yyj1780 > l } else { yyb1780 = r.CheckBreak() } if yyb1780 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1780-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 { yym1785 := z.EncBinary() _ = yym1785 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1786 := !z.EncBinary() yy2arr1786 := z.EncBasicHandle().StructToArray var yyq1786 [2]bool _, _, _ = yysep1786, yyq1786, yy2arr1786 const yyr1786 bool = false yyq1786[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 yyq1786[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 var yynn1786 int if yyr1786 || yy2arr1786 { r.EncodeArrayStart(2) } else { yynn1786 = 0 for _, b := range yyq1786 { if b { yynn1786++ } } r.EncodeMapStart(yynn1786) yynn1786 = 0 } if yyr1786 || yy2arr1786 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1786[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1788 := z.EncBinary() _ = yym1788 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) } } } else { r.EncodeNil() } } else { if yyq1786[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1789 := z.EncBinary() _ = yym1789 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) } } } } if yyr1786 || yy2arr1786 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1786[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1791 := z.EncBinary() _ = yym1791 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } else { r.EncodeNil() } } else { if yyq1786[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1792 := z.EncBinary() _ = yym1792 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } } if yyr1786 || yy2arr1786 { 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 yym1793 := z.DecBinary() _ = yym1793 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1794 := r.ContainerType() if yyct1794 == codecSelferValueTypeMap1234 { yyl1794 := r.ReadMapStart() if yyl1794 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1794, d) } } else if yyct1794 == codecSelferValueTypeArray1234 { yyl1794 := r.ReadArrayStart() if yyl1794 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1794, 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 yys1795Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1795Slc var yyhl1795 bool = l >= 0 for yyj1795 := 0; ; yyj1795++ { if yyhl1795 { if yyj1795 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1795Slc = r.DecodeBytes(yys1795Slc, true, true) yys1795 := string(yys1795Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1795 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1796 := &x.RequiredDuringSchedulingIgnoredDuringExecution yym1797 := z.DecBinary() _ = yym1797 if false { } else { h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1796), d) } } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1798 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1799 := z.DecBinary() _ = yym1799 if false { } else { h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1798), d) } } default: z.DecStructFieldNotFound(-1, yys1795) } // end switch yys1795 } // end for yyj1795 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 yyj1800 int var yyb1800 bool var yyhl1800 bool = l >= 0 yyj1800++ if yyhl1800 { yyb1800 = yyj1800 > l } else { yyb1800 = r.CheckBreak() } if yyb1800 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1801 := &x.RequiredDuringSchedulingIgnoredDuringExecution yym1802 := z.DecBinary() _ = yym1802 if false { } else { h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1801), d) } } yyj1800++ if yyhl1800 { yyb1800 = yyj1800 > l } else { yyb1800 = r.CheckBreak() } if yyb1800 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1803 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1804 := z.DecBinary() _ = yym1804 if false { } else { h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1803), d) } } for { yyj1800++ if yyhl1800 { yyb1800 = yyj1800 > l } else { yyb1800 = r.CheckBreak() } if yyb1800 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1800-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 { yym1805 := z.EncBinary() _ = yym1805 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1806 := !z.EncBinary() yy2arr1806 := z.EncBasicHandle().StructToArray var yyq1806 [2]bool _, _, _ = yysep1806, yyq1806, yy2arr1806 const yyr1806 bool = false var yynn1806 int if yyr1806 || yy2arr1806 { r.EncodeArrayStart(2) } else { yynn1806 = 2 for _, b := range yyq1806 { if b { yynn1806++ } } r.EncodeMapStart(yynn1806) yynn1806 = 0 } if yyr1806 || yy2arr1806 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1808 := z.EncBinary() _ = yym1808 if false { } else { r.EncodeInt(int64(x.Weight)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("weight")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1809 := z.EncBinary() _ = yym1809 if false { } else { r.EncodeInt(int64(x.Weight)) } } if yyr1806 || yy2arr1806 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy1811 := &x.PodAffinityTerm yy1811.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAffinityTerm")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1812 := &x.PodAffinityTerm yy1812.CodecEncodeSelf(e) } if yyr1806 || yy2arr1806 { 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 yym1813 := z.DecBinary() _ = yym1813 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1814 := r.ContainerType() if yyct1814 == codecSelferValueTypeMap1234 { yyl1814 := r.ReadMapStart() if yyl1814 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1814, d) } } else if yyct1814 == codecSelferValueTypeArray1234 { yyl1814 := r.ReadArrayStart() if yyl1814 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1814, 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 yys1815Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1815Slc var yyhl1815 bool = l >= 0 for yyj1815 := 0; ; yyj1815++ { if yyhl1815 { if yyj1815 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1815Slc = r.DecodeBytes(yys1815Slc, true, true) yys1815 := string(yys1815Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1815 { case "weight": if r.TryDecodeAsNil() { x.Weight = 0 } else { x.Weight = int(r.DecodeInt(codecSelferBitsize1234)) } case "podAffinityTerm": if r.TryDecodeAsNil() { x.PodAffinityTerm = PodAffinityTerm{} } else { yyv1817 := &x.PodAffinityTerm yyv1817.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1815) } // end switch yys1815 } // end for yyj1815 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 yyj1818 int var yyb1818 bool var yyhl1818 bool = l >= 0 yyj1818++ if yyhl1818 { yyb1818 = yyj1818 > l } else { yyb1818 = r.CheckBreak() } if yyb1818 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Weight = 0 } else { x.Weight = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1818++ if yyhl1818 { yyb1818 = yyj1818 > l } else { yyb1818 = r.CheckBreak() } if yyb1818 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodAffinityTerm = PodAffinityTerm{} } else { yyv1820 := &x.PodAffinityTerm yyv1820.CodecDecodeSelf(d) } for { yyj1818++ if yyhl1818 { yyb1818 = yyj1818 > l } else { yyb1818 = r.CheckBreak() } if yyb1818 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1818-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 { yym1821 := z.EncBinary() _ = yym1821 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1822 := !z.EncBinary() yy2arr1822 := z.EncBasicHandle().StructToArray var yyq1822 [3]bool _, _, _ = yysep1822, yyq1822, yy2arr1822 const yyr1822 bool = false yyq1822[0] = x.LabelSelector != nil yyq1822[2] = x.TopologyKey != "" var yynn1822 int if yyr1822 || yy2arr1822 { r.EncodeArrayStart(3) } else { yynn1822 = 1 for _, b := range yyq1822 { if b { yynn1822++ } } r.EncodeMapStart(yynn1822) yynn1822 = 0 } if yyr1822 || yy2arr1822 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1822[0] { if x.LabelSelector == nil { r.EncodeNil() } else { yym1824 := z.EncBinary() _ = yym1824 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { z.EncFallback(x.LabelSelector) } } } else { r.EncodeNil() } } else { if yyq1822[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("labelSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LabelSelector == nil { r.EncodeNil() } else { yym1825 := z.EncBinary() _ = yym1825 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { z.EncFallback(x.LabelSelector) } } } } if yyr1822 || yy2arr1822 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Namespaces == nil { r.EncodeNil() } else { yym1827 := z.EncBinary() _ = yym1827 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 { yym1828 := z.EncBinary() _ = yym1828 if false { } else { z.F.EncSliceStringV(x.Namespaces, false, e) } } } if yyr1822 || yy2arr1822 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1822[2] { yym1830 := z.EncBinary() _ = yym1830 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1822[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("topologyKey")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1831 := z.EncBinary() _ = yym1831 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) } } } if yyr1822 || yy2arr1822 { 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 yym1832 := z.DecBinary() _ = yym1832 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1833 := r.ContainerType() if yyct1833 == codecSelferValueTypeMap1234 { yyl1833 := r.ReadMapStart() if yyl1833 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1833, d) } } else if yyct1833 == codecSelferValueTypeArray1234 { yyl1833 := r.ReadArrayStart() if yyl1833 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1833, 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 yys1834Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1834Slc var yyhl1834 bool = l >= 0 for yyj1834 := 0; ; yyj1834++ { if yyhl1834 { if yyj1834 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1834Slc = r.DecodeBytes(yys1834Slc, true, true) yys1834 := string(yys1834Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1834 { case "labelSelector": if r.TryDecodeAsNil() { if x.LabelSelector != nil { x.LabelSelector = nil } } else { if x.LabelSelector == nil { x.LabelSelector = new(pkg2_unversioned.LabelSelector) } yym1836 := z.DecBinary() _ = yym1836 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 { yyv1837 := &x.Namespaces yym1838 := z.DecBinary() _ = yym1838 if false { } else { z.F.DecSliceStringX(yyv1837, false, d) } } case "topologyKey": if r.TryDecodeAsNil() { x.TopologyKey = "" } else { x.TopologyKey = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1834) } // end switch yys1834 } // end for yyj1834 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 yyj1840 int var yyb1840 bool var yyhl1840 bool = l >= 0 yyj1840++ if yyhl1840 { yyb1840 = yyj1840 > l } else { yyb1840 = r.CheckBreak() } if yyb1840 { 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) } yym1842 := z.DecBinary() _ = yym1842 if false { } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { } else { z.DecFallback(x.LabelSelector, false) } } yyj1840++ if yyhl1840 { yyb1840 = yyj1840 > l } else { yyb1840 = r.CheckBreak() } if yyb1840 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Namespaces = nil } else { yyv1843 := &x.Namespaces yym1844 := z.DecBinary() _ = yym1844 if false { } else { z.F.DecSliceStringX(yyv1843, false, d) } } yyj1840++ if yyhl1840 { yyb1840 = yyj1840 > l } else { yyb1840 = r.CheckBreak() } if yyb1840 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TopologyKey = "" } else { x.TopologyKey = string(r.DecodeString()) } for { yyj1840++ if yyhl1840 { yyb1840 = yyj1840 > l } else { yyb1840 = r.CheckBreak() } if yyb1840 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1840-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 { yym1846 := z.EncBinary() _ = yym1846 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1847 := !z.EncBinary() yy2arr1847 := z.EncBasicHandle().StructToArray var yyq1847 [2]bool _, _, _ = yysep1847, yyq1847, yy2arr1847 const yyr1847 bool = false yyq1847[0] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil yyq1847[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 var yynn1847 int if yyr1847 || yy2arr1847 { r.EncodeArrayStart(2) } else { yynn1847 = 0 for _, b := range yyq1847 { if b { yynn1847++ } } r.EncodeMapStart(yynn1847) yynn1847 = 0 } if yyr1847 || yy2arr1847 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1847[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1847[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 yyr1847 || yy2arr1847 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1847[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1850 := z.EncBinary() _ = yym1850 if false { } else { h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } else { r.EncodeNil() } } else { if yyq1847[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1851 := z.EncBinary() _ = yym1851 if false { } else { h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } } if yyr1847 || yy2arr1847 { 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 yym1852 := z.DecBinary() _ = yym1852 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1853 := r.ContainerType() if yyct1853 == codecSelferValueTypeMap1234 { yyl1853 := r.ReadMapStart() if yyl1853 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1853, d) } } else if yyct1853 == codecSelferValueTypeArray1234 { yyl1853 := r.ReadArrayStart() if yyl1853 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1853, 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 yys1854Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1854Slc var yyhl1854 bool = l >= 0 for yyj1854 := 0; ; yyj1854++ { if yyhl1854 { if yyj1854 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1854Slc = r.DecodeBytes(yys1854Slc, true, true) yys1854 := string(yys1854Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1854 { 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 { yyv1856 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1857 := z.DecBinary() _ = yym1857 if false { } else { h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1856), d) } } default: z.DecStructFieldNotFound(-1, yys1854) } // end switch yys1854 } // end for yyj1854 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 yyj1858 int var yyb1858 bool var yyhl1858 bool = l >= 0 yyj1858++ if yyhl1858 { yyb1858 = yyj1858 > l } else { yyb1858 = r.CheckBreak() } if yyb1858 { 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) } yyj1858++ if yyhl1858 { yyb1858 = yyj1858 > l } else { yyb1858 = r.CheckBreak() } if yyb1858 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1860 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1861 := z.DecBinary() _ = yym1861 if false { } else { h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1860), d) } } for { yyj1858++ if yyhl1858 { yyb1858 = yyj1858 > l } else { yyb1858 = r.CheckBreak() } if yyb1858 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1858-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 { yym1862 := z.EncBinary() _ = yym1862 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1863 := !z.EncBinary() yy2arr1863 := z.EncBasicHandle().StructToArray var yyq1863 [2]bool _, _, _ = yysep1863, yyq1863, yy2arr1863 const yyr1863 bool = false var yynn1863 int if yyr1863 || yy2arr1863 { r.EncodeArrayStart(2) } else { yynn1863 = 2 for _, b := range yyq1863 { if b { yynn1863++ } } r.EncodeMapStart(yynn1863) yynn1863 = 0 } if yyr1863 || yy2arr1863 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1865 := z.EncBinary() _ = yym1865 if false { } else { r.EncodeInt(int64(x.Weight)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("weight")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1866 := z.EncBinary() _ = yym1866 if false { } else { r.EncodeInt(int64(x.Weight)) } } if yyr1863 || yy2arr1863 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy1868 := &x.Preference yy1868.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1869 := &x.Preference yy1869.CodecEncodeSelf(e) } if yyr1863 || yy2arr1863 { 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 yym1870 := z.DecBinary() _ = yym1870 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1871 := r.ContainerType() if yyct1871 == codecSelferValueTypeMap1234 { yyl1871 := r.ReadMapStart() if yyl1871 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1871, d) } } else if yyct1871 == codecSelferValueTypeArray1234 { yyl1871 := r.ReadArrayStart() if yyl1871 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1871, 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 yys1872Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1872Slc var yyhl1872 bool = l >= 0 for yyj1872 := 0; ; yyj1872++ { if yyhl1872 { if yyj1872 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1872Slc = r.DecodeBytes(yys1872Slc, true, true) yys1872 := string(yys1872Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1872 { case "weight": if r.TryDecodeAsNil() { x.Weight = 0 } else { x.Weight = int32(r.DecodeInt(32)) } case "preference": if r.TryDecodeAsNil() { x.Preference = NodeSelectorTerm{} } else { yyv1874 := &x.Preference yyv1874.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1872) } // end switch yys1872 } // end for yyj1872 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 yyj1875 int var yyb1875 bool var yyhl1875 bool = l >= 0 yyj1875++ if yyhl1875 { yyb1875 = yyj1875 > l } else { yyb1875 = r.CheckBreak() } if yyb1875 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Weight = 0 } else { x.Weight = int32(r.DecodeInt(32)) } yyj1875++ if yyhl1875 { yyb1875 = yyj1875 > l } else { yyb1875 = r.CheckBreak() } if yyb1875 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Preference = NodeSelectorTerm{} } else { yyv1877 := &x.Preference yyv1877.CodecDecodeSelf(d) } for { yyj1875++ if yyhl1875 { yyb1875 = yyj1875 > l } else { yyb1875 = r.CheckBreak() } if yyb1875 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1875-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 { yym1878 := z.EncBinary() _ = yym1878 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1879 := !z.EncBinary() yy2arr1879 := z.EncBasicHandle().StructToArray var yyq1879 [3]bool _, _, _ = yysep1879, yyq1879, yy2arr1879 const yyr1879 bool = false yyq1879[1] = x.Value != "" var yynn1879 int if yyr1879 || yy2arr1879 { r.EncodeArrayStart(3) } else { yynn1879 = 2 for _, b := range yyq1879 { if b { yynn1879++ } } r.EncodeMapStart(yynn1879) yynn1879 = 0 } if yyr1879 || yy2arr1879 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1881 := z.EncBinary() _ = yym1881 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) yym1882 := z.EncBinary() _ = yym1882 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1879 || yy2arr1879 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1879[1] { yym1884 := z.EncBinary() _ = yym1884 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1879[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1885 := z.EncBinary() _ = yym1885 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } if yyr1879 || yy2arr1879 { 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 yyr1879 || yy2arr1879 { 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 yym1887 := z.DecBinary() _ = yym1887 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1888 := r.ContainerType() if yyct1888 == codecSelferValueTypeMap1234 { yyl1888 := r.ReadMapStart() if yyl1888 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1888, d) } } else if yyct1888 == codecSelferValueTypeArray1234 { yyl1888 := r.ReadArrayStart() if yyl1888 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1888, 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 yys1889Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1889Slc var yyhl1889 bool = l >= 0 for yyj1889 := 0; ; yyj1889++ { if yyhl1889 { if yyj1889 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1889Slc = r.DecodeBytes(yys1889Slc, true, true) yys1889 := string(yys1889Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1889 { 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, yys1889) } // end switch yys1889 } // end for yyj1889 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 yyj1893 int var yyb1893 bool var yyhl1893 bool = l >= 0 yyj1893++ if yyhl1893 { yyb1893 = yyj1893 > l } else { yyb1893 = r.CheckBreak() } if yyb1893 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } yyj1893++ if yyhl1893 { yyb1893 = yyj1893 > l } else { yyb1893 = r.CheckBreak() } if yyb1893 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } yyj1893++ if yyhl1893 { yyb1893 = yyj1893 > l } else { yyb1893 = r.CheckBreak() } if yyb1893 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Effect = "" } else { x.Effect = TaintEffect(r.DecodeString()) } for { yyj1893++ if yyhl1893 { yyb1893 = yyj1893 > l } else { yyb1893 = r.CheckBreak() } if yyb1893 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1893-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x TaintEffect) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1897 := z.EncBinary() _ = yym1897 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 yym1898 := z.DecBinary() _ = yym1898 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 { yym1899 := z.EncBinary() _ = yym1899 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1900 := !z.EncBinary() yy2arr1900 := z.EncBasicHandle().StructToArray var yyq1900 [4]bool _, _, _ = yysep1900, yyq1900, yy2arr1900 const yyr1900 bool = false yyq1900[0] = x.Key != "" yyq1900[1] = x.Operator != "" yyq1900[2] = x.Value != "" yyq1900[3] = x.Effect != "" var yynn1900 int if yyr1900 || yy2arr1900 { r.EncodeArrayStart(4) } else { yynn1900 = 0 for _, b := range yyq1900 { if b { yynn1900++ } } r.EncodeMapStart(yynn1900) yynn1900 = 0 } if yyr1900 || yy2arr1900 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1900[0] { yym1902 := z.EncBinary() _ = yym1902 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1900[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1903 := z.EncBinary() _ = yym1903 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } } if yyr1900 || yy2arr1900 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1900[1] { x.Operator.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1900[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operator")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } } if yyr1900 || yy2arr1900 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1900[2] { yym1906 := z.EncBinary() _ = yym1906 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1900[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1907 := z.EncBinary() _ = yym1907 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } if yyr1900 || yy2arr1900 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1900[3] { x.Effect.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1900[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("effect")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Effect.CodecEncodeSelf(e) } } if yyr1900 || yy2arr1900 { 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 yym1909 := z.DecBinary() _ = yym1909 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1910 := r.ContainerType() if yyct1910 == codecSelferValueTypeMap1234 { yyl1910 := r.ReadMapStart() if yyl1910 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1910, d) } } else if yyct1910 == codecSelferValueTypeArray1234 { yyl1910 := r.ReadArrayStart() if yyl1910 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1910, 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 yys1911Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1911Slc var yyhl1911 bool = l >= 0 for yyj1911 := 0; ; yyj1911++ { if yyhl1911 { if yyj1911 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1911Slc = r.DecodeBytes(yys1911Slc, true, true) yys1911 := string(yys1911Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1911 { 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, yys1911) } // end switch yys1911 } // end for yyj1911 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 yyj1916 int var yyb1916 bool var yyhl1916 bool = l >= 0 yyj1916++ if yyhl1916 { yyb1916 = yyj1916 > l } else { yyb1916 = r.CheckBreak() } if yyb1916 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } yyj1916++ if yyhl1916 { yyb1916 = yyj1916 > l } else { yyb1916 = r.CheckBreak() } if yyb1916 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Operator = "" } else { x.Operator = TolerationOperator(r.DecodeString()) } yyj1916++ if yyhl1916 { yyb1916 = yyj1916 > l } else { yyb1916 = r.CheckBreak() } if yyb1916 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } yyj1916++ if yyhl1916 { yyb1916 = yyj1916 > l } else { yyb1916 = r.CheckBreak() } if yyb1916 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Effect = "" } else { x.Effect = TaintEffect(r.DecodeString()) } for { yyj1916++ if yyhl1916 { yyb1916 = yyj1916 > l } else { yyb1916 = r.CheckBreak() } if yyb1916 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1916-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x TolerationOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1921 := z.EncBinary() _ = yym1921 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 yym1922 := z.DecBinary() _ = yym1922 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 { yym1923 := z.EncBinary() _ = yym1923 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1924 := !z.EncBinary() yy2arr1924 := z.EncBasicHandle().StructToArray var yyq1924 [13]bool _, _, _ = yysep1924, yyq1924, yy2arr1924 const yyr1924 bool = false yyq1924[2] = x.RestartPolicy != "" yyq1924[3] = x.TerminationGracePeriodSeconds != nil yyq1924[4] = x.ActiveDeadlineSeconds != nil yyq1924[5] = x.DNSPolicy != "" yyq1924[6] = len(x.NodeSelector) != 0 yyq1924[8] = x.NodeName != "" yyq1924[9] = x.SecurityContext != nil yyq1924[10] = len(x.ImagePullSecrets) != 0 yyq1924[11] = x.Hostname != "" yyq1924[12] = x.Subdomain != "" var yynn1924 int if yyr1924 || yy2arr1924 { r.EncodeArrayStart(13) } else { yynn1924 = 3 for _, b := range yyq1924 { if b { yynn1924++ } } r.EncodeMapStart(yynn1924) yynn1924 = 0 } if yyr1924 || yy2arr1924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Volumes == nil { r.EncodeNil() } else { yym1926 := z.EncBinary() _ = yym1926 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 { yym1927 := z.EncBinary() _ = yym1927 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) } } } if yyr1924 || yy2arr1924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Containers == nil { r.EncodeNil() } else { yym1929 := z.EncBinary() _ = yym1929 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 { yym1930 := z.EncBinary() _ = yym1930 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) } } } if yyr1924 || yy2arr1924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1924[2] { x.RestartPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1924[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.RestartPolicy.CodecEncodeSelf(e) } } if yyr1924 || yy2arr1924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1924[3] { if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { yy1933 := *x.TerminationGracePeriodSeconds yym1934 := z.EncBinary() _ = yym1934 if false { } else { r.EncodeInt(int64(yy1933)) } } } else { r.EncodeNil() } } else { if yyq1924[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { yy1935 := *x.TerminationGracePeriodSeconds yym1936 := z.EncBinary() _ = yym1936 if false { } else { r.EncodeInt(int64(yy1935)) } } } } if yyr1924 || yy2arr1924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1924[4] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { yy1938 := *x.ActiveDeadlineSeconds yym1939 := z.EncBinary() _ = yym1939 if false { } else { r.EncodeInt(int64(yy1938)) } } } else { r.EncodeNil() } } else { if yyq1924[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { yy1940 := *x.ActiveDeadlineSeconds yym1941 := z.EncBinary() _ = yym1941 if false { } else { r.EncodeInt(int64(yy1940)) } } } } if yyr1924 || yy2arr1924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1924[5] { x.DNSPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1924[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.DNSPolicy.CodecEncodeSelf(e) } } if yyr1924 || yy2arr1924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1924[6] { if x.NodeSelector == nil { r.EncodeNil() } else { yym1944 := z.EncBinary() _ = yym1944 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) } } } else { r.EncodeNil() } } else { if yyq1924[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeSelector == nil { r.EncodeNil() } else { yym1945 := z.EncBinary() _ = yym1945 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) } } } } if yyr1924 || yy2arr1924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1947 := z.EncBinary() _ = yym1947 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) yym1948 := z.EncBinary() _ = yym1948 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) } } if yyr1924 || yy2arr1924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1924[8] { yym1950 := z.EncBinary() _ = yym1950 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1924[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1951 := z.EncBinary() _ = yym1951 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } } if yyr1924 || yy2arr1924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1924[9] { if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1924[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 yyr1924 || yy2arr1924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1924[10] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym1954 := z.EncBinary() _ = yym1954 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } else { r.EncodeNil() } } else { if yyq1924[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym1955 := z.EncBinary() _ = yym1955 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } } if yyr1924 || yy2arr1924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1924[11] { yym1957 := z.EncBinary() _ = yym1957 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1924[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1958 := z.EncBinary() _ = yym1958 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } if yyr1924 || yy2arr1924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1924[12] { yym1960 := z.EncBinary() _ = yym1960 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1924[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subdomain")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1961 := z.EncBinary() _ = yym1961 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) } } } if yyr1924 || yy2arr1924 { 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 yym1962 := z.DecBinary() _ = yym1962 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1963 := r.ContainerType() if yyct1963 == codecSelferValueTypeMap1234 { yyl1963 := r.ReadMapStart() if yyl1963 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1963, d) } } else if yyct1963 == codecSelferValueTypeArray1234 { yyl1963 := r.ReadArrayStart() if yyl1963 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1963, 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 yys1964Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1964Slc var yyhl1964 bool = l >= 0 for yyj1964 := 0; ; yyj1964++ { if yyhl1964 { if yyj1964 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1964Slc = r.DecodeBytes(yys1964Slc, true, true) yys1964 := string(yys1964Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1964 { case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { yyv1965 := &x.Volumes yym1966 := z.DecBinary() _ = yym1966 if false { } else { h.decSliceVolume((*[]Volume)(yyv1965), d) } } case "containers": if r.TryDecodeAsNil() { x.Containers = nil } else { yyv1967 := &x.Containers yym1968 := z.DecBinary() _ = yym1968 if false { } else { h.decSliceContainer((*[]Container)(yyv1967), 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) } yym1971 := z.DecBinary() _ = yym1971 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) } yym1973 := z.DecBinary() _ = yym1973 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 { yyv1975 := &x.NodeSelector yym1976 := z.DecBinary() _ = yym1976 if false { } else { z.F.DecMapStringStringX(yyv1975, 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 { yyv1980 := &x.ImagePullSecrets yym1981 := z.DecBinary() _ = yym1981 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1980), 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, yys1964) } // end switch yys1964 } // end for yyj1964 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 yyj1984 int var yyb1984 bool var yyhl1984 bool = l >= 0 yyj1984++ if yyhl1984 { yyb1984 = yyj1984 > l } else { yyb1984 = r.CheckBreak() } if yyb1984 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Volumes = nil } else { yyv1985 := &x.Volumes yym1986 := z.DecBinary() _ = yym1986 if false { } else { h.decSliceVolume((*[]Volume)(yyv1985), d) } } yyj1984++ if yyhl1984 { yyb1984 = yyj1984 > l } else { yyb1984 = r.CheckBreak() } if yyb1984 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Containers = nil } else { yyv1987 := &x.Containers yym1988 := z.DecBinary() _ = yym1988 if false { } else { h.decSliceContainer((*[]Container)(yyv1987), d) } } yyj1984++ if yyhl1984 { yyb1984 = yyj1984 > l } else { yyb1984 = r.CheckBreak() } if yyb1984 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RestartPolicy = "" } else { x.RestartPolicy = RestartPolicy(r.DecodeString()) } yyj1984++ if yyhl1984 { yyb1984 = yyj1984 > l } else { yyb1984 = r.CheckBreak() } if yyb1984 { 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) } yym1991 := z.DecBinary() _ = yym1991 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } yyj1984++ if yyhl1984 { yyb1984 = yyj1984 > l } else { yyb1984 = r.CheckBreak() } if yyb1984 { 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) } yym1993 := z.DecBinary() _ = yym1993 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } yyj1984++ if yyhl1984 { yyb1984 = yyj1984 > l } else { yyb1984 = r.CheckBreak() } if yyb1984 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DNSPolicy = "" } else { x.DNSPolicy = DNSPolicy(r.DecodeString()) } yyj1984++ if yyhl1984 { yyb1984 = yyj1984 > l } else { yyb1984 = r.CheckBreak() } if yyb1984 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeSelector = nil } else { yyv1995 := &x.NodeSelector yym1996 := z.DecBinary() _ = yym1996 if false { } else { z.F.DecMapStringStringX(yyv1995, false, d) } } yyj1984++ if yyhl1984 { yyb1984 = yyj1984 > l } else { yyb1984 = r.CheckBreak() } if yyb1984 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ServiceAccountName = "" } else { x.ServiceAccountName = string(r.DecodeString()) } yyj1984++ if yyhl1984 { yyb1984 = yyj1984 > l } else { yyb1984 = r.CheckBreak() } if yyb1984 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeName = "" } else { x.NodeName = string(r.DecodeString()) } yyj1984++ if yyhl1984 { yyb1984 = yyj1984 > l } else { yyb1984 = r.CheckBreak() } if yyb1984 { 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) } yyj1984++ if yyhl1984 { yyb1984 = yyj1984 > l } else { yyb1984 = r.CheckBreak() } if yyb1984 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2000 := &x.ImagePullSecrets yym2001 := z.DecBinary() _ = yym2001 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2000), d) } } yyj1984++ if yyhl1984 { yyb1984 = yyj1984 > l } else { yyb1984 = r.CheckBreak() } if yyb1984 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } yyj1984++ if yyhl1984 { yyb1984 = yyj1984 > l } else { yyb1984 = r.CheckBreak() } if yyb1984 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Subdomain = "" } else { x.Subdomain = string(r.DecodeString()) } for { yyj1984++ if yyhl1984 { yyb1984 = yyj1984 > l } else { yyb1984 = r.CheckBreak() } if yyb1984 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1984-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 { yym2004 := z.EncBinary() _ = yym2004 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2005 := !z.EncBinary() yy2arr2005 := z.EncBasicHandle().StructToArray var yyq2005 [8]bool _, _, _ = yysep2005, yyq2005, yy2arr2005 const yyr2005 bool = false yyq2005[0] = x.HostNetwork != false yyq2005[1] = x.HostPID != false yyq2005[2] = x.HostIPC != false yyq2005[3] = x.SELinuxOptions != nil yyq2005[4] = x.RunAsUser != nil yyq2005[5] = x.RunAsNonRoot != nil yyq2005[6] = len(x.SupplementalGroups) != 0 yyq2005[7] = x.FSGroup != nil var yynn2005 int if yyr2005 || yy2arr2005 { r.EncodeArrayStart(8) } else { yynn2005 = 0 for _, b := range yyq2005 { if b { yynn2005++ } } r.EncodeMapStart(yynn2005) yynn2005 = 0 } if yyr2005 || yy2arr2005 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2005[0] { yym2007 := z.EncBinary() _ = yym2007 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } else { r.EncodeBool(false) } } else { if yyq2005[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2008 := z.EncBinary() _ = yym2008 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } if yyr2005 || yy2arr2005 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2005[1] { yym2010 := z.EncBinary() _ = yym2010 if false { } else { r.EncodeBool(bool(x.HostPID)) } } else { r.EncodeBool(false) } } else { if yyq2005[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2011 := z.EncBinary() _ = yym2011 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } if yyr2005 || yy2arr2005 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2005[2] { yym2013 := z.EncBinary() _ = yym2013 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } else { r.EncodeBool(false) } } else { if yyq2005[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2014 := z.EncBinary() _ = yym2014 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } if yyr2005 || yy2arr2005 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2005[3] { if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2005[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 yyr2005 || yy2arr2005 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2005[4] { if x.RunAsUser == nil { r.EncodeNil() } else { yy2017 := *x.RunAsUser yym2018 := z.EncBinary() _ = yym2018 if false { } else { r.EncodeInt(int64(yy2017)) } } } else { r.EncodeNil() } } else { if yyq2005[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { yy2019 := *x.RunAsUser yym2020 := z.EncBinary() _ = yym2020 if false { } else { r.EncodeInt(int64(yy2019)) } } } } if yyr2005 || yy2arr2005 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2005[5] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy2022 := *x.RunAsNonRoot yym2023 := z.EncBinary() _ = yym2023 if false { } else { r.EncodeBool(bool(yy2022)) } } } else { r.EncodeNil() } } else { if yyq2005[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy2024 := *x.RunAsNonRoot yym2025 := z.EncBinary() _ = yym2025 if false { } else { r.EncodeBool(bool(yy2024)) } } } } if yyr2005 || yy2arr2005 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2005[6] { if x.SupplementalGroups == nil { r.EncodeNil() } else { yym2027 := z.EncBinary() _ = yym2027 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) } } } else { r.EncodeNil() } } else { if yyq2005[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SupplementalGroups == nil { r.EncodeNil() } else { yym2028 := z.EncBinary() _ = yym2028 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) } } } } if yyr2005 || yy2arr2005 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2005[7] { if x.FSGroup == nil { r.EncodeNil() } else { yy2030 := *x.FSGroup yym2031 := z.EncBinary() _ = yym2031 if false { } else { r.EncodeInt(int64(yy2030)) } } } else { r.EncodeNil() } } else { if yyq2005[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FSGroup == nil { r.EncodeNil() } else { yy2032 := *x.FSGroup yym2033 := z.EncBinary() _ = yym2033 if false { } else { r.EncodeInt(int64(yy2032)) } } } } if yyr2005 || yy2arr2005 { 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 yym2034 := z.DecBinary() _ = yym2034 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2035 := r.ContainerType() if yyct2035 == codecSelferValueTypeMap1234 { yyl2035 := r.ReadMapStart() if yyl2035 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2035, d) } } else if yyct2035 == codecSelferValueTypeArray1234 { yyl2035 := r.ReadArrayStart() if yyl2035 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2035, 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 yys2036Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2036Slc var yyhl2036 bool = l >= 0 for yyj2036 := 0; ; yyj2036++ { if yyhl2036 { if yyj2036 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2036Slc = r.DecodeBytes(yys2036Slc, true, true) yys2036 := string(yys2036Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2036 { 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) } yym2042 := z.DecBinary() _ = yym2042 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) } yym2044 := z.DecBinary() _ = yym2044 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } case "supplementalGroups": if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { yyv2045 := &x.SupplementalGroups yym2046 := z.DecBinary() _ = yym2046 if false { } else { z.F.DecSliceInt64X(yyv2045, false, d) } } case "fsGroup": if r.TryDecodeAsNil() { if x.FSGroup != nil { x.FSGroup = nil } } else { if x.FSGroup == nil { x.FSGroup = new(int64) } yym2048 := z.DecBinary() _ = yym2048 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys2036) } // end switch yys2036 } // end for yyj2036 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 yyj2049 int var yyb2049 bool var yyhl2049 bool = l >= 0 yyj2049++ if yyhl2049 { yyb2049 = yyj2049 > l } else { yyb2049 = r.CheckBreak() } if yyb2049 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostNetwork = false } else { x.HostNetwork = bool(r.DecodeBool()) } yyj2049++ if yyhl2049 { yyb2049 = yyj2049 > l } else { yyb2049 = r.CheckBreak() } if yyb2049 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostPID = false } else { x.HostPID = bool(r.DecodeBool()) } yyj2049++ if yyhl2049 { yyb2049 = yyj2049 > l } else { yyb2049 = r.CheckBreak() } if yyb2049 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIPC = false } else { x.HostIPC = bool(r.DecodeBool()) } yyj2049++ if yyhl2049 { yyb2049 = yyj2049 > l } else { yyb2049 = r.CheckBreak() } if yyb2049 { 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) } yyj2049++ if yyhl2049 { yyb2049 = yyj2049 > l } else { yyb2049 = r.CheckBreak() } if yyb2049 { 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) } yym2055 := z.DecBinary() _ = yym2055 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } yyj2049++ if yyhl2049 { yyb2049 = yyj2049 > l } else { yyb2049 = r.CheckBreak() } if yyb2049 { 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) } yym2057 := z.DecBinary() _ = yym2057 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } yyj2049++ if yyhl2049 { yyb2049 = yyj2049 > l } else { yyb2049 = r.CheckBreak() } if yyb2049 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { yyv2058 := &x.SupplementalGroups yym2059 := z.DecBinary() _ = yym2059 if false { } else { z.F.DecSliceInt64X(yyv2058, false, d) } } yyj2049++ if yyhl2049 { yyb2049 = yyj2049 > l } else { yyb2049 = r.CheckBreak() } if yyb2049 { 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) } yym2061 := z.DecBinary() _ = yym2061 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } for { yyj2049++ if yyhl2049 { yyb2049 = yyj2049 > l } else { yyb2049 = r.CheckBreak() } if yyb2049 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2049-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 { yym2062 := z.EncBinary() _ = yym2062 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2063 := !z.EncBinary() yy2arr2063 := z.EncBasicHandle().StructToArray var yyq2063 [8]bool _, _, _ = yysep2063, yyq2063, yy2arr2063 const yyr2063 bool = false yyq2063[0] = x.Phase != "" yyq2063[1] = len(x.Conditions) != 0 yyq2063[2] = x.Message != "" yyq2063[3] = x.Reason != "" yyq2063[4] = x.HostIP != "" yyq2063[5] = x.PodIP != "" yyq2063[6] = x.StartTime != nil yyq2063[7] = len(x.ContainerStatuses) != 0 var yynn2063 int if yyr2063 || yy2arr2063 { r.EncodeArrayStart(8) } else { yynn2063 = 0 for _, b := range yyq2063 { if b { yynn2063++ } } r.EncodeMapStart(yynn2063) yynn2063 = 0 } if yyr2063 || yy2arr2063 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2063[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2063[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr2063 || yy2arr2063 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2063[1] { if x.Conditions == nil { r.EncodeNil() } else { yym2066 := z.EncBinary() _ = yym2066 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq2063[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym2067 := z.EncBinary() _ = yym2067 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) } } } } if yyr2063 || yy2arr2063 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2063[2] { yym2069 := z.EncBinary() _ = yym2069 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2063[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2070 := z.EncBinary() _ = yym2070 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr2063 || yy2arr2063 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2063[3] { yym2072 := z.EncBinary() _ = yym2072 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2063[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2073 := z.EncBinary() _ = yym2073 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr2063 || yy2arr2063 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2063[4] { yym2075 := z.EncBinary() _ = yym2075 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2063[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2076 := z.EncBinary() _ = yym2076 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } if yyr2063 || yy2arr2063 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2063[5] { yym2078 := z.EncBinary() _ = yym2078 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2063[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2079 := z.EncBinary() _ = yym2079 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } } if yyr2063 || yy2arr2063 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2063[6] { if x.StartTime == nil { r.EncodeNil() } else { yym2081 := z.EncBinary() _ = yym2081 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { } else if yym2081 { z.EncBinaryMarshal(x.StartTime) } else if !yym2081 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) } } } else { r.EncodeNil() } } else { if yyq2063[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { yym2082 := z.EncBinary() _ = yym2082 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { } else if yym2082 { z.EncBinaryMarshal(x.StartTime) } else if !yym2082 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) } } } } if yyr2063 || yy2arr2063 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2063[7] { if x.ContainerStatuses == nil { r.EncodeNil() } else { yym2084 := z.EncBinary() _ = yym2084 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) } } } else { r.EncodeNil() } } else { if yyq2063[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerStatuses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ContainerStatuses == nil { r.EncodeNil() } else { yym2085 := z.EncBinary() _ = yym2085 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) } } } } if yyr2063 || yy2arr2063 { 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 yym2086 := z.DecBinary() _ = yym2086 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2087 := r.ContainerType() if yyct2087 == codecSelferValueTypeMap1234 { yyl2087 := r.ReadMapStart() if yyl2087 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2087, d) } } else if yyct2087 == codecSelferValueTypeArray1234 { yyl2087 := r.ReadArrayStart() if yyl2087 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2087, 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 yys2088Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2088Slc var yyhl2088 bool = l >= 0 for yyj2088 := 0; ; yyj2088++ { if yyhl2088 { if yyj2088 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2088Slc = r.DecodeBytes(yys2088Slc, true, true) yys2088 := string(yys2088Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2088 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PodPhase(r.DecodeString()) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2090 := &x.Conditions yym2091 := z.DecBinary() _ = yym2091 if false { } else { h.decSlicePodCondition((*[]PodCondition)(yyv2090), 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) } yym2097 := z.DecBinary() _ = yym2097 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { } else if yym2097 { z.DecBinaryUnmarshal(x.StartTime) } else if !yym2097 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } case "containerStatuses": if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { yyv2098 := &x.ContainerStatuses yym2099 := z.DecBinary() _ = yym2099 if false { } else { h.decSliceContainerStatus((*[]ContainerStatus)(yyv2098), d) } } default: z.DecStructFieldNotFound(-1, yys2088) } // end switch yys2088 } // end for yyj2088 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 yyj2100 int var yyb2100 bool var yyhl2100 bool = l >= 0 yyj2100++ if yyhl2100 { yyb2100 = yyj2100 > l } else { yyb2100 = r.CheckBreak() } if yyb2100 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PodPhase(r.DecodeString()) } yyj2100++ if yyhl2100 { yyb2100 = yyj2100 > l } else { yyb2100 = r.CheckBreak() } if yyb2100 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2102 := &x.Conditions yym2103 := z.DecBinary() _ = yym2103 if false { } else { h.decSlicePodCondition((*[]PodCondition)(yyv2102), d) } } yyj2100++ if yyhl2100 { yyb2100 = yyj2100 > l } else { yyb2100 = r.CheckBreak() } if yyb2100 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj2100++ if yyhl2100 { yyb2100 = yyj2100 > l } else { yyb2100 = r.CheckBreak() } if yyb2100 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj2100++ if yyhl2100 { yyb2100 = yyj2100 > l } else { yyb2100 = r.CheckBreak() } if yyb2100 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } yyj2100++ if yyhl2100 { yyb2100 = yyj2100 > l } else { yyb2100 = r.CheckBreak() } if yyb2100 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodIP = "" } else { x.PodIP = string(r.DecodeString()) } yyj2100++ if yyhl2100 { yyb2100 = yyj2100 > l } else { yyb2100 = r.CheckBreak() } if yyb2100 { 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) } yym2109 := z.DecBinary() _ = yym2109 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { } else if yym2109 { z.DecBinaryUnmarshal(x.StartTime) } else if !yym2109 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } yyj2100++ if yyhl2100 { yyb2100 = yyj2100 > l } else { yyb2100 = r.CheckBreak() } if yyb2100 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { yyv2110 := &x.ContainerStatuses yym2111 := z.DecBinary() _ = yym2111 if false { } else { h.decSliceContainerStatus((*[]ContainerStatus)(yyv2110), d) } } for { yyj2100++ if yyhl2100 { yyb2100 = yyj2100 > l } else { yyb2100 = r.CheckBreak() } if yyb2100 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2100-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 { yym2112 := z.EncBinary() _ = yym2112 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2113 := !z.EncBinary() yy2arr2113 := z.EncBasicHandle().StructToArray var yyq2113 [4]bool _, _, _ = yysep2113, yyq2113, yy2arr2113 const yyr2113 bool = false yyq2113[0] = x.Kind != "" yyq2113[1] = x.APIVersion != "" yyq2113[2] = true yyq2113[3] = true var yynn2113 int if yyr2113 || yy2arr2113 { r.EncodeArrayStart(4) } else { yynn2113 = 0 for _, b := range yyq2113 { if b { yynn2113++ } } r.EncodeMapStart(yynn2113) yynn2113 = 0 } if yyr2113 || yy2arr2113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2113[0] { yym2115 := z.EncBinary() _ = yym2115 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2113[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2116 := z.EncBinary() _ = yym2116 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2113 || yy2arr2113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2113[1] { yym2118 := z.EncBinary() _ = yym2118 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2113[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2119 := z.EncBinary() _ = yym2119 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2113 || yy2arr2113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2113[2] { yy2121 := &x.ObjectMeta yy2121.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2113[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2122 := &x.ObjectMeta yy2122.CodecEncodeSelf(e) } } if yyr2113 || yy2arr2113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2113[3] { yy2124 := &x.Status yy2124.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2113[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2125 := &x.Status yy2125.CodecEncodeSelf(e) } } if yyr2113 || yy2arr2113 { 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 yym2126 := z.DecBinary() _ = yym2126 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2127 := r.ContainerType() if yyct2127 == codecSelferValueTypeMap1234 { yyl2127 := r.ReadMapStart() if yyl2127 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2127, d) } } else if yyct2127 == codecSelferValueTypeArray1234 { yyl2127 := r.ReadArrayStart() if yyl2127 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2127, 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 yys2128Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2128Slc var yyhl2128 bool = l >= 0 for yyj2128 := 0; ; yyj2128++ { if yyhl2128 { if yyj2128 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2128Slc = r.DecodeBytes(yys2128Slc, true, true) yys2128 := string(yys2128Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2128 { 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 { yyv2131 := &x.ObjectMeta yyv2131.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv2132 := &x.Status yyv2132.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2128) } // end switch yys2128 } // end for yyj2128 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 yyj2133 int var yyb2133 bool var yyhl2133 bool = l >= 0 yyj2133++ if yyhl2133 { yyb2133 = yyj2133 > l } else { yyb2133 = r.CheckBreak() } if yyb2133 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2133++ if yyhl2133 { yyb2133 = yyj2133 > l } else { yyb2133 = r.CheckBreak() } if yyb2133 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2133++ if yyhl2133 { yyb2133 = yyj2133 > l } else { yyb2133 = r.CheckBreak() } if yyb2133 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2136 := &x.ObjectMeta yyv2136.CodecDecodeSelf(d) } yyj2133++ if yyhl2133 { yyb2133 = yyj2133 > l } else { yyb2133 = r.CheckBreak() } if yyb2133 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv2137 := &x.Status yyv2137.CodecDecodeSelf(d) } for { yyj2133++ if yyhl2133 { yyb2133 = yyj2133 > l } else { yyb2133 = r.CheckBreak() } if yyb2133 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2133-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 { yym2138 := z.EncBinary() _ = yym2138 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2139 := !z.EncBinary() yy2arr2139 := z.EncBasicHandle().StructToArray var yyq2139 [5]bool _, _, _ = yysep2139, yyq2139, yy2arr2139 const yyr2139 bool = false yyq2139[0] = x.Kind != "" yyq2139[1] = x.APIVersion != "" yyq2139[2] = true yyq2139[3] = true yyq2139[4] = true var yynn2139 int if yyr2139 || yy2arr2139 { r.EncodeArrayStart(5) } else { yynn2139 = 0 for _, b := range yyq2139 { if b { yynn2139++ } } r.EncodeMapStart(yynn2139) yynn2139 = 0 } if yyr2139 || yy2arr2139 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2139[0] { yym2141 := z.EncBinary() _ = yym2141 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2139[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2142 := z.EncBinary() _ = yym2142 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2139 || yy2arr2139 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2139[1] { yym2144 := z.EncBinary() _ = yym2144 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2139[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2145 := z.EncBinary() _ = yym2145 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2139 || yy2arr2139 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2139[2] { yy2147 := &x.ObjectMeta yy2147.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2139[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2148 := &x.ObjectMeta yy2148.CodecEncodeSelf(e) } } if yyr2139 || yy2arr2139 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2139[3] { yy2150 := &x.Spec yy2150.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2139[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2151 := &x.Spec yy2151.CodecEncodeSelf(e) } } if yyr2139 || yy2arr2139 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2139[4] { yy2153 := &x.Status yy2153.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2139[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2154 := &x.Status yy2154.CodecEncodeSelf(e) } } if yyr2139 || yy2arr2139 { 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 yym2155 := z.DecBinary() _ = yym2155 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2156 := r.ContainerType() if yyct2156 == codecSelferValueTypeMap1234 { yyl2156 := r.ReadMapStart() if yyl2156 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2156, d) } } else if yyct2156 == codecSelferValueTypeArray1234 { yyl2156 := r.ReadArrayStart() if yyl2156 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2156, 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 yys2157Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2157Slc var yyhl2157 bool = l >= 0 for yyj2157 := 0; ; yyj2157++ { if yyhl2157 { if yyj2157 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2157Slc = r.DecodeBytes(yys2157Slc, true, true) yys2157 := string(yys2157Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2157 { 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 { yyv2160 := &x.ObjectMeta yyv2160.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv2161 := &x.Spec yyv2161.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv2162 := &x.Status yyv2162.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2157) } // end switch yys2157 } // end for yyj2157 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 yyj2163 int var yyb2163 bool var yyhl2163 bool = l >= 0 yyj2163++ if yyhl2163 { yyb2163 = yyj2163 > l } else { yyb2163 = r.CheckBreak() } if yyb2163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2163++ if yyhl2163 { yyb2163 = yyj2163 > l } else { yyb2163 = r.CheckBreak() } if yyb2163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2163++ if yyhl2163 { yyb2163 = yyj2163 > l } else { yyb2163 = r.CheckBreak() } if yyb2163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2166 := &x.ObjectMeta yyv2166.CodecDecodeSelf(d) } yyj2163++ if yyhl2163 { yyb2163 = yyj2163 > l } else { yyb2163 = r.CheckBreak() } if yyb2163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv2167 := &x.Spec yyv2167.CodecDecodeSelf(d) } yyj2163++ if yyhl2163 { yyb2163 = yyj2163 > l } else { yyb2163 = r.CheckBreak() } if yyb2163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv2168 := &x.Status yyv2168.CodecDecodeSelf(d) } for { yyj2163++ if yyhl2163 { yyb2163 = yyj2163 > l } else { yyb2163 = r.CheckBreak() } if yyb2163 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2163-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 { yym2169 := z.EncBinary() _ = yym2169 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2170 := !z.EncBinary() yy2arr2170 := z.EncBasicHandle().StructToArray var yyq2170 [2]bool _, _, _ = yysep2170, yyq2170, yy2arr2170 const yyr2170 bool = false yyq2170[0] = true yyq2170[1] = true var yynn2170 int if yyr2170 || yy2arr2170 { r.EncodeArrayStart(2) } else { yynn2170 = 0 for _, b := range yyq2170 { if b { yynn2170++ } } r.EncodeMapStart(yynn2170) yynn2170 = 0 } if yyr2170 || yy2arr2170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2170[0] { yy2172 := &x.ObjectMeta yy2172.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2170[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2173 := &x.ObjectMeta yy2173.CodecEncodeSelf(e) } } if yyr2170 || yy2arr2170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2170[1] { yy2175 := &x.Spec yy2175.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2170[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2176 := &x.Spec yy2176.CodecEncodeSelf(e) } } if yyr2170 || yy2arr2170 { 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 yym2177 := z.DecBinary() _ = yym2177 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2178 := r.ContainerType() if yyct2178 == codecSelferValueTypeMap1234 { yyl2178 := r.ReadMapStart() if yyl2178 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2178, d) } } else if yyct2178 == codecSelferValueTypeArray1234 { yyl2178 := r.ReadArrayStart() if yyl2178 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2178, 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 yys2179Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2179Slc var yyhl2179 bool = l >= 0 for yyj2179 := 0; ; yyj2179++ { if yyhl2179 { if yyj2179 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2179Slc = r.DecodeBytes(yys2179Slc, true, true) yys2179 := string(yys2179Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2179 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2180 := &x.ObjectMeta yyv2180.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv2181 := &x.Spec yyv2181.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2179) } // end switch yys2179 } // end for yyj2179 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 yyj2182 int var yyb2182 bool var yyhl2182 bool = l >= 0 yyj2182++ if yyhl2182 { yyb2182 = yyj2182 > l } else { yyb2182 = r.CheckBreak() } if yyb2182 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2183 := &x.ObjectMeta yyv2183.CodecDecodeSelf(d) } yyj2182++ if yyhl2182 { yyb2182 = yyj2182 > l } else { yyb2182 = r.CheckBreak() } if yyb2182 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv2184 := &x.Spec yyv2184.CodecDecodeSelf(d) } for { yyj2182++ if yyhl2182 { yyb2182 = yyj2182 > l } else { yyb2182 = r.CheckBreak() } if yyb2182 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2182-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 { yym2185 := z.EncBinary() _ = yym2185 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2186 := !z.EncBinary() yy2arr2186 := z.EncBasicHandle().StructToArray var yyq2186 [4]bool _, _, _ = yysep2186, yyq2186, yy2arr2186 const yyr2186 bool = false yyq2186[0] = x.Kind != "" yyq2186[1] = x.APIVersion != "" yyq2186[2] = true yyq2186[3] = true var yynn2186 int if yyr2186 || yy2arr2186 { r.EncodeArrayStart(4) } else { yynn2186 = 0 for _, b := range yyq2186 { if b { yynn2186++ } } r.EncodeMapStart(yynn2186) yynn2186 = 0 } if yyr2186 || yy2arr2186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2186[0] { yym2188 := z.EncBinary() _ = yym2188 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2186[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2189 := z.EncBinary() _ = yym2189 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2186 || yy2arr2186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2186[1] { yym2191 := z.EncBinary() _ = yym2191 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2186[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2192 := z.EncBinary() _ = yym2192 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2186 || yy2arr2186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2186[2] { yy2194 := &x.ObjectMeta yy2194.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2186[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2195 := &x.ObjectMeta yy2195.CodecEncodeSelf(e) } } if yyr2186 || yy2arr2186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2186[3] { yy2197 := &x.Template yy2197.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2186[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2198 := &x.Template yy2198.CodecEncodeSelf(e) } } if yyr2186 || yy2arr2186 { 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 yym2199 := z.DecBinary() _ = yym2199 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2200 := r.ContainerType() if yyct2200 == codecSelferValueTypeMap1234 { yyl2200 := r.ReadMapStart() if yyl2200 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2200, d) } } else if yyct2200 == codecSelferValueTypeArray1234 { yyl2200 := r.ReadArrayStart() if yyl2200 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2200, 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 yys2201Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2201Slc var yyhl2201 bool = l >= 0 for yyj2201 := 0; ; yyj2201++ { if yyhl2201 { if yyj2201 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2201Slc = r.DecodeBytes(yys2201Slc, true, true) yys2201 := string(yys2201Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2201 { 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 { yyv2204 := &x.ObjectMeta yyv2204.CodecDecodeSelf(d) } case "template": if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { yyv2205 := &x.Template yyv2205.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2201) } // end switch yys2201 } // end for yyj2201 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 yyj2206 int var yyb2206 bool var yyhl2206 bool = l >= 0 yyj2206++ if yyhl2206 { yyb2206 = yyj2206 > l } else { yyb2206 = r.CheckBreak() } if yyb2206 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2206++ if yyhl2206 { yyb2206 = yyj2206 > l } else { yyb2206 = r.CheckBreak() } if yyb2206 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2206++ if yyhl2206 { yyb2206 = yyj2206 > l } else { yyb2206 = r.CheckBreak() } if yyb2206 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2209 := &x.ObjectMeta yyv2209.CodecDecodeSelf(d) } yyj2206++ if yyhl2206 { yyb2206 = yyj2206 > l } else { yyb2206 = r.CheckBreak() } if yyb2206 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { yyv2210 := &x.Template yyv2210.CodecDecodeSelf(d) } for { yyj2206++ if yyhl2206 { yyb2206 = yyj2206 > l } else { yyb2206 = r.CheckBreak() } if yyb2206 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2206-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 { yym2211 := z.EncBinary() _ = yym2211 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2212 := !z.EncBinary() yy2arr2212 := z.EncBasicHandle().StructToArray var yyq2212 [4]bool _, _, _ = yysep2212, yyq2212, yy2arr2212 const yyr2212 bool = false yyq2212[0] = x.Kind != "" yyq2212[1] = x.APIVersion != "" yyq2212[2] = true var yynn2212 int if yyr2212 || yy2arr2212 { r.EncodeArrayStart(4) } else { yynn2212 = 1 for _, b := range yyq2212 { if b { yynn2212++ } } r.EncodeMapStart(yynn2212) yynn2212 = 0 } if yyr2212 || yy2arr2212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2212[0] { yym2214 := z.EncBinary() _ = yym2214 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2212[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2215 := z.EncBinary() _ = yym2215 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2212 || yy2arr2212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2212[1] { yym2217 := z.EncBinary() _ = yym2217 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2212[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2218 := z.EncBinary() _ = yym2218 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2212 || yy2arr2212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2212[2] { yy2220 := &x.ListMeta yym2221 := z.EncBinary() _ = yym2221 if false { } else if z.HasExtensions() && z.EncExt(yy2220) { } else { z.EncFallback(yy2220) } } else { r.EncodeNil() } } else { if yyq2212[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2222 := &x.ListMeta yym2223 := z.EncBinary() _ = yym2223 if false { } else if z.HasExtensions() && z.EncExt(yy2222) { } else { z.EncFallback(yy2222) } } } if yyr2212 || yy2arr2212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2225 := z.EncBinary() _ = yym2225 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 { yym2226 := z.EncBinary() _ = yym2226 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } } } if yyr2212 || yy2arr2212 { 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 yym2227 := z.DecBinary() _ = yym2227 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2228 := r.ContainerType() if yyct2228 == codecSelferValueTypeMap1234 { yyl2228 := r.ReadMapStart() if yyl2228 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2228, d) } } else if yyct2228 == codecSelferValueTypeArray1234 { yyl2228 := r.ReadArrayStart() if yyl2228 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2228, 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 yys2229Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2229Slc var yyhl2229 bool = l >= 0 for yyj2229 := 0; ; yyj2229++ { if yyhl2229 { if yyj2229 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2229Slc = r.DecodeBytes(yys2229Slc, true, true) yys2229 := string(yys2229Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2229 { 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 { yyv2232 := &x.ListMeta yym2233 := z.DecBinary() _ = yym2233 if false { } else if z.HasExtensions() && z.DecExt(yyv2232) { } else { z.DecFallback(yyv2232, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2234 := &x.Items yym2235 := z.DecBinary() _ = yym2235 if false { } else { h.decSlicePodTemplate((*[]PodTemplate)(yyv2234), d) } } default: z.DecStructFieldNotFound(-1, yys2229) } // end switch yys2229 } // end for yyj2229 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 yyj2236 int var yyb2236 bool var yyhl2236 bool = l >= 0 yyj2236++ if yyhl2236 { yyb2236 = yyj2236 > l } else { yyb2236 = r.CheckBreak() } if yyb2236 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2236++ if yyhl2236 { yyb2236 = yyj2236 > l } else { yyb2236 = r.CheckBreak() } if yyb2236 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2236++ if yyhl2236 { yyb2236 = yyj2236 > l } else { yyb2236 = r.CheckBreak() } if yyb2236 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2239 := &x.ListMeta yym2240 := z.DecBinary() _ = yym2240 if false { } else if z.HasExtensions() && z.DecExt(yyv2239) { } else { z.DecFallback(yyv2239, false) } } yyj2236++ if yyhl2236 { yyb2236 = yyj2236 > l } else { yyb2236 = r.CheckBreak() } if yyb2236 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2241 := &x.Items yym2242 := z.DecBinary() _ = yym2242 if false { } else { h.decSlicePodTemplate((*[]PodTemplate)(yyv2241), d) } } for { yyj2236++ if yyhl2236 { yyb2236 = yyj2236 > l } else { yyb2236 = r.CheckBreak() } if yyb2236 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2236-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 { yym2243 := z.EncBinary() _ = yym2243 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2244 := !z.EncBinary() yy2arr2244 := z.EncBasicHandle().StructToArray var yyq2244 [3]bool _, _, _ = yysep2244, yyq2244, yy2arr2244 const yyr2244 bool = false yyq2244[2] = x.Template != nil var yynn2244 int if yyr2244 || yy2arr2244 { r.EncodeArrayStart(3) } else { yynn2244 = 2 for _, b := range yyq2244 { if b { yynn2244++ } } r.EncodeMapStart(yynn2244) yynn2244 = 0 } if yyr2244 || yy2arr2244 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2246 := z.EncBinary() _ = yym2246 if false { } else { r.EncodeInt(int64(x.Replicas)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2247 := z.EncBinary() _ = yym2247 if false { } else { r.EncodeInt(int64(x.Replicas)) } } if yyr2244 || yy2arr2244 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { yym2249 := z.EncBinary() _ = yym2249 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 { yym2250 := z.EncBinary() _ = yym2250 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } if yyr2244 || yy2arr2244 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2244[2] { if x.Template == nil { r.EncodeNil() } else { x.Template.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2244[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 yyr2244 || yy2arr2244 { 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 yym2252 := z.DecBinary() _ = yym2252 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2253 := r.ContainerType() if yyct2253 == codecSelferValueTypeMap1234 { yyl2253 := r.ReadMapStart() if yyl2253 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2253, d) } } else if yyct2253 == codecSelferValueTypeArray1234 { yyl2253 := r.ReadArrayStart() if yyl2253 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2253, 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 yys2254Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2254Slc var yyhl2254 bool = l >= 0 for yyj2254 := 0; ; yyj2254++ { if yyhl2254 { if yyj2254 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2254Slc = r.DecodeBytes(yys2254Slc, true, true) yys2254 := string(yys2254Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2254 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int32(r.DecodeInt(32)) } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { yyv2256 := &x.Selector yym2257 := z.DecBinary() _ = yym2257 if false { } else { z.F.DecMapStringStringX(yyv2256, 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, yys2254) } // end switch yys2254 } // end for yyj2254 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 yyj2259 int var yyb2259 bool var yyhl2259 bool = l >= 0 yyj2259++ if yyhl2259 { yyb2259 = yyj2259 > l } else { yyb2259 = r.CheckBreak() } if yyb2259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int32(r.DecodeInt(32)) } yyj2259++ if yyhl2259 { yyb2259 = yyj2259 > l } else { yyb2259 = r.CheckBreak() } if yyb2259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Selector = nil } else { yyv2261 := &x.Selector yym2262 := z.DecBinary() _ = yym2262 if false { } else { z.F.DecMapStringStringX(yyv2261, false, d) } } yyj2259++ if yyhl2259 { yyb2259 = yyj2259 > l } else { yyb2259 = r.CheckBreak() } if yyb2259 { 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 { yyj2259++ if yyhl2259 { yyb2259 = yyj2259 > l } else { yyb2259 = r.CheckBreak() } if yyb2259 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2259-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 { yym2264 := z.EncBinary() _ = yym2264 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2265 := !z.EncBinary() yy2arr2265 := z.EncBasicHandle().StructToArray var yyq2265 [3]bool _, _, _ = yysep2265, yyq2265, yy2arr2265 const yyr2265 bool = false yyq2265[1] = x.FullyLabeledReplicas != 0 yyq2265[2] = x.ObservedGeneration != 0 var yynn2265 int if yyr2265 || yy2arr2265 { r.EncodeArrayStart(3) } else { yynn2265 = 1 for _, b := range yyq2265 { if b { yynn2265++ } } r.EncodeMapStart(yynn2265) yynn2265 = 0 } if yyr2265 || yy2arr2265 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2267 := z.EncBinary() _ = yym2267 if false { } else { r.EncodeInt(int64(x.Replicas)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2268 := z.EncBinary() _ = yym2268 if false { } else { r.EncodeInt(int64(x.Replicas)) } } if yyr2265 || yy2arr2265 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2265[1] { yym2270 := z.EncBinary() _ = yym2270 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) } } else { r.EncodeInt(0) } } else { if yyq2265[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2271 := z.EncBinary() _ = yym2271 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) } } } if yyr2265 || yy2arr2265 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2265[2] { yym2273 := z.EncBinary() _ = yym2273 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } else { r.EncodeInt(0) } } else { if yyq2265[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2274 := z.EncBinary() _ = yym2274 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } if yyr2265 || yy2arr2265 { 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 yym2275 := z.DecBinary() _ = yym2275 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2276 := r.ContainerType() if yyct2276 == codecSelferValueTypeMap1234 { yyl2276 := r.ReadMapStart() if yyl2276 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2276, d) } } else if yyct2276 == codecSelferValueTypeArray1234 { yyl2276 := r.ReadArrayStart() if yyl2276 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2276, 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 yys2277Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2277Slc var yyhl2277 bool = l >= 0 for yyj2277 := 0; ; yyj2277++ { if yyhl2277 { if yyj2277 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2277Slc = r.DecodeBytes(yys2277Slc, true, true) yys2277 := string(yys2277Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2277 { 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, yys2277) } // end switch yys2277 } // end for yyj2277 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 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.Replicas = 0 } else { x.Replicas = int32(r.DecodeInt(32)) } 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.FullyLabeledReplicas = 0 } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } 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.ObservedGeneration = 0 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } 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 *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2285 := z.EncBinary() _ = yym2285 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2286 := !z.EncBinary() yy2arr2286 := z.EncBasicHandle().StructToArray var yyq2286 [5]bool _, _, _ = yysep2286, yyq2286, yy2arr2286 const yyr2286 bool = false yyq2286[0] = x.Kind != "" yyq2286[1] = x.APIVersion != "" yyq2286[2] = true yyq2286[3] = true yyq2286[4] = true var yynn2286 int if yyr2286 || yy2arr2286 { r.EncodeArrayStart(5) } else { yynn2286 = 0 for _, b := range yyq2286 { if b { yynn2286++ } } r.EncodeMapStart(yynn2286) yynn2286 = 0 } if yyr2286 || yy2arr2286 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2286[0] { yym2288 := z.EncBinary() _ = yym2288 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2286[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2289 := z.EncBinary() _ = yym2289 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2286 || yy2arr2286 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2286[1] { yym2291 := z.EncBinary() _ = yym2291 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2286[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2292 := z.EncBinary() _ = yym2292 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2286 || yy2arr2286 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2286[2] { yy2294 := &x.ObjectMeta yy2294.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2286[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2295 := &x.ObjectMeta yy2295.CodecEncodeSelf(e) } } if yyr2286 || yy2arr2286 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2286[3] { yy2297 := &x.Spec yy2297.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2286[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2298 := &x.Spec yy2298.CodecEncodeSelf(e) } } if yyr2286 || yy2arr2286 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2286[4] { yy2300 := &x.Status yy2300.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2286[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2301 := &x.Status yy2301.CodecEncodeSelf(e) } } if yyr2286 || yy2arr2286 { 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 yym2302 := z.DecBinary() _ = yym2302 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2303 := r.ContainerType() if yyct2303 == codecSelferValueTypeMap1234 { yyl2303 := r.ReadMapStart() if yyl2303 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2303, d) } } else if yyct2303 == codecSelferValueTypeArray1234 { yyl2303 := r.ReadArrayStart() if yyl2303 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2303, 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 yys2304Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2304Slc var yyhl2304 bool = l >= 0 for yyj2304 := 0; ; yyj2304++ { if yyhl2304 { if yyj2304 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2304Slc = r.DecodeBytes(yys2304Slc, true, true) yys2304 := string(yys2304Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2304 { 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 { yyv2307 := &x.ObjectMeta yyv2307.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { yyv2308 := &x.Spec yyv2308.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { yyv2309 := &x.Status yyv2309.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2304) } // end switch yys2304 } // end for yyj2304 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 yyj2310 int var yyb2310 bool var yyhl2310 bool = l >= 0 yyj2310++ if yyhl2310 { yyb2310 = yyj2310 > l } else { yyb2310 = r.CheckBreak() } if yyb2310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2310++ if yyhl2310 { yyb2310 = yyj2310 > l } else { yyb2310 = r.CheckBreak() } if yyb2310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2310++ if yyhl2310 { yyb2310 = yyj2310 > l } else { yyb2310 = r.CheckBreak() } if yyb2310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2313 := &x.ObjectMeta yyv2313.CodecDecodeSelf(d) } yyj2310++ if yyhl2310 { yyb2310 = yyj2310 > l } else { yyb2310 = r.CheckBreak() } if yyb2310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { yyv2314 := &x.Spec yyv2314.CodecDecodeSelf(d) } yyj2310++ if yyhl2310 { yyb2310 = yyj2310 > l } else { yyb2310 = r.CheckBreak() } if yyb2310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { yyv2315 := &x.Status yyv2315.CodecDecodeSelf(d) } for { yyj2310++ if yyhl2310 { yyb2310 = yyj2310 > l } else { yyb2310 = r.CheckBreak() } if yyb2310 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2310-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 { yym2316 := z.EncBinary() _ = yym2316 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2317 := !z.EncBinary() yy2arr2317 := z.EncBasicHandle().StructToArray var yyq2317 [4]bool _, _, _ = yysep2317, yyq2317, yy2arr2317 const yyr2317 bool = false yyq2317[0] = x.Kind != "" yyq2317[1] = x.APIVersion != "" yyq2317[2] = true var yynn2317 int if yyr2317 || yy2arr2317 { r.EncodeArrayStart(4) } else { yynn2317 = 1 for _, b := range yyq2317 { if b { yynn2317++ } } r.EncodeMapStart(yynn2317) yynn2317 = 0 } if yyr2317 || yy2arr2317 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2317[0] { yym2319 := z.EncBinary() _ = yym2319 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2317[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2320 := z.EncBinary() _ = yym2320 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2317 || yy2arr2317 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2317[1] { yym2322 := z.EncBinary() _ = yym2322 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2317[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2323 := z.EncBinary() _ = yym2323 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2317 || yy2arr2317 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2317[2] { yy2325 := &x.ListMeta yym2326 := z.EncBinary() _ = yym2326 if false { } else if z.HasExtensions() && z.EncExt(yy2325) { } else { z.EncFallback(yy2325) } } else { r.EncodeNil() } } else { if yyq2317[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2327 := &x.ListMeta yym2328 := z.EncBinary() _ = yym2328 if false { } else if z.HasExtensions() && z.EncExt(yy2327) { } else { z.EncFallback(yy2327) } } } if yyr2317 || yy2arr2317 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2330 := z.EncBinary() _ = yym2330 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 { yym2331 := z.EncBinary() _ = yym2331 if false { } else { h.encSliceReplicationController(([]ReplicationController)(x.Items), e) } } } if yyr2317 || yy2arr2317 { 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 yym2332 := z.DecBinary() _ = yym2332 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2333 := r.ContainerType() if yyct2333 == codecSelferValueTypeMap1234 { yyl2333 := r.ReadMapStart() if yyl2333 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2333, d) } } else if yyct2333 == codecSelferValueTypeArray1234 { yyl2333 := r.ReadArrayStart() if yyl2333 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2333, 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 yys2334Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2334Slc var yyhl2334 bool = l >= 0 for yyj2334 := 0; ; yyj2334++ { if yyhl2334 { if yyj2334 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2334Slc = r.DecodeBytes(yys2334Slc, true, true) yys2334 := string(yys2334Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2334 { 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 { yyv2337 := &x.ListMeta yym2338 := z.DecBinary() _ = yym2338 if false { } else if z.HasExtensions() && z.DecExt(yyv2337) { } else { z.DecFallback(yyv2337, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2339 := &x.Items yym2340 := z.DecBinary() _ = yym2340 if false { } else { h.decSliceReplicationController((*[]ReplicationController)(yyv2339), d) } } default: z.DecStructFieldNotFound(-1, yys2334) } // end switch yys2334 } // end for yyj2334 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 yyj2341 int var yyb2341 bool var yyhl2341 bool = l >= 0 yyj2341++ if yyhl2341 { yyb2341 = yyj2341 > l } else { yyb2341 = r.CheckBreak() } if yyb2341 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2341++ if yyhl2341 { yyb2341 = yyj2341 > l } else { yyb2341 = r.CheckBreak() } if yyb2341 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2341++ if yyhl2341 { yyb2341 = yyj2341 > l } else { yyb2341 = r.CheckBreak() } if yyb2341 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2344 := &x.ListMeta yym2345 := z.DecBinary() _ = yym2345 if false { } else if z.HasExtensions() && z.DecExt(yyv2344) { } else { z.DecFallback(yyv2344, false) } } yyj2341++ if yyhl2341 { yyb2341 = yyj2341 > l } else { yyb2341 = r.CheckBreak() } if yyb2341 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2346 := &x.Items yym2347 := z.DecBinary() _ = yym2347 if false { } else { h.decSliceReplicationController((*[]ReplicationController)(yyv2346), d) } } for { yyj2341++ if yyhl2341 { yyb2341 = yyj2341 > l } else { yyb2341 = r.CheckBreak() } if yyb2341 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2341-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 { yym2348 := z.EncBinary() _ = yym2348 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2349 := !z.EncBinary() yy2arr2349 := z.EncBasicHandle().StructToArray var yyq2349 [4]bool _, _, _ = yysep2349, yyq2349, yy2arr2349 const yyr2349 bool = false yyq2349[0] = x.Kind != "" yyq2349[1] = x.APIVersion != "" yyq2349[2] = true var yynn2349 int if yyr2349 || yy2arr2349 { r.EncodeArrayStart(4) } else { yynn2349 = 1 for _, b := range yyq2349 { if b { yynn2349++ } } r.EncodeMapStart(yynn2349) yynn2349 = 0 } if yyr2349 || yy2arr2349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2349[0] { yym2351 := z.EncBinary() _ = yym2351 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2349[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2352 := z.EncBinary() _ = yym2352 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2349 || yy2arr2349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2349[1] { yym2354 := z.EncBinary() _ = yym2354 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2349[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2355 := z.EncBinary() _ = yym2355 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2349 || yy2arr2349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2349[2] { yy2357 := &x.ListMeta yym2358 := z.EncBinary() _ = yym2358 if false { } else if z.HasExtensions() && z.EncExt(yy2357) { } else { z.EncFallback(yy2357) } } else { r.EncodeNil() } } else { if yyq2349[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2359 := &x.ListMeta yym2360 := z.EncBinary() _ = yym2360 if false { } else if z.HasExtensions() && z.EncExt(yy2359) { } else { z.EncFallback(yy2359) } } } if yyr2349 || yy2arr2349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2362 := z.EncBinary() _ = yym2362 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 { yym2363 := z.EncBinary() _ = yym2363 if false { } else { h.encSliceService(([]Service)(x.Items), e) } } } if yyr2349 || yy2arr2349 { 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 yym2364 := z.DecBinary() _ = yym2364 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2365 := r.ContainerType() if yyct2365 == codecSelferValueTypeMap1234 { yyl2365 := r.ReadMapStart() if yyl2365 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2365, d) } } else if yyct2365 == codecSelferValueTypeArray1234 { yyl2365 := r.ReadArrayStart() if yyl2365 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2365, 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 yys2366Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2366Slc var yyhl2366 bool = l >= 0 for yyj2366 := 0; ; yyj2366++ { if yyhl2366 { if yyj2366 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2366Slc = r.DecodeBytes(yys2366Slc, true, true) yys2366 := string(yys2366Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2366 { 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 { yyv2369 := &x.ListMeta yym2370 := z.DecBinary() _ = yym2370 if false { } else if z.HasExtensions() && z.DecExt(yyv2369) { } else { z.DecFallback(yyv2369, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2371 := &x.Items yym2372 := z.DecBinary() _ = yym2372 if false { } else { h.decSliceService((*[]Service)(yyv2371), d) } } default: z.DecStructFieldNotFound(-1, yys2366) } // end switch yys2366 } // end for yyj2366 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 yyj2373 int var yyb2373 bool var yyhl2373 bool = l >= 0 yyj2373++ if yyhl2373 { yyb2373 = yyj2373 > l } else { yyb2373 = r.CheckBreak() } if yyb2373 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2373++ if yyhl2373 { yyb2373 = yyj2373 > l } else { yyb2373 = r.CheckBreak() } if yyb2373 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2373++ if yyhl2373 { yyb2373 = yyj2373 > l } else { yyb2373 = r.CheckBreak() } if yyb2373 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2376 := &x.ListMeta yym2377 := z.DecBinary() _ = yym2377 if false { } else if z.HasExtensions() && z.DecExt(yyv2376) { } else { z.DecFallback(yyv2376, false) } } yyj2373++ if yyhl2373 { yyb2373 = yyj2373 > l } else { yyb2373 = r.CheckBreak() } if yyb2373 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2378 := &x.Items yym2379 := z.DecBinary() _ = yym2379 if false { } else { h.decSliceService((*[]Service)(yyv2378), d) } } for { yyj2373++ if yyhl2373 { yyb2373 = yyj2373 > l } else { yyb2373 = r.CheckBreak() } if yyb2373 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2373-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2380 := z.EncBinary() _ = yym2380 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 yym2381 := z.DecBinary() _ = yym2381 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 yym2382 := z.EncBinary() _ = yym2382 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 yym2383 := z.DecBinary() _ = yym2383 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 { yym2384 := z.EncBinary() _ = yym2384 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2385 := !z.EncBinary() yy2arr2385 := z.EncBasicHandle().StructToArray var yyq2385 [1]bool _, _, _ = yysep2385, yyq2385, yy2arr2385 const yyr2385 bool = false yyq2385[0] = true var yynn2385 int if yyr2385 || yy2arr2385 { r.EncodeArrayStart(1) } else { yynn2385 = 0 for _, b := range yyq2385 { if b { yynn2385++ } } r.EncodeMapStart(yynn2385) yynn2385 = 0 } if yyr2385 || yy2arr2385 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2385[0] { yy2387 := &x.LoadBalancer yy2387.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2385[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2388 := &x.LoadBalancer yy2388.CodecEncodeSelf(e) } } if yyr2385 || yy2arr2385 { 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 yym2389 := z.DecBinary() _ = yym2389 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2390 := r.ContainerType() if yyct2390 == codecSelferValueTypeMap1234 { yyl2390 := r.ReadMapStart() if yyl2390 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2390, d) } } else if yyct2390 == codecSelferValueTypeArray1234 { yyl2390 := r.ReadArrayStart() if yyl2390 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2390, 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 yys2391Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2391Slc var yyhl2391 bool = l >= 0 for yyj2391 := 0; ; yyj2391++ { if yyhl2391 { if yyj2391 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2391Slc = r.DecodeBytes(yys2391Slc, true, true) yys2391 := string(yys2391Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2391 { case "loadBalancer": if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { yyv2392 := &x.LoadBalancer yyv2392.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2391) } // end switch yys2391 } // end for yyj2391 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 yyj2393 int var yyb2393 bool var yyhl2393 bool = l >= 0 yyj2393++ if yyhl2393 { yyb2393 = yyj2393 > l } else { yyb2393 = r.CheckBreak() } if yyb2393 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { yyv2394 := &x.LoadBalancer yyv2394.CodecDecodeSelf(d) } for { yyj2393++ if yyhl2393 { yyb2393 = yyj2393 > l } else { yyb2393 = r.CheckBreak() } if yyb2393 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2393-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 { yym2395 := z.EncBinary() _ = yym2395 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2396 := !z.EncBinary() yy2arr2396 := z.EncBasicHandle().StructToArray var yyq2396 [1]bool _, _, _ = yysep2396, yyq2396, yy2arr2396 const yyr2396 bool = false yyq2396[0] = len(x.Ingress) != 0 var yynn2396 int if yyr2396 || yy2arr2396 { r.EncodeArrayStart(1) } else { yynn2396 = 0 for _, b := range yyq2396 { if b { yynn2396++ } } r.EncodeMapStart(yynn2396) yynn2396 = 0 } if yyr2396 || yy2arr2396 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2396[0] { if x.Ingress == nil { r.EncodeNil() } else { yym2398 := z.EncBinary() _ = yym2398 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) } } } else { r.EncodeNil() } } else { if yyq2396[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ingress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ingress == nil { r.EncodeNil() } else { yym2399 := z.EncBinary() _ = yym2399 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) } } } } if yyr2396 || yy2arr2396 { 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 yym2400 := z.DecBinary() _ = yym2400 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2401 := r.ContainerType() if yyct2401 == codecSelferValueTypeMap1234 { yyl2401 := r.ReadMapStart() if yyl2401 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2401, d) } } else if yyct2401 == codecSelferValueTypeArray1234 { yyl2401 := r.ReadArrayStart() if yyl2401 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2401, 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 yys2402Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2402Slc var yyhl2402 bool = l >= 0 for yyj2402 := 0; ; yyj2402++ { if yyhl2402 { if yyj2402 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2402Slc = r.DecodeBytes(yys2402Slc, true, true) yys2402 := string(yys2402Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2402 { case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { yyv2403 := &x.Ingress yym2404 := z.DecBinary() _ = yym2404 if false { } else { h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2403), d) } } default: z.DecStructFieldNotFound(-1, yys2402) } // end switch yys2402 } // end for yyj2402 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 yyj2405 int var yyb2405 bool var yyhl2405 bool = l >= 0 yyj2405++ if yyhl2405 { yyb2405 = yyj2405 > l } else { yyb2405 = r.CheckBreak() } if yyb2405 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ingress = nil } else { yyv2406 := &x.Ingress yym2407 := z.DecBinary() _ = yym2407 if false { } else { h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2406), d) } } for { yyj2405++ if yyhl2405 { yyb2405 = yyj2405 > l } else { yyb2405 = r.CheckBreak() } if yyb2405 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2405-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 { yym2408 := z.EncBinary() _ = yym2408 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2409 := !z.EncBinary() yy2arr2409 := z.EncBasicHandle().StructToArray var yyq2409 [2]bool _, _, _ = yysep2409, yyq2409, yy2arr2409 const yyr2409 bool = false yyq2409[0] = x.IP != "" yyq2409[1] = x.Hostname != "" var yynn2409 int if yyr2409 || yy2arr2409 { r.EncodeArrayStart(2) } else { yynn2409 = 0 for _, b := range yyq2409 { if b { yynn2409++ } } r.EncodeMapStart(yynn2409) yynn2409 = 0 } if yyr2409 || yy2arr2409 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2409[0] { yym2411 := z.EncBinary() _ = yym2411 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2409[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ip")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2412 := z.EncBinary() _ = yym2412 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } } if yyr2409 || yy2arr2409 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2409[1] { yym2414 := z.EncBinary() _ = yym2414 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2409[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2415 := z.EncBinary() _ = yym2415 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } if yyr2409 || yy2arr2409 { 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 yym2416 := z.DecBinary() _ = yym2416 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2417 := r.ContainerType() if yyct2417 == codecSelferValueTypeMap1234 { yyl2417 := r.ReadMapStart() if yyl2417 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2417, d) } } else if yyct2417 == codecSelferValueTypeArray1234 { yyl2417 := r.ReadArrayStart() if yyl2417 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2417, 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 yys2418Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2418Slc var yyhl2418 bool = l >= 0 for yyj2418 := 0; ; yyj2418++ { if yyhl2418 { if yyj2418 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2418Slc = r.DecodeBytes(yys2418Slc, true, true) yys2418 := string(yys2418Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2418 { 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, yys2418) } // end switch yys2418 } // end for yyj2418 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 yyj2421 int var yyb2421 bool var yyhl2421 bool = l >= 0 yyj2421++ if yyhl2421 { yyb2421 = yyj2421 > l } else { yyb2421 = r.CheckBreak() } if yyb2421 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } yyj2421++ if yyhl2421 { yyb2421 = yyj2421 > l } else { yyb2421 = r.CheckBreak() } if yyb2421 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } for { yyj2421++ if yyhl2421 { yyb2421 = yyj2421 > l } else { yyb2421 = r.CheckBreak() } if yyb2421 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2421-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 { yym2424 := z.EncBinary() _ = yym2424 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2425 := !z.EncBinary() yy2arr2425 := z.EncBasicHandle().StructToArray var yyq2425 [8]bool _, _, _ = yysep2425, yyq2425, yy2arr2425 const yyr2425 bool = false yyq2425[0] = x.Type != "" yyq2425[3] = x.ClusterIP != "" yyq2425[4] = len(x.ExternalIPs) != 0 yyq2425[5] = x.LoadBalancerIP != "" yyq2425[6] = x.SessionAffinity != "" yyq2425[7] = len(x.LoadBalancerSourceRanges) != 0 var yynn2425 int if yyr2425 || yy2arr2425 { r.EncodeArrayStart(8) } else { yynn2425 = 2 for _, b := range yyq2425 { if b { yynn2425++ } } r.EncodeMapStart(yynn2425) yynn2425 = 0 } if yyr2425 || yy2arr2425 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2425[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2425[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr2425 || yy2arr2425 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { yym2428 := z.EncBinary() _ = yym2428 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 { yym2429 := z.EncBinary() _ = yym2429 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) } } } if yyr2425 || yy2arr2425 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { yym2431 := z.EncBinary() _ = yym2431 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 { yym2432 := z.EncBinary() _ = yym2432 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } if yyr2425 || yy2arr2425 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2425[3] { yym2434 := z.EncBinary() _ = yym2434 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2425[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2435 := z.EncBinary() _ = yym2435 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } } if yyr2425 || yy2arr2425 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2425[4] { if x.ExternalIPs == nil { r.EncodeNil() } else { yym2437 := z.EncBinary() _ = yym2437 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) } } } else { r.EncodeNil() } } else { if yyq2425[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalIPs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ExternalIPs == nil { r.EncodeNil() } else { yym2438 := z.EncBinary() _ = yym2438 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) } } } } if yyr2425 || yy2arr2425 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2425[5] { yym2440 := z.EncBinary() _ = yym2440 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2425[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2441 := z.EncBinary() _ = yym2441 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } } if yyr2425 || yy2arr2425 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2425[6] { x.SessionAffinity.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2425[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.SessionAffinity.CodecEncodeSelf(e) } } if yyr2425 || yy2arr2425 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2425[7] { if x.LoadBalancerSourceRanges == nil { r.EncodeNil() } else { yym2444 := z.EncBinary() _ = yym2444 if false { } else { z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) } } } else { r.EncodeNil() } } else { if yyq2425[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerSourceRanges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LoadBalancerSourceRanges == nil { r.EncodeNil() } else { yym2445 := z.EncBinary() _ = yym2445 if false { } else { z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) } } } } if yyr2425 || yy2arr2425 { 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 yym2446 := z.DecBinary() _ = yym2446 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2447 := r.ContainerType() if yyct2447 == codecSelferValueTypeMap1234 { yyl2447 := r.ReadMapStart() if yyl2447 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2447, d) } } else if yyct2447 == codecSelferValueTypeArray1234 { yyl2447 := r.ReadArrayStart() if yyl2447 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2447, 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 yys2448Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2448Slc var yyhl2448 bool = l >= 0 for yyj2448 := 0; ; yyj2448++ { if yyhl2448 { if yyj2448 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2448Slc = r.DecodeBytes(yys2448Slc, true, true) yys2448 := string(yys2448Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2448 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ServiceType(r.DecodeString()) } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2450 := &x.Ports yym2451 := z.DecBinary() _ = yym2451 if false { } else { h.decSliceServicePort((*[]ServicePort)(yyv2450), d) } } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { yyv2452 := &x.Selector yym2453 := z.DecBinary() _ = yym2453 if false { } else { z.F.DecMapStringStringX(yyv2452, false, d) } } case "clusterIP": if r.TryDecodeAsNil() { x.ClusterIP = "" } else { x.ClusterIP = string(r.DecodeString()) } case "externalIPs": if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { yyv2455 := &x.ExternalIPs yym2456 := z.DecBinary() _ = yym2456 if false { } else { z.F.DecSliceStringX(yyv2455, 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 { yyv2459 := &x.LoadBalancerSourceRanges yym2460 := z.DecBinary() _ = yym2460 if false { } else { z.F.DecSliceStringX(yyv2459, false, d) } } default: z.DecStructFieldNotFound(-1, yys2448) } // end switch yys2448 } // end for yyj2448 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 yyj2461 int var yyb2461 bool var yyhl2461 bool = l >= 0 yyj2461++ if yyhl2461 { yyb2461 = yyj2461 > l } else { yyb2461 = r.CheckBreak() } if yyb2461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ServiceType(r.DecodeString()) } yyj2461++ if yyhl2461 { yyb2461 = yyj2461 > l } else { yyb2461 = r.CheckBreak() } if yyb2461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2463 := &x.Ports yym2464 := z.DecBinary() _ = yym2464 if false { } else { h.decSliceServicePort((*[]ServicePort)(yyv2463), d) } } yyj2461++ if yyhl2461 { yyb2461 = yyj2461 > l } else { yyb2461 = r.CheckBreak() } if yyb2461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Selector = nil } else { yyv2465 := &x.Selector yym2466 := z.DecBinary() _ = yym2466 if false { } else { z.F.DecMapStringStringX(yyv2465, false, d) } } yyj2461++ if yyhl2461 { yyb2461 = yyj2461 > l } else { yyb2461 = r.CheckBreak() } if yyb2461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ClusterIP = "" } else { x.ClusterIP = string(r.DecodeString()) } yyj2461++ if yyhl2461 { yyb2461 = yyj2461 > l } else { yyb2461 = r.CheckBreak() } if yyb2461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { yyv2468 := &x.ExternalIPs yym2469 := z.DecBinary() _ = yym2469 if false { } else { z.F.DecSliceStringX(yyv2468, false, d) } } yyj2461++ if yyhl2461 { yyb2461 = yyj2461 > l } else { yyb2461 = r.CheckBreak() } if yyb2461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LoadBalancerIP = "" } else { x.LoadBalancerIP = string(r.DecodeString()) } yyj2461++ if yyhl2461 { yyb2461 = yyj2461 > l } else { yyb2461 = r.CheckBreak() } if yyb2461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SessionAffinity = "" } else { x.SessionAffinity = ServiceAffinity(r.DecodeString()) } yyj2461++ if yyhl2461 { yyb2461 = yyj2461 > l } else { yyb2461 = r.CheckBreak() } if yyb2461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LoadBalancerSourceRanges = nil } else { yyv2472 := &x.LoadBalancerSourceRanges yym2473 := z.DecBinary() _ = yym2473 if false { } else { z.F.DecSliceStringX(yyv2472, false, d) } } for { yyj2461++ if yyhl2461 { yyb2461 = yyj2461 > l } else { yyb2461 = r.CheckBreak() } if yyb2461 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2461-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 { yym2474 := z.EncBinary() _ = yym2474 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2475 := !z.EncBinary() yy2arr2475 := z.EncBasicHandle().StructToArray var yyq2475 [5]bool _, _, _ = yysep2475, yyq2475, yy2arr2475 const yyr2475 bool = false var yynn2475 int if yyr2475 || yy2arr2475 { r.EncodeArrayStart(5) } else { yynn2475 = 5 for _, b := range yyq2475 { if b { yynn2475++ } } r.EncodeMapStart(yynn2475) yynn2475 = 0 } if yyr2475 || yy2arr2475 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2477 := z.EncBinary() _ = yym2477 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) yym2478 := z.EncBinary() _ = yym2478 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr2475 || yy2arr2475 { 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 yyr2475 || yy2arr2475 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2481 := z.EncBinary() _ = yym2481 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2482 := z.EncBinary() _ = yym2482 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2475 || yy2arr2475 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy2484 := &x.TargetPort yym2485 := z.EncBinary() _ = yym2485 if false { } else if z.HasExtensions() && z.EncExt(yy2484) { } else if !yym2485 && z.IsJSONHandle() { z.EncJSONMarshal(yy2484) } else { z.EncFallback(yy2484) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2486 := &x.TargetPort yym2487 := z.EncBinary() _ = yym2487 if false { } else if z.HasExtensions() && z.EncExt(yy2486) { } else if !yym2487 && z.IsJSONHandle() { z.EncJSONMarshal(yy2486) } else { z.EncFallback(yy2486) } } if yyr2475 || yy2arr2475 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2489 := z.EncBinary() _ = yym2489 if false { } else { r.EncodeInt(int64(x.NodePort)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2490 := z.EncBinary() _ = yym2490 if false { } else { r.EncodeInt(int64(x.NodePort)) } } if yyr2475 || yy2arr2475 { 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 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 *ServicePort) 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 "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 { yyv2497 := &x.TargetPort yym2498 := z.DecBinary() _ = yym2498 if false { } else if z.HasExtensions() && z.DecExt(yyv2497) { } else if !yym2498 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2497) } else { z.DecFallback(yyv2497, false) } } case "nodePort": if r.TryDecodeAsNil() { x.NodePort = 0 } else { x.NodePort = int32(r.DecodeInt(32)) } default: z.DecStructFieldNotFound(-1, yys2493) } // end switch yys2493 } // end for yyj2493 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 yyj2500 int var yyb2500 bool var yyhl2500 bool = l >= 0 yyj2500++ if yyhl2500 { yyb2500 = yyj2500 > l } else { yyb2500 = r.CheckBreak() } if yyb2500 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj2500++ if yyhl2500 { yyb2500 = yyj2500 > l } else { yyb2500 = r.CheckBreak() } if yyb2500 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } yyj2500++ if yyhl2500 { yyb2500 = yyj2500 > l } else { yyb2500 = r.CheckBreak() } if yyb2500 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int32(r.DecodeInt(32)) } yyj2500++ if yyhl2500 { yyb2500 = yyj2500 > l } else { yyb2500 = r.CheckBreak() } if yyb2500 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetPort = pkg4_intstr.IntOrString{} } else { yyv2504 := &x.TargetPort yym2505 := z.DecBinary() _ = yym2505 if false { } else if z.HasExtensions() && z.DecExt(yyv2504) { } else if !yym2505 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2504) } else { z.DecFallback(yyv2504, false) } } yyj2500++ if yyhl2500 { yyb2500 = yyj2500 > l } else { yyb2500 = r.CheckBreak() } if yyb2500 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodePort = 0 } else { x.NodePort = int32(r.DecodeInt(32)) } for { yyj2500++ if yyhl2500 { yyb2500 = yyj2500 > l } else { yyb2500 = r.CheckBreak() } if yyb2500 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2500-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 { yym2507 := z.EncBinary() _ = yym2507 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2508 := !z.EncBinary() yy2arr2508 := z.EncBasicHandle().StructToArray var yyq2508 [5]bool _, _, _ = yysep2508, yyq2508, yy2arr2508 const yyr2508 bool = false yyq2508[0] = x.Kind != "" yyq2508[1] = x.APIVersion != "" yyq2508[2] = true yyq2508[3] = true yyq2508[4] = true var yynn2508 int if yyr2508 || yy2arr2508 { r.EncodeArrayStart(5) } else { yynn2508 = 0 for _, b := range yyq2508 { if b { yynn2508++ } } r.EncodeMapStart(yynn2508) yynn2508 = 0 } if yyr2508 || yy2arr2508 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2508[0] { yym2510 := z.EncBinary() _ = yym2510 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2508[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2511 := z.EncBinary() _ = yym2511 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2508 || yy2arr2508 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2508[1] { yym2513 := z.EncBinary() _ = yym2513 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2508[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2514 := z.EncBinary() _ = yym2514 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2508 || yy2arr2508 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2508[2] { yy2516 := &x.ObjectMeta yy2516.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2508[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2517 := &x.ObjectMeta yy2517.CodecEncodeSelf(e) } } if yyr2508 || yy2arr2508 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2508[3] { yy2519 := &x.Spec yy2519.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2508[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2520 := &x.Spec yy2520.CodecEncodeSelf(e) } } if yyr2508 || yy2arr2508 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2508[4] { yy2522 := &x.Status yy2522.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2508[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2523 := &x.Status yy2523.CodecEncodeSelf(e) } } if yyr2508 || yy2arr2508 { 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 yym2524 := z.DecBinary() _ = yym2524 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2525 := r.ContainerType() if yyct2525 == codecSelferValueTypeMap1234 { yyl2525 := r.ReadMapStart() if yyl2525 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2525, d) } } else if yyct2525 == codecSelferValueTypeArray1234 { yyl2525 := r.ReadArrayStart() if yyl2525 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2525, 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 yys2526Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2526Slc var yyhl2526 bool = l >= 0 for yyj2526 := 0; ; yyj2526++ { if yyhl2526 { if yyj2526 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2526Slc = r.DecodeBytes(yys2526Slc, true, true) yys2526 := string(yys2526Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2526 { 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 { yyv2529 := &x.ObjectMeta yyv2529.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { yyv2530 := &x.Spec yyv2530.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { yyv2531 := &x.Status yyv2531.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2526) } // end switch yys2526 } // end for yyj2526 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 yyj2532 int var yyb2532 bool var yyhl2532 bool = l >= 0 yyj2532++ if yyhl2532 { yyb2532 = yyj2532 > l } else { yyb2532 = r.CheckBreak() } if yyb2532 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2532++ if yyhl2532 { yyb2532 = yyj2532 > l } else { yyb2532 = r.CheckBreak() } if yyb2532 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2532++ if yyhl2532 { yyb2532 = yyj2532 > l } else { yyb2532 = r.CheckBreak() } if yyb2532 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2535 := &x.ObjectMeta yyv2535.CodecDecodeSelf(d) } yyj2532++ if yyhl2532 { yyb2532 = yyj2532 > l } else { yyb2532 = r.CheckBreak() } if yyb2532 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { yyv2536 := &x.Spec yyv2536.CodecDecodeSelf(d) } yyj2532++ if yyhl2532 { yyb2532 = yyj2532 > l } else { yyb2532 = r.CheckBreak() } if yyb2532 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { yyv2537 := &x.Status yyv2537.CodecDecodeSelf(d) } for { yyj2532++ if yyhl2532 { yyb2532 = yyj2532 > l } else { yyb2532 = r.CheckBreak() } if yyb2532 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2532-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 { yym2538 := z.EncBinary() _ = yym2538 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2539 := !z.EncBinary() yy2arr2539 := z.EncBasicHandle().StructToArray var yyq2539 [5]bool _, _, _ = yysep2539, yyq2539, yy2arr2539 const yyr2539 bool = false yyq2539[0] = x.Kind != "" yyq2539[1] = x.APIVersion != "" yyq2539[2] = true yyq2539[4] = len(x.ImagePullSecrets) != 0 var yynn2539 int if yyr2539 || yy2arr2539 { r.EncodeArrayStart(5) } else { yynn2539 = 1 for _, b := range yyq2539 { if b { yynn2539++ } } r.EncodeMapStart(yynn2539) yynn2539 = 0 } if yyr2539 || yy2arr2539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2539[0] { yym2541 := z.EncBinary() _ = yym2541 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2539[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2542 := z.EncBinary() _ = yym2542 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2539 || yy2arr2539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2539[1] { yym2544 := z.EncBinary() _ = yym2544 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2539[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2545 := z.EncBinary() _ = yym2545 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2539 || yy2arr2539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2539[2] { yy2547 := &x.ObjectMeta yy2547.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2539[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2548 := &x.ObjectMeta yy2548.CodecEncodeSelf(e) } } if yyr2539 || yy2arr2539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Secrets == nil { r.EncodeNil() } else { yym2550 := z.EncBinary() _ = yym2550 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 { yym2551 := z.EncBinary() _ = yym2551 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) } } } if yyr2539 || yy2arr2539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2539[4] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2553 := z.EncBinary() _ = yym2553 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } else { r.EncodeNil() } } else { if yyq2539[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2554 := z.EncBinary() _ = yym2554 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } } if yyr2539 || yy2arr2539 { 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 yym2555 := z.DecBinary() _ = yym2555 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2556 := r.ContainerType() if yyct2556 == codecSelferValueTypeMap1234 { yyl2556 := r.ReadMapStart() if yyl2556 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2556, d) } } else if yyct2556 == codecSelferValueTypeArray1234 { yyl2556 := r.ReadArrayStart() if yyl2556 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2556, 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 yys2557Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2557Slc var yyhl2557 bool = l >= 0 for yyj2557 := 0; ; yyj2557++ { if yyhl2557 { if yyj2557 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2557Slc = r.DecodeBytes(yys2557Slc, true, true) yys2557 := string(yys2557Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2557 { 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 { yyv2560 := &x.ObjectMeta yyv2560.CodecDecodeSelf(d) } case "secrets": if r.TryDecodeAsNil() { x.Secrets = nil } else { yyv2561 := &x.Secrets yym2562 := z.DecBinary() _ = yym2562 if false { } else { h.decSliceObjectReference((*[]ObjectReference)(yyv2561), d) } } case "imagePullSecrets": if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2563 := &x.ImagePullSecrets yym2564 := z.DecBinary() _ = yym2564 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2563), d) } } default: z.DecStructFieldNotFound(-1, yys2557) } // end switch yys2557 } // end for yyj2557 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 yyj2565 int var yyb2565 bool var yyhl2565 bool = l >= 0 yyj2565++ if yyhl2565 { yyb2565 = yyj2565 > l } else { yyb2565 = r.CheckBreak() } if yyb2565 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2565++ if yyhl2565 { yyb2565 = yyj2565 > l } else { yyb2565 = r.CheckBreak() } if yyb2565 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2565++ if yyhl2565 { yyb2565 = yyj2565 > l } else { yyb2565 = r.CheckBreak() } if yyb2565 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2568 := &x.ObjectMeta yyv2568.CodecDecodeSelf(d) } yyj2565++ if yyhl2565 { yyb2565 = yyj2565 > l } else { yyb2565 = r.CheckBreak() } if yyb2565 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Secrets = nil } else { yyv2569 := &x.Secrets yym2570 := z.DecBinary() _ = yym2570 if false { } else { h.decSliceObjectReference((*[]ObjectReference)(yyv2569), d) } } yyj2565++ if yyhl2565 { yyb2565 = yyj2565 > l } else { yyb2565 = r.CheckBreak() } if yyb2565 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2571 := &x.ImagePullSecrets yym2572 := z.DecBinary() _ = yym2572 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2571), d) } } for { yyj2565++ if yyhl2565 { yyb2565 = yyj2565 > l } else { yyb2565 = r.CheckBreak() } if yyb2565 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2565-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 { yym2573 := z.EncBinary() _ = yym2573 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2574 := !z.EncBinary() yy2arr2574 := z.EncBasicHandle().StructToArray var yyq2574 [4]bool _, _, _ = yysep2574, yyq2574, yy2arr2574 const yyr2574 bool = false yyq2574[0] = x.Kind != "" yyq2574[1] = x.APIVersion != "" yyq2574[2] = true var yynn2574 int if yyr2574 || yy2arr2574 { r.EncodeArrayStart(4) } else { yynn2574 = 1 for _, b := range yyq2574 { if b { yynn2574++ } } r.EncodeMapStart(yynn2574) yynn2574 = 0 } if yyr2574 || yy2arr2574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2574[0] { yym2576 := z.EncBinary() _ = yym2576 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2574[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2577 := z.EncBinary() _ = yym2577 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2574 || yy2arr2574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2574[1] { yym2579 := z.EncBinary() _ = yym2579 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2574[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2580 := z.EncBinary() _ = yym2580 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2574 || yy2arr2574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2574[2] { yy2582 := &x.ListMeta yym2583 := z.EncBinary() _ = yym2583 if false { } else if z.HasExtensions() && z.EncExt(yy2582) { } else { z.EncFallback(yy2582) } } else { r.EncodeNil() } } else { if yyq2574[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2584 := &x.ListMeta yym2585 := z.EncBinary() _ = yym2585 if false { } else if z.HasExtensions() && z.EncExt(yy2584) { } else { z.EncFallback(yy2584) } } } if yyr2574 || yy2arr2574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2587 := z.EncBinary() _ = yym2587 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 { yym2588 := z.EncBinary() _ = yym2588 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } } } if yyr2574 || yy2arr2574 { 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 yym2589 := z.DecBinary() _ = yym2589 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2590 := r.ContainerType() if yyct2590 == codecSelferValueTypeMap1234 { yyl2590 := r.ReadMapStart() if yyl2590 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2590, d) } } else if yyct2590 == codecSelferValueTypeArray1234 { yyl2590 := r.ReadArrayStart() if yyl2590 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2590, 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 yys2591Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2591Slc var yyhl2591 bool = l >= 0 for yyj2591 := 0; ; yyj2591++ { if yyhl2591 { if yyj2591 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2591Slc = r.DecodeBytes(yys2591Slc, true, true) yys2591 := string(yys2591Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2591 { 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 { yyv2594 := &x.ListMeta yym2595 := z.DecBinary() _ = yym2595 if false { } else if z.HasExtensions() && z.DecExt(yyv2594) { } else { z.DecFallback(yyv2594, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2596 := &x.Items yym2597 := z.DecBinary() _ = yym2597 if false { } else { h.decSliceServiceAccount((*[]ServiceAccount)(yyv2596), d) } } default: z.DecStructFieldNotFound(-1, yys2591) } // end switch yys2591 } // end for yyj2591 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 yyj2598 int var yyb2598 bool var yyhl2598 bool = l >= 0 yyj2598++ if yyhl2598 { yyb2598 = yyj2598 > l } else { yyb2598 = r.CheckBreak() } if yyb2598 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2598++ if yyhl2598 { yyb2598 = yyj2598 > l } else { yyb2598 = r.CheckBreak() } if yyb2598 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2598++ if yyhl2598 { yyb2598 = yyj2598 > l } else { yyb2598 = r.CheckBreak() } if yyb2598 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2601 := &x.ListMeta yym2602 := z.DecBinary() _ = yym2602 if false { } else if z.HasExtensions() && z.DecExt(yyv2601) { } else { z.DecFallback(yyv2601, false) } } yyj2598++ if yyhl2598 { yyb2598 = yyj2598 > l } else { yyb2598 = r.CheckBreak() } if yyb2598 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2603 := &x.Items yym2604 := z.DecBinary() _ = yym2604 if false { } else { h.decSliceServiceAccount((*[]ServiceAccount)(yyv2603), d) } } for { yyj2598++ if yyhl2598 { yyb2598 = yyj2598 > l } else { yyb2598 = r.CheckBreak() } if yyb2598 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2598-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 { yym2605 := z.EncBinary() _ = yym2605 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2606 := !z.EncBinary() yy2arr2606 := z.EncBasicHandle().StructToArray var yyq2606 [4]bool _, _, _ = yysep2606, yyq2606, yy2arr2606 const yyr2606 bool = false yyq2606[0] = x.Kind != "" yyq2606[1] = x.APIVersion != "" yyq2606[2] = true var yynn2606 int if yyr2606 || yy2arr2606 { r.EncodeArrayStart(4) } else { yynn2606 = 1 for _, b := range yyq2606 { if b { yynn2606++ } } r.EncodeMapStart(yynn2606) yynn2606 = 0 } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2606[0] { yym2608 := z.EncBinary() _ = yym2608 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2606[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2609 := z.EncBinary() _ = yym2609 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2606[1] { yym2611 := z.EncBinary() _ = yym2611 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2606[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2612 := z.EncBinary() _ = yym2612 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2606[2] { yy2614 := &x.ObjectMeta yy2614.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2606[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2615 := &x.ObjectMeta yy2615.CodecEncodeSelf(e) } } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Subsets == nil { r.EncodeNil() } else { yym2617 := z.EncBinary() _ = yym2617 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 { yym2618 := z.EncBinary() _ = yym2618 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) } } } if yyr2606 || yy2arr2606 { 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 yym2619 := z.DecBinary() _ = yym2619 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2620 := r.ContainerType() if yyct2620 == codecSelferValueTypeMap1234 { yyl2620 := r.ReadMapStart() if yyl2620 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2620, d) } } else if yyct2620 == codecSelferValueTypeArray1234 { yyl2620 := r.ReadArrayStart() if yyl2620 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2620, 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 yys2621Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2621Slc var yyhl2621 bool = l >= 0 for yyj2621 := 0; ; yyj2621++ { if yyhl2621 { if yyj2621 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2621Slc = r.DecodeBytes(yys2621Slc, true, true) yys2621 := string(yys2621Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2621 { 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 { yyv2624 := &x.ObjectMeta yyv2624.CodecDecodeSelf(d) } case "Subsets": if r.TryDecodeAsNil() { x.Subsets = nil } else { yyv2625 := &x.Subsets yym2626 := z.DecBinary() _ = yym2626 if false { } else { h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2625), d) } } default: z.DecStructFieldNotFound(-1, yys2621) } // end switch yys2621 } // end for yyj2621 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 yyj2627 int var yyb2627 bool var yyhl2627 bool = l >= 0 yyj2627++ if yyhl2627 { yyb2627 = yyj2627 > l } else { yyb2627 = r.CheckBreak() } if yyb2627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2627++ if yyhl2627 { yyb2627 = yyj2627 > l } else { yyb2627 = r.CheckBreak() } if yyb2627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2627++ if yyhl2627 { yyb2627 = yyj2627 > l } else { yyb2627 = r.CheckBreak() } if yyb2627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2630 := &x.ObjectMeta yyv2630.CodecDecodeSelf(d) } yyj2627++ if yyhl2627 { yyb2627 = yyj2627 > l } else { yyb2627 = r.CheckBreak() } if yyb2627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Subsets = nil } else { yyv2631 := &x.Subsets yym2632 := z.DecBinary() _ = yym2632 if false { } else { h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2631), d) } } for { yyj2627++ if yyhl2627 { yyb2627 = yyj2627 > l } else { yyb2627 = r.CheckBreak() } if yyb2627 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2627-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 { yym2633 := z.EncBinary() _ = yym2633 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2634 := !z.EncBinary() yy2arr2634 := z.EncBasicHandle().StructToArray var yyq2634 [3]bool _, _, _ = yysep2634, yyq2634, yy2arr2634 const yyr2634 bool = false var yynn2634 int if yyr2634 || yy2arr2634 { r.EncodeArrayStart(3) } else { yynn2634 = 3 for _, b := range yyq2634 { if b { yynn2634++ } } r.EncodeMapStart(yynn2634) yynn2634 = 0 } if yyr2634 || yy2arr2634 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Addresses == nil { r.EncodeNil() } else { yym2636 := z.EncBinary() _ = yym2636 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 { yym2637 := z.EncBinary() _ = yym2637 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) } } } if yyr2634 || yy2arr2634 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NotReadyAddresses == nil { r.EncodeNil() } else { yym2639 := z.EncBinary() _ = yym2639 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 { yym2640 := z.EncBinary() _ = yym2640 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) } } } if yyr2634 || yy2arr2634 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { yym2642 := z.EncBinary() _ = yym2642 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 { yym2643 := z.EncBinary() _ = yym2643 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) } } } if yyr2634 || yy2arr2634 { 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 yym2644 := z.DecBinary() _ = yym2644 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2645 := r.ContainerType() if yyct2645 == codecSelferValueTypeMap1234 { yyl2645 := r.ReadMapStart() if yyl2645 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2645, d) } } else if yyct2645 == codecSelferValueTypeArray1234 { yyl2645 := r.ReadArrayStart() if yyl2645 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2645, 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 yys2646Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2646Slc var yyhl2646 bool = l >= 0 for yyj2646 := 0; ; yyj2646++ { if yyhl2646 { if yyj2646 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2646Slc = r.DecodeBytes(yys2646Slc, true, true) yys2646 := string(yys2646Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2646 { case "Addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2647 := &x.Addresses yym2648 := z.DecBinary() _ = yym2648 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2647), d) } } case "NotReadyAddresses": if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { yyv2649 := &x.NotReadyAddresses yym2650 := z.DecBinary() _ = yym2650 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2649), d) } } case "Ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2651 := &x.Ports yym2652 := z.DecBinary() _ = yym2652 if false { } else { h.decSliceEndpointPort((*[]EndpointPort)(yyv2651), d) } } default: z.DecStructFieldNotFound(-1, yys2646) } // end switch yys2646 } // end for yyj2646 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 yyj2653 int var yyb2653 bool var yyhl2653 bool = l >= 0 yyj2653++ if yyhl2653 { yyb2653 = yyj2653 > l } else { yyb2653 = r.CheckBreak() } if yyb2653 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2654 := &x.Addresses yym2655 := z.DecBinary() _ = yym2655 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2654), d) } } yyj2653++ if yyhl2653 { yyb2653 = yyj2653 > l } else { yyb2653 = r.CheckBreak() } if yyb2653 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { yyv2656 := &x.NotReadyAddresses yym2657 := z.DecBinary() _ = yym2657 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2656), d) } } yyj2653++ if yyhl2653 { yyb2653 = yyj2653 > l } else { yyb2653 = r.CheckBreak() } if yyb2653 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2658 := &x.Ports yym2659 := z.DecBinary() _ = yym2659 if false { } else { h.decSliceEndpointPort((*[]EndpointPort)(yyv2658), d) } } for { yyj2653++ if yyhl2653 { yyb2653 = yyj2653 > l } else { yyb2653 = r.CheckBreak() } if yyb2653 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2653-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 { yym2660 := z.EncBinary() _ = yym2660 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2661 := !z.EncBinary() yy2arr2661 := z.EncBasicHandle().StructToArray var yyq2661 [3]bool _, _, _ = yysep2661, yyq2661, yy2arr2661 const yyr2661 bool = false yyq2661[1] = x.Hostname != "" var yynn2661 int if yyr2661 || yy2arr2661 { r.EncodeArrayStart(3) } else { yynn2661 = 2 for _, b := range yyq2661 { if b { yynn2661++ } } r.EncodeMapStart(yynn2661) yynn2661 = 0 } if yyr2661 || yy2arr2661 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2663 := z.EncBinary() _ = yym2663 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) yym2664 := z.EncBinary() _ = yym2664 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } if yyr2661 || yy2arr2661 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2661[1] { yym2666 := z.EncBinary() _ = yym2666 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2661[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2667 := z.EncBinary() _ = yym2667 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } if yyr2661 || yy2arr2661 { 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 yyr2661 || yy2arr2661 { 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 yym2669 := z.DecBinary() _ = yym2669 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2670 := r.ContainerType() if yyct2670 == codecSelferValueTypeMap1234 { yyl2670 := r.ReadMapStart() if yyl2670 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2670, d) } } else if yyct2670 == codecSelferValueTypeArray1234 { yyl2670 := r.ReadArrayStart() if yyl2670 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2670, 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 yys2671Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2671Slc var yyhl2671 bool = l >= 0 for yyj2671 := 0; ; yyj2671++ { if yyhl2671 { if yyj2671 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2671Slc = r.DecodeBytes(yys2671Slc, true, true) yys2671 := string(yys2671Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2671 { 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 "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, yys2671) } // end switch yys2671 } // end for yyj2671 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 yyj2675 int var yyb2675 bool var yyhl2675 bool = l >= 0 yyj2675++ if yyhl2675 { yyb2675 = yyj2675 > l } else { yyb2675 = r.CheckBreak() } if yyb2675 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } yyj2675++ if yyhl2675 { yyb2675 = yyj2675 > l } else { yyb2675 = r.CheckBreak() } if yyb2675 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } yyj2675++ if yyhl2675 { yyb2675 = yyj2675 > l } else { yyb2675 = r.CheckBreak() } if yyb2675 { 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 { yyj2675++ if yyhl2675 { yyb2675 = yyj2675 > l } else { yyb2675 = r.CheckBreak() } if yyb2675 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2675-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 { yym2679 := z.EncBinary() _ = yym2679 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2680 := !z.EncBinary() yy2arr2680 := z.EncBasicHandle().StructToArray var yyq2680 [3]bool _, _, _ = yysep2680, yyq2680, yy2arr2680 const yyr2680 bool = false var yynn2680 int if yyr2680 || yy2arr2680 { r.EncodeArrayStart(3) } else { yynn2680 = 3 for _, b := range yyq2680 { if b { yynn2680++ } } r.EncodeMapStart(yynn2680) yynn2680 = 0 } if yyr2680 || yy2arr2680 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2682 := z.EncBinary() _ = yym2682 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) yym2683 := z.EncBinary() _ = yym2683 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr2680 || yy2arr2680 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2685 := z.EncBinary() _ = yym2685 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2686 := z.EncBinary() _ = yym2686 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2680 || yy2arr2680 { 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 yyr2680 || yy2arr2680 { 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 yym2688 := z.DecBinary() _ = yym2688 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2689 := r.ContainerType() if yyct2689 == codecSelferValueTypeMap1234 { yyl2689 := r.ReadMapStart() if yyl2689 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2689, d) } } else if yyct2689 == codecSelferValueTypeArray1234 { yyl2689 := r.ReadArrayStart() if yyl2689 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2689, 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 yys2690Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2690Slc var yyhl2690 bool = l >= 0 for yyj2690 := 0; ; yyj2690++ { if yyhl2690 { if yyj2690 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2690Slc = r.DecodeBytes(yys2690Slc, true, true) yys2690 := string(yys2690Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2690 { 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, yys2690) } // end switch yys2690 } // end for yyj2690 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 yyj2694 int var yyb2694 bool var yyhl2694 bool = l >= 0 yyj2694++ if yyhl2694 { yyb2694 = yyj2694 > l } else { yyb2694 = r.CheckBreak() } if yyb2694 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj2694++ if yyhl2694 { yyb2694 = yyj2694 > l } else { yyb2694 = r.CheckBreak() } if yyb2694 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int32(r.DecodeInt(32)) } yyj2694++ if yyhl2694 { yyb2694 = yyj2694 > l } else { yyb2694 = r.CheckBreak() } if yyb2694 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } for { yyj2694++ if yyhl2694 { yyb2694 = yyj2694 > l } else { yyb2694 = r.CheckBreak() } if yyb2694 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2694-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 { yym2698 := z.EncBinary() _ = yym2698 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2699 := !z.EncBinary() yy2arr2699 := z.EncBasicHandle().StructToArray var yyq2699 [4]bool _, _, _ = yysep2699, yyq2699, yy2arr2699 const yyr2699 bool = false yyq2699[0] = x.Kind != "" yyq2699[1] = x.APIVersion != "" yyq2699[2] = true var yynn2699 int if yyr2699 || yy2arr2699 { r.EncodeArrayStart(4) } else { yynn2699 = 1 for _, b := range yyq2699 { if b { yynn2699++ } } r.EncodeMapStart(yynn2699) yynn2699 = 0 } if yyr2699 || yy2arr2699 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2699[0] { yym2701 := z.EncBinary() _ = yym2701 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2699[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2702 := z.EncBinary() _ = yym2702 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2699 || yy2arr2699 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2699[1] { yym2704 := z.EncBinary() _ = yym2704 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2699[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2705 := z.EncBinary() _ = yym2705 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2699 || yy2arr2699 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2699[2] { yy2707 := &x.ListMeta yym2708 := z.EncBinary() _ = yym2708 if false { } else if z.HasExtensions() && z.EncExt(yy2707) { } else { z.EncFallback(yy2707) } } else { r.EncodeNil() } } else { if yyq2699[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2709 := &x.ListMeta yym2710 := z.EncBinary() _ = yym2710 if false { } else if z.HasExtensions() && z.EncExt(yy2709) { } else { z.EncFallback(yy2709) } } } if yyr2699 || yy2arr2699 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2712 := z.EncBinary() _ = yym2712 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 { yym2713 := z.EncBinary() _ = yym2713 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) } } } if yyr2699 || yy2arr2699 { 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 yym2714 := z.DecBinary() _ = yym2714 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2715 := r.ContainerType() if yyct2715 == codecSelferValueTypeMap1234 { yyl2715 := r.ReadMapStart() if yyl2715 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2715, d) } } else if yyct2715 == codecSelferValueTypeArray1234 { yyl2715 := r.ReadArrayStart() if yyl2715 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2715, 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 yys2716Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2716Slc var yyhl2716 bool = l >= 0 for yyj2716 := 0; ; yyj2716++ { if yyhl2716 { if yyj2716 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2716Slc = r.DecodeBytes(yys2716Slc, true, true) yys2716 := string(yys2716Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2716 { 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 { yyv2719 := &x.ListMeta yym2720 := z.DecBinary() _ = yym2720 if false { } else if z.HasExtensions() && z.DecExt(yyv2719) { } else { z.DecFallback(yyv2719, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2721 := &x.Items yym2722 := z.DecBinary() _ = yym2722 if false { } else { h.decSliceEndpoints((*[]Endpoints)(yyv2721), d) } } default: z.DecStructFieldNotFound(-1, yys2716) } // end switch yys2716 } // end for yyj2716 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 yyj2723 int var yyb2723 bool var yyhl2723 bool = l >= 0 yyj2723++ if yyhl2723 { yyb2723 = yyj2723 > l } else { yyb2723 = r.CheckBreak() } if yyb2723 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2723++ if yyhl2723 { yyb2723 = yyj2723 > l } else { yyb2723 = r.CheckBreak() } if yyb2723 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2723++ if yyhl2723 { yyb2723 = yyj2723 > l } else { yyb2723 = r.CheckBreak() } if yyb2723 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2726 := &x.ListMeta yym2727 := z.DecBinary() _ = yym2727 if false { } else if z.HasExtensions() && z.DecExt(yyv2726) { } else { z.DecFallback(yyv2726, false) } } yyj2723++ if yyhl2723 { yyb2723 = yyj2723 > l } else { yyb2723 = r.CheckBreak() } if yyb2723 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2728 := &x.Items yym2729 := z.DecBinary() _ = yym2729 if false { } else { h.decSliceEndpoints((*[]Endpoints)(yyv2728), d) } } for { yyj2723++ if yyhl2723 { yyb2723 = yyj2723 > l } else { yyb2723 = r.CheckBreak() } if yyb2723 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2723-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 { yym2730 := z.EncBinary() _ = yym2730 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2731 := !z.EncBinary() yy2arr2731 := z.EncBasicHandle().StructToArray var yyq2731 [4]bool _, _, _ = yysep2731, yyq2731, yy2arr2731 const yyr2731 bool = false yyq2731[0] = x.PodCIDR != "" yyq2731[1] = x.ExternalID != "" yyq2731[2] = x.ProviderID != "" yyq2731[3] = x.Unschedulable != false var yynn2731 int if yyr2731 || yy2arr2731 { r.EncodeArrayStart(4) } else { yynn2731 = 0 for _, b := range yyq2731 { if b { yynn2731++ } } r.EncodeMapStart(yynn2731) yynn2731 = 0 } if yyr2731 || yy2arr2731 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2731[0] { yym2733 := z.EncBinary() _ = yym2733 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2731[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2734 := z.EncBinary() _ = yym2734 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } } if yyr2731 || yy2arr2731 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2731[1] { yym2736 := z.EncBinary() _ = yym2736 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2731[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2737 := z.EncBinary() _ = yym2737 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } } if yyr2731 || yy2arr2731 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2731[2] { yym2739 := z.EncBinary() _ = yym2739 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2731[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("providerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2740 := z.EncBinary() _ = yym2740 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } } if yyr2731 || yy2arr2731 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2731[3] { yym2742 := z.EncBinary() _ = yym2742 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } else { r.EncodeBool(false) } } else { if yyq2731[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("unschedulable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2743 := z.EncBinary() _ = yym2743 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } } if yyr2731 || yy2arr2731 { 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 yym2744 := z.DecBinary() _ = yym2744 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2745 := r.ContainerType() if yyct2745 == codecSelferValueTypeMap1234 { yyl2745 := r.ReadMapStart() if yyl2745 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2745, d) } } else if yyct2745 == codecSelferValueTypeArray1234 { yyl2745 := r.ReadArrayStart() if yyl2745 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2745, 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 yys2746Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2746Slc var yyhl2746 bool = l >= 0 for yyj2746 := 0; ; yyj2746++ { if yyhl2746 { if yyj2746 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2746Slc = r.DecodeBytes(yys2746Slc, true, true) yys2746 := string(yys2746Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2746 { 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, yys2746) } // end switch yys2746 } // end for yyj2746 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 yyj2751 int var yyb2751 bool var yyhl2751 bool = l >= 0 yyj2751++ if yyhl2751 { yyb2751 = yyj2751 > l } else { yyb2751 = r.CheckBreak() } if yyb2751 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodCIDR = "" } else { x.PodCIDR = string(r.DecodeString()) } yyj2751++ if yyhl2751 { yyb2751 = yyj2751 > l } else { yyb2751 = r.CheckBreak() } if yyb2751 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExternalID = "" } else { x.ExternalID = string(r.DecodeString()) } yyj2751++ if yyhl2751 { yyb2751 = yyj2751 > l } else { yyb2751 = r.CheckBreak() } if yyb2751 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ProviderID = "" } else { x.ProviderID = string(r.DecodeString()) } yyj2751++ if yyhl2751 { yyb2751 = yyj2751 > l } else { yyb2751 = r.CheckBreak() } if yyb2751 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Unschedulable = false } else { x.Unschedulable = bool(r.DecodeBool()) } for { yyj2751++ if yyhl2751 { yyb2751 = yyj2751 > l } else { yyb2751 = r.CheckBreak() } if yyb2751 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2751-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 { yym2756 := z.EncBinary() _ = yym2756 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2757 := !z.EncBinary() yy2arr2757 := z.EncBasicHandle().StructToArray var yyq2757 [1]bool _, _, _ = yysep2757, yyq2757, yy2arr2757 const yyr2757 bool = false var yynn2757 int if yyr2757 || yy2arr2757 { r.EncodeArrayStart(1) } else { yynn2757 = 1 for _, b := range yyq2757 { if b { yynn2757++ } } r.EncodeMapStart(yynn2757) yynn2757 = 0 } if yyr2757 || yy2arr2757 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2759 := z.EncBinary() _ = yym2759 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2760 := z.EncBinary() _ = yym2760 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2757 || yy2arr2757 { 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 yym2761 := z.DecBinary() _ = yym2761 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2762 := r.ContainerType() if yyct2762 == codecSelferValueTypeMap1234 { yyl2762 := r.ReadMapStart() if yyl2762 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2762, d) } } else if yyct2762 == codecSelferValueTypeArray1234 { yyl2762 := r.ReadArrayStart() if yyl2762 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2762, 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 yys2763Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2763Slc var yyhl2763 bool = l >= 0 for yyj2763 := 0; ; yyj2763++ { if yyhl2763 { if yyj2763 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2763Slc = r.DecodeBytes(yys2763Slc, true, true) yys2763 := string(yys2763Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2763 { case "Port": if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int32(r.DecodeInt(32)) } default: z.DecStructFieldNotFound(-1, yys2763) } // end switch yys2763 } // end for yyj2763 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 yyj2765 int var yyb2765 bool var yyhl2765 bool = l >= 0 yyj2765++ if yyhl2765 { yyb2765 = yyj2765 > l } else { yyb2765 = r.CheckBreak() } if yyb2765 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int32(r.DecodeInt(32)) } for { yyj2765++ if yyhl2765 { yyb2765 = yyj2765 > l } else { yyb2765 = r.CheckBreak() } if yyb2765 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2765-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 { yym2767 := z.EncBinary() _ = yym2767 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2768 := !z.EncBinary() yy2arr2768 := z.EncBasicHandle().StructToArray var yyq2768 [1]bool _, _, _ = yysep2768, yyq2768, yy2arr2768 const yyr2768 bool = false yyq2768[0] = true var yynn2768 int if yyr2768 || yy2arr2768 { r.EncodeArrayStart(1) } else { yynn2768 = 0 for _, b := range yyq2768 { if b { yynn2768++ } } r.EncodeMapStart(yynn2768) yynn2768 = 0 } if yyr2768 || yy2arr2768 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2768[0] { yy2770 := &x.KubeletEndpoint yy2770.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2768[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2771 := &x.KubeletEndpoint yy2771.CodecEncodeSelf(e) } } if yyr2768 || yy2arr2768 { 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 yym2772 := z.DecBinary() _ = yym2772 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2773 := r.ContainerType() if yyct2773 == codecSelferValueTypeMap1234 { yyl2773 := r.ReadMapStart() if yyl2773 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2773, d) } } else if yyct2773 == codecSelferValueTypeArray1234 { yyl2773 := r.ReadArrayStart() if yyl2773 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2773, 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 yys2774Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2774Slc var yyhl2774 bool = l >= 0 for yyj2774 := 0; ; yyj2774++ { if yyhl2774 { if yyj2774 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2774Slc = r.DecodeBytes(yys2774Slc, true, true) yys2774 := string(yys2774Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2774 { case "kubeletEndpoint": if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { yyv2775 := &x.KubeletEndpoint yyv2775.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2774) } // end switch yys2774 } // end for yyj2774 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 yyj2776 int var yyb2776 bool var yyhl2776 bool = l >= 0 yyj2776++ if yyhl2776 { yyb2776 = yyj2776 > l } else { yyb2776 = r.CheckBreak() } if yyb2776 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { yyv2777 := &x.KubeletEndpoint yyv2777.CodecDecodeSelf(d) } for { yyj2776++ if yyhl2776 { yyb2776 = yyj2776 > l } else { yyb2776 = r.CheckBreak() } if yyb2776 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2776-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 { yym2778 := z.EncBinary() _ = yym2778 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2779 := !z.EncBinary() yy2arr2779 := z.EncBasicHandle().StructToArray var yyq2779 [10]bool _, _, _ = yysep2779, yyq2779, yy2arr2779 const yyr2779 bool = false var yynn2779 int if yyr2779 || yy2arr2779 { r.EncodeArrayStart(10) } else { yynn2779 = 10 for _, b := range yyq2779 { if b { yynn2779++ } } r.EncodeMapStart(yynn2779) yynn2779 = 0 } if yyr2779 || yy2arr2779 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2781 := z.EncBinary() _ = yym2781 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) yym2782 := z.EncBinary() _ = yym2782 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) } } if yyr2779 || yy2arr2779 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2784 := z.EncBinary() _ = yym2784 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) yym2785 := z.EncBinary() _ = yym2785 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) } } if yyr2779 || yy2arr2779 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2787 := z.EncBinary() _ = yym2787 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) yym2788 := z.EncBinary() _ = yym2788 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) } } if yyr2779 || yy2arr2779 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2790 := z.EncBinary() _ = yym2790 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) yym2791 := z.EncBinary() _ = yym2791 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) } } if yyr2779 || yy2arr2779 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2793 := z.EncBinary() _ = yym2793 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) yym2794 := z.EncBinary() _ = yym2794 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) } } if yyr2779 || yy2arr2779 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2796 := z.EncBinary() _ = yym2796 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) yym2797 := z.EncBinary() _ = yym2797 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) } } if yyr2779 || yy2arr2779 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2799 := z.EncBinary() _ = yym2799 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) yym2800 := z.EncBinary() _ = yym2800 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) } } if yyr2779 || yy2arr2779 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2802 := z.EncBinary() _ = yym2802 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) yym2803 := z.EncBinary() _ = yym2803 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) } } if yyr2779 || yy2arr2779 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2805 := z.EncBinary() _ = yym2805 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) yym2806 := z.EncBinary() _ = yym2806 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) } } if yyr2779 || yy2arr2779 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2808 := z.EncBinary() _ = yym2808 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) yym2809 := z.EncBinary() _ = yym2809 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) } } if yyr2779 || yy2arr2779 { 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 yym2810 := z.DecBinary() _ = yym2810 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2811 := r.ContainerType() if yyct2811 == codecSelferValueTypeMap1234 { yyl2811 := r.ReadMapStart() if yyl2811 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2811, d) } } else if yyct2811 == codecSelferValueTypeArray1234 { yyl2811 := r.ReadArrayStart() if yyl2811 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2811, 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 yys2812Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2812Slc var yyhl2812 bool = l >= 0 for yyj2812 := 0; ; yyj2812++ { if yyhl2812 { if yyj2812 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2812Slc = r.DecodeBytes(yys2812Slc, true, true) yys2812 := string(yys2812Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2812 { 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, yys2812) } // end switch yys2812 } // end for yyj2812 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 yyj2823 int var yyb2823 bool var yyhl2823 bool = l >= 0 yyj2823++ if yyhl2823 { yyb2823 = yyj2823 > l } else { yyb2823 = r.CheckBreak() } if yyb2823 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MachineID = "" } else { x.MachineID = string(r.DecodeString()) } yyj2823++ if yyhl2823 { yyb2823 = yyj2823 > l } else { yyb2823 = r.CheckBreak() } if yyb2823 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SystemUUID = "" } else { x.SystemUUID = string(r.DecodeString()) } yyj2823++ if yyhl2823 { yyb2823 = yyj2823 > l } else { yyb2823 = r.CheckBreak() } if yyb2823 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.BootID = "" } else { x.BootID = string(r.DecodeString()) } yyj2823++ if yyhl2823 { yyb2823 = yyj2823 > l } else { yyb2823 = r.CheckBreak() } if yyb2823 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KernelVersion = "" } else { x.KernelVersion = string(r.DecodeString()) } yyj2823++ if yyhl2823 { yyb2823 = yyj2823 > l } else { yyb2823 = r.CheckBreak() } if yyb2823 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.OSImage = "" } else { x.OSImage = string(r.DecodeString()) } yyj2823++ if yyhl2823 { yyb2823 = yyj2823 > l } else { yyb2823 = r.CheckBreak() } if yyb2823 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerRuntimeVersion = "" } else { x.ContainerRuntimeVersion = string(r.DecodeString()) } yyj2823++ if yyhl2823 { yyb2823 = yyj2823 > l } else { yyb2823 = r.CheckBreak() } if yyb2823 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeletVersion = "" } else { x.KubeletVersion = string(r.DecodeString()) } yyj2823++ if yyhl2823 { yyb2823 = yyj2823 > l } else { yyb2823 = r.CheckBreak() } if yyb2823 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeProxyVersion = "" } else { x.KubeProxyVersion = string(r.DecodeString()) } yyj2823++ if yyhl2823 { yyb2823 = yyj2823 > l } else { yyb2823 = r.CheckBreak() } if yyb2823 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.OperatingSystem = "" } else { x.OperatingSystem = string(r.DecodeString()) } yyj2823++ if yyhl2823 { yyb2823 = yyj2823 > l } else { yyb2823 = r.CheckBreak() } if yyb2823 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Architecture = "" } else { x.Architecture = string(r.DecodeString()) } for { yyj2823++ if yyhl2823 { yyb2823 = yyj2823 > l } else { yyb2823 = r.CheckBreak() } if yyb2823 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2823-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 { yym2834 := z.EncBinary() _ = yym2834 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2835 := !z.EncBinary() yy2arr2835 := z.EncBasicHandle().StructToArray var yyq2835 [10]bool _, _, _ = yysep2835, yyq2835, yy2arr2835 const yyr2835 bool = false yyq2835[0] = len(x.Capacity) != 0 yyq2835[1] = len(x.Allocatable) != 0 yyq2835[2] = x.Phase != "" yyq2835[3] = len(x.Conditions) != 0 yyq2835[4] = len(x.Addresses) != 0 yyq2835[5] = true yyq2835[6] = true yyq2835[7] = len(x.Images) != 0 yyq2835[8] = len(x.VolumesInUse) != 0 yyq2835[9] = len(x.VolumesAttached) != 0 var yynn2835 int if yyr2835 || yy2arr2835 { r.EncodeArrayStart(10) } else { yynn2835 = 0 for _, b := range yyq2835 { if b { yynn2835++ } } r.EncodeMapStart(yynn2835) yynn2835 = 0 } if yyr2835 || yy2arr2835 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2835[0] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2835[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 yyr2835 || yy2arr2835 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2835[1] { if x.Allocatable == nil { r.EncodeNil() } else { x.Allocatable.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2835[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 yyr2835 || yy2arr2835 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2835[2] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2835[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr2835 || yy2arr2835 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2835[3] { if x.Conditions == nil { r.EncodeNil() } else { yym2840 := z.EncBinary() _ = yym2840 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq2835[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym2841 := z.EncBinary() _ = yym2841 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) } } } } if yyr2835 || yy2arr2835 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2835[4] { if x.Addresses == nil { r.EncodeNil() } else { yym2843 := z.EncBinary() _ = yym2843 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) } } } else { r.EncodeNil() } } else { if yyq2835[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("addresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Addresses == nil { r.EncodeNil() } else { yym2844 := z.EncBinary() _ = yym2844 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) } } } } if yyr2835 || yy2arr2835 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2835[5] { yy2846 := &x.DaemonEndpoints yy2846.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2835[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2847 := &x.DaemonEndpoints yy2847.CodecEncodeSelf(e) } } if yyr2835 || yy2arr2835 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2835[6] { yy2849 := &x.NodeInfo yy2849.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2835[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeInfo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2850 := &x.NodeInfo yy2850.CodecEncodeSelf(e) } } if yyr2835 || yy2arr2835 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2835[7] { if x.Images == nil { r.EncodeNil() } else { yym2852 := z.EncBinary() _ = yym2852 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) } } } else { r.EncodeNil() } } else { if yyq2835[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("images")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Images == nil { r.EncodeNil() } else { yym2853 := z.EncBinary() _ = yym2853 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) } } } } if yyr2835 || yy2arr2835 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2835[8] { if x.VolumesInUse == nil { r.EncodeNil() } else { yym2855 := z.EncBinary() _ = yym2855 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) } } } else { r.EncodeNil() } } else { if yyq2835[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumesInUse")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumesInUse == nil { r.EncodeNil() } else { yym2856 := z.EncBinary() _ = yym2856 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) } } } } if yyr2835 || yy2arr2835 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2835[9] { if x.VolumesAttached == nil { r.EncodeNil() } else { yym2858 := z.EncBinary() _ = yym2858 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) } } } else { r.EncodeNil() } } else { if yyq2835[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumesAttached")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumesAttached == nil { r.EncodeNil() } else { yym2859 := z.EncBinary() _ = yym2859 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) } } } } if yyr2835 || yy2arr2835 { 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 yym2860 := z.DecBinary() _ = yym2860 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2861 := r.ContainerType() if yyct2861 == codecSelferValueTypeMap1234 { yyl2861 := r.ReadMapStart() if yyl2861 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2861, d) } } else if yyct2861 == codecSelferValueTypeArray1234 { yyl2861 := r.ReadArrayStart() if yyl2861 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2861, 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 yys2862Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2862Slc var yyhl2862 bool = l >= 0 for yyj2862 := 0; ; yyj2862++ { if yyhl2862 { if yyj2862 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2862Slc = r.DecodeBytes(yys2862Slc, true, true) yys2862 := string(yys2862Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2862 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2863 := &x.Capacity yyv2863.CodecDecodeSelf(d) } case "allocatable": if r.TryDecodeAsNil() { x.Allocatable = nil } else { yyv2864 := &x.Allocatable yyv2864.CodecDecodeSelf(d) } case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NodePhase(r.DecodeString()) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2866 := &x.Conditions yym2867 := z.DecBinary() _ = yym2867 if false { } else { h.decSliceNodeCondition((*[]NodeCondition)(yyv2866), d) } } case "addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2868 := &x.Addresses yym2869 := z.DecBinary() _ = yym2869 if false { } else { h.decSliceNodeAddress((*[]NodeAddress)(yyv2868), d) } } case "daemonEndpoints": if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { yyv2870 := &x.DaemonEndpoints yyv2870.CodecDecodeSelf(d) } case "nodeInfo": if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { yyv2871 := &x.NodeInfo yyv2871.CodecDecodeSelf(d) } case "images": if r.TryDecodeAsNil() { x.Images = nil } else { yyv2872 := &x.Images yym2873 := z.DecBinary() _ = yym2873 if false { } else { h.decSliceContainerImage((*[]ContainerImage)(yyv2872), d) } } case "volumesInUse": if r.TryDecodeAsNil() { x.VolumesInUse = nil } else { yyv2874 := &x.VolumesInUse yym2875 := z.DecBinary() _ = yym2875 if false { } else { h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv2874), d) } } case "volumesAttached": if r.TryDecodeAsNil() { x.VolumesAttached = nil } else { yyv2876 := &x.VolumesAttached yym2877 := z.DecBinary() _ = yym2877 if false { } else { h.decSliceAttachedVolume((*[]AttachedVolume)(yyv2876), d) } } default: z.DecStructFieldNotFound(-1, yys2862) } // end switch yys2862 } // end for yyj2862 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 yyj2878 int var yyb2878 bool var yyhl2878 bool = l >= 0 yyj2878++ if yyhl2878 { yyb2878 = yyj2878 > l } else { yyb2878 = r.CheckBreak() } if yyb2878 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2879 := &x.Capacity yyv2879.CodecDecodeSelf(d) } yyj2878++ if yyhl2878 { yyb2878 = yyj2878 > l } else { yyb2878 = r.CheckBreak() } if yyb2878 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Allocatable = nil } else { yyv2880 := &x.Allocatable yyv2880.CodecDecodeSelf(d) } yyj2878++ if yyhl2878 { yyb2878 = yyj2878 > l } else { yyb2878 = r.CheckBreak() } if yyb2878 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NodePhase(r.DecodeString()) } yyj2878++ if yyhl2878 { yyb2878 = yyj2878 > l } else { yyb2878 = r.CheckBreak() } if yyb2878 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2882 := &x.Conditions yym2883 := z.DecBinary() _ = yym2883 if false { } else { h.decSliceNodeCondition((*[]NodeCondition)(yyv2882), d) } } yyj2878++ if yyhl2878 { yyb2878 = yyj2878 > l } else { yyb2878 = r.CheckBreak() } if yyb2878 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2884 := &x.Addresses yym2885 := z.DecBinary() _ = yym2885 if false { } else { h.decSliceNodeAddress((*[]NodeAddress)(yyv2884), d) } } yyj2878++ if yyhl2878 { yyb2878 = yyj2878 > l } else { yyb2878 = r.CheckBreak() } if yyb2878 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { yyv2886 := &x.DaemonEndpoints yyv2886.CodecDecodeSelf(d) } yyj2878++ if yyhl2878 { yyb2878 = yyj2878 > l } else { yyb2878 = r.CheckBreak() } if yyb2878 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { yyv2887 := &x.NodeInfo yyv2887.CodecDecodeSelf(d) } yyj2878++ if yyhl2878 { yyb2878 = yyj2878 > l } else { yyb2878 = r.CheckBreak() } if yyb2878 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Images = nil } else { yyv2888 := &x.Images yym2889 := z.DecBinary() _ = yym2889 if false { } else { h.decSliceContainerImage((*[]ContainerImage)(yyv2888), d) } } yyj2878++ if yyhl2878 { yyb2878 = yyj2878 > l } else { yyb2878 = r.CheckBreak() } if yyb2878 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumesInUse = nil } else { yyv2890 := &x.VolumesInUse yym2891 := z.DecBinary() _ = yym2891 if false { } else { h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv2890), d) } } yyj2878++ if yyhl2878 { yyb2878 = yyj2878 > l } else { yyb2878 = r.CheckBreak() } if yyb2878 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumesAttached = nil } else { yyv2892 := &x.VolumesAttached yym2893 := z.DecBinary() _ = yym2893 if false { } else { h.decSliceAttachedVolume((*[]AttachedVolume)(yyv2892), d) } } for { yyj2878++ if yyhl2878 { yyb2878 = yyj2878 > l } else { yyb2878 = r.CheckBreak() } if yyb2878 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2878-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2894 := z.EncBinary() _ = yym2894 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 yym2895 := z.DecBinary() _ = yym2895 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 { yym2896 := z.EncBinary() _ = yym2896 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2897 := !z.EncBinary() yy2arr2897 := z.EncBasicHandle().StructToArray var yyq2897 [2]bool _, _, _ = yysep2897, yyq2897, yy2arr2897 const yyr2897 bool = false var yynn2897 int if yyr2897 || yy2arr2897 { r.EncodeArrayStart(2) } else { yynn2897 = 2 for _, b := range yyq2897 { if b { yynn2897++ } } r.EncodeMapStart(yynn2897) yynn2897 = 0 } if yyr2897 || yy2arr2897 { 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 yyr2897 || yy2arr2897 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2900 := z.EncBinary() _ = yym2900 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) yym2901 := z.EncBinary() _ = yym2901 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) } } if yyr2897 || yy2arr2897 { 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 yym2902 := z.DecBinary() _ = yym2902 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2903 := r.ContainerType() if yyct2903 == codecSelferValueTypeMap1234 { yyl2903 := r.ReadMapStart() if yyl2903 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2903, d) } } else if yyct2903 == codecSelferValueTypeArray1234 { yyl2903 := r.ReadArrayStart() if yyl2903 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2903, 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 yys2904Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2904Slc var yyhl2904 bool = l >= 0 for yyj2904 := 0; ; yyj2904++ { if yyhl2904 { if yyj2904 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2904Slc = r.DecodeBytes(yys2904Slc, true, true) yys2904 := string(yys2904Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2904 { 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, yys2904) } // end switch yys2904 } // end for yyj2904 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 yyj2907 int var yyb2907 bool var yyhl2907 bool = l >= 0 yyj2907++ if yyhl2907 { yyb2907 = yyj2907 > l } else { yyb2907 = r.CheckBreak() } if yyb2907 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = UniqueVolumeName(r.DecodeString()) } yyj2907++ if yyhl2907 { yyb2907 = yyj2907 > l } else { yyb2907 = r.CheckBreak() } if yyb2907 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DevicePath = "" } else { x.DevicePath = string(r.DecodeString()) } for { yyj2907++ if yyhl2907 { yyb2907 = yyj2907 > l } else { yyb2907 = r.CheckBreak() } if yyb2907 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2907-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 { yym2910 := z.EncBinary() _ = yym2910 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2911 := !z.EncBinary() yy2arr2911 := z.EncBasicHandle().StructToArray var yyq2911 [1]bool _, _, _ = yysep2911, yyq2911, yy2arr2911 const yyr2911 bool = false yyq2911[0] = len(x.PreferAvoidPods) != 0 var yynn2911 int if yyr2911 || yy2arr2911 { r.EncodeArrayStart(1) } else { yynn2911 = 0 for _, b := range yyq2911 { if b { yynn2911++ } } r.EncodeMapStart(yynn2911) yynn2911 = 0 } if yyr2911 || yy2arr2911 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2911[0] { if x.PreferAvoidPods == nil { r.EncodeNil() } else { yym2913 := z.EncBinary() _ = yym2913 if false { } else { h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) } } } else { r.EncodeNil() } } else { if yyq2911[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferAvoidPods == nil { r.EncodeNil() } else { yym2914 := z.EncBinary() _ = yym2914 if false { } else { h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) } } } } if yyr2911 || yy2arr2911 { 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 yym2915 := z.DecBinary() _ = yym2915 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2916 := r.ContainerType() if yyct2916 == codecSelferValueTypeMap1234 { yyl2916 := r.ReadMapStart() if yyl2916 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2916, d) } } else if yyct2916 == codecSelferValueTypeArray1234 { yyl2916 := r.ReadArrayStart() if yyl2916 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2916, 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 yys2917Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2917Slc var yyhl2917 bool = l >= 0 for yyj2917 := 0; ; yyj2917++ { if yyhl2917 { if yyj2917 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2917Slc = r.DecodeBytes(yys2917Slc, true, true) yys2917 := string(yys2917Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2917 { case "preferAvoidPods": if r.TryDecodeAsNil() { x.PreferAvoidPods = nil } else { yyv2918 := &x.PreferAvoidPods yym2919 := z.DecBinary() _ = yym2919 if false { } else { h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv2918), d) } } default: z.DecStructFieldNotFound(-1, yys2917) } // end switch yys2917 } // end for yyj2917 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 yyj2920 int var yyb2920 bool var yyhl2920 bool = l >= 0 yyj2920++ if yyhl2920 { yyb2920 = yyj2920 > l } else { yyb2920 = r.CheckBreak() } if yyb2920 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PreferAvoidPods = nil } else { yyv2921 := &x.PreferAvoidPods yym2922 := z.DecBinary() _ = yym2922 if false { } else { h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv2921), d) } } for { yyj2920++ if yyhl2920 { yyb2920 = yyj2920 > l } else { yyb2920 = r.CheckBreak() } if yyb2920 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2920-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 { yym2923 := z.EncBinary() _ = yym2923 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2924 := !z.EncBinary() yy2arr2924 := z.EncBasicHandle().StructToArray var yyq2924 [4]bool _, _, _ = yysep2924, yyq2924, yy2arr2924 const yyr2924 bool = false yyq2924[1] = true yyq2924[2] = x.Reason != "" yyq2924[3] = x.Message != "" var yynn2924 int if yyr2924 || yy2arr2924 { r.EncodeArrayStart(4) } else { yynn2924 = 1 for _, b := range yyq2924 { if b { yynn2924++ } } r.EncodeMapStart(yynn2924) yynn2924 = 0 } if yyr2924 || yy2arr2924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy2926 := &x.PodSignature yy2926.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSignature")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2927 := &x.PodSignature yy2927.CodecEncodeSelf(e) } if yyr2924 || yy2arr2924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2924[1] { yy2929 := &x.EvictionTime yym2930 := z.EncBinary() _ = yym2930 if false { } else if z.HasExtensions() && z.EncExt(yy2929) { } else if yym2930 { z.EncBinaryMarshal(yy2929) } else if !yym2930 && z.IsJSONHandle() { z.EncJSONMarshal(yy2929) } else { z.EncFallback(yy2929) } } else { r.EncodeNil() } } else { if yyq2924[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("evictionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2931 := &x.EvictionTime yym2932 := z.EncBinary() _ = yym2932 if false { } else if z.HasExtensions() && z.EncExt(yy2931) { } else if yym2932 { z.EncBinaryMarshal(yy2931) } else if !yym2932 && z.IsJSONHandle() { z.EncJSONMarshal(yy2931) } else { z.EncFallback(yy2931) } } } if yyr2924 || yy2arr2924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2924[2] { yym2934 := z.EncBinary() _ = yym2934 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2924[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2935 := z.EncBinary() _ = yym2935 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr2924 || yy2arr2924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2924[3] { yym2937 := z.EncBinary() _ = yym2937 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2924[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2938 := z.EncBinary() _ = yym2938 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr2924 || yy2arr2924 { 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 yym2939 := z.DecBinary() _ = yym2939 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2940 := r.ContainerType() if yyct2940 == codecSelferValueTypeMap1234 { yyl2940 := r.ReadMapStart() if yyl2940 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2940, d) } } else if yyct2940 == codecSelferValueTypeArray1234 { yyl2940 := r.ReadArrayStart() if yyl2940 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2940, 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 yys2941Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2941Slc var yyhl2941 bool = l >= 0 for yyj2941 := 0; ; yyj2941++ { if yyhl2941 { if yyj2941 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2941Slc = r.DecodeBytes(yys2941Slc, true, true) yys2941 := string(yys2941Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2941 { case "podSignature": if r.TryDecodeAsNil() { x.PodSignature = PodSignature{} } else { yyv2942 := &x.PodSignature yyv2942.CodecDecodeSelf(d) } case "evictionTime": if r.TryDecodeAsNil() { x.EvictionTime = pkg2_unversioned.Time{} } else { yyv2943 := &x.EvictionTime yym2944 := z.DecBinary() _ = yym2944 if false { } else if z.HasExtensions() && z.DecExt(yyv2943) { } else if yym2944 { z.DecBinaryUnmarshal(yyv2943) } else if !yym2944 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2943) } else { z.DecFallback(yyv2943, 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, yys2941) } // end switch yys2941 } // end for yyj2941 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 yyj2947 int var yyb2947 bool var yyhl2947 bool = l >= 0 yyj2947++ if yyhl2947 { yyb2947 = yyj2947 > l } else { yyb2947 = r.CheckBreak() } if yyb2947 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodSignature = PodSignature{} } else { yyv2948 := &x.PodSignature yyv2948.CodecDecodeSelf(d) } yyj2947++ if yyhl2947 { yyb2947 = yyj2947 > l } else { yyb2947 = r.CheckBreak() } if yyb2947 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.EvictionTime = pkg2_unversioned.Time{} } else { yyv2949 := &x.EvictionTime yym2950 := z.DecBinary() _ = yym2950 if false { } else if z.HasExtensions() && z.DecExt(yyv2949) { } else if yym2950 { z.DecBinaryUnmarshal(yyv2949) } else if !yym2950 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2949) } else { z.DecFallback(yyv2949, false) } } yyj2947++ if yyhl2947 { yyb2947 = yyj2947 > l } else { yyb2947 = r.CheckBreak() } if yyb2947 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj2947++ if yyhl2947 { yyb2947 = yyj2947 > l } else { yyb2947 = r.CheckBreak() } if yyb2947 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj2947++ if yyhl2947 { yyb2947 = yyj2947 > l } else { yyb2947 = r.CheckBreak() } if yyb2947 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2947-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 { yym2953 := z.EncBinary() _ = yym2953 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2954 := !z.EncBinary() yy2arr2954 := z.EncBasicHandle().StructToArray var yyq2954 [1]bool _, _, _ = yysep2954, yyq2954, yy2arr2954 const yyr2954 bool = false yyq2954[0] = x.PodController != nil var yynn2954 int if yyr2954 || yy2arr2954 { r.EncodeArrayStart(1) } else { yynn2954 = 0 for _, b := range yyq2954 { if b { yynn2954++ } } r.EncodeMapStart(yynn2954) yynn2954 = 0 } if yyr2954 || yy2arr2954 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2954[0] { if x.PodController == nil { r.EncodeNil() } else { x.PodController.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2954[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 yyr2954 || yy2arr2954 { 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 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 *PodSignature) 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 "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, yys2958) } // end switch yys2958 } // end for yyj2958 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 yyj2960 int var yyb2960 bool var yyhl2960 bool = l >= 0 yyj2960++ if yyhl2960 { yyb2960 = yyj2960 > l } else { yyb2960 = r.CheckBreak() } if yyb2960 { 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 { yyj2960++ if yyhl2960 { yyb2960 = yyj2960 > l } else { yyb2960 = r.CheckBreak() } if yyb2960 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2960-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 { yym2962 := z.EncBinary() _ = yym2962 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2963 := !z.EncBinary() yy2arr2963 := z.EncBasicHandle().StructToArray var yyq2963 [2]bool _, _, _ = yysep2963, yyq2963, yy2arr2963 const yyr2963 bool = false yyq2963[1] = x.SizeBytes != 0 var yynn2963 int if yyr2963 || yy2arr2963 { r.EncodeArrayStart(2) } else { yynn2963 = 1 for _, b := range yyq2963 { if b { yynn2963++ } } r.EncodeMapStart(yynn2963) yynn2963 = 0 } if yyr2963 || yy2arr2963 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Names == nil { r.EncodeNil() } else { yym2965 := z.EncBinary() _ = yym2965 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 { yym2966 := z.EncBinary() _ = yym2966 if false { } else { z.F.EncSliceStringV(x.Names, false, e) } } } if yyr2963 || yy2arr2963 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2963[1] { yym2968 := z.EncBinary() _ = yym2968 if false { } else { r.EncodeInt(int64(x.SizeBytes)) } } else { r.EncodeInt(0) } } else { if yyq2963[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sizeBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2969 := z.EncBinary() _ = yym2969 if false { } else { r.EncodeInt(int64(x.SizeBytes)) } } } if yyr2963 || yy2arr2963 { 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 yym2970 := z.DecBinary() _ = yym2970 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2971 := r.ContainerType() if yyct2971 == codecSelferValueTypeMap1234 { yyl2971 := r.ReadMapStart() if yyl2971 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2971, d) } } else if yyct2971 == codecSelferValueTypeArray1234 { yyl2971 := r.ReadArrayStart() if yyl2971 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2971, 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 yys2972Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2972Slc var yyhl2972 bool = l >= 0 for yyj2972 := 0; ; yyj2972++ { if yyhl2972 { if yyj2972 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2972Slc = r.DecodeBytes(yys2972Slc, true, true) yys2972 := string(yys2972Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2972 { case "names": if r.TryDecodeAsNil() { x.Names = nil } else { yyv2973 := &x.Names yym2974 := z.DecBinary() _ = yym2974 if false { } else { z.F.DecSliceStringX(yyv2973, false, d) } } case "sizeBytes": if r.TryDecodeAsNil() { x.SizeBytes = 0 } else { x.SizeBytes = int64(r.DecodeInt(64)) } default: z.DecStructFieldNotFound(-1, yys2972) } // end switch yys2972 } // end for yyj2972 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 yyj2976 int var yyb2976 bool var yyhl2976 bool = l >= 0 yyj2976++ if yyhl2976 { yyb2976 = yyj2976 > l } else { yyb2976 = r.CheckBreak() } if yyb2976 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Names = nil } else { yyv2977 := &x.Names yym2978 := z.DecBinary() _ = yym2978 if false { } else { z.F.DecSliceStringX(yyv2977, false, d) } } yyj2976++ if yyhl2976 { yyb2976 = yyj2976 > l } else { yyb2976 = r.CheckBreak() } if yyb2976 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SizeBytes = 0 } else { x.SizeBytes = int64(r.DecodeInt(64)) } for { yyj2976++ if yyhl2976 { yyb2976 = yyj2976 > l } else { yyb2976 = r.CheckBreak() } if yyb2976 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2976-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2980 := z.EncBinary() _ = yym2980 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 yym2981 := z.DecBinary() _ = yym2981 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 yym2982 := z.EncBinary() _ = yym2982 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 yym2983 := z.DecBinary() _ = yym2983 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 { yym2984 := z.EncBinary() _ = yym2984 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2985 := !z.EncBinary() yy2arr2985 := z.EncBasicHandle().StructToArray var yyq2985 [6]bool _, _, _ = yysep2985, yyq2985, yy2arr2985 const yyr2985 bool = false yyq2985[2] = true yyq2985[3] = true yyq2985[4] = x.Reason != "" yyq2985[5] = x.Message != "" var yynn2985 int if yyr2985 || yy2arr2985 { r.EncodeArrayStart(6) } else { yynn2985 = 2 for _, b := range yyq2985 { if b { yynn2985++ } } r.EncodeMapStart(yynn2985) yynn2985 = 0 } if yyr2985 || yy2arr2985 { 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 yyr2985 || yy2arr2985 { 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 yyr2985 || yy2arr2985 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2985[2] { yy2989 := &x.LastHeartbeatTime yym2990 := z.EncBinary() _ = yym2990 if false { } else if z.HasExtensions() && z.EncExt(yy2989) { } else if yym2990 { z.EncBinaryMarshal(yy2989) } else if !yym2990 && z.IsJSONHandle() { z.EncJSONMarshal(yy2989) } else { z.EncFallback(yy2989) } } else { r.EncodeNil() } } else { if yyq2985[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2991 := &x.LastHeartbeatTime yym2992 := z.EncBinary() _ = yym2992 if false { } else if z.HasExtensions() && z.EncExt(yy2991) { } else if yym2992 { z.EncBinaryMarshal(yy2991) } else if !yym2992 && z.IsJSONHandle() { z.EncJSONMarshal(yy2991) } else { z.EncFallback(yy2991) } } } if yyr2985 || yy2arr2985 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2985[3] { yy2994 := &x.LastTransitionTime yym2995 := z.EncBinary() _ = yym2995 if false { } else if z.HasExtensions() && z.EncExt(yy2994) { } else if yym2995 { z.EncBinaryMarshal(yy2994) } else if !yym2995 && z.IsJSONHandle() { z.EncJSONMarshal(yy2994) } else { z.EncFallback(yy2994) } } else { r.EncodeNil() } } else { if yyq2985[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2996 := &x.LastTransitionTime yym2997 := z.EncBinary() _ = yym2997 if false { } else if z.HasExtensions() && z.EncExt(yy2996) { } else if yym2997 { z.EncBinaryMarshal(yy2996) } else if !yym2997 && z.IsJSONHandle() { z.EncJSONMarshal(yy2996) } else { z.EncFallback(yy2996) } } } if yyr2985 || yy2arr2985 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2985[4] { yym2999 := z.EncBinary() _ = yym2999 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2985[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3000 := z.EncBinary() _ = yym3000 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr2985 || yy2arr2985 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2985[5] { yym3002 := z.EncBinary() _ = yym3002 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2985[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3003 := z.EncBinary() _ = yym3003 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr2985 || yy2arr2985 { 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 yym3004 := z.DecBinary() _ = yym3004 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3005 := r.ContainerType() if yyct3005 == codecSelferValueTypeMap1234 { yyl3005 := r.ReadMapStart() if yyl3005 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3005, d) } } else if yyct3005 == codecSelferValueTypeArray1234 { yyl3005 := r.ReadArrayStart() if yyl3005 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3005, 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 yys3006Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3006Slc var yyhl3006 bool = l >= 0 for yyj3006 := 0; ; yyj3006++ { if yyhl3006 { if yyj3006 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3006Slc = r.DecodeBytes(yys3006Slc, true, true) yys3006 := string(yys3006Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3006 { 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 { yyv3009 := &x.LastHeartbeatTime yym3010 := z.DecBinary() _ = yym3010 if false { } else if z.HasExtensions() && z.DecExt(yyv3009) { } else if yym3010 { z.DecBinaryUnmarshal(yyv3009) } else if !yym3010 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3009) } else { z.DecFallback(yyv3009, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv3011 := &x.LastTransitionTime yym3012 := z.DecBinary() _ = yym3012 if false { } else if z.HasExtensions() && z.DecExt(yyv3011) { } else if yym3012 { z.DecBinaryUnmarshal(yyv3011) } else if !yym3012 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3011) } else { z.DecFallback(yyv3011, 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, yys3006) } // end switch yys3006 } // end for yyj3006 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 yyj3015 int var yyb3015 bool var yyhl3015 bool = l >= 0 yyj3015++ if yyhl3015 { yyb3015 = yyj3015 > l } else { yyb3015 = r.CheckBreak() } if yyb3015 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeConditionType(r.DecodeString()) } yyj3015++ if yyhl3015 { yyb3015 = yyj3015 > l } else { yyb3015 = r.CheckBreak() } if yyb3015 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj3015++ if yyhl3015 { yyb3015 = yyj3015 > l } else { yyb3015 = r.CheckBreak() } if yyb3015 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastHeartbeatTime = pkg2_unversioned.Time{} } else { yyv3018 := &x.LastHeartbeatTime yym3019 := z.DecBinary() _ = yym3019 if false { } else if z.HasExtensions() && z.DecExt(yyv3018) { } else if yym3019 { z.DecBinaryUnmarshal(yyv3018) } else if !yym3019 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3018) } else { z.DecFallback(yyv3018, false) } } yyj3015++ if yyhl3015 { yyb3015 = yyj3015 > l } else { yyb3015 = r.CheckBreak() } if yyb3015 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv3020 := &x.LastTransitionTime yym3021 := z.DecBinary() _ = yym3021 if false { } else if z.HasExtensions() && z.DecExt(yyv3020) { } else if yym3021 { z.DecBinaryUnmarshal(yyv3020) } else if !yym3021 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3020) } else { z.DecFallback(yyv3020, false) } } yyj3015++ if yyhl3015 { yyb3015 = yyj3015 > l } else { yyb3015 = r.CheckBreak() } if yyb3015 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj3015++ if yyhl3015 { yyb3015 = yyj3015 > l } else { yyb3015 = r.CheckBreak() } if yyb3015 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj3015++ if yyhl3015 { yyb3015 = yyj3015 > l } else { yyb3015 = r.CheckBreak() } if yyb3015 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3015-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3024 := z.EncBinary() _ = yym3024 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 yym3025 := z.DecBinary() _ = yym3025 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 { yym3026 := z.EncBinary() _ = yym3026 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3027 := !z.EncBinary() yy2arr3027 := z.EncBasicHandle().StructToArray var yyq3027 [2]bool _, _, _ = yysep3027, yyq3027, yy2arr3027 const yyr3027 bool = false var yynn3027 int if yyr3027 || yy2arr3027 { r.EncodeArrayStart(2) } else { yynn3027 = 2 for _, b := range yyq3027 { if b { yynn3027++ } } r.EncodeMapStart(yynn3027) yynn3027 = 0 } if yyr3027 || yy2arr3027 { 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 yyr3027 || yy2arr3027 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3030 := z.EncBinary() _ = yym3030 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) yym3031 := z.EncBinary() _ = yym3031 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } if yyr3027 || yy2arr3027 { 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 yym3032 := z.DecBinary() _ = yym3032 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3033 := r.ContainerType() if yyct3033 == codecSelferValueTypeMap1234 { yyl3033 := r.ReadMapStart() if yyl3033 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3033, d) } } else if yyct3033 == codecSelferValueTypeArray1234 { yyl3033 := r.ReadArrayStart() if yyl3033 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3033, 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 yys3034Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3034Slc var yyhl3034 bool = l >= 0 for yyj3034 := 0; ; yyj3034++ { if yyhl3034 { if yyj3034 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3034Slc = r.DecodeBytes(yys3034Slc, true, true) yys3034 := string(yys3034Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3034 { 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, yys3034) } // end switch yys3034 } // end for yyj3034 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 yyj3037 int var yyb3037 bool var yyhl3037 bool = l >= 0 yyj3037++ if yyhl3037 { yyb3037 = yyj3037 > l } else { yyb3037 = r.CheckBreak() } if yyb3037 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeAddressType(r.DecodeString()) } yyj3037++ if yyhl3037 { yyb3037 = yyj3037 > l } else { yyb3037 = r.CheckBreak() } if yyb3037 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Address = "" } else { x.Address = string(r.DecodeString()) } for { yyj3037++ if yyhl3037 { yyb3037 = yyj3037 > l } else { yyb3037 = r.CheckBreak() } if yyb3037 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3037-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 { yym3040 := z.EncBinary() _ = yym3040 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3041 := !z.EncBinary() yy2arr3041 := z.EncBasicHandle().StructToArray var yyq3041 [1]bool _, _, _ = yysep3041, yyq3041, yy2arr3041 const yyr3041 bool = false yyq3041[0] = len(x.Capacity) != 0 var yynn3041 int if yyr3041 || yy2arr3041 { r.EncodeArrayStart(1) } else { yynn3041 = 0 for _, b := range yyq3041 { if b { yynn3041++ } } r.EncodeMapStart(yynn3041) yynn3041 = 0 } if yyr3041 || yy2arr3041 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3041[0] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3041[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 yyr3041 || yy2arr3041 { 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 yym3043 := z.DecBinary() _ = yym3043 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3044 := r.ContainerType() if yyct3044 == codecSelferValueTypeMap1234 { yyl3044 := r.ReadMapStart() if yyl3044 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3044, d) } } else if yyct3044 == codecSelferValueTypeArray1234 { yyl3044 := r.ReadArrayStart() if yyl3044 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3044, 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 yys3045Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3045Slc var yyhl3045 bool = l >= 0 for yyj3045 := 0; ; yyj3045++ { if yyhl3045 { if yyj3045 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3045Slc = r.DecodeBytes(yys3045Slc, true, true) yys3045 := string(yys3045Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3045 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv3046 := &x.Capacity yyv3046.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3045) } // end switch yys3045 } // end for yyj3045 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 yyj3047 int var yyb3047 bool var yyhl3047 bool = l >= 0 yyj3047++ if yyhl3047 { yyb3047 = yyj3047 > l } else { yyb3047 = r.CheckBreak() } if yyb3047 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv3048 := &x.Capacity yyv3048.CodecDecodeSelf(d) } for { yyj3047++ if yyhl3047 { yyb3047 = yyj3047 > l } else { yyb3047 = r.CheckBreak() } if yyb3047 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3047-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3049 := z.EncBinary() _ = yym3049 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 yym3050 := z.DecBinary() _ = yym3050 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 { yym3051 := z.EncBinary() _ = yym3051 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 yym3052 := z.DecBinary() _ = yym3052 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 { yym3053 := z.EncBinary() _ = yym3053 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3054 := !z.EncBinary() yy2arr3054 := z.EncBasicHandle().StructToArray var yyq3054 [5]bool _, _, _ = yysep3054, yyq3054, yy2arr3054 const yyr3054 bool = false yyq3054[0] = x.Kind != "" yyq3054[1] = x.APIVersion != "" yyq3054[2] = true yyq3054[3] = true yyq3054[4] = true var yynn3054 int if yyr3054 || yy2arr3054 { r.EncodeArrayStart(5) } else { yynn3054 = 0 for _, b := range yyq3054 { if b { yynn3054++ } } r.EncodeMapStart(yynn3054) yynn3054 = 0 } if yyr3054 || yy2arr3054 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3054[0] { yym3056 := z.EncBinary() _ = yym3056 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3054[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3057 := z.EncBinary() _ = yym3057 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3054 || yy2arr3054 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3054[1] { yym3059 := z.EncBinary() _ = yym3059 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3054[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3060 := z.EncBinary() _ = yym3060 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3054 || yy2arr3054 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3054[2] { yy3062 := &x.ObjectMeta yy3062.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3054[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3063 := &x.ObjectMeta yy3063.CodecEncodeSelf(e) } } if yyr3054 || yy2arr3054 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3054[3] { yy3065 := &x.Spec yy3065.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3054[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3066 := &x.Spec yy3066.CodecEncodeSelf(e) } } if yyr3054 || yy2arr3054 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3054[4] { yy3068 := &x.Status yy3068.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3054[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3069 := &x.Status yy3069.CodecEncodeSelf(e) } } if yyr3054 || yy2arr3054 { 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 yym3070 := z.DecBinary() _ = yym3070 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3071 := r.ContainerType() if yyct3071 == codecSelferValueTypeMap1234 { yyl3071 := r.ReadMapStart() if yyl3071 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3071, d) } } else if yyct3071 == codecSelferValueTypeArray1234 { yyl3071 := r.ReadArrayStart() if yyl3071 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3071, 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 yys3072Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3072Slc var yyhl3072 bool = l >= 0 for yyj3072 := 0; ; yyj3072++ { if yyhl3072 { if yyj3072 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3072Slc = r.DecodeBytes(yys3072Slc, true, true) yys3072 := string(yys3072Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3072 { 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 { yyv3075 := &x.ObjectMeta yyv3075.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { yyv3076 := &x.Spec yyv3076.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { yyv3077 := &x.Status yyv3077.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3072) } // end switch yys3072 } // end for yyj3072 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 yyj3078 int var yyb3078 bool var yyhl3078 bool = l >= 0 yyj3078++ if yyhl3078 { yyb3078 = yyj3078 > l } else { yyb3078 = r.CheckBreak() } if yyb3078 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3078++ if yyhl3078 { yyb3078 = yyj3078 > l } else { yyb3078 = r.CheckBreak() } if yyb3078 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3078++ if yyhl3078 { yyb3078 = yyj3078 > l } else { yyb3078 = r.CheckBreak() } if yyb3078 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3081 := &x.ObjectMeta yyv3081.CodecDecodeSelf(d) } yyj3078++ if yyhl3078 { yyb3078 = yyj3078 > l } else { yyb3078 = r.CheckBreak() } if yyb3078 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { yyv3082 := &x.Spec yyv3082.CodecDecodeSelf(d) } yyj3078++ if yyhl3078 { yyb3078 = yyj3078 > l } else { yyb3078 = r.CheckBreak() } if yyb3078 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { yyv3083 := &x.Status yyv3083.CodecDecodeSelf(d) } for { yyj3078++ if yyhl3078 { yyb3078 = yyj3078 > l } else { yyb3078 = r.CheckBreak() } if yyb3078 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3078-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 { yym3084 := z.EncBinary() _ = yym3084 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3085 := !z.EncBinary() yy2arr3085 := z.EncBasicHandle().StructToArray var yyq3085 [4]bool _, _, _ = yysep3085, yyq3085, yy2arr3085 const yyr3085 bool = false yyq3085[0] = x.Kind != "" yyq3085[1] = x.APIVersion != "" yyq3085[2] = true var yynn3085 int if yyr3085 || yy2arr3085 { r.EncodeArrayStart(4) } else { yynn3085 = 1 for _, b := range yyq3085 { if b { yynn3085++ } } r.EncodeMapStart(yynn3085) yynn3085 = 0 } if yyr3085 || yy2arr3085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3085[0] { yym3087 := z.EncBinary() _ = yym3087 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3085[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3088 := z.EncBinary() _ = yym3088 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3085 || yy2arr3085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3085[1] { yym3090 := z.EncBinary() _ = yym3090 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3085[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3091 := z.EncBinary() _ = yym3091 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3085 || yy2arr3085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3085[2] { yy3093 := &x.ListMeta yym3094 := z.EncBinary() _ = yym3094 if false { } else if z.HasExtensions() && z.EncExt(yy3093) { } else { z.EncFallback(yy3093) } } else { r.EncodeNil() } } else { if yyq3085[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3095 := &x.ListMeta yym3096 := z.EncBinary() _ = yym3096 if false { } else if z.HasExtensions() && z.EncExt(yy3095) { } else { z.EncFallback(yy3095) } } } if yyr3085 || yy2arr3085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3098 := z.EncBinary() _ = yym3098 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 { yym3099 := z.EncBinary() _ = yym3099 if false { } else { h.encSliceNode(([]Node)(x.Items), e) } } } if yyr3085 || yy2arr3085 { 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 yym3100 := z.DecBinary() _ = yym3100 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3101 := r.ContainerType() if yyct3101 == codecSelferValueTypeMap1234 { yyl3101 := r.ReadMapStart() if yyl3101 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3101, d) } } else if yyct3101 == codecSelferValueTypeArray1234 { yyl3101 := r.ReadArrayStart() if yyl3101 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3101, 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 yys3102Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3102Slc var yyhl3102 bool = l >= 0 for yyj3102 := 0; ; yyj3102++ { if yyhl3102 { if yyj3102 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3102Slc = r.DecodeBytes(yys3102Slc, true, true) yys3102 := string(yys3102Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3102 { 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 { yyv3105 := &x.ListMeta yym3106 := z.DecBinary() _ = yym3106 if false { } else if z.HasExtensions() && z.DecExt(yyv3105) { } else { z.DecFallback(yyv3105, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3107 := &x.Items yym3108 := z.DecBinary() _ = yym3108 if false { } else { h.decSliceNode((*[]Node)(yyv3107), d) } } default: z.DecStructFieldNotFound(-1, yys3102) } // end switch yys3102 } // end for yyj3102 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 yyj3109 int var yyb3109 bool var yyhl3109 bool = l >= 0 yyj3109++ if yyhl3109 { yyb3109 = yyj3109 > l } else { yyb3109 = r.CheckBreak() } if yyb3109 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3109++ if yyhl3109 { yyb3109 = yyj3109 > l } else { yyb3109 = r.CheckBreak() } if yyb3109 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3109++ if yyhl3109 { yyb3109 = yyj3109 > l } else { yyb3109 = r.CheckBreak() } if yyb3109 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3112 := &x.ListMeta yym3113 := z.DecBinary() _ = yym3113 if false { } else if z.HasExtensions() && z.DecExt(yyv3112) { } else { z.DecFallback(yyv3112, false) } } yyj3109++ if yyhl3109 { yyb3109 = yyj3109 > l } else { yyb3109 = r.CheckBreak() } if yyb3109 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3114 := &x.Items yym3115 := z.DecBinary() _ = yym3115 if false { } else { h.decSliceNode((*[]Node)(yyv3114), d) } } for { yyj3109++ if yyhl3109 { yyb3109 = yyj3109 > l } else { yyb3109 = r.CheckBreak() } if yyb3109 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3109-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 { yym3116 := z.EncBinary() _ = yym3116 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3117 := !z.EncBinary() yy2arr3117 := z.EncBasicHandle().StructToArray var yyq3117 [1]bool _, _, _ = yysep3117, yyq3117, yy2arr3117 const yyr3117 bool = false var yynn3117 int if yyr3117 || yy2arr3117 { r.EncodeArrayStart(1) } else { yynn3117 = 1 for _, b := range yyq3117 { if b { yynn3117++ } } r.EncodeMapStart(yynn3117) yynn3117 = 0 } if yyr3117 || yy2arr3117 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Finalizers == nil { r.EncodeNil() } else { yym3119 := z.EncBinary() _ = yym3119 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 { yym3120 := z.EncBinary() _ = yym3120 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) } } } if yyr3117 || yy2arr3117 { 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 yym3121 := z.DecBinary() _ = yym3121 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3122 := r.ContainerType() if yyct3122 == codecSelferValueTypeMap1234 { yyl3122 := r.ReadMapStart() if yyl3122 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3122, d) } } else if yyct3122 == codecSelferValueTypeArray1234 { yyl3122 := r.ReadArrayStart() if yyl3122 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3122, 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 yys3123Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3123Slc var yyhl3123 bool = l >= 0 for yyj3123 := 0; ; yyj3123++ { if yyhl3123 { if yyj3123 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3123Slc = r.DecodeBytes(yys3123Slc, true, true) yys3123 := string(yys3123Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3123 { case "Finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv3124 := &x.Finalizers yym3125 := z.DecBinary() _ = yym3125 if false { } else { h.decSliceFinalizerName((*[]FinalizerName)(yyv3124), d) } } default: z.DecStructFieldNotFound(-1, yys3123) } // end switch yys3123 } // end for yyj3123 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 yyj3126 int var yyb3126 bool var yyhl3126 bool = l >= 0 yyj3126++ if yyhl3126 { yyb3126 = yyj3126 > l } else { yyb3126 = r.CheckBreak() } if yyb3126 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv3127 := &x.Finalizers yym3128 := z.DecBinary() _ = yym3128 if false { } else { h.decSliceFinalizerName((*[]FinalizerName)(yyv3127), d) } } for { yyj3126++ if yyhl3126 { yyb3126 = yyj3126 > l } else { yyb3126 = r.CheckBreak() } if yyb3126 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3126-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3129 := z.EncBinary() _ = yym3129 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 yym3130 := z.DecBinary() _ = yym3130 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 { yym3131 := z.EncBinary() _ = yym3131 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3132 := !z.EncBinary() yy2arr3132 := z.EncBasicHandle().StructToArray var yyq3132 [1]bool _, _, _ = yysep3132, yyq3132, yy2arr3132 const yyr3132 bool = false yyq3132[0] = x.Phase != "" var yynn3132 int if yyr3132 || yy2arr3132 { r.EncodeArrayStart(1) } else { yynn3132 = 0 for _, b := range yyq3132 { if b { yynn3132++ } } r.EncodeMapStart(yynn3132) yynn3132 = 0 } if yyr3132 || yy2arr3132 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3132[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3132[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr3132 || yy2arr3132 { 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 yym3134 := z.DecBinary() _ = yym3134 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3135 := r.ContainerType() if yyct3135 == codecSelferValueTypeMap1234 { yyl3135 := r.ReadMapStart() if yyl3135 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3135, d) } } else if yyct3135 == codecSelferValueTypeArray1234 { yyl3135 := r.ReadArrayStart() if yyl3135 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3135, 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 yys3136Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3136Slc var yyhl3136 bool = l >= 0 for yyj3136 := 0; ; yyj3136++ { if yyhl3136 { if yyj3136 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3136Slc = r.DecodeBytes(yys3136Slc, true, true) yys3136 := string(yys3136Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3136 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NamespacePhase(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3136) } // end switch yys3136 } // end for yyj3136 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 yyj3138 int var yyb3138 bool var yyhl3138 bool = l >= 0 yyj3138++ if yyhl3138 { yyb3138 = yyj3138 > l } else { yyb3138 = r.CheckBreak() } if yyb3138 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NamespacePhase(r.DecodeString()) } for { yyj3138++ if yyhl3138 { yyb3138 = yyj3138 > l } else { yyb3138 = r.CheckBreak() } if yyb3138 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3138-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3140 := z.EncBinary() _ = yym3140 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 yym3141 := z.DecBinary() _ = yym3141 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 { yym3142 := z.EncBinary() _ = yym3142 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3143 := !z.EncBinary() yy2arr3143 := z.EncBasicHandle().StructToArray var yyq3143 [5]bool _, _, _ = yysep3143, yyq3143, yy2arr3143 const yyr3143 bool = false yyq3143[0] = x.Kind != "" yyq3143[1] = x.APIVersion != "" yyq3143[2] = true yyq3143[3] = true yyq3143[4] = true var yynn3143 int if yyr3143 || yy2arr3143 { r.EncodeArrayStart(5) } else { yynn3143 = 0 for _, b := range yyq3143 { if b { yynn3143++ } } r.EncodeMapStart(yynn3143) yynn3143 = 0 } if yyr3143 || yy2arr3143 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3143[0] { yym3145 := z.EncBinary() _ = yym3145 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3143[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3146 := z.EncBinary() _ = yym3146 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3143 || yy2arr3143 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3143[1] { yym3148 := z.EncBinary() _ = yym3148 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3143[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3149 := z.EncBinary() _ = yym3149 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3143 || yy2arr3143 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3143[2] { yy3151 := &x.ObjectMeta yy3151.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3143[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3152 := &x.ObjectMeta yy3152.CodecEncodeSelf(e) } } if yyr3143 || yy2arr3143 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3143[3] { yy3154 := &x.Spec yy3154.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3143[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3155 := &x.Spec yy3155.CodecEncodeSelf(e) } } if yyr3143 || yy2arr3143 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3143[4] { yy3157 := &x.Status yy3157.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3143[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3158 := &x.Status yy3158.CodecEncodeSelf(e) } } if yyr3143 || yy2arr3143 { 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 yym3159 := z.DecBinary() _ = yym3159 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3160 := r.ContainerType() if yyct3160 == codecSelferValueTypeMap1234 { yyl3160 := r.ReadMapStart() if yyl3160 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3160, d) } } else if yyct3160 == codecSelferValueTypeArray1234 { yyl3160 := r.ReadArrayStart() if yyl3160 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3160, 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 yys3161Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3161Slc var yyhl3161 bool = l >= 0 for yyj3161 := 0; ; yyj3161++ { if yyhl3161 { if yyj3161 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3161Slc = r.DecodeBytes(yys3161Slc, true, true) yys3161 := string(yys3161Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3161 { 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 { yyv3164 := &x.ObjectMeta yyv3164.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { yyv3165 := &x.Spec yyv3165.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { yyv3166 := &x.Status yyv3166.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3161) } // end switch yys3161 } // end for yyj3161 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 yyj3167 int var yyb3167 bool var yyhl3167 bool = l >= 0 yyj3167++ if yyhl3167 { yyb3167 = yyj3167 > l } else { yyb3167 = r.CheckBreak() } if yyb3167 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3167++ if yyhl3167 { yyb3167 = yyj3167 > l } else { yyb3167 = r.CheckBreak() } if yyb3167 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3167++ if yyhl3167 { yyb3167 = yyj3167 > l } else { yyb3167 = r.CheckBreak() } if yyb3167 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3170 := &x.ObjectMeta yyv3170.CodecDecodeSelf(d) } yyj3167++ if yyhl3167 { yyb3167 = yyj3167 > l } else { yyb3167 = r.CheckBreak() } if yyb3167 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { yyv3171 := &x.Spec yyv3171.CodecDecodeSelf(d) } yyj3167++ if yyhl3167 { yyb3167 = yyj3167 > l } else { yyb3167 = r.CheckBreak() } if yyb3167 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { yyv3172 := &x.Status yyv3172.CodecDecodeSelf(d) } for { yyj3167++ if yyhl3167 { yyb3167 = yyj3167 > l } else { yyb3167 = r.CheckBreak() } if yyb3167 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3167-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 { yym3173 := z.EncBinary() _ = yym3173 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3174 := !z.EncBinary() yy2arr3174 := z.EncBasicHandle().StructToArray var yyq3174 [4]bool _, _, _ = yysep3174, yyq3174, yy2arr3174 const yyr3174 bool = false yyq3174[0] = x.Kind != "" yyq3174[1] = x.APIVersion != "" yyq3174[2] = true var yynn3174 int if yyr3174 || yy2arr3174 { r.EncodeArrayStart(4) } else { yynn3174 = 1 for _, b := range yyq3174 { if b { yynn3174++ } } r.EncodeMapStart(yynn3174) yynn3174 = 0 } if yyr3174 || yy2arr3174 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3174[0] { yym3176 := z.EncBinary() _ = yym3176 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3174[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3177 := z.EncBinary() _ = yym3177 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3174 || yy2arr3174 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3174[1] { yym3179 := z.EncBinary() _ = yym3179 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3174[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3180 := z.EncBinary() _ = yym3180 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3174 || yy2arr3174 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3174[2] { yy3182 := &x.ListMeta yym3183 := z.EncBinary() _ = yym3183 if false { } else if z.HasExtensions() && z.EncExt(yy3182) { } else { z.EncFallback(yy3182) } } else { r.EncodeNil() } } else { if yyq3174[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3184 := &x.ListMeta yym3185 := z.EncBinary() _ = yym3185 if false { } else if z.HasExtensions() && z.EncExt(yy3184) { } else { z.EncFallback(yy3184) } } } if yyr3174 || yy2arr3174 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3187 := z.EncBinary() _ = yym3187 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 { yym3188 := z.EncBinary() _ = yym3188 if false { } else { h.encSliceNamespace(([]Namespace)(x.Items), e) } } } if yyr3174 || yy2arr3174 { 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 yym3189 := z.DecBinary() _ = yym3189 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3190 := r.ContainerType() if yyct3190 == codecSelferValueTypeMap1234 { yyl3190 := r.ReadMapStart() if yyl3190 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3190, d) } } else if yyct3190 == codecSelferValueTypeArray1234 { yyl3190 := r.ReadArrayStart() if yyl3190 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3190, 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 yys3191Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3191Slc var yyhl3191 bool = l >= 0 for yyj3191 := 0; ; yyj3191++ { if yyhl3191 { if yyj3191 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3191Slc = r.DecodeBytes(yys3191Slc, true, true) yys3191 := string(yys3191Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3191 { 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 { yyv3194 := &x.ListMeta yym3195 := z.DecBinary() _ = yym3195 if false { } else if z.HasExtensions() && z.DecExt(yyv3194) { } else { z.DecFallback(yyv3194, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3196 := &x.Items yym3197 := z.DecBinary() _ = yym3197 if false { } else { h.decSliceNamespace((*[]Namespace)(yyv3196), d) } } default: z.DecStructFieldNotFound(-1, yys3191) } // end switch yys3191 } // end for yyj3191 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 yyj3198 int var yyb3198 bool var yyhl3198 bool = l >= 0 yyj3198++ if yyhl3198 { yyb3198 = yyj3198 > l } else { yyb3198 = r.CheckBreak() } if yyb3198 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3198++ if yyhl3198 { yyb3198 = yyj3198 > l } else { yyb3198 = r.CheckBreak() } if yyb3198 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3198++ if yyhl3198 { yyb3198 = yyj3198 > l } else { yyb3198 = r.CheckBreak() } if yyb3198 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3201 := &x.ListMeta yym3202 := z.DecBinary() _ = yym3202 if false { } else if z.HasExtensions() && z.DecExt(yyv3201) { } else { z.DecFallback(yyv3201, false) } } yyj3198++ if yyhl3198 { yyb3198 = yyj3198 > l } else { yyb3198 = r.CheckBreak() } if yyb3198 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3203 := &x.Items yym3204 := z.DecBinary() _ = yym3204 if false { } else { h.decSliceNamespace((*[]Namespace)(yyv3203), d) } } for { yyj3198++ if yyhl3198 { yyb3198 = yyj3198 > l } else { yyb3198 = r.CheckBreak() } if yyb3198 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3198-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 { yym3205 := z.EncBinary() _ = yym3205 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3206 := !z.EncBinary() yy2arr3206 := z.EncBasicHandle().StructToArray var yyq3206 [4]bool _, _, _ = yysep3206, yyq3206, yy2arr3206 const yyr3206 bool = false yyq3206[0] = x.Kind != "" yyq3206[1] = x.APIVersion != "" yyq3206[2] = true var yynn3206 int if yyr3206 || yy2arr3206 { r.EncodeArrayStart(4) } else { yynn3206 = 1 for _, b := range yyq3206 { if b { yynn3206++ } } r.EncodeMapStart(yynn3206) yynn3206 = 0 } if yyr3206 || yy2arr3206 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3206[0] { yym3208 := z.EncBinary() _ = yym3208 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3206[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3209 := z.EncBinary() _ = yym3209 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3206 || yy2arr3206 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3206[1] { yym3211 := z.EncBinary() _ = yym3211 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3206[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3212 := z.EncBinary() _ = yym3212 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3206 || yy2arr3206 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3206[2] { yy3214 := &x.ObjectMeta yy3214.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3206[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3215 := &x.ObjectMeta yy3215.CodecEncodeSelf(e) } } if yyr3206 || yy2arr3206 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3217 := &x.Target yy3217.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("target")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3218 := &x.Target yy3218.CodecEncodeSelf(e) } if yyr3206 || yy2arr3206 { 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 yym3219 := z.DecBinary() _ = yym3219 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3220 := r.ContainerType() if yyct3220 == codecSelferValueTypeMap1234 { yyl3220 := r.ReadMapStart() if yyl3220 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3220, d) } } else if yyct3220 == codecSelferValueTypeArray1234 { yyl3220 := r.ReadArrayStart() if yyl3220 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3220, 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 yys3221Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3221Slc var yyhl3221 bool = l >= 0 for yyj3221 := 0; ; yyj3221++ { if yyhl3221 { if yyj3221 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3221Slc = r.DecodeBytes(yys3221Slc, true, true) yys3221 := string(yys3221Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3221 { 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 { yyv3224 := &x.ObjectMeta yyv3224.CodecDecodeSelf(d) } case "target": if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { yyv3225 := &x.Target yyv3225.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3221) } // end switch yys3221 } // end for yyj3221 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 yyj3226 int var yyb3226 bool var yyhl3226 bool = l >= 0 yyj3226++ if yyhl3226 { yyb3226 = yyj3226 > l } else { yyb3226 = r.CheckBreak() } if yyb3226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3226++ if yyhl3226 { yyb3226 = yyj3226 > l } else { yyb3226 = r.CheckBreak() } if yyb3226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3226++ if yyhl3226 { yyb3226 = yyj3226 > l } else { yyb3226 = r.CheckBreak() } if yyb3226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3229 := &x.ObjectMeta yyv3229.CodecDecodeSelf(d) } yyj3226++ if yyhl3226 { yyb3226 = yyj3226 > l } else { yyb3226 = r.CheckBreak() } if yyb3226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { yyv3230 := &x.Target yyv3230.CodecDecodeSelf(d) } for { yyj3226++ if yyhl3226 { yyb3226 = yyj3226 > l } else { yyb3226 = r.CheckBreak() } if yyb3226 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3226-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 { yym3231 := z.EncBinary() _ = yym3231 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3232 := !z.EncBinary() yy2arr3232 := z.EncBasicHandle().StructToArray var yyq3232 [1]bool _, _, _ = yysep3232, yyq3232, yy2arr3232 const yyr3232 bool = false yyq3232[0] = x.UID != nil var yynn3232 int if yyr3232 || yy2arr3232 { r.EncodeArrayStart(1) } else { yynn3232 = 0 for _, b := range yyq3232 { if b { yynn3232++ } } r.EncodeMapStart(yynn3232) yynn3232 = 0 } if yyr3232 || yy2arr3232 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3232[0] { if x.UID == nil { r.EncodeNil() } else { yy3234 := *x.UID yym3235 := z.EncBinary() _ = yym3235 if false { } else if z.HasExtensions() && z.EncExt(yy3234) { } else { r.EncodeString(codecSelferC_UTF81234, string(yy3234)) } } } else { r.EncodeNil() } } else { if yyq3232[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.UID == nil { r.EncodeNil() } else { yy3236 := *x.UID yym3237 := z.EncBinary() _ = yym3237 if false { } else if z.HasExtensions() && z.EncExt(yy3236) { } else { r.EncodeString(codecSelferC_UTF81234, string(yy3236)) } } } } if yyr3232 || yy2arr3232 { 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 yym3238 := z.DecBinary() _ = yym3238 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3239 := r.ContainerType() if yyct3239 == codecSelferValueTypeMap1234 { yyl3239 := r.ReadMapStart() if yyl3239 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3239, d) } } else if yyct3239 == codecSelferValueTypeArray1234 { yyl3239 := r.ReadArrayStart() if yyl3239 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3239, 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 yys3240Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3240Slc var yyhl3240 bool = l >= 0 for yyj3240 := 0; ; yyj3240++ { if yyhl3240 { if yyj3240 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3240Slc = r.DecodeBytes(yys3240Slc, true, true) yys3240 := string(yys3240Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3240 { case "uid": if r.TryDecodeAsNil() { if x.UID != nil { x.UID = nil } } else { if x.UID == nil { x.UID = new(pkg1_types.UID) } yym3242 := z.DecBinary() _ = yym3242 if false { } else if z.HasExtensions() && z.DecExt(x.UID) { } else { *((*string)(x.UID)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3240) } // end switch yys3240 } // end for yyj3240 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 yyj3243 int var yyb3243 bool var yyhl3243 bool = l >= 0 yyj3243++ if yyhl3243 { yyb3243 = yyj3243 > l } else { yyb3243 = r.CheckBreak() } if yyb3243 { 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) } yym3245 := z.DecBinary() _ = yym3245 if false { } else if z.HasExtensions() && z.DecExt(x.UID) { } else { *((*string)(x.UID)) = r.DecodeString() } } for { yyj3243++ if yyhl3243 { yyb3243 = yyj3243 > l } else { yyb3243 = r.CheckBreak() } if yyb3243 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3243-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 { yym3246 := z.EncBinary() _ = yym3246 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3247 := !z.EncBinary() yy2arr3247 := z.EncBasicHandle().StructToArray var yyq3247 [5]bool _, _, _ = yysep3247, yyq3247, yy2arr3247 const yyr3247 bool = false yyq3247[0] = x.Kind != "" yyq3247[1] = x.APIVersion != "" yyq3247[2] = x.GracePeriodSeconds != nil yyq3247[3] = x.Preconditions != nil yyq3247[4] = x.OrphanDependents != nil var yynn3247 int if yyr3247 || yy2arr3247 { r.EncodeArrayStart(5) } else { yynn3247 = 0 for _, b := range yyq3247 { if b { yynn3247++ } } r.EncodeMapStart(yynn3247) yynn3247 = 0 } if yyr3247 || yy2arr3247 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3247[0] { yym3249 := z.EncBinary() _ = yym3249 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3247[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3250 := z.EncBinary() _ = yym3250 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3247 || yy2arr3247 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3247[1] { yym3252 := z.EncBinary() _ = yym3252 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3247[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3253 := z.EncBinary() _ = yym3253 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3247 || yy2arr3247 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3247[2] { if x.GracePeriodSeconds == nil { r.EncodeNil() } else { yy3255 := *x.GracePeriodSeconds yym3256 := z.EncBinary() _ = yym3256 if false { } else { r.EncodeInt(int64(yy3255)) } } } else { r.EncodeNil() } } else { if yyq3247[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.GracePeriodSeconds == nil { r.EncodeNil() } else { yy3257 := *x.GracePeriodSeconds yym3258 := z.EncBinary() _ = yym3258 if false { } else { r.EncodeInt(int64(yy3257)) } } } } if yyr3247 || yy2arr3247 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3247[3] { if x.Preconditions == nil { r.EncodeNil() } else { x.Preconditions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3247[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 yyr3247 || yy2arr3247 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3247[4] { if x.OrphanDependents == nil { r.EncodeNil() } else { yy3261 := *x.OrphanDependents yym3262 := z.EncBinary() _ = yym3262 if false { } else { r.EncodeBool(bool(yy3261)) } } } else { r.EncodeNil() } } else { if yyq3247[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("orphanDependents")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.OrphanDependents == nil { r.EncodeNil() } else { yy3263 := *x.OrphanDependents yym3264 := z.EncBinary() _ = yym3264 if false { } else { r.EncodeBool(bool(yy3263)) } } } } if yyr3247 || yy2arr3247 { 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 yym3265 := z.DecBinary() _ = yym3265 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3266 := r.ContainerType() if yyct3266 == codecSelferValueTypeMap1234 { yyl3266 := r.ReadMapStart() if yyl3266 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3266, d) } } else if yyct3266 == codecSelferValueTypeArray1234 { yyl3266 := r.ReadArrayStart() if yyl3266 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3266, 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 yys3267Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3267Slc var yyhl3267 bool = l >= 0 for yyj3267 := 0; ; yyj3267++ { if yyhl3267 { if yyj3267 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3267Slc = r.DecodeBytes(yys3267Slc, true, true) yys3267 := string(yys3267Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3267 { 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) } yym3271 := z.DecBinary() _ = yym3271 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) } yym3274 := z.DecBinary() _ = yym3274 if false { } else { *((*bool)(x.OrphanDependents)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3267) } // end switch yys3267 } // end for yyj3267 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 yyj3275 int var yyb3275 bool var yyhl3275 bool = l >= 0 yyj3275++ if yyhl3275 { yyb3275 = yyj3275 > l } else { yyb3275 = r.CheckBreak() } if yyb3275 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3275++ if yyhl3275 { yyb3275 = yyj3275 > l } else { yyb3275 = r.CheckBreak() } if yyb3275 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3275++ if yyhl3275 { yyb3275 = yyj3275 > l } else { yyb3275 = r.CheckBreak() } if yyb3275 { 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) } yym3279 := z.DecBinary() _ = yym3279 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } yyj3275++ if yyhl3275 { yyb3275 = yyj3275 > l } else { yyb3275 = r.CheckBreak() } if yyb3275 { 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) } yyj3275++ if yyhl3275 { yyb3275 = yyj3275 > l } else { yyb3275 = r.CheckBreak() } if yyb3275 { 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) } yym3282 := z.DecBinary() _ = yym3282 if false { } else { *((*bool)(x.OrphanDependents)) = r.DecodeBool() } } for { yyj3275++ if yyhl3275 { yyb3275 = yyj3275 > l } else { yyb3275 = r.CheckBreak() } if yyb3275 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3275-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 { yym3283 := z.EncBinary() _ = yym3283 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3284 := !z.EncBinary() yy2arr3284 := z.EncBasicHandle().StructToArray var yyq3284 [4]bool _, _, _ = yysep3284, yyq3284, yy2arr3284 const yyr3284 bool = false yyq3284[0] = x.Kind != "" yyq3284[1] = x.APIVersion != "" var yynn3284 int if yyr3284 || yy2arr3284 { r.EncodeArrayStart(4) } else { yynn3284 = 2 for _, b := range yyq3284 { if b { yynn3284++ } } r.EncodeMapStart(yynn3284) yynn3284 = 0 } if yyr3284 || yy2arr3284 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3284[0] { yym3286 := z.EncBinary() _ = yym3286 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3284[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3287 := z.EncBinary() _ = yym3287 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3284 || yy2arr3284 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3284[1] { yym3289 := z.EncBinary() _ = yym3289 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3284[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3290 := z.EncBinary() _ = yym3290 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3284 || yy2arr3284 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3292 := z.EncBinary() _ = yym3292 if false { } else { r.EncodeBool(bool(x.Export)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("export")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3293 := z.EncBinary() _ = yym3293 if false { } else { r.EncodeBool(bool(x.Export)) } } if yyr3284 || yy2arr3284 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3295 := z.EncBinary() _ = yym3295 if false { } else { r.EncodeBool(bool(x.Exact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exact")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3296 := z.EncBinary() _ = yym3296 if false { } else { r.EncodeBool(bool(x.Exact)) } } if yyr3284 || yy2arr3284 { 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 yym3297 := z.DecBinary() _ = yym3297 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3298 := r.ContainerType() if yyct3298 == codecSelferValueTypeMap1234 { yyl3298 := r.ReadMapStart() if yyl3298 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3298, d) } } else if yyct3298 == codecSelferValueTypeArray1234 { yyl3298 := r.ReadArrayStart() if yyl3298 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3298, 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 yys3299Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3299Slc var yyhl3299 bool = l >= 0 for yyj3299 := 0; ; yyj3299++ { if yyhl3299 { if yyj3299 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3299Slc = r.DecodeBytes(yys3299Slc, true, true) yys3299 := string(yys3299Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3299 { 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, yys3299) } // end switch yys3299 } // end for yyj3299 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 yyj3304 int var yyb3304 bool var yyhl3304 bool = l >= 0 yyj3304++ if yyhl3304 { yyb3304 = yyj3304 > l } else { yyb3304 = r.CheckBreak() } if yyb3304 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3304++ if yyhl3304 { yyb3304 = yyj3304 > l } else { yyb3304 = r.CheckBreak() } if yyb3304 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3304++ if yyhl3304 { yyb3304 = yyj3304 > l } else { yyb3304 = r.CheckBreak() } if yyb3304 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Export = false } else { x.Export = bool(r.DecodeBool()) } yyj3304++ if yyhl3304 { yyb3304 = yyj3304 > l } else { yyb3304 = r.CheckBreak() } if yyb3304 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Exact = false } else { x.Exact = bool(r.DecodeBool()) } for { yyj3304++ if yyhl3304 { yyb3304 = yyj3304 > l } else { yyb3304 = r.CheckBreak() } if yyb3304 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3304-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 { yym3309 := z.EncBinary() _ = yym3309 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3310 := !z.EncBinary() yy2arr3310 := z.EncBasicHandle().StructToArray var yyq3310 [7]bool _, _, _ = yysep3310, yyq3310, yy2arr3310 const yyr3310 bool = false yyq3310[0] = x.Kind != "" yyq3310[1] = x.APIVersion != "" var yynn3310 int if yyr3310 || yy2arr3310 { r.EncodeArrayStart(7) } else { yynn3310 = 5 for _, b := range yyq3310 { if b { yynn3310++ } } r.EncodeMapStart(yynn3310) yynn3310 = 0 } if yyr3310 || yy2arr3310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3310[0] { yym3312 := z.EncBinary() _ = yym3312 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3310[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3313 := z.EncBinary() _ = yym3313 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3310 || yy2arr3310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3310[1] { yym3315 := z.EncBinary() _ = yym3315 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3310[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3316 := z.EncBinary() _ = yym3316 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3310 || yy2arr3310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LabelSelector == nil { r.EncodeNil() } else { yym3318 := z.EncBinary() _ = yym3318 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 { yym3319 := z.EncBinary() _ = yym3319 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { z.EncFallback(x.LabelSelector) } } } if yyr3310 || yy2arr3310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.FieldSelector == nil { r.EncodeNil() } else { yym3321 := z.EncBinary() _ = yym3321 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 { yym3322 := z.EncBinary() _ = yym3322 if false { } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { } else { z.EncFallback(x.FieldSelector) } } } if yyr3310 || yy2arr3310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3324 := z.EncBinary() _ = yym3324 if false { } else { r.EncodeBool(bool(x.Watch)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Watch")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3325 := z.EncBinary() _ = yym3325 if false { } else { r.EncodeBool(bool(x.Watch)) } } if yyr3310 || yy2arr3310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3327 := z.EncBinary() _ = yym3327 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) yym3328 := z.EncBinary() _ = yym3328 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } if yyr3310 || yy2arr3310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { yy3330 := *x.TimeoutSeconds yym3331 := z.EncBinary() _ = yym3331 if false { } else { r.EncodeInt(int64(yy3330)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { yy3332 := *x.TimeoutSeconds yym3333 := z.EncBinary() _ = yym3333 if false { } else { r.EncodeInt(int64(yy3332)) } } } if yyr3310 || yy2arr3310 { 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 yym3334 := z.DecBinary() _ = yym3334 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3335 := r.ContainerType() if yyct3335 == codecSelferValueTypeMap1234 { yyl3335 := r.ReadMapStart() if yyl3335 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3335, d) } } else if yyct3335 == codecSelferValueTypeArray1234 { yyl3335 := r.ReadArrayStart() if yyl3335 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3335, 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 yys3336Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3336Slc var yyhl3336 bool = l >= 0 for yyj3336 := 0; ; yyj3336++ { if yyhl3336 { if yyj3336 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3336Slc = r.DecodeBytes(yys3336Slc, true, true) yys3336 := string(yys3336Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3336 { 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 { yyv3339 := &x.LabelSelector yym3340 := z.DecBinary() _ = yym3340 if false { } else if z.HasExtensions() && z.DecExt(yyv3339) { } else { z.DecFallback(yyv3339, true) } } case "FieldSelector": if r.TryDecodeAsNil() { x.FieldSelector = nil } else { yyv3341 := &x.FieldSelector yym3342 := z.DecBinary() _ = yym3342 if false { } else if z.HasExtensions() && z.DecExt(yyv3341) { } else { z.DecFallback(yyv3341, 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) } yym3346 := z.DecBinary() _ = yym3346 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys3336) } // end switch yys3336 } // end for yyj3336 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 yyj3347 int var yyb3347 bool var yyhl3347 bool = l >= 0 yyj3347++ if yyhl3347 { yyb3347 = yyj3347 > l } else { yyb3347 = r.CheckBreak() } if yyb3347 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3347++ if yyhl3347 { yyb3347 = yyj3347 > l } else { yyb3347 = r.CheckBreak() } if yyb3347 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3347++ if yyhl3347 { yyb3347 = yyj3347 > l } else { yyb3347 = r.CheckBreak() } if yyb3347 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LabelSelector = nil } else { yyv3350 := &x.LabelSelector yym3351 := z.DecBinary() _ = yym3351 if false { } else if z.HasExtensions() && z.DecExt(yyv3350) { } else { z.DecFallback(yyv3350, true) } } yyj3347++ if yyhl3347 { yyb3347 = yyj3347 > l } else { yyb3347 = r.CheckBreak() } if yyb3347 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldSelector = nil } else { yyv3352 := &x.FieldSelector yym3353 := z.DecBinary() _ = yym3353 if false { } else if z.HasExtensions() && z.DecExt(yyv3352) { } else { z.DecFallback(yyv3352, true) } } yyj3347++ if yyhl3347 { yyb3347 = yyj3347 > l } else { yyb3347 = r.CheckBreak() } if yyb3347 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Watch = false } else { x.Watch = bool(r.DecodeBool()) } yyj3347++ if yyhl3347 { yyb3347 = yyj3347 > l } else { yyb3347 = r.CheckBreak() } if yyb3347 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj3347++ if yyhl3347 { yyb3347 = yyj3347 > l } else { yyb3347 = r.CheckBreak() } if yyb3347 { 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) } yym3357 := z.DecBinary() _ = yym3357 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } for { yyj3347++ if yyhl3347 { yyb3347 = yyj3347 > l } else { yyb3347 = r.CheckBreak() } if yyb3347 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3347-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 { yym3358 := z.EncBinary() _ = yym3358 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3359 := !z.EncBinary() yy2arr3359 := z.EncBasicHandle().StructToArray var yyq3359 [10]bool _, _, _ = yysep3359, yyq3359, yy2arr3359 const yyr3359 bool = false yyq3359[0] = x.Kind != "" yyq3359[1] = x.APIVersion != "" var yynn3359 int if yyr3359 || yy2arr3359 { r.EncodeArrayStart(10) } else { yynn3359 = 8 for _, b := range yyq3359 { if b { yynn3359++ } } r.EncodeMapStart(yynn3359) yynn3359 = 0 } if yyr3359 || yy2arr3359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3359[0] { yym3361 := z.EncBinary() _ = yym3361 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3359[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3362 := z.EncBinary() _ = yym3362 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3359 || yy2arr3359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3359[1] { yym3364 := z.EncBinary() _ = yym3364 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3359[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3365 := z.EncBinary() _ = yym3365 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3359 || yy2arr3359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3367 := z.EncBinary() _ = yym3367 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) yym3368 := z.EncBinary() _ = yym3368 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } if yyr3359 || yy2arr3359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3370 := z.EncBinary() _ = yym3370 if false { } else { r.EncodeBool(bool(x.Follow)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Follow")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3371 := z.EncBinary() _ = yym3371 if false { } else { r.EncodeBool(bool(x.Follow)) } } if yyr3359 || yy2arr3359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3373 := z.EncBinary() _ = yym3373 if false { } else { r.EncodeBool(bool(x.Previous)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Previous")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3374 := z.EncBinary() _ = yym3374 if false { } else { r.EncodeBool(bool(x.Previous)) } } if yyr3359 || yy2arr3359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceSeconds == nil { r.EncodeNil() } else { yy3376 := *x.SinceSeconds yym3377 := z.EncBinary() _ = yym3377 if false { } else { r.EncodeInt(int64(yy3376)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SinceSeconds == nil { r.EncodeNil() } else { yy3378 := *x.SinceSeconds yym3379 := z.EncBinary() _ = yym3379 if false { } else { r.EncodeInt(int64(yy3378)) } } } if yyr3359 || yy2arr3359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceTime == nil { r.EncodeNil() } else { yym3381 := z.EncBinary() _ = yym3381 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { } else if yym3381 { z.EncBinaryMarshal(x.SinceTime) } else if !yym3381 && 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 { yym3382 := z.EncBinary() _ = yym3382 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { } else if yym3382 { z.EncBinaryMarshal(x.SinceTime) } else if !yym3382 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) } } } if yyr3359 || yy2arr3359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3384 := z.EncBinary() _ = yym3384 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Timestamps")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3385 := z.EncBinary() _ = yym3385 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } if yyr3359 || yy2arr3359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TailLines == nil { r.EncodeNil() } else { yy3387 := *x.TailLines yym3388 := z.EncBinary() _ = yym3388 if false { } else { r.EncodeInt(int64(yy3387)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TailLines")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TailLines == nil { r.EncodeNil() } else { yy3389 := *x.TailLines yym3390 := z.EncBinary() _ = yym3390 if false { } else { r.EncodeInt(int64(yy3389)) } } } if yyr3359 || yy2arr3359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LimitBytes == nil { r.EncodeNil() } else { yy3392 := *x.LimitBytes yym3393 := z.EncBinary() _ = yym3393 if false { } else { r.EncodeInt(int64(yy3392)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("LimitBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LimitBytes == nil { r.EncodeNil() } else { yy3394 := *x.LimitBytes yym3395 := z.EncBinary() _ = yym3395 if false { } else { r.EncodeInt(int64(yy3394)) } } } if yyr3359 || yy2arr3359 { 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 yym3396 := z.DecBinary() _ = yym3396 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3397 := r.ContainerType() if yyct3397 == codecSelferValueTypeMap1234 { yyl3397 := r.ReadMapStart() if yyl3397 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3397, d) } } else if yyct3397 == codecSelferValueTypeArray1234 { yyl3397 := r.ReadArrayStart() if yyl3397 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3397, 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 yys3398Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3398Slc var yyhl3398 bool = l >= 0 for yyj3398 := 0; ; yyj3398++ { if yyhl3398 { if yyj3398 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3398Slc = r.DecodeBytes(yys3398Slc, true, true) yys3398 := string(yys3398Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3398 { 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) } yym3405 := z.DecBinary() _ = yym3405 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) } yym3407 := z.DecBinary() _ = yym3407 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { } else if yym3407 { z.DecBinaryUnmarshal(x.SinceTime) } else if !yym3407 && 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) } yym3410 := z.DecBinary() _ = yym3410 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) } yym3412 := z.DecBinary() _ = yym3412 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys3398) } // end switch yys3398 } // end for yyj3398 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 yyj3413 int var yyb3413 bool var yyhl3413 bool = l >= 0 yyj3413++ if yyhl3413 { yyb3413 = yyj3413 > l } else { yyb3413 = r.CheckBreak() } if yyb3413 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3413++ if yyhl3413 { yyb3413 = yyj3413 > l } else { yyb3413 = r.CheckBreak() } if yyb3413 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3413++ if yyhl3413 { yyb3413 = yyj3413 > l } else { yyb3413 = r.CheckBreak() } if yyb3413 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } yyj3413++ if yyhl3413 { yyb3413 = yyj3413 > l } else { yyb3413 = r.CheckBreak() } if yyb3413 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Follow = false } else { x.Follow = bool(r.DecodeBool()) } yyj3413++ if yyhl3413 { yyb3413 = yyj3413 > l } else { yyb3413 = r.CheckBreak() } if yyb3413 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Previous = false } else { x.Previous = bool(r.DecodeBool()) } yyj3413++ if yyhl3413 { yyb3413 = yyj3413 > l } else { yyb3413 = r.CheckBreak() } if yyb3413 { 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) } yym3420 := z.DecBinary() _ = yym3420 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) } } yyj3413++ if yyhl3413 { yyb3413 = yyj3413 > l } else { yyb3413 = r.CheckBreak() } if yyb3413 { 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) } yym3422 := z.DecBinary() _ = yym3422 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { } else if yym3422 { z.DecBinaryUnmarshal(x.SinceTime) } else if !yym3422 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) } } yyj3413++ if yyhl3413 { yyb3413 = yyj3413 > l } else { yyb3413 = r.CheckBreak() } if yyb3413 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Timestamps = false } else { x.Timestamps = bool(r.DecodeBool()) } yyj3413++ if yyhl3413 { yyb3413 = yyj3413 > l } else { yyb3413 = r.CheckBreak() } if yyb3413 { 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) } yym3425 := z.DecBinary() _ = yym3425 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) } } yyj3413++ if yyhl3413 { yyb3413 = yyj3413 > l } else { yyb3413 = r.CheckBreak() } if yyb3413 { 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) } yym3427 := z.DecBinary() _ = yym3427 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } for { yyj3413++ if yyhl3413 { yyb3413 = yyj3413 > l } else { yyb3413 = r.CheckBreak() } if yyb3413 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3413-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 { yym3428 := z.EncBinary() _ = yym3428 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3429 := !z.EncBinary() yy2arr3429 := z.EncBasicHandle().StructToArray var yyq3429 [7]bool _, _, _ = yysep3429, yyq3429, yy2arr3429 const yyr3429 bool = false yyq3429[0] = x.Kind != "" yyq3429[1] = x.APIVersion != "" yyq3429[2] = x.Stdin != false yyq3429[3] = x.Stdout != false yyq3429[4] = x.Stderr != false yyq3429[5] = x.TTY != false yyq3429[6] = x.Container != "" var yynn3429 int if yyr3429 || yy2arr3429 { r.EncodeArrayStart(7) } else { yynn3429 = 0 for _, b := range yyq3429 { if b { yynn3429++ } } r.EncodeMapStart(yynn3429) yynn3429 = 0 } if yyr3429 || yy2arr3429 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3429[0] { yym3431 := z.EncBinary() _ = yym3431 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3429[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3432 := z.EncBinary() _ = yym3432 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3429 || yy2arr3429 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3429[1] { yym3434 := z.EncBinary() _ = yym3434 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3429[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3435 := z.EncBinary() _ = yym3435 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3429 || yy2arr3429 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3429[2] { yym3437 := z.EncBinary() _ = yym3437 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { if yyq3429[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3438 := z.EncBinary() _ = yym3438 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } if yyr3429 || yy2arr3429 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3429[3] { yym3440 := z.EncBinary() _ = yym3440 if false { } else { r.EncodeBool(bool(x.Stdout)) } } else { r.EncodeBool(false) } } else { if yyq3429[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3441 := z.EncBinary() _ = yym3441 if false { } else { r.EncodeBool(bool(x.Stdout)) } } } if yyr3429 || yy2arr3429 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3429[4] { yym3443 := z.EncBinary() _ = yym3443 if false { } else { r.EncodeBool(bool(x.Stderr)) } } else { r.EncodeBool(false) } } else { if yyq3429[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3444 := z.EncBinary() _ = yym3444 if false { } else { r.EncodeBool(bool(x.Stderr)) } } } if yyr3429 || yy2arr3429 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3429[5] { yym3446 := z.EncBinary() _ = yym3446 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { r.EncodeBool(false) } } else { if yyq3429[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3447 := z.EncBinary() _ = yym3447 if false { } else { r.EncodeBool(bool(x.TTY)) } } } if yyr3429 || yy2arr3429 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3429[6] { yym3449 := z.EncBinary() _ = yym3449 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3429[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3450 := z.EncBinary() _ = yym3450 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } if yyr3429 || yy2arr3429 { 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 yym3451 := z.DecBinary() _ = yym3451 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3452 := r.ContainerType() if yyct3452 == codecSelferValueTypeMap1234 { yyl3452 := r.ReadMapStart() if yyl3452 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3452, d) } } else if yyct3452 == codecSelferValueTypeArray1234 { yyl3452 := r.ReadArrayStart() if yyl3452 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3452, 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 yys3453Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3453Slc var yyhl3453 bool = l >= 0 for yyj3453 := 0; ; yyj3453++ { if yyhl3453 { if yyj3453 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3453Slc = r.DecodeBytes(yys3453Slc, true, true) yys3453 := string(yys3453Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3453 { 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, yys3453) } // end switch yys3453 } // end for yyj3453 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 yyj3461 int var yyb3461 bool var yyhl3461 bool = l >= 0 yyj3461++ if yyhl3461 { yyb3461 = yyj3461 > l } else { yyb3461 = r.CheckBreak() } if yyb3461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3461++ if yyhl3461 { yyb3461 = yyj3461 > l } else { yyb3461 = r.CheckBreak() } if yyb3461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3461++ if yyhl3461 { yyb3461 = yyj3461 > l } else { yyb3461 = r.CheckBreak() } if yyb3461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj3461++ if yyhl3461 { yyb3461 = yyj3461 > l } else { yyb3461 = r.CheckBreak() } if yyb3461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } yyj3461++ if yyhl3461 { yyb3461 = yyj3461 > l } else { yyb3461 = r.CheckBreak() } if yyb3461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } yyj3461++ if yyhl3461 { yyb3461 = yyj3461 > l } else { yyb3461 = r.CheckBreak() } if yyb3461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } yyj3461++ if yyhl3461 { yyb3461 = yyj3461 > l } else { yyb3461 = r.CheckBreak() } if yyb3461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } for { yyj3461++ if yyhl3461 { yyb3461 = yyj3461 > l } else { yyb3461 = r.CheckBreak() } if yyb3461 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3461-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 { yym3469 := z.EncBinary() _ = yym3469 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3470 := !z.EncBinary() yy2arr3470 := z.EncBasicHandle().StructToArray var yyq3470 [8]bool _, _, _ = yysep3470, yyq3470, yy2arr3470 const yyr3470 bool = false yyq3470[0] = x.Kind != "" yyq3470[1] = x.APIVersion != "" var yynn3470 int if yyr3470 || yy2arr3470 { r.EncodeArrayStart(8) } else { yynn3470 = 6 for _, b := range yyq3470 { if b { yynn3470++ } } r.EncodeMapStart(yynn3470) yynn3470 = 0 } if yyr3470 || yy2arr3470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3470[0] { yym3472 := z.EncBinary() _ = yym3472 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3470[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3473 := z.EncBinary() _ = yym3473 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3470 || yy2arr3470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3470[1] { yym3475 := z.EncBinary() _ = yym3475 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3470[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3476 := z.EncBinary() _ = yym3476 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3470 || yy2arr3470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3478 := z.EncBinary() _ = yym3478 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3479 := z.EncBinary() _ = yym3479 if false { } else { r.EncodeBool(bool(x.Stdin)) } } if yyr3470 || yy2arr3470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3481 := z.EncBinary() _ = yym3481 if false { } else { r.EncodeBool(bool(x.Stdout)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3482 := z.EncBinary() _ = yym3482 if false { } else { r.EncodeBool(bool(x.Stdout)) } } if yyr3470 || yy2arr3470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3484 := z.EncBinary() _ = yym3484 if false { } else { r.EncodeBool(bool(x.Stderr)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3485 := z.EncBinary() _ = yym3485 if false { } else { r.EncodeBool(bool(x.Stderr)) } } if yyr3470 || yy2arr3470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3487 := z.EncBinary() _ = yym3487 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TTY")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3488 := z.EncBinary() _ = yym3488 if false { } else { r.EncodeBool(bool(x.TTY)) } } if yyr3470 || yy2arr3470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3490 := z.EncBinary() _ = yym3490 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) yym3491 := z.EncBinary() _ = yym3491 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } if yyr3470 || yy2arr3470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Command == nil { r.EncodeNil() } else { yym3493 := z.EncBinary() _ = yym3493 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 { yym3494 := z.EncBinary() _ = yym3494 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } if yyr3470 || yy2arr3470 { 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 yym3495 := z.DecBinary() _ = yym3495 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3496 := r.ContainerType() if yyct3496 == codecSelferValueTypeMap1234 { yyl3496 := r.ReadMapStart() if yyl3496 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3496, d) } } else if yyct3496 == codecSelferValueTypeArray1234 { yyl3496 := r.ReadArrayStart() if yyl3496 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3496, 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 yys3497Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3497Slc var yyhl3497 bool = l >= 0 for yyj3497 := 0; ; yyj3497++ { if yyhl3497 { if yyj3497 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3497Slc = r.DecodeBytes(yys3497Slc, true, true) yys3497 := string(yys3497Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3497 { 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 { yyv3505 := &x.Command yym3506 := z.DecBinary() _ = yym3506 if false { } else { z.F.DecSliceStringX(yyv3505, false, d) } } default: z.DecStructFieldNotFound(-1, yys3497) } // end switch yys3497 } // end for yyj3497 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 yyj3507 int var yyb3507 bool var yyhl3507 bool = l >= 0 yyj3507++ if yyhl3507 { yyb3507 = yyj3507 > l } else { yyb3507 = r.CheckBreak() } if yyb3507 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3507++ if yyhl3507 { yyb3507 = yyj3507 > l } else { yyb3507 = r.CheckBreak() } if yyb3507 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3507++ if yyhl3507 { yyb3507 = yyj3507 > l } else { yyb3507 = r.CheckBreak() } if yyb3507 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj3507++ if yyhl3507 { yyb3507 = yyj3507 > l } else { yyb3507 = r.CheckBreak() } if yyb3507 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } yyj3507++ if yyhl3507 { yyb3507 = yyj3507 > l } else { yyb3507 = r.CheckBreak() } if yyb3507 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } yyj3507++ if yyhl3507 { yyb3507 = yyj3507 > l } else { yyb3507 = r.CheckBreak() } if yyb3507 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } yyj3507++ if yyhl3507 { yyb3507 = yyj3507 > l } else { yyb3507 = r.CheckBreak() } if yyb3507 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } yyj3507++ if yyhl3507 { yyb3507 = yyj3507 > l } else { yyb3507 = r.CheckBreak() } if yyb3507 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv3515 := &x.Command yym3516 := z.DecBinary() _ = yym3516 if false { } else { z.F.DecSliceStringX(yyv3515, false, d) } } for { yyj3507++ if yyhl3507 { yyb3507 = yyj3507 > l } else { yyb3507 = r.CheckBreak() } if yyb3507 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3507-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 { yym3517 := z.EncBinary() _ = yym3517 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3518 := !z.EncBinary() yy2arr3518 := z.EncBasicHandle().StructToArray var yyq3518 [3]bool _, _, _ = yysep3518, yyq3518, yy2arr3518 const yyr3518 bool = false yyq3518[0] = x.Kind != "" yyq3518[1] = x.APIVersion != "" var yynn3518 int if yyr3518 || yy2arr3518 { r.EncodeArrayStart(3) } else { yynn3518 = 1 for _, b := range yyq3518 { if b { yynn3518++ } } r.EncodeMapStart(yynn3518) yynn3518 = 0 } if yyr3518 || yy2arr3518 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3518[0] { yym3520 := z.EncBinary() _ = yym3520 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3518[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3521 := z.EncBinary() _ = yym3521 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3518 || yy2arr3518 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3518[1] { yym3523 := z.EncBinary() _ = yym3523 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3518[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3524 := z.EncBinary() _ = yym3524 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3518 || yy2arr3518 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3526 := z.EncBinary() _ = yym3526 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) yym3527 := z.EncBinary() _ = yym3527 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr3518 || yy2arr3518 { 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 yym3528 := z.DecBinary() _ = yym3528 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3529 := r.ContainerType() if yyct3529 == codecSelferValueTypeMap1234 { yyl3529 := r.ReadMapStart() if yyl3529 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3529, d) } } else if yyct3529 == codecSelferValueTypeArray1234 { yyl3529 := r.ReadArrayStart() if yyl3529 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3529, 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 yys3530Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3530Slc var yyhl3530 bool = l >= 0 for yyj3530 := 0; ; yyj3530++ { if yyhl3530 { if yyj3530 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3530Slc = r.DecodeBytes(yys3530Slc, true, true) yys3530 := string(yys3530Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3530 { 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, yys3530) } // end switch yys3530 } // end for yyj3530 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 yyj3534 int var yyb3534 bool var yyhl3534 bool = l >= 0 yyj3534++ if yyhl3534 { yyb3534 = yyj3534 > l } else { yyb3534 = r.CheckBreak() } if yyb3534 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3534++ if yyhl3534 { yyb3534 = yyj3534 > l } else { yyb3534 = r.CheckBreak() } if yyb3534 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3534++ if yyhl3534 { yyb3534 = yyj3534 > l } else { yyb3534 = r.CheckBreak() } if yyb3534 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj3534++ if yyhl3534 { yyb3534 = yyj3534 > l } else { yyb3534 = r.CheckBreak() } if yyb3534 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3534-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 { yym3538 := z.EncBinary() _ = yym3538 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3539 := !z.EncBinary() yy2arr3539 := z.EncBasicHandle().StructToArray var yyq3539 [3]bool _, _, _ = yysep3539, yyq3539, yy2arr3539 const yyr3539 bool = false yyq3539[0] = x.Kind != "" yyq3539[1] = x.APIVersion != "" var yynn3539 int if yyr3539 || yy2arr3539 { r.EncodeArrayStart(3) } else { yynn3539 = 1 for _, b := range yyq3539 { if b { yynn3539++ } } r.EncodeMapStart(yynn3539) yynn3539 = 0 } if yyr3539 || yy2arr3539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3539[0] { yym3541 := z.EncBinary() _ = yym3541 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3539[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3542 := z.EncBinary() _ = yym3542 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3539 || yy2arr3539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3539[1] { yym3544 := z.EncBinary() _ = yym3544 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3539[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3545 := z.EncBinary() _ = yym3545 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3539 || yy2arr3539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3547 := z.EncBinary() _ = yym3547 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) yym3548 := z.EncBinary() _ = yym3548 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr3539 || yy2arr3539 { 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 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 *NodeProxyOptions) 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 "Path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3551) } // end switch yys3551 } // end for yyj3551 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 yyj3555 int var yyb3555 bool var yyhl3555 bool = l >= 0 yyj3555++ if yyhl3555 { yyb3555 = yyj3555 > l } else { yyb3555 = r.CheckBreak() } if yyb3555 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3555++ if yyhl3555 { yyb3555 = yyj3555 > l } else { yyb3555 = r.CheckBreak() } if yyb3555 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3555++ if yyhl3555 { yyb3555 = yyj3555 > l } else { yyb3555 = r.CheckBreak() } if yyb3555 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj3555++ if yyhl3555 { yyb3555 = yyj3555 > l } else { yyb3555 = r.CheckBreak() } if yyb3555 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3555-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 { yym3559 := z.EncBinary() _ = yym3559 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3560 := !z.EncBinary() yy2arr3560 := z.EncBasicHandle().StructToArray var yyq3560 [3]bool _, _, _ = yysep3560, yyq3560, yy2arr3560 const yyr3560 bool = false yyq3560[0] = x.Kind != "" yyq3560[1] = x.APIVersion != "" var yynn3560 int if yyr3560 || yy2arr3560 { r.EncodeArrayStart(3) } else { yynn3560 = 1 for _, b := range yyq3560 { if b { yynn3560++ } } r.EncodeMapStart(yynn3560) yynn3560 = 0 } if yyr3560 || yy2arr3560 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3560[0] { yym3562 := z.EncBinary() _ = yym3562 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3560[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3563 := z.EncBinary() _ = yym3563 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3560 || yy2arr3560 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3560[1] { yym3565 := z.EncBinary() _ = yym3565 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3560[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3566 := z.EncBinary() _ = yym3566 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3560 || yy2arr3560 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3568 := z.EncBinary() _ = yym3568 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) yym3569 := z.EncBinary() _ = yym3569 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr3560 || yy2arr3560 { 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 yym3570 := z.DecBinary() _ = yym3570 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3571 := r.ContainerType() if yyct3571 == codecSelferValueTypeMap1234 { yyl3571 := r.ReadMapStart() if yyl3571 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3571, d) } } else if yyct3571 == codecSelferValueTypeArray1234 { yyl3571 := r.ReadArrayStart() if yyl3571 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3571, 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 yys3572Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3572Slc var yyhl3572 bool = l >= 0 for yyj3572 := 0; ; yyj3572++ { if yyhl3572 { if yyj3572 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3572Slc = r.DecodeBytes(yys3572Slc, true, true) yys3572 := string(yys3572Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3572 { 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, yys3572) } // end switch yys3572 } // end for yyj3572 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 yyj3576 int var yyb3576 bool var yyhl3576 bool = l >= 0 yyj3576++ if yyhl3576 { yyb3576 = yyj3576 > l } else { yyb3576 = r.CheckBreak() } if yyb3576 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3576++ if yyhl3576 { yyb3576 = yyj3576 > l } else { yyb3576 = r.CheckBreak() } if yyb3576 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3576++ if yyhl3576 { yyb3576 = yyj3576 > l } else { yyb3576 = r.CheckBreak() } if yyb3576 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj3576++ if yyhl3576 { yyb3576 = yyj3576 > l } else { yyb3576 = r.CheckBreak() } if yyb3576 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3576-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 { yym3580 := z.EncBinary() _ = yym3580 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3581 := !z.EncBinary() yy2arr3581 := z.EncBasicHandle().StructToArray var yyq3581 [5]bool _, _, _ = yysep3581, yyq3581, yy2arr3581 const yyr3581 bool = false yyq3581[4] = x.Controller != nil var yynn3581 int if yyr3581 || yy2arr3581 { r.EncodeArrayStart(5) } else { yynn3581 = 4 for _, b := range yyq3581 { if b { yynn3581++ } } r.EncodeMapStart(yynn3581) yynn3581 = 0 } if yyr3581 || yy2arr3581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3583 := z.EncBinary() _ = yym3583 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) yym3584 := z.EncBinary() _ = yym3584 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } if yyr3581 || yy2arr3581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3586 := z.EncBinary() _ = yym3586 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) yym3587 := z.EncBinary() _ = yym3587 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } if yyr3581 || yy2arr3581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3589 := z.EncBinary() _ = yym3589 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) yym3590 := z.EncBinary() _ = yym3590 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr3581 || yy2arr3581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3592 := z.EncBinary() _ = yym3592 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) yym3593 := z.EncBinary() _ = yym3593 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } if yyr3581 || yy2arr3581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3581[4] { if x.Controller == nil { r.EncodeNil() } else { yy3595 := *x.Controller yym3596 := z.EncBinary() _ = yym3596 if false { } else { r.EncodeBool(bool(yy3595)) } } } else { r.EncodeNil() } } else { if yyq3581[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("controller")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Controller == nil { r.EncodeNil() } else { yy3597 := *x.Controller yym3598 := z.EncBinary() _ = yym3598 if false { } else { r.EncodeBool(bool(yy3597)) } } } } if yyr3581 || yy2arr3581 { 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 yym3599 := z.DecBinary() _ = yym3599 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3600 := r.ContainerType() if yyct3600 == codecSelferValueTypeMap1234 { yyl3600 := r.ReadMapStart() if yyl3600 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3600, d) } } else if yyct3600 == codecSelferValueTypeArray1234 { yyl3600 := r.ReadArrayStart() if yyl3600 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3600, 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 yys3601Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3601Slc var yyhl3601 bool = l >= 0 for yyj3601 := 0; ; yyj3601++ { if yyhl3601 { if yyj3601 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3601Slc = r.DecodeBytes(yys3601Slc, true, true) yys3601 := string(yys3601Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3601 { 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) } yym3607 := z.DecBinary() _ = yym3607 if false { } else { *((*bool)(x.Controller)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3601) } // end switch yys3601 } // end for yyj3601 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 yyj3608 int var yyb3608 bool var yyhl3608 bool = l >= 0 yyj3608++ if yyhl3608 { yyb3608 = yyj3608 > l } else { yyb3608 = r.CheckBreak() } if yyb3608 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3608++ if yyhl3608 { yyb3608 = yyj3608 > l } else { yyb3608 = r.CheckBreak() } if yyb3608 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3608++ if yyhl3608 { yyb3608 = yyj3608 > l } else { yyb3608 = r.CheckBreak() } if yyb3608 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj3608++ if yyhl3608 { yyb3608 = yyj3608 > l } else { yyb3608 = r.CheckBreak() } if yyb3608 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } yyj3608++ if yyhl3608 { yyb3608 = yyj3608 > l } else { yyb3608 = r.CheckBreak() } if yyb3608 { 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) } yym3614 := z.DecBinary() _ = yym3614 if false { } else { *((*bool)(x.Controller)) = r.DecodeBool() } } for { yyj3608++ if yyhl3608 { yyb3608 = yyj3608 > l } else { yyb3608 = r.CheckBreak() } if yyb3608 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3608-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 { yym3615 := z.EncBinary() _ = yym3615 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3616 := !z.EncBinary() yy2arr3616 := z.EncBasicHandle().StructToArray var yyq3616 [7]bool _, _, _ = yysep3616, yyq3616, yy2arr3616 const yyr3616 bool = false yyq3616[0] = x.Kind != "" yyq3616[1] = x.Namespace != "" yyq3616[2] = x.Name != "" yyq3616[3] = x.UID != "" yyq3616[4] = x.APIVersion != "" yyq3616[5] = x.ResourceVersion != "" yyq3616[6] = x.FieldPath != "" var yynn3616 int if yyr3616 || yy2arr3616 { r.EncodeArrayStart(7) } else { yynn3616 = 0 for _, b := range yyq3616 { if b { yynn3616++ } } r.EncodeMapStart(yynn3616) yynn3616 = 0 } if yyr3616 || yy2arr3616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3616[0] { yym3618 := z.EncBinary() _ = yym3618 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3616[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3619 := z.EncBinary() _ = yym3619 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3616 || yy2arr3616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3616[1] { yym3621 := z.EncBinary() _ = yym3621 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3616[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3622 := z.EncBinary() _ = yym3622 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } } if yyr3616 || yy2arr3616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3616[2] { yym3624 := z.EncBinary() _ = yym3624 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3616[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3625 := z.EncBinary() _ = yym3625 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } if yyr3616 || yy2arr3616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3616[3] { yym3627 := z.EncBinary() _ = yym3627 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 yyq3616[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3628 := z.EncBinary() _ = yym3628 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } } if yyr3616 || yy2arr3616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3616[4] { yym3630 := z.EncBinary() _ = yym3630 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3616[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3631 := z.EncBinary() _ = yym3631 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3616 || yy2arr3616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3616[5] { yym3633 := z.EncBinary() _ = yym3633 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3616[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3634 := z.EncBinary() _ = yym3634 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } if yyr3616 || yy2arr3616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3616[6] { yym3636 := z.EncBinary() _ = yym3636 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3616[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3637 := z.EncBinary() _ = yym3637 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } } if yyr3616 || yy2arr3616 { 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 yym3638 := z.DecBinary() _ = yym3638 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3639 := r.ContainerType() if yyct3639 == codecSelferValueTypeMap1234 { yyl3639 := r.ReadMapStart() if yyl3639 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3639, d) } } else if yyct3639 == codecSelferValueTypeArray1234 { yyl3639 := r.ReadArrayStart() if yyl3639 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3639, 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 yys3640Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3640Slc var yyhl3640 bool = l >= 0 for yyj3640 := 0; ; yyj3640++ { if yyhl3640 { if yyj3640 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3640Slc = r.DecodeBytes(yys3640Slc, true, true) yys3640 := string(yys3640Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3640 { 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, yys3640) } // end switch yys3640 } // end for yyj3640 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 yyj3648 int var yyb3648 bool var yyhl3648 bool = l >= 0 yyj3648++ if yyhl3648 { yyb3648 = yyj3648 > l } else { yyb3648 = r.CheckBreak() } if yyb3648 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3648++ if yyhl3648 { yyb3648 = yyj3648 > l } else { yyb3648 = r.CheckBreak() } if yyb3648 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Namespace = "" } else { x.Namespace = string(r.DecodeString()) } yyj3648++ if yyhl3648 { yyb3648 = yyj3648 > l } else { yyb3648 = r.CheckBreak() } if yyb3648 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj3648++ if yyhl3648 { yyb3648 = yyj3648 > l } else { yyb3648 = r.CheckBreak() } if yyb3648 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } yyj3648++ if yyhl3648 { yyb3648 = yyj3648 > l } else { yyb3648 = r.CheckBreak() } if yyb3648 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3648++ if yyhl3648 { yyb3648 = yyj3648 > l } else { yyb3648 = r.CheckBreak() } if yyb3648 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj3648++ if yyhl3648 { yyb3648 = yyj3648 > l } else { yyb3648 = r.CheckBreak() } if yyb3648 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldPath = "" } else { x.FieldPath = string(r.DecodeString()) } for { yyj3648++ if yyhl3648 { yyb3648 = yyj3648 > l } else { yyb3648 = r.CheckBreak() } if yyb3648 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3648-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 { yym3656 := z.EncBinary() _ = yym3656 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3657 := !z.EncBinary() yy2arr3657 := z.EncBasicHandle().StructToArray var yyq3657 [1]bool _, _, _ = yysep3657, yyq3657, yy2arr3657 const yyr3657 bool = false var yynn3657 int if yyr3657 || yy2arr3657 { r.EncodeArrayStart(1) } else { yynn3657 = 1 for _, b := range yyq3657 { if b { yynn3657++ } } r.EncodeMapStart(yynn3657) yynn3657 = 0 } if yyr3657 || yy2arr3657 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3659 := z.EncBinary() _ = yym3659 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) yym3660 := z.EncBinary() _ = yym3660 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr3657 || yy2arr3657 { 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 yym3661 := z.DecBinary() _ = yym3661 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3662 := r.ContainerType() if yyct3662 == codecSelferValueTypeMap1234 { yyl3662 := r.ReadMapStart() if yyl3662 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3662, d) } } else if yyct3662 == codecSelferValueTypeArray1234 { yyl3662 := r.ReadArrayStart() if yyl3662 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3662, 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 yys3663Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3663Slc var yyhl3663 bool = l >= 0 for yyj3663 := 0; ; yyj3663++ { if yyhl3663 { if yyj3663 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3663Slc = r.DecodeBytes(yys3663Slc, true, true) yys3663 := string(yys3663Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3663 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3663) } // end switch yys3663 } // end for yyj3663 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 yyj3665 int var yyb3665 bool var yyhl3665 bool = l >= 0 yyj3665++ if yyhl3665 { yyb3665 = yyj3665 > l } else { yyb3665 = r.CheckBreak() } if yyb3665 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } for { yyj3665++ if yyhl3665 { yyb3665 = yyj3665 > l } else { yyb3665 = r.CheckBreak() } if yyb3665 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3665-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 { yym3667 := z.EncBinary() _ = yym3667 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3668 := !z.EncBinary() yy2arr3668 := z.EncBasicHandle().StructToArray var yyq3668 [3]bool _, _, _ = yysep3668, yyq3668, yy2arr3668 const yyr3668 bool = false yyq3668[0] = x.Kind != "" yyq3668[1] = x.APIVersion != "" yyq3668[2] = true var yynn3668 int if yyr3668 || yy2arr3668 { r.EncodeArrayStart(3) } else { yynn3668 = 0 for _, b := range yyq3668 { if b { yynn3668++ } } r.EncodeMapStart(yynn3668) yynn3668 = 0 } if yyr3668 || yy2arr3668 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3668[0] { yym3670 := z.EncBinary() _ = yym3670 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3668[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3671 := z.EncBinary() _ = yym3671 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3668 || yy2arr3668 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3668[1] { yym3673 := z.EncBinary() _ = yym3673 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3668[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3674 := z.EncBinary() _ = yym3674 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3668 || yy2arr3668 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3668[2] { yy3676 := &x.Reference yy3676.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3668[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3677 := &x.Reference yy3677.CodecEncodeSelf(e) } } if yyr3668 || yy2arr3668 { 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 yym3678 := z.DecBinary() _ = yym3678 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3679 := r.ContainerType() if yyct3679 == codecSelferValueTypeMap1234 { yyl3679 := r.ReadMapStart() if yyl3679 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3679, d) } } else if yyct3679 == codecSelferValueTypeArray1234 { yyl3679 := r.ReadArrayStart() if yyl3679 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3679, 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 yys3680Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3680Slc var yyhl3680 bool = l >= 0 for yyj3680 := 0; ; yyj3680++ { if yyhl3680 { if yyj3680 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3680Slc = r.DecodeBytes(yys3680Slc, true, true) yys3680 := string(yys3680Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3680 { 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 { yyv3683 := &x.Reference yyv3683.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3680) } // end switch yys3680 } // end for yyj3680 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 yyj3684 int var yyb3684 bool var yyhl3684 bool = l >= 0 yyj3684++ if yyhl3684 { yyb3684 = yyj3684 > l } else { yyb3684 = r.CheckBreak() } if yyb3684 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3684++ if yyhl3684 { yyb3684 = yyj3684 > l } else { yyb3684 = r.CheckBreak() } if yyb3684 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3684++ if yyhl3684 { yyb3684 = yyj3684 > l } else { yyb3684 = r.CheckBreak() } if yyb3684 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { yyv3687 := &x.Reference yyv3687.CodecDecodeSelf(d) } for { yyj3684++ if yyhl3684 { yyb3684 = yyj3684 > l } else { yyb3684 = r.CheckBreak() } if yyb3684 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3684-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 { yym3688 := z.EncBinary() _ = yym3688 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3689 := !z.EncBinary() yy2arr3689 := z.EncBasicHandle().StructToArray var yyq3689 [2]bool _, _, _ = yysep3689, yyq3689, yy2arr3689 const yyr3689 bool = false yyq3689[0] = x.Component != "" yyq3689[1] = x.Host != "" var yynn3689 int if yyr3689 || yy2arr3689 { r.EncodeArrayStart(2) } else { yynn3689 = 0 for _, b := range yyq3689 { if b { yynn3689++ } } r.EncodeMapStart(yynn3689) yynn3689 = 0 } if yyr3689 || yy2arr3689 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3689[0] { yym3691 := z.EncBinary() _ = yym3691 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3689[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("component")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3692 := z.EncBinary() _ = yym3692 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } } if yyr3689 || yy2arr3689 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3689[1] { yym3694 := z.EncBinary() _ = yym3694 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3689[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3695 := z.EncBinary() _ = yym3695 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } if yyr3689 || yy2arr3689 { 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 yym3696 := z.DecBinary() _ = yym3696 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3697 := r.ContainerType() if yyct3697 == codecSelferValueTypeMap1234 { yyl3697 := r.ReadMapStart() if yyl3697 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3697, d) } } else if yyct3697 == codecSelferValueTypeArray1234 { yyl3697 := r.ReadArrayStart() if yyl3697 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3697, 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 yys3698Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3698Slc var yyhl3698 bool = l >= 0 for yyj3698 := 0; ; yyj3698++ { if yyhl3698 { if yyj3698 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3698Slc = r.DecodeBytes(yys3698Slc, true, true) yys3698 := string(yys3698Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3698 { 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, yys3698) } // end switch yys3698 } // end for yyj3698 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 yyj3701 int var yyb3701 bool var yyhl3701 bool = l >= 0 yyj3701++ if yyhl3701 { yyb3701 = yyj3701 > l } else { yyb3701 = r.CheckBreak() } if yyb3701 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Component = "" } else { x.Component = string(r.DecodeString()) } yyj3701++ if yyhl3701 { yyb3701 = yyj3701 > l } else { yyb3701 = r.CheckBreak() } if yyb3701 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } for { yyj3701++ if yyhl3701 { yyb3701 = yyj3701 > l } else { yyb3701 = r.CheckBreak() } if yyb3701 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3701-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 { yym3704 := z.EncBinary() _ = yym3704 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3705 := !z.EncBinary() yy2arr3705 := z.EncBasicHandle().StructToArray var yyq3705 [11]bool _, _, _ = yysep3705, yyq3705, yy2arr3705 const yyr3705 bool = false yyq3705[0] = x.Kind != "" yyq3705[1] = x.APIVersion != "" yyq3705[2] = true yyq3705[3] = true yyq3705[4] = x.Reason != "" yyq3705[5] = x.Message != "" yyq3705[6] = true yyq3705[7] = true yyq3705[8] = true yyq3705[9] = x.Count != 0 yyq3705[10] = x.Type != "" var yynn3705 int if yyr3705 || yy2arr3705 { r.EncodeArrayStart(11) } else { yynn3705 = 0 for _, b := range yyq3705 { if b { yynn3705++ } } r.EncodeMapStart(yynn3705) yynn3705 = 0 } if yyr3705 || yy2arr3705 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3705[0] { yym3707 := z.EncBinary() _ = yym3707 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3705[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3708 := z.EncBinary() _ = yym3708 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3705 || yy2arr3705 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3705[1] { yym3710 := z.EncBinary() _ = yym3710 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3705[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3711 := z.EncBinary() _ = yym3711 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3705 || yy2arr3705 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3705[2] { yy3713 := &x.ObjectMeta yy3713.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3705[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3714 := &x.ObjectMeta yy3714.CodecEncodeSelf(e) } } if yyr3705 || yy2arr3705 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3705[3] { yy3716 := &x.InvolvedObject yy3716.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3705[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3717 := &x.InvolvedObject yy3717.CodecEncodeSelf(e) } } if yyr3705 || yy2arr3705 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3705[4] { yym3719 := z.EncBinary() _ = yym3719 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3705[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3720 := z.EncBinary() _ = yym3720 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr3705 || yy2arr3705 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3705[5] { yym3722 := z.EncBinary() _ = yym3722 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3705[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3723 := z.EncBinary() _ = yym3723 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr3705 || yy2arr3705 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3705[6] { yy3725 := &x.Source yy3725.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3705[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("source")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3726 := &x.Source yy3726.CodecEncodeSelf(e) } } if yyr3705 || yy2arr3705 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3705[7] { yy3728 := &x.FirstTimestamp yym3729 := z.EncBinary() _ = yym3729 if false { } else if z.HasExtensions() && z.EncExt(yy3728) { } else if yym3729 { z.EncBinaryMarshal(yy3728) } else if !yym3729 && z.IsJSONHandle() { z.EncJSONMarshal(yy3728) } else { z.EncFallback(yy3728) } } else { r.EncodeNil() } } else { if yyq3705[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3730 := &x.FirstTimestamp yym3731 := z.EncBinary() _ = yym3731 if false { } else if z.HasExtensions() && z.EncExt(yy3730) { } else if yym3731 { z.EncBinaryMarshal(yy3730) } else if !yym3731 && z.IsJSONHandle() { z.EncJSONMarshal(yy3730) } else { z.EncFallback(yy3730) } } } if yyr3705 || yy2arr3705 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3705[8] { yy3733 := &x.LastTimestamp yym3734 := z.EncBinary() _ = yym3734 if false { } else if z.HasExtensions() && z.EncExt(yy3733) { } else if yym3734 { z.EncBinaryMarshal(yy3733) } else if !yym3734 && z.IsJSONHandle() { z.EncJSONMarshal(yy3733) } else { z.EncFallback(yy3733) } } else { r.EncodeNil() } } else { if yyq3705[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3735 := &x.LastTimestamp yym3736 := z.EncBinary() _ = yym3736 if false { } else if z.HasExtensions() && z.EncExt(yy3735) { } else if yym3736 { z.EncBinaryMarshal(yy3735) } else if !yym3736 && z.IsJSONHandle() { z.EncJSONMarshal(yy3735) } else { z.EncFallback(yy3735) } } } if yyr3705 || yy2arr3705 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3705[9] { yym3738 := z.EncBinary() _ = yym3738 if false { } else { r.EncodeInt(int64(x.Count)) } } else { r.EncodeInt(0) } } else { if yyq3705[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("count")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3739 := z.EncBinary() _ = yym3739 if false { } else { r.EncodeInt(int64(x.Count)) } } } if yyr3705 || yy2arr3705 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3705[10] { yym3741 := z.EncBinary() _ = yym3741 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3705[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3742 := z.EncBinary() _ = yym3742 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } if yyr3705 || yy2arr3705 { 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 yym3743 := z.DecBinary() _ = yym3743 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3744 := r.ContainerType() if yyct3744 == codecSelferValueTypeMap1234 { yyl3744 := r.ReadMapStart() if yyl3744 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3744, d) } } else if yyct3744 == codecSelferValueTypeArray1234 { yyl3744 := r.ReadArrayStart() if yyl3744 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3744, 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 yys3745Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3745Slc var yyhl3745 bool = l >= 0 for yyj3745 := 0; ; yyj3745++ { if yyhl3745 { if yyj3745 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3745Slc = r.DecodeBytes(yys3745Slc, true, true) yys3745 := string(yys3745Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3745 { 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 { yyv3748 := &x.ObjectMeta yyv3748.CodecDecodeSelf(d) } case "involvedObject": if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { yyv3749 := &x.InvolvedObject yyv3749.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 { yyv3752 := &x.Source yyv3752.CodecDecodeSelf(d) } case "firstTimestamp": if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { yyv3753 := &x.FirstTimestamp yym3754 := z.DecBinary() _ = yym3754 if false { } else if z.HasExtensions() && z.DecExt(yyv3753) { } else if yym3754 { z.DecBinaryUnmarshal(yyv3753) } else if !yym3754 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3753) } else { z.DecFallback(yyv3753, false) } } case "lastTimestamp": if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { yyv3755 := &x.LastTimestamp yym3756 := z.DecBinary() _ = yym3756 if false { } else if z.HasExtensions() && z.DecExt(yyv3755) { } else if yym3756 { z.DecBinaryUnmarshal(yyv3755) } else if !yym3756 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3755) } else { z.DecFallback(yyv3755, 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, yys3745) } // end switch yys3745 } // end for yyj3745 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 yyj3759 int var yyb3759 bool var yyhl3759 bool = l >= 0 yyj3759++ if yyhl3759 { yyb3759 = yyj3759 > l } else { yyb3759 = r.CheckBreak() } if yyb3759 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3759++ if yyhl3759 { yyb3759 = yyj3759 > l } else { yyb3759 = r.CheckBreak() } if yyb3759 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3759++ if yyhl3759 { yyb3759 = yyj3759 > l } else { yyb3759 = r.CheckBreak() } if yyb3759 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3762 := &x.ObjectMeta yyv3762.CodecDecodeSelf(d) } yyj3759++ if yyhl3759 { yyb3759 = yyj3759 > l } else { yyb3759 = r.CheckBreak() } if yyb3759 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { yyv3763 := &x.InvolvedObject yyv3763.CodecDecodeSelf(d) } yyj3759++ if yyhl3759 { yyb3759 = yyj3759 > l } else { yyb3759 = r.CheckBreak() } if yyb3759 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj3759++ if yyhl3759 { yyb3759 = yyj3759 > l } else { yyb3759 = r.CheckBreak() } if yyb3759 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj3759++ if yyhl3759 { yyb3759 = yyj3759 > l } else { yyb3759 = r.CheckBreak() } if yyb3759 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Source = EventSource{} } else { yyv3766 := &x.Source yyv3766.CodecDecodeSelf(d) } yyj3759++ if yyhl3759 { yyb3759 = yyj3759 > l } else { yyb3759 = r.CheckBreak() } if yyb3759 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { yyv3767 := &x.FirstTimestamp yym3768 := z.DecBinary() _ = yym3768 if false { } else if z.HasExtensions() && z.DecExt(yyv3767) { } else if yym3768 { z.DecBinaryUnmarshal(yyv3767) } else if !yym3768 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3767) } else { z.DecFallback(yyv3767, false) } } yyj3759++ if yyhl3759 { yyb3759 = yyj3759 > l } else { yyb3759 = r.CheckBreak() } if yyb3759 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { yyv3769 := &x.LastTimestamp yym3770 := z.DecBinary() _ = yym3770 if false { } else if z.HasExtensions() && z.DecExt(yyv3769) { } else if yym3770 { z.DecBinaryUnmarshal(yyv3769) } else if !yym3770 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3769) } else { z.DecFallback(yyv3769, false) } } yyj3759++ if yyhl3759 { yyb3759 = yyj3759 > l } else { yyb3759 = r.CheckBreak() } if yyb3759 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Count = 0 } else { x.Count = int32(r.DecodeInt(32)) } yyj3759++ if yyhl3759 { yyb3759 = yyj3759 > l } else { yyb3759 = r.CheckBreak() } if yyb3759 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } for { yyj3759++ if yyhl3759 { yyb3759 = yyj3759 > l } else { yyb3759 = r.CheckBreak() } if yyb3759 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3759-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 { yym3773 := z.EncBinary() _ = yym3773 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3774 := !z.EncBinary() yy2arr3774 := z.EncBasicHandle().StructToArray var yyq3774 [4]bool _, _, _ = yysep3774, yyq3774, yy2arr3774 const yyr3774 bool = false yyq3774[0] = x.Kind != "" yyq3774[1] = x.APIVersion != "" yyq3774[2] = true var yynn3774 int if yyr3774 || yy2arr3774 { r.EncodeArrayStart(4) } else { yynn3774 = 1 for _, b := range yyq3774 { if b { yynn3774++ } } r.EncodeMapStart(yynn3774) yynn3774 = 0 } if yyr3774 || yy2arr3774 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3774[0] { yym3776 := z.EncBinary() _ = yym3776 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3774[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3777 := z.EncBinary() _ = yym3777 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3774 || yy2arr3774 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3774[1] { yym3779 := z.EncBinary() _ = yym3779 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3774[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3780 := z.EncBinary() _ = yym3780 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3774 || yy2arr3774 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3774[2] { yy3782 := &x.ListMeta yym3783 := z.EncBinary() _ = yym3783 if false { } else if z.HasExtensions() && z.EncExt(yy3782) { } else { z.EncFallback(yy3782) } } else { r.EncodeNil() } } else { if yyq3774[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3784 := &x.ListMeta yym3785 := z.EncBinary() _ = yym3785 if false { } else if z.HasExtensions() && z.EncExt(yy3784) { } else { z.EncFallback(yy3784) } } } if yyr3774 || yy2arr3774 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3787 := z.EncBinary() _ = yym3787 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 { yym3788 := z.EncBinary() _ = yym3788 if false { } else { h.encSliceEvent(([]Event)(x.Items), e) } } } if yyr3774 || yy2arr3774 { 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 yym3789 := z.DecBinary() _ = yym3789 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3790 := r.ContainerType() if yyct3790 == codecSelferValueTypeMap1234 { yyl3790 := r.ReadMapStart() if yyl3790 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3790, d) } } else if yyct3790 == codecSelferValueTypeArray1234 { yyl3790 := r.ReadArrayStart() if yyl3790 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3790, 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 yys3791Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3791Slc var yyhl3791 bool = l >= 0 for yyj3791 := 0; ; yyj3791++ { if yyhl3791 { if yyj3791 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3791Slc = r.DecodeBytes(yys3791Slc, true, true) yys3791 := string(yys3791Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3791 { 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 { yyv3794 := &x.ListMeta yym3795 := z.DecBinary() _ = yym3795 if false { } else if z.HasExtensions() && z.DecExt(yyv3794) { } else { z.DecFallback(yyv3794, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3796 := &x.Items yym3797 := z.DecBinary() _ = yym3797 if false { } else { h.decSliceEvent((*[]Event)(yyv3796), d) } } default: z.DecStructFieldNotFound(-1, yys3791) } // end switch yys3791 } // end for yyj3791 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 yyj3798 int var yyb3798 bool var yyhl3798 bool = l >= 0 yyj3798++ if yyhl3798 { yyb3798 = yyj3798 > l } else { yyb3798 = r.CheckBreak() } if yyb3798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3798++ if yyhl3798 { yyb3798 = yyj3798 > l } else { yyb3798 = r.CheckBreak() } if yyb3798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3798++ if yyhl3798 { yyb3798 = yyj3798 > l } else { yyb3798 = r.CheckBreak() } if yyb3798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3801 := &x.ListMeta yym3802 := z.DecBinary() _ = yym3802 if false { } else if z.HasExtensions() && z.DecExt(yyv3801) { } else { z.DecFallback(yyv3801, false) } } yyj3798++ if yyhl3798 { yyb3798 = yyj3798 > l } else { yyb3798 = r.CheckBreak() } if yyb3798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3803 := &x.Items yym3804 := z.DecBinary() _ = yym3804 if false { } else { h.decSliceEvent((*[]Event)(yyv3803), d) } } for { yyj3798++ if yyhl3798 { yyb3798 = yyj3798 > l } else { yyb3798 = r.CheckBreak() } if yyb3798 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3798-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 { yym3805 := z.EncBinary() _ = yym3805 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3806 := !z.EncBinary() yy2arr3806 := z.EncBasicHandle().StructToArray var yyq3806 [4]bool _, _, _ = yysep3806, yyq3806, yy2arr3806 const yyr3806 bool = false yyq3806[0] = x.Kind != "" yyq3806[1] = x.APIVersion != "" yyq3806[2] = true var yynn3806 int if yyr3806 || yy2arr3806 { r.EncodeArrayStart(4) } else { yynn3806 = 1 for _, b := range yyq3806 { if b { yynn3806++ } } r.EncodeMapStart(yynn3806) yynn3806 = 0 } if yyr3806 || yy2arr3806 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3806[0] { yym3808 := z.EncBinary() _ = yym3808 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3806[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3809 := z.EncBinary() _ = yym3809 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3806 || yy2arr3806 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3806[1] { yym3811 := z.EncBinary() _ = yym3811 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3806[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3812 := z.EncBinary() _ = yym3812 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3806 || yy2arr3806 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3806[2] { yy3814 := &x.ListMeta yym3815 := z.EncBinary() _ = yym3815 if false { } else if z.HasExtensions() && z.EncExt(yy3814) { } else { z.EncFallback(yy3814) } } else { r.EncodeNil() } } else { if yyq3806[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3816 := &x.ListMeta yym3817 := z.EncBinary() _ = yym3817 if false { } else if z.HasExtensions() && z.EncExt(yy3816) { } else { z.EncFallback(yy3816) } } } if yyr3806 || yy2arr3806 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3819 := z.EncBinary() _ = yym3819 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 { yym3820 := z.EncBinary() _ = yym3820 if false { } else { h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e) } } } if yyr3806 || yy2arr3806 { 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 yym3821 := z.DecBinary() _ = yym3821 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3822 := r.ContainerType() if yyct3822 == codecSelferValueTypeMap1234 { yyl3822 := r.ReadMapStart() if yyl3822 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3822, d) } } else if yyct3822 == codecSelferValueTypeArray1234 { yyl3822 := r.ReadArrayStart() if yyl3822 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3822, 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 yys3823Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3823Slc var yyhl3823 bool = l >= 0 for yyj3823 := 0; ; yyj3823++ { if yyhl3823 { if yyj3823 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3823Slc = r.DecodeBytes(yys3823Slc, true, true) yys3823 := string(yys3823Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3823 { 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 { yyv3826 := &x.ListMeta yym3827 := z.DecBinary() _ = yym3827 if false { } else if z.HasExtensions() && z.DecExt(yyv3826) { } else { z.DecFallback(yyv3826, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3828 := &x.Items yym3829 := z.DecBinary() _ = yym3829 if false { } else { h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv3828), d) } } default: z.DecStructFieldNotFound(-1, yys3823) } // end switch yys3823 } // end for yyj3823 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 yyj3830 int var yyb3830 bool var yyhl3830 bool = l >= 0 yyj3830++ if yyhl3830 { yyb3830 = yyj3830 > l } else { yyb3830 = r.CheckBreak() } if yyb3830 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3830++ if yyhl3830 { yyb3830 = yyj3830 > l } else { yyb3830 = r.CheckBreak() } if yyb3830 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3830++ if yyhl3830 { yyb3830 = yyj3830 > l } else { yyb3830 = r.CheckBreak() } if yyb3830 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3833 := &x.ListMeta yym3834 := z.DecBinary() _ = yym3834 if false { } else if z.HasExtensions() && z.DecExt(yyv3833) { } else { z.DecFallback(yyv3833, false) } } yyj3830++ if yyhl3830 { yyb3830 = yyj3830 > l } else { yyb3830 = r.CheckBreak() } if yyb3830 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3835 := &x.Items yym3836 := z.DecBinary() _ = yym3836 if false { } else { h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv3835), d) } } for { yyj3830++ if yyhl3830 { yyb3830 = yyj3830 > l } else { yyb3830 = r.CheckBreak() } if yyb3830 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3830-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3837 := z.EncBinary() _ = yym3837 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 yym3838 := z.DecBinary() _ = yym3838 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 { yym3839 := z.EncBinary() _ = yym3839 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3840 := !z.EncBinary() yy2arr3840 := z.EncBasicHandle().StructToArray var yyq3840 [6]bool _, _, _ = yysep3840, yyq3840, yy2arr3840 const yyr3840 bool = false yyq3840[0] = x.Type != "" yyq3840[1] = len(x.Max) != 0 yyq3840[2] = len(x.Min) != 0 yyq3840[3] = len(x.Default) != 0 yyq3840[4] = len(x.DefaultRequest) != 0 yyq3840[5] = len(x.MaxLimitRequestRatio) != 0 var yynn3840 int if yyr3840 || yy2arr3840 { r.EncodeArrayStart(6) } else { yynn3840 = 0 for _, b := range yyq3840 { if b { yynn3840++ } } r.EncodeMapStart(yynn3840) yynn3840 = 0 } if yyr3840 || yy2arr3840 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3840[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3840[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr3840 || yy2arr3840 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3840[1] { if x.Max == nil { r.EncodeNil() } else { x.Max.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3840[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 yyr3840 || yy2arr3840 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3840[2] { if x.Min == nil { r.EncodeNil() } else { x.Min.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3840[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 yyr3840 || yy2arr3840 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3840[3] { if x.Default == nil { r.EncodeNil() } else { x.Default.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3840[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 yyr3840 || yy2arr3840 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3840[4] { if x.DefaultRequest == nil { r.EncodeNil() } else { x.DefaultRequest.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3840[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 yyr3840 || yy2arr3840 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3840[5] { if x.MaxLimitRequestRatio == nil { r.EncodeNil() } else { x.MaxLimitRequestRatio.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3840[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 yyr3840 || yy2arr3840 { 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 yym3847 := z.DecBinary() _ = yym3847 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3848 := r.ContainerType() if yyct3848 == codecSelferValueTypeMap1234 { yyl3848 := r.ReadMapStart() if yyl3848 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3848, d) } } else if yyct3848 == codecSelferValueTypeArray1234 { yyl3848 := r.ReadArrayStart() if yyl3848 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3848, 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 yys3849Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3849Slc var yyhl3849 bool = l >= 0 for yyj3849 := 0; ; yyj3849++ { if yyhl3849 { if yyj3849 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3849Slc = r.DecodeBytes(yys3849Slc, true, true) yys3849 := string(yys3849Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3849 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = LimitType(r.DecodeString()) } case "max": if r.TryDecodeAsNil() { x.Max = nil } else { yyv3851 := &x.Max yyv3851.CodecDecodeSelf(d) } case "min": if r.TryDecodeAsNil() { x.Min = nil } else { yyv3852 := &x.Min yyv3852.CodecDecodeSelf(d) } case "default": if r.TryDecodeAsNil() { x.Default = nil } else { yyv3853 := &x.Default yyv3853.CodecDecodeSelf(d) } case "defaultRequest": if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { yyv3854 := &x.DefaultRequest yyv3854.CodecDecodeSelf(d) } case "maxLimitRequestRatio": if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { yyv3855 := &x.MaxLimitRequestRatio yyv3855.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3849) } // end switch yys3849 } // end for yyj3849 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 yyj3856 int var yyb3856 bool var yyhl3856 bool = l >= 0 yyj3856++ if yyhl3856 { yyb3856 = yyj3856 > l } else { yyb3856 = r.CheckBreak() } if yyb3856 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = LimitType(r.DecodeString()) } yyj3856++ if yyhl3856 { yyb3856 = yyj3856 > l } else { yyb3856 = r.CheckBreak() } if yyb3856 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Max = nil } else { yyv3858 := &x.Max yyv3858.CodecDecodeSelf(d) } yyj3856++ if yyhl3856 { yyb3856 = yyj3856 > l } else { yyb3856 = r.CheckBreak() } if yyb3856 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Min = nil } else { yyv3859 := &x.Min yyv3859.CodecDecodeSelf(d) } yyj3856++ if yyhl3856 { yyb3856 = yyj3856 > l } else { yyb3856 = r.CheckBreak() } if yyb3856 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Default = nil } else { yyv3860 := &x.Default yyv3860.CodecDecodeSelf(d) } yyj3856++ if yyhl3856 { yyb3856 = yyj3856 > l } else { yyb3856 = r.CheckBreak() } if yyb3856 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { yyv3861 := &x.DefaultRequest yyv3861.CodecDecodeSelf(d) } yyj3856++ if yyhl3856 { yyb3856 = yyj3856 > l } else { yyb3856 = r.CheckBreak() } if yyb3856 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { yyv3862 := &x.MaxLimitRequestRatio yyv3862.CodecDecodeSelf(d) } for { yyj3856++ if yyhl3856 { yyb3856 = yyj3856 > l } else { yyb3856 = r.CheckBreak() } if yyb3856 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3856-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 { yym3863 := z.EncBinary() _ = yym3863 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3864 := !z.EncBinary() yy2arr3864 := z.EncBasicHandle().StructToArray var yyq3864 [1]bool _, _, _ = yysep3864, yyq3864, yy2arr3864 const yyr3864 bool = false var yynn3864 int if yyr3864 || yy2arr3864 { r.EncodeArrayStart(1) } else { yynn3864 = 1 for _, b := range yyq3864 { if b { yynn3864++ } } r.EncodeMapStart(yynn3864) yynn3864 = 0 } if yyr3864 || yy2arr3864 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Limits == nil { r.EncodeNil() } else { yym3866 := z.EncBinary() _ = yym3866 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 { yym3867 := z.EncBinary() _ = yym3867 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) } } } if yyr3864 || yy2arr3864 { 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 yym3868 := z.DecBinary() _ = yym3868 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3869 := r.ContainerType() if yyct3869 == codecSelferValueTypeMap1234 { yyl3869 := r.ReadMapStart() if yyl3869 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3869, d) } } else if yyct3869 == codecSelferValueTypeArray1234 { yyl3869 := r.ReadArrayStart() if yyl3869 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3869, 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 yys3870Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3870Slc var yyhl3870 bool = l >= 0 for yyj3870 := 0; ; yyj3870++ { if yyhl3870 { if yyj3870 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3870Slc = r.DecodeBytes(yys3870Slc, true, true) yys3870 := string(yys3870Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3870 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { yyv3871 := &x.Limits yym3872 := z.DecBinary() _ = yym3872 if false { } else { h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3871), d) } } default: z.DecStructFieldNotFound(-1, yys3870) } // end switch yys3870 } // end for yyj3870 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 yyj3873 int var yyb3873 bool var yyhl3873 bool = l >= 0 yyj3873++ if yyhl3873 { yyb3873 = yyj3873 > l } else { yyb3873 = r.CheckBreak() } if yyb3873 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Limits = nil } else { yyv3874 := &x.Limits yym3875 := z.DecBinary() _ = yym3875 if false { } else { h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3874), d) } } for { yyj3873++ if yyhl3873 { yyb3873 = yyj3873 > l } else { yyb3873 = r.CheckBreak() } if yyb3873 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3873-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 { yym3876 := z.EncBinary() _ = yym3876 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3877 := !z.EncBinary() yy2arr3877 := z.EncBasicHandle().StructToArray var yyq3877 [4]bool _, _, _ = yysep3877, yyq3877, yy2arr3877 const yyr3877 bool = false yyq3877[0] = x.Kind != "" yyq3877[1] = x.APIVersion != "" yyq3877[2] = true yyq3877[3] = true var yynn3877 int if yyr3877 || yy2arr3877 { r.EncodeArrayStart(4) } else { yynn3877 = 0 for _, b := range yyq3877 { if b { yynn3877++ } } r.EncodeMapStart(yynn3877) yynn3877 = 0 } if yyr3877 || yy2arr3877 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3877[0] { yym3879 := z.EncBinary() _ = yym3879 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3877[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3880 := z.EncBinary() _ = yym3880 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3877 || yy2arr3877 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3877[1] { yym3882 := z.EncBinary() _ = yym3882 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3877[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3883 := z.EncBinary() _ = yym3883 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3877 || yy2arr3877 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3877[2] { yy3885 := &x.ObjectMeta yy3885.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3877[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3886 := &x.ObjectMeta yy3886.CodecEncodeSelf(e) } } if yyr3877 || yy2arr3877 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3877[3] { yy3888 := &x.Spec yy3888.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3877[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3889 := &x.Spec yy3889.CodecEncodeSelf(e) } } if yyr3877 || yy2arr3877 { 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 yym3890 := z.DecBinary() _ = yym3890 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3891 := r.ContainerType() if yyct3891 == codecSelferValueTypeMap1234 { yyl3891 := r.ReadMapStart() if yyl3891 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3891, d) } } else if yyct3891 == codecSelferValueTypeArray1234 { yyl3891 := r.ReadArrayStart() if yyl3891 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3891, 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 yys3892Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3892Slc var yyhl3892 bool = l >= 0 for yyj3892 := 0; ; yyj3892++ { if yyhl3892 { if yyj3892 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3892Slc = r.DecodeBytes(yys3892Slc, true, true) yys3892 := string(yys3892Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3892 { 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 { yyv3895 := &x.ObjectMeta yyv3895.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { yyv3896 := &x.Spec yyv3896.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3892) } // end switch yys3892 } // end for yyj3892 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 yyj3897 int var yyb3897 bool var yyhl3897 bool = l >= 0 yyj3897++ if yyhl3897 { yyb3897 = yyj3897 > l } else { yyb3897 = r.CheckBreak() } if yyb3897 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3897++ if yyhl3897 { yyb3897 = yyj3897 > l } else { yyb3897 = r.CheckBreak() } if yyb3897 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3897++ if yyhl3897 { yyb3897 = yyj3897 > l } else { yyb3897 = r.CheckBreak() } if yyb3897 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3900 := &x.ObjectMeta yyv3900.CodecDecodeSelf(d) } yyj3897++ if yyhl3897 { yyb3897 = yyj3897 > l } else { yyb3897 = r.CheckBreak() } if yyb3897 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { yyv3901 := &x.Spec yyv3901.CodecDecodeSelf(d) } for { yyj3897++ if yyhl3897 { yyb3897 = yyj3897 > l } else { yyb3897 = r.CheckBreak() } if yyb3897 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3897-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 { yym3902 := z.EncBinary() _ = yym3902 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3903 := !z.EncBinary() yy2arr3903 := z.EncBasicHandle().StructToArray var yyq3903 [4]bool _, _, _ = yysep3903, yyq3903, yy2arr3903 const yyr3903 bool = false yyq3903[0] = x.Kind != "" yyq3903[1] = x.APIVersion != "" yyq3903[2] = true var yynn3903 int if yyr3903 || yy2arr3903 { r.EncodeArrayStart(4) } else { yynn3903 = 1 for _, b := range yyq3903 { if b { yynn3903++ } } r.EncodeMapStart(yynn3903) yynn3903 = 0 } if yyr3903 || yy2arr3903 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3903[0] { yym3905 := z.EncBinary() _ = yym3905 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3903[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3906 := z.EncBinary() _ = yym3906 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3903 || yy2arr3903 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3903[1] { yym3908 := z.EncBinary() _ = yym3908 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3903[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3909 := z.EncBinary() _ = yym3909 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3903 || yy2arr3903 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3903[2] { yy3911 := &x.ListMeta yym3912 := z.EncBinary() _ = yym3912 if false { } else if z.HasExtensions() && z.EncExt(yy3911) { } else { z.EncFallback(yy3911) } } else { r.EncodeNil() } } else { if yyq3903[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3913 := &x.ListMeta yym3914 := z.EncBinary() _ = yym3914 if false { } else if z.HasExtensions() && z.EncExt(yy3913) { } else { z.EncFallback(yy3913) } } } if yyr3903 || yy2arr3903 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3916 := z.EncBinary() _ = yym3916 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 { yym3917 := z.EncBinary() _ = yym3917 if false { } else { h.encSliceLimitRange(([]LimitRange)(x.Items), e) } } } if yyr3903 || yy2arr3903 { 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 yym3918 := z.DecBinary() _ = yym3918 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3919 := r.ContainerType() if yyct3919 == codecSelferValueTypeMap1234 { yyl3919 := r.ReadMapStart() if yyl3919 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3919, d) } } else if yyct3919 == codecSelferValueTypeArray1234 { yyl3919 := r.ReadArrayStart() if yyl3919 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3919, 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 yys3920Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3920Slc var yyhl3920 bool = l >= 0 for yyj3920 := 0; ; yyj3920++ { if yyhl3920 { if yyj3920 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3920Slc = r.DecodeBytes(yys3920Slc, true, true) yys3920 := string(yys3920Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3920 { 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 { yyv3923 := &x.ListMeta yym3924 := z.DecBinary() _ = yym3924 if false { } else if z.HasExtensions() && z.DecExt(yyv3923) { } else { z.DecFallback(yyv3923, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3925 := &x.Items yym3926 := z.DecBinary() _ = yym3926 if false { } else { h.decSliceLimitRange((*[]LimitRange)(yyv3925), d) } } default: z.DecStructFieldNotFound(-1, yys3920) } // end switch yys3920 } // end for yyj3920 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 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.Kind = "" } else { x.Kind = string(r.DecodeString()) } 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.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } 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.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3930 := &x.ListMeta yym3931 := z.DecBinary() _ = yym3931 if false { } else if z.HasExtensions() && z.DecExt(yyv3930) { } else { z.DecFallback(yyv3930, false) } } 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.Items = nil } else { yyv3932 := &x.Items yym3933 := z.DecBinary() _ = yym3933 if false { } else { h.decSliceLimitRange((*[]LimitRange)(yyv3932), 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 ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3934 := z.EncBinary() _ = yym3934 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 yym3935 := z.DecBinary() _ = yym3935 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 { yym3936 := z.EncBinary() _ = yym3936 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3937 := !z.EncBinary() yy2arr3937 := z.EncBasicHandle().StructToArray var yyq3937 [2]bool _, _, _ = yysep3937, yyq3937, yy2arr3937 const yyr3937 bool = false yyq3937[0] = len(x.Hard) != 0 yyq3937[1] = len(x.Scopes) != 0 var yynn3937 int if yyr3937 || yy2arr3937 { r.EncodeArrayStart(2) } else { yynn3937 = 0 for _, b := range yyq3937 { if b { yynn3937++ } } r.EncodeMapStart(yynn3937) yynn3937 = 0 } if yyr3937 || yy2arr3937 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3937[0] { if x.Hard == nil { r.EncodeNil() } else { x.Hard.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3937[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 yyr3937 || yy2arr3937 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3937[1] { if x.Scopes == nil { r.EncodeNil() } else { yym3940 := z.EncBinary() _ = yym3940 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) } } } else { r.EncodeNil() } } else { if yyq3937[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scopes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Scopes == nil { r.EncodeNil() } else { yym3941 := z.EncBinary() _ = yym3941 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) } } } } if yyr3937 || yy2arr3937 { 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 yym3942 := z.DecBinary() _ = yym3942 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3943 := r.ContainerType() if yyct3943 == codecSelferValueTypeMap1234 { yyl3943 := r.ReadMapStart() if yyl3943 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3943, d) } } else if yyct3943 == codecSelferValueTypeArray1234 { yyl3943 := r.ReadArrayStart() if yyl3943 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3943, 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 yys3944Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3944Slc var yyhl3944 bool = l >= 0 for yyj3944 := 0; ; yyj3944++ { if yyhl3944 { if yyj3944 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3944Slc = r.DecodeBytes(yys3944Slc, true, true) yys3944 := string(yys3944Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3944 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3945 := &x.Hard yyv3945.CodecDecodeSelf(d) } case "scopes": if r.TryDecodeAsNil() { x.Scopes = nil } else { yyv3946 := &x.Scopes yym3947 := z.DecBinary() _ = yym3947 if false { } else { h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv3946), d) } } default: z.DecStructFieldNotFound(-1, yys3944) } // end switch yys3944 } // end for yyj3944 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 yyj3948 int var yyb3948 bool var yyhl3948 bool = l >= 0 yyj3948++ if yyhl3948 { yyb3948 = yyj3948 > l } else { yyb3948 = r.CheckBreak() } if yyb3948 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3949 := &x.Hard yyv3949.CodecDecodeSelf(d) } yyj3948++ if yyhl3948 { yyb3948 = yyj3948 > l } else { yyb3948 = r.CheckBreak() } if yyb3948 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Scopes = nil } else { yyv3950 := &x.Scopes yym3951 := z.DecBinary() _ = yym3951 if false { } else { h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv3950), d) } } for { yyj3948++ if yyhl3948 { yyb3948 = yyj3948 > l } else { yyb3948 = r.CheckBreak() } if yyb3948 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3948-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 { yym3952 := z.EncBinary() _ = yym3952 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3953 := !z.EncBinary() yy2arr3953 := z.EncBasicHandle().StructToArray var yyq3953 [2]bool _, _, _ = yysep3953, yyq3953, yy2arr3953 const yyr3953 bool = false yyq3953[0] = len(x.Hard) != 0 yyq3953[1] = len(x.Used) != 0 var yynn3953 int if yyr3953 || yy2arr3953 { r.EncodeArrayStart(2) } else { yynn3953 = 0 for _, b := range yyq3953 { if b { yynn3953++ } } r.EncodeMapStart(yynn3953) yynn3953 = 0 } if yyr3953 || yy2arr3953 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3953[0] { if x.Hard == nil { r.EncodeNil() } else { x.Hard.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3953[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 yyr3953 || yy2arr3953 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3953[1] { if x.Used == nil { r.EncodeNil() } else { x.Used.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3953[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 yyr3953 || yy2arr3953 { 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 yym3956 := z.DecBinary() _ = yym3956 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3957 := r.ContainerType() if yyct3957 == codecSelferValueTypeMap1234 { yyl3957 := r.ReadMapStart() if yyl3957 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3957, d) } } else if yyct3957 == codecSelferValueTypeArray1234 { yyl3957 := r.ReadArrayStart() if yyl3957 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3957, 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 yys3958Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3958Slc var yyhl3958 bool = l >= 0 for yyj3958 := 0; ; yyj3958++ { if yyhl3958 { if yyj3958 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3958Slc = r.DecodeBytes(yys3958Slc, true, true) yys3958 := string(yys3958Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3958 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3959 := &x.Hard yyv3959.CodecDecodeSelf(d) } case "used": if r.TryDecodeAsNil() { x.Used = nil } else { yyv3960 := &x.Used yyv3960.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3958) } // end switch yys3958 } // end for yyj3958 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 yyj3961 int var yyb3961 bool var yyhl3961 bool = l >= 0 yyj3961++ if yyhl3961 { yyb3961 = yyj3961 > l } else { yyb3961 = r.CheckBreak() } if yyb3961 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3962 := &x.Hard yyv3962.CodecDecodeSelf(d) } yyj3961++ if yyhl3961 { yyb3961 = yyj3961 > l } else { yyb3961 = r.CheckBreak() } if yyb3961 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Used = nil } else { yyv3963 := &x.Used yyv3963.CodecDecodeSelf(d) } for { yyj3961++ if yyhl3961 { yyb3961 = yyj3961 > l } else { yyb3961 = r.CheckBreak() } if yyb3961 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3961-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 { yym3964 := z.EncBinary() _ = yym3964 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3965 := !z.EncBinary() yy2arr3965 := z.EncBasicHandle().StructToArray var yyq3965 [5]bool _, _, _ = yysep3965, yyq3965, yy2arr3965 const yyr3965 bool = false yyq3965[0] = x.Kind != "" yyq3965[1] = x.APIVersion != "" yyq3965[2] = true yyq3965[3] = true yyq3965[4] = true var yynn3965 int if yyr3965 || yy2arr3965 { r.EncodeArrayStart(5) } else { yynn3965 = 0 for _, b := range yyq3965 { if b { yynn3965++ } } r.EncodeMapStart(yynn3965) yynn3965 = 0 } if yyr3965 || yy2arr3965 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3965[0] { yym3967 := z.EncBinary() _ = yym3967 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3965[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3968 := z.EncBinary() _ = yym3968 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3965 || yy2arr3965 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3965[1] { yym3970 := z.EncBinary() _ = yym3970 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3965[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3971 := z.EncBinary() _ = yym3971 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3965 || yy2arr3965 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3965[2] { yy3973 := &x.ObjectMeta yy3973.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3965[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3974 := &x.ObjectMeta yy3974.CodecEncodeSelf(e) } } if yyr3965 || yy2arr3965 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3965[3] { yy3976 := &x.Spec yy3976.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3965[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3977 := &x.Spec yy3977.CodecEncodeSelf(e) } } if yyr3965 || yy2arr3965 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3965[4] { yy3979 := &x.Status yy3979.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3965[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3980 := &x.Status yy3980.CodecEncodeSelf(e) } } if yyr3965 || yy2arr3965 { 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 yym3981 := z.DecBinary() _ = yym3981 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3982 := r.ContainerType() if yyct3982 == codecSelferValueTypeMap1234 { yyl3982 := r.ReadMapStart() if yyl3982 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3982, d) } } else if yyct3982 == codecSelferValueTypeArray1234 { yyl3982 := r.ReadArrayStart() if yyl3982 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3982, 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 yys3983Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3983Slc var yyhl3983 bool = l >= 0 for yyj3983 := 0; ; yyj3983++ { if yyhl3983 { if yyj3983 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3983Slc = r.DecodeBytes(yys3983Slc, true, true) yys3983 := string(yys3983Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3983 { 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 { yyv3986 := &x.ObjectMeta yyv3986.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { yyv3987 := &x.Spec yyv3987.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { yyv3988 := &x.Status yyv3988.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3983) } // end switch yys3983 } // end for yyj3983 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 yyj3989 int var yyb3989 bool var yyhl3989 bool = l >= 0 yyj3989++ if yyhl3989 { yyb3989 = yyj3989 > l } else { yyb3989 = r.CheckBreak() } if yyb3989 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3989++ if yyhl3989 { yyb3989 = yyj3989 > l } else { yyb3989 = r.CheckBreak() } if yyb3989 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3989++ if yyhl3989 { yyb3989 = yyj3989 > l } else { yyb3989 = r.CheckBreak() } if yyb3989 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3992 := &x.ObjectMeta yyv3992.CodecDecodeSelf(d) } yyj3989++ if yyhl3989 { yyb3989 = yyj3989 > l } else { yyb3989 = r.CheckBreak() } if yyb3989 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { yyv3993 := &x.Spec yyv3993.CodecDecodeSelf(d) } yyj3989++ if yyhl3989 { yyb3989 = yyj3989 > l } else { yyb3989 = r.CheckBreak() } if yyb3989 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { yyv3994 := &x.Status yyv3994.CodecDecodeSelf(d) } for { yyj3989++ if yyhl3989 { yyb3989 = yyj3989 > l } else { yyb3989 = r.CheckBreak() } if yyb3989 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3989-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 { yym3995 := z.EncBinary() _ = yym3995 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3996 := !z.EncBinary() yy2arr3996 := z.EncBasicHandle().StructToArray var yyq3996 [4]bool _, _, _ = yysep3996, yyq3996, yy2arr3996 const yyr3996 bool = false yyq3996[0] = x.Kind != "" yyq3996[1] = x.APIVersion != "" yyq3996[2] = true var yynn3996 int if yyr3996 || yy2arr3996 { r.EncodeArrayStart(4) } else { yynn3996 = 1 for _, b := range yyq3996 { if b { yynn3996++ } } r.EncodeMapStart(yynn3996) yynn3996 = 0 } if yyr3996 || yy2arr3996 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3996[0] { yym3998 := z.EncBinary() _ = yym3998 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3996[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3999 := z.EncBinary() _ = yym3999 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3996 || yy2arr3996 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3996[1] { yym4001 := z.EncBinary() _ = yym4001 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3996[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4002 := z.EncBinary() _ = yym4002 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3996 || yy2arr3996 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3996[2] { yy4004 := &x.ListMeta yym4005 := z.EncBinary() _ = yym4005 if false { } else if z.HasExtensions() && z.EncExt(yy4004) { } else { z.EncFallback(yy4004) } } else { r.EncodeNil() } } else { if yyq3996[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4006 := &x.ListMeta yym4007 := z.EncBinary() _ = yym4007 if false { } else if z.HasExtensions() && z.EncExt(yy4006) { } else { z.EncFallback(yy4006) } } } if yyr3996 || yy2arr3996 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym4009 := z.EncBinary() _ = yym4009 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 { yym4010 := z.EncBinary() _ = yym4010 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) } } } if yyr3996 || yy2arr3996 { 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 yym4011 := z.DecBinary() _ = yym4011 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4012 := r.ContainerType() if yyct4012 == codecSelferValueTypeMap1234 { yyl4012 := r.ReadMapStart() if yyl4012 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4012, d) } } else if yyct4012 == codecSelferValueTypeArray1234 { yyl4012 := r.ReadArrayStart() if yyl4012 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4012, 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 yys4013Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4013Slc var yyhl4013 bool = l >= 0 for yyj4013 := 0; ; yyj4013++ { if yyhl4013 { if yyj4013 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4013Slc = r.DecodeBytes(yys4013Slc, true, true) yys4013 := string(yys4013Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4013 { 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 { yyv4016 := &x.ListMeta yym4017 := z.DecBinary() _ = yym4017 if false { } else if z.HasExtensions() && z.DecExt(yyv4016) { } else { z.DecFallback(yyv4016, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv4018 := &x.Items yym4019 := z.DecBinary() _ = yym4019 if false { } else { h.decSliceResourceQuota((*[]ResourceQuota)(yyv4018), d) } } default: z.DecStructFieldNotFound(-1, yys4013) } // end switch yys4013 } // end for yyj4013 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 yyj4020 int var yyb4020 bool var yyhl4020 bool = l >= 0 yyj4020++ if yyhl4020 { yyb4020 = yyj4020 > l } else { yyb4020 = r.CheckBreak() } if yyb4020 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4020++ if yyhl4020 { yyb4020 = yyj4020 > l } else { yyb4020 = r.CheckBreak() } if yyb4020 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4020++ if yyhl4020 { yyb4020 = yyj4020 > l } else { yyb4020 = r.CheckBreak() } if yyb4020 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv4023 := &x.ListMeta yym4024 := z.DecBinary() _ = yym4024 if false { } else if z.HasExtensions() && z.DecExt(yyv4023) { } else { z.DecFallback(yyv4023, false) } } yyj4020++ if yyhl4020 { yyb4020 = yyj4020 > l } else { yyb4020 = r.CheckBreak() } if yyb4020 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv4025 := &x.Items yym4026 := z.DecBinary() _ = yym4026 if false { } else { h.decSliceResourceQuota((*[]ResourceQuota)(yyv4025), d) } } for { yyj4020++ if yyhl4020 { yyb4020 = yyj4020 > l } else { yyb4020 = r.CheckBreak() } if yyb4020 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4020-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 { yym4027 := z.EncBinary() _ = yym4027 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4028 := !z.EncBinary() yy2arr4028 := z.EncBasicHandle().StructToArray var yyq4028 [5]bool _, _, _ = yysep4028, yyq4028, yy2arr4028 const yyr4028 bool = false yyq4028[0] = x.Kind != "" yyq4028[1] = x.APIVersion != "" yyq4028[2] = true yyq4028[3] = len(x.Data) != 0 yyq4028[4] = x.Type != "" var yynn4028 int if yyr4028 || yy2arr4028 { r.EncodeArrayStart(5) } else { yynn4028 = 0 for _, b := range yyq4028 { if b { yynn4028++ } } r.EncodeMapStart(yynn4028) yynn4028 = 0 } if yyr4028 || yy2arr4028 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4028[0] { yym4030 := z.EncBinary() _ = yym4030 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4028[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4031 := z.EncBinary() _ = yym4031 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4028 || yy2arr4028 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4028[1] { yym4033 := z.EncBinary() _ = yym4033 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4028[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4034 := z.EncBinary() _ = yym4034 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4028 || yy2arr4028 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4028[2] { yy4036 := &x.ObjectMeta yy4036.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4028[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4037 := &x.ObjectMeta yy4037.CodecEncodeSelf(e) } } if yyr4028 || yy2arr4028 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4028[3] { if x.Data == nil { r.EncodeNil() } else { yym4039 := z.EncBinary() _ = yym4039 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) } } } else { r.EncodeNil() } } else { if yyq4028[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { yym4040 := z.EncBinary() _ = yym4040 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) } } } } if yyr4028 || yy2arr4028 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4028[4] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4028[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr4028 || yy2arr4028 { 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 yym4042 := z.DecBinary() _ = yym4042 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4043 := r.ContainerType() if yyct4043 == codecSelferValueTypeMap1234 { yyl4043 := r.ReadMapStart() if yyl4043 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4043, d) } } else if yyct4043 == codecSelferValueTypeArray1234 { yyl4043 := r.ReadArrayStart() if yyl4043 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4043, 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 yys4044Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4044Slc var yyhl4044 bool = l >= 0 for yyj4044 := 0; ; yyj4044++ { if yyhl4044 { if yyj4044 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4044Slc = r.DecodeBytes(yys4044Slc, true, true) yys4044 := string(yys4044Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4044 { 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 { yyv4047 := &x.ObjectMeta yyv4047.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv4048 := &x.Data yym4049 := z.DecBinary() _ = yym4049 if false { } else { h.decMapstringSliceuint8((*map[string][]uint8)(yyv4048), d) } } case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = SecretType(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys4044) } // end switch yys4044 } // end for yyj4044 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 yyj4051 int var yyb4051 bool var yyhl4051 bool = l >= 0 yyj4051++ if yyhl4051 { yyb4051 = yyj4051 > l } else { yyb4051 = r.CheckBreak() } if yyb4051 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4051++ if yyhl4051 { yyb4051 = yyj4051 > l } else { yyb4051 = r.CheckBreak() } if yyb4051 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4051++ if yyhl4051 { yyb4051 = yyj4051 > l } else { yyb4051 = r.CheckBreak() } if yyb4051 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4054 := &x.ObjectMeta yyv4054.CodecDecodeSelf(d) } yyj4051++ if yyhl4051 { yyb4051 = yyj4051 > l } else { yyb4051 = r.CheckBreak() } if yyb4051 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv4055 := &x.Data yym4056 := z.DecBinary() _ = yym4056 if false { } else { h.decMapstringSliceuint8((*map[string][]uint8)(yyv4055), d) } } yyj4051++ if yyhl4051 { yyb4051 = yyj4051 > l } else { yyb4051 = r.CheckBreak() } if yyb4051 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = SecretType(r.DecodeString()) } for { yyj4051++ if yyhl4051 { yyb4051 = yyj4051 > l } else { yyb4051 = r.CheckBreak() } if yyb4051 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4051-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym4058 := z.EncBinary() _ = yym4058 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 yym4059 := z.DecBinary() _ = yym4059 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 { yym4060 := z.EncBinary() _ = yym4060 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4061 := !z.EncBinary() yy2arr4061 := z.EncBasicHandle().StructToArray var yyq4061 [4]bool _, _, _ = yysep4061, yyq4061, yy2arr4061 const yyr4061 bool = false yyq4061[0] = x.Kind != "" yyq4061[1] = x.APIVersion != "" yyq4061[2] = true var yynn4061 int if yyr4061 || yy2arr4061 { r.EncodeArrayStart(4) } else { yynn4061 = 1 for _, b := range yyq4061 { if b { yynn4061++ } } r.EncodeMapStart(yynn4061) yynn4061 = 0 } if yyr4061 || yy2arr4061 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4061[0] { yym4063 := z.EncBinary() _ = yym4063 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4061[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4064 := z.EncBinary() _ = yym4064 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4061 || yy2arr4061 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4061[1] { yym4066 := z.EncBinary() _ = yym4066 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4061[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4067 := z.EncBinary() _ = yym4067 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4061 || yy2arr4061 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4061[2] { yy4069 := &x.ListMeta yym4070 := z.EncBinary() _ = yym4070 if false { } else if z.HasExtensions() && z.EncExt(yy4069) { } else { z.EncFallback(yy4069) } } else { r.EncodeNil() } } else { if yyq4061[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4071 := &x.ListMeta yym4072 := z.EncBinary() _ = yym4072 if false { } else if z.HasExtensions() && z.EncExt(yy4071) { } else { z.EncFallback(yy4071) } } } if yyr4061 || yy2arr4061 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym4074 := z.EncBinary() _ = yym4074 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 { yym4075 := z.EncBinary() _ = yym4075 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) } } } if yyr4061 || yy2arr4061 { 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 yym4076 := z.DecBinary() _ = yym4076 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4077 := r.ContainerType() if yyct4077 == codecSelferValueTypeMap1234 { yyl4077 := r.ReadMapStart() if yyl4077 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4077, d) } } else if yyct4077 == codecSelferValueTypeArray1234 { yyl4077 := r.ReadArrayStart() if yyl4077 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4077, 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 yys4078Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4078Slc var yyhl4078 bool = l >= 0 for yyj4078 := 0; ; yyj4078++ { if yyhl4078 { if yyj4078 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4078Slc = r.DecodeBytes(yys4078Slc, true, true) yys4078 := string(yys4078Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4078 { 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 { yyv4081 := &x.ListMeta yym4082 := z.DecBinary() _ = yym4082 if false { } else if z.HasExtensions() && z.DecExt(yyv4081) { } else { z.DecFallback(yyv4081, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv4083 := &x.Items yym4084 := z.DecBinary() _ = yym4084 if false { } else { h.decSliceSecret((*[]Secret)(yyv4083), d) } } default: z.DecStructFieldNotFound(-1, yys4078) } // end switch yys4078 } // end for yyj4078 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 yyj4085 int var yyb4085 bool var yyhl4085 bool = l >= 0 yyj4085++ if yyhl4085 { yyb4085 = yyj4085 > l } else { yyb4085 = r.CheckBreak() } if yyb4085 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4085++ if yyhl4085 { yyb4085 = yyj4085 > l } else { yyb4085 = r.CheckBreak() } if yyb4085 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4085++ if yyhl4085 { yyb4085 = yyj4085 > l } else { yyb4085 = r.CheckBreak() } if yyb4085 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv4088 := &x.ListMeta yym4089 := z.DecBinary() _ = yym4089 if false { } else if z.HasExtensions() && z.DecExt(yyv4088) { } else { z.DecFallback(yyv4088, false) } } yyj4085++ if yyhl4085 { yyb4085 = yyj4085 > l } else { yyb4085 = r.CheckBreak() } if yyb4085 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv4090 := &x.Items yym4091 := z.DecBinary() _ = yym4091 if false { } else { h.decSliceSecret((*[]Secret)(yyv4090), d) } } for { yyj4085++ if yyhl4085 { yyb4085 = yyj4085 > l } else { yyb4085 = r.CheckBreak() } if yyb4085 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4085-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 { yym4092 := z.EncBinary() _ = yym4092 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4093 := !z.EncBinary() yy2arr4093 := z.EncBasicHandle().StructToArray var yyq4093 [4]bool _, _, _ = yysep4093, yyq4093, yy2arr4093 const yyr4093 bool = false yyq4093[0] = x.Kind != "" yyq4093[1] = x.APIVersion != "" yyq4093[2] = true yyq4093[3] = len(x.Data) != 0 var yynn4093 int if yyr4093 || yy2arr4093 { r.EncodeArrayStart(4) } else { yynn4093 = 0 for _, b := range yyq4093 { if b { yynn4093++ } } r.EncodeMapStart(yynn4093) yynn4093 = 0 } if yyr4093 || yy2arr4093 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4093[0] { yym4095 := z.EncBinary() _ = yym4095 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4093[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4096 := z.EncBinary() _ = yym4096 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4093 || yy2arr4093 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4093[1] { yym4098 := z.EncBinary() _ = yym4098 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4093[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4099 := z.EncBinary() _ = yym4099 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4093 || yy2arr4093 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4093[2] { yy4101 := &x.ObjectMeta yy4101.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4093[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4102 := &x.ObjectMeta yy4102.CodecEncodeSelf(e) } } if yyr4093 || yy2arr4093 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4093[3] { if x.Data == nil { r.EncodeNil() } else { yym4104 := z.EncBinary() _ = yym4104 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) } } } else { r.EncodeNil() } } else { if yyq4093[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { yym4105 := z.EncBinary() _ = yym4105 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) } } } } if yyr4093 || yy2arr4093 { 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 yym4106 := z.DecBinary() _ = yym4106 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4107 := r.ContainerType() if yyct4107 == codecSelferValueTypeMap1234 { yyl4107 := r.ReadMapStart() if yyl4107 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4107, d) } } else if yyct4107 == codecSelferValueTypeArray1234 { yyl4107 := r.ReadArrayStart() if yyl4107 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4107, 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 yys4108Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4108Slc var yyhl4108 bool = l >= 0 for yyj4108 := 0; ; yyj4108++ { if yyhl4108 { if yyj4108 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4108Slc = r.DecodeBytes(yys4108Slc, true, true) yys4108 := string(yys4108Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4108 { 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 { yyv4111 := &x.ObjectMeta yyv4111.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv4112 := &x.Data yym4113 := z.DecBinary() _ = yym4113 if false { } else { z.F.DecMapStringStringX(yyv4112, false, d) } } default: z.DecStructFieldNotFound(-1, yys4108) } // end switch yys4108 } // end for yyj4108 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 yyj4114 int var yyb4114 bool var yyhl4114 bool = l >= 0 yyj4114++ if yyhl4114 { yyb4114 = yyj4114 > l } else { yyb4114 = r.CheckBreak() } if yyb4114 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4114++ if yyhl4114 { yyb4114 = yyj4114 > l } else { yyb4114 = r.CheckBreak() } if yyb4114 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4114++ if yyhl4114 { yyb4114 = yyj4114 > l } else { yyb4114 = r.CheckBreak() } if yyb4114 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4117 := &x.ObjectMeta yyv4117.CodecDecodeSelf(d) } yyj4114++ if yyhl4114 { yyb4114 = yyj4114 > l } else { yyb4114 = r.CheckBreak() } if yyb4114 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv4118 := &x.Data yym4119 := z.DecBinary() _ = yym4119 if false { } else { z.F.DecMapStringStringX(yyv4118, false, d) } } for { yyj4114++ if yyhl4114 { yyb4114 = yyj4114 > l } else { yyb4114 = r.CheckBreak() } if yyb4114 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4114-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 { yym4120 := z.EncBinary() _ = yym4120 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4121 := !z.EncBinary() yy2arr4121 := z.EncBasicHandle().StructToArray var yyq4121 [4]bool _, _, _ = yysep4121, yyq4121, yy2arr4121 const yyr4121 bool = false yyq4121[0] = x.Kind != "" yyq4121[1] = x.APIVersion != "" yyq4121[2] = true var yynn4121 int if yyr4121 || yy2arr4121 { r.EncodeArrayStart(4) } else { yynn4121 = 1 for _, b := range yyq4121 { if b { yynn4121++ } } r.EncodeMapStart(yynn4121) yynn4121 = 0 } if yyr4121 || yy2arr4121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4121[0] { yym4123 := z.EncBinary() _ = yym4123 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4121[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4124 := z.EncBinary() _ = yym4124 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4121 || yy2arr4121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4121[1] { yym4126 := z.EncBinary() _ = yym4126 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4121[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4127 := z.EncBinary() _ = yym4127 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4121 || yy2arr4121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4121[2] { yy4129 := &x.ListMeta yym4130 := z.EncBinary() _ = yym4130 if false { } else if z.HasExtensions() && z.EncExt(yy4129) { } else { z.EncFallback(yy4129) } } else { r.EncodeNil() } } else { if yyq4121[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4131 := &x.ListMeta yym4132 := z.EncBinary() _ = yym4132 if false { } else if z.HasExtensions() && z.EncExt(yy4131) { } else { z.EncFallback(yy4131) } } } if yyr4121 || yy2arr4121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym4134 := z.EncBinary() _ = yym4134 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 { yym4135 := z.EncBinary() _ = yym4135 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } if yyr4121 || yy2arr4121 { 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 yym4136 := z.DecBinary() _ = yym4136 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4137 := r.ContainerType() if yyct4137 == codecSelferValueTypeMap1234 { yyl4137 := r.ReadMapStart() if yyl4137 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4137, d) } } else if yyct4137 == codecSelferValueTypeArray1234 { yyl4137 := r.ReadArrayStart() if yyl4137 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4137, 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 yys4138Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4138Slc var yyhl4138 bool = l >= 0 for yyj4138 := 0; ; yyj4138++ { if yyhl4138 { if yyj4138 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4138Slc = r.DecodeBytes(yys4138Slc, true, true) yys4138 := string(yys4138Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4138 { 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 { yyv4141 := &x.ListMeta yym4142 := z.DecBinary() _ = yym4142 if false { } else if z.HasExtensions() && z.DecExt(yyv4141) { } else { z.DecFallback(yyv4141, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv4143 := &x.Items yym4144 := z.DecBinary() _ = yym4144 if false { } else { h.decSliceConfigMap((*[]ConfigMap)(yyv4143), d) } } default: z.DecStructFieldNotFound(-1, yys4138) } // end switch yys4138 } // end for yyj4138 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 yyj4145 int var yyb4145 bool var yyhl4145 bool = l >= 0 yyj4145++ if yyhl4145 { yyb4145 = yyj4145 > l } else { yyb4145 = r.CheckBreak() } if yyb4145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4145++ if yyhl4145 { yyb4145 = yyj4145 > l } else { yyb4145 = r.CheckBreak() } if yyb4145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4145++ if yyhl4145 { yyb4145 = yyj4145 > l } else { yyb4145 = r.CheckBreak() } if yyb4145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv4148 := &x.ListMeta yym4149 := z.DecBinary() _ = yym4149 if false { } else if z.HasExtensions() && z.DecExt(yyv4148) { } else { z.DecFallback(yyv4148, false) } } yyj4145++ if yyhl4145 { yyb4145 = yyj4145 > l } else { yyb4145 = r.CheckBreak() } if yyb4145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv4150 := &x.Items yym4151 := z.DecBinary() _ = yym4151 if false { } else { h.decSliceConfigMap((*[]ConfigMap)(yyv4150), d) } } for { yyj4145++ if yyhl4145 { yyb4145 = yyj4145 > l } else { yyb4145 = r.CheckBreak() } if yyb4145 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4145-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym4152 := z.EncBinary() _ = yym4152 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 yym4153 := z.DecBinary() _ = yym4153 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 yym4154 := z.EncBinary() _ = yym4154 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 yym4155 := z.DecBinary() _ = yym4155 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 { yym4156 := z.EncBinary() _ = yym4156 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4157 := !z.EncBinary() yy2arr4157 := z.EncBasicHandle().StructToArray var yyq4157 [4]bool _, _, _ = yysep4157, yyq4157, yy2arr4157 const yyr4157 bool = false yyq4157[2] = x.Message != "" yyq4157[3] = x.Error != "" var yynn4157 int if yyr4157 || yy2arr4157 { r.EncodeArrayStart(4) } else { yynn4157 = 2 for _, b := range yyq4157 { if b { yynn4157++ } } r.EncodeMapStart(yynn4157) yynn4157 = 0 } if yyr4157 || yy2arr4157 { 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 yyr4157 || yy2arr4157 { 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 yyr4157 || yy2arr4157 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4157[2] { yym4161 := z.EncBinary() _ = yym4161 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4157[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4162 := z.EncBinary() _ = yym4162 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr4157 || yy2arr4157 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4157[3] { yym4164 := z.EncBinary() _ = yym4164 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4157[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("error")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4165 := z.EncBinary() _ = yym4165 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } } if yyr4157 || yy2arr4157 { 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 yym4166 := z.DecBinary() _ = yym4166 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4167 := r.ContainerType() if yyct4167 == codecSelferValueTypeMap1234 { yyl4167 := r.ReadMapStart() if yyl4167 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4167, d) } } else if yyct4167 == codecSelferValueTypeArray1234 { yyl4167 := r.ReadArrayStart() if yyl4167 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4167, 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 yys4168Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4168Slc var yyhl4168 bool = l >= 0 for yyj4168 := 0; ; yyj4168++ { if yyhl4168 { if yyj4168 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4168Slc = r.DecodeBytes(yys4168Slc, true, true) yys4168 := string(yys4168Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4168 { 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, yys4168) } // end switch yys4168 } // end for yyj4168 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 yyj4173 int var yyb4173 bool var yyhl4173 bool = l >= 0 yyj4173++ if yyhl4173 { yyb4173 = yyj4173 > l } else { yyb4173 = r.CheckBreak() } if yyb4173 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ComponentConditionType(r.DecodeString()) } yyj4173++ if yyhl4173 { yyb4173 = yyj4173 > l } else { yyb4173 = r.CheckBreak() } if yyb4173 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj4173++ if yyhl4173 { yyb4173 = yyj4173 > l } else { yyb4173 = r.CheckBreak() } if yyb4173 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj4173++ if yyhl4173 { yyb4173 = yyj4173 > l } else { yyb4173 = r.CheckBreak() } if yyb4173 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Error = "" } else { x.Error = string(r.DecodeString()) } for { yyj4173++ if yyhl4173 { yyb4173 = yyj4173 > l } else { yyb4173 = r.CheckBreak() } if yyb4173 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4173-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 { yym4178 := z.EncBinary() _ = yym4178 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4179 := !z.EncBinary() yy2arr4179 := z.EncBasicHandle().StructToArray var yyq4179 [4]bool _, _, _ = yysep4179, yyq4179, yy2arr4179 const yyr4179 bool = false yyq4179[0] = x.Kind != "" yyq4179[1] = x.APIVersion != "" yyq4179[2] = true yyq4179[3] = len(x.Conditions) != 0 var yynn4179 int if yyr4179 || yy2arr4179 { r.EncodeArrayStart(4) } else { yynn4179 = 0 for _, b := range yyq4179 { if b { yynn4179++ } } r.EncodeMapStart(yynn4179) yynn4179 = 0 } if yyr4179 || yy2arr4179 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4179[0] { yym4181 := z.EncBinary() _ = yym4181 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4179[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4182 := z.EncBinary() _ = yym4182 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4179 || yy2arr4179 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4179[1] { yym4184 := z.EncBinary() _ = yym4184 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4179[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4185 := z.EncBinary() _ = yym4185 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4179 || yy2arr4179 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4179[2] { yy4187 := &x.ObjectMeta yy4187.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4179[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4188 := &x.ObjectMeta yy4188.CodecEncodeSelf(e) } } if yyr4179 || yy2arr4179 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4179[3] { if x.Conditions == nil { r.EncodeNil() } else { yym4190 := z.EncBinary() _ = yym4190 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq4179[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym4191 := z.EncBinary() _ = yym4191 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) } } } } if yyr4179 || yy2arr4179 { 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 yym4192 := z.DecBinary() _ = yym4192 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4193 := r.ContainerType() if yyct4193 == codecSelferValueTypeMap1234 { yyl4193 := r.ReadMapStart() if yyl4193 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4193, d) } } else if yyct4193 == codecSelferValueTypeArray1234 { yyl4193 := r.ReadArrayStart() if yyl4193 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4193, 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 yys4194Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4194Slc var yyhl4194 bool = l >= 0 for yyj4194 := 0; ; yyj4194++ { if yyhl4194 { if yyj4194 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4194Slc = r.DecodeBytes(yys4194Slc, true, true) yys4194 := string(yys4194Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4194 { 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 { yyv4197 := &x.ObjectMeta yyv4197.CodecDecodeSelf(d) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv4198 := &x.Conditions yym4199 := z.DecBinary() _ = yym4199 if false { } else { h.decSliceComponentCondition((*[]ComponentCondition)(yyv4198), d) } } default: z.DecStructFieldNotFound(-1, yys4194) } // end switch yys4194 } // end for yyj4194 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 yyj4200 int var yyb4200 bool var yyhl4200 bool = l >= 0 yyj4200++ if yyhl4200 { yyb4200 = yyj4200 > l } else { yyb4200 = r.CheckBreak() } if yyb4200 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4200++ if yyhl4200 { yyb4200 = yyj4200 > l } else { yyb4200 = r.CheckBreak() } if yyb4200 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4200++ if yyhl4200 { yyb4200 = yyj4200 > l } else { yyb4200 = r.CheckBreak() } if yyb4200 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4203 := &x.ObjectMeta yyv4203.CodecDecodeSelf(d) } yyj4200++ if yyhl4200 { yyb4200 = yyj4200 > l } else { yyb4200 = r.CheckBreak() } if yyb4200 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv4204 := &x.Conditions yym4205 := z.DecBinary() _ = yym4205 if false { } else { h.decSliceComponentCondition((*[]ComponentCondition)(yyv4204), d) } } for { yyj4200++ if yyhl4200 { yyb4200 = yyj4200 > l } else { yyb4200 = r.CheckBreak() } if yyb4200 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4200-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 { yym4206 := z.EncBinary() _ = yym4206 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4207 := !z.EncBinary() yy2arr4207 := z.EncBasicHandle().StructToArray var yyq4207 [4]bool _, _, _ = yysep4207, yyq4207, yy2arr4207 const yyr4207 bool = false yyq4207[0] = x.Kind != "" yyq4207[1] = x.APIVersion != "" yyq4207[2] = true var yynn4207 int if yyr4207 || yy2arr4207 { r.EncodeArrayStart(4) } else { yynn4207 = 1 for _, b := range yyq4207 { if b { yynn4207++ } } r.EncodeMapStart(yynn4207) yynn4207 = 0 } if yyr4207 || yy2arr4207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4207[0] { yym4209 := z.EncBinary() _ = yym4209 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4207[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4210 := z.EncBinary() _ = yym4210 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4207 || yy2arr4207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4207[1] { yym4212 := z.EncBinary() _ = yym4212 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4207[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4213 := z.EncBinary() _ = yym4213 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4207 || yy2arr4207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4207[2] { yy4215 := &x.ListMeta yym4216 := z.EncBinary() _ = yym4216 if false { } else if z.HasExtensions() && z.EncExt(yy4215) { } else { z.EncFallback(yy4215) } } else { r.EncodeNil() } } else { if yyq4207[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4217 := &x.ListMeta yym4218 := z.EncBinary() _ = yym4218 if false { } else if z.HasExtensions() && z.EncExt(yy4217) { } else { z.EncFallback(yy4217) } } } if yyr4207 || yy2arr4207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym4220 := z.EncBinary() _ = yym4220 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 { yym4221 := z.EncBinary() _ = yym4221 if false { } else { h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) } } } if yyr4207 || yy2arr4207 { 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 yym4222 := z.DecBinary() _ = yym4222 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4223 := r.ContainerType() if yyct4223 == codecSelferValueTypeMap1234 { yyl4223 := r.ReadMapStart() if yyl4223 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4223, d) } } else if yyct4223 == codecSelferValueTypeArray1234 { yyl4223 := r.ReadArrayStart() if yyl4223 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4223, 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 yys4224Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4224Slc var yyhl4224 bool = l >= 0 for yyj4224 := 0; ; yyj4224++ { if yyhl4224 { if yyj4224 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4224Slc = r.DecodeBytes(yys4224Slc, true, true) yys4224 := string(yys4224Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4224 { 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 { yyv4227 := &x.ListMeta yym4228 := z.DecBinary() _ = yym4228 if false { } else if z.HasExtensions() && z.DecExt(yyv4227) { } else { z.DecFallback(yyv4227, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv4229 := &x.Items yym4230 := z.DecBinary() _ = yym4230 if false { } else { h.decSliceComponentStatus((*[]ComponentStatus)(yyv4229), d) } } default: z.DecStructFieldNotFound(-1, yys4224) } // end switch yys4224 } // end for yyj4224 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 yyj4231 int var yyb4231 bool var yyhl4231 bool = l >= 0 yyj4231++ if yyhl4231 { yyb4231 = yyj4231 > l } else { yyb4231 = r.CheckBreak() } if yyb4231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4231++ if yyhl4231 { yyb4231 = yyj4231 > l } else { yyb4231 = r.CheckBreak() } if yyb4231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4231++ if yyhl4231 { yyb4231 = yyj4231 > l } else { yyb4231 = r.CheckBreak() } if yyb4231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv4234 := &x.ListMeta yym4235 := z.DecBinary() _ = yym4235 if false { } else if z.HasExtensions() && z.DecExt(yyv4234) { } else { z.DecFallback(yyv4234, false) } } yyj4231++ if yyhl4231 { yyb4231 = yyj4231 > l } else { yyb4231 = r.CheckBreak() } if yyb4231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv4236 := &x.Items yym4237 := z.DecBinary() _ = yym4237 if false { } else { h.decSliceComponentStatus((*[]ComponentStatus)(yyv4236), d) } } for { yyj4231++ if yyhl4231 { yyb4231 = yyj4231 > l } else { yyb4231 = r.CheckBreak() } if yyb4231 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4231-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 { yym4238 := z.EncBinary() _ = yym4238 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4239 := !z.EncBinary() yy2arr4239 := z.EncBasicHandle().StructToArray var yyq4239 [6]bool _, _, _ = yysep4239, yyq4239, yy2arr4239 const yyr4239 bool = false yyq4239[0] = x.Capabilities != nil yyq4239[1] = x.Privileged != nil yyq4239[2] = x.SELinuxOptions != nil yyq4239[3] = x.RunAsUser != nil yyq4239[4] = x.RunAsNonRoot != nil yyq4239[5] = x.ReadOnlyRootFilesystem != nil var yynn4239 int if yyr4239 || yy2arr4239 { r.EncodeArrayStart(6) } else { yynn4239 = 0 for _, b := range yyq4239 { if b { yynn4239++ } } r.EncodeMapStart(yynn4239) yynn4239 = 0 } if yyr4239 || yy2arr4239 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4239[0] { if x.Capabilities == nil { r.EncodeNil() } else { x.Capabilities.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq4239[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 yyr4239 || yy2arr4239 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4239[1] { if x.Privileged == nil { r.EncodeNil() } else { yy4242 := *x.Privileged yym4243 := z.EncBinary() _ = yym4243 if false { } else { r.EncodeBool(bool(yy4242)) } } } else { r.EncodeNil() } } else { if yyq4239[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Privileged == nil { r.EncodeNil() } else { yy4244 := *x.Privileged yym4245 := z.EncBinary() _ = yym4245 if false { } else { r.EncodeBool(bool(yy4244)) } } } } if yyr4239 || yy2arr4239 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4239[2] { if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq4239[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 yyr4239 || yy2arr4239 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4239[3] { if x.RunAsUser == nil { r.EncodeNil() } else { yy4248 := *x.RunAsUser yym4249 := z.EncBinary() _ = yym4249 if false { } else { r.EncodeInt(int64(yy4248)) } } } else { r.EncodeNil() } } else { if yyq4239[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { yy4250 := *x.RunAsUser yym4251 := z.EncBinary() _ = yym4251 if false { } else { r.EncodeInt(int64(yy4250)) } } } } if yyr4239 || yy2arr4239 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4239[4] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy4253 := *x.RunAsNonRoot yym4254 := z.EncBinary() _ = yym4254 if false { } else { r.EncodeBool(bool(yy4253)) } } } else { r.EncodeNil() } } else { if yyq4239[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy4255 := *x.RunAsNonRoot yym4256 := z.EncBinary() _ = yym4256 if false { } else { r.EncodeBool(bool(yy4255)) } } } } if yyr4239 || yy2arr4239 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4239[5] { if x.ReadOnlyRootFilesystem == nil { r.EncodeNil() } else { yy4258 := *x.ReadOnlyRootFilesystem yym4259 := z.EncBinary() _ = yym4259 if false { } else { r.EncodeBool(bool(yy4258)) } } } else { r.EncodeNil() } } else { if yyq4239[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ReadOnlyRootFilesystem == nil { r.EncodeNil() } else { yy4260 := *x.ReadOnlyRootFilesystem yym4261 := z.EncBinary() _ = yym4261 if false { } else { r.EncodeBool(bool(yy4260)) } } } } if yyr4239 || yy2arr4239 { 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 yym4262 := z.DecBinary() _ = yym4262 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4263 := r.ContainerType() if yyct4263 == codecSelferValueTypeMap1234 { yyl4263 := r.ReadMapStart() if yyl4263 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4263, d) } } else if yyct4263 == codecSelferValueTypeArray1234 { yyl4263 := r.ReadArrayStart() if yyl4263 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4263, 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 yys4264Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4264Slc var yyhl4264 bool = l >= 0 for yyj4264 := 0; ; yyj4264++ { if yyhl4264 { if yyj4264 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4264Slc = r.DecodeBytes(yys4264Slc, true, true) yys4264 := string(yys4264Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4264 { 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) } yym4267 := z.DecBinary() _ = yym4267 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) } yym4270 := z.DecBinary() _ = yym4270 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) } yym4272 := z.DecBinary() _ = yym4272 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) } yym4274 := z.DecBinary() _ = yym4274 if false { } else { *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys4264) } // end switch yys4264 } // end for yyj4264 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 yyj4275 int var yyb4275 bool var yyhl4275 bool = l >= 0 yyj4275++ if yyhl4275 { yyb4275 = yyj4275 > l } else { yyb4275 = r.CheckBreak() } if yyb4275 { 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) } yyj4275++ if yyhl4275 { yyb4275 = yyj4275 > l } else { yyb4275 = r.CheckBreak() } if yyb4275 { 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) } yym4278 := z.DecBinary() _ = yym4278 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() } } yyj4275++ if yyhl4275 { yyb4275 = yyj4275 > l } else { yyb4275 = r.CheckBreak() } if yyb4275 { 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) } yyj4275++ if yyhl4275 { yyb4275 = yyj4275 > l } else { yyb4275 = r.CheckBreak() } if yyb4275 { 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) } yym4281 := z.DecBinary() _ = yym4281 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } yyj4275++ if yyhl4275 { yyb4275 = yyj4275 > l } else { yyb4275 = r.CheckBreak() } if yyb4275 { 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) } yym4283 := z.DecBinary() _ = yym4283 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } yyj4275++ if yyhl4275 { yyb4275 = yyj4275 > l } else { yyb4275 = r.CheckBreak() } if yyb4275 { 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) } yym4285 := z.DecBinary() _ = yym4285 if false { } else { *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() } } for { yyj4275++ if yyhl4275 { yyb4275 = yyj4275 > l } else { yyb4275 = r.CheckBreak() } if yyb4275 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4275-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 { yym4286 := z.EncBinary() _ = yym4286 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4287 := !z.EncBinary() yy2arr4287 := z.EncBasicHandle().StructToArray var yyq4287 [4]bool _, _, _ = yysep4287, yyq4287, yy2arr4287 const yyr4287 bool = false yyq4287[0] = x.User != "" yyq4287[1] = x.Role != "" yyq4287[2] = x.Type != "" yyq4287[3] = x.Level != "" var yynn4287 int if yyr4287 || yy2arr4287 { r.EncodeArrayStart(4) } else { yynn4287 = 0 for _, b := range yyq4287 { if b { yynn4287++ } } r.EncodeMapStart(yynn4287) yynn4287 = 0 } if yyr4287 || yy2arr4287 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4287[0] { yym4289 := z.EncBinary() _ = yym4289 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4287[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4290 := z.EncBinary() _ = yym4290 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } if yyr4287 || yy2arr4287 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4287[1] { yym4292 := z.EncBinary() _ = yym4292 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4287[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("role")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4293 := z.EncBinary() _ = yym4293 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } } if yyr4287 || yy2arr4287 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4287[2] { yym4295 := z.EncBinary() _ = yym4295 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4287[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4296 := z.EncBinary() _ = yym4296 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } if yyr4287 || yy2arr4287 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4287[3] { yym4298 := z.EncBinary() _ = yym4298 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4287[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("level")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4299 := z.EncBinary() _ = yym4299 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } } if yyr4287 || yy2arr4287 { 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 yym4300 := z.DecBinary() _ = yym4300 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4301 := r.ContainerType() if yyct4301 == codecSelferValueTypeMap1234 { yyl4301 := r.ReadMapStart() if yyl4301 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4301, d) } } else if yyct4301 == codecSelferValueTypeArray1234 { yyl4301 := r.ReadArrayStart() if yyl4301 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4301, 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 yys4302Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4302Slc var yyhl4302 bool = l >= 0 for yyj4302 := 0; ; yyj4302++ { if yyhl4302 { if yyj4302 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4302Slc = r.DecodeBytes(yys4302Slc, true, true) yys4302 := string(yys4302Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4302 { 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, yys4302) } // end switch yys4302 } // end for yyj4302 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 yyj4307 int var yyb4307 bool var yyhl4307 bool = l >= 0 yyj4307++ if yyhl4307 { yyb4307 = yyj4307 > l } else { yyb4307 = r.CheckBreak() } if yyb4307 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } yyj4307++ if yyhl4307 { yyb4307 = yyj4307 > l } else { yyb4307 = r.CheckBreak() } if yyb4307 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Role = "" } else { x.Role = string(r.DecodeString()) } yyj4307++ if yyhl4307 { yyb4307 = yyj4307 > l } else { yyb4307 = r.CheckBreak() } if yyb4307 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } yyj4307++ if yyhl4307 { yyb4307 = yyj4307 > l } else { yyb4307 = r.CheckBreak() } if yyb4307 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Level = "" } else { x.Level = string(r.DecodeString()) } for { yyj4307++ if yyhl4307 { yyb4307 = yyj4307 > l } else { yyb4307 = r.CheckBreak() } if yyb4307 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4307-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 { yym4312 := z.EncBinary() _ = yym4312 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4313 := !z.EncBinary() yy2arr4313 := z.EncBasicHandle().StructToArray var yyq4313 [5]bool _, _, _ = yysep4313, yyq4313, yy2arr4313 const yyr4313 bool = false yyq4313[0] = x.Kind != "" yyq4313[1] = x.APIVersion != "" yyq4313[2] = true var yynn4313 int if yyr4313 || yy2arr4313 { r.EncodeArrayStart(5) } else { yynn4313 = 2 for _, b := range yyq4313 { if b { yynn4313++ } } r.EncodeMapStart(yynn4313) yynn4313 = 0 } if yyr4313 || yy2arr4313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4313[0] { yym4315 := z.EncBinary() _ = yym4315 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4313[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4316 := z.EncBinary() _ = yym4316 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4313 || yy2arr4313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4313[1] { yym4318 := z.EncBinary() _ = yym4318 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4313[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4319 := z.EncBinary() _ = yym4319 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4313 || yy2arr4313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4313[2] { yy4321 := &x.ObjectMeta yy4321.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4313[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4322 := &x.ObjectMeta yy4322.CodecEncodeSelf(e) } } if yyr4313 || yy2arr4313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym4324 := z.EncBinary() _ = yym4324 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) yym4325 := z.EncBinary() _ = yym4325 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) } } if yyr4313 || yy2arr4313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Data == nil { r.EncodeNil() } else { yym4327 := z.EncBinary() _ = yym4327 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 { yym4328 := z.EncBinary() _ = yym4328 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) } } } if yyr4313 || yy2arr4313 { 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 yym4329 := z.DecBinary() _ = yym4329 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4330 := r.ContainerType() if yyct4330 == codecSelferValueTypeMap1234 { yyl4330 := r.ReadMapStart() if yyl4330 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4330, d) } } else if yyct4330 == codecSelferValueTypeArray1234 { yyl4330 := r.ReadArrayStart() if yyl4330 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4330, 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 yys4331Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4331Slc var yyhl4331 bool = l >= 0 for yyj4331 := 0; ; yyj4331++ { if yyhl4331 { if yyj4331 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4331Slc = r.DecodeBytes(yys4331Slc, true, true) yys4331 := string(yys4331Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4331 { 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 { yyv4334 := &x.ObjectMeta yyv4334.CodecDecodeSelf(d) } case "range": if r.TryDecodeAsNil() { x.Range = "" } else { x.Range = string(r.DecodeString()) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv4336 := &x.Data yym4337 := z.DecBinary() _ = yym4337 if false { } else { *yyv4336 = r.DecodeBytes(*(*[]byte)(yyv4336), false, false) } } default: z.DecStructFieldNotFound(-1, yys4331) } // end switch yys4331 } // end for yyj4331 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 yyj4338 int var yyb4338 bool var yyhl4338 bool = l >= 0 yyj4338++ if yyhl4338 { yyb4338 = yyj4338 > l } else { yyb4338 = r.CheckBreak() } if yyb4338 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4338++ if yyhl4338 { yyb4338 = yyj4338 > l } else { yyb4338 = r.CheckBreak() } if yyb4338 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4338++ if yyhl4338 { yyb4338 = yyj4338 > l } else { yyb4338 = r.CheckBreak() } if yyb4338 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4341 := &x.ObjectMeta yyv4341.CodecDecodeSelf(d) } yyj4338++ if yyhl4338 { yyb4338 = yyj4338 > l } else { yyb4338 = r.CheckBreak() } if yyb4338 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Range = "" } else { x.Range = string(r.DecodeString()) } yyj4338++ if yyhl4338 { yyb4338 = yyj4338 > l } else { yyb4338 = r.CheckBreak() } if yyb4338 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv4343 := &x.Data yym4344 := z.DecBinary() _ = yym4344 if false { } else { *yyv4343 = r.DecodeBytes(*(*[]byte)(yyv4343), false, false) } } for { yyj4338++ if yyhl4338 { yyb4338 = yyj4338 > l } else { yyb4338 = r.CheckBreak() } if yyb4338 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4338-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 _, yyv4345 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4346 := &yyv4345 yy4346.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 yyv4347 := *v yyh4347, yyl4347 := z.DecSliceHelperStart() var yyc4347 bool if yyl4347 == 0 { if yyv4347 == nil { yyv4347 = []OwnerReference{} yyc4347 = true } else if len(yyv4347) != 0 { yyv4347 = yyv4347[:0] yyc4347 = true } } else if yyl4347 > 0 { var yyrr4347, yyrl4347 int var yyrt4347 bool if yyl4347 > cap(yyv4347) { yyrg4347 := len(yyv4347) > 0 yyv24347 := yyv4347 yyrl4347, yyrt4347 = z.DecInferLen(yyl4347, z.DecBasicHandle().MaxInitLen, 72) if yyrt4347 { if yyrl4347 <= cap(yyv4347) { yyv4347 = yyv4347[:yyrl4347] } else { yyv4347 = make([]OwnerReference, yyrl4347) } } else { yyv4347 = make([]OwnerReference, yyrl4347) } yyc4347 = true yyrr4347 = len(yyv4347) if yyrg4347 { copy(yyv4347, yyv24347) } } else if yyl4347 != len(yyv4347) { yyv4347 = yyv4347[:yyl4347] yyc4347 = true } yyj4347 := 0 for ; yyj4347 < yyrr4347; yyj4347++ { yyh4347.ElemContainerState(yyj4347) if r.TryDecodeAsNil() { yyv4347[yyj4347] = OwnerReference{} } else { yyv4348 := &yyv4347[yyj4347] yyv4348.CodecDecodeSelf(d) } } if yyrt4347 { for ; yyj4347 < yyl4347; yyj4347++ { yyv4347 = append(yyv4347, OwnerReference{}) yyh4347.ElemContainerState(yyj4347) if r.TryDecodeAsNil() { yyv4347[yyj4347] = OwnerReference{} } else { yyv4349 := &yyv4347[yyj4347] yyv4349.CodecDecodeSelf(d) } } } } else { yyj4347 := 0 for ; !r.CheckBreak(); yyj4347++ { if yyj4347 >= len(yyv4347) { yyv4347 = append(yyv4347, OwnerReference{}) // var yyz4347 OwnerReference yyc4347 = true } yyh4347.ElemContainerState(yyj4347) if yyj4347 < len(yyv4347) { if r.TryDecodeAsNil() { yyv4347[yyj4347] = OwnerReference{} } else { yyv4350 := &yyv4347[yyj4347] yyv4350.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4347 < len(yyv4347) { yyv4347 = yyv4347[:yyj4347] yyc4347 = true } else if yyj4347 == 0 && yyv4347 == nil { yyv4347 = []OwnerReference{} yyc4347 = true } } yyh4347.End() if yyc4347 { *v = yyv4347 } } 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 _, yyv4351 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv4351.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 yyv4352 := *v yyh4352, yyl4352 := z.DecSliceHelperStart() var yyc4352 bool if yyl4352 == 0 { if yyv4352 == nil { yyv4352 = []PersistentVolumeAccessMode{} yyc4352 = true } else if len(yyv4352) != 0 { yyv4352 = yyv4352[:0] yyc4352 = true } } else if yyl4352 > 0 { var yyrr4352, yyrl4352 int var yyrt4352 bool if yyl4352 > cap(yyv4352) { yyrl4352, yyrt4352 = z.DecInferLen(yyl4352, z.DecBasicHandle().MaxInitLen, 16) if yyrt4352 { if yyrl4352 <= cap(yyv4352) { yyv4352 = yyv4352[:yyrl4352] } else { yyv4352 = make([]PersistentVolumeAccessMode, yyrl4352) } } else { yyv4352 = make([]PersistentVolumeAccessMode, yyrl4352) } yyc4352 = true yyrr4352 = len(yyv4352) } else if yyl4352 != len(yyv4352) { yyv4352 = yyv4352[:yyl4352] yyc4352 = true } yyj4352 := 0 for ; yyj4352 < yyrr4352; yyj4352++ { yyh4352.ElemContainerState(yyj4352) if r.TryDecodeAsNil() { yyv4352[yyj4352] = "" } else { yyv4352[yyj4352] = PersistentVolumeAccessMode(r.DecodeString()) } } if yyrt4352 { for ; yyj4352 < yyl4352; yyj4352++ { yyv4352 = append(yyv4352, "") yyh4352.ElemContainerState(yyj4352) if r.TryDecodeAsNil() { yyv4352[yyj4352] = "" } else { yyv4352[yyj4352] = PersistentVolumeAccessMode(r.DecodeString()) } } } } else { yyj4352 := 0 for ; !r.CheckBreak(); yyj4352++ { if yyj4352 >= len(yyv4352) { yyv4352 = append(yyv4352, "") // var yyz4352 PersistentVolumeAccessMode yyc4352 = true } yyh4352.ElemContainerState(yyj4352) if yyj4352 < len(yyv4352) { if r.TryDecodeAsNil() { yyv4352[yyj4352] = "" } else { yyv4352[yyj4352] = PersistentVolumeAccessMode(r.DecodeString()) } } else { z.DecSwallow() } } if yyj4352 < len(yyv4352) { yyv4352 = yyv4352[:yyj4352] yyc4352 = true } else if yyj4352 == 0 && yyv4352 == nil { yyv4352 = []PersistentVolumeAccessMode{} yyc4352 = true } } yyh4352.End() if yyc4352 { *v = yyv4352 } } 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 _, yyv4356 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4357 := &yyv4356 yy4357.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 yyv4358 := *v yyh4358, yyl4358 := z.DecSliceHelperStart() var yyc4358 bool if yyl4358 == 0 { if yyv4358 == nil { yyv4358 = []PersistentVolume{} yyc4358 = true } else if len(yyv4358) != 0 { yyv4358 = yyv4358[:0] yyc4358 = true } } else if yyl4358 > 0 { var yyrr4358, yyrl4358 int var yyrt4358 bool if yyl4358 > cap(yyv4358) { yyrg4358 := len(yyv4358) > 0 yyv24358 := yyv4358 yyrl4358, yyrt4358 = z.DecInferLen(yyl4358, z.DecBasicHandle().MaxInitLen, 456) if yyrt4358 { if yyrl4358 <= cap(yyv4358) { yyv4358 = yyv4358[:yyrl4358] } else { yyv4358 = make([]PersistentVolume, yyrl4358) } } else { yyv4358 = make([]PersistentVolume, yyrl4358) } yyc4358 = true yyrr4358 = len(yyv4358) if yyrg4358 { copy(yyv4358, yyv24358) } } else if yyl4358 != len(yyv4358) { yyv4358 = yyv4358[:yyl4358] yyc4358 = true } yyj4358 := 0 for ; yyj4358 < yyrr4358; yyj4358++ { yyh4358.ElemContainerState(yyj4358) if r.TryDecodeAsNil() { yyv4358[yyj4358] = PersistentVolume{} } else { yyv4359 := &yyv4358[yyj4358] yyv4359.CodecDecodeSelf(d) } } if yyrt4358 { for ; yyj4358 < yyl4358; yyj4358++ { yyv4358 = append(yyv4358, PersistentVolume{}) yyh4358.ElemContainerState(yyj4358) if r.TryDecodeAsNil() { yyv4358[yyj4358] = PersistentVolume{} } else { yyv4360 := &yyv4358[yyj4358] yyv4360.CodecDecodeSelf(d) } } } } else { yyj4358 := 0 for ; !r.CheckBreak(); yyj4358++ { if yyj4358 >= len(yyv4358) { yyv4358 = append(yyv4358, PersistentVolume{}) // var yyz4358 PersistentVolume yyc4358 = true } yyh4358.ElemContainerState(yyj4358) if yyj4358 < len(yyv4358) { if r.TryDecodeAsNil() { yyv4358[yyj4358] = PersistentVolume{} } else { yyv4361 := &yyv4358[yyj4358] yyv4361.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4358 < len(yyv4358) { yyv4358 = yyv4358[:yyj4358] yyc4358 = true } else if yyj4358 == 0 && yyv4358 == nil { yyv4358 = []PersistentVolume{} yyc4358 = true } } yyh4358.End() if yyc4358 { *v = yyv4358 } } 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 _, yyv4362 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4363 := &yyv4362 yy4363.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 yyv4364 := *v yyh4364, yyl4364 := z.DecSliceHelperStart() var yyc4364 bool if yyl4364 == 0 { if yyv4364 == nil { yyv4364 = []PersistentVolumeClaim{} yyc4364 = true } else if len(yyv4364) != 0 { yyv4364 = yyv4364[:0] yyc4364 = true } } else if yyl4364 > 0 { var yyrr4364, yyrl4364 int var yyrt4364 bool if yyl4364 > cap(yyv4364) { yyrg4364 := len(yyv4364) > 0 yyv24364 := yyv4364 yyrl4364, yyrt4364 = z.DecInferLen(yyl4364, z.DecBasicHandle().MaxInitLen, 352) if yyrt4364 { if yyrl4364 <= cap(yyv4364) { yyv4364 = yyv4364[:yyrl4364] } else { yyv4364 = make([]PersistentVolumeClaim, yyrl4364) } } else { yyv4364 = make([]PersistentVolumeClaim, yyrl4364) } yyc4364 = true yyrr4364 = len(yyv4364) if yyrg4364 { copy(yyv4364, yyv24364) } } else if yyl4364 != len(yyv4364) { yyv4364 = yyv4364[:yyl4364] yyc4364 = true } yyj4364 := 0 for ; yyj4364 < yyrr4364; yyj4364++ { yyh4364.ElemContainerState(yyj4364) if r.TryDecodeAsNil() { yyv4364[yyj4364] = PersistentVolumeClaim{} } else { yyv4365 := &yyv4364[yyj4364] yyv4365.CodecDecodeSelf(d) } } if yyrt4364 { for ; yyj4364 < yyl4364; yyj4364++ { yyv4364 = append(yyv4364, PersistentVolumeClaim{}) yyh4364.ElemContainerState(yyj4364) if r.TryDecodeAsNil() { yyv4364[yyj4364] = PersistentVolumeClaim{} } else { yyv4366 := &yyv4364[yyj4364] yyv4366.CodecDecodeSelf(d) } } } } else { yyj4364 := 0 for ; !r.CheckBreak(); yyj4364++ { if yyj4364 >= len(yyv4364) { yyv4364 = append(yyv4364, PersistentVolumeClaim{}) // var yyz4364 PersistentVolumeClaim yyc4364 = true } yyh4364.ElemContainerState(yyj4364) if yyj4364 < len(yyv4364) { if r.TryDecodeAsNil() { yyv4364[yyj4364] = PersistentVolumeClaim{} } else { yyv4367 := &yyv4364[yyj4364] yyv4367.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4364 < len(yyv4364) { yyv4364 = yyv4364[:yyj4364] yyc4364 = true } else if yyj4364 == 0 && yyv4364 == nil { yyv4364 = []PersistentVolumeClaim{} yyc4364 = true } } yyh4364.End() if yyc4364 { *v = yyv4364 } } 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 _, yyv4368 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4369 := &yyv4368 yy4369.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 yyv4370 := *v yyh4370, yyl4370 := z.DecSliceHelperStart() var yyc4370 bool if yyl4370 == 0 { if yyv4370 == nil { yyv4370 = []KeyToPath{} yyc4370 = true } else if len(yyv4370) != 0 { yyv4370 = yyv4370[:0] yyc4370 = true } } else if yyl4370 > 0 { var yyrr4370, yyrl4370 int var yyrt4370 bool if yyl4370 > cap(yyv4370) { yyrg4370 := len(yyv4370) > 0 yyv24370 := yyv4370 yyrl4370, yyrt4370 = z.DecInferLen(yyl4370, z.DecBasicHandle().MaxInitLen, 32) if yyrt4370 { if yyrl4370 <= cap(yyv4370) { yyv4370 = yyv4370[:yyrl4370] } else { yyv4370 = make([]KeyToPath, yyrl4370) } } else { yyv4370 = make([]KeyToPath, yyrl4370) } yyc4370 = true yyrr4370 = len(yyv4370) if yyrg4370 { copy(yyv4370, yyv24370) } } else if yyl4370 != len(yyv4370) { yyv4370 = yyv4370[:yyl4370] yyc4370 = true } yyj4370 := 0 for ; yyj4370 < yyrr4370; yyj4370++ { yyh4370.ElemContainerState(yyj4370) if r.TryDecodeAsNil() { yyv4370[yyj4370] = KeyToPath{} } else { yyv4371 := &yyv4370[yyj4370] yyv4371.CodecDecodeSelf(d) } } if yyrt4370 { for ; yyj4370 < yyl4370; yyj4370++ { yyv4370 = append(yyv4370, KeyToPath{}) yyh4370.ElemContainerState(yyj4370) if r.TryDecodeAsNil() { yyv4370[yyj4370] = KeyToPath{} } else { yyv4372 := &yyv4370[yyj4370] yyv4372.CodecDecodeSelf(d) } } } } else { yyj4370 := 0 for ; !r.CheckBreak(); yyj4370++ { if yyj4370 >= len(yyv4370) { yyv4370 = append(yyv4370, KeyToPath{}) // var yyz4370 KeyToPath yyc4370 = true } yyh4370.ElemContainerState(yyj4370) if yyj4370 < len(yyv4370) { if r.TryDecodeAsNil() { yyv4370[yyj4370] = KeyToPath{} } else { yyv4373 := &yyv4370[yyj4370] yyv4373.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4370 < len(yyv4370) { yyv4370 = yyv4370[:yyj4370] yyc4370 = true } else if yyj4370 == 0 && yyv4370 == nil { yyv4370 = []KeyToPath{} yyc4370 = true } } yyh4370.End() if yyc4370 { *v = yyv4370 } } 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 _, yyv4374 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4375 := &yyv4374 yy4375.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 yyv4376 := *v yyh4376, yyl4376 := z.DecSliceHelperStart() var yyc4376 bool if yyl4376 == 0 { if yyv4376 == nil { yyv4376 = []DownwardAPIVolumeFile{} yyc4376 = true } else if len(yyv4376) != 0 { yyv4376 = yyv4376[:0] yyc4376 = true } } else if yyl4376 > 0 { var yyrr4376, yyrl4376 int var yyrt4376 bool if yyl4376 > cap(yyv4376) { yyrg4376 := len(yyv4376) > 0 yyv24376 := yyv4376 yyrl4376, yyrt4376 = z.DecInferLen(yyl4376, z.DecBasicHandle().MaxInitLen, 32) if yyrt4376 { if yyrl4376 <= cap(yyv4376) { yyv4376 = yyv4376[:yyrl4376] } else { yyv4376 = make([]DownwardAPIVolumeFile, yyrl4376) } } else { yyv4376 = make([]DownwardAPIVolumeFile, yyrl4376) } yyc4376 = true yyrr4376 = len(yyv4376) if yyrg4376 { copy(yyv4376, yyv24376) } } else if yyl4376 != len(yyv4376) { yyv4376 = yyv4376[:yyl4376] yyc4376 = true } yyj4376 := 0 for ; yyj4376 < yyrr4376; yyj4376++ { yyh4376.ElemContainerState(yyj4376) if r.TryDecodeAsNil() { yyv4376[yyj4376] = DownwardAPIVolumeFile{} } else { yyv4377 := &yyv4376[yyj4376] yyv4377.CodecDecodeSelf(d) } } if yyrt4376 { for ; yyj4376 < yyl4376; yyj4376++ { yyv4376 = append(yyv4376, DownwardAPIVolumeFile{}) yyh4376.ElemContainerState(yyj4376) if r.TryDecodeAsNil() { yyv4376[yyj4376] = DownwardAPIVolumeFile{} } else { yyv4378 := &yyv4376[yyj4376] yyv4378.CodecDecodeSelf(d) } } } } else { yyj4376 := 0 for ; !r.CheckBreak(); yyj4376++ { if yyj4376 >= len(yyv4376) { yyv4376 = append(yyv4376, DownwardAPIVolumeFile{}) // var yyz4376 DownwardAPIVolumeFile yyc4376 = true } yyh4376.ElemContainerState(yyj4376) if yyj4376 < len(yyv4376) { if r.TryDecodeAsNil() { yyv4376[yyj4376] = DownwardAPIVolumeFile{} } else { yyv4379 := &yyv4376[yyj4376] yyv4379.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4376 < len(yyv4376) { yyv4376 = yyv4376[:yyj4376] yyc4376 = true } else if yyj4376 == 0 && yyv4376 == nil { yyv4376 = []DownwardAPIVolumeFile{} yyc4376 = true } } yyh4376.End() if yyc4376 { *v = yyv4376 } } 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 _, yyv4380 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4381 := &yyv4380 yy4381.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 yyv4382 := *v yyh4382, yyl4382 := z.DecSliceHelperStart() var yyc4382 bool if yyl4382 == 0 { if yyv4382 == nil { yyv4382 = []HTTPHeader{} yyc4382 = true } else if len(yyv4382) != 0 { yyv4382 = yyv4382[:0] yyc4382 = true } } else if yyl4382 > 0 { var yyrr4382, yyrl4382 int var yyrt4382 bool if yyl4382 > cap(yyv4382) { yyrg4382 := len(yyv4382) > 0 yyv24382 := yyv4382 yyrl4382, yyrt4382 = z.DecInferLen(yyl4382, z.DecBasicHandle().MaxInitLen, 32) if yyrt4382 { if yyrl4382 <= cap(yyv4382) { yyv4382 = yyv4382[:yyrl4382] } else { yyv4382 = make([]HTTPHeader, yyrl4382) } } else { yyv4382 = make([]HTTPHeader, yyrl4382) } yyc4382 = true yyrr4382 = len(yyv4382) if yyrg4382 { copy(yyv4382, yyv24382) } } else if yyl4382 != len(yyv4382) { yyv4382 = yyv4382[:yyl4382] yyc4382 = true } yyj4382 := 0 for ; yyj4382 < yyrr4382; yyj4382++ { yyh4382.ElemContainerState(yyj4382) if r.TryDecodeAsNil() { yyv4382[yyj4382] = HTTPHeader{} } else { yyv4383 := &yyv4382[yyj4382] yyv4383.CodecDecodeSelf(d) } } if yyrt4382 { for ; yyj4382 < yyl4382; yyj4382++ { yyv4382 = append(yyv4382, HTTPHeader{}) yyh4382.ElemContainerState(yyj4382) if r.TryDecodeAsNil() { yyv4382[yyj4382] = HTTPHeader{} } else { yyv4384 := &yyv4382[yyj4382] yyv4384.CodecDecodeSelf(d) } } } } else { yyj4382 := 0 for ; !r.CheckBreak(); yyj4382++ { if yyj4382 >= len(yyv4382) { yyv4382 = append(yyv4382, HTTPHeader{}) // var yyz4382 HTTPHeader yyc4382 = true } yyh4382.ElemContainerState(yyj4382) if yyj4382 < len(yyv4382) { if r.TryDecodeAsNil() { yyv4382[yyj4382] = HTTPHeader{} } else { yyv4385 := &yyv4382[yyj4382] yyv4385.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4382 < len(yyv4382) { yyv4382 = yyv4382[:yyj4382] yyc4382 = true } else if yyj4382 == 0 && yyv4382 == nil { yyv4382 = []HTTPHeader{} yyc4382 = true } } yyh4382.End() if yyc4382 { *v = yyv4382 } } 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 _, yyv4386 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv4386.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 yyv4387 := *v yyh4387, yyl4387 := z.DecSliceHelperStart() var yyc4387 bool if yyl4387 == 0 { if yyv4387 == nil { yyv4387 = []Capability{} yyc4387 = true } else if len(yyv4387) != 0 { yyv4387 = yyv4387[:0] yyc4387 = true } } else if yyl4387 > 0 { var yyrr4387, yyrl4387 int var yyrt4387 bool if yyl4387 > cap(yyv4387) { yyrl4387, yyrt4387 = z.DecInferLen(yyl4387, z.DecBasicHandle().MaxInitLen, 16) if yyrt4387 { if yyrl4387 <= cap(yyv4387) { yyv4387 = yyv4387[:yyrl4387] } else { yyv4387 = make([]Capability, yyrl4387) } } else { yyv4387 = make([]Capability, yyrl4387) } yyc4387 = true yyrr4387 = len(yyv4387) } else if yyl4387 != len(yyv4387) { yyv4387 = yyv4387[:yyl4387] yyc4387 = true } yyj4387 := 0 for ; yyj4387 < yyrr4387; yyj4387++ { yyh4387.ElemContainerState(yyj4387) if r.TryDecodeAsNil() { yyv4387[yyj4387] = "" } else { yyv4387[yyj4387] = Capability(r.DecodeString()) } } if yyrt4387 { for ; yyj4387 < yyl4387; yyj4387++ { yyv4387 = append(yyv4387, "") yyh4387.ElemContainerState(yyj4387) if r.TryDecodeAsNil() { yyv4387[yyj4387] = "" } else { yyv4387[yyj4387] = Capability(r.DecodeString()) } } } } else { yyj4387 := 0 for ; !r.CheckBreak(); yyj4387++ { if yyj4387 >= len(yyv4387) { yyv4387 = append(yyv4387, "") // var yyz4387 Capability yyc4387 = true } yyh4387.ElemContainerState(yyj4387) if yyj4387 < len(yyv4387) { if r.TryDecodeAsNil() { yyv4387[yyj4387] = "" } else { yyv4387[yyj4387] = Capability(r.DecodeString()) } } else { z.DecSwallow() } } if yyj4387 < len(yyv4387) { yyv4387 = yyv4387[:yyj4387] yyc4387 = true } else if yyj4387 == 0 && yyv4387 == nil { yyv4387 = []Capability{} yyc4387 = true } } yyh4387.End() if yyc4387 { *v = yyv4387 } } 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 _, yyv4391 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4392 := &yyv4391 yy4392.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 yyv4393 := *v yyh4393, yyl4393 := z.DecSliceHelperStart() var yyc4393 bool if yyl4393 == 0 { if yyv4393 == nil { yyv4393 = []ContainerPort{} yyc4393 = true } else if len(yyv4393) != 0 { yyv4393 = yyv4393[:0] yyc4393 = true } } else if yyl4393 > 0 { var yyrr4393, yyrl4393 int var yyrt4393 bool if yyl4393 > cap(yyv4393) { yyrg4393 := len(yyv4393) > 0 yyv24393 := yyv4393 yyrl4393, yyrt4393 = z.DecInferLen(yyl4393, z.DecBasicHandle().MaxInitLen, 56) if yyrt4393 { if yyrl4393 <= cap(yyv4393) { yyv4393 = yyv4393[:yyrl4393] } else { yyv4393 = make([]ContainerPort, yyrl4393) } } else { yyv4393 = make([]ContainerPort, yyrl4393) } yyc4393 = true yyrr4393 = len(yyv4393) if yyrg4393 { copy(yyv4393, yyv24393) } } else if yyl4393 != len(yyv4393) { yyv4393 = yyv4393[:yyl4393] yyc4393 = true } yyj4393 := 0 for ; yyj4393 < yyrr4393; yyj4393++ { yyh4393.ElemContainerState(yyj4393) if r.TryDecodeAsNil() { yyv4393[yyj4393] = ContainerPort{} } else { yyv4394 := &yyv4393[yyj4393] yyv4394.CodecDecodeSelf(d) } } if yyrt4393 { for ; yyj4393 < yyl4393; yyj4393++ { yyv4393 = append(yyv4393, ContainerPort{}) yyh4393.ElemContainerState(yyj4393) if r.TryDecodeAsNil() { yyv4393[yyj4393] = ContainerPort{} } else { yyv4395 := &yyv4393[yyj4393] yyv4395.CodecDecodeSelf(d) } } } } else { yyj4393 := 0 for ; !r.CheckBreak(); yyj4393++ { if yyj4393 >= len(yyv4393) { yyv4393 = append(yyv4393, ContainerPort{}) // var yyz4393 ContainerPort yyc4393 = true } yyh4393.ElemContainerState(yyj4393) if yyj4393 < len(yyv4393) { if r.TryDecodeAsNil() { yyv4393[yyj4393] = ContainerPort{} } else { yyv4396 := &yyv4393[yyj4393] yyv4396.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4393 < len(yyv4393) { yyv4393 = yyv4393[:yyj4393] yyc4393 = true } else if yyj4393 == 0 && yyv4393 == nil { yyv4393 = []ContainerPort{} yyc4393 = true } } yyh4393.End() if yyc4393 { *v = yyv4393 } } 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 _, yyv4397 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4398 := &yyv4397 yy4398.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 yyv4399 := *v yyh4399, yyl4399 := z.DecSliceHelperStart() var yyc4399 bool if yyl4399 == 0 { if yyv4399 == nil { yyv4399 = []EnvVar{} yyc4399 = true } else if len(yyv4399) != 0 { yyv4399 = yyv4399[:0] yyc4399 = true } } else if yyl4399 > 0 { var yyrr4399, yyrl4399 int var yyrt4399 bool if yyl4399 > cap(yyv4399) { yyrg4399 := len(yyv4399) > 0 yyv24399 := yyv4399 yyrl4399, yyrt4399 = z.DecInferLen(yyl4399, z.DecBasicHandle().MaxInitLen, 40) if yyrt4399 { if yyrl4399 <= cap(yyv4399) { yyv4399 = yyv4399[:yyrl4399] } else { yyv4399 = make([]EnvVar, yyrl4399) } } else { yyv4399 = make([]EnvVar, yyrl4399) } yyc4399 = true yyrr4399 = len(yyv4399) if yyrg4399 { copy(yyv4399, yyv24399) } } else if yyl4399 != len(yyv4399) { yyv4399 = yyv4399[:yyl4399] yyc4399 = true } yyj4399 := 0 for ; yyj4399 < yyrr4399; yyj4399++ { yyh4399.ElemContainerState(yyj4399) if r.TryDecodeAsNil() { yyv4399[yyj4399] = EnvVar{} } else { yyv4400 := &yyv4399[yyj4399] yyv4400.CodecDecodeSelf(d) } } if yyrt4399 { for ; yyj4399 < yyl4399; yyj4399++ { yyv4399 = append(yyv4399, EnvVar{}) yyh4399.ElemContainerState(yyj4399) if r.TryDecodeAsNil() { yyv4399[yyj4399] = EnvVar{} } else { yyv4401 := &yyv4399[yyj4399] yyv4401.CodecDecodeSelf(d) } } } } else { yyj4399 := 0 for ; !r.CheckBreak(); yyj4399++ { if yyj4399 >= len(yyv4399) { yyv4399 = append(yyv4399, EnvVar{}) // var yyz4399 EnvVar yyc4399 = true } yyh4399.ElemContainerState(yyj4399) if yyj4399 < len(yyv4399) { if r.TryDecodeAsNil() { yyv4399[yyj4399] = EnvVar{} } else { yyv4402 := &yyv4399[yyj4399] yyv4402.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4399 < len(yyv4399) { yyv4399 = yyv4399[:yyj4399] yyc4399 = true } else if yyj4399 == 0 && yyv4399 == nil { yyv4399 = []EnvVar{} yyc4399 = true } } yyh4399.End() if yyc4399 { *v = yyv4399 } } 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 _, yyv4403 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4404 := &yyv4403 yy4404.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 yyv4405 := *v yyh4405, yyl4405 := z.DecSliceHelperStart() var yyc4405 bool if yyl4405 == 0 { if yyv4405 == nil { yyv4405 = []VolumeMount{} yyc4405 = true } else if len(yyv4405) != 0 { yyv4405 = yyv4405[:0] yyc4405 = true } } else if yyl4405 > 0 { var yyrr4405, yyrl4405 int var yyrt4405 bool if yyl4405 > cap(yyv4405) { yyrg4405 := len(yyv4405) > 0 yyv24405 := yyv4405 yyrl4405, yyrt4405 = z.DecInferLen(yyl4405, z.DecBasicHandle().MaxInitLen, 56) if yyrt4405 { if yyrl4405 <= cap(yyv4405) { yyv4405 = yyv4405[:yyrl4405] } else { yyv4405 = make([]VolumeMount, yyrl4405) } } else { yyv4405 = make([]VolumeMount, yyrl4405) } yyc4405 = true yyrr4405 = len(yyv4405) if yyrg4405 { copy(yyv4405, yyv24405) } } else if yyl4405 != len(yyv4405) { yyv4405 = yyv4405[:yyl4405] yyc4405 = true } yyj4405 := 0 for ; yyj4405 < yyrr4405; yyj4405++ { yyh4405.ElemContainerState(yyj4405) if r.TryDecodeAsNil() { yyv4405[yyj4405] = VolumeMount{} } else { yyv4406 := &yyv4405[yyj4405] yyv4406.CodecDecodeSelf(d) } } if yyrt4405 { for ; yyj4405 < yyl4405; yyj4405++ { yyv4405 = append(yyv4405, VolumeMount{}) yyh4405.ElemContainerState(yyj4405) if r.TryDecodeAsNil() { yyv4405[yyj4405] = VolumeMount{} } else { yyv4407 := &yyv4405[yyj4405] yyv4407.CodecDecodeSelf(d) } } } } else { yyj4405 := 0 for ; !r.CheckBreak(); yyj4405++ { if yyj4405 >= len(yyv4405) { yyv4405 = append(yyv4405, VolumeMount{}) // var yyz4405 VolumeMount yyc4405 = true } yyh4405.ElemContainerState(yyj4405) if yyj4405 < len(yyv4405) { if r.TryDecodeAsNil() { yyv4405[yyj4405] = VolumeMount{} } else { yyv4408 := &yyv4405[yyj4405] yyv4408.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4405 < len(yyv4405) { yyv4405 = yyv4405[:yyj4405] yyc4405 = true } else if yyj4405 == 0 && yyv4405 == nil { yyv4405 = []VolumeMount{} yyc4405 = true } } yyh4405.End() if yyc4405 { *v = yyv4405 } } 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 _, yyv4409 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4410 := &yyv4409 yy4410.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 yyv4411 := *v yyh4411, yyl4411 := z.DecSliceHelperStart() var yyc4411 bool if yyl4411 == 0 { if yyv4411 == nil { yyv4411 = []Pod{} yyc4411 = true } else if len(yyv4411) != 0 { yyv4411 = yyv4411[:0] yyc4411 = true } } else if yyl4411 > 0 { var yyrr4411, yyrl4411 int var yyrt4411 bool if yyl4411 > cap(yyv4411) { yyrg4411 := len(yyv4411) > 0 yyv24411 := yyv4411 yyrl4411, yyrt4411 = z.DecInferLen(yyl4411, z.DecBasicHandle().MaxInitLen, 624) if yyrt4411 { if yyrl4411 <= cap(yyv4411) { yyv4411 = yyv4411[:yyrl4411] } else { yyv4411 = make([]Pod, yyrl4411) } } else { yyv4411 = make([]Pod, yyrl4411) } yyc4411 = true yyrr4411 = len(yyv4411) if yyrg4411 { copy(yyv4411, yyv24411) } } else if yyl4411 != len(yyv4411) { yyv4411 = yyv4411[:yyl4411] yyc4411 = true } yyj4411 := 0 for ; yyj4411 < yyrr4411; yyj4411++ { yyh4411.ElemContainerState(yyj4411) if r.TryDecodeAsNil() { yyv4411[yyj4411] = Pod{} } else { yyv4412 := &yyv4411[yyj4411] yyv4412.CodecDecodeSelf(d) } } if yyrt4411 { for ; yyj4411 < yyl4411; yyj4411++ { yyv4411 = append(yyv4411, Pod{}) yyh4411.ElemContainerState(yyj4411) if r.TryDecodeAsNil() { yyv4411[yyj4411] = Pod{} } else { yyv4413 := &yyv4411[yyj4411] yyv4413.CodecDecodeSelf(d) } } } } else { yyj4411 := 0 for ; !r.CheckBreak(); yyj4411++ { if yyj4411 >= len(yyv4411) { yyv4411 = append(yyv4411, Pod{}) // var yyz4411 Pod yyc4411 = true } yyh4411.ElemContainerState(yyj4411) if yyj4411 < len(yyv4411) { if r.TryDecodeAsNil() { yyv4411[yyj4411] = Pod{} } else { yyv4414 := &yyv4411[yyj4411] yyv4414.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4411 < len(yyv4411) { yyv4411 = yyv4411[:yyj4411] yyc4411 = true } else if yyj4411 == 0 && yyv4411 == nil { yyv4411 = []Pod{} yyc4411 = true } } yyh4411.End() if yyc4411 { *v = yyv4411 } } 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 _, yyv4415 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4416 := &yyv4415 yy4416.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 yyv4417 := *v yyh4417, yyl4417 := z.DecSliceHelperStart() var yyc4417 bool if yyl4417 == 0 { if yyv4417 == nil { yyv4417 = []NodeSelectorTerm{} yyc4417 = true } else if len(yyv4417) != 0 { yyv4417 = yyv4417[:0] yyc4417 = true } } else if yyl4417 > 0 { var yyrr4417, yyrl4417 int var yyrt4417 bool if yyl4417 > cap(yyv4417) { yyrg4417 := len(yyv4417) > 0 yyv24417 := yyv4417 yyrl4417, yyrt4417 = z.DecInferLen(yyl4417, z.DecBasicHandle().MaxInitLen, 24) if yyrt4417 { if yyrl4417 <= cap(yyv4417) { yyv4417 = yyv4417[:yyrl4417] } else { yyv4417 = make([]NodeSelectorTerm, yyrl4417) } } else { yyv4417 = make([]NodeSelectorTerm, yyrl4417) } yyc4417 = true yyrr4417 = len(yyv4417) if yyrg4417 { copy(yyv4417, yyv24417) } } else if yyl4417 != len(yyv4417) { yyv4417 = yyv4417[:yyl4417] yyc4417 = true } yyj4417 := 0 for ; yyj4417 < yyrr4417; yyj4417++ { yyh4417.ElemContainerState(yyj4417) if r.TryDecodeAsNil() { yyv4417[yyj4417] = NodeSelectorTerm{} } else { yyv4418 := &yyv4417[yyj4417] yyv4418.CodecDecodeSelf(d) } } if yyrt4417 { for ; yyj4417 < yyl4417; yyj4417++ { yyv4417 = append(yyv4417, NodeSelectorTerm{}) yyh4417.ElemContainerState(yyj4417) if r.TryDecodeAsNil() { yyv4417[yyj4417] = NodeSelectorTerm{} } else { yyv4419 := &yyv4417[yyj4417] yyv4419.CodecDecodeSelf(d) } } } } else { yyj4417 := 0 for ; !r.CheckBreak(); yyj4417++ { if yyj4417 >= len(yyv4417) { yyv4417 = append(yyv4417, NodeSelectorTerm{}) // var yyz4417 NodeSelectorTerm yyc4417 = true } yyh4417.ElemContainerState(yyj4417) if yyj4417 < len(yyv4417) { if r.TryDecodeAsNil() { yyv4417[yyj4417] = NodeSelectorTerm{} } else { yyv4420 := &yyv4417[yyj4417] yyv4420.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4417 < len(yyv4417) { yyv4417 = yyv4417[:yyj4417] yyc4417 = true } else if yyj4417 == 0 && yyv4417 == nil { yyv4417 = []NodeSelectorTerm{} yyc4417 = true } } yyh4417.End() if yyc4417 { *v = yyv4417 } } 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 _, yyv4421 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4422 := &yyv4421 yy4422.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 yyv4423 := *v yyh4423, yyl4423 := z.DecSliceHelperStart() var yyc4423 bool if yyl4423 == 0 { if yyv4423 == nil { yyv4423 = []NodeSelectorRequirement{} yyc4423 = true } else if len(yyv4423) != 0 { yyv4423 = yyv4423[:0] yyc4423 = true } } else if yyl4423 > 0 { var yyrr4423, yyrl4423 int var yyrt4423 bool if yyl4423 > cap(yyv4423) { yyrg4423 := len(yyv4423) > 0 yyv24423 := yyv4423 yyrl4423, yyrt4423 = z.DecInferLen(yyl4423, z.DecBasicHandle().MaxInitLen, 56) if yyrt4423 { if yyrl4423 <= cap(yyv4423) { yyv4423 = yyv4423[:yyrl4423] } else { yyv4423 = make([]NodeSelectorRequirement, yyrl4423) } } else { yyv4423 = make([]NodeSelectorRequirement, yyrl4423) } yyc4423 = true yyrr4423 = len(yyv4423) if yyrg4423 { copy(yyv4423, yyv24423) } } else if yyl4423 != len(yyv4423) { yyv4423 = yyv4423[:yyl4423] yyc4423 = true } yyj4423 := 0 for ; yyj4423 < yyrr4423; yyj4423++ { yyh4423.ElemContainerState(yyj4423) if r.TryDecodeAsNil() { yyv4423[yyj4423] = NodeSelectorRequirement{} } else { yyv4424 := &yyv4423[yyj4423] yyv4424.CodecDecodeSelf(d) } } if yyrt4423 { for ; yyj4423 < yyl4423; yyj4423++ { yyv4423 = append(yyv4423, NodeSelectorRequirement{}) yyh4423.ElemContainerState(yyj4423) if r.TryDecodeAsNil() { yyv4423[yyj4423] = NodeSelectorRequirement{} } else { yyv4425 := &yyv4423[yyj4423] yyv4425.CodecDecodeSelf(d) } } } } else { yyj4423 := 0 for ; !r.CheckBreak(); yyj4423++ { if yyj4423 >= len(yyv4423) { yyv4423 = append(yyv4423, NodeSelectorRequirement{}) // var yyz4423 NodeSelectorRequirement yyc4423 = true } yyh4423.ElemContainerState(yyj4423) if yyj4423 < len(yyv4423) { if r.TryDecodeAsNil() { yyv4423[yyj4423] = NodeSelectorRequirement{} } else { yyv4426 := &yyv4423[yyj4423] yyv4426.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4423 < len(yyv4423) { yyv4423 = yyv4423[:yyj4423] yyc4423 = true } else if yyj4423 == 0 && yyv4423 == nil { yyv4423 = []NodeSelectorRequirement{} yyc4423 = true } } yyh4423.End() if yyc4423 { *v = yyv4423 } } 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 _, yyv4427 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4428 := &yyv4427 yy4428.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 yyv4429 := *v yyh4429, yyl4429 := z.DecSliceHelperStart() var yyc4429 bool if yyl4429 == 0 { if yyv4429 == nil { yyv4429 = []PodAffinityTerm{} yyc4429 = true } else if len(yyv4429) != 0 { yyv4429 = yyv4429[:0] yyc4429 = true } } else if yyl4429 > 0 { var yyrr4429, yyrl4429 int var yyrt4429 bool if yyl4429 > cap(yyv4429) { yyrg4429 := len(yyv4429) > 0 yyv24429 := yyv4429 yyrl4429, yyrt4429 = z.DecInferLen(yyl4429, z.DecBasicHandle().MaxInitLen, 48) if yyrt4429 { if yyrl4429 <= cap(yyv4429) { yyv4429 = yyv4429[:yyrl4429] } else { yyv4429 = make([]PodAffinityTerm, yyrl4429) } } else { yyv4429 = make([]PodAffinityTerm, yyrl4429) } yyc4429 = true yyrr4429 = len(yyv4429) if yyrg4429 { copy(yyv4429, yyv24429) } } else if yyl4429 != len(yyv4429) { yyv4429 = yyv4429[:yyl4429] yyc4429 = true } yyj4429 := 0 for ; yyj4429 < yyrr4429; yyj4429++ { yyh4429.ElemContainerState(yyj4429) if r.TryDecodeAsNil() { yyv4429[yyj4429] = PodAffinityTerm{} } else { yyv4430 := &yyv4429[yyj4429] yyv4430.CodecDecodeSelf(d) } } if yyrt4429 { for ; yyj4429 < yyl4429; yyj4429++ { yyv4429 = append(yyv4429, PodAffinityTerm{}) yyh4429.ElemContainerState(yyj4429) if r.TryDecodeAsNil() { yyv4429[yyj4429] = PodAffinityTerm{} } else { yyv4431 := &yyv4429[yyj4429] yyv4431.CodecDecodeSelf(d) } } } } else { yyj4429 := 0 for ; !r.CheckBreak(); yyj4429++ { if yyj4429 >= len(yyv4429) { yyv4429 = append(yyv4429, PodAffinityTerm{}) // var yyz4429 PodAffinityTerm yyc4429 = true } yyh4429.ElemContainerState(yyj4429) if yyj4429 < len(yyv4429) { if r.TryDecodeAsNil() { yyv4429[yyj4429] = PodAffinityTerm{} } else { yyv4432 := &yyv4429[yyj4429] yyv4432.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4429 < len(yyv4429) { yyv4429 = yyv4429[:yyj4429] yyc4429 = true } else if yyj4429 == 0 && yyv4429 == nil { yyv4429 = []PodAffinityTerm{} yyc4429 = true } } yyh4429.End() if yyc4429 { *v = yyv4429 } } 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 _, yyv4433 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4434 := &yyv4433 yy4434.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 yyv4435 := *v yyh4435, yyl4435 := z.DecSliceHelperStart() var yyc4435 bool if yyl4435 == 0 { if yyv4435 == nil { yyv4435 = []WeightedPodAffinityTerm{} yyc4435 = true } else if len(yyv4435) != 0 { yyv4435 = yyv4435[:0] yyc4435 = true } } else if yyl4435 > 0 { var yyrr4435, yyrl4435 int var yyrt4435 bool if yyl4435 > cap(yyv4435) { yyrg4435 := len(yyv4435) > 0 yyv24435 := yyv4435 yyrl4435, yyrt4435 = z.DecInferLen(yyl4435, z.DecBasicHandle().MaxInitLen, 56) if yyrt4435 { if yyrl4435 <= cap(yyv4435) { yyv4435 = yyv4435[:yyrl4435] } else { yyv4435 = make([]WeightedPodAffinityTerm, yyrl4435) } } else { yyv4435 = make([]WeightedPodAffinityTerm, yyrl4435) } yyc4435 = true yyrr4435 = len(yyv4435) if yyrg4435 { copy(yyv4435, yyv24435) } } else if yyl4435 != len(yyv4435) { yyv4435 = yyv4435[:yyl4435] yyc4435 = true } yyj4435 := 0 for ; yyj4435 < yyrr4435; yyj4435++ { yyh4435.ElemContainerState(yyj4435) if r.TryDecodeAsNil() { yyv4435[yyj4435] = WeightedPodAffinityTerm{} } else { yyv4436 := &yyv4435[yyj4435] yyv4436.CodecDecodeSelf(d) } } if yyrt4435 { for ; yyj4435 < yyl4435; yyj4435++ { yyv4435 = append(yyv4435, WeightedPodAffinityTerm{}) yyh4435.ElemContainerState(yyj4435) if r.TryDecodeAsNil() { yyv4435[yyj4435] = WeightedPodAffinityTerm{} } else { yyv4437 := &yyv4435[yyj4435] yyv4437.CodecDecodeSelf(d) } } } } else { yyj4435 := 0 for ; !r.CheckBreak(); yyj4435++ { if yyj4435 >= len(yyv4435) { yyv4435 = append(yyv4435, WeightedPodAffinityTerm{}) // var yyz4435 WeightedPodAffinityTerm yyc4435 = true } yyh4435.ElemContainerState(yyj4435) if yyj4435 < len(yyv4435) { if r.TryDecodeAsNil() { yyv4435[yyj4435] = WeightedPodAffinityTerm{} } else { yyv4438 := &yyv4435[yyj4435] yyv4438.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4435 < len(yyv4435) { yyv4435 = yyv4435[:yyj4435] yyc4435 = true } else if yyj4435 == 0 && yyv4435 == nil { yyv4435 = []WeightedPodAffinityTerm{} yyc4435 = true } } yyh4435.End() if yyc4435 { *v = yyv4435 } } 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 _, yyv4439 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4440 := &yyv4439 yy4440.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 yyv4441 := *v yyh4441, yyl4441 := z.DecSliceHelperStart() var yyc4441 bool if yyl4441 == 0 { if yyv4441 == nil { yyv4441 = []PreferredSchedulingTerm{} 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) { yyrg4441 := len(yyv4441) > 0 yyv24441 := yyv4441 yyrl4441, yyrt4441 = z.DecInferLen(yyl4441, z.DecBasicHandle().MaxInitLen, 32) if yyrt4441 { if yyrl4441 <= cap(yyv4441) { yyv4441 = yyv4441[:yyrl4441] } else { yyv4441 = make([]PreferredSchedulingTerm, yyrl4441) } } else { yyv4441 = make([]PreferredSchedulingTerm, yyrl4441) } yyc4441 = true yyrr4441 = len(yyv4441) if yyrg4441 { copy(yyv4441, yyv24441) } } else if yyl4441 != len(yyv4441) { yyv4441 = yyv4441[:yyl4441] yyc4441 = true } yyj4441 := 0 for ; yyj4441 < yyrr4441; yyj4441++ { yyh4441.ElemContainerState(yyj4441) if r.TryDecodeAsNil() { yyv4441[yyj4441] = PreferredSchedulingTerm{} } else { yyv4442 := &yyv4441[yyj4441] yyv4442.CodecDecodeSelf(d) } } if yyrt4441 { for ; yyj4441 < yyl4441; yyj4441++ { yyv4441 = append(yyv4441, PreferredSchedulingTerm{}) yyh4441.ElemContainerState(yyj4441) if r.TryDecodeAsNil() { yyv4441[yyj4441] = PreferredSchedulingTerm{} } else { yyv4443 := &yyv4441[yyj4441] yyv4443.CodecDecodeSelf(d) } } } } else { yyj4441 := 0 for ; !r.CheckBreak(); yyj4441++ { if yyj4441 >= len(yyv4441) { yyv4441 = append(yyv4441, PreferredSchedulingTerm{}) // var yyz4441 PreferredSchedulingTerm yyc4441 = true } yyh4441.ElemContainerState(yyj4441) if yyj4441 < len(yyv4441) { if r.TryDecodeAsNil() { yyv4441[yyj4441] = PreferredSchedulingTerm{} } else { yyv4444 := &yyv4441[yyj4441] yyv4444.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4441 < len(yyv4441) { yyv4441 = yyv4441[:yyj4441] yyc4441 = true } else if yyj4441 == 0 && yyv4441 == nil { yyv4441 = []PreferredSchedulingTerm{} yyc4441 = true } } yyh4441.End() if yyc4441 { *v = yyv4441 } } 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 _, yyv4445 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4446 := &yyv4445 yy4446.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 yyv4447 := *v yyh4447, yyl4447 := z.DecSliceHelperStart() var yyc4447 bool if yyl4447 == 0 { if yyv4447 == nil { yyv4447 = []Volume{} 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, 176) if yyrt4447 { if yyrl4447 <= cap(yyv4447) { yyv4447 = yyv4447[:yyrl4447] } else { yyv4447 = make([]Volume, yyrl4447) } } else { yyv4447 = make([]Volume, 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] = Volume{} } else { yyv4448 := &yyv4447[yyj4447] yyv4448.CodecDecodeSelf(d) } } if yyrt4447 { for ; yyj4447 < yyl4447; yyj4447++ { yyv4447 = append(yyv4447, Volume{}) yyh4447.ElemContainerState(yyj4447) if r.TryDecodeAsNil() { yyv4447[yyj4447] = Volume{} } else { yyv4449 := &yyv4447[yyj4447] yyv4449.CodecDecodeSelf(d) } } } } else { yyj4447 := 0 for ; !r.CheckBreak(); yyj4447++ { if yyj4447 >= len(yyv4447) { yyv4447 = append(yyv4447, Volume{}) // var yyz4447 Volume yyc4447 = true } yyh4447.ElemContainerState(yyj4447) if yyj4447 < len(yyv4447) { if r.TryDecodeAsNil() { yyv4447[yyj4447] = Volume{} } 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 = []Volume{} yyc4447 = true } } yyh4447.End() if yyc4447 { *v = yyv4447 } } 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 _, yyv4451 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4452 := &yyv4451 yy4452.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 yyv4453 := *v yyh4453, yyl4453 := z.DecSliceHelperStart() var yyc4453 bool if yyl4453 == 0 { if yyv4453 == nil { yyv4453 = []Container{} 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, 256) if yyrt4453 { if yyrl4453 <= cap(yyv4453) { yyv4453 = yyv4453[:yyrl4453] } else { yyv4453 = make([]Container, yyrl4453) } } else { yyv4453 = make([]Container, 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] = Container{} } else { yyv4454 := &yyv4453[yyj4453] yyv4454.CodecDecodeSelf(d) } } if yyrt4453 { for ; yyj4453 < yyl4453; yyj4453++ { yyv4453 = append(yyv4453, Container{}) yyh4453.ElemContainerState(yyj4453) if r.TryDecodeAsNil() { yyv4453[yyj4453] = Container{} } else { yyv4455 := &yyv4453[yyj4453] yyv4455.CodecDecodeSelf(d) } } } } else { yyj4453 := 0 for ; !r.CheckBreak(); yyj4453++ { if yyj4453 >= len(yyv4453) { yyv4453 = append(yyv4453, Container{}) // var yyz4453 Container yyc4453 = true } yyh4453.ElemContainerState(yyj4453) if yyj4453 < len(yyv4453) { if r.TryDecodeAsNil() { yyv4453[yyj4453] = Container{} } 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 = []Container{} yyc4453 = true } } yyh4453.End() if yyc4453 { *v = yyv4453 } } 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 _, yyv4457 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4458 := &yyv4457 yy4458.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 yyv4459 := *v yyh4459, yyl4459 := z.DecSliceHelperStart() var yyc4459 bool if yyl4459 == 0 { if yyv4459 == nil { yyv4459 = []LocalObjectReference{} 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, 16) if yyrt4459 { if yyrl4459 <= cap(yyv4459) { yyv4459 = yyv4459[:yyrl4459] } else { yyv4459 = make([]LocalObjectReference, yyrl4459) } } else { yyv4459 = make([]LocalObjectReference, 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] = LocalObjectReference{} } else { yyv4460 := &yyv4459[yyj4459] yyv4460.CodecDecodeSelf(d) } } if yyrt4459 { for ; yyj4459 < yyl4459; yyj4459++ { yyv4459 = append(yyv4459, LocalObjectReference{}) yyh4459.ElemContainerState(yyj4459) if r.TryDecodeAsNil() { yyv4459[yyj4459] = LocalObjectReference{} } else { yyv4461 := &yyv4459[yyj4459] yyv4461.CodecDecodeSelf(d) } } } } else { yyj4459 := 0 for ; !r.CheckBreak(); yyj4459++ { if yyj4459 >= len(yyv4459) { yyv4459 = append(yyv4459, LocalObjectReference{}) // var yyz4459 LocalObjectReference yyc4459 = true } yyh4459.ElemContainerState(yyj4459) if yyj4459 < len(yyv4459) { if r.TryDecodeAsNil() { yyv4459[yyj4459] = LocalObjectReference{} } 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 = []LocalObjectReference{} yyc4459 = true } } yyh4459.End() if yyc4459 { *v = yyv4459 } } 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 _, yyv4463 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4464 := &yyv4463 yy4464.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 yyv4465 := *v yyh4465, yyl4465 := z.DecSliceHelperStart() var yyc4465 bool if yyl4465 == 0 { if yyv4465 == nil { yyv4465 = []PodCondition{} 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, 112) if yyrt4465 { if yyrl4465 <= cap(yyv4465) { yyv4465 = yyv4465[:yyrl4465] } else { yyv4465 = make([]PodCondition, yyrl4465) } } else { yyv4465 = make([]PodCondition, 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] = PodCondition{} } else { yyv4466 := &yyv4465[yyj4465] yyv4466.CodecDecodeSelf(d) } } if yyrt4465 { for ; yyj4465 < yyl4465; yyj4465++ { yyv4465 = append(yyv4465, PodCondition{}) yyh4465.ElemContainerState(yyj4465) if r.TryDecodeAsNil() { yyv4465[yyj4465] = PodCondition{} } else { yyv4467 := &yyv4465[yyj4465] yyv4467.CodecDecodeSelf(d) } } } } else { yyj4465 := 0 for ; !r.CheckBreak(); yyj4465++ { if yyj4465 >= len(yyv4465) { yyv4465 = append(yyv4465, PodCondition{}) // var yyz4465 PodCondition yyc4465 = true } yyh4465.ElemContainerState(yyj4465) if yyj4465 < len(yyv4465) { if r.TryDecodeAsNil() { yyv4465[yyj4465] = PodCondition{} } 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 = []PodCondition{} yyc4465 = true } } yyh4465.End() if yyc4465 { *v = yyv4465 } } 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 _, yyv4469 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4470 := &yyv4469 yy4470.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 yyv4471 := *v yyh4471, yyl4471 := z.DecSliceHelperStart() var yyc4471 bool if yyl4471 == 0 { if yyv4471 == nil { yyv4471 = []ContainerStatus{} 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, 120) if yyrt4471 { if yyrl4471 <= cap(yyv4471) { yyv4471 = yyv4471[:yyrl4471] } else { yyv4471 = make([]ContainerStatus, yyrl4471) } } else { yyv4471 = make([]ContainerStatus, 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] = ContainerStatus{} } else { yyv4472 := &yyv4471[yyj4471] yyv4472.CodecDecodeSelf(d) } } if yyrt4471 { for ; yyj4471 < yyl4471; yyj4471++ { yyv4471 = append(yyv4471, ContainerStatus{}) yyh4471.ElemContainerState(yyj4471) if r.TryDecodeAsNil() { yyv4471[yyj4471] = ContainerStatus{} } else { yyv4473 := &yyv4471[yyj4471] yyv4473.CodecDecodeSelf(d) } } } } else { yyj4471 := 0 for ; !r.CheckBreak(); yyj4471++ { if yyj4471 >= len(yyv4471) { yyv4471 = append(yyv4471, ContainerStatus{}) // var yyz4471 ContainerStatus yyc4471 = true } yyh4471.ElemContainerState(yyj4471) if yyj4471 < len(yyv4471) { if r.TryDecodeAsNil() { yyv4471[yyj4471] = ContainerStatus{} } 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 = []ContainerStatus{} yyc4471 = true } } yyh4471.End() if yyc4471 { *v = yyv4471 } } 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 _, yyv4475 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4476 := &yyv4475 yy4476.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 yyv4477 := *v yyh4477, yyl4477 := z.DecSliceHelperStart() var yyc4477 bool if yyl4477 == 0 { if yyv4477 == nil { yyv4477 = []PodTemplate{} 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, 672) if yyrt4477 { if yyrl4477 <= cap(yyv4477) { yyv4477 = yyv4477[:yyrl4477] } else { yyv4477 = make([]PodTemplate, yyrl4477) } } else { yyv4477 = make([]PodTemplate, 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] = PodTemplate{} } else { yyv4478 := &yyv4477[yyj4477] yyv4478.CodecDecodeSelf(d) } } if yyrt4477 { for ; yyj4477 < yyl4477; yyj4477++ { yyv4477 = append(yyv4477, PodTemplate{}) yyh4477.ElemContainerState(yyj4477) if r.TryDecodeAsNil() { yyv4477[yyj4477] = PodTemplate{} } else { yyv4479 := &yyv4477[yyj4477] yyv4479.CodecDecodeSelf(d) } } } } else { yyj4477 := 0 for ; !r.CheckBreak(); yyj4477++ { if yyj4477 >= len(yyv4477) { yyv4477 = append(yyv4477, PodTemplate{}) // var yyz4477 PodTemplate yyc4477 = true } yyh4477.ElemContainerState(yyj4477) if yyj4477 < len(yyv4477) { if r.TryDecodeAsNil() { yyv4477[yyj4477] = PodTemplate{} } 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 = []PodTemplate{} yyc4477 = true } } yyh4477.End() if yyc4477 { *v = yyv4477 } } 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 _, yyv4481 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4482 := &yyv4481 yy4482.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 yyv4483 := *v yyh4483, yyl4483 := z.DecSliceHelperStart() var yyc4483 bool if yyl4483 == 0 { if yyv4483 == nil { yyv4483 = []ReplicationController{} 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, 280) if yyrt4483 { if yyrl4483 <= cap(yyv4483) { yyv4483 = yyv4483[:yyrl4483] } else { yyv4483 = make([]ReplicationController, yyrl4483) } } else { yyv4483 = make([]ReplicationController, 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] = ReplicationController{} } else { yyv4484 := &yyv4483[yyj4483] yyv4484.CodecDecodeSelf(d) } } if yyrt4483 { for ; yyj4483 < yyl4483; yyj4483++ { yyv4483 = append(yyv4483, ReplicationController{}) yyh4483.ElemContainerState(yyj4483) if r.TryDecodeAsNil() { yyv4483[yyj4483] = ReplicationController{} } else { yyv4485 := &yyv4483[yyj4483] yyv4485.CodecDecodeSelf(d) } } } } else { yyj4483 := 0 for ; !r.CheckBreak(); yyj4483++ { if yyj4483 >= len(yyv4483) { yyv4483 = append(yyv4483, ReplicationController{}) // var yyz4483 ReplicationController yyc4483 = true } yyh4483.ElemContainerState(yyj4483) if yyj4483 < len(yyv4483) { if r.TryDecodeAsNil() { yyv4483[yyj4483] = ReplicationController{} } 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 = []ReplicationController{} yyc4483 = true } } yyh4483.End() if yyc4483 { *v = yyv4483 } } 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 _, yyv4487 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4488 := &yyv4487 yy4488.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 yyv4489 := *v yyh4489, yyl4489 := z.DecSliceHelperStart() var yyc4489 bool if yyl4489 == 0 { if yyv4489 == nil { yyv4489 = []Service{} 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, 408) if yyrt4489 { if yyrl4489 <= cap(yyv4489) { yyv4489 = yyv4489[:yyrl4489] } else { yyv4489 = make([]Service, yyrl4489) } } else { yyv4489 = make([]Service, 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] = Service{} } else { yyv4490 := &yyv4489[yyj4489] yyv4490.CodecDecodeSelf(d) } } if yyrt4489 { for ; yyj4489 < yyl4489; yyj4489++ { yyv4489 = append(yyv4489, Service{}) yyh4489.ElemContainerState(yyj4489) if r.TryDecodeAsNil() { yyv4489[yyj4489] = Service{} } else { yyv4491 := &yyv4489[yyj4489] yyv4491.CodecDecodeSelf(d) } } } } else { yyj4489 := 0 for ; !r.CheckBreak(); yyj4489++ { if yyj4489 >= len(yyv4489) { yyv4489 = append(yyv4489, Service{}) // var yyz4489 Service yyc4489 = true } yyh4489.ElemContainerState(yyj4489) if yyj4489 < len(yyv4489) { if r.TryDecodeAsNil() { yyv4489[yyj4489] = Service{} } 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 = []Service{} yyc4489 = true } } yyh4489.End() if yyc4489 { *v = yyv4489 } } 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 _, yyv4493 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4494 := &yyv4493 yy4494.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 yyv4495 := *v yyh4495, yyl4495 := z.DecSliceHelperStart() var yyc4495 bool if yyl4495 == 0 { if yyv4495 == nil { yyv4495 = []LoadBalancerIngress{} 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([]LoadBalancerIngress, yyrl4495) } } else { yyv4495 = make([]LoadBalancerIngress, 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] = LoadBalancerIngress{} } else { yyv4496 := &yyv4495[yyj4495] yyv4496.CodecDecodeSelf(d) } } if yyrt4495 { for ; yyj4495 < yyl4495; yyj4495++ { yyv4495 = append(yyv4495, LoadBalancerIngress{}) yyh4495.ElemContainerState(yyj4495) if r.TryDecodeAsNil() { yyv4495[yyj4495] = LoadBalancerIngress{} } else { yyv4497 := &yyv4495[yyj4495] yyv4497.CodecDecodeSelf(d) } } } } else { yyj4495 := 0 for ; !r.CheckBreak(); yyj4495++ { if yyj4495 >= len(yyv4495) { yyv4495 = append(yyv4495, LoadBalancerIngress{}) // var yyz4495 LoadBalancerIngress yyc4495 = true } yyh4495.ElemContainerState(yyj4495) if yyj4495 < len(yyv4495) { if r.TryDecodeAsNil() { yyv4495[yyj4495] = LoadBalancerIngress{} } 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 = []LoadBalancerIngress{} yyc4495 = true } } yyh4495.End() if yyc4495 { *v = yyv4495 } } 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 _, yyv4499 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4500 := &yyv4499 yy4500.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 yyv4501 := *v yyh4501, yyl4501 := z.DecSliceHelperStart() var yyc4501 bool if yyl4501 == 0 { if yyv4501 == nil { yyv4501 = []ServicePort{} 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, 80) if yyrt4501 { if yyrl4501 <= cap(yyv4501) { yyv4501 = yyv4501[:yyrl4501] } else { yyv4501 = make([]ServicePort, yyrl4501) } } else { yyv4501 = make([]ServicePort, 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] = ServicePort{} } else { yyv4502 := &yyv4501[yyj4501] yyv4502.CodecDecodeSelf(d) } } if yyrt4501 { for ; yyj4501 < yyl4501; yyj4501++ { yyv4501 = append(yyv4501, ServicePort{}) yyh4501.ElemContainerState(yyj4501) if r.TryDecodeAsNil() { yyv4501[yyj4501] = ServicePort{} } else { yyv4503 := &yyv4501[yyj4501] yyv4503.CodecDecodeSelf(d) } } } } else { yyj4501 := 0 for ; !r.CheckBreak(); yyj4501++ { if yyj4501 >= len(yyv4501) { yyv4501 = append(yyv4501, ServicePort{}) // var yyz4501 ServicePort yyc4501 = true } yyh4501.ElemContainerState(yyj4501) if yyj4501 < len(yyv4501) { if r.TryDecodeAsNil() { yyv4501[yyj4501] = ServicePort{} } 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 = []ServicePort{} yyc4501 = true } } yyh4501.End() if yyc4501 { *v = yyv4501 } } 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 _, yyv4505 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4506 := &yyv4505 yy4506.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 yyv4507 := *v yyh4507, yyl4507 := z.DecSliceHelperStart() var yyc4507 bool if yyl4507 == 0 { if yyv4507 == nil { yyv4507 = []ObjectReference{} 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, 112) if yyrt4507 { if yyrl4507 <= cap(yyv4507) { yyv4507 = yyv4507[:yyrl4507] } else { yyv4507 = make([]ObjectReference, yyrl4507) } } else { yyv4507 = make([]ObjectReference, 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] = ObjectReference{} } else { yyv4508 := &yyv4507[yyj4507] yyv4508.CodecDecodeSelf(d) } } if yyrt4507 { for ; yyj4507 < yyl4507; yyj4507++ { yyv4507 = append(yyv4507, ObjectReference{}) yyh4507.ElemContainerState(yyj4507) if r.TryDecodeAsNil() { yyv4507[yyj4507] = ObjectReference{} } else { yyv4509 := &yyv4507[yyj4507] yyv4509.CodecDecodeSelf(d) } } } } else { yyj4507 := 0 for ; !r.CheckBreak(); yyj4507++ { if yyj4507 >= len(yyv4507) { yyv4507 = append(yyv4507, ObjectReference{}) // var yyz4507 ObjectReference yyc4507 = true } yyh4507.ElemContainerState(yyj4507) if yyj4507 < len(yyv4507) { if r.TryDecodeAsNil() { yyv4507[yyj4507] = ObjectReference{} } 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 = []ObjectReference{} yyc4507 = true } } yyh4507.End() if yyc4507 { *v = yyv4507 } } 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 _, yyv4511 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4512 := &yyv4511 yy4512.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 yyv4513 := *v yyh4513, yyl4513 := z.DecSliceHelperStart() var yyc4513 bool if yyl4513 == 0 { if yyv4513 == nil { yyv4513 = []ServiceAccount{} 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, 288) if yyrt4513 { if yyrl4513 <= cap(yyv4513) { yyv4513 = yyv4513[:yyrl4513] } else { yyv4513 = make([]ServiceAccount, yyrl4513) } } else { yyv4513 = make([]ServiceAccount, 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] = ServiceAccount{} } else { yyv4514 := &yyv4513[yyj4513] yyv4514.CodecDecodeSelf(d) } } if yyrt4513 { for ; yyj4513 < yyl4513; yyj4513++ { yyv4513 = append(yyv4513, ServiceAccount{}) yyh4513.ElemContainerState(yyj4513) if r.TryDecodeAsNil() { yyv4513[yyj4513] = ServiceAccount{} } else { yyv4515 := &yyv4513[yyj4513] yyv4515.CodecDecodeSelf(d) } } } } else { yyj4513 := 0 for ; !r.CheckBreak(); yyj4513++ { if yyj4513 >= len(yyv4513) { yyv4513 = append(yyv4513, ServiceAccount{}) // var yyz4513 ServiceAccount yyc4513 = true } yyh4513.ElemContainerState(yyj4513) if yyj4513 < len(yyv4513) { if r.TryDecodeAsNil() { yyv4513[yyj4513] = ServiceAccount{} } 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 = []ServiceAccount{} yyc4513 = true } } yyh4513.End() if yyc4513 { *v = yyv4513 } } 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 _, yyv4517 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4518 := &yyv4517 yy4518.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 yyv4519 := *v yyh4519, yyl4519 := z.DecSliceHelperStart() var yyc4519 bool if yyl4519 == 0 { if yyv4519 == nil { yyv4519 = []EndpointSubset{} 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, 72) if yyrt4519 { if yyrl4519 <= cap(yyv4519) { yyv4519 = yyv4519[:yyrl4519] } else { yyv4519 = make([]EndpointSubset, yyrl4519) } } else { yyv4519 = make([]EndpointSubset, 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] = EndpointSubset{} } else { yyv4520 := &yyv4519[yyj4519] yyv4520.CodecDecodeSelf(d) } } if yyrt4519 { for ; yyj4519 < yyl4519; yyj4519++ { yyv4519 = append(yyv4519, EndpointSubset{}) yyh4519.ElemContainerState(yyj4519) if r.TryDecodeAsNil() { yyv4519[yyj4519] = EndpointSubset{} } else { yyv4521 := &yyv4519[yyj4519] yyv4521.CodecDecodeSelf(d) } } } } else { yyj4519 := 0 for ; !r.CheckBreak(); yyj4519++ { if yyj4519 >= len(yyv4519) { yyv4519 = append(yyv4519, EndpointSubset{}) // var yyz4519 EndpointSubset yyc4519 = true } yyh4519.ElemContainerState(yyj4519) if yyj4519 < len(yyv4519) { if r.TryDecodeAsNil() { yyv4519[yyj4519] = EndpointSubset{} } 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 = []EndpointSubset{} yyc4519 = true } } yyh4519.End() if yyc4519 { *v = yyv4519 } } 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 _, yyv4523 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4524 := &yyv4523 yy4524.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 yyv4525 := *v yyh4525, yyl4525 := z.DecSliceHelperStart() var yyc4525 bool if yyl4525 == 0 { if yyv4525 == nil { yyv4525 = []EndpointAddress{} 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, 40) if yyrt4525 { if yyrl4525 <= cap(yyv4525) { yyv4525 = yyv4525[:yyrl4525] } else { yyv4525 = make([]EndpointAddress, yyrl4525) } } else { yyv4525 = make([]EndpointAddress, 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] = EndpointAddress{} } else { yyv4526 := &yyv4525[yyj4525] yyv4526.CodecDecodeSelf(d) } } if yyrt4525 { for ; yyj4525 < yyl4525; yyj4525++ { yyv4525 = append(yyv4525, EndpointAddress{}) yyh4525.ElemContainerState(yyj4525) if r.TryDecodeAsNil() { yyv4525[yyj4525] = EndpointAddress{} } else { yyv4527 := &yyv4525[yyj4525] yyv4527.CodecDecodeSelf(d) } } } } else { yyj4525 := 0 for ; !r.CheckBreak(); yyj4525++ { if yyj4525 >= len(yyv4525) { yyv4525 = append(yyv4525, EndpointAddress{}) // var yyz4525 EndpointAddress yyc4525 = true } yyh4525.ElemContainerState(yyj4525) if yyj4525 < len(yyv4525) { if r.TryDecodeAsNil() { yyv4525[yyj4525] = EndpointAddress{} } 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 = []EndpointAddress{} yyc4525 = true } } yyh4525.End() if yyc4525 { *v = yyv4525 } } 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 _, yyv4529 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4530 := &yyv4529 yy4530.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 yyv4531 := *v yyh4531, yyl4531 := z.DecSliceHelperStart() var yyc4531 bool if yyl4531 == 0 { if yyv4531 == nil { yyv4531 = []EndpointPort{} 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, 40) if yyrt4531 { if yyrl4531 <= cap(yyv4531) { yyv4531 = yyv4531[:yyrl4531] } else { yyv4531 = make([]EndpointPort, yyrl4531) } } else { yyv4531 = make([]EndpointPort, 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] = EndpointPort{} } else { yyv4532 := &yyv4531[yyj4531] yyv4532.CodecDecodeSelf(d) } } if yyrt4531 { for ; yyj4531 < yyl4531; yyj4531++ { yyv4531 = append(yyv4531, EndpointPort{}) yyh4531.ElemContainerState(yyj4531) if r.TryDecodeAsNil() { yyv4531[yyj4531] = EndpointPort{} } else { yyv4533 := &yyv4531[yyj4531] yyv4533.CodecDecodeSelf(d) } } } } else { yyj4531 := 0 for ; !r.CheckBreak(); yyj4531++ { if yyj4531 >= len(yyv4531) { yyv4531 = append(yyv4531, EndpointPort{}) // var yyz4531 EndpointPort yyc4531 = true } yyh4531.ElemContainerState(yyj4531) if yyj4531 < len(yyv4531) { if r.TryDecodeAsNil() { yyv4531[yyj4531] = EndpointPort{} } 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 = []EndpointPort{} yyc4531 = true } } yyh4531.End() if yyc4531 { *v = yyv4531 } } 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 _, yyv4535 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4536 := &yyv4535 yy4536.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 yyv4537 := *v yyh4537, yyl4537 := z.DecSliceHelperStart() var yyc4537 bool if yyl4537 == 0 { if yyv4537 == nil { yyv4537 = []Endpoints{} 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, 264) if yyrt4537 { if yyrl4537 <= cap(yyv4537) { yyv4537 = yyv4537[:yyrl4537] } else { yyv4537 = make([]Endpoints, yyrl4537) } } else { yyv4537 = make([]Endpoints, 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] = Endpoints{} } else { yyv4538 := &yyv4537[yyj4537] yyv4538.CodecDecodeSelf(d) } } if yyrt4537 { for ; yyj4537 < yyl4537; yyj4537++ { yyv4537 = append(yyv4537, Endpoints{}) yyh4537.ElemContainerState(yyj4537) if r.TryDecodeAsNil() { yyv4537[yyj4537] = Endpoints{} } else { yyv4539 := &yyv4537[yyj4537] yyv4539.CodecDecodeSelf(d) } } } } else { yyj4537 := 0 for ; !r.CheckBreak(); yyj4537++ { if yyj4537 >= len(yyv4537) { yyv4537 = append(yyv4537, Endpoints{}) // var yyz4537 Endpoints yyc4537 = true } yyh4537.ElemContainerState(yyj4537) if yyj4537 < len(yyv4537) { if r.TryDecodeAsNil() { yyv4537[yyj4537] = Endpoints{} } 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 = []Endpoints{} yyc4537 = true } } yyh4537.End() if yyc4537 { *v = yyv4537 } } 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 _, yyv4541 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4542 := &yyv4541 yy4542.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 yyv4543 := *v yyh4543, yyl4543 := z.DecSliceHelperStart() var yyc4543 bool if yyl4543 == 0 { if yyv4543 == nil { yyv4543 = []NodeCondition{} 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, 112) if yyrt4543 { if yyrl4543 <= cap(yyv4543) { yyv4543 = yyv4543[:yyrl4543] } else { yyv4543 = make([]NodeCondition, yyrl4543) } } else { yyv4543 = make([]NodeCondition, 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] = NodeCondition{} } else { yyv4544 := &yyv4543[yyj4543] yyv4544.CodecDecodeSelf(d) } } if yyrt4543 { for ; yyj4543 < yyl4543; yyj4543++ { yyv4543 = append(yyv4543, NodeCondition{}) yyh4543.ElemContainerState(yyj4543) if r.TryDecodeAsNil() { yyv4543[yyj4543] = NodeCondition{} } else { yyv4545 := &yyv4543[yyj4543] yyv4545.CodecDecodeSelf(d) } } } } else { yyj4543 := 0 for ; !r.CheckBreak(); yyj4543++ { if yyj4543 >= len(yyv4543) { yyv4543 = append(yyv4543, NodeCondition{}) // var yyz4543 NodeCondition yyc4543 = true } yyh4543.ElemContainerState(yyj4543) if yyj4543 < len(yyv4543) { if r.TryDecodeAsNil() { yyv4543[yyj4543] = NodeCondition{} } 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 = []NodeCondition{} yyc4543 = true } } yyh4543.End() if yyc4543 { *v = yyv4543 } } 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 _, yyv4547 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4548 := &yyv4547 yy4548.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 yyv4549 := *v yyh4549, yyl4549 := z.DecSliceHelperStart() var yyc4549 bool if yyl4549 == 0 { if yyv4549 == nil { yyv4549 = []NodeAddress{} 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([]NodeAddress, yyrl4549) } } else { yyv4549 = make([]NodeAddress, 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] = NodeAddress{} } else { yyv4550 := &yyv4549[yyj4549] yyv4550.CodecDecodeSelf(d) } } if yyrt4549 { for ; yyj4549 < yyl4549; yyj4549++ { yyv4549 = append(yyv4549, NodeAddress{}) yyh4549.ElemContainerState(yyj4549) if r.TryDecodeAsNil() { yyv4549[yyj4549] = NodeAddress{} } else { yyv4551 := &yyv4549[yyj4549] yyv4551.CodecDecodeSelf(d) } } } } else { yyj4549 := 0 for ; !r.CheckBreak(); yyj4549++ { if yyj4549 >= len(yyv4549) { yyv4549 = append(yyv4549, NodeAddress{}) // var yyz4549 NodeAddress yyc4549 = true } yyh4549.ElemContainerState(yyj4549) if yyj4549 < len(yyv4549) { if r.TryDecodeAsNil() { yyv4549[yyj4549] = NodeAddress{} } 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 = []NodeAddress{} yyc4549 = true } } yyh4549.End() if yyc4549 { *v = yyv4549 } } 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 _, yyv4553 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4554 := &yyv4553 yy4554.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 yyv4555 := *v yyh4555, yyl4555 := z.DecSliceHelperStart() var yyc4555 bool if yyl4555 == 0 { if yyv4555 == nil { yyv4555 = []ContainerImage{} 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, 32) if yyrt4555 { if yyrl4555 <= cap(yyv4555) { yyv4555 = yyv4555[:yyrl4555] } else { yyv4555 = make([]ContainerImage, yyrl4555) } } else { yyv4555 = make([]ContainerImage, 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] = ContainerImage{} } else { yyv4556 := &yyv4555[yyj4555] yyv4556.CodecDecodeSelf(d) } } if yyrt4555 { for ; yyj4555 < yyl4555; yyj4555++ { yyv4555 = append(yyv4555, ContainerImage{}) yyh4555.ElemContainerState(yyj4555) if r.TryDecodeAsNil() { yyv4555[yyj4555] = ContainerImage{} } else { yyv4557 := &yyv4555[yyj4555] yyv4557.CodecDecodeSelf(d) } } } } else { yyj4555 := 0 for ; !r.CheckBreak(); yyj4555++ { if yyj4555 >= len(yyv4555) { yyv4555 = append(yyv4555, ContainerImage{}) // var yyz4555 ContainerImage yyc4555 = true } yyh4555.ElemContainerState(yyj4555) if yyj4555 < len(yyv4555) { if r.TryDecodeAsNil() { yyv4555[yyj4555] = ContainerImage{} } 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 = []ContainerImage{} yyc4555 = true } } yyh4555.End() if yyc4555 { *v = yyv4555 } } 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 _, yyv4559 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv4559.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 yyv4560 := *v yyh4560, yyl4560 := z.DecSliceHelperStart() var yyc4560 bool if yyl4560 == 0 { if yyv4560 == nil { yyv4560 = []UniqueVolumeName{} yyc4560 = true } else if len(yyv4560) != 0 { yyv4560 = yyv4560[:0] yyc4560 = true } } else if yyl4560 > 0 { var yyrr4560, yyrl4560 int var yyrt4560 bool if yyl4560 > cap(yyv4560) { yyrl4560, yyrt4560 = z.DecInferLen(yyl4560, z.DecBasicHandle().MaxInitLen, 16) if yyrt4560 { if yyrl4560 <= cap(yyv4560) { yyv4560 = yyv4560[:yyrl4560] } else { yyv4560 = make([]UniqueVolumeName, yyrl4560) } } else { yyv4560 = make([]UniqueVolumeName, yyrl4560) } yyc4560 = true yyrr4560 = len(yyv4560) } else if yyl4560 != len(yyv4560) { yyv4560 = yyv4560[:yyl4560] yyc4560 = true } yyj4560 := 0 for ; yyj4560 < yyrr4560; yyj4560++ { yyh4560.ElemContainerState(yyj4560) if r.TryDecodeAsNil() { yyv4560[yyj4560] = "" } else { yyv4560[yyj4560] = UniqueVolumeName(r.DecodeString()) } } if yyrt4560 { for ; yyj4560 < yyl4560; yyj4560++ { yyv4560 = append(yyv4560, "") yyh4560.ElemContainerState(yyj4560) if r.TryDecodeAsNil() { yyv4560[yyj4560] = "" } else { yyv4560[yyj4560] = UniqueVolumeName(r.DecodeString()) } } } } else { yyj4560 := 0 for ; !r.CheckBreak(); yyj4560++ { if yyj4560 >= len(yyv4560) { yyv4560 = append(yyv4560, "") // var yyz4560 UniqueVolumeName yyc4560 = true } yyh4560.ElemContainerState(yyj4560) if yyj4560 < len(yyv4560) { if r.TryDecodeAsNil() { yyv4560[yyj4560] = "" } else { yyv4560[yyj4560] = UniqueVolumeName(r.DecodeString()) } } else { z.DecSwallow() } } if yyj4560 < len(yyv4560) { yyv4560 = yyv4560[:yyj4560] yyc4560 = true } else if yyj4560 == 0 && yyv4560 == nil { yyv4560 = []UniqueVolumeName{} yyc4560 = true } } yyh4560.End() if yyc4560 { *v = yyv4560 } } 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 _, yyv4564 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4565 := &yyv4564 yy4565.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 yyv4566 := *v yyh4566, yyl4566 := z.DecSliceHelperStart() var yyc4566 bool if yyl4566 == 0 { if yyv4566 == nil { yyv4566 = []AttachedVolume{} yyc4566 = true } else if len(yyv4566) != 0 { yyv4566 = yyv4566[:0] yyc4566 = true } } else if yyl4566 > 0 { var yyrr4566, yyrl4566 int var yyrt4566 bool if yyl4566 > cap(yyv4566) { yyrg4566 := len(yyv4566) > 0 yyv24566 := yyv4566 yyrl4566, yyrt4566 = z.DecInferLen(yyl4566, z.DecBasicHandle().MaxInitLen, 32) if yyrt4566 { if yyrl4566 <= cap(yyv4566) { yyv4566 = yyv4566[:yyrl4566] } else { yyv4566 = make([]AttachedVolume, yyrl4566) } } else { yyv4566 = make([]AttachedVolume, yyrl4566) } yyc4566 = true yyrr4566 = len(yyv4566) if yyrg4566 { copy(yyv4566, yyv24566) } } else if yyl4566 != len(yyv4566) { yyv4566 = yyv4566[:yyl4566] yyc4566 = true } yyj4566 := 0 for ; yyj4566 < yyrr4566; yyj4566++ { yyh4566.ElemContainerState(yyj4566) if r.TryDecodeAsNil() { yyv4566[yyj4566] = AttachedVolume{} } else { yyv4567 := &yyv4566[yyj4566] yyv4567.CodecDecodeSelf(d) } } if yyrt4566 { for ; yyj4566 < yyl4566; yyj4566++ { yyv4566 = append(yyv4566, AttachedVolume{}) yyh4566.ElemContainerState(yyj4566) if r.TryDecodeAsNil() { yyv4566[yyj4566] = AttachedVolume{} } else { yyv4568 := &yyv4566[yyj4566] yyv4568.CodecDecodeSelf(d) } } } } else { yyj4566 := 0 for ; !r.CheckBreak(); yyj4566++ { if yyj4566 >= len(yyv4566) { yyv4566 = append(yyv4566, AttachedVolume{}) // var yyz4566 AttachedVolume yyc4566 = true } yyh4566.ElemContainerState(yyj4566) if yyj4566 < len(yyv4566) { if r.TryDecodeAsNil() { yyv4566[yyj4566] = AttachedVolume{} } else { yyv4569 := &yyv4566[yyj4566] yyv4569.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4566 < len(yyv4566) { yyv4566 = yyv4566[:yyj4566] yyc4566 = true } else if yyj4566 == 0 && yyv4566 == nil { yyv4566 = []AttachedVolume{} yyc4566 = true } } yyh4566.End() if yyc4566 { *v = yyv4566 } } 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 _, yyv4570 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4571 := &yyv4570 yy4571.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 yyv4572 := *v yyh4572, yyl4572 := z.DecSliceHelperStart() var yyc4572 bool if yyl4572 == 0 { if yyv4572 == nil { yyv4572 = []PreferAvoidPodsEntry{} yyc4572 = true } else if len(yyv4572) != 0 { yyv4572 = yyv4572[:0] yyc4572 = true } } else if yyl4572 > 0 { var yyrr4572, yyrl4572 int var yyrt4572 bool if yyl4572 > cap(yyv4572) { yyrg4572 := len(yyv4572) > 0 yyv24572 := yyv4572 yyrl4572, yyrt4572 = z.DecInferLen(yyl4572, z.DecBasicHandle().MaxInitLen, 64) if yyrt4572 { if yyrl4572 <= cap(yyv4572) { yyv4572 = yyv4572[:yyrl4572] } else { yyv4572 = make([]PreferAvoidPodsEntry, yyrl4572) } } else { yyv4572 = make([]PreferAvoidPodsEntry, yyrl4572) } yyc4572 = true yyrr4572 = len(yyv4572) if yyrg4572 { copy(yyv4572, yyv24572) } } else if yyl4572 != len(yyv4572) { yyv4572 = yyv4572[:yyl4572] yyc4572 = true } yyj4572 := 0 for ; yyj4572 < yyrr4572; yyj4572++ { yyh4572.ElemContainerState(yyj4572) if r.TryDecodeAsNil() { yyv4572[yyj4572] = PreferAvoidPodsEntry{} } else { yyv4573 := &yyv4572[yyj4572] yyv4573.CodecDecodeSelf(d) } } if yyrt4572 { for ; yyj4572 < yyl4572; yyj4572++ { yyv4572 = append(yyv4572, PreferAvoidPodsEntry{}) yyh4572.ElemContainerState(yyj4572) if r.TryDecodeAsNil() { yyv4572[yyj4572] = PreferAvoidPodsEntry{} } else { yyv4574 := &yyv4572[yyj4572] yyv4574.CodecDecodeSelf(d) } } } } else { yyj4572 := 0 for ; !r.CheckBreak(); yyj4572++ { if yyj4572 >= len(yyv4572) { yyv4572 = append(yyv4572, PreferAvoidPodsEntry{}) // var yyz4572 PreferAvoidPodsEntry yyc4572 = true } yyh4572.ElemContainerState(yyj4572) if yyj4572 < len(yyv4572) { if r.TryDecodeAsNil() { yyv4572[yyj4572] = PreferAvoidPodsEntry{} } else { yyv4575 := &yyv4572[yyj4572] yyv4575.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4572 < len(yyv4572) { yyv4572 = yyv4572[:yyj4572] yyc4572 = true } else if yyj4572 == 0 && yyv4572 == nil { yyv4572 = []PreferAvoidPodsEntry{} yyc4572 = true } } yyh4572.End() if yyc4572 { *v = yyv4572 } } 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 yyk4576, yyv4576 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) yyk4576.CodecEncodeSelf(e) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4577 := &yyv4576 yym4578 := z.EncBinary() _ = yym4578 if false { } else if z.HasExtensions() && z.EncExt(yy4577) { } else if !yym4578 && z.IsJSONHandle() { z.EncJSONMarshal(yy4577) } else { z.EncFallback(yy4577) } } z.EncSendContainerState(codecSelfer_containerMapEnd1234) } func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4579 := *v yyl4579 := r.ReadMapStart() yybh4579 := z.DecBasicHandle() if yyv4579 == nil { yyrl4579, _ := z.DecInferLen(yyl4579, yybh4579.MaxInitLen, 72) yyv4579 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4579) *v = yyv4579 } var yymk4579 ResourceName var yymv4579 pkg3_resource.Quantity var yymg4579 bool if yybh4579.MapValueReset { yymg4579 = true } if yyl4579 > 0 { for yyj4579 := 0; yyj4579 < yyl4579; yyj4579++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4579 = "" } else { yymk4579 = ResourceName(r.DecodeString()) } if yymg4579 { yymv4579 = yyv4579[yymk4579] } else { yymv4579 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4579 = pkg3_resource.Quantity{} } else { yyv4581 := &yymv4579 yym4582 := z.DecBinary() _ = yym4582 if false { } else if z.HasExtensions() && z.DecExt(yyv4581) { } else if !yym4582 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv4581) } else { z.DecFallback(yyv4581, false) } } if yyv4579 != nil { yyv4579[yymk4579] = yymv4579 } } } else if yyl4579 < 0 { for yyj4579 := 0; !r.CheckBreak(); yyj4579++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4579 = "" } else { yymk4579 = ResourceName(r.DecodeString()) } if yymg4579 { yymv4579 = yyv4579[yymk4579] } else { yymv4579 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4579 = pkg3_resource.Quantity{} } else { yyv4584 := &yymv4579 yym4585 := z.DecBinary() _ = yym4585 if false { } else if z.HasExtensions() && z.DecExt(yyv4584) { } else if !yym4585 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv4584) } else { z.DecFallback(yyv4584, false) } } if yyv4579 != nil { yyv4579[yymk4579] = yymv4579 } } } // 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 _, yyv4586 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4587 := &yyv4586 yy4587.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 yyv4588 := *v yyh4588, yyl4588 := z.DecSliceHelperStart() var yyc4588 bool if yyl4588 == 0 { if yyv4588 == nil { yyv4588 = []Node{} yyc4588 = true } else if len(yyv4588) != 0 { yyv4588 = yyv4588[:0] yyc4588 = true } } else if yyl4588 > 0 { var yyrr4588, yyrl4588 int var yyrt4588 bool if yyl4588 > cap(yyv4588) { yyrg4588 := len(yyv4588) > 0 yyv24588 := yyv4588 yyrl4588, yyrt4588 = z.DecInferLen(yyl4588, z.DecBasicHandle().MaxInitLen, 616) if yyrt4588 { if yyrl4588 <= cap(yyv4588) { yyv4588 = yyv4588[:yyrl4588] } else { yyv4588 = make([]Node, yyrl4588) } } else { yyv4588 = make([]Node, yyrl4588) } yyc4588 = true yyrr4588 = len(yyv4588) if yyrg4588 { copy(yyv4588, yyv24588) } } else if yyl4588 != len(yyv4588) { yyv4588 = yyv4588[:yyl4588] yyc4588 = true } yyj4588 := 0 for ; yyj4588 < yyrr4588; yyj4588++ { yyh4588.ElemContainerState(yyj4588) if r.TryDecodeAsNil() { yyv4588[yyj4588] = Node{} } else { yyv4589 := &yyv4588[yyj4588] yyv4589.CodecDecodeSelf(d) } } if yyrt4588 { for ; yyj4588 < yyl4588; yyj4588++ { yyv4588 = append(yyv4588, Node{}) yyh4588.ElemContainerState(yyj4588) if r.TryDecodeAsNil() { yyv4588[yyj4588] = Node{} } else { yyv4590 := &yyv4588[yyj4588] yyv4590.CodecDecodeSelf(d) } } } } else { yyj4588 := 0 for ; !r.CheckBreak(); yyj4588++ { if yyj4588 >= len(yyv4588) { yyv4588 = append(yyv4588, Node{}) // var yyz4588 Node yyc4588 = true } yyh4588.ElemContainerState(yyj4588) if yyj4588 < len(yyv4588) { if r.TryDecodeAsNil() { yyv4588[yyj4588] = Node{} } else { yyv4591 := &yyv4588[yyj4588] yyv4591.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4588 < len(yyv4588) { yyv4588 = yyv4588[:yyj4588] yyc4588 = true } else if yyj4588 == 0 && yyv4588 == nil { yyv4588 = []Node{} yyc4588 = true } } yyh4588.End() if yyc4588 { *v = yyv4588 } } 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 _, yyv4592 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv4592.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 yyv4593 := *v yyh4593, yyl4593 := z.DecSliceHelperStart() var yyc4593 bool if yyl4593 == 0 { if yyv4593 == nil { yyv4593 = []FinalizerName{} yyc4593 = true } else if len(yyv4593) != 0 { yyv4593 = yyv4593[:0] yyc4593 = true } } else if yyl4593 > 0 { var yyrr4593, yyrl4593 int var yyrt4593 bool if yyl4593 > cap(yyv4593) { yyrl4593, yyrt4593 = z.DecInferLen(yyl4593, z.DecBasicHandle().MaxInitLen, 16) if yyrt4593 { if yyrl4593 <= cap(yyv4593) { yyv4593 = yyv4593[:yyrl4593] } else { yyv4593 = make([]FinalizerName, yyrl4593) } } else { yyv4593 = make([]FinalizerName, yyrl4593) } yyc4593 = true yyrr4593 = len(yyv4593) } else if yyl4593 != len(yyv4593) { yyv4593 = yyv4593[:yyl4593] yyc4593 = true } yyj4593 := 0 for ; yyj4593 < yyrr4593; yyj4593++ { yyh4593.ElemContainerState(yyj4593) if r.TryDecodeAsNil() { yyv4593[yyj4593] = "" } else { yyv4593[yyj4593] = FinalizerName(r.DecodeString()) } } if yyrt4593 { for ; yyj4593 < yyl4593; yyj4593++ { yyv4593 = append(yyv4593, "") yyh4593.ElemContainerState(yyj4593) if r.TryDecodeAsNil() { yyv4593[yyj4593] = "" } else { yyv4593[yyj4593] = FinalizerName(r.DecodeString()) } } } } else { yyj4593 := 0 for ; !r.CheckBreak(); yyj4593++ { if yyj4593 >= len(yyv4593) { yyv4593 = append(yyv4593, "") // var yyz4593 FinalizerName yyc4593 = true } yyh4593.ElemContainerState(yyj4593) if yyj4593 < len(yyv4593) { if r.TryDecodeAsNil() { yyv4593[yyj4593] = "" } else { yyv4593[yyj4593] = FinalizerName(r.DecodeString()) } } else { z.DecSwallow() } } if yyj4593 < len(yyv4593) { yyv4593 = yyv4593[:yyj4593] yyc4593 = true } else if yyj4593 == 0 && yyv4593 == nil { yyv4593 = []FinalizerName{} yyc4593 = true } } yyh4593.End() if yyc4593 { *v = yyv4593 } } 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 _, yyv4597 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4598 := &yyv4597 yy4598.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 yyv4599 := *v yyh4599, yyl4599 := z.DecSliceHelperStart() var yyc4599 bool if yyl4599 == 0 { if yyv4599 == nil { yyv4599 = []Namespace{} yyc4599 = true } else if len(yyv4599) != 0 { yyv4599 = yyv4599[:0] yyc4599 = true } } else if yyl4599 > 0 { var yyrr4599, yyrl4599 int var yyrt4599 bool if yyl4599 > cap(yyv4599) { yyrg4599 := len(yyv4599) > 0 yyv24599 := yyv4599 yyrl4599, yyrt4599 = z.DecInferLen(yyl4599, z.DecBasicHandle().MaxInitLen, 280) if yyrt4599 { if yyrl4599 <= cap(yyv4599) { yyv4599 = yyv4599[:yyrl4599] } else { yyv4599 = make([]Namespace, yyrl4599) } } else { yyv4599 = make([]Namespace, yyrl4599) } yyc4599 = true yyrr4599 = len(yyv4599) if yyrg4599 { copy(yyv4599, yyv24599) } } else if yyl4599 != len(yyv4599) { yyv4599 = yyv4599[:yyl4599] yyc4599 = true } yyj4599 := 0 for ; yyj4599 < yyrr4599; yyj4599++ { yyh4599.ElemContainerState(yyj4599) if r.TryDecodeAsNil() { yyv4599[yyj4599] = Namespace{} } else { yyv4600 := &yyv4599[yyj4599] yyv4600.CodecDecodeSelf(d) } } if yyrt4599 { for ; yyj4599 < yyl4599; yyj4599++ { yyv4599 = append(yyv4599, Namespace{}) yyh4599.ElemContainerState(yyj4599) if r.TryDecodeAsNil() { yyv4599[yyj4599] = Namespace{} } else { yyv4601 := &yyv4599[yyj4599] yyv4601.CodecDecodeSelf(d) } } } } else { yyj4599 := 0 for ; !r.CheckBreak(); yyj4599++ { if yyj4599 >= len(yyv4599) { yyv4599 = append(yyv4599, Namespace{}) // var yyz4599 Namespace yyc4599 = true } yyh4599.ElemContainerState(yyj4599) if yyj4599 < len(yyv4599) { if r.TryDecodeAsNil() { yyv4599[yyj4599] = Namespace{} } else { yyv4602 := &yyv4599[yyj4599] yyv4602.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4599 < len(yyv4599) { yyv4599 = yyv4599[:yyj4599] yyc4599 = true } else if yyj4599 == 0 && yyv4599 == nil { yyv4599 = []Namespace{} yyc4599 = true } } yyh4599.End() if yyc4599 { *v = yyv4599 } } 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 _, yyv4603 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4604 := &yyv4603 yy4604.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 yyv4605 := *v yyh4605, yyl4605 := z.DecSliceHelperStart() var yyc4605 bool if yyl4605 == 0 { if yyv4605 == nil { yyv4605 = []Event{} yyc4605 = true } else if len(yyv4605) != 0 { yyv4605 = yyv4605[:0] yyc4605 = true } } else if yyl4605 > 0 { var yyrr4605, yyrl4605 int var yyrt4605 bool if yyl4605 > cap(yyv4605) { yyrg4605 := len(yyv4605) > 0 yyv24605 := yyv4605 yyrl4605, yyrt4605 = z.DecInferLen(yyl4605, z.DecBasicHandle().MaxInitLen, 488) if yyrt4605 { if yyrl4605 <= cap(yyv4605) { yyv4605 = yyv4605[:yyrl4605] } else { yyv4605 = make([]Event, yyrl4605) } } else { yyv4605 = make([]Event, yyrl4605) } yyc4605 = true yyrr4605 = len(yyv4605) if yyrg4605 { copy(yyv4605, yyv24605) } } else if yyl4605 != len(yyv4605) { yyv4605 = yyv4605[:yyl4605] yyc4605 = true } yyj4605 := 0 for ; yyj4605 < yyrr4605; yyj4605++ { yyh4605.ElemContainerState(yyj4605) if r.TryDecodeAsNil() { yyv4605[yyj4605] = Event{} } else { yyv4606 := &yyv4605[yyj4605] yyv4606.CodecDecodeSelf(d) } } if yyrt4605 { for ; yyj4605 < yyl4605; yyj4605++ { yyv4605 = append(yyv4605, Event{}) yyh4605.ElemContainerState(yyj4605) if r.TryDecodeAsNil() { yyv4605[yyj4605] = Event{} } else { yyv4607 := &yyv4605[yyj4605] yyv4607.CodecDecodeSelf(d) } } } } else { yyj4605 := 0 for ; !r.CheckBreak(); yyj4605++ { if yyj4605 >= len(yyv4605) { yyv4605 = append(yyv4605, Event{}) // var yyz4605 Event yyc4605 = true } yyh4605.ElemContainerState(yyj4605) if yyj4605 < len(yyv4605) { if r.TryDecodeAsNil() { yyv4605[yyj4605] = Event{} } else { yyv4608 := &yyv4605[yyj4605] yyv4608.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4605 < len(yyv4605) { yyv4605 = yyv4605[:yyj4605] yyc4605 = true } else if yyj4605 == 0 && yyv4605 == nil { yyv4605 = []Event{} yyc4605 = true } } yyh4605.End() if yyc4605 { *v = yyv4605 } } 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 _, yyv4609 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyv4609 == nil { r.EncodeNil() } else { yym4610 := z.EncBinary() _ = yym4610 if false { } else if z.HasExtensions() && z.EncExt(yyv4609) { } else { z.EncFallback(yyv4609) } } } 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 yyv4611 := *v yyh4611, yyl4611 := z.DecSliceHelperStart() var yyc4611 bool if yyl4611 == 0 { if yyv4611 == nil { yyv4611 = []pkg7_runtime.Object{} yyc4611 = true } else if len(yyv4611) != 0 { yyv4611 = yyv4611[:0] yyc4611 = true } } else if yyl4611 > 0 { var yyrr4611, yyrl4611 int var yyrt4611 bool if yyl4611 > cap(yyv4611) { yyrg4611 := len(yyv4611) > 0 yyv24611 := yyv4611 yyrl4611, yyrt4611 = z.DecInferLen(yyl4611, z.DecBasicHandle().MaxInitLen, 16) if yyrt4611 { if yyrl4611 <= cap(yyv4611) { yyv4611 = yyv4611[:yyrl4611] } else { yyv4611 = make([]pkg7_runtime.Object, yyrl4611) } } else { yyv4611 = make([]pkg7_runtime.Object, yyrl4611) } yyc4611 = true yyrr4611 = len(yyv4611) if yyrg4611 { copy(yyv4611, yyv24611) } } else if yyl4611 != len(yyv4611) { yyv4611 = yyv4611[:yyl4611] yyc4611 = true } yyj4611 := 0 for ; yyj4611 < yyrr4611; yyj4611++ { yyh4611.ElemContainerState(yyj4611) if r.TryDecodeAsNil() { yyv4611[yyj4611] = nil } else { yyv4612 := &yyv4611[yyj4611] yym4613 := z.DecBinary() _ = yym4613 if false { } else if z.HasExtensions() && z.DecExt(yyv4612) { } else { z.DecFallback(yyv4612, true) } } } if yyrt4611 { for ; yyj4611 < yyl4611; yyj4611++ { yyv4611 = append(yyv4611, nil) yyh4611.ElemContainerState(yyj4611) if r.TryDecodeAsNil() { yyv4611[yyj4611] = nil } else { yyv4614 := &yyv4611[yyj4611] yym4615 := z.DecBinary() _ = yym4615 if false { } else if z.HasExtensions() && z.DecExt(yyv4614) { } else { z.DecFallback(yyv4614, true) } } } } } else { yyj4611 := 0 for ; !r.CheckBreak(); yyj4611++ { if yyj4611 >= len(yyv4611) { yyv4611 = append(yyv4611, nil) // var yyz4611 pkg7_runtime.Object yyc4611 = true } yyh4611.ElemContainerState(yyj4611) if yyj4611 < len(yyv4611) { if r.TryDecodeAsNil() { yyv4611[yyj4611] = nil } else { yyv4616 := &yyv4611[yyj4611] yym4617 := z.DecBinary() _ = yym4617 if false { } else if z.HasExtensions() && z.DecExt(yyv4616) { } else { z.DecFallback(yyv4616, true) } } } else { z.DecSwallow() } } if yyj4611 < len(yyv4611) { yyv4611 = yyv4611[:yyj4611] yyc4611 = true } else if yyj4611 == 0 && yyv4611 == nil { yyv4611 = []pkg7_runtime.Object{} yyc4611 = true } } yyh4611.End() if yyc4611 { *v = yyv4611 } } 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 _, yyv4618 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4619 := &yyv4618 yy4619.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 yyv4620 := *v yyh4620, yyl4620 := z.DecSliceHelperStart() var yyc4620 bool if yyl4620 == 0 { if yyv4620 == nil { yyv4620 = []LimitRangeItem{} 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, 56) if yyrt4620 { if yyrl4620 <= cap(yyv4620) { yyv4620 = yyv4620[:yyrl4620] } else { yyv4620 = make([]LimitRangeItem, yyrl4620) } } else { yyv4620 = make([]LimitRangeItem, 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] = LimitRangeItem{} } else { yyv4621 := &yyv4620[yyj4620] yyv4621.CodecDecodeSelf(d) } } if yyrt4620 { for ; yyj4620 < yyl4620; yyj4620++ { yyv4620 = append(yyv4620, LimitRangeItem{}) yyh4620.ElemContainerState(yyj4620) if r.TryDecodeAsNil() { yyv4620[yyj4620] = LimitRangeItem{} } else { yyv4622 := &yyv4620[yyj4620] yyv4622.CodecDecodeSelf(d) } } } } else { yyj4620 := 0 for ; !r.CheckBreak(); yyj4620++ { if yyj4620 >= len(yyv4620) { yyv4620 = append(yyv4620, LimitRangeItem{}) // var yyz4620 LimitRangeItem yyc4620 = true } yyh4620.ElemContainerState(yyj4620) if yyj4620 < len(yyv4620) { if r.TryDecodeAsNil() { yyv4620[yyj4620] = LimitRangeItem{} } 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 = []LimitRangeItem{} yyc4620 = true } } yyh4620.End() if yyc4620 { *v = yyv4620 } } 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 _, yyv4624 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4625 := &yyv4624 yy4625.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 yyv4626 := *v yyh4626, yyl4626 := z.DecSliceHelperStart() var yyc4626 bool if yyl4626 == 0 { if yyv4626 == nil { yyv4626 = []LimitRange{} 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, 264) if yyrt4626 { if yyrl4626 <= cap(yyv4626) { yyv4626 = yyv4626[:yyrl4626] } else { yyv4626 = make([]LimitRange, yyrl4626) } } else { yyv4626 = make([]LimitRange, 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] = LimitRange{} } else { yyv4627 := &yyv4626[yyj4626] yyv4627.CodecDecodeSelf(d) } } if yyrt4626 { for ; yyj4626 < yyl4626; yyj4626++ { yyv4626 = append(yyv4626, LimitRange{}) yyh4626.ElemContainerState(yyj4626) if r.TryDecodeAsNil() { yyv4626[yyj4626] = LimitRange{} } else { yyv4628 := &yyv4626[yyj4626] yyv4628.CodecDecodeSelf(d) } } } } else { yyj4626 := 0 for ; !r.CheckBreak(); yyj4626++ { if yyj4626 >= len(yyv4626) { yyv4626 = append(yyv4626, LimitRange{}) // var yyz4626 LimitRange yyc4626 = true } yyh4626.ElemContainerState(yyj4626) if yyj4626 < len(yyv4626) { if r.TryDecodeAsNil() { yyv4626[yyj4626] = LimitRange{} } 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 = []LimitRange{} yyc4626 = true } } yyh4626.End() if yyc4626 { *v = yyv4626 } } 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 _, yyv4630 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv4630.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 yyv4631 := *v yyh4631, yyl4631 := z.DecSliceHelperStart() var yyc4631 bool if yyl4631 == 0 { if yyv4631 == nil { yyv4631 = []ResourceQuotaScope{} yyc4631 = true } else if len(yyv4631) != 0 { yyv4631 = yyv4631[:0] yyc4631 = true } } else if yyl4631 > 0 { var yyrr4631, yyrl4631 int var yyrt4631 bool if yyl4631 > cap(yyv4631) { yyrl4631, yyrt4631 = z.DecInferLen(yyl4631, z.DecBasicHandle().MaxInitLen, 16) if yyrt4631 { if yyrl4631 <= cap(yyv4631) { yyv4631 = yyv4631[:yyrl4631] } else { yyv4631 = make([]ResourceQuotaScope, yyrl4631) } } else { yyv4631 = make([]ResourceQuotaScope, yyrl4631) } yyc4631 = true yyrr4631 = len(yyv4631) } else if yyl4631 != len(yyv4631) { yyv4631 = yyv4631[:yyl4631] yyc4631 = true } yyj4631 := 0 for ; yyj4631 < yyrr4631; yyj4631++ { yyh4631.ElemContainerState(yyj4631) if r.TryDecodeAsNil() { yyv4631[yyj4631] = "" } else { yyv4631[yyj4631] = ResourceQuotaScope(r.DecodeString()) } } if yyrt4631 { for ; yyj4631 < yyl4631; yyj4631++ { yyv4631 = append(yyv4631, "") yyh4631.ElemContainerState(yyj4631) if r.TryDecodeAsNil() { yyv4631[yyj4631] = "" } else { yyv4631[yyj4631] = ResourceQuotaScope(r.DecodeString()) } } } } else { yyj4631 := 0 for ; !r.CheckBreak(); yyj4631++ { if yyj4631 >= len(yyv4631) { yyv4631 = append(yyv4631, "") // var yyz4631 ResourceQuotaScope yyc4631 = true } yyh4631.ElemContainerState(yyj4631) if yyj4631 < len(yyv4631) { if r.TryDecodeAsNil() { yyv4631[yyj4631] = "" } else { yyv4631[yyj4631] = ResourceQuotaScope(r.DecodeString()) } } else { z.DecSwallow() } } if yyj4631 < len(yyv4631) { yyv4631 = yyv4631[:yyj4631] yyc4631 = true } else if yyj4631 == 0 && yyv4631 == nil { yyv4631 = []ResourceQuotaScope{} yyc4631 = true } } yyh4631.End() if yyc4631 { *v = yyv4631 } } 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 _, yyv4635 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4636 := &yyv4635 yy4636.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 yyv4637 := *v yyh4637, yyl4637 := z.DecSliceHelperStart() var yyc4637 bool if yyl4637 == 0 { if yyv4637 == nil { yyv4637 = []ResourceQuota{} yyc4637 = true } else if len(yyv4637) != 0 { yyv4637 = yyv4637[:0] yyc4637 = true } } else if yyl4637 > 0 { var yyrr4637, yyrl4637 int var yyrt4637 bool if yyl4637 > cap(yyv4637) { yyrg4637 := len(yyv4637) > 0 yyv24637 := yyv4637 yyrl4637, yyrt4637 = z.DecInferLen(yyl4637, z.DecBasicHandle().MaxInitLen, 288) if yyrt4637 { if yyrl4637 <= cap(yyv4637) { yyv4637 = yyv4637[:yyrl4637] } else { yyv4637 = make([]ResourceQuota, yyrl4637) } } else { yyv4637 = make([]ResourceQuota, yyrl4637) } yyc4637 = true yyrr4637 = len(yyv4637) if yyrg4637 { copy(yyv4637, yyv24637) } } else if yyl4637 != len(yyv4637) { yyv4637 = yyv4637[:yyl4637] yyc4637 = true } yyj4637 := 0 for ; yyj4637 < yyrr4637; yyj4637++ { yyh4637.ElemContainerState(yyj4637) if r.TryDecodeAsNil() { yyv4637[yyj4637] = ResourceQuota{} } else { yyv4638 := &yyv4637[yyj4637] yyv4638.CodecDecodeSelf(d) } } if yyrt4637 { for ; yyj4637 < yyl4637; yyj4637++ { yyv4637 = append(yyv4637, ResourceQuota{}) yyh4637.ElemContainerState(yyj4637) if r.TryDecodeAsNil() { yyv4637[yyj4637] = ResourceQuota{} } else { yyv4639 := &yyv4637[yyj4637] yyv4639.CodecDecodeSelf(d) } } } } else { yyj4637 := 0 for ; !r.CheckBreak(); yyj4637++ { if yyj4637 >= len(yyv4637) { yyv4637 = append(yyv4637, ResourceQuota{}) // var yyz4637 ResourceQuota yyc4637 = true } yyh4637.ElemContainerState(yyj4637) if yyj4637 < len(yyv4637) { if r.TryDecodeAsNil() { yyv4637[yyj4637] = ResourceQuota{} } else { yyv4640 := &yyv4637[yyj4637] yyv4640.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4637 < len(yyv4637) { yyv4637 = yyv4637[:yyj4637] yyc4637 = true } else if yyj4637 == 0 && yyv4637 == nil { yyv4637 = []ResourceQuota{} yyc4637 = true } } yyh4637.End() if yyc4637 { *v = yyv4637 } } 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 yyk4641, yyv4641 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) yym4642 := z.EncBinary() _ = yym4642 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(yyk4641)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyv4641 == nil { r.EncodeNil() } else { yym4643 := z.EncBinary() _ = yym4643 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4641)) } } } 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 yyv4644 := *v yyl4644 := r.ReadMapStart() yybh4644 := z.DecBasicHandle() if yyv4644 == nil { yyrl4644, _ := z.DecInferLen(yyl4644, yybh4644.MaxInitLen, 40) yyv4644 = make(map[string][]uint8, yyrl4644) *v = yyv4644 } var yymk4644 string var yymv4644 []uint8 var yymg4644 bool if yybh4644.MapValueReset { yymg4644 = true } if yyl4644 > 0 { for yyj4644 := 0; yyj4644 < yyl4644; yyj4644++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4644 = "" } else { yymk4644 = string(r.DecodeString()) } if yymg4644 { yymv4644 = yyv4644[yymk4644] } else { yymv4644 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4644 = nil } else { yyv4646 := &yymv4644 yym4647 := z.DecBinary() _ = yym4647 if false { } else { *yyv4646 = r.DecodeBytes(*(*[]byte)(yyv4646), false, false) } } if yyv4644 != nil { yyv4644[yymk4644] = yymv4644 } } } else if yyl4644 < 0 { for yyj4644 := 0; !r.CheckBreak(); yyj4644++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4644 = "" } else { yymk4644 = string(r.DecodeString()) } if yymg4644 { yymv4644 = yyv4644[yymk4644] } else { yymv4644 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4644 = nil } else { yyv4649 := &yymv4644 yym4650 := z.DecBinary() _ = yym4650 if false { } else { *yyv4649 = r.DecodeBytes(*(*[]byte)(yyv4649), false, false) } } if yyv4644 != nil { yyv4644[yymk4644] = yymv4644 } } } // 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 _, yyv4651 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4652 := &yyv4651 yy4652.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 yyv4653 := *v yyh4653, yyl4653 := z.DecSliceHelperStart() var yyc4653 bool if yyl4653 == 0 { if yyv4653 == nil { yyv4653 = []Secret{} 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, 264) if yyrt4653 { if yyrl4653 <= cap(yyv4653) { yyv4653 = yyv4653[:yyrl4653] } else { yyv4653 = make([]Secret, yyrl4653) } } else { yyv4653 = make([]Secret, 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] = Secret{} } else { yyv4654 := &yyv4653[yyj4653] yyv4654.CodecDecodeSelf(d) } } if yyrt4653 { for ; yyj4653 < yyl4653; yyj4653++ { yyv4653 = append(yyv4653, Secret{}) yyh4653.ElemContainerState(yyj4653) if r.TryDecodeAsNil() { yyv4653[yyj4653] = Secret{} } else { yyv4655 := &yyv4653[yyj4653] yyv4655.CodecDecodeSelf(d) } } } } else { yyj4653 := 0 for ; !r.CheckBreak(); yyj4653++ { if yyj4653 >= len(yyv4653) { yyv4653 = append(yyv4653, Secret{}) // var yyz4653 Secret yyc4653 = true } yyh4653.ElemContainerState(yyj4653) if yyj4653 < len(yyv4653) { if r.TryDecodeAsNil() { yyv4653[yyj4653] = Secret{} } 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 = []Secret{} yyc4653 = true } } yyh4653.End() if yyc4653 { *v = yyv4653 } } 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 _, yyv4657 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4658 := &yyv4657 yy4658.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 yyv4659 := *v yyh4659, yyl4659 := z.DecSliceHelperStart() var yyc4659 bool if yyl4659 == 0 { if yyv4659 == nil { yyv4659 = []ConfigMap{} 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, 248) if yyrt4659 { if yyrl4659 <= cap(yyv4659) { yyv4659 = yyv4659[:yyrl4659] } else { yyv4659 = make([]ConfigMap, yyrl4659) } } else { yyv4659 = make([]ConfigMap, 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] = ConfigMap{} } else { yyv4660 := &yyv4659[yyj4659] yyv4660.CodecDecodeSelf(d) } } if yyrt4659 { for ; yyj4659 < yyl4659; yyj4659++ { yyv4659 = append(yyv4659, ConfigMap{}) yyh4659.ElemContainerState(yyj4659) if r.TryDecodeAsNil() { yyv4659[yyj4659] = ConfigMap{} } else { yyv4661 := &yyv4659[yyj4659] yyv4661.CodecDecodeSelf(d) } } } } else { yyj4659 := 0 for ; !r.CheckBreak(); yyj4659++ { if yyj4659 >= len(yyv4659) { yyv4659 = append(yyv4659, ConfigMap{}) // var yyz4659 ConfigMap yyc4659 = true } yyh4659.ElemContainerState(yyj4659) if yyj4659 < len(yyv4659) { if r.TryDecodeAsNil() { yyv4659[yyj4659] = ConfigMap{} } 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 = []ConfigMap{} yyc4659 = true } } yyh4659.End() if yyc4659 { *v = yyv4659 } } 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 _, yyv4663 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4664 := &yyv4663 yy4664.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 yyv4665 := *v yyh4665, yyl4665 := z.DecSliceHelperStart() var yyc4665 bool if yyl4665 == 0 { if yyv4665 == nil { yyv4665 = []ComponentCondition{} 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, 64) if yyrt4665 { if yyrl4665 <= cap(yyv4665) { yyv4665 = yyv4665[:yyrl4665] } else { yyv4665 = make([]ComponentCondition, yyrl4665) } } else { yyv4665 = make([]ComponentCondition, 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] = ComponentCondition{} } else { yyv4666 := &yyv4665[yyj4665] yyv4666.CodecDecodeSelf(d) } } if yyrt4665 { for ; yyj4665 < yyl4665; yyj4665++ { yyv4665 = append(yyv4665, ComponentCondition{}) yyh4665.ElemContainerState(yyj4665) if r.TryDecodeAsNil() { yyv4665[yyj4665] = ComponentCondition{} } else { yyv4667 := &yyv4665[yyj4665] yyv4667.CodecDecodeSelf(d) } } } } else { yyj4665 := 0 for ; !r.CheckBreak(); yyj4665++ { if yyj4665 >= len(yyv4665) { yyv4665 = append(yyv4665, ComponentCondition{}) // var yyz4665 ComponentCondition yyc4665 = true } yyh4665.ElemContainerState(yyj4665) if yyj4665 < len(yyv4665) { if r.TryDecodeAsNil() { yyv4665[yyj4665] = ComponentCondition{} } else { yyv4668 := &yyv4665[yyj4665] yyv4668.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4665 < len(yyv4665) { yyv4665 = yyv4665[:yyj4665] yyc4665 = true } else if yyj4665 == 0 && yyv4665 == nil { yyv4665 = []ComponentCondition{} yyc4665 = true } } yyh4665.End() if yyc4665 { *v = yyv4665 } } 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 _, yyv4669 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4670 := &yyv4669 yy4670.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 yyv4671 := *v yyh4671, yyl4671 := z.DecSliceHelperStart() var yyc4671 bool if yyl4671 == 0 { if yyv4671 == nil { yyv4671 = []ComponentStatus{} yyc4671 = true } else if len(yyv4671) != 0 { yyv4671 = yyv4671[:0] yyc4671 = true } } else if yyl4671 > 0 { var yyrr4671, yyrl4671 int var yyrt4671 bool if yyl4671 > cap(yyv4671) { yyrg4671 := len(yyv4671) > 0 yyv24671 := yyv4671 yyrl4671, yyrt4671 = z.DecInferLen(yyl4671, z.DecBasicHandle().MaxInitLen, 264) if yyrt4671 { if yyrl4671 <= cap(yyv4671) { yyv4671 = yyv4671[:yyrl4671] } else { yyv4671 = make([]ComponentStatus, yyrl4671) } } else { yyv4671 = make([]ComponentStatus, yyrl4671) } yyc4671 = true yyrr4671 = len(yyv4671) if yyrg4671 { copy(yyv4671, yyv24671) } } else if yyl4671 != len(yyv4671) { yyv4671 = yyv4671[:yyl4671] yyc4671 = true } yyj4671 := 0 for ; yyj4671 < yyrr4671; yyj4671++ { yyh4671.ElemContainerState(yyj4671) if r.TryDecodeAsNil() { yyv4671[yyj4671] = ComponentStatus{} } else { yyv4672 := &yyv4671[yyj4671] yyv4672.CodecDecodeSelf(d) } } if yyrt4671 { for ; yyj4671 < yyl4671; yyj4671++ { yyv4671 = append(yyv4671, ComponentStatus{}) yyh4671.ElemContainerState(yyj4671) if r.TryDecodeAsNil() { yyv4671[yyj4671] = ComponentStatus{} } else { yyv4673 := &yyv4671[yyj4671] yyv4673.CodecDecodeSelf(d) } } } } else { yyj4671 := 0 for ; !r.CheckBreak(); yyj4671++ { if yyj4671 >= len(yyv4671) { yyv4671 = append(yyv4671, ComponentStatus{}) // var yyz4671 ComponentStatus yyc4671 = true } yyh4671.ElemContainerState(yyj4671) if yyj4671 < len(yyv4671) { if r.TryDecodeAsNil() { yyv4671[yyj4671] = ComponentStatus{} } else { yyv4674 := &yyv4671[yyj4671] yyv4674.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4671 < len(yyv4671) { yyv4671 = yyv4671[:yyj4671] yyc4671 = true } else if yyj4671 == 0 && yyv4671 == nil { yyv4671 = []ComponentStatus{} yyc4671 = true } } yyh4671.End() if yyc4671 { *v = yyv4671 } }